[openib-general] [patch 09/18] IB/mad: Fix race between cancel and receive completion

2007-02-20 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Roland Dreier <[EMAIL PROTECTED]> When ib_cancel_mad() is called, it puts the canceled send on a list and schedules a "flushed" callback from process context. However, this leaves a window where a r

Re: [openib-general] [PATCH 5/6] Use pci_find_ht_capability() in drivers/pci/quirks.c

2006-11-09 Thread Greg KH
On Thu, Nov 09, 2006 at 10:43:25AM +0100, Segher Boessenkool wrote: > >You don't have any TTL in the while loop below, neither in the while > >loop in pci_find_next_ht_capability(). It's paranoid, but I'd rather > >keep a TTL in both loops (a brain-damaged capability chain in the PCI > >config spac

Re: [openib-general] [GIT PULL] please pull infiniband.git

2006-08-23 Thread Greg KH
On Wed, Aug 23, 2006 at 04:25:38PM -0700, Roland Dreier wrote: > Greg, please pull from > > master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git > for-linus > > This tree is also available from kernel.org mirrors at: > > git://git.kernel.org/pub/scm/linux/kernel/git/roland/

Re: [openib-general] restore missing PCI registers after reset

2006-07-26 Thread Greg KH
On Wed, Jul 26, 2006 at 07:32:26PM +0300, Michael S. Tsirkin wrote: > Quoting r. Greg KH <[EMAIL PROTECTED]>: > > I think pci_restore_state() already restores the msi and msix state, > > take a look at the latest kernel version :) > > Yes, I know :) > but I am not

Re: [openib-general] restore missing PCI registers after reset

2006-07-26 Thread Greg KH
On Wed, Jul 26, 2006 at 01:29:44PM +0300, Michael S. Tsirkin wrote: > Quoting r. Greg KH <[EMAIL PROTECTED]>: > > Subject: [patch 02/45] IB/mthca: restore missing PCI registers after reset > > -- > > mthca does not restore the following PCI-X/PCI Express

[openib-general] [patch 02/45] IB/mthca: restore missing PCI registers after reset

2006-07-17 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- mthca does not restore the following PCI-X/PCI Express registers after reset: PCI-X device: PCI-X command register PCI-X bridge: upstream and downstream split transaction registers PCI Express : PCI E

Re: [openib-general] Help with CONFIG_PCI_MSI in the kernel

2006-04-04 Thread Greg KH
On Tue, Apr 04, 2006 at 12:07:23PM -0600, Jason Gunthorpe wrote: > +#ifdef CONFIG_PCI_MSI No #ifdef is needed really, right? > +static void __devinit fixup_ht_msi(struct pci_dev* dev) > +{ > + /* Some BIOS's do not enable the hypertransport MSI mapping capability > +on the chipset. Th

[openib-general] Re: [stable] Re: [patch 11/26] IPOB: Move destructor from neigh->ops to neigh_param

2006-04-04 Thread Greg KH
On Tue, Apr 04, 2006 at 05:07:20PM -0700, David S. Miller wrote: > From: [EMAIL PROTECTED] > Date: Tue, 4 Apr 2006 17:00:30 -0700 > > > From: Michael Tsirkin <[EMAIL PROTECTED]> > > > > struct neigh_ops currently has a destructor field, but not a constructor > > field. > > The infiniband/ulp/ipo

[openib-general] Re: [stable] [PATCH -stable] Move destructor from neigh->ops to neigh_param

2006-04-04 Thread Greg KH
On Mon, Apr 03, 2006 at 06:47:41PM +0300, Michael S. Tsirkin wrote: > Hello, -stable team! > The following patch is a backport from 2.6.17-rc1: is solves an oops/crash > condition in ipoib that people are observing in 2.6.16/2.6.16.1. > > The patch exceeds the 100 line limit slightly, but only bec

[openib-general] Re: [PATCH 8 of 18] ipath - sysfs and ipathfs support for core driver

2006-03-23 Thread Greg KH
On Thu, Mar 23, 2006 at 12:44:45AM -0800, Bryan O'Sullivan wrote: > On Wed, 2006-03-22 at 21:49 -0800, Greg KH wrote: > > Oh, and I like your new filesystem, but where do you propose that it be > > mounted? > > I don't have any good candidates in mind. In our d

[openib-general] Re: [PATCH 8 of 18] ipath - sysfs and ipathfs support for core driver

2006-03-22 Thread Greg KH
On Wed, Mar 22, 2006 at 04:05:01PM -0800, Bryan O'Sullivan wrote: > +int ipath_driver_create_group(struct device_driver *drv) > +{ > + int ret; > + > + if (!drv->kobj.dentry) { > + ret = -ENODEV; > + goto bail; > + } > + > + ret = sysfs_create_group(&drv->kob

[openib-general] Re: [PATCH 9 of 20] ipath - char devices for diagnostics and lightweight subnet management

2006-03-10 Thread Greg KH
On Fri, Mar 10, 2006 at 05:43:50AM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 21:55 -0800, Roland Dreier wrote: > > > No, the only problems are with the way the various pieces of your > > drivers refer to devices by index. > > OK. What's a safe way to iterate over the devices in the

Re: [openib-general] Re: [PATCH 8 of 20] ipath - sysfs support for core driver

2006-03-10 Thread Greg KH
On Fri, Mar 10, 2006 at 10:08:10AM -0500, Hal Rosenstock wrote: > On Fri, 2006-03-10 at 09:59, Roland Dreier wrote: > > Greg> The main issue is that if you create a sysfs file like this, > > Greg> and then in 3 months realize that you need to change one of > > Greg> those characters to

[openib-general] Re: Revenge of the sysfs maintainer! (was Re: [PATCH 8 of 20] ipath - sysfs support for core driver)

2006-03-10 Thread Greg KH
On Fri, Mar 10, 2006 at 11:25:52AM -0500, Dave Jones wrote: > On Fri, Mar 10, 2006 at 07:55:21AM -0800, Bryan O'Sullivan wrote: > > > If Greg can get SUSE to turn on debugfs, that's great. I can ask Dave > > Jones or Doug Ledford or some other Fedora/RedHat kernel person to do > > likewise, bu

[openib-general] Re: Revenge of the sysfs maintainer! (was Re: [PATCH 8 of 20] ipath - sysfs support for core driver)

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 08:58:13PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 17:00 -0800, Greg KH wrote: > > > They are in the latest -mm tree if you wish to use them. Unfortunatly > > it might look like they will not work out, due to the per-cpu relay > &g

[openib-general] Re: [PATCH 8 of 20] ipath - sysfs support for core driver

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 09:09:37PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 17:11 -0800, Greg KH wrote: > > > These two files sure do show a lot of different stuff, all in a > > predefined structure for a single file. Please break them up into the > &g

[openib-general] Re: [PATCH 9 of 20] ipath - char devices for diagnostics and lightweight subnet management

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 08:41:36PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 17:04 -0800, Greg KH wrote: > > > > I don't expect this to be a practical problem. We're planning to add > > > hotplug support to the driver once we have some cyc

[openib-general] Re: [PATCH 8 of 20] ipath - sysfs support for core driver

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 04:35:38PM -0800, Bryan O'Sullivan wrote: > +static ssize_t show_node_info(struct device *dev, > +struct device_attribute *attr, > +char *buf) > +{ > + static const size_t count = 10; > + struct ipath_devdata *d

[openib-general] Re: [PATCH 9 of 20] ipath - char devices for diagnostics and lightweight subnet management

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 04:48:45PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 16:45 -0800, Greg KH wrote: > > > > We don't support hotplugged devices at the moment. > > > > Why not? Your cards can't be placed in a machine that supports P

[openib-general] Re: [PATCH 8 of 20] ipath - sysfs support for core driver

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 03:59:37PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 15:46 -0800, Greg KH wrote: > > On Thu, Mar 09, 2006 at 03:18:49PM -0800, Roland Dreier wrote: > > > > Thanks for CC:ing me, but where were the originals of these posted? > >

[openib-general] Re: Revenge of the sysfs maintainer! (was Re: [PATCH 8 of 20] ipath - sysfs support for core driver)

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 04:46:29PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 16:35 -0800, Greg KH wrote: > > > Grumble? Oh come on, don't export binary structures through sysfs, it's > > in the DOCUMENTATION THAT SYSFS IS FOR TEXT FILES ONLY &

[openib-general] Re: [PATCH 9 of 20] ipath - char devices for diagnostics and lightweight subnet management

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 03:52:47PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 15:26 -0800, Roland Dreier wrote: > > > Similarly what protects against another process opening the device > > right after the ipath_sma_alive = 0 setting, but before you do all the > > cleanup that's after t

[openib-general] Revenge of the sysfs maintainer! (was Re: [PATCH 8 of 20] ipath - sysfs support for core driver)

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 03:32:23PM -0800, Bryan O'Sullivan wrote: > On Thu, 2006-03-09 at 15:18 -0800, Roland Dreier wrote: > > > +static ssize_t show_atomic_stats(struct device_driver *dev, char *buf) > > > +{ > > > +memcpy(buf, &ipath_stats, sizeof(ipath_stats)); > > > + > > > +

[openib-general] Re: [PATCH 8 of 20] ipath - sysfs support for core driver

