[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-next68k/52205: Wrong locator on zsc at intio line in dmesg
>Synopsis: Wrong locator on zsc at intio line in dmesg
>Arrival-Date: Sun Apr 30 20:05:00 +0000 2017
>Originator: Miod Vallat
Devices attaching to intio(4) are responsible for updating the ia_addr field of their attach args, in order for intioprint to print it.
However, sys/arch/next68k/dev/zsc.c sets ia_addr to the virtual address where the registers are mapped, instead of the physical address.
This causes inconsistency in dmesg:
intio0 at mainbus0
esp0 at intio0 addr 0x2114000
zsc0 at intio0 addr 0x3fa000
nextdma0 at intio0 addr 0x2000010: channel 0 (scsi)
nextdma1 at intio0 addr 0x2000110: channel 1 (enetx)
nextdma2 at intio0 addr 0x2000150: channel 2 (enetr)
xe0 at intio0 addr 0x2106000
and the address will change from one kernel to another.
In sys/arch/next68k/dev/zs.c zs_match(), set ia_addr to NEXT_P_SCC rather than IIOV(NEXT_P_SCC).
Main Index |
Thread Index |