Re: My effort to learn Linux kernel development

2021-08-11 Thread sri vathsa
Hi Amit, On Wed, Aug 11, 2021, 3:03 PM Amit Kumar wrote: > > I have got a resource which is about 5.4 LTS kernel. > Can u share that resource here, even I trying to Understand latest kernel. Thanks, Dara Srivathsa ___ > Kernelnewbies mailing list >

Re: My effort to learn Linux kernel development

2021-07-23 Thread sri vathsa
On Fri, Jul 23, 2021, 9:47 PM Connor Kuehl wrote: What about Linux Kernel Development by Robert Love, I have been that reading book and comparing code in book with current kernel version > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies

Re: MPC8641 based custom board kernel Bug

2013-12-30 Thread Sri Ram Vemulpali
memory. Following link is good example http://xillybus.com/tutorials/device-tree-zynq-1 Regards, Sri. On Thu, Dec 26, 2013 at 9:20 PM, Ashish Khetan wrote: > I am using the defconfig from linux kernel tree and for CCSR in u-boot its > F800 so the same i am using in device tree... so my qu

Re: FPGA device memory is not accessible with ioremap()

2013-12-29 Thread Sri Ram Vemulpali
Thank you Srinivas, that was in my mind. I will do that and let you guys know. Regards, Sri. On Fri, Dec 27, 2013 at 7:34 PM, srinivas bakki wrote: > Suggest you to eliminate the problem on the FPGA first. Hook on a scope > onto the address lines of the FPGA and check whether you g

Re: FPGA device memory is not accessible with ioremap()

2013-12-26 Thread Sri Ram Vemulpali
Haresh, iotable_init() is specific to ARM arch. I am using powerpc, seems there is no equivalent to that static function. Can you please give more input. Thanks, Sri. On Thu, Dec 26, 2013 at 9:01 PM, Sri Ram Vemulpali wrote: > Thanks for reply Haresh. Will try and let u know. > &g

Re: FPGA device memory is not accessible with ioremap()

2013-12-26 Thread Sri Ram Vemulpali
Thanks for reply Haresh. Will try and let u know. Thanks, Sri On Thu, Dec 26, 2013 at 5:09 PM, haresh langaraman wrote: > Hi ram, > > Can you try to map the address using io_table_init table of kernel > initialization code. > > Thanks, > Haresh. > On 27 Dec 2013 0

FPGA device memory is not accessible with ioremap()

2013-12-26 Thread Sri Ram Vemulpali
T "value read from scratch_pad:%s\n", buff ); return 0; Attached is the device tree of the board. Can anyone please direct me or point where I am doing wrong. It seems I am unable to access FPGA device memory. Thanks. -- Regards, Sri.

Re: MPC8641 based custom board kernel Bug

2013-12-26 Thread Sri Ram Vemulpali
Why do not you use deconfig from linux kernel tree. Modify only base address of CCSR (soc node) for child nodes of root in device tree. arch/powerpc/boot/dts/mpc8641_hpcn.dts. Sri On Thu, Dec 26, 2013 at 3:48 AM, Ashish Khetan wrote: > i tried to dig more inside mpic_alloc fails. the funct

Re: Unable to access FPGA device with virtual address returned by ioremap()

2013-12-25 Thread Sri Ram Vemulpali
mapping level. NOTE: this is powerpc architecture. On Wed, Dec 25, 2013 at 3:53 PM, Sri Ram Vemulpali wrote: > Hi All, > > I am working on bringing up the board sbc8641d, which is mostly similar in > architecture with mpc8641 having powerpc chip. My board was customized to > a

Re: Kernel booting problem.

2012-08-29 Thread Sri Ram Vemulpali
how we tell kernel to use ttyS0 over tty0. Because in kernel config I selected was ttyS0 but it is using tty0. Weird? Thanks, Sri. On Wed, Aug 29, 2012 at 4:24 PM, Jonathan Neuschäfer wrote: > On Wed, Aug 29, 2012 at 11:50:00AM -0400, Sri Ram Vemulpali wrote: >> Now the current problem

Re: Kernel booting problem.

2012-08-29 Thread Sri Ram Vemulpali
n my machine), it seems sshd got started, but no prompt is displayed. I think I should get console control. Any ideas. Thanks in advance. Regards, Sri. On Tue, Aug 28, 2012 at 11:20 PM, Mulyadi Santosa wrote: > Hi. > > On Wed, Aug 29, 2012 at 8:42 AM, Sri Ram Vemulpali > wrote:

