1. 10 6月, 2014 1 次提交
    • D
      drm/i915: Kick out vga console · a4de0526
      Daniel Vetter 提交于
      Touching the VGA resources on an IVB EFI machine causes hard hangs when
      we then kick out the efifb. Ouch.
      
      Apparently this also prevents unclaimed register errors on hsw and
      hard machine hangs on my i855gm when trying to unbind fbcon.
      
      Also, we want this to make I915_FBDEV=n safe.
      
      v2: Rebase and pimp commit message.
      
      v3: We also need to unregister the vga console, otherwise the unbind
      of the fb console before module unload might resurrect it again.
      
      v4: Ignore errors when the vga console is already unregistered - this
      can happen when e.g. reloading i915.ko.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67813
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: linux-fbdev@vger.kernel.org
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Acked-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a4de0526
  2. 29 5月, 2014 2 次提交
    • T
      console: Use explicit pointer type for vc_uni_pagedir* fields · e4bdab70
      Takashi Iwai 提交于
      The vc_data.vc_uni_pagedir filed is currently long int, supposedly to
      be served generically.  This, however, leads to lots of cast to
      pointer, and rather it worsens the readability significantly.
      
      Actually, we have now only a single uni_pagedir map implementation,
      and this won't change likely.  So, it'd be much more simple and
      error-prone to just use the exact pointer for struct uni_pagedir
      instead of long.
      
      Ditto for vc_uni_pagedir_loc.  It's a pointer to the uni_pagedir, thus
      it can be changed similarly to the exact type.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e4bdab70
    • T
      vgacon: Fix & cleanup refcounting · 0f2893f0
      Takashi Iwai 提交于
      The vgacon driver prepares a two element array of uni_pagedir_loc and
      uses the second item as its own reference counter for sharing the
      uni_pagedir.  And the code assumes blindly that the second item is
      available if the assigned vc_uni_pagedir isn't the standard one, which
      might be wrong (although currently it's so).
      
      This patch fixes that wrong assumption, and gives a slight cleanup
      along with it: namely, instead of array, just give the uni_pagedir_loc
      and a separate refcount variable.  It makes the code a bit more
      understandable at first glance.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0f2893f0
  3. 27 6月, 2013 1 次提交
  4. 26 6月, 2013 1 次提交
  5. 07 2月, 2013 1 次提交
    • D
      vgacon/vt: clear buffer attributes when we load a 512 character font (v2) · 2a248307
      Dave Airlie 提交于
      When we switch from 256->512 byte font rendering mode, it means the
      current contents of the screen is being reinterpreted. The bit that holds
      the high bit of the 9-bit font, may have been previously set, and thus
      the new font misrenders.
      
      The problem case we see is grub2 writes spaces with the bit set, so it
      ends up with data like 0x820, which gets reinterpreted into 0x120 char
      which the font translates into G with a circumflex. This flashes up on
      screen at boot and is quite ugly.
      
      A current side effect of this patch though is that any rendering on the
      screen changes color to a slightly darker color, but at least the screen
      no longer corrupts.
      
      v2: as suggested by hpa, always clear the attribute space, whether we
      are are going to or from 512 chars.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      2a248307
  6. 13 9月, 2011 1 次提交
  7. 25 1月, 2011 1 次提交
  8. 14 1月, 2011 1 次提交
    • Y
      vgacon: check for efi machine · 554ec37a
      Yannick Heneault 提交于
      It seems there is a small problem of VGA palette corruption on EFI
      machine.  When the kernel initializes the architecture, it checks if the
      machine is a EFI machine and assumes that a VGA console can exist.
      
      When it initializes the console in vgacon_startup it checks if it can
      really use the VGA console.  I think this is where a check is missing.
      Currently, the function can fail if a VESA boot mode is detected but not if
      a EFI boot mode was used.
      
      Thus vgacon_startup() doesn't fail and initialize the video card for a real
      VGA mode.  This function changes the first 16entries of the VGA palette.
      
      When the efifb driver kicks in, the palette is not restored to default
      ramp value, thus the 16 first entry remain in a modified state.  The
      following patch prevent this corruption.
      Signed-off-by: NYannick Heneault <yheneaul@matrox.com>
      Cc: Dave Airlie <airlied@linux.ie>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      554ec37a
  9. 18 11月, 2010 1 次提交
  10. 11 8月, 2010 2 次提交
  11. 07 3月, 2010 1 次提交
  12. 14 11月, 2009 2 次提交
  13. 23 9月, 2009 1 次提交
  14. 20 9月, 2009 1 次提交
  15. 12 6月, 2009 1 次提交
  16. 03 5月, 2009 1 次提交
  17. 06 1月, 2009 1 次提交
  18. 29 12月, 2008 1 次提交
    • D
      DRM: add mode setting support · f453ba04
      Dave Airlie 提交于
      Add mode setting support to the DRM layer.
      
      This is a fairly big chunk of work that allows DRM drivers to provide
      full output control and configuration capabilities to userspace.  It was
      motivated by several factors:
        - the fb layer's APIs aren't suited for anything but simple
          configurations
        - coordination between the fb layer, DRM layer, and various userspace
          drivers is poor to non-existent (radeonfb excepted)
        - user level mode setting drivers makes displaying panic & oops
          messages more difficult
        - suspend/resume of graphics state is possible in many more
          configurations with kernel level support
      
      This commit just adds the core DRM part of the mode setting APIs.
      Driver specific commits using these new structure and APIs will follow.
      
      Co-authors: Jesse Barnes <jbarnes@virtuousgeek.org>, Jakob Bornecrantz <jakob@tungstengraphics.com>
      Contributors: Alan Hourihane <alanh@tungstengraphics.com>, Maarten Maathuis <madman2003@gmail.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      f453ba04
  19. 17 10月, 2008 2 次提交
  20. 15 10月, 2008 1 次提交
  21. 29 4月, 2008 1 次提交
    • J
      vt: fix background color on line feed · c9e587ab
      Jan Engelhardt 提交于
      A command that causes a line feed while a background color is active,
      such as
      
      	perl -e 'print "x" x 60, "\e[44m", "x" x 40, "\e[0m\n"'
      and
      	perl -e 'print "x" x 40, "\e[44m\n", "x" x 40, "\e[0m\n"'
      
      causes the line that was started as a result of the line feed to be completely
      filled with the currently active background color instead of the default
      color.
      
      When scrolling, part of the current screen is memcpy'd/memmove'd to the new
      region, and the new line(s) that will appear as a result are cleared using
      memset.  However, the lines are cleared with vc->vc_video_erase_char, causing
      them to be colored with the currently active background color.  This is
      different from X11 terminal emulators which always paint the new lines with
      the default background color (e.g.  `xterm -bg black`).
      
      The clear operation (\e[1J and \e[2J) also use vc_video_erase_char, so a new
      vc->vc_scrl_erase_char is introduced with contains the erase character used
      for scrolling, which is built from vc->vc_def_color instead of vc->vc_color.
      Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c9e587ab
  22. 07 2月, 2008 1 次提交
  23. 17 10月, 2007 3 次提交
  24. 22 7月, 2007 1 次提交
  25. 17 5月, 2007 1 次提交
  26. 09 5月, 2007 3 次提交
  27. 03 5月, 2007 1 次提交
  28. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  29. 09 12月, 2006 1 次提交
  30. 11 7月, 2006 2 次提交
  31. 01 7月, 2006 1 次提交