Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3682670pxb; Sun, 7 Feb 2021 19:05:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOjQO6anwuFfzJqTSN3oTiwL1ETImF9WXLCuJTbOXq6GFXTN+xuxSOSxhPGZIj9YoP+zk6 X-Received: by 2002:a17:906:3acc:: with SMTP id z12mr15305824ejd.494.1612753538900; Sun, 07 Feb 2021 19:05:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612753538; cv=none; d=google.com; s=arc-20160816; b=zKMcA3o4VwQG15OMOYWwliBAbhfAU4S8nCX9QsEkLbfynkAL6c5+tcbvRAVGBVp6Gk uhJaJtt/23oSemrNgxLEcwuobykxI4AvbKu1ncw6ThyxRL6paxAdennx5HO6X4i400mg 5u3EWYk9VvnGxzZnFNM1ZRURgoMzOZbQ+1pCs+7rhnLCzoUbkBTa5bgwNhNMBCwR9Esu W/992XHvapZeBhDkWco6l9IIQGa+EF//r7emXTz6GFIel1slHqpJWjBXLhNb11BO/htC uWwgPBSdIqGyp8Fefx7IevgdYpPSc62bFBiFXOgqFQO+ZY+s+wVPHPFiOc1TOnzFcsX5 wdig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=SoSO+FOdkESpvPCTtv15ji2e30M87lqzh19TOIWG8uE=; b=ZOuzq8w87JgSS2ao9snwwjESd+wY/6M4MSZgxMKOBr4jTWer+ZNdLyDNkShNa+huJz tYhc/uQyWeZSwTEuDVwBcHMydNU3N9Ii8aVJunq9Xir7m/szXOBLFzspao69ie1VUnzd LcNtHMStUKdWtOBSnumrxAZq7sKOPdrZOMq8JWR5GGEgIDYTUfECFphM3hBQbNyI4GeM L890L11c/b2v9NYILh3FV57CuUk3rG+R2sguPFzSU+YO5oJkcY+oVCv964k30f6yKFdI jjjymdTh9gm7MkEEGpBiZ2Y/Y6ueW1YR16ntSLdYlJGt5x+eY+W7mlflTmka15sd04VR GCLg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si12181542edf.244.2021.02.07.19.05.15; Sun, 07 Feb 2021 19:05:38 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbhBHDEf (ORCPT + 99 others); Sun, 7 Feb 2021 22:04:35 -0500 Received: from foss.arm.com ([217.140.110.172]:55206 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhBHDEe (ORCPT ); Sun, 7 Feb 2021 22:04:34 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 00ADF1FB; Sun, 7 Feb 2021 19:03:47 -0800 (PST) Received: from [192.168.0.130] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74C8B3F719; Sun, 7 Feb 2021 19:03:42 -0800 (PST) Subject: Re: [PATCH] mm/memtest: Add ARCH_USE_MEMTEST To: Max Filippov Cc: Linux Memory Management List , Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Chris Zankel , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "open list:TENSILICA XTENSA PORT (xtensa)" , LKML References: <1612498242-31579-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: Date: Mon, 8 Feb 2021 08:34:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/21 1:05 PM, Max Filippov wrote: > On Thu, Feb 4, 2021 at 8:10 PM Anshuman Khandual > wrote: >> >> early_memtest() does not get called from all architectures. Hence enabling >> CONFIG_MEMTEST and providing a valid memtest=[1..N] kernel command line >> option might not trigger the memory pattern tests as would be expected in >> normal circumstances. This situation is misleading. >> >> The change here prevents the above mentioned problem after introducing a >> new config option ARCH_USE_MEMTEST that should be subscribed on platforms >> that call early_memtest(), in order to enable the config CONFIG_MEMTEST. >> Conversely CONFIG_MEMTEST cannot be enabled on platforms where it would >> not be tested anyway. >> >> Cc: Russell King >> Cc: Catalin Marinas >> Cc: Will Deacon >> Cc: Thomas Bogendoerfer >> Cc: Michael Ellerman >> Cc: Benjamin Herrenschmidt >> Cc: Paul Mackerras >> Cc: Thomas Gleixner >> Cc: Ingo Molnar >> Cc: Chris Zankel >> Cc: Max Filippov >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-mips@vger.kernel.org >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: linux-xtensa@linux-xtensa.org >> Cc: linux-mm@kvack.org >> Cc: linux-kernel@vger.kernel.org >> Signed-off-by: Anshuman Khandual >> --- >> This patch applies on v5.11-rc6 and has been tested on arm64 platform. But >> it has been just build tested on all other platforms. >> >> arch/arm/Kconfig | 1 + >> arch/arm64/Kconfig | 1 + >> arch/mips/Kconfig | 1 + >> arch/powerpc/Kconfig | 1 + >> arch/x86/Kconfig | 1 + >> arch/xtensa/Kconfig | 1 + >> lib/Kconfig.debug | 9 ++++++++- >> 7 files changed, 14 insertions(+), 1 deletion(-) > > Anshuman, entries in arch/*/Konfig files are sorted in alphabetical order, > please keep them that way. Sure, will fix up and resend. > > Reviewed-by: Max Filippov >