Qemu PowerPC System emulation - Any experiences?

2010-10-17 Thread Himanshu Chauhan
Hi Everybody, I am doing a project for PowerPC. Since I don't have a PowerPC system, can any one point me on a how-to for qemu-system-ppc? I tried installing debian system on qemu-system-ppc but it didn't work. System hung after print prom_init. I had problems with ppc-bios first but I installed

Re: Learning harware ...

2010-10-16 Thread Himanshu Chauhan
On Sat, Oct 16, 2010 at 09:01:47AM -0700, Abu Rasheda wrote: I want to learn hardware intimately. I am interested in MIPS and Intel (i386) platforms. What would be a good way to start ? With this line, it seems you are interested in the above architectures. If so, for MIPS See MIPS Run Linux

RE: Reading TLB Entries

2010-10-11 Thread Himanshu Chauhan
From: mulyadi.sant...@gmail.com Date: Mon, 11 Oct 2010 11:35:38 +0700 Subject: Re: Reading TLB Entries To: gprabhun...@gmail.com CC: kernelnewbies@nl.linux.org Hi On Mon, Oct 11, 2010 at 11:30, Prabhu nath gprabhun...@gmail.com wrote: Yes please. Nice to have your say on this.

RE: Kernel start code

2010-10-08 Thread Himanshu Chauhan
Use cscope and search for kernel_entry symbol. I think its in arch/$ARCH/boot/head.S or may in in kernel directory. I would recommend refer Linux Kernel Primer- it explains boot process line-by-line for X86 and PPC.

Re: unknow reason for Kernel panic after mounting nfs

2010-10-08 Thread Himanshu Chauhan
On Friday 08 October 2010 06:49 PM, cheng chen wrote: Thanks to the people who help me with the NFS configure yesterday. Now I sure I can mount my nfs directory on my own pc, that means nfs works fine And I also make sure that ping from my embedded board to my PC is ok. but after I boot the

noderef and address_space attribute

2010-09-03 Thread Himanshu Chauhan
Hi Everybody, I searched alot about these two attributes. These are being used in __percpu in linux kernel. I am unable to find any documentation about these two attributes. Anybody has links on them? Or anybody can shed some light on them? Thanks Regards Himanshu -- To unsubscribe from this

Re: noderef and address_space attribute

2010-09-03 Thread Himanshu Chauhan
On Fri, Sep 03, 2010 at 05:24:35PM +0530, Himanshu Chauhan wrote: I searched alot about these two attributes. These are being used in __percpu in linux kernel. I am unable to find any documentation about these two attributes. Anybody has links on them? Or anybody can shed some light on them

Re: About Linux Header files

2010-06-13 Thread vikas chauhan
On 13 June 2010 14:31, vikas chauhan presentisg...@gmail.com wrote: I guess these headers ( in /usr/include/linux ) are sanitized kernel headers, needed for compiling user space applications. On 13 June 2010 11:48, Siddu siddu.s...@gmail.com wrote: On Fri, Jun 11, 2010 at 8:28 PM, Joel

Re: About Linux Header files

2010-06-13 Thread vikas chauhan
On 13 June 2010 14:55, Joel Fernandes agnel.j...@gmail.com wrote: On Sun, Jun 13, 2010 at 2:17 PM, vikas chauhan presentisg...@gmail.com wrote: On 13 June 2010 14:31, vikas chauhan presentisg...@gmail.com wrote: I guess these headers ( in /usr/include/linux ) are sanitized kernel

Re: try_module_get and module_put usage

2010-05-16 Thread vikas chauhan
On 16 May 2010 20:17, vikas chauhan presentisg...@gmail.com wrote: Actually, I was a bit confused about reference counts, since some older modules ( like the OSSv4 drivers ) use their own copy of reference counts, and the above functions, it seems like , is being used by kernel to maintain

Re: BUG: scheduling while atomic

2010-03-04 Thread Himanshu Chauhan
On Tue, Mar 02, 2010 at 11:44:25AM +0530, Vikash Kumar wrote: BUG: scheduling while atomic: RAID_LAZY_WRITE/102/0x0205 no locks held by RAID_LAZY_WRITE/102. Almost *always* a problem when doing stuff which can sleep while holding a spinlock. As you also verified that :) - Himanshu --

Re: Sysfs Device Attributes: Subdirectory under subdirectory

