public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Bryan O'Sullivan" <bos@pathscale.com>
To: Roland Dreier <rdreier@cisco.com>
Cc: akpm@osdl.org, greg@kroah.com, linux-kernel@vger.kernel.org,
	openib-general@openib.org
Subject: Re: [openib-general] Re: [PATCH 0 of 18] ipath driver - for inclusion in 2.6.17
Date: Fri, 24 Mar 2006 16:03:56 -0800	[thread overview]
Message-ID: <1143245036.30626.112.camel@serpentine.pathscale.com> (raw)
In-Reply-To: <ada8xqzh1ju.fsf@cisco.com>

On Fri, 2006-03-24 at 15:21 -0800, Roland Dreier wrote:

> Clearly the simplest solution for your
> situation is just to kill it.

Yes, I'll do that.

> We seem to be going around and around on this.  There definitely is
> duplicated code; you just hide some of it in userspace.  You clearly
> have two copies of the function to generate a reply to a GET of
> NodeInfo, for example.

That's true.  What I'm not so clear on is why you care that we have a
similar facility in userland.  The userland SMA is so simple, we haven't
had to touch it in a long time, except to use the new ioctl-free ABI.
There's negligible duplicated coding effort going on.

> What if you moved the MAD query handling code into your core driver?
> You could use your current method of sending and receiving replies
> directly when ib_ipath isn't loaded, but just process the queries in
> the kernel without proxying to userspace.  Then if/when QP0 is
> created, switch to letting the MAD layer handle sending and receiving
> queries and let it call the same query handling code via your
> process_mad method.
> 
> But it would (I think) solve all the issues of needing ib_mad loaded
> for things to work.  Users could even load ib_ipath without ib_mad and
> have IB verbs work -- anything that actually needed MADs would pull in
> ib_mad as a dependency, and everything else should work fine with the
> SMA stuff handled by your driver.

I'll have to chew over this for a bit with a few other people.  I'm not
actually trying to be difficult; it's just that changing the SMA at this
point is quite disruptive.  we have schedules to muck with, plans to
accelerate, people to reallocate, and the like.

It would be a huge relief to me to be able to simply merge what we have
with the understanding that we'll resolve the SMA issue to your liking
as soon as possible, but you're the gatekeeper.

> I understand that you really, really want your driver in 2.6.17.

Very much.

> Also, in my opinion, we can still merge ipath
> even after 2.6.17-rc1, since it doesn't touch anything (except trivial
> kbuild stuff) outside of drivers/infiniband/hw/ipath.

I hope you're right.

	<b


      reply	other threads:[~2006-03-25  0:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24  4:41 [PATCH 0 of 18] ipath driver - for inclusion in 2.6.17 Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 1 of 18] ipath - core device driver Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 2 of 18] ipath - core driver header files Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 3 of 18] ipath - copy and send routines for sending an skb Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 4 of 18] ipath - support for HyperTransport devices Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 5 of 18] ipath - support for PCI Express devices Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 6 of 18] ipath - chip initialisation code Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 7 of 18] ipath - misc driver support code Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 8 of 18] ipath - sysfs and ipathfs support for core driver Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 9 of 18] ipath - char devices for diagnostics and lightweight subnet management Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 10 of 18] ipath - support for userspace apps using core driver Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 11 of 18] ipath - layering interfaces used by higher-level driver code Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 12 of 18] ipath - infiniband header files Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 13 of 18] ipath - infiniband UC and UD protocol support Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 14 of 18] ipath - infiniband RC " Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 15 of 18] ipath - misc infiniband code, part 1 Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 16 of 18] ipath - misc infiniband code, part 2 Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 17 of 18] ipath - infiniband verbs support Bryan O'Sullivan
2006-03-24  4:41 ` [PATCH 18 of 18] ipath - kbuild infrastructure Bryan O'Sullivan
2006-03-24 18:57 ` [PATCH 0 of 18] ipath driver - for inclusion in 2.6.17 Roland Dreier
2006-03-24 19:11   ` Bryan O'Sullivan
2006-03-24 20:57     ` Muli Ben-Yehuda
2006-03-24 21:19     ` [openib-general] " Roland Dreier
2006-03-24 22:33       ` Bryan O'Sullivan
2006-03-24 23:21         ` Roland Dreier
2006-03-25  0:03           ` Bryan O'Sullivan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1143245036.30626.112.camel@serpentine.pathscale.com \
    --to=bos@pathscale.com \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openib-general@openib.org \
    --cc=rdreier@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox