9front - general discussion about 9front
 help / color / mirror / Atom feed
* panic with newer kernels in the apu2
@ 2020-01-19 10:54 rgl
  2020-01-19 11:57 ` [9front] " rgl
  0 siblings, 1 reply; 4+ messages in thread
From: rgl @ 2020-01-19 10:54 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

hi!

i've been trying to update the kernel on my fs without any luck.
attached are the two kmesg for both, the old, working kernel
and the newest one that panics.
i noticed the hard drive is no longer identified as sdC0, but as
sdE0.

i would appreciate any feedback.

the machine provides dhcp and dns service to my network, so i
sadly won't be able to debug in real-time while on irc. :(

if there's anything else you need, dumps, the actual kernel,
anything tell me.


-rodri

[-- Attachment #2: coeus.9front.working --]
[-- Type: text/plain, Size: 2243 bytes --]

PCEngines apu2
coreboot build 20170228
4080 MB ECC DRAM

SeaBIOS (version rel-1.10.0.1)

Press F10 key now for boot menu

Booting from Hard Disk...
MBR...pbs.................ok
*e820=1 0x0000000000000000 0x000000000009f800 2 0x000000000009f800 0x00000000000a0000 2 0x00000000000f0000 0x0000000000100000 1 0x0000000000100000 0x00000000dffae000 2 0x00000000dffae000 0x00000000e0000000 2 0x00000000f8000000 0x00000000fc000000 1 0x0000000100000000 0x000000011f000000 
bootfile=9pc64
nobootprompt=local!/dev/sdC0/fscache -a tcp!*!564
bootargs=local!/dev/sdC0/fscache -a tcp!*!564
mouseport=ask
monitor=ask
vgasize=text
ccoonnssoollee==00  bb111155220000

sseerrvviiccee==ccppuu

bboooott


Plan 9
126 holes free
0x00020000 0x0009f000 520192
0x0084b000 0x4cd5d000 1280385024
1280905216 bytes free
cpu0: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
LAPIC: fee00000 0xffffff00fee00000
ELCR: 0000
cpu0: lapic clock at 100MHz
cpu1: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
cpu2: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
cpu3: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
pcirouting: Cannot find south bridge PCI.0.20.4
intrenable: got unassigned irq 0, tbdf 0xC010000 for ether0
#l0: i210: 1000Mbps port 0xFE600000 irq 0 ea 000db94a7c30
intrenable: got unassigned irq 0, tbdf 0xC020000 for ether1
#l1: i210: 1000Mbps port 0xFE700000 irq 0 ea 000db94a7c31
intrenable: got unassigned irq 0, tbdf 0xC030000 for ether2
#l2: i210: 1000Mbps port 0xFE800000 irq 0 ea 000db94a7c32
i8042: kbd init failed
usbehci: 0x1022 0x7808: port 0xfeb25400 size 0x100 irq 0
intrenable: got unassigned irq 0, tbdf 0xC009800 for ehci
usbxhci: 0x1022 0x7814: port 0xfeb22000 size 0x2000 irq 0
4080M memory: 1270M kernel data, 2809M user, 3434M swap
intrenable: got unassigned irq 0, tbdf 0xC008000 for xhci
i210: phy1 oui 0x5043
i210: phy1 oui 0x5043
i210: phy1 oui 0x5043
intrenable: got unassigned irq 0, tbdf 0xC008800 for sdC (ide)
intrenable: got unassigned irq 0, tbdf 0xC00A700 for mmc
ehci 0xffffff00feb25400: polling
current fs is "main"
11 uids read, 4 groups used
63-bit cwfs as of Fri Oct 26 11:21:09 2018
	last boot Sun Jan 19 11:20:52 2020

init: starting /bin/rc
coeus# 

[-- Attachment #3: coeus.9front.panic --]
[-- Type: text/plain, Size: 3608 bytes --]

PCEngines apu2
coreboot build 20170228
4080 MB ECC DRAM

SeaBIOS (version rel-1.10.0.1)

Press F10 key now for boot menu

Booting from Hard Disk...
MBR...pbs.................ok
*e820=1 0x0000000000000000 0x000000000009f800 2 0x000000000009f800 0x00000000000a0000 2 0x00000000000f0000 0x0000000000100000 1 0x0000000000100000 0x00000000dffae000 2 0x00000000dffae000 0x00000000e0000000 2 0x00000000f8000000 0x00000000fc000000 1 0x0000000100000000 0x000000011f000000 
bootfile=9pc64
nobootprompt=local!/dev/sdC0/fscache -a tcp!*!564
bootargs=local!/dev/sdC0/fscache -a tcp!*!564
mouseport=ask
monitor=ask
vgasize=text
ccoonnssoollee==00  bb111155220000

sseerrvviiccee==ccppuu

bboooott


Plan 9
126 holes free
0x00020000 0x0009f000 520192
0x0085b000 0x4cd68000 1280364544
1280884736 bytes free
cpu0: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
LAPIC: fee00000 0xffffff00fee00000
ELCR: 0000
cpu0: lapic clock at 100MHz
cpu1: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
cpu2: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
cpu3: 998MHz AuthenticAMD unknown (AX 00730F01 CX 36D8220B DX 178BFBFF)
pcirouting: Cannot find south bridge PCI.0.20.4
intrenable: got unassigned irq 0, tbdf 0xC010000 for ether0
#l0: i210: 1000Mbps port 0xFE600000 irq 0 ea 000db94a7c30
intrenable: got unassigned irq 0, tbdf 0xC020000 for ether1
#l1: i210: 1000Mbps port 0xFE700000 irq 0 ea 000db94a7c31
intrenable: got unassigned irq 0, tbdf 0xC030000 for ether2
#l2: i210: 1000Mbps port 0xFE800000 irq 0 ea 000db94a7c32
i8042: kbd init failed
sbsetupahci: tweaking 7800 ccru 01 ccrp 8f
#S/sdE: ahci: sata-II with 2 ports
usbehci: 0x1022 0x7808: port 0xfeb25400 size 0x100 irq 0
intrenable: got unassigned irq 0, tbdf 0xC009800 for ehci
usbxhci: 0x1022 0x7814: port 0xfeb22000 size 0x2000 irq 0
4080M memory: 1326M kernel data, 2753M user, 3378M swap
intrenable: got unassigned irq 0, tbdf 0xC008000 for xhci
cpu3: registers for boot 1
  AX FFFFFFFF8004A668  BX 0000000000000000  CX 0000000000000000
  DX FFFFFFFF8004A188  SI FFFFFFFF8004A230  DI 0000000000000000
  BP 0000000000000000  R8 FFFFFFFF807F0920  R9 FFFFFFFF807F0920
 R10 0000000000000000 R11 0000000000000202 R12 0000000000000000
 R13 00007FFFFFFFEE78 R14 FFFFFFFF8004A658 R15 FFFFFFFF80859AB8
  CS 0008   SS 0000    PC FFFFFFFF8011FE89  SP FFFFFFFF80049998
TYPE 0E  ERROR 0002 FLAGS 00010297
 CR0 80010019 CR2 000000004830244c CR3 0000000000079000 CR4 00000000000006f0
  ur 0xffffffff800498d8 up 0xffffffff8085b008
panic: fault: 0x4830244c
dumpstack
ktrace /kernel/path 0xffffffff8011757e 0xffffffff800495a0 <<EOF
estackx ffffffff80049d88
800494c0=801172d8 800494d0=8024413c 800494e8=801106d1 80049570=8011757e 
80049580=80166b80 80049598=8011757e 800495a0=801172e0 800495b0=80167107 
800495e8=801152e6 80049630=80115b74 80049638=8021282e 80049658=8021282e 
80049690=8020af73 800496b8=80117273 80049700=80117a48 80049760=80117acc 
80049770=80118694 80049788=8021cc7a 80049790=8021ac0b 800497b0=80111903 
800497d8=80116c5c 80049810=80111903 80049898=802401ea 800498c8=801106d1 
80049968=8011fe89 80049998=8020bdd4 800499a0=8020a61d 800499d0=8020bf80 
800499e8=8020bf80 800499f8=802126b2 80049a08=802126dc 80049a10=8020ad60 
80049a40=80202da2 80049a48=8020b2fa 80049a80=8020b01b 80049ab8=8020cad1 
80049ad0=8020caf0 80049af0=80117a0f 80049b18=80204d80 80049b58=80205b85 
80049b80=80218eab 80049ba0=80111903 80049bc8=80116c5c 80049c48=80117ee2 
80049cb8=801106d1 80049cd0=80117e4c 80049cf0=801102b4 80049d70=ffffef98 
80049d78=00000023 80049d80=00000023 
EOF
cpu3: exiting
cpu0: exiting
cpu1: exiting
cpu2: exiting

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] panic with newer kernels in the apu2
  2020-01-19 10:54 panic with newer kernels in the apu2 rgl
@ 2020-01-19 11:57 ` rgl
  2020-01-19 15:09   ` cinap_lenrek
  2020-01-19 15:26   ` cinap_lenrek
  0 siblings, 2 replies; 4+ messages in thread
