bus_get_dma_tag now necessary for drivers using bus_dma
- From: John-Mark Gurney <gurney_j@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Sep 2006 10:33:35 -0700
Over the weekend, I integrated some infastructure from the sun4v port.
It is the ability to have different bus_dma_tag_t's for different
parts of the device tree. This is necessary on systems like sparc64
and sun4v that have different IOMMU's for different pci domains.
sparc64 glossed over this difference by programming both IOMMU's
exactly the same, but I decided to fix this for sun4v.
This means that for each call to bus_dma_tag_create, instead of passing
a NULL pointer, you should call bus_get_dma_tag(yourdev) and use that
as the parent tag. I committed some example code to various drivers,
such as ahc, ata, em, and ohci.
There is currently no functional change to the tree w/ this change.
The driver changes will need to be done by hand as the device_t of the
current device is not always obviously available at the time
bus_dma_tag_create is called.
Patches are welcome for the remaining unconverted drivers.
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: bus_get_dma_tag now necessary for drivers using bus_dma
- From: mjacob
- Re: bus_get_dma_tag now necessary for drivers using bus_dma
- From: Poul-Henning Kamp
- Re: bus_get_dma_tag now necessary for drivers using bus_dma
- Prev by Date: Re: BSDStats - What is involved ... ?
- Next by Date: Re: bus_get_dma_tag now necessary for drivers using bus_dma
- Previous by thread: Re: BSDStats - What is involved ... ?
- Next by thread: Re: bus_get_dma_tag now necessary for drivers using bus_dma
- Index(es):
Relevant Pages
- bus_get_dma_tag now necessary for drivers using bus_dma
... I integrated some infastructure from the sun4v port. ... It is the ability
to have different bus_dma_tag_t's for different ... parts of the device tree. ...
Patches are welcome for the remaining unconverted drivers. ... (freebsd-current) - Re: bus_get_dma_tag now necessary for drivers using bus_dma
... A __FreeBSD_version value of 700020 can be used in your drivers to distinguish the
OS source that has the requirement and that which doesn't. ... parts of the device tree.
... and sun4v that have different IOMMU's for different pci domains. ... but I decided
to fix this for sun4v. ... (freebsd-arch) - Re: bus_get_dma_tag now necessary for drivers using bus_dma
... A __FreeBSD_version value of 700020 can be used in your drivers to distinguish the
OS source that has the requirement and that which doesn't. ... parts of the device tree.
... and sun4v that have different IOMMU's for different pci domains. ... but I decided
to fix this for sun4v. ... (freebsd-current)