Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp515879lqo; Thu, 16 May 2024 12:52:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd4A63gm98OxtVaZC5EH6jCvpCu1Mm4pPUBzfg+MVNjGNSqDDGDiP7xac7kFWIZJBNavssmnWYNnFO7xouPejI8p0hn5/+7PK0yWJjpQ== X-Google-Smtp-Source: AGHT+IFEzr2Y56s/hlde4ZDVU17bUFR6vUq9DL6ZDVeOCtSGpNOhSw3cuuPazfm3FQFDBgYaZKO1 X-Received: by 2002:a05:651c:19ac:b0:2e0:752c:1f2e with SMTP id 38308e7fff4ca-2e51fd2decemr147845831fa.1.1715889122484; Thu, 16 May 2024 12:52:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715889122; cv=pass; d=google.com; s=arc-20160816; b=gVBhTL4MLEWF0+Fw4zyzN5S1Ie1hlHroeHFcwbBpZqr8XQDlZ3SGvuWq+V9Y59FeX7 mevoPGv0/4+GcWHGotPtp9UbpTJu6QNRUA+uR4o2djFxEN3QF7ShpYYRpoF/j2sR4+WT SNTrMjwwLoQala4ILNHGp406PwWGwxCrvbeh1X1wejgI4gtTH2kV/RdxPjOEEGfpj2DM LjMiGJevbq1k08EI3HTGTpCEVPzsCHVQvdBQN5qnlbhwArpQdybH/6PuFJp4VFt7Fqip vvM5ufEenasQwEoF8wi29kI6pHbYSkPX5R4TqkBYRBMZY7Ku+711+iN2fjjOGI7bpSvp G1nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=F34wyLXUy7DIMEwiN0rljkRYeHYNLVfhRD92ceWKvHA=; fh=1LiI6b/N0Hv8SZ20+8djfXSYqPODN1B62pXxIjCPchs=; b=DxccyjJC6aIXcRyEjzpuqQ/8MNGAVluo+Hji28ZOKJseqfDX8BA10uAZU+chEJsITV uzMAXV7F0FqL04n8qNTKk9HgN5VYx9sfpemm0r3wYaPPs4hjTrgK2vg1Cip6AAUNfja0 1zFWkRNEEzCkJ5m5v6o0JX+3eM086UTeL1GsUkVBEFvquhFYvac2SEPRRn2nnrRDnyn6 FCpYRqHkmJS46/edq/jFBmH0gOqshK+yROKLiTzvMi5Z/66Dyajr0cvTSzU12hLqd6mu pu9Ii2WM3HSkQpwkoWMHptkFAUqXUFBm5nU8WdkRi11ut0iwKL39xr1gC3vP1ojILPj8 BVzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-181545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181545-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574dfebfb5bsi3961607a12.472.2024.05.16.12.52.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 12:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-181545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181545-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 11BD21F22419 for ; Thu, 16 May 2024 19:52:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEC8A157483; Thu, 16 May 2024 19:51:54 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B9ED156F50 for ; Thu, 16 May 2024 19:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715889114; cv=none; b=nxSsTk6V1FeHkSH+x5CZle7EbgoLKMJlETAKDotYlejLl49dScTcDettkqb/hKf2CbWKhicx22QV6DEhbyO4ikW3DVHlZBhO5gyGXgvqzwkOqntfHNdZH+CEUzveKd+tT2xme4gYyzAH9tLuS1HL/T+wiktjvsgVgMm4Ly1C5I8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715889114; c=relaxed/simple; bh=s0VpWl+ubeSr9Wh6Ks9w3sfKCAJcIdouKzCfod5VvHM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tuBJrbeCWfryIv13jx7Kso+o8lM19z7jxOaB/bdI1OAjH1fzApP9jtPHexW35p5K5GMzdRH2Beoaiv21Dk8gJQW2+zUCxpAyvlcjtdLTh/nTp6KN+Qd2PnCnkm0CnwJp13V6zLFSPkTRktulgY6l1EUaw+vNSjoQ8/piPOgypCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s7h8V-0004Kf-9Z; Thu, 16 May 2024 21:51:31 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7h8T-001lyt-UL; Thu, 16 May 2024 21:51:29 +0200 Received: from mgr by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s7h8T-00ExOe-2j; Thu, 16 May 2024 21:51:29 +0200 Date: Thu, 16 May 2024 21:51:29 +0200 From: Michael Grzeschik To: Andrzej Pietrasiewicz Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , Jonathan Corbet , Greg Kroah-Hartman , v9fs@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v4 2/3] net/9p/usbg: Add new usb gadget function transport Message-ID: References: <20240116-ml-topic-u9p-v4-0-722ed28b0ade@pengutronix.de> <20240116-ml-topic-u9p-v4-2-722ed28b0ade@pengutronix.de> <2f36e766-054c-4001-addf-fe388916d858@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JjFffksc5WuBgX2B" Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mgr@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --JjFffksc5WuBgX2B Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 16, 2024 at 08:49:02PM +0200, Michael Grzeschik wrote: >Hi > >On Fri, May 10, 2024 at 04:11:27PM +0200, Andrzej Pietrasiewicz wrote: >>W dniu 10.05.2024 o=A012:11, Michael Grzeschik pisze: >>>On Fri, May 10, 2024 at 11:25:47AM +0200, Andrzej Pietrasiewicz wrote: >>>>Hi Michael, >>>> >>>>W dniu 30.04.2024 o=A001:33, Michael Grzeschik pisze: >>>>>Add the new gadget function for 9pfs transport. This function is >>>>>defining an simple 9pfs transport interface that consists of one in and >>>>>one out endpoint. The endpoints transmit and receive the 9pfs protocol >>>>>payload when mounting a 9p filesystem over usb. >>>>> >>>>>Signed-off-by: Michael Grzeschik >>>>> >>>>>--- >>>>>v3 -> v4: >>>>>=A0 - implemented conn_cancel >>>> >>>>I tried this scenario: >>>> >>>>1) run all the components and have 9pfs up and running >>>>2) stop the forwarder >>>>3) umount -f at the gadget side - this indeed succeeds now in v4 >>>>4) start the forwarder again >>>>5) mount at the gadget side - this hangs. >>>> >>>>Did this scenario work for you? >>> >>>I actually tested this exact scenario. So this is >>>suprising. I will try this again just to be sure >>>that I did send the latest version. >>> >>>My latest testsetup included the dummy_hcd. Did you test on real hardwar= e? >> >>Yes, I did. > >I just also tested this again on real hardware. With the imx6 chipidea >udc I indeed see that this is stuck after the first round of mount and >remount. With the musb core on the beaglebone this seems to be fine. > >While debugging this I also ran into some shutdown issues and lockdep >issues I see because the complete handler is possible to be resumed >immedeatly on musb, which is odd. However I fixed/fix them and send an >v5 afterwards. > >Regarding the hang on the imx6, which hardware did you test this on? Nevermind. I can also reproduce the hang with the musb. Michael --=20 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 | --JjFffksc5WuBgX2B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElXvEUs6VPX6mDPT8C+njFXoeLGQFAmZGY78ACgkQC+njFXoe LGSTWQ//WxyTQBPN02DdbwotbPTfWvYawG2G3/I0tqgV3BX/q6shqvOCiFL5nmDo 8fkMDfi6+csGacPtPeZBvDUFzfL66laRSO/sdH+ZAKEJK/chv7pufRBUMYdQlz15 qRaaLvAK1hvuONCjA2bw4WDDaNm/GgUymAogjE9yQlDsj8F6QSt252F3ZQBQKaCM uWZy+eUUm83h/rNYkvZqN3oCVbo43HpFXrDKQSAOpPJ+TT32wVBba7HgkYjVNimN hSfLDKxAUJdqUfAGToj59eF63rUe+t31iZN1vgk/k3HJXmEP+nvuxes+N2cx8xVH 2v7cpIEJacspSRuGiAL+fY4xRCXJyAtlQGgllfhKZitrLAUjzDHL9mP4lK7Z7Y5q cSGa4006jogsQSSHdQCsVfZyHUqs6ZTgJYVNSeND/ezDiAEowmdR3vq65BaRRSec kmkQ2A9kzZmdR/PwlgyrwcP1RbHybgZH0pc9mkDFbPMzGS+XIm0w7ZWF9IX1zN5w sKepQa+XzLfvlX0d5JVYROfXBOhEozP0s7pPQqvY/sy8B5qYZADuO5OSnA4eYRdi M0gf6Cxj/CFCGuqKCBH5QqIrzOeB54edNFEF5Y5UzFD7T5c09GgvOd3zgaTqPxRy MA94+dooEc/8bbHNZZuV7D8UC94YhDwWQmXZfbhNJ4piRYQSjf8= =zqmW -----END PGP SIGNATURE----- --JjFffksc5WuBgX2B--