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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 5582 invoked from network); 13 Jun 2021 17:22:39 -0000 Received: from tb-ob20.topicbox.com (173.228.157.66) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2021 17:22:39 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob20.topicbox.com (Postfix) with ESMTP id 2958E1A337 for ; Sun, 13 Jun 2021 13:22:35 -0400 (EDT) (envelope-from bounce.mM5713a1f8ec63663d9aeae58e.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id E3A6328907F6; Sun, 13 Jun 2021 13:22:34 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; 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=date:to:message-id:references:mime-version :content-type:in-reply-to:from:list-help:list-id:list-post :list-subscribe:reply-to:subject:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1623604954; bh=mITAjYn5iowfN4nF TGuO6cdUBbkiRWMiJMNnGsoqos0=; b=cieWhNux2Xz3FRsGvMjkdSy4AcrC3JfU Rzg56027vCef5aHjchIs2FvF4j4Peh+RRoFwezTbOjVIQLd4LwG9QpDvrmmQXLS9 sfephVjWiCpW/6unmO2hsDTO6CLOnAYkc4KbHxYlHRzjdF4PqhOTXXAB0SuxFJ3R bc38Yv2gjHo= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1623604954; b=bOAkrYGpT+GJpOBSEi25eujxlSNi0HbjKBPyVs8e4zRL2yFcK8 xVDfLXmDTaVVFwK95fJaD7TCjmmq/fZOJeReOQQ8fyOcRIrorbWrdBwC6PD+ObNL WRBuQtgHQsMKUHM4mOFlbpcsroXd4p/LuDxvNwzcAHs3opo67CaXyC8Xk= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; 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=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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=date:to :message-id:references:mime-version:content-type:in-reply-to :from:list-help:list-id:list-post:list-subscribe:reply-to :subject:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=0YTvDWQlgyg+TcP0+1wzhK+9m3gUx5R395ojL6e5Els=; b=WhMQIdaEH1LW MeN3BJzlbGiXJjlGszMj/+0fPlCKHo+ngveotO+3ByU/lP+nR98Spa6u6N5MSTQG hqoM16+INphBlgxudii5xakZ+MbWMDu62xTKmtf8w12tnqEvBbnOopXKgvG+Neyu pQeDCl4cTqaqj7GGoGoBPS8tLIyrPds= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 7F9A128903E9 for <9fans@9fans.net>; Sun, 13 Jun 2021 13:22:24 -0400 (EDT) (envelope-from adr@sdf.org) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id AF56C82B658; Sun, 13 Jun 2021 13:22:24 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1623604944; b=N5WD8cWGo8FXYY9UBZTt0/s43Tyi5eM5kiEyccppSauAZ2vmXn nL9DyQIJedCILJwJMTH6+l9ie3fITKVaP7Ug2J59vtsvZ2ZCUdNPjaD7ruwyQRd1 CKgoPqhyZG2uaJ3R/BVIwq6GjqXrtEgkSE/FMQM5RFo4SlNQeOkqvHWYNAvOoUsq wcfORMKGICumXTc19CphD1SHReGyi0A3/kYgOSBErvsUyr1Q9SPdG7p6vUKV/ZiA +GN6osqhrR3u62kY4pdA97SC8h1rTLPfnutKZj1U2cPiX+bG48qToScSZy63gvV7 3plNocz9I0bkra9GlaclPiw4CNourEqzGPfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=arcseal; t=1623604944; bh=67T09Un4CwwynN/iukrYRBkBXAYnSQqRYBmcVpNwQfw=; b=nkHLZ0gN8U1J 4h0zL5uHY9BaK+TvfWFQNvos0trwtkg99eP72y8EESJpOvU5MLw2JyNPm7okItG8 tSQY1qokeDjAzVUtMXTLv2WBYonD5JC8MDPQJCtbGI4Yc/J0bPA75qkzCnN6c4LX sMhrhuT2gK677sjCqCp0RYmmiX7jUftPkMeUSaKtgKyC3Cl0jw+1xeDlc7DoErRu ysUrf02xPG6J1h/y5wPv4bbvzoCO5RZFpQvv1FCazT5ccRRb7ycOkIpOgTxe1xMU OCa5SaQzvImFXtvzZ8GHH1I64+mlR3Pz62A5UsIIc7rTRPtgN7/R4ZnViWbYJ2vd BnHRYcHGaw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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: gggruggvucftvghtrhhoucdtuddrgeduledrfedvuddgudduucdltddurdegudehrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprggu rhesufffhfdrqfftifenucggtffrrghtthgvrhhnpeduffevheeuueeutedvvddtudeuke ehjeetheelgfdvgedtfeeigefhudetjeektdenucfkphepvddthedrudeiiedrleegrddv gedpvddthedrudeiiedrleegrdduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepihhnvghtpedvtdehrdduieeirdelgedrvdegpdhhvghlohepmhigrdhsughfrdho rhhgpdhmrghilhhfrhhomhepoegrughrsehsughfrdhorhhgqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@sdf.org' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="adr@sdf.org"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.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>; Sun, 13 Jun 2021 13:22:23 -0400 (EDT) (envelope-from adr@sdf.org) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 15DHMM8j027421 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Sun, 13 Jun 2021 17:22:22 GMT Received: (from adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 15DHMM83023614 for 9fans@9fans.net; Sun, 13 Jun 2021 17:22:22 GMT Date: Sun, 13 Jun 2021 17:22:21 +0000 To: 9fans@9fans.net Message-ID: Mail-Followup-To: 9fans@9fans.net References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline In-Reply-To: Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: eddcec28-cc6b-11eb-9209-be73130f67c6 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYzVkY2Q4NWQ2OTUxODE2OC1NNTcxM2ExZjhlYzYzNjYzZDlhZWFl?= =?UTF-8?B?NThlPg==?= From: "adr via 9fans" <9fans@9fans.net> List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Re: Miller's 9pi image (rpi4) problems Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M5713a1f8ec63663d9aeae58e:1:fAK7uA-r7Lyb3orHH5YJi4z2j8UvgUlive6AZJ6DbMc > The biggest problem to me is the usb code. >=20 > First I'm using a kvm switch so there are a lot of attachments-detachment= s. > At a certain point it will end with "No slots available" and the > usb will became unusable. For me is a labyrinth, but I'm pretty sure > someone with more experience with the system could fix it. I found how 9front fixed this: --- /n/sources/contrib/miller/9/bcm/devusb.c Wed Sep 18 16:02:39 2019 +++ devusb.c Sun Jun 13 16:21:28 2021 @@ -389,6 +389,10 @@ if(ep->ep0 !=3D ep){ putep(ep->ep0); ep->ep0 =3D nil; + } else if(d !=3D nil){ + if(d->free !=3D nil) + (*d->free)(d->aux); + free(d); } free(ep->info); free(ep->name); I can't understand the code yet, but my impression is that the original intention was to not free the slot by default when a device is detached, not allocate a new one if the same device is reconnected but reused the old one, and free the unused slots when some time has passed or if there is no one available. But what the code is doing is allocating a new slot every time a new device is attached and what this hack does is free the corresponded slot every time a device is detached. Regards, adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc5dcd85d69518168-M5713a= 1f8ec63663d9aeae58e Delivery options: https://9fans.topicbox.com/groups/9fans/subscription