From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B245C433E1 for ; Wed, 17 Jun 2020 10:57:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9F0E321527 for ; Wed, 17 Jun 2020 10:57:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="HB7HHd1u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F0E321527 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0D4076B0022; Wed, 17 Jun 2020 06:57:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0823D6B0023; Wed, 17 Jun 2020 06:57:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED9B76B0024; Wed, 17 Jun 2020 06:57:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0218.hostedemail.com [216.40.44.218]) by kanga.kvack.org (Postfix) with ESMTP id D22466B0022 for ; Wed, 17 Jun 2020 06:57:15 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 698F8180AD806 for ; Wed, 17 Jun 2020 10:57:15 +0000 (UTC) X-FDA: 76938402030.25.milk93_2d1651a26e07 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id 41BBD1804E3A0 for ; Wed, 17 Jun 2020 10:57:15 +0000 (UTC) X-HE-Tag: milk93_2d1651a26e07 X-Filterd-Recvd-Size: 2878 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Wed, 17 Jun 2020 10:57:14 +0000 (UTC) Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 0AC77208B3; Wed, 17 Jun 2020 10:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592391433; bh=oVYweIR6zLMediXDsU1jDQ9pyvK//XIYoenxlo7SOcE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HB7HHd1u1+1jDZ68+nOq2V/Yg9kDRfF1mmDDPGQSytreC543TQYscnE8rTyG7ryWc EJ497VjPlRBG1okeyG9fRVW0vkxlOE6AxZX+c7XaDhFmhezLeATXXnIZkYJs/f+/+9 zWW/n+CA4dyENNhzkB6Q499C43G10YVNCGjGKsEM= Date: Wed, 17 Jun 2020 11:57:08 +0100 From: Will Deacon To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Andrew Morton , "Peter Zijlstra (Intel)" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, arnd@arndb.de Subject: Re: [PATCH 0/3] Fix build failure with v5.8-rc1 Message-ID: <20200617105708.GA3503@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 41BBD1804E3A0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: [+Arnd in case he's interested in this series] On Mon, Jun 15, 2020 at 12:57:55PM +0000, Christophe Leroy wrote: > Commit 2ab3a0a02905 ("READ_ONCE: Enforce atomicity for > {READ,WRITE}_ONCE() memory accesses") leads to following build > failure on powerpc 8xx. > > To fix it, this small series introduces a new helper named ptep_get() > to replace the direct access with READ_ONCE(). This new helper > can be overriden by architectures. Thanks for doing this, and sorry for the breakage. For the series: Acked-by: Will Deacon Hopefully we can introduce accessors for the other page-table levels too, but that can obviously happen incrementally. Will > Christophe Leroy (3): > mm/gup: Use huge_ptep_get() in gup_hugepte() > mm: Allow arches to provide ptep_get() > powerpc/8xx: Provide ptep_get() with 16k pages > > arch/powerpc/include/asm/nohash/32/pgtable.h | 10 ++++++++++ > include/asm-generic/hugetlb.h | 2 +- > include/linux/pgtable.h | 7 +++++++ > mm/gup.c | 4 ++-- > 4 files changed, 20 insertions(+), 3 deletions(-) > > -- > 2.25.0 >