From: Ard Biesheuvel Subject: Re: Hang loading omap_rng on MacchiatoBin with 4.15-rc7 Date: Tue, 9 Jan 2018 09:47:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Thomas Petazzoni , Gregory CLEMENT , linux-arm-kernel , Marcin Wojtas To: Riku Voipio Return-path: Received: from mail-io0-f170.google.com ([209.85.223.170]:40096 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752709AbeAIJrc (ORCPT ); Tue, 9 Jan 2018 04:47:32 -0500 Received: by mail-io0-f170.google.com with SMTP id v30so17885323iov.7 for ; Tue, 09 Jan 2018 01:47:32 -0800 (PST) In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On 9 January 2018 at 08:31, Riku Voipio wrote: > Hi, > > Loading omap_rng module on McBin causes hangup (in about 9/10 times). > Looking at /proc/interrupts it seems the interrupt starts running like > crazy, and after a while the whole system is unresponsive. This with > Debian kernel (everything possible as modules) and EFI as bootloader. > The EFI firmware appears[1] to use the rng unit to provide a seed for > KASRL, I wonder if the driver needs to depend less on the state left > by firmware, or the firmware needs to de-initialize the RNG before > booting. > ... > 87: 0 0 0 0 ICU.f21e0000 95 > Level f2760000.trng > 88: 2532580 0 0 0 ICU.f41e0000 95 > Level f4760000.trng ... My original code had gMarvellTokenSpaceGuid.PcdEip76TrngBaseAddress|0xF2760000 which means the interrupt storm is being caused by the /other/ RNG, not the one UEFI uses. Could you please check whether your UEFI source is still using the same base address?