Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0555659d63c285ceb7ead3115532e1b71b0f27a7
Commit:     0555659d63c285ceb7ead3115532e1b71b0f27a7
Parent:     f412bf440be2dfc0f0ded917410c599c002549e0
Author:     Stefan Richter <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 4 20:25:43 2007 +0100
Committer:  Stefan Richter <[EMAIL PROTECTED]>
CommitDate: Mon Apr 30 00:00:27 2007 +0200

    ieee1394: sbp2: enforce 32bit DMA mapping
    
    In order to use OHCI-1394 physical DMA, all s/g elements, s/g tables,
    ORBs, and response buffers have to reside within the first 4 GB of the
    FireWire controller's physical address space.  Set the correct mask for
    DMA mappings.
    
    Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
---
 drivers/ieee1394/sbp2.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c
index 4edfff4..e15b5d7 100644
--- a/drivers/ieee1394/sbp2.c
+++ b/drivers/ieee1394/sbp2.c
@@ -757,6 +757,11 @@ static struct sbp2_lu *sbp2_alloc_device(struct 
unit_directory *ud)
                        SBP2_ERR("failed to register lower 4GB address range");
                        goto failed_alloc;
                }
+#else
+               if (dma_set_mask(hi->host->device.parent, DMA_32BIT_MASK)) {
+                       SBP2_ERR("failed to set 4GB DMA mask");
+                       goto failed_alloc;
+               }
 #endif
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to