From nobody Fri Sep 01 14:04:41 2023 X-Original-To: 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 4RcftG6WDmz4rHrc for ; Fri, 1 Sep 2023 14:04:54 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcftG2vBLz4V12 for ; Fri, 1 Sep 2023 14:04:54 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1693577082; x=1694181882; i=garyj@gmx.de; bh=4ObwpaKfM6cSCbndIOVpzCerVso0oWd8GD3y9XJ7p5M=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References:Reply- To; b=iiRZnVA3iB5zLjLI7Bs/AapBLcQjgQfFevKmXG3SdvcPEqU3gWRjOuYMXknpB4c5tkmjrJZ Vv/+4A81S8g1YLFVvu35K+LmO1ZVZ87EeHyUmvamDlRNK54Vk2W2TZXH/shKYSB3Eeb9rr4W+ Z1yYSTPzlB4D00RKStIS6nrHcEoVoueAJQZgNBThQaaXyyGGQcWk+C8a54Q44gHjJDiyGmcrO CUwS+2xx8x8bQmQKyZedxJnoJH01TCsABfMTTpR/CdlnTl0ijR7GklwjCOR1zdX7OXpVrlRJV FHcIy0ZyMCpQKcihmbvHCNFw8FZFmn0qXrWtBRBZinOxeaI64yhw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.229.79]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXGvG-1qB1gC1lmg-00Yf09; Fri, 01 Sep 2023 16:04:42 +0200 Date: Fri, 1 Sep 2023 14:04:41 +0000 From: Gary Jennejohn To: "Herbert J. Skuhra" Cc: current@freebsd.org Subject: Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel Message-ID: <20230901160441.038539cd@ernst.home> In-Reply-To: <87edjixf6v.wl-herbert@gojira.at> References: <20230901130314.460f91bf@ernst.home> <87edjixf6v.wl-herbert@gojira.at> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UAsQeMRo6f4jbxZGjIoPQqVK21bK27y4rRxEJYSDXBdmKSnF4Ck pzcOXN6q0D+blhxT/4eOWpzghnusXNtjiGIMa4OU5jEjN5kwr8Nn7L1jTsz1gbp86Fs2BUu eHt5O1naWwDZSdT6e+hJAABnuX5rv34qwx7CDX60xKtdjDSIvPbhJPXL9KoDWQ1t6EE3sB8 12CSTWiM31BX3C9qr09Dw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:TITKFG4pdss=;7Shr8vvGAVTIiy5ueTBcraoGAgD woV+8lwx8IN3jIp4hiRp7NBW0U5JOGo2ApkPKi2jz5Yp3ctuv+UUqM7Demf8R1EZSPEXsN/D6 5ZrvksKILtJygOMXQjZCwoew1SH29Av1VCwGXIcaGgiiKy5tUJf6xotI0UlWv8jB9UN2vJ0MB WdoEG6gQfdBl2Pi7igDv18g9VKQcx4c0QB6AD7yQZvWWyfqmnhIA4+tS4DzghhOoJSP9kJulf Bkgy8LyCRYEbekzDGjP765Zkrq8T0MPHHB/YCeVL7W+iMIWIouBlXZGyscehP6FDZkFCGTQDe 55NCIXCX6v/zK18DTdmbyWYzXxXwucq7ILrKGJntZ02NMJRfJ8dgCXKmWuiCaqaXXNWJwqN1i Ixx0uyeKB41pogJ2BJBEimIa5LorIgjqiUu+AWB0OVQJI5x8v+GN5ls50kNkaKITmvkp1TbFY 2qNIIRDXB4JH+qDQGtt5VfOWwCrGXeeZkK6d/4YXnNRB/JTsa7l2W7CiIZYGDgWIcn6dJ9Zuc O7VT5j4VYalxcSS9MBE31ekao0AgCb6IfZNDgcXhcG6a9upYhXXuha/6elAyPL1rOfRqNRp9g Yj8lWQZ4qfLrXYa8M5XfALBbn42iyF/TRM/+8nNsmvV7Z72ln82CpiFx0GEs8qbuKiXzb32yZ ZXxm5ZQ9HuO9xcdUiL4gG0pVE4PUghsHNN6+govbtJJr62JbbjW+7wKXzDulsSUzxw49v9Mmw oUj0i455l0uyXegR7WoR19uMVnidMTgj+nMuDJxAN2InNGRILofFSJHAFrZsthF0hsaCwynjM z5oSAChnHZwdXoQlF7Omiy/MOaq2q1joOm+m8icJ4txO4Fz/ElmpU2I/M6V45qjU+Rfh8SFlc kzkyWChjsl1Onvd7FY2Nla06wwoori571AxakUi4Z6qDIneOKX6yX4gIB8gtHfzEW2AmdXH63 P0coeU6TU+vvQoaRIALvrX8UYRE= 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:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4RcftG2vBLz4V12 On Fri, 01 Sep 2023 14:15:20 +0200 "Herbert J. Skuhra" wrote: > On Fri, 01 Sep 2023 13:03:14 +0200, Gary Jennejohn wrote: > > > > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 370= 0X. > > > > These are respectively Zen 1 and Zen 2 CPUs. > > > > I built a kernel on both computers using the FreeBSD-15 source tree. > > > > If I include the amdtemp device in my kernel file BOTH computers end u= p > > with a kernel panic while trying to attach the amdtemp device. > > > > If I remove amdtemp both computers boot without any issues. > > > > I suspect that this commit is the cause: > > > > commit 323a94afb6236bcec3a07721566aec6f2ea2b209 > > Author: Akio Morita > > Date: Tue Aug 1 22:32:12 2023 +0200 > > > > amdsmn(4), amdtemp(4): add support for Zen 4 > > > > Zen 4 support, tested on Ryzen 9 7900 > > > > Reviewed by: imp (previous version), mhorne > > Approved by: mhorne > > Obtained from: http://jyurai.ddo.jp/~amorita/diary/?date=3D202211= 02#p01 > > Differential Revision: https://reviews.freebsd.org/D41049 > > Thanks for sharing your findings. > > Now I probably know why my old kernel from stable/13 no longer booted > after updating to stable/14. I've create a new kernel config and > forgot to add "device amdtemp" & "device amdsmn" and forgot about the > issue. After removing only "device amdtemp" from my old kernel config > it boots again. > > Unfortunately reverting this commit (git revert -n 323a94afb623) > doesn't resolve this issue. Old kernel does not boot if "device > amdtemp" is enabled. Probably wrong commit or I am doing somethig > wrong!? > Strange. My FreeBSD-14 kernel boots with device amdtemp (which automatica= lly results in amdsmn being included). It's FreeBSD-15 which fails for me. =2D- Gary Jennejohn