Red Hat Bugzilla – Bug 250898
Missing critical phys_to_virt in lib/swiotlb.c
Last modified: 2014-06-18 04:00:13 EDT
+++ This bug was initially created as a clone of Bug #248102 +++
RHEL5 Kernel panics when loading megaraid_mbox module:
megaraid: fw version:[713S] bios version:[G401]
scsi2 : LSI Logic MegaRAID driver
scsi: scanning scsi channel 0 [Phy 0] for non-raid devices
Unable to handle kernel paging request at ffff80ff0a3b5000 RIP:
Oops: 0000  SMP
last sysfs file: /class/input/input0/name
Modules linked in: megaraid_mbox megaraid_mm ata_piix libata sd_mod scsi_mod
Pid: 0, comm: swapper Not tainted 2.6.18-8.1.4.el5 #1
RIP: 0010:[<ffffffff80140ca0>] [<ffffffff80140ca0>] sync_single+0x20/0x7b
RSP: 0018:ffffffff80402e88 EFLAGS: 00010246
RAX: ffffffffe0000000 RBX: ffff81015ee46080 RCX: 0000000000000002
RDX: ffff81000a3b5000 RSI: 0000000006395000 RDI: ffff81015f14b870
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000024
R10: 0000000006395000 R11: 0000000000013409 R12: 0000000000000000
R13: 0000000000000001 R14: ffff81015f14b870 R15: ffff81015fee8000
FS: 0000000000000000(0000) GS:ffffffff8038a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: ffff80ff0a3b5000 CR3: 0000000000201000 CR4: 00000000000006e0
Process swapper (pid: 0, threadinfo ffffffff803ba000, task ffffffff802d1ae0)
Stack: ffffffff8014192f ffff81015f3e1858 ffff81015e8c2980 ffff81015f0b4000
ffff81015e8c2980 ffff81015f0b4008 ffffffff8808082a ffff81015f3e0000
ffffffff80402ec8 ffff81015f0b4008 ffff81015f0b4008 0000000000000000
<IRQ> [<ffffffff8014192f>] swiotlb_sync_sg_for_cpu+0xb2/0xcb
<EOI> [<ffffffff80054f64>] mwait_idle+0x36/0x4a
Code: 48 8b 04 c2 74 07 41 ff c8 75 45 eb 21 83 f9 02 74 04 85 c9
RIP [<ffffffff80140ca0>] sync_single+0x20/0x7b
<0>Kernel panic - not syncing: Fatal exception
<0>Rebooting in 30 seconds..
It is known issue fixed in upstream and in stable 188.8.131.52 kernel by patch
"Missing critical phys_to_virt in lib/swiotlb.c":
Thanks to AltLinux kernel Team for assistance in the bug reproducing and
-- Additional comment from firstname.lastname@example.org on 2007-08-03 18:54 EST --
A trivial fix for a bug that blocks people with certain hardware configurations
from running RHEL.
This one needs to go in soon.
Created attachment 160703 [details]
Anton, has this bug been reproduced in RHEL4?
Rik, I can't reproduce this bug, because I haven't necessary hardware for it.
Bug was blindly cloned due to Pete Zaitcev request. I've dig it up logically
throw the sources, and I believe 2.6.9 kernel has exact the same issue.
Created attachment 160759 [details]
the same as att#160703, just fixed indentation.
Andrius, the original BZ was for 5.1. When Anton posted the patch to rhkl, Pete
Z. suggested that it needs to be fixed in 4.6 as well. Note BTW that the patch
arch/ia64/lib/swiotlb.c, not megaraid. When the subject of testing the patch
came up in rhkl, Anton made the case that this is not necessary because the
patch is straight-forward and well understood.
Setting devel_ack. This should go in 4.6 as an exception, to avoid system crashes.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
committed in stream U6 build 60. A test kernel with this patch is available from
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.