Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2298110ybl; Thu, 29 Aug 2019 06:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz7npxpEnLKhcsAqI0uQelDDJIJvqjl7aakJcelizwpUXP1e/gRuD/8YOEUiFpWSiLWrX0 X-Received: by 2002:a63:481c:: with SMTP id v28mr8274182pga.50.1567085263683; Thu, 29 Aug 2019 06:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567085263; cv=none; d=google.com; s=arc-20160816; b=xA9LF5FhCM0ia2Dy8KwrLy0oOtQAT+L3NBs0/zuzJCXl5ttNoXyYjntg0MG/Jz958I 0BwO04V6oD0R8n6ourbEJHC7ltLQhXDRJiaPR40L4aFT94ZfNDa4ndG81c8fr9u8u1o6 i49NH5yabycOgkHAneib4D0kts5sVC1tjFvIMGi+6cjPzeBpNA8qRYQqO7K6UXb2ldNt sZJp4assb7OITuc7h427DiWa9bZOU20AZWDp5xSoJf7LZa0MDaX8LCUz7xTbyJ0wkz43 VpvH4zsnT42jGi3gGUxmsROCYcFRkvQLaF63nVsLT4OmphUluVQUut413iNDKctwPPZ0 wVqg== 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=+EbL5uHbRaVZhglSvt8d9cCBpYh3f0wExzjkbbLSM48=; b=uk5CYrS0SvpxQXMteCSFcBiXR2UOHpL7Ld79IoRTSa0BD7veB8Fd4pXaEFQDlCT+2/ qOLKnFh9GudcIOV9BlFUis3PTH3opk4oYgrnR7m1HomhXh8XdCc4YinBMvkoRB0rs9eH 30WgOUzpEF1Z5PeMTtQgBOvthg8FIBD4AfHktohi/AhF5C4SdvIy2KKLQstiSoxxQJrQ DKuYkiBrXakym8Lc+F+H+j7OWaX6nEbUobES5vMrxUu0T/fRDAIFFy632PVok6yDucdV mUQdD6gW1ihima+ZxwXK/iWMkUAaZ9/r/7HYfGiWtyynx2UElW3tlEnoAaVG+P6y8bvI Wgcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMPzG8Ui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si2526528pfn.199.2019.08.29.06.27.28; Thu, 29 Aug 2019 06:27:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMPzG8Ui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbfH2N0i (ORCPT + 99 others); Thu, 29 Aug 2019 09:26:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44384 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfH2N0i (ORCPT ); Thu, 29 Aug 2019 09:26:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id b6so633183wrv.11 for ; Thu, 29 Aug 2019 06:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+EbL5uHbRaVZhglSvt8d9cCBpYh3f0wExzjkbbLSM48=; b=aMPzG8UiwryTNNROE2Pc5seW3OriPSofsehPzdqbZaSQ78UDPkyihO1ob7/Q311TJM MaNZBWtX9/Orur7cKwBSvtl4IdQXKTyxQUdn+ke8IItrjxiZML8qgtWHVmtmgHBdZ8ZV 9lrGqsHetZpqofuJDs39gdBiPapRscYw9uHw1wRy8tKq22RrcHHoO1UyHpNlpMjNKe4h YrGHT0rZoqcmaGCNhounO18RTffv9S2SaE4y6dBmAKlXlP2j/s2amVsg7T/MIkL2D6rq RlgPRvaEyTYZI5Uqdtp3wNibTKhrABkxegVyJY8DSw7C9AAD8thlpaTQWBoZ6qd3QqeK M5Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+EbL5uHbRaVZhglSvt8d9cCBpYh3f0wExzjkbbLSM48=; b=ahs+oNQdhr07sGjvaFYUlfH1nO3AdQRZAA4/p2lJFm0j+qWoCOvoejqSYMoaHyCLbH qXJEkyGtMu8m/5yygIHwMP7G+b1/Mkd5kNKOvoTcAzliUsaW/XV2Hh5RkAjsQEvKkZha DnTvIszuLZNjFCDjFVHWJC5Qjv3XgYD/Yr0OGxFRjcgM5ZKN5PF0Lc3Zoo/yvmWLzF0B yvNNewYIO+FHVN2KB4ZjENU4K+p3cH/Km5ILbkPA6mSd33LWoNGpzDRblexn/mfIQSgg fW8y7h4z9b5kjI1jwm7ii5nvOnjnXFLNXzG83XDGNRaQO4yemdiiiEGE7YjtVCAUsTGC LhLw== X-Gm-Message-State: APjAAAWExk45E6yBRJiEFouSmGjWtYhJWKBJtUTATuJuKJVDYtu2doaZ OulqZ+lvaWhXo7RpNqsXIBmblZQzuaQP5hwjnss= X-Received: by 2002:a5d:6987:: with SMTP id g7mr3690087wru.306.1567085196168; Thu, 29 Aug 2019 06:26:36 -0700 (PDT) MIME-Version: 1.0 References: <20190828204609.02a7ff70@TheDarkness> In-Reply-To: <20190828204609.02a7ff70@TheDarkness> From: Richard Weinberger Date: Thu, 29 Aug 2019 15:26:24 +0200 Message-ID: Subject: Re: [PATCH] um: Rewrite host RNG driver. To: Alexander Neville Cc: Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 3:45 AM Alexander Neville wrote: > > The old driver had a bug that would cause it to outright stop working if > the host's /dev/random were to block. Instead of trying to track down > the cause of said bug, rewriting it from scratch turned out to be a much > better option as it came with a few benefits: > > - The new driver properly registers itself as an hardware RNG. > > - The code is simpler and therefore easier to maintain. > > - It serves as a minimal example of writing a hardware RNG driver. > > I also edited the Kconfig symbol to bring it up to more modern > standards. So, you removed -EAGAIN handling, made everything synchronous, and changed the interface. I'm not sure if this really a much better option. Rewriting the driver in a modern manner is a good thing, but throwing the old one way with a little hand weaving just because of a unspecified issue is a little harsh. Can you at lest provide more infos what problem you're facing with the old driver? -- Thanks, //richard