svn commit: r285988 - head/sys/dev/drm2/i915

2015-07-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Jul 28 21:47:37 2015 New Revision: 285988 URL: https://svnweb.freebsd.org/changeset/base/285988 Log: drm/i915: Sort functions in i915_gem.c to match Linux 3.8's ordering While here, reduce the style diff with Linux. There is no functional change. The goal is

svn commit: r280814 - head/sys/dev/drm2

2015-03-29 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Mar 29 18:45:51 2015 New Revision: 280814 URL: https://svnweb.freebsd.org/changeset/base/280814 Log: drm: Import Linux commit 9bc3cd5673d84d29272fa7181a4dfca83cbb48c1 Author: Ville Syrjälä Date: Fri May 31 12:17:08 2013 + drm: Sort connector mode

svn commit: r280183 - in head/sys: dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/drm2/ttm modules modules/drm2 modules/drm2/drm2 modules/drm2/radeonkms

2015-03-17 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Mar 17 18:50:33 2015 New Revision: 280183 URL: https://svnweb.freebsd.org/changeset/base/280183 Log: drm: Update the device-independent code to match Linux 3.8.13 This update brings few features: o Support for the setmaster/dropmaster ioctls. For instance,

svn commit: r279600 - in head/sys/modules/drm2: . radeonkmsfw

2015-03-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Mar 4 20:47:43 2015 New Revision: 279600 URL: https://svnweb.freebsd.org/changeset/base/279600 Log: drm: Allow parallel builds of drivers and firmwares Submitted by: hps@ MFC after:2 weeks Modified: head/sys/modules/drm2/Makefile head/sys/modules/drm2/

svn commit: r279599 - head/sys/dev/drm2

2015-03-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Mar 4 20:43:46 2015 New Revision: 279599 URL: https://svnweb.freebsd.org/changeset/base/279599 Log: drm: Import Linux commit b7ea85a4fed37835eec78a7be3039c8dc22b8178 Author: Huacai Chen Date: Tue May 21 06:23:43 2013 + drm: fix a use-after-free

svn commit: r279494 - in head/sys: conf dev/pci

2015-03-01 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Mar 1 20:54:29 2015 New Revision: 279494 URL: https://svnweb.freebsd.org/changeset/base/279494 Log: Record the dependency to x86bios in vga_pci This fixes the build of XEN and XBOX kernels on i386, which was broken in r279487. While here, do not build vga_

svn commit: r279488 - in head/sys: dev/drm2 dev/drm2/radeon dev/fb dev/vt dev/vt/hw/fb dev/vt/hw/vga sys

2015-03-01 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Mar 1 12:54:22 2015 New Revision: 279488 URL: https://svnweb.freebsd.org/changeset/base/279488 Log: vt(4): Add support to "downgrade" from eg. vt_fb to vt_vga The main purpose of this feature is to be able to unload a KMS driver. When going back from the cur

svn commit: r279487 - head/sys/dev/pci

2015-03-01 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Mar 1 12:47:36 2015 New Revision: 279487 URL: https://svnweb.freebsd.org/changeset/base/279487 Log: vgapci: New vga_pci_repost() function This can be used to restore the VGA mode after a KMS driver is unloaded. Differential Revision:https://reviews.f

svn commit: r274587 - head/sys/dev/drm2/radeon

2014-11-16 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Nov 16 17:53:48 2014 New Revision: 274587 URL: https://svnweb.freebsd.org/changeset/base/274587 Log: drm/radeon: Lower priority of a message related to invalid EDID Like in r259717, the prority goes from "error" to "debug" to avoid spamming logs when the connect

svn commit: r274117 - head/sys/dev/vt

2014-11-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Nov 4 23:51:35 2014 New Revision: 274117 URL: https://svnweb.freebsd.org/changeset/base/274117 Log: vt(4): Support syscons' SC_HISTORY_SIZE to configure history size Therefore, to set histry size to 2000 lines, add the following line to your kernel configuratio

svn commit: r274085 - in head: . sys/kern sys/sys

2014-11-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Nov 4 10:18:03 2014 New Revision: 274085 URL: https://svnweb.freebsd.org/changeset/base/274085 Log: Enable vt(4) by default vt(4) is a new console driver which brings features such as: o Support for Unicode and double-width characters o Integration

svn commit: r274053 - head/share/man/man4

2014-11-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 3 16:01:44 2014 New Revision: 274053 URL: https://svnweb.freebsd.org/changeset/base/274053 Log: vt(4): Start new sentences on their own lines Submitted by: brueffer@ MFC after:1 week Modified: head/share/man/man4/vt.4 Modified: head/share/man/man4/v

svn commit: r274051 - head/share/man/man4

2014-11-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 3 15:25:48 2014 New Revision: 274051 URL: https://svnweb.freebsd.org/changeset/base/274051 Log: vt(4): Improve the description of kern.vt.fb.modes.$connector Differential Revision:https://reviews.freebsd.org/D1098 Submitted by: emaste@ MFC after:

svn commit: r274050 - head/share/man/man4

2014-11-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 3 14:57:41 2014 New Revision: 274050 URL: https://svnweb.freebsd.org/changeset/base/274050 Log: vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.* Those tunables are used to set a specific mode in vt(4) instead of using the default mode. Di

svn commit: r274049 - head/sys/dev/drm2

2014-11-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 3 14:35:07 2014 New Revision: 274049 URL: https://svnweb.freebsd.org/changeset/base/274049 Log: drm: When reading connector mode tunables, list connectors ... and their associated tunables. This gives a way to know the list of available connectors, no matte

svn commit: r274031 - head/sys/dev/drm2

2014-11-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 3 10:42:27 2014 New Revision: 274031 URL: https://svnweb.freebsd.org/changeset/base/274031 Log: drm: Take vt(4) default mode from loader tunables By default, vt(4) gets the "preferred mode" from DRM, when using a DRM video driver as its backend. The preferr

svn commit: r273973 - head/sys/dev/vt

2014-11-02 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Nov 2 16:04:48 2014 New Revision: 273973 URL: https://svnweb.freebsd.org/changeset/base/273973 Log: vt(4): Fix keyboard allocation when kbdmux(4) isn't used The problem was that only the kbdmux keyboard index was saved in vd->vd_keyboard. This index is -1 when

svn commit: r273962 - in head/sys/dev/drm2: . radeon

2014-11-02 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Nov 2 09:52:22 2014 New Revision: 273962 URL: https://svnweb.freebsd.org/changeset/base/273962 Log: drm: Lower priority of two messages related to invalid EDID Like in r259717, the prority goes from "error" to "debug" to avoid spamming logs when the connectors

svn commit: r273932 - in head/sys: dev/vt kern sys

2014-11-01 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 1 17:05:15 2014 New Revision: 273932 URL: https://svnweb.freebsd.org/changeset/base/273932 Log: vt(4): Adjust the cursor position after changing the window size A new terminal_set_cursor() is added: it wraps the existing teken_set_cursor() function. In

svn commit: r273544 - in head: sys/dev/vt sys/sys usr.sbin/vidcontrol

2014-10-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Oct 23 12:38:05 2014 New Revision: 273544 URL: https://svnweb.freebsd.org/changeset/base/273544 Log: vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font To restore the default font using vidcontrol(1), use the "-f" flag without an argument:

svn commit: r273330 - head/sys/dev/vt

2014-10-20 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Oct 20 14:25:23 2014 New Revision: 273330 URL: https://svnweb.freebsd.org/changeset/base/273330 Log: vt(4): Refuse to load a font if hw.vga.textmode is selected Before, the font was loaded and the window size recalculated, giving an unusable terminal, even if th

svn commit: r272537 - head/sys/dev/vt

2014-10-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Oct 4 18:40:40 2014 New Revision: 272537 URL: https://svnweb.freebsd.org/changeset/base/272537 Log: vt(4): Don't recalculate buffer size if we don't know screen size When the screen size is unknown, it's set to 0x0. We can't use that as the buffer size, otherwi

svn commit: r272416 - head/sys/dev/vt

2014-10-02 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Oct 2 16:36:37 2014 New Revision: 272416 URL: https://svnweb.freebsd.org/changeset/base/272416 Log: vt(4): Save/restore keyboard mode & LED states when switching window Add new functions to manipulate these mode & state, instead of calling kbdd_ioctl() everyher

svn commit: r271872 - head/sys/dev/vt

2014-09-19 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Sep 19 12:38:43 2014 New Revision: 271872 URL: http://svnweb.freebsd.org/changeset/base/271872 Log: vt(4): Remove superfluous word in comment Submitted by: brueffer@ MFC after:3 days MFC with: 271871 Modified: head/sys/dev/vt/vt_core.c Modified: he

svn commit: r271871 - head/sys/dev/vt

