Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932215AbaBDQyO (ORCPT ); Tue, 4 Feb 2014 11:54:14 -0500 Received: from mail.eperm.de ([89.247.134.16]:51705 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932123AbaBDQyB (ORCPT ); Tue, 4 Feb 2014 11:54:01 -0500 From: Stephan Mueller To: Hannes Frederic Sowa Cc: Geert Uytterhoeven , "Theodore Ts'o" , =?ISO-8859-1?Q?J=F6rn?= Engel , "H. Peter Anvin" , Linux Kernel Developers List , "Maciej W. Rozycki" , Ralf Baechle , dave.taht@gmail.com, John Crispin , andrewmcgr@gmail.com, Thorsten Glaser , sandyinchina@gmail.com Subject: Re: [PATCH 2/5] CPU Jitter RNG: Enable compilation Date: Tue, 04 Feb 2014 17:53:39 +0100 Message-ID: <4270486.pLbfl66a7r@tauon> User-Agent: KMail/4.11.5 (Linux/3.12.7-300.fc20.x86_64; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20140204163957.GA13928@order.stressinduktion.org> References: <2039634.jSmQAS6tdi@myon.chronox.de> <3579180.ti4z33qfDe@tauon> <20140204163957.GA13928@order.stressinduktion.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 4. Februar 2014, 17:39:57 schrieb Hannes Frederic Sowa: Hi Hannes, >On Tue, Feb 04, 2014 at 05:19:52PM +0100, Stephan Mueller wrote: >> Also, I consider the execution speed of the entropy collection is not >> really an issue because the RNG delivers random numbers at a >> comparatively high rate. Any other noise source feeding into random.c >> delivers data with far less speed. > >Compiling the kernel with -O0 could add some other problems, like I thought with the given flag, I only compile the respective C file without optimizations, but not the entire kernel. Am I wrong here? >e.g. not doing enough constant folding which could result in linking >errors. I guess it is not a problem currently though, but some of the >compile time checks depend on this (compiletime_assert and such). How do you think that my folding code can cause linking errors? > >Have you looked into adding compiler barriers into relevant places in >the loops to stop the compiler from optimizing and spill out the >values from the registers to their memory locations? I did not look into that one, let me have a look. > >Greetings, > > Hannes Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/