Re: kernel BUG while reading from SPI into static buffer

2011-05-15 Thread Felix Varghese
On 13 May 2011 20:02, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Feel free to try to observer whether this statement is correct or not... and you should check the address of buffer when declared as static I guess I did, and here's the result: Local Buffer - 0xc3a61edd Static Buffer

Re: kernel BUG while reading from SPI into static buffer

2011-05-13 Thread Mulyadi Santosa
Need to add... On Fri, May 13, 2011 at 21:32, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: OK, a bit clear now so, I can say base on the above code snippet, buffer...when declared as static, somehow falls into non ZONE_NORMAL..i.e non directly mapped memory area... what I

Re: kernel BUG while reading from SPI into static buffer

2011-05-13 Thread Greg KH
On Fri, May 13, 2011 at 12:33:15PM +0530, Felix Varghese wrote: Hi, I am trying to read some data via SPI on an a modified (custom SPI device attached) AT91SAM9G20-EK board. If I pass a local array buffer, declared as char buffer[100]; as the rx_buf pointer for the spi transfer, the code