Skip to contentSkip to conversation

drm/udl: usb: Fix recursive Kconfig dependency

PATCH In review Sedat Dilek 2 participants 7 messages Aug 24, 2012 – Aug 26, 2012

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

PATCH 1/3 drm/udl: usb: Fix recursive Kconfig dependency

In drivers/usb/Kconfig "config USB_ARCH_HAS_HCD" is within "if USB_SUPPORT" statement.

In drivers/gpu/drm/Kconfig "config DRM_USB" depends on USB_ARCH_HAS_HCD but selects USB_SUPPORT which leads to the error for udl Kconfig:

$ yes "" | make oldconfig
scripts/kconfig/conf --oldconfig Kconfig
drivers/gpu/drm/udl/Kconfig:1:error: recursive dependency detected!
drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
drivers/usb/Kconfig:76: symbol USB_ARCH_HAS_HCD depends on USB_SUPPORT
drivers/usb/Kconfig:58: symbol USB_SUPPORT is selected by DRM_USB
drivers/gpu/drm/Kconfig:22:     symbol DRM_USB is selected by DRM_UDL

Fix this by changing from select to depends on USB_SUPPORT in "config DRM_USB".

This is a follow-up fix to df0b344300724e00db9fff7eb6406eb91f450b91 in Dave's drm-next GIT branch.

[ v2: Restore old status, but change from select to depends on USB_SUPPORT ] [ v3: Use common prefix "drm/udl" in label ]

---
 drivers/gpu/drm/Kconfig |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/Kconfig +1 -2
index 3a8c683..0cbdc45 100644
@@ -22,9 +22,8 @@ menuconfig DRM
 config DRM_USB
 	tristate
 	depends on DRM
-	depends on USB_ARCH_HAS_HCD
+	depends on USB_SUPPORT && USB_ARCH_HAS_HCD
 	select USB
-	select USB_SUPPORT
 
 config DRM_KMS_HELPER
 	tristate
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/3 drm/i915: Remove reference to drm_display_info raw_edid field

---
 drivers/gpu/drm/i915/intel_modes.c |    1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/intel_modes.c +0 -1
