Re: [PATCH ndctl RESEND] test/cxl-event: Skip cxl event testing if cxl-test is not available

2023-09-25 Thread Dave Jiang
> modprobe cxl_test > +rc=1 > > dev_path="/sys/bus/platform/devices" > > > --- > base-commit: a871e6153b11fe63780b37cdcb1eb347b296095c > change-id: 20230925-skip-cxl-events-7f16052b9c4e > > Best regards,

[PATCH ndctl RESEND] test/cxl-event: Skip cxl event testing if cxl-test is not available

2023-09-25 Thread Ira Weiny
@@ -18,6 +20,7 @@ check_prereq "jq" modprobe -r cxl_test modprobe cxl_test +rc=1 dev_path="/sys/bus/platform/devices" --- base-commit: a871e6153b11fe63780b37cdcb1eb347b296095c change-id: 20230925-skip-cxl-events-7f16052b9c4e Best regards, -- Ira Weiny

[PATCH 2/2] cxl: Add check for regions before disabling memdev

2023-09-25 Thread Dave Jiang
Add a check for memdev disable to see if there are active regions present before disabling the device. This is necessary now regions are present to fulfill the TODO that was left there. The best way to determine if a region is active is to see if there are decoders enabled for the mem device. This

[PATCH 1/2] cxl: Save the decoder committed state

2023-09-25 Thread Dave Jiang
Save the decoder committed state exported by the kernel to the libcxl decoder context. The attribute is helpful for determing if a region is active. Add libcxl API to determine if decoder is committed. Add the committed state to the decoder for cxl list command. Links: