Skip to contentSkip to conversation

linux-3.10+: unable to boot 31bit builds

DISCUSSION Sebastian Ott 1 participant 1 message Apr 2, 2014 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): alpine.LFD.2.11.1404021657140.10939@denkbrett

#1 lore raw

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 14556b33f2a5d6a3bc75cd33b709452a31555b25

Author: Sebastian Ott <[email protected]>
Date:   Sat Apr 13 13:03:54 2013 +0200

s390/css: introduce cio_register_early_subchannels

Use cio_register_early_subchannels to 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

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 if cdev->drv was a NULL pointer, dereferencing cdev->drv->path_event was 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=n ipl's again, and the 32 bit native statfs64 syscall works as well.

However I would strongly suggest to use CONFIG_64BIT=y with CONFIG_COMPAT=y instead 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
index c7638c543250..b19ab38a5e9a 100644
@@ -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