]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Dec 2021 03:41:18 +0000 (22:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Dec 2021 13:57:45 +0000 (08:57 -0500)
commit5b420328f1c5cd9f30132fd676ec2dab2e2203fb
tree99046d1e82c89d6ada5ba24bcd99bc44cbe544b6
parent2402360db2ed0cca313bc0ec79464a34edf4941d
fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb

Add a function for drivers to check if the a firmware initialized
fb is corresponds to their aperture.  This allows drivers to check if the
device corresponds to what the firmware set up as the display device.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215203
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1840
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/video/fbdev/core/fbmem.c
include/linux/fb.h