Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1389602iog; Thu, 16 Jun 2022 05:30:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEINcEf7RIXRu7Jv3EkJsaF2hoGhzFyTU0biBWHSkXNHP0lw3CMBrHer3vPSSG1XdH/Prf X-Received: by 2002:a05:6a00:148f:b0:51c:70f9:b62e with SMTP id v15-20020a056a00148f00b0051c70f9b62emr4749760pfu.84.1655382644084; Thu, 16 Jun 2022 05:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655382644; cv=none; d=google.com; s=arc-20160816; b=cfhz0IKkXHefyuLYH4uW/T8E+DCoyQ4Q4lxqopgs1KmeWNre9CN8Lj3yGKy3SpEAoS eNSMBpfhJj8B/K/qiXF8HlGOZ6ptxZUdwZ4e0mRrX3o0JDjyXhXec29CS4SsAtpxu7st V8i0qtn4KfgoFufx1k3tbge2UJYPQUWOFBkk3NnxxpLJdAGcJv4cJPacZ6EWweFgNLF5 2hVLjMkjYoWPcggQaPhAI4ezc/BCqR5ziCXVPxvyD6WWY+7+VoomqWbjuLse7tgCTRr/ 6NAhEFwToI8zlmviXv/B75ggpoPEBtC+Y6FiN0XIeW5Sj2Y4vqn+8w7sCC7SkjDN5tQu CsuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=gFeFIkBXI9c+IRNm48Tirc5E+l0BkdIKAQUzcrltsg0=; b=mhrNk5LwYe76cfNRzmfUYNuh/fBC7WqDjtFobpZ1Fbt8kJP7JDR1pmMDTTuBP0WdxY b+VaZ0Han/6yRtE84S5LjNz9t0YOyUBtm1+4oaUCUL98hxQZ9JVuft5AdN2H921Gz6zY OEIwi/Hj44k2p0Dq5049e70q8lo82+aoyxVGlqVFaPQELZ9XskF1Oh/2QXxfSs4o/gFX w3WkNgnM6CQO7RBC1HyrKTEcmm4ivs8Sd9VW2Okw2c+lmpPd6nrU/FkPwE7aoNTt6mkj Au09odWvUAchGfv6Mcwa6JLHdRZDCnD+7R4X5nSbz1VEBTucnM2bwOVk0vZ4Kl3LPgRe lvbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XjKVJbRU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a056a00188800b0050e07e66d5asi2995177pfh.19.2022.06.16.05.30.22; Thu, 16 Jun 2022 05:30:44 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XjKVJbRU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbiFPMNJ (ORCPT + 99 others); Thu, 16 Jun 2022 08:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiFPMNG (ORCPT ); Thu, 16 Jun 2022 08:13:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 450BD7662; Thu, 16 Jun 2022 05:13:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE90E617AD; Thu, 16 Jun 2022 12:13:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C9D8C34114; Thu, 16 Jun 2022 12:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655381585; bh=FRdTpLu9CQJzvii1sK4lK43LEr0qKdnJ9tF8pfXexXI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XjKVJbRUIYL6ShT/rdD/HWalflU32g0ExKhGy1Lr1rOxuRMykl/Y02//OWB0tYis8 u7g3YuPwmSrj3d+FwNlcQUfmMoDz6n5I3iO/Vk7Cy2lYLI2L/6HbXcd+42/qkBMZtb 7SDvpwojO1LlIXlyia4wmmmQ4wTgq3TI2Ma0GfpXvWfk3hbPfKyQ4gxPTazAq70IC2 h63EiWzl+xHrtYNwtgE9ucCRm4gR6CjmNktiMKV2dPuPK+/gSTURxVBdLtlGmiwGB9 HZ39SS7L2dmKYjLNE9nTpxvd09gvvaeOYYLTtkmLa1lW0zEdb6FX3W/KcXu9dvTSKR LPXqMWOeepoiQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o1oMw-0013L3-WE; Thu, 16 Jun 2022 13:13:03 +0100 Date: Thu, 16 Jun 2022 13:13:02 +0100 Message-ID: <87y1xw3iy9.wl-maz@kernel.org> From: Marc Zyngier To: Robin Murphy Cc: Matt Ranostay , Nishanth Menon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: ti: k3-j721s2: fix overlapping GICD memory region In-Reply-To: <9b005c7d-e434-c215-288d-3926f483b07a@arm.com> References: <20220616105112.289719-1-mranostay@ti.com> <9b005c7d-e434-c215-288d-3926f483b07a@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, mranostay@ti.com, nm@ti.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Thu, 16 Jun 2022 13:07:23 +0100, Robin Murphy wrote: > > 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? I'd rather we work around it. I shout at people for breaking existing DTs, so this should apply to the GIC as well. A nice WARN_ON_ONCE() should do, if you don't mind writing the patch. Thanks, M. -- Without deviation from the norm, progress is not possible.