From patchwork Mon Aug 22 22:43:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Beschow X-Patchwork-Id: 1669078 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=qnMwOjPP; 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 4MBSCk0HG8z1yg7 for ; Tue, 23 Aug 2022 08:46:58 +1000 (AEST) Received: from localhost ([::1]:50590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQGC7-0003tM-SV for incoming@patchwork.ozlabs.org; Mon, 22 Aug 2022 18:46:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQGA5-0003rL-Ps; Mon, 22 Aug 2022 18:44:51 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:36428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQGA4-0007vX-4Q; Mon, 22 Aug 2022 18:44:49 -0400 Received: by mail-ed1-x52d.google.com with SMTP id w10so3662690edc.3; Mon, 22 Aug 2022 15:44:46 -0700 (PDT) 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; bh=eC+LI3IuRWQeGkdyetD6UVPAmmhZN9hfwRPTvBGefJk=; b=qnMwOjPP6UowC32QYWMoQeaZC4PtL9hA1hLNm/t0ICVWwuT79mFcj4jIkukU7VT3PQ oPV4BYkyQV17Stojk4Nckm0DrUM0PKlCN7qGzZYxZWN0LmOgEjXY1OsIOZZkMMgHVrXA Oa7sPEGOhtehGUMhmku67KVg1LoiMPrTRlFL0TxtBS6ke/VqaUNAlybfVa3oG7+jgGBH FNhecoSfWJpQ41wRLw9j/S6qH7GP+cckcocK7G1DHIg/DC9rrfARiHwPsN5dmWTagiG2 mtCeLuaXklL3AfAMuaqdc0KvWEdiZJkq7Q2QRTnE+VmqqgYxZFxFO6I5r8tzmMGgInPW cs+w== 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; bh=eC+LI3IuRWQeGkdyetD6UVPAmmhZN9hfwRPTvBGefJk=; b=X+YmeO3+W98UitDuK1euCDYd20x//VUYJAIe/BTX0zyZhEzSNDRFCTZkva8gS7WyPn q2zxOXw8URG1dUJqbwwbDVBqeCYHP98cLbQntxo7GLuvbiB0E5sNuWDM5t+b+wlqQY9g EMcaWBlD+eYMQTWk0PDz+9t+UOHmER8ORmT7OMe62fzW8Gvw8+8Gfc4XIa1xv881syg/ k45X3QcHNSJeoIw+Smnhw2wtITW/k+h98hcHvuEKjRa35z/ABuhjW5USvC+pGYGtnmhf RWAchaVUFfSd7278+GrjvzuA/4fwc5047ISzrAAsdbxU4X5Y/u0j6Y0/egC/h/BhK2h3 2WHw== X-Gm-Message-State: ACgBeo0INT9VuVHgESXLaw4vKYwNCXBlO6sLD4WKBbMUe1Usbt8A2a9Z ZJUEk/NtXvP1Fr/AFn9gIcLT5j5BR54= X-Google-Smtp-Source: AA6agR4n7heg2jY+MDKz8BF2TBYzupYGbhXCJSC/2apB3NwZMRbe8KYlvgnGLvvXkXLTbTa5z6Vldw== X-Received: by 2002:a05:6402:b5a:b0:446:7c00:2503 with SMTP id bx26-20020a0564020b5a00b004467c002503mr1047469edb.127.1661208285105; Mon, 22 Aug 2022 15:44:45 -0700 (PDT) Received: from localhost.localdomain (dynamic-077-183-070-107.77.183.pool.telefonica.de. [77.183.70.107]) by smtp.gmail.com with ESMTPSA id o4-20020a170906768400b0073d7b876621sm2455758ejm.205.2022.08.22.15.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 15:44:44 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Jiaxun Yang , BALATON Zoltan , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Huacai Chen , qemu-ppc@nongnu.org, Bernhard Beschow Subject: [PATCH 0/9] QOM'ify VT82xx devices Date: Tue, 23 Aug 2022 00:43:46 +0200 Message-Id: <20220822224355.11753-1-shentey@gmail.com> X-Mailer: git-send-email 2.37.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, T_SCC_BODY_TEXT_LINE=-0.01 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" This series instantiates all PCI functions of the VT82xx southbridges in the southbridges themselves. For the IDE function this is especially important since its interrupt routing is configured in the ISA function, hence doesn't make sense to instantiate it as a "Frankenstein" device. The interrupt routing is currently hardcoded and changing that is currently not in the scope of this series. Testing done: * `qemu-system-ppc -machine pegasos2 -rtc base=localtime -device ati-vga,guest_hwcursor=true,romfile="" -cdrom morphos-3.17.iso -kernel morphos-3.17/boot.img` Boots successfully and it is possible to open games and tools. * I was unable to test the fuloong2e board even before this series since it seems to be unfinished [1]. A buildroot-baked kernel [2] booted but doesn't find its root partition, though the issues could be in the buildroot receipt I created. [1] https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2 [2] https://github.com/shentok/buildroot/commits/fuloong2e Bernhard Beschow (9): hw/isa/vt82c686: QOM'ify Super I/O creation hw/isa/vt82c686: Resolve unneeded attribute hw/isa/vt82c686: Prefer pci_address_space() over get_system_memory() hw/isa/vt82c686: QOM'ify via-ide creation hw/isa/vt82c686: QOM'ify vt82c686b-usb-uhci creation hw/isa/vt82c686: QOM'ify pm creation hw/isa/vt82c686: QOM'ify ac97 and mc97 creation hw/isa/vt82c686: QOM'ify RTC creation hw/isa/vt82c686: Reuse errp configs/devices/mips64el-softmmu/default.mak | 1 - hw/isa/Kconfig | 1 + hw/isa/vt82c686.c | 119 +++++++++++++++---- hw/mips/fuloong2e.c | 12 +- hw/ppc/Kconfig | 1 - hw/ppc/pegasos2.c | 14 +-- 6 files changed, 99 insertions(+), 49 deletions(-)