From nobody Fri May 17 16:06:58 2024 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 4VgsKq0yh5z5LNp7 for ; Fri, 17 May 2024 16:07:11 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4VgsKq0WPqz4N4L; Fri, 17 May 2024 16:07:11 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715962031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=56ark4IzYNrUE/fDKybaBWYxWeGONZ76zHscc9uxM7g=; b=ff9cRIjXVOqgu+myxDd3agyQGwBRP5fBEJhndcZj8K4ykAn/XM6WNI0eeBGlGaQd+BCloY lI3RA94Qf8IcdRctgcNx1HtdU3NmBW+UMFndHEjGkY8yWYuAnHE4DNQqiIWxuaVP/oJlbw VTlJRgLHFG4FYKcAPC1Y2ttkCezEjjXY/eLYazlcILBku9SI4r2O2ORWy/ERR4jXmVjsjI PWhBmoyoiSTR0WGcVPPaWkT6popHd56tePDU82I7D43sJXara8Z2P9qgrDgPS/sCfUFou+ TMZFWd9c/icmrLSPVhrE4IvE3jV+MIXW75mEJkljcr0skSRw/xPcJx4P884bPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715962031; a=rsa-sha256; cv=none; b=KJx8M4ilowEXo4twXPBX4KATP8oAForkt71jQA46AoQNe8/+xPcHGA/VF0m4t55hLGCVbr yDKSM/tCmLsF/QpFrntXwwcBSEHMAwVqzj1ORrhLcWdg1fus+yWDSAZiusx9ZjLA36JXwr 8TkW/+XU9T+I+oAi4roglIt+wmCN0OFDQb89OgbabU8yOVkaAmy81Gi0JA9N4Bn6I2f1tJ mw/lTXcFfdVGwbqAsCgFlyb0UFPc86vXPb4q92+wVBQRk+kx9RJnZDbUpu1L34k9PDd5x4 xXNefrxk8VVYEQLB6vkP4YyuTC8zmJ/Q6+hhFHRtffTkEIca+fBcUPwu/nuH6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715962031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=56ark4IzYNrUE/fDKybaBWYxWeGONZ76zHscc9uxM7g=; b=Xq/A0yTgM5LUGUjr6CghVgWGXIhgKKUvcbJF9jonJgynwNr5oPbuZ+za72v7ReM1KkifZJ 30AFc0i0kw08bdmIYl9okt3GLSxnDE1AW9RqiQJObFVi3tcTspo7zJGLvhkodu59g2I4VQ 2B0nJ6bjWNlNF5ZEzEn7K2E0iTNhxcF/oXu6/qAxueTQz8d21fIplPCqmhBTQK3Cm6cxE7 Bfc/GA6dhzNfYTDC07ITnbwj9EmFeeRlTiHDeIPOxU7K2u1F1+S9HpedF9zt7gBE/sTiTA /CN/r404n6vr0d5ItV+N18HfZVaPLhKA+HNvvXzDAI6qTJVqQLnuBAlQJQpQ3g== Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VgsKp72hmzHhg; Fri, 17 May 2024 16:07:10 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-43e3ba01083so4005631cf.0; Fri, 17 May 2024 09:07:10 -0700 (PDT) X-Gm-Message-State: AOJu0YxnFnaxNaCsCmfORye+oQXHqMwnjVKxvln6Pka5wnqs5f4txdnx gYPiRPiaEi7El90Q89xHFFqnwCLlZCdTC9w2Sg2TZ4YchyHb7qZ7NV17V5B+PJmqwXx1lPRWE9S osWNfY5MnrxM17RsWJP2XeI5Nlw8= X-Google-Smtp-Source: AGHT+IEpo8s5M+yxazwCtUz3nY5XT1bnnsgwGIaEv6bSG5NRA9AWWG7JFK/Sxp2QwuW0LpTS9xa2ThLfn5ECDL+OJkk= X-Received: by 2002:ac8:5915:0:b0:43e:3956:2314 with SMTP id d75a77b69052e-43e3956280cmr79610091cf.29.1715962029977; Fri, 17 May 2024 09:07:09 -0700 (PDT) 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 References: <20240517085754.11ab519e@ralga.knownspace> In-Reply-To: <20240517085754.11ab519e@ralga.knownspace> From: Nuno Teixeira Date: Fri, 17 May 2024 17:06:58 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kldload tpm: Fail to load: "link_elf_obj: symbol tpm_bus_driver undefined" To: Justin Hibbits Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="0000000000003ec15b0618a88b65" --0000000000003ec15b0618a88b65 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Working fine! Thanks for fast fix. Justin Hibbits escreveu (sexta, 17/05/2024 =C3=A0(s) 13:57): > On Fri, 17 May 2024 11:09:00 +0100 > Nuno Teixeira wrote: > > > Hello, > > > > tpm kernel module fails to load starting on main from May 9. > > Updated today and same error: > > > > ``` > > $ kldload tpm > > kldload: an error occurred while loading module tpm. Please check > > dmesg(8) for more details. > > > > (dmesg) > > link_elf_obj: symbol tpm_bus_driver undefined > > linker_load_file: /boot/kernel/tpm.ko - unsupported file type > > ``` > > > > I believe it is related to: > > > > --- > > commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9 > > Author: Justin Hibbits > > Date: Thu May 9 15:27:35 2024 -0400 > > > > tpm20: Support partial reads > > > > Summary: > > In some cases the TPM utilities may read only a partial block, > > instead of a full block. If a new command starts while in the middle > > of a read it may cause the TPM to go catatonic and no longer respond > > to SPI. > > > > Reviewed by: kd > > Obtained from: Juniper Networks, Inc. > > Differential Revision: https://reviews.freebsd.org/D45140 > > --- > > > > I use tpm for bhyve/Win11. > > > > Thanks, > > Sorry for the breakage. Should be fixed by 62adeb92. > > - Justin > --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --0000000000003ec15b0618a88b65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Working fine!

