[PATCH 1/8] drm/meson: honor framebuffer offsets for the primary plane

Guillaume La Roque glaroque at baylibre.com
Wed Dec 2 03:55:01 PST 2026


Le 01/12/2026 à 09:21, Neil Armstrong a écrit :
> On 11/30/26 22:57, Guillaume La Roque wrote:
>> The canvas and AFBC decoder use the GEM object address directly. Include
>> the framebuffer plane offset so scanout starts at the requested buffer
> offset ?
right i'll fix in v2
>
>> within the object.
>>
>> Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic 
>> Controller")
>> Signed-off-by: Guillaume La Roque <glaroque at baylibre.com>
>> ---
>>   drivers/gpu/drm/meson/meson_plane.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/meson/meson_plane.c 
>> b/drivers/gpu/drm/meson/meson_plane.c
>> index 76eb8b80ad8a..639234d2f9d4 100644
>> --- a/drivers/gpu/drm/meson/meson_plane.c
>> +++ b/drivers/gpu/drm/meson/meson_plane.c
>> @@ -368,7 +368,7 @@ static void meson_plane_atomic_update(struct 
>> drm_plane *plane,
>>       /* Update Canvas with buffer address */
>>       gem = drm_fb_dma_get_gem_obj(fb, 0);
>>   -    priv->viu.osd1_addr = gem->dma_addr;
>> +    priv->viu.osd1_addr = gem->dma_addr + fb->offsets[0];
>>       priv->viu.osd1_stride = fb->pitches[0];
>>       priv->viu.osd1_height = fb->height;
>>       priv->viu.osd1_width = fb->width;
>>
>




More information about the linux-arm-kernel mailing list