From: Steve Wise <swise@opengridcomputing.com>
To: Bryan O'Sullivan <bos@pathscale.com>
Cc: rdreier@cisco.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, openib-general@openib.org
Subject: Re: [openib-general] [PATCH 09/13] Core WQE/CQE Types
Date: Fri, 17 Nov 2006 12:32:19 -0600 [thread overview]
Message-ID: <1163788339.8457.95.camel@stevo-desktop> (raw)
In-Reply-To: <455DFD23.8050504@pathscale.com>
On Fri, 2006-11-17 at 10:19 -0800, Bryan O'Sullivan wrote:
> Steve Wise wrote:
> > T3 WQE and CQE structures, defines, etc...
>
> I notice that none of the fields in these structs seem to be
> endianness-annotated, but that there's a lot of cpu_to_be64 and so on
> being used to frob values into them. Please make sure that the driver
> passes a sparse check, which it looks like it almost certainly cannot
> right now.
It passes sparse with only a few warnings about calling memset() with a
size > 100000. I don't know how to get around this warning, however,
because I indeed want to initialize large chunks of memory to zero using
memset...
The HW is BE. So building WR's that get DMA'd to the adapter need
values in BE. Also, pulling values out of the CQE require mapping back
to cpu byte order.
>
> > +#define RING_DOORBELL(doorbell, QPID) { \
> > + (writel(((1<<31) | (QPID)), doorbell)); \
> > +}
>
> Should probably be an inline function instead of a macro.
>
Ok.
BTW: here is the sparse output:
vic13:/home/swise/git/linux-2.6.git # make C=1
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CHECK drivers/infiniband/hw/cxgb3/iwch_cm.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_cm.o
CHECK drivers/infiniband/hw/cxgb3/iwch_ev.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_ev.o
CHECK drivers/infiniband/hw/cxgb3/iwch_cq.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_cq.o
CHECK drivers/infiniband/hw/cxgb3/iwch_qp.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_qp.o
CHECK drivers/infiniband/hw/cxgb3/iwch_mem.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_mem.o
CHECK drivers/infiniband/hw/cxgb3/iwch_provider.c
CC [M] drivers/infiniband/hw/cxgb3/iwch_provider.o
CHECK drivers/infiniband/hw/cxgb3/iwch.c
drivers/infiniband/hw/cxgb3/iwch.c:70:8: warning: memset with byte count of 262144
drivers/infiniband/hw/cxgb3/iwch.c:70:8: warning: memset with byte count of 262144
drivers/infiniband/hw/cxgb3/iwch.c:70:8: warning: memset with byte count of 262144
CC [M] drivers/infiniband/hw/cxgb3/iwch.o
CHECK drivers/infiniband/hw/cxgb3/core/cxio_hal.c
drivers/infiniband/hw/cxgb3/core/cxio_hal.c:550:8: warning: memset with byte count of 131072
CC [M] drivers/infiniband/hw/cxgb3/core/cxio_hal.o
CHECK drivers/infiniband/hw/cxgb3/core/cxio_resource.c
CC [M] drivers/infiniband/hw/cxgb3/core/cxio_resource.o
LD [M] drivers/infiniband/hw/cxgb3/iw_cxgb3.o
next prev parent reply other threads:[~2006-11-17 18:32 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 3:58 [PATCH 00/13] Chelsio T3 RDMA Driver Steve Wise
2006-11-16 3:58 ` [PATCH 01/13] Linux RDMA Core Changes Steve Wise
2006-11-16 19:41 ` Roland Dreier
2006-11-16 3:58 ` [PATCH 02/13] Device Discovery and ULLD Linkage Steve Wise
2006-11-17 17:53 ` [openib-general] " Bryan O'Sullivan
2006-11-17 17:59 ` Steve Wise
2006-11-16 3:58 ` [PATCH 03/13] Provider Methods and Data Structures Steve Wise
2006-11-16 3:58 ` [PATCH 04/13] Connection Manager Steve Wise
2006-11-17 18:07 ` [openib-general] " Bryan O'Sullivan
2006-11-17 18:26 ` Steve Wise
2006-11-16 3:58 ` [PATCH 05/13] Queue Pairs Steve Wise
2006-11-16 3:58 ` [PATCH 06/13] Completion Queues Steve Wise
2006-11-16 3:59 ` [PATCH 07/13] Async Event Handler Steve Wise
2006-11-16 3:59 ` [PATCH 08/13] Memory Registration Steve Wise
2006-11-16 3:59 ` [PATCH 09/13] Core WQE/CQE Types Steve Wise
2006-11-17 4:45 ` Roland Dreier
2006-11-17 17:02 ` Steve Wise
2006-11-17 18:19 ` [openib-general] " Bryan O'Sullivan
2006-11-17 18:32 ` Steve Wise [this message]
2006-11-17 18:45 ` Bryan O'Sullivan
2006-11-16 3:59 ` [PATCH 10/13] Core HAL Steve Wise
2006-11-16 3:59 ` [PATCH 11/13] Core Resource Allocation Steve Wise
2006-11-17 16:54 ` Roland Dreier
2006-11-17 17:25 ` Steve Wise
2006-11-17 20:37 ` Roland Dreier
2006-11-16 3:59 ` [PATCH 12/13] Core Debug functions Steve Wise
2006-11-16 3:59 ` [PATCH 13/13] Kconfig/Makefile Steve Wise
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=1163788339.8457.95.camel@stevo-desktop \
--to=swise@opengridcomputing.com \
--cc=bos@pathscale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).