Kernel booting problem.

2012-08-28 Thread Sri Ram Vemulpali
ome suggestions. Thanks in advance. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: orphan process is causing deadlock in __kernel_vsyscall ()

2012-07-26 Thread Sri Ram Vemulpali
without > making them orphan. Because when a child process is running at the > time parent is exiting, that child process is assigned to init(1) as > orphan process. > Can this behavior be modified. Please let me know any suggestions and > thoughts. Thanks in advance. > > -- &

tty driver

2012-04-30 Thread Sri Ram Vemulpali
. This is the kind of feature I want it on tty fds. Please let me know if anyone has any better idea. thanks. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: stdout to console

2012-04-26 Thread Sri Ram Vemulpali
you to understand the concept of vfs. Initially it is confusing, but there is lot of material online. You url is a good start. All the best. Sri. On Wed, Apr 25, 2012 at 11:56 PM, Arun KS wrote: > Thanks Sri Ram and Jonathan, > > On Wed, Apr 25, 2012 at 11:39 PM, Sri Ram Vemulpali

Re: stdout to console

2012-04-25 Thread Sri Ram Vemulpali
initializing stdout = fdopen on open("/dev/stdout", "") descriptor will do your job. or use dup to set index 1 to given fd in that process --Sri. On Mon, Apr 23, 2012 at 6:15 AM, Arun KS wrote: > Hello Guys, > > We all know that when an application writes to stdout

Re: Looking for small Confirmation about skb_pull & NF_ACCEPT !!!

2012-04-05 Thread Sri Ram Vemulpali
outer header what do you mean by it. I did not encounter this. Thanks, Sri. On Thu, Apr 5, 2012 at 5:00 AM, SaNtosh kuLkarni wrote: > i had a similar problem where in i was using SKB_PUSH to add extra > header i used this... structure called flowi which can be used to > define

Re: Semaphore

2012-02-22 Thread Sri Ram Vemulpali
sh and pop handler. Check POSIX API. Regards, Sri. On Wed, Feb 22, 2012 at 7:11 AM, Kristof Provost wrote: > On 2012-02-22 11:53:12 (+), Anuz Pratap Singh Tomar > wrote: >> On Wed, Feb 22, 2012 at 9:48 AM, Kristof Provost wrote: >> >> > On 2012-02-22 11:01:52 (+02

Re: How to figure out the byteorder only with one byte number?

2012-02-20 Thread Sri Ram Vemulpali
nibble order. When you talk byte order -- either little endian or big endian, we are talking how is our data should be interpreted. Depending on order we start reading data from left or right a byte at a time. So, I am confused on your discussions. Please clarify. Thanks, Sri. On Mon, Feb 20, 2012

Question on Memory Leak: very tough problem

2011-10-26 Thread Sri Ram Vemulpali
serializes the mem allocations. Does this happen to anyone disappearing the leak when used valgrind. Any thoughts and input that can help me solve this problem. Thanks to all in advance. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies

Re: how to check kernel is configured with preemption or not

2011-10-26 Thread sri
] [] _ZN10FromDevice8run_taskEP4Task+0xa5/0x120 [click] [] _ZN12RouterThread6driverEv+0x177/0x290 [click] [] _Z11click_schedPv+0x82/0x130 [click] [] _Z11click_schedPv+0x0/0x130 [click] [] kernel_thread_helper+0x7/0x10 --Sri On Mon, Oct 24, 2011 at 10:08 AM, Greg KH wrote: > On Sun, Oct 23, 2011 at

Re: how to check kernel is configured with preemption or not

2011-10-24 Thread Sri Ram Vemulpali
hat you can confirm whether it is rt linux. But you must get information whether this is rt linux by "uname -a", it shows rt in the display of patch. Thanks, Sri. On Mon, Oct 24, 2011 at 12:38 AM, Greg KH wrote: > On Sun, Oct 23, 2011 at 11:20:03PM -0400, Greg Freemyer wrote:

Re: how to check kernel is configured with preemption or not

2011-10-23 Thread sri
No, uname did not show anything. Is there any way to get the kernel preemption mode, programatically? Thanks, --Sri On Fri, Oct 21, 2011 at 6:41 PM, Daniel Baluta wrote: > On Fri, Oct 21, 2011 at 2:28 PM, sri wrote: > > Hi, > > > > Am using kernel 2.6.18-195(centos 5.5).

