<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/coreboot/coreboot.git/src/security/intel, branch master</title>
<subtitle>review.coreboot.org: coreboot.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/'/>
<entry>
<title>security/intel/txt: Add helper function to disable TXT</title>
<updated>2023-01-09T04:30:39+00:00</updated>
<author>
<name>Subrata Banik</name>
<email>subratabanik@google.com</email>
</author>
<published>2022-12-31T09:13:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=ad87a82ca7d960ee696dd57c013d75609212eb66'/>
<id>ad87a82ca7d960ee696dd57c013d75609212eb66</id>
<content type='text'>
Add a function to disable TXT as per TXT BIOS spec Section 6.2.5. AP
firmware can disable TXT if TXT fails or TPM is already enabled.

On platforms with TXT disabled, the memory can be unlocked using
MSR 0x2e6.

TEST=Able to perform disable_txt on SoC SKUs with TXT enabled.

Signed-off-by: Subrata Banik &lt;subratabanik@google.com&gt;
Change-Id: I27f613428e82a1dd924172eab853d2ce9c32b473
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71574
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Tarun Tuli &lt;taruntuli@google.com&gt;
Reviewed-by: Sridhar Siricilla &lt;sridhar.siricilla@intel.com&gt;
Reviewed-by: Eric Lai &lt;eric_lai@quanta.corp-partner.google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a function to disable TXT as per TXT BIOS spec Section 6.2.5. AP
firmware can disable TXT if TXT fails or TPM is already enabled.

On platforms with TXT disabled, the memory can be unlocked using
MSR 0x2e6.

TEST=Able to perform disable_txt on SoC SKUs with TXT enabled.

Signed-off-by: Subrata Banik &lt;subratabanik@google.com&gt;
Change-Id: I27f613428e82a1dd924172eab853d2ce9c32b473
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71574
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Tarun Tuli &lt;taruntuli@google.com&gt;
Reviewed-by: Sridhar Siricilla &lt;sridhar.siricilla@intel.com&gt;
Reviewed-by: Eric Lai &lt;eric_lai@quanta.corp-partner.google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security/intel/txt: Create Intel TXT lib with helper functions</title>
<updated>2023-01-08T16:50:44+00:00</updated>
<author>
<name>Subrata Banik</name>
<email>subratabanik@google.com</email>
</author>
<published>2022-12-31T09:06:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=6a2495d8d9f389b7ee08c559cb18f9a78c810e38'/>
<id>6a2495d8d9f389b7ee08c559cb18f9a78c810e38</id>
<content type='text'>
This patch decouples useful TXT related operations from the romstage.c
file alone and moves them into a helper txtlib.c. This effort will be
helpful for SoC users to perform TXT related operations
(like Disabling TXT) even without selecting INTEL_TXT config.

At present, those helper functions are only available upon selecting
INTEL_TXT which is not getting enabled for most of the SoC platform in
the scope of the Chromebooks.

TEST=Able to access functions from txtlib.c even without selecting
INTEL_TXT config.

Signed-off-by: Subrata Banik &lt;subratabanik@google.com&gt;
Change-Id: Iff5b4e705e18cbaf181b4c71bfed368c3ed047ed
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71573
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Tarun Tuli &lt;taruntuli@google.com&gt;
Reviewed-by: Sridhar Siricilla &lt;sridhar.siricilla@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch decouples useful TXT related operations from the romstage.c
file alone and moves them into a helper txtlib.c. This effort will be
helpful for SoC users to perform TXT related operations
(like Disabling TXT) even without selecting INTEL_TXT config.

At present, those helper functions are only available upon selecting
INTEL_TXT which is not getting enabled for most of the SoC platform in
the scope of the Chromebooks.

TEST=Able to access functions from txtlib.c even without selecting
INTEL_TXT config.

Signed-off-by: Subrata Banik &lt;subratabanik@google.com&gt;
Change-Id: Iff5b4e705e18cbaf181b4c71bfed368c3ed047ed
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71573
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Tarun Tuli &lt;taruntuli@google.com&gt;
Reviewed-by: Sridhar Siricilla &lt;sridhar.siricilla@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security/intel/stm/StmPlatformResource.c: Fix typo on "threads"</title>
<updated>2022-12-31T09:30:54+00:00</updated>
<author>
<name>Elyes HAOUAS</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-01-16T10:47:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=411aba22bfb3a4a0f7f2c11e10bdb4bb0c7cbe4d'/>
<id>411aba22bfb3a4a0f7f2c11e10bdb4bb0c7cbe4d</id>
<content type='text'>
Change-Id: Id57a9c689d5fa35cf1b4df9c37b12dd95cb9ef23
Signed-off-by: Elyes HAOUAS &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61123
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Paul Menzel &lt;paulepanter@mailbox.org&gt;
Reviewed-by: Felix Singer &lt;felixsinger@posteo.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Id57a9c689d5fa35cf1b4df9c37b12dd95cb9ef23
Signed-off-by: Elyes HAOUAS &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61123
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Paul Menzel &lt;paulepanter@mailbox.org&gt;
Reviewed-by: Felix Singer &lt;felixsinger@posteo.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Include &lt;device/mmio.h&gt; instead of &lt;arch/mmio.h&gt;</title>
<updated>2022-12-10T05:07:14+00:00</updated>
<author>
<name>Elyes Haouas</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-12-05T07:48:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=8823ba167318e87f74717d0c32e29b58a1ed3eca'/>
<id>8823ba167318e87f74717d0c32e29b58a1ed3eca</id>
<content type='text'>
&lt;device/mmio.h&gt;` chain-include `&lt;arch/mmio.h&gt;:
https://doc.coreboot.org/contributing/coding_style.html#headers-and-includes

Also sort includes while on it.

Change-Id: Ie62e4295ce735a6ca74fbe2499b41aab2e76d506
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70291
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Held &lt;felix-coreboot@felixheld.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
&lt;device/mmio.h&gt;` chain-include `&lt;arch/mmio.h&gt;:
https://doc.coreboot.org/contributing/coding_style.html#headers-and-includes

Also sort includes while on it.

Change-Id: Ie62e4295ce735a6ca74fbe2499b41aab2e76d506
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70291
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Held &lt;felix-coreboot@felixheld.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security: Remove unnecessary space after casts</title>
<updated>2022-11-22T12:55:26+00:00</updated>
<author>
<name>Elyes Haouas</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-11-18T14:03:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=b538d71e3230552e2942a83e61dd132693d5241c'/>
<id>b538d71e3230552e2942a83e61dd132693d5241c</id>
<content type='text'>
Change-Id: Ibd41382d0e0ef58498ac925dc9e10b54a76a798a
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69800
Reviewed-by: Yu-Ping Wu &lt;yupingso@google.com&gt;
Reviewed-by: Eric Lai &lt;eric_lai@quanta.corp-partner.google.com&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibd41382d0e0ef58498ac925dc9e10b54a76a798a
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69800
Reviewed-by: Yu-Ping Wu &lt;yupingso@google.com&gt;
Reviewed-by: Eric Lai &lt;eric_lai@quanta.corp-partner.google.com&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpu/x86: Drop !CPU_INFO_V2 code</title>
<updated>2022-11-07T14:00:00+00:00</updated>
<author>
<name>Arthur Heymans</name>
<email>arthur@aheymans.xyz</email>
</author>
<published>2022-11-01T22:48:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=f4c11dcb53bbd324741ecd7109584eaa55579f7f'/>
<id>f4c11dcb53bbd324741ecd7109584eaa55579f7f</id>
<content type='text'>
Now that all platforms use parallel_mp this is the only codepath used
for cpu_info() local thread storage.

Change-Id: I119214e703aea8a4fe93f83b784159cf86d859d3
Signed-off-by: Arthur Heymans &lt;arthur@aheymans.xyz&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69122
Reviewed-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Angel Pons &lt;th3fanbus@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that all platforms use parallel_mp this is the only codepath used
for cpu_info() local thread storage.

Change-Id: I119214e703aea8a4fe93f83b784159cf86d859d3
Signed-off-by: Arthur Heymans &lt;arthur@aheymans.xyz&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69122
Reviewed-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Angel Pons &lt;th3fanbus@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>src/security: Use "if (!ptr)" in preference to "if (ptr == NULL)"</title>
<updated>2022-09-15T13:02:33+00:00</updated>
<author>
<name>Elyes Haouas</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-09-13T07:56:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=aebccac7e10eb581e8e7d3354289cfed76860a3e'/>
<id>aebccac7e10eb581e8e7d3354289cfed76860a3e</id>
<content type='text'>
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Change-Id: I3def65c016015d8213824e6b8561d8a67b6d5cf0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67579
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Change-Id: I3def65c016015d8213824e6b8561d8a67b6d5cf0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67579
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/intel/ptt: Use the correct detection method</title>
<updated>2022-09-12T12:23:19+00:00</updated>
<author>
<name>Michał Żygowski</name>
<email>michal.zygowski@3mdeb.com</email>
</author>
<published>2022-04-22T23:06:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=ff7725e74281a4ae9c776525891d45233599bce4'/>
<id>ff7725e74281a4ae9c776525891d45233599bce4</id>
<content type='text'>
On some platforms the HFSTS4 bit 19 does not indicate active PTT.
Instead of ME HFSTS4, use TXT FTIF register to check active TPM for
the current boot. Discrete TPM shall be deactivated when PTT is
enabled so this always should return true value of PTT state.

Leave the old method for backwards compatibility if TXT FTIF would not
be applicable for older microarchitectures.

Based on DOC #560297.

TEST=Check if PTT is detected as active on MSI PRO Z690-A DDR4 WIFI

Signed-off-by: Michał Żygowski &lt;michal.zygowski@3mdeb.com&gt;
Change-Id: I3a55c9f38f5bb94fb1186592446a28e675c1207c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63956
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Krystian Hebel &lt;krystian.hebel@3mdeb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some platforms the HFSTS4 bit 19 does not indicate active PTT.
Instead of ME HFSTS4, use TXT FTIF register to check active TPM for
the current boot. Discrete TPM shall be deactivated when PTT is
enabled so this always should return true value of PTT state.

Leave the old method for backwards compatibility if TXT FTIF would not
be applicable for older microarchitectures.

Based on DOC #560297.

TEST=Check if PTT is detected as active on MSI PRO Z690-A DDR4 WIFI

Signed-off-by: Michał Żygowski &lt;michal.zygowski@3mdeb.com&gt;
Change-Id: I3a55c9f38f5bb94fb1186592446a28e675c1207c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63956
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Krystian Hebel &lt;krystian.hebel@3mdeb.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Remove unused &lt;cpu/x86/msr.h&gt;</title>
<updated>2022-07-20T13:16:52+00:00</updated>
<author>
<name>Elyes Haouas</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-07-10T19:00:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=ef26dee2f44f6134a49d6b83dc2a47bf7b24b533'/>
<id>ef26dee2f44f6134a49d6b83dc2a47bf7b24b533</id>
<content type='text'>
Change-Id: I187c2482dd82c6c6d1fe1cbda71710ae1a2f54ad
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64890
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Held &lt;felix-coreboot@felixheld.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I187c2482dd82c6c6d1fe1cbda71710ae1a2f54ad
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64890
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Held &lt;felix-coreboot@felixheld.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security/intel/txt/common.c: Remove unuseful "else" after "return"</title>
<updated>2022-07-17T18:54:31+00:00</updated>
<author>
<name>Elyes HAOUAS</name>
<email>ehaouas@noos.fr</email>
</author>
<published>2022-01-07T18:05:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/coreboot/coreboot.git/commit/?id=c2f1202151208a35dea7c5fec1de2192752ff900'/>
<id>c2f1202151208a35dea7c5fec1de2192752ff900</id>
<content type='text'>
"else" is unuseful after a "break" or "return".

Change-Id: I7273b9af46a2310c9981ffd20afe2c8c7e061479
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60910
Reviewed-by: Paul Menzel &lt;paulepanter@mailbox.org&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Singer &lt;felixsinger@posteo.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"else" is unuseful after a "break" or "return".

Change-Id: I7273b9af46a2310c9981ffd20afe2c8c7e061479
Signed-off-by: Elyes Haouas &lt;ehaouas@noos.fr&gt;
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60910
Reviewed-by: Paul Menzel &lt;paulepanter@mailbox.org&gt;
Tested-by: build bot (Jenkins) &lt;no-reply@coreboot.org&gt;
Reviewed-by: Felix Singer &lt;felixsinger@posteo.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
