Skip to contentSkip to conversation

Possible regression caused by commit 1bd047be37d9 ("tpm_crb: Use devm_ioremap_resource")

DISCUSSION Zhang Rui 2 participants 2 messages Jul 31, 2016 – Aug 3, 2016

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

Hi, Jason,

we got a bug report complaining that the system can not enter deeper package c-states than pc2, and the git bisect result points to commit 1bd047be37d9 ("tpm_crb: Use devm_ioremap_resource").

can you take a look at this issue?

Bugzilla link: https://bugzilla.kernel.org/show_bug.cgi?id=118451

thanks,
rui

#1 lore raw
Quoted 9 lines · Zhang Rui

Hi, Jason,

we got a bug report complaining that the system can not enter deeper package c-states than pc2, and the git bisect result points to commit 1bd047be37d9 ("tpm_crb: Use devm_ioremap_resource").

can you take a look at this issue?

Bugzilla link: https://bugzilla.kernel.org/show_bug.cgi?id=118451

The tagged commit basically swiches devm_ioremap_nocache for devm_ioremap_resource - AFAIK the only external difference being that the TPM driver is now part of the resource tree.

I didn't think resource tree interacted with Intel PM at all?

One thing we know about is that the TPM driver fails to load on some systems due to resource conflicts. Is it possible Yrjan's is seeing TPM load failures in one kernel? Presumably not loading the tpm driver would impact PM somehow??

I recommend checking for the issue solved in this patch:

commit 422eac3f7deae34dbaffd08e03e27f37a5394a56

Author: Jarkko Sakkinen <[email protected]>
Date:   Tue Apr 19 12:54:18 2016 +0300

tpm_crb: fix mapping of the buffers

On my Lenovo x250 the following situation occurs:

[18697.813871] tpm_crb MSFT0101:00: can't request region for resource [mem 0xacdff080-0xacdfffff]

Jason