Re: [PATCH] drm/amdgpu: Verify bo size can fit framebuffer size on init.

2021-03-08 Thread Alex Deucher
On Thu, Mar 4, 2021 at 2:15 PM Mark Yacoub wrote: > > From: Mark Yacoub > > To initialize the framebuffer, use drm_gem_fb_init_with_funcs which > verifies that the BO size can fit the FB size by calculating the minimum > expected size of each plane. > > The bug was caught using igt-gpu-tools test

[PATCH] drm/amdgpu: Verify bo size can fit framebuffer size on init.

2021-03-04 Thread Mark Yacoub
From: Mark Yacoub To initialize the framebuffer, use drm_gem_fb_init_with_funcs which verifies that the BO size can fit the FB size by calculating the minimum expected size of each plane. The bug was caught using igt-gpu-tools test: kms_addfb_basic.too-high and kms_addfb_basic.bo-too-small Test