Re: How to add x32 ABI support to PCI driver

2014-08-11 Thread Greg KH
On Mon, Aug 11, 2014 at 11:07:32PM -0700, Omkar Houddin wrote:
> Hello Greg,
> 
> I working on a char device driver. It is mostly based on the the scull device
> driver in the LDD book.
> It controls a HBA sitting on the PCIe BUS.

What type of "Host Bus Adapter" needs to be a char driver?  What
userspace programs are talking to this device?  Why do you need to be a
kernel driver at all and not just a UIO userspace driver?

Anyway, there's nothing "special" you need to do for x32 that you
shouldn't have already done properly for your char interface to handle a
mixture of 32/64bit kernel and userspace issues.  So again, nothing
should change, other than making sure you properly handle mixed
user/kernel bit sizes properly.

Do you have a pointer to your source code anywhere?

thanks,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to add x32 ABI support to PCI driver

2014-08-11 Thread Omkar Houddin
Hello Greg,

I working on a char device driver. It is mostly based on the the scull
device driver in the LDD book.
It controls a HBA sitting on the PCIe BUS.


Thanks,
OH



On Mon, Aug 11, 2014 at 10:07 PM, Greg KH  wrote:

> On Mon, Aug 11, 2014 at 09:55:15PM -0700, Omkar Houddin wrote:
> > Im trying to port the  PCI driver(supports only 32 bit) from 2.6.31 )o
> the
> > latest kernel version using openSuse.
> > Im doing it version by version. I was able to port it till 3.1 kernel
> version.
> > In the kernel 3.4 there is feature called X32 ABI support. I'm not
> knowing how
> > to add this.
>
> A PCI driver should not care about the processor or userspace ABI at
> all.  What type of driver are you working on?  What hardware does it
> control?
>
> thanks,
>
> greg k-h
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to add x32 ABI support to PCI driver

2014-08-11 Thread Greg KH
On Mon, Aug 11, 2014 at 09:55:15PM -0700, Omkar Houddin wrote:
> Im trying to port the  PCI driver(supports only 32 bit) from 2.6.31 )o the
> latest kernel version using openSuse.
> Im doing it version by version. I was able to port it till 3.1 kernel 
> version. 
> In the kernel 3.4 there is feature called X32 ABI support. I'm not knowing how
> to add this.

A PCI driver should not care about the processor or userspace ABI at
all.  What type of driver are you working on?  What hardware does it
control?

thanks,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


How to add x32 ABI support to PCI driver

2014-08-11 Thread Omkar Houddin
Im trying to port the  PCI driver(supports only 32 bit) from 2.6.31 )o the
latest kernel version using openSuse.
Im doing it version by version. I was able to port it till 3.1 kernel
version.
In the kernel 3.4 there is feature called X32 ABI support. I'm not knowing
how to add this.

Could anyone tell me what exactly this is and how to add this feature and
what should I be changing ?

Regards,
OH
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Where is the source code of udev?

2014-08-11 Thread Saket Sinha
Something was wrong with my firewall settings. Fixed it and I am able to
clone the repo now.Sorry for the troubles.

Regards,
Saket Sinha


On Mon, Aug 11, 2014 at 2:19 PM, Greg Kroah-Hartman  wrote:

> On Mon, Aug 11, 2014 at 02:01:20PM +0530, Saket Sinha wrote:
> > Hi Greg,
> >
> >   The link does not exist anymore. Let me know if you have the link
> of the
> >  git repo of systemd.
>
> I don't understand, it works fine for me here:
>
>  $ git clone git://anongit.freedesktop.org/systemd/systemd
>  Cloning into 'systemd'...
>  remote: Counting objects: 111267, done.
>  remote: Compressing objects: 100% (25598/25598), done.
>  Receiving objects: 100% (111267/111267), 24.84 MiB | 227.00 KiB/s, done.
>  Resolving deltas: 100% (82975/82975), done.
>  Checking connectivity... done.
>
> What happens when you try it?
>
> thanks,
>
> greg k-h
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Where is the source code of udev?

2014-08-11 Thread Kristofer Hallin
What about the first hit on Google?

http://cgit.freedesktop.org/systemd/
On 11 Aug 2014 10:32, "Saket Sinha"  wrote:

> Hi Greg,
>
>   The link does not exist anymore. Let me know if you have the link of
> the
>  git repo of systemd.
>
> Regards,
> Saket Sinha
>
>
> On Mon, Aug 11, 2014 at 12:29 PM, Saket Sinha 
> wrote:
>
>> Hi Greg,
>>
>>  The link does not exist anymore. Let me know if you have the link of
>> the git repo of systemd.
>>
>> Regards,
>> Saket Sinha
>>
>>
>> On Mon, Aug 4, 2014 at 9:33 PM, Greg Kroah-Hartman 
>> wrote:
>>
>>> On Mon, Aug 04, 2014 at 11:30:52AM -0300, Julio Faracco wrote:
>>> > Hi everybody.
>>> >
>>> > Where can I find the updated source code of udev?
>>> >
>>> > I'm cloning the source from here:
>>> http://git.kernel.org/cgit/linux/hotplug/
>>> > udev.git/
>>> > Is it right?
>>>
>>> Nope, look in the systemd source repo at:
>>> git://anongit.freedesktop.org/systemd/systemd
>>>
>>> It was merged with systemd many years ago.
>>>
>>> good luck,
>>>
>>> greg k-h
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>
>>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Where is the source code of udev?

2014-08-11 Thread Greg Kroah-Hartman
On Mon, Aug 11, 2014 at 02:01:20PM +0530, Saket Sinha wrote:
> Hi Greg,
> 
>       The link does not exist anymore. Let me know if you have the link of the
>  git repo of systemd. 

I don't understand, it works fine for me here:

 $ git clone git://anongit.freedesktop.org/systemd/systemd
 Cloning into 'systemd'...
 remote: Counting objects: 111267, done.
 remote: Compressing objects: 100% (25598/25598), done.
 Receiving objects: 100% (111267/111267), 24.84 MiB | 227.00 KiB/s, done.
 Resolving deltas: 100% (82975/82975), done.
 Checking connectivity... done.

What happens when you try it?

thanks,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Where is the source code of udev?

2014-08-11 Thread Saket Sinha
Hi Greg,

  The link does not exist anymore. Let me know if you have the link of
the
 git repo of systemd.

Regards,
Saket Sinha


On Mon, Aug 11, 2014 at 12:29 PM, Saket Sinha 
wrote:

> Hi Greg,
>
>  The link does not exist anymore. Let me know if you have the link of
> the git repo of systemd.
>
> Regards,
> Saket Sinha
>
>
> On Mon, Aug 4, 2014 at 9:33 PM, Greg Kroah-Hartman  wrote:
>
>> On Mon, Aug 04, 2014 at 11:30:52AM -0300, Julio Faracco wrote:
>> > Hi everybody.
>> >
>> > Where can I find the updated source code of udev?
>> >
>> > I'm cloning the source from here:
>> http://git.kernel.org/cgit/linux/hotplug/
>> > udev.git/
>> > Is it right?
>>
>> Nope, look in the systemd source repo at:
>> git://anongit.freedesktop.org/systemd/systemd
>>
>> It was merged with systemd many years ago.
>>
>> good luck,
>>
>> greg k-h
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies