kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How to add x32 ABI support to PCI driver
@ 2014-08-12  4:55 Omkar Houddin
  2014-08-12  5:07 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Omkar Houddin @ 2014-08-12  4:55 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140811/95f08542/attachment.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to add x32 ABI support to PCI driver
  2014-08-12  4:55 How to add x32 ABI support to PCI driver Omkar Houddin
@ 2014-08-12  5:07 ` Greg KH
  2014-08-12  6:07   ` Omkar Houddin
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2014-08-12  5:07 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to add x32 ABI support to PCI driver
  2014-08-12  5:07 ` Greg KH
@ 2014-08-12  6:07   ` Omkar Houddin
  2014-08-12  6:26     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Omkar Houddin @ 2014-08-12  6:07 UTC (permalink / raw)
  To: kernelnewbies

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 <greg@kroah.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140811/3746099a/attachment.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to add x32 ABI support to PCI driver
  2014-08-12  6:07   ` Omkar Houddin
@ 2014-08-12  6:26     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2014-08-12  6:26 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-12  6:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12  4:55 How to add x32 ABI support to PCI driver Omkar Houddin
2014-08-12  5:07 ` Greg KH
2014-08-12  6:07   ` Omkar Houddin
2014-08-12  6:26     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).