linux/drivers/gpu/drm/amd
Mark Yacoub f258907fdd drm/amdgpu: Verify bo size can fit framebuffer size on init.
To initialize the framebuffer, call 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

Tested on ChromeOS Zork by turning on the display and running a YT
video.

=== Changes from v1 ===
1. Added new line under declarations.
2. Use C style comment.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Mark Yacoub <markyacoub@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-03-23 23:03:36 -04:00
..
acp
amdgpu drm/amdgpu: Verify bo size can fit framebuffer size on init. 2021-03-23 23:03:36 -04:00
amdkfd drm/amdkfd: Fix UBSAN shift-out-of-bounds warning 2021-03-23 23:00:57 -04:00
display drm/amd/display: remove duplicate include in dcn21 and gpio 2021-03-23 23:03:32 -04:00
include drm/amd/pm: add new data in metrics table 2021-03-23 23:00:28 -04:00
pm drm/amdgpu/swsmu: fix error return code of smu_v11_0_set_allowed_mask() 2021-03-23 23:03:18 -04:00