2010-01-30 Thread Himanshu Chauhan
On Fri, Jan 29, 2010 at 06:15:04AM -0800, Greg KH wrote: On Fri, Jan 29, 2010 at 09:41:21AM +0530, Himanshu Chauhan wrote: On Thu, Jan 28, 2010 at 01:11:36PM -0800, Greg KH wrote: On Fri, Jan 29, 2010 at 12:12:31AM +0530, Himanshu Chauhan wrote: Dear all, I want to create

Sysfs Device Attributes: Subdirectory under subdirectory

2010-01-28 Thread Himanshu Chauhan
Dear all, I want to create subdirectory under subdirectory in sysfs for a device. For example, if vhci_hcd is my device I want the following hierarchy: vhci_hcd | +-- status | +---0 || |+-- status || |+--

Re: Sysfs Device Attributes: Subdirectory under subdirectory

2010-01-28 Thread Himanshu Chauhan
On Thu, Jan 28, 2010 at 01:11:36PM -0800, Greg KH wrote: On Fri, Jan 29, 2010 at 12:12:31AM +0530, Himanshu Chauhan wrote: Dear all, I want to create subdirectory under subdirectory in sysfs for a device. Ick, don't. For example, if vhci_hcd is my device I want the following

Re: sysfs_ops show vector: size of buffer not required?

2010-01-26 Thread Himanshu Chauhan
On Tue, Jan 26, 2010 at 07:29:24AM -0800, Greg KH wrote: On Tue, Jan 26, 2010 at 12:01:27PM +0530, Himanshu Chauhan wrote: On Mon, Jan 25, 2010 at 08:36:46PM -0800, Greg KH wrote: On Sun, Jan 24, 2010 at 01:11:18PM +0530, Himanshu Chauhan wrote: Hi All, The sysfs_ops's show

Re: sysfs_ops show vector: size of buffer not required?

2010-01-25 Thread Himanshu Chauhan
On Mon, Jan 25, 2010 at 08:36:46PM -0800, Greg KH wrote: On Sun, Jan 24, 2010 at 01:11:18PM +0530, Himanshu Chauhan wrote: Hi All, The sysfs_ops's show vector doesn't have a size of the buffer given to the vector, while store on the other hand has. What is the rationale behind

Small patches for Linux kernel

2010-01-25 Thread Himanshu Chauhan
Hi All, Where should I send small patches? Patches which address small compilation warnings etc. Linux kernel mailing list receives a lot of heavy weight patches and small patches get lost. Which is the best place to send, then? Is Kernel Janitor mailing list alive? Regards Himanshu -- To

Problem with this code snippet.

2010-01-24 Thread Himanshu Chauhan
Dear All, Isn't there problem in this code snippet? wake_up will called even before releasing spin lock. If there are sleeping threads/processes, they will wakeup and spinlock is never be unlocked. Am I wrong? spin_lock(ud-lock); ud-event |= event; wake_up(ud-eh_waitq); spin_unlock(ud-lock);

Re: where could I find the definition of PageSwapBacked()

2010-01-23 Thread Himanshu Chauhan
On Sat, Jan 23, 2010 at 11:38:28AM +0700, Mulyadi Santosa wrote: Hi everybody As the subject says, anybody could kindly point me to the PageSwapBacked() definition? I use cscope, lxrno use at all. I am guessing, it could be a function that is composed by somekind of gcc macro, but I am

sysfs_ops show vector: size of buffer not required?

2010-01-23 Thread Himanshu Chauhan
Hi All, The sysfs_ops's show vector doesn't have a size of the buffer given to the vector, while store on the other hand has. What is the rationale behind it? I see most of the implementations doing strcpy in the show vectors. Ill behaved driver might overwrite the given buffer when size is not

Query regarding 2.6.21.7 Compilation Patch

2009-12-13 Thread Himanshu Chauhan
2.6.21.7 is broken with latest GCC. The following patch fixes the issue. Its a build break because of compiler optimizing using modulo. diff --git a/include/linux/time.h b/include/linux/time.h index 2091a19..d32ef0a 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -174,6 +174,10

RE: Query regarding 2.6.21.7 Compilation Patch

2009-12-13 Thread Himanshu Chauhan
After reading the mail, it seems I should give the compilation error log to make the question crisp. So here it is: kernel/built-in.o: In function `getnstimeofday': (.text+0x22bdc): undefined reference to `__umoddi3' kernel/built-in.o: In function `getnstimeofday': (.text+0x22bfc):

Stack unwinding using kprobes

2009-08-09 Thread Himanshu Chauhan
Hi all, I was trying to probe shrink_list in mm/vmscan.c When my pre_handler is called, the esp doesn't point to the correct stack frame. I put pre_handler for shrink_list itself. So ideally when call to this point will hit, esp should already be pointing to the return_address location in

Re: Stack unwinding using kprobes

2009-08-09 Thread Himanshu Chauhan
Hi Mulyadi, I was trying to probe shrink_list in mm/vmscan.c When my pre_handler is called, the esp doesn't point to the correct stack frame. I put pre_handler for shrink_list itself. So ideally when call to this point will hit, esp should already be pointing to the return_address

Re: Kernel OOPS analysis

2009-04-23 Thread Himanshu Chauhan
is that the whole message? please post the complete one so we all get the complete picture. However, briefly, i think the oops was started due to some bugs in one or more kernel threads (see kernel_thread_helper there?). BTW, scst...hmmm, SCSI module? Hi Mulyadi, Ya that is not

Re: Kernel OOPS analysis

2009-04-22 Thread Himanshu Chauhan
Hi Amit, You didn't provide the full OOPs message. On Wed, 2009-04-22 at 22:04 +0530, amit mehta wrote: snip [c0104878] apic_timer_interrupt+0x28/0x30 [f8e2d06f] scst_cmd_thread+0x9c/0xfc [scst] [c011bbed] default_wake_function+0x0/0x8 [f8e2cfd3] scst_cmd_thread+0x0/0xfc [scst]

What is mem_cgroup?

2009-03-09 Thread Chauhan
While going through vmscan.c, I found references to mem_cgroup. What kind of group is it? When is it used? Thanks Regards Chauhan -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: page address from user buffer

2009-03-06 Thread Chauhan
*/ while (pgcount--) { page_cache_release (maplist[pgcount]); } Hope this would help. Regards Chauhan -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: allocating aligned memory

2009-02-19 Thread Himanshu Chauhan
On Tue, 2009-02-17 at 15:20 +0800, Peter Teoh wrote: looking into kernel source, it seemed quite simple: ./sound/pci/emu10k1/memory.c: #define get_aligned_page(offset)((offset) PAGE_SHIFT) blk-first_page = get_aligned_page(blk-mem.offset); blk-last_page =

Re: query regarding scheduling

2009-02-09 Thread Himanshu Chauhan
On Mon, 2009-02-09 at 21:16 +0700, Mulyadi Santosa wrote: Hi... On Mon, Feb 9, 2009 at 2:57 PM, sudheer.divaka...@wipro.com wrote: Hi All, Please look at the following code from the article Sleeping in the Kernel http://www.linuxjournal.com/node/8144/print 1

Re: Functions for direct reclaim and via kswapd.

2009-02-08 Thread Himanshu Chauhan
On Sun, 2009-02-08 at 17:47 +0700, Mulyadi Santosa wrote: Hi.. On Sun, Feb 8, 2009 at 1:46 AM, Himanshu Chauhan chauhan@gmail.com wrote: Am I correct when I say that try_to_free_pages is called in direct reclaim, and balance_pgdat is invoked, directly or indirectly, by kswapd

Re: Functions for direct reclaim and via kswapd.

2009-02-08 Thread Himanshu Chauhan
On Sun, 2009-02-08 at 18:14 +0700, Mulyadi Santosa wrote: Hi... On Sun, Feb 8, 2009 at 6:00 PM, Himanshu Chauhan chauhan@gmail.com wrote: On Sun, 2009-02-08 at 17:47 +0700, Mulyadi Santosa wrote: Hi.. On Sun, Feb 8, 2009 at 1:46 AM, Himanshu Chauhan chauhan@gmail.com wrote

Re: Distro suited for kernel development and delployment

2009-02-08 Thread Himanshu Chauhan
On Sun, Feb 8, 2009 at 8:34 AM, Himanshu Chauhan chauhan@gmail.com wrote: Hi, I know is an all-time asked question. But I am asking this not because I am clueless but because I am fed up of the ubuntu way. I am done with its

Pulling to git branch

2009-02-07 Thread Himanshu Chauhan
Hi, I pulled linus' git tree and make a branch on it. So I have to master: master * swapoutclustering As seen, I am working on swapoutclustering branch. But when I do a simple git pull, I see the following message. You asked me to pull without telling me which branch you want to merge with, and

Re: Pulling to git branch

2009-02-07 Thread Himanshu Chauhan
On Sat, 2009-02-07 at 22:06 +0530, Himanshu Chauhan wrote: Hi, I pulled linus' git tree and make a branch on it. So I have to master: master * swapoutclustering As seen, I am working on swapoutclustering branch. But when I do a simple git pull, I see the following message. You asked

Re: interrupts

2009-02-07 Thread Himanshu Chauhan
On Sat, 2009-02-07 at 23:58 +0700, Mulyadi Santosa wrote: Hi On Sat, Feb 7, 2009 at 7:22 PM, Shyam Burkule shyam.burk...@gmail.com wrote: Hi, One question about Interrupt, I read in blog http://lkdp.blogspot.com/ that When an interrupts are being masked, they are not lost, rather

Functions for direct reclaim and via kswapd.

2009-02-07 Thread Himanshu Chauhan
Am I correct when I say that try_to_free_pages is called in direct reclaim, and balance_pgdat is invoked, directly or indirectly, by kswapd? Thanks Regards - Himanshu -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at

Git error

2009-01-28 Thread Himanshu Chauhan
Hi, I am updating my tree with git-pull. But I am getting this error. scripts/package/Makefile: needs update error: Entry 'scripts/package/Makefile' not uptodate. Cannot merge. How can I fix this? Thanks Best Regards - Himanshu -- To unsubscribe from this list: send an email with

Re: Git error

2009-01-28 Thread Himanshu Chauhan
On Wed, 2009-01-28 at 18:37 +, Luciano Rocha wrote: On Wed, Jan 28, 2009 at 10:29:18PM +0530, Himanshu Chauhan wrote: Hi, I am updating my tree with git-pull. But I am getting this error. scripts/package/Makefile: needs update error: Entry 'scripts/package/Makefile

Resource acquiring by contending processes.

2008-09-17 Thread Himanshu Chauhan
Hello all, Suppose I have a circular buffer in a driver and there are 3 threads/processes sleeping for the data in it. Now when data arrives in circular buffer and I post a wakeup, what will happen? Only one of the thread would be able to read from the buffer and other would be put to sleep.

Patch against linux-next or linus tree?

2008-08-17 Thread Himanshu Chauhan
Dear all, Patches now should be generated against the linus' tree or the linux-next tree? Regards --Himanshu -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ

Re: Need help Regarding Project

2008-08-11 Thread Himanshu Chauhan
Kyle Spaans wrote: On Sat, Aug 9, 2008 at 7:03 PM, Sri Ram K Vemulpali [EMAIL PROTECTED] wrote: If any one in the group knows a project to work on or have any idea to work in collaboration or knows to direct where more blogs are If blogs about the Linux kernel is what you're looking for. I

Re: any reviews on essential linux device drivers?

2008-08-09 Thread Himanshu Chauhan
Robert P. J. Day wrote: just picked up a copy of: http://elinuxdd.com/index.html and about to read it cover to cover. anyone else already been down that road? thoughts? Just bought the book and skimmed over it. Discusses more than what title says and looks promising. Thanks for the

normal I/O and sync I/O

2008-03-25 Thread Vijay Chauhan
Hi list, what is asynchronous read/write operation? How it is different from normal read/write operation? Normally i have seen that the file read/write operation is set to do_sync_read/write which in turns call to aio_read/write. So I could not able understand the difference. TIA, Vijay -- To

__initdata query

2008-03-14 Thread Vijay Chauhan
Hi List, I am a newbie and learning how to write a kernel module. I was reading about __init qualifier, in the init.h file it is mentioned that: /* These macros are used to mark some functions or * initialized data (doesn't apply to uninitialized data) * as `initialization' functions. The

process / thread stack

2008-03-04 Thread Vijay Chauhan
Hi, In Linux_Kernel_Development book it is mentioned that: A process consists of one or more threads of execution. Each thread includes a unique program counter, process stack, and set of processor registers. So all the threads of a process share the same stack?? TIA, Vijay

Unqueue work from workqueue

2007-12-02 Thread Himanshu Chauhan
Hello all! I am using work queues to process my interrupts at later time. I have a little problem. WHen the workqueue function is called, Only then I can decide is there is something to be processed. If not, I would like to put the work back in the queue in the same position i.e. the head of the

splitting of address space

2007-08-19 Thread Himanshu Chauhan
Dear all, I was reading the LDD3's DMA chapter (chapter 15). The author talks about the splitting of address space between 1GB and 3GB. I couldn't make myself crystal clear as to why it is done. I got even more confused when he said kernel can't access physicalmemory address which is not mapped

difference between dmac_clean_range() and clean_dcache_area()

2007-07-26 Thread pankaj chauhan
hi all, can anybody please tell me difference between dmac_clean_range() and clean_dcache_area()? I am using 2.6.11 on ARM11. It seems to me that both clean dcache lines specified by arguments (only the arguments that both functions take are different), Is there any difference in their