From patchwork Thu Jan 5 14:32:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernhard Beschow X-Patchwork-Id: 639266 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp262044pvb; Thu, 5 Jan 2023 06:45:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXudzcrtHh3dnwVR0jdLXEKgTi1Dyy4Dcyg1d5ygEDSX8MzXbW0xmOz7YJYmRjorsIF6JN2k X-Received: by 2002:ac8:5153:0:b0:3a7:e01d:e721 with SMTP id h19-20020ac85153000000b003a7e01de721mr81651621qtn.37.1672929927911; Thu, 05 Jan 2023 06:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672929927; cv=none; d=google.com; s=arc-20160816; b=p0k+jLob3h5MynjyYX2hzGbVlAczGfvnvdd6wjnCsf4WfRdrBjE1X9Fz3HeoiGV71Q guAlwQcQn+gRhMb0MGi93vrrMs0E2xo6oFxS2Vw+bmH70zHpJPqmDt9sDjMrEtLDKdjb rn6OloIHIA+HJFR5oMwGGMtCoFN6s/OShrO7E2MftviSVvgHt89++fpoym6koWdaw6xa bgE1Letoa+yiUNsRaXlF6hNkXtN7AB3GYaNwBqfGO9ydZCwLTsDbgaEWUmpPPMlgQ/6X D+eglCb3Zv17b6mNSrZl64uCsvhZ0lYnyiNuAG5ATBv3KoTbdvDSMmvQGJqA1WdPb2Bx wapQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YHtHVYo4NVUXU56/alQ0bH+UtHEiwYpVK/P9pel6Axs=; b=vJkw9Rj8S+oY0kiGD003iProLc9CLI224DyatSKZUxQeHrZMK+XQa79NXjd9i72KIc Zb2fb0dLMUEALIFSDQ542mqPon34xx44Fc1guPF+SeXevMN7aLGzblpL3sWoLCVyPxfr VrOONTIPYekq9rGqZlWBSl9Sq9mBoD1pOG9idSvSCQocVdGOnvZd8juqzpCPgfBU3XgG CrPOYEAKNh3UujKiumXHUBw3jIgI/EXYqIEUbIT1yRBq0Sf4tL1zHe0k8XYIFPciJ/jM 3y2FzPunQZZ94pM3UJuGtTxxg021CRTKC25ht1TL7O2XwfhcaSc+X+bc47+AdYnWG45N 3hzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aEY0wMTD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q26-20020ac8735a000000b0035cf7257231si19029534qtp.602.2023.01.05.06.45.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jan 2023 06:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aEY0wMTD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDRJG-0002q8-KA; Thu, 05 Jan 2023 09:33:34 -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 1pDRJ8-0002kh-Gf; Thu, 05 Jan 2023 09:33:26 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDRIt-0006tZ-QQ; Thu, 05 Jan 2023 09:33:13 -0500 Received: by mail-wr1-x42a.google.com with SMTP id s9so4301256wru.13; Thu, 05 Jan 2023 06:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YHtHVYo4NVUXU56/alQ0bH+UtHEiwYpVK/P9pel6Axs=; b=aEY0wMTD3YdxwZa42PTEvDVFsEWtmp3JmLE71V6hJX/g79gJjLAJiDlMBvVORvBye/ HqovYHDFSroGOaU82x23Kze0Kh2pe1BAbJwgWAwZaJESl4UAIta/z+czdJT2yPRBkjCK 0MoS+AZzaQDcmAmTVjql9dLTKx/9+ZOu8uKGAyWi498OSsJvO837WMpd68gM9IvFJvH/ rsYE97uOnVmtw8O9sYiN8fdYwzDfhachGYEwnJhCbSLDNnNI0beuRNtPpdvp5Dnn/3wF rc2z8rg/EHRoz2qDFKCx6dmMFifht/2Nk63dZFumKmm+z6AKyPC9/tLhDYjh72Ku3iYx L/zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YHtHVYo4NVUXU56/alQ0bH+UtHEiwYpVK/P9pel6Axs=; b=qVcoOlRj0FzQIFXfAnhMvf1w780fLAPd+AwdBqYEwDDAkXNojhBRa1ZSa1L8iFngXZ lNP/c7nL3tpmZYnMRjbt7gmIJx0odEqSQ2xvRylBIjEDtodsv/bXRWNvdjMlbhn7PPuV v+4hQ8JyNrE740oiI0pOdrXc1gxPXimWzLxqdSYrduC4GsPXR2QgaYp5txgl4d7xWpbg WZ8bR9+pocBNBl/w4G4F1wpOxkwQHRXWPBAtiDncA30TdXR6HWFukPdgTK73QYz9f0Hg ZF6rH45I1vIyCmevtY2fbh1/3CRDv71UK8r/2cNQ6optptIhzmHkOBxqK1uP6SmTGJgk qqtw== X-Gm-Message-State: AFqh2krj3iI3E41vSPGNgV9b6RlgspVGfrjpKQgn8OMF0r3t3CRvGrFw yrQmegJcugUJ0CZYZ0szA53W9fGzi7QWNA== X-Received: by 2002:a5d:58e6:0:b0:26f:aaff:e98c with SMTP id f6-20020a5d58e6000000b0026faaffe98cmr27427553wrd.27.1672929189308; Thu, 05 Jan 2023 06:33:09 -0800 (PST) Received: from osoxes.fritz.box (p200300faaf0bb2009c4947838afc41b6.dip0.t-ipconnect.de. [2003:fa:af0b:b200:9c49:4783:8afc:41b6]) by smtp.gmail.com with ESMTPSA id bt15-20020a056000080f00b00297dcfdc90fsm12260447wrb.24.2023.01.05.06.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 06:33:09 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Eduardo Habkost , qemu-block@nongnu.org, =?utf-8?q?Herv=C3=A9_Poussineau?= , Ani Sinha , Richard Henderson , Jiaxun Yang , Aurelien Jarno , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Paolo Bonzini , Igor Mammedov , Marcel Apfelbaum , John Snow , Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v5 03/31] hw/isa/piix4: Correct IRQRC[A:D] reset values Date: Thu, 5 Jan 2023 15:32:00 +0100 Message-Id: <20230105143228.244965-4-shentey@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105143228.244965-1-shentey@gmail.com> References: <20230105143228.244965-1-shentey@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=shentey@gmail.com; helo=mail-wr1-x42a.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé IRQRC[A:D] registers reset value is 0x80. We were forcing the MIPS Malta machine routing to be able to boot a Linux kernel without any bootloader. We now have these registers initialized in the Malta machine write_bootloader(), so we can use the correct reset values. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221027204720.33611-4-philmd@linaro.org> --- hw/isa/piix4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index eca96fb8f0..6e9434129d 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -91,10 +91,10 @@ static void piix4_isa_reset(DeviceState *dev) pci_conf[0x4c] = 0x4d; pci_conf[0x4e] = 0x03; pci_conf[0x4f] = 0x00; - pci_conf[0x60] = 0x0a; // PCI A -> IRQ 10 - pci_conf[0x61] = 0x0a; // PCI B -> IRQ 10 - pci_conf[0x62] = 0x0b; // PCI C -> IRQ 11 - pci_conf[0x63] = 0x0b; // PCI D -> IRQ 11 + pci_conf[0x60] = 0x80; + pci_conf[0x61] = 0x80; + pci_conf[0x62] = 0x80; + pci_conf[0x63] = 0x80; pci_conf[0x69] = 0x02; pci_conf[0x70] = 0x80; pci_conf[0x76] = 0x0c;