Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/mipsco
Module Name: src
Committed By: tsutsui
Date: Sat Apr 26 07:33:14 UTC 2025
Modified Files:
src/sys/arch/mipsco/include: bus.h
src/sys/arch/mipsco/mipsco: bus_dma.c
Log Message:
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.26 -r1.27 src/sys/arch/mipsco/include/bus.h
cvs rdiff -u -r1.31 -r1.32 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