Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1999871imu; Wed, 21 Nov 2018 05:21:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UiZcSDkSBvYdHmCpmz1FenwBBsi/S+Tn0BZiIbNcly/csYwLXNfBX4FKmT8p9Bn35p0kQx X-Received: by 2002:a63:9dca:: with SMTP id i193-v6mr5529628pgd.98.1542806472747; Wed, 21 Nov 2018 05:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542806472; cv=none; d=google.com; s=arc-20160816; b=A1/9isLfpKL0pKWBe2ijYRZyGYF0LVTLQkvya1wauGZ4zlDnxju8euba3uwhRjpoPb X59r3hIH32SKVEaWyr8PAH2WQmjU3/FCF5h+7M+uppx7eFyM4qo8+Czbq3dKmckFiAWo bsnj3M2roMqhQK25mgvUK1p4HiI9ke8iGtppY5ksKBpjUjsj49N3Vpdixqc1T2Q6gop3 qaSvi70/xhQacfACzWJg9Ed1PaFWdCmFIkb5y9ZN4FXwB9r/tKMI1aUuccTWcYObKA3C 5lmdYVHAI/ulQos3a2HbGeuezkMzKd4syCdLPHKmE7cwIq1BCurMt8f3yQfKJaGn3IvU DBLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1lT0Pfj0Da7rcMlbuRtDlqK6gBW6eFTD3WzYfmvlFew=; b=e3BJRJFijQsRQlBjtpZOdQXvqaa50g/FUgtXk2bu4TQV7iaDcw8sbCelRkIsQUXX3F 1J02+5hLOeNkcxRa5youYW61308q8nM5K8HDY/36SniWh8TRgM19Uksvnjfd4qhHP1Tc x/LuhqGySe7KYzs6YZI7+6fh1mXmjfRVHnw6RM8T6CPc++/5qfMkgtIJ5CKY+4ww0v96 tV/5INNFQj4WyasbCRPRv2lJ7vZ+yC3odJ/u4SoZzoEp6kBZ/iN7YUfV1ISKb5oU4QT7 sFVUmujOVUx79I/E0pWvporFdNtuO2R8E4Q5CRzTekpt0DZg0+47WyEbImEWtV+m4gLs KREw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si3935800pfz.246.2018.11.21.05.20.56; Wed, 21 Nov 2018 05:21:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730507AbeKUXPO (ORCPT + 99 others); Wed, 21 Nov 2018 18:15:14 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:49224 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730407AbeKUXPO (ORCPT ); Wed, 21 Nov 2018 18:15:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1AC10353C; Wed, 21 Nov 2018 04:41:01 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 016493F5A0; Wed, 21 Nov 2018 04:40:57 -0800 (PST) Date: Wed, 21 Nov 2018 12:40:45 +0000 From: Lorenzo Pieralisi To: "Rafael J. Wysocki" Cc: Mario.Limonciello@dell.com, mika.westerberg@linux.intel.com, lukas@wunner.de, iommu@lists.linux-foundation.org, joro@8bytes.org, dwmw2@infradead.org, baolu.lu@linux.intel.com, ashok.raj@intel.com, bhelgaas@google.com, jacob.jun.pan@intel.com, andreas.noever@gmail.com, michael.jamet@intel.com, YehezkelShB@gmail.com, ckellner@redhat.com, anthony.wong@canonical.com, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices Message-ID: <20181121124045.GA21385@e107981-ln.cambridge.arm.com> References: <20181113112700.GT2500@lahna.fi.intel.com> <372db397d5384efd8e7264ba8e1b9cbd@ausx13mpc120.AMER.DELL.COM> <20181116105738.GA21277@red-moon> <35089177.HEBOdrcs2c@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35089177.HEBOdrcs2c@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 10:43:35PM +0100, Rafael J. Wysocki wrote: > On Friday, November 16, 2018 11:57:38 AM CET Lorenzo Pieralisi wrote: > > On Thu, Nov 15, 2018 at 07:33:54PM +0000, Mario.Limonciello@dell.com wrote: > > > > > > > > > > -----Original Message----- > > > > From: Mika Westerberg > > > > Sent: Thursday, November 15, 2018 1:01 PM > > > > To: Lorenzo Pieralisi > > > > Cc: Lukas Wunner; iommu@lists.linux-foundation.org; Joerg Roedel; David > > > > Woodhouse; Lu Baolu; Ashok Raj; Bjorn Helgaas; Rafael J. Wysocki; Jacob jun Pan; > > > > Andreas Noever; Michael Jamet; Yehezkel Bernat; Christian Kellner; Limonciello, > > > > Mario; Anthony Wong; linux-acpi@vger.kernel.org; linux-pci@vger.kernel.org; linux- > > > > kernel@vger.kernel.org > > > > Subject: Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices > > > > > > > > > > > > [EXTERNAL EMAIL] > > > > > > > > On Thu, Nov 15, 2018 at 05:46:08PM +0000, Lorenzo Pieralisi wrote: > > > > > Do you really need to parse it if the dev->is_thunderbolt check is enough ? > > > > > > > > Yes, we need to parse it one way or another. dev->is_thunderbolt is > > > > based on heuristics which do not apply anymore when the thing gets > > > > integrated in the SoC. > > > > > > > > The _DSD is there already (on existing systems) and is being used by > > > > Windows so I don't understand why we cannot take advantage of it? Every > > > > new system with Thunderbolt ports will have it. > > > > We have different opinions on this, there is no point in me reiterating > > it over and over, I am against the approach taken to solve this problem > > first in defining the bindings outside the ACPI specifications and > > second by acquiescing to what has been done so that it will be done > > over and over again. > > Arguably, however, we are on the receiving end of things here and even if > we don't use this binding, that won't buy us anything (but it will introduce > a fair amount of disappointment among both users and OEMs). > > If Windows uses it, then systems will ship with it regardless of what Linux > does with it, so your "acquiescing to what has been done" argument leads to > nowhere in this particular case. It's just a matter of whether or not > Linux will provide the same level of functionality as Windows with respect > to this and IMO it would be impractical to refuse to do that for purely > formal reasons. > > > I will raise the point in the appropriate forum, it is up to Bjorn > > and Rafael to decide on this patch. > > For the record, my opinion is that there's a little choice on whether > or not to use this extra information that firmware is willing to give > us. It could be defined in a better way and so on, but since it is in > use anyway, we really have nothing to gain by refusing to use it. AFAIK PCI firmware bindings should go into PCI firmware specifications, not Microsoft webpages. If we deviate from this model there is no way to tell whether that extra information is right or wrong, it is not necessarily about this patch, it is about changing the way these bindings are deployed in future systems. > Now, where the handling of it belongs to is a separate matter that should be > decided on its own. I think that the way these bindings were deployed is wrong, I agree this is not the right forum to discuss that though. What you will do with this patch is not my call anyway, I just expressed my opinion. Thanks, Lorenzo