how to check kernel is configured with preemption or not

2011-10-21 Thread sri
Hi, Am using kernel 2.6.18-195(centos 5.5). My kernel configs have CONFIG_PREEMPT_NONE=7 and "CONFIG_PREEMPT_VOLUNTERY is not set". How to check that preemption is really in place? Is there any way to check my kernel is configured with what preemption levels? Thanks inadvanc

Re: kernel 5.5 kernel and tg3 driver

2011-10-10 Thread sri
Thanks for the Inputs. As there is not kernel crash, crash files are not create here to debug more. Is there any way to force the kernel to create kernel crash files under /var/crash. This helps more If am not wrong. Regards, Sri On Mon, Oct 10, 2011 at 9:20 PM, Mulyadi Santosa wrote: >

kernel 5.5 kernel and tg3 driver

2011-10-09 Thread sri
Hello Experts, I was using click-1.6.0 on centos 5.3 kernel and recently* ported that to centos5.5 kernel.*. After porting, am getting the (*low stack detected by irq handler) and the *following errors on the console frequently and causing the system unresponsive totally. Even after reboot, thi

Re: Why do processes with higher priority to be allocated more timeslice?

2011-10-07 Thread Sri Ram Vemulpali
gument you should able to increase the time slice for low priority task to decrease context switches. You can modify code and test to see what happens. Sri On Tue, Sep 27, 2011 at 11:44 AM, Mulyadi Santosa wrote: > Hi :) > > On Tue, Sep 27, 2011 at 20:06, Parmenides wrote: >> In

Re: question on memory mapping one page at a time

2011-09-21 Thread Sri Ram Vemulpali
thanks for the replies. On Tue, Sep 20, 2011 at 11:42 PM, rohan puri wrote: > > > On Wed, Sep 21, 2011 at 2:24 AM, Jeff Haran wrote: >> >> > -Original Message- >> > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- >> > boun.

question on memory mapping one page at a time

2011-09-20 Thread Sri Ram Vemulpali
IGBUS; pageptr = pfn_to_page(pageframe); get_page(pageptr); if (type) *type = VM_FAULT_MINOR; return pageptr; } -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Understanding pipes and blocking calls

2011-09-15 Thread Sri Ram Vemulpali
> Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

power on self test (POST) config option in kernel config

