On 12/10/16 02:42, Richard Henderson wrote:

> On 10/11/2016 04:42 PM, Mark Cave-Ayland wrote:
>> I'm fairly sure that I've tested an earlier version of this patchset,
>> however just to confirm is it just that you want a Tested-by from me of
>> this branch based upon the v6 atomics patch? If so I can run it against
>> all of my SPARC/SPARC64 test images over the next day or so.
> 
> I remember having posted bits and pieces that are in here, but not the
> whole thing at once.  Please do test wrt the atomics.

Hi Richard,

I found some time this morning to run your tgt-sparc-6 branch through my
OpenBIOS boot tests, and while SPARC32 seems to work fine, I noticed a
couple of regressions on SPARC64 as below:


$ ./qemu-system-sparc64 -cdrom debian-7.8.0-sparc-netinst.iso -nographic
-boot d
OpenBIOS for Sparc64
Configuration device id QEMU version 1 machine id 0
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Sep 12 2016 07:11
  Type 'help' for detailed information
Trying cdrom:f...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000

Jumping to entry point 0000000000004000 for type 0000000000000005...
switching to new context: entry point 0x4000 stack 0x00000000ffe8dd31
SILO Version 1.4.14
EXT2 superblock magic is wrong
EXT2 superblock magic is wrong
\


                  Welcome to Debian GNU/Linux wheezy!

This is a Debian installation CDROM, built on 20150110-20:41.
Keep it once you have installed your system, as you can boot from it
to repair the system on your hard disk if that ever becomes necessary.

WARNING: You should completely back up all of your hard disks before
  proceeding. The installation procedure can completely and irreversibly
  erase them! If you haven't made backups yet, remove the rescue CD from
  the drive and press L1-A to get back to the OpenBoot prompt.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted
by applicable law.

[ ENTER - Boot install ]   [ Type "expert" - Boot into expert mode ]
                           [ Type "rescue" - Boot into rescue mode ]
