Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4550251ybl; Mon, 9 Dec 2019 12:45:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzSyc0ZjdW8ohestk5xjCBCT1YEm7IWNyw8lIKqbET+J+kRYZrI2K5h8i1nt4M9x0EkTZ6s X-Received: by 2002:a9d:7342:: with SMTP id l2mr22819002otk.98.1575924356464; Mon, 09 Dec 2019 12:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575924356; cv=none; d=google.com; s=arc-20160816; b=yd0kFo1R2MQwSGxXqvxCM3Td6gAn9LurzSnbsq5mMG8B2Xlppvh+wbuF6/9MiTA6kA WK7SP92iDBkeYR63cuxs09aY7MC7ajVdV5NN/erISV/IBRrCPzuFDmX86c1GWG2K4rke v4enWT+4i94W7ZAM96w/0pUJQWOvvuHXHm2RLBzB6i/fhuYRJfXud8xSwCiSe1XxIm2g LFkFIzUmKtW8SRD/ctCGhgkZEKX1Uu1036vp1wm9750Gna1COGOCvjHRWvqvYwkwS21m NkRCf+EjpXVx00DkZpKlAW6rfaNmtzxr8wKC0iKaGJ1ZNycSstiZHWMMrUFKlGpfTZox GkNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZOoNcHdlDK4fcbO79wyPbnr33lpT9t4Im2a4/GYVMtc=; b=IFB95QCqAetMgXGa8L55KEFrqMUgyPGATkJ/ofqPqum6zgNXlvEmZ2KB5q50Tt0vQN AgmSKkJwjeynUO/wo2JoV7Lh22ua5GDbYiadlHy9BJLVg3aVnsimuLfgnITyGXlZFzId sb98BPq4L/8g2c+FcF1Y8+ijPW5fryFeWbHuXjDwQ3eymHbgW6UCDVXSnVPPKXN5hN0g B2VQSOeqrbl2ih1Xsk4JW5EeD9hVvp/qaA0LcJQACHn9jbYNV4nsKeJVnUnSoD2r3mfk bazKdHDdI8MmTCVQFL7Yi+tiHQt1Wtmp0gNba/dNjJthwqofXxmw1xXpQZIdsv6pYS0R GuBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si716102otk.151.2019.12.09.12.45.42; Mon, 09 Dec 2019 12:45:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbfLIUnv (ORCPT + 99 others); Mon, 9 Dec 2019 15:43:51 -0500 Received: from verein.lst.de ([213.95.11.211]:44566 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfLIUnu (ORCPT ); Mon, 9 Dec 2019 15:43:50 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 69ADB68BE1; Mon, 9 Dec 2019 21:43:45 +0100 (CET) Date: Mon, 9 Dec 2019 21:43:45 +0100 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Dan Williams , Andrew Morton , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Peter Zijlstra Subject: Re: [PATCH 0/6] Allow setting caching mode in arch_add_memory() for P2PDMA Message-ID: <20191209204345.GA29265@lst.de> References: <20191209191346.5197-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191209191346.5197-1-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 12:13:40PM -0700, Logan Gunthorpe wrote: > This changes is pretty routine for most of the arches: x86_64, s390, arm64 > and powerpc simply need to thread the pgprot through to where the page tables > are setup. x86_32 unfortunately sets up the page tables at boot so > must use _set_memory_prot() to change their caching mode. ia64 and sh > don't appear to have an easy way to change the page tables so, for now > at least, we just return -EINVAL on such mappings and thus they will > not support P2PDMA memory until the work for this is done. ia64 and sh don't support ZONE_DEVICE mappings anyway as far as I know. This generally looks fine to me.