Re: [PATCH] powerpc/44x: fix ocm_block allocation

2013-12-09 Thread Ilia Mirkin
On Mon, Dec 9, 2013 at 3:38 AM, Vinh Huu Tuong Nguyen wrote: > > Hi Ilia Mirkin, > Thanks for your info. I did investigated why our test didn't detect it and > found out that > the struct ocm_block is only used on ocm_debugfs_show function when we want to > know information about ocm and it's ava

Re: [PATCH] powerpc/44x: fix ocm_block allocation

2013-12-09 Thread Vinh Huu Tuong Nguyen
Hi Ilia Mirkin, Thanks for your info. I did investigated why our test didn't detect it and found out that the struct ocm_block is only used on ocm_debugfs_show function when we want to know information about ocm and it's available when we enable debugfs. But our test only tried to use the OCM block

[PATCH] powerpc/44x: fix ocm_block allocation

2013-12-06 Thread Ilia Mirkin
Allocate enough memory for the ocm_block structure, not just a pointer to it. Signed-off-by: Ilia Mirkin --- I have neither the hardware to test nor the toolchain to even build-test this. However this seems like a fairly obvious fix (and I have to wonder how this ever worked at all). Found with