boot:
Allocated 64 Megs of memory at 0x40000000 for kernel
EXT2 superblock magic is wrong
Loaded kernel version 3.2.65
EXT2 superblock magic is wrong
Loading initial ramdisk (5047556 bytes at 0x4400000 phys, 0x40C00000
virt)...
-
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 3.10.24 1999/01/01 01:01'
[    0.000000] PROMLIB: Root node compatible: sun4u
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-4-sparc64
(debian-ker...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.65-1
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 52:54:00:12:34:56
[    0.000000] Kernel: Using 2 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1fe,0/ebus@3/su
[    0.000000] PROM: Built device tree with 33902 bytes of memory.
[    0.000000] Top of RAM: 0x7e80000, Total RAM: 0x7e80000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00003f40
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00003f40
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
[    0.000000] CPU CAPS: [vis]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 16065
[    0.000000] Kernel command line:
[    0.000000] PID hash table entries: 512 (order: -1, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 131072
bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 65536 bytes)
[    0.000000] Memory: 110256k available (3440k kernel code, 1432k data,
192k init) [fffff80000000000,0000000007e80000]
[    0.000000] NR_IRQS:255
[    0.000000] clocksource: mult[a000000] shift[24]
[    0.000000] clockevent: mult[1999999a] shift[32]
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled, bootconsole disabled
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 3.10.24 1999/01/01 01:01'
[    0.000000] PROMLIB: Root node compatible: sun4u
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-4-sparc64
(debian-ker...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.65-1
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 52:54:00:12:34:56
[    0.000000] Kernel: Using 2 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1fe,0/ebus@3/su
[    0.000000] PROM: Built device tree with 33902 bytes of memory.
[    0.000000] Top of RAM: 0x7e80000, Total RAM: 0x7e80000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00003f40
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00003f40
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
[    0.000000] CPU CAPS: [vis]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 16065
[    0.000000] Kernel command line:
[    0.000000] PID hash table entries: 512 (order: -1, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 131072
bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 65536 bytes)
[    0.000000] Memory: 110256k available (3440k kernel code, 1432k data,
192k init) [fffff80000000000,0000000007e80000]
[    0.000000] NR_IRQS:255
[    0.000000] clocksource: mult[a000000] shift[24]
[    0.000000] clockevent: mult[1999999a] shift[32]
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled, bootconsole disabled
[    9.944493] Calibrating delay using timer specific routine.. 205.32
BogoMIPS (lpj=410658)
[    9.944727] pid_max: default: 32768 minimum: 301
[    9.945519] Security Framework initialized
[    9.947091] AppArmor: AppArmor disabled by boot time parameter
[    9.947474] Mount-cache hash table entries: 512
[    9.954629] Initializing cgroup subsys cpuacct
[    9.954743] Initializing cgroup subsys memory
[    9.955197] Initializing cgroup subsys devices
[    9.955311] Initializing cgroup subsys freezer
[    9.955380] Initializing cgroup subsys net_cls
[    9.955445] Initializing cgroup subsys blkio
[    9.955518] Initializing cgroup subsys perf_event
[    9.964210] Performance events: No support for PMU type 'ultra12'
[    9.974882] devtmpfs: initialized
[    9.983740] print_constraints: dummy:
[    9.985728] NET: Registered protocol family 16
[    9.998038] /pci@1f,0: PCI IO[1fe02000000] MEM[1ff00100000]
[    9.998333] /pci@1f,0: Unable to request IOMMU resource.
[    9.998399] /pci@1f,0: SABRE PCI Bus Module ver[0:0]
[    9.998474] PCI: Scanning PBM /pci@1f,0
[   10.015193] bio: create slab <bio-0> at 0
[   10.020323] vgaarb: device added:
PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[   10.020632] vgaarb: loaded
[   10.020709] vgaarb: bridge control possible 0000:00:02.0
[   10.027428] /pci@1f,0/ebus@3/eeprom@14,2000: Mostek regs at 0x1fe02006000
[   10.029297] Switching to clocksource tick
[   10.070217] NET: Registered protocol family 2
[   10.080524] IP route cache hash table entries: 1024 (order: 0, 8192
bytes)
[   10.084637] TCP established hash table entries: 4096 (order: 3, 65536
bytes)
[   10.084836] TCP bind hash table entries: 4096 (order: 2, 32768 bytes)
[   10.085176] TCP: Hash tables configured (established 4096 bind 4096)
[   10.085305] TCP reno registered
[   10.085432] UDP hash table entries: 256 (order: 0, 8192 bytes)
[   10.085710] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[   10.087281] NET: Registered protocol family 1
[   10.091561] Unpacking initramfs...
[   10.584929] Freeing initrd memory: 4929k freed
[   10.589673] audit: initializing netlink socket (disabled)
[   10.590285] type=2000 audit(0.724:1): initialized
[   10.647840] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[   10.650871] VFS: Disk quotas dquot_6.5.2
[   10.651120] Dquot-cache hash table entries: 1024 (order 0, 8192 bytes)
[   10.653017] msgmni has been set to 224
[   10.665898] alg: No test for stdrng (krng)
[   10.666376] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[   10.666619] io scheduler noop registered
[   10.666697] io scheduler deadline registered
[   10.666915] io scheduler cfq registered (default)
[   10.672105] ffe2f268: ttyS0 at MMIO 0x1fe020043f8 (irq = 5) is a 16550A
[   10.672340] Console: ttyS0 (SU)
[   10.697792] console [ttyS0] enabled
[   10.705612] mousedev: PS/2 mouse device common for all mice
[   10.710138] rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0
[   10.712641] TCP cubic registered
[   10.713356] NET: Registered protocol family 10
[   10.722478] Mobile IPv6
[   10.722872] NET: Registered protocol family 17
[   10.723357] Registering the dns_resolver key type
[   10.724774] registered taskstats version 1
[   10.726810] rtc-m48t59 rtc-m48t59.0: setting system clock to
2016-10-15 07:43:43 UTC (1476517423)
[   10.727487] Initializing network drop monitor service
udevd[63]: '/sbin/modprobe -b of:NpciTpciCpci108e,5000Cpciclass,060400'
[74] terminated by signal 10 (Bus error)

udevd[64]: '/sbin/modprobe -b of:NSUNW,UltraSPARC-IIiTcpu' [70]
terminated by signal 10 (Bus error)

steal-ctty: No such file or directory
steal-ctty: No such file or directory


$ ./qemu-system-sparc64 -cdrom FreeBSD-10.3-RELEASE-sparc64-bootonly.iso
-m 256 -nographic -boot d
OpenBIOS for Sparc64
Configuration device id QEMU version 1 machine id 0
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Sep 12 2016 07:11
  Type 'help' for detailed information
Trying cdrom:f...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000

Jumping to entry point 0000000000004000 for type 0000000000000005...
switching to new context: entry point 0x4000 stack 0x00000000ffe8dd31

>> FreeBSD/sparc64 boot block
   Boot path:   /pci@1fe,0/pci-ata@5/ide1@8200/cdrom@0:f
   Boot loader: /boot/loader
Consoles: Open Firmware console

FreeBSD/sparc64 bootstrap loader, Revision 1.0
(r...@releng1.nyi.freebsd.org, Fri Mar 25 06:23:20 UTC 2016)
bootpath="/pci@1fe,0/pci-ata@5/ide1@8200/cdrom@0:a"
Loading /boot/defaults/loader.conf
/boot/kernel/kernel data=0xbc4540+0xe62a0 syms=[0x8+0xcc060+0x8+0xbe0ae]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
jumping to kernel entry at 0xc00a8000.
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 06:26:08 UTC 2016

r...@releng1.nyi.freebsd.org:/usr/obj/sparc64.sparc64/usr/src/sys/GENERIC
sparc64
gcc version 4.2.1 20070831 patched [FreeBSD]
real memory  = 268435456 (256 MB)
panic: trap: data access error (kernel)
cpuid = 0
KDB: stack backtrace:
#0 0xc0581ca0 at panic+0x20
#1 0xc08e9e54 at trap+0x554
Uptime: 1s


ATB,

Mark.


Reply via email to