mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
drm/vc4: plane: Change LBM alignment constraint on LBM
The HVS5 needs an alignment of 64bytes for its LBM memory, so let's reflect it. Tested-by: Chanwoo Choi <cw00.choi@samsung.com> Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com> Tested-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
committed by
popcornmix
parent
63608aae8a
commit
4dcae2d6a6
@@ -578,7 +578,9 @@ static int vc4_plane_allocate_lbm(struct drm_plane_state *state)
|
|||||||
spin_lock_irqsave(&vc4->hvs->mm_lock, irqflags);
|
spin_lock_irqsave(&vc4->hvs->mm_lock, irqflags);
|
||||||
ret = drm_mm_insert_node_generic(&vc4->hvs->lbm_mm,
|
ret = drm_mm_insert_node_generic(&vc4->hvs->lbm_mm,
|
||||||
&vc4_state->lbm,
|
&vc4_state->lbm,
|
||||||
lbm_size, 32, 0, 0);
|
lbm_size,
|
||||||
|
vc4->hvs->hvs5 ? 64 : 32,
|
||||||
|
0, 0);
|
||||||
spin_unlock_irqrestore(&vc4->hvs->mm_lock, irqflags);
|
spin_unlock_irqrestore(&vc4->hvs->mm_lock, irqflags);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|||||||
Reference in New Issue
Block a user