Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3197318rwb; Mon, 16 Jan 2023 05:09:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXs2hdTvaKUljVVhT8X7ajVPoZd8usNH5I8leheLfyGmhnp4t8kWJ9KD0BxYmEvS10yz966e X-Received: by 2002:a17:907:8dcb:b0:840:c37d:b5e4 with SMTP id tg11-20020a1709078dcb00b00840c37db5e4mr107585883ejc.16.1673874542722; Mon, 16 Jan 2023 05:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673874542; cv=none; d=google.com; s=arc-20160816; b=peo7PfDPAXA6K8KL19GBdRfolJNsIL96+WMe4xJ1I2k8NKmQR6e/WcFpocgL/2RGe8 qr8gd8iISAEnKhWfTw7soJrfDVjvMfD0vffmMEWBNh9+mXvn/bcRlPZ3LpPzgG7sLSS/ sJUYCadmL/jcQ1iftNy51YpD+peYuYS55StcUVkCDYeJcn+FIchkAvkFiHsCclHU8J8K vznoAU2O7U6k1iuNt4GO1O8Igv1LTpQoT14XKnOqqyPan0GtWM3sy3otoSk650xTAPsP QTCDReNiCjHnAJGordXawwsMPiepYkZ30Kaki37Aej9Of2rIV0u1r0gNKD4DQKxHsMlq PVgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lAPYg/ZvWBJjUQwtgLMe2yVs/QOrldZYm/bQtr2RTD4=; b=aBKpMAQ78C005ix3N7kG6xZjnO678VxZSWuW7776L4NfBiUJgQpWwI9FvFA2tZOUZ1 ljHADZVtjqhNTvQTwnt10P2ul4nojBqjUaakc0LhdcuT04KA+jbWod1owV/J8hiM4dyJ J+9BE2MloJd0RbMgz6XiuZqa9alXjzm2xysbUamQGOI0Ggma3HfkjVH795HvBlMYyAjl NQFaOqBEs2Vgv0+H5LkcNNfWbdTiCUbobI/qqOF4Cso5p4NrFWt1JVnb0wUo9Mluvn6M BW3aHD0WiQAVkWButps5gOOf1gniDFERoG9BkGi+9+r4OhC9O5tpjmOkCeq1eu60xn2Z HI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nlf4mxN6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr15-20020a170906d54f00b0084b895b6a23si7488801ejc.788.2023.01.16.05.08.21; Mon, 16 Jan 2023 05:09:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nlf4mxN6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbjAPMZQ (ORCPT + 51 others); Mon, 16 Jan 2023 07:25:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjAPMZJ (ORCPT ); Mon, 16 Jan 2023 07:25:09 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C0CC1CF6A for ; Mon, 16 Jan 2023 04:25:08 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id o15so19854353wmr.4 for ; Mon, 16 Jan 2023 04:25:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lAPYg/ZvWBJjUQwtgLMe2yVs/QOrldZYm/bQtr2RTD4=; b=nlf4mxN6WlnHSI9yZLFFKUieEv+F0BHxIuXsVVf/lguDjouSr9E0dxwEeAcnkKvFs6 RZWJKKGqMMHMzdzLpZ1zZjc4L9EwHVw/zu4ut8TaEyhMSmVXOrhlzsmDfZWhq6uPD2xJ M9F9ZQqLY/adKNBoJ/eNHCeT3xXbw1c2peCFV2pvqZ25D2CAoSNWz1bjcAWrDa9rZjlR TWXarLaYQ19gkxu3OW8DdV+aSG063daEUV6ZK/GHS2LtssChbreg7nxUfgSkkW6QjrL0 OHgcU3Wa8fM0q2LaA2FiuqYiciAvTDDudOpllXN4Kw8I0Dx1js5l+mHwboSyBj0SIIBs 3lSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lAPYg/ZvWBJjUQwtgLMe2yVs/QOrldZYm/bQtr2RTD4=; b=neQRo6dW3AsegVrVXbteIpTkpJYeLRm8srSJzQLnBZznD8DYW+BsYX9zZmPk0NF+CA WZhdnNyv2y6KJluaOy5fFneKDgO2o3vh7JUjuELbjcy5AkRuyUj0PvvCApKM0n/vi9N/ NM2kL10tbhE2jenSCnAOODTl/00e0n/m3ClmXM9/GB/md/B4cTMZoZRq6OteXPFxd7V6 sv8T0dDzdft4C8xZB8xy4dXwH3I/DPCvomppLYeIO98x5rXJ1KeEhzBQIrGyqkFIonXO /nB7Bj33y5VPhZ78UsRExG0m/8kw5PVgEpfe3KDJYNHvrkbZBTlXGHToOcaMRYsoDxcd gzsg== X-Gm-Message-State: AFqh2koKGxOh+mW5n5OnTTg82uIRokjMkSTu3oO1xTZval44uK5NsBDU CS69Sxz+n3UZi39ct9yytWNPihLKMt8= X-Received: by 2002:a05:600c:2142:b0:3d5:365b:773e with SMTP id v2-20020a05600c214200b003d5365b773emr78322318wml.39.1673871906531; Mon, 16 Jan 2023 04:25:06 -0800 (PST) Received: from localhost (host86-164-169-89.range86-164.btcentralplus.com. [86.164.169.89]) by smtp.gmail.com with ESMTPSA id fl12-20020a05600c0b8c00b003dab40f9eafsm6838196wmb.35.2023.01.16.04.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:25:05 -0800 (PST) Date: Mon, 16 Jan 2023 12:25:05 +0000 From: Lorenzo Stoakes To: Baoquan He Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, urezki@gmail.com, stephen.s.brennan@oracle.com, willy@infradead.org, akpm@linux-foundation.org, hch@infradead.org Subject: Re: [PATCH v3 6/7] powerpc: mm: add VM_IOREMAP flag to the vmalloc area Message-ID: References: <20230113031921.64716-1-bhe@redhat.com> <20230113031921.64716-7-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113031921.64716-7-bhe@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 13, 2023 at 11:19:20AM +0800, Baoquan He wrote: > Currently, for vmalloc areas with flag VM_IOREMAP set, except of the > specific alignment clamping in __get_vm_area_node(), they will be > 1) Shown as ioremap in /proc/vmallocinfo; > 2) Ignored by /proc/kcore reading via vread() > > So for the io mapping in ioremap_phb() of ppc, we should set VM_IOREMAP > in flag to make it handled correctly as above. > > Signed-off-by: Baoquan He > --- > arch/powerpc/kernel/pci_64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c > index 0c7cfb9fab04..fd42059ae2a5 100644 > --- a/arch/powerpc/kernel/pci_64.c > +++ b/arch/powerpc/kernel/pci_64.c > @@ -132,7 +132,7 @@ void __iomem *ioremap_phb(phys_addr_t paddr, unsigned long size) > * address decoding but I'd rather not deal with those outside of the > * reserved 64K legacy region. > */ > - area = __get_vm_area_caller(size, 0, PHB_IO_BASE, PHB_IO_END, > + area = __get_vm_area_caller(size, VM_IOREMAP, PHB_IO_BASE, PHB_IO_END, > __builtin_return_address(0)); > if (!area) > return NULL; > -- > 2.34.1 > Reviewed-by: Lorenzo Stoakes