2014-09-19 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Sep 19 12:20:43 2014 New Revision: 271871 URL: http://svnweb.freebsd.org/changeset/base/271871 Log: vt(4): Rewrite history scrolling It's now possible to scroll up the 500 hard-coded lines of history, not just a fraction of them. For instance, one can reach the

svn commit: r271868 - head/sys/dev/vt

2014-09-19 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Sep 19 11:02:44 2014 New Revision: 271868 URL: http://svnweb.freebsd.org/changeset/base/271868 Log: vt(4): Remove vt_buf->vb_dirtymask This structure and the associated functions were unused since the implementation of vd_bitblt_text_t callbacks. MFC after:

svn commit: r271758 - head/sys/dev/vt

2014-09-18 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 18 13:24:06 2014 New Revision: 271758 URL: http://svnweb.freebsd.org/changeset/base/271758 Log: vt(4): Use strncpy() to copy into a fixed-size buffer CID: 1230007 MFC after:3 days Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt

svn commit: r271756 - head/sys/dev/vt

2014-09-18 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 18 12:20:19 2014 New Revision: 271756 URL: http://svnweb.freebsd.org/changeset/base/271756 Log: vt(4): Fix out-of-bounds array access in VT_ACTIVATE ioctl handling CID: 1229964 MFC after:3 days Modified: head/sys/dev/vt/vt_core.c Modified: h

svn commit: r271705 - in head/sys: dev/drm2 dev/drm2/i915 modules/drm2/i915kms sys

2014-09-17 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Sep 17 08:28:50 2014 New Revision: 271705 URL: http://svnweb.freebsd.org/changeset/base/271705 Log: drm/i915: Add HW context support This feature is required by Mesa 9.2+. Without this, a GL application crashes with the following message: # glxinfo n

svn commit: r271684 - in head/sys: dev/vt/hw/efifb dev/vt/hw/fb powerpc/ps3

2014-09-16 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Sep 16 18:02:24 2014 New Revision: 271684 URL: http://svnweb.freebsd.org/changeset/base/271684 Log: vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative Review: https://reviews.freebsd.org/D789 Reviewed by: nwhitehorn Approve

svn commit: r271682 - head/sys/dev/vt

2014-09-16 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Sep 16 17:42:37 2014 New Revision: 271682 URL: http://svnweb.freebsd.org/changeset/base/271682 Log: vt(4): Fix a LOR which occurs during a call to vt_upgrade() Reported by: kib@ Review: https://reviews.freebsd.org/D785 Reviewed by: ray@ Appro

svn commit: r271506 - head/sys/dev/vt

2014-09-13 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Sep 13 09:33:37 2014 New Revision: 271506 URL: http://svnweb.freebsd.org/changeset/base/271506 Log: vt(4): Enclose vt_mouse_paste() prototype inside #ifndef SC_NO_CUTPASTE/#endif This fixes the build with sparc64 LINT for instance. Reported by: bz@ MFC aft

svn commit: r271253 - head/sys/kern

2014-09-08 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Sep 8 08:44:50 2014 New Revision: 271253 URL: http://svnweb.freebsd.org/changeset/base/271253 Log: pause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active This fixes a panic in the i915 driver when one uses debug.kdb.enter=1 under vt(4). PR:

svn commit: r271250 - head/sys/dev/vt

2014-09-08 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Sep 8 07:37:03 2014 New Revision: 271250 URL: http://svnweb.freebsd.org/changeset/base/271250 Log: vt(4): Change the terminal and buffer sizes, even without a font This fixes a bug where scroll lock would not work for tty #0 when using vt_vga's textmode. The re

svn commit: r271180 - head/sys/dev/vt/hw/vga

2014-09-05 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Sep 5 18:11:39 2014 New Revision: 271180 URL: http://svnweb.freebsd.org/changeset/base/271180 Log: vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode MFC after:3 days Modified: head/sys/dev/vt/hw/vga/vt_vga.c Modified: head/sys/dev/vt/hw/vga/vt

svn commit: r270786 - head/sys/dev/vt

2014-08-29 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 29 08:20:03 2014 New Revision: 270786 URL: http://svnweb.freebsd.org/changeset/base/270786 Log: vt(4): Indicate that KDSETRAD case falls through the next case CID: 1229953 MFC after:1 week Modified: head/sys/dev/vt/vt_core.c Modified: head/s

svn commit: r270785 - head/sys/dev/vt

