[Skiboot] [PATCH] qemu: add NO_RNG quirk

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Nov 3 11:29:21 AEDT 2018


On Fri, 2018-11-02 at 08:26 +0100, Cédric Le Goater wrote:
> QEMU does not emulate a NX chip yet.

What about instead we check for NX in the DT ?

I'm about to implement the RNG in qemu :-)

> Signed-off-by: Cédric Le Goater <clg at kaod.org>
> ---
> 
>  This is the only patch needed to boot a QEMU PowerNV POWER9 machine
>  using the Witherspoon OpenPOWER kernel and rootfs files.
> 
>  QEMU tree is available here :
>  
>    https://github.com/legoater/qemu/tree/powernv-3.1
> 
>  core/chip.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/core/chip.c b/core/chip.c
> index 65263253424d..48df1f052936 100644
> --- a/core/chip.c
> +++ b/core/chip.c
> @@ -146,7 +146,7 @@ void init_chips(void)
>  	/* Detect Qemu */
>  	if (dt_node_is_compatible(dt_root, "qemu,powernv")) {
>  		proc_chip_quirks |= QUIRK_NO_CHIPTOD | QUIRK_NO_PBA
> -			| QUIRK_NO_DIRECT_CTL;
> +			| QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG;
>  		prlog(PR_NOTICE, "CHIP: Detected Qemu simulator\n");
>  	}
>  



More information about the Skiboot mailing list