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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 2C9C8C432BE for ; Fri, 27 Aug 2021 07:40:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 14FA460F92 for ; Fri, 27 Aug 2021 07:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244455AbhH0Hle (ORCPT ); Fri, 27 Aug 2021 03:41:34 -0400 Received: from verein.lst.de ([213.95.11.211]:33103 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbhH0Hld (ORCPT ); Fri, 27 Aug 2021 03:41:33 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 001846736F; Fri, 27 Aug 2021 09:40:41 +0200 (CEST) Date: Fri, 27 Aug 2021 09:40:41 +0200 From: Christoph Hellwig To: Linus Torvalds Cc: Will Deacon , Christoph Hellwig , Catalin Marinas , Linux ARM , Linux Kernel Mailing List , Android Kernel Team Subject: Re: [GIT PULL] arm64 fix for 5.14 Message-ID: <20210827074041.GA24309@lst.de> References: <20210826131747.GE26318@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 11:41:34AM -0700, Linus Torvalds wrote: > "pfn_valid()" is more about whether you can do a "pfn_to_page()" lookup on it. > > II get the feeling that the dma-mapping code should allow pages that > are PageReserved() to be mapped - they aren't "ram" in the kernel > sense. > > Perhaps also make sure it's not the zero page (which is > PageReserved(), but most definitely RAM). > > In a PC world that would be (for example) the legacy PCI space at > 0xa0000-0xfffff, but I could easily imagine other platforms having > other situations. So what would be the correct check for "this is not actually page backed normal RAM"?