]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: generalize pte vs. register BAR allocation
authorBen Widawsky <ben@bwidawsk.net>
Tue, 9 Apr 2013 01:43:47 +0000 (18:43 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:11 +0000 (09:43 +0200)
commitb9d3cef424c2502c2200cbeb0072300bba181349
tree6d876e3c5e6831b2b4ec23c3e30782dfb7648e6b
parentc365ec3e08a075378b4be532f0560feae8564ac8
drm/i915: generalize pte vs. register BAR allocation

All gen6+ parts so far have 1 BAR which holds both the register space
and the GTT PTEs. Up until now, that was a 4MB BAR with half allocated
to each.

I have a strong hunch (wink, nod, wink) that future gens will also keep
a similar 50-50 split though the sizes may change. To help this along
change the code to obey the rule of half the total size instead of a
hard-coded 2MB.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c