From nobody Sun Jan 19 15:49:15 2025 X-Original-To: bugs@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 4YbdF71dtnz5lPCM for ; Sun, 19 Jan 2025 15:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YbdF718fRz3fqN for ; Sun, 19 Jan 2025 15:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737301755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qgpe453oJYEGY3xEEFf/k9/c1WXFUo17c6IinCipVck=; b=G2q4pc2+UDwRbRaeRkKdI4iIdh0SH8czT9ChOaB0f/ElEXECG2NSRFY1Zwdw69HeL9Bjlx En+LU+oqlVEYyBNWtTq3IdaR3MtH2JtTmBCXR9pj6wyVNa51fykc7orWK/PAOGtmUAWww+ IjkcLkpZzvdqOy2CXcE14GEtHol7qz6fGNZFxRrDxB2nqX+CC5h9tn6RNe+yj/8ywQJuWf TkD3fXBwSUbXNUcnWVsi/O477HNFYn7+/nf9hDGDP+OUj2Utk3EXEuG9K6GI1vr6/YeB7c NNfnJfIJIeNdp2IASkNN23mESkwkYy7n0onR4APWPMUw+EKprO9toDRaveVxjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737301755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qgpe453oJYEGY3xEEFf/k9/c1WXFUo17c6IinCipVck=; b=T3J4NydUPJeHif70nvzNKEWOyXZQcI4gCtpeTfI8Iqc+nl9oIEMcQCxbJi+SVR45UqhGRl Pm+eezcd/7s+KiUsaY3U3W2C0p7GEVHGIkWyarapLk2GZVb+7FxD2p/Hk+dZkVD6zqviIg IbTjsMCKo/LETsUhlsBlqvl51+qkfLqYmMOB12+s4H+jAEHMPDm1D/Ozx4VqIdayEb5NC5 lZ3TWIZrgRlnkbJUIrEndvhy8AD4H0d69EEgReGdgcQTlYH7+Ta1e4AYzPqrJnCTzvB6b1 rcBlhipZYgicHhTlaF9spTzmUFEwAQGTbKis4abrkfwxltJKV72NmBljQqphlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737301755; a=rsa-sha256; cv=none; b=j4w5sJz30MjJnrnjxrr9BEzYI5i1toEhWi3udp75rO54tfzMBqLbGbRtAmG1aIfJWwYS/2 OXPr7qwm6IQxZ9bCUB4LzdbG4cqABTE3T0Jdm4szsnHtMU/ztTjyURC0IXRjPpiL1/PTFK 8b3x0Vh01MdtDzyXh8tT/xTBh3eArJ2HvCr2RINUGxHBQ/ytPBPzoS2eFobzCBr5avVIq6 SP/gwQ1z2AaUEyCoBxB4k7W54nsetq1tXBHoDei1xsn4Gk/Ajzm/ZYSLtqZWH/96E6VlZG 6VrvS1I2+4tbszHtPDhk+RAWNMaouMq4spijWauh/WUhXm4HJqGN8K18TQpb1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YbdF70bX5zwgx for ; Sun, 19 Jan 2025 15:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50JFnExE017389 for ; Sun, 19 Jan 2025 15:49:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50JFnEu6017388 for bugs@FreeBSD.org; Sun, 19 Jan 2025 15:49:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283877] Trusted Platform Module driver fails to initialize firmware TPM Date: Sun, 19 Jan 2025 15:49:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vbasiccd@msn.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283877 --- Comment #4 from Brett --- Using my Dell E7450, I uncommented the "define TPM_DEBUG" line and compiled= my version of the GENERIC kernel. The only change I made was to add "define T= PM" to the kernel config. However, the compile failed with the following lines: /usr/src/sys/dev/tpm/tpm.c:863:45: error: format specifies type 'int' but t= he argument has type 'size_t' (aka 'unsigned long') [-Werror,-Wformat] 863 | printf("tpm_tis12_write: wrote %d byte\n", cnt); | ~~ ^~~ | %zu /usr/src/sys/dev/tpm/tpm.c:1197:48: error: format specifies type 'int' but = the argument has type 'ssize_t' (aka 'long') [-Werror,-Wformat] 1197 | printf("tpmread: len %d, io count %d\n", len, uio->uio_resi= d); | ~~ ^~~~~~~~~~~~~~ | %zd /usr/src/sys/dev/tpm/tpm.c:1203:51: error: format specifies type 'unsigned = int' but the argument has type 'ssize_t' (aka 'long') [-Werror,-Wformat] 1203 | printf("tpmread: bad residual io count 0x%x\n", uio->uio_resid); | ~~=20=20= =20=20 ^~~~~~~~~~~~~~ | %zx /usr/src/sys/dev/tpm/tpm.c:1254:36: error: format specifies type 'int' but = the argument has type 'ssize_t' (aka 'long') [-Werror,-Wformat] 1254 | printf("tpmwrite: io count %d\n", uio->uio_resid); | ~~ ^~~~~~~~~~~~~~ | %zd I made the requested changes to the printf statements, and the kernel compi= le completed successfully. After rebooting, I did not find any debug statemen= ts from "sysctl -a" or "dmesg -a". I even did a full shutdown so the laptop c= an boot cold, but that still did not produce any debug output. Do note that in the /boot/device.hints file, I commented out the lines recommended by the t= pm driver during my earlier troubleshooting. When those were active, that was causing the "tpm2" in my initial bug report. Now that those lines are not active, the output reports "tpm0". sysctl -a | grep tpm tpm0: on acpi0 device_attach: tpm0 attach returned 6 tpm0: on acpi0 device_attach: tpm0 attach returned 6 device tpm dev.tpm.%parent:=20 dmesg -a | grep tpm tpm0: on acpi0 device_attach: tpm0 attach returned 6 tpm0: on acpi0 device_attach: tpm0 attach returned 6 --=20 You are receiving this mail because: You are the assignee for the bug.=