| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
This should cover all the remaining cases in the kernel.
Discussed in: freebsd-current
Notes:
svn path=/head/; revision=298431
|
| |
|
|
|
|
|
|
|
|
| |
include it explicitly when <vm/pmap.h> is already included.
Reviewed by: alc, kib
Differential Revision: https://reviews.freebsd.org/D5373
Notes:
svn path=/head/; revision=295880
|
| |
|
|
|
|
|
|
|
|
|
|
| |
bus_alloc_resource_any()
Since these calls only use default arguments, bus_alloc_resource_any() is the
right call.
Differential Revision: https://reviews.freebsd.org/D5306
Notes:
svn path=/head/; revision=295790
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The vtophys() function is used to get the physical page address for
the virtually allocated frame buffers when a physically continuous
memory area is not available. This change also allows removing the
masking of the FB_FLAG_NOMMAP flag in the PS3 syscons driver.
The FB and VT drivers were tested using X.org/xf86-video-scfb and
syscons.
Notes:
svn path=/head/; revision=279752
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main purpose of this feature is to be able to unload a KMS driver.
When going back from the current vt(4) backend to the previous backend,
the previous backend is reinitialized with the special VDF_DOWNGRADE
flag set. Then the current driver is terminated with the new "vd_fini"
callback.
In the case of vt_fb and vt_vga, this allows the former to pass the
vgapci device vt_fb used to vt_vga so the device can be rePOSTed.
Differential Revision: https://reviews.freebsd.org/D687
Notes:
svn path=/head/; revision=279488
|
| |
|
|
|
|
|
|
|
|
| |
version to force re-compilation of external video driver kernel
modules.
Discussed with: ray @
Notes:
svn path=/head/; revision=278846
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
suspend/resume
The goal is to avoid that the vt(4) resume happens before the video
display is resumed. The original patch was provided by Andriy Gapon.
This new patch registers the handlers in vt_upgrade(). This is done
once, thanks to the VDF_ASYNC flag. I abused this flag because it was
already abused by the keyboard allocation. The event handlers then call
the backend if it provides callbacks for suspend/resume.
Differential Revision: https://reviews.freebsd.org/D1004
On behalf of: dumbbell
MFC after: 2 weeks
Notes:
svn path=/head/; revision=277795
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were two issues:
1. The area given to vt_is_cursor_in_area() was adding the drawable
area offset, something already handled by this function.
2. The cursor was shifted on the screen by the offset of this area
and thus was misplaced or not erased. Furthermore, when reaching
the bottom or right borders, the cursor was either totally
removed or not erased correctly.
MFC after: 1 week
Notes:
svn path=/head/; revision=270720
|
| |
|
|
|
|
|
|
|
|
|
| |
This allows backends to verify they do not draw outside of this area.
This fixes a bug in vt_vga where the text was happily drawn over the
right and bottom margins, when using the Gallant font.
MFC after: 1 week
Notes:
svn path=/head/; revision=270613
|
| |
|
|
|
|
|
|
|
|
| |
The code was already there in all backends, we just expose it. This is
used to display the splash screen.
MFC after: 1 week
Notes:
svn path=/head/; revision=270431
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=270412
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).
The main differences between both orders are:
o Blue and red are swapped (1 <-> 4)
o Yellow and cyan are swapped (3 <-> 6)
The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.
This commit includes a fix to creator_vt.c, submitted by Nathan
Whitehorn: fb_cmsize is set to 16. Before this, the generated palette
would be overwritte. This fixes colors on sparc64 with a Creator3D
adapter.
While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).
Submitted by: nwhitehorn (fix to creator_vt.c)
MFC after: 1 week
Notes:
svn path=/head/; revision=269783
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vt_fb_attach() currently always returns 0, but it could return a code
defined in errno.h. However, it doesn't return a CN_* code. So checking
its return value against CN_DEAD (which is 0) is incorrect, and in this
case, a success becomes a failure.
The consequence was unimportant, because the caller (drm_fb_helper.c)
would only log an error message in this case. The console would still
work.
Approved by: nwhitehorn
Notes:
svn path=/head/; revision=269779
|
| |
|
|
|
|
|
|
| |
for mask != NULL in vd_bitbltchr, which all implementations of vd_bitbltchr()
were doing anyway.
Notes:
svn path=/head/; revision=269685
|
| |
|
|
|
|
|
|
| |
pixel modification indirection. No actual drivers use it and those that
might (e.g. creatorfb) use custom implementations of vd_bitbltchr().
Notes:
svn path=/head/; revision=269620
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
handled by creator(4) (Sun Creator 3D, Elite 3D, etc.). This provides
vt(4) consoles on all devices currently supported by syscons on sparc64.
The driver should also be easily adaptable to support newer Sun framebuffers
such as the XVR-500 and higher.
Many thanks to dumbbell@ (Jean-Sebastien Pedron) for testing this remotely
during development.
Notes:
svn path=/head/; revision=269601
|
| |
|
|
|
|
|
|
|
|
|
| |
rather than only drivers attached later on. This involves a small amount of
code duplication with dev/fb/fbd.c, which will fixed later on.
Also improve performance of vt_blank() by making it not read from the
framebuffer unnecessarily.
Notes:
svn path=/head/; revision=268771
|
| |
|
|
|
|
|
|
|
| |
Pointed by: emaste
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=268472
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes:
o All directories named *ia64*
o All files named *ia64*
o All ia64-specific code guarded by __ia64__
o All ia64-specific makefile logic
o Mention of ia64 in comments and documentation
This excludes:
o Everything under contrib/
o Everything under crypto/
o sys/xen/interface
o sys/sys/elf_common.h
Discussed at: BSDcan
Notes:
svn path=/head/; revision=268351
|
| |
|
|
| |
Notes:
svn path=/head/; revision=267992
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
These changes prevent sysctl(8) from returning proper output,
such as:
1) no output from sysctl(8)
2) erroneously returning ENOMEM with tools like truss(1)
or uname(1)
truss: can not get etype: Cannot allocate memory
Notes:
svn path=/head/; revision=267985
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there is an environment variable which shall initialize the SYSCTL
during early boot. This works for all SYSCTL types both statically and
dynamically created ones, except for the SYSCTL NODE type and SYSCTLs
which belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added to
be used in the case a tunable sysctl has a custom initialisation
function allowing the sysctl to still be marked as a tunable. The
kernel SYSCTL API is mostly the same, with a few exceptions for some
special operations like iterating childrens of a static/extern SYSCTL
node. This operation should probably be made into a factored out
common macro, hence some device drivers use this. The reason for
changing the SYSCTL API was the need for a SYSCTL parent OID pointer
and not only the SYSCTL parent OID list pointer in order to quickly
generate the sysctl path. The motivation behind this patch is to avoid
parameter loading cludges inside the OFED driver subsystem. Instead of
adding special code to the OFED driver subsystem to post-load tunables
into dynamically created sysctls, we generalize this in the kernel.
Other changes:
- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"
to "hw.pcic.intr_mask".
- Removed redundant TUNABLE statements throughout the kernel.
- Some minor code rewrites in connection to removing not needed
TUNABLE statements.
- Added a missing SYSCTL_DECL().
- Wrapped two very long lines.
- Avoid malloc()/free() inside sysctl string handling, in case it is
called to initialize a sysctl from a tunable, hence malloc()/free() is
not ready when sysctls from the sysctl dataset are registered.
- Bumped FreeBSD version to indicate SYSCTL API change.
MFC after: 2 weeks
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=267961
|
| |
|
|
| |
Notes:
svn path=/projects/clang-sparc64/; revision=262376
|
| |
|
|
|
|
|
|
| |
- Renumber Regents clauses
- Remove clause 3 and 4 from TNF license, following upstream change
Notes:
svn path=/head/; revision=260047
|
| |
|
|
|
|
|
|
|
|
|
| |
o Forward termianl framebuffer ioctl to fbd.
o Forward terminal mmap request to fbd.
o Move inclusion of sys/conf.h to vt.h.
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=259777
|
| |
|
|
|
|
|
|
|
|
| |
Reviewed by: nwhitehorn
MFC_to_10_after: re approval
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=259016
|
| |
|
|
| |
Notes:
svn path=/head/; revision=255004
|
| |
|
|
|
|
|
| |
Note this partially revert r233896.
Notes:
svn path=/head/; revision=254999
|
| |
|
|
| |
Notes:
svn path=/head/; revision=254998
|
| |
|
|
| |
Notes:
svn path=/head/; revision=254997
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This basically restores the spirit of r203535, which was partially reverted
in r205557, while we still map fixed amount to work around transient issues
we experienced with r203535.
Prodded by: avg
Tested by: avg
MFC after: 1 week
Notes:
svn path=/head/; revision=248799
|
| |
|
|
|
|
|
|
|
| |
framebuffer
While here - sort #if defined() order alphabetically
Notes:
svn path=/head/; revision=239696
|
| |
|
|
|
|
|
|
|
|
|
|
| |
on PowerPC support. This was clearly not something syscons was
designed to do (very specific assumptions about the nature of VGA
consoles on PCs), but fortunately others have long since blazed
the way on making it work regardless of that.
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=239670
|
| |
|
|
|
|
|
|
|
| |
twice as much.
Spotted by: Taku YAMAMOTO
Notes:
svn path=/head/; revision=237223
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
D2500CC which I have, syscons in text-mode fails to show the expected
contents due to write errors into video-memory.
At least one of the causes is that we copy from syscons internal buffer
to the video memory with optimized bcopy(9) which uses >16bit operations.
Until now, 32bit and wider operations have always worked on the video
memory, but since I cannot find a single source which says that this
SHALL work, and since these chipsets/bugs are now out there, this
commit changes syscons to always use 16bit copies on i386 & amd64.
This may be relevevant for PR's:
166262
166639
and various other bug reports floating elsewhere on the net, but
I lack hardware to test those.
Notes:
svn path=/head/; revision=237203
|
| |
|
|
|
|
|
| |
Submitted by: arundel
Notes:
svn path=/head/; revision=234362
|
| |
|
|
| |
Notes:
svn path=/head/; revision=233896
|
| |
|
|
|
|
|
| |
Do not unnecessarily clear the state buffer before calling the function.
Notes:
svn path=/head/; revision=233894
|
| |
|
|
|
|
|
| |
and this function may be used with VESA mode since r232069.
Notes:
svn path=/head/; revision=233892
|
| |
|
|
| |
Notes:
svn path=/head/; revision=233187
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=233056
|
| |
|
|
|
|
|
| |
Consistently use bcopy(9) over memcpy(9).
Notes:
svn path=/head/; revision=233054
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=233042
|
| |
|
|
|
|
|
| |
VGA methods. Unconditionally reset the VESA adapter before restoring state.
Notes:
svn path=/head/; revision=232069
|
| |
|
|
| |
Notes:
svn path=/head/; revision=232065
|
| |
|
|
|
|
|
| |
refuses to save/restore states if an unsupported bit is set.
Notes:
svn path=/head/; revision=232063
|
| |
|
|
| |
Notes:
svn path=/head/; revision=232061
|
| |
|
|
|
|
|
| |
There is no need to set initial mode for BIOS.
Notes:
svn path=/head/; revision=231843
|
| |
|
|
| |
Notes:
svn path=/head/; revision=231842
|
| |
|
|
| |
Notes:
svn path=/head/; revision=231841
|