From: i.kononenko <i.kononenko@yadro.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Jens Axboe <axboe@kernel.dk>, Felipe Balbi <balbi@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/6] fms: Add TOC/PMA/ATIP DVD-ROM capabilities
Date: Sun, 27 Jun 2021 21:45:07 +0300 [thread overview]
Message-ID: <3f9c6e4a-18b7-db11-8b23-f0473a649d06@yadro.com> (raw)
In-Reply-To: <20210627142952.GE624763@rowland.harvard.edu>
On 27.06.2021 17:29, Alan Stern wrote:
> On Sun, Jun 27, 2021 at 12:18:16AM +0300, Igor Kononenko wrote:
>> The DVD-ROM required the SCSI 6.25 READ TOC/PMA/ATIP Command formats:
>> * Response Format 0000b: Formatted TOC
>> * Response Format 0001b: Multi-session Information
>> (MMC-6 Specification).
>>
>> This patch adds an implementation of that described above formats.
>
> I will sum up the last four patches of this series by saying that they
> add features for emulating DVD-ROM and BD devices. Doing so increases
> the size of the f_mass_storage driver by a considerable amount and
> also adds a large amount of new material to Jens Axboe's
> include/uapi/linux/cdrom.h.
The `include/uapi/linux/cdrom.h` already includes the definition of the
MMC-(2/3) SCSI data structures, and I believe this uses in many cdrom-api
consumers. The current patchset extends this declaration with additional
structures set and clarifies each. Besides, the described above
SCSI structures are used to implement a mass_storage SCSI-command handler
to make implementation clearer and avoid the use of magic constants.
>
> Is any of this really needed? What usage scenarios require
> f_mass_storage to emulate a DVD-ROM that couldn't use f_tcm instead?
I can't see any impediments to supplement the already existing
implementation of MMC-(2/3) specification of multimedia devices to
represent the DVD/BD features. If the kernel presents the CD-ROM SCSI
commands, why the mass_storage:usb-gadget-function still doesn't include
that for DVD/BD?
Many modern embedded systems (e.g., BMC, OpenBMC) implements their
required features, e.g., Virtual Media Device, which is based on the
usb:gadget:mass-storage.
The purpose of that features is extensive, and their use the mass-storage
not only as a cdrom-device.
The required features of such systems might expect image back-end files
that size is significant than 2.1Gb, but such medium is not the CD-ROM
device. USB-gadget consumers can incorrectly interpret such device by
loading the wrong driver. I believe that should be the DVD-medium device,
at least.
Additionally, please note the current patch also fixes the incorrect
implementation of retrieving TOC/PMA/ATIP data, which is required for the
CD-ROM. One system might correct works with retrieving first with the
last session together, but for some systems, e.g., OS ESXi, OS Windows,
should retrieving first and last border sessions in separate SCSI-request.
>
> Alan Stern
>
--
Best regards,
Igor Kononenko
next prev parent reply other threads:[~2021-06-27 18:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 21:18 [PATCH 0/6] USB-gadget: mass-storage: Support DVD-like images Igor Kononenko
2021-06-26 21:18 ` [PATCH 1/6] usb:gadget:mass-storage: Improve the signature of SCSI handler function Igor Kononenko
2021-06-27 14:18 ` Alan Stern
2021-06-27 15:32 ` i.kononenko
2021-06-27 16:39 ` Alan Stern
2021-06-26 21:18 ` [PATCH 2/6] usb:gadget:mass-storage: refactoring the SCSI command handling Igor Kononenko
2021-06-26 23:29 ` kernel test robot
2021-06-27 14:23 ` Alan Stern
2021-06-27 17:14 ` i.kononenko
2021-06-28 1:06 ` Alan Stern
2021-06-28 10:38 ` i.kononenko
2021-06-26 21:18 ` [PATCH 3/6] fms: Add TOC/PMA/ATIP DVD-ROM capabilities Igor Kononenko
2021-06-27 14:29 ` Alan Stern
2021-06-27 18:45 ` i.kononenko [this message]
2021-06-28 14:31 ` Alan Stern
2021-06-26 21:18 ` [PATCH 4/6] fms: Support the DVD/BD images size over 2.1Gb Igor Kononenko
2021-06-26 21:18 ` [PATCH 5/6] FMS: Add the SCSI Get Configuration command Igor Kononenko
2021-06-27 0:44 ` kernel test robot
2021-06-27 4:42 ` kernel test robot
2021-06-28 9:53 ` Christoph Hellwig
2021-06-28 10:34 ` i.kononenko
2021-06-26 21:18 ` [PATCH 6/6] FMS: Add SCSI Read Disc Information command Igor Kononenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f9c6e4a-18b7-db11-8b23-f0473a649d06@yadro.com \
--to=i.kononenko@yadro.com \
--cc=axboe@kernel.dk \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).