Content-Type: multipart/mixed; boundary="===============1394511093562335313==" MIME-Version: 1.0 From: yehur.cheong at akirakan.com Subject: [SPDK] Error creating block device based on NVMe device Date: Wed, 06 May 2020 10:47:46 +0000 Message-ID: <20200506104746.2843.62786@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============1394511093562335313== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi all, = I'm facing an error when using the command rpc.py bdev_nvme_attach_controll= er when creating block device based on NVMe device. But i have no problem r= unning the examples/nvme/hello_world and examples/bdev/hello_world/hello_bd= ev. = Here are the output (all commands ran in the spdk root directory), 1. First, i started the spdk_tgt (I'm using a local nvme drive) ./app/spdk_tgt/spdk_tgt & Starting SPDK v20.04-pre git sha1 2d097539d / DPDK 19.11.0 initialization... [ DPDK EAL parameters: spdk_tgt --no-shconf -c 0x1 --log-level=3Dlib.eal:6 = --log-level=3Dlib.cryptodev:5 --log-level=3Duser1:6 --iova-mode=3Dpa --base= -virtaddr=3D0x200000000000 --match-allocations --file-prefix=3Dspdk_pid8592= ] EAL: No available hugepages reported in hugepages-1048576kB app.c: 646:spdk_app_start: *NOTICE*: Total cores available: 1 reactor.c: 371:_spdk_reactor_run: *NOTICE*: Reactor started on core 0 accel_engine.c: 227:spdk_accel_engine_initialize: *NOTICE*: Accel engine in= itialized to use software engine. 2. Try to create a block device using the rpc.py command ./scripts/rpc.py bdev_nvme_attach_controller -b NVMe01 -t PCIe -a 0000:04:0= 0.0 nvme_qpair.c: 118:nvme_admin_qpair_print_command: *NOTICE*: SECURITY RECEIV= E (82) sqid:0 cid:23 nsid:0 cdw10:01000100 cdw11:00000800 nvme_qpair.c: 306:spdk_nvme_qpair_print_completion: *NOTICE*: INVALID FIELD= (00/02) sqid:0 cid:23 cdw0:0 sqhd:000f p:1 m:0 dnr:1 nvme_ctrlr.c:3443:spdk_nvme_ctrlr_security_receive: *ERROR*: spdk_nvme_ctrl= r_cmd_security_receive failed! bdev_nvme.c:1426:create_ctrlr: *ERROR*: Failed to initialize Opal NVMe01n1 Here it shows error in spdk_nvme_ctrlr_cmd_security_receive and failed to i= nitialize Opal. = 3. Then when i try checking list of currently available block devices by th= e rpc.py command, = ./scripts/rpc.py bdev_get_bdevs Connection closed with partial response: [3]+ Segmentation fault (core dumped) ./app/spdk_tgt/spdk_tgt it got a segmentation fault. = I'm not sure what's the problem here, I'll appreciate any comment at all. T= hank you very much. = Best, = Ye Hur --===============1394511093562335313==--