From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1036191AbdDUH4d (ORCPT ); Fri, 21 Apr 2017 03:56:33 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:35285 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1035005AbdDUH4b (ORCPT ); Fri, 21 Apr 2017 03:56:31 -0400 MIME-Version: 1.0 In-Reply-To: References: <1491591978-17880-1-git-send-email-okaya@codeaurora.org> From: Sreekanth Reddy Date: Fri, 21 Apr 2017 13:26:29 +0530 Message-ID: Subject: Re: [PATCH V2] scsi: mpt3sas: remove redundant wmb To: "Martin K. Petersen" Cc: Sinan Kaya , "linux-scsi@vger.kernel.org" , timur@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sathya Prakash , Chaitra P B , Suganath Prabu Subramani , "James E.J. Bottomley" , "open list:LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)" , open list Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2017 at 7:58 AM, Martin K. Petersen wrote: > Sinan Kaya writes: > >> Due to relaxed ordering requirements on multiple architectures, >> drivers are required to use wmb/rmb/mb combinations when they need to >> guarantee observability between the memory and the HW. >> >> The mpt3sas driver is already using wmb() for this purpose. However, >> it issues a writel following wmb(). writel() function on arm/arm64 >> arhictectures have an embedded wmb() call inside. [Sreekanth] Whether same thing applicable for SPARC & POWER architectures. If yes then we are fine with this patch changes. >> >> This results in unnecessary performance loss and code duplication. >> >> writel already guarantees ordering for both cpu and bus. we don't need >> additional wmb() > > Broadcom folks, please review! > > -- > Martin K. Petersen Oracle Linux Engineering