* Re: [PATCH] move consistent_dma_mask to the generic device
@ 2004-03-15 21:39 Bjorn Helgaas
2004-03-15 21:48 ` James Bottomley
2004-03-15 21:55 ` Bjorn Helgaas
0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2004-03-15 21:39 UTC (permalink / raw)
To: linux-ia64
The patch that moved and renamed consistent_dma_mask neglected
to fix up arch/ia64/hp/common/sba_iommu.c. I think we need the
attached patch (booted, but not otherwise tested):
=== arch/ia64/hp/common/sba_iommu.c 1.38 vs edited ==--- 1.38/arch/ia64/hp/common/sba_iommu.c Fri Feb 27 03:16:24 2004
+++ edited/arch/ia64/hp/common/sba_iommu.c Mon Mar 15 14:29:15 2004
@@ -1055,13 +1055,13 @@
*dma_handle = virt_to_phys(addr);
#ifdef ALLOW_IOV_BYPASS
- ASSERT(to_pci_dev(dev)->consistent_dma_mask);
+ ASSERT(to_pci_dev(dev)->dev.coherent_dma_mask);
/*
** Check if the PCI device can DMA to ptr... if so, just return ptr
*/
- if (likely((*dma_handle & ~to_pci_dev(dev)->consistent_dma_mask) = 0)) {
+ if (likely((*dma_handle & ~to_pci_dev(dev)->dev.coherent_dma_mask) = 0)) {
DBG_BYPASS("sba_alloc_coherent() bypass mask/addr: 0x%lx/0x%lx\n",
- to_pci_dev(dev)->consistent_dma_mask, *dma_handle);
+ to_pci_dev(dev)->dev.coherent_dma_mask, *dma_handle);
return addr;
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] move consistent_dma_mask to the generic device
2004-03-15 21:39 [PATCH] move consistent_dma_mask to the generic device Bjorn Helgaas
@ 2004-03-15 21:48 ` James Bottomley
2004-03-15 21:55 ` Bjorn Helgaas
1 sibling, 0 replies; 3+ messages in thread
From: James Bottomley @ 2004-03-15 21:48 UTC (permalink / raw)
To: linux-ia64
On Mon, 2004-03-15 at 16:39, Bjorn Helgaas wrote:
> The patch that moved and renamed consistent_dma_mask neglected
> to fix up arch/ia64/hp/common/sba_iommu.c. I think we need the
> attached patch (booted, but not otherwise tested):
How did that happen? I thought I fixed up all of sba_iommu, oh well.
erm, the patch is a bit redundant isn't it?
&to_pci_dev(dev)->dev = dev
James
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] move consistent_dma_mask to the generic device
2004-03-15 21:39 [PATCH] move consistent_dma_mask to the generic device Bjorn Helgaas
2004-03-15 21:48 ` James Bottomley
@ 2004-03-15 21:55 ` Bjorn Helgaas
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2004-03-15 21:55 UTC (permalink / raw)
To: linux-ia64
On Monday 15 March 2004 2:48 pm, James Bottomley wrote:
> erm, the patch is a bit redundant isn't it?
>
> &to_pci_dev(dev)->dev = dev
Ah, ok, how about this:
=== arch/ia64/hp/common/sba_iommu.c 1.38 vs edited ==--- 1.38/arch/ia64/hp/common/sba_iommu.c Fri Feb 27 03:16:24 2004
+++ edited/arch/ia64/hp/common/sba_iommu.c Mon Mar 15 14:51:33 2004
@@ -1055,13 +1055,13 @@
*dma_handle = virt_to_phys(addr);
#ifdef ALLOW_IOV_BYPASS
- ASSERT(to_pci_dev(dev)->consistent_dma_mask);
+ ASSERT(dev->coherent_dma_mask);
/*
** Check if the PCI device can DMA to ptr... if so, just return ptr
*/
- if (likely((*dma_handle & ~to_pci_dev(dev)->consistent_dma_mask) = 0)) {
+ if (likely((*dma_handle & ~dev->coherent_dma_mask) = 0)) {
DBG_BYPASS("sba_alloc_coherent() bypass mask/addr: 0x%lx/0x%lx\n",
- to_pci_dev(dev)->consistent_dma_mask, *dma_handle);
+ dev->coherent_dma_mask, *dma_handle);
return addr;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-15 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-15 21:39 [PATCH] move consistent_dma_mask to the generic device Bjorn Helgaas
2004-03-15 21:48 ` James Bottomley
2004-03-15 21:55 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox