Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp59972imu; Thu, 8 Nov 2018 14:48:02 -0800 (PST) X-Google-Smtp-Source: AJdET5cKKHi+b6ueYporjaa2w3aBAGWc9cOsT/K0hACvhNKfKXRf5CK4FZySPY7yOnShX3ltx76l X-Received: by 2002:a62:5441:: with SMTP id i62-v6mr6506305pfb.155.1541717282383; Thu, 08 Nov 2018 14:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541717282; cv=none; d=google.com; s=arc-20160816; b=uwV0jxrOgOm84HIWJ/rBBhPF/T6FjINJrmJf69YIqjIWD19v9CoyUB3oA/lis+kFOj 05uxFeZcRwJwwwO5OvAODRLBwX7l0Ws43VVaEMtQwzD2DiPrfgTr4J1oxOPIEaFvE7HM DrqDihXjtog+KKWrEGdo+aIn0XeGQ2Mriovgg5muYKiut7okxJ1u6B+DbpfQ6j7QkDe+ uaP0Nysy4kkeH5gBOjjFrDf7tYOQx8M54MTAUG2dsEuoZflgSYmDTRFlewAT6bU5bfAK sscc3r8Q205fEJCYNAxZ+ausBXt1kHjSxpqX+/EWYArIQiunTqchC/jNsJehqFSNWWrt KgMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EvA1FOv3QClcjGBlDMm7VRMhAoZ+ZxKquG6NXZbcv+A=; b=cMmFugKoApWAAuBqHaurFcCDj28s14U9CuEsT+Q9bhBc9jY9BuGJnaJgIf7sNVl223 4Zm3vvnhUXFoylvSOQ8+rAAePvt7Oeey0NuKpIzcvw/4uC333SE01j0MxKO7O0h8OBDW GYHvNoASjYElG+QA/j1mjnvAgY+C76nswRiZOiVLWrHSEGiYP69EyhBsAXuE2udLy5gP W5ztxzZhDLVqdxG3Vz76cCnGFz4spsx/ANL3ZOdHtfWRdqpnhTsfC8UkJcOoTbEv38Bn 766bB+SPhXhheMR+KFy1Qeyb2Uuqj+ducDWhK3zh1eFc+XMOo4OnMnPcjxVP7cVrgWsf btEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oO/ilfQo"; 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 c85-v6si5744036pfe.60.2018.11.08.14.47.47; Thu, 08 Nov 2018 14:48:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b="oO/ilfQo"; 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 S1727084AbeKIHcE (ORCPT + 99 others); Fri, 9 Nov 2018 02:32:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:47002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728193AbeKIHcD (ORCPT ); Fri, 9 Nov 2018 02:32:03 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B96C420892; Thu, 8 Nov 2018 21:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714076; bh=HTvYbxqUPMrklAC+aPJ4RLP6kS884OPM1SYM5CVJqjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oO/ilfQozN077xWVjjteRskADDAFgpO4YiAaamfKjoV70ALi8/iVMVB92BTJAXR7L yVygExkLz184QgODnbOuvSU+9FuzKA6NVmNGG8WzLnQLeo+/dGg+N3vLGT4ljaIfH3 VZavRHETc64IRzrPTqGn5ndQmG12+QvpApkM5vfc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Marc Zyngier , Simon Horman , Sasha Levin Subject: [PATCH 3.18 044/144] ARM: shmobile: r8a7740: Instantiate GIC from C board code in legacy builds Date: Thu, 8 Nov 2018 13:50:15 -0800 Message-Id: <20181108215058.047629028@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d034f53cc6c5c09a4e10cb9716986f3844c58514 ] As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), armadillo-legacy hangs during boot with: sh-tmu.0: ch0: used for clock events sh-tmu.0: ch0: used for periodic clock events sh-tmu.0: ch0: failed to request irq 230 sh-tmu.0: ch1: used as clock source sh-cmt-48.1: ch0: failed to request irq 90 sh-cmt-48.1: ch0: registration failed earlytimer: unable to probe sh-cmt-48 early. Calibrating delay loop... This happens because the IRQ numbers of the GIC are now virtual, and no longer match the hardcoded hardware IRQ numbers in the platform board code. To fix this, instantiate the GIC from platform board code when compiling a legacy kernel, like is done on sh73a0 for kzm9g-legacy. Signed-off-by: Geert Uytterhoeven Acked-by: Marc Zyngier Signed-off-by: Simon Horman Signed-off-by: Sasha Levin --- arch/arm/mach-shmobile/setup-r8a7740.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 8894e1b7ab0e..6ccdc4574c89 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -792,7 +792,14 @@ void __init r8a7740_init_irq_of(void) void __iomem *intc_msk_base = ioremap_nocache(0xe6900040, 0x10); void __iomem *pfc_inta_ctrl = ioremap_nocache(0xe605807c, 0x4); +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void __iomem *gic_dist_base = ioremap_nocache(0xc2800000, 0x1000); + void __iomem *gic_cpu_base = ioremap_nocache(0xc2000000, 0x1000); + + gic_init(0, 29, gic_dist_base, gic_cpu_base); +#else irqchip_init(); +#endif /* route signals to GIC */ iowrite32(0x0, pfc_inta_ctrl); -- 2.17.1