Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp995236ybz; Thu, 16 Apr 2020 00:23:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJEohttCiw4KLGUTSxUAZ3gZysFeQhos5YG/KH6UR6DDg2T9kuAsMc9gKWdVqm4v5pLReC7 X-Received: by 2002:aa7:c401:: with SMTP id j1mr845367edq.31.1587021782826; Thu, 16 Apr 2020 00:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587021782; cv=none; d=google.com; s=arc-20160816; b=LrYVlPi/nriNvTPZUf/nv5o2jFntfoaXCLGQXg0M2NNvhQaZ3n+OyzYqPN9oXl3Tok h9YpeIfp0JlKbUGZcw1T43ygwbcNnop2rRcqf2CRlGO6pQP8YrG0bDbnY0NXa1EQBYI+ CCRIiEmbiL0HsiUr3r5ZLrcQnUXMjh6ctMqaVEpsQVM6ihYAhbXyWw+XnGOutVrj2/qB yhJyA8jWCtUrnWZuBKQeXqMY2cSi2BImo/muSoYcsuNvyefmKLZLBvl/R3OuwrpDXktH LLnnNRPae/BosPiHW1s+RksoXx7XDXFfXKgGh8w11oZEOMPYpaU0XSi59ARAZEOh0hOj WMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=BbWKHpQEM2uhQfWJyDoQPXgQk/La6x+gtoyaEsFY+dA=; b=Dy2JmQyi2fNHyVYWeSXqA751Wiwk90Q/KXBDv+p5ngQcdesGBpIxsIsXRUovK7/ZzD CL+oFnV3wicEaeNm4poE2i5V174/hmQppeQzdraojCr+41G9EnQHg7Fz0KDETmGWRTKX ggHAt/RdJpIIGB0GmYX0alqgso+L0edtaSZ++ZBg6InJ/cRn1C9sPJOUQ2qqw4hsn4aR ZZMBUwM6X4YcyyPQ8MB5iS2mUs5k4py9XLfym8lkPQK8jGk4jBGiqoWEXPZlDKuBoa+0 40Yb8pzhe+WwnL8Smno7UrIRF4kdWqWKoNpRGmr90NdoaO6qNrTrV0dEkrvDTS80vp5B WpRg== 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 d9si10227173edr.94.2020.04.16.00.22.38; Thu, 16 Apr 2020 00:23:02 -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 S2439148AbgDPHVY (ORCPT + 99 others); Thu, 16 Apr 2020 03:21:24 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:58479 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438244AbgDPHVC (ORCPT ); Thu, 16 Apr 2020 03:21:02 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M8hEd-1jKs5j3Y6j-004k5c; Thu, 16 Apr 2020 09:20:59 +0200 Received: by mail-qt1-f177.google.com with SMTP id 71so15585125qtc.12; Thu, 16 Apr 2020 00:20:58 -0700 (PDT) X-Gm-Message-State: AGi0PuaMlE+7b4MtIkQ7NJeo34K0IZa8nyA8CIjvWWPMxhHiar5nIxSh atSlhxjwEf1gKoxy36ck3qzr678uz11jWD+S9eI= X-Received: by 2002:ac8:6757:: with SMTP id n23mr12043843qtp.304.1587021657410; Thu, 16 Apr 2020 00:20:57 -0700 (PDT) MIME-Version: 1.0 References: <20200408202711.1198966-1-arnd@arndb.de> <20200408224224.GD11886@ziepe.ca> <87k12pgifv.fsf@intel.com> <7d9410a4b7d0ef975f7cbd8f0b6762df114df539.camel@mellanox.com> <20200410171320.GN11886@ziepe.ca> <16441479b793077cdef9658f35773739038c39dc.camel@mellanox.com> <20200414132900.GD5100@ziepe.ca> <20200414152312.GF5100@ziepe.ca> <834c7606743424c64951dd2193ca15e29799bf18.camel@mellanox.com> In-Reply-To: <834c7606743424c64951dd2193ca15e29799bf18.camel@mellanox.com> From: Arnd Bergmann Date: Thu, 16 Apr 2020 09:20:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 0/6] Regressions for "imply" behavior change To: Saeed Mahameed Cc: "narmstrong@baylibre.com" , "masahiroy@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "leon@kernel.org" , "davem@davemloft.net" , "linux-renesas-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "nico@fluxnic.net" , "linux-rdma@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "kieran.bingham+renesas@ideasonboard.com" , "jani.nikula@linux.intel.com" , "a.hajda@samsung.com" , "jonas@kwiboo.se" , "netdev@vger.kernel.org" , "airlied@linux.ie" , "jgg@ziepe.ca" , "jernej.skrabec@siol.net" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:+TnTyNKhJDK+dsEpJffyVZIWG0bgsP3O9RWs5SO393nW1uj6vTQ 6B4ki3fDo1SOTlDXHpTGVfXO7w3tJK4bwvvqhIbv2OQWsPx+mHItzowt6qn4RducloqM6OK 06S7us5VAjq3qF+ileNWh3OigE9u5MoZjFrGUM5iC5/WT3TyZG0j9T5NmFlcnZLnb2zAS1o yVUT+t3yU1oTYmYWmSp3g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7+2vD6+DWY8=:miIyPTnwA9PaTsUep21Rns rOP5j2xIr13UIymyAxvzck+Eh1myIl0NLhPsk4d3qEXR4u8ADclGOlTF5/OSfK+W49ef+wT7F OS+DJKSZ3FiFaR/eerOPEhLAvtCulxZurxT3IFX0LtlRDW3qDqm/WXN0tame1gRG26vNLluqN dt0oiyRbYHeyleFJ3RTbbt9i8WfVZOLBZ4zURWJPYtNJogvHTL1m7StoLm7OQZfZrTz7OvNPc kRZMDEhiF7yPfAKC5dOrf32FiqHmca7NEE9W1W2v7ujKRgL0laRT0XcNsHrZDnzynlpJB2myd gAbN58YOVt0xViEOQmwKQRgB+ZSiHnKukhA1ouESJhLupY8b0C1HzeJanv/0TsYFkYz5qKDjK 9wQUcc1V3QWKvdiPL7GRjHCIVYy0ENWLdtfedeCrscEqm8b9yMsE6uB1TSSoMatM8ro8gbQOa R3wkYlGN4UKXFiyKv99GhoZcc3xjrq1i43OjLxQnQsoLLsQxdpxbM+X+URmwDt8aGLrLemImO epKs6/MoIeqER2kkTGnT/JfJIKFCSUpl4bTtxnHFAsvCrIPteddlO+aoB1JGixp1TVUDdRLe7 0jYQaveS4iKTiV9+gMPZimUdmR7UeieM/47BJ5NYNPNjpwxsLeHXVGyhyadOIdrlntb/r5J4f Hd8LkDBDCsp7wBOvEMWZVrFjjREf4tla96TpgxBhbAH6qB3Y4czDovBX1zPhPysbeZl1fxvKT bKhqBpOePQQgFYgLyVeJX1+zsTlY98RFeOTNijiS4EYZVaoULO9KQgZ8OAmbTf7btNLiL7dFV S22dm0CGnES9R7UnISu1OcdlXYaIoGe/uDGsH74DjNGYNCioXg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 5:25 AM Saeed Mahameed wrote: > > On Tue, 2020-04-14 at 20:47 +0200, Arnd Bergmann wrote: > > On Tue, Apr 14, 2020 at 7:49 PM Saeed Mahameed > > wrote: > > > On Tue, 2020-04-14 at 17:25 +0200, Arnd Bergmann wrote: > > > > On Tue, Apr 14, 2020 at 5:23 PM Jason Gunthorpe > > > > wrote: > > > > Correct. > > > > > > > > > > Great ! > > > > > > Then bottom line we will change mlx5/Kconfig: to > > > > > > depends on VXLAN || !VXLAN > > > > Ok > > > > BTW how about adding a new Kconfig option to hide the details of > ( BAR || !BAR) ? as Jason already explained and suggested, this will > make it easier for the users and developers to understand the actual > meaning behind this tristate weird condition. > > e.g have a new keyword: > reach VXLAN > which will be equivalent to: > depends on VXLAN && !VXLAN I'd love to see that, but I'm not sure what keyword is best. For your suggestion of "reach", that would probably do the job, but I'm not sure if this ends up being more or less confusing than what we have today. > > > This will force MLX5_CORE to m when necessary to make vxlan > > > reachable > > > to mlx5_core. So no need for explicit use of IS_REACHABLE(). > > > in mlx5 there are 4 of these: > > > > > > imply PTP_1588_CLOCK > > > imply VXLAN > > > imply MLXFW > > > imply PCI_HYPERV_INTERFACE > > > > As mentioned earlier, we do need to replace the 'imply > > PTP_1588_CLOCK' > > with the same > > > > depends on PTP_1588_CLOCK || !PTP_1588_CLOCK > > > > So far I have not seen problems for the other two options, so I > > assume they > > are fine for now -- it seems to build just fine without > > PCI_HYPERV_INTERFACE, > > and MLXFW has no other dependencies, meaning that 'imply' is the > > same as 'select' here. Using 'select MLXFW' would make it clearer > > perhaps. > > No, I would like to avoid select and allow building mlx5 without MLXFW, > MLXFW already has a stub protected with IS_REACHABLE(), this is why we > don't have an issue with it. So the 'imply MLXFW' should be dropped then? Arnd