Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2249287ybt; Tue, 16 Jun 2020 00:37:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyOOqwN1PUP2qnCZyUsGbh2MaPU1h/2rgPEbKizC0fbIqQD4XsZekaau8ytmfU70LAvzli X-Received: by 2002:a17:906:3013:: with SMTP id 19mr1505673ejz.303.1592293036522; Tue, 16 Jun 2020 00:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592293036; cv=none; d=google.com; s=arc-20160816; b=uC1YSFhfZqQGJZa0jbaE321EQYyymMYciac9l/jUhgbYfCl/xUDdA38WbU1M66Z86z t/Y2WUF40ev6mn3Z/5h8hZ/tNNsHq/Dwn0BpwSWhn0kCT4SGTMdXHYpcS8fuFpzY1R+r 9Y7Q6a+yvLGDlcNY1mY9sQLYT3NTLFck72TueaOu83J4E9WUP7c34saGfzXRpNsWgoYX Ny9gXpxoHbyZescvN7x8TCEXyJKdonjyWrS7dWH3/UdYGXg+MGLlsB2IUdeXQqKKMx9S CP9DKM51JDJrL4j/Yaq6MxBJK0xCUPQ2VDtpNnLebP033pbyMSi2mULuSCmMOprJazE/ fSnw== 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=TCESyuutW94Yi9hrCxtJaxfygdsqJ+GfwqDZdSbMGZ0=; b=knIwI7X0+G1ps/wjF3PkrxypbB1EX4PXAsmSj8x2mQ2Cj38YgofuBt7a81w3TOLvvg 12ZSEjFNSp0oeASd9DYXtzOj88T5+7ThNgAfhv/lm/FqSUVMb8jr2VlCkpO3tJ/kIXuA CH77y5qJGXUS8Jr8d4XWyHHL50/7oCaDU+2c2LD2+J2LHxv/l2qwJqYiOkNzEA3wvbuN sbo0zJFNIi7xtQO4D2BRO0mmEBaWcgdqFEdVPOyZ/tKFZHk8bWQvs6zMZufizgXwZTP5 UeJk8m8gZgLlDsJoYYRDlj8EDOARKWopTyF19pYOLy6lR8c6sY0WoxTM4Fdo6I29IgwX WJGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tCpmXscq; 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 u10si9854347edq.425.2020.06.16.00.36.54; Tue, 16 Jun 2020 00:37:16 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tCpmXscq; 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 S1727040AbgFPHdB (ORCPT + 99 others); Tue, 16 Jun 2020 03:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgFPHdB (ORCPT ); Tue, 16 Jun 2020 03:33:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F38C05BD43; Tue, 16 Jun 2020 00:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TCESyuutW94Yi9hrCxtJaxfygdsqJ+GfwqDZdSbMGZ0=; b=tCpmXscqbiULhnYZLCtyvgelRm F0q+HF25wSHigEGiq9ojEMmws7IWh/6fv0QX91lkaVOvsCuJaF/mUojzH80LU60cu7s1oYVocJLy5 V8cqeWNrj0eHquJ4CRB9Yei9Zk/IQT/dmYwQXS55kK2CGyFV3/DPed7ZwltilqznodPTb2EJ+190q M0ak5iWUzj7LJtLe0fnWMSJM7PMSOW8JN6uRCIX6PEOLkHYGmnORq9E0MasgO4qL3TpU8OU52qV3F ZJSYyNx+z5OqATcbti4fbIUMZnfp1NxnZnAXHdW6dT3aickDAcfMQ9E9zNu/Fef5tNXgZnckCkDAd 0ozQ/Yrg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl65R-0002Dk-Ek; Tue, 16 Jun 2020 07:32:49 +0000 Date: Tue, 16 Jun 2020 00:32:49 -0700 From: Christoph Hellwig 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 , Greg Kroah-Hartman , oohall@gmail.com Subject: Re: [PATCH 4/4] pci: export untrusted attribute in sysfs Message-ID: <20200616073249.GB30385@infradead.org> References: <20200616011742.138975-1-rajatja@google.com> <20200616011742.138975-4-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200616011742.138975-4-rajatja@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 06:17:42PM -0700, Rajat Jain via iommu wrote: > This is needed to allow the userspace to determine when an untrusted > device has been added, and thus allowing it to bind the driver manually > to it, if it so wishes. This is being done as part of the approach > discussed at https://lkml.org/lkml/2020/6/9/1331 Please move the attribute to struct device instead of further entrenching it in PCIe. I'm starting to grow tired of saying this every other week while you guys are all moving into the entirely wrong direction.