Re: Problem reading and programming memory location...

2013-11-16 Thread neorf3k
Hi Anatolij, thank you so much for you answer… monday i’ll test… i answer you just to complete the information: we are using an mpc5200b and the details for that reg located at: 0x1002 are: Chip select 4 specification: Lp_cs4 bus size: 8 bit bus control: 2 wait state R/W ACK disabled size al

[PATCH] powerpc/pseries: duplicate dtl entries sometimes sent to userspace

2013-11-16 Thread Anton Blanchard
When reading from the dispatch trace log (dtl) userspace interface, I sometimes see duplicate entries. One example: # hexdump -C dtl.out 07 04 00 0c 00 00 48 44 00 00 00 00 00 00 00 00 0010 00 0c a0 b4 16 83 6d 68 00 00 00 00 00 00 00 00 0020 00 00 00 00 10 00 13 50 80 00

Re: [PATCH 16/51] DMA-API: ppc: vio.c: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-11-16 Thread Russell King - ARM Linux
On Fri, Nov 15, 2013 at 05:16:55PM +0100, Cedric Le Goater wrote: > The new helper routine dma_set_mask_and_coherent() breaks the > initialization of the pseries vio devices which do not have an > initial dev->dma_mask. I think we need to use dma_coerce_mask_and_coherent() > instead. Who wants t

Re: Problem reading and programming memory location...

2013-11-16 Thread Anatolij Gustschin
Hi Lorenzo, see my comments below. On Fri, 15 Nov 2013 17:27:30 +0100 neorf3k wrote: > Hello again, I’ve tried this code, but we are not able to > change cs4 reg value… what could be? > > — > > #define MALab_DEVICE_NAME "MALab" > #define MPC5xxx_MM_CS4_START (MBAR_BASE + 0x0024) > #defin