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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 14902C07E9C for ; Fri, 9 Jul 2021 18:48:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1E1A613B7 for ; Fri, 9 Jul 2021 18:48:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1E1A613B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=B7qOPODfyAbU9mZEW9mowrGh2/Qjy4HrFfSBuBhVlWQ=; b=TO+YkMqqY/2qhq ejMeeG+5r3WOLdR3i/Pf9SDLJwV5iLkCmSzonzVMRfDHPbNgSquRcQNN+vpy01BY+oG+Ki9ld2nIb Czw3QPlDRVDAU1nU5v31pofelrtdQX2zlIjWYEixtJB4y/CGsBbKAn+g7mbwkfFaHYbZUE+zWYlAA S9at56G6Vc/Ir1lxjgGms4WWFu19SXNluycDnMX0tOpI5X+mJVukCm1taPHbqwot4jwolkxxabLL8 RbRfpVjhQh8uPOEWpKLkFOIrvbir/a2dcwGarXcBCYAGFFT701SZa3OaqmCmWzFGudBrzcnLnUfbY MlZ0OvYZj8AJeHWtccsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1vWZ-002KMk-4D; Fri, 09 Jul 2021 18:46:55 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1vWK-002KIr-Cw for linux-arm-kernel@lists.infradead.org; Fri, 09 Jul 2021 18:46:41 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1966613C2; Fri, 9 Jul 2021 18:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625856399; bh=VnebZJHhnbph+O650HrQvvkh14jKb5Oq2xbw35OBKaE=; h=Date:From:To:Cc:Subject:From; b=l0591HlaUwSzKzwX8XbUV22xLOd5TaICOeEE226OFbpuB9qJh/7RUciKBtQScSO9q m6S6hZC+OYZInYvSIIIpagXsRCUHEQjCFP/T9HMJ7jlIMYROb/l1iEGqIVxPvtPhjl 5s69E7oeERziQyjUNDq4O0DAvK/Y4Wk87I9QUQtbSf9mWiqcHN6JlCtA/8OBWJP0Bl 1xb19G1G2JcLghU8CkiJxdPX24nzE4MDG9NNcIs3V7NKGEoMpqt0l6Bg+xzdQTfbGc mcOglWwBVueLQjhQHTO4wWd8cM2NnROTb0ccf04GV4D4ranCkr1VzjrL3e4Iz6MQug /R73JSspM22QA== Date: Fri, 9 Jul 2021 21:46:33 +0300 From: Mike Rapoport To: Linus Torvalds Cc: Andrew Morton , Kefeng Wang , Guenter Roeck , Mike Rapoport , Mike Rapoport , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [GIT PULL] memblock, arm: fixup for the pfn_valid() rework for v5.14-rc1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210709_114640_500781_B14C78B7 X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Linus, This is a fix for the rework of ARM's pfn_valid() implementation merged during this merge window. The following changes since commit a180bd1d7e16173d965b263c5a536aa40afa2a2a: iov_iter: remove uaccess_kernel() warning from iov_iter_init() (2021-07-04 16:12:42 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2021-07-09 for you to fetch changes up to 024591f9a6e0164ec23301784d1e6d8f6cacbe59: arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM (2021-07-06 09:01:47 +0300) ---------------------------------------------------------------- arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM The semantics of pfn_valid() is to check presence of the memory map for a PFN and not whether a PFN is in RAM. The memory map may be present for a hole in the physical memory and if such hole corresponds to an MMIO range, __arm_ioremap_pfn_caller() will produce a WARN() and fail: Use memblock_is_map_memory() instead of pfn_valid() to check if a PFN is in RAM or not. ---------------------------------------------------------------- Mike Rapoport (1): arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM arch/arm/mm/ioremap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- Sincerely yours, Mike. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel