Re: memblock_reserve or memblock_remove to reserve a page

2016-10-03 Thread Nikhil Utane
Hi Arun, Thanks for your responses. Here's some additional details. We were calling memblock_reserve() very early in the game when even kernel is calling to do the reservation. The reason I think memblock_reserve() was not working was that kernel was already reserving a big chunk (0 to

Re: Linux Kernel Based Research Projects

2016-10-03 Thread Robert P. J. Day
On Sun, 2 Oct 2016, Daniel Baluta wrote: > On Sun, Oct 2, 2016 at 2:54 PM, Shyam Saini wrote: > > Hi everyone, > > > > I'm final year computer science undergraduate student. I want to do my > > major project based on linux kernel. > > > > Would you please suggest me some

Re: Linux Kernel Based Research Projects

2016-10-03 Thread shyam
I agree and accept that it won't be trivial task and I'm ready for that. Even if it has only 1% chance for its successful completion, I'ld go for it. The reason it's making me interested is the kind of learning I'm going to get in the whole process. I'ld be needing your support. Thanks,

opinion about fs and gs in linux

2016-10-03 Thread 慕冬亮
Dear all, When I analyzed one coredump and read some assembly code, I encounter one specific segment register : gs. I googled it and found the following links: [1] http://stackoverflow.com/questions/10810203/what-is-the-fs-gs-register-intended-for [2]

Re: Linux Kernel Based Research Projects

2016-10-03 Thread Daniel Baluta
On Mon, Oct 3, 2016 at 12:48 PM, shyam wrote: > Thanks a lot for your reply, > I'ld like attend your session but right now I'm in India. So, couldn't > manage everything so early to attend linuxCon Europe. > > Apart from this thing, > I'ld like to work on lguest to port it

Re: Web Forum Registration Failure

2016-10-03 Thread Rik van Riel
On Sun, 2016-08-28 at 23:28 -0600, Jonathan Villatoro wrote: > On Sun, Aug 28, 2016 at 7:25 PM, n...@nnbits.org > wrote: > > Hello everyone, > > > > I tried to register on Kernelnewbies Web Forum, but got this > > message: > > > > You did not provide the correct code

Re: Error reading /dev/mem

2016-10-03 Thread Arun Sudhilal
Hello Paddie, On Wed, Sep 28, 2016 at 1:19 AM, Paddie O'Brien wrote: > Hi, > > I have a system call that maps virtual to physical addresses. I have > disabled CONFIG_STRICT_DEVMEM and am reading from /dev/mem to verify > that the contents of the syscall-returned physical

Re: memblock_reserve or memblock_remove to reserve a page

2016-10-03 Thread Arun Sudhilal
On Mon, Oct 3, 2016 at 6:02 PM, Arun Sudhilal wrote: > Hello Nikhil, > > On Wed, Sep 28, 2016 at 6:55 PM, Nikhil Utane > wrote: >> base1 = 0xA4D000; size1=0x1000; >> memblock_reserve (base1, size1); Most probably your memblock_reserve() function

Re: memblock_reserve or memblock_remove to reserve a page

2016-10-03 Thread Arun Sudhilal
Hello Nikhil, On Wed, Sep 28, 2016 at 6:55 PM, Nikhil Utane wrote: > base1 = 0xA4D000; size1=0x1000; > memblock_reserve (base1, size1); > > (In a separate static driver code) > request_mem_region_exclusive (0x00A4D000, 4096, "csSIGILL") Thanks for details. Looks

Re: Error reading /dev/mem

2016-10-03 Thread Paddie O'Brien
It is a 32-bit system. I have a C program that puts a number in a variable. I then retrieve the physical address of that variable using a system call I added to the kernel. I next seek to that address in /dev/mem and verify that what I find there matches the contents of the variable in my

Re: Linux Kernel Based Research Projects

2016-10-03 Thread shyam
Thanks for your reply I've done researched on my query after that i posted it here. Thanks, shyam On 2 October 2016 8:25:15 PM IST, "Robert P. J. Day" wrote: >On Sun, 2 Oct 2016, Shyam Saini wrote: > >> Hi everyone, >> >> I'm final year computer science undergraduate

Re: Linux Kernel Based Research Projects

2016-10-03 Thread shyam
Thanks a lot for your reply, I'ld like attend your session but right now I'm in India. So, couldn't manage everything so early to attend linuxCon Europe. Apart from this thing, I'ld like to work on lguest to port it on x86_64 architecture. May you please tell me why it is not been ported yet

Re: MODULE_DEVICE_TABLE type=of means?

2016-10-03 Thread Bjørn Mork
Muni Sekhar writes: > I see that following dma engine driver uses MODULE_DEVICE_TABLE with > ‘type=of’. > What does ‘type=of’ means? How to trigger this driver’s probe and > remove to be called? "Open Firmware", aka "Device Tree". See Documentation/devicetree/ Bjørn

MODULE_DEVICE_TABLE type=of means?

2016-10-03 Thread Muni Sekhar
Hi All, I see that following dma engine driver uses MODULE_DEVICE_TABLE with ‘type=of’. What does ‘type=of’ means? How to trigger this driver’s probe and remove to be called? http://lxr.linux.no/linux+v4.8/drivers/dma/xilinx/zynqmp_dma.c static const struct of_device_id