All of lore.kernel.org
 help / color / mirror / Atom feed
From: Song Gao <gaosong@loongson.cn>
To: qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org, stefanha@gmail.com,
	Xiaojuan Yang <yangxiaojuan@loongson.cn>
Subject: [PULL 7/9] hw/loongarch: Fix acpi ged irq number in dsdt table
Date: Mon, 19 Sep 2022 20:48:59 +0800	[thread overview]
Message-ID: <20220919124901.2653396-8-gaosong@loongson.cn> (raw)
In-Reply-To: <20220919124901.2653396-1-gaosong@loongson.cn>

From: Xiaojuan Yang <yangxiaojuan@loongson.cn>

In dsdt, acpi ged irq should use gsi number, and the
VIRT_SCI_IRQ means it.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20220908094623.73051-8-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
 hw/loongarch/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/loongarch/acpi-build.c b/hw/loongarch/acpi-build.c
index d0f01a6485..95e30975a8 100644
--- a/hw/loongarch/acpi-build.c
+++ b/hw/loongarch/acpi-build.c
@@ -367,7 +367,7 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, MachineState *machine)
     if (lams->acpi_ged) {
         build_ged_aml(dsdt, "\\_SB."GED_DEVICE,
                       HOTPLUG_HANDLER(lams->acpi_ged),
-                      VIRT_SCI_IRQ - PCH_PIC_IRQ_OFFSET, AML_SYSTEM_MEMORY,
+                      VIRT_SCI_IRQ, AML_SYSTEM_MEMORY,
                       VIRT_GED_EVT_ADDR);
     }
 
-- 
2.31.1



  parent reply	other threads:[~2022-09-19 12:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-19 12:48 [PULL 0/9] loongarch-to-apply queue Song Gao
2022-09-19 12:48 ` [PULL 1/9] hw/loongarch: Remove vga device when loongarch init Song Gao
2022-09-19 12:48 ` [PULL 2/9] hw/loongarch: Support fw_cfg dma function Song Gao
2022-09-19 12:48 ` [PULL 3/9] hw/loongarch: Add interrupt information to FDT table Song Gao
2022-09-19 12:48 ` [PULL 4/9] hw/loongarch: Add platform bus support Song Gao
2022-09-19 12:48 ` [PULL 5/9] hw/loongarch: Add hotplug handler for machine Song Gao
2022-09-19 12:48 ` [PULL 6/9] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list Song Gao
2022-09-19 12:48 ` Song Gao [this message]
2022-09-19 12:49 ` [PULL 8/9] hw/loongarch: Support memory hotplug Song Gao
2022-09-19 12:49 ` [PULL 9/9] hw/loongarch: Improve acpi dsdt table Song Gao
2022-09-19 16:54 ` [PULL 0/9] loongarch-to-apply queue Stefan Hajnoczi
2022-09-19 17:39 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220919124901.2653396-8-gaosong@loongson.cn \
    --to=gaosong@loongson.cn \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=stefanha@gmail.com \
    --cc=yangxiaojuan@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.