Received: by 10.223.185.116 with SMTP id b49csp1096554wrg; Fri, 23 Feb 2018 11:52:54 -0800 (PST) X-Google-Smtp-Source: AH8x226aX1e4mapjlCtVDnUZOz2f5aUG0SAuOURwLmygYIC8tBXcJmaDh17ONziYWUs9THjmep0o X-Received: by 10.99.151.26 with SMTP id n26mr2289608pge.370.1519415574256; Fri, 23 Feb 2018 11:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415574; cv=none; d=google.com; s=arc-20160816; b=ALewLx/vpmGdDFz+K4ZZE0hxE7MRFavPeSgC0Zwp5zCN2xMpYCA1o7sdojDjwABBTR 4MzxsFs1VcFbFvVQyrygtcuSNO+4p49ejCPPtejTVqp+42uaWAUkQZCBDMw+cdpu/HMD /rRuSCCNdj781/JBmE8QdQ2VuYwm8/h7B6sEk9VJY45lroNw/MXuUDB08H26em1B5MPI EBS/JPDhNI6vi8ijAW9bpno11CK5SKKqsNCQNYSCJTIiRgSRQf5HzSMmJF+uU4q7r1YP BRrxn/7twk7E14AA6LFqGvI6w8oQg83s3Iq654j5l2SpTMP0xKlVUlQJdepjfbfNJllt mjfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RJLY34VQOQAPRciZlouFZpWoA8dNk/RR2Rp7B3q4cxA=; b=r46qS0Zhrkma8xkO/HKJdfofNy2tj6166iFqwOQswbliQicb+UOI9cphGpQplt4ChF xyKZT+UYG8uuSd62AZnsXtYF4sBozNZV3t6rvSjTDOKz490NmUplD2Qtob6ICb61FfoQ UJM8Li4im4CEZCoL3tCBCcxM3cKucH8MCH+ioq+vxanlvX0Cm218nS+VYeiIW5F23Tkf pMnJHx6TENzeynOZ8VLXsP/StYfuPjlkhpaxIhjKzz5t+je3vRCgFNOnSSlHfr6DibA3 ntOpys6rpP9VEgFubBQBvD19E0Df6ardZnv/W9BCAAeBt7iyOjswhHobar4MFTALYt9N 1FEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si1848863pgt.182.2018.02.23.11.52.39; Fri, 23 Feb 2018 11:52:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754893AbeBWTvh (ORCPT + 99 others); Fri, 23 Feb 2018 14:51:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43490 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890AbeBWSpx (ORCPT ); Fri, 23 Feb 2018 13:45:53 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 86D3012B2; Fri, 23 Feb 2018 18:45:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Gerlach , Nishanth Menon , Marc Zyngier , Sebastian Reichel , Roger Quadros , Tony Lindgren , Sasha Levin Subject: [PATCH 4.9 045/145] ARM: dts: Fix omap4 hang with GPS connected to USB by using wakeupgen Date: Fri, 23 Feb 2018 19:25:51 +0100 Message-Id: <20180223170730.740038172@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tony Lindgren [ Upstream commit cf87634c8b24e24bf379b8c6807c8b0fb5f23567 ] There's been a reproducable USB OHCI/EHCI cpuidle related hang on omap4 for a while that happens after about 20 - 40 minutes on an idle system with some data feeding device being connected, like a USB GPS device or a cellular modem. This issue happens in cpuidle states C2 and C3 and does not happen if cpuidle is limited to C1 state only. The symptoms are that the whole system hangs and never wakes up from idle, and if a watchdog is configured the system reboots after a while. Turns out that OHCI/EHCI devices on omap4 are trying to use the GIC interrupt controller directly as a parent instead of the WUGEN. We need to pass the interrupts through WUGEN to GIC to provide the wakeup events for the processor. Let's fix the issue by removing the gic interrupt-parent and use the default interrupt-parent wakeupgen instead. Note that omap5.dtsi had this already fixes earlier by commit 7136d457f365 ("ARM: omap: convert wakeupgen to stacked domains") but we somehow missed omap4 at that point. Fixes: 7136d457f365 ("ARM: omap: convert wakeupgen to stacked domains") Cc: Dave Gerlach Cc: Nishanth Menon Cc: Marc Zyngier Cc: Sebastian Reichel Reviewed-by: Roger Quadros Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/omap4.dtsi | 2 -- 1 file changed, 2 deletions(-) --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -859,14 +859,12 @@ usbhsohci: ohci@4a064800 { compatible = "ti,ohci-omap3"; reg = <0x4a064800 0x400>; - interrupt-parent = <&gic>; interrupts = ; }; usbhsehci: ehci@4a064c00 { compatible = "ti,ehci-omap"; reg = <0x4a064c00 0x400>; - interrupt-parent = <&gic>; interrupts = ; }; };