Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1702637pxb; Mon, 22 Feb 2021 08:48:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4hORBNsaYsIc1aWszy4NWCAahoH35GaQpblZ+nJoEpZXjifUslKCuC4AN0cq5h+iGEHuq X-Received: by 2002:a17:907:2d09:: with SMTP id gs9mr20966425ejc.363.1614012516857; Mon, 22 Feb 2021 08:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614012516; cv=none; d=google.com; s=arc-20160816; b=yKZlU9GeuTJvF7zG8zL4vU5lxfhgijCToglhaJAUgwcV0ju9OkuL9Y5WWrWOXoJhUr ZgXeUoGyY3gsz7PooqvT3YDBRlKA1dAkbSdvmTjwINsWUWjFlPi5vj3AhMTQv7kGual+ GRee+4NqqBNQJcAJoGS5IWXweVLLNqqm0i7q5ZrhrjZMUAzZv9DcwxI2KrYH29gFabTp Eb7QEYi7psAWzIHjnUQ1cGJUVUWO1xw/bwD7uo8EIJO4kl2TttWLS6QA3IinbrMuEomm EDAJ61pFrNYJEoQ2l6hCevypbzKokZtr8lGCU+BJQhTLOVgh6Y4Er95P/dV7YIRNK8b0 Mv7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oux3bIya7f6glqB3l5NhRGO4M7zOOvy007MEe2S9WwU=; b=RYevo9lv7sykie1dKyjgWJyNu+U2lanERIYccP+QaFbUTF2apkV3Ie/HN+K2Lamq0C BhDAFUI9uBXTUPXlIbbOfhRJu1tGjsAMIGAe/4/GgR7DKAZqzCPR7omAXc5P8wmDl0AG xU4wAbsKoLV09bWeBxE3VFmyy39KmyKwaf9ubjvya6v0JzBtBe2U6Yw6oJzqWfzYDl/2 6PMp7iI+RjA2lxXgYyY48jq4KnHRnt/oEzq+4QlOXUDAJi9064v9abnsK6BASfR9ICff ullZ16Z3kdmTY8QS058TXuMdbCgzmXyq7VF3m5A9dOwSdz9ql3SHIkWb3hOHRr7ZrjHy uOdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ce7We5UW; 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 bx24si6396858edb.227.2021.02.22.08.48.14; Mon, 22 Feb 2021 08:48:36 -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=@ziepe.ca header.s=google header.b=Ce7We5UW; 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 S230518AbhBVQrg (ORCPT + 99 others); Mon, 22 Feb 2021 11:47:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbhBVQr2 (ORCPT ); Mon, 22 Feb 2021 11:47:28 -0500 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17BBC061574 for ; Mon, 22 Feb 2021 08:46:47 -0800 (PST) Received: by mail-qk1-x72d.google.com with SMTP id q85so13187277qke.8 for ; Mon, 22 Feb 2021 08:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oux3bIya7f6glqB3l5NhRGO4M7zOOvy007MEe2S9WwU=; b=Ce7We5UWmuoejuiaCLifW9WGYfLarSu1j6AtQQw2j3Nq9vLBo/gSZfECnq/eeffvCo 0Gis+MD6V2xMvoVbhyiMU35RbDWVIP6aLdezgTEnNuSukvTg22rokLNNlBjdkZN0bpBl ipNGjAxdKWDbGJGRQ7tIhYxfVZNYRlS9ayUNoi5w36OtnNUlcXbvYCqRHkXc3gDIvLyp yp8DREzNaVmU/1FhaAXHby4wYoQthca70BwTYLvNFNhy/13nEd+zauoYEH4Qrw4pN97B 0beY2b4u0Q7fM+NQG14uCQug0/kKXrEJ8/boaU9lQNkgBDdd81fKrGjlrb8EC8AME6bL 3UiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oux3bIya7f6glqB3l5NhRGO4M7zOOvy007MEe2S9WwU=; b=ar5EveZD0jfRRbESDYFguy+wdH3frremja670+tOjrMwDPWofEJiO2Z1tapZyWtsFJ raXpoyUvaeBIBZZZarHCRmthtqTv8QeIzUlIDPcSPei2JBPbfM9D1gNSSvaAiX/+60lm KnLaCndcIKwBcWGNIHIfodph+K4WShDlYBuTVs2wELXloiXbsgZ7nrE9iy2A1flH3q0U 97g+FD8MU1QeBZgDvqGI7tSeAVJGrLKkrXuQocLnbQT2unR1P7jZQCExZqJRjy9QXaKV c4yt3knEAgrrS13lCgJpYpBY77H+yEGZQqlKOa0+98JxZgB7RKOPiFHRctINUmXWBRMT eTqA== X-Gm-Message-State: AOAM531UA4rSmJpIV+BlqeJBX1C9bcUtzSMiJmCVOVcnXo5MunnZDwcg Un2qqLS4iCG5mnKafYHa5GsNpA== X-Received: by 2002:a37:9c89:: with SMTP id f131mr22111090qke.112.1614012406931; Mon, 22 Feb 2021 08:46:46 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id y20sm959071qtw.32.2021.02.22.08.46.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 08:46:46 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lEEM9-00ERw6-RV; Mon, 22 Feb 2021 12:46:45 -0400 Date: Mon, 22 Feb 2021 12:46:45 -0400 From: Jason Gunthorpe To: Randy Dunlap Cc: Leon Romanovsky , Arnd Bergmann , Zhu Yanjun , Julian Braha , Doug Ledford , RDMA mailing list , LKML Subject: Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO Message-ID: <20210222164645.GK2643399@ziepe.ca> References: <21525878.NYvzQUHefP@ubuntu-mate-laptop> <20210222155845.GI2643399@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > How many Mellanox drivers are you concerned about? ?? This is about rxe > You don't have to fix any other drivers that have a similar issue. Why shouldn't they be fixed too? There is nearly 1000 places that use a 'select CRYPTO_*' in the kernel. I see only 60 'select CRYPTO' statements. Jason