Fix the code that sets up the MCH BAR on systems where the (buggy) BIOS
authorkettenis <kettenis@openbsd.org>
Sat, 17 Oct 2015 21:41:12 +0000 (21:41 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 17 Oct 2015 21:41:12 +0000 (21:41 +0000)
commita9dc3db1569ff451f89df32c906cbebfc82b0bd8
treed9b5c77efb742f2acfe0875cfa9251b956855be1
parente8dc0357218dcf72f3bb6c2af3edf8a339dd44ae
Fix the code that sets up the MCH BAR on systems where the (buggy) BIOS
doesn't do this for us.  The code was poking registers on the wrong PCI
device.  We were just lucky that it worked on most systems.

This should fix machines such as the Asus EeePC 701 and get rid of the

error: [drm:pid0:i915_gem_detect_bit_6_swizzle] *ERROR* Couldn't read from
MC HBAR.  Disabling tiling.

messages on that machine.
sys/dev/pci/drm/drm_linux.h
sys/dev/pci/drm/i915/i915_dma.c
sys/dev/pci/drm/i915/i915_drv.c
sys/dev/pci/drm/i915/i915_drv.h