From patchwork Sat Feb 25 17:08:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Beschow X-Patchwork-Id: 1747996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=NBOFTxyQ; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PPCvl16mWz240f for ; Sun, 26 Feb 2023 04:10:59 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVy2x-0001aZ-II; Sat, 25 Feb 2023 12:09:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVy2w-0001a4-F4; Sat, 25 Feb 2023 12:09:18 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVy2u-0005bB-Lf; Sat, 25 Feb 2023 12:09:18 -0500 Received: by mail-ed1-x52e.google.com with SMTP id d30so9458343eda.4; Sat, 25 Feb 2023 09:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S0ggo44XEF3v7ixuzuteDbv6TK2IoS4fYA4gs0/FkBc=; b=NBOFTxyQPK6WbgdraZJArruaciW7Be2jJCURigjL+50kYbsW3MwHgyHggTO2kE0UeN O/Ea9lsg14D4RtQn5VPCTUlhobRo9XuztYfFYCRB41ZWInt57c3VR0R83zURomD52Vr9 06J7MsSCioB8JJvDlA3jsco2aZI+WFYg8JZG6mwb3IJ7tX9PuhXtS7I6yGkGs+gGfGCs BUKXsiGjxIKkjcoZRNR19bxVvzlBab1apf3VvwkRwSu2Dl4PmMgtVg0CkB68Qix91Svw oBhJyrpA/VuUSjhHKgpgIRAqbCV4Gr5PW7EWZC18eBPNcXtL9tzxuVnir/T/QG6Hds/T VOWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S0ggo44XEF3v7ixuzuteDbv6TK2IoS4fYA4gs0/FkBc=; b=QuW5qd1WaDCjf9b+BMpIo3gPfcCx7HcHI/xWH8ChnkZXXZ+rva6sahA+JpgBO5NXc0 7V9mM5Z02hjc/BVYHI4p9WjTQmc20FQdxZT2P8yQbQxVJhwrxR4mz/opjyGHlGR/vhpO gQgygE8i1V/09ECEbvmQJMv+CM2X7msDltkmZ7QtKm8jYqYJ6SBNwcGG9/+LGMDb6A4K ndS1jsgfTjy3ruc8gioqVH2lmwIzc3FlD8tiKKqMzKZUb6FMWh8/RE6NpMAb8Xf9j8BP djxpEu463rM4abNFfmNmHcvUut0ZJVbQ1C8oiTKxmYaoZy/gzqTBVuVsgZYSVqiGThOz /EGQ== X-Gm-Message-State: AO0yUKXuSWnrbH+t1o6Phy2X1dgynVrVM3aDw3TUYc2fvVw+gGYVIUre 2ho3ikcz0uOlsnkHGc/OoWo0IILaQ11Pyw== X-Google-Smtp-Source: AK7set/csOE8+mhpBl6+Lq6MdpurqmU74iULxQQaa2P6Vce252SDYaHNMfNtnKhRB6ceuXEUjxJtIg== X-Received: by 2002:a17:906:4909:b0:8af:2191:89a6 with SMTP id b9-20020a170906490900b008af219189a6mr24361726ejq.72.1677344953758; Sat, 25 Feb 2023 09:09:13 -0800 (PST) Received: from osoxes.fritz.box (p200300faaf06ee000578a61baa078133.dip0.t-ipconnect.de. [2003:fa:af06:ee00:578:a61b:aa07:8133]) by smtp.gmail.com with ESMTPSA id t6-20020a17090616c600b008d356cafaedsm989066ejd.40.2023.02.25.09.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 09:09:13 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Gerd Hoffmann , Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-ppc@nongnu.org, BALATON Zoltan , Bernhard Beschow Subject: [PATCH v2 0/3] VT82xx PCI IRQ routing fixes Date: Sat, 25 Feb 2023 18:08:54 +0100 Message-Id: <20230225170857.15774-1-shentey@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=shentey@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This series makes PCI interrupt routing in the VIA south bridges more compliant to the PCI specification. It aims to help bringing audio output support to the ppc/pegasos2 machine [1]. v2: * Remove audio patches which were included for proof of concept Testing done with via-ac97 audio patches on top: * `make check` * `qemu-system-ppc -M pegasos2 -rtc base=localtime -device ati-vga,guest_hwcursor=true,romfile="" -cdrom morphos-3.17.iso -kernel morphos-3.17/boot.img` -> There is a nice sound when the Desktop becomes visible. * `qemu-system-ppc -M pegasos2 -bios pegasos2.rom -rtc base=localtime -device ati-vga,guest_hwcursor=true,romfile="" -cdrom morphos-3.17.iso` -> There is a nice sound when the Desktop becomes visible. * `qemu-system-ppc -M pegasos2 -bios pegasos2.rom -rtc base=localtime -device ati-vga,guest_hwcursor=true,romfile="" -cdrom morphos-3.17.iso -device usb-mouse -device usb-kbd` -> The machine hangs when audio is supposed to play while the mouse is moved. This behavior can also be reproduced in v1. [1] https://patchew.org/QEMU/cover.1677004414.git.balaton@eik.bme.hu/ Bernhard Beschow (3): hw/ppc/pegasos2: Initialize VT8231 PCI IRQ router hw/isa/vt82c686: Implement PCI IRQ routing hw/usb/vt82c686-uhci-pci: Use PCI IRQ routing hw/isa/vt82c686.c | 44 ++++++++++++++++++++++++++++++++++++++ hw/ppc/pegasos2.c | 6 ++++++ hw/usb/vt82c686-uhci-pci.c | 12 ----------- 3 files changed, 50 insertions(+), 12 deletions(-)