From patchwork Mon Feb 27 12:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Beschow X-Patchwork-Id: 13153408 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CFAB4C64ED6 for ; Mon, 27 Feb 2023 12:34:17 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWchn-0004gN-T1; Mon, 27 Feb 2023 07:34:11 -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 1pWchQ-0004Vd-Vk; Mon, 27 Feb 2023 07:33:50 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWchP-0008NZ-3n; Mon, 27 Feb 2023 07:33:48 -0500 Received: by mail-ed1-x52d.google.com with SMTP id da10so25185731edb.3; Mon, 27 Feb 2023 04:33:46 -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=RCfXQMzytxhUb9qt/V7R2Xt/UmJlhGiQ+uT+Hl7Ou/E=; b=EAzg9KU+WcRW+v7LCRX6GyiMBuhy8rPNljD/cKMWH5imei338ROtF8fs1OXnKFTF2j l2gPDgdk/b/4xb9HG7fC59UgcKy3VUOWqGlTN2Z7TX2rFauzXKitnskluhpTMoSKf5Sz RLjjz+GXXc5xHvuBvgwN8VA5xpfIXsAeTNXKYYDLjcJfTPFvDZ09VFXqWnOYW/pRkaLs +iuckg3z0uD4gDJQmr07oAv+nKL8PMvR1us6R3DSoa2wWtecFW/wX9OmjvEQxNf7/tLC fG9uunfnCNEKOkquvOirt9Yh+y8YBKjjhm8+pYWmZJw3EjJfXzAFsKgKVjytWcUVVvVp u2hg== 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=RCfXQMzytxhUb9qt/V7R2Xt/UmJlhGiQ+uT+Hl7Ou/E=; b=zsB2wXFa34pfHOjVISFTG0XjphD29wjkG2604UlDNvR5qchy734AQOLBcNZfndE2dF 44XwrTrLDgnwoy+PV8fQhgkKLbSGJTMaGLeXv6zzBMTkf4bU1JnX9Pg4oB4oVhAiDIn/ kElvQ4/yg9RP/FyHiJhJYGPNszWqdgLWaEnwBWL6GhdDEKvBQ+IhR69B95DHh+O0qG6U ZeROWuYFaPttxYqCD+7x/fzfJU9VlkH0ktOyUJuIqIWz9Hvo7XLp1TCWAox+UauQnERO KcWsfIaELGgi190u/HuPbK8Lus9Pn2qEF4J5ZwAmqc6kFH4FK8elHMEacvPu0yJWlB3u fQlQ== X-Gm-Message-State: AO0yUKU+8Av0dE3PE7qqtgZj+NWMXM7ckhhYX6uedok2tbeBJplvAtkq BWhqMjJ31qhmLaWf1ey/Uz1p6kRw5cU= X-Google-Smtp-Source: AK7set+6Tq5MN94WabzkENhFXW4MwMHIZRc5SmFKa9+SAGLBZDnhqYqzQT5SVAyIR7hj/sQUu4afqg== X-Received: by 2002:a17:906:d8c9:b0:878:7cf3:a9e7 with SMTP id re9-20020a170906d8c900b008787cf3a9e7mr32707072ejb.65.1677501224677; Mon, 27 Feb 2023 04:33:44 -0800 (PST) Received: from localhost.localdomain (dynamic-078-055-154-008.78.55.pool.telefonica.de. [78.55.154.8]) by smtp.gmail.com with ESMTPSA id oy26-20020a170907105a00b008b133f9b33dsm3092124ejb.169.2023.02.27.04.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 04:33:44 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Huacai Chen , Gerd Hoffmann , qemu-ppc@nongnu.org, Jiaxun Yang , BALATON Zoltan , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bernhard Beschow Subject: [PATCH v3 0/3] VT82xx PCI IRQ routing fixes Date: Mon, 27 Feb 2023 13:33:13 +0100 Message-Id: <20230227123316.18719-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::52d; envelope-from=shentey@gmail.com; helo=mail-ed1-x52d.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.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]. v3: * Remove superfluous if statement in patch 2 (Phil) 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 | 41 ++++++++++++++++++++++++++++++++++++++ hw/ppc/pegasos2.c | 6 ++++++ hw/usb/vt82c686-uhci-pci.c | 12 ----------- 3 files changed, 47 insertions(+), 12 deletions(-)