Merge tag 'arm64-mmiowb' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull mmiowb removal from Will Deacon: "Remove Mysterious Macro Intended to Obscure Weird Behaviours (mmiowb()) Remove mmiowb() from the kernel memory barrier API and instead, for architectures that need it, hide the barrier inside spin_unlock() when MMIO has been performed inside the critical section. The only relatively recent changes have been addressing review comments on the documentation, which is in a much better shape thanks to the efforts of Ben and Ingo. I was initially planning to split this into two pull requests so that you could run the coccinelle script yourself, however it's been plain sailing in linux-next so I've just included the whole lot here to keep things simple" * tag 'arm64-mmiowb' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (23 commits) docs/memory-barriers.txt: Update I/O section to be clearer about CPU vs thread docs/memory-barriers.txt: Fix style, spacing and grammar in I/O section arch: Remove dummy mmiowb() definitions from arch code net/ethernet/silan/sc92031: Remove stale comment about mmiowb() i40iw: Redefine i40iw_mmiowb() to do nothing scsi/qla1280: Remove stale comment about mmiowb() drivers: Remove explicit invocations of mmiowb() drivers: Remove useless trailing comments from mmiowb() invocations Documentation: Kill all references to mmiowb() riscv/mmiowb: Hook up mmwiob() implementation to asm-generic code powerpc/mmiowb: Hook up mmwiob() implementation to asm-generic code ia64/mmiowb: Add unconditional mmiowb() to arch_spin_unlock() mips/mmiowb: Add unconditional mmiowb() to arch_spin_unlock() sh/mmiowb: Add unconditional mmiowb() to arch_spin_unlock() m68k/io: Remove useless definition of mmiowb() nds32/io: Remove useless definition of mmiowb() x86/io: Remove useless definition of mmiowb() arm64/io: Remove useless definition of mmiowb() ARM/io: Remove useless definition of mmiowb() mmiowb: Hook up mmiowb helpers to spinlocks and generic I/O accessors ...
This commit is contained in:
@@ -1826,7 +1826,6 @@ static int vxge_poll_msix(struct napi_struct *napi, int budget)
|
||||
vxge_hw_channel_msix_unmask(
|
||||
(struct __vxge_hw_channel *)ring->handle,
|
||||
ring->rx_vector_no);
|
||||
mmiowb();
|
||||
}
|
||||
|
||||
/* We are copying and returning the local variable, in case if after
|
||||
@@ -2234,8 +2233,6 @@ static irqreturn_t vxge_tx_msix_handle(int irq, void *dev_id)
|
||||
vxge_hw_channel_msix_unmask((struct __vxge_hw_channel *)fifo->handle,
|
||||
fifo->tx_vector_no);
|
||||
|
||||
mmiowb();
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
@@ -2272,14 +2269,12 @@ vxge_alarm_msix_handle(int irq, void *dev_id)
|
||||
*/
|
||||
vxge_hw_vpath_msix_mask(vdev->vpaths[i].handle, msix_id);
|
||||
vxge_hw_vpath_msix_clear(vdev->vpaths[i].handle, msix_id);
|
||||
mmiowb();
|
||||
|
||||
status = vxge_hw_vpath_alarm_process(vdev->vpaths[i].handle,
|
||||
vdev->exec_mode);
|
||||
if (status == VXGE_HW_OK) {
|
||||
vxge_hw_vpath_msix_unmask(vdev->vpaths[i].handle,
|
||||
msix_id);
|
||||
mmiowb();
|
||||
continue;
|
||||
}
|
||||
vxge_debug_intr(VXGE_ERR,
|
||||
|
@@ -1399,11 +1399,7 @@ static void __vxge_hw_non_offload_db_post(struct __vxge_hw_fifo *fifo,
|
||||
VXGE_HW_NODBW_GET_NO_SNOOP(no_snoop),
|
||||
&fifo->nofl_db->control_0);
|
||||
|
||||
mmiowb();
|
||||
|
||||
writeq(txdl_ptr, &fifo->nofl_db->txdl_ptr);
|
||||
|
||||
mmiowb();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user