Received: from eggs.gnu.org ([2001:4830:134:3::10]:44893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etx7A-0003I3-EM for qemu-devel@nongnu.org; Thu, 08 Mar 2018 10:05:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etx76-000126-GV for qemu-devel@nongnu.org; Thu, 08 Mar 2018 10:05:52 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:45084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etx76-00010R-An for qemu-devel@nongnu.org; Thu, 08 Mar 2018 10:05:48 -0500 Received: by mail-pf0-x243.google.com with SMTP id h19so2429287pfd.12 for ; Thu, 08 Mar 2018 07:05:48 -0800 (PST) Sender: Guenter Roeck References: <1520444223-8389-1-git-send-email-linux@roeck-us.net> <1cb9cc42-c7c9-5124-a615-27914d23b05c@roeck-us.net> From: Guenter Roeck Message-ID: <7bd98eb6-a657-71f3-4d9e-0ea5585db2f2@roeck-us.net> Date: Thu, 8 Mar 2018 07:05:45 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Andrey Smirnov , Chris Healy , Jason Wang , Jean-Christophe Dubois , Bill Paul On 03/08/2018 06:51 AM, Peter Maydell wrote: > On 8 March 2018 at 14:47, Guenter Roeck wrote: >> On 03/08/2018 02:50 AM, Peter Maydell wrote: >>> So do the works-by-accident kernels fail on QEMU because >>> we don't emulate some bit of the ethernet device ? >>> Ideally we could fix that so we could boot newer kernels >>> without breaking the old ones... > >> >> I don't know if a fix working for all versions of Linux is even possible. >> Creating both interrupts might be an option, but would likely cause >> other problems since some versions of Linux would handle the same >> interrupt twice, while others expect the second interrupt >> to be associated with the timer. > > Did the older Linux kernels work on the real hardware? (I > would guess so, but sometimes these things only get tested > on emulation...) If so, then in theory "make QEMU work like > the hardware" should allow all the kernels to work on QEMU. > Good point. I'll assume that this is the case, and have another look. Unfortunately I don't have real hardware, so it is difficult to observe the differences for real. Guenter