diff options
author | Eric Anholt <eric@anholt.net> | 2015-12-29 00:25:41 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-02-16 22:24:08 +0300 |
commit | d8dbf44f13b91185c618219d912b246817a8d132 (patch) | |
tree | a8af3bb3b1e608514f93cd76b921c9e3d7ace76f /drivers/gpu/drm/vc4/vc4_drv.h | |
parent | 6674a904d68041d982ffb284d2827410765a097a (diff) | |
download | linux-d8dbf44f13b91185c618219d912b246817a8d132.tar.xz |
drm/vc4: Make the CRTCs cooperate on allocating display lists.
So far, we've only ever lit up one CRTC, so this has been fine. To
extend to more displays or more planes, we need to make sure we don't
run our display lists into each other.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index 4c734d087d7f..ae9802486080 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h @@ -149,7 +149,13 @@ struct vc4_v3d { struct vc4_hvs { struct platform_device *pdev; void __iomem *regs; - void __iomem *dlist; + u32 __iomem *dlist; + + /* Memory manager for CRTCs to allocate space in the display + * list. Units are dwords. + */ + struct drm_mm dlist_mm; + spinlock_t mm_lock; }; struct vc4_plane { |