drm/i915: Make sure we don't detect eDP on g4x
Subsystems (2)
PATCH 1/2 drm/i915: Make sure we don't detect eDP on g4x
From: Ville Syrjälä <[email protected]>
We don't support eDP on g4x, so let's not even look at the VBT to determine the port type, just in case the VBT is bonkers on some g4x machines and indicates the precense of eDP.
--- drivers/gpu/drm/i915/intel_dp.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +7 -0
@@ -5250,6 +5250,13 @@ bool intel_dp_is_edp(struct drm_device *dev, enum port port) [PORT_E] = DVO_PORT_DPE, }; +/* +* eDP not supported on g4x. so bail out early just +* for a bit extra safety in case the VBT is bonkers. +*/ +if (INTEL_INFO (dev)->gen <5 ) +return false; +if (port ==PORT_A )return true;
Signature · 6 lines
2.4.6 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Ignore "digital output" and "not HDMI output" bits for eDP detection
From: Ville Syrjälä <[email protected]>
Ignore DEVICE_TYPE_NOT_HDMI_OUTPUT and DEVICE_TYPE_DIGITAL_OUTPUT when trying to determine the presence of eDP based on the VBT child device type. Apparently a significant portion of VLV systems have these bits set incorrectly, and so we currently fail to detect eDP on said systems.
This is based on an earlier patch [1] from Andreas Lampersperger. Instead of ignoring the bits just on VLV as was done in the orignal patch, we now ignore them for all platforms. We should still have enough bits in there to avoid false positives (unless the VBT is totally bonkers).
Quoting the orignal patch:
Quoted 8 lines
When the i915.ko identify an eDP output on a valleyview board, it should be more slackly. The reason for that is, that BIOS DATA TABLES generated with intel BMP (Binary Modification Program) do not set bits for
NOT_HDMIorDIGITAL_OUTPUTon the device type. Due to Adolfo Sanchez from Intel EMGD, this is not possible. To solve this problem and enable i915.ko on embedded vlv boards with eDP, we ignore this two bits.
[1] http://lists.freedesktop.org/archives/intel-gfx/2015-June/069416.html
--- drivers/gpu/drm/i915/intel_bios.h | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/intel_bios.h +0 -2
@@ -741,7 +741,6 @@ int intel_parse_bios(struct drm_device *dev);*/ #define DEVICE_TYPE_eDP_BITS \ (DEVICE_TYPE_INTERNAL_CONNECTOR | \ - DEVICE_TYPE_NOT_HDMI_OUTPUT | \ DEVICE_TYPE_MIPI_OUTPUT | \ DEVICE_TYPE_COMPOSITE_OUTPUT | \ DEVICE_TYPE_DUAL_CHANNEL | \
@@ -749,7 +748,6 @@ int intel_parse_bios(struct drm_device *dev);DEVICE_TYPE_TMDS_DVI_SIGNALING | \DEVICE_TYPE_VIDEO_SIGNALING | \DEVICE_TYPE_DISPLAYPORT_OUTPUT | \ -DEVICE_TYPE_DIGITAL_OUTPUT | \ DEVICE_TYPE_ANALOG_OUTPUT)/* define the DVO port for HDMI output type */
Signature · 6 lines
2.4.6 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Ignore "digital output" and "not HDMI output" bits for eDP detection
Quoted 23 lines · On Fri, 11 Sep 2015, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Ignore
DEVICE_TYPE_NOT_HDMI_OUTPUTandDEVICE_TYPE_DIGITAL_OUTPUTwhen trying to determine the presence of eDP based on the VBT child device type. Apparently a significant portion of VLV systems have these bits set incorrectly, and so we currently fail to detect eDP on said systems.This is based on an earlier patch [1] from Andreas Lampersperger. Instead of ignoring the bits just on VLV as was done in the orignal patch, we now ignore them for all platforms. We should still have enough bits in there to avoid false positives (unless the VBT is totally bonkers).
Quoting the orignal patch:
Quoted 8 lines
When the i915.ko identify an eDP output on a valleyview board, it should be more slackly. The reason for that is, that BIOS DATA TABLES generated with intel BMP (Binary Modification Program) do not set bits for
NOT_HDMIorDIGITAL_OUTPUTon the device type. Due to Adolfo Sanchez from Intel EMGD, this is not possible. To solve this problem and enable i915.ko on embedded vlv boards with eDP, we ignore this two bits.
Quoted 5 lines
[1] http://lists.freedesktop.org/archives/intel-gfx/2015-June/069416.html
Cc Andreas Lampersperger <[email protected]>Cc "Sanchez, AdolfoX" <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Only testing will tell for sure.
Quoted 31 lines
--- drivers/gpu/drm/i915/intel_bios.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/intel_bios.h +0
-2@@ -741,7 +741,6 @@ int intel_parse_bios(struct drm_device *dev);*/ #define DEVICE_TYPE_eDP_BITS \ (DEVICE_TYPE_INTERNAL_CONNECTOR | \ - DEVICE_TYPE_NOT_HDMI_OUTPUT | \ DEVICE_TYPE_MIPI_OUTPUT | \ DEVICE_TYPE_COMPOSITE_OUTPUT | \ DEVICE_TYPE_DUAL_CHANNEL | \@@ -749,7 +748,6 @@ int intel_parse_bios(struct drm_device *dev);DEVICE_TYPE_TMDS_DVI_SIGNALING | \DEVICE_TYPE_VIDEO_SIGNALING | \DEVICE_TYPE_DISPLAYPORT_OUTPUT | \ -DEVICE_TYPE_DIGITAL_OUTPUT | \ DEVICE_TYPE_ANALOG_OUTPUT)/* define the DVO port for HDMI output type */ Signature · 6 lines
2.4.6 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Ignore "digital output" and "not HDMI output" bits for eDP detection
Quoted 26 lines · Jani Nikula
Quoted 25 lines · On Fri, 11 Sep 2015, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Ignore
DEVICE_TYPE_NOT_HDMI_OUTPUTandDEVICE_TYPE_DIGITAL_OUTPUTwhen trying to determine the presence of eDP based on the VBT child device type. Apparently a significant portion of VLV systems have these bits set incorrectly, and so we currently fail to detect eDP on said systems.This is based on an earlier patch [1] from Andreas Lampersperger. Instead of ignoring the bits just on VLV as was done in the orignal patch, we now ignore them for all platforms. We should still have enough bits in there to avoid false positives (unless the VBT is totally bonkers).
Quoting the orignal patch:
Quoted 8 lines
When the i915.ko identify an eDP output on a valleyview board, it should be more slackly. The reason for that is, that BIOS DATA TABLES generated with intel BMP (Binary Modification Program) do not set bits for
NOT_HDMIorDIGITAL_OUTPUTon the device type. Due to Adolfo Sanchez from Intel EMGD, this is not possible. To solve this problem and enable i915.ko on embedded vlv boards with eDP, we ignore this two bits.[1] http://lists.freedesktop.org/archives/intel-gfx/2015-June/069416.html
Quoted 7 lines
Quoted 3 lines
Cc Andreas Lampersperger <[email protected]>Cc "Sanchez, AdolfoX" <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>Only testing will tell for sure.
Acked-by Jani Nikula <[email protected]>
Both applied to dinq, thanks.
-Daniel
Quoted 40 lines
Quoted 33 lines
--- drivers/gpu/drm/i915/intel_bios.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/intel_bios.h +0
-2@@ -741,7 +741,6 @@ int intel_parse_bios(struct drm_device *dev);*/ #define DEVICE_TYPE_eDP_BITS \ (DEVICE_TYPE_INTERNAL_CONNECTOR | \ - DEVICE_TYPE_NOT_HDMI_OUTPUT | \ DEVICE_TYPE_MIPI_OUTPUT | \ DEVICE_TYPE_COMPOSITE_OUTPUT | \ DEVICE_TYPE_DUAL_CHANNEL | \@@ -749,7 +748,6 @@ int intel_parse_bios(struct drm_device *dev);DEVICE_TYPE_TMDS_DVI_SIGNALING | \DEVICE_TYPE_VIDEO_SIGNALING | \DEVICE_TYPE_DISPLAYPORT_OUTPUT | \ -DEVICE_TYPE_DIGITAL_OUTPUT | \ DEVICE_TYPE_ANALOG_OUTPUT)/* define the DVO port for HDMI output type */ Signature · 6 lines
2.4.6 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · On Fri, 11 Sep 2015, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
We don't support eDP on g4x, so let's not even look at the VBT to determine the port type, just in case the VBT is bonkers on some g4x machines and indicates the precense of eDP.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 29 lines
--- drivers/gpu/drm/i915/intel_dp.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/i915/intel_dp.c +7
-0@@ -5250,6 +5250,13 @@ bool intel_dp_is_edp(struct drm_device *dev, enum port port) [PORT_E] = DVO_PORT_DPE, }; +/* +* eDP not supported on g4x. so bail out early just +* for a bit extra safety in case the VBT is bonkers. +*/ +if (INTEL_INFO (dev)->gen <5 ) +return false; +if (port ==PORT_A )return true;Signature · 6 lines
2.4.6 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx