Received: by 10.213.65.68 with SMTP id h4csp39538imn; Mon, 19 Mar 2018 18:50:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELuu33WcdmL2pqFJsEn4K71w4E2UOvaQnI15Rp3MNq2X/sIKOZ8IWXr5RUmeMy20NfmRsFic X-Received: by 10.99.111.3 with SMTP id k3mr10785488pgc.135.1521510637308; Mon, 19 Mar 2018 18:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510637; cv=none; d=google.com; s=arc-20160816; b=r1DwdOW0pPJ6Agk8HT7m0g3bAl81EENEMO/diHcKi4YKr/PqsSWHSBXhxQdFl6rpcR fujrN+Mf2VLjROBmPbWB9H8P6hWUGhBpWdWKmNZsQVpSbCPGowNLIxkHPRqhH7gGxc5u 7ioYwQyjiL0uUVoWf19iGuBHCOdUL1RrOq3TFuzEW86BVjCwYg03Sy/ziU914K68SJ87 DFcmlCKmfNAw3E1qcfXP2I7fRJOCAg5Ic1VnrOgibzQnbdgvveoONbUqsxKxSmcIQqUr +MPTE5Kd7B4GY8OYV5uJxGenSr8WatJS9j73w1UOAJJ99aWQDqr56OzR+Rp7GL95eK2x 437w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=DAv12HHi1chWJ7PHhJ+LZGNzZDwrzFwCeZTwIjGQOyI=; b=wPNY9Mae8g+939icYYL/dwN8omnXGhBycP2w0H1UqCPNINwGAsLkLvqlPxqj47mGbd X5cC50UlUn/7liJwACEz1yMEE/OtQH+DPtYSmh1K22J7gFpblZDglB1vXkYfTEX3fsv2 coBcbTgsWG3r7sBUxlskcxujfgBDqgRDOBPvlIx5yccKmRE+/QOaTBkWghhJBTfr9haJ IcspHklton0s+L4EYCWkEDDFhMdPyu6KRutnaI/9r/zljkn11opAzofQBiCXnY+RJ3CO F6AMSdrj4SekY0aYkUj/yKkFoYutPkdSPShtjBgNQr5s3YaPxn6ZQ3UU0ZhpByPdnxLU kxNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=YtUIxve+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si514486pll.287.2018.03.19.18.50.23; Mon, 19 Mar 2018 18:50:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=YtUIxve+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969458AbeCSUKo (ORCPT + 99 others); Mon, 19 Mar 2018 16:10:44 -0400 Received: from mail-bn3nam01on0079.outbound.protection.outlook.com ([104.47.33.79]:43534 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966634AbeCSUKd (ORCPT ); Mon, 19 Mar 2018 16:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DAv12HHi1chWJ7PHhJ+LZGNzZDwrzFwCeZTwIjGQOyI=; b=YtUIxve+dJOOuyxBlih6P/qT4r6UJZNSLFy807u8YkAnNRVRttFLWG3l/owl9QqZPaRnaxRIvnzq2ww57XU4JS8TIomxcZ4TMxQywIylaw6FiiNjeX2w5wdGmcoaUU5qHXZi8dRbow5+vP6lcnN0G225inhBqdBX89h+OcKOfg4= Received: from DM2PR07MB685.namprd07.prod.outlook.com (10.141.179.141) by DM2PR07MB1563.namprd07.prod.outlook.com (10.161.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 20:10:29 +0000 Received: from DM2PR07MB685.namprd07.prod.outlook.com ([fe80::f82e:5cb5:df4e:6315]) by DM2PR07MB685.namprd07.prod.outlook.com ([fe80::f82e:5cb5:df4e:6315%13]) with mapi id 15.20.0588.016; Mon, 19 Mar 2018 20:10:29 +0000 From: "Chopra, Manish" To: Sinan Kaya , "netdev@vger.kernel.org" , "timur@codeaurora.org" , "sulrich@codeaurora.org" CC: "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Patil, Harish" , Dept-GE Linux NIC Dev , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v3 11/18] qlcnic: Eliminate duplicate barriers on weakly-ordered archs Thread-Topic: [PATCH v3 11/18] qlcnic: Eliminate duplicate barriers on weakly-ordered archs Thread-Index: AQHTvUI7EJwVZoTt10KhnY9arO1/KqPYAgng Date: Mon, 19 Mar 2018 20:10:28 +0000 Message-ID: References: <1521216991-28706-1-git-send-email-okaya@codeaurora.org> <1521216991-28706-12-git-send-email-okaya@codeaurora.org> In-Reply-To: <1521216991-28706-12-git-send-email-okaya@codeaurora.org> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Manish.Chopra@cavium.com; x-originating-ip: [114.143.185.87] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM2PR07MB1563;7:47PBvVQl/5MtWWthIgcHYnHs0gvNDy61yJut4/fvKZemx/CWH0iMRFreynuBIVsX8RAWhHlth6z1/2pb1F1DLYa35FEzUoEjecI6LemSK29hQVO7GIi0mZe3SQOGR6+Qm489HctTihOP3xU1RpRQb5kYFQJahatvQ8luZfocClbcTfqAPTmR0v3cLjed5A1qNtmr1i+e00qgslTuOZnZF32Opwpia1lL4dr/G6SO4B0LZmGFzQ9fGAb9tCBGXUkh x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 4d0b64f7-0710-4154-e32c-08d58dd5762b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM2PR07MB1563; x-ms-traffictypediagnostic: DM2PR07MB1563: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231221)(944501244)(52105095)(93006095)(93001095)(10201501046)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM2PR07MB1563;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB1563; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39380400002)(39860400002)(346002)(376002)(396003)(13464003)(199004)(189003)(25786009)(53936002)(229853002)(9686003)(305945005)(3280700002)(7736002)(105586002)(74316002)(5660300001)(4326008)(54906003)(97736004)(6246003)(8676002)(316002)(68736007)(55016002)(6436002)(2501003)(81166006)(81156014)(66066001)(8936002)(5250100002)(186003)(478600001)(2906002)(72206003)(3846002)(2900100001)(110136005)(6116002)(14454004)(2950100002)(7696005)(26005)(6506007)(53546011)(99286004)(102836004)(59450400001)(33656002)(106356001)(3660700001)(2201001)(86362001)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB1563;H:DM2PR07MB685.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: CwwyWbrL+UbACZggk5zkasb/OwDeoQUOfWJsoSG6BegeUWOSXGntD4jhI+LJMKw7R+wWyabFO70QtX1qAtlEUAnNfLbOXqc0TU0+3fXBRBWtCtlEd0jISXtDcHypt0IKdelMcj72FKTJXnwmNHi5EhkjkCfc+D7QvI07zYAtbB4J09xZWMnGIyRCO4H9HyodrsiTw+MqifBxz1Nd3toPqaeWJ3hHHHjIIOucZqA1gqKRRjVeqRuRkDxzeaVEJAMPDc7TSs3HgIiFCRWxmd7z14KdLmjJpfCIgm+6cbvZjaNeaDHs1LJPFe856COslgrCPjSNBbstOmNwbYDs9TYcvA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d0b64f7-0710-4154-e32c-08d58dd5762b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 20:10:29.1525 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB1563 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Sinan Kaya [mailto:okaya@codeaurora.org] > Sent: Friday, March 16, 2018 9:46 PM > To: netdev@vger.kernel.org; timur@codeaurora.org; sulrich@codeaurora.org > Cc: linux-arm-msm@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > Sinan Kaya ; Patil, Harish ; > Chopra, Manish ; Dept-GE Linux NIC Dev GELinuxNICDev@cavium.com>; linux-kernel@vger.kernel.org > Subject: [PATCH v3 11/18] qlcnic: Eliminate duplicate barriers on weakly-= ordered > archs >=20 > Code includes wmb() followed by writel(). writel() already has a barrier = on some > architectures like arm64. >=20 > This ends up CPU observing two barriers back to back before executing the > register write. >=20 > Since code already has an explicit barrier call, changing writel() to > writel_relaxed(). >=20 > Signed-off-by: Sinan Kaya > --- > drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c > b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c > index 46b0372..97c146e7 100644 > --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c > +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c > @@ -478,7 +478,7 @@ irqreturn_t qlcnic_83xx_clear_legacy_intr(struct > qlcnic_adapter *adapter) > wmb(); >=20 > /* clear the interrupt trigger control register */ > - writel(0, adapter->isr_int_vec); > + writel_relaxed(0, adapter->isr_int_vec); > intr_val =3D readl(adapter->isr_int_vec); > do { > intr_val =3D readl(adapter->tgt_status_reg); > -- > 2.7.4 Acked-by: Manish Chopra Thanks.