Subject: Re: 64-bit bus_addr_t (Re: sparc/dev/sbus.c rev 1.43 problem)
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 12/31/2001 23:35:43
On Sat, Dec 29, 2001 at 17:04:01 +0300, Valeriy E. Ushakov wrote:
> I haven't checked all the implications, but it seems that for sparc
> sbus_bus_addr should be g/c'ed and in sys/dev/sbus/* all its uses
> should be converted from sbus_bus_addr(tag, slot, offset) to
> BUS_ADDR(slot, offset).
>
> I'm not sure about sparc64, but from a quick glance it does
> pre-translation in sbus_bus_addr and then just forwards sbus mmap to
> physical mmap (since address is already pretranslated). So any fix in
> this area should be coordinated with sparc64 (hi, eeh).
I've commited an interim fix that makes sbus_bus_addr on sparc just
return BUS_ADDR(slot, offset). It fixes framebuffer drivers in
sys/dev/sbus for sparc (thanks Juergen for testing that for me).
Happy New Year everyone!
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen