Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2622275pxb; Tue, 13 Apr 2021 06:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI0ltFW1ZpQT16Ye8xod4b4yMUbmhmL8tZwps5lQ5Tnq7gQ1XsusqJUA3F5hB5azFXlJXu X-Received: by 2002:a17:906:b202:: with SMTP id p2mr32164094ejz.244.1618320443880; Tue, 13 Apr 2021 06:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618320443; cv=none; d=google.com; s=arc-20160816; b=ixc9oPdDEuLB5YNTF+1nZV9n6j6FjZi4Ui+Z3JUWP9EDtEyRz8PvGqulpR4ilD3iEM +Mf13tSy6RDKDNhkJMP1sQw7TF4SlIg1tuz6YcaE9bt+Z6O0xkZG1JxRlB4Z/LCpxK5X niqP6/LlQSLK7CYxVdvpYJP37AKcNGV3hu3xgB0xyCRR/vu2acvitlYU9SQDINicFHAF gERJSkbiAFhms7m33TAnZ0DgLQhtJyJOqHw7FxDcYZngeS8jTw051r1jf/zTwqO6+PKV BOxvUzKSURRmc72uaTforTnJq0epXM6ksn+NQQkdtGcrabnOEbiz42OT+V1UcoNOPihi CVFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tCLss6L2rlH6nui9SBILYlvnXvgvjlR5gMc5fRIeGlU=; b=BLB/Dpsa0Wpf1jevwXoAZ0brltISq3yG1PdL/krrCUsBLIetxWkhJetM5Jg5iLd1iG MQqlk50MO6PPr0z6+k0K871i8Ell3sa/PcHpZ+zlGvlev7biTDykiK7/Qab/9SA/YGgL ZfDOi7BfkG23jXah14Fq0W0bIcQMlvuzxcZc6sKr7nVh2DWqKRtw1tB5lYry27y2tDJW WOMdNTToORwexeO9QXAg8ok9DA1OFKf/X/O4rhoB1GjvdFPNG/LcWDCO0LGRP2iMY/z2 lvHio0l144UuMgRXV2o/sQsSmAu7wqcxwTT9gTr4cNaoV7vBBz8ngEjTlm8TPLF8e8Ki Nadg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=h8uHMGP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp3si4049264ejb.704.2021.04.13.06.26.53; Tue, 13 Apr 2021 06:27:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=h8uHMGP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344359AbhDMDuc (ORCPT + 99 others); Mon, 12 Apr 2021 23:50:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243046AbhDMDub (ORCPT ); Mon, 12 Apr 2021 23:50:31 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DE0C061574 for ; Mon, 12 Apr 2021 20:50:11 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id f12so14988485wro.0 for ; Mon, 12 Apr 2021 20:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tCLss6L2rlH6nui9SBILYlvnXvgvjlR5gMc5fRIeGlU=; b=h8uHMGP+0siogYx0lsEcrSGhqGjozEZiaoZBsIxchbVkOpuUIaAhHcpY8G9peLdBGR C4E4ybkDFRHhDn1HchsyJrogB6Ct1j5hm3rsihquEW2obJuEMqOtmFOOwVJqjZ36Ftii YOFq+qQ6RVgTxKwr7CiNmwYj/0i6q+eVM7R0vLUVEA9CeoXX0VfqCwzHkgrkeOjhA37E Tt0SegHOZxj7+QZ4unqJfFruG3RlGRGBlheNwz8SUeAKEVW6qveFZ/qM8YyVezD5jM3s Ahhyhy8I85kdRyH8sRFHLN6Dv1IW5uA+oZ9YEe9b1B6xHMPJoDTAlA5L7kbvich2mncw c/Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tCLss6L2rlH6nui9SBILYlvnXvgvjlR5gMc5fRIeGlU=; b=f5Nn+tRURrZf8HUU/XlE35y/nTS1cjfrb/mpqaOgrF0xfVjoLndkIRlkxiXOtypYoA jr1y+spy2QXG6ZNvU1yYefrF+jf9CEDUoXBFXv89xrPXNsFp6FRuPoGDyP/eBklIrtN4 DRcQrEmd9BA0dXXEUqnb5ax9gvJFW06r9cR/i3IIqhWOTMZFljApeWOn21aUmSlWt1RA /FI/Dnkg6ZqU58SlyBeT4IlYDNrzRxHtNXGfOzQ2ILptsKmt8/EPLLkmDV6OuyervOPe qXnN60O+GQcKQlPOnNjNlCoCc3Pm4rq7ERUszadL6YKuHYAbxt4fy3QzvVDvZU2V183W UQbg== X-Gm-Message-State: AOAM5326s85fBvOYT1mjJZ3u2uWoyqKLtI2slYKTQ9BNE2Rc3I2DLQ28 hwbwevfYixLgIPAqfE2shKoTN5ECCoGb/uY5P/wwFQ== X-Received: by 2002:a5d:4bcb:: with SMTP id l11mr35673706wrt.390.1618285810112; Mon, 12 Apr 2021 20:50:10 -0700 (PDT) MIME-Version: 1.0 References: <20210413001110.7209bae6@xhacker> <20210413001159.341a95d6@xhacker> In-Reply-To: <20210413001159.341a95d6@xhacker> From: Anup Patel Date: Tue, 13 Apr 2021 09:19:59 +0530 Message-ID: Subject: Re: [PATCH v3 01/10] riscv: mm: Remove setup_zero_page() To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Luke Nelson , Xi Wang , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 9:47 PM Jisheng Zhang wrote: > > From: Jisheng Zhang > > The empty_zero_page sits at .bss..page_aligned section, so will be > cleared to zero during clearing bss, we don't need to clear it again. > > Signed-off-by: Jisheng Zhang Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/mm/init.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > index 7f5036fbee8c..dbeaa4144e4d 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -57,11 +57,6 @@ static void __init zone_sizes_init(void) > free_area_init(max_zone_pfns); > } > > -static void setup_zero_page(void) > -{ > - memset((void *)empty_zero_page, 0, PAGE_SIZE); > -} > - > #if defined(CONFIG_MMU) && defined(CONFIG_DEBUG_VM) > static inline void print_mlk(char *name, unsigned long b, unsigned long t) > { > @@ -589,7 +584,6 @@ void mark_rodata_ro(void) > void __init paging_init(void) > { > setup_vm_final(); > - setup_zero_page(); > } > > void __init misc_mem_init(void) > -- > 2.31.0 > >