linux-3.10+: unable to boot 31bit builds
A message that is not in the archive (sent off-list or not yet received): alpine.LFD.2.11.1404021657140.10939@denkbrett
Hi,
Quoted 60 lines · Sebastian Ott
Quoted 42 lines · Mike Frysinger
Quoted 41 lines · On Wed 22 Jan 2014 08:55:36 Heiko Carstens wrote:
Quoted 22 lines · Heiko Carstens
Quoted 7 lines · Heiko Carstens
Quoted 3 lines · Mike Frysinger
hmm, doesn't seem to work for me. don't get a crash, just a "virtual machine is placed in CP mode due to a SIGP initial C". whatever that means :).> >
Ah, that probably happened because the kernel failed to mount the root file system and killed all CPUs before printing a nice error message.
Ok, that's not correct. Just bisected it down to:
commit
14556b33f2a5d6a3bc75cd33b709452a31555b25Author: Sebastian Ott <[email protected]> Date: Sat Apr 13 13:03:54 2013 +0200s390/css: introduce
cio_register_early_subchannelsUse
cio_register_early_subchannelsto register early subchannels which are already in use. Call this function before we do the actual subchannel scanning loop. This helps us to get rid of some more special cases regarding the console subchannel.Quoted 5 lines
Reviewed-by Peter Oberparleiter <[email protected]>Signed-off-by Sebastian Ott <[email protected]>Signed-off-by Martin Schwidefsky <[email protected]>For some non-obvious reason this kills 31 bit with your config under z/VM.
The patch below fixes this for me...
The difference for 64 vs 32 bit was probably that even ifcdev->drvwas a NULL pointer, dereferencingcdev->drv->path_eventwas also NULL by coincidence. While on 32 bit it is not NULL and the kernel jumped to somehere...With all three patches within this thread s390 with
CONFIG_64BIT=nipl's again, and the 32 bit native statfs64 syscall works as well.However I would strongly suggest to use
CONFIG_64BIT=ywithCONFIG_COMPAT=yinstead for (now) obvious reasons ;)Quoted 16 lines
drivers/s390/cio/device_fsm.c static void ccw_device_report_path_events(struct · line 489
Quoted 12 lines
drivers/s390/cio/device_fsm.c +1
-1@@ -484,7 +484,7 @@ static void ccw_device_report_path_events(struct ccw_device *cdev) if (mask & cdev->private->pgid_reset_mask & sch->vpm) path_event[chp] |=PE_PATHGROUP_ESTABLISHED ; } -if (cdev->online && cdev->drv->path_event) +if (cdev->online && cdev->drv && cdev->drv->path_event) cdev->drv->path_event (cdev, path_event); }looks like this patch was dropped somewhere ? i had to re-apply it to my 3.14 build to get it to boot ...
-mike
Quoted 2 lines
The commit to fix this is
2253e8d79(which is included in 3.14). I'll try an 31bit build with 3.14.
Indeed...3.14 failed. 2253e8d79 is _not_ included in 3.14 - my git-fu let me down. I used
$ git describe 2253e8d v3.14-rc3-169-g2253e8d
and assumed it was in 3.14. I usually use
$ git describe --contains 2253e8d fatal: cannot describe '2253e8d79237c69086ded391e6767afe16972527'
which should have told me that there is no tag after this commit (since there is no v3.15-rc1 yet). Sorry for the confusion. You can cherry-pick 2253e8d on top of 3.14 and it'll work.
Regards,
Sebastian