index 29b7259..4bc1c0f 100644
@@ -45,7 +45,6 @@ int intel_connector_update_modes(struct drm_connector *connector,
 	drm_mode_connector_update_edid_property(connector, edid);
 	ret = drm_add_edid_modes(connector, edid);
 	drm_edid_to_eld(connector, edid);
-	connector->display_info.raw_edid = NULL;
 	kfree(edid);
 
 	return ret;
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 3/3 drm/i915/contexts: Fixup merge with commit b6c7488df68a

In reply to Sedat Dilek

This is a fixup patch for the merge of drm-next into linux-next caused by commit b6c7488df68a ("drm/i915/contexts: fix list corruption").

---
 drivers/gpu/drm/i915/i915_gem.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -2
index 4f6841d..e8a5cb2 100644
@@ -2273,11 +2273,11 @@ int i915_gpu_idle(struct drm_device *dev)
 
 	/* Flush everything onto the inactive list. */
 	for_each_ring(ring, dev_priv, i) {
-		ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
+		ret = i915_ring_idle(ring);
 		if (ret)
 			return ret;
 
-		ret = i915_ring_idle(ring);
+		ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
 		if (ret)
 			return ret;
 
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH drm-next 2/3] drm/i915: Remove reference to drm_display_info raw_edid field

In reply to Sedat Dilek
Quoted 4 lines · Sedat Dilek

This doesn't apply to my drm-intel-next tree any more - we've moved around the assignement a bit.
-Daniel

Quoted 23 lines
---
 drivers/gpu/drm/i915/intel_modes.c |    1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/intel_modes.c +0 -1
index 29b7259..4bc1c0f 100644
@@ -45,7 +45,6 @@ int intel_connector_update_modes(struct drm_connector *connector,
 	drm_mode_connector_update_edid_property(connector, edid);
 	ret = drm_add_edid_modes(connector, edid);
 	drm_edid_to_eld(connector, edid);
-	connector->display_info.raw_edid = NULL;
 	kfree(edid);
 
 	return ret;
Signature · 6 lines
1.7.9.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
#5 lore raw

Re: [PATCH drm-next 3/3] drm/i915/contexts: Fixup merge with commit b6c7488df68a

In reply to Sedat Dilek
Quoted 5 lines · Sedat Dilek

This is a fixup patch for the merge of drm-next into linux-next caused by commit b6c7488df68a ("drm/i915/contexts: fix list corruption").

This is wrong, switch_context _must_ happen before ring_idle, otherwise all hell can break loose on resume.
-Daniel

Quoted 29 lines
---
 drivers/gpu/drm/i915/i915_gem.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -2
index 4f6841d..e8a5cb2 100644
@@ -2273,11 +2273,11 @@ int i915_gpu_idle(struct drm_device *dev)
 
 	/* Flush everything onto the inactive list. */
 	for_each_ring(ring, dev_priv, i) {
-		ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
+		ret = i915_ring_idle(ring);
 		if (ret)
 			return ret;
 
-		ret = i915_ring_idle(ring);
+		ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
 		if (ret)
 			return ret;
 
Signature · 6 lines
1.7.9.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
#6 lore raw

Re: [PATCH drm-next 3/3] drm/i915/contexts: Fixup merge with commit b6c7488df68a

Quoted 9 lines · Daniel Vetter
Quoted 5 lines · Sedat Dilek

This is a fixup patch for the merge of drm-next into linux-next caused by commit b6c7488df68a ("drm/i915/contexts: fix list corruption").

This is wrong, switch_context _must_ happen before ring_idle, otherwise all hell can break loose on resume.

I followed what's in drm-intel-next not what was in Linus-tree.

- Sedat -

http://cgit.freedesktop.org/~danvet/drm-intel/tree/drivers/gpu/drm/i915/i915_gem.c?h=drm-intel-next#n2432

Quoted 36 lines

-Daniel

Quoted 25 lines
---
 drivers/gpu/drm/i915/i915_gem.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -3
index 4f6841d..e8a5cb2 100644
@@ -2273,11 +2273,11 @@ int i915_gpu_idle(struct drm_device *dev)
 
      /* Flush everything onto the inactive list. */
      for_each_ring(ring, dev_priv, i) {
-             ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
+             ret = i915_ring_idle(ring);
              if (ret)
                      return ret;
 
-             ret = i915_ring_idle(ring);
+             ret = i915_switch_context(ring, NULL, DEFAULT_CONTEXT_ID);
              if (ret)
                      return ret;
 
--

1.7.9.5

Quoted 4 lines

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

--
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48

#3 lore raw

Re: [PATCH drm-next 2/3] drm/i915: Remove reference to drm_display_info raw_edid field

In reply to Daniel Vetter
Quoted 8 lines · Daniel Vetter
Quoted 4 lines · Sedat Dilek

This doesn't apply to my drm-intel-next tree any more - we've moved around the assignement a bit.

Error still exists but is in intel_ddc_get_modes() now.

- Sedat -

http://cgit.freedesktop.org/~danvet/drm-intel/tree/drivers/gpu/drm/i915/intel_modes.c?h=drm-intel-next#n53

Quoted 30 lines

-Daniel

Quoted 19 lines
---
 drivers/gpu/drm/i915/intel_modes.c |    1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/intel_modes.c +0 -2
index 29b7259..4bc1c0f 100644
@@ -45,7 +45,6 @@ int intel_connector_update_modes(struct drm_connector *connector,
      drm_mode_connector_update_edid_property(connector, edid);
      ret = drm_add_edid_modes(connector, edid);
      drm_edid_to_eld(connector, edid);
-     connector->display_info.raw_edid = NULL;
      kfree(edid);
 
      return ret;
--

1.7.9.5

Quoted 4 lines

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

--
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48