Received: by 2002:a05:6520:108b:b029:116:6f3:2ab1 with SMTP id cb11csp652520lkb; Fri, 9 Jul 2021 11:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGCHy8dSPTqqownAJls/jOtjj/tvm7qon8WvEpdCbrunxbBxy5Eib3ujkvn0pRxOWqdykD X-Received: by 2002:aa7:c804:: with SMTP id a4mr20485067edt.294.1625856483828; Fri, 09 Jul 2021 11:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625856483; cv=none; d=google.com; s=arc-20160816; b=WczXvOkmUy52XR9OR5X55DkQITwcWqrJrx+g2l6CSg9XGCkQhG1PEXxrz0Z0g5wraa 61xL7Xsok5UqNNwbRscHVo4rZnINSM5ezhcqqBZjyRpVd6TImV8Z+aOk/QLJUYAPxFdT IJ8XEnxTPiHgmv7GvnEadmzXDlaOMmzbTYgu3uGHrlcAp3v/xWJgMKELRqbSMeRcR03A flfrAWcizT0Ktj263N0AlKAK7/1jvK+psoTIVRsrP1nXFgj7a5yYglY8HwmX+MwhST4Y fVp8DD3jeXeeXkZbwv1aHOxaUhi9N30PQILD1nwcRyme7TvhqRJkMsko8S804+qFuA8o wWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=pu4VhAKPpJaA91QpbGqZCMtf/UbJwT0Uf+8/gt5g4B8=; b=MHmrFiXMfFABjp9QNF3BDfbFlIyb6+DzJ/li8IJQr6jb4jUje/gLARn6ZAu7KhkZHZ UyOjvctIEhwyAhGv+XQeEdoTkZSY5rtzDYAfhvZP61R7y6j9ro3IyvoaSfUuxbdY9ccu YlD5mEFwMntBCustPGsXj/6pgvPGd+L2uVzI6aWgyMwvFXqAHILLQuNhgtVFrxwutqrT A0ImkXoyEb5crXUfUL1PccvqVkIb/rrxQs2xStZUE1AzvUjJ2YKytrVAb+s33Rg4Ta8G NenlRqLUfbvp44+xCGLYm/ORWQyDfgnCbjPhVolEwVevAeh9rvg8f8nVDV0ZDkyz1Wkv qEdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l0591Hla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l33si10023304ede.457.2021.07.09.11.47.41; Fri, 09 Jul 2021 11:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l0591Hla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbhGIStX (ORCPT + 99 others); Fri, 9 Jul 2021 14:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:50076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbhGIStX (ORCPT ); Fri, 9 Jul 2021 14:49:23 -0400 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-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.