From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5EE7456D8; Sun, 28 Jul 2024 17:52:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42E894021D; Sun, 28 Jul 2024 17:52:51 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 9232A40151 for ; Sun, 28 Jul 2024 17:52:49 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1fd66cddd4dso20055825ad.2 for ; Sun, 28 Jul 2024 08:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722181968; x=1722786768; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=660B+CcUouV1Ltdzx63sMRFyoF+OaV841jldGWHQBko=; b=MwKIoz62mGDFHa64E7eoTqj1WRzsNbEUqsT7Iw8IHQXrWtOmYcA8vkyttCejxAxBBq DXxdBc7v9uBGaSQs7wefj5F5H5iTCP6zYjAxhFcOQ9RzsoghnGpq+b/ZIaSrdHSClM3u XOtJFNPvNThEQ4EhliZmw4G8LrYB3x20ricgbwq7OIkgn6wEgwnMMns+BO06sRtdblOI Dr4Cn6hS8H5hcUHeDIEI473Tsj4dOG8wMdobUQFOt5kr63VZH/d3Scz+tAxZQmGyUa0w l9/abDIB6pLbzpHMtL3uiw/i9Be7LqXs0JzNCwNmrqa+KBk1OPDIqIC4A6DannhWlpa3 QLPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722181968; x=1722786768; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=660B+CcUouV1Ltdzx63sMRFyoF+OaV841jldGWHQBko=; b=annfz1ER24eEmFA1jzuFxPmaza++wj8c/WqNqyYGsjLPctmjP+xr8rrdhiCbJDPX9d W0lO7rZSLrm9ZS/E9ws5sDYjFnHmebKhiS28dmsuv0KAvliUdA7/pFYV4mWdKgKZ3+S7 SSYpBxfWwanYjxoZ6AGQriAuxFbayj60k7M7Svca3ub0l4W6qJ6ucrFj9Dq+qfWiy0H0 4LiRwpL+ZjoqrGdwWRigFRLEp2VIBVqEsrs33wBMsfvNH7QHPfZ8alsTHh/kJH1TYUT1 oDm+zoNlx/fsDuZDId4RZ525SMvwpGAQOJkjo5ojgjgqXJREUcZfCjpoh7KXbtGRSfpK LDbg== X-Forwarded-Encrypted: i=1; AJvYcCWLjF91QFQURpN12GXQqDjB1LJVRQtjdbv5f17UBSMf1uInO3sn2yDrucntw67lSmVLV81Jm3/D3cM9Cl8= X-Gm-Message-State: AOJu0YzeaakxawH17waHuk7GWnJ5cgbXBSkirTaCOtGJEaEoc2HjuvQI XQ7dCykyPgVaYfFSeJKs6rX0h4ENcVNN8fyyexLdU7hdbSW6EPui4J26YYJrMEE= X-Google-Smtp-Source: AGHT+IHmIaKU2ciAYKWQWXwKOk7Nk7iVRcndfLlsfsou0aBVba0K1H6RW0/Gq2abmLChQSawCyfzEQ== X-Received: by 2002:a17:902:7445:b0:1fd:7b2c:9879 with SMTP id d9443c01a7336-1ff048b063emr51764265ad.51.1722181968470; Sun, 28 Jul 2024 08:52:48 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7f7c5easm66446275ad.229.2024.07.28.08.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jul 2024 08:52:48 -0700 (PDT) Date: Sun, 28 Jul 2024 08:52:46 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: Wathsala Wathawana Vithanage , Shunzhi Wen , "thomas@monjalon.net" , Mattias =?UTF-8?B?UsO2bm5ibG9t?= , Ruifeng Wang , Bruce Richardson , Tyler Retzlaff , Min Zhou , David Christensen , Stanislaw Kardach , Konstantin Ananyev , "dev@dpdk.org" , nd , Jack Bond-Preston , Dhruv Tripathi , Honnappa Nagarahalli Subject: Re: [PATCH] eal: add support for TRNG with Arm RNG feature Message-ID: <20240728085246.302befd3@hermes.local> In-Reply-To: <298cc5e7-bb47-46a9-a904-c583edff7daa@lysator.liu.se> References: <20240723212703.721050-1-shunzhi.wen@arm.com> <536d1325-ee15-4630-9ae9-00cef9411d34@lysator.liu.se> <2d28f42f-480b-4070-8ba2-1353a742b46d@lysator.liu.se> <5d409e6a-1d61-4d8a-b9ab-8cbcf7838ad0@lysator.liu.se> <298cc5e7-bb47-46a9-a904-c583edff7daa@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, 28 Jul 2024 08:42:42 +0200 Mattias R=C3=B6nnblom wrote: > > 1- An implementation of rte_csrand that calls getrandom() with per-core= entropy caching. Which will be the default for DPDK. > > 2- Build time flag to enable HW CSRNG for those who want to override th= e default kernel getrandom() feature. > > 3- Rationale for why CPU HW CSRNG is required. > >=20 > > To elaborate on Item 3, the rationale is simple, we want to enable the = HW feature for those who need it. =20 >=20 > That's circular. "The reason we want this feature implementation to be=20 > included is to satisfy those who want this feature implementation." >=20 > Stop thinking like an ARM developer on a "software enablement" mission,=20 > and start thinking like a DPDK library or application developer. The Linux kernel in arch/arm64/include/asm/archrandom.h has support already. The support includes lots of checks for capabilities and caveats for the limitations of the ARM implementation that are not reflected in this simplistic version.