Kernel newbies archives of yesteryears

2011-01-03 Thread Prabhu nath
Dear All, Where do we find the archives of kernelnewbies of yesteryears ? Currently, I find only Dec 2010 and Jan 2011. The archives I refered is http://lists.kernelnewbies.org/pipermail/kernelnewbies/ Thanks, Prabhu ___

Re: ML archive

2011-01-06 Thread Prabhu nath
Better archive is here with thread index and date index. http://www.spinics.net/lists/newbies/ Anuz: I feel it is good to add this list in the guidelines page. Regards, Prabhu On Thu, Jan 6, 2011 at 5:26 AM, John Mahoney jmaho...@waav.com wrote: On Wed, Jan 5, 2011 at 6:46 PM,

Re: accessing the contents of video memory

2011-01-17 Thread Prabhu nath
If you are working on a desktop machine, then the following idea works. Usually, the VGA compatible controller memory will be mapped to the physical address space which can be viewed with the help of lspci -vv command. Then open the device file /dev/mem and mmap with the offset equal to the

Re: Cloning 'struct file'

2011-01-26 Thread Prabhu nath
By experiment, we can know that all the fields of struct file are copied to the child. Here is what it happens. When fork() is executed, * A new array of struct file is created for the child. * All the entries of the fd array of the parent is copied into the new array of the child. * Now both the

Cache disable verification

2011-03-16 Thread Prabhu nath
Dear All, Can you please let me know the way to find out whether the cache has been disabled or not on my embedded board. Regards, Prabhu ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: VMA of processes and CPU registers

2011-04-26 Thread Prabhu nath
Apr 2011 2:25:10 pm Prabhu nath wrote: I understand about Linear virtual address and Physical address. How is the logical address generated ? Can you please explain. Thanks, Prabhu On Wed, Apr 20, 2011 at 9:33 PM, mindentropy mindentr...@gmail.com wrote: On Wednesday 20 Apr 2011 4

KGDB Setup problem

2011-05-11 Thread Prabhu nath
Dear All / Spiro, I tried setting up KGDB on my machine but somehow I am not finding my luck for past few months. Sprio. in his earlier mail had said about his success of setting up KGDB, Can you please share your notes of how to set up KGDB. If possibe please share the screen

Re: KGDB Setup problem

2011-05-12 Thread Prabhu nath
Can you please help me in doing single stepping, from here. Thanks, Prabhu On Thu, May 12, 2011 at 6:16 AM, Prabhu nath gprabhun...@gmail.com wrote: Dear All / Spiro, I tried setting up KGDB on my machine but somehow I am not finding my luck for past few months. Sprio

Re: [Kgdb-bugreport] KGDB problem at first breakpoint

2011-05-19 Thread Prabhu nath
Enabling CONFIG_DEBUG_RODATA also didn't work. -Prabhu On Thu, May 19, 2011 at 6:45 AM, Dongdong Deng libfet...@gmail.com wrote: On Wed, May 18, 2011 at 7:23 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, There is a problem with the KGDB at the very first break point

Re: [Kgdb-bugreport] KGDB problem at first breakpoint

2011-05-31 Thread Prabhu nath
, May 20, 2011 at 12:23 PM, Prabhu nath gprabhun...@gmail.com wrote: Enabling CONFIG_DEBUG_RODATA also didn't work. I am sorry, the CONFIG_DEBUG_RODATA should be disabled... Could you try to pass full parameters to kgdboc module? kgdboc=ttyS0,115200 kgdbwait Dongdong -Prabhu

Problems with disabling Optimization

2011-06-02 Thread Prabhu nath
Dear All, Disabling O2 and Os on Kernel building, I am getting the following error. Can you please help me in debugging this. Saw some info on the net, but could not resolve it. ERROR: intel_gmbus_is_forced_bit [drivers/gpu/drm/i915/i915.ko] undefined! ERROR: __udivdi3

Re: Basic HighMeM Question

2011-06-27 Thread Prabhu nath
Please see inline. On Mon, Jun 27, 2011 at 2:42 PM, piyush moghe pmker...@gmail.com wrote: I have very basic some question's related to HighMem Memory Mapping: 1) Why can't we directly map memory in highmemory? This question is incorrect ? Typically on a intel architecture, the

Re: KGDB command line options not working for kernel 2.6.32

2011-06-27 Thread Prabhu nath
I have one question in this context. Should we disable optimization when building the kernel when we wish to enable kgdb or should we leave it intact. Thanks, Prabhunath On Fri, Jun 24, 2011 at 5:28 PM, Shaji Yusuf shajiyu...@yahoo.com wrote: Sprio, thanks for the reply! I root caused the

Re: Basic HighMeM Question

2011-06-27 Thread Prabhu nath
On Mon, Jun 27, 2011 at 3:58 PM, Paraneetharan Chandrasekaran paraneethar...@gmail.com wrote: On 27 June 2011 14:58, Prabhu nath gprabhun...@gmail.com wrote: Please see inline. On Mon, Jun 27, 2011 at 2:42 PM, piyush moghe pmker...@gmail.com wrote: I have very basic some question's

Re: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

2011-06-28 Thread Prabhu nath
Hi Mulyadi/Spiro, Can you please help me in partially enabling/disabling optimizations, because I was consistently hitting at the below problem when building the kernel after disabling the optimization ERROR: intel_gmbus_is_forced_bit [drivers/gpu/drm/i915/i915.ko] undefined! ERROR:

Re: Mapping of Device Physical Address to Kernel Virtual address

2012-07-10 Thread Prabhu nath
Thanks for your reply. Plz see inline On Tue, Jul 10, 2012 at 11:17 AM, Philipp Ittershagen p.ittersha...@googlemail.com wrote: Hi Prabhu, On Tue, Jul 10, 2012 at 6:56 AM, Prabhu nath gprabhun...@gmail.com wrote: For E.g. I have a device whose physical address range is 0x80008000

Re: Mapping of Device Physical Address to Kernel Virtual address

2012-07-10 Thread Prabhu nath
Thanks for your reply. Plz see inline On Tue, Jul 10, 2012 at 11:50 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Prabhu, On Mon, Jul 9, 2012 at 9:56 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, Is it possible to map a physical address of a device

Re: Mapping of Device Physical Address to Kernel Virtual address

2012-07-10 Thread Prabhu nath
Wonderful. I liked it. Please see inline On Tue, Jul 10, 2012 at 7:37 PM, 弋天 卜 bu...@live.cn wrote: 在 2012-7-10,12:58,Prabhu nath gprabhun...@gmail.com gprabhun...@gmail.com 写道: Dear All, Is it possible to map a physical address of a device to a known Kernel virtual

Re: Mapping of Device Physical Address to Kernel Virtual address

2012-07-10 Thread Prabhu nath
On Tue, Jul 10, 2012 at 10:03 PM, 弋天 卜 bu...@live.cn wrote: 在 2012-7-10,17:16,Prabhu nath gprabhun...@gmail.com gprabhun...@gmail.com 写道: Thanks for your reply. Plz see inline On Tue, Jul 10, 2012 at 11:17 AM, Philipp Ittershagen p.ittersha...@googlemail.comp.ittersha...@googlemail.com

Programmer's manual for 82865GV graphics controller

2012-10-25 Thread Prabhu nath
Dear All, I just want to dirty my hands on the display driver. I am just looking out for the programmer's manual for the Intel 82865GV graphics controller. I got one but it is of little help. Request to send me one complete programmer's manual. Thanks, Prabhu

Re: doesn't ioremap() retrun contigious addressess...?

2013-02-28 Thread Prabhu nath
Yes, ioremap() maps the given physical address to contiguous Kernel virtual address above high_memory and returns the first address of the mapped kernel virtual address. Regards, Prabhu On Thu, Feb 28, 2013 at 4:06 PM, sandeep kumar coolsandyfor...@gmail.comwrote: Hi All Please find a

