From patchwork Wed Apr 11 15:40:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 897246 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40LpFG1j7jz9s0x for ; Thu, 12 Apr 2018 01:42:10 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a5P8ykjN"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40LpFF71WbzF1RJ for ; Thu, 12 Apr 2018 01:42:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a5P8ykjN"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400d:c0d::241; helo=mail-qt0-x241.google.com; envelope-from=arndbergmann@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a5P8ykjN"; dkim-atps=neutral Received: from mail-qt0-x241.google.com (mail-qt0-x241.google.com [IPv6:2607:f8b0:400d:c0d::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40LpBs6VRSzF1BP for ; Thu, 12 Apr 2018 01:40:04 +1000 (AEST) Received: by mail-qt0-x241.google.com with SMTP id w23so2382951qtn.3 for ; Wed, 11 Apr 2018 08:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=39sVYsw+qx6ZURz7iylewFsbwb4y02OA7JsyxRwD/4E=; b=a5P8ykjNYGwIMvPAuMjExbooA5Nr9O1Lw+Y1qa9KhQRhcxnm9AwcGuVXRJqhg2Spim put0eNco0NbpXqZY3DooSJF7YGsUj99Rh+LWckLWCVTo3Y1W38ecS9w5OWjvY0bj3ly6 GfvRL8765iOMwjCbMUDhSI/fi8y5Jg728Fpmslq/eJ6ELUaD22ovF7tpCoRGgTy7DrJM sle1uiz9EWusdlwu+ex4HGYpXpFQRye/1v0/bOKe4c6tlDVECmXBt8AEFTbO6MklPsQf TZjehelYYqOipK8dFtCjjlChEyb3GEm2WcnwJWtsSchl9h8cxW+8kvoaHlEeMQ6EEdAX Q3+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=39sVYsw+qx6ZURz7iylewFsbwb4y02OA7JsyxRwD/4E=; b=m/rVdlUR03jTBVkcA12nUQvhBYPzyL4dYphApVxY49wQ6UyxJ7pl/cbMnCYk6xB+rN Stzin/xvgtOjbwmYTz9DWcSs0Yf6YDJfc5wuSvK2xRRoiHCr/hG996/HkLGM2fK3kwWN iShnoGgWFtvJ/eaM6z4Q/95Lr/sy/ggsbszCQZsD2wRECh+B9jE5sCaF3FITgK+lrIkJ wUk9O2BfSAzpArWvrsgdknBG6WD62huuwFk8arE/GAYte/95E2AYBv4KZ67YQKS/rIuO EGUE4aKJeYicUu4wsyLQjbGSUuarAMX4f564isrCt9Okdu4mREyiaIIMqA9sn4XsidWK 5tjg== X-Gm-Message-State: ALQs6tAJMnTtNi/x2+UOPujkEKve145Xf676Fhi8LDXBtZVJbhnGRFKe g8xaJO3Nc/No3V/3ZcXYNdlJKy5tr+OKoluM2OU= X-Google-Smtp-Source: AIpwx4+OZGjOd/uC6/suLnkTPADlPS6L3tViSunj9ylgKBb7HCF/u8NoKJmtseFrKlzc5rZtKWHZ1HNwVZKb8jCEtSE= X-Received: by 10.200.115.70 with SMTP id q6mr8229335qtp.132.1523461202764; Wed, 11 Apr 2018 08:40:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Wed, 11 Apr 2018 08:40:02 -0700 (PDT) From: Arnd Bergmann Date: Wed, 11 Apr 2018 17:40:02 +0200 X-Google-Sender-Auth: 3QJFF4b1ai4qjoRZBX43K6Kj0c8 Message-ID: Subject: [GIT PULL] asm-generic fixes for v4.17-rc1 To: Linus Torvalds X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch , linux-s390 , Michal Simek , "moderated list:H8/300 ARCHITECTURE" , Yoshinori Sato , linux-xtensa@linux-xtensa.org, linux-rdma , Heiko Carstens , Linux Kernel Mailing List , Sinan Kaya , sparclinux , openrisc@lists.librecores.org, "moderated list:NIOS2 ARCHITECTURE" , Martin Schwidefsky , Ley Foon Tan , Guan Xuetao , linuxppc-dev , "David S. Miller" , Linux ARM Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda: Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the git repository at: git+ssh://gitolite@ra.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic for you to fetch changes up to a71e7c44ffb7baea0c0795824afc34cc0bc1a301: io: change writeX_relaxed() to remove barriers (2018-04-10 16:37:34 +0200) ---------------------------------------------------------------- asm-generic fixes for v4.17-rc1 I have one regression fix for a minor build problem after the architecture removal series, plus a rework of the barriers in the readl/writel functions, thanks to work by Sinan Kaya: This started from a discussion on the linuxpcc and rdma mailing lists [1]. To summarize, we decided that architectures are responsible to serialize readl() and writel() accesses on a device MMIO space relative to DMA performed by that device. This series provides a pessimistic implementation of that behavior for asm-generic/io.h, which is in turn used by a number of architectures (h8300, microblaze, nios2, openrisc, s390, sparc, um, unicore32, and xtensa). Some of those presumably need no extra barriers, or something weaker than rmb()/wmb(), and they are advised to override the new default for better performance. For inb()/outb(), the same barriers are used, but architectures might want to add another barrier to outb() here if that can guarantee non-posted behavior (some architectures can, others cannot do that). The readl_relaxed()/writel_relaxed() family of functions retains the existing behavior with no extra barriers. [1]: https://lists.ozlabs.org/pipermail/linuxppc-dev/2018-March/170481.html ---------------------------------------------------------------- Liu, Changcheng (1): dts: remove cris & metag dts hard link file Sinan Kaya (7): io: define several IO & PIO barrier types for the asm-generic version io: define stronger ordering for the default readX() implementation io: define stronger ordering for the default writeX() implementation io: change outX() to have their own IO barrier overrides io: change inX() to have their own IO barrier overrides io: change readX_relaxed() to remove barriers io: change writeX_relaxed() to remove barriers include/asm-generic/io.h | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ scripts/dtc/include-prefixes/cris | 1 - scripts/dtc/include-prefixes/metag | 1 - 3 files changed, 143 insertions(+), 20 deletions(-) delete mode 120000 scripts/dtc/include-prefixes/cris delete mode 120000 scripts/dtc/include-prefixes/metag