2014-08-29 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 29 08:16:31 2014 New Revision: 270785 URL: http://svnweb.freebsd.org/changeset/base/270785 Log: vt(4): Change vb_history_size from "int" to "unsigned int" CID: 1230002, 1230003 MFC after:1 week Modified: head/sys/dev/vt/vt.h head/sys/dev/vt

svn commit: r270750 - head/sys/dev/drm2/radeon

2014-08-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 28 12:40:31 2014 New Revision: 270750 URL: http://svnweb.freebsd.org/changeset/base/270750 Log: drm/radeon: Fix a memory leak when radeonkms is unloaded MFC after:1 week Modified: head/sys/dev/drm2/radeon/radeon_fb.c Modified: head/sys/dev/drm2/radeon/

svn commit: r270721 - head/sys/dev/vt

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 17:16:52 2014 New Revision: 270721 URL: http://svnweb.freebsd.org/changeset/base/270721 Log: vt(4): If the terminal shrinks, make sure the mouse is inside the new area MFC after:1 week Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt

svn commit: r270720 - in head/sys/dev: fb vt/hw/fb vt/hw/ofwfb

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 15:10:28 2014 New Revision: 270720 URL: http://svnweb.freebsd.org/changeset/base/270720 Log: vt(4): Fix mouse cursor handling in vt_fb/creator_vt/ofwfb There were two issues: 1. The area given to vt_is_cursor_in_area() was adding the drawable

svn commit: r270708 - head/sys/dev/vt

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 11:27:48 2014 New Revision: 270708 URL: http://svnweb.freebsd.org/changeset/base/270708 Log: vt(4): Recompute the drawable area when the resolution changes This was only done when the font changed. MFC after:1 week Modified: head/sys/dev/vt/vt_c

svn commit: r270707 - head/sys/dev/vt

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 11:08:09 2014 New Revision: 270707 URL: http://svnweb.freebsd.org/changeset/base/270707 Log: vt(4): Pause the vt_flush() timer when the screen is up-to-date The timer is restarted whenever a window buffer is marked as dirty or the mouse cursor moves.

svn commit: r270706 - head/sys/dev/drm2

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 10:07:08 2014 New Revision: 270706 URL: http://svnweb.freebsd.org/changeset/base/270706 Log: drm: Don't "taskqueue" vt-switch if under DDB/panic situation If DDB is active, we can't use a taskqueue thread to switch away from the X window, because this thr

svn commit: r270705 - in head/sys: dev/vt kern sys

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 10:04:10 2014 New Revision: 270705 URL: http://svnweb.freebsd.org/changeset/base/270705 Log: vt(4): Add cngrab() and cnungrab() callbacks They are used when a panic occurs or when entering a DDB session for instance. cngrab() forces a vt-switch to th

svn commit: r270702 - head/sys/dev/vt

2014-08-27 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Aug 27 09:34:41 2014 New Revision: 270702 URL: http://svnweb.freebsd.org/changeset/base/270702 Log: vt(4): Implement basic support for KDSETMODE ioctl With the current implementation, this allows an X11 server to tell the console it switches a particular window

svn commit: r270667 - head/sys/dev/vt

2014-08-26 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Aug 26 17:48:05 2014 New Revision: 270667 URL: http://svnweb.freebsd.org/changeset/base/270667 Log: vt(4): When creating a window buffer, fill it entirely ... not just the visible part. This fixes a bug where, when switching from eg. vt_vga to vt_fb (ie. the

svn commit: r270620 - head/sys/dev/vt/hw/vga

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 20:15:19 2014 New Revision: 270620 URL: http://svnweb.freebsd.org/changeset/base/270620 Log: vt_vga: Use Write Mode 0 to draw group of 8 pixels using 3 or more colors This replaces the method based on Write Mode 3, which required reads from the video memo

svn commit: r270618 - head/sys/dev/vt

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 19:52:13 2014 New Revision: 270618 URL: http://svnweb.freebsd.org/changeset/base/270618 Log: vt(4): Intialize drawable area rectangle each time a font is loaded This also fixes a problem where early in boot, the area was zero, leading to nothing displayed

svn commit: r270613 - in head/sys/dev: fb vt vt/hw/fb vt/hw/ofwfb vt/hw/vga

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 19:06:31 2014 New Revision: 270613 URL: http://svnweb.freebsd.org/changeset/base/270613 Log: vt(4): Store a rectangle for the drawable area, not just the top-left corner This allows backends to verify they do not draw outside of this area. This fixes a bu