2006-03-09 Thread Greg KH
On Thu, Mar 09, 2006 at 03:18:49PM -0800, Roland Dreier wrote: Thanks for CC:ing me, but where were the originals of these posted? > > +static ssize_t show_version(struct device_driver *dev, char *buf) > > +{ > > + return scnprintf(buf, PAGE_SIZE, "%s", ipath_core_version); > > +} > > Any r

[openib-general] Re: [PATCH 02/22] Firmware interface code for IB device.

2006-02-18 Thread Greg KH
On Sat, Feb 18, 2006 at 01:31:52PM -0800, Roland Dreier wrote: > Greg> Sorry, I didn't mean to say "private", but rather, > Greg> "seperate". Doing kernel development in a seperate > Greg> development tree from the mainline kernel is very > Greg> problematic, as has been documented

[openib-general] Re: [PATCH 02/22] Firmware interface code for IB device.

2006-02-18 Thread Greg KH
On Sat, Feb 18, 2006 at 10:52:58AM -0800, Roland Dreier wrote: > Greg> Checking stuff into a private svn tree is vastly different > Greg> from posting to lkml in public. In fact, it looks like the > Greg> svn tree is so far ahead of the in-kernel stuff, that most > Greg> people are

[openib-general] Re: [PATCH 02/22] Firmware interface code for IB device.

2006-02-18 Thread Greg KH
On Sat, Feb 18, 2006 at 08:32:28AM -0800, Roland Dreier wrote: > Arjan> The bigger issue is: if people can't be bothered to do > Arjan> those steps, why would they be bothered to do this for > Arjan> maintenance and bugfixes etc etc? Basically it's now > Arjan> already a de-facto u

[openib-general] Re: [PATCH 02/22] Firmware interface code for IB device.

2006-02-17 Thread Greg KH
On Fri, Feb 17, 2006 at 04:57:07PM -0800, Roland Dreier wrote: > From: Roland Dreier <[EMAIL PROTECTED]> > > This is a very large file with way too much code for a .h file. > The functions look too big to be inlined also. Is there any way > for this code to move to a .c file? Roland, your commen

[openib-general] Re: [PATCH 04/22] OF adapter probing

