Received: by 2002:a19:2d51:0:0:0:0:0 with SMTP id t17csp350084lft; Fri, 24 Jun 2022 07:08:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJv4HBP9xnz7w35lm8hvCI4Jv+Iol2IbGvee4QEaDpCc60v7YkBfSyDMiu5NpldLWaqT9M X-Received: by 2002:a67:f588:0:b0:354:35de:4329 with SMTP id i8-20020a67f588000000b0035435de4329mr13286856vso.84.1656079731675; Fri, 24 Jun 2022 07:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656079731; cv=none; d=google.com; s=arc-20160816; b=nw9yvscwAD9p2PIthiyKka2eziixxI5z9kh236Gvt9zw7vMt+iZtXVdZqv2GmmzaHk uFPeuyMom9QbtlHPo4MTSmLyLMsi1npjDcJEBvK3cJbBdc6r35OqnHtT8uVuewrN7MHk vWaTYf3w6onpdMWUYh5rXxlpqqkYLdypPxjxVpIzamtXWq5GeFsuVxMb5NjC/WAvUyrA NQDrzB9y+1VYoXcNh1IOFLVXHWxoAiirqyM07j/tLei5z1vj5QfEFwkVrXf6kCDmbV2t S0Ba+5LhC7gItiZsRhubuj8nUm5r+pSYKAmy+3M/WQUgkdkMZwsx+Yhgo9gbYfh81wTB O1nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=HA9zBQ34a9czCsJiwl3zKRII5McZGq9ymV0oJ9uEJFc=; b=oq6QcqKggQaLi990NOWpwrda75Q1cqHnByL6P/gm8te5LRRGUG5tE5yjGDhzmsivfy RPrRFxca4oiE9qiWhuFxLp89ie1fui8RxaiOWBkjugDUPHb8zHBbkitdGulA3DA5rosS AYQ6OZPbw9QqkXGJhq1zBFz6pTKjwZvLjqniL+SAOWqHRhXjYpAnc6HE2NF9V1IaEC2y l3w+Iak32eilRJXNmhusCoau0Rx7wqeINsI7nwhzWQCiKLsYB5ueVcEBAYt486+DO5ns DRSmIHLjFB6FjrDrT/NxBcQUo1SSWiGqupNhyDpQi9NEZotIsd//0Nz14hrWwLrMg0fe 20eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jonathan.cameron@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=jonathan.cameron@huawei.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from frasgout.his.huawei.com (frasgout.his.huawei.com. [185.176.79.56]) by mx.google.com with ESMTPS id r19-20020a67ea53000000b0032cdeb904absi482685vso.390.2022.06.24.07.08.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2022 07:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of jonathan.cameron@huawei.com designates 185.176.79.56 as permitted sender) client-ip=185.176.79.56; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jonathan.cameron@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=jonathan.cameron@huawei.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from fraeml701-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LTzVV11Wqz67sTc; Fri, 24 Jun 2022 22:08:18 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml701-chm.china.huawei.com (10.206.15.50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Fri, 24 Jun 2022 16:08:49 +0200 Received: from localhost (10.81.207.131) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 24 Jun 2022 15:08:48 +0100 Date: Fri, 24 Jun 2022 15:08:44 +0100 From: Jonathan Cameron To: Peter Maydell CC: , , , "Michael S . Tsirkin" , Ben Widawsky , Paolo Bonzini , , , Marcel Apfelbaum , Igor Mammedov , Markus Armbruster , "Mark Cave-Ayland" , Adam Manzanares , Tong Zhang , "Shameerali Kolothum Thodi" , Dan Williams Subject: Re: [PATCH v11 1/2] hw/arm/virt: Basic CXL enablement on pci_expander_bridge instances pxb-cxl Message-ID: <20220624150844.000005ec@Huawei.com> In-Reply-To: References: <20220616141950.23374-1-Jonathan.Cameron@huawei.com> <20220616141950.23374-2-Jonathan.Cameron@huawei.com> <20220624133909.00005f6e@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.81.207.131] X-ClientProxiedBy: lhreml735-chm.china.huawei.com (10.201.108.86) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-TUID: ykyhW5qgNBRP On Fri, 24 Jun 2022 13:56:32 +0100 Peter Maydell wrote: > On Fri, 24 Jun 2022 at 13:39, Jonathan Cameron > wrote: > > > > On Fri, 24 Jun 2022 11:48:47 +0100 > > Peter Maydell wrote: > > > > > > This seems to be missing code to advertise the new devices in the > > > device tree. > > > > Intentionally. I am not aware of any current interest > > in defining DT support CXL or supporting it in operating systems. > > Easy enough to add if anyone does the leg work to figure out the > > bindings, but that needs to come from someone who cares and > > would need to be driven by OS support and a usecase. The ACPI > > stuff here is defined as part of the main CXL spec because the > > target class of machines simply doesn't generally use DT. > > I don't really want new devices in the virt board that aren't > usable in the common use case of "just pass a kernel with -kernel"... > > -- PMM Ok. In that case, what do you suggest? Options I can think of: 1) I can come up with plausible DT bindings, but I'm not sure how that will be received by the kernel community, It will add a bunch of infrastructure to maintain that may be seen as useless at least in the short to medium term. Hence is not in anyone's test matrices etc. Dan, how open would you be to adding DT support? We'd have to ignore some of the firmware query stuff like QTGs as there isn't an equivalent in DT - or we'd have to go as far as defining actual devices with mailboxes to query that info. 2) Add it to something like the SBSA machine, but that brings a large burden in firmware etc and need to communicate everything via DT to EDK2 that is needed to build the ACPI tables in a flexible fashion + mass of EDK2 development. Whilst the SBSA model is great for ARM specific stuff, requiring the large additional complexity in actually using it to test arch independent software is probably going to just mean it bit rots. 3) Fork virt (obviously sharing as much as possible), potentially I guess that could be pretty light weight by declaring a new TypeInfo that is very nearly identical to virt with just the few extra calls inserted. Any other routes open to me to getting this support available? Jonathan