AOSC-Dev / aosc-os-abbs

ABBS/ACBS tree for AOSC OS package metadata, build configuration, scripts, and patches
https://packages.aosc.io
GNU General Public License v2.0
100 stars 78 forks source link

tpm: broken support #422

Closed jyhi closed 3 years ago

jyhi commented 7 years ago
lmy441900 [ ~ ] $ sudo dmesg | grep tpm
[    1.637811] tpm_crb MSFT0101:00: can't request region for resource [mem 0xfed40040-0xfed4103f]
[    1.637842] tpm_crb: probe of MSFT0101:00 failed with error -16
lmy441900 [ ~ ] $ sudo tcsd -f
TCSD TDDL ERROR: Could not find a device to open!
lmy441900 [ ~ ] ! tpmtool 
tpmtool: error while loading shared libraries: libopts.so.25: cannot open shared object file: No such file or directory
lmy441900 [ ~ ] ? 
MingcongBai commented 7 years ago

Got it. Will be fixed by tomorrow.

jyhi commented 7 years ago

Found the patch in mainline Linux Kernel:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=422eac3f7deae34dbaffd08e03e27f37a5394a56

And it was merged into Linux Kernel in 4.7.

jyhi commented 7 years ago

We need more tests. Users who have:

  1. TPM on their computer;
  2. AOSC OS with at least Kernel 4.7.x

can help us to deal with this problem.

MingcongBai commented 7 years ago

lmy441900 [ ~ ] ! tpmtool tpmtool: error while loading shared libraries: libopts.so.25: cannot open shared object file: No > such file or directory lmy441900 [ ~ ] ?

This part's fixed. The rest, will need more tester. But before this, could you check if your tcsd.service is up and running?

jyhi commented 7 years ago

A detailed test.

2016-10-07 12-16-56

MingcongBai commented 7 years ago

Could anyone test this again?

Icenowy commented 7 years ago

@MingcongBai ?

MingcongBai commented 7 years ago

@Icenowy I thought this bug was supposed to be fixed with 4.7.7... And we have 4.8.1 now.

jyhi commented 7 years ago

Upgraded to 4.8.1 just now.

Oct 17 20:36:16 localhost kernel: tpm_crb MSFT0101:00: can't request region for resource [mem 0xfed40080-0xfed40fff]
Oct 17 20:36:16 localhost kernel: tpm_crb: probe of MSFT0101:00 failed with error -16
MingcongBai commented 7 years ago

Is this issue still here? @lmy441900

jyhi commented 6 years ago

I suspect this is a firmware bug of Dell.

MingcongBai commented 3 years ago

@lmy441900 Is this still an issue (since you've got a new laptop already)? I have ran into other TPM issues before with other laptops, but nonetheless, it may be best to direct these kinds of issue to the upstream in the future.