drm/i915: Turn vgpu pdps into an array
authorVille Syrjälä <[email protected]>
Wed, 4 Nov 2015 21:20:12 +0000 (23:20 +0200)
committerVille Syrjälä <[email protected]>
Wed, 18 Nov 2015 12:35:42 +0000 (14:35 +0200)
commitab75bb5d852cf9a877a973c2174e7791d92554c5
tree7ada1495b917a48ce7323d400cd331ea96a0a84a
parent0d925ea02310fa5b99988bfe7942aa010f2a4723
drm/i915: Turn vgpu pdps into an array

We'll want to avoid performing arithmetic with register offsets, so
instead calculating the vgpu PDP as pdp0_lo+offset, make the PDPs
into an array. This way we can simply loop through them.

Cc: Eddie Dong <[email protected]>
Cc: Jike Song <[email protected]>
Cc: Kevin Tian <[email protected]>
Cc: Yu Zhang <[email protected]>
Cc: Zhi Wang <[email protected]>
Cc: Zhiyuan Lv <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Zhiyuan Lv <[email protected]>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_vgpu.h