Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5050826pxj; Wed, 26 May 2021 01:22:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLoOcQg3y+UMTRriNsybgixbJRsqAm8X53Nela/EMHF17shNpr7dyJz0QVcPO7PyK8COru X-Received: by 2002:a5e:8c11:: with SMTP id n17mr24646412ioj.53.1622017327420; Wed, 26 May 2021 01:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622017327; cv=none; d=google.com; s=arc-20160816; b=TI+uFfEOnOIBy7hFyMe5OC1WxsMrQOkmtt9wsKNNSgX9wk3J91s76uR7P215jlZHnU qU5OinnfRsX5Qs2MeFlXrsmHDK4W+m2eVJhZg1t1fmxhfQkv0dfHk45b3WVmvumYojPC 7Q/szJRq+yErbvHNLsmAaNCtEbC78DoGOwhzf3ElRGI1YzsEqPq8174DgLyNP/CevOYl 7uxjiKa5hU26ARV9aQDQHIEAkaJ75hnM201SxQDjYGJjPTmJo+Q/Ju6bGasVhk6Pb7hl wI0pWAjLeMH7wlvamZTH1f7ym7CtIXqzD3ltpALWyoADoL/vkYyDwLq+ilR1iM1Q+OhS w3oA== 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; bh=cwJrjJPn4XdJtdaNHc/uwJ41Erytueup9SA7gWbLwLc=; b=mgePhsOaFWPx/KKqsi0W8t9Usen004+bw17whTKljOjGJkHi4MWb23xDkAVaf2levk gFsB0D1dOMQSBcTyHxOc7xLJlNE3UP4UUx7WCk8p0EpOIUVnVD8NHS4jVMVjdR5nr4p2 2g29YXAXLDjf+TFiTgLqpaOb063Bx+vQnbEg8IDCU5M8GdsELA4vzYjW6jGLHRLeM0WT +x4JfxsTIbmCUqK8xJ4vJpkVS2rt87aKu0hJhemElblvGARt0I0+80UPzy2FkGcr06e2 6Sbd98UJiTJvqTZsP+3t+HSGFevC2QQuWzL67zM8xs3cc7+FdIhlieDnE3s9pC53HyCl xxdQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si21704613jak.40.2021.05.26.01.21.52; Wed, 26 May 2021 01:22:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232322AbhEZIUM (ORCPT + 99 others); Wed, 26 May 2021 04:20:12 -0400 Received: from mail-vs1-f53.google.com ([209.85.217.53]:44981 "EHLO mail-vs1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231871AbhEZIUL (ORCPT ); Wed, 26 May 2021 04:20:11 -0400 Received: by mail-vs1-f53.google.com with SMTP id i29so269451vsr.11; Wed, 26 May 2021 01:18:39 -0700 (PDT) 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=cwJrjJPn4XdJtdaNHc/uwJ41Erytueup9SA7gWbLwLc=; b=TknXp62Tjdb47E3sod/c1NOiYYHO++PTLTTWUJX+idsZnBM6TlK+rPjtrMshFThGOM abPpAvRNdbOyIaX2o+bUmETZIhzLzePKfK9DHMgihVnqHE/Bb5hJUCmkde6ssKEX1pBA Cj8ex/3+TI9m5p7nUHTN6calnOWMoJJfMTdIIyLjwKKsohApGRgi8KFk3t75/A6wzLZ3 tIa8KT5xjnC8XZrAjX9B1EHC6Gy5qJMvpz/hD5ak9zLqiRG6QC/d2KSrA04/ipMh4VPa Qbcbw2bmk+1cgUAQKE+rzWa0tFGoeMNF5qJK8lQwwgUetVMvZYa/3/EnR/S1+xFaht26 tZRw== X-Gm-Message-State: AOAM5327cB3tMOp6D02b/MAH/9MGXjv6b2095JOT+5UBgxfpuesmEYZX OjidG/3HDJqhAh+HBX/96JqEtI1gNaHpR4HjQvI= X-Received: by 2002:a67:3c2:: with SMTP id 185mr30138437vsd.42.1622017119229; Wed, 26 May 2021 01:18:39 -0700 (PDT) MIME-Version: 1.0 References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-8-maz@kernel.org> <6c522f8116f54fa6f23a2d217d966c5a@kernel.org> <8735u9x6sb.wl-maz@kernel.org> In-Reply-To: <8735u9x6sb.wl-maz@kernel.org> From: Geert Uytterhoeven Date: Wed, 26 May 2021 10:18:27 +0200 Message-ID: Subject: Re: [PATCH v19 7/7] ptp: arm/arm64: Enable ptp_kvm for arm/arm64 To: Marc Zyngier 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On Wed, May 26, 2021 at 10:01 AM Marc Zyngier wrote: > On Wed, 26 May 2021 08:52:42 +0100, > Geert Uytterhoeven wrote: > > 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? My first "problem" was that it asked about this new driver on arm/arm64, while I assumed there were some missing dependencies (configuring a kernel should not ask useless questions). That turned out to be a wrong assumption, so there is no such problem here. The second problem is "default y": code that is not critical should not be enabled by default. Hence my last question. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds