public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
To: "J.L. Burr" <jlburr-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 0/1] mthca: Modify to support embedded PowerPC platforms
Date: Sun, 09 Jan 2011 21:53:27 -0800	[thread overview]
Message-ID: <ada4o9h9ueg.fsf@cisco.com> (raw)
In-Reply-To: <4D293FFE.7000901-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> (J. L. Burr's message of "Sat, 08 Jan 2011 23:56:30 -0500")

 > > One thing to try would be to load the ib_mthca module with fw_cmd_doorbell=1
 > > That won't fix anything, but if it fails in a different way that might
 > > give a clue as to what's wrong.
 > 
 > I tried this and it *does* fail in a different way:
 > 
 > NOP command failed to generate interrupt (IRQ 18), aborting.

OK, that's very interesting information.  The effect of that flag is to
have the driver write firmware commands into the doorbell region (BAR 2)
instead of the command region (BAR 0).  And it seems writes to the
doorbell region are getting lost on your system (that might also explain
why there were no packets received without the fw_cmd_doorbell flag;
receives are posted to the HCA by doorbell writes too).  I suspect if we
could get fw_cmd_doorbell=1 working on your system then that would fix
everything else too.

It might help to dump all the addresses in mthca_setup_cmd_doorbells()
-- ie what the driver is using for base and also the final address that
gets ioremap'ed.  But I do notice that BAR 2 of the HCA is at E00000000
which is at a very aligned border -- is it possible that something in
your system's PCI windows is not set up quite right so that BAR is a problem?

 > When I compared some of these fields in my GDB dump of module areas, I
 > see that the doorbell offsets on my system are all 0x000C.  That is,
 > all 8 elements of the dev->cmd.dbell_offsets array are 0x000C.

I think that's OK... don't have a good system to check what I get though.

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-01-10  5:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07  2:47 [PATCH 0/1] mthca: Modify to support embedded PowerPC platforms J.L. Burr
2011-01-07  5:58 ` Roland Dreier
     [not found]   ` <adalj2xb6h0.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2011-01-07  6:50     ` Roland Dreier
2011-01-07  9:24       ` J.L. Burr
2011-01-07 17:00         ` Roland Dreier
     [not found]           ` <adazkrcabt7.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2011-01-09  4:56             ` J.L. Burr
     [not found]               ` <4D293FFE.7000901-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org>
2011-01-10  5:53                 ` Roland Dreier [this message]
     [not found]                   ` <ada4o9h9ueg.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2011-01-12  1:28                     ` J.L. Burr
     [not found]                       ` <4D2D03CD.6060802-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org>
2011-01-12  5:00                         ` Roland Dreier

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=ada4o9h9ueg.fsf@cisco.com \
    --to=rdreier-fyb4gu1cfyuavxtiumwx3w@public.gmane.org \
    --cc=jlburr-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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