Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-18 Thread Eric W. Biederman
Andi Kleen <[EMAIL PROTECTED]> writes: >> Well the other alternative looks like having a second file per par >> bar. Say resource0_wc to support the write-combining mode, possibly > > The intention was to support memory not in bars, but give a generic > IOMMU mapped memory interface for user

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-18 Thread Andi Kleen
> Well the other alternative looks like having a second file per par > bar. Say resource0_wc to support the write-combining mode, possibly The intention was to support memory not in bars, but give a generic IOMMU mapped memory interface for user space e.g. for the X server. But that needs a way

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-18 Thread Andi Kleen
Well the other alternative looks like having a second file per par bar. Say resource0_wc to support the write-combining mode, possibly The intention was to support memory not in bars, but give a generic IOMMU mapped memory interface for user space e.g. for the X server. But that needs a way to

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-18 Thread Eric W. Biederman
Andi Kleen [EMAIL PROTECTED] writes: Well the other alternative looks like having a second file per par bar. Say resource0_wc to support the write-combining mode, possibly The intention was to support memory not in bars, but give a generic IOMMU mapped memory interface for user space e.g.

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread H. Peter Anvin
Eric W. Biederman wrote: _00FD_FC00_h - _00FD_FDFF_h On a hypertransport based system should work. There is a 32MB window for it. It doesn't. The termination on MMIO and IOIO transaction is different, and poking this memory window with an MMIO transaction will lock the

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread Eric W. Biederman
Andi Kleen <[EMAIL PROTECTED]> writes: > On Mon, Dec 17, 2007 at 08:57:50AM +1100, Paul Mackerras wrote: >> Greg KH writes: >> >> > Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs >> > devices that are mmaped, that makes a bit more sense. >> > >> > But I'd like to see what

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread Andi Kleen
On Mon, Dec 17, 2007 at 08:57:50AM +1100, Paul Mackerras wrote: > Greg KH writes: > > > Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs > > devices that are mmaped, that makes a bit more sense. > > > > But I'd like to see what ioctl is wanted here first. > > I believe the

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread Andi Kleen
On Mon, Dec 17, 2007 at 08:57:50AM +1100, Paul Mackerras wrote: Greg KH writes: Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs devices that are mmaped, that makes a bit more sense. But I'd like to see what ioctl is wanted here first. I believe the ioctl would be

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread Eric W. Biederman
Andi Kleen [EMAIL PROTECTED] writes: On Mon, Dec 17, 2007 at 08:57:50AM +1100, Paul Mackerras wrote: Greg KH writes: Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs devices that are mmaped, that makes a bit more sense. But I'd like to see what ioctl is wanted here

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-17 Thread H. Peter Anvin
Eric W. Biederman wrote: _00FD_FC00_h - _00FD_FDFF_h On a hypertransport based system should work. There is a 32MB window for it. It doesn't. The termination on MMIO and IOIO transaction is different, and poking this memory window with an MMIO transaction will lock the

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-16 Thread Paul Mackerras
Greg KH writes: > Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs > devices that are mmaped, that makes a bit more sense. > > But I'd like to see what ioctl is wanted here first. I believe the ioctl would be to set whether the mapping goes to I/O or memory space, and whether

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-16 Thread Paul Mackerras
Greg KH writes: Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs devices that are mmaped, that makes a bit more sense. But I'd like to see what ioctl is wanted here first. I believe the ioctl would be to set whether the mapping goes to I/O or memory space, and whether

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-14 Thread Andi Kleen
> The obvious thing to do would be to hook it up like: > drivers/pci/proc.c:proc_bus_pci_ioctl. Yes that is what it intended to do -- i just had never finished/tested that. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-14 Thread Andi Kleen
The obvious thing to do would be to hook it up like: drivers/pci/proc.c:proc_bus_pci_ioctl. Yes that is what it intended to do -- i just had never finished/tested that. -Andi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 04:35:05PM -0800, David Miller wrote: > From: Greg KH <[EMAIL PROTECTED]> > Date: Thu, 13 Dec 2007 16:19:32 -0800 > > > On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: > > > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > >

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Eric W. Biederman
Greg KH <[EMAIL PROTECTED]> writes: > On Thu, Dec 13, 2007 at 08:59:44PM -0700, Eric W. Biederman wrote: >> [EMAIL PROTECTED] writes: >> >> > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. >> > >> > TBD: Do we need the ioctl interface to sysfs or get the type

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 08:59:44PM -0700, Eric W. Biederman wrote: > [EMAIL PROTECTED] writes: > > > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > > through a different sysfs file. And

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Eric W. Biederman
[EMAIL PROTECTED] writes: > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > through a different sysfs file. And then actually specify the attribute > while doing pci_mmap_page_range ;-) This

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Jesse Barnes
On Thursday, December 13, 2007 3:55 pm [EMAIL PROTECTED] wrote: > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > through a different sysfs file. And then actually specify the attribute > while

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Andi Kleen
On Thu, Dec 13, 2007 at 04:19:32PM -0800, Greg KH wrote: > On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: > > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > > through a

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread David Miller
From: Greg KH <[EMAIL PROTECTED]> Date: Thu, 13 Dec 2007 16:19:32 -0800 > On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: > > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > > > TBD: Do we need the ioctl interface to sysfs or get the type

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > through a different sysfs file. And then actually specify the attribute >

[RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread venkatesh . pallipadi
Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then actually specify the attribute while doing pci_mmap_page_range ;-) And when this interface is in place, X

[RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread venkatesh . pallipadi
Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then actually specify the attribute while doing pci_mmap_page_range ;-) And when this interface is in place, X

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Andi Kleen
On Thu, Dec 13, 2007 at 04:19:32PM -0800, Greg KH wrote: On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Jesse Barnes
On Thursday, December 13, 2007 3:55 pm [EMAIL PROTECTED] wrote: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then actually specify the attribute while doing

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then actually specify the attribute while

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread David Miller
From: Greg KH [EMAIL PROTECTED] Date: Thu, 13 Dec 2007 16:19:32 -0800 On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Eric W. Biederman
[EMAIL PROTECTED] writes: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then actually specify the attribute while doing pci_mmap_page_range ;-) This ioctl

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 08:59:44PM -0700, Eric W. Biederman wrote: [EMAIL PROTECTED] writes: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a different sysfs file. And then

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Eric W. Biederman
Greg KH [EMAIL PROTECTED] writes: On Thu, Dec 13, 2007 at 08:59:44PM -0700, Eric W. Biederman wrote: [EMAIL PROTECTED] writes: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do we need the ioctl interface to sysfs or get the type attribute through a

Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl

2007-12-13 Thread Greg KH
On Thu, Dec 13, 2007 at 04:35:05PM -0800, David Miller wrote: From: Greg KH [EMAIL PROTECTED] Date: Thu, 13 Dec 2007 16:19:32 -0800 On Thu, Dec 13, 2007 at 03:55:51PM -0800, [EMAIL PROTECTED] wrote: Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. TBD: Do