Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp502136pxb; Tue, 3 Nov 2020 05:25:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8w7F0AQZ6y56Fro7ctB1rZkjWqLCrrdkHBh1sfIC3shuSqJau897kVmgrvnJCCCOSi6uE X-Received: by 2002:a17:906:f98d:: with SMTP id li13mr14050163ejb.307.1604409949844; Tue, 03 Nov 2020 05:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604409949; cv=none; d=google.com; s=arc-20160816; b=FbtK0GogLVdlGLINcwkIsxJh/wBzf1X+z9ez8J6pRPUg6DY1iDvOLYe/iUiJRCtgS5 NVKuyDrwPr2izBzWLeavsEdfpsUdFgw1AnykCWggIuMCXJL8x/GYe2GUqmx9Ik+rG+nu fQkYetJukZ2JhTd47T+wzN13urtzy4q2z7SycK61HwEu4iZJVpP/Drwdf8ZU7JoZ+Dky kdMilwBsTr+kXE7XmHjrirQehsIm3ny6w92Ufbw5GCxOAJLFEeys5UtUZL9bI7GV/No+ vYAfY9KFY0XzX+H52Af1nxF7NHGGK+rH2GYE1JjJpZvNbzhNhKAf8/DI3gkvLbZJ/gS5 jAGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=BQMZnu1KakeQAIcjqlW1EZODgOYzzZtorHN8FyQwDOI=; b=kwSz5YYTvfSnRDK6R3O/5Aml0092LQCNuK+vCmGBMWh3OP9hKHnWSNh6Dyh7v3lzKl 2GknwOng9EPa+NEqRKA8x/trscljZz/zf0auSaVQI3H77VLst9G6kszmFFFsqd52LoP+ wlZlPp/5Fd7VflmUj1i3c9vrTffN4p+zJ3L0d0JiqfMfyrM8iFPx4NUQuJN99A6V+7g9 JLoL95GxFGxehmcPI8/s0mZxaNEv/EYHtRu7A2PRcSFpeRIQhBdBVXJQ2KoJsct8xjUH e9L+frC6OJart6U0Rb634gdpMpGaEMZ2mFAb5X3ZRa7J6/8CVlt6dL52gngn69l/pTXI oHoA== 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 63si5632942edb.454.2020.11.03.05.25.27; Tue, 03 Nov 2020 05:25:49 -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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729164AbgKCNVh (ORCPT + 99 others); Tue, 3 Nov 2020 08:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729133AbgKCNVh (ORCPT ); Tue, 3 Nov 2020 08:21:37 -0500 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3616C0613D1 for ; Tue, 3 Nov 2020 05:21:36 -0800 (PST) Received: by theia.8bytes.org (Postfix, from userid 1000) id 517183A5; Tue, 3 Nov 2020 14:21:35 +0100 (CET) Date: Tue, 3 Nov 2020 14:21:34 +0100 From: Joerg Roedel To: Suravee Suthikulpanit Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH] iommu/amd: Increase interrupt remapping table limit to 512 entries Message-ID: <20201103132133.GF22888@8bytes.org> References: <20201015025002.87997-1-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201015025002.87997-1-suravee.suthikulpanit@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15, 2020 at 02:50:02AM +0000, Suravee Suthikulpanit wrote: > Certain device drivers allocate IO queues on a per-cpu basis. > On AMD EPYC platform, which can support up-to 256 cpu threads, > this can exceed the current MAX_IRQ_PER_TABLE limit of 256, > and result in the error message: > > AMD-Vi: Failed to allocate IRTE > > This has been observed with certain NVME devices. > > AMD IOMMU hardware can actually support upto 512 interrupt > remapping table entries. Therefore, update the driver to > match the hardware limit. > > Please note that this also increases the size of interrupt remapping > table to 8KB per device when using the 128-bit IRTE format. > > Signed-off-by: Suravee Suthikulpanit > --- > drivers/iommu/amd/amd_iommu_types.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied for 5.10, thanks.