Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp745513pxu; Fri, 11 Dec 2020 13:16:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyP4dKP0jG20M7A6c4r2w2B7K110oOYw5bvdxdE1kYYYu/CdKHDsE/qfJ9NmxsBuVebK8P/ X-Received: by 2002:a50:c40d:: with SMTP id v13mr13759150edf.1.1607721412294; Fri, 11 Dec 2020 13:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607721412; cv=none; d=google.com; s=arc-20160816; b=ov5aILZBZmSsWfnjkus5LPfWa1Ns/rl8xWmEei2BpDxJnOhHQ+6ZbVxeN/IuWB3l3a 52RQybImn3B8YhOiIKG+HfJ99RjbCRPXK7Ve1eGaoM9AjDt/+MrhnCfdeDJpvMP5aqFo P9IrMUeBUHBYW3lmQlplQ+IgCgZPHTkmublMgMO+h21P9z6N4h1PZ/B1ki1xkaHyqGyy yD6Uu6ySwOdACyegRVa84M6zDq3KI5EjpemrZqN0ajPbUzKk2Beoh5Ty8O9MC+kcmQ82 xPfRa8Jf4mL/1QjkLF9GJXL0ShRd5rYh6gCwNPuxfzQSkdyyz8BAQyK83HcyWTmlc6/S 8Xqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=84aBe9arNRkBtKpBgUjXjMl1ksdWqaMQ0bWGhcFF7Jk=; b=J/rVO3EVAFicpRGyjOSC3CWl4ZpSDnEAI/z3byikw7vWxWMvTmUY39C/GWydgSXwmY c/AhUzK8geuxjFF8emNW+Dx9K9NA7+kwBA2aq0VyGXbgzba+0MJxjIXbOcb5K2oKaYGn NzLjPZamAAfBDzJD1IMpFM27SpowSvjJ0I3TnX0VzyIj21Pm0uHM+P45teaA3EJRyOt4 varVUIyBeSosAM/o1Ts94/XpF4gK+qv1hy87kWQYs2PY7amAzM7o6UKID5hrHRSG1Val gZgHO/JZ/s6TqKAB8nBvVO298FdR7H1r+UUYdL+vIyqPJIFNHtReCa8OlnwpXOYjqydP K2bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si5757007edp.294.2020.12.11.13.16.30; Fri, 11 Dec 2020 13:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390374AbgLJT1v (ORCPT + 99 others); Thu, 10 Dec 2020 14:27:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:38456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727700AbgLJOa1 (ORCPT ); Thu, 10 Dec 2020 09:30:27 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerry Snitselaar , Suravee Suthikulpanit , Will Deacon Subject: [PATCH 4.9 36/45] iommu/amd: Set DTE[IntTabLen] to represent 512 IRTEs Date: Thu, 10 Dec 2020 15:26:50 +0100 Message-Id: <20201210142604.134660122@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210142602.361598591@linuxfoundation.org> References: <20201210142602.361598591@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suravee Suthikulpanit commit 4165bf015ba9454f45beaad621d16c516d5c5afe upstream. According to the AMD IOMMU spec, the commit 73db2fc595f3 ("iommu/amd: Increase interrupt remapping table limit to 512 entries") also requires the interrupt table length (IntTabLen) to be set to 9 (power of 2) in the device table mapping entry (DTE). Fixes: 73db2fc595f3 ("iommu/amd: Increase interrupt remapping table limit to 512 entries") Reported-by: Jerry Snitselaar Signed-off-by: Suravee Suthikulpanit Reviewed-by: Jerry Snitselaar Link: https://lore.kernel.org/r/20201207091920.3052-1-suravee.suthikulpanit@amd.com Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/amd_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -3661,7 +3661,7 @@ static struct irq_chip amd_ir_chip; #define DTE_IRQ_PHYS_ADDR_MASK (((1ULL << 45)-1) << 6) #define DTE_IRQ_REMAP_INTCTL (2ULL << 60) -#define DTE_IRQ_TABLE_LEN (8ULL << 1) +#define DTE_IRQ_TABLE_LEN (9ULL << 1) #define DTE_IRQ_REMAP_ENABLE 1ULL static void set_dte_irq_entry(u16 devid, struct irq_remap_table *table)