svn commit: r270589 - head/sys/dev/vt

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 17:08:38 2014 New Revision: 270589 URL: http://svnweb.freebsd.org/changeset/base/270589 Log: vt(4): The cursor coordinates are relative to the drawn area ... not the whole screen. Don't use font offsets in vt_mark_mouse_position_as_dirty(). This fixe

svn commit: r270587 - head/sys/dev/vt

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 16:56:33 2014 New Revision: 270587 URL: http://svnweb.freebsd.org/changeset/base/270587 Log: vt(4): Take font offset into account in vt_is_cursor_in_area() This fixes a "General protection fault" in vt_vga, where vt_is_cursor_in_area() erroneously reporte

svn commit: r270572 - head/sys/modules/drm2

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 14:58:36 2014 New Revision: 270572 URL: http://svnweb.freebsd.org/changeset/base/270572 Log: drm/i915: Disable the build of i915 on PC98 This module is of no use on this platform and now, i915 depends on ACPI anyway. Suggested by: nyan@ Modified:

svn commit: r270571 - head/sys/modules/drm2/i915kms

2014-08-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Aug 25 14:55:56 2014 New Revision: 270571 URL: http://svnweb.freebsd.org/changeset/base/270571 Log: drm/i915: Add opt_acpi.h and acpi_if.h to the source files While here, sort the list of generated source files. Modified: head/sys/modules/drm2/i915kms/Makefile

svn commit: r270485 - head/sys/dev/vt/hw/vga

2014-08-24 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 24 14:39:33 2014 New Revision: 270485 URL: http://svnweb.freebsd.org/changeset/base/270485 Log: vt_vga: Fix the display of the splash screen MFC after:1 week Modified: head/sys/dev/vt/hw/vga/vt_vga.c Modified: head/sys/dev/vt/hw/vga/vt_vga.c ==

svn commit: r270448 - head/sys/dev/vt

2014-08-24 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 24 09:47:39 2014 New Revision: 270448 URL: http://svnweb.freebsd.org/changeset/base/270448 Log: vt(4): Fix order of arguments (x <-> y) when showing the splash screen MFC after:1 week Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_cor

svn commit: r270446 - head/sys/dev/vt

2014-08-24 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 24 09:22:03 2014 New Revision: 270446 URL: http://svnweb.freebsd.org/changeset/base/270446 Log: vt(4): Remove vd_bitbltchr_t It's replaced by vd_bitblt_text_t, which gives more context to the backend and allows it to perform more efficiently when redrawing a

svn commit: r270431 - in head/sys: dev/fb dev/vt dev/vt/hw/efifb dev/vt/hw/fb dev/vt/hw/ofwfb dev/vt/hw/vga powerpc/ps3

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 20:35:33 2014 New Revision: 270431 URL: http://svnweb.freebsd.org/changeset/base/270431 Log: vt(4): Add vd_bitblt_bmp_t callback The code was already there in all backends, we just expose it. This is used to display the splash screen. MFC after:1

svn commit: r270413 - head/sys/dev/vt/hw/ofwfb

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 15:05:11 2014 New Revision: 270413 URL: http://svnweb.freebsd.org/changeset/base/270413 Log: ofwfb: Implement vd_bitblt_text_t MFC after:1 week Modified: head/sys/dev/vt/hw/ofwfb/ofwfb.c Modified: head/sys/dev/vt/hw/ofwfb/ofwfb.c ===

svn commit: r270412 - head/sys/dev/fb

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 15:04:20 2014 New Revision: 270412 URL: http://svnweb.freebsd.org/changeset/base/270412 Log: creator_fb: Implement vd_bitblt_text_t MFC after:1 week Modified: head/sys/dev/fb/creator_vt.c Modified: head/sys/dev/fb/creator_vt.c ==

svn commit: r270411 - in head/sys: dev/vt/hw/efifb dev/vt/hw/fb powerpc/ps3

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 15:00:47 2014 New Revision: 270411 URL: http://svnweb.freebsd.org/changeset/base/270411 Log: vt_fb: Implement vd_bitblt_text_t for vt_fb and derivatives MFC after:1 week Modified: head/sys/dev/vt/hw/efifb/efifb.c head/sys/dev/vt/hw/fb/vt_early_fb.c

svn commit: r270404 - in head/sys/dev/vt: . hw/vga

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 11:46:52 2014 New Revision: 270404 URL: http://svnweb.freebsd.org/changeset/base/270404 Log: vt(4): Fix cursor handling in vt_flush() There were situations where the cursor was not erased/redrawn or its position was marked as dirty even though it's not di

