Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-14 Thread Mark Cave-Ayland
On 14/08/17 21:18, Mark Kettenis wrote: >> So tracing through HME register writes it seems the difference between >> OpenBSD and the other OSs is that OpenBSD appears to write to the >> virtual address 0x40008098000 with a standard (0x80) primary ASI, >> whereas the other OSs seem to write directl

Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-14 Thread Mark Kettenis
> From: Mark Cave-Ayland > Date: Mon, 14 Aug 2017 19:59:55 +0100 > > On 14/08/17 14:25, Mark Kettenis wrote: > > >> Great, thanks for the information - the fact that the nsphy0 has been > >> detected correctly means that the access still works. Looks like I'll > >> have to go digging deeper. > >

Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-14 Thread Mark Cave-Ayland
On 14/08/17 14:25, Mark Kettenis wrote: >> Great, thanks for the information - the fact that the nsphy0 has been >> detected correctly means that the access still works. Looks like I'll >> have to go digging deeper. > > The OpenBSD code uses %asi if necessary to let the hardware do the > byteswap

Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-14 Thread Mark Kettenis
> From: Mark Cave-Ayland > Date: Mon, 14 Aug 2017 06:31:34 +0100 > > On 13/08/17 16:52, Kaashif Hymabaccus wrote: > > > Hello Mark, > > > > I have a Sun Ultra 5 with the following dmesg: > > > > console is /pci@1f,0/pci@1,1/ebus@1/se@14,40:a > > Copyright (c) 1982, 1986, 1989, 1991, 1993 >

Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-13 Thread Mark Cave-Ayland
On 13/08/17 16:52, Kaashif Hymabaccus wrote: > Hello Mark, > > I have a Sun Ultra 5 with the following dmesg: > > console is /pci@1f,0/pci@1,1/ebus@1/se@14,40:a > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright

Re: hme: incorrect register endian for PCI sun hme devices?

2017-08-13 Thread Kaashif Hymabaccus
On Sun, Aug 13, 2017 at 01:31:45PM +0100, Mark Cave-Ayland wrote: > Hi all, > > Does anyone have any real Sun hardware containing a PCI hme card running > OpenBSD, and if so does it work with the current 6.1 release? > Hello Mark, I have a Sun Ultra 5 with the following dmesg: console is /pci@

hme: incorrect register endian for PCI sun hme devices?

2017-08-13 Thread Mark Cave-Ayland
Hi all, Does anyone have any real Sun hardware containing a PCI hme card running OpenBSD, and if so does it work with the current 6.1 release? I've been working on a virtual hme device for qemu-system-sparc64 in the hope of getting working networking on *BSD images and I have a driver that now wo