From patchwork Mon Feb 11 17:45:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 158018 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2878511jaa; Mon, 11 Feb 2019 09:45:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IYURArW57tHEGzAgkbFT3FI2dY8LY8ITVTEKFtNi3CSPAlCY+fIagz1rHuSIv2XzXtvoYba X-Received: by 2002:a17:902:7598:: with SMTP id j24mr38768356pll.7.1549907154198; Mon, 11 Feb 2019 09:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549907154; cv=none; d=google.com; s=arc-20160816; b=VlR8V6ajSapLgVjlKXzP0e71b6zUQ87+seDkoIoDieUxypW6a5tLAPa1Y898o9IRXN fIufF8pjDyuiANY8W7jVsOXb062RGpMBJYp6akh77BD1SrDUtX2B/gZRF+d5h6iGiuoz oRH8EANtapV2YvO5PkbJVENv2V2f71gtzByJbv4KO3TCnZi+qTj+oA2NT1OvfTmbKd0S HC2b1jkg58DaWTKe68DlM+L49gcGMpuVg0lMhz7Yklq/u19tc7jZ5m6cI+Q8hzwJAfWw A/Ztn2uA9Bp1MjN2QEVpxGB+7/PlT4yt00/RDfY8P/nufjRz41h7SLZsdoFf7/iXPJmX d9Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pnx+mUOUKvf3a2YfS2d6ilOtfRyJToFSquQ7H5knEhw=; b=vw1QWvWUXxWK6jajJ5mtTWswERFmHL6+UhF3OFArYgiKFv/XvDljkCoAVY1+ixPl29 gqkjJy/PEF6KvpRppZ3Deqy33JDP+Cfy2BhjrnGizHSHIHWk1xzpCq+z5iavRu2turHq wO76ebJpm94zu58G2AF9mcyD4MQ2+KoqkO/rw/Ee2jq1tvY0TDddcXcH+bvZP9aGIsrt 2foWVeu4LD3wmD6wQZAyrHNMNt6zwNkS4nGWwqV2GJiarD+y1J/huu794IZYhaEnS/Dz bm0fXIGAWH/gmuEaV5jMhYk1b4gljrjsehGpFWemCPB14lxWYySdrdF17o2OQPnDusL2 fwzg== 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 w11si9444202pgp.161.2019.02.11.09.45.53; Mon, 11 Feb 2019 09:45:54 -0800 (PST) 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 S1730037AbfBKRpv (ORCPT + 31 others); Mon, 11 Feb 2019 12:45:51 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54870 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728022AbfBKRpu (ORCPT ); Mon, 11 Feb 2019 12:45:50 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2AE43EBD; Mon, 11 Feb 2019 09:45:50 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E22B03F675; Mon, 11 Feb 2019 09:45:48 -0800 (PST) From: Will Deacon To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, andrew.murray@arm.com, arnd@arndb.de, catalin.marinas@arm.com, Will Deacon Subject: [PATCH 0/2] Ensure inX() is ordered wrt delay() routines Date: Mon, 11 Feb 2019 17:45:42 +0000 Message-Id: <20190211174544.4302-1-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Ordering port read accesses against non-memory-mapped clocksource reads can require funky dependency code in conjunction with memory barriers. This isn't possible to implement with the asm-generic definition of io.h, since the value read from the device is not passed through to the underlying barrier macro and therefore the dependency information is lost. This series passes the value through and hooks up the fence on arm64. Will --->8 Will Deacon (2): asm-generic/io: Pass result on inX() accessor to __io_par() arm64: io: Hook up __io_par() for inX() ordering arch/arm64/include/asm/io.h | 1 + include/asm-generic/io.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) -- 2.11.0