From nobody Sat Oct 14 13:05:22 2023 X-Original-To: freebsd-current@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 4S73Wp56Wzz4wksx for ; Sat, 14 Oct 2023 13:05:26 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Received: from smtp-42a8.mail.infomaniak.ch (smtp-42a8.mail.infomaniak.ch [84.16.66.168]) (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 (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S73Wn0SMbz3Rlr for ; Sat, 14 Oct 2023 13:05:24 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pyret.net header.s=20231006 header.b="cBj/GkXL"; spf=pass (mx1.freebsd.org: domain of daniel.engberg.lists@pyret.net designates 84.16.66.168 as permitted sender) smtp.mailfrom=daniel.engberg.lists@pyret.net; dmarc=pass (policy=reject) header.from=pyret.net Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4S73Wk4x8jzMq1ND for ; Sat, 14 Oct 2023 13:05:22 +0000 (UTC) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4S73Wk2vdKz3X for ; Sat, 14 Oct 2023 15:05:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pyret.net; s=20231006; t=1697288722; bh=+ujjss+APckbFgWTKYDO2H9rcpedYkuoRDMQdUOORKQ=; h=Date:Subject:From:Reply-To:To:References:In-Reply-To:From; b=cBj/GkXLScInBS9GnONjU72S+5G/U4rXLnlIG9gPLCuJOBJoSt8QgwHN/yvyz+PGA +VIV8mbmeYmidCSRydO829+Kr4Mid9ZL34fpvw/BKxyZkL7eDJXHawloWsy0P3S7Fi FIhlytZyY3oZpQp9wWjSd52J0ya1u4F3++A7NWkxHR9grZ/hywRivUZWEXG0M2gGgt yYDDjZcyUuKfAl5TpdI+9ZW2etkRQtSQBRJu/L367CzLWulBh2lMmQW7y+9fsajdYj acUh+weu3f0LwGxMgKEjOPDl7lcKyCG8gqD0j92d9r8DpxIjZK4IUWx6Hh4tysowqE 3J6Uo+vxXsh5Q== Message-ID: Date: Sat, 14 Oct 2023 15:05:22 +0200 Subject: Re: AMD Zen 4 (Ryzen 7000) resource allocation issues (on 14.0) From: Daniel Engberg Reply-To: Daniel Engberg To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=_swift_1697288722_cd716282394d8355858d63566797c769_=_" X-WS-User-Origin: eyJpdiI6IjVrT05xRXNFcXZlQWtEcGc0MWh1YWc9PSIsInZhbHVlIjoiWi95VDFkVGlQVmc2UTNYUmYrRGNqdz09IiwibWFjIjoiNTc5ODhjYjkwYzhiNmU3YjJjNTBlZmI3ZGI4ZDQzNDMzOTIwMDlhYjM0YjRmMTNiZDNjOTQ0YTRmNzEwY2RhMSIsInRhZyI6IiJ9 X-WS-User-Mbox: eyJpdiI6Ik1qY1MvZ0NXNndhbmg2Q3JUeDRMQ1E9PSIsInZhbHVlIjoiUEtlN2dESnBxV2doT0JKU0ExNnBQZz09IiwibWFjIjoiOTA4NWI4NTNiZTM1YzM4ODYzZTkzYzY4MzhiYjUzMzQ1OTY3NDU1ZTEwN2Q2MjU2ZTY2N2EzYTYyZDUyMzAyZSIsInRhZyI6IiJ9 X-WS-Location: eJxzKUpMKykGAAfpAmU- X-Mailer: Infomaniak Workspace (1.3.569) References: In-Reply-To: X-Infomaniak-Routing: alpha X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[pyret.net,reject]; RWL_MAILSPIKE_EXCELLENT(-0.40)[84.16.66.168:from]; R_DKIM_ALLOW(-0.20)[pyret.net:s=20231006]; R_SPF_ALLOW(-0.20)[+ip4:84.16.66.168/29]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[84.16.66.168:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:29222, ipnet:84.16.64.0/19, country:CH]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; REPLYTO_EQ_FROM(0.00)[]; DKIM_TRACE(0.00)[pyret.net:+]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; HAS_REPLYTO(0.00)[daniel.engberg.lists@pyret.net] X-Rspamd-Queue-Id: 4S73Wn0SMbz3Rlr --_=_swift_1697288722_cd716282394d8355858d63566797c769_=_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-10-14T13:07:11.000+02:00, Daniel Engberg wrote: >=C2=A0Hi, >=C2=A0 >=C2=A0After=C2=A0updating= =C2=A0BIOS=C2=A0on=C2=A0my=C2=A0Asus=C2=A0motherboard=C2=A0(ProArt=C2=A0X67= 0E-CREATOR >=C2=A0WIFI)=C2=A0the=C2=A0kernel=C2=A0fails=C2=A0to=C2=A0allo= cate=C2=A0resources=C2=A0for=C2=A0a=C2=A0bunch=C2=A0of=C2=A0devices >= =C2=A0including=C2=A0USB=C2=A0and=C2=A0built-in=C2=A0SATA.=C2=A0This=C2= =A0behaviour=C2=A0is=C2=A0also=C2=A0observed=C2=A0on >=C2=A0at=C2=A0least= =C2=A0ASRock=C2=A0boards=C2=A0too=C2=A0so=C2=A0it=C2=A0doesn't=C2=A0seem= =C2=A0to=C2=A0be=C2=A0a=C2=A0specific=C2=A0issue >=C2=A0to=C2=A0one=C2= =A0manufacturer=C2=A0or=C2=A0model.=C2=A0If=C2=A0anyone=C2=A0has=C2=A0any= =C2=A0ideas=C2=A0how=C2=A0to=C2=A0fix >=C2=A0this=C2=A0I'd=C2=A0be=C2= =A0grateful. >=C2=A0 >=C2=A0I've=C2=A0tried=C2=A0turning=C2=A0off=C2= =A0and=C2=A0on=C2=A0"Fast=C2=A0boot"=C2=A0in=C2=A0BIOS=C2=A0without=C2= =A0any >=C2=A0success,=C2=A0enabing=C2=A0SR-IOV=C2=A0makes=C2=A0the=C2= =A0kernel=C2=A0hang=C2=A0during=C2=A0boot. >=C2=A0 >=C2=A0dmesg=C2= =A0with=C2=A0older=C2=A0bios=C2=A0(working): >=C2=A0 >=C2=A0https://for= ums.freebsd.org/threads/sata-drives-show-in-bios-but-wont-show-in-dev.89656= /page-2#post-620854 >=C2=A0 >=C2=A0dmesg=C2=A0with=C2=A0new=C2=A0bios= =C2=A0(not=C2=A0working): >=C2=A0 >=C2=A0https://reviews.freebsd.org/P6= 12 >=C2=A0 >=C2=A0Related=C2=A0PR: >=C2=A0 >=C2=A0https://bugs.free= bsd.org/bugzilla/show_bug.cgi?id=3D272507 >=C2=A0 >=C2=A0If=C2=A0you= =C2=A0need=C2=A0to=C2=A0more=C2=A0information=C2=A0or=C2=A0testing=C2=A0jus= t=C2=A0ask=C2=A0and=C2=A0please=C2=A0CC=C2=A0me >=C2=A0when=C2=A0replying= . >=C2=A0 >=C2=A0Best=C2=A0regards, >=C2=A0 >=C2=A0Daniel In a= ddition to the above, 13.2-RELEASE fails in the same way, also 15.0-CURRE= NT (20231005-8818f0f1124e-265728). In addition to that, USB also fails to= init so USB devices won't work once the kernel boots. Best regards,= Daniel --_=_swift_1697288722_cd716282394d8355858d63566797c769_=_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2023-10-14T13:07:11.000+02:00, Daniel Engberg <daniel.engberg.li= sts@pyret.net> wrote:

Hi,

<= div>After updating BIOS on my Asus motherboard (ProArt X670E-CREATOR WIFI) = the kernel fails to allocate resources for a bunch of devices including USB= and built-in SATA. This behaviour is also observed on at least ASRock boar= ds too so it doesn't seem to be a specific issue to one manufacturer o= r model. If anyone has any ideas how to fix this I'd be grateful.
=

I've tried turning off and on "Fast boot" in BIOS witho= ut any success, enabing SR-IOV makes the kernel hang during boot.
=

dmesg with older bios (working):

dmesg with new bios (not w= orking):

Related PR:

If you need to= more information or testing just ask and please CC me when replying.

Best regards,
Daniel
<= /blockquote>

In addition to the above, 13.2-RELEAS= E fails in the same way, also 15.0-CURRENT (20231005-8818f0f1124e-265728). = In addition to that, USB also fails to init so USB devices won't work once = the kernel boots.

Best regards,
Dani= el
--_=_swift_1697288722_cd716282394d8355858d63566797c769_=_--