Skip to contentSkip to conversation

drm/bridge: analogix_dp: set the DPCD600 during disabling the psr

PATCH In review Caesar Wang 3 participants 5 messages Dec 10, 2016 – Dec 15, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: analogix_dp: set the DPCD600 during disabling the psr

Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode.

---

 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +5 -0
index 6e0447f..6a5347b 100644
@@ -133,6 +133,7 @@ int analogix_dp_disable_psr(struct device *dev)
 {
 	struct analogix_dp_device *dp = dev_get_drvdata(dev);
 	struct edp_vsc_psr psr_vsc;
+	int ret;
 
 	if (!dp->psr_support)
 		return -EINVAL;
@@ -147,6 +148,10 @@ int analogix_dp_disable_psr(struct device *dev)
 	psr_vsc.DB0 = 0;
 	psr_vsc.DB1 = 0;
 
+	ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER, DP_SET_POWER_D0);
+	if (ret != 1)
+		dev_err(dp->dev, "Failed to set DP Power0 %d\n", ret);
+
 	analogix_dp_send_psr_spd(dp, &psr_vsc);
 	return 0;
 }
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Caesar Wang

Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode.

Cc Archit Taneja <[email protected]>
Quoted 32 lines

---

 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +5 -1
index 6e0447f..6a5347b 100644
@@ -133,6 +133,7 @@ int analogix_dp_disable_psr(struct device *dev)
 {
        struct analogix_dp_device *dp = dev_get_drvdata(dev);
        struct edp_vsc_psr psr_vsc;
+       int ret;
 
        if (!dp->psr_support)
                return -EINVAL;
@@ -147,6 +148,10 @@ int analogix_dp_disable_psr(struct device *dev)
        psr_vsc.DB0 = 0;
        psr_vsc.DB1 = 0;
 
+       ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER, DP_SET_POWER_D0);
+       if (ret != 1)
+               dev_err(dp->dev, "Failed to set DP Power0 %d\n", ret);
+
        analogix_dp_send_psr_spd(dp, &psr_vsc);
        return 0;
 }
--

2.7.4

#2 lore raw

Hi,

Quoted 8 lines · Sean Paul
Quoted 5 lines · Caesar Wang

Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode.

Cc Archit Taneja <[email protected]>

Do we want this as a fix in 4.10? Or is it okay to get it in 4.11? In other words, should this go to drm-misc-next or drm-misc-fixes?

Thanks,
Archit

Quoted 33 lines
Quoted 33 lines

---

 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +5 -1
index 6e0447f..6a5347b 100644
@@ -133,6 +133,7 @@ int analogix_dp_disable_psr(struct device *dev)
 {
        struct analogix_dp_device *dp = dev_get_drvdata(dev);
        struct edp_vsc_psr psr_vsc;
+       int ret;
 
        if (!dp->psr_support)
                return -EINVAL;
@@ -147,6 +148,10 @@ int analogix_dp_disable_psr(struct device *dev)
        psr_vsc.DB0 = 0;
        psr_vsc.DB1 = 0;
 
+       ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER, DP_SET_POWER_D0);
+       if (ret != 1)
+               dev_err(dp->dev, "Failed to set DP Power0 %d\n", ret);
+
        analogix_dp_send_psr_spd(dp, &psr_vsc);
        return 0;
 }
--

2.7.4

Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
Quoted 12 lines · Archit Taneja

Hi,

Quoted 9 lines · Sean Paul
Quoted 6 lines · Caesar Wang

Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode.

Quoted 6 lines
Quoted 1 line
Cc Archit Taneja <[email protected]>

Do we want this as a fix in 4.10? Or is it okay to get it in 4.11? In other words, should this go to drm-misc-next or drm-misc-fixes?

Hi Archit,
4.11 is totally fine.

Sean

Quoted 28 lines

Thanks,
Archit

Quoted 24 lines
Quoted 24 lines

---

 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1 -0
index 6e0447f..6a5347b 100644
@@ -133,6 +133,7 @@ int analogix_dp_disable_psr(struct device *dev)
 {
        struct analogix_dp_device *dp = dev_get_drvdata(dev);
        struct edp_vsc_psr psr_vsc;
+       int ret;
 
        if (!dp->psr_support)
                return -EINVAL;
@@ -147,6 +148,10 @@ int analogix_dp_disable_psr(struct device *dev)
        psr_vsc.DB0 = 0;
        psr_vsc.DB1 = 0;
 
Quoted 15 lines
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +4 -0
+       ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER,
 DP_SET_POWER_D0);
+       if (ret != 1)
+               dev_err(dp->dev, "Failed to set DP Power0 %d\n", ret);
+
        analogix_dp_send_psr_spd(dp, &psr_vsc);
        return 0;

}
--
2.7.4

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
Quoted 16 lines · Sean Paul
Quoted 15 lines · Archit Taneja

Hi,

Quoted 10 lines · Sean Paul
Quoted 6 lines · Caesar Wang

Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode.

Cc Archit Taneja <[email protected]>
Quoted 6 lines
Quoted 3 lines

Do we want this as a fix in 4.10? Or is it okay to get it in 4.11? In other words, should this go to drm-misc-next or drm-misc-fixes?

Hi Archit,
4.11 is totally fine.

Thanks. Queued after some commit message cleanup.

Archit

Quoted 47 lines

Sean

Quoted 43 lines

Thanks,
Archit

Quoted 24 lines
Quoted 24 lines

---

 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1 -0
index 6e0447f..6a5347b 100644
@@ -133,6 +133,7 @@ int analogix_dp_disable_psr(struct device *dev)
 {
        struct analogix_dp_device *dp = dev_get_drvdata(dev);
        struct edp_vsc_psr psr_vsc;
+       int ret;
 
        if (!dp->psr_support)
                return -EINVAL;
@@ -147,6 +148,10 @@ int analogix_dp_disable_psr(struct device *dev)
        psr_vsc.DB0 = 0;
        psr_vsc.DB1 = 0;
 
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +4 -0
+       ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER,
 DP_SET_POWER_D0);
+       if (ret != 1)
+               dev_err(dp->dev, "Failed to set DP Power0 %d\n", ret);
+
        analogix_dp_send_psr_spd(dp, &psr_vsc);
        return 0;

}
--
2.7.4

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel