Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3698120ybi; Tue, 18 Jun 2019 05:14:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxS9iZMplBV3u+JtBET/P7BL7/9t5ZzNBKOS5MoYgXAT1i1UW4YHA4ImLA0g43HSKcEfZ2a X-Received: by 2002:a63:f349:: with SMTP id t9mr2340114pgj.296.1560860084463; Tue, 18 Jun 2019 05:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560860084; cv=none; d=google.com; s=arc-20160816; b=ySmI8o+L2MH69G5Y1mD6mo7b0/3YCXEfCDf7gJ78ORtl/bqJV3hN4iPp1X06dtYuxi Br+1Wm3dDswVTLlktwrD28ibBeVn905uapdJ7YO3aiA0dhoGgvMu1kYNKds7cCs3TSQs 5S1juDYXQLv/Bwpvtl6v3669ryKggDsFVP7hQtjkY/U8JzFtrWDVHKre2wnKhlSBO2Qr wEeXkeOl6aYF0+/1clLwFMAEpFpd5DfiK2KNihF5E6nv2SZlMrJgkhSh2GMIpuW10l/Q wK0/sgNQmsmJ0PWnbFhriun4yNxWImN+mO3Ky+r/hO+rtwoyLGbhpblj69clupRgzpzj Gt+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HPlPJ4uGAfuFI4JxO/9dnycfR2aDEbR0VS4Uhr7HO0w=; b=wK7IkGUpCYmhO+Hx5A5LjDNM9VGHLRljVL0SfUvstXf8dPnoaf1gEy5oXf0oEBh5Mw ITZDX9feTJq0xIl/F6sD3Id0wz+6PkN5UeBcx5zkOkizjz2Kcqg3m8vCDRtXoQjZMpkK 8zEvNqnS+Tpa4V1asDdDGjSyCHg8rDsrwoLvKEIHXCvQDBq3cF2cAAW90ysKrIwRovla A9ggbyrB3fqOfTeLQeLBdSdi10qAlG0Z2V6vI8ex8jwUZKc4ZYIJKDb7cL1QVIwA9aCj 1YjL6W4o1mrt06JT7STwidbKXbTepOZhnIcGhkQXLdQci6zLNMzGVObE8i/Jq3Jnm6Xe 8Nxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=G0fwpmGa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si7955595plp.66.2019.06.18.05.14.28; Tue, 18 Jun 2019 05:14:44 -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; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=G0fwpmGa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728525AbfFRMNC (ORCPT + 99 others); Tue, 18 Jun 2019 08:13:02 -0400 Received: from mail.intenta.de ([178.249.25.132]:32330 "EHLO mail.intenta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfFRMNC (ORCPT ); Tue, 18 Jun 2019 08:13:02 -0400 X-Greylist: delayed 336 seconds by postgrey-1.27 at vger.kernel.org; Tue, 18 Jun 2019 08:13:01 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=intenta.de; s=dkim1; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:CC:To:From:Date; bh=HPlPJ4uGAfuFI4JxO/9dnycfR2aDEbR0VS4Uhr7HO0w=; b=G0fwpmGa+PGXLtujI3SLrLjxixit8AZtbiSbq1UgPIh2R6FWkSN2zlzZGO6aBGepfwrEeY4MceyuFugtojP+hRQdLiC09ka+bACkIODAJ5Fnt+vMy6i6jKy/s0LLRcIUAiATXroX+ykuQdAIy48Fe4duEiyPC1rzRBHrx91X/NdFglqmPtchtR7IwGRePpTpgI0cVvs89ay+azAepZBuCPjClzZYKfQvwkzMJ0TipCtYBGsSZzzhdsDisY1Q/oOLGbjoM2MDwwgk0LrdH5m3JVXN5senlC9rTagZMZEi9HoSOo05JmYzZoMho7B/w8YQHCY33qizRgGiJaQbtwSfqA==; X-CTCH-RefID: str=0001.0A0C020C.5D08D3F8.00C0,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Date: Tue, 18 Jun 2019 14:07:21 +0200 From: Helmut Grohne To: Daniel Lezcano CC: , , David Abdurachmanov , Palmer Dabbelt , "Albert Ou" , "open list:RISC-V ARCHITECTURE" Subject: Re: [PATCH 02/15] clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804 Message-ID: <20190618120719.a4kgyiuljm5uivfq@laureti-dev> References: <7e786ba3-a664-8fd9-dd17-6a5be996a712@linaro.org> <20190509111048.11151-1-daniel.lezcano@linaro.org> <20190509111048.11151-2-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190509111048.11151-2-daniel.lezcano@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) X-ClientProxiedBy: ICSMA002.intenta.de (10.10.16.48) To ICSMA002.intenta.de (10.10.16.48) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 09, 2019 at 01:10:35PM +0200, Daniel Lezcano wrote: > From: David Abdurachmanov > > This is only used on arm and arm64 platforms. Add COMPILE_TEST option. This patch breaks selecting CONFIG_ARM_TIMER_SP804 here. I don't quite understand why, but commit dfc82faad72520769ca146f857e65c23632eed5a is where bisection stops. When I try make allnoconfig with a KCONFIG_ALLCONFIG that explicitly enables this option, it remains disabled. When I try make menuconfig, the clocksource menu is empty. If I apply the patch below, the option is selectable in menuconfig and with KCONFIG_ALLCONFIG again. It could be used as an alternative implementation, but I don't have a good rationale for why the previous approach breaks. My reading of the kconfig documentation indicates that the "if condition" should only influence the default value, but it seems like it entirely disables the option here. I'm left wondering why. Can we revert the patch until this is sorted out? Helmut --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -388,7 +388,8 @@ config ARM_GLOBAL_TIMER This options enables support for the ARM global timer unit config ARM_TIMER_SP804 - bool "Support for Dual Timer SP804 module" if COMPILE_TEST + bool "Support for Dual Timer SP804 module" + depends on ARM || ARM64 || COMPILE_TEST depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP select CLKSRC_MMIO select TIMER_OF if OF