mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
SCSI: arcmsr: upper 32 of dma address lost
commite2c70425f0upstream. The original code always set the upper 32 bits to zero because it was doing a shift of the wrong variable. Fixes:1a4f550a09('[SCSI] arcmsr: 1.20.00.15: add SATA RAID plus other fixes') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
daa12c3ab5
commit
84bb7edf33
@@ -2501,16 +2501,15 @@ static int arcmsr_polling_ccbdone(struct AdapterControlBlock *acb,
|
||||
static int arcmsr_iop_confirm(struct AdapterControlBlock *acb)
|
||||
{
|
||||
uint32_t cdb_phyaddr, cdb_phyaddr_hi32;
|
||||
dma_addr_t dma_coherent_handle;
|
||||
|
||||
/*
|
||||
********************************************************************
|
||||
** here we need to tell iop 331 our freeccb.HighPart
|
||||
** if freeccb.HighPart is not zero
|
||||
********************************************************************
|
||||
*/
|
||||
dma_coherent_handle = acb->dma_coherent_handle;
|
||||
cdb_phyaddr = (uint32_t)(dma_coherent_handle);
|
||||
cdb_phyaddr_hi32 = (uint32_t)((cdb_phyaddr >> 16) >> 16);
|
||||
cdb_phyaddr = lower_32_bits(acb->dma_coherent_handle);
|
||||
cdb_phyaddr_hi32 = upper_32_bits(acb->dma_coherent_handle);
|
||||
acb->cdb_phyaddr_hi32 = cdb_phyaddr_hi32;
|
||||
/*
|
||||
***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user