1. 04 9月, 2013 1 次提交
    • A
      i915: Update VGA arbiter support for newer devices · 81b5c7bc
      Alex Williamson 提交于
      This is intended to add VGA arbiter support for Intel HD graphics on
      Core processors.  The old GMCH registers no longer exist, so even
      though it appears that i915 participates in VGA arbitration, it doesn't
      work.  On Intel HD graphics we already attempt to disable VGA regions
      of the device.  This makes registering as a VGA client unnecessary since
      we don't intend to operate differently depending on how many VGA devices
      are present.  We can disable VGA memory regions by clearing the memory
      enable bit in the VGA MSR.  That only leaves VGA IO, which we update
      the VGA arbiter to know that we don't participate in VGA memory
      arbitration.  We also add a hook on unload to re-enable memory and
      reinstate VGA memory arbitration.
      
      v3: Use explicit LEGACY_IO | LEGACY_MEM when restoring rather than
          LEGACY_MASK, per Ville's comments.
      
      v2: I915_READ/WRITE accessors don't work in i915_disable_vga, use inb/outb
          directly.  Also, on the driver unbind VGA enable path, acquire legacy
          IO to re-enable VGA memory.  Correct comment.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      [danvet: Add patch changelog. Also squash in a fixup to have a dummy
      static inline for vga_set_legacy_decoding for CONFIG_VGA_ARB=n as
      reported by the 0-day kernel build bot.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      
      fixup 2
      81b5c7bc
  2. 19 11月, 2012 1 次提交
  3. 03 5月, 2012 2 次提交
  4. 24 4月, 2012 1 次提交
  5. 11 4月, 2012 1 次提交
    • R
      vgaarb.h: fix build warnings · 6069a4c9
      Randy Dunlap 提交于
      Fix build warnings by providing a struct stub since no fields of
      the struct are used:
      
      include/linux/vgaarb.h:66:9: warning: 'struct pci_dev' declared inside parameter list
      include/linux/vgaarb.h:66:9: warning: its scope is only this definition or declaration, which is probably not what you want
      include/linux/vgaarb.h:99:34: warning: 'struct pci_dev' declared inside parameter list
      include/linux/vgaarb.h:109:6: warning: 'struct pci_dev' declared inside parameter list
      include/linux/vgaarb.h:121:8: warning: 'struct pci_dev' declared inside parameter list
      include/linux/vgaarb.h:140:37: warning: 'struct pci_dev' declared inside parameter list
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6069a4c9
  6. 31 3月, 2011 1 次提交
  7. 27 8月, 2010 1 次提交
  8. 12 8月, 2010 1 次提交
  9. 21 7月, 2010 1 次提交
  10. 03 6月, 2010 1 次提交
  11. 23 9月, 2009 1 次提交
  12. 18 9月, 2009 1 次提交
  13. 10 9月, 2009 2 次提交