Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp688449ybp; Wed, 9 Oct 2019 02:39:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlSmXVj40dMzxwM+uQxQaxlV/I6imprd2IoKtUz3zVdoaysE43DJvFmgAHxRD1pq+y68q4 X-Received: by 2002:a50:f701:: with SMTP id g1mr2057392edn.62.1570613976979; Wed, 09 Oct 2019 02:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570613976; cv=none; d=google.com; s=arc-20160816; b=YW/Ab9MsUsZ9pX0zsHpn0Avm8BhD3o9TGKhEaSmr8ElGlzEBfPKu9o40etQ38r9KsG uYJ7K0ioxXMZ7Rp1iT3qIw/SdnWRVyzyQ8qHSC8JZFvN9jqKzWY0sNokowAW/pty4K3R EYqJxP7tuxjEASNE3OhaHpJJMopkSoCsB+nKXYNpY2MiBtoDSuVXIAZZc2JVeFA5607S LODOpU81A9+Wos8sB+1jm/YxVyHDPm+FFqt1PdlV/qu8nYVZoPQFDK5Hyf5+wRdBkYQw kdBJv5qj8SWwhpbu299F2rh8gwjhYA8psU/6UMgah+3TgY6fhXw1+/YkX7ogixEIMew3 sjNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=utLjJpPcRonBf0nD+fQ/NIfqjK90elLHFHRH1WuXOQo=; b=nSRMlj3UMFcw7DGrljkL1wi/QTqqViIsbfpfBI9WwwINdxvfFH98vqjlvR2lwTqme7 RUgOn5hwuld7fWH1Ww8vnoDrrZLg2MKaUB3tKm2glivdqU5HfOdTr9A6rTsHaInK1uSj FGPK61shFrmg9ErDQZo6yIFZtVp+979To7NSQdMyN1qEZMEg6IAYeLkjaCKkhElI407Q 3dIbZ3vQBWQw5DKQD+QPcsvu5x4biF74XHJHeRQETVb07YYZpxgAjelQ4AW41BR6C+3e 16TsKztLr/R1GzJvgccyuanndp93yGfnXcol7E/0jdr5+IlHfWseDgXuCrsrsgUhVXJa fWGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si990275edc.368.2019.10.09.02.39.13; Wed, 09 Oct 2019 02:39:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730574AbfJIJiB convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Oct 2019 05:38:01 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:53045 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729616AbfJIJiA (ORCPT ); Wed, 9 Oct 2019 05:38:00 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-103-VZzcP8GxPMmH4z8lG9RLRA-1; Wed, 09 Oct 2019 10:37:57 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 9 Oct 2019 10:37:56 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 9 Oct 2019 10:37:56 +0100 From: David Laight To: 'Pavel Machek' CC: "Theodore Y. Ts'o" , Linus Torvalds , Thomas Gleixner , "Ahmed S. Darwish" , LKML , Nicholas Mc Guire , the arch/x86 maintainers , Andy Lutomirski , Kees Cook Subject: RE: x86/random: Speculation to the rescue Thread-Topic: x86/random: Speculation to the rescue Thread-Index: AQHVfV0j+0Zbqc/i0UCMngMctaT4AqdQmbewgAFKogCAACVSoA== Date: Wed, 9 Oct 2019 09:37:56 +0000 Message-ID: <0ee565c2378a4abab6b623d6d3e10a7f@AcuMS.aculab.com> References: <20191006114129.GD24605@amd> <20191006173501.GA31243@amd> <20191006182103.GA2394@amd> <20191007114734.GA6104@mit.edu> <20191007221817.GA4027@amd> <4748b43e6b00415fb21c1a127a835e87@AcuMS.aculab.com> <20191009080240.GA11561@amd> In-Reply-To: <20191009080240.GA11561@amd> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: VZzcP8GxPMmH4z8lG9RLRA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pavel Machek > Sent: 09 October 2019 09:03 > > NAND flash requires ECC so is likely to be async. > > But I2C is clocked from the cpu end - so is fixed. > > RTC i2c may be clocked from the CPU end, but the time source needs to > work when machine is off, so that has a separate crystal for > timekeeping. That only helps if the rtc chip lets you read its internal counters. You get one read of a few bits of 'randomness'. > > Also an embedded system could be booting off a large serial EEPROM. > > These have fixed timings and are clocked from the cpu end. > > Have you seen such system running Linux? You can run Linux on the Nios cpu on an Altera/Intel FPGA. The kernel is likely to be loaded from the same serial eeprom as the FPGA image. I've not personally run such a setup, but there are examples for the dev boards so I assume some people do. I'm not sure I'd want to run Linux on a 100MHz cpu with a slow memory interface. Better finding an fpga with an arm core in the corner! (We do use the Nios cpu - but for standalone code that fits in small internal memory blocks.) David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)