<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/tpm, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-11-15T02:22:15Z</updated>
<entry>
<title>tpm: fix the conditional for the arm64 build</title>
<updated>2025-11-15T02:22:15Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2025-11-15T02:22:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c490bc73eb68556bc44da9893af9be48a360de8c'/>
<id>urn:sha1:c490bc73eb68556bc44da9893af9be48a360de8c</id>
<content type='text'>
The intention was clearly that these ACPI bits would be included for
arm64, but MACHINE_ARCH there is aarch64 -- correct the minor typo to
build everything that should be there.

Fixes:	c2e9c5bbf0229 ("tpm: Refactor TIS and add a SPI attachment")
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>tpm: Fix standalone build</title>
<updated>2024-06-25T05:34:59Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-06-25T04:59:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a467c783d669854fdfd3fb817f8c9824c4f6fe6'/>
<id>urn:sha1:6a467c783d669854fdfd3fb817f8c9824c4f6fe6</id>
<content type='text'>
We're building ACPI, so	we need	-DDEV_ACPI on CFLAGS. Nomally, the
kernel config brings this in, but there's no kernel directory for the
standalone build.

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>tpm: Add new tpm_bus.c to module Makefile</title>
<updated>2024-05-17T16:57:38Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2024-05-17T16:54:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=62adeb92dfe946524bdaf7139b161d3d5a09ba2e'/>
<id>urn:sha1:62adeb92dfe946524bdaf7139b161d3d5a09ba2e</id>
<content type='text'>
Reported by:	eduardo@
Fixes:		c2e9c5bbf0 ("tpm: Refactor TIS and add a SPI attachment")
</content>
</entry>
<entry>
<title>tpm: Refactor TIS and add a SPI attachment</title>
<updated>2024-05-03T20:26:11Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2023-11-13T16:33:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c2e9c5bbf02294376988f3e7eba82b8e078cdf30'/>
<id>urn:sha1:c2e9c5bbf02294376988f3e7eba82b8e078cdf30</id>
<content type='text'>
Summary:
Though mostly used in x86 devices, TPM can be used on others, with a
direct SPI attachment.  Refactor the TPM 2.0 driver set to use an
attachment interface, and implement a SPI bus interface.

Test Plan:
Tested on a Raspberry Pi 4, with a GeeekPi TPM2.0 module (SLB9670
TPM) using security/tpm2-tools tpm2_getcaps for very light testing against the
spibus attachment.

Reviewed by:	kd
Obtained from:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D45069
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:54:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=031beb4e239bfce798af17f5fe8dba8bcaf13d99'/>
<id>urn:sha1:031beb4e239bfce798af17f5fe8dba8bcaf13d99</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>Revert r357349, since the clang 10.0.0 warning was actually correct, and</title>
<updated>2020-02-01T16:57:04Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-02-01T16:57:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6d5b31f8b3cf53bcf3ab7c12120c00f29de87b9'/>
<id>urn:sha1:f6d5b31f8b3cf53bcf3ab7c12120c00f29de87b9</id>
<content type='text'>
the ! operator should have been a ~ instead:

  Merge r357348 from the clang 10.0.0 import branch:

  Disable new clang 10.0.0 warnings about converting the result of
  shift operations to a boolean in tpm(4):

  sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '&lt;&lt;' to a boolean; did you mean '(1 &lt;&lt; (0)) != 0'? [-Werror,-Wint-in-bool-context]
	  WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD);
					^
  sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'
  #define TPM_CRB_CTRL_CANCEL_CMD         BIT(0)
					  ^
  sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'
  #define BIT(x) (1 &lt;&lt; (x))
		    ^

  Such warnings can be useful in C++ contexts, but not so much in kernel
  drivers, where this type of bit twiddling is commonplace.  So disable
  it for this case.

Noticed by:	cem
MFC after:	3 days
</content>
</entry>
<entry>
<title>Disable new clang 10.0.0 warnings about converting the result of shift</title>
<updated>2020-01-31T19:35:21Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-01-31T19:35:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a51af919165269e7fe82a972261a9180ab195a0'/>
<id>urn:sha1:0a51af919165269e7fe82a972261a9180ab195a0</id>
<content type='text'>
operations to a boolean in tpm(4):

sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '&lt;&lt;' to a boolean; did you mean '(1 &lt;&lt; (0)) != 0'? [-Werror,-Wint-in-bool-context]
        WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD);
                                      ^
sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'
#define TPM_CRB_CTRL_CANCEL_CMD         BIT(0)
                                        ^
sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'
#define BIT(x) (1 &lt;&lt; (x))
                  ^

Such warnings can be useful in C++ contexts, but not so much in kernel
drivers, where this type of bit twiddling is commonplace.  So disable it
for this case.

MFC after:	3 days
</content>
</entry>
<entry>
<title>Fix `make` in sys/modules</title>
<updated>2019-03-28T08:59:11Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2019-03-28T08:59:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dac21b8d149363b9322ad45dcc23c9b779870396'/>
<id>urn:sha1:dac21b8d149363b9322ad45dcc23c9b779870396</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Include the new TPM 2.0 driver in the TPM module.</title>
<updated>2018-12-19T22:43:10Z</updated>
<author>
<name>Marcin Wojtas</name>
<email>mw@FreeBSD.org</email>
</author>
<published>2018-12-19T22:43:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=11721f6600806f3184be219432b7992ac6c7a042'/>
<id>urn:sha1:11721f6600806f3184be219432b7992ac6c7a042</id>
<content type='text'>
Update the appropriate Makefile to build the new driver
together with the old one.

Submitted by: Kornel Duleba &lt;mindal@semihalf.com&gt;
Reported by: kib
Obtained from: Semihalf
Sponsored by: Stormshield
</content>
</entry>
</feed>