Re: doesn't ioremap() retrun contigious addressess...?

2013-02-28 Thread Prabhu nath
++) src = readl(tcpm_base+i); printk(%d\n,src); printk(Jiffies %x %ld\n\n\n\n, jiffies, jiffies); } else printk(unable to map \n); Regards, Prabhu On Thu, Feb 28, 2013 at 4:41 PM, Prabhu nath gprabhun...@gmail.com wrote: Yes

Re: doesn't ioremap() retrun contigious addressess...?

2013-02-28 Thread Prabhu nath
Yep. On Thu, Feb 28, 2013 at 5:10 PM, Yann Droneaud ydrone...@opteya.com wrote: Le jeudi 28 février 2013 à 16:25 +0530, sandeep kumar a écrit : Sorry, Neglect the question. i am using a readl() which reads 4 bytes at a time. In the last iteration, it is trying to read next 4 unmapped

Re: Examples of Per-CPU Variables in Kernel source

2013-03-01 Thread Prabhu nath
In the context of tasklets, A tasklet list is headed by tasklet_vec and tasklet_hi_vec. This is defined per-CPU. U can see this at http://lxr.linux.no/#linux+v3.8.1/kernel/softirq.c#L400 Regards, Prabhu On Sun, Feb 24, 2013 at 2:07 PM, Shraddha Kamat sh200...@gmail.com wrote: I was reading

Re: relocatable modules' symbols

2013-03-01 Thread Prabhu nath
In principle, the linker will associate the kernel code/data to the Kernel virtual address space i.e. between 0xC000_ to 0x_ and the same linker will associate the Application's code/data to the user virtual address space i.e. between 0x_ to 0xBFFF_. Linker itself cannot

Re: [ARM_LINUX] ioremap() allowing to map system memory...

2013-03-01 Thread Prabhu nath
On Fri, Mar 1, 2013 at 4:48 PM, sandeep kumar coolsandyfor...@gmail.comwrote: Hi All I am using ARM based board. In mine, i did the following... void __iomem *tcpm_base = ioremap_nocache(0x03B0, 10*SZ_3MB); Actually i didnt reserve the 30MB memory @ 0x3B0. But still the call is

Re: [ARM_LINUX] ioremap() allowing to map system memory...

2013-03-02 Thread Prabhu nath
intentionally gave some physical address which is part of system memory. My problem infact is, it is not screwing up. It is allowing me to do that. Its not 'panic'ing On Fri, Mar 1, 2013 at 4:58 PM, Prabhu nath gprabhun...@gmail.com wrote: On Fri, Mar 1, 2013 at 4:48 PM, sandeep kumar

Re: What is the memory region ?

2013-03-07 Thread Prabhu nath
Looks like they have added a new section GNU_RELRO in the later versions. The one you are referring is read-only section. It would be nice if you share the section header table. Plz see inline Regards, Prabhunath G Linux Trainer Bangalore On Thu, Mar 7, 2013 at 3:31 PM, Jacky

Re: Re: What is the memory region ?

2013-03-07 Thread Prabhu nath
and not allow the program to write into READONLY area. Regards, Prabhunath G Linux Trainer Bangalore At 2013-03-07 18:53:46,Prabhu nath gprabhun...@gmail.com wrote: Looks like they have added a new section GNU_RELRO in the later versions. The one you are referring is read-only section. It would

Re: pthread_lock

2013-03-12 Thread Prabhu nath
I guess we should not mix mutex and condition variable. Both have their own respective semantics. *mutex* is used to serialize access to a shared resource among competing threads. *condition variable* is used to notify a* state change* of a resource to the interested thread. In case of condition

Re: User space memory

2013-03-12 Thread Prabhu nath
On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de wrote: Hi all, I have some problems allocation Memory the right way and use it in my kernel module. I use a char device for reading and writing from/to a pcie dma card. Especially the read function makes me some headache.

