From patchwork Fri Jan 22 16:09:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 571733 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2F2DB1402DD for ; Sat, 23 Jan 2016 03:09:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=BRvc3Kmy; dkim-atps=neutral Received: from localhost ([::1]:54481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMeHb-0003sB-TR for incoming@patchwork.ozlabs.org; Fri, 22 Jan 2016 11:09:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMeHK-0003XV-NZ for qemu-devel@nongnu.org; Fri, 22 Jan 2016 11:09:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMeHJ-00030p-P4 for qemu-devel@nongnu.org; Fri, 22 Jan 2016 11:09:38 -0500 Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:35437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMeHF-00030I-GM; Fri, 22 Jan 2016 11:09:33 -0500 Received: by mail-ig0-x231.google.com with SMTP id t15so152453354igr.0; Fri, 22 Jan 2016 08:09:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; bh=7vFzdgr4SDJTPagQ3436ADNqgXm9h+vPhvNQvwCKeVE=; b=BRvc3Kmyuk0+4FDkINCrtYkDfTfxA3X0jWsI4gBY2lRv4KIxe513I4UnDB2By1RWC3 yxR8M07aoZWoLNhiVlp8Ayt1vFIYAlWDVdXcnKMD+4SFfxq6sosjZlqDvuz6P2VhRXFV PgpCluRb0PLaT3+n4KzOQ9n7Q39dW52TJVc5rEIBX8KTijar+AUieznAnJLr3RQ8CgFI z+6dX/LWx+oNxGSb0bk3Xzoe0WszjSvYLHuV9FET1hGcnM95JsCs98NPPJP7bIudCkuJ PBP4hAZAnfOIgLhT11qcImuaFgLYfy2G9Mi+AC/wrrNB6j8HUglHTdZc1uT1t/hrM1kJ k0/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:date:message-id:cc:to:mime-version; bh=7vFzdgr4SDJTPagQ3436ADNqgXm9h+vPhvNQvwCKeVE=; b=CuEodVo/KxOHRNJ0E7MC7+CMXjyfS5LHSo8l1q4tgFcWsubDy0/F1TwQMfaEB3s6yV ifIx7DMkCS+2yeIu75TebaC+D+H5ZpQ5hILSJuUfmWO30fnK1S2bIrBlHb97/o4DvM0k 4j3mu6yntMR+/nQTlS65SFbcKUoi+ROWoF3enb5oShdk/e1Lb4o2ErqUA1lUri3h1ZZq NufpUhpF6e62D4gVjQm5SM6bkoa/oYLO5GQSlofVJBhvO3Z7GfRdRTKYhKSe0mrDyH6k 7dMtYEEoCd0Wr7l+lnirVOvZpqpNmzT8MMkf+hsNayO00Lu7QRs5PrXfFfnj7IcU5RVm rPDw== X-Gm-Message-State: AG10YOT7a9SqPVAObVFA+XRHgWWfJp8bV1zPQNxjOMV8zpIPU0ZfeTmnrco4ewTlIJoRcw== X-Received: by 10.50.13.102 with SMTP id g6mr4567399igc.77.1453478972646; Fri, 22 Jan 2016 08:09:32 -0800 (PST) Received: from [192.168.0.3] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id qr1sm1497377igb.21.2016.01.22.08.09.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 08:09:31 -0800 (PST) From: Programmingkid Date: Fri, 22 Jan 2016 11:09:23 -0500 Message-Id: <96510826-2FD7-4967-9BEC-746DB44A81F8@gmail.com> To: Alexander Graf , david@gibson.dropbear.id.au, Mark Cave-Ayland Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c05::231 Cc: "qemu-ppc@nongnu.org list:PowerPC" , qemu-devel qemu-devel Subject: [Qemu-devel] [PATCH] hw/pci-host/uninorth.c: Add support for Apple's PCI bridge register 0x48 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 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 Apple has custom PCI bridge registers that are not a part of any known standard. This patch implements register 0x48. With this patch the AppleMacRiscPCI kernel extension no longer prints these error messages for the mac99 target: AppleMacRiscPCI: bad range 2(80000000:01000000) AppleMacRiscPCI: bad range 2(81000000:00001000) AppleMacRiscPCI: bad range 2(81080000:00080000) Signed-off-by: John Arbuckle Tested-by: Mark Cave-Ayland --- hw/pci-host/uninorth.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c index 215b64f..6541b10 100644 --- a/hw/pci-host/uninorth.c +++ b/hw/pci-host/uninorth.c @@ -330,6 +330,10 @@ static void unin_agp_pci_host_realize(PCIDevice *d, Error **errp) d->config[0x0C] = 0x08; // cache_line_size d->config[0x0D] = 0x10; // latency_timer // d->config[0x34] = 0x80; // capabilities_pointer + d->config[0x48] = 0x0; + d->config[0x49] = 0x0; + d->config[0x4a] = 0x0; + d->config[0x4b] = 0x1; } static void u3_agp_pci_host_realize(PCIDevice *d, Error **errp)