OSDN Git Service

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)
commit9a45ac2320d0a6ae01880a30d4b86025fce4061b
tree99046d1e82c89d6ada5ba24bcd99bc44cbe544b6
parenteaa090538e8d21801c6d5f94590c3799e6a528b5
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