Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp804550pxj; Thu, 27 May 2021 12:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcX0K58/DfECSBcr3R3L0/Xyaj4eVJk+AwafVuwtEuvLzXXe+WdFXGkPX0rUxgy08Zven9 X-Received: by 2002:a50:f744:: with SMTP id j4mr2460871edn.133.1622142137070; Thu, 27 May 2021 12:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622142137; cv=none; d=google.com; s=arc-20160816; b=Il09H0S+KlgPLQIE6WuVKRq0okpmECEG1uCF/ipJ9pVnmToOab8UqjEnvydhsrZqsd pi1wKbHLhU4JdexWbUDRJoCC735Hg9oInzWuZ7aW31VCh0zg+6lUPw0DwfNTAr5cVtdx NmviIOeri0AfCxV08IWIbhrDcpzFhRB/L6P7PhVpgpyHpRB8f0TbgHqPYuLedZDyHvX5 hUmB5Ue0YATS8iUGCUs8G5C7aXsUWaoWK3U8eOayG6hImnowIAgp+So2J7qgSub5f/4y n5o1UhpMUaKVocbIkZjvNae7L7sSTUvAa75Qqr6FYQ0xUuKM9vI8e5aYn/mMOUsnYiBP mW5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=W7nJmlLFM6qbfiXZBLJ9vG0DB3jdeE2rjTapc9VYSco=; b=Hk9KZzsiIv90MtJlkOlRpv/a7erK4xcEAGQsJvAmSHw0Gr5zweetpAe2LdJ7P6jF1p eterMSyZ3ZzP79INxgVJI+tfauXofCaAw9+CyRuaolUgGHfZsLfVXcb6ubOUnxkTUrR+ onl3cLOBizgW1tSLC+Hz4+GFq6XQIyJl6YS1UCldpO7K9tAwo6oCvYTOItoGfsE/s3Ye x709eIfdRz1t2fCFIBW4j9PAvPOve1bqwV//MUEViQps5ISI7alHJnrKcuU5851L25CH sc4gdYVx9aXRv6I4Zjb+S/62Bc0cdWHGgtYI7IEWPz9VJMzsztEYSVB5CpZxtfEzpSie QaCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si2225309edm.391.2021.05.27.12.01.52; Thu, 27 May 2021 12:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236557AbhE0Q6l (ORCPT + 99 others); Thu, 27 May 2021 12:58:41 -0400 Received: from foss.arm.com ([217.140.110.172]:60548 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236727AbhE0Q6g (ORCPT ); Thu, 27 May 2021 12:58:36 -0400 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 AE63D11D4; Thu, 27 May 2021 09:57:02 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3FD723F719; Thu, 27 May 2021 09:57:01 -0700 (PDT) Date: Thu, 27 May 2021 17:56:55 +0100 From: Lorenzo Pieralisi To: Bjorn Helgaas Cc: Will Deacon , Bjorn Helgaas , Maximilian Luz , "Rafael J. Wysocki" , Len Brown , Catalin Marinas , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] Revert "arm64: PCI: Exclude ACPI "consumer" resources from host bridge windows" Message-ID: <20210527165655.GA21788@lpieralisi> References: <20210527093200.GA16444@lpieralisi> <20210527163452.GA1402454@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210527163452.GA1402454@bjorn-Precision-5520> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 11:34:52AM -0500, Bjorn Helgaas wrote: [...] > > > https://lore.kernel.org/r/20210510234020.1330087-1-luzmaximilian@gmail.com > > > > Sigh. We can't apply this patch since it would trigger regressions on > > other platforms (IIUC the root complex registers would end up in the > > host bridge memory windows). > > > > I am not keen on reverting commit 8fd4391ee717 because it does the > > right thing. > > > > I think this requires a quirk and immediate reporting to Microsoft. > > > > Bjorn, what are your thoughts on this ? > > In retrospect, I think 8fd4391ee717 (which I wrote), was probably a > mistake. > > Sure, it's a nice idea to have PNP0A03 _CRS methods that work nicely > as designed, by describing host bridge registers as "consumer" > resources and host bridge windows as "producer" registers, instead of > having the bridge registers in _CRS of an unrelated PNP0C02 device. > > But realistically, the PNP0A03/PNP0C02 issue is a solved problem, even > though it's ugly, and I'm not sure why I thought Microsoft would see > value in doing this differently on arm64 than on x86 and ia64. We hoped we could comply with the specs, given that we were starting from a clean slate (and not from ACPI tables cut and paste) > What would break if we reverted 8fd4391ee717? I guess any arm64 > platforms that described host bridge register space in PNP0A03 _CRS > "consumer" resources ? Yes. We would end up with that register space in the host bridge memory windows - this does not sound right. > And Windows probably doesn't work or isn't supported on those > platforms? By the look of it the answer is yes, Windows was not bootstrapped on those platforms given that I *assume* Windows does not discriminate between producer and consumer resources at all. Lorenzo