Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1427786iog; Thu, 16 Jun 2022 06:15:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vmKFgwbVCYpKs28SfZPMLJpYQ0zS5J59f6nmge3XejghvU3CQSht13jZzc+NoIj+QKhFIQ X-Received: by 2002:a63:31d0:0:b0:3fc:5770:e779 with SMTP id x199-20020a6331d0000000b003fc5770e779mr4343031pgx.376.1655385316952; Thu, 16 Jun 2022 06:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655385316; cv=none; d=google.com; s=arc-20160816; b=i6T/1AooFA3RyuaBpR6YSpNasdzB3F589O2tw/ucGIzn2hVkIC0sW/7sc6PgXdqDAt KdYv0VJGibH8DOad4BpKE4ooGXCLvdq/paD3QwYgltv7W5iRrJyAFzvLF9WVAlFR93kv crVOiaDz7D7NzyiDPzmvJm8WUCCkA+27Xr879mV1YFZGoxgEJF6EiFSyzVh2q+CJzDoG OZ1JR7ihVRbvLWh99HTa3F2p2EiYEZhirkeVL8R0jGPEe8t2NMxPXrC80fs8lQ2oXp4l j1WGkzw4ZmRaB7WBphm2tOD/bdYHwyrVMTB2To8weHefakRuwysDuBTY8WDWd+Z0Rjzq dg8A== 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=l0FPhaeQDPhptvxAunXb2uLfOoS1AJFSeSj01pOXYTY=; b=PeTe9SNOUjFdQw0QwUd9lbGVoX6pc1nFUmdFXmG8pJfqtrJW14yOyVsxpjMTc021pI n2xZQhgzOgzWPwJXapEFZOPY2fpoOvLMbwKyn2yspmWAFccGSPPLRwqL2uFfyYWq8tkJ NvwlbLA1LMT9Znn5tKiSZriKZ9QaEKm+ax+kbonAQLJEeh7fuKA1sDttqEhNQVKZQK5/ XhblJIN1VS7BQ4/Li0kTlRvE2+E3zkr5tB8C4iRYkEJHUAWYybSNgcsxI9leZ/2MfWOX KRou3ZIJ8KOfgz+QrcZaUQtclZKIhzEJg56Gfiqt9QGivmn4eYfLp/hI8OygSEAvU0XY YI3w== 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 v1-20020a17090a0c8100b001e0cc5e7aabsi2345333pja.22.2022.06.16.06.15.04; Thu, 16 Jun 2022 06:15:16 -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 S1345557AbiFPMTX (ORCPT + 99 others); Thu, 16 Jun 2022 08:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbiFPMTQ (ORCPT ); Thu, 16 Jun 2022 08:19:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A2DA49929; Thu, 16 Jun 2022 05:19:15 -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 1144011FB; Thu, 16 Jun 2022 05:19:15 -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 20B063F73B; Thu, 16 Jun 2022 05:19:14 -0700 (PDT) Message-ID: <582e4c0b-5cd3-7fac-cba7-7250a458a60d@arm.com> Date: Thu, 16 Jun 2022 13:19:08 +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: Marc Zyngier Cc: Matt Ranostay , Nishanth Menon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220616105112.289719-1-mranostay@ti.com> <9b005c7d-e434-c215-288d-3926f483b07a@arm.com> <87y1xw3iy9.wl-maz@kernel.org> From: Robin Murphy In-Reply-To: <87y1xw3iy9.wl-maz@kernel.org> 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 13:13, Marc Zyngier wrote: > 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. Indeed, I think that would be my default preference as well - apologies for the oversight! I'll spin the patch shortly (and make the warning consistent for the ACPI side too). Cheers, Robin.