linux-hardened/include/asm-arm/arch-ixp2000
Lennert Buytenhek 931db7d688 [ARM] 3050/1: remove ixp2000_reg_write erratum #66 workaround
Patch from Lennert Buytenhek

The workaround that we do for avoiding triggering ixp2400 erratum #66
involves mapping I/O pages using XCB=101 instead of XCB=000 so that we
prevent the I/O signal to the gasket from being asserted (which can
cause data corruption.)  But XCB=101 mappings are write-buffered while
mappings using XCB=000 are not, which is why if we use XCB=101 mappings
we do a readback for every CSR store in an attempt to make sure that
the store has been pushed out of the xscale core and the gasket.

Unfortunately, there are two issues with this:
- we do a readback for every CSR store, which is wrong, because the
  register we are writing to might have unwanted side-effects on read,
  for example, in the case of the scratchpad ring enqueue/dequeue
  registers; and
- the readback is totally ineffective in the way we currently do it,
  because we just issue a load but do not issue any instruction that
  depends on the return value of that load, so the xscale core does
  not wait for the load to complete before continuing.

See this linux-arm-kernel mailing list post for further information:
	http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2005-September/031314.html

This means that my ixp2400 boxes have been running for many months
without a working readback in ixp2000_reg_write, without any apparent
adverse effects.  Two of them have been running for a week now with
the actual readback deleted from ixp2000_reg_write, also without any
apparent ill effects.

So, because in its current form it does more harm than good, the
readback in ixp2000_reg_write should simply be killed, as the patch
below does.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-10-29 16:28:26 +01:00
..
debug-macro.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
enp2611.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry-macro.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gpio.h [PATCH] ARM: 2744/1: ixp2000 gpio irq support 2005-06-24 20:54:35 +01:00
hardware.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io.h [ARM] 1/4: Move include of asm/hardware.h to asm-arm/arch-*/io.h 2005-10-28 10:20:25 +01:00
irq.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irqs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ixdp2x00.h [PATCH] ARM: 2753/1: move ixdp* cpld mappings 2005-06-26 22:24:13 +01:00
ixdp2x01.h [PATCH] ARM: 2753/1: move ixdp* cpld mappings 2005-06-26 22:24:13 +01:00
ixp2000-regs.h [ARM] 2908/1: add register definitions for ixp2000 msf 2005-10-28 15:31:45 +01:00
memory.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
param.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
platform.h [ARM] 3050/1: remove ixp2000_reg_write erratum #66 workaround 2005-10-29 16:28:26 +01:00
system.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
timex.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uncompress.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmalloc.h [PATCH] ARM: 2754/1: move ixp2000 VMALLOC_END up 2005-06-26 22:24:14 +01:00