From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbdBCAT7 (ORCPT ); Thu, 2 Feb 2017 19:19:59 -0500 Received: from icp-osb-irony-out2.external.iinet.net.au ([203.59.1.155]:54984 "EHLO icp-osb-irony-out2.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbdBCAT4 (ORCPT ); Thu, 2 Feb 2017 19:19:56 -0500 X-Greylist: delayed 562 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Feb 2017 19:19:55 EST X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BsAgD2yZNY/zXSMGcNUBkBAQEBAQEBAQEBAQcBAQEBAYQ0Kl+DWJpygSGXNwwfC4V4AoMZFQECAQEBAQEBAYV0AQEBAwEiVhALDQEKAgImAgIoLwYBDAgBAYlgG6t4aIIlJosVAQEBAQEBAQEBAQEBAQEBASKBC4R8gkmCaoE8AYYWgl8FiHGIC4phhmiGCIdliAWGL45whBc1gT0TCCIIO4RRggNjAYkfAQEB X-IPAS-Result: A2BsAgD2yZNY/zXSMGcNUBkBAQEBAQEBAQEBAQcBAQEBAYQ0Kl+DWJpygSGXNwwfC4V4AoMZFQECAQEBAQEBAYV0AQEBAwEiVhALDQEKAgImAgIoLwYBDAgBAYlgG6t4aIIlJosVAQEBAQEBAQEBAQEBAQEBASKBC4R8gkmCaoE8AYYWgl8FiHGIC4phhmiGCIdliAWGL45whBc1gT0TCCIIO4RRggNjAYkfAQEB X-IronPort-AV: E=Sophos;i="5.33,326,1477929600"; d="scan'208";a="597998579" Subject: Re: regression for m68k/coldfire To: Waldemar Brodkorb , Nikita Yushchenko References: <20170202201500.GU11210@waldemar-brodkorb.de> Cc: linux-kernel@vger.kernel.org, linux-m68k@vger.kernel.org, uclinux-dev@uclinux.org, geert@linux-m68k.org From: Greg Ungerer Message-ID: <89754ce3-1f76-9af1-f3b0-252c1eba94d9@uclinux.org> Date: Fri, 3 Feb 2017 10:10:44 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170202201500.GU11210@waldemar-brodkorb.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Waldemar, On 03/02/17 06:15, Waldemar Brodkorb wrote: > your commit 80cca775cdc4f8555612d2943a2872076b33e0ff breaks Linux > booting in qemu-system-m68k: > > qemu-system-m68k -nographic -M mcf5208evb -cpu m5208 -kernel qemu-m68k-mcf5208-initramfspiggyback-kernel [snip] > [ 3.460000] ColdFire internal UART serial driver > [ 3.470000] mcfuart.0: ttyS0 at MMIO 0xfc060000 (irq = 90, > base_baud = 2083333) is a ColdFire UART > [ 3.500000] console [ttyS0] enabled > [ 3.500000] mcfuart.0: ttyS1 at MMIO 0xfc064000 (irq = 91, > base_baud = 2083333) is a ColdFire UART > [ 3.510000] mcfuart.0: ttyS2 at MMIO 0xfc068000 (irq = 92, > base_baud = 2083333) is a ColdFire UART > qemu: hardware error: mcf_fec_read: Bad address 0x200 > > CPU #0: > D0 = 00000200 A0 = 4780fdec F0 = 0000000000000000 ( 0) > D1 = 4780ff94 A1 = 401703de F1 = 0000000000000000 ( 0) > D2 = 46dbb000 A2 = 4780f800 F2 = 0000000000000000 ( 0) > D3 = 4019d612 A3 = fc030200 F3 = 0000000000000000 ( 0) > D4 = 00000000 A4 = 4019d608 F4 = 0000000000000000 ( 0) > D5 = 40043f7a A5 = 400222a0 F5 = 0000000000000000 ( 0) > D6 = 400df204 A6 = 4783de78 F6 = 0000000000000000 ( 0) > D7 = 401701c0 A7 = 4783de28 F7 = 0000000000000000 ( 0) > PC = 400e5ff2 SR = 2009 -N--C FPRESULT = 0 > Aborted > wbx@vopenadk:~/m68k/openadk$ > wbx@vopenadk:~/m68k/openadk$ qemu-system-m68k --version > QEMU emulator version 2.8.0 > Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project > developers > > Any ideas how to fix it? This is a limitation in the FEC support in QEMU. This works on real ColdFire hardware (which do support the FEC MIB stats registers from offset 0x200 - so not 5272). I sent this patch to the qemu dev list a couple of weeks back which fixes qemu: http://lists.gnu.org/archive/html/qemu-devel/2017-01/msg01781.html I do not believe it has been picked up by QEMU mainline yet (I will probably have to resend and push a little to get that done). Regards Greg