From nobody Fri May 3 18:38:22 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 ARC-Seal: i=1; a=rsa-sha256; t=1606185551; cv=none; d=zohomail.com; s=zohoarc; b=cvKfHQG1zpi+sOIFVHqZYA3OaFR2wpa9xRJQZKo95vc1LDSqiAIO5XNqTsxR3YCF04DZ/F33LNYI6Xomswc3fL/TE+9pymkx4lsELxyslYx4AyeEnkMtb4yLHPO34qe0Maxz8gHQicVghJwFLS0xYJWiHx2AWCWNwQVAqKWlWRw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606185551; 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=CQgIRv4Jk09uTDjRLtjA0/a/WCW0uXnL86jUXFzWt/c=; b=UY2q0EOiDmvo1tqwb21g6EaQxr8tdML85Yz2Gs3JPqeO1VfYyQ/qqDMMlpnscENxrZnyfdjY2VAgefYd6Zznxmg1R467c4/D05mBKJFTT1TaQrKsUL0sgPzs/+HxRziOwy9t6EI5pjhpidk9U/eVuqVz+SgQM2/wnsW/ScTpLDg= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606185551555354.59079582377956; Mon, 23 Nov 2020 18:39:11 -0800 (PST) Received: from localhost ([::1]:33804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khOEX-0007DU-OU for importer@patchew.org; Mon, 23 Nov 2020 21:39:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khODO-0006kb-Ny; Mon, 23 Nov 2020 21:37:58 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khODL-0001Rm-DO; Mon, 23 Nov 2020 21:37:58 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cg7TX0s1fzhgSx; Tue, 24 Nov 2020 10:37:20 +0800 (CST) Received: from DESKTOP-6NKE0BC.china.huawei.com (10.174.185.137) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 24 Nov 2020 10:37:28 +0800 From: Kunkun Jiang To: Eric Auger , Peter Maydell , "open list:ARM SMMU" , "open list:All patches CC here" Subject: [PATCH] hw/arm/smmuv3: Fix up L1STD_SPAN decoding Date: Tue, 24 Nov 2020 10:37:11 +0800 Message-ID: <20201124023711.1184-1-jiangkunkun@huawei.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.185.137] 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.191; envelope-from=jiangkunkun@huawei.com; helo=szxga05-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_H2=-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: wanghaibin.wang@huawei.com, Kunkun Jiang , Keqian Zhu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Accroding to the SMMUv3 spec, the SPAN field of Level1 Stream Table Descriptor is 5 bits([4:0]). Fixes: 9bde7f0674f(hw/arm/smmuv3: Implement translate callback) Signed-off-by: Kunkun Jiang Acked-by: Eric Auger --- hw/arm/smmuv3-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/smmuv3-internal.h b/hw/arm/smmuv3-internal.h index fa3c088972..b6f7e53b7c 100644 --- a/hw/arm/smmuv3-internal.h +++ b/hw/arm/smmuv3-internal.h @@ -633,6 +633,6 @@ static inline uint64_t l1std_l2ptr(STEDesc *desc) return hi << 32 | lo; } =20 -#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 4)) +#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 5)) =20 #endif --=20 2.23.0