svn commit: r270184 - stable/9/sys/dev/vt

2014-08-19 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Aug 19 21:31:32 2014 New Revision: 270184 URL: http://svnweb.freebsd.org/changeset/base/270184 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: 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 pal

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 pal

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

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

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

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

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

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

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: 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: head/sys/dev/vt/vt_c

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: head/sys/dev/vt/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: 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: 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: 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: 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. In

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 connector

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 preferr

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 configuratio

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 Date: Tue May 21 06:23:43 2013 + drm: fix a use-after-free

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 th

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: 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 stable/10

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

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

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

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

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

<    1   2   3