Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sys/arch/mipsco



Module Name:    src
Committed By:   martin
Date:           Fri May  9 12:02:04 UTC 2025

Modified Files:
        src/sys/arch/mipsco/include [netbsd-10]: bus.h
        src/sys/arch/mipsco/mipsco [netbsd-10]: bus_dma.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1107):

        sys/arch/mipsco/mipsco/bus_dma.c: revision 1.32
        sys/arch/mipsco/include/bus.h: revision 1.27

Unbreak bus_dmamem_map for mipsco.

Patch is sent from Miod Vallat:
The switch to common code in 2009 did not account for private fields in
bus_dma_segment_t, which are now left uninitialized but were relied upon
by bus_dmamem_map().
Remove these fields as their values were trivial to compute from the MI
fields.

This gives Ethernet and SCSI a chance to work again on this platform.
"switch to common code in 2009" was the following commit:

 https://mail-index.netbsd.org/source-changes/2009/08/21/msg224405.html

We should eventually switch to the common mips bus_dma and it still
requires private _ds_vaddr for VIPT cache in MIPS3 case, but for now
his priority is to unbreak the code before attempting to improve it.

Note it looks the private _ds_paddr for mipsco was also pulled from
NetBSD/arc, where DMA address != physical address on jazzio devices.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.16.1 src/sys/arch/mipsco/include/bus.h
cvs rdiff -u -r1.31 -r1.31.4.1 src/sys/arch/mipsco/mipsco/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index