From: rgl @ 2020-01-19 11:57 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 33 bytes --]

this is the ktrace (thanks qwx!)

[-- Attachment #2: coeus.9front.panic.ktrace --]
[-- Type: text/plain, Size: 5889 bytes --]

cpu% ktrace /amd64/9pc64 0xffffffff8011757e 0xffffffff800495a0 <<EOF
	estackx ffffffff80049d88
	800494c0=801172d8 800494d0=8024413c 800494e8=801106d1 80049570=8011757e 
	80049580=80166b80 80049598=8011757e 800495a0=801172e0 800495b0=80167107 
	800495e8=801152e6 80049630=80115b74 80049638=8021282e 80049658=8021282e 
	80049690=8020af73 800496b8=80117273 80049700=80117a48 80049760=80117acc 
	80049770=80118694 80049788=8021cc7a 80049790=8021ac0b 800497b0=80111903 
	800497d8=80116c5c 80049810=80111903 80049898=802401ea 800498c8=801106d1 
	80049968=8011fe89 80049998=8020bdd4 800499a0=8020a61d 800499d0=8020bf80 
	800499e8=8020bf80 800499f8=802126b2 80049a08=802126dc 80049a10=8020ad60 
	80049a40=80202da2 80049a48=8020b2fa 80049a80=8020b01b 80049ab8=8020cad1 
	80049ad0=8020caf0 80049af0=80117a0f 80049b18=80204d80 80049b58=80205b85 
	80049b80=80218eab 80049ba0=80111903 80049bc8=80116c5c 80049c48=80117ee2 
	80049cb8=801106d1 80049cd0=80117e4c 80049cf0=801102b4 80049d70=ffffef98 
	80049d78=00000023 80049d80=00000023 
	EOF
src(0xffffffff8011757e); // dumpstack+0x10
src(0xffffffff80167107); // panic+0xeb
src(0xffffffff80117a48); // faultamd64+0x1e1
src(0xffffffff80116c5c); // trap+0x177
src(0xffffffff801106d1); // _intrr
//passing interrupt frame; last pc found at sp=0xffffffff800498c8
src(0xffffffff8011fe89); // tlsgen+0x289
src(0xffffffff8020bf80); // ptealloc+0xe
src(0xffffffff8020ad60); // fixfault+0x387
src(0xffffffff8020b01b); // fault+0x169
src(0xffffffff80117a0f); // faultamd64+0x1a8
src(0xffffffff80116c5c); // trap+0x177
src(0xffffffff801106d1); // _intrr
//passing interrupt frame; last pc found at sp=0xffffffff80049cb8
//guessing call through invalid pointer; try again at sp=0xffffffff80049d70
//didn't find pc at sp=0xffffffffffffef98, last pc found at sp=0xffffffff80049cb8
cpu% acid /amd64/9pc64 <<EOF
	src(0xffffffff8011757e); // dumpstack+0x10
	src(0xffffffff80167107); // panic+0xeb
	src(0xffffffff80117a48); // faultamd64+0x1e1
	src(0xffffffff80116c5c); // trap+0x177
	src(0xffffffff801106d1); // _intrr
	//passing interrupt frame; last pc found at sp=0xffffffff800498c8
	src(0xffffffff8011fe89); // tlsgen+0x289
	src(0xffffffff8020bf80); // ptealloc+0xe
	src(0xffffffff8020ad60); // fixfault+0x387
	src(0xffffffff8020b01b); // fault+0x169
	src(0xffffffff80117a0f); // faultamd64+0x1a8
	src(0xffffffff80116c5c); // trap+0x177
	src(0xffffffff801106d1); // _intrr
	//passing interrupt frame; last pc found at sp=0xffffffff80049cb8
	//guessing call through invalid pointer; try again at sp=0xffffffff80049d70
	//didn't find pc at sp=0xffffffffffffef98, last pc found at sp=0xffffffff80049cb8
	EOF
/amd64/9pc64:amd64 plan 9 boot image
/sys/lib/acid/port
/sys/lib/acid/amd64
acid: /sys/src/9/pc64/trap.c:606
 601	}
 602	
 603	void
 604	dumpstack(void)
 605	{
>606		callwithureg(_dumpstack);
 607	}
 608	
 609	static void
 610	debugexc(Ureg *ureg, void *)
 611	{
acid: acid: /sys/src/9/port/devcons.c:239
 234		splx(s);
 235		prflush();
 236		dumpstack();
 237	
 238		/* reboot cpu servers and headless machines when not debugging */
>239		if(getconf("*debug") == nil)
 240		if(cpuserver || !conf.monitor)
 241			exit(1);
 242	
 243		/* otherwise, just hang */
 244		while(islo()) idlehands();
acid: acid: /sys/src/9/pc64/trap.c:717
 712		if(n < 0){
 713			if(!user){
 714				dumpregs(ureg);
 715				panic("fault: %#p", addr);
 716			}
>717			checkpages();
 718			sprint(buf, "sys: trap: fault %s addr=%#p",
 719				read ? "read" : "write", addr);
 720			postnote(up, 1, buf, NDebug);
 721		}
 722		if(!user) poperror();
acid: acid: /sys/src/9/pc64/trap.c:358
 353			}
 354			if(ctl->isr)
 355				ctl->isr(vno);
 356			for(v = ctl; v != nil; v = v->next){
 357				if(v->f)
>358					v->f(ureg, v->a);
 359			}
 360			if(ctl->eoi)
 361				ctl->eoi(vno);
 362	
 363			if(ctl->isintr){
acid: acid: /sys/src/9/pc64/l.s:964
 959		PUSHQ	SP
 960		CALL	trap(SB)
 961	
 962	TEXT _intrr(SB), 1, -4
 963	_intrestore:
>964		POPQ	AX
 965	
 966		POPQ	AX
 967		POPQ	BX
 968		POPQ	CX
 969		POPQ	DX
acid: acid: acid: /sys/src/9/port/devtls.c:326
 321					break;
 322				}
 323				perm = 0444;
 324				if(TYPE(q) == Qclonus)
 325					perm = 0555;
>326				devdir(c, q, tlsnames[TYPE(q)], 0, eve, perm, dp);
 327				return 1;
 328			}
 329			s -= 3;
 330			if(s >= tdhiwat)
 331				return -1;
acid: acid: /sys/src/9/port/page.c:372
 367	ptealloc(void)
 368	{
 369		Pte *new;
 370	
 371		new = smalloc(sizeof(Pte));
>372		new->first = &new->pages[PTEPERTAB];
 373		new->last = new->pages;
 374		return new;
 375	}
 376	
 377	void
acid: acid: /sys/src/9/port/fault.c:168
 163			panic("fault");
 164			return -1;
 165	
 166		case SG_TEXT: 			/* Demand load */
 167			if(pagedout(*pg))
>168				pio(s, addr, soff, pg);
 169	
 170			mmuphys = PPN((*pg)->pa) | PTERONLY | PTECACHED | PTEVALID;
 171			(*pg)->modref = PG_REF;
 172			break;
 173	
acid: acid: /sys/src/9/port/fault.c:320
 315			if((attr & SG_TYPE) == SG_PHYSICAL){
 316				mapphys(s, addr, attr);
 317				break;
 318			}
 319	
>320			if(fixfault(s, addr, read) == 0)
 321				break;
 322	
 323			splhi();
 324			switch(up->procctl){
 325			case Proc_exitme:
acid: acid: /sys/src/9/pc64/trap.c:712
 707			up->insyscall = insyscall;
 708			splx(s);
 709			nexterror();
 710		}
 711		n = fault(addr, ureg->pc, read);
