Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1711033pxb; Mon, 22 Feb 2021 09:01:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJznpq3yHXFekJ7uZPm5nG2uq7m5ezdi0EnO0jcJg2fxCs52q/IVkdNfd5mt4eICZVGifJYn X-Received: by 2002:aa7:d1c2:: with SMTP id g2mr14997129edp.46.1614013273055; Mon, 22 Feb 2021 09:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614013273; cv=none; d=google.com; s=arc-20160816; b=Fam9v3q/+VEuZNDySXTHCeCrgnXHdr7n+hDR9sdvNT/pKxsG+SDPj/1QwrQjcPS3Qo QfmXd4v1BmAKXev4FjVjIU/i8Lyvz8awl5Mf02/BvJQKB9w20CmrdlR6IjjbXqSVgikw 1xOWi03y1eHGQ33nITLuu9NxJg01FOlBvfr1OLhV/B3bPNCeO7ljACr1ROyjosWvmVAW lE9PTNdEbGLx0Yf/bkmf/wpCWe3DWvAWZMJk9Ka25rb9IWnhFQBidEXaPi6VFY5dtZxl 3sxxXVe7qhI4EgMeYxqGTMZN5Dg34jRyE2c1YDhd3jH7wmdrLioz+t9knyi9WpkPCsNZ 0h8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Xontruqu8j+EPMvm5EjNyBu/NSdc8+024n4YCJagARM=; b=oWHySYxS9Ibkt6Ne3zKoyd6hBypkZP18It1DKG1TAN53tIkMyxwtgfO+M5UzCizyOy egDLFyeYeD0lmMkFBiMdeRo1vYyVZhZ4CfYVpm8ocT6P+SjDNx1SpVZpTOwD8RAX0Lrx jQcWg4sJ/etV0hJVi9ON6zRsXjFPlbW/InplE+rP1unwN/ZHRiry9EYP+ArneO5Gj2zI FEqL1icA3kyWuVsCO3peYenaoSc/lk+fmVUbvQm8dI30fb9/io23Oy0ZXKgJfaeIsT8K 3l17Dcgp4AcH+murK3YPK9EwC7gxI52vVXZvyfqVzV7tMHcFajgwW8aPPIdQBfAjeI5n 2oaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=a8MmetQY; 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 e20si11966169eje.569.2021.02.22.09.00.48; Mon, 22 Feb 2021 09:01:13 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=a8MmetQY; 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 S231411AbhBVQ5M (ORCPT + 99 others); Mon, 22 Feb 2021 11:57:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbhBVQzU (ORCPT ); Mon, 22 Feb 2021 11:55:20 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 434ECC061797; Mon, 22 Feb 2021 08:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=Xontruqu8j+EPMvm5EjNyBu/NSdc8+024n4YCJagARM=; b=a8MmetQYLpF4NLef/YICcdNTy/ afMUJaPrVrNTnnoSGRe1hihGD/C/EBf378uxVce3/7GYgw40czleiTYg3EUO22CwlgeP4UDUDThC+ ageS9Hlgu9IEahx7WnZ3ZJmBJH8F5ZzrDiJieesfNObAIZ223M2A6j2lFhQ7y1gcSA9V/NOZa9/xZ WYsFEy4tajKdgB10/CI3B1vENmzb8bEyoXaJLMprP5ifXGF9KckTdQOgbCKvjeKejOuHG4qoPC3E4 kTnWvwIwnnipQisKMDkja7wwkrSHd/UqKb65KrH7DpgvLIP4cIpMtednuQjHuSYFhxrqrFPdil99J vBUMU+VA==; Received: from [2601:1c0:6280:3f0::d05b] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEET5-0006AE-EU; Mon, 22 Feb 2021 16:53:55 +0000 Subject: Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO To: Jason Gunthorpe Cc: Leon Romanovsky , Arnd Bergmann , Zhu Yanjun , Julian Braha , Doug Ledford , RDMA mailing list , LKML References: <21525878.NYvzQUHefP@ubuntu-mate-laptop> <20210222155845.GI2643399@ziepe.ca> <20210222164645.GK2643399@ziepe.ca> From: Randy Dunlap Message-ID: <850d8bf2-c5a0-9fee-f95f-2dfc7d22a528@infradead.org> Date: Mon, 22 Feb 2021 08:53:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210222164645.GK2643399@ziepe.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/22/21 8:46 AM, Jason Gunthorpe wrote: > On Mon, Feb 22, 2021 at 08:26:10AM -0800, Randy Dunlap wrote: >> On 2/22/21 7:58 AM, Jason Gunthorpe wrote: >>> On Mon, Feb 22, 2021 at 03:00:03PM +0200, Leon Romanovsky wrote: >>>> On Mon, Feb 22, 2021 at 10:39:20AM +0800, Zhu Yanjun wrote: >>>>> On Sun, Feb 21, 2021 at 2:49 PM Leon Romanovsky wrote: >>>>>> >>>>>> On Fri, Feb 19, 2021 at 06:32:26PM -0500, Julian Braha wrote: >>>>>>> commit 6e61907779ba99af785f5b2397a84077c289888a >>>>>>> Author: Julian Braha >>>>>>> Date: Fri Feb 19 18:20:57 2021 -0500 >>>>>>> >>>>>>> drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO >>>>>>> >>>>>>> When RDMA_RXE is enabled and CRYPTO is disabled, >>>>>>> Kbuild gives the following warning: >>>>>>> >>>>>>> WARNING: unmet direct dependencies detected for CRYPTO_CRC32 >>>>>>> Depends on [n]: CRYPTO [=n] >>>>>>> Selected by [y]: >>>>>>> - RDMA_RXE [=y] && (INFINIBAND_USER_ACCESS [=y] || !INFINIBAND_USER_ACCESS [=y]) && INET [=y] && PCI [=y] && INFINIBAND [=y] && INFINIBAND_VIRT_DMA [=y] >>>>>>> >>>>>>> This is because RDMA_RXE selects CRYPTO_CRC32, >>>>>>> without depending on or selecting CRYPTO, despite that config option >>>>>>> being subordinate to CRYPTO. >>>>>>> >>>>>>> Signed-off-by: Julian Braha >>>>>> >>>>>> Please use git sent-email to send patches and please fix crypto Kconfig >>>>>> to enable CRYPTO if CRYPTO_* selected. >>>>>> >>>>>> It is a little bit awkward to request all users of CRYPTO_* to request >>>>>> select CRYPTO too. >>>>> >>>>> The same issue and similar patch is in this link: >>>>> >>>>> https://patchwork.kernel.org/project/linux-rdma/patch/20200915101559.33292-1-fazilyildiran@gmail.com/#23615747 >>>> >>>> So what prevents us from fixing CRYPTO Kconfig? >>> >>> Yes, I would like to see someone deal with this properly, either every >>> place doing select CRYPTO_XX needs fixing or something needs to be >>> done in the crypto layer. >>> >>> I have no idea about kconfig to give advice, I've added Arnd since he >>> always seems to know :) >> >> I will Ack the original patch in this thread. > > The one from Julian? Yes. > >> How many Mellanox drivers are you concerned about? > > ?? This is about rxe OK. >> You don't have to fix any other drivers that have a similar issue. > > Why shouldn't they be fixed too? Of course, but it's not just on you and/or Leon to fix them. > There is nearly 1000 places that use a 'select CRYPTO_*' in the > kernel. > > I see only 60 'select CRYPTO' statements. Correct. :( We (community) tend to fix bug reports, not do global audits to see what needs to be fixed (with a few exceptions). I'll gladly wait to see what Arnd says. -- ~Randy