Re: Is this normal or wrong?

2013-03-12 Thread Prabhu nath
kmem_cache_alloc() is used to allocate a memory object from a respective cache. Can you elaborate on what is ur objective or can you get us how you have invoked this function. To my understanding kmem_cache_alloc() will just return a linear virtual address (void *) of a memory object. It would

Re: User space memory

2013-03-12 Thread Prabhu nath
On Tue, Mar 12, 2013 at 7:59 PM, valdis.kletni...@vt.edu wrote: On Tue, 12 Mar 2013 18:38:05 +0530, Prabhu nath said: On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de wrote: I use a char device for reading and writing from/to a pcie dma card. Especially the read

Re: pthread_lock

2013-03-12 Thread Prabhu nath
On Wed, Mar 13, 2013 at 9:40 AM, ishare june.tune@gmail.com wrote: On Tue, Mar 12, 2013 at 06:18:02PM +0530, Prabhu nath wrote: I guess we should not mix mutex and condition variable. Both have their own respective semantics. *mutex* is used to serialize access to a shared resource

Re: kmem_cache_init

2013-03-15 Thread Prabhu nath
kmem_cache_init() will create generalized caches from where kmalloc() will allocate memory. vfs_caches_init() will create specialized caches related to VFS, like, dentry, inode_cache, mnt_cache Regards, Prabhunath G Linux Trainer Bangalore On Fri, Mar 15, 2013 at 10:08 AM, ishare

Re: kmem_cache_init

2013-03-17 Thread Prabhu nath
On Fri, Mar 15, 2013 at 6:08 PM, ishare june.tune@gmail.com wrote: On Fri, Mar 15, 2013 at 11:39:07AM +0530, Prabhu nath wrote: kmem_cache_init() will create generalized caches from where kmalloc() will allocate memory. vfs_caches_init() will create specialized caches related to VFS

Re: elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Prabhu nath
On Fri, Mar 29, 2013 at 12:45 PM, Jacky jackycli...@163.com wrote: Hi All, When mmaping elf image into memory, why offset vma need to subtract eppnt-p_vaddr as the following code ? static unsigned long elf_map() { ... unsigned long off = eppnt-p_offset -

Re: Re: elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Prabhu nath
ELF_PAGEOFFSET(eppnt-p_vaddr) from variable eppnt-p_offset makes vma map the page-aligned file contents 在 2013-03-29 16:56:29,Prabhu nath gprabhun...@gmail.com 写道: On Fri, Mar 29, 2013 at 12:45 PM, Jacky jackycli...@163.com wrote: Hi All, When mmaping elf image into memory, why offset vma

Re: help needed to do mmap

2013-04-19 Thread Prabhu nath
Is this address (0xB202E7000) a memory address or device address ?. R you working as privileged user or a normal user. ? On Fri, Apr 19, 2013 at 11:50 AM, er krishna erkris...@gmail.com wrote: Hi All, I am trying to do mmap from user space program to fetch physical memory base address

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-13 Thread Prabhu nath
Is this is a question that popped up to your mind arbitrarily or do you have a specific system at hand which triggered you to ponder over the design of the kernel ? I felt the answer to this question is not straight forward but is multi faceted and to be discussed in a specific context. On Sat,

Re: user space device drivers

2013-05-14 Thread Prabhu nath
One that I know is through proc interface where the interrupt info is lodged in a file in /proc and the user code keeps polling on this file. Exact use of this is to be looked for. On Tue, May 14, 2013 at 3:24 PM, Gergely Buday gbu...@gmail.com wrote: Prabhu nath wrote: But if the device

Re: user space device drivers

2013-05-14 Thread Prabhu nath
I think the webpage itself will talk what are the drivers that are preferred in the user space. In principle, following are the broad constituents of any device driver. 1. code operating on device registers / device memory / device FIFO (through device registers) 2. code operating on some data in