Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp246846pxb; Mon, 25 Apr 2022 09:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWTtSTk86sv5GxKZ7GLe0BVncDdMzkAX6lYETuRoQ87cT4MwO8A2PyjtUy0se/c3LgMF+T X-Received: by 2002:a17:90b:3646:b0:1d8:15c5:464b with SMTP id nh6-20020a17090b364600b001d815c5464bmr19879381pjb.63.1650903359313; Mon, 25 Apr 2022 09:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650903359; cv=none; d=google.com; s=arc-20160816; b=s7FooFNtgAnQ3e7qL8ADGABMxZGpfYigMgn2TJm7pFk056XYENFfiZ5Cs2W/bcCW7t gTq8vfv1Zy3hi0qQ6s2u2QgRsypWv/jqfN89zBIFMu6HBRE842bx60hlFZZN7+fBIHPK L6zXOKoZahwxhQFC4GMP2uHMTBcgN0KfLE8G5fOrmjSIT8GkHYisBZq7A/8sT7y/U5+u FcnszzdrpfDRDDc1/gfkKjGFefoic+fyZ6yRKLMIW9vJ5lbW6kPpx+Pt4Ud1XDgvA83+ 8vRL766K8SithqsoQT686gLPKrOVl9cu7211VktFyzshMWLWvCcNQknqh99N47gIVXXh D+wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=jI17jX2VOaLJfc9AfJqU1GSCFAD6t7z5sS76HYwewd0=; b=hREkvFeb4nlun4bfWcmIxGM3Li/pVvVijwHaxbcjFmggJuxBmAJYaS5yqy+qCndxW9 WYPbMU23RWdJ6gAJ0o5D5xZ6SGrdKBb433pBIsJtYMiYOf29ZdVryB7fBJIuslB9F57u xy/yn0m9x4+u/O6CLL0rOqYjGv+fOAyzGwQxkJtWtAt+ilmvcJwtRFl4qp9sxFB6GOVh RkNAzPZxAx/At65lBIiWyOBjLrHlavSkqHdbbYhxHLGzkCjPxRFRn5BtGfIpLOjtDlxG RkoWVM63Pzxf0oFzkRI3yDjxfzAJx/nfTIKyS8KEx18MCegqSIi3OD0SbsTcFGX3LdA5 UTKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b="BwNx1EG/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a186-20020a6390c3000000b003ab390ccaf8si3679630pge.495.2022.04.25.09.15.37; Mon, 25 Apr 2022 09:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b="BwNx1EG/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242784AbiDYPXO (ORCPT + 99 others); Mon, 25 Apr 2022 11:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240093AbiDYPXN (ORCPT ); Mon, 25 Apr 2022 11:23:13 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C7EF70 for ; Mon, 25 Apr 2022 08:20:05 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id z30so7158266pfw.6 for ; Mon, 25 Apr 2022 08:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=jI17jX2VOaLJfc9AfJqU1GSCFAD6t7z5sS76HYwewd0=; b=BwNx1EG/blk0vUyqI0sgYlBJdVl5y5hRSnFaNVOD2lDrREI1aB2qDGWAzyJiRMHr8o 1ddUvfcq8O7lESQkU7F8tEvqTXawfoKGIBDItZtInrNe3lPN4DJZtAqPRx1bqZviLex8 vts3wvUo7Lp8rjispWnXrSNrdOrnGahgLkkRaF75t7BcohdJLB+9Y7JbPqTT+d2ZP7FQ 0oBzn8so8Rrs9Z+/s8lgEqpIn2Gkg8IhoUHMqYgL7i3cqmEc73xGLF6IP4LsWb+7dh6C RqXmVVdzf2g8Q04odAjopltJUjLCMS3bIdsYYOdptzNknoJlRufb1Cvh4bS/UJjTB3Rr YTQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=jI17jX2VOaLJfc9AfJqU1GSCFAD6t7z5sS76HYwewd0=; b=RyUgJR9n+N0A2lsk2JZwXV1/oH7pp+0/jZq09Ad1y+0GiQXur0O5fj9VoXFEkBIY2s mYQ+v1aUKi2EjonjCPPsYeYQVgyuOwIy8lyJnczUXyEjey1N7qGpl9Tn+zmKQZoetCmp 4dAU2lH0EIYigtewvOQoRnxvgHUUOV2gRJrtfnQe2pQrNGy7TdBPHe6uQ4HdZzek6nPa xNpqaXQB1SGMne4BWRGGIvKufY10bNNL08rk7yHpTL5QG3jCeZoFklmdy7qRVYTGAtz9 CxJgvW/U4Lon5NkY3+NoLuaMXfRW40mkRjhM5/aSYAhJZKKyWKwuCc7htXLZbSWcWNeI INRg== X-Gm-Message-State: AOAM5336PqUirNCzpJoXeH+72EjaKuRRiqEp49AVWADoWAP33Ap8b/7E fAXFR4j9cJbGxTT3k93DHi39yHUvGMgQ7g== X-Received: by 2002:a63:4e59:0:b0:39d:69fe:eaa with SMTP id o25-20020a634e59000000b0039d69fe0eaamr15736865pgl.340.1650900004529; Mon, 25 Apr 2022 08:20:04 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id d8-20020a056a00198800b004fab740dbe6sm12668514pfl.15.2022.04.25.08.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 08:20:03 -0700 (PDT) Date: Mon, 25 Apr 2022 08:20:03 -0700 (PDT) X-Google-Original-Date: Mon, 25 Apr 2022 08:14:07 PDT (-0700) Subject: Re: [PATCH v6 08/17] riscv: use fallback for random_get_entropy() instead of zero In-Reply-To: CC: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, tglx@linutronix.de, Arnd Bergmann , Paul Walmsley From: Palmer Dabbelt To: Jason@zx2c4.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 25 Apr 2022 08:02:49 PDT (-0700), Jason@zx2c4.com wrote: > Hi Palmer, > > On Mon, Apr 25, 2022 at 4:55 PM Palmer Dabbelt wrote: >> Fine for me if this goes in via some other tree, but also happy to take >> it via the RISC-V tree if you'd like. > > I'm going to take this series through the random.git tree, as I've got > things that build on top of it for random.c slated for 5.19. > >> IMO we could just call this a >> fix, maybe >> >> Fixes: aa9887608e77 ("RISC-V: Check clint_time_val before use") >> >> (but that just brought this back, so there's likely older kernels broken >> too). Shouldn't be breaking any real hardware, though, so no rush on my >> end. > > That'd be fine with me, but it'd involve also backporting the > timekeeping patch, which adds a new API, so maybe we better err on the > side of caution with that new code. wFM. Like I said this isn't going to break any existing hardware, and anyone trying to ship something without the timers is likely going to be in for way more trouble than this so will probably be stuck with newer kernels anyway. >> Acked-by: Palmer Dabbelt >> Reviewed-by: Palmer Dabbelt > > Thanks for the review. > >> Makes sense: we had an architecturally-mandated timer at the time, but >> we don't any more. > > That's too bad. Out of curiosity, what happened? Was that deemed too > expensive for certain types of chips that western digital wanted to > produce for their hard drives, or some really constrained use case > like that? No idea, but it was at the beginning of the "everything is optional"-ification of the ISA so I'm guessing it's just part of that.