This will allow the connector to show luminance information for
eDP panels.

Signed-off-by: Mario Limonciello <[email protected]>
---
 drivers/gpu/drm/xe/xe_device.c | 3 ++-
 include/drm/drm_drv.h          | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index ee732e5495f7d..661f76fac3f35 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -397,7 +397,8 @@ static const struct drm_driver regular_driver = {
            XE_DISPLAY_DRIVER_FEATURES |
            DRIVER_GEM |
            DRIVER_RENDER | DRIVER_SYNCOBJ |
-           DRIVER_SYNCOBJ_TIMELINE,
+           DRIVER_CONNECTOR_LUMINANCE |
+           DRIVER_SYNCOBJ_TIMELINE | DRIVER_GEM_GPUVA,
        .open = xe_file_open,
        .postclose = xe_file_close,
 
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index 449160b9863f6..bda0f0bd7b16b 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -125,6 +125,13 @@ enum drm_driver_feature {
         */
        DRIVER_CONNECTOR_LUMINANCE           = BIT(10),
 
+       /**
+        * @DRIVER_GEM_GPUVA:
+        *
+        * Driver supports GEM GPU virtual addressing.
+        */
+       DRIVER_GEM_GPUVA               = BIT(11),
+
        /* IMPORTANT: Below are all the legacy flags, add new ones above. */
 
        /**
-- 
2.43.0

Reply via email to