Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2838092rdb; Mon, 4 Dec 2023 08:48:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6sK6b1pfB6+3rwf/pHkAAhqloNUfJzZRk8XNibV8mEJXgWdF6quQkQLrguv4yaFtosXRR X-Received: by 2002:a17:902:c950:b0:1d0:8383:742c with SMTP id i16-20020a170902c95000b001d08383742cmr2104229pla.39.1701708505458; Mon, 04 Dec 2023 08:48:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701708505; cv=pass; d=google.com; s=arc-20160816; b=ucsWggOSOvuX1eApYiCII7BFaazFiUWpYr6PpVwCbz9/8iqXs5RFtkHCqk326gmk+f v1Yzqu60xbYpnwtK9wQp2YoiNuZ3Eiie/Pivha9vVzcOILEyH7FEWPTwA/XyjwlWnYjm NMOUnKm7/ZSMua71wv5fuHZFDQENba63WwUDny5HIh0g+GcAYUTKPSSUPG2WZL0gTAI/ J6LMXULsDIqKSZNrjCGDGMSkwxuSh7b+A7d4b2hlj0FjJdAaNbj7BnWb+fmuLb5G8SRs tKO5GACUPtxFah9RYIiPhVjjSYam58+yB4pddJS6A7jyx7CjCHYPtBSegXBXMqsEKPrw OTuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gxvuhFGyYcnEFbCPgvDB1H7cn79rwkKs54U5nhXao9s=; fh=bBZ+t2DELYTqLzZySQzLOkI+tVhq8EP6uBmSRAR6M18=; b=WppCWc7ZRYZyydF3cJr2+C6uM6hUd5eTTqo2RMlTG69NjxQ/ZtO4joB8twav0sp6IS 7/g6bZ4X1h+MgdkP52qAnnVihAgccAvsLC+mD2d2I+0jesTYZUCPc89mGkE9gjul5LR7 veRErSzHzLVD04h5kqGoj2YnIR1mDpWctgM1Cp1g7vaF/euch/dVmRbYgMhhc43Pv4x1 TsFQE2WtJ99kurISqi/FxM5vIDom0tReX9BCLOoat38/6xds+a8Zr8gfCHaUaVC7H8u5 ye1r1RASmpQ2AxsPZIKk/B1TLHhGVZiRsoCI4yfn9qB8+bEBB1mF5jFkJcJl6tqIMHQz IY7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rVzgEuGM; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x18-20020a170902ec9200b001cfb7645406si8385778plg.436.2023.12.04.08.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:48:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rVzgEuGM; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B9B5480990EF; Mon, 4 Dec 2023 08:48:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbjLDQsG (ORCPT + 99 others); Mon, 4 Dec 2023 11:48:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjLDQsF (ORCPT ); Mon, 4 Dec 2023 11:48:05 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2043.outbound.protection.outlook.com [40.107.100.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98E2B4; Mon, 4 Dec 2023 08:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kVLmmvvzn5/tRDOJD7VIJTby4Qd5ngW7CTpTyZJKq4IlGaD6AxgfIGPUs+Jc1Bu8UIKdAZTbqBWwyAKWw+VH067Z8Y2N9xIlMJynbNN9jqbjrAnVmAplNkIqAB9L4nymc2B7TqXaU481TkQKf3eA60AopUf9TNlWa5m10qqjx1SAltU7DeobrYsRiKXKEpaBXyPON7V8zPxOr1RdRnA80mFCXZMNmiHLjhUJ6VNfqc3ZcqMUj/zJjYNg5qrdCw3sJBTRLeENnx5YWHmvveIuVzJk7Q+jvvjOby0AhORQAK/zV+DMuBZOgt2u0c6gf+DRPGUJZFb9ffcl7YS7lpw6ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gxvuhFGyYcnEFbCPgvDB1H7cn79rwkKs54U5nhXao9s=; b=P2k0PEe0Q38s0+OkyCjI9nevMdqWdwGA7S1CrYI7WgPHBFuATMbHSxBRztWuaVBnqDgJ8TLO7cePDuw2JrF4DNHeNDlT9lOgOx+PCT5oqUXthg6I+Q4liVWo/vQ95thkLGO9jJkkuCg6VjgMqEOKMpZxh9sJemk9w7iCApp2WJ5In1DGHfFHZUeaSMIugBrPHGH1nGiJ4yIewn2drWYqNmOxStlpZDSbQHKYlbJa/CfNouShwmpYN76yJCHlplcWFmF3W6hngSdnqkt7Vd8L+siIU+7ZLqM/Ws64K7JEy+yjPi+6ALi0BtJf7KYD32PEudhdbdwQycVCGMrX9rmSkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gxvuhFGyYcnEFbCPgvDB1H7cn79rwkKs54U5nhXao9s=; b=rVzgEuGM1eUrn+054666+XCrVYAJFdTCnq0poHOcoV9jSQW7nibtUtNhqfBm/0HIS7EwNgzHjM8fZi99D5VKberMi3gm88SSKHr8OvAP4V3y9bBACgt9SfIZWmiS+Z260ZGc5HXHEJk1uQeO8yDzm0+Ksklzz2IyrdQ+dtFKPeg= Received: from CH2PR03CA0022.namprd03.prod.outlook.com (2603:10b6:610:59::32) by DM6PR12MB4404.namprd12.prod.outlook.com (2603:10b6:5:2a7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 16:48:07 +0000 Received: from DS3PEPF000099D8.namprd04.prod.outlook.com (2603:10b6:610:59:cafe::21) by CH2PR03CA0022.outlook.office365.com (2603:10b6:610:59::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33 via Frontend Transport; Mon, 4 Dec 2023 16:48:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS3PEPF000099D8.mail.protection.outlook.com (10.167.17.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7068.20 via Frontend Transport; Mon, 4 Dec 2023 16:48:07 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 4 Dec 2023 10:48:06 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 4 Dec 2023 10:48:06 -0600 Received: from [172.19.74.144] (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Mon, 4 Dec 2023 10:48:05 -0600 Message-ID: Date: Mon, 4 Dec 2023 08:48:00 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 0/2] Attach DT nodes to existing PCI devices Content-Language: en-US To: Bjorn Helgaas , Rob Herring CC: Herve Codina , Greg Kroah-Hartman , "Rafael J. Wysocki" , "Bjorn Helgaas" , Max Zhen , Sonal Santan , Stefano Stabellini , Jonathan Cameron , "linux-kernel@vger.kernel.org" , PCI , Allan Nielsen , Horatiu Vultur , Steen Hegelund , Thomas Petazzoni References: <20231201224556.GA534342@bhelgaas> From: Lizhi Hou In-Reply-To: <20231201224556.GA534342@bhelgaas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D8:EE_|DM6PR12MB4404:EE_ X-MS-Office365-Filtering-Correlation-Id: 77944529-0d4b-4470-5329-08dbf4e8cab7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TRFbRb8jv8i8S0lAK1ld7ffp8QuHlOqtz6bljygywXyyD6ampKXaXaUqwRk0p8Rnwj38o0aJLQUuC+Dr/0P//knR4qPehs9RHLMgryo5+m3u5OSn+9Zdx/rODDg/E0TCrpHbwzFEIRQSZMH7dsrDU9HoPsQJ7ShGivp7aaDWHxTvroac33EtrAZ+IEFHgt1v2sASb77FxuFLpgWGjkRu9ocXH7Wl60VycKCEvufJCdazVQgPrQfnV/RYE96+rK/a5MoN1GYBRNB20HHRVZQzmALsIC7aijrH9W0ioNUoz5md9vFIsBtoESDibXvKew1yVdnnS7PjQr7GcLbrQM9GADzgCgCsLF+Axc6N3e2oQi6O/DD/ng27B6obmDliO6lBZbucqBT/p7/e0JFzpkxtR4tAgSmfAYdVGu8DcXqir+OWbysvoyrEf3ZpwXDvpO/k6gAxWK4UX5YEOmRh5zTqxV5IBYEsGEGkBRgX7Hm0RkTXanVktg8JSAuVRJ9QBgv7BtQl9JKo/Cepdz4CWkB4rAGFp2ysZ/Fy4xEw4Ivokrxie5WeafzQiozjIYYQ2BNYZBGfQY/C07+DOSfusLAYENiMWCT2KfOOORiPlLiT5bfu7M8odi3y809SxxUHka/bs55NJZgUrsikMQ0DHyWLcGrfX1KdTdkdRccuCWH6OXJlqh+xiV7Q1vr2mG/UOS850Zrz55+bpda+evdTkl6Ivy7xoW4yFdZ78vAZBdxzjZyZ8vjKiPBc4XoY8XrM0tyPI8t5VQGEt43T2EquJ4fyr7gIfspAraU7Frs2YXK2cEk= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(39860400002)(396003)(136003)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(82310400011)(46966006)(40470700004)(36840700001)(426003)(336012)(82740400003)(83380400001)(966005)(478600001)(6666004)(26005)(40480700001)(53546011)(2616005)(110136005)(4326008)(316002)(8936002)(70586007)(16576012)(54906003)(8676002)(70206006)(31686004)(36860700001)(356005)(47076005)(81166007)(5660300002)(7416002)(40460700003)(2906002)(41300700001)(36756003)(44832011)(86362001)(31696002)(43740500002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 16:48:07.2877 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77944529-0d4b-4470-5329-08dbf4e8cab7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D8.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4404 X-Spam-Status: No, score=-5.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 08:48:22 -0800 (PST) Here is the link I put in patch set cover letter https://github.com/houlz0507/xoclv2/blob/pci-dt-0329/pci-dt-patch-0329/README It has the steps I used to create and start qemu with pci bridges. Hopefully this helps. Lizhi On 12/1/23 14:45, Bjorn Helgaas wrote: > 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"