Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3187144pxb; Tue, 12 Jan 2021 08:23:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+/FhwpK25pk3nKIG3E5ITgvBf4SJdtPy6s4z6IeVA2r89YyLTzvJDp6gXRtPjzAb9LxJ8 X-Received: by 2002:a50:ce13:: with SMTP id y19mr4024948edi.241.1610468592769; Tue, 12 Jan 2021 08:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610468592; cv=none; d=google.com; s=arc-20160816; b=PNzYyFDJb4jy21Qfvt9ZPnkxUX+koELd9SXPe3gzjHw1Fpu1SjirZThaMPOLubIHIT UHqoWYcaZDXYpu7UZq+yKiBRIv0S+qes6A7hz44xbndKMfElCvnl0mLdJeiRYFBU0QQj aWkug5F0k6bYUaHvRF9OxbIwJGqKRhuA+R6IAPo8Q1n67Un0w3ESrDb63ZWMs94h1CKe 8lT68twjYXl5EbNljSIthhHSkDn3YUpLV0mC05G0hH+9R73Wli6XJ5WB5fYtRcbCrCRs JhD5CvIshUVVlDB9+okPihMe8lOSg6a7e2p2IYlpxAf2uARmDQfWQSnDfTaYDpR8Lb/p dw/Q== 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=cUxVpIMeBanDOXPNFkF2g/T10nu8XFIZHqmTkqjyZuQ=; b=aHoCGru19zTk+4XeULRdXlKkFk86+K4wbPuhTWXHLMq2lJCCrR0OAG3+nV38HVHsDF NXooBuepUjfbkArVQnGTg5a+UsIFFLCD7GNngDyFZNsXuAot9TiX49DjnSfh9CGdR+2d 1k5VctoqibIYQpETzBIBYb36DCTy2DBfOlHodckB1jmKMr4Di0g3CT9JKsrETHFos627 LMtbaaN027dOYezW8lnW5eNz6sCuC6YlSdptFv9O1Qh2+c1cBjUXKGNclIWq92XRx5FL 5MyolyiKGfVjLHyXNABted2PyclcME4+8PRBPk2040wvyL/enIMy2gOP61Yl9UcSUAlK XMRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HkzBcf6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce24si1300947ejb.189.2021.01.12.08.22.49; Tue, 12 Jan 2021 08:23:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HkzBcf6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406654AbhALQUI (ORCPT + 99 others); Tue, 12 Jan 2021 11:20:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:54902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406153AbhALQUF (ORCPT ); Tue, 12 Jan 2021 11:20:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB6062222B; Tue, 12 Jan 2021 16:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610468365; bh=K15kqN6d8bltmp/D2dIKxt8SX/ubLa2fWzXTMRJ9Wjo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HkzBcf6zciDNh2ZRd8Ddz5SlVjzwMvY1lDlQanLlobJyoAUlWcEZnvHWjn4X0pI2j 33vvpN2uxnIJVAFxzUdWUV2N2XNHTNniw7cdZje3+rVG9t2LhK5AHstB00M8KC58L0 6DtE9xv59fO4xFsPF5qMJCFOlKhlP35bf+Ho/45ZfdvNxZ1CEz3dNlmM0YJwCh/n3D AvclJTvY1dICswABfbwMxlZrsCrwB8z/sUW87QhU+M/+eG2X3R3iSCSzQG7HiizrJO EmCYZ47ey6RAvNrOyvTvj0eUfKVdTsZ+6268+eauqQLiri7rzZb1h2rdBBheu/R5WC T6IsK09A1Pu+w== Date: Tue, 12 Jan 2021 10:19:23 -0600 From: Bjorn Helgaas To: =?utf-8?B?5YiY5LmQ5LmQKOS5kOS6hik=?= Cc: Ben Widawsky , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Ira Weiny , Dan Williams , Vishal Verma , "Kelley, Sean V" , Rafael Wysocki , Jonathan Cameron , Jon Masters , Chris Browy , Randy Dunlap , Christoph Hellwig , "Xu, Di" Subject: Re: [RFC PATCH v3 00/16] CXL 2.0 Support Message-ID: <20210112161923.GA1807814@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0f2a6d62-09d8-416f-e972-3e9869c3e1a6@alibaba-inc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 10:55:50PM +0800, 刘乐乐(乐了) wrote: > Ben, > > Thanks for your hard work. I have compiled this patch(aff2b059786d , > cxl-2.0v3) together qemu emulator v3, this is the first time I see a CXL > device in linux. > > Still I have problems, I can saw the CXL device with `lspci -vvv`  and a > device /dev/cxl/mem0 . But I can't see the memory in system and lsmem > command. > > Qemu command line is : > > sudo ./qemu-cxl/build/qemu-system-x86_64 -enable-kvm -smp 8 -drive > file=/mnt/lele/vm/cxl-centos8-uefi.qcow2,format=qcow2,cache=none -drive if=pflash,format=raw,unit=0,file=/mnt/lele/edk2/usr/share/edk2-ovmf/x64/OVMF_CODE.fd,readonly=on > -drive if=pflash,format=raw,readonly,unit=1,file=/mnt/lele/edk2/usr/share/edk2-ovmf/x64/OVMF_VARS.fd > -m 32G -vnc :12 -machine type=pc-q35-4.0,hmat=on,accel=kvm -net nic -net > tap,ifname=tap1,script=/mnt/lele/vm/qemu-ifup,downscript=no -object memory-backend-file,id=cxl-mem1,share,mem-path=/mnt/lele/cxl-mem.dat,size=512M > -device pxb-cxl,id=cxl.0,bus=pcie.0,bus_nr=52,uid=0,len-window-base=1,window-base[0]=0x4c0000000,memdev[0]=cxl-mem1 > -device cxl-rp,id=rp0,bus=cxl.0,addr=0.0,chassis=0,slot=0 -device > cxl-type3,bus=rp0,memdev=cxl-mem1,id=cxl-pmem0,size=256M > > So, what's the further step to show the memory in system memory? Please use plain text email only. Your response is valuable, but I think the linux-kernel and linux-pci mailing lists rejected it because it was a multi-part message with images and other non-text elements. If you look at https://lore.kernel.org/linux-cxl/20210112151735.w45qbi37pc3zuucw@intel.com/T/#t, you can see Ben's v3 00/16 email and his response to your response, but your response is missing. See http://vger.kernel.org/majordomo-info.html for details.