TPM 2.0 fails to load and crashes in RHEL 7.2 with ioremap: invalid physical address
Issue
- After installing Trusted Platform Module (TPM) 2.0 on RHEL 7.2, below call trace is observed in
dmesg
[ 4.106618] ioremap: invalid physical address 9b401dc5f000322f
[ 4.106622] ------------[ cut here ]------------
[ 4.106636] WARNING: at arch/x86/mm/ioremap.c:99 __ioremap_caller+0x343/0x370()
<snip>
[ 4.106703] Call Trace:
[ 4.106710] [<ffffffff816351f1>] dump_stack+0x19/0x1b
[ 4.106714] [<ffffffff8107b200>] warn_slowpath_common+0x70/0xb0
[ 4.106717] [<ffffffff8107b34a>] warn_slowpath_null+0x1a/0x20
[ 4.106720] [<ffffffff8105fe93>] __ioremap_caller+0x343/0x370
[ 4.106725] [<ffffffff811c3b18>] ? __kmalloc_track_caller+0x1e8/0x230
[ 4.106729] [<ffffffff81309c7a>] ? devm_ioremap_nocache+0x2a/0x80
[ 4.106733] [<ffffffff8105fed7>] ioremap_nocache+0x17/0x20
[ 4.106736] [<ffffffff81309c8d>] devm_ioremap_nocache+0x3d/0x80
[ 4.106742] [<ffffffffa01bf253>] crb_acpi_add+0x123/0x2c0 [tpm_crb]
[ 4.106746] [<ffffffff81362897>] acpi_device_probe+0x41/0xee
[ 4.106750] [<ffffffff813f6497>] driver_probe_device+0x87/0x390
[ 4.106754] [<ffffffff813f6873>] __driver_attach+0x93/0xa0
[ 4.106757] [<ffffffff813f67e0>] ? __device_attach+0x40/0x40
[ 4.106760] [<ffffffff813f4203>] bus_for_each_dev+0x73/0xc0
[ 4.106764] [<ffffffff813f5eee>] driver_attach+0x1e/0x20
[ 4.106767] [<ffffffff813f5a40>] bus_add_driver+0x200/0x2d0
[ 4.106771] [<ffffffffa01c4000>] ? 0xffffffffa01c3fff
[ 4.106774] [<ffffffff813f6ef4>] driver_register+0x64/0xf0
[ 4.106777] [<ffffffff81363392>] acpi_bus_register_driver+0x3b/0x43
[ 4.106781] [<ffffffffa01c4010>] crb_acpi_driver_init+0x10/0x1000 [tpm_crb]
[ 4.106785] [<ffffffff810020e8>] do_one_initcall+0xb8/0x230
[ 4.106789] [<ffffffff810ed4ae>] load_module+0x134e/0x1b50
[ 4.106792] [<ffffffff81316880>] ? ddebug_proc_write+0xf0/0xf0
[ 4.106796] [<ffffffff810e9743>] ? copy_module_from_fd.isra.42+0x53/0x150
[ 4.106799] [<ffffffff810ede66>] SyS_finit_module+0xa6/0xd0
[ 4.106804] [<ffffffff81645909>] system_call_fastpath+0x16/0x1b
[ 4.106806] ---[ end trace b5ec9d55ba95bf7e ]---
[ 4.106809] tpm_crb MSFT0101:00: ioremap of the command buffer failed
[ 4.106851] tpm_crb: probe of MSFT0101:00 failed with error -12
Environment
- Red Hat Enterprise Linux 7.2 and lower
- Trusted Platform Module v2.0 (TPM 2.0)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.