Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3125503rwb; Mon, 16 Jan 2023 04:09:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZ+B7XuEfw9Wzix4bB6okkTx8oz082c9wCxc/Q9PCxZGzzmJWwvdLWyZfkBMvq47G4kCUX X-Received: by 2002:a17:906:40c4:b0:7c1:ad6:7333 with SMTP id a4-20020a17090640c400b007c10ad67333mr77931405ejk.10.1673870969651; Mon, 16 Jan 2023 04:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673870969; cv=none; d=google.com; s=arc-20160816; b=fFNRwQGJA6uKA7I8QgcD5Mp8WxcHlyqX7BncV0EwQ93Hov2hwf0C6Z842MuzlHBYXf OSgAsyAOgIwhyqi3OW5s514z6UNORf/15jJxKePQhEY7FkYE99IIN5rhnhHbXP4dWegE FcMsuf/OBomFjOy5wky/uZCGug45UzvNjlfPsb5Z0PQLh+SGYj624MnZSMV9IsOTPJlZ x2zWep2NSrzn+qLmbMxLFUodxzO05e5iGPodWRhfXdI8iDIGDX8tQdohxL1VyK1phHbB ZSKCLAMC+80yP9/JZ/0l4LAxyxENmVbYlLjTNHvCuTybGAtN1ggmjLqQbIOFZ44PJzjr Qn2A== 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:date:from:dkim-signature; bh=LeQntdTA5Ugurin8mDm/P6vcnLBcFASvg8588uk6TaE=; b=Ltua+BrqATqw21WwnabKcTXbYbJrj5F7+xQUGmq60pDGNZBG1IUWUFHz9+xib5XtKI F0pfoj50rlX1/K9VVFh0sTmLNx5wtkn5QbE1DHhx9hf+GcXnE/nCBQv1KC9YDjKvItUL 7rR4DkjP3eG5/akL3Xemf6oHTOBZhCs35geuRhptWTjUUdzgHyeVYJcb3Yt2e7ra7m8e yUOVzeMLt/FcKa4L8HZ2J4VZ/eYLUlBpqSgRxMLqbBbyQdbswI6A/aBF0SHVC9RnQQvQ U3g3o31XmPUldbfiiXIXzYpT6RXn1RsNbio/bX6PR/rb+nWmT9timmeey8UQwgQ5ZaTS LaUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MsgjWYfp; 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 mp26-20020a1709071b1a00b007c146656546si19521363ejc.317.2023.01.16.04.09.17; Mon, 16 Jan 2023 04:09:29 -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=MsgjWYfp; 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 S229849AbjAPLrG (ORCPT + 51 others); Mon, 16 Jan 2023 06:47:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbjAPLq6 (ORCPT ); Mon, 16 Jan 2023 06:46:58 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E299F1CAF7 for ; Mon, 16 Jan 2023 03:46:55 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id bf43so42342498lfb.6 for ; Mon, 16 Jan 2023 03:46:55 -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:date:from:from:to:cc:subject:date:message-id:reply-to; bh=LeQntdTA5Ugurin8mDm/P6vcnLBcFASvg8588uk6TaE=; b=MsgjWYfpigMizqsn8k+uHz+dowcgwReaEaESYSvWJ7LKYJkwmCoypzJw2xZ/KPaaig 32LeqRCiB4qtsVKEI3x/fa5KpkEOVt03gt6jDfgSLI9yprttbSIxKqqPYyZ+bXxIr5e6 P2iWpb5KGmj0iKBkQ/kEK/0+88hCgq8SK/mRxDq6WAvmoSvSoG7GzTQnbXXErs2ok7ji mwn4vopcWwRgrbKbDFaaUR6VKxIEQxMn2NyIlk/Mu69dYfMd+v9kezKQlm0DMT5hWDrc GKYE8HjK3DgMpeiFYzR8Jtpg6emDrhgEoP/oc8Rg3Qg5XclzzSyIAfssSWP6sorBoKTq sfpQ== 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:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LeQntdTA5Ugurin8mDm/P6vcnLBcFASvg8588uk6TaE=; b=kU0DsA30IBQQWS1h0oWftAqtd4HEpBqJ4MX10P8zwsGPvPUH6XZWQu0qxHeoTaQ6kQ YBmQQ8OlUiXhhgvLVTc8/Kq/1CWjJhMy/jlZTaWBOo66gtB5I5BiZ0S3sg9RFLtu1hmf 7AxftpkxTcoHzPoJYJASOuAlvwDxa/2wk6cX4FiqnfWYc4biDvnEuiAuBCzGDKuJvABR a6xNWUItsS5XQYzYTRxvdK5l0zxGH2ASpxy2uarUyOcG9wvKQQ/C+0s4y+q/Pcump8mO dm7oKuy/RcluoDffUmkPhv0LIJxlc23klBK0XiYb4z+YLPl+SejMUrfXyNRz/J+OeRI2 wtug== X-Gm-Message-State: AFqh2kpd/ljDfYL91zUNUCs6vqMlrLAdviHY3uxqxR4ktiPgSpJ/Yn+3 x+68nHIHVQBhQCLJYL8jwJo= X-Received: by 2002:a05:6512:2085:b0:4d4:ea0f:a784 with SMTP id t5-20020a056512208500b004d4ea0fa784mr1883553lfr.19.1673869614244; Mon, 16 Jan 2023 03:46:54 -0800 (PST) Received: from pc636 (host-90-235-24-7.mobileonline.telia.com. [90.235.24.7]) by smtp.gmail.com with ESMTPSA id q21-20020a0565123a9500b004d272bf56b5sm1213598lfu.223.2023.01.16.03.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 03:46:53 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Mon, 16 Jan 2023 12:46:51 +0100 To: Baoquan He Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, urezki@gmail.com, lstoakes@gmail.com, stephen.s.brennan@oracle.com, willy@infradead.org, akpm@linux-foundation.org, hch@infradead.org Subject: Re: [PATCH v3 7/7] sh: mm: set VM_IOREMAP flag to the vmalloc area Message-ID: References: <20230113031921.64716-1-bhe@redhat.com> <20230113031921.64716-8-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113031921.64716-8-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:21AM +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 ioremap in __sq_remap() of sh, we should set VM_IOREMAP > in flag to make it handled correctly as above. > > Signed-off-by: Baoquan He > --- > arch/sh/kernel/cpu/sh4/sq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c > index a76b94e41e91..27f2e3da5aa2 100644 > --- a/arch/sh/kernel/cpu/sh4/sq.c > +++ b/arch/sh/kernel/cpu/sh4/sq.c > @@ -103,7 +103,7 @@ static int __sq_remap(struct sq_mapping *map, pgprot_t prot) > #if defined(CONFIG_MMU) > struct vm_struct *vma; > > - vma = __get_vm_area_caller(map->size, VM_ALLOC, map->sq_addr, > + vma = __get_vm_area_caller(map->size, VM_IOREMAP, map->sq_addr, > SQ_ADDRMAX, __builtin_return_address(0)); > if (!vma) > return -ENOMEM; > -- > 2.34.1 > Reviewed-by: Uladzislau Rezki (Sony) -- Uladzislau Rezki