Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 626434

Summary: sys-kernel/gentoo-sources-4.12.3 fTPM fails with error -16
Product: Gentoo Linux Reporter: Gijs Peskens <zzzomeone>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal CC: ab4bd, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kernelconfig
dmesg output
output of dmidecode

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?