Received: from eggs.gnu.org ([2001:4830:134:3::10]:33820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcd5n-00078G-Da for qemu-devel@nongnu.org; Wed, 24 Aug 2016 14:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcd5l-0004n8-AL for qemu-devel@nongnu.org; Wed, 24 Aug 2016 14:40:02 -0400 From: =?UTF-8?Q?Herv=c3=a9_Poussineau?= Message-ID: <4a78a3a5-91ba-b3bd-a59c-d1ebf9f1470b@reactos.org> Date: Wed, 24 Aug 2016 20:39:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] ppc: regression in 2.7.0-rc3 on rfi/rfid/hrfi instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , "qemu-ppc@nongnu.org" , benh@kernel.crashing.org Hi, Following patch regresses Linux boot on PReP machine: commit a2e71b28e832346409efc795ecd1f0a2bcb705a3 Author: Benjamin Herrenschmidt Date: Tue Jun 21 23:48:46 2016 +0200 ppc: Fix rfi/rfid/hrfi/... emulation This reworks emulation of the various "rfi" variants. I removed some masking bits that I couldn't make sense of, the only bit that I am aware we should mask here is POW, the CPU's MSR mask should take care of the rest. This also fixes some problems when running 32-bit userspace under a 64-bit kernel. This patch broke 32bit OpenBIOS when run under a 970 cpu. A fix was proposed here : https://www.coreboot.org/pipermail/openbios/2016-June/009452.htm= l Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson [clg: updated the commit log with the reference of the openbios fix = ] Signed-off-by: C=C3=A9dric Le Goater [dwg: Remove hunk which disabled rfi on 64-bit CPUS. The change was correct, but we need to fix OpenBIOS before applying it] Signed-off-by: David Gibson Test case: - Download: http://www.juneau-lug.org/zImage.initrd.sandalfoot - Run: qemu-system-ppc -M prep -kernel zImage.initrd.sandalfoot Firmware starts, loads kernel, but seems to error out just after PS/2 det= ection. Reverting the commit and fixing the conflict makes it work again, up to s= hell. Herv=C3=A9