From: Michael Grzeschik <mgr@pengutronix.de>
To: Eric Van Hensbergen <ericvh@kernel.org>,
Latchesar Ionkov <lucho@ionkov.net>,
Dominique Martinet <asmadeus@codewreck.org>,
Christian Schoenebeck <linux_oss@crudebyte.com>,
Jonathan Corbet <corbet@lwn.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Andrzej Pietrasiewicz <andrzej.p@collabora.com>,
v9fs@lists.linux.dev, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
kernel@pengutronix.de, Jan Luebbe <jlu@pengutronix.de>
Subject: Re: [PATCH v7 0/3] usb: gadget: 9pfs transport
Date: Mon, 22 Jul 2024 00:17:31 +0200 [thread overview]
Message-ID: <Zp2I-5dOO0cwrbDt@pengutronix.de> (raw)
In-Reply-To: <20240116-ml-topic-u9p-v7-0-3a1eeef77fbe@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 5706 bytes --]
Ignore this series. There is no difference to v6 here. I will send
v8 in a sec.
On Mon, Jul 22, 2024 at 12:08:16AM +0200, Michael Grzeschik wrote:
>This series is adding support to mount usb hostside exported 9pfs
>filesystems via the usb gadget interface. It also includes a simple tool
>(p9_fwd.py) to translate an tcp 9pfs transport and reuse it via the usb
>interface.
>
> +--------------------------+ | +--------------------------+
> | 9PFS mounting client | | | 9PFS exporting server |
> SW | | | | |
> | (this:trans_usbg) | | |(e.g. diod or nfs-ganesha)|
> +-------------^------------+ | +-------------^------------+
> | | |
> | | +------v------+
> | | | p9_fwd.py |
> | | +------^------+
> | | |
>------------------|------------------------------------|-------------
> | | |
> +-------------v------------+ | +-------------v------------+
> | | | | |
> HW | USB Device Controller <---------> USB Host Controller |
> | | | | |
> +--------------------------+ | +--------------------------+
>
>The USB host exports a filesystem, while the gadget on the USB device
>side makes it mountable.
>
>Diod (9pfs server) and the forwarder are on the development host, where
>the root filesystem is actually stored. The gadget is initialized during
>boot (or later) on the embedded board. Then the forwarder will find it
>on the USB bus and start forwarding requests.
>
>In this case the 9p requests come from the device and are handled by the
>host. The reason is that USB device ports are normally not available on
>PCs, so a connection in the other direction would not work.
>
>One use-case is to use it as an alternative to NFS root booting during
>the development of embedded Linux devices.
>
>Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
>---
>Changes in v7:
>- added back the req_lock spinlock
>- Link to v6: https://lore.kernel.org/r/20240116-ml-topic-u9p-v6-0-695977d76dff@pengutronix.de
>
>Changes in v6:
>- fixed the python script not to have path set by default
>- improved the lock init
>- fixed usb9pfs status change to connected
>- Link to v5: https://lore.kernel.org/r/20240116-ml-topic-u9p-v5-0-5ed0abd53ef5@pengutronix.de
>
>Changes in v5:
>- fixed lockup in mount -> remount -> monut scenario
>- improved p9_fwd transport script with more options
>- Link to v4: https://lore.kernel.org/r/20240116-ml-topic-u9p-v4-0-722ed28b0ade@pengutronix.de
>
>Changes in v4:
>- reworked the naming scheme to be set by the configfs instance
>- added conn_cancel function to properly stop the transfers
>- ensured that umount -f will work even when the host side has crahed
>- added all the review feedback from Andrzej Pietrasiewicz
>- Link to v3: https://lore.kernel.org/r/20240116-ml-topic-u9p-v3-0-c62a36eccda1@pengutronix.de
>
>Changes in v3:
>- dropped patch "usb: gadget: legacy: add 9pfs multi gadget" as discussed with gregkh
>- Link to v2: https://lore.kernel.org/r/20240116-ml-topic-u9p-v2-0-b46cbf592962@pengutronix.de
>
>Changes in v2:
>- improved the commit messages
>- introduced an patch to move the header u_f.h to include/linux/usb to compile usb gadget functions treewide
>- moved usbg gadget function to net/9p/
>- adderessed several comments in function driver, like the cleanup path and kbuild errors
>- improved the documentation in Documentation/filesystems/9p.rst
>- Link to v1: https://lore.kernel.org/r/20240116-ml-topic-u9p-v1-0-ad8c306f9a4e@pengutronix.de
>
>---
>Michael Grzeschik (3):
> usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h
> net/9p/usbg: Add new usb gadget function transport
> tools: usb: p9_fwd: add usb gadget packet forwarder script
>
> Documentation/filesystems/9p.rst | 58 +-
> drivers/usb/gadget/configfs.c | 2 +-
> drivers/usb/gadget/function/f_fs.c | 2 +-
> drivers/usb/gadget/function/f_hid.c | 2 +-
> drivers/usb/gadget/function/f_loopback.c | 2 +-
> drivers/usb/gadget/function/f_midi.c | 2 +-
> drivers/usb/gadget/function/f_midi2.c | 2 +-
> drivers/usb/gadget/function/f_sourcesink.c | 2 +-
> drivers/usb/gadget/u_f.c | 2 +-
> .../gadget/u_f.h => include/linux/usb/func_utils.h | 2 +-
> net/9p/Kconfig | 6 +
> net/9p/Makefile | 4 +
> net/9p/trans_usbg.c | 985 +++++++++++++++++++++
> tools/usb/p9_fwd.py | 243 +++++
> 14 files changed, 1304 insertions(+), 10 deletions(-)
>---
>base-commit: 2c9b3512402ed192d1f43f4531fb5da947e72bd0
>change-id: 20240116-ml-topic-u9p-895274530eb1
>
>Best regards,
>--
>Michael Grzeschik <m.grzeschik@pengutronix.de>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2024-07-21 22:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-21 22:08 [PATCH v7 0/3] usb: gadget: 9pfs transport Michael Grzeschik
2024-07-21 22:08 ` [PATCH v7 1/3] usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h Michael Grzeschik
2024-07-21 22:08 ` [PATCH v7 2/3] net/9p/usbg: Add new usb gadget function transport Michael Grzeschik
2024-07-22 8:49 ` Oliver Neukum
2024-08-23 7:37 ` Michael Grzeschik
2024-07-21 22:08 ` [PATCH v7 3/3] tools: usb: p9_fwd: add usb gadget packet forwarder script Michael Grzeschik
2024-07-21 22:17 ` Michael Grzeschik [this message]
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=Zp2I-5dOO0cwrbDt@pengutronix.de \
--to=mgr@pengutronix.de \
--cc=andrzej.p@collabora.com \
--cc=asmadeus@codewreck.org \
--cc=corbet@lwn.net \
--cc=ericvh@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jlu@pengutronix.de \
--cc=kernel@pengutronix.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux_oss@crudebyte.com \
--cc=lucho@ionkov.net \
--cc=v9fs@lists.linux.dev \
/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).