From nobody Sat Oct 14 14:29:41 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 4S75P64P4Gz4wqfl for ; Sat, 14 Oct 2023 14:29:46 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) (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 4S75P52DT9z3cKn for ; Sat, 14 Oct 2023 14:29:45 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Authentication-Results: mx1.freebsd.org; none Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4S75P16gLGzMq1p3; Sat, 14 Oct 2023 14:29:41 +0000 (UTC) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4S75P148Rnz3Z; Sat, 14 Oct 2023 16:29:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pyret.net; s=20231006; t=1697293781; bh=EzigQyMZU9aRjSXWVIp1Uq+yfQnYTzNZqV/T4HS9r74=; h=Date:Subject:From:Reply-To:To:Cc:References:In-Reply-To:From; b=nBlCNDYVqf7HKU8kitrMS/9MrcPsdSrdQ0algk81nGEZCk69GpK3g0Q0lFtFoIxUL 7967NIVyMgav9DDbXU6xQfIG6r5lXfYvtoHMsUwHTBlC/1xIk5gh8RqE8dkf3h/FD+ WWyxjM5LDhcBeAD05pHcannC1mJyB3Lx0Xw+ddhKiUWS0PGpy5gs9yNn7cqWM7xrhZ eeSXSjSI6GDHkgjNI+gtYEXBYPJu2OVgBzqjQNxwehbdFdoaF01Wg7v8qOfbCTSYaX 2ctcDOrSN1GpD8QmdE75F+jXap1IzrfeOUMLnWftmg0Ue88fvkLR57Lhu4YKSDKnVq K5vY96SGYA6Gg== Message-ID: <39208aff4c6519a80ca0741e41810fc8@mail.infomaniak.com> Date: Sat, 14 Oct 2023 16:29:41 +0200 Subject: Re: AMD Zen 4 (Ryzen 7000) resource allocation issues (on 14.0) From: Daniel Engberg Reply-To: Daniel Engberg To: garyj@gmx.de Cc: 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_1697293781_c6be3ad2054c9a98ed54571b46ee38b9_=_" X-WS-User-Origin: eyJpdiI6ImtNb0hKMU15OStNc3haQWxlNVNzaXc9PSIsInZhbHVlIjoiVEJRTWhvVmg4R2lsSFZWZnNSREhQUT09IiwibWFjIjoiNjkyNmQ5MmQ4NDdjNmRkYmE0ZjgzMzJhODYwZTdiOWI2NjIwNGJjNDg0NGEwMmI2NzU3ZGRjZGM2NGNkYzkxNSIsInRhZyI6IiJ9 X-WS-User-Mbox: eyJpdiI6ImlLaWQvSklkeFUzZnN3SHpmb2xZdEE9PSIsInZhbHVlIjoiWnFsZmZaZHlndWFPL3o1UkIvY0hxQT09IiwibWFjIjoiMTRhODc5ZGI4MjZlNmU3OTE4MmQ0ODUwYWVhNDcxYjU5OTVhNDdjODBjMWE5MDI5Zjk2YjZhMGY0NDkyODNhMCIsInRhZyI6IiJ9 X-WS-Location: eJxzKUpMKykGAAfpAmU- X-Mailer: Infomaniak Workspace (1.3.569) References: <20231014161204.7845849b@ernst.home> In-Reply-To: <20231014161204.7845849b@ernst.home> X-Infomaniak-Routing: alpha X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:29222, ipnet:185.125.24.0/22, country:CH] X-Rspamd-Queue-Id: 4S75P52DT9z3cKn --_=_swift_1697293781_c6be3ad2054c9a98ed54571b46ee38b9_=_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-10-14T16:12:04.000+02:00, Gary Jennejohn wrote: = >=C2=A0On=C2=A0Sat,=C2=A014=C2=A0Oct=C2=A02023=C2=A015:05:22=C2=A0+0200= >=C2=A0 >=C2=A0Daniel=C2=A0Engberg=C2=A0=C2=A0wrote: >=C2=A0 >>=C2=A0=C2=A0On=C2=A02023-10-14T13:07:11.000+02= :00,=C2=A0Daniel=C2=A0Engberg >>=C2=A0=C2=A0 >>=C2=A0=C2=A0=C2=A0=C2=A0wrote: >>=C2=A0=C2=A0 >>>=C2=A0=C2= =A0=C2=A0Hi, >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0After= =C2=A0updating=C2=A0BIOS=C2=A0on=C2=A0my=C2=A0Asus=C2=A0motherboard=C2= =A0(ProArt >>>=C2=A0=C2=A0=C2=A0X670E-CREATOR >>>=C2=A0=C2=A0=C2=A0 >= >>=C2=A0=C2=A0=C2=A0=C2=A0WIFI)=C2=A0the=C2=A0kernel=C2=A0fails=C2=A0to= =C2=A0allocate=C2=A0resources=C2=A0for=C2=A0a=C2=A0bunch=C2=A0of >>>= =C2=A0=C2=A0=C2=A0devices >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2= =A0=C2=A0including=C2=A0USB=C2=A0and=C2=A0built-in=C2=A0SATA.=C2=A0This= =C2=A0behaviour=C2=A0is=C2=A0also >>>=C2=A0=C2=A0=C2=A0observed=C2=A0on= >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=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=A0=C2=A0=C2=A0issue >>>=C2= =A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=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=A0=C2=A0=C2=A0fix >>>=C2=A0=C2=A0=C2=A0 >>>= =C2=A0=C2=A0=C2=A0=C2=A0this=C2=A0I'd=C2=A0be=C2=A0grateful. >>>=C2=A0= =C2=A0=C2=A0 >>>=C2=A0=C2=A0=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=A0wit= hout=C2=A0any >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0success,= =C2=A0enabing=C2=A0SR-IOV=C2=A0makes=C2=A0the=C2=A0kernel=C2=A0hang=C2= =A0during=C2=A0boot. >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2= =A0dmesg=C2=A0with=C2=A0older=C2=A0bios=C2=A0(working): >>>=C2=A0=C2= =A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0https://forums.freebsd.org/threads/s= ata-drives-show-in-bios-but-wont-show-in-dev.89656/page-2#post-620854 >>>= =C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0dmesg=C2=A0with=C2=A0new= =C2=A0bios=C2=A0(not=C2=A0working): >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0= =C2=A0=C2=A0=C2=A0https://reviews.freebsd.org/P612 >>>=C2=A0=C2=A0=C2= =A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0Related=C2=A0PR: >>>=C2=A0=C2=A0=C2= =A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0https://bugs.freebsd.org/bugzilla/show_bug= .cgi?id=3D272507 >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0If= =C2=A0you=C2=A0need=C2=A0to=C2=A0more=C2=A0information=C2=A0or=C2=A0testing= =C2=A0just=C2=A0ask=C2=A0and=C2=A0please >>>=C2=A0=C2=A0=C2=A0CC=C2=A0me= >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0when=C2=A0replying.= >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0Best=C2=A0regards, = >>>=C2=A0=C2=A0=C2=A0 >>>=C2=A0=C2=A0=C2=A0=C2=A0Daniel >>=C2=A0=C2= =A0 >>=C2=A0=C2=A0=C2=A0In=C2=A0addition=C2=A0to=C2=A0the=C2=A0above,= =C2=A013.2-RELEASE=C2=A0fails=C2=A0in=C2=A0the=C2=A0same=C2=A0way, >>= =C2=A0=C2=A0also >>=C2=A0=C2=A0 >>=C2=A0=C2=A0=C2=A015.0-CURRENT=C2= =A0(20231005-8818f0f1124e-265728).=C2=A0In=C2=A0addition=C2=A0to=C2=A0that,= >>=C2=A0=C2=A0USB >>=C2=A0=C2=A0 >>=C2=A0=C2=A0=C2=A0also=C2=A0fails= =C2=A0to=C2=A0init=C2=A0so=C2=A0USB=C2=A0devices=C2=A0won't=C2=A0work=C2= =A0once=C2=A0the=C2=A0kernel >>=C2=A0=C2=A0boots. >=C2=A0 >=C2=A0Cons= idering=C2=A0that=C2=A0none=C2=A0of=C2=A0the=C2=A0current=C2=A0FreeBSD= =C2=A0versions=C2=A0work=C2=A0I=C2=A0suspect >=C2=A0 >=C2=A0that=C2= =A0you'll=C2=A0have=C2=A0to=C2=A0flash=C2=A0the=C2=A0previous=C2=A0BIOS= =C2=A0version=C2=A0to=C2=A0get=C2=A0a=C2=A0working >=C2=A0 >=C2=A0syste= m=C2=A0again. >=C2=A0 >=C2=A0-- >=C2=A0 >=C2=A0Gary=C2=A0Jennejohn= Hi, That's true although I'm going to guess it's going to be an = ongoing issue as at least one user with an ASRock board also has similar= issues (see PR). Looking into if downgrade is possible too. Best re= gards, Daniel --_=_swift_1697293781_c6be3ad2054c9a98ed54571b46ee38b9_=_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable



On 2023-10-14T16:12:04.000+02:00, Gary= Jennejohn <garyj@gmx.de> wrote:
On Sat, 14 Oct 2023 15:05:2= 2 +0200

On 2023-10-14T13:07:11.000+02:00, Daniel Engberg

Hi,

Afte= r 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 boards too so it doesn't seem to be a s= pecific issue
to one manufacturer or model. If anyone has a= ny ideas how to fix
this I'd be grateful.
<= br>
I've tried turning off and on "Fast boot" in BIOS without a= ny
success, enabing SR-IOV makes the kernel hang during boo= t.

dmesg with older bios (working):


dmesg with new bios (not working):


Related PR:
=


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

Best regards,
<= div>
Daniel

I= n addition to the above, 13.2-RELEASE 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 kerne= l boots.


Consider= ing that none of the current FreeBSD versions work I suspect
= that you'll have to flash the previous BIOS version to get a working
system again.

--
Gary Je= nnejohn
Hi,

=
That's true although I'm going to guess it's going to be an ongoing is= sue as at least one user with an ASRock board also has similar issues (see = PR). Looking into if downgrade is possible too.

Best regards,
Daniel
--_=_swift_1697293781_c6be3ad2054c9a98ed54571b46ee38b9_=_--