Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2675291rwd; Fri, 19 May 2023 08:43:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6INS4fM9lXdkJTiKHurPcwUgV5D5ueRZv17rUnpJqiH3BBNOwbZvBtWmcsG6W+e7dhwyjS X-Received: by 2002:a05:6a20:a209:b0:f2:eb8b:77a3 with SMTP id u9-20020a056a20a20900b000f2eb8b77a3mr1921418pzk.35.1684511004522; Fri, 19 May 2023 08:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684511004; cv=none; d=google.com; s=arc-20160816; b=QmXD5mnzsN2cW2DCvTSNZGMHAp3XF387Q/pb/aXoqgiaPKJvTM4SHKpc4F1UnwLr0D TIh5zhi4E3/VcFxbthiuicoulhsxtwfA/lzLiWgqR3qy76YuqvwqY7GXyjRElvqAuNx/ GkqCIm3GHsiaRbv06Xrl3pOFtZy0kxzyFcHTLK7AMGKNXvWQV+9ms/dLihzHTVJ/djOU vUqf534haljk9ZgCSJsqi0vEwaIxoXLeWKYEziXcFl5lfgOq6LScNUhDXur/PdT78gTN JVlYtJqNTxrLRtqQT27m6186WCBojpt+T4KrK8BeIkF2G5tRFNUa86KDMM+4HfPVxZpZ cqyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=iD3HFYzfjHPJaiQrVkKgrVSnEvRD6hqIQ7DyS+4kYXQ=; b=q97y4aYS0vBq1FeGO8tlnqRoFTiOP1RiLAbCV1GxdMyIMBOmaPl5pL1iZxvPYJyXOQ 5Vfdvwl1qcaX9K6O09Eb1lh5KusQrg6QzXt0SAI1FiJPHlDFFKzpb9CihtlJMJnhYDAd cPE75aGOK7t059VnMo21+/MjwWuhzQVJVGqIh8Ar0cugFW+E7ZPdPTyID8GTwAUEyFLw 3KQPXLnKNRtcQIiYEN1Qn9lNn3ksszXVUq3psJUGdDKmdE7MzOoJ7Pq0dpFE26MNQ5AY l6MaszMPH81fbViQRIFY8mOPWheiVBxv5X3NWqXZ94CpXZgJpkxAWf4Bj+odQ+rQvJkF 6Iug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u67-20020a637946000000b005288509b88asi3602974pgc.681.2023.05.19.08.43.11; Fri, 19 May 2023 08:43:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232099AbjESPiF (ORCPT + 99 others); Fri, 19 May 2023 11:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbjESPiE (ORCPT ); Fri, 19 May 2023 11:38:04 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22A741A6; Fri, 19 May 2023 08:38:03 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QN9tq6T5Hz67qNN; Fri, 19 May 2023 23:36:51 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 19 May 2023 16:37:59 +0100 Date: Fri, 19 May 2023 16:37:58 +0100 From: Jonathan Cameron To: Ira Weiny CC: Davidlohr Bueso , LiuLele , , , , , , , , , , , , Subject: Re: CXL memory device not created correctly Message-ID: <20230519163758.000044dc@Huawei.com> In-Reply-To: <646793cc665bf_1231462943c@iweiny-mobl.notmuch> References: <646793cc665bf_1231462943c@iweiny-mobl.notmuch> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, 19 May 2023 08:20:44 -0700 Ira Weiny wrote: > Davidlohr Bueso wrote: > > On Fri, 19 May 2023, LiuLele wrote: > > > > >In my testing CXL device /sys/bus/cxl/devices/mem0 not created, and the get error messages : > > > > > >``` > > >cxl_pci 0000:0d:00.0: Failed to get interrupt for event Info log > > >``` > > > > > >My test environment is a qemu CXL emulator with qemu v8.0.0, Linux kernel v6.3.0. > > >While with kernel 5.9.13, /sys/bus/cxl/devices/mem0 can be created. > > > > Yes, this can be annoying and would argue the probe should not error out. > > I had to double check. Events are mandatory on devices. On checking > again interrupt support is mandatory as well. So that is why I errored > out here. With real HW this should not be an issue. > > > Regardless, the actual qemu support is in Jonathan's tree: > > > > https://gitlab.com/jic23/qemu/-/commit/a04e6476df363d1f6bc160577b30dda6564d3f67 > > That is the commit you need but it is probably best to use one of > Jonathans 'official' branches. Looks like he just pushed a new one today. > > https://gitlab.com/jic23/qemu/-/tree/cxl-2023-05-19 Leave that one for now. It was to get the CI tests to run. I need to tidy up a bit and will announce when I have a clean one... > > I've not run that one yet. So if you have issues try his previous one it > is working well for me. > > https://gitlab.com/jic23/qemu/-/tree/cxl-2023-04-19 That one should be good to go still I think Jonathan > > Ira > > > > > Thanks, > > Davidlohr > >