Thanks for fas= t fix.

Justin Hibbits <= jhibbits@freebsd.org> escreveu (sexta, 17/05/2024 =C3=A0(s) 13:57):<= br>
On Fri, 17 May 2= 024 11:09:00 +0100
Nuno Teixeira <= eduardo@freebsd.org> wrote:

> Hello,
>
> tpm kernel module fails to load starting on main from May 9.
> Updated today and same error:
>
> ```
> $ kldload tpm
> kldload: an error occurred while loading module tpm. Please check
> dmesg(8) for more details.
>
> (dmesg)
> link_elf_obj: symbol tpm_bus_driver undefined
> linker_load_file: /boot/kernel/tpm.ko - unsupported file type
> ```
>
> I believe it is related to:
>
> ---
> commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9
> Author: Justin Hibbits <jhibbits@FreeBSD.org>
> Date:=C2=A0 =C2=A0Thu May 9 15:27:35 2024 -0400
>
>=C2=A0 =C2=A0 =C2=A0tpm20: Support partial reads
>
>=C2=A0 =C2=A0 =C2=A0Summary:
>=C2=A0 =C2=A0 =C2=A0In some cases the TPM utilities may read only a par= tial block,
> instead of a full block.=C2=A0 If a new command starts while in the mi= ddle
> of a read it may cause the TPM to go catatonic and no longer respond > to SPI.
>
>=C2=A0 =C2=A0 =C2=A0Reviewed by:=C2=A0 =C2=A0 kd
>=C2=A0 =C2=A0 =C2=A0Obtained from:=C2=A0 Juniper Networks, Inc.
>=C2=A0 =C2=A0 =C2=A0Differential Revision: https://reviews.fre= ebsd.org/D45140
> ---
>
> I use tpm for bhyve/Win11.
>
> Thanks,

Sorry for the breakage.=C2=A0 Should be fixed by 62adeb92.

- Justin


--
Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--0000000000003ec15b0618a88b65--