2006-02-17 Thread Greg KH
On Fri, Feb 17, 2006 at 04:57:14PM -0800, Roland Dreier wrote: > +int hipz_count_adapters(void) > +{ > + int num = 0; > + struct device_node *dn = NULL; > + > + EDEB_EN(7, ""); > + > + while ((dn = of_find_node_by_name(dn, "lhca"))) { > + num++; > + } The { } are no

[openib-general] Re: [PATCH] fix IB with latest versions of udev

2006-01-20 Thread Greg KH
On Fri, Jan 20, 2006 at 04:28:39PM -0800, Sean Hefty wrote: > Greg KH wrote: > >If you want, I can forward this on to Linus in my driver tree, or you > >can send it yourselves. > > Thanks, Greg. Please go ahead and forward this patch. Great, will do, thanks. Care to give m

[openib-general] [PATCH] fix IB with latest versions of udev

2006-01-20 Thread Greg KH
Here's a patch that will remove a few lines of code from the IB core, and let it work properly with userspace programs that are only watching the netlink socket for events, instead of mucking around in sysfs (like the latest versions of udev do.) I've only compile tested it as I have no IB hardwar

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-19 Thread Greg KH
On Wed, Jan 18, 2006 at 09:53:08PM -0800, Bryan O'Sullivan wrote: > On Wed, 2006-01-18 at 21:39 -0800, Greg KH wrote: > > > Ok, that's fair enough. But if you want to do something like ptys, then > > why not just have your own filesystem for this driver? > >

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 09:17:01PM -0800, Bryan O'Sullivan wrote: > On Wed, 2006-01-18 at 17:17 -0800, David S. Miller wrote: > > > It's going to give you strict typing, and extensible attributes for > > the configuration attributes you define. So if you determine later > > "oh we need to add thi

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 09:02:37PM -0800, Bryan O'Sullivan wrote: > On Wed, 2006-01-18 at 18:57 -0800, Greg KH wrote: > > > Shouldn't you just open the proper chip device and port device itself? > > That drops one ioctl. > > There isn't usually a "ri

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 07:49:11PM -0800, Andrew Morton wrote: > Greg KH <[EMAIL PROTECTED]> wrote: > > > > Sorry for sticking my head in a beehive, but. Stand back and look at it: > > > Shouldn't you just open the proper chip device and port device itself?

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 05:17:20PM -0800, Bryan O'Sullivan wrote: > On Wed, 2006-01-18 at 16:53 -0800, Greg KH wrote: > > > Use the firmware subsystem for this. It uses sysfs so ioctl needed at > > all. > > OK. Would I be correct in thinking that drivers/firmwa

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 04:43:31PM -0800, Bryan O'Sullivan wrote: > Opening the /dev/ipath special file assigns an appropriate free > unit (chip) and port (context on a chip) to a user process. Shouldn't you just open the proper chip device and port device itself? That drops one io

[openib-general] Re: RFC: ipath ioctls and their replacements

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 04:43:31PM -0800, Bryan O'Sullivan wrote: > For EEPROM/flash management: > > READ_EEPROM reads the flash. WRITE_EEPROM writes it. I don't > see a standard way of doing this in the kernel; many drivers > provide their own private ioctls, some on ded

[openib-general] Re: [PATCH 0 of 20] [RFC] ipath - PathScale InfiniPath driver

2006-01-03 Thread Greg KH
On Fri, Dec 30, 2005 at 05:40:50PM -0800, Bryan O'Sullivan wrote: > On Fri, 2005-12-30 at 16:10 -0800, Greg KH wrote: > > > But we (the kernel community), don't really accept that as a valid > > reason to accept this kind of code, sorry. > > Fair enough. I

[openib-general] Re: [PATCH 8 of 20] ipath - core driver, part 1 of 4

2005-12-30 Thread Greg KH
On Fri, Dec 30, 2005 at 03:47:07PM -0800, Bryan O'Sullivan wrote: > On Fri, 2005-12-30 at 00:39 -0800, Greg KH wrote: > > > > +void ipath_chip_done(void) > > > +{ > > > +} > > > + > > > +void ipath_chip_cleanup(struct ipath_devdata *

[openib-general] Re: [PATCH 0 of 20] [RFC] ipath - PathScale InfiniPath driver

2005-12-30 Thread Greg KH
On Fri, Dec 30, 2005 at 03:11:44PM -0800, Bryan O'Sullivan wrote: > On Fri, 2005-12-30 at 00:00 -0800, Greg KH wrote: > > > - The driver still uses EXPORT_SYMBOL, for consistency with other > > > code in drivers/infiniband > > > > Why would that mat

[openib-general] Re: [PATCH 11 of 20] ipath - core driver, part 4 of 4

2005-12-30 Thread Greg KH
On Fri, Dec 30, 2005 at 03:17:55PM -0800, Bryan O'Sullivan wrote: > On Fri, 2005-12-30 at 00:12 -0800, Greg KH wrote: > > And does your driver work with udev? I didn't see where you were > > exporting the major:minor number of your devices to sysfs, but I might > &

[openib-general] Re: [PATCH 12 of 20] ipath - misc driver support code

2005-12-30 Thread Greg KH
On Fri, Dec 30, 2005 at 03:10:09PM -0800, Bryan O'Sullivan wrote: > On Fri, 2005-12-30 at 00:25 -0800, Greg KH wrote: > > > + unsigned long long Control; > > > + unsigned long long PageAlign; > > > + unsigned long long PortCnt; > > > > And what'

[openib-general] Re: [PATCH 8 of 20] ipath - core driver, part 1 of 4

2005-12-30 Thread Greg KH
On Wed, Dec 28, 2005 at 04:31:27PM -0800, Bryan O'Sullivan wrote: > Signed-off-by: Bryan O'Sullivan <[EMAIL PROTECTED]> > > diff -r ffbd416f30d4 -r ddd21709e12c > drivers/infiniband/hw/ipath/ipath_driver.c > --- /dev/null Thu Jan 1 00:00:00 1970 + > +++ b/drivers/infiniband/hw/ipath/ipath_dr

[openib-general] Re: [PATCH 11 of 20] ipath - core driver, part 4 of 4

2005-12-30 Thread Greg KH
On Wed, Dec 28, 2005 at 04:31:30PM -0800, Bryan O'Sullivan wrote: > Signed-off-by: Bryan O'Sullivan <[EMAIL PROTECTED]> > > diff -r c37b118ef806 -r e8af3873b0d9 > drivers/infiniband/hw/ipath/ipath_driver.c > --- a/drivers/infiniband/hw/ipath/ipath_driver.c Wed Dec 28 14:19:42 > 2005 -0800 >

[openib-general] Re: [PATCH 0 of 20] [RFC] ipath - PathScale InfiniPath driver

2005-12-30 Thread Greg KH
On Wed, Dec 28, 2005 at 04:31:19PM -0800, Bryan O'Sullivan wrote: > > There are a few requested changes we have chosen to omit for now: > > - The driver still uses EXPORT_SYMBOL, for consistency with other > code in drivers/infiniband Why would that matter? > - Someone asked for the ker

[openib-general] Re: [PATCH 12 of 20] ipath - misc driver support code

2005-12-30 Thread Greg KH
On Wed, Dec 28, 2005 at 04:31:31PM -0800, Bryan O'Sullivan wrote: > Signed-off-by: Bryan O'Sullivan <[EMAIL PROTECTED]> No description of what the patch does? > +struct _infinipath_do_not_use_kernel_regs { > + unsigned long long Revision; u64? > + unsigned long long Control; > + uns

[openib-general] Re: [stable] [2.6 patch] drivers/infiniband/core/mad.c: fix a NULL pointer dereference

2005-11-21 Thread Greg KH
Please send these again to the stable@ address when they have been accepted into upstream. thanks, greg k-h ___ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http:/

[openib-general] Re: [git pull] InfiniBand fixes for 2.6.14

2005-09-29 Thread Greg KH
On Wed, Sep 28, 2005 at 06:44:55AM -0700, Roland Dreier wrote: > Greg> I didn't think that git pulls were going to be allowed from > Greg> subsystem maintainers after -rc1 came out. After that, > Greg> patches by email were required to be sent, not git pulls. > Greg> This does caus

[openib-general] Re: [git pull] InfiniBand fixes for 2.6.14

2005-09-28 Thread Greg KH
On Tue, Sep 27, 2005 at 09:01:45PM -0700, Roland Dreier wrote: > Linus, please pull from > > master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git > for-linus Hm, I complained about this last time, with no response... I didn't think that git pulls were going to be allowed from s

[openib-general] Re: mthca and LinuxBIOS

2005-08-05 Thread Greg KH
On Fri, Aug 05, 2005 at 03:25:02PM -0700, yhlu wrote: > In LinuxBIOS, We can allocate 64 bit region ( 0xfc000) to the > mellanox Infiniband card. Some range above 4G. So the mmio below 4G > is some smaller only 128M, Otherwise need 512M. If 4 IB cards are > used, the mmio will be 2G. For n

[openib-general] Re: mthca and LinuxBIOS

2005-08-05 Thread Greg KH
On Fri, Aug 05, 2005 at 01:38:37PM -0700, Linus Torvalds wrote: > > Hmm.. This looks half-way sane, but too ugly for words. > > I'd much rather see that when we detect a 64-bit resource, we always mark > the next resource as being reserved some way, and then we just make > pci_update_resource()

Re: [openib-general] Re: [PATCH] arch/xx/pci: remap_pfn_range -> io_remap_pfn_range

2005-07-28 Thread Greg KH
On Thu, Jul 28, 2005 at 12:57:51PM +0100, Ian Pratt wrote: > > > Greg> Hm, you do realize that io_remap_pfn_range() is the same > > > Greg> thing as remap_pfn_range() on i386, right? > > > > > > Greg> So, why would this patch change anything? > > > > > > It's not the same thing under

[openib-general] Re: [git pull] Final InfiniBand updates for 2.6.13

2005-07-28 Thread Greg KH
On Wed, Jul 27, 2005 at 09:20:08PM -0700, Roland Dreier wrote: > Linus, please pull from > > rsync://rsync.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git > for-linus Not to be a pain, but didn't we say that we would only do email patches after -rc1 comes out at the last kernel sum

[openib-general] Re: [PATCH] arch/xx/pci: remap_pfn_range -> io_remap_pfn_range

2005-07-27 Thread Greg KH
On Thu, Jul 28, 2005 at 09:48:59AM +0300, Michael S. Tsirkin wrote: > Quoting r. Greg KH <[EMAIL PROTECTED]>: > > Subject: Re: [PATCH] arch/xx/pci: remap_pfn_range -> io_remap_pfn_range > > > > On Tue, Jul 26, 2005 at 01:32:00AM +0300, Michael S. Tsirkin wrote

Re: [openib-general] Re: [PATCH] arch/xx/pci: remap_pfn_range -> io_remap_pfn_range

2005-07-27 Thread Greg KH
On Wed, Jul 27, 2005 at 09:30:17PM -0700, Roland Dreier wrote: > Greg> Hm, you do realize that io_remap_pfn_range() is the same > Greg> thing as remap_pfn_range() on i386, right? > > Greg> So, why would this patch change anything? > > It's not the same thing under Xen. I think this p

[openib-general] Re: [PATCH] arch/xx/pci: remap_pfn_range -> io_remap_pfn_range

2005-07-27 Thread Greg KH
On Tue, Jul 26, 2005 at 01:32:00AM +0300, Michael S. Tsirkin wrote: > Greg, Martin, does the following make sense? > If it does, should other architectures be updated as well? > > --- > > Convert i386/pci to use io_remap_pfn_range instead of remap_pfn_range. > > Signed-off-by: Michael S. Tsirkin

[openib-general] Re: [PATCH 05/16] IB uverbs: core implementation

2005-06-29 Thread Greg KH
gt; > Here's a patch that applies on top of this patch set that fixes this: > > > Greg KH pointed out that with the new class device code, we can just > set class_dev.devt instead of having our own show_dev() function. > > Signed-off-by: Roland Dreier <[EMAIL PROTE

Re: [openib-general] Re: [PATCH 05/16] IB uverbs: core implementation

2005-06-29 Thread Greg KH
On Tue, Jun 28, 2005 at 11:13:22PM -0500, Troy Benjegerdes wrote: > On Tue, Jun 28, 2005 at 05:27:09PM -0700, Greg KH wrote: > > On Tue, Jun 28, 2005 at 04:03:43PM -0700, Roland Dreier wrote: > > > +++ linux/drivers/infiniband/core/uverbs_main.c 2005-06-28 > > &g

[openib-general] Re: [PATCH 05/16] IB uverbs: core implementation

2005-06-28 Thread Greg KH
On Tue, Jun 28, 2005 at 04:03:43PM -0700, Roland Dreier wrote: > +++ linux/drivers/infiniband/core/uverbs_main.c 2005-06-28 > 15:20:04.363963991 -0700 > @@ -0,0 +1,708 @@ > +/* > + * Copyright (c) 2005 Topspin Communications. All rights reserved. > + * Copyright (c) 2005 Cisco Systems. All

[openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

2005-04-24 Thread Greg KH
On Sun, Apr 24, 2005 at 04:52:31PM -0500, Timur Tabi wrote: > Greg KH wrote: > > >You don't "support" i386 or ia64 or x86-64 or ppc64 systems? What > >hardware do you support? > > I've never seen or heard of any x86-32 or x86-64 system that support

[openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

2005-04-24 Thread Greg KH
On Sun, Apr 24, 2005 at 09:23:48AM -0500, Timur Tabi wrote: > Andrew Morton wrote: > > >If your theory is correct then it should be able to demonstrate this > >problem without any special hardware at all: pin some user memory, then > >generate memory pressure then check the contents of those pinne

Re: [openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

2005-04-21 Thread Greg KH
On Thu, Apr 21, 2005 at 03:07:42PM -0500, Timur Tabi wrote: > >*You* need to come up with a solution that looks good to *the community* > >if you want it merged. > > True, but I'm not going to waste my time adding this support if the > consensus I get from the kernel developers that they don't

[openib-general] Re: [PATCH][26.5/27] Add MT25204 PCI IDs

2005-04-07 Thread Greg KH
On Fri, Apr 01, 2005 at 02:06:50PM -0800, Roland Dreier wrote: > Ugh, this patch is required to build support for the new Mellanox > HCAs. Greg K-H applied it to his tree a while ago but it hasn't made > it to Linus yet. > > Sorry, > Roland > > Add PCI device IDs for new Mellanox MT25204 "Sina

[openib-general] Re: [PATCH] disable MSI for AMD-8131

2005-03-28 Thread Greg KH
On Sun, Mar 06, 2005 at 10:28:45PM +0200, Michael S. Tsirkin wrote: > Greg, Martin, > > The AMD-8131 I/O APIC (device id 1022:7450/7451) does not support message > signalled interrupts. Thus, if a device driver attempts to enable msi, > it will suceed, but interrupts are not actually delivered to

Re: [openib-general] [PATCH] Add PCI device ID for new Mellanox HCA

2005-03-17 Thread Greg KH
On Tue, Mar 01, 2005 at 08:42:47AM -0800, Roland Dreier wrote: > Hi Greg, > > It turns out that Mellanox decided to change the device ID at the last > minute. So of course there will be parts with both IDs. Here's an > updated patch that includes both IDs. Please use this instead. Applied, tha

[openib-general] Re: [PATCH][3/26] IB/mthca: improve CQ locking part 1

2005-03-04 Thread Greg KH
On Thu, Mar 03, 2005 at 05:02:36PM -0800, Roland Dreier wrote: > Greg> Sure, I have no problem accepting that into the pci core. > > What would pci_irq_sync() do exactly? Consolidate common code like this? :) thanks, greg k-h ___ openib-general m

[openib-general] Re: [PATCH][3/26] IB/mthca: improve CQ locking part 1

2005-03-03 Thread Greg KH
On Thu, Mar 03, 2005 at 07:35:00PM -0500, Jeff Garzik wrote: > Roland Dreier wrote: > >@@ -783,6 +777,11 @@ > > cq->cqn & (dev->limits.num_cqs - 1)); > > spin_unlock_irq(&dev->cq_table.lock); > > > >+if (dev->mthca_flags & MTHCA_FLAG_MSI_X) > >+ synchronize_irq(de

Re: [openib-general] Re: [KJ] [RFC] TODO file cleanups

2005-01-20 Thread Greg KH
On Thu, Jan 20, 2005 at 09:35:59PM -0700, Ronald G. Minnich wrote: > On Thu, 20 Jan 2005, Grant Grundler wrote: > > I think you overlooked the fact that include/linux/rcupdate.h is > > published under the GPL. Not "dual GPL/BSD". Someone can't take code > > that uses linux's RCU and ship it under a

Re: [openib-general] Re: [KJ] [RFC] TODO file cleanups

2005-01-20 Thread Greg KH
On Thu, Jan 20, 2005 at 10:02:24AM -0800, Sean Hefty wrote: > Greg KH wrote: > > >Personally, I think it's a stupid thing to try to license this code in a > >dual way, as any port someone is going to have to do to get this code to > >work in another os will be almost

Re: [openib-general] Re: [KJ] [RFC] TODO file cleanups

2005-01-20 Thread Greg KH
On Thu, Jan 20, 2005 at 06:02:36PM +0100, Adrian Bunk wrote: > On Tue, Jan 18, 2005 at 11:06:19AM -0800, Roland Dreier wrote: > > Michael> By the way, I was looking at using RCU to reduce locking, > > Michael> also for thing like poll_cq. What do you say to that? > > > > Unless it's a dram

[openib-general] Re: debugfs directory structure

2005-01-12 Thread Greg KH
On Wed, Jan 12, 2005 at 05:01:43PM -0500, Dave Jones wrote: > On Wed, Jan 12, 2005 at 01:41:08PM -0800, Greg KH wrote: > > On Wed, Jan 12, 2005 at 04:09:45PM -0500, Dave Jones wrote: > > > On Wed, Jan 12, 2005 at 12:50:51PM -0800, Roland Dreier wrote: > > > > Hi

[openib-general] Re: debugfs directory structure

2005-01-12 Thread Greg KH
On Wed, Jan 12, 2005 at 04:09:45PM -0500, Dave Jones wrote: > On Wed, Jan 12, 2005 at 12:50:51PM -0800, Roland Dreier wrote: > > Hi Greg, > > > > Now that debugfs is merged into Linus's tree, I'm looking at using it > > to replace the IPoIB debugging pseudo-filesystem (ipoib_debugfs). Is > >

[openib-general] Re: debugfs directory structure

2005-01-12 Thread Greg KH
On Wed, Jan 12, 2005 at 12:50:51PM -0800, Roland Dreier wrote: > Hi Greg, > > Now that debugfs is merged into Linus's tree, I'm looking at using it > to replace the IPoIB debugging pseudo-filesystem (ipoib_debugfs). Great! > Is > there any guidance on what the structure of debugfs should look li

[openib-general] Re: [PATCH][RFC/v2][2/21] Add core InfiniBand support

2004-11-23 Thread Greg KH
On Tue, Nov 23, 2004 at 08:14:19AM -0800, Roland Dreier wrote: > --- /dev/null 1970-01-01 00:00:00.0 + > +++ linux-bk/drivers/infiniband/core/cache.c 2004-11-23 08:10:16.816082837 > -0800 > @@ -0,0 +1,338 @@ > +/* > + This software is available to you under a choice of one of two > +

[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

2004-11-23 Thread Greg KH
On Tue, Nov 23, 2004 at 07:06:07AM -0800, Roland Dreier wrote: > Greg> Yes, it probably should be. Hm, no, we don't allow you to > Greg> put class specific files if you use the class_simple API, > Greg> sorry I misread your question. You can just handle the > Greg> class yourself

[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 03:05:40PM -0800, Roland Dreier wrote: > Greg> You are letting any user, with any privilege register or > Greg> unregister an "agent"? > > They have to be able to open the device node. We could add a check > that they have it open for writing but there's not really

[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 10:45:02PM -0800, Roland Dreier wrote: > Greg> class_simple_device_add returns a pointer to a struct > Greg> class_device * that you can then use to create a file in > Greg> sysfs with. That should be what you're looking for. > > Shouldn't the ABI version be an

Re: [openib-general] Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 10:51:10PM -0800, Johannes Erdfelt wrote: > > Is the eventual plan to move to dynamic majors for all devices? No, some people will not allow that to happen, it would break too many old programs and configurations. It will probably be a config option if people wish to try

[openib-general] Re: [PATCH][RFC/v1][4/12] Add InfiniBand SA (Subnet Administration) query support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 10:47:29PM -0800, Roland Dreier wrote: > Greg> Yeah, but a name in each file is much nicer. > > Very little of the kernel seems to follow this rule right now. I agree, but it's good to add this for new files. > Greg> One comment, the file drivers/infiniband/core/c

Re: [openib-general] Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 03:30:47PM -0800, Johannes Erdfelt wrote: > On Mon, Nov 22, 2004, Greg KH <[EMAIL PROTECTED]> wrote: > > On Mon, Nov 22, 2004 at 02:58:45PM -0800, Roland Dreier wrote: > > > Greg> Oh, have you asked for a real major number to be reserv

[openib-general] Re: [PATCH][RFC/v1][4/12] Add InfiniBand SA (Subnet Administration) query support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 03:34:23PM -0800, Roland Dreier wrote: > Greg> No email address of who to bug with issues? > > There's a patch to MAINTAINERS... Yeah, but a name in each file is much nicer. > Greg> What is "RESERVED"? I must be missing a previous patch > Greg> somewhere, I c

[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 06:08:21PM -0800, Roland Dreier wrote: > Greg> This could be in a sysfs file, right? > > Ugh, how does one add an attribute (like the ABI version) to a > class_simple? It shouldn't be per-device but I don't see anything > like class_create_file() that could work for cl

[openib-general] Re: [PATCH][RFC/v1][0/12] Initial submission of InfiniBand patches for review

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 02:50:41PM -0800, Roland Dreier wrote: > Greg> Who would be including these files, only drivers in > Greg> drivers/infiniband? Or from files in other parts of the > Greg> kernel? > > In the current patchset all the code is under drivers/infiniband. Then it sho

[openib-general] Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 02:58:45PM -0800, Roland Dreier wrote: > Greg> Why do you propose such a "deep" nesting of directories for > Greg> umad devices? That's not the LANNANA way. > > No real reason, I'm open to better suggestions. /dev/umad* /dev/ib/umad* > Greg> Oh, have you ask

[openib-general] Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 07:14:22AM -0800, Roland Dreier wrote: > +/dev files > + > + To create the appropriate character device files automatically with > + udev, a rule like > + > +KERNEL="umad*", NAME="infiniband/%s{ibdev}/ports/%s{port}/mad" > + > + can be used. This will create a device

[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 07:14:11AM -0800, Roland Dreier wrote: > Add a driver that provides a character special device for each > InfiniBand port. This device allows userspace to send and receive > MADs via write() and read() (with some control operations implemented > as ioctls). Do you really n

[openib-general] Re: [PATCH][RFC/v1][8/12] Add IPoIB (IP-over-InfiniBand) driver

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 07:14:04AM -0800, Roland Dreier wrote: > > +#define ipoib_printk(level, priv, format, arg...)\ > + printk(level "%s: " format, ((struct ipoib_dev_priv *) priv)->dev->name > , ## arg) > +#define ipoib_warn(priv, format, arg...) \ > + ipoib_printk(KER

[openib-general] Re: [PATCH][RFC/v1][0/12] Initial submission of InfiniBand patches for review

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 07:13:24AM -0800, Roland Dreier wrote: > organization of the code will be very much appreciated. For example, > the current set of patches puts include files in driver/infiniband/include; > would it be preferred to put include files in include/linux/infiniband/, > directly

[openib-general] Re: [PATCH][RFC/v1][4/12] Add InfiniBand SA (Subnet Administration) query support

2004-11-22 Thread Greg KH
On Mon, Nov 22, 2004 at 07:13:48AM -0800, Roland Dreier wrote: > > Index: linux-bk/drivers/infiniband/core/Makefile > === Please hack your submit script to not add these headers, when importing to bk they end up showing up in the cha

Re: [openib-general] InfiniBand incompatible with the Linux kernel?

2004-10-08 Thread Greg KH
On Fri, Oct 08, 2004 at 04:27:14PM -0700, Roland Dreier wrote: > The increase in cost for the spec is rather unfortunate but I think > it's orthogonal to any IP issues. Since the Linux kernel contains a > lot of code written to specs available only under NDA (and even > reverse-engineered code whe

Re: [openib-general] InfiniBand incompatible with the Linux kernel?

2004-10-08 Thread Greg KH
On Fri, Oct 08, 2004 at 04:49:16PM -0600, Eric W. Biederman wrote: > Greg KH <[EMAIL PROTECTED]> writes: > > > [2] Sure, any person who has a copy of the kernel source tree could be a > > target for any of a zillion other potential claims, nothing new there, > >

[openib-general] InfiniBand incompatible with the Linux kernel?

2004-10-08 Thread Greg KH
Hi all, Enough people have been asking me about this lately, that I thought I would just bring it up publicly here. It seems that the Infiniband group (IBTA) has changed their licensing agrement of the basic Infiniband spec. See: http://www.theinquirer.net/?article=18922 for more info ab