From nobody Mon Apr 29 03:16:57 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=huawei.com ARC-Seal: i=1; a=rsa-sha256; t=1617353351; cv=none; d=zohomail.com; s=zohoarc; b=TqG43CjLoUdVSQg2l22kGVGCXX3cclvMsPMs5cPfknZUUkhTJOAZxyhN+8ZuPe9Mje33qadWF8kGiRtV+nUeddL6A9WaCJB1i7bc04Ajc6q6ijkJhKR92njT6plJ+ZyGpzrVqqqCcBpeGie68UA6YYo1OgfKsr8F5Bit+8ei7zM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617353351; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=yOZwuDKIU8q5RKDUlR1a7gZbm7aAMAjQ9LYFeSHkn8k=; b=RWMECrId2DS0AADkalu/r/AD61UNZpeqSaVFuksua8KA/L4jQ45HNTyPOPAjX0BTXVptw5XmraSoUEYFdRboUxzMOIfb+dZhT55dIlpQ5F/eEn3CsTKi0j5ElDU3Ebn/3IYuF8z6/JAMnRxS8y7l9Tts845lIbXeiL4J7tbg4pQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617353351567686.065163540057; Fri, 2 Apr 2021 01:49:11 -0700 (PDT) Received: from localhost ([::1]:39560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSFUM-00070w-Ji for importer@patchew.org; Fri, 02 Apr 2021 04:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSFTP-0006S3-Du; Fri, 02 Apr 2021 04:48:11 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:4061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSFTM-0006Yr-Ug; Fri, 02 Apr 2021 04:48:10 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FBYYb3MygzkhFT; Fri, 2 Apr 2021 16:46:11 +0800 (CST) Received: from DESKTOP-8RFUVS3.china.huawei.com (10.174.185.179) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Fri, 2 Apr 2021 16:47:47 +0800 From: Zenghui Yu To: , , , , , Subject: [PATCH] hw/arm/virt-acpi-build: Fix GSIV values of the {GERR, Sync} interrupts Date: Fri, 2 Apr 2021 16:47:31 +0800 Message-ID: <20210402084731.93-1-yuzenghui@huawei.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=45.249.212.32; envelope-from=yuzenghui@huawei.com; helo=szxga06-in.huawei.com 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zenghui Yu , wanghaibin.wang@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The GSIV values in SMMUv3 IORT node are not correct as they don't match the SMMUIrq enumeration, which describes the IRQ<->PIN mapping used by our emulated vSMMU. Fixes: a703b4f6c1ee ("hw/arm/virt-acpi-build: Add smmuv3 node in IORT table= ") Signed-off-by: Zenghui Yu Acked-by: Eric Auger --- hw/arm/virt-acpi-build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index f5a2b2d4cb..60fe2e65a7 100644 --- a/hw/arm/virt-acpi-build.c +++ b/hw/arm/virt-acpi-build.c @@ -292,8 +292,8 @@ build_iort(GArray *table_data, BIOSLinker *linker, Virt= MachineState *vms) smmu->flags =3D cpu_to_le32(ACPI_IORT_SMMU_V3_COHACC_OVERRIDE); smmu->event_gsiv =3D cpu_to_le32(irq); smmu->pri_gsiv =3D cpu_to_le32(irq + 1); - smmu->gerr_gsiv =3D cpu_to_le32(irq + 2); - smmu->sync_gsiv =3D cpu_to_le32(irq + 3); + smmu->sync_gsiv =3D cpu_to_le32(irq + 2); + smmu->gerr_gsiv =3D cpu_to_le32(irq + 3); =20 /* Identity RID mapping covering the whole input RID range */ idmap =3D &smmu->id_mapping_array[0]; --=20 2.19.1