svn commit: r270390 - head/sys/dev/vt

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 07:41:08 2014 New Revision: 270390 URL: http://svnweb.freebsd.org/changeset/base/270390 Log: vt(4): Fix a crash in vt_mark_mouse_position_as_dirty() when in textmode In textmode, no font is loaded, thus the page fault in vt_mark_mouse_position_as_dirty()

svn commit: r270388 - head/sys/dev/vt/hw/vga

2014-08-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Aug 23 07:02:57 2014 New Revision: 270388 URL: http://svnweb.freebsd.org/changeset/base/270388 Log: vt_vga: Give only the character part of term_char_t to vga_get_cp437() This fixes a bug where vga_get_cp437() was called with an invalid argument. The screen was

svn commit: r270343 - head/sys/dev/vt

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 17:49:24 2014 New Revision: 270343 URL: http://svnweb.freebsd.org/changeset/base/270343 Log: vt(4): Remove "FIXME" about multiple locking of vt_buf in vt_flush() After some testing, it appears that acquiring the lock once and keeping it longer is slower t

svn commit: r270342 - head/sys/dev/vt

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 17:09:31 2014 New Revision: 270342 URL: http://svnweb.freebsd.org/changeset/base/270342 Log: vt(4): Use the actual size of the mouse when marking its position as dirty This fixes a bug where part of the cursor was not erased. MFC after:1 week Modi

svn commit: r270341 - head/sys/dev/vt/hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 17:05:41 2014 New Revision: 270341 URL: http://svnweb.freebsd.org/changeset/base/270341 Log: vt_vga: Remove a "FIXME" comment; the issue was solved in r270338 MFC after:1 week Modified: head/sys/dev/vt/hw/vga/vt_vga.c Modified: head/sys/dev/vt/hw/vg

svn commit: r270340 - head/sys/dev/vt

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 16:30:26 2014 New Revision: 270340 URL: http://svnweb.freebsd.org/changeset/base/270340 Log: vt(4): Don't run vt_set_border() and vt_flush() concurrently In the case of vt_vga, the two concurrent calls were writing to the same VGA registers, causing incor

svn commit: r270338 - in head/sys/dev/vt: . hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 15:36:57 2014 New Revision: 270338 URL: http://svnweb.freebsd.org/changeset/base/270338 Log: vt(4): The offset to center the text area is per-window now The previous global offset, based on the last loaded font, had no meaning for other windows. This caus

svn commit: r270336 - in head/sys/dev/vt: . hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 15:16:41 2014 New Revision: 270336 URL: http://svnweb.freebsd.org/changeset/base/270336 Log: vt(4): Give the window to vd_bitblt_text_t callback ... instead of both the buffer and the font. Again, this simplifies the API. MFC after:1 week Modifi

svn commit: r270331 - in head/sys/dev/vt: . hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 14:31:53 2014 New Revision: 270331 URL: http://svnweb.freebsd.org/changeset/base/270331 Log: vt(4): Store cursor bitmap & colors in struct vt_device This removes the need to specify them to each call to vd_bitblt_text_t and, therefore, simplifies the API.

svn commit: r270329 - head/sys/dev/vt

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 13:48:33 2014 New Revision: 270329 URL: http://svnweb.freebsd.org/changeset/base/270329 Log: vt(4): Mark new mouse position as dirty only when it's actually displayed MFC after:1 week Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_

svn commit: r270324 - head/sys/dev/vt/hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 10:49:51 2014 New Revision: 270324 URL: http://svnweb.freebsd.org/changeset/base/270324 Log: vt_vga: Clip the draw area to never draw offscreen This fixes a bug when two windows use different fonts, but a longer-term solution is required. The dirty area s

svn commit: r270322 - in head/sys/dev/vt: . hw/vga

2014-08-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 22 08:22:40 2014 New Revision: 270322 URL: http://svnweb.freebsd.org/changeset/base/270322 Log: vt(4): Add new vd_bitblt_text_t callback, and implement it for vt_vga Compared to the deprecated vd_bitbltchr_t callback, vd_bitblt_text_t receives: o the

svn commit: r270299 - head/sys/dev/vt/hw/vga

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 20:10:05 2014 New Revision: 270299 URL: http://svnweb.freebsd.org/changeset/base/270299 Log: vt_vga: When clearing video memory, don't read from it The goal is to clear the video memory, in case an application drew to it. So the content shouldn't be loade

