]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Cut out the infamous ILK w/a from AGP layer
authorBen Widawsky <ben@bwidawsk.net>
Fri, 18 Jan 2013 20:30:31 +0000 (12:30 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 12:11:11 +0000 (13:11 +0100)
commita81cc00c11ab6816fbcb7dd99a60b50e71765d25
tree506c92848c259bfa397e69d805508511e2024458
parentabedc077b45eff0b5a8630af8431ad5d59213582
drm/i915: Cut out the infamous ILK w/a from AGP layer

And, move it to where the rest of the logic is.

There is some slight functionality changes. There was extra paranoid
checks in AGP code making sure we never do idle maps on gen2 parts. That
was not duplicated as the simple PCI id check should do the right thing.

v2: use IS_GEN5 && IS_MOBILE check instead. For now, this is the same as
IS_IRONLAKE_M but is more future proof. The workaround docs hint that
more than one platform may be effected, but we've never seen such a
platform in the wild. (Rodrigo, Daniel)

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> (v1)
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/char/agp/intel-gtt.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c
include/drm/intel-gtt.h