Received: by 10.192.165.156 with SMTP id m28csp6170imm; Thu, 12 Apr 2018 15:21:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/jHhuEBG/51q/QMhNW6E0gGaIqe6w3OKLeXzAgQXvW1EjBM0feVVIiby3Avh6NQTiUzWSg X-Received: by 10.99.168.66 with SMTP id i2mr2029969pgp.367.1523571705178; Thu, 12 Apr 2018 15:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523571705; cv=none; d=google.com; s=arc-20160816; b=ZU9IIgI03OEfV9OmeBwMedcPX4Vd92aEjnBfy2Km7fUdEmHmhCQ8bBVq7fKrn1NIWR h8nfa5aarCFtYKmRi0pf/6qn6LUdhRNqPqX70GF8D8VEySNMt/ALbSjlrxhReJ/6wPaO EUBrjiHbjv1g3Si1rL/09CYJ8TxAGDplyUvPkbe/te1fq4IRzbm/vw9BuLCzP25Eb6/a kmPRFfOtVPMzxJJvqnd6AsBvhAscJZkEoReQEh9eCUvJ6NUJiH5SPUsRWyz6ZgSjnXWW 8anPXf+/7bNuXN8xFdQFJhpezqskofxDM8TI1NkR7ZjpCSLGJ+3RwDiJNaZzuItQEQ0Y XB5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=sVzzghWrv9ik5f4PsuW16EJONxUGc2YNUt+sMwhyemI=; b=SRAx/AjIrtuN6bXg5CncDMxK2YoSJlPMYxGEl3tr6MgbwSHuxZ02j9bnQ/+NqjH28w Ui4FExuB9dFVppKcgCSfd39GLGjQ0LlTLZawOZSbgg0/wMBkyTSogwHr6EE/UfzXyzwc o1dmWeXrbXsNqnmDfCMM99CzbRgkVck7UfQqgGEl+zRrYgvjb2K2Sg5m3FTpWERGumXu SSG9Q6suONGJ+Np8CXWMgW98C2fx5Q5eHf7b7pTHZlp1PCtQ38i7HrpLlLGvamU/muJs 34LH/EwViOgFolLgOyzO6GyO1pUeyxhbp7JzO5ZAwsFqPGvgnTzcC49TJ6DNYkSFV3Es vf7A== ARC-Authentication-Results: i=1; mx.google.com; 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 x1-v6si4287597plr.391.2018.04.12.15.21.27; Thu, 12 Apr 2018 15:21:45 -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; 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 S1753459AbeDLV7C (ORCPT + 99 others); Thu, 12 Apr 2018 17:59:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:42894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbeDLV7B (ORCPT ); Thu, 12 Apr 2018 17:59:01 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4EF5221737; Thu, 12 Apr 2018 21:58:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EF5221737 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Thu, 12 Apr 2018 22:58:55 +0100 From: James Hogan To: Sinan Kaya Cc: linux-mips@linux-mips.org, arnd@arndb.de, timur@codeaurora.org, sulrich@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ralf Baechle , Paul Burton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] MIPS: io: add a barrier after register read in readX() Message-ID: <20180412215855.GB27802@saruman> References: <1522760109-16497-1-git-send-email-okaya@codeaurora.org> <1522760109-16497-2-git-send-email-okaya@codeaurora.org> <20180412215149.GA27802@saruman> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <20180412215149.GA27802@saruman> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 12, 2018 at 10:51:49PM +0100, James Hogan wrote: > On Tue, Apr 03, 2018 at 08:55:04AM -0400, Sinan Kaya wrote: > > While a barrier is present in writeX() function before the register wri= te, > > a similar barrier is missing in the readX() function after the register > > read. This could allow memory accesses following readX() to observe > > stale data. > >=20 > > Signed-off-by: Sinan Kaya > > Reported-by: Arnd Bergmann >=20 > Both patches look like obvious improvements to me, so I'm happy to apply > to my fixes branch. Though having said that, a comment to go with the rmb() (as suggested by checkpatch) to detail the situation we're concerned about would be nice to have. Cheers James --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlrP1p8ACgkQbAtpk944 dnpJyxAAstKXPj/zy7GXQYwhwrZE/0uBT5rfc6zSDKgjqCN4L9GzQ5vsKpg5BZd4 autxPPEiuq+GeAfalW5rIlHOZikjLwrmiV0m5i4YE+PRxlc5uMjzCQKgb41FMFkd BKuX+bT0bxUZ8Om5JrLzYGouIp2hocYiqXideYavBU+4Lm3398knuEWURT3gMvpD r1sCgr7xJFAJL0dqkV9ePwM3WV6xyvTSZ8oFZ3r7Hqtg5rLwpmOGxxZmjGEeGT82 5jy6zbIJr2J7KelJdmgUkDZ+c+xhoQ10Cop737YXBDeLOO8y6isbigT5JXJrE3Xw 2TVpfA/S/e5l+nhyoTvWxCsoo1FsAaX+gPigBBq36MYlVlV7MfgnCjmkC+NzpvKi xjgP5fH6GWP+S3rYY/sULJY2afnhqqk3Nu8soI4ilNpp5GccHZYu3ZLWTYG0x3Ag B34iQMJphD1MDQqny54Zrz1uVaEkBfHClNXkhGO9d7SotAsXFO930jnvqEVbSLU+ picWBzRyh+wTvqe+N4Rvg94dEsZP0Oh0k0xhNZSN6cALDy4dh6bdbzlYG0Ff0Hl5 JsJj6TQiUlAf473/RrpeFy/2po0DUT69txdhv3vLJYmO5ZGXVuf2qHnFh4SafffB 1O+QpxB7kj1iEmQeLn8154GbRBurKTAIVWT2H0JETzBFSMDls1Y= =HuHl -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8--