PCIE Switch Bringup Problem

2015-04-02 Thread Ashish Khetan
Hi, I am using MPC8640D based powerpc board. I am trying to bringup PCIe switch(PES64H16AG2) using linux BSP(Linux-3.14). After Power on reset its unable detect to detect any link on PCIe BUS. While on another bus PCIe link is detected which is not another PCIe device. Any debugging points/link

How can I make a multi-page size block request in kernel?

2015-04-02 Thread Hyukjoong Kim
Hi, I'm trying to make a special block request at the scsi high-level device driver (scsi_lib.c). My target device is SATA block storage, and SATA block stroage typically use scsi_lib.c as a high-level device driver. This block request is simple write request similar to typical block request fro

Re: https://lkml.org/lkml/2014/11/13/785

2015-04-02 Thread Greg KH
On Thu, Apr 02, 2015 at 02:26:40PM +, Hemanth Kumar wrote: > Hi All/greg, > > What is the reason this particular patch is still not yet merged > > https://lkml.org/lkml/2014/11/13/785 > This is straight patch which fixes this issue for arm64 bit. Why not ask the developers involved, and the

https://lkml.org/lkml/2014/11/13/785

2015-04-02 Thread Hemanth Kumar
Hi All/greg, What is the reason this particular patch is still not yet merged https://lkml.org/lkml/2014/11/13/785 This is straight patch which fixes this issue for arm64 bit. Regards, Hemanth ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbie

Re: Function Pointer Question

2015-04-02 Thread Nicholas Krause
On April 2, 2015 9:13:38 AM EDT, valdis.kletni...@vt.edu wrote: >On Thu, 02 Apr 2015 06:54:42 -0400, Nicholas Krause said: > >> I looked in to it and the kernel seems to be one of the few places >where this >> is done along with in line functions. Why do we need function >pointers in the >> kern

Re: Function Pointer Question

2015-04-02 Thread Valdis . Kletnieks
On Thu, 02 Apr 2015 06:54:42 -0400, Nicholas Krause said: > I looked in to it and the kernel seems to be one of the few places where this > is done along with in line functions. Why do we need function pointers in the > kernel, outside of device drivers is my real question and is there any way to

Re: Function Pointer Question

2015-04-02 Thread Sudip Mukherjee
> But the question also read "Why do we need function pointers in the kernel, > outside of device drivers is " then, can "workqueues" be an ideal example of his question ? regards sudip ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org htt

Re: Function Pointer Question

2015-04-02 Thread Malte Vesper
On 02/04/15 12:27, Sudip Mukherjee wrote: >> I looked in to it and the kernel seems to be one of the few places where >> this is done along with in line functions. Why do we need function pointers >> in the kernel, outside of device drivers is my real question and is there >> any way to do the

Re: Function Pointer Question

2015-04-02 Thread Sudip Mukherjee
> I looked in to it and the kernel seems to be one of the few places where this > is done along with in line functions. Why do we need function pointers in > the kernel, outside of device drivers is my real question and is there any > way to do the code using them without function pointers at a

Re: Function Pointer Question

2015-04-02 Thread Malte Vesper
Since I am not sure what you are refering to exactly it is hard to answer. Refer to an example maybe? Also take a look at i.e. std::sort / the compare type (you seem to be a c++ guy). Why do we need a pointer there (actually function object, slight generalization of a funciton pointer)? Why wo

Re: Function Pointer Question

2015-04-02 Thread Nicholas Krause
On April 2, 2015 6:15:19 AM EDT, Malte Vesper wrote: >Virtual functions are implemented on on the base of vtables, which in >turn are implemented using function pointers. >So it would be good to get a grasp on functionpointers (they exist in >C++ as well), also I believe this is not a C maili

Re: Function Pointer Question

2015-04-02 Thread Malte Vesper
Virtual functions are implemented on on the base of vtables, which in turn are implemented using function pointers. So it would be good to get a grasp on functionpointers (they exist in C++ as well), also I believe this is not a C mailing list, take a look at stackoverflow or a c/c++ site or boo