pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/51103: Updates for ski emulator
The following reply was made to PR pkg/51103; it has been noted by GNATS.
From: scole_mail%gmx.com@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/51103: Updates for ski emulator
Date: Fri, 27 May 2016 16:33:17 -0400
I've been looking at the "Page Not Present" error with ski. It seems
that error can be avoided with a small change to
src/sys/arch/ia64/ia64/vm_machdep.c:
Index: vm_machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/ia64/ia64/vm_machdep.c,v
retrieving revision 1.11
diff -b -u -r1.11 vm_machdep.c
--- vm_machdep.c 10 Feb 2011 14:46:46 -0000 1.11
+++ vm_machdep.c 27 May 2016 20:17:48 -0000
@@ -84,7 +84,7 @@
void (*func)(void *), void *arg)
{
struct pcb *pcb1, *pcb2;
- struct trapframe *tf;
+ struct trapframe * volatile tf;
pcb1 = lwp_getpcb(l1);
pcb2 = lwp_getpcb(l2);
The bad page access was being cause by a ld8 r15 .... when
r15=0. Adding print/debug statements after tf got assigned caused the
error to go away also.
Here are some results:
scole@dstar:~/nbsd/ski> bski skiload
Console: ia64 SKI console
NetBSD/ia64 ia64 SKI boot, Revision 0.1 (Tue May 24 10:59:56 EDT 2016)
Type '?' for a list of commands, 'help' for more detailed help.
OK boot
8779504+108392+117312 [151226+197880+133066]=0x8f0180
netbsd entry at 0xe000000004008000
Entering netbsd at 0xe000000004008000...
PAL code mapped by the kernel's TR
PAL Proc at 0xe000000000101790
SAL Proc at 0xe000000000101890, GP at 0xe0000000001a04b8
SAL: AP wake-up vector: 0xff
Platform clock frequency 133338184 Hz
Processor ratio 11/2, Bus ratio 1/1, ITC ratio 11/2
MD 0xe0000000001a0060: type 13 pa 0x100000 cnt 0x400
MD 0xe0000000001a0088: type 7 pa 0x500000 cnt 0x8000
Descriptor 0xe0000000001a0088 contains kernel
Loading chunk before kernel: 0x140 / 0x1000
Loading chunk after kernel: 0x123e / 0x2140
MD 0xe0000000001a00b0: type 7 pa 0x100000000 cnt 0x4000
Skipping memory chunk start 0x100000000
MD 0xe0000000001a00d8: type 12 pa 0xffffc000000 cnt 0x4000
ptc.e base=0x0, count1=1, count2=1, stride1=0x0, stride2=0x0
Processor supports 18 Region ID bits
Trying VHPT size 0x10000
Putting VHPT at 0xe000000000590000
vhpt base = e000000000590000
vhpt size = 10000
Loaded initial symtab at 0xe00000000489f4b8, strtab at 0xe0000000048cf9b0, # entries 8220
pmap_reference(0xe0000000048609c0)
Detected memory = 134217728 (128 MB)
Physical memory chunk(s):
0x0000000000588000 - 0x000000000058ffff, 32768 bytes (2 pages)
0x00000000006c8000 - 0x0000000003ffffff, 59998208 bytes (3662 pages)
0x00000000048f8000 - 0x00000000084fffff, 62947328 bytes (3842 pages)
Total number of segments: vm_nphysseg = 3
pmap_reference(0xe0000000048609c0)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.29 (GENERIC.SKI) #0: Fri May 27 16:09:34 EDT 2016
scole@dstar:/home/scole/nbsd/src/sys/arch/ia64/compile/obj/GENERIC.SKI
total memory = 128 MB
avail memory = 117 MB
Warning: no FPSWA package supplied
Table 'APIC' at 0xe00000000011fa00
pmap_reference(0xe0000000048609c0)
pmap_reference(0xe0000000048609c0)
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
ACPI: RSDP 0x000000000011F9B0 00002C (v02 FBSD )
ACPI: XSDT 0x000000000011F9D4 00002C (v00 FBSD SKI 00000000 FBSD 00000000)
ACPI BIOS Warning (bug): Incorrect checksum in table [APIC] - 0x00, should be 0x0C (20160422/tbprint-233)
ACPI: APIC 0x000000000011FA00 000080 (v00 FBSD SKI 00000000 FBSD 00000000)
ACPI Exception: AE_NO_ACPI_TABLES, While loading namespace from ACPI tables (20160422/tbxfload-111)
ACPI Warning: AcpiEnable failed (20160422/utxfinit-184)
acpi_probe: failed to enable subsystem
ACPI Error: Could not remove SCI handler (20160422/evmisc-312)
acpi0 at mainbus0: Intel ACPICA 20160422
acpi0: X/RSDT: OemId < FBSD, SKI,00000000>, AslId <FBSD,00000000>
ACPI Warning: AcpiEnable failed (20160422/utxfinit-184)
acpi_attach: failed to initialize ACPI: AE_NO_ACPI_TABLES
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "ia64_timecounter" frequency 733360012 Hz quality 100
rn_init: radix functions require max_keylen be set
pmap_create()
WARNING: can't figure what device matches "XXX"
md0: internal 4096 KB image area
root on md0a dumps on md0b
cannot mount root, error = 22
root device (default md0a):
-----------------------------------------------------------------
Just for a quick test, I tried to boot real hardware and no longer got
the same "Page Not Present Error" (http://gnats.netbsd.org/49717), but
this new one:
[dmesg snipped...]
acpi0 at mainbus0: Intel ACPICA 20160422
acpi0: X/RSDT: OemId < HP, rx2600,00000000>, AslId < HP,00000000>
fatal kernel trap (cpu 0):
trap vector = 0x1e (Unaligned Reference)
cr.iip = 0xe00000000406fe20
cr.ipsr = 0x1010080a2010 (mfl,ic,dt,dfh,rt,cpl=0,it,ri=0,bn)
cr.isr = 0x400000000 (code=0,vector=0,r,ei=0)
cr.ifa = 0xc0000000ff5c1016
curlwp = 0xe000000004476ac0
pid = 0, comm = system
Stopped in pid 0.1 (system) at netbsd:AcpiOsReadMemory+0x160: [M0] ld4.acq r
14=r8
db>
Anyway, I guess that is some small progess.
I'm not sure how much needs to be done with pmap if anything, but there
seems like there is still much unfinished besides that. I'll post on
the ia64 list from now on unless I find more ski issues.
Thanks
Home |
Main Index |
Thread Index |
Old Index