From patchwork Sat Jun 13 00:54:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 1308578 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=none (p=none dis=none) header.from=eik.bme.hu 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 ozlabs.org (Postfix) with ESMTPS id 49kKKM0kvNz9s1x for ; Sat, 13 Jun 2020 11:10:45 +1000 (AEST) Received: from localhost ([::1]:48308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjuh0-0006eb-44 for incoming@patchwork.ozlabs.org; Fri, 12 Jun 2020 21:10:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjugX-0006eO-1W for qemu-devel@nongnu.org; Fri, 12 Jun 2020 21:10:13 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]:45859) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjugT-0001cD-Vi for qemu-devel@nongnu.org; Fri, 12 Jun 2020 21:10:12 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 3D685748DD1; Sat, 13 Jun 2020 03:10:03 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 139D574633F; Sat, 13 Jun 2020 03:10:03 +0200 (CEST) Message-Id: From: BALATON Zoltan Subject: [PATCH 0/2] Mac Old World ROM experiment Date: Sat, 13 Jun 2020 02:54:59 +0200 MIME-Version: 1.0 To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org X-Spam-Probability: 8% Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/12 21:10:03 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Howard Spoelstra , Mark Cave-Ayland , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Based on https://github.com/dingusdev/dingusppc this series allows experimenting with binary ROM image from a G3 beige machine. It does not get very far though. Running with -bios 78F57389.rom -d unimp,guest_errors -trace enable="pci*" | uniq -c I get the logs below and hangs reading the last reg. It seems to expect macio to be mapped at 0xf3000000 (also confirmed by comments in https://github.com/dingusdev/dingusppc/blob/master/devices/macio.h and some logs I've found on-line) but I don't see where it would set this up so maybe this needs to be mapped by default there? Regards, BALATON Zoltan 1 pci_cfg_read grackle 00:0 @0x0 -> 0x21057 1 pci_cfg_read grackle 00:0 @0xa8 -> 0x0 1 pci_cfg_write grackle 00:0 @0xa8 <- 0x40e0c 1 pci_cfg_read grackle 00:0 @0xac -> 0x0 1 pci_cfg_write grackle 00:0 @0xac <- 0x12000000 1 pci_cfg_read grackle 00:0 @0xac -> 0x12000000 1 pci_cfg_write grackle 00:0 @0xac <- 0x2000000 1 pci_cfg_read grackle 00:0 @0x70 -> 0x0 1 pci_cfg_write grackle 00:0 @0x70 <- 0x11000000 1 machine_id_read(0, 2) 1 pci_cfg_read grackle 00:0 @0x8 -> 0x6000140 1 pci_cfg_read grackle 00:0 @0xf0 -> 0x0 1 pci_cfg_write grackle 00:0 @0xf0 <- 0x12900000 1 Unassigned mem write 00000000f3000024 = 0x80000000 1 Unassigned mem write 00000000f3000028 = 0xffffffff 1 Unassigned mem write 00000000f3000038 = 0x33eff3a 1 Unassigned mem write 00000000f3000038 = 0x1befffa 1 machine_id_read(0, 2) 1 Unassigned mem read 00000000f3000038 1 Unassigned mem write 00000000f3000038 = 0xc000010 1 Unassigned mem write 00000000f3017e00 = 0x10 1 Unassigned mem write 00000000f3016600 = 0x58 1 Unassigned mem write 00000000f3016000 = 0x38 1 Unassigned mem write 00000000f3016400 = 0x30 1 Unassigned mem write 00000000f3017800 = 0x0 1 Unassigned mem write 00000000f3017600 = 0x1c 1 Unassigned mem write 00000000f3017c00 = 0x7f 1 Unassigned mem read 00000000f3017600 1 Unassigned mem write 00000000f3017600 = 0x0 1 Unassigned mem write 00000000f3017c00 = 0x84 1 Unassigned mem read 00000000f3016000 1 Unassigned mem write 00000000f3016000 = 0x30 3138 Unassigned mem read 00000000f3016000 6627 Unassigned mem read 00000000f3017a00 1 Unassigned mem read 00000000f3016000 1 Unassigned mem write 00000000f3016000 = 0x10 6681 Unassigned mem read 00000000f3016000 6710 Unassigned mem read 00000000f3017a00 6710 Unassigned mem read 00000000f3016000 6600 Unassigned mem read 00000000f3017a00 5543 Unassigned mem read 00000000f3016000 1 Unassigned mem read 00000000f3000034 1 Unassigned mem read 00000000f3016000 1 Unassigned mem write 00000000f3016000 = 0x30 1234 Unassigned mem read 00000000f3016000 1195 Unassigned mem read 00000000f3017a00 1 Unassigned mem read 00000000f3017400 1 Unassigned mem read 00000000f3016000 1 Unassigned mem write 00000000f3016000 = 0x0 1 Unassigned mem read 00000000f3016000 5441 Unassigned mem read 00000000f3017a00 6820 Unassigned mem read 00000000f3016000 6710 Unassigned mem read 00000000f3017a00 5439 Unassigned mem read 00000000f3016000 1 pci_cfg_write grackle 00:0 @0x80 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x88 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x90 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x98 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x84 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x8c <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x94 <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0x9c <- 0xffffffff 1 pci_cfg_write grackle 00:0 @0xa0 <- 0x0 1 pci_cfg_read grackle 00:0 @0xf0 -> 0x12900000 1 pci_cfg_write grackle 00:0 @0xf0 <- 0x12900000 1 machine_id_read(0, 2) 1 pci_cfg_read grackle 00:0 @0x8 -> 0x6000140 1 pci_cfg_read grackle 00:0 @0xf0 -> 0x12900000 1 pci_cfg_write grackle 00:0 @0xf0 <- 0x12940000 1 pci_cfg_write grackle 00:0 @0xf0 <- 0x12940000 1 pci_cfg_write grackle 00:0 @0xf4 <- 0x40010fe4 1 pci_cfg_write grackle 00:0 @0xf8 <- 0x7302293 1 pci_cfg_write grackle 00:0 @0xfc <- 0x25302220 1 pci_cfg_read grackle 00:0 @0xa0 -> 0x0 1 pci_cfg_write grackle 00:0 @0xa0 <- 0x67000000 1 pci_cfg_read grackle 00:0 @0xf0 -> 0x12940000 1 pci_cfg_write grackle 00:0 @0xf0 <- 0x129c0000 545701 Unassigned mem read 00000000f3014020 1 Unassigned mem write 00000000f30723f0 = 0x1c 1 Unassigned mem write 00000000f30723e0 = 0x42 1 Unassigned mem write 00000000f30723d0 = 0xf0 1 Unassigned mem write 00000000f30723c0 = 0xff 1 Unassigned mem write 00000000f3013020 = 0x9 1 Unassigned mem write 00000000f3013020 = 0xc0 1 Unassigned mem write 00000000f3013020 = 0xd 1 Unassigned mem write 00000000f3013020 = 0x0 1 Unassigned mem write 00000000f3013020 = 0xc 1 Unassigned mem write 00000000f3013020 = 0xa 1 Unassigned mem write 00000000f3013020 = 0xe 1 Unassigned mem write 00000000f3013020 = 0x1 1 Unassigned mem write 00000000f3013020 = 0xb 1 Unassigned mem write 00000000f3013020 = 0x50 1 Unassigned mem write 00000000f3013020 = 0x5 1 Unassigned mem write 00000000f3013020 = 0xea 1 Unassigned mem write 00000000f3013020 = 0x4 1 Unassigned mem write 00000000f3013020 = 0x44 1 Unassigned mem write 00000000f3013020 = 0x3 1 Unassigned mem write 00000000f3013020 = 0xc1 806156 Unassigned mem read 00000000f3013020 BALATON Zoltan (2): mac_oldworld: Allow loading binary ROM image mac_oldworld: Add machine ID register hw/ppc/mac_oldworld.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-)