Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1382282iog; Thu, 16 Jun 2022 05:20:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sWIhM7qdaRFNtK3AWyNXNUPlEj8QGFfswhMHjRqj2cb87ASUjHrBmS5JHipzGN/0JUnY6u X-Received: by 2002:a17:902:b684:b0:168:a438:ee26 with SMTP id c4-20020a170902b68400b00168a438ee26mr4328623pls.10.1655382035453; Thu, 16 Jun 2022 05:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655382035; cv=none; d=google.com; s=arc-20160816; b=BOefK2y0ecn1RNK/W+ur49fmzYXBA+XunLZWcyEL4CkvUO+kN61/504yz06+NuqTwJ rUBnaMBqVgHCT6EkpYBSs8k0g3/8yMnRygY2D2rZ+vq1AiHo3SW+zE7b6rs9s/TP0f9D Yt1lvhU74ZGAsNK2+8jjzfuALH/iKvegpgMFkQd//msaT4fF5D/4eEYqnefxT3bD9lhH exEmbhFyZaMHyeBm4XY0xPYwD4WqYCQ+c7KL4LREAyR3J34BErTLWZ764YKY83waascC AZuSa8tFrtyiDurdVqZw4bdF6z+RfvnAX3bAPiF/J4dP/h+Y+9nLk1reFcuG5M7iRgRX yDZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=g4fwtq9Hi1CeFPuXyri0F5CTfjnxuXYHJ/rqQ6ZwGUA=; b=gXOAPtsHyN7p86GD3qF/H2iB5mLvb3aR6lNd2QUJrS6EQCbfsUQh2aaSekji5V125U loXkmNulHZS9rrkskJqEisZ/VW9Q/Q8N10dRjWApcEfuQzmflhISqmUBpA5eYwGBWtzk X2QK9pdGfAWRSb/v0PCLrnW7zZoj51XY8pL2LtWDVYVqZRiAIkBIUqTsCyo4Ia/n0Ge8 UYhVy5/bFDg5/Jh4TQKDp2FxAtr/ZVMuICB22k0BJAFyjKsOrcMareDFqaZ+eX86MsA/ oxNL1ss2I0NiIrcTFasuhmrGlwyvu9IeAmkLe9EKVzSYZaFchkrkVeyelN1gJNEp5Yei CeCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j192-20020a638bc9000000b003fc2d55fef2si2178131pge.714.2022.06.16.05.20.22; Thu, 16 Jun 2022 05:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376896AbiFPMHi (ORCPT + 99 others); Thu, 16 Jun 2022 08:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241568AbiFPMHd (ORCPT ); Thu, 16 Jun 2022 08:07:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D79CB182; Thu, 16 Jun 2022 05:07:29 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 64DF3113E; Thu, 16 Jun 2022 05:07:29 -0700 (PDT) Received: from [10.57.82.209] (unknown [10.57.82.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 749E83F73B; Thu, 16 Jun 2022 05:07:28 -0700 (PDT) Message-ID: <9b005c7d-e434-c215-288d-3926f483b07a@arm.com> Date: Thu, 16 Jun 2022 13:07:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] arm64: dts: ti: k3-j721s2: fix overlapping GICD memory region Content-Language: en-GB To: Matt Ranostay , Marc Zyngier Cc: Nishanth Menon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220616105112.289719-1-mranostay@ti.com> From: Robin Murphy In-Reply-To: <20220616105112.289719-1-mranostay@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-06-16 11:51, Matt Ranostay wrote: > GICD region was overlapping with GICR causing the latter to not map > successfully, and in turn the gic-v3 driver would fail to initialize. > > This issue was hidden till commit 2b2cd74a06c3 ("irqchip/gic-v3: Claim iomem resources") > replaced of_iomap() calls with of_io_request_and_map() that internally > called request_mem_region(). > > Respective console output before this patchset: > > [ 0.000000] GICv3: /bus@100000/interrupt-controller@1800000: couldn't map region 0 Oh, it's nice that this finds bugs, but it seems I hadn't fully considered that making the simple easy change in the DT paths results in different behaviour from ACPI. Marc, would you like a fix for this to remain non-fatal even in the face of a dodgy DT, or are you happy with being a bit stricter now? Thanks, Robin. > Cc: Marc Zyngier > Cc: Robin Murphy > Cc: Nishanth Menon > Signed-off-by: Matt Ranostay > --- > arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > index be7f39299894..19966f72c5b3 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > @@ -33,7 +33,7 @@ gic500: interrupt-controller@1800000 { > ranges; > #interrupt-cells = <3>; > interrupt-controller; > - reg = <0x00 0x01800000 0x00 0x200000>, /* GICD */ > + reg = <0x00 0x01800000 0x00 0x100000>, /* GICD */ > <0x00 0x01900000 0x00 0x100000>, /* GICR */ > <0x00 0x6f000000 0x00 0x2000>, /* GICC */ > <0x00 0x6f010000 0x00 0x1000>, /* GICH */