Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1371432rdb; Fri, 1 Dec 2023 14:46:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVY+e2KSC6x2CXrYNVp12gH8eeyi4Cn7HyB4dksgUDlxoBugkDpyC1ThiNp9n9fwBEVnao X-Received: by 2002:a05:6a20:e123:b0:18b:fde7:71ac with SMTP id kr35-20020a056a20e12300b0018bfde771acmr338092pzb.60.1701470770169; Fri, 01 Dec 2023 14:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701470770; cv=none; d=google.com; s=arc-20160816; b=W6tbvG6ubFj6WGLPyPR/NiYqfk43k1AkP9sVAi9tDN1hS3ULW/Qyc3i7bo8QWXzTt8 L/xj4QtsBGRazwAAESX6XgKHoQGqsHYqOUCoHKWqGrmwp2zmgaE1jxTLeN2vAlXxpKbf OUVTds5YgtoNO0a5XBC8j3ihDUIK8TPYP8ck+wLS2P5lNPMGKwApRpE0gR4og8jM7Mxh YB1Fdh6A1fn4rHqkqZv9/9eM7IgZGWN3bTjb/RvTreAGiKmrEJ7Ecd1rx4z8VjTiW67G s/S5cZBuH488jmIgLwE9oXjsNJrlYhV6GB5FLtyCCGpYzZpQdsPdhCpFq3JSb4G8tNOm omOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=hcHS+l80Aj/5xnJLb5lvLgUodQa4RF9HrgYUSD23Zso=; fh=IN32XNQXj4hB/JNf+iq8LlTq5RsQIOnRxAGMvA+dnBM=; b=ti/bUM278eKyGQWI7b7JamF2KeZK+1vxCcoZPx6U1VnI5AP7zPBYmL2LedIp6FApeP iykDhZJnmYY9pFPeG9XwqGmOYCPbnt4rbqSd7fwtOPyr7HDTg/mksNfpj/1PORvfMocI /nopA9QIdZZvnxgt8J3g1EjUpQjHIg+8pKLSQKtcAPm9tL7mMTbhVgbcyWEOKXf48Pli 7w3nqEyNrCSo6XX1BwHuHlx8SDC9cZvuWcownasK+TL2eKK0ICWd8d7WrXJ4Q+gDXryz 6gQnerGl+w/55fLR0DTUAzE2kqGqhATIEbVSZk3XiEst0IvofRrCxK+4g3SFfIdhKw8d BCRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kx1uGmM9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ml6-20020a17090b360600b0027d04b581dcsi6321138pjb.72.2023.12.01.14.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 14:46:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kx1uGmM9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 39C6D812F46D; Fri, 1 Dec 2023 14:46:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjLAWpx (ORCPT + 99 others); Fri, 1 Dec 2023 17:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLAWpw (ORCPT ); Fri, 1 Dec 2023 17:45:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D6E5E0 for ; Fri, 1 Dec 2023 14:45:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7810CC433C7; Fri, 1 Dec 2023 22:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701470758; bh=mCohPRAX+vrdHwTJQfgkUwLwKKdD+fr/q27He1nuF8E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Kx1uGmM9g+AIj3wuXBYWMCmQc9JPLjuznc9FaYjduL06/UxSMwuS8ZN7X/yHVTnCD WokxVBc+afmbzOK1IXvBwaMbSVcetA7WC9BhkiWjLVefqDhR0ZvnFcHEuGe35jQf+S IURMlnW9WmH++LEenQOz1HU4fVh+/NNVMDiUhUbaMuSnshQFxjVNqH8bRpJmEzSHCs 4centAtD1uaulNfuu66PXGaTzLujuEVPIHiiUWoQoVYRqje9rTG2+ko6aF+23nvHhc nBTVHL8ZeulJ9judD0RjvheDiMGblkuL0zhKYgCKdTmvz7lzc5o7Auh2O/ZjzVyZsa dHxqFZTpv1WmQ== Date: Fri, 1 Dec 2023 16:45:56 -0600 From: Bjorn Helgaas To: Rob Herring Cc: Herve Codina , Greg Kroah-Hartman , "Rafael J. Wysocki" , Bjorn Helgaas , Lizhi Hou , Max Zhen , Sonal Santan , Stefano Stabellini , Jonathan Cameron , "linux-kernel@vger.kernel.org" , PCI , Allan Nielsen , Horatiu Vultur , Steen Hegelund , Thomas Petazzoni Subject: Re: [PATCH v2 0/2] Attach DT nodes to existing PCI devices Message-ID: <20231201224556.GA534342@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 14:46:03 -0800 (PST) On Fri, Dec 01, 2023 at 04:26:45PM -0600, Rob Herring wrote: > On Thu, Nov 30, 2023 at 10:57 AM Herve Codina wrote: > ... > Also, no idea if the bridge part works because my qemu setup doesn't > create bridges (anyone got a magic cmdline to create them?). I probably copied this from somewhere and certainly couldn't construct it from scratch, but it did create a hierarchy like this: 00:04.0 bridge to [bus 01-04] (Root Port) 01:00.0 bridge to [bus 02-04] (Switch Upstream Port) 02:00.0 bridge to [bus 03] (Switch Downstream Port) 02:01.0 bridge to [bus 04] (Switch Downstream Port) 03:00.0 endpoint 04:00.0 endpoint IMAGE=ubuntu.img KERNEL=~/linux/arch/x86/boot/bzImage IMGDIR=~/virt/img/ qemu-system-x86_64 -enable-kvm -s -m 2048 $IMAGE \ -device pcie-root-port,id=root_port1,chassis=1,slot=1 \ -device x3130-upstream,id=upstream_port1,bus=root_port1 \ -device xio3130-downstream,id=downstream_port1,bus=upstream_port1,chassis=2,slot=1 \ -device xio3130-downstream,id=downstream_port2,bus=upstream_port1,chassis=2,slot=2 \ -drive file=${IMGDIR}/nvme.qcow2,if=none,id=nvme1,snapshot=on \ -device nvme,drive=nvme1,serial=nvme1,cmb_size_mb=2048,bus=downstream_port1 \ -drive file=${IMGDIR}/nvme2.qcow2,if=none,id=nvme2,snapshot=on \ -device nvme,drive=nvme2,serial=nvme1,bus=downstream_port2 \ -virtfs local,id=home,path=/home/,security_model=mapped,mount_tag=home \ -nographic \ -kernel $KERNEL \ -append "root=/dev/sda2 rootfstype=ext4 console=ttyS0,38400n8"