Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2458902ybz; Sun, 19 Apr 2020 01:55:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKQRerCdPv2Q7iVP+GiTvsRHMhuAgpTVNxHvjYVNOxsYee8gdtvLxoJPTvzwJy6bsRBNpvy X-Received: by 2002:a05:6402:2d5:: with SMTP id b21mr9322266edx.291.1587286549433; Sun, 19 Apr 2020 01:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587286549; cv=none; d=google.com; s=arc-20160816; b=BEQOVlUNVEtLwamfEO8hEQ7i4Gkrfnk5oJW8bmyTE0qauNn0R7pUSG0wkZfnIDRXju 3cYYbMtBPkWBNNgrU3C3Qk8GRlKDBN8En68RM0Ykmxwkzt0fE/LWW1tDeEfp4ApgY3vZ RNoPPZzgllB4AoJ1HvKD9bdy4qbS+aCIrmGQ7zOMDHkqEAAsC08mhTYAYGyrVke2Vza2 FS497ec9TlW5GV7FVuqq8hesd62cyTpR1Ye0QfRl7R4Y2FG+Cr3VdcfnEH2f46omtZ17 SZ35IOBsZMqABa7hoyjrLGvmXRMNGXWomR8RWL+hH0iDfsGRCk08EdxxTxAwanJ7go6U al5w== 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:dkim-signature; bh=B7vop3xwaQJ6PIjFyy41WJ6ZY2Cvtqgx45oek7lxwYc=; b=RQ9DExWSYyZLV0iJCA2HmppUss/cWiN+UdIxZp1QF4XVxFx4Bs0/uurGtDYGlgJu0y 5K5NnH0fqtRzKRlM25DmDK2jp22DeCNIU/0HZcQ+/vvEEi+RudjuK9SZ1N0A/QYkt87O qDJIuu0RTGXDYbRYzM9abnyvB5JWpD8JZVaxDqbec9mYriVPayKBvYoO4aJ5TV9Inbhl P3t0y0+ELToqDcXjoQvmglPV2Y1n+x14e7NyRSMAMspidRwvEWMKKIIehVvWQ2Tea8OW kvha+oSlUBDyFst4G39bNAJIsZqh7kywOcJMuTn08kACyA4DPpm3XkJr7DvujHFWVlhV fLEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IAD5rMFU; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 m1si16751600edf.277.2020.04.19.01.55.14; Sun, 19 Apr 2020 01:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=default header.b=IAD5rMFU; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S1725905AbgDSIzM (ORCPT + 99 others); Sun, 19 Apr 2020 04:55:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgDSIzM (ORCPT ); Sun, 19 Apr 2020 04:55:12 -0400 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3C0C214AF; Sun, 19 Apr 2020 08:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587286511; bh=B7vop3xwaQJ6PIjFyy41WJ6ZY2Cvtqgx45oek7lxwYc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IAD5rMFU6M6EG55Jl0GAqkoc1sbbxlbt7uqnKjRgl4VB6FbVyusUt2xjy8crsYFyV YyjXwd79m1ZRSiMDkxIFtfg66929eWiKe6iWafn0MNJW3yBH1lMnFgDEutmux6+Nst zoPf0gBihahJ8Xo4WTjVUNjQscu35xsEx1MDRQUg= Received: by mail-io1-f46.google.com with SMTP id f3so7408612ioj.1; Sun, 19 Apr 2020 01:55:11 -0700 (PDT) X-Gm-Message-State: AGi0PubJW3tMa6nYE9Fbn/DOLAJvWWqf5NiUI9JyWThszyZdfmfOqn/t p7EfcgIBxsvXXHbnqVmpfRoYu057dNl89qz4wrE= X-Received: by 2002:a02:969a:: with SMTP id w26mr10554759jai.71.1587286511272; Sun, 19 Apr 2020 01:55:11 -0700 (PDT) MIME-Version: 1.0 References: <20200418104343.GA5132@amd> In-Reply-To: From: Ard Biesheuvel Date: Sun, 19 Apr 2020 10:55:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Fw: Arm CryptoCell driver -- default Y, even on machines where it is obviously useless To: Gilad Ben-Yossef Cc: Herbert Xu , Hadar Gat , kernel list , Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, 19 Apr 2020 at 08:33, Gilad Ben-Yossef wrote: > > > > -----Original Message----- > > > From: Pavel Machek > > > Sent: Saturday, 18 April 2020 13:44 > > > To: kernel list ; Hadar Gat > > > ; herbert@gondor.apana.org.au > > > Subject: Arm CryptoCell driver -- default Y, even on machines where it is > > > obviously useless > > > > > > Hi! > > > > > > I'm configuring kernel for x86, and I get offered HW_RANDOM_CCTRNG with > > > default=Y, and help text suggesting I should enable it. > > > > > > That's... two wrong suggestions, right? > > > > > > Best regards, > > > Pavel > ... > > ________________________________________ > > From: Hadar Gat > > Sent: Saturday, April 18, 2020 11:31 PM > > To: Pavel Machek; kernel list; herbert@gondor.apana.org.au > > Cc: Ofir Drang; Gilad Ben Yossef; nd > > Subject: RE: Arm CryptoCell driver -- default Y, even on machines where it is obviously useless > > > > Hi Pavel, > > I think you got it right.. > > Indeed, Arm CryptoCell CCTRNG driver couldn't be used and obviously useless if the Arm CryptoCell HW does not exist in the system. > > There's a delicate point here though - CryptoCell is an independent > hardware block, it is not tied to a particular CPU architecture. > There are SoCs with none-Arm architecture CPU using it. > > So I would say whatever the answer is, it should be the same for any > generic embedded style HW block. > > And the help text is not architecture specific anyway, is it not..? > Both the default y and and the help text are indeed incorrect. This should be fixed. We don't enable device drivers by default, and definitely not as as builtins. A conditional default m could be acceptable if the condition is sufficiently narrow. While at it, could we add a depends on CONFIG_OF since this code is definitely unusable on non-DT systems.