From: Mike Christie <michaelc@cs.wisc.edu>
To: kxie@chelsio.com
Cc: linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com,
James.Bottomley@HansenPartnership.com
Subject: Re: [PATCH] cxgb3i: fixed programing of the dma page sizes
Date: Fri, 24 Jun 2011 13:46:47 -0500 [thread overview]
Message-ID: <4E04DB97.8030101@cs.wisc.edu> (raw)
In-Reply-To: <201106172310.p5HNAWQ5028255@localhost6.localdomain6>
On 06/17/2011 06:10 PM, kxie@chelsio.com wrote:
> [PATCH] cxgb3i: fixed programing of the dma page sizes
>
> From: Karen Xie <kxie@chelsio.com>
>
> Fixed missing programming of the pages sizes for DMA.
>
> Signed-off-by: Karen Xie <kxie@chelsio.com>
> ---
> drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
> index fc2cdb6..ffb9eea 100644
> --- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
> +++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
> @@ -1245,7 +1245,7 @@ static int cxgb3i_ddp_init(struct cxgbi_device *cdev)
> struct cxgbi_ddp_info *ddp = tdev->ulp_iscsi;
> struct ulp_iscsi_info uinfo;
> unsigned int pgsz_factor[4];
> - int err;
> + int i, err;
>
> if (ddp) {
> kref_get(&ddp->refcnt);
> @@ -1271,6 +1271,8 @@ static int cxgb3i_ddp_init(struct cxgbi_device *cdev)
>
> uinfo.tagmask = ddp->idx_mask << PPOD_IDX_SHIFT;
> cxgbi_ddp_page_size_factor(pgsz_factor);
> + for (i = 0; i < 4; i++)
> + uinfo.pgsz_factor[i] = pgsz_factor[i];
> uinfo.ulimit = uinfo.llimit + (ddp->nppods << PPOD_SIZE_SHIFT);
>
> err = tdev->ctl(tdev, ULP_ISCSI_SET_PARAMS, &uinfo);
Looks ok.
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
prev parent reply other threads:[~2011-06-24 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 23:10 [PATCH] cxgb3i: fixed programing of the dma page sizes kxie-ut6Up61K2wZBDgjK7y7TUQ
2011-06-24 18:46 ` Mike Christie [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=4E04DB97.8030101@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=James.Bottomley@HansenPartnership.com \
--cc=kxie@chelsio.com \
--cc=linux-scsi@vger.kernel.org \
--cc=open-iscsi@googlegroups.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