Re: Building a kernel and configuration items

2009-02-16 Thread Daniel Baluta
On Tue, Feb 17, 2009 at 9:19 AM, Kevin Wilson wrote: > Hello, > I have a git clone of the linux kernel tree, and from time to time I > perform git pull. Sometimes new configuration items are added; So after > running "git pull" and "Make", I am asked to answer for questions with > [Y,n] or [N/y/

Re: allocating aligned memory

2009-02-16 Thread Peter Teoh
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 = get_aligned_page(blk->mem.offset + blk->mem.size - 1); psize = get_aligne

Building a kernel and configuration items

2009-02-16 Thread Kevin Wilson
Hello, I have a git clone of the linux kernel tree, and from time to time I perform git pull. Sometimes new configuration items are added; So after running "git pull" and "Make", I am asked to answer for questions with [Y,n] or [N/y/?] (NEW) For example, ... Support mmconfig PCI config space

Reworking a patch in git.

2009-02-16 Thread Manish Katiyar
Hi, I have a simple question wrt git. After making few commits in my local git branch, let's say that I need to rework a patch and resend it again. In this is it possible to make only the necessary changes in the required commit and create a patch out of the previous and the new commit and resend

Re: allocating aligned memory

2009-02-16 Thread Pei Lin
i think slab can do that,look at mm/slab.c: "struct kmem_cache * kmem_cache_create (const char *name, size_t size, size_t align, unsigned long flags, void (*ctor)(struct kmem_cache *, void *))" the parameter "align" for what? And kmalloc is page aligned, "4096/16 = 256", is it also 16 aligned? M

Re: allocating aligned memory

2009-02-16 Thread Pei Lin
>>And kmalloc is page aligned, "4096/16 = 256", is it also 16 aligned? >>>Maybe i misunderstand about "aligned" meaning. Oh,sorry vmalloc is page aligned kmalloc is not. 2009/2/17 Pei Lin : > i think slab can do that,look at > mm/slab.c: > "struct kmem_cache * > kmem_cache_create (const char *n

Re: allocating aligned memory

2009-02-16 Thread Mulyadi Santosa
On Sun, Feb 15, 2009 at 4:41 PM, Ramagudi Naziir wrote: > hello everyone > > i need to allocate memory aligned 16 bytes. > > how can i do that ? > > can I use kmalloc for that ? Uhm, kmalloc use slab so I don't think it will be aligned. My wild guess is you have use alloc_page(s) or use _aligned_

Re: debugging kernel hang (can't type anything)

2009-02-16 Thread Mulyadi Santosa
Hi On Sun, Feb 15, 2009 at 1:26 AM, Sukanto Ghosh wrote: > On Sat, Feb 14, 2009 at 11:42 PM, Sukanto Ghosh > wrote: >>> And enabling earlyprintk through the serial port, and keep it when the >>> console is >>> set, this way you will see the printk messages through the virtual serial >>> line.

Re: Exception Stack Backtracing...

2009-02-16 Thread Mulyadi Santosa
Hi On Mon, Feb 16, 2009 at 5:51 PM, Murali N wrote: > Hi, > Can any one please tell me how to back trace the stack ( Program ) when an > exception occurred. > While back tracing how do i get the caller function address? I want to get > all the caller function addresses.This information will be us

Exception Stack Backtracing...

2009-02-16 Thread Murali N
Hi, Can any one please tell me how to back trace the stack ( Program ) when an exception occurred. While back tracing how do i get the caller function address? I want to get all the caller function addresses.This information will be useful to trace back where exception has occurred. Regards, Mura

question rt-patch

2009-02-16 Thread Nicola Manica
Hello, I'm testing real time patch -rt12 on kernel 2.6.21.4. When I run netperf (netperf -H 192.168.188.207 -t UDP_STREAM -D 1 -I95,5 -l 500 -- -m 1024) on the server (with rt kernel) I obtain a load of ~48% on IRQ-20 (that is the hard irq related to my ethernet) but I have no load on softirq-net-