svn commit: r270293 - in head/sys/dev/vt: . font

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 19:42:24 2014 New Revision: 270293 URL: http://svnweb.freebsd.org/changeset/base/270293 Log: vt(4): Rename the "mouse_cursor" structure to "vt_mouse_cursor" At the same time, "w" and "h" members are now called "width" and "height". The goal is to have a m

svn commit: r270290 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 19:15:22 2014 New Revision: 270290 URL: http://svnweb.freebsd.org/changeset/base/270290 Log: vt(4): Test if the cursor is shown only once Later, we just see if the "struct mouse_cursor" pointer is set. This avoids the need to mess with all the conditions

svn commit: r270288 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 18:26:32 2014 New Revision: 270288 URL: http://svnweb.freebsd.org/changeset/base/270288 Log: vt(4): Constify vt_buf argument of vtbuf_iscursor() MFC after:1 week Modified: head/sys/dev/vt/vt.h head/sys/dev/vt/vt_buf.c Modified: head/sys/dev/vt/vt.

svn commit: r270280 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 15:55:18 2014 New Revision: 270280 URL: http://svnweb.freebsd.org/changeset/base/270280 Log: vt(4): Pause the flush timer while swithing window This fixes bad looking refresh when switching window: squares instead of text, flashing screen, and so on. In t

svn commit: r270278 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 15:14:54 2014 New Revision: 270278 URL: http://svnweb.freebsd.org/changeset/base/270278 Log: vt(4): Mark cursor position as dirty when we enable/disable it MFC after:1 week Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_core.c

svn commit: r270275 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 15:00:21 2014 New Revision: 270275 URL: http://svnweb.freebsd.org/changeset/base/270275 Log: vt(4): Mark the current cursor position as dirty Like r270273, this has no effect for now, because the cursor is always drawn. This is in preparation of future ch

svn commit: r270273 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 14:54:37 2014 New Revision: 270273 URL: http://svnweb.freebsd.org/changeset/base/270273 Log: vt(4): If the cursor didn't move, don't mark its position as dirty Currently, this has no effect, because the cursor is always redrawn anyway. But this will be us

svn commit: r270272 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 14:12:11 2014 New Revision: 270272 URL: http://svnweb.freebsd.org/changeset/base/270272 Log: vt(4): If the cursor is globally disabled, don't mark its position as dirty This avoids unnecessary redraw. In particular, during boot, where the cursor is disabl

svn commit: r270271 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 13:28:48 2014 New Revision: 270271 URL: http://svnweb.freebsd.org/changeset/base/270271 Log: vt(4): Mark cursor old position as dirty before reading the dirty area Otherwise, the redraw is done during the next vt_flush run. MFC after:1 week Modifi

svn commit: r270269 - head/sys/dev/vt

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 13:04:34 2014 New Revision: 270269 URL: http://svnweb.freebsd.org/changeset/base/270269 Log: vt(4): Handle global and per-window mouse cursor toggle in one place Before the global flag was set/unset using the CONS_MOUSECTL ioctl, and the per-window flag t

svn commit: r270265 - head/sys/dev/vt/font

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 10:54:39 2014 New Revision: 270265 URL: http://svnweb.freebsd.org/changeset/base/270265 Log: vt(4): Fix an inconsistency between the mouse cursor bitmap and its mask MFC after:1 week Modified: head/sys/dev/vt/font/vt_mouse_cursor.c Modified: head/sy

svn commit: r269791 - in head/sys: arm/freescale/imx powerpc/ps3

2014-08-10 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 10 22:24:14 2014 New Revision: 269791 URL: http://svnweb.freebsd.org/changeset/base/269791 Log: Fix two files forgotten in r269783 (vt_generate_cons_palette) Reported by: bz MFC after:1 week MFC with: 269783 Modified: head/sys/arm/freescale/imx

svn commit: r269783 - in head/sys/dev: fb vt/colors vt/hw/efifb vt/hw/fb vt/hw/ofwfb

2014-08-10 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 10 17:04:10 2014 New Revision: 269783 URL: http://svnweb.freebsd.org/changeset/base/269783 Log: vt(4): Colors are indexed against a console palette, not a VGA palette Rename vt_generate_vga_palette() to vt_generate_cons_palette() and change it to build a pal

svn commit: r269780 - head/sys/dev/vt

2014-08-10 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 10 15:02:51 2014 New Revision: 269780 URL: http://svnweb.freebsd.org/changeset/base/269780 Log: vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice In several functions, vtbuf_putchar() in particular, the lock on vtbuf is acquired twice: 1.