2011-06-26 Thread sri
Hi, One of my devices runs with Centos 5.3 kernel (kernel-2.6.18-128.el5) and that box stops responding occasionally. When did hard reboot, it comes to normal execution. I would like to see which device failure caused the box to stop rebooting. I would like to see the POST process execution (if en

Re: kernel BUG at kernel/workqueue

2011-05-26 Thread sri
Hi, Thanks for the reply. So the BUG_ON means that it is known prior that a could raise in this codelines. Correct me if am wrong. In that case, there would a patch to fix this, guessing. --Sri On Wed, May 25, 2011 at 11:15 PM, Mulyadi Santosa wrote: > Hi... > > On Wed, May 25, 2011

kernel BUG at kernel/workqueue

2011-05-25 Thread sri
Hi, Am trying to learn network drivers in linux. I need help in understanding the following error and what various information we can get from that, so that I can identify the problem. >From the backtrace, it is clear that the e1000_watchdog is throwing the error. This error I have seen on Centos

RE: building a specific driver in kernel src tree

2011-05-09 Thread sri
: The EEPROM Checksum Is Not Valid e1000: probe of :01:00.0 failed with error -5 e1000: :01:00.1: e1000_probe: The EEPROM Checksum Is Not Valid e1000: probe of :01:00.1 failed with error -5 Am trying to debug that. Any help/pointers on why this occurs and how to resolve it? --Sri On

Re: building a specific driver in kernel src tree

2011-05-08 Thread sri
Thank you. Am trying to compile the whole kernel again with CONFIG_E1000=m. On Mon, May 9, 2011 at 11:49 AM, Jeff Kirsher wrote: > On Sun, May 8, 2011 at 23:05, sri wrote: > > the config had it as CONFIG_E1000=y > > Does =y or =m make any difference? > > > > still

Re: building a specific driver in kernel src tree

2011-05-08 Thread sri
the config had it as CONFIG_E1000=y Does =y or =m make any difference? still not working. On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher wrote: > On Sun, May 8, 2011 at 22:49, sri wrote: > > Hi, > > > > As part of learning, I have added few debug statements to the code at

building a specific driver in kernel src tree

2011-05-08 Thread sri
thing when I do in drivers/net/e1000e, it is compiling and creating e1000e.ko file. Any help on how to get e1000.ko? --Sri ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread sri
Thank you Daniel for the links. Am using kernel-2.6.18-194.centosplus.el5 and dumpstack.c (under lib/dumpstack.c) implentation said simply "This architecture does not support dump_stack". Thanks, Sri. On Fri, Apr 1, 2011 at 3:33 PM, Daniel Baluta wrote: > > Is there a way to fin

how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread sri
Hi, Is there a way to find, in the kernel src tree, which routine/function is calling another function OR kernel function invocation stack order? This would be helpful for me to know the various steps/functionalities involved during executing something in kernel space. -Sri

Re: ACPI errors during bootup

2011-03-23 Thread sri
*** On Wed, Mar 23, 2011 at 10:44 PM, Mulyadi Santosa wrote: > On Wed, Mar 23, 2011 at 20:57, sri wrote: > > Hi, > > > > Am trying to build SMP kernel. > > Took kernel-2.6.18-194.src.rpm, extracted, rpmbuilded with SMP option. > > Successfully compile the new ker

ACPI errors during bootup

2011-03-23 Thread sri
Hi, Am trying to build SMP kernel. Took kernel-2.6.18-194.src.rpm, extracted, rpmbuilded with SMP option. Successfully compile the new kernel and when using that kernel to boot up, following errors were shown up(highlighted in bold & red color): My kernel config file has ACPI and PCI configs enabl

Re: Disabling an interrupt

2011-03-02 Thread Sri Ram Vemulpali
http://lxr.linux.no/linux+v2.6.37.2/kernel/irq/manage.c#L217 Check the above link. --Sri On Tue, Mar 1, 2011 at 3:55 AM, Jacky Lam wrote: > Hi, > >     It's long before when I want to enable/disable an interrupt, I call > enable_irq()/disable_irq(). However, recently

Re: Thread scheduling in 2.6 kernels

2011-02-27 Thread Sri Ram Vemulpali
. --Sri. On Thu, Feb 24, 2011 at 8:47 AM, Mandeep Sandhu wrote: >> Quite long questions you have below...but I'll try to summarize and >> answer > > I did try to be as concise as possible! :) > >> >> Btw, your problem description is greatI believe it

Re: Mapping memory between kernel and user space

2011-02-15 Thread Sri Ram Vemulpali
a traditional implementation. what is very minimal implementation of MMU for real time systems. Thanks in advance. --Sri. On Tue, Feb 15, 2011 at 12:54 AM, Ankita Garg wrote: > On Wed, Feb 09, 2011 at 06:45:42PM -0500, Sri Ram Vemulpali wrote: >> Hi all, >> >>   How do I m

Re: Mapping memory between kernel and user space

2011-02-10 Thread Sri Ram Vemulpali
Hi Santosa, Can you please be more explicit. I do manage buffers internally in my module. Some cases if it full I will lose data. Can you please provide more detailed explanation on how to approach this. Thanks. --Sri On Wed, Feb 9, 2011 at 10:21 PM, Mulyadi Santosa wrote: > On Thu, Feb

Re: About EXPORT_SYMBOL

2011-02-10 Thread Sri Ram Vemulpali
module. In former case, it only warns at time of inserting the module for GPL license. Either case you should able to access the symbol --Sri. On Thu, Feb 10, 2011 at 1:04 PM, Dave Hylands wrote: > Hi Mulyadi, > > On Thu, Feb 10, 2011 at 9:22 AM, Mulyadi Santosa > wrote: >> On Th

Mapping memory between kernel and user space

2011-02-09 Thread Sri Ram Vemulpali
Hi all, How do I map some space between kernel and user space. Can anyone point me in to right direction. I was trying to map the packets from my netfilter function to kernel user space, to avoid over head of copying. Thanks in advance. -- Regards, Sri

Linux kernel network stack

2011-02-09 Thread Sri Ram Vemulpali
ce. Thanks in advance -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Regarding Buddy Allocator

2011-02-08 Thread Sri Ram Vemulpali
Thanks Santosa, Not much is mentioned in the link you mentioned. I looking for more of explanation and optimal implementation. Any reference would be good too. --Sri On Mon, Feb 7, 2011 at 9:52 PM, Mulyadi Santosa wrote: > On Tue, Feb 8, 2011 at 06:29, Sri Ram Vemulpali > wrote:

Regarding Buddy Allocator

2011-02-07 Thread Sri Ram Vemulpali
Can anyone point me to implementation of buddy allocator, with efficient data structures used. Thanks in advance. I am trying to get another thought or implementation on code. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies

Re: Thread Affinity structure

2011-02-04 Thread Sri Ram Vemulpali
call to getpid(2) will set the attribute for the main thread of the thread group." To whom I should pass the id. I did not understood. Thanks, Sri. On Fri, Feb 4, 2011 at 2:29 PM, Christoph Lameter wrote: > On Fri, 4 Feb 2011, Sri Ram Vemulpali wrote: > >>     I have doubt re

Thread Affinity structure

2011-02-04 Thread Sri Ram Vemulpali
. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Regarding PREEMPT_RT option

2011-02-02 Thread Sri Ram Vemulpali
Hi all, I am trying to find detailed explanation of preemption option in config. For desktop, server, and low-latency desktop. Can anyone explain in what scenarios these are useful. Thanks in advance -- Regards, Sri. ___ Kernelnewbies

Re: Regarding SIGSEGV

2011-02-02 Thread Sri Ram Vemulpali
tion would do for me. Thanks in advance --Sri On Wed, Feb 2, 2011 at 2:16 AM, Mulyadi Santosa wrote: > On Wed, Feb 2, 2011 at 14:08, Sri Ram Vemulpali > wrote: >> Hi all, >> >>       I know that when a thread in an application do invalid memory >> reference, OS gene

Regarding SIGSEGV

2011-02-01 Thread Sri Ram Vemulpali
, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

process exception

2011-01-31 Thread Sri Ram Vemulpali
explanation. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

what is spinlock depth

2011-01-31 Thread Sri Ram Vemulpali
*name; #ifdef CONFIG_LOCK_STAT int cpu; unsigned long ip; #endif }; Can anyone help me explain, how this struct helps the spinlock. Why do we need lockdepth. Thanks for help in advance. -- Regards, Sri

Re: typecheck code

2011-01-31 Thread Sri Ram Vemulpali
Thanks for all explanation. It really helped to understand. Sri On Mon, Jan 31, 2011 at 1:03 PM, Manish Katiyar wrote: > On Mon, Jan 31, 2011 at 9:03 AM, Sri Ram Vemulpali > wrote: >> Hi all, >> >> /* >>  * Check at compile time that something is of a particular t

Re: Please correct this code

2011-01-31 Thread Sri Ram Vemulpali
thanks for all explanation, it really helped to refine my code Sri On Mon, Jan 31, 2011 at 12:58 PM, Rajat Sharma wrote: >> Is is not that Code A is wrong, for not mentioning cobbler list >> 'memory' to indicate memory contents are getting updated. >> Please rectify

typecheck code

2011-01-31 Thread Sri Ram Vemulpali
#define typecheck_fn(type,function) \ ({ typeof(type) __tmp = function; \ (void)__tmp; \ }) Can anyone help me, explain the above code typecheck. How does (void)(&__dummy == &__dummy2) evaluates to 1 I appreciate any explain.

Please correct this code

2011-01-31 Thread Sri Ram Vemulpali
not mentioned Is is not that Code A is wrong, for not mentioning cobbler list 'memory' to indicate memory contents are getting updated. Please rectify me, if I am wrong. Also, what does '+m' constraint mean, if I use in inline assembly. -- Regards, Sri. __

Please correct this code

2011-01-31 Thread Sri Ram Vemulpali
Code A it was not mentioned Is is not that Code A is wrong, for not mentioning cobbler list 'memory' to indicate memory contents are getting updated. Please rectify me, if I am wrong. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Multi core arch

2011-01-26 Thread Sri Ram Vemulpali
Hi, Can anyone point me to intel multicore datasheet of system programming guide or developers guide. I searched on Intel website, which I found programming guides for processor arch, but not for multicore archs. Please share if anyone has this information. -- Thanks, Sri

Messaging

2011-01-16 Thread Sri Ram Vemulpali
Hi, Can anyone help me explain how messaging works in linux kernel. I am very confused with mqueue_inode_info struct. Thanks in advance. -- Regards, Sri. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org