Received: by 10.223.164.221 with SMTP id h29csp3060794wrb; Fri, 3 Nov 2017 00:37:38 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TLj07y20Rjo4Bvqnv7nxMyswWmsgSQiNkKoVvvJOwNvZIfj3dLRyXWrEbO3HPgVmi7XqyU X-Received: by 10.159.208.69 with SMTP id w5mr5817687plz.66.1509694658416; Fri, 03 Nov 2017 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509694658; cv=none; d=google.com; s=arc-20160816; b=LA8g++c9dctzgZLspnSdKdGiPFUZTvqQAOWEH42H8R8p0Sc4GdrXS1mVB15AGQp8V9 c8+AY0c9ca0e0wMu16SuMUiE771RHlHFxiEW8aLvxhnwukTEKeueZ8ggoHADFls4vunj krDS/DdhaQBwn228PQu1pQHNX+oP4Hgk/lzGPadM/UYVFqSBQx888eWSHPPblZaS21T4 2rwY4oVa345Y9xMvFfWzxHr1ikb5Msx8QlGVHemgWJikvlrpa3VrVOm8PcRStMbp0WMv dltQRx1jr+EnNKHRHBNEBgKD4im1MDPA00KRIKegg0y8xlV/R8kL1eJ6Iq3Xp0QqmIk1 GbKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=NbE7IEXHo1ifESP5eM60KW54vwaJ4SNwYb9eECd8avs=; b=0dSKYEu67jHnI+F9VnLYOD7zehYoazIJPRnGpp/q4ts4mm5TptzPYDxf7nI9AvE8SQ X0rTqs6T802SRtd999WvFUD2Q/yowpMgPYZsgMT/q5QWQ7/fi7GgLwOnd4oc1PwEMerK wO8gOsSPY7dpTRCTSO8Ie61NFa8muB2TGhrEaoqhOSDWpK+k3X+aRr7NEreYGpga2A05 FQmcCCfjQeDBngjVruyLbbBfFLfWhTV5TgjrqR/19QNr37hV7UrLIwudot4mVxbjYDCQ RvQvNSPo+5WkN0bE222VPfRKZ+JLhrrUFDThAuLu7XP6SftNuGzKelJCX5XwEhvRKWmu k7GA== 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 p11si4635853plk.192.2017.11.03.00.37.22; Fri, 03 Nov 2017 00:37:38 -0700 (PDT) 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 S1754682AbdKCHfN (ORCPT + 96 others); Fri, 3 Nov 2017 03:35:13 -0400 Received: from mail5.windriver.com ([192.103.53.11]:47798 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbdKCHfM (ORCPT ); Fri, 3 Nov 2017 03:35:12 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id vA37YtoU031143 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Fri, 3 Nov 2017 00:34:55 -0700 Received: from [128.224.163.162] (128.224.163.162) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 3 Nov 2017 00:34:54 -0700 Subject: Re: [PATCH] selftests: remove obsolete kconfig fragment for cpu-hotplug To: Sumit Semwal References: <1508292623-8479-1-git-send-email-lei.yang@windriver.com> <33c654fe-7d48-15e4-ee3b-1dba7dd41dd4@osg.samsung.com> <35526695-658f-377e-e551-7f70658e3558@windriver.com> CC: Shuah Khan , Thomas Gleixner , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , Greg Kroah-Hartman , Shuah Khan From: lyang0 Message-ID: Date: Fri, 3 Nov 2017 15:34:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [128.224.163.162] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017年11月03日 11:55, Sumit Semwal wrote: > Hello Lei, > > On 2 November 2017 at 07:43, lyang0 wrote: >> >> On 2017年11月02日 06:59, Shuah Khan wrote: >>> On 11/01/2017 04:52 PM, Thomas Gleixner wrote: >>>> On Wed, 1 Nov 2017, Shuah Khan wrote: >>>>> On 10/17/2017 08:10 PM, lei.yang@windriver.com wrote: >>>>>> From: Lei Yang >>>>>> >>>>>> Kconfig CONFIG_CPU_NOTIFIER_ERROR_INJECT has been removed since kernel >>>>>> 4.10 >>>>>> check commit: >>>>>> commit 530e9b76ae8f863dfdef4a6ad0b38613d32e8c3f >>>>>> Author: Thomas Gleixner >>>>>> Date: Wed Dec 21 20:19:53 2016 +0100 >>>>>> >>>>>> cpu/hotplug: Remove obsolete cpu hotplug register/unregister >>>>>> functions >>>>>> >>>>>> hotcpu_notifier(), cpu_notifier(), __hotcpu_notifier(), >>>>>> __cpu_notifier(), >>>>>> register_hotcpu_notifier(), register_cpu_notifier(), >>>>>> __register_hotcpu_notifier(), __register_cpu_notifier(), >>>>>> unregister_hotcpu_notifier(), unregister_cpu_notifier(), >>>>>> __unregister_hotcpu_notifier(), __unregister_cpu_notifier() >>>>>> >>>>>> >>>>>> Signed-off-by: Lei Yang >>>>>> --- >>>>>> tools/testing/selftests/cpu-hotplug/config | 1 - >>>>>> 1 file changed, 1 deletion(-) >>>>>> >>>>>> diff --git a/tools/testing/selftests/cpu-hotplug/config >>>>>> b/tools/testing/selftests/cpu-hotplug/config >>>>>> index e6ab090..d4aca2a 100644 >>>>>> --- a/tools/testing/selftests/cpu-hotplug/config >>>>>> +++ b/tools/testing/selftests/cpu-hotplug/config >>>>>> @@ -1,2 +1 @@ >>>>>> CONFIG_NOTIFIER_ERROR_INJECTION=y >>>>>> -CONFIG_CPU_NOTIFIER_ERROR_INJECT=m >>>>>> >>>>> Yes. It is removed from the kernel. However, selftests from the latest >>>>> release do get run routinely on older stable releases. Dropping the >>>>> config will impact coverage on older releases. >>>>> >>>>> Thomas/Greg, >>>>> >>>>> Any ideas on what we should do about this. On one hand it is a good idea >>>>> to remove it, however my concern is coverage on older releases. >>>> Can you check the kernel version on which you are running and do it >>>> runtime >>>> conditionally? >>>> >>> I have been avoiding adding kernel version checks to tests. Maybe this is >>> one exception since the functionality is obsoleted. >> >> >> I think the baseline is that we only assure kselftest works on the release >> it belongs to, for example, removing this config for the >> version above 4.10, keep it in old release. but looks it doesn't work like >> this way. >> >> I think We can't assure latest kselftest works still well on a very older >> releases >> yes, for some features it's common for each release. but we have some >> features that are only available in newer >> release. even for the common features, it's difficult to make sure it >> still works well for each >> release. maintenance is a big effort if we use something like version check. >> you never know what changes will make >> for general feature in the future release although it's common right now. > As Greg and several others have reiterated - the tests should be able > to check for presence of a feature, run it if it's applicable, and > skip if it's not. It really isn't about kernel version check, but > writing code and test in such a way that tests can 'degrade > gracefully', rather than fail. There are several good examples for the > same. > > The idea of running newer tests is to gain coverage on older kernels > for features still present in them, but tests weren't available at the > time of the kernel tagging. so we actually don't have version control for kselftest? anytime, we use the latest one I thought we recommended use the one in 4.12 if we want to test 4.12 kernel, not to use the one in newer version > Hope this helps clear the doubt? I'm wondering how do you determine this patch apply to which release. I don't understand "Dropping the config will impact coverage on older releases" , we can just don't apply it to the release older than 4.10. then the coverage doesn't drop. Lei >> Lei >> >> >>> In any case, just removing the config isn't the complete solution. I will >>> have to think about this some. >>> >>> thanks, >>> -- Shuah >>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-kselftest" >>> in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > Best, > Sumit. > -- > To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html From 1583015693891875710@xxx Fri Nov 03 03:56:49 +0000 2017 X-GM-THRID: 1581601542568567111 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread