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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40D37C433F5 for ; Wed, 20 Apr 2022 14:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354644AbiDTOw6 (ORCPT ); Wed, 20 Apr 2022 10:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379782AbiDTOwr (ORCPT ); Wed, 20 Apr 2022 10:52:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB967B1F3 for ; Wed, 20 Apr 2022 07:50:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 75AEEB81F94 for ; Wed, 20 Apr 2022 14:49:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EBE3C385A0; Wed, 20 Apr 2022 14:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650466198; bh=7yUjL4osBCzwyo+o0xsPqX0kxWSIuC7pDXj7izW6w7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oo+KCXrGEZVq/dhELY0aGrJanCdyLq43rPp9e3mAB5MP057HF0ceFQBmwmmfstZxH XIcOmXMlBEZI3J7KkpEekWuGAFvO0MQVb2UBtVHERUpscxZsecO2Hs4YbBarfij3HM 9Zk9wJBNQA9KxCQpl7cqV54oGLchudyTs4or+PFTNATaBVuiEAPKk5M+xj5/nMj6nr kKQFP98tjF8zy1JxRJxRZ7LmiiNpiqT7GwkS9FgIEYNwM7nCRy84FKDXfxAExR7fcO 70v+xZiSA1sgHfjftjTF9B6g5BTy1OQ0VxpvuNUY0ifMLlb0dGbOXBQ1kY13ey+TkQ H7BloCUCYYqtw== Date: Wed, 20 Apr 2022 10:49:56 -0400 From: Sasha Levin To: Georgi Djakov Cc: stable@vger.kernel.org, rppt@linux.ibm.com, anshuman.khandual@arm.com, david@redhat.com, will@kernel.org, catalin.marinas@arm.com, hch@lst.de, akpm@linux-foundation.org, surenb@google.com, quic_sudaraja@quicinc.com, djakov@kernel.org Subject: Re: [PATCH 5.15 2/2] arm64/mm: drop HAVE_ARCH_PFN_VALID Message-ID: References: <20220420124341.14982-1-quic_c_gdjako@quicinc.com> <20220420124341.14982-2-quic_c_gdjako@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220420124341.14982-2-quic_c_gdjako@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Apr 20, 2022 at 05:43:41AM -0700, Georgi Djakov wrote: >From: Anshuman Khandual > >[ Upstream commit 3de360c3fdb34fbdbaf6da3af94367d3fded95d3 ] > >CONFIG_SPARSEMEM_VMEMMAP is now the only available memory model on arm64 >platforms and free_unused_memmap() would just return without creating any >holes in the memmap mapping. There is no need for any special handling in >pfn_valid() and HAVE_ARCH_PFN_VALID can just be dropped. This also moves >the pfn upper bits sanity check into generic pfn_valid(). It's not clear why we need this patch in stable. -- Thanks, Sasha