Re: CXL volatile memory is not listed

2023-08-23 Thread Jonathan Cameron via
On Fri, 18 Aug 2023 10:48:35 +0530 Maverickk 78 wrote: > Hi Jonathan, > > The use case of CXL switch will always need some sort of management > agent + FM configuring the available CXL memory connected. > > In most cases it would be bmc controller configuring MLD/MHD's to > host, and in very ra

Re: CXL volatile memory is not listed

2023-08-23 Thread Jonathan Cameron via
om: Maverickk 78 > Sent: Thursday, August 17, 2023 10:18 PM > To: Jonathan Cameron > Cc: Jonathan Cameron via ; linux-...@vger.kernel.org > > Subject: Re: CXL volatile memory is not listed > > Hi Jonathan, > > The use case of CXL switch will always need some sort of m

Re: CXL volatile memory is not listed

2023-08-18 Thread Shreyas Shah via
on Cc: Jonathan Cameron via ; linux-...@vger.kernel.org Subject: Re: CXL volatile memory is not listed Hi Jonathan, The use case of CXL switch will always need some sort of management agent + FM configuring the available CXL memory connected. In most cases it would be bmc controller configuri

Re: CXL volatile memory is not listed

2023-08-17 Thread Maverickk 78
Hi Jonathan, The use case of CXL switch will always need some sort of management agent + FM configuring the available CXL memory connected. In most cases it would be bmc controller configuring MLD/MHD's to host, and in very rare scenarios it may be one of the host interacting with FM firmware ins

Re: CXL volatile memory is not listed

2023-08-17 Thread Maverickk 78
Hi Fan Awesome, thanks for the info! On Fri, 11 Aug 2023 at 22:19, Fan Ni wrote: > > On Fri, Aug 11, 2023 at 07:52:25AM +0530, Maverickk 78 wrote: > > Thanks Fan, > > > > cxl create-region works like a charm :) > > > > Since this gets listed as "System Ram(kmem)", I guess the kernel > > treats i

Re: CXL volatile memory is not listed

2023-08-11 Thread Fan Ni
On Fri, Aug 11, 2023 at 07:52:25AM +0530, Maverickk 78 wrote: > Thanks Fan, > > cxl create-region works like a charm :) > > Since this gets listed as "System Ram(kmem)", I guess the kernel > treats it as regular memory and > allocates it to the applications when needed? > or is there an extra effor

Re: CXL volatile memory is not listed

2023-08-11 Thread Jonathan Cameron via
On Fri, 11 Aug 2023 08:04:26 +0530 Maverickk 78 wrote: > Jonathan, > > > More generally for the flow that would bring the memory up as system ram > > you would typically need the bios to have done the CXL enumeration or > > a bunch of scripts in the kernel to have done it. In general it can't >

Re: CXL volatile memory is not listed

2023-08-10 Thread Maverickk 78
Thanks Phil, David and Fan Looks like it was an error from my side due to lack of information cxl create-region works :) On Thu, 10 Aug 2023 at 16:29, Philippe Mathieu-Daudé wrote: > > Hi, > > Cc'ing Igor and David. > > On 9/8/23 00:51, Maverickk 78 wrote: > > Hello, > > > > I am running qemu-s

Re: CXL volatile memory is not listed

2023-08-10 Thread Maverickk 78
Jonathan, > More generally for the flow that would bring the memory up as system ram > you would typically need the bios to have done the CXL enumeration or > a bunch of scripts in the kernel to have done it. In general it can't > be fully automated, because there are policy decisions to make on

Re: CXL volatile memory is not listed

2023-08-10 Thread Maverickk 78
Thanks Fan, cxl create-region works like a charm :) Since this gets listed as "System Ram(kmem)", I guess the kernel treats it as regular memory and allocates it to the applications when needed? or is there an extra effort needed to make it available for applications on the host? On Thu, 10 Aug

Re: CXL volatile memory is not listed

2023-08-10 Thread Fan Ni
On Wed, Aug 09, 2023 at 04:21:47AM +0530, Maverickk 78 wrote: > Hello, > > I am running qemu-system-x86_64 > > qemu-system-x86_64 --version > QEMU emulator version 8.0.92 (v8.1.0-rc2-80-g0450cf0897) > > qemu-system-x86_64 \ > -m 2G,slots=4,maxmem=4G \ > -smp 4 \ > -machine type=q35,accel=kvm,cxl=on

Re: CXL volatile memory is not listed

2023-08-10 Thread David Hildenbrand
On 10.08.23 12:59, Philippe Mathieu-Daudé wrote: Hi, Cc'ing Igor and David. On 9/8/23 00:51, Maverickk 78 wrote: Hello, I am running qemu-system-x86_64 qemu-system-x86_64 --version QEMU emulator version 8.0.92 (v8.1.0-rc2-80-g0450cf0897) qemu-system-x86_64 \ -m 2G,slots=4,maxmem=4G \ -smp 4

Re: CXL volatile memory is not listed

2023-08-10 Thread Philippe Mathieu-Daudé
Hi, Cc'ing Igor and David. On 9/8/23 00:51, Maverickk 78 wrote: Hello, I am running qemu-system-x86_64 qemu-system-x86_64 --version QEMU emulator version 8.0.92 (v8.1.0-rc2-80-g0450cf0897) qemu-system-x86_64 \ -m 2G,slots=4,maxmem=4G \ -smp 4 \ -machine type=q35,accel=kvm,cxl=on \ -enable-kv

Re: CXL volatile memory is not listed

2023-08-10 Thread Jonathan Cameron via
On Wed, 9 Aug 2023 04:21:47 +0530 Maverickk 78 wrote: > Hello, > > I am running qemu-system-x86_64 > > qemu-system-x86_64 --version > QEMU emulator version 8.0.92 (v8.1.0-rc2-80-g0450cf0897) > +Cc linux-cxl as the answer is more todo with linux than qemu. > qemu-system-x86_64 \ > -m 2G,slots=

CXL volatile memory is not listed

2023-08-08 Thread Maverickk 78
Hello, I am running qemu-system-x86_64 qemu-system-x86_64 --version QEMU emulator version 8.0.92 (v8.1.0-rc2-80-g0450cf0897) qemu-system-x86_64 \ -m 2G,slots=4,maxmem=4G \ -smp 4 \ -machine type=q35,accel=kvm,cxl=on \ -enable-kvm \ -nographic \ -device pxb-cxl,id=cxl.0,bus=pcie.0,bus_nr=52 \ -de