]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: add multi-threaded forcewake support
authorKeith Packard <keithp@keithp.com>
Sat, 19 Nov 2011 04:39:01 +0000 (20:39 -0800)
committerGuangyu Sun <guangyu.sun@oracle.com>
Thu, 8 Nov 2012 19:33:31 +0000 (11:33 -0800)
commit463faaa6dd7578dc9b264c96c5549ec3a57f279b
treec8b6241119ae8f0861d1624c2fbc76e50f003e1f
parentc3dd3f899929abffc74574bd9beb049b64d1f968
drm/i915: add multi-threaded forcewake support

Orabug: 15851255

On IVB C0+ with newer BIOSes, the forcewake handshake has changed.  There's
now a bitfield for different driver components to keep the GT powered
on.  On Linux, we centralize forcewake handling in one place, so we
still just need a single bit, but we need to use the new registers if MT
forcewake is enabled.

This needs testing on affected machines.  Please reply with your
tested-by if you had problems after a BIOS upgrade and this patch fixes
them.

v2: force MT mode. shift by 16
v3: set MT force wake bits then check ECOBUS

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42923
Tested-by: Manoj Iyer <manoj.iyer@canonical.com>
Tested-by: Robert Hooker <robert.hooker@canonical.com>
Tested-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Conflicts:

drivers/gpu/drm/i915/i915_drv.h

Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c