[Nouveau] [PATCH 3/4] nouveau: fall back to ACPI EDID retrieval
Daniel Dadap
ddadap at nvidia.com
Mon Jul 27 20:53:56 UTC 2020
Fall back to retrieving the EDID via the ACPI _DDC method, when present
for notebook internal panels, when EDID retrieval via the standard EDID
paths is unsuccessful.
Signed-off-by: Daniel Dadap <ddadap at nvidia.com>
---
drivers/gpu/drm/nouveau/nouveau_connector.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index 9a9a7f5003d3..95836a02a06b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -581,6 +581,12 @@ nouveau_connector_detect(struct drm_connector *connector, bool force)
else
nv_connector->edid = drm_get_edid(connector, i2c);
+ if (!nv_connector->edid &&
+ (nv_connector->type == DCB_CONNECTOR_LVDS ||
+ nv_connector->type == DCB_CONNECTOR_eDP)) {
+ nv_connector->edid = drm_get_edid_acpi();
+ }
+
drm_connector_update_edid_property(connector,
nv_connector->edid);
if (!nv_connector->edid) {
--
2.18.4
More information about the Nouveau
mailing list