Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp485883lqo; Thu, 16 May 2024 11:49:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgV8h36LeKUMHHWKMKEyT1T04Jj+PDnGOiUvfWP/2juAEc0Aw+/2Uz8xn2KWJehlxzqnXJOiRRzxYzmIfynLIQjs7PJutKoTyOxy1FQw== X-Google-Smtp-Source: AGHT+IHlNQvYEvcB3CWSI/3TU1KBu6fix7yvp3p+2+EAOEl1mbvbsi6F4aGdg2yPDVT4dWNVIhcm X-Received: by 2002:a05:6358:4411:b0:194:801b:1506 with SMTP id e5c5f4694b2df-194801b1754mr1060786255d.5.1715885372415; Thu, 16 May 2024 11:49:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715885372; cv=pass; d=google.com; s=arc-20160816; b=NSBjfCtmeCvoG60ZYMPweycfrpcQ4l6DmISxk8obH7PsyqJDpnzw39HPSPD1bkVfKr LdMOp1/9hI4IpgKfASotDPtvC/HCYQ4TH639Gneok3sUQNJBubz+T//cejhtHE/pwon1 ZUgA1KFlhbBOxNCM/bvg7LCKMdLT1KfX3roqmrnZhev+BaTCovaRL29xzrXlN/wJ6Wn8 dkX8xgVptNDFzrFEB8paFuno401tKcXond6kcsTQKlNR6YnikRV4SphGu+kbW2Z3haCy 99lm/tSm+A4nxBfGpMTlkdR+GkQSuf+7lfhaLE0edwJfkUN+XHFyH61FG2PHId06pJpR yQzQ== 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=ubGB9kLv4Ot2LPb7RbXTPHFjuYFgndF4kvFRe3L97VU=; fh=1LiI6b/N0Hv8SZ20+8djfXSYqPODN1B62pXxIjCPchs=; b=FAeT9Aq4V2j7r7KhlZykfh61gQdlLPi2oRn6Foj3bn6G06vNm5Eejl4tjoHe0OUsiM meKLtC69XByGspSblstQ4BtrWjjpIctnN1HpTYsHbXtso4E11qxDGpRH3RJeW56kSUD0 f/elK1Bn5v5xqP1SRX/qojTjxEsBGBC8mM3RA1i5QxqTviuMTG7VihaU0y1Y+G4KCHpz Mdo1SL9GzJyUJ4VIJ+tX5rBGrnz7IlMg5V7s63zZZKDtOc0gaXRmXRz0shX0YJTBK7O1 YWox/2xuj9a0HtGh/PX8SGpxuWBbX6IUvkOEbMDib3Sx+TN5pgyB9jLtTbFmWIZYaQUJ Fo5Q==; 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-181484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181484-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-659bd0bb599si1415623a12.477.2024.05.16.11.49.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 11:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-181484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181484-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3ABCDB21FFC for ; Thu, 16 May 2024 18:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84B80156F3C; Thu, 16 May 2024 18:49:24 +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 026A14688 for ; Thu, 16 May 2024 18:49:21 +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=1715885364; cv=none; b=WHkXFAtMOmgbXKlf8KcbB/pG/pJOEhi3vqXRryYOJev+TbKm0oupbeHMOcy0X19ydVVbq1LIe9kAuMXTeTIWw44Ut6BbjSGZmqTEtFGeCImMYeJxVgsZYz+qy6ELU7kyWIofx1X2hJq2lgX5UwJu1rADOGq9/6LeGWEttAqxz/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715885364; c=relaxed/simple; bh=7sDQLbzYPoMng3X/oV0YblZ0kaUEel4rP8Huz0OPohs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EK5s2lh9lqPWPWvuwwF5ImvBmwF7VohWKxCl2p+GA7KITbch5OjMbsJe0ZTx0lBCKAn7lxnETel+ExuQIW78pWfBEg284HrprN0FQDQ/nXLswffAqviZhpPD9RYQvPA4KbSqoCi8T7K6CeSVn93rQ8Dfb+ik2UngzLKdnU4ivJk= 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 1s7gA5-00022d-RR; Thu, 16 May 2024 20:49:05 +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 1s7gA2-001let-Ll; Thu, 16 May 2024 20:49:02 +0200 Received: from mgr by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s7gA2-00Ewms-1m; Thu, 16 May 2024 20:49:02 +0200 Date: Thu, 16 May 2024 20:49:02 +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="8+72CV5QLt3FWqM3" Content-Disposition: inline In-Reply-To: <2f36e766-054c-4001-addf-fe388916d858@collabora.com> 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 --8+72CV5QLt3FWqM3 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 hardware? > >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? 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 | --8+72CV5QLt3FWqM3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElXvEUs6VPX6mDPT8C+njFXoeLGQFAmZGVRsACgkQC+njFXoe LGRgFw//WscWMXZFcbFLW4HiBLc2QmGtJZP2s/7F9Evy6G7D1trQoFPBP9TimGPI /Hh6cbdJOtcUeg62SdHx2WWwPEdC5S4a/WDxAGmWmmpJsvKnHORq+auPWBdG6Lnb /Q93NqZKlSO9eByMWSigLlxCNEcRgpdKR2lePU5zF8leavY2iS2sVB2eAAFNYURS K3WiL/PGjuJ6eWUUfpSug/zMwDmrZHlX91zraeDcicjVrDFUuoz4/AxtWIsM6xM8 6RBcsQg1kqMIeUrbynqzUe997CckffDAoQBrfizydTKqFGRwt4Ofv+m0KFmqBhAl 1g332cvvJRGy3R4B9lIWWz99at67nF7eC/Fb9FHYG7e+Gf50rpCnP8RWV8xHycFP SlKSDlqgCD9shSBmPWpJYbOTEFwrGbCVjew1SOgkMklI+heQDi6QJxsK/WGKO9Sq xD6LxCogW3qrCrBru7Q6lkaUDTwaF6ol/DNnAotsCygHI9lye+gdJptJbo4jnDUv AsbiBzU6vxx6D9vw2LhaNS8MHRNzChpjo5hAWu11jdhFQnukqgvscfAPc0I4A31F Qgw/p2dB8sAPH21CNz3Y6eipXiDwKv2tvm/jOClgDw7bNU5BC6xDGUFlKzfSg7H4 tungGeFatDe+7SUKh0lJOOnGqYnhVjG3bbB5eOUbsAvYQSCW8JQ= =WIQ9 -----END PGP SIGNATURE----- --8+72CV5QLt3FWqM3--