>712		if(n < 0){
 713			if(!user){
 714				dumpregs(ureg);
 715				panic("fault: %#p", addr);
 716			}
 717			checkpages();
acid: acid: /sys/src/9/pc64/trap.c:358
 353			}
 354			if(ctl->isr)
 355				ctl->isr(vno);
 356			for(v = ctl; v != nil; v = v->next){
 357				if(v->f)
>358					v->f(ureg, v->a);
 359			}
 360			if(ctl->eoi)
 361				ctl->eoi(vno);
 362	
 363			if(ctl->isintr){
acid: acid: /sys/src/9/pc64/l.s:964
 959		PUSHQ	SP
 960		CALL	trap(SB)
 961	
 962	TEXT _intrr(SB), 1, -4
 963	_intrestore:
>964		POPQ	AX
 965	
 966		POPQ	AX
 967		POPQ	BX
 968		POPQ	CX
 969		POPQ	DX
acid: acid: acid: acid: acid: 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] panic with newer kernels in the apu2
  2020-01-19 11:57 ` [9front] " rgl
@ 2020-01-19 15:09   ` cinap_lenrek
  2020-01-19 15:26   ` cinap_lenrek
  1 sibling, 0 replies; 4+ messages in thread
From: cinap_lenrek @ 2020-01-19 15:09 UTC (permalink / raw)
  To: 9front

looks like the kernel text got corrupted or you'r using the wrong kernel
image for the ktrace.

because there are no calls in ptealloc() to tlsgen(). this is impossible.

i also got an apu2 and can see if there are any regressions...

and yes, the apu2's sata controller is now supported in ahci mode, which
is faster... thats why the drive changed from sdC0 to sdE0.

--
cinap


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] panic with newer kernels in the apu2
  2020-01-19 11:57 ` [9front] " rgl
  2020-01-19 15:09   ` cinap_lenrek
@ 2020-01-19 15:26   ` cinap_lenrek
  1 sibling, 0 replies; 4+ messages in thread
From: cinap_lenrek @ 2020-01-19 15:26 UTC (permalink / raw)
  To: 9front

ok, i tested the latest kernel on my apu2 and it works fine.

i think your kernel file might just be corrupted or maybe you
got bad ram?

i put my kernel up, if you want to test it:

term% hget http://felloff.net/usr/cinap_lenrek/9pc64 | sha1sum
8b270f65cae2de77352b787294ecc8456449f216
term% sha1sum /amd64/9pc64
8b270f65cae2de77352b787294ecc8456449f216	/amd64/9pc64

--
cinap


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-19 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 10:54 panic with newer kernels in the apu2 rgl
2020-01-19 11:57 ` [9front] " rgl
2020-01-19 15:09   ` cinap_lenrek
2020-01-19 15:26   ` cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).