From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 843FDC433DB for ; Wed, 23 Dec 2020 10:26:00 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A54D92079A for ; Wed, 23 Dec 2020 10:25:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A54D92079A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ilande.co.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks1LC-000398-G8 for qemu-devel@archiver.kernel.org; Wed, 23 Dec 2020 05:25:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks1KG-0002cz-KH for qemu-devel@nongnu.org; Wed, 23 Dec 2020 05:25:02 -0500 Received: from mail.ilande.co.uk ([2001:41c9:1:41f::167]:43134 helo=mail.default.ilande.uk0.bigv.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks1KC-0004DQ-8m for qemu-devel@nongnu.org; Wed, 23 Dec 2020 05:24:59 -0500 Received: from host86-184-125-210.range86-184.btcentralplus.com ([86.184.125.210] helo=[192.168.1.65]) by mail.default.ilande.uk0.bigv.io with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ks1K1-0007yC-DD; Wed, 23 Dec 2020 10:24:50 +0000 To: Guenter Roeck , QEMU Developers References: <3f0f8fc6-6148-a76e-1088-b7882b0bbcaf@roeck-us.net> <5ef852ee-8a53-df9d-82f4-33a68c05f53a@ilande.co.uk> <5849da05-a063-cd56-7709-c4760c8aa71f@roeck-us.net> From: Mark Cave-Ayland Message-ID: Date: Wed, 23 Dec 2020 10:24:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <5849da05-a063-cd56-7709-c4760c8aa71f@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 86.184.125.210 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk Subject: Re: Problems with irq mapping in qemu v5.2 X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.default.ilande.uk0.bigv.io) Received-SPF: pass client-ip=2001:41c9:1:41f::167; envelope-from=mark.cave-ayland@ilande.co.uk; helo=mail.default.ilande.uk0.bigv.io X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.521, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 22/12/2020 21:23, Guenter Roeck wrote: (Added jiaxun.yang@flygoat.com as CC) >>> I don't really have a good solution for pci_bonito_map_irq(). It may not >>> matter much - I have not been able to boot fuloong_2e since qemu v4.0, >>> and afaics that is the only platform using it. Maybe it is just completely >>> broken ? >> >> It looks like you want this patchset posted last week: https://patchew.org/QEMU/20201216022513.89451-1-jiaxun.yang@flygoat.com/ (specifically: https://patchew.org/QEMU/20201216022513.89451-1-jiaxun.yang@flygoat.com/20201216022513.89451-4-jiaxun.yang@flygoat.com/). Zoltan was working on the VIA southbridge wiring at the start of the year and provided me a test case that would boot Linux on the fulong2e machine, so at that point in time it wasn't completely broken. >> > Those patches don't help for my tests. Problem is that I try to boot from ide drive. > > qemu-system-mips64el -M fulong2e \ > -kernel vmlinux -no-reboot -m 256 -snapshot \ > -drive file=rootfs.mipsel.ext3,format=raw,if=ide \ > -vga none -nographic \ > --append "root=/dev/sda console=ttyS0" > -serial stdio -monitor none > > This works just fine with qemu v3.1. With qemu v5.2 (after applying the > fuloong patch series), I get: > > VFS: Cannot open root device "sda" or unknown-block(0,0): error -6 > > This used to work up to qemu v3.1. Since qemu v4.0, there has been a variety > of failures. Common denominator is that the ide drive is no longer recognized, > presumably due to related changes in the via and/or pci code between v3.1 > and v4.0. > > Difference in log messages: > > v3.1: > > pci 0000:00:05.1: [Firmware Bug]: reg 0x10: invalid BAR (can't size) > pci 0000:00:05.1: [Firmware Bug]: reg 0x14: invalid BAR (can't size) > pci 0000:00:05.1: [Firmware Bug]: reg 0x18: invalid BAR (can't size) > pci 0000:00:05.1: reg 0x1c: [mem 0x100000370-0x10000037f 64bit] > ... > pata_via 0000:00:05.1: BMDMA: BAR4 is zero, falling back to PIO > ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14 > ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15 > ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 > ... > > ---- > > v5.2: > > pci 0000:00:05.1: reg 0x10: [io 0x0000-0x0007] > pci 0000:00:05.1: reg 0x14: [io 0x0000-0x0003] > pci 0000:00:05.1: reg 0x18: [io 0x0000-0x0007] > pci 0000:00:05.1: reg 0x1c: [io 0x0000-0x0003] > pci 0000:00:05.1: reg 0x20: [io 0x0000-0x000f] > pci 0000:00:05.1: BAR 4: assigned [io 0x4440-0x444f] > ... > ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x4440 irq 14 > ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x4448 irq 15 > [and nothing else] > > Guenter Jiaxun: Guenter is reporting that even with your latest series at https://lists.gnu.org/archive/html/qemu-devel/2020-12/msg04293.html he is unable to boot from an IDE drive. Your cover letter suggests that it should be possible to boot the Debian installer: can you provide any insight here? ATB, Mark.