More logging (was: vmalloc: Fix issues with flush flag)
(CC:ing list again)
24.05.19 00:36 Rick Edgecombe kirjutas:
Quoted 5 lines
Hi Meelis,
I am worried this may be a lot of work to do in case the issue is still somehow with my patch. If you want to rule that out before you do a whole bisect, commit "
0a203df5cf0eb709be4f190314e262b72d7e5b76" is the first one one before any of my changes. If that still hangs with:CONFIG_DEBUG_PAGEALLOC=yCONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT=y
Tried that and 0a203df5cf0eb709be4f190314e262b72d7e5b76 with these DEBUG_PAGEALLOC flags on hangs. It hangs before reaching itnit, during scsi disk detection, and the exact moment of hangs varies by a line or too in dmesg.:
This is a typical hang, from the middle of line:
[ 24.035174] printk: console [ttyS0] enabled
[ 24.095507] f0097810: ttyS1 at MMIO 0x7fff3fffff8 (irq = 21, base_baud = 115387) is a ST16650
[ 24.218682] Fusion MPT base driver 3.04.20
[ 24.277381] Copyright (c) 1999-2008 LSI Corporation
[ 24.347381] Fusion MPT SAS Host driver 3.04.20
[ 24.411427] mptbase: ioc0: Initiating bringup
[ 25.312352] ioc0: LSISAS1068 B0: Capabilities={Initiator}
[ 40.090391] scsi host0: ioc0: LSISAS1068 B0, FwRev080400h, Ports=1, MaxQQ1, IRQ
[ 40.219016] mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 0, phy 0, sas_addr 0x5000c5000cbc7cf5
[ 40.358062] scsi 0:0:0:0: Direct-Access SEAGATE ST914602SSUN146G 0703 PQ: 0 ANSI: 5
[ 40.478173] mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 4, phy 4, sas_addr 0x500000e0118969b2
[ 40.617183] scsi 0:0:1:0: Direct-Access FUJITSU MAV2073RCSUN72G 0301 PQ: 0 ANSI: 4
[ 40.733521] sd 0:0:0:0: [sda] 286739329 512-byte logical blocks: (147 GB/137 GiB)
[ 40.736867] Fusion MPT misc device (ioctl) driver 3.04.20
[ 40.842180] sd 0:0:0:0: [sda] Write Protect is off
[ 40.918551] mQuoted 1 line
Then I think it would be conclusive that the the problem is earlier and another bisect would probably be needed. I probably should have asked you to just go ahead and do that last time, but thought it would be easier to communicate properly and since you were already testing the patch that fixed it. Hopefully this is not putting you out too much.
I do not remember trying DEBUG_PAGEALLOC before on any sparcs (though I have had a problem with thet on some strange old machine that might or might not have been a sparc).
To actually bisect it requires a known good kernel DEBUG_PAGEALLOC it worked. Will try to find one - hopefully it is not in too distant past.
So the conclusion is that your patch just triggers a bug that is there even before and DEBUG_PAGEALLOC hits the same bug? Myabe just DEBUG_PAGEALLOC is broken before, so thet would make two independent bugs - how do we know it's the same bug?
Signature · 1 line
Meelis Roos <[email protected]>
Quoted 10 lines · Meelis Roos
I do not remember trying
DEBUG_PAGEALLOCbefore on any sparcs (though I have had a problem with thet on some strange old machine that might or might not have been a sparc).To actually bisect it requires a known good kernel
DEBUG_PAGEALLOCit worked. Will try to find one - hopefully it is not in too distant past.So the conclusion is that your patch just triggers a bug that is there even before and
DEBUG_PAGEALLOChits the same bug? Myabe justDEBUG_PAGEALLOCis broken before, so thet would make two independent bugs - how do we know it's the same bug?
That's a good point, I suppose it doesn't conclusively rule out it's not two different bugs. I think think they very likely have the same root cause because so much lines up though. A previous log you sent showed that where this hangs was at the point of the first vfree, which with DEBUG_PAGEALLOC on, would call flush_tlb_kernel_range() on the address range of the vmalloc allocation. Doing the a flush for only certain vfrees() is essentially what my patch does and in addition we tested a version that mirrored the DEBUG_PAGEALLOC flush address range and it still hung. So same actions, same results. Although if you want to send me the logs from the logging patch I had sent Monday I can see if anything weird is in there.