Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1914385imm; Sun, 12 Aug 2018 02:36:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz3f/9om2bsAEo5weq4Gc47jWth/IQ9YsuEMiOWWyErqshp1uS7FefxOX4r5f9Ut1gYTWwe X-Received: by 2002:a65:4cc5:: with SMTP id n5-v6mr12822875pgt.451.1534066619554; Sun, 12 Aug 2018 02:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534066619; cv=none; d=google.com; s=arc-20160816; b=V1RCkEMCaORAVBeuLWFYd0CPO97jsGN3rggBsssHuvueygB//czPU0NufTLDjgNzjO 7nnxZPOTbkDre00QyqKzCPGwUVr+OPTlZgCJCfW+aV2NOg4rRPFEUkZdyrkvcl5riE2D pFlFYzAwjzFmgeeh1UTuDzSOSp/4zckbyAaVH/4m16MTDVerUUN4qSlMdaE8RP9lilFT i4bEdHPKj29aaJ29H+1PSpG6wbGogTh/Nb4mWJ86CpQZ6TlzMM9z0QJuofefP6iEua3l l6gcSWk1KkodNZFyUrkGbk4CkNK93VDnx+Nna3RIxfUAYSu5c7CcrXw73zdLIn8jqUqG Sxtg== 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:arc-authentication-results; bh=wlmVZJIlkxit6jo4ctJvVwR1n9Gfbb5EsEn1tEohZVE=; b=Mwp4iPy9RenQFUKYriP5zF/imn/7HuEcQfOVC+r+1L2rzyX+aHpfNJZLWBETfD8MhI opLqUtDtw5symfRx25gl+VO08Cnp/BbYXmHeFogfxb41TIrklUShE2mWyq8EJO+0UMiQ o4iWqOcJfdIbYgvonmaf4PXFXxvKjg2tGsqQgnUDWnQsb865mUB2whUlKJ2IEBur4r5i v+M9xJiJvNQB4gn6QMnQgqE2s0TfMsglI1zr5kz11kRWXLXkvpYS2IOmCqRvj0uBEsTo XQY6oHhbZ1LdUP5hY7cjKm6Hx1ylkOPhoA6kNNj6vGaIDNyasUNXG0cYVyvDJxvl+BRz I36g== 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 a20-v6si15041410pgi.184.2018.08.12.02.36.15; Sun, 12 Aug 2018 02:36:59 -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; 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 S1727800AbeHLMGD (ORCPT + 99 others); Sun, 12 Aug 2018 08:06:03 -0400 Received: from nikam.ms.mff.cuni.cz ([195.113.20.16]:44436 "EHLO nikam.ms.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbeHLMGC (ORCPT ); Sun, 12 Aug 2018 08:06:02 -0400 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 2587) id 5BCCD540945; Sun, 12 Aug 2018 11:28:37 +0200 (CEST) Date: Sun, 12 Aug 2018 11:28:37 +0200 From: Martin Mares To: Matthew Wilcox Cc: 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 , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Christian =?utf-8?B?S8O2bmln?= Subject: Re: lspci: Display path to device Message-ID: References: <20180717170204.30470-1-logang@deltatee.com> <20180717203900.GA1771@bombadil.infradead.org> <20180810145655.GA16533@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810145655.GA16533@bombadil.infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! > One is that using -P and -s together doesn't work because we haven't > scanned the entire topology. > > $ ./lspci-mw -PF tests/fujitsu-p8010.lspci -s 1d:00.0 > 00:1e.0/03.0/00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01) > $ ./lspci-mm -PF tests/fujitsu-p8010.lspci -s 1d:00.0 > 1d:00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01) Fixed. When topology is required, we now scan all devices and apply the filters later. > The other is that even when not using -s, the topology isn't fully represented: > > $ ./lspci-mm -PF tests/fujitsu-p8010.lspci |grep 3com > 00:1e.0/00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01) Ah well, it seems that the tree mode never worked with CardBus bridges. Fixed. After some pondering, I changed the format of the paths to include bus numbers in all steps. I think it is more intuitive. Please give it a try. If it works, I will merge the branch to master. Martin