Skip to contentSkip to conversation

drm/amdgpu/display: dm/amdgpu: make dp phy debugfs for eDP

PATCH In review [email protected] 2 participants 2 messages Oct 12, 2018 1 message not in the archive

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

PATCH 1/1 drm/amdgpu/display: dm/amdgpu: make dp phy debugfs for eDP

From: hersen wu <[email protected]>

[WHY] dp debugfs file does not exist for eDP under
/sys/kernel/debug/dri/0/eDP-1. the root is phy debugfs is created for dp connector only.
[HOW] for eDP connector, create phy debugfs too.

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +3 -1
index 0ef4a40..76a9c95 100644
@@ -705,7 +705,9 @@ int connector_debugfs_init(struct amdgpu_dm_connector *connector)
 	int i;
 	struct dentry *ent, *dir = connector->base.debugfs_entry;
 
-	if (connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+	if (connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
+			connector->base.connector_type ==
+					DRM_MODE_CONNECTOR_eDP) {
 		for (i = 0; i < ARRAY_SIZE(dp_debugfs_entries); i++) {
 			ent = debugfs_create_file(dp_debugfs_entries[i].name,
 						  0644,
Signature · 6 lines
2.7.4

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

A message that is not in the archive (sent off-list or not yet received): 1539355825-11012-1-git-send-email-sunpeng.li-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 19 lines · On 2018-10-12 10:50 a.m., [email protected] wrote:

From: hersen wu <[email protected]>

[WHY] dp debugfs file does not exist for eDP under
/sys/kernel/debug/dri/0/eDP-1. the root is phy debugfs is created for dp connector only.
[HOW] for eDP connector, create phy debugfs too.

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +0 -0
index 0ef4a40..76a9c95 100644

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c int connector_debugfs_init(struct amdgpu_dm_connector *connector) · line 710

Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +3 -1
@@ -705,7 +705,9 @@ int connector_debugfs_init(struct amdgpu_dm_connector *connector)
 	int i;
 	struct dentry *ent, *dir = connector->base.debugfs_entry;
 
-	if (connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+	if (connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
+			connector->base.connector_type ==
+					DRM_MODE_CONNECTOR_eDP) {

Indenting looks funky. Would be nice to get that cleaned up before merge.

Anyways, beside the bikeshedding this is

Harry

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c int connector_debugfs_init(struct amdgpu_dm_connector *connector) · line 713

Quoted 4 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +0 -0
 		for (i = 0; i < ARRAY_SIZE(dp_debugfs_entries); i++) {
 			ent = debugfs_create_file(dp_debugfs_entries[i].name,
 						  0644,

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