]> 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)
commit4d58fb9b9e8a865abc2ccb399f99aded863c4997
tree99046d1e82c89d6ada5ba24bcd99bc44cbe544b6
parentac5de83d5a67f281ea0f83a2f7bb8e67a7cc5eb7
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