Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp62327imm; Tue, 17 Jul 2018 14:02:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfvFQWwqohO4bNS8jLyBcWJcPMnCrGy+BoQHS/xkHmlhv6BmoJqHYMNBtHin7SY6KiPZKGx X-Received: by 2002:a62:6d02:: with SMTP id i2-v6mr2269818pfc.218.1531861323824; Tue, 17 Jul 2018 14:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531861323; cv=none; d=google.com; s=arc-20160816; b=yt1YBarw22L+ub38rk8lHScK0hr8pwtow9dQ2mnSlZZaTRUhgMBnOtTdQEHbfubz5E negKLS+8hOTIS1gt5SZzOLMlSikNKw00oNtzx3wDx1hvITYKjohaHMe2dn556NVsqg5b /knlrrA+H6oosqu95FaV9UIe03iidMoZbsnzGfeN++3oyB/9kcIu2eAcnLdFksb6TyM/ XBJAOJ6mvpFPuKJeDVhN+LdRM7bVjWA9BHnjVUzbrxS+NyDA45lIomqbqQkuRWg8+2+s On+SKTGG3Dj61DT0VIkfq1mMb/qgz4OpU/OXtRV16aQaqlKyO5UHExyes/WCSkTxt9a0 qSrQ== 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:dkim-signature:arc-authentication-results; bh=4k+Jk7k2bwggVGvHzbZ6YreRiUlUHI4/kbMXsaCIjY4=; b=S9QTh+M14Qwz/rKjm3fnMHCAJasSceaFEOAfsjvvj3nclUKl4MEQh8jzXTc01PfK2g vzXN/E4tadj+Fj3KNQ46g+X6SonPHAspOJqYHIBwilkTNke224Yc/Or0iQQvH6Uej0XL rOABVcfzW5ngcSWCm0TSSA2wLtgQh+QZCTwxlLn/eIedFyp9IBg4Ur1wTKrZJndV1YGR Xso1rIjWPiJjaBk2joKFU3WYIWqp86+hUBk6VvaHkIkX+QjvpMM/Keuzlizc4GKDGep2 XcZc0hqVEtkjc16rUt9rJzOPPd5qQtCdipXuB/bGYJR6VhnMWkIrd5wFQ2x0ifN9ye0R emTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u96y1yL0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5-v6si1815241pgk.533.2018.07.17.14.01.44; Tue, 17 Jul 2018 14:02:03 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=u96y1yL0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731151AbeGQVfV (ORCPT + 99 others); Tue, 17 Jul 2018 17:35:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730092AbeGQVfV (ORCPT ); Tue, 17 Jul 2018 17:35:21 -0400 Received: from localhost (unknown [69.71.4.100]) (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 A6A3520693; Tue, 17 Jul 2018 21:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531861254; bh=jyAyA87q5GjW/n4zlgeFINvr31lUtLiCTCEMZgF1ysk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u96y1yL0kwVMqpOZXOv35K4M0LO/9ie2yOqg4Fab5vmZKWeXGNUTxdZlq31GL1KzK VUG03m+gxa4seXvEck8VKKAfa4qcgjbl7uRWC79LdAF0Ah7eQuw8QKaCFWJXssvPw8 UMPgECZGk1XlQ5IS2ahhZLUIYgJ0OZP+t06LBscU= Date: Tue, 17 Jul 2018 16:00:53 -0500 From: Bjorn Helgaas To: Matthew Wilcox Cc: Martin Mares , Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, Stephen Bates , Christoph Hellwig , Bjorn Helgaas , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , "Paul E. McKenney" , Marc Zyngier , Kai-Heng Feng , Frederic Weisbecker , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: lspci: Display path to device Message-ID: <20180717210053.GB128988@bhelgaas-glaptop.roam.corp.google.com> References: <20180717170204.30470-1-logang@deltatee.com> <20180717203900.GA1771@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180717203900.GA1771@bombadil.infradead.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 17, 2018 at 01:39:00PM -0700, Matthew Wilcox wrote: > I don't like telling the user to grovel around lspci -t by hand. It's > not many lines of code to add a new -P option to lspci to show the path > to each device instead of bus:dev.fn > > Here's three examples, first without, then with -P. > ... > The Nehalem system makes an interesting testcase because it exposes some > registers in fake PCIe devices that aren't behind the root ports. eg: > > ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 04) I think these appear as conventional PCI devices; at least the ones I've seen, e.g., [1], don't have a PCIe capability, so I think it makes sense that they're not behind a root port. [1] https://bugzilla5.redhat.com/attachment.cgi?id=433169