Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3381653ybt; Tue, 30 Jun 2020 01:02:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF+jYCBR+8UVWbo4Cz99VptGZ6IAZdf4y+qDIdFET/J7n3F6bpVAx0LzjBwJsfxrMe0ecL X-Received: by 2002:a17:906:4942:: with SMTP id f2mr18026821ejt.125.1593504158736; Tue, 30 Jun 2020 01:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593504158; cv=none; d=google.com; s=arc-20160816; b=fmcb24BG8RTdXnpaYfymaf9LZBFPxrgrC2FVfjlbz2Z3fsMPELditWOoc8gNanrEUj 6rTfVD51ZKGLD0+WZwORz5EVfDkKXNCWBdfDC7+b0GZ8qp04kP0x7V51VqX7ZY2YTEFg xFU7Lvejjg7c1Qya9VtBKmF8JCsG8qwmdmbr3wmpbfPjMkDkiOfDENEAWYk0O0Wn+u5V GNr9i+uqzZmgfRebW1C6kYExnlExeTh+fXJqZ1S8GdRweUHccGZAhhdfyhwXdDTZer9t 6M6Ve9YjNr6Byr/HX9A5zkcXvujomMuALzW4r9R4sp88cUBPcq+Ry5xasyIFqTy5YKl7 G4/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wPi6TqXl2bpAJ+yw9lBOduthqsuKufVPr4WDqG0yfdQ=; b=0TXnd36t3yN8sCV8/vHHgIfIxrLCSVYIfC4qkNgi3px3EMbBTIEJaD8CqfYVxfvvqv iM52p/n4jt9nxvqc62PMXVJ9I5SC3DlU6h+ciTnyNADX8dP3DiOfSeQ8NgKZkDbQu5dk CN2L6M2vsxq8E6apuXtrch30CQl5aGYf8MAUnto0/DEDZd+HskcVCGX/6Ot5GtdkoCH4 vX9V7RWu6lF1eQ36ESz/eCXg8M4Ht9Nt7GE35tlGt5nKJ45praHkvTEXc3W5YB3QI65Q gwjLJFJgMe6VMS8CY9f7GdSlDAOE6J452MUTNjmKfCdjr3tM2L7Ve1CsK7nOk+f8Zpo/ Nb6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UseD4Oqp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si1246730eju.670.2020.06.30.01.02.16; Tue, 30 Jun 2020 01:02:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UseD4Oqp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730369AbgF3H4C (ORCPT + 99 others); Tue, 30 Jun 2020 03:56:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730067AbgF3Hz6 (ORCPT ); Tue, 30 Jun 2020 03:55:58 -0400 Received: from localhost (unknown [84.241.197.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9A882067D; Tue, 30 Jun 2020 07:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593503757; bh=8HoL27Fy1oql9ax07Kss/tYVj+ejtEl7JwO0GZk0Q1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UseD4Oqp6Ve6uIXu8VqNQ+fkXFXjGA8IJPjriVPgrMwQ9Zccl1oDh14Xc704Qp0mQ vHxNKtxrVgK4wyg97I33ta98sFEXw5Npv+4NnGwPThG/5hMuX7Qd5JMWAVW2pDb8VT kjoJnQWVx3H+/29AWMTGhH+BQXM5ycf3tJW4hXgI= Date: Tue, 30 Jun 2020 09:55:54 +0200 From: Greg Kroah-Hartman To: Rajat Jain Cc: David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Raj Ashok , lalithambika.krishnakumar@intel.com, Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Rajat Jain , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Jesse Barnes , Christian Kellner , Alex Williamson , oohall@gmail.com, Saravana Kannan , Suzuki K Poulose , Arnd Bergmann , Heikki Krogerus Subject: Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only Message-ID: <20200630075554.GA619174@kroah.com> References: <20200630044943.3425049-1-rajatja@google.com> <20200630044943.3425049-3-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200630044943.3425049-3-rajatja@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > The "ExternalFacing" devices (root ports) are still internal devices that > sit on the internal system fabric and thus trusted. Currently they were > being marked untrusted. > > This patch uses the platform flag to identify the external facing devices > and then use it to mark any downstream devices as "untrusted". The > external-facing devices themselves are left as "trusted". This was > discussed here: https://lkml.org/lkml/2020/6/10/1049 {sigh} First off, please use lore.kernel.org links, we don't control lkml.org and it often times has been down. Also, you need to put all of the information in the changelog, referring to another place isn't always the best thing, considering you will be looking this up in 20+ years to try to figure out why people came up with such a crazy design. But, the main point is, no, we did not decide on this. "trust" is a policy decision to make by userspace, it is independant of "location", while you are tieing it directly here, which is what I explicitly said NOT to do. So again, no, I will NAK this patch as-is, sorry, you are mixing things together in a way that it should not do at this point in time. greg k-h