[root@wwdbemame pkg]# uname -a
Linux wwdbemame.internal.triasoft.de 4.18.0-193.19.1.el8_2.x86_64 #1 SMP Mon Sep 14 14:37:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@wwdbemame pkg]# rpm -aq | grep -e CSD -e sfx
sfx3xdriver-src-3.2.1.0-52500.el8.x86_64
CSD2000-U2-04759-0.x86_64
[root@wwdbemame ~]# sfx-nvme sfx query-cap /dev/sfdv0n1
logic capacity: 3840GB(0x1bf1f72b0)
provisioned capacity: 3840GB(0x1bf1f72b0)
free provisioned capacity: 3840GB(0x1bf1f72b0)
used provisioned capacity: 0GB(0x0)
[root@wwdbemame ~]# sfx-nvme sfx change-cap /dev/sfdv0n1 -c 5000 -f
5000G 0B 1220942646 4K
NVME IO command error:INVALID_FIELD: A reserved coded value or an unsupported value in a defined field(4002)
[root@wwdbemame pkg]# cat /etc/scaleflux/sfxparam
drv use_intx=0
drv sfx_cc=CCSS
drv support_fw_vers=4759
adding the old blk_capacity
[root@wwdbemame pkg]# vi /etc/scaleflux/sfxparam
drv use_intx=0
drv sfx_cc=CCSS
drv support_fw_vers=4759
blk capacity=6400
Added -f just for despair
[root@wwdbemame pkg]# sfx-nvme sfx change-cap /dev/sfdv0n1 -c 6400 -f
6400G 0B 1562805846 4K
NVME IO command error:INVALID_FIELD: A reserved coded value or an unsupported value in a defined field(4002)
I didn't find a way to still enable atomic write mode. You can see the capacities are default.
[root@wwdbemame pkg]# sfx-status
SFX card: /dev/sfdv0n1
PCIe Vendor ID: 0xcc53
PCIe Subsystem Vendor ID: 0xcc53
Manufacturer: ScaleFlux
Model: CSD 2000 Series
Serial Number: UC1945A7118M
OPN: CSDU3RF040B1
FPGA BitStream: 4759
Drive Type: U.2-V
Software Revision: 3.2.1.0-52500
Temperature: 41 C
Power Consumption: 0 W
Atomic Write mode: OFF
Percentage Used: 0%
Data Read: 5026 GiB
Data Written: 2776 GiB
Correctable Error Cnt: 0
Uncorrectable Error Cnt: 0
PCIe Link Status: Gen2 x4
PCIe Device Status: Good
Formatted Capacity: 3840 GB
Provisioned Capacity: 3840 GB
Compression Ratio: 100%
Physical Used Ratio: 0%
Critical Warning: 0
I looked through linux-nvme/nvme-cli@876ad92 and it should be the right approach