Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp516287ybt; Mon, 6 Jul 2020 15:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvofZehHRb+isGX8aw9K1EFOVEhd28XdQ3sWrd7v6nJtJM9SmAPd0M04eQpQgH2PT9CmGb X-Received: by 2002:aa7:c4d8:: with SMTP id p24mr54496825edr.323.1594074003136; Mon, 06 Jul 2020 15:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594074003; cv=none; d=google.com; s=arc-20160816; b=hBJGZ2ccXB7J7MEi4esKBJcIYOQ/wUX5hy4zwZQh0HRLehgPVbveQftj1dbquBTNCt mnrm4iAMoUj3j9bsvCiQ3kZCqv2lsQx5R1Qysq1LRACV/3Bvr/s21HKAJSWTAMdIiKgt TcM93Ew+kP9KcuPvXMBlbk8p4dY0D1pzToSTZ79lhYzi+mnbEt15lLb3rHcrMasYyjMo utFPEuB229Pi5l8QiW9i2VU/+HE/udJ3wCpcVQosV2L2fCXlMcGocEvz6V3ZyUFdyrgL A+j8hZn8kDnd/beNbyToBhnHqoUjbveXs5ndbJ5mJxiON+rYNjX/kVMHm3xFxsJACiC3 H9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+g8b8UDutwpjfN6lizjtfC7IoMCTSDjsjPJug8YnTgg=; b=pybnyUlOl0Y8XCMKpFFts95N2ZHtqGoZeVmqjBV9cpJuHwYSc3OwBB13Tl8ZSKGdOp Kwv1xikJNMeSl0kEPoYDqs39ITnyxPQR+xtss5u+XbfFJ2DMBPGGwnCZiEjqxlVOEt4h Ho930ePsk81G4wJ1P44+sw5BfIlsvkoW+qvVgmRexvP9u4V6c0oyzL15vkrLBnhc2Xh+ GpDdHpDpkodPaisyb0UK8TJRoDqMdbc/9OPFztFT/O99H2JLlCvopKkYkBlWx2tNTLMr XBh3Jdrm8QgADG6/249LYlrJrc+CKx1eM/k5IyIz0JVlxcfnNYf8DOCI8gRM2xemQ8Qs zMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KUh+nyqn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si14131114edy.39.2020.07.06.15.19.40; Mon, 06 Jul 2020 15:20:03 -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=@google.com header.s=20161025 header.b=KUh+nyqn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbgGFWTC (ORCPT + 99 others); Mon, 6 Jul 2020 18:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgGFWTC (ORCPT ); Mon, 6 Jul 2020 18:19:02 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3CB4C08C5DF for ; Mon, 6 Jul 2020 15:19:01 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id h19so47523404ljg.13 for ; Mon, 06 Jul 2020 15:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+g8b8UDutwpjfN6lizjtfC7IoMCTSDjsjPJug8YnTgg=; b=KUh+nyqnQkj9RcybDE5PeCJrAdjLCL6MfvAIePJyXHNRX0F8FKTnKIeG1/vPX6JbR0 ZkH2vounWJTv0AHW++nq9HTK5t0tj2w7jkJDno0f/aPPilRdMq6kUjJLsLllyc6nZzA9 gFUpa3s60zoHwqlYS1ibCaFMDpBcrs4toKYyR9eGRtgpjbgUrfwu2ZQtV4h54mS9Dk8Q lg38TgKrJ4Lvli78idB1ExZ9K7zVg+JISjzyd/fRrzPpJ9bQnYZblkHcGZJkJsuDKxMs /oeUvTOZc6v1rGutbgXAGNSFIyPxvgBklnWYlKvi0d+6iWbY9jFw/OyGoH076u85nh1D 9QPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+g8b8UDutwpjfN6lizjtfC7IoMCTSDjsjPJug8YnTgg=; b=cyyo6NP2OugMBytrXpGrgLcmn1tlYmFgs4GNc1u2O5VIfDO8r4YjClAxlZ8rbzrcXL LVW9eyEAjHPIypSa70IXfdTqeE0x5bEPZZjW9UW7D28w5o5IFdO42iAk7oSBfI5qL4vx 9JwO4wBNwbd6imJTw/y2xou6A0oyAFsnjFQ13+iR7ojk9+afknEGaTVjQoV2HHcWk4jF V6HWCGSS+kZFBOgN+osw25q/lQIYGcG4zjSpuF5hHGTrgQpmnoGYidxpvEd0+/8JhfuY SPzTmJ3PFgXvfIXTQab6E+VQuIBSoO71js/Wu4jgT/hTYbp1nbYq8WOyfwr5ZQCOx60x LX+Q== X-Gm-Message-State: AOAM530IEbLJ8Ot5ZxrMu7uspP8m4re8sygjz08EXLoebN1JD307V01D SIlpJ1G8EVpae56Bnwhpca/GquGxKu2sVNpj7TeaCw== X-Received: by 2002:a2e:b5a8:: with SMTP id f8mr27313685ljn.247.1594073940036; Mon, 06 Jul 2020 15:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20200630044943.3425049-1-rajatja@google.com> <20200704114452.GA15530@amd> In-Reply-To: <20200704114452.GA15530@amd> From: Rajat Jain Date: Mon, 6 Jul 2020 15:18:23 -0700 Message-ID: Subject: Re: [PATCH v2 0/7] Tighten PCI security, expose dev location in sysfs To: Pavel Machek Cc: David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , "open list:AMD IOMMU (AMD-VI)" , Linux Kernel Mailing List , linux-pci , ACPI Devel Maling List , Raj Ashok , "Krishnakumar, Lalithambika" , 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 , "Oliver O'Halloran" , Saravana Kannan , Suzuki K Poulose , Arnd Bergmann , Heikki Krogerus Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 4, 2020 at 4:44 AM Pavel Machek wrote: > > Hi! > > > * The first 3 patches tighten the PCI security using ACS, and take care > > of a border case. > > * The 4th patch takes care of PCI bug. > > * 5th and 6th patches expose a device's location into the sysfs to allow > > admin to make decision based on that. > > I see no patch for Documentation -- new sysfs interfaces should be > documented for 5/6. Yes, sorry. The patches 5/6 have run into discussion and it looks are not acceptable at the moment. Thanks, Rajat > > Pavel > > > drivers/base/core.c | 35 +++++++++++++++++++++++++++++++ > > drivers/iommu/intel/iommu.c | 31 ++++++++++++++++++--------- > > drivers/pci/ats.c | 2 +- > > drivers/pci/bus.c | 13 ++++++------ > > drivers/pci/of.c | 2 +- > > drivers/pci/p2pdma.c | 2 +- > > drivers/pci/pci-acpi.c | 13 ++++++------ > > drivers/pci/pci-driver.c | 1 + > > drivers/pci/pci.c | 34 ++++++++++++++++++++++++++---- > > drivers/pci/pci.h | 3 ++- > > drivers/pci/probe.c | 20 +++++++++++------- > > drivers/pci/quirks.c | 19 +++++++++++++---- > > include/linux/device.h | 42 +++++++++++++++++++++++++++++++++++++ > > include/linux/device/bus.h | 8 +++++++ > > include/linux/pci.h | 13 ++++++------ > > 15 files changed, 191 insertions(+), 47 deletions(-) > > > > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html