drm/udl: usb: Fix recursive Kconfig dependency
Subsystems (3)
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
@@ -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
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
@@ -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
Re: [PATCH drm-next 2/3] drm/i915: Remove reference to drm_display_info raw_edid field
Quoted 4 lines · Sedat Dilek
Reported-By Stephen Rothwell <[email protected]>Acked-by Jani Nikula <[email protected]>Acked-by Dave Airlie <[email protected]>Signed-off-by Sedat Dilek <[email protected]>
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@@ -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
Re: [PATCH drm-next 2/3] drm/i915: Remove reference to drm_display_info raw_edid field
Quoted 8 lines · Daniel Vetter
Quoted 4 lines · Sedat Dilek
Reported-By Stephen Rothwell <[email protected]>Acked-by Jani Nikula <[email protected]>Acked-by Dave Airlie <[email protected]>Signed-off-by Sedat Dilek <[email protected]>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 -
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@@ -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
PATCH 3/3 drm/i915/contexts: Fixup merge with commit b6c7488df68a
In reply to Sedat DilekThis 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
@@ -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
Re: [PATCH drm-next 3/3] drm/i915/contexts: Fixup merge with commit b6c7488df68a
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").Reported-By Stephen Rothwell <[email protected]>Signed-off-by Sedat Dilek <[email protected]>
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@@ -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
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").Reported-By Stephen Rothwell <[email protected]>Signed-off-by Sedat Dilek <[email protected]>This is wrong,
switch_context_must_ happen beforering_idle, otherwise all hell can break loose on resume.
I followed what's in drm-intel-next not what was in Linus-tree.
- Sedat -
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@@ -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