From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7324 invoked from network); 11 Jun 2021 09:05:54 -0000 Received: from tb-ob20.topicbox.com (173.228.157.66) by inbox.vuxu.org with ESMTPUTF8; 11 Jun 2021 09:05:54 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob20.topicbox.com (Postfix) with ESMTP id B248B24147 for ; Fri, 11 Jun 2021 05:05:48 -0400 (EDT) (envelope-from bounce.mM6dab6711f8f1fe8c3d355322.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 7EC074701D63; Fri, 11 Jun 2021 05:05:48 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=hamnavoe.com; spf=pass smtp.mailfrom=miller@hamnavoe.com smtp.helo=balrog.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:from:date:in-reply-to :mime-version:content-type:content-transfer-encoding:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= sysmsg-1; t=1623402348; bh=GeVXToiSr+2Ibl8RejZveJlbvnXR+gwNZqFZD IiitcU=; b=Bo8KWpnAL4ci0AQVpLp16as9eoJ3IpI8myWa1uof5yqKtvEw8kW5h cd2NYdSPH/8zaQq6i/yn9vMJLMR0Un/IgiwJJomZqbJSJJAcTSAq1fEgNhMRG7oK SR4y4wU70JV62pU7HHNlHPZbpqhIBSxYl962B4Kwbo5YqnPfkGhB5M= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1623402348; b=RJb/YGWmEiBULh8To3JFZPcG3s2Jj6ItBvRrGn6GZ0jqCooUxN XwFsJ3JzQ0PWG3r7p8rli7sUAWluxtqpR+N5Fo/mcecUfjKgtV7umG3JYqx5E8yt iIGKSmy5k01uDL8T2Wxr6ZahkwIkJREXrgo09uYFaSc6kbw+jghLWsOz0= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=hamnavoe.com; spf=pass smtp.mailfrom=miller@hamnavoe.com smtp.helo=balrog.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=hamnavoe.com; iprev=pass smtp.remote-ip=46.235.227.24 (balrog.mythic-beasts.com); spf=pass smtp.mailfrom=miller@hamnavoe.com smtp.helo=balrog.mythic-beasts.com; x-aligned-from=domain_pass (Domain match); x-me-sender=none; x-ptr=pass smtp.helo=balrog.mythic-beasts.com policy.ptr=balrog.mythic-beasts.com; x-return-mx=pass header.domain=hamnavoe.com policy.is_org=yes (MX Records found: mx2.mythic-beasts.com,mx1.mythic-beasts.com); x-return-mx=pass smtp.domain=hamnavoe.com policy.is_org=yes (MX Records found: mx2.mythic-beasts.com,mx1.mythic-beasts.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :to:subject:from:date:in-reply-to:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=Go9JfC+B 09ylSq/fIl7fW/wtXUBC5Ry7xig+fiWz6+o=; b=lZorRvILd2eTOKaJ3mJCA0Mm E13PclQjXjvIuxv5f2YeoKm6+XiSd5QE31Efqq6xlFkTWSociS2mmqoDU6o0EgRo E8tYVgXeNn/XqNMY5nPpvUOthWqXZdPL57esAPwm/wX4ZDyJYUbtCdWsiNNav0tx EktfFB0zY9acb32Ld3I= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 4C5EC284967C for <9fans@9fans.net>; Fri, 11 Jun 2021 05:05:36 -0400 (EDT) (envelope-from miller@hamnavoe.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id B5A82BD5A63; Fri, 11 Jun 2021 05:05:36 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1623402336; b=xj725rDT+0ex/VPL2I7maEkws7PAtuFyt9IjmtF76NLLzheMTz 6Cw0Pa/q5ayDlves7QI3bt2Eo0gmlIYlxUn8a06PfDGtHNk9uIizoEtSSKqDkR5b 5mmBeF8OvYBe4+p4HKkcs4vAJGiDe3lWh3fprDW/9ccxIiBQsENcfI1mz0ljxX7N 7L+r55Qx5DiXQgZtKkPy6awTsp3aAOXVfDFK7O2GCsekAu3kQKHRfl7mKSE1M+Ts MdgXJrVYxKfVr9+3ifjMVPPZ1eEsor5AY+xJhRgX9fnDVf8c6LdTtGS4HG+1y8TT fWaGzigOj2EqZDx6y6dGrcfg0Ozzt0dY92EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:from:date:in-reply-to :mime-version:content-type:content-transfer-encoding; s=arcseal; t=1623402336; bh=0l8uwyTsvQ7Dxvz7uFwNclwgRhdR/wjXnbbbPfKkhf4=; b= RAmq+dQ0VbUOTRk7Dp8d9+YUSwt5ffIJIB52PQKOvP2D+MOTGcRp/GdHotX4igBm PBtGF76XqRG5Njdda4kQzuqbPpEbneNLzFxaXhwqu2APQmQCwT4iiNnismvfvHeK rXYtjyJQOnrlZ8WXseBC+DwklBfCkhet+uzcdjXlvU6fFyegJIhTlAYJzI0WY2hb VE/k+rUAb/bcpgm8iGpgg9bfDzSjzuYalU5Z9+6HJdtw7GzvRqO5fWGPJPgpcb62 M3BrdA0tTnBCWRewwolPVn/cwVXvUsEXEJOpgajzSOZ26H+sH/ztkIWx47nvIA0N SPG1b5ZhpkgkONN3rAiswQ== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=hamnavoe.com; iprev=pass smtp.remote-ip=46.235.227.24 (balrog.mythic-beasts.com); spf=pass smtp.mailfrom=miller@hamnavoe.com smtp.helo=balrog.mythic-beasts.com; x-aligned-from=domain_pass (Domain match); x-me-sender=none; x-ptr=pass smtp.helo=balrog.mythic-beasts.com policy.ptr=balrog.mythic-beasts.com; x-return-mx=pass header.domain=hamnavoe.com policy.is_org=yes (MX Records found: mx2.mythic-beasts.com,mx1.mythic-beasts.com); x-return-mx=pass smtp.domain=hamnavoe.com policy.is_org=yes (MX Records found: mx2.mythic-beasts.com,mx1.mythic-beasts.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrfeduiedguddtvdculddtuddrgeduhedrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecunecujfgurhepkffvuffhffgjgggtgfesthejjhdttddtvdenucfhrhhomheptfhi tghhrghrugcuofhilhhlvghruceolehfrghnsheshhgrmhhnrghvohgvrdgtohhmqeenuc ggtffrrghtthgvrhhnpeevtdeftdejfefhleelhfdttdfhhffghfefudeftefghfehfefh ffetvdehgeejueenucfkphepgeeirddvfeehrddvvdejrddvgedpkeekrdeljedrvdejrd ekfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeegiedrvdef hedrvddvjedrvdegpdhhvghlohepsggrlhhrohhgrdhmhihthhhitgdqsggvrghsthhsrd gtohhmpdhmrghilhhfrhhomhepoehmihhllhgvrheshhgrmhhnrghvohgvrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (hamnavoe.com: Sender is authorized to use 'miller@hamnavoe.com' in 'mfrom' identity (mechanism 'include:_spf.mythic-beasts.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="miller@hamnavoe.com"; helo=balrog.mythic-beasts.com; client-ip=46.235.227.24 Received: from balrog.mythic-beasts.com (balrog.mythic-beasts.com [46.235.227.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 11 Jun 2021 05:05:35 -0400 (EDT) (envelope-from miller@hamnavoe.com) Received: from [88.97.27.83] (port=64111 helo=hamnavoe.com) by balrog.mythic-beasts.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.92.3) (envelope-from ) id 1lrd6Y-0000nu-KD for 9fans@9fans.net; Fri, 11 Jun 2021 10:05:34 +0100 Message-ID: <6d2862b7d3797bb11f7a6bfe4ec23c28@hamnavoe.com> To: 9fans@9fans.net Subject: Re: [9fans] Miller's 9pi image (rpi4) problems From: Richard Miller <9fans@hamnavoe.com> Date: Fri, 11 Jun 2021 10:05:29 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BlackCat-Spam-Score: 1 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 31fb081a-ca94-11eb-b289-c0c8dd2185ab Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYzVkY2Q4NWQ2OTUxODE2OC1NNmRhYjY3MTFmOGYxZmU4YzNkMzU1?= =?UTF-8?B?MzIyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M6dab6711f8f1fe8c3d355322:1:2OuF0OpBhg905FoAeMoqfHjujbjJimLqOPLKD1QbCXM To be pedantic, the troubles you describe are not strictly "9pi image probl= ems", you will likely find that 4e Plan 9 on any architecture will behave the sam= e. The usb subsystem is known to be pretty rudimentary, and indeed with respect to power management /sys/src/cmd/usb/usbd/usbd.c:/^portattach is headed by this comment: * BUG: does not consider max. power avail. Having said that, "It is impossible to use any usb disk" is possibly an overstatement. Some disks will work, some won't. That's not necessarily a power management problem. Steve Simon might want to comment here on his experience with usb3 sata adapters. Some modern disks use the "UASP" protocol in preference to the traditional bulk-only mass storage protocol supported by the Plan 9 usbdisk driver. Even if the disk also supports bulk-only, the existing driver won't try to pick an alternate configuration to force the disk to fall back to that protocol. Below is a patch (tested on only one drive, as far as I know) which will make it do that. As for your reported problem with webfs: > webfs: tlsClient: fd out of range or not open what exactly did you do which raised this error? I don't usually use webfs,= but I've just tried it and made a successful tls connection to github with abac= o. --- /n/sources/plan9/sys/src/cmd/usb/lib/parse.c Fri Jan 8 18:00:43= 2010 +++ ./parse.c Tue Mar 23 16:19:20 2021 @@ -66,6 +66,11 @@ } if(c->iface[ifid] =3D=3D nil) c->iface[ifid] =3D emallocz(sizeof(Iface), 1); + else{ + /* hack to avoid unsupported uasp disk interface */ + if(dip->bInterfaceClass =3D=3D Clstorage && dip->bInterface= Protocol !=3D 0x50) + return 0; + } ip =3D c->iface[ifid]; class =3D dip->bInterfaceClass; subclass =3D dip->bInterfaceSubClass; @@ -164,6 +169,7 @@ Ep *ep; Altc *altc; char *hd; + int ok; =20 assert(d !=3D nil && c !=3D nil); tot =3D 0; @@ -174,6 +180,7 @@ if(d->ddesc[nd] =3D=3D nil) break; =20 + ok =3D 1; while(n > 2 && b[0] !=3D 0 && b[0] <=3D n){ len =3D b[0]; if(usbdebug>1){ @@ -189,7 +196,7 @@ ddprint(2, "%s\tparsedesc: %r", argv0); break; case Diface: - if(parseiface(d, c, b, n, &ip, &altc) < 0){ + if((ok =3D parseiface(d, c, b, n, &ip, &altc)) < 0){ ddprint(2, "%s\tparsedesc: %r\n", argv0); return -1; } @@ -199,6 +206,8 @@ werrstr("unexpected endpoint descriptor"); break; } + if(!ok) + break; if(parseendpt(d, c, ip, altc, b, n, &ep) < 0){ ddprint(2, "%s\tparsedesc: %r\n", argv0); return -1; ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc5dcd85d69518168-M6dab6= 711f8f1fe8c3d355322 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription