linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Don Brace <don.brace@microsemi.com>
To: Sinan Kaya <okaya@codeaurora.org>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"timur@codeaurora.org" <timur@codeaurora.org>,
	"sulrich@codeaurora.org" <sulrich@codeaurora.org>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"esc.storagedev" <esc.storagedev@microsemi.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: RE: [PATCH v4 1/7] scsi: hpsa: Eliminate duplicate barriers on weakly-ordered archs
Date: Tue, 20 Mar 2018 14:01:53 +0000	[thread overview]
Message-ID: <a8ab334a9c6e4205a2475b5ec3726a4c@microsemi.com> (raw)
In-Reply-To: <1521514207-10695-2-git-send-email-okaya@codeaurora.org>

> -----Original Message-----
> From: Sinan Kaya [mailto:okaya@codeaurora.org]
> Sent: Monday, March 19, 2018 9:50 PM
> To: linux-scsi@vger.kernel.org; timur@codeaurora.org; sulrich@codeaurora.org
> Cc: linux-arm-msm@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> Sinan Kaya <okaya@codeaurora.org>; Don Brace <don.brace@microsemi.com>;
> James E.J. Bottomley <jejb@linux.vnet.ibm.com>; Martin K. Petersen
> <martin.petersen@oracle.com>; esc.storagedev
> <esc.storagedev@microsemi.com>; linux-kernel@vger.kernel.org
> Subject: [PATCH v4 1/7] scsi: hpsa: Eliminate duplicate barriers on weakly-
> ordered archs
> 
> EXTERNAL EMAIL
> 
> 
> Code includes wmb() followed by writel(). writel() already has a
> barrier on some architectures like arm64.
> 
> This ends up CPU observing two barriers back to back before executing
> the register write.
> 
> Since code already has an explicit barrier call, changing writel() to
> writel_relaxed().
> 
> Signed-off-by: Sinan Kaya <okaya@codeaurora.org>

Acked-by: Don Brace <don.brace@microsemi.com>

> ---
>  drivers/scsi/hpsa.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
> index 018f980..c7d7e6a 100644
> --- a/drivers/scsi/hpsa.h
> +++ b/drivers/scsi/hpsa.h
> @@ -599,7 +599,7 @@ static unsigned long
> SA5_ioaccel_mode1_completed(struct ctlr_info *h, u8 q)
>                  * but with current driver design this is easiest.
>                  */
>                 wmb();
> -               writel((q << 24) | rq->current_entry, h->vaddr +
> +               writel_relaxed((q << 24) | rq->current_entry, h->vaddr +
>                                 IOACCEL_MODE1_CONSUMER_INDEX);
>                 atomic_dec(&h->commands_outstanding);
>         }
> --
> 2.7.4

  reply	other threads:[~2018-03-20 14:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20  2:50 [PATCH v4 0/7] scsi: Eliminate duplicate barriers on weakly-ordered archs Sinan Kaya
2018-03-20  2:50 ` [PATCH v4 1/7] scsi: hpsa: " Sinan Kaya
2018-03-20 14:01   ` Don Brace [this message]
2018-03-20 16:51   ` Laurence Oberman
2018-03-20  2:50 ` [PATCH v4 2/7] scsi: megaraid: eliminate " Sinan Kaya
2018-03-20  2:50 ` [PATCH v4 3/7] scsi: dpt_i2o: " Sinan Kaya
2018-03-20 10:23   ` Christoph Hellwig
2018-03-20 12:13     ` okaya
2018-03-20  2:50 ` [PATCH v4 4/7] scsi: lpfc: Eliminate " Sinan Kaya
2018-03-20  2:50 ` [PATCH v4 5/7] scsi: ipr: " Sinan Kaya
2018-05-29 20:45   ` Brian King
2018-03-20  2:50 ` [PATCH v4 6/7] scsi: bnx2i: " Sinan Kaya
2018-03-20  2:50 ` [PATCH v4 7/7] scsi: csiostor: " Sinan Kaya

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=a8ab334a9c6e4205a2475b5ec3726a4c@microsemi.com \
    --to=don.brace@microsemi.com \
    --cc=esc.storagedev@microsemi.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=okaya@codeaurora.org \
    --cc=sulrich@codeaurora.org \
    --cc=timur@codeaurora.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;
as well as URLs for NNTP newsgroup(s).