Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5044494pxj; Wed, 26 May 2021 01:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+aOMB00jb1c16CC5yPbrsaEXCvzkJ/C3kvsTJ16hSRsCdaUrwBarmQlLwzZ0lbdOWEdRr X-Received: by 2002:a17:906:77dc:: with SMTP id m28mr32100287ejn.23.1622016687766; Wed, 26 May 2021 01:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622016687; cv=none; d=google.com; s=arc-20160816; b=GvTZAu04KejuJQFmH6AChwO7CLRbkG4zD2/pJKQu1xoXB1HK4/uBctElm3ZZTMOy/4 Y2jJRdFN/e8Xu4CEhcGVKpxhWAvByegZP20UX1GbTAC6xvutqkC9uTpMDF/KQ+U4+QdH 0V76x6P7nvcR9YF7mD6SEXpJUj7x2U76UlgKuZhKTYzln9xjQzCvxmAcsBnJDvafnnHO vFj5dUuNjRuqP8/ObtyoQQUEo2RhESZwWOzwdTvTt7CdFoa1Grp0QuJJj3uzs4NYBiGc T601qMmIZWx9h3YueQNvrYChMvdQRMIFmxpjMBKA+c6Yb1l3UIoIxtklF1Ct82v4l8pk cgbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=Wxh875y2r1exMg6UcfTg37eHCtQZlAx6PTQ7k1doJhU=; b=oadrRbKkNUETKvmL0X4c3bIdMTjaBiMC6AHD1/WfnTpcA4ShEYxzS4diHr4vuaKFrq INwx593Hu8sMNBeNOBkYh+ViJvEaPD/UKvQVGYwFlf7rJcboc28jh6uvu/F0n2I3fhUU 8LXxGE8ZEUFRt2cVN80rZk5u3WaQRtR/ChTwJ6bH4mHEjJvMH5O4TQW78DbHj2JrlmkY WLOOuFml2cU/yjeRVaVDJWo4pYMv2LqDOyxlQpk/PtJ+8jndKj2BTCMYBqcHLkrV+8Kn SF6ZTc4CK9DHPPOvJ+7v49kiYgCdgI711YQyGZUkdhy7lNcvD9pvYEqFIDQbp297VqwI uR0g== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si19015962edy.298.2021.05.26.01.11.01; Wed, 26 May 2021 01:11:27 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232849AbhEZIDh (ORCPT + 99 others); Wed, 26 May 2021 04:03:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:38396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbhEZIDa (ORCPT ); Wed, 26 May 2021 04:03:30 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85A97613D3; Wed, 26 May 2021 08:01:43 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lloU1-003gEi-El; Wed, 26 May 2021 09:01:41 +0100 Date: Wed, 26 May 2021 09:01:40 +0100 Message-ID: <8735u9x6sb.wl-maz@kernel.org> From: Marc Zyngier To: Geert Uytterhoeven Cc: jianyong.wu@arm.com, netdev , Yangbo Lu , John Stultz , Thomas Gleixner , Paolo Bonzini , seanjc@google.com, Richard Cochran , Mark Rutland , Will Deacon , Suzuki K Poulose , Andre Przywara , Steven Price , Lorenzo Pieralisi , Sudeep Holla , Linux Kernel Mailing List , Linux ARM , kvmarm@lists.cs.columbia.edu, KVM list , Steve Capper , justin.he@arm.com, Android Kernel Team Subject: Re: [PATCH v19 7/7] ptp: arm/arm64: Enable ptp_kvm for arm/arm64 In-Reply-To: References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-8-maz@kernel.org> <6c522f8116f54fa6f23a2d217d966c5a@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: geert@linux-m68k.org, jianyong.wu@arm.com, netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, seanjc@google.com, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, Andre.Przywara@arm.com, steven.price@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, justin.he@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Wed, 26 May 2021 08:52:42 +0100, Geert Uytterhoeven wrote: > > Hi Marc, > > On Tue, May 11, 2021 at 11:13 AM Marc Zyngier wrote: > > On 2021-05-11 10:07, Geert Uytterhoeven wrote: > > > On Tue, Mar 30, 2021 at 4:56 PM Marc Zyngier wrote: > > >> From: Jianyong Wu > > > > > >> --- a/drivers/ptp/Kconfig > > >> +++ b/drivers/ptp/Kconfig > > >> @@ -108,7 +108,7 @@ config PTP_1588_CLOCK_PCH > > >> config PTP_1588_CLOCK_KVM > > >> tristate "KVM virtual PTP clock" > > >> depends on PTP_1588_CLOCK > > >> - depends on KVM_GUEST && X86 > > >> + depends on (KVM_GUEST && X86) || (HAVE_ARM_SMCCC_DISCOVERY && > > >> ARM_ARCH_TIMER) > > > > > > Why does this not depend on KVM_GUEST on ARM? > > > I.e. shouldn't the dependency be: > > > > > > KVM_GUEST && (X86 || (HAVE_ARM_SMCCC_DISCOVERY && ARM_ARCH_TIMER)) > > > > > > ? > > > > arm/arm64 do not select KVM_GUEST. Any kernel can be used for a guest, > > and KVM/arm64 doesn't know about this configuration symbol. > > OK. > > Does PTP_1588_CLOCK_KVM need to default to yes? > Perhaps only on X86, to maintain the status quo? I think I don't really understand the problem you are trying to solve. Is it that 'make oldconfig' now asks you about this new driver? Why is that an issue? Thanks, M. -- Without deviation from the norm, progress is not possible.