From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGmAK-0003Lc-OB for qemu-devel@nongnu.org; Wed, 26 Sep 2012 03:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGmAJ-0000Qh-IH for qemu-devel@nongnu.org; Wed, 26 Sep 2012 03:36:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGmAJ-0000Of-9j for qemu-devel@nongnu.org; Wed, 26 Sep 2012 03:36:15 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8Q7aDUE013455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Sep 2012 03:36:14 -0400 From: Gerd Hoffmann Date: Wed, 26 Sep 2012 09:36:06 +0200 Message-Id: <1348644971-3490-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1348644971-3490-1-git-send-email-kraxel@redhat.com> References: <1348644971-3490-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 3/8] xhci: tweak limits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Set maxports to 15. This is what the usb3 route string can handle. Set maxslots to 64. This is more than the number of root ports we can have, but with additional hubs you can end up with more devices. Set maxintrs (aka msi vectors) to 16. Should be enougth, especially considering that vectors are a limited ressource. Linux guests use only three at the moment. Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index e0ca690..1414826 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -37,12 +37,12 @@ #define FIXME() do { fprintf(stderr, "FIXME %s:%d\n", \ __func__, __LINE__); abort(); } while (0) -#define MAXPORTS_2 8 -#define MAXPORTS_3 8 +#define MAXPORTS_2 15 +#define MAXPORTS_3 15 #define MAXPORTS (MAXPORTS_2+MAXPORTS_3) -#define MAXSLOTS MAXPORTS -#define MAXINTRS MAXPORTS +#define MAXSLOTS 64 +#define MAXINTRS 16 #define TD_QUEUE 24 -- 1.7.1