From nobody Mon May 31 07:07:22 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5CBE5D7DEE2; Mon, 31 May 2021 07:07:32 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtmZW0st0z3nkD; Mon, 31 May 2021 07:07:30 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 14V77Mj8084681 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 31 May 2021 00:07:22 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 14V77M4m084680; Mon, 31 May 2021 00:07:22 -0700 (PDT) (envelope-from jmg) Date: Mon, 31 May 2021 00:07:22 -0700 From: John-Mark Gurney To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= Cc: Ian Lepore , FreeBSD Hackers , freebsd-arch@FreeBSD.org Subject: Re: Inclusion of all manual pages in all architecture releases Message-ID: <20210531070722.GR14975@funkthat.com> Mail-Followup-To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= , Ian Lepore , FreeBSD Hackers , freebsd-arch@FreeBSD.org References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Mon, 31 May 2021 00:07:22 -0700 (PDT) X-Rspamd-Queue-Id: 4FtmZW0st0z3nkD X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [-1.65 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[jmg]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; RBL_DBL_DONT_QUERY_IPS(0.00)[208.87.223.18:from]; AUTH_NA(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SPAMHAUS_ZRD(0.00)[208.87.223.18:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.85)[-0.847]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; MAILMAN_DEST(0.00)[freebsd-hackers,freebsd-arch]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Fernando Apestegua wrote this message on Thu, May 27, 2021 at 08:40 +0200: > On Wed, May 26, 2021 at 5:23 PM Ian Lepore wrote: > > > > On Wed, 2021-05-26 at 17:04 +0200, Fernando Apesteguía wrote: > > > I don't know what list this should be sent to, apologies if the > > > audience is too wide. > > > > > > For some time now, we have not included all manual pages in every > > > FreeBSD packaged release. For instance, i386 man pages are not > > > included in the FreeBSD amd64 distribution. > > > > > > This causes a number of problems: > > > > > > * The https://www.freebsd.org/cgi/man.cgi is incomplete. As an > > > example, it does not show results for pae(4). The reason for this is > > > that the cgi interface runs on FreeBSD amd64. > > > > > > * In FreeBSD amd64 some manual pages have broken X-refs. See hptrr(4) > > > for an example. > > > > > > * Also, we have broken links in our Release Notes. This is a > > > consequence of the first point. See > > > https://www.freebsd.org/releases/13.0R/hardware/#proc-i386. > > > > > > Is there a specific reason for this? > > > > > > Cheers. > > > > > > > I have tried multiple times to get the people who adminster > > freebsd.org's man.cgi to include all arches. I added the ability to > > generate and install all of them by setting MAN_ARCH=all (or to a list > > of arches) on the build command line years ago. But I haven't had any > > success in getting that used to install all the arches for the website > > and man.cgi updated to make the arch selection list on the webpage > > actually work. > > Hi Ian, > > Thanks for the explanation. That would fix the man.cgi and > consequently the Release Notes issues. > However, in order to fix the broken X-refs in the manual pages of the > release distributions, wouldn't we need to build them with > MAN_ARCH=all? > According to make.conf(5), MAN_ARCH defaults to MACHINE and > MACHINE_ARCH. Would it be possible to change the default value to > "all"? > > diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile > index f7626c80eeb1..583c4a4b9bb9 100644 > --- a/share/man/man4/Makefile > +++ b/share/man/man4/Makefile > @@ -897,9 +897,7 @@ _cgem.4= cgem.4 > MLINKS+=cgem.4 if_cgem.4 > .endif > > -.if empty(MAN_ARCH) > -__arches= ${MACHINE} ${MACHINE_ARCH} ${MACHINE_CPUARCH} > -.elif ${MAN_ARCH} == "all" > +.if empty(MAN_ARCH) || ${MAN_ARCH} == "all" > __arches= ${:!/bin/sh -c "/bin/ls -d ${.CURDIR}/man4.*"!:E} > .else > __arches= ${MAN_ARCH} > > This way, the released distributions will have all the man pages (we > have some PRs related to this) and would also fix man.cgi regardless > of the FreeBSD version the service runs on. > > I am assuming here that we do not explicitly set MAN_ARCH to a > specific architecture when building the releases but we take the > default value. I would like to see this change made myself. It'd nice to be able to use your amd64 build box to be able to get information on other systems by default. The extra space is minimal. I have cc'd -arch to get a wider audience. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From nobody Mon May 31 10:01:14 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 267C6DF6443 for ; Mon, 31 May 2021 10:01:33 +0000 (UTC) (envelope-from arnaud.ysmal@stormshield.eu) Received: from work.stormshield.eu (gwlille.netasq.com [91.212.116.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtrRJ1zNgz4WSB for ; Mon, 31 May 2021 10:01:31 +0000 (UTC) (envelope-from arnaud.ysmal@stormshield.eu) Received: from work.stormshield.eu (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTPS id 02E4037603EA; Mon, 31 May 2021 12:01:15 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTP id DD50C37602DC; Mon, 31 May 2021 12:01:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 work.stormshield.eu DD50C37602DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stormshield.eu; s=BBC9ECEA-016A-11EA-9CC1-8A393C11FBBB; t=1622455274; bh=56bfQ929CQZqhzVvV2Ej+sOmRQtHfuNMdqd2WPigdno=; h=Date:From:To:Message-ID:MIME-Version; b=dGihcyal5gyASfHm92vjec7qtMuFgYx0nyJ8tq5+p6PV/YkwOAXOnmDQX2JSxlLeC yLgkQouLf1LJn+6yRMW6EXP61+m70vavaH0w+E4ILjbPitdED94oxjE5ocdyVayKWb goRhzuW5w3cnLAQHxpkkZo1LbUBK8EHquktM6hYwAV6ugKl6HvOalPjrwggLpasQVC +/c8H5D8fthgWNTj7gyxt054dCxD1Z0LWrwtyGxnsX0NqFxPl5rzfwTsGqtreUDEEP Y9nbKb8nzkCt1EOJd3IG6E6LnLttRlwsDG+XqPX8vswqQoNYVAiE0SYqnQ+YWhmvLI GQYQvM+PanZWw== Received: from work.stormshield.eu ([127.0.0.1]) by localhost (work.stormshield.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uhbnGNE4K8Sa; Mon, 31 May 2021 12:01:14 +0200 (CEST) Received: from work.stormshield.eu (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTP id C87AB3760255; Mon, 31 May 2021 12:01:14 +0200 (CEST) Date: Mon, 31 May 2021 12:01:14 +0200 (CEST) From: Arnaud YSMAL To: freebsd-hackers Cc: SNS FreeBSD Message-ID: <831173652.7576991.1622455274800.JavaMail.zimbra@stormshield.eu> Subject: LACP drops packets for 3s on marker xmit error List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Thread-Index: 7DYtd7snoDb4PakdUZBwocP5Wl0ywA== Thread-Topic: LACP drops packets for 3s on marker xmit error X-Rspamd-Queue-Id: 4FtrRJ1zNgz4WSB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stormshield.eu header.s=BBC9ECEA-016A-11EA-9CC1-8A393C11FBBB header.b=dGihcyal; dmarc=none; spf=pass (mx1.freebsd.org: domain of arnaud.ysmal@stormshield.eu designates 91.212.116.1 as permitted sender) smtp.mailfrom=arnaud.ysmal@stormshield.eu X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[91.212.116.1:from]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[stormshield.eu:s=BBC9ECEA-016A-11EA-9CC1-8A393C11FBBB]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.212.116.1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[stormshield.eu]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[91.212.116.1:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[stormshield.eu:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:49068, ipnet:91.212.116.0/24, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: N Hi, When a marker message could not be sent, the error is discarded and the lacp keep dropping transmit packets until the timeout is reached. A patch is available for review [1], it fixes this issue by clearing the flag when the lacp_xmit_marker function returns an error [2]. Could you please check it out? [1] https://reviews.freebsd.org/D30467 [2] https://github.com/freebsd/freebsd-src/blob/main/sys/net/ieee8023ad_lacp.c#L919 Best regards, Arnaud Ysmal R&D SNS - Software Engineer Stormshield 2/6 Parc de l'Horizon - 59650 Villeneuve d'Ascq - FR From nobody Mon May 31 11:23:04 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D398DBFA31A for ; Mon, 31 May 2021 11:23:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-21.consmr.mail.gq1.yahoo.com (sonic302-21.consmr.mail.gq1.yahoo.com [98.137.68.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FttFT1yLkz4cKB for ; Mon, 31 May 2021 11:23:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622460187; bh=J5PNTbJdHb06fZeNfzn6nKujn/lXtbze7ZidXp2AK5g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Oq5f83i9zEwMJaEj90qFAzRlArTRTAwgGnEDuLQglhHrekCtUTmDUIpHunel2krSpfM1OmG8TqyRxL6p/0w3XjlEpVHKYzER0zFibqcoXhjNTsdUotLVykrhwQaWw80uk73iMPYZc4JZIVW9w1PuUdzi/T1MHUX7WsbgePLL2aaC7AsS0QTf3zw7Ja4rZfcjreQ9I9qQRQJjLzgRlt98/tQNEm0eoY9/y+4oI+hGml6mhnBl7tEdvnP9GstxAJuh3KdfK30yEzHzacI4sljkIDXlr+NDZymRhbeFt+uol+o0mNiAiXsugBWBbEJOOMiJ1VdQNs8u/fAOcEcpkoKofA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622460187; bh=vekJRQcRT/uzryMqQRrjiDV3f0F5oCbA55K6iunzaka=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=hsvyC360Ro/8BYAK5bn+GC3FoYFiWumF7y/QWlj3jw6hevOobuLkZjPftFYGpLlnUkLLx60tATP7Z4uv6r4Itba6OjpE485xwFngLSFqfQr9xuZAWV70Srd2nxUOC8PyGj4SDeHhPalSEnZe93bHqf3GuxpLROOMmM2zVF52Abyg+GsUVqsBRA3ibDBHsxTJ+11+l2dPN5GTsrtYiE88LENnxY322MbwaQSyAhefTrMUJ3Cz6rjHvBeV5jIzbh+r7waBEMv3xz+mBf8/I9Ec8r2WJQAW765DTpo+T4W71ARsdrcLkPNuH5C2UYLWO60lqtfGiRknZDFkdI+wnj93/A== X-YMail-OSG: lEV20nwVM1lGgIhwDr.Z1c3BejetiM92EVaZckGhleNqCJtO8oR3lLWpQTHWUhl YQiArLEuQ3ju964lws0HyFEk8j8mhoY3YVNJV_FQV5lQoZIlEPSDim0zwBRwPFZuIypF7LjIahOd N4pOh3J1SnhB3IIRbAVeic7lGefX5EsLSOJ8L2IEzB30ZEeVCcmzAZ2N9nGjk3KbxKKnasznF0ln aiLkCELVQ66_F9qy5Kd2qDaq4a4g_JT2.Grhbzrqt7yAl3orCzuD2pgdy1Ey.uLKo3DX3uVXOyHK m.rAqv3IIJQ7Rrz6LYXWrg9Khb0S7iKJBGc61cd_gnMNLITk5Jn6Yv.lKfF.G0R90MsFZe4QsLKl 5U8lADuQH1NZ5fSQhsSjNEN8.7Kx52q41aHaNj6KfLZVHPqFDEcF83X8LRUipALDmlMc49BnKvq_ dfnIPwSX7UDblromoRxNQVaNvZQ5GQb506mRB85F4tgLVfD.Gc.E8k5941Bn_MMVyit9G6UwxTYo g0zvWqItKaBb.8kxIaXyXCNhZHwsn2oTMqtTsTxqpYZpb3wdgs3FU87jJQAv.C2Kcy893Fhcly3K Gweq63QkT7ZN08zbPohc6VGIVJ76SMc0_RfDCtS8HAEDK.lEWXkDnh4PcosCrsWISoIT6LDdTGYv hCPtQGUAtsKyjpuAJrSFNjfPBNCvC0mhzfCB1Fk8SaOZ1Rxd.UhD4H02vXut2nvcLzkHHVD749xu y7rXtY0Ksp8FUKmNLc.RgSkOm.WGKPnvF_paNikFOGTasqXXGWiK0QpXZNXG815rIkWE4CNLpLDJ nCUO4wKNrEh06wHPq3M2eIT3jXpIURNXQphUa7_W95TrM61sBLXdzqputo5m.yYwhHzcuqZ_OrOH R0WTqnH.3WMbubhE7qBExcSMY2Gd0NUeyOHi5Qqv5d1C.glHIoe53IY5XsuBZRWxiJsseQJBsXjq LZAvxzb8blOcvdmQtR2KafrvIAHbefNDIuIPH93D0g3YitSW_VrGE_EZI1Ni5SoEotz3Bg5RP22y La3IrHxsNOtt1PBABZhAo8nzSf.moptOjmw9VZqU0ars8T9IDnH0ZN6XLtFkEPpr.iXKM9JDMBZ5 iDFYyhYFifuxc9kv0QbQr4pQcETadtBllerC3k3LETy5VtLb0rFLGeCf9Iy479hoYcW4oV6Tk8vQ 1zefMC0LOOxMVOCzEshC5oXqSlrtKalkxkzN2ka6YJ5l0IugUuCR.eOqor5uOwUWtK5o7zdgqk87 FTpIJE0oXXRHdiYbPiA02OjJcVfMKmoXfI33q8CDg_.LngYVGemro011l5wRkDD1UNOtgs_dXkYN MPzHURUt7vCLRAPlsqr0Q1.JZyjBSUAn58czYMBeI5_F9.E_sX_gGWIkLrIV6u1DL.w.RTem7ImY 1kd1HI8ox5wAtUymXGNC1rpN1epMZKCZWnTAo2PWmHPz1cOApVxaKP6nCb.nkGfaGnFr.QE_BFyH AhuwSGv2lvf309PBkT99I7c5BIocU9xXMhs1XoahW_9m6uGtdX8IVnzJfwGBwe9V8GwFhl4hE1_N mufxDKkbcO9un23Ff9cwokBoUzSlmxxagoRc74fM7TkI6f4wUVAZm2M.zzaPaiujdtk8QKt.9H3T .UpCBZn2LZ54jxzIEypl0vbxTWCd8ZsK_HHYw4jskuroFLc4PnUHEZARragQYlbpOqsAWY0GOXP5 8z5Tj.9ue8Y5Q0G00sTg9kiP3GFlD5FDizPh37h1bKq6WiPcJ6D3qVXOOfr.S5DMwMWqtIrIsPve 86QV.OAe1T3gzEFjV_orKBQNp3fEfORrM6XsL.bzh46iFEJeyF6ckzz7WgZFL6Cl1ciYz.2k.Q3g V_XCONZz2eF8brzpCIAK9GrZRFv73feQ3KtMQq5xUeueLyi6NomGTRZAuQZZmcggD2KzpTkRPj6n 3aW9gzszt5bIc4aHwOPGF1ezJ7GcN0.jVRMaOAtRTOpYynWW3hUenzm.q2VyfLDNVuVJ6_FJaCBK uLpt.LvLju8rYuppMlzGX2C.F8h92V6KnclhbsyiqVhIRtbA7pvJlzORiKSnmRr3ewv4NPK1Siun nhDvWf9v2XUZpAQanCz7aMthQ5KvNv9ca6pLIJFY_Jjqx7.yIrP5i668jWDDAgnHCPczW8Fyfau5 F_Jo2GmkyzW9LWDXrifgPltS_9zJRLE5bDwfXJGbBCe6WRn3A.WU.dMvtAbxyxwXOXM0UNj8TSt. 8YNiq2iTBjDfXw0NH1fHhOEffZ7rKqowb8.lrzhH5Lgv8ebUSmuiqj1r7yBGYlWncaQpKj7N4Z0Z NNDK7FDxW02y99vhAanMzuzIr9_.5N2m9cZgmlARZ8Az49KaRPdIr8A9_9ZoHcrezG0U7ZLKSTBL EXkRdteaBhLdxCZRwIS0DQLLTei_lcnw_3cek_g5TfuU5i1gHkTPwPgirI9Eg7R6PGvMZPRSu2_n L7XQR6Fb4o87VfeO5lNtAqJoI6vskEALp2GycuyNpJPknoLxyLBtoYIaXFZyzu0XLgCvvTPnjxXx JwoMrZbde0Jfe9gSGv8cbFwXNyOiymTE39F2thYsJ9t5v.__L4KIYAI4vxaqU_L1YVoeklWwR5aV wXZ3H0gV7n5ouQOU8fT.3ud65QQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Mon, 31 May 2021 11:23:07 +0000 Received: by kubenode568.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 22aa3df4465b3e865aa6fda3101562db; Mon, 31 May 2021 11:23:05 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: Is powerpc64 atomic_load_acq_##TYPE omitting isync believed correct? In-Reply-To: <07D39D7F-711B-4FF3-AA33-AB691C231FA4@yahoo.com> Date: Mon, 31 May 2021 04:23:04 -0700 Cc: FreeBSD Hackers Content-Transfer-Encoding: 7bit Message-Id: <944F3A86-8EAA-42F5-A0BC-FF2BA8E480DA@yahoo.com> References: <07D39D7F-711B-4FF3-AA33-AB691C231FA4@yahoo.com> To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Rspamd-Queue-Id: 4FttFT1yLkz4cKB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Oq5f83i9; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-2.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.147:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.68.147:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.147:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.147:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-hackers X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-May-29, at 23:04, Mark Millard wrote: > In the code from /usr/include/machine/atomic.h for powerpc64 > and powerpc there is: > > #define ATOMIC_STORE_LOAD(TYPE) \ > static __inline u_##TYPE \ > atomic_load_acq_##TYPE(volatile u_##TYPE *p) \ > { \ > u_##TYPE v; \ > \ > v = *p; \ > powerpc_lwsync(); \ > return (v); \ > } \ > \ > static __inline void \ > atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v) \ > { \ > \ > powerpc_lwsync(); \ > *p = v; \ > } > > This code sequence does not involve isync: > > #define __ATOMIC_ACQ() __asm __volatile("isync" : : : "memory") > > What justifies this? All the reference material I've > found for C++/C11 semantics agrees with: > > https://www.cl.cam.ac.uk/~pes20/cpp/cpp0xmappings.html > > that shows (organized here to compare Relaxed vs. > Acquire and Release): > > powerpc Load Relaxed vs. Acquire: ld vs. ld;cmp;bc;isync > powerpc Fence: Acquire: lwsync > powerpc Store Relaxed vs. Release: st vs. "Fence: Release";st > powerpc Fence: Release: lwsync > > lwsync does not order prior stores vs. later loads, isync does > (and more in some respects). That likely (partially) explains > why load-acquire does not use just an acquire-fence in such > materials. > > Is this a problem for being correct for "synchronizes with" in > "man atomic"? For the acquire operation reading the value > written by the release operation: > > QUOTE > . . . the effects of all > prior stores by the releasing thread must become visible to subsequent > loads by the acquiring thread > END QUOTE > > It seems that some later loads could be moved by the hardware > to be too early relative to various such prior stores (as seen > in the load-acquire thread): no constraint is placed for such > relationships by the atomic_load_acq_##TYPE as far as I can see. > > > (I got into this by finding some code that uses an > atomic_store_rel_##TYPE without any matching use of > atomic_load_acq_##TYPE or atomic_thread_fence_acq or other such, > so far as I found. But, looking around to see if I could find a > justification for such code, generated more questions, such as > in this note.) Never mind. I figured out my significant confusion in interpretation. (Net result: lwsync is more than sufficient.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From nobody Mon May 31 12:33:57 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 76DF3BFDFD3; Mon, 31 May 2021 12:34:07 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from mcusim.org (mcusim.org [176.58.93.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtvqL2zWMz4jpL; Mon, 31 May 2021 12:34:06 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from x230.ds (unknown [83.28.234.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mcusim.org (Postfix) with ESMTPSA id 5E02876478; Mon, 31 May 2021 14:33:59 +0200 (CEST) Date: Mon, 31 May 2021 14:33:57 +0200 From: Dmitry Salychev To: freebsd-arm@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: U-Boot for HoneyComb LX2 Message-ID: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4FtvqL2zWMz4jpL X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=reject) header.from=mcusim.org; spf=pass (mx1.freebsd.org: domain of dsl@mcusim.org designates 176.58.93.53 as permitted sender) smtp.mailfrom=dsl@mcusim.org X-Spamd-Result: default: False [-1.80 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[176.58.93.53:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[176.58.93.53:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[mcusim.org,reject]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:176.58.93.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-hackers]; RECEIVED_SPAMHAUS_PBL(0.00)[83.28.234.19:received] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N Hi, I'm working on three ports to compile BL2, BL31, BL32 and BL33 (u-boot) bootloaders for HoneyComb LX2 in FreeBSD. They're based on what NXP shared in their Layerscape SDK and patches from SolidRun [1]. I've managed to compile Reset Configuration Word (rcw), u-boot and ARM trusted firmware (atf) and write them to one of the existing images shared by SolidRun [2]. However, my HoneyComb LX2 is on a way to me and this is why I cannot try to boot the resulted image on my own. I'm really interested how far it'll go, but I don't expect anything beyond u-boot. Could somebody who has HoneyComb do me a favor and try to boot that image of mine? It should work with DDR4-3200 only: ftp://mcusim.org/ftp/lx2160acex7_2000_700_3200_8_5_2-2fff64e_changed_bld.img.xz If you want to take a look at the sysutils/rcw-lx2160acex7, sysutils/u-boot-lx2160acex7 and sysutils/atf-lx2160acex7, here is the link: https://github.com/mcusim/freebsd-ports Thanks in advance. Regards, Dmitry [1] https://github.com/SolidRun/lx2160a_build [2] https://images.solid-run.com/LX2k/lx2160a_build/ From nobody Mon May 31 13:22:57 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 037F5C78A36; Mon, 31 May 2021 13:23:10 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ftwvx63rJz4nMQ; Mon, 31 May 2021 13:23:09 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C3ED38D4A172; Mon, 31 May 2021 13:23:01 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 8C566E707C2; Mon, 31 May 2021 13:23:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id f8aD0Q7H0FMw; Mon, 31 May 2021 13:22:59 +0000 (UTC) Received: from [192.168.2.110] (unknown [IPv6:fde9:577b:c1a9:31:3c8a:b6b3:7bcf:6aac]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 1F9F0E707B9; Mon, 31 May 2021 13:22:58 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Dmitry Salychev" Cc: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: U-Boot for HoneyComb LX2 Date: Mon, 31 May 2021 13:22:57 +0000 X-Mailer: MailMate (2.0BETAr6151) Message-ID: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> In-Reply-To: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Ftwvx63rJz4nMQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 31 May 2021, at 12:33, Dmitry Salychev wrote: Hi, > I'm working on three ports to compile BL2, BL31, BL32 and BL33 = > (u-boot) > bootloaders for HoneyComb LX2 in FreeBSD. They're based on what NXP = > shared in > their Layerscape SDK and patches from SolidRun [1]. > > I've managed to compile Reset Configuration Word (rcw), u-boot and ARM = > trusted > firmware (atf) and write them to one of the existing images shared by > SolidRun [2]. > > However, my HoneyComb LX2 is on a way to me and this is why I cannot = > try to > boot the resulted image on my own. I'm really interested how far it'll = > go, but > I don't expect anything beyond u-boot. Could somebody who has = > HoneyComb do me > a favor and try to boot that image of mine? It should work with = > DDR4-3200 > only: > > ftp://mcusim.org/ftp/lx2160acex7_2000_700_3200_8_5_2-2fff64e_changed_b= ld.img.xz > > If you want to take a look at the sysutils/rcw-lx2160acex7, > sysutils/u-boot-lx2160acex7 and sysutils/atf-lx2160acex7, here is the = > link: > > https://github.com/mcusim/freebsd-ports That=E2=80=99s great news! I might give it a try. I=E2=80=99ve got a local tree (on Jan 2021, needs updating to latest and = re-test before submit) for the uEFI firmware (not u-boot). /bz From nobody Mon May 31 13:40:16 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5F5F7C7A80B; Mon, 31 May 2021 13:40:20 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from mcusim.org (mcusim.org [176.58.93.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtxHm1nHcz4qnR; Mon, 31 May 2021 13:40:19 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from x230.ds (unknown [83.28.234.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mcusim.org (Postfix) with ESMTPSA id 3F8DA76771; Mon, 31 May 2021 15:40:18 +0200 (CEST) Date: Mon, 31 May 2021 15:40:16 +0200 From: Dmitry Salychev To: "Bjoern A. Zeeb" Cc: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: U-Boot for HoneyComb LX2 Message-ID: References: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> X-Rspamd-Queue-Id: 4FtxHm1nHcz4qnR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N Bjoern, On Mon, May 31, 2021 at 01:22:57PM +0000, Bjoern A. Zeeb wrote: > On 31 May 2021, at 12:33, Dmitry Salychev wrote: > > Hi, > > > I'm working on three ports to compile BL2, BL31, BL32 and BL33 > > (u-boot) > > bootloaders for HoneyComb LX2 in FreeBSD. They're based on what NXP > > shared in > > their Layerscape SDK and patches from SolidRun [1]. > > > > I've managed to compile Reset Configuration Word (rcw), u-boot and ARM > > trusted > > firmware (atf) and write them to one of the existing images shared by > > SolidRun [2]. > > > > However, my HoneyComb LX2 is on a way to me and this is why I cannot > > try to > > boot the resulted image on my own. I'm really interested how far it'll > > go, but > > I don't expect anything beyond u-boot. Could somebody who has > > HoneyComb do me > > a favor and try to boot that image of mine? It should work with > > DDR4-3200 > > only: > > > > ftp://mcusim.org/ftp/lx2160acex7_2000_700_3200_8_5_2-2fff64e_changed_bld.img.xz > > > > If you want to take a look at the sysutils/rcw-lx2160acex7, > > sysutils/u-boot-lx2160acex7 and sysutils/atf-lx2160acex7, here is the > > link: > > > > https://github.com/mcusim/freebsd-ports > > That’s great news! I might give it a try. > > I’ve got a local tree (on Jan 2021, needs updating to latest and > re-test before > submit) for the uEFI firmware (not u-boot). > > /bz You could try to boot SolidRun's own from SD card first: lx2160acex7_2000_700_3200_8_5_2-2fff64e.img.xz and see how it'll work and mine after. I wonder whether there'll be any difference or not. Regards, Dmitry From nobody Mon May 31 16:17:56 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5F851DFF6DA for ; Mon, 31 May 2021 16:17:59 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fv0nf4mpLz3tfl for ; Mon, 31 May 2021 16:17:58 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: by mail-wr1-x42a.google.com with SMTP id q5so11446633wrs.4 for ; Mon, 31 May 2021 09:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=submonkey-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uaA4f73GKYdTRxufNF2r4knX0DFvhajygoZFcQpM5FE=; b=RNyuBSOL8ArSqGeRff/877J6DVASp0ALrEgrx/8m0EpdHFjFLq8m+HmlvsbMXSDZsp LXPO/mzpg9ip9l1FZLYtF/EeAkoJKSVlz8KEIao/ZwKGEMTyXLq8B+lx6+jv6pZtMzns 57Bi7+FF93w1qROxSIInmt7KYhq3OzxaBoVf6ZIm+PkN5SGsGjpD4UhaC4XWXvWSyKBw 4ChPCxRbvL1Y9AqI/eiUhUsJ56yabbVo3fuchJ2KvgURMW7K+B3F4siQCW8O5oktH18Y AQzUbscbXtl6N794Gm3NA02lEM0Ai0Yy4FI/CRdqHSCs0GqODpOrmFlJUoFjmere1Vs9 vdRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uaA4f73GKYdTRxufNF2r4knX0DFvhajygoZFcQpM5FE=; b=EbWBup1iMumpCG6+yYkMGHEYeM7nRCBb6N7vv+7yg2F+WC+gK+63cDNmsP02wAzNIo u7ebW9p6o2sfDaKySEm0uuKRVQQSz4DV60JhrvldihdHlKfHs/Z3qrDmXPdGkixrsb/Y LnrMIr6/j87ZM2RInRySD4Bnptfq/Q2hFlt6MeeUB8xlCSc3u3ch1nzkdmD8OfV5Q0mq vPFWpz9WH7p06POOBHjoDAwAgbK0newsHTev1Tu4FtAV8Dq4UH7WE+sMbBj0dCpk7gLD R5GL7q2j4exhY+tbMPX91c09B7ylS9yjlClqxZUMZkRrtw02f+kYj1owJxEEuMUZkpsw jTKw== X-Gm-Message-State: AOAM530AQaRXtwWnc5hpLEnUhaUoUqv9hcXSplCapxbausFJ695U72mG kalzKePdbppThkW7HMwUwOpriyyJLPdpfw== X-Google-Smtp-Source: ABdhPJzkp0DemT9vcHR6PRL+1Xxbn8gQHArOd35+PFRRCLIakZQke1adpnXgQGzIl9LY9py2856qyw== X-Received: by 2002:adf:fc91:: with SMTP id g17mr22728935wrr.191.1622477877197; Mon, 31 May 2021 09:17:57 -0700 (PDT) Received: from horror (horror.submonkey.net. [165.227.238.234]) by smtp.gmail.com with ESMTPSA id q11sm139205wrx.80.2021.05.31.09.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 09:17:56 -0700 (PDT) Received: from localhost (horror [local]) by horror (OpenSMTPD) with ESMTPA id 31681e7d; Mon, 31 May 2021 17:17:56 +0100 (BST) Date: Mon, 31 May 2021 17:17:56 +0100 From: Ceri Davies To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= , Ian Lepore , FreeBSD Hackers , freebsd-arch@freebsd.org Subject: Re: Inclusion of all manual pages in all architecture releases Message-ID: References: <20210531070722.GR14975@funkthat.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xY3IAiaPaJDEeB7V" Content-Disposition: inline In-Reply-To: <20210531070722.GR14975@funkthat.com> X-Rspamd-Queue-Id: 4Fv0nf4mpLz3tfl X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=submonkey-net.20150623.gappssmtp.com header.s=20150623 header.b=RNyuBSOL; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=submonkey.net (policy=none); spf=none (mx1.freebsd.org: domain of ceri@submonkey.net has no SPF policy when checking 2a00:1450:4864:20::42a) smtp.mailfrom=ceri@submonkey.net X-Spamd-Result: default: False [-5.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[submonkey-net.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[165.227.238.234:received]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::42a:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[submonkey-net.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[ceri]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::42a:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42a:from]; R_SPF_NA(0.00)[no SPF record]; MAILMAN_DEST(0.00)[freebsd-hackers]; DMARC_POLICY_SOFTFAIL(0.10)[submonkey.net : No valid SPF, DKIM not aligned (relaxed),none] X-ThisMailContainsUnwantedMimeParts: N --xY3IAiaPaJDEeB7V Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2021 at 12:07:22AM -0700, John-Mark Gurney wrote: > Fernando Apestegua wrote this message on Thu, May 27, 2021 at 08:40 +0200: > >=20 > > Hi Ian, > >=20 > > Thanks for the explanation. That would fix the man.cgi and > > consequently the Release Notes issues. > > However, in order to fix the broken X-refs in the manual pages of the > > release distributions, wouldn't we need to build them with > > MAN_ARCH=3Dall? > > According to make.conf(5), MAN_ARCH defaults to MACHINE and > > MACHINE_ARCH. Would it be possible to change the default value to > > "all"? > >=20 > > diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile > > index f7626c80eeb1..583c4a4b9bb9 100644 > > --- a/share/man/man4/Makefile > > +++ b/share/man/man4/Makefile > > @@ -897,9 +897,7 @@ _cgem.4=3D cgem.4 > > MLINKS+=3Dcgem.4 if_cgem.4 > > .endif > >=20 > > -.if empty(MAN_ARCH) > > -__arches=3D ${MACHINE} ${MACHINE_ARCH} ${MACHINE_CPUARCH} > > -.elif ${MAN_ARCH} =3D=3D "all" > > +.if empty(MAN_ARCH) || ${MAN_ARCH} =3D=3D "all" > > __arches=3D ${:!/bin/sh -c "/bin/ls -d ${.CURDIR}/man4.*"!:E} > > .else > > __arches=3D ${MAN_ARCH} > >=20 > > This way, the released distributions will have all the man pages (we > > have some PRs related to this) and would also fix man.cgi regardless > > of the FreeBSD version the service runs on. > >=20 > > I am assuming here that we do not explicitly set MAN_ARCH to a > > specific architecture when building the releases but we take the > > default value. >=20 > I would like to see this change made myself. It'd nice to be able to > use your amd64 build box to be able to get information on other systems > by default. The extra space is minimal. Agreed.=A0 I would prefer if architecture specific pages went into their own section, and were then hardlinked into the existing architecture's standard sections (this would preserve current behaviour, and allow each architecture its own namespace if needed). Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --xY3IAiaPaJDEeB7V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQITBAEBCgB9FiEElsnAGLXjAPlOG3tF8IrlG2S7y1EFAmC1DC1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk2 QzlDMDE4QjVFMzAwRjk0RTFCN0I0NUYwOEFFNTFCNjRCQkNCNTEACgkQ8IrlG2S7 y1Fi9Av/ctxPe0nRQuLZI6ojGh/lllDI22qTponO5P3meWp5b5B2Bpq5QjDLneog qb6STAyfycyG2VyiWg0niXrbg3yF2IiyibFDeGITGjRHXkQEz8eCF6+n0+9pjaCD Q0tF86NcHolt+j0k1SAiguCRmw919lmWtYoZg4jJIE+uUWUtxMkmRxfq9jEldTil 5206VPYav2O3cqQZwXHzAHSYlro+UHT1UdS03tnSO/COhOkDjvo1CIZAd3HrP1jA xDJ7hh9IwZQV7rEPsfbFQAhEaHbYon1dS3metULW8pUF2KVYE2D6tLsow03pI+op wwSyP1Umn80Ws1uXPUBRlL4DyFXxBBDyuDBGUJJQDjXyf3VZHy8FAD81NMqHeqXd JnD3Ce4I7o8oZ+2gWMNujCdzo79qAa2ewLq8Mkc1xckPsGCRyftquRdPV2n+J24B LYUAZIlusLuLepw5EdECVu76QtSxnbEpFkqmSG/FJpuBt7MRuVl52b9Eq9Fag9bo wCxMGtkA =eOV/ -----END PGP SIGNATURE----- --xY3IAiaPaJDEeB7V-- From nobody Tue Jun 1 09:09:59 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3F8CEC7E696 for ; Tue, 1 Jun 2021 09:10:13 +0000 (UTC) (envelope-from patrascu.naina14@gmail.com) Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvRFc2JrZz4Wd5 for ; Tue, 1 Jun 2021 09:10:12 +0000 (UTC) (envelope-from patrascu.naina14@gmail.com) Received: by mail-pj1-x1032.google.com with SMTP id mq2-20020a17090b3802b0290162428291f5so1501036pjb.4 for ; Tue, 01 Jun 2021 02:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iTdy/AaJeBZrEkcZO4eL20HM0cmOLhekZOKjv+LLk9k=; b=EgbE7+Sr+h3O1amRja2Wx6dnyx7s5KtF3VrXAU4twuyny31nC2GeG5n+CAruSdDqX1 RVoC0NaLZc5MqDK2R+N+Y3nZihoI2pT0WvDWrzMQPQKEZt2jCSdloshlNr7qTYnRDUh2 m/2yWmz7oCrswFCfgSAPu+gchY55HuqvIDNKrdBejGVnbqpCvCgkpRL5+Rdqqd3ziJ8p Y826QaLMw17h+yiGlKNHVxy9Op9IuwYMUi2ibHHVxr4q+4PyT2fyGdr3BucI8CqYzEk6 LhxnkOcJGD3zFIsXC/uRb+tkTMs+fg+VOdZ4ns3eW4JoBosBuuSxxtDj10gOzN6HZUHv yHLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iTdy/AaJeBZrEkcZO4eL20HM0cmOLhekZOKjv+LLk9k=; b=tQF+8GsNGZwLZ//zYDRcxKuMhC96bbm/itfzTy8c33nZkXltw3PHTzYgh89UGXlnOu E3AV6R8A8Ay2eRPMWiLstRp9B0wIllX4mcK7Rn63di1ZxNV3k12hzYEM3uSG/+CXkHAg DTbqYIL5WPc0WvTz9xIzvl8/1JQk5+Yyu9IpqcUCGeaRjLDzwvF8+qxX/VJr4tYfI/nW z8LWCkAiszuHFBUFHrUXJ1qJvLkPkZ8ypcuJ3/seYbU9Ecgtl7NwGZXXyisE80pZSKqy bIiqhSzsHcAl8mAkWuFHq9PKoVOsYtfKar7Z5xGpkO5iTWilSl6wTOjcYPOVaMMOm4Fs Qchg== X-Gm-Message-State: AOAM533loixqx1m7TAle83Zy9xWIVB78yLy+9I8y895MYQJYnGiILTtf j8Lp6Aw1unWIdA4uM/8D54+/fla/uyBA3iQF3aU= X-Google-Smtp-Source: ABdhPJzVzAxQ5EyCotBM5vzjd+ymliAMnc6rPg7pe7LKuKUMcTQdVdNFpvekY279ebCnjIYLiyEWlLW3J6WMHnaWQRk= X-Received: by 2002:a17:90a:3fca:: with SMTP id u10mr3933869pjm.76.1622538610846; Tue, 01 Jun 2021 02:10:10 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <20210512191448.GK14975@funkthat.com> In-Reply-To: From: Naina Patrascu Date: Tue, 1 Jun 2021 12:09:59 +0300 Message-ID: Subject: Re: Indexing problem with address number of a USB device To: jmg@funkthat.com, Hans Petter Selasky Cc: freebsd-hackers@freebsd.org, lucian_ioan.popescu@stud.acs.upb.ro, Elena Mihailescu Content-Type: multipart/alternative; boundary="00000000000088ae5405c3b0b582" X-Rspamd-Queue-Id: 4FvRFc2JrZz4Wd5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=EgbE7+Sr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of patrascunaina14@gmail.com designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=patrascunaina14@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::1032:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::1032:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1032:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; FREEMAIL_CC(0.00)[freebsd.org,stud.acs.upb.ro,gmail.com] X-ThisMailContainsUnwantedMimeParts: Y --00000000000088ae5405c3b0b582 Content-Type: text/plain; charset="UTF-8" It worked! Thank you! You were right, we assigned the USB through bus and device address, but we were comparing the port number in the enumeration process. On Wed, May 12, 2021 at 10:24 PM Hans Petter Selasky wrote: > On 5/12/21 9:14 PM, John-Mark Gurney wrote: > > Naina Patrascu wrote this message on Tue, May 11, 2021 at 18:47 +0300: > >> We are working on the USB passthrough functionality for bhyve. We are > >> currently focusing on the passthrough of a USB stick and a USB keyboard. > >> > >> We are facing an indexing problem when trying to assign a USB device to > a > >> virtual machine. > >> For example, we have the USB keyboard at busnum=1 and devaddr=2 on the > >> FreeBSD host virtual machine: > >> > >> # usbconfig -d ugen1.2 > >> ugen1.2: at usbus1, cfg=0 md=HOST spd=LOW > (1.5Mbps) > >> pwr=ON (100mA) > >> > >> We specify to "bhyve" command to pass through the device to a guest > virtual > >> machine: -s 30,xhci,1-2 > >> > >> As part of the enumeration process, the host controller executes the > >> internal scan to discover the physical devices and to compare them with > the > >> ones assigned with the bhyve command. > >> But the USB device is discovered at bus 1 address 1, and we have to > adjust > >> accordingly when parsing the bus-port to match the port number: > >> > >> 04f3:152e 1-1 connecting. > >> 04f3:152e 1-1 belong to this vm. > >> 04F3:152E 1-1 is attached to virtual port 5. > >> > >> We hardcoded when parsing bus-port: port -= 1. > >> When trying to pass through a USB stick, we have to increase the port > >> number to match the one discovered in the internal scan: > >> > >> # usbconfig -d ugen3.2 > >> ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH > >> (480Mbps) pwr=ON (300mA) > >> > >> 0951:1666 3-3 connecting. > >> 0951:1666 3-3 belong to this vm. > >> 0951:1666 3-3 is attached to virtual port 1. > >> > >> In our last investigation, we discovered that when increasing the > number of > >> USB devices on the FreeBSD host vm, the port indexes of the devices > >> discovered by the internal scan, also varies. > >> > >> In function [1] we get the physical devices using libusb library and > then > >> we execute the internal scan using function [2]. We get the information > >> about the physical device in function [3], also using libusb library. > >> > >> Can you help us understand where this problem could come from and how to > >> debug it? > > > > Yes, the ugen named does not map to port naming. I ran across this when > > I did the work to make serial devices consistent based upon the port > > number. The review for that work is here: > > https://reviews.freebsd.org/D21886#554613 > > > > The device address is a different enumeration from the port address > > information. The script linked in the review creates a mapping from > > the device name to the proper port number mapping. > > > > To see this, you can look at devinfo -v, and look at the port value > > vs the devaddr (device address assigned at enumeration). > > > > Hope this helps. > > > > > > Hi, > > LibUSB in FreeBSD has a helper function to compute the full port topology: > > libusb_get_port_numbers() > and: > > libusb20_dev_get_port_path() > > --HPS > --00000000000088ae5405c3b0b582-- From nobody Tue Jun 1 10:28:04 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9751FDFB99D for ; Tue, 1 Jun 2021 10:28:17 +0000 (UTC) (envelope-from patrascu.naina14@gmail.com) Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvSzh4SwWz4fZH for ; Tue, 1 Jun 2021 10:28:16 +0000 (UTC) (envelope-from patrascu.naina14@gmail.com) Received: by mail-pj1-x102f.google.com with SMTP id k22-20020a17090aef16b0290163512accedso1329742pjz.0 for ; Tue, 01 Jun 2021 03:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=L6Khtr49uZyNgrg4Nnc4eeIyrAI4y+XmDrBB+3Ytq6A=; b=XMF/rzbJ8vXDG2p6aXHW0/vNRMM27PRjq6HRe7olANggAS5BncwmKxGtIFnAkwBlD8 Sn/5+OpJmw70deIO7c12VnLsmwgvJeyouaYEB8zO4xXVH9OJxX2RO+Lt4wOllt634HbK YyEpLUrfeDoJ+Z4RP1W/aXTi2JND0a4KVhoBTMS7OfAZIEKYKHni30IRcJBaMmZlHXYJ 5/8BcyOumT600YhWUP1pScUfk3SP1Sve49DyZyAGPiIrdqSOeNJQGuM6VHEEwFb+PxXl TEmvVEhjVWPrK4qBD8kn/sqvkdoNfnVHZzK2SOikSnCZmYMusk6eo3I5uALkKwZ4Eovt tWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=L6Khtr49uZyNgrg4Nnc4eeIyrAI4y+XmDrBB+3Ytq6A=; b=KegqFsGjjaEquMBbDkU9W9b/Ukmq3LtMVHCXr0N02wR3kMEUo4fbYxGNsSndcW5iEE +2SEPKYz77cQQXRztbZTvn7z773JXOrxLb760coWtzXEB5nPIgQkhUm00ms6BqKKretq a74+IX7j/Df3nCeOolyJYNHhCymoRH6m5z967SIgNFNhznLgZGgBbL3O2uzQ8ggt9GDH /24iwN3z1U6AvjMkMlBJG6ylFqvAZxyIRpKNl2GYpuOBHkYAT7XcZ02HyjHKvhUea8aZ 1EkOGvkp34OC4Y4BhOttLbHVkbbuSpTq1AdoiJe9S6YmNoVMUcRM2fnY9K44cCLteqS/ 42ug== X-Gm-Message-State: AOAM531hTou++9QIOmrIWZy2vNzGpzsA48yROmb5Zim3CUiCmVpMQUN0 a9HP6QJ3LQ8KdXPj44kYVNQuG5UhD6lDVEHJLTtlUmzIs3FUTw== X-Google-Smtp-Source: ABdhPJyO/vvIwZQtPkCPqJBE3QkWGWQKkvIQKuRgwJKj81S3/+3eK5Bz4ia59DophlZvlSj2RIomcr7B+RJdzm51/cM= X-Received: by 2002:a17:902:9885:b029:f5:fc21:7837 with SMTP id s5-20020a1709029885b02900f5fc217837mr25512117plp.60.1622543294880; Tue, 01 Jun 2021 03:28:14 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Naina Patrascu Date: Tue, 1 Jun 2021 13:28:04 +0300 Message-ID: Subject: Timeout errors when trying to passthrough a USB keyboard To: freebsd-hackers@freebsd.org Cc: lucian_ioan.popescu@stud.acs.upb.ro, Elena Mihailescu Content-Type: multipart/alternative; boundary="000000000000b95ed405c3b1cc8d" X-Rspamd-Queue-Id: 4FvSzh4SwWz4fZH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XMF/rzbJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of patrascunaina14@gmail.com designates 2607:f8b0:4864:20::102f as permitted sender) smtp.mailfrom=patrascunaina14@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::102f:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::102f:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102f:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; FREEMAIL_CC(0.00)[stud.acs.upb.ro,gmail.com] X-ThisMailContainsUnwantedMimeParts: Y --000000000000b95ed405c3b1cc8d Content-Type: text/plain; charset="UTF-8" Hello, We are working on the USB passthrough functionality for bhyve. We are currently focusing on the passthrough of a USB keyboard, as we ran into some issues with the USB stick. The first part of the enumeration process seems to work properly, as we can see the information about the USB keyboard inside the virtual machine through the 'usbconfig' command: (guest) $ usbconfig (guest) ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) However, when pressing any key, we do not see any log in the guest or in the host. The keyboard seems to be turned off (any LED from the keyboard is turned off during the booting of the guest). We use libusb_detach_kernel_driver function from libusb library to detach the device from the host [1]. Here [2] it is a snippet from /var/log/messages file from the guest virtual machine. We noticed a timeout in the communication (lines 46, 47 in the log file [2]): xhci_timeout: xfer=0xfffff800052a4148 usbd_transfer_done: err=USB_ERR_TIMEOUT Could you help us understand where these timeout errors are coming from? Do you think it is necessary to implement first the Boot Protocol for the USB HID [3]? In this case, can you provide us some documentation that could help us? Thank you! [1] https://github.com/FreeBSD-UPB/freebsd-src/blob/a861e57e10512c0e3406762ffba2249bbd786492/usr.sbin/bhyve/usb_pmapper.c#L601 [2] https://gist.github.com/nainapatrascu/6903e421d64190f616c7becfe6c84991 [3] https://wiki.osdev.org/USB_Human_Interface_Devices --000000000000b95ed405c3b1cc8d-- From nobody Tue Jun 1 10:49:02 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 72AA9DFCC30 for ; Tue, 1 Jun 2021 10:50:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvTTK2HPKz4hTf for ; Tue, 1 Jun 2021 10:50:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3A5342600D5; Tue, 1 Jun 2021 12:50:21 +0200 (CEST) Subject: Re: Timeout errors when trying to passthrough a USB keyboard To: Naina Patrascu , freebsd-hackers@freebsd.org Cc: lucian_ioan.popescu@stud.acs.upb.ro, Elena Mihailescu References: From: Hans Petter Selasky Message-ID: Date: Tue, 1 Jun 2021 12:49:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FvTTK2HPKz4hTf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6/1/21 12:28 PM, Naina Patrascu wrote: > Could you help us understand where these timeout errors are coming from? Try to use: usbdump -i usbusX -f Y -s 65536 -vvv To understand what is going on. X and Y are the numbers after ugen --HPS From nobody Wed Jun 2 00:21:45 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F1D5EFB827 for ; Wed, 2 Jun 2021 00:21:46 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvqTQ3fQFz585d; Wed, 2 Jun 2021 00:21:46 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [172.16.67.1] (unknown [IPv6:2620:0:2820:2:50db:8df2:330c:18f0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gad/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 573BF2F50D; Wed, 2 Jun 2021 00:21:46 +0000 (UTC) (envelope-from gad@FreeBSD.org) From: "Garance A Drosehn" To: freebsd-hackers@freebsd.org Subject: Can CrowdStrike run on FreeBSD? Date: Tue, 01 Jun 2021 20:21:45 -0400 X-Mailer: MailMate (1.13.2r5673) Message-ID: <7E00FCC4-5CB6-40F2-A7BD-666832693C8E@FreeBSD.org> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_8F63B4D4-24A2-475E-BCA3-242CC97450FE_=" X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: Y --=_MailMate_8F63B4D4-24A2-475E-BCA3-242CC97450FE_= Content-Type: text/plain; markup=markdown Where I work is now installing CrowdStrike on many of our Redhat linux machines, and I'm wondering if anyone has it running on any recent versions of FreeBSD. -- Garance Alistair Drosehn = drosih@rpi.edu Lead Developer @rpi and gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA --=_MailMate_8F63B4D4-24A2-475E-BCA3-242CC97450FE_=-- From nobody Wed Jun 2 04:49:58 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D0223DF985E for ; Wed, 2 Jun 2021 04:50:12 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvxR74Nqxz3m9T for ; Wed, 2 Jun 2021 04:50:11 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-ua1-x92d.google.com with SMTP id c10so585142uan.6 for ; Tue, 01 Jun 2021 21:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WFK20JB28FUZEAD0X6juHiilfulV5cIH1PxiKDhM9nU=; b=O+hzufqcPogW8vrg2mSHnnP+NYslNFvBcoMtbhNFrTEI/Tea7rBMDY4/ZrX2yP0lLG TwtzFc9XZejCpqcTjsqx0yKl9O1mMnbh9AsJzw1SV4CisYH9Z2q4so3ZIKbRCZ06W9+f Zp8H8FLLwixKqjR5cuSFEUg7Cv2wotJil6RzxxJQMy3Cs3Lhk9LX8pquflU4+nhrJkry jj35TRUnc1AyPez+6SMk9+gxDnVxGNopECPiXQXHyQ5RFDyN6SjNt5osaKJW7OEJ+hY4 JF01no3fnYNJRU1QEZeyREZYxvU369ftLhhadqpqABGOWE+FQc3ahClyxFOpsFCTGOUd g8Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WFK20JB28FUZEAD0X6juHiilfulV5cIH1PxiKDhM9nU=; b=tMhSDua6Fz9zDLxaBO7YFszrTb3e9sT88NeCqUHiNnnLflpUsLaVsP+egUfImkcscF HCfUBNSUt1+Kf6Nb/JKsaTAS6NekUHxQRkbatr93wV49N+ayGqv3dTWY/i3zg/npceP5 FunoIahPkVLI8YrGeThMnv87dzTnMtGUF1r8FGvoALWC/nUqF6P4szs/U2dnQjlNS7r/ Lq4eTyErOaiAo9UmR0JuRw5lfS++9gClS1xFTwJZ7CGHRDNIxJbwEnhNesAf9SV4R+k3 /hF3uG17zJuizJc387VIlx2UBpikD475VkdvRDZR3jD13WnKvSRBD+bGXT8CweTNPxfp tFnA== X-Gm-Message-State: AOAM532yJS/UooIKPaEe2g2/GOfWeZEh+SWko7hMPHOBmYh6yP7KQES1 bOM4lI3U28ZEt1lWs2+McuT1nrziYk+6aE8BSCYegtYcyOcz9i5y X-Google-Smtp-Source: ABdhPJwEn1UfzwE0W1nFnlLrKF4woax2bzZpMQT5EAyOCNDQtXae8wQ/m8LBWYP3yNKQbjZcARajx+pA4xK0j3yOgAQ= X-Received: by 2002:a1f:b645:: with SMTP id g66mr20430089vkf.4.1622609408910; Tue, 01 Jun 2021 21:50:08 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Wed, 2 Jun 2021 07:49:58 +0300 Message-ID: Subject: vmstat -m temp counters overflows? To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000006d66f205c3c131bc" X-Rspamd-Queue-Id: 4FvxR74Nqxz3m9T X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=O+hzufqc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ozkankirik@gmail.com designates 2607:f8b0:4864:20::92d as permitted sender) smtp.mailfrom=ozkankirik@gmail.com X-Spamd-Result: default: False [-0.31 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_MIXED_CHARSET(0.71)[subject]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::92d:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::92d:from:127.0.2.255]; NEURAL_SPAM_SHORT(0.98)[0.975]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::92d:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: Y --0000000000006d66f205c3c131bc Content-Type: text/plain; charset="UTF-8" Hello, I'm using FreeBSD stable/12 amd64. The temp memory counters are crazy. I think the counter variables are overflowing. Could it be pointing to another problem? # vmstat -m | grep -E "temp|Mem" Type InUse MemUse HighUse Requests Size(s) temp 18446744073709525773 18014398509271105K - 6075673 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 Regards Ozkan --0000000000006d66f205c3c131bc-- From nobody Wed Jun 2 07:05:36 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8C7E6E7A3C6 for ; Wed, 2 Jun 2021 07:07:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw0T632SRz4T0n for ; Wed, 2 Jun 2021 07:07:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4A2C0260378; Wed, 2 Jun 2021 09:06:58 +0200 (CEST) Subject: Re: vmstat -m temp counters overflows? To: =?UTF-8?Q?=c3=96zkan_KIRIK?= , freebsd-hackers@freebsd.org References: From: Hans Petter Selasky Message-ID: <64295cdd-a3c8-e901-aff4-1df179f2f024@selasky.org> Date: Wed, 2 Jun 2021 09:05:36 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Fw0T632SRz4T0n X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6/2/21 6:49 AM, Özkan KIRIK wrote: > Hello, > > I'm using FreeBSD stable/12 amd64. The temp memory counters are crazy. > I think the counter variables are overflowing. > Could it be pointing to another problem? > > # vmstat -m | grep -E "temp|Mem" > Type InUse MemUse HighUse Requests Size(s) > temp 18446744073709525773 18014398509271105K - 6075673 > 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 > > Regards > Ozkan Probably something is freeing back to M_TEMP, which was not allocated from there. --HPS From nobody Wed Jun 2 08:22:02 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E8BAFE7EC31 for ; Wed, 2 Jun 2021 08:22:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw27k4MtLz4b2x for ; Wed, 2 Jun 2021 08:22:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 1528M2kO047680 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 2 Jun 2021 11:22:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 1528M2kO047680 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 1528M2la047679; Wed, 2 Jun 2021 11:22:02 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 2 Jun 2021 11:22:02 +0300 From: Konstantin Belousov To: =?utf-8?B?w5Z6a2Fu?= KIRIK Cc: freebsd-hackers@freebsd.org Subject: Re: vmstat -m temp counters overflows? Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4Fw27k4MtLz4b2x X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Jun 02, 2021 at 07:49:58AM +0300, Özkan KIRIK wrote: > Hello, > > I'm using FreeBSD stable/12 amd64. The temp memory counters are crazy. > I think the counter variables are overflowing. > Could it be pointing to another problem? > > # vmstat -m | grep -E "temp|Mem" > Type InUse MemUse HighUse Requests Size(s) > temp 18446744073709525773 18014398509271105K - 6075673 > 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 Do you use pf? If yes, this is perhaps a known issue, You probably also have some nvlist leaks. From nobody Wed Jun 2 08:36:33 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 799E1EA8318 for ; Wed, 2 Jun 2021 08:36:45 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw2SY2lrdz4d87 for ; Wed, 2 Jun 2021 08:36:45 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-ua1-x92f.google.com with SMTP id w28so862056uae.4 for ; Wed, 02 Jun 2021 01:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y8mnrbqXOIZataIHahAbmndRC/CPn5a7HgIxyk6TaEw=; b=IuoXqXL9vbIRd8M6AU2YxFnh5JLIkbAPLnbfKRkWbKRTcRmMt3+xGt6luLPNjJCqNx JRVSWANvK4oflDQMFt7YVtLgXKGN7CpxQD5f2qhk0ihgy/XkvBy0AWe+DX5c1aqpa2yv rOE0NsCchhfn2KInjp5DwHIbboVWnRBFX2p145teTT+sggoufl9l0eFaG4xNCAX949k+ QGwI2dSvBeoPB6G/voGFJCRcdEum0y/xft8e+5Pdd454g/s/0OJ3vc+UXN9XnOdxPn/k YJVS9gTLH9+RS7Fx27v1pWug/6kGklKhLxCQXJMPY+g48ZLZaIzA3MO0H3QHWg4L0yop vg6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y8mnrbqXOIZataIHahAbmndRC/CPn5a7HgIxyk6TaEw=; b=Yhsf+8V6AfSZUmClc8u0sBUMYWF0ZLW5+QZg0a/2UbexrWVgUn0TuE3sOtQwMY0Pzm VyTaVN5fFT17kphkdn8KuiIazFm9UjCRg0gQiyg0mIZZ1ar+Aal2uDs54x9EwnLpWKRh NgKZnQm29+zGZhVFKYvpo258QVs3yBNw5rzqliohfTG0D051mOaJK1chYRTmpbNSKygg h5difPi55iXliEjpgsCEWGWfgQQKUI0KCAMesf1MOWCqcNqacyTmhqZgMMOWJF8whnsX /4l9LRIDcsNkkPWk3OWY4V4XK/4hR8yrW034pn8LxPPgRoP+ii2y3COS3G34/2G+qTWm W+cg== X-Gm-Message-State: AOAM530Puc1OEW1LUVX+y/C1wyKKykiKXQ27Za6tIpy7xoLMihPRh+ML qe5lkbX4nhN/ksBowCMUAM1T23I48OGRxRh3wps= X-Google-Smtp-Source: ABdhPJwJFBcbGBMoUSKo9aXv2VL849O1PeTi1xOaruMaSkUL1aUEzD1YFVUPGjHQFzTo6bl1DJ1PigC4jGGA5KP/V1o= X-Received: by 2002:a1f:b645:: with SMTP id g66mr20739494vkf.4.1622623004309; Wed, 02 Jun 2021 01:36:44 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Wed, 2 Jun 2021 11:36:33 +0300 Message-ID: Subject: Re: vmstat -m temp counters overflows? To: Konstantin Belousov Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c6bf1605c3c45ba6" X-Rspamd-Queue-Id: 4Fw2SY2lrdz4d87 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000c6bf1605c3c45ba6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Yes I'm using pf. Yesterday I saw an commit about it. https://cgit.freebsd.org/src/commit/?id=3D0f86492b09ca82042166a41f6f21b2dbe= 4f4a464 is it related with this problem ? On Wed, Jun 2, 2021 at 11:22 AM Konstantin Belousov wrote: > On Wed, Jun 02, 2021 at 07:49:58AM +0300, =C3=96zkan KIRIK wrote: > > Hello, > > > > I'm using FreeBSD stable/12 amd64. The temp memory counters are crazy. > > I think the counter variables are overflowing. > > Could it be pointing to another problem? > > > > # vmstat -m | grep -E "temp|Mem" > > Type InUse MemUse HighUse Requests Size(s) > > temp 18446744073709525773 18014398509271105K - 6075673 > > 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 > > Do you use pf? If yes, this is perhaps a known issue, > You probably also have some nvlist leaks. > --000000000000c6bf1605c3c45ba6-- From nobody Wed Jun 2 10:58:43 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5483BEAF842 for ; Wed, 2 Jun 2021 10:58:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw5cZ6c35z4pL5 for ; Wed, 2 Jun 2021 10:58:54 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 152AwhKo085295 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 2 Jun 2021 13:58:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 152AwhKo085295 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 152AwhG5085294; Wed, 2 Jun 2021 13:58:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 2 Jun 2021 13:58:43 +0300 From: Konstantin Belousov To: =?utf-8?B?w5Z6a2Fu?= KIRIK Cc: freebsd-hackers@freebsd.org Subject: Re: vmstat -m temp counters overflows? Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4Fw5cZ6c35z4pL5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Jun 02, 2021 at 11:36:33AM +0300, Özkan KIRIK wrote: > Thank you > > Yes I'm using pf. > Yesterday I saw an commit about it. > https://cgit.freebsd.org/src/commit/?id=0f86492b09ca82042166a41f6f21b2dbe4f4a464 > is it related with this problem ? Yes, it should fix the problems, if you apply it to your sources. From nobody Wed Jun 2 11:03:57 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5DB0BEF87BC for ; Wed, 2 Jun 2021 11:04:11 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw5kg24Thz4qJR for ; Wed, 2 Jun 2021 11:04:11 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-ua1-x931.google.com with SMTP id j2so1048644uak.7 for ; Wed, 02 Jun 2021 04:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mYwrb+njy5WghYS3K+X0SbflFnyYVJILcD5FvuWY7Hg=; b=IfyP9JQhV3O0HzIRF2jMLopE5Gqj2IVfcEML2gHnJaU2UxOnQt284GLL+W1aXahBA+ SXA9nqwGSsslGy5v2+cN+0QB6lfaulL850Smz0UCd4KmL0P8QrQ1CTLap3w9x7ksdECQ 6ZS7R6Jyk8aOU0R+SV10drD+v/cphMpxjiyLh4LMPhNX+cpTuaw4lscy/pLLTOt2aD77 7y3Dr7HbyC7HlcQUXxfHzHJ7oJu5B/SEgGKEzfiWXLcDwv/SCShge//zLwMqS6ASOevq x2wi4UKPGt7tHi06eCqfU1juxPBHg/CGJqx+kqRyvmCLud3aNpxLHXlKWg+OW+C/soxW z4rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mYwrb+njy5WghYS3K+X0SbflFnyYVJILcD5FvuWY7Hg=; b=rcjfdNGlqwWJKrn3yUMaWwZm7teqz3/RBi8KxPSq4N5Nte4L9rNFLUDE1b/T9lKqVF gSvBRo9tz+E/Cm5lW0pi0FI/8AbD5rOoj+TqvYALdaZ9wUx3BVo9F+6oj7NApbQEDd9P Rmc1mAHxctRPV5zSamA+eMhj7R97O8zfCcU1+lYIywxSm0XNjPUcKt4/Aki1ZfFzuLbw iAuD8R8I8EbhJmRE8ekkZmS8Cvd/aiLDVwLfyEF6mNaAGs6PvGGUIa/FPio63ESeIMQb 1SxVtfoOc0Co7n21nrN1drapeUZ57oDuKa9yeD3q+l25okbjrsn5xOakLn5I7nxHWXbQ o3JQ== X-Gm-Message-State: AOAM531cpDLET2/0tin5Er1pydq+7pmxx82DPJxOL9da0EK+10TqfQ/C MO5eOBXKjLNNylH3oFC0CqO/cT9yLJRB4Ybc3QE= X-Google-Smtp-Source: ABdhPJzAfsQEtj7G/wPMgmyPBdPlJeS3pt5e7HRFkdxiVKwALwOQ1CU7wrbz6SLij6Rpf7T686JJoToihPX42V+pex4= X-Received: by 2002:a1f:3ac1:: with SMTP id h184mr21979429vka.8.1622631849045; Wed, 02 Jun 2021 04:04:09 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Wed, 2 Jun 2021 14:03:57 +0300 Message-ID: Subject: Re: vmstat -m temp counters overflows? To: Konstantin Belousov Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f6b30605c3c66a2c" X-Rspamd-Queue-Id: 4Fw5kg24Thz4qJR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000f6b30605c3c66a2c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Will do, thanks! On Wed, Jun 2, 2021 at 1:59 PM Konstantin Belousov wrote: > On Wed, Jun 02, 2021 at 11:36:33AM +0300, =C3=96zkan KIRIK wrote: > > Thank you > > > > Yes I'm using pf. > > Yesterday I saw an commit about it. > > > https://cgit.freebsd.org/src/commit/?id=3D0f86492b09ca82042166a41f6f21b2d= be4f4a464 > > is it related with this problem ? > > Yes, it should fix the problems, if you apply it to your sources. > --000000000000f6b30605c3c66a2c-- From nobody Wed Jun 2 13:01:52 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F534EFEFA0; Wed, 2 Jun 2021 13:02:04 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from mcusim.org (mcusim.org [176.58.93.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fw8Lg1pN0z3Hk3; Wed, 2 Jun 2021 13:02:02 +0000 (UTC) (envelope-from dsl@mcusim.org) Received: from x230.ds (unknown [83.28.234.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mcusim.org (Postfix) with ESMTPSA id 453287E4A4; Wed, 2 Jun 2021 15:01:54 +0200 (CEST) Date: Wed, 2 Jun 2021 15:01:52 +0200 From: Dmitry Salychev To: "Bjoern A. Zeeb" Cc: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: U-Boot for HoneyComb LX2 Message-ID: References: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> X-Rspamd-Queue-Id: 4Fw8Lg1pN0z3Hk3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=reject) header.from=mcusim.org; spf=pass (mx1.freebsd.org: domain of dsl@mcusim.org designates 176.58.93.53 as permitted sender) smtp.mailfrom=dsl@mcusim.org X-Spamd-Result: default: False [-3.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[83.28.234.19:received]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; RBL_DBL_DONT_QUERY_IPS(0.00)[176.58.93.53:from]; SPAMHAUS_ZRD(0.00)[176.58.93.53:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[mcusim.org,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:176.58.93.0/24, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-hackers]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N > I’ve got a local tree (on Jan 2021, needs updating to latest and > re-test before > submit) for the uEFI firmware (not u-boot). Btw, do you have that tree available somewhere? Did you manage to load a blob from NXP and initialize DPAA2 MC? Regards, Dmitry