svn commit: r269779 - head/sys/dev/fb

2014-08-10 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Aug 10 14:55:39 2014 New Revision: 269779 URL: http://svnweb.freebsd.org/changeset/base/269779 Log: fbd: Fix a bug where vt_fb_attach() success would be considered a failure vt_fb_attach() currently always returns 0, but it could return a code defined in errno.h

svn commit: r269729 - in head/usr.bin/sed: . tests

2014-08-08 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Aug 8 17:29:01 2014 New Revision: 269729 URL: http://svnweb.freebsd.org/changeset/base/269729 Log: sed(1): Don't force a newline on last line, if input stream doesn't have one While here, change how we check if the current line is the last one. Before, we just

svn commit: r265262 - in head/sys: dev/drm2/radeon modules/drm2/radeonkms

2014-05-03 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat May 3 11:23:10 2014 New Revision: 265262 URL: http://svnweb.freebsd.org/changeset/base/265262 Log: drm/radeon: Add 32bit ioctls support This allows to run 32bit applications on a 64bit host. This was tested successfully with Wine (emulators/i386-wine-devel) and

svn commit: r264970 - head/bin/date

2014-04-26 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Apr 26 13:53:04 2014 New Revision: 264970 URL: http://svnweb.freebsd.org/changeset/base/264970 Log: date(1): Forgot to update manpage date in r264968 MFC after:1 week MFC with: 264968 Modified: head/bin/date/date.1 Modified: head/bin/date/date.1

svn commit: r264968 - head/bin/date

2014-04-26 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Apr 26 13:05:56 2014 New Revision: 264968 URL: http://svnweb.freebsd.org/changeset/base/264968 Log: date(1): Add "-R" flag to use RFC 2822 date and time output format As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z" as the output format

svn commit: r259717 - head/sys/dev/drm2

2013-12-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Dec 22 11:11:23 2013 New Revision: 259717 URL: http://svnweb.freebsd.org/changeset/base/259717 Log: drm: Lower priority of "EDID checksum is invalid" message The priority goes from "error" to "debug". Connectors are polled every 10 seconds. Reading EDID is pa

svn commit: r259684 - in head/sys/dev/drm2: radeon ttm

2013-12-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Dec 21 15:40:36 2013 New Revision: 259684 URL: http://svnweb.freebsd.org/changeset/base/259684 Log: drm/ttm, drm/radeon: Replace EINTR/ERESTART by ERESTARTSYS... ... for msleep/cv_*wait() return values, where wait_event*() is used on Linux. ERESTARTSYS is the re

svn commit: r259679 - head/sys/dev/pci

2013-12-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Dec 21 12:55:42 2013 New Revision: 259679 URL: http://svnweb.freebsd.org/changeset/base/259679 Log: vga_pci: Improve boot display detection The previous code was checking the "VGA Enable" bit on the video card's parent PCI-to-PCI bridge only. This didn't work fo

svn commit: r259104 - head/sys/dev/drm2/radeon

2013-12-08 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Dec 8 18:48:07 2013 New Revision: 259104 URL: http://svnweb.freebsd.org/changeset/base/259104 Log: drm/radeon: radeon_dp_i2c_aux_ch() must return 0 on FreeBSD The code was unmodified compared to Linux and returned the amount of received bytes from the i2c bus.

svn commit: r259101 - head/sys/dev/drm2/radeon

2013-12-08 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Dec 8 14:21:54 2013 New Revision: 259101 URL: http://svnweb.freebsd.org/changeset/base/259101 Log: drm/radeon: agp_info->ai_aperture_size is in bytes, not Mbytes This fixes radeon_agp_init() and gtt_size is now correct. However, this is not enough to make Radeo

svn commit: r258930 - head/sys/dev/drm2

2013-12-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Dec 4 19:04:56 2013 New Revision: 258930 URL: http://svnweb.freebsd.org/changeset/base/258930 Log: drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge Before this fix, capabilities were read from vgapci and were incorrect. Modified: head/sys/dev/drm2/

svn commit: r258553 - head/sys/dev/drm2

2013-11-25 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Nov 25 15:01:59 2013 New Revision: 258553 URL: http://svnweb.freebsd.org/changeset/base/258553 Log: drm: Fix build with gcc, broken with r258549 The code was easier to read without __DECONST and clang didn't report any error. I thought the cast was enough...

  1   2   >