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

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

2021-03-02 Thread Alex Deucher
On Mon, Mar 1, 2021 at 12:11 PM Mark Yacoub wrote: > > When creating a new framebuffer, verify that the bo size associated with > it can handle the fb size. > drm_gem_fb_init_with_funcs implements this check by calculating the > minimum expected size of each plane. amdgpu now uses this function to

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

2021-03-01 Thread Mark Yacoub
When creating a new framebuffer, verify that the bo size associated with it can handle the fb size. drm_gem_fb_init_with_funcs implements this check by calculating the minimum expected size of each plane. amdgpu now uses this function to initialize its fb as it performs the required checks. The bu

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

2021-02-26 Thread Mark Yacoub
When creating a new framebuffer, verify that the bo size associated with it can handle the fb size. drm_gem_fb_init_with_funcs implements this check by calculating the minimum expected size of each plane. amdgpu now uses this function to initialize its fb as it performs the required checks. The bu

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

2021-02-26 Thread Mark Yacoub
When creating a new framebuffer, verify that the bo size associated with it can handle the fb size. drm_gem_fb_init_with_funcs implements this check by calculating the minimum expected size of each plane. amdgpu now uses this function to initialize its fb as it performs the required checks. The bu