Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp758854pxb; Thu, 25 Feb 2021 14:33:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBUpa3tdrOARP1MBtUCRLs1G0W3ghoa1ch7t++3NAJZ3zXCtAAnZpUcNRksx8QfpbpvyvY X-Received: by 2002:aa7:c80e:: with SMTP id a14mr157827edt.295.1614292412598; Thu, 25 Feb 2021 14:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614292412; cv=none; d=google.com; s=arc-20160816; b=sqRU/7u3TYTd/TpkFTE+871Z/yWUE8Wm+1WgvCsO+YR8I5oUG70dyylwoyfZQ8J8dm gIH/iPS+aQJUtlmverWIOX9lWtgYDa1ZDZSaB3asfnJQlI1lojo8A6hOIPKgaI9paXBr 71/NhQCYfChO5cDej5fw7oQpIS23E4jjv6ixrRFbBY8i5FGt5/uBAAH65zb/o1WYiN4R gJvsMPQMcRHJwowbufnRYS7Q9mQigASMK/RYCjYCWbmfoAtdhqSF1az8dD5kyYJjP9tF YVqr3M1DV9MQ74ZLuOVxmiXMiOaIpfWUILv6HzM0XdsmrpFhH2JDcU2CZXE2/T9BkpfR LKtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=R5B4RUtyOFlYLtnFhKElOVp/jegcW4Q4cGGWCgnDlE4=; b=OMaXX+X5eR981RypAcR2ZkNVDinNAgUKdhJmmT17H3gHJzJm8aoTKcXW+H1CVvvSVN QG3CMI8UjultvEyD9QXo4woswO1baFrr9vpdkxQOordlKJrZjJTPum3U49HQFm7wLBf5 c1/4mn+rQpXziYmiBWFyM04EW4z0WZc7u0So5UOQAnEWGi2ULLHJ1qol3969zeMhw6d3 ZMQ9rcdv4PmPo+SYFiAcFjtC2xLLmdElw+3UuTlD4IdGRcNuJOO5F7BfEiG6D0Oj4uGK Uu+GApLx1hqXVK/eQhS1cK5z83OMyu5sn7RqgvfRZcz7fnIwlFUCEakwdQJ8tLD+GEph meFA== 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 w12si4373722edr.505.2021.02.25.14.33.09; Thu, 25 Feb 2021 14:33:32 -0800 (PST) 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 S229800AbhBYWci (ORCPT + 99 others); Thu, 25 Feb 2021 17:32:38 -0500 Received: from foss.arm.com ([217.140.110.172]:56338 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhBYWcf (ORCPT ); Thu, 25 Feb 2021 17:32:35 -0500 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 34E59ED1; Thu, 25 Feb 2021 14:31:49 -0800 (PST) Received: from [192.168.122.166] (unknown [10.119.48.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BD44A3F73D; Thu, 25 Feb 2021 14:31:48 -0800 (PST) Subject: Re: [PATCH] arm64: PCI: Enable SMC conduit To: Lorenzo Pieralisi , Jon Masters Cc: Bjorn Helgaas , Will Deacon , mark.rutland@arm.com, linux-pci@vger.kernel.org, sudeep.holla@arm.com, lkml , Catalin Marinas , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org References: <4c2db08d-ccc4-05eb-6b7b-5fd7d07dd11e@arm.com> <20210128233147.GA28434@bjorn-Precision-5520> <20210225093000.GA22843@e121166-lin.cambridge.arm.com> From: Jeremy Linton Message-ID: <790e63a4-bd8c-8644-19de-645cf6691953@arm.com> Date: Thu, 25 Feb 2021 16:31:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210225093000.GA22843@e121166-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2/25/21 3:30 AM, Lorenzo Pieralisi wrote: > On Thu, Feb 18, 2021 at 12:43:30PM -0500, Jon Masters wrote: >> Hi Bjorn, all, >> >> On Thu, Jan 28, 2021 at 6:31 PM Bjorn Helgaas wrote: >> >> On Tue, Jan 26, 2021 at 10:46:04AM -0600, Jeremy Linton wrote: >> >> >> >> > Does that mean its open season for ECAM quirks, and we can expect >> > them to start being merged now? >> >> "Open season" makes me cringe because it suggests we have a license to >> use quirks indiscriminately forever, and I hope that's not the case. >> >> Lorenzo is closer to this issue than I am and has much better insight >> into the mess this could turn into. From my point of view, it's >> shocking how much of a hassle this is compared to x86. There just >> aren't ECAM quirks, in-kernel clock management, or any of that crap. >> I don't know how they do it on x86 and I don't have to care. Whatever >> they need to do, they apparently do in AML. Eventually ARM64 has to >> get there as well if vendors want distro support. >> >> I don't want to be in the position of enforcing a draconian "no more >> quirks ever" policy. The intent -- to encourage/force vendors to >> develop spec-compliant machines -- is good, but it seems like the >> reward of having compliant machines "just work" vs the penalty of >> having to write quirks and shepherd them upstream and into distros >> will probably be more effective and not much slower. >> >> >> The problem is that the third party IP vendors (still) make too much junk. For >> years, there wasn't a compliance program (e.g. SystemReady with some of the >> meat behind PCI-SIG compliance) and even when there was the third party IP >> vendors building "root ports" (not even RCs) would make some junk with a hacked >> up Linux kernel booting on a model and demo that as "PCI". There wasn't the >> kind of adult supervision that was required. It is (slowly) happening now, but >> it's years and years late. It's just embarrassing to see the lack of ECAM that >> works. In many cases, it's because the IP being used was baked years ago or >> made for some "non server" (as if there is such a thing) use case, etc. But in >> others, there was a chance to do it right, and it still happens. Some of us >> have lost what hair we had over the years getting third party IP vendors to >> wake up and start caring about this. >> >> So there's no excuse. None at all. However, this is where we are. And it /is/ >> improving. But it's still too slow, and we have platforms still coming to >> market that need to boot and run. Based on this, and the need to have something >> more flexible than just solving for ECAM deficiencies (which are really just a >> symptom), I can see the allure of an SMC. I don't like it, but if that's where >> folks want to go, and if we can find a way to constrain the enthusiasm for it, >> then perhaps it is a path forward. But if we are to go down that path it needs >> to come with a giant warning from the kernel that a system was booted at is >> relying on that. Something that will cause an OS certification program to fail >> without a waiver, or will cause customers to phone up for support wondering why >> the hw is broken. It *must* not be a silent thing. It needs to be "this >> hardware is broken and non-standard, get the next version fixed". > > It is a stance I agree with in many respects, it should be shared (it > was in HTML format - the lists unfortunately dropped the message) so I > am replying to it to make it public. So, the V3 of this set has a pr_info of "PCI: SMC conduit attached to segment %d". I will respin with that at pr_warn() which seems to fulfill the comment above. Is that "giant" enough, or should it be higher/worded differently? Thanks,