search for: rpmb_ioctl

Displaying 2 results from an estimated 2 matches for "rpmb_ioctl".

Did you mean: ipmi_ioctl
2020 Aug 11
2
clarifying the handling of responses for virtio-rpmb
...READ (out_sg=2) sg[2] - empty frame for response (in_sg=1) or: sg[0] - VIRTIO_RPMB_REQ_PROGRAM_KEY/VIRTIO_RPMB_REQ_DATA_WRITE frame (out_sg=1) sg[1] - VIRTIO_RPMB_REQ_RESULT_READ (in_sg=1) where the result frame is filled in and sent back? I must say I'm a little confused by the logic in rpmb_ioctl (in the userspace tool) which creates both out_frames and resp frames: static int rpmb_ioctl(uint8_t frame_type, int fd, uint16_t req, const void *frames_in, unsigned int cnt_in, void *frames_out, unsigned int cnt_out) { int ret;...
2020 Sep 11
0
[virtio-dev] Re: clarifying the handling of responses for virtio-rpmb
...ATA_WRITE frame >>> sg[1] - VIRTIO_RPMB_REQ_RESULT_READ (out_sg=2) >>> sg[2] - empty frame for response (in_sg=1) > This is what works after applying the direction patch above in the > virtio driver and which makes also sense to me. See also below my > comment for the rpmb_ioctl() code. >>> >>> or: >>> >>> sg[0] - VIRTIO_RPMB_REQ_PROGRAM_KEY/VIRTIO_RPMB_REQ_DATA_WRITE frame (out_sg=1) >>> sg[1] - VIRTIO_RPMB_REQ_RESULT_READ (in_sg=1) > Makes no sense for me. The VIRTIO_RPMB_REQ_RESULT_READ is a request > (command) in t...