Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626434 - sys-kernel/gentoo-sources-4.12.3 fTPM fails with error -16
Summary: sys-kernel/gentoo-sources-4.12.3 fTPM fails with error -16
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-28 12:38 UTC by Gijs Peskens
Modified: 2018-06-13 23:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernelconfig (kernconf,99.57 KB, text/plain)
2017-07-28 12:38 UTC, Gijs Peskens
Details
dmesg output (dmesg,71.56 KB, text/plain)
2017-07-28 12:39 UTC, Gijs Peskens
Details
output of dmidecode (dmidecode,16.55 KB, text/plain)
2017-07-28 12:39 UTC, Gijs Peskens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gijs Peskens 2017-07-28 12:38:09 UTC
Created attachment 487054 [details]
kernelconfig

The buildin fTPM chip fails to load with following messages in kernel log:
gijs@chaotica ~ $ dmesg | grep -i tpm
[    0.000000] ACPI: TPM2 0x00000000DD7963C8 000034 (v03 ALASKA A M I    00000001 AMI  00000000)
[    3.360854] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[   26.762813] tpm_crb MSFT0101:00: can't request region for resource [mem 0xdd873000-0xdd873fff]
[   26.762818] tpm_crb: probe of MSFT0101:00 failed with error -16


I own a MSI B350 Gaming Pro board, with an AMD Ryzen 1600X processor. The processor comes with a firmware based fTPM 'chip'. Enabled it in bios (with all possible permutations of versioning). 
Compiled kernel with TPM support (unfortunately at this moment there is sparse to no information available on if linux supports the AMD fTPM implementation, and which kernel modules are required)   

Similar (old) bugs on other motherboards point to a possibility of this being a bios error, also created a ticket at MSI support.
Comment 1 Gijs Peskens 2017-07-28 12:39:06 UTC
Created attachment 487056 [details]
dmesg output
Comment 2 Gijs Peskens 2017-07-28 12:39:40 UTC
Created attachment 487058 [details]
output of dmidecode
Comment 3 Jonas Stein gentoo-dev 2017-07-28 20:28:14 UTC
Gijs, can you provide details, why you think this is a problem in the ebuild and not from upstream?
Comment 4 Gijs Peskens 2017-07-29 00:01:30 UTC
(In reply to Jonas Stein from comment #3)
> Gijs, can you provide details, why you think this is a problem in the ebuild
> and not from upstream?

tbh I'm quite sure it would be either upstream or bios. What upstream bugtracker/mailinglist would be best suited?
Comment 5 Mike Pagano gentoo-dev 2017-08-23 18:04:00 UTC
(In reply to Gijs Peskens from comment #0)
> Created attachment 487054 [details]
> kernelconfig
> 
> The buildin fTPM chip fails to load with following messages in kernel log:
> gijs@chaotica ~ $ dmesg | grep -i tpm
> [    0.000000] ACPI: TPM2 0x00000000DD7963C8 000034 (v03 ALASKA A M I   
> 00000001 AMI  00000000)
> [    3.360854] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
> [   26.762813] tpm_crb MSFT0101:00: can't request region for resource [mem
> 0xdd873000-0xdd873fff]
> [   26.762818] tpm_crb: probe of MSFT0101:00 failed with error -16
> 
> 
> I own a MSI B350 Gaming Pro board, with an AMD Ryzen 1600X processor. The
> processor comes with a firmware based fTPM 'chip'. Enabled it in bios (with
> all possible permutations of versioning). 
> Compiled kernel with TPM support (unfortunately at this moment there is
> sparse to no information available on if linux supports the AMD fTPM
> implementation, and which kernel modules are required)   
> 
> Similar (old) bugs on other motherboards point to a possibility of this
> being a bios error, also created a ticket at MSI support.

Can you post the link to the MSI bug report?

I'm being lazy, which kernel option are we taking about specifically?