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: r282217 - in stable/10/sys/modules/drm2: . radeonkmsfw

2015-04-29 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Wed Apr 29 12:54:21 2015 New Revision: 282217 URL: https://svnweb.freebsd.org/changeset/base/282217 Log: drm: Allow parallel builds of drivers and firmwares Submitted by: hps@ MFC of: r279600 Modified: stable/10/sys/modules/drm2/Makefile

svn commit: r282141 - stable/10/sys/dev/drm2

2015-04-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Apr 28 12:37:09 2015 New Revision: 282141 URL: https://svnweb.freebsd.org/changeset/base/282141 Log: DRM2: fix off-by-one overflow in ioctl processing Call to the driver-specific ioctl used to process ioctl number that will lead to the out-of-bounds access to

svn commit: r282140 - stable/10/sys/dev/drm2

2015-04-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Apr 28 12:02:24 2015 New Revision: 282140 URL: https://svnweb.freebsd.org/changeset/base/282140 Log: drm: Import Linux commit b7ea85a4fed37835eec78a7be3039c8dc22b8178 Author: Huacai Chen che...@lemote.com Date: Tue May 21 06:23:43 2013 + drm: fix

svn commit: r282199 - in stable/10/sys: dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/drm2/ttm modules modules/drm2 modules/drm2/drm2 modules/drm2/radeonkms

2015-04-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Apr 28 19:35:05 2015 New Revision: 282199 URL: https://svnweb.freebsd.org/changeset/base/282199 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: 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ä ville.syrj...@linux.intel.com Date: Fri May 31 12:17:08 2013 +

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: 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 che...@lemote.com Date: Tue May 21 06:23:43 2013 + drm: fix

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

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:

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

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

svn commit: r274860 - in stable/10/sys: dev/vt kern sys

2014-11-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 22 16:55:55 2014 New Revision: 274860 URL: https://svnweb.freebsd.org/changeset/base/274860 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.

svn commit: r274861 - stable/10/sys/dev/vt

2014-11-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 22 17:10:57 2014 New Revision: 274861 URL: https://svnweb.freebsd.org/changeset/base/274861 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: r274862 - in stable/10/sys/dev/drm2: . radeon

2014-11-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 22 17:19:39 2014 New Revision: 274862 URL: https://svnweb.freebsd.org/changeset/base/274862 Log: drm: Lower priority of three messages related to invalid EDID Like in r259717, the prority goes from error to debug to avoid spamming logs when the connectors

svn commit: r274865 - in stable/10: share/man/man4 sys/dev/drm2

2014-11-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 22 17:37:51 2014 New Revision: 274865 URL: https://svnweb.freebsd.org/changeset/base/274865 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

svn commit: r274868 - stable/10/sys/dev/vt

2014-11-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sat Nov 22 17:47:03 2014 New Revision: 274868 URL: https://svnweb.freebsd.org/changeset/base/274868 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

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 connectors

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: 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

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

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

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.

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: 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:

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 are

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: 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.

svn commit: r273921 - in stable/10: sys/dev/vt sys/sys usr.sbin/vidcontrol

2014-10-31 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Fri Oct 31 23:10:58 2014 New Revision: 273921 URL: https://svnweb.freebsd.org/changeset/base/273921 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: 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: r273545 - stable/10/sys/dev/vt

2014-10-23 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Oct 23 13:32:01 2014 New Revision: 273545 URL: https://svnweb.freebsd.org/changeset/base/273545 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

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

svn commit: r273103 - releng/10.1/sys/dev/vt

2014-10-14 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Oct 14 19:01:11 2014 New Revision: 273103 URL: https://svnweb.freebsd.org/changeset/base/273103 Log: vt(4): Save/restore keyboard mode LED states when switching window MF10: r273036 MFC: r272416 Add new functions to manipulate these mode state, instead

svn commit: r273104 - releng/10.1/sys/dev/vt

2014-10-14 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Oct 14 19:10:00 2014 New Revision: 273104 URL: https://svnweb.freebsd.org/changeset/base/273104 Log: vt(4): Don't recalculate buffer size if we don't know screen size MF10: r273037 MFC: r272537 When the screen size is unknown, it's set to 0x0. We can't

svn commit: r273036 - stable/10/sys/dev/vt

2014-10-13 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Oct 13 13:50:51 2014 New Revision: 273036 URL: https://svnweb.freebsd.org/changeset/base/273036 Log: vt(4): Save/restore keyboard mode LED states when switching window (MFC of r272416) Add new functions to manipulate these mode state, instead of calling

svn commit: r273037 - stable/10/sys/dev/vt

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

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,

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()

svn commit: r271973 - stable/10/sys/dev/vt

2014-09-22 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Mon Sep 22 16:13:33 2014 New Revision: 271973 URL: http://svnweb.freebsd.org/changeset/base/271973 Log: vt(4): Merge several bug fixes and improvements SVN revisions in this MFC: 271756 271758 271868 271871 271872 271899 Detailed commit list: r271756:

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: 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: 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:

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:

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:

svn commit: r271769 - in stable/10/sys: dev/drm2 dev/fb dev/vt dev/vt/hw/efifb dev/vt/hw/fb dev/vt/hw/vga kern powerpc/ps3 sys

2014-09-18 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 18 14:38:18 2014 New Revision: 271769 URL: http://svnweb.freebsd.org/changeset/base/271769 Log: vt(4): Merge several bug fixes and improvements SVN revisions in this MFC: 269779 270705 270706 271180 271250 271253 271682 271684 Detailed commit list:

svn commit: r271816 - in stable/10/sys: dev/drm2 dev/drm2/i915 modules/drm2/i915kms sys

2014-09-18 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 18 20:32:40 2014 New Revision: 271816 URL: http://svnweb.freebsd.org/changeset/base/271816 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

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

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@

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

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

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

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: 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:

svn commit: r271090 - stable/10/sys/dev/drm2/radeon

2014-09-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 4 09:42:36 2014 New Revision: 271090 URL: http://svnweb.freebsd.org/changeset/base/271090 Log: drm/radeon: Fix a memory leak when radeonkms is unloaded This an MFC of r270750. Modified: stable/10/sys/dev/drm2/radeon/radeon_fb.c Directory Properties:

svn commit: r271091 - stable/9/sys/dev/drm2/radeon

2014-09-04 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Sep 4 09:49:21 2014 New Revision: 271091 URL: http://svnweb.freebsd.org/changeset/base/271091 Log: drm/radeon: Fix a memory leak when radeonkms is unloaded This an MFC of r270750. Modified: stable/9/sys/dev/drm2/radeon/radeon_fb.c Directory Properties:

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

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:

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:

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: 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

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

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: 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:

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: 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:

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: 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: 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: 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 reported

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

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

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

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

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

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:

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: 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: 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: 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

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

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: 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: 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:

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: 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

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:

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: 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

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

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

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:

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

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

svn commit: r270262 - in stable/10/sys: arm/freescale/imx dev/vt/colors dev/vt/hw/efifb dev/vt/hw/fb dev/vt/hw/ofwfb

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 10:18:42 2014 New Revision: 270262 URL: http://svnweb.freebsd.org/changeset/base/270262 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

svn commit: r270263 - in stable/9/sys/dev/vt: colors hw/fb hw/ofwfb

2014-08-21 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Thu Aug 21 10:25:35 2014 New Revision: 270263 URL: http://svnweb.freebsd.org/changeset/base/270263 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

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:

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

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

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

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

  1   2   3   >