From patchwork Thu Oct 11 02:19:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10635651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA24E15E2 for ; Thu, 11 Oct 2018 02:24:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A790F2AF24 for ; Thu, 11 Oct 2018 02:24:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B552AF31; Thu, 11 Oct 2018 02:24:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FSL_HELO_FAKE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 547222AF28 for ; Thu, 11 Oct 2018 02:24:17 +0000 (UTC) Received: from localhost ([::1]:59983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAQe8-0005mY-Iw for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Oct 2018 22:24:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAQZg-00028m-4o for qemu-devel@nongnu.org; Wed, 10 Oct 2018 22:19:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAQZd-0004KB-Pi for qemu-devel@nongnu.org; Wed, 10 Oct 2018 22:19:40 -0400 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:35899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAQZd-0004Jd-He; Wed, 10 Oct 2018 22:19:37 -0400 Received: by mail-lf1-x144.google.com with SMTP id d4-v6so5480780lfa.3; Wed, 10 Oct 2018 19:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wQ033kISS2KsCWH3vuSZoNhCRQlAdDq8kj54pJg4qpA=; b=PPNmK3KjrNmGLAl72WRFpP/1ckZiW5TutFPQhQJNb2JkJWprW4s6Ir/Ew4AyyyvLjh 3vISyjUXRwaii0DdMAWtw02jzff8ht/C9WMShRraNixWYQXfaO/BZANrna/tic093yMG hZjX2luOPhA/uTxPu10ABHMpY1U1PA7bmOssXTX4F4s/zj6k6tr0Jm5wETW5ZgRVNQhe jyVkGZFZg6HBWa/3IMRccduOeEuouvNpGYMcE9vyCO+NULR2pRbMlPcwRI5+YOMxzGBB hNejH8Bq/TyAspBdUqvtlGB+eC3Aq+n90hCqa42MDAyFxvvl5oigRl8mfoh9iQWG7CFs q1MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wQ033kISS2KsCWH3vuSZoNhCRQlAdDq8kj54pJg4qpA=; b=LGwubprJpiXpvArYc1+FExz2beGh+jiTyzv1RTquVgPzC/zAse2i2Msseec5ayW50w 49Pp0gvbXNEzazz6jAv8A62owQ+QWTv61vzD3y0I8xZzhraoIrPTcoUv6UL149enWQtj wM9t9rvPAlh0lQtZ+y+1Fqp5mPHqvqxLuYxLneCefm5yyc8B2cy3mkK4gBz99rsc6alH KL2qAzox9He0eAgOkY+qWja8k3Q4aUP5wHpJBAYrOADVRsQviWjc+BMoCCUJjtPScLq2 v0NwZ54T/CvwxvLuJpRzUwJoX0baUJok+ptlW/6ri+xaZHz8Yvc8zGtvvTbkvfZB/Ec+ Bc4A== X-Gm-Message-State: ABuFfohNaoZXCu4f5+8yekBEtsudtVelmVm9SZncxAt4+0jkG4+P8Me3 oDBEtnroiJQdYkUaH7fhYvJufD6p/BM= X-Google-Smtp-Source: ACcGV60HBF0bb/jbeTIcydqahLCRXlCNxWwwWi4+BhI7JeKsVa/zjJiAH/Molsq1t8rJvRar/0Voeg== X-Received: by 2002:a19:3bcf:: with SMTP id d76-v6mr18989086lfl.126.1539224375885; Wed, 10 Oct 2018 19:19:35 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id k23-v6sm5691008ljc.49.2018.10.10.19.19.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 19:19:34 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Thu, 11 Oct 2018 04:19:21 +0200 Message-Id: <20181011021931.4249-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181011021931.4249-1-edgar.iglesias@gmail.com> References: <20181011021931.4249-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::144 Subject: [Qemu-devel] [PATCH v2 02/12] net: cadence_gem: Announce availability of priority queues X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: figlesia@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, edgar.iglesias@xilinx.com, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com, philmd@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Announce the availability of the various priority queues. This fixes an issue where guest kernels would miss to configure secondary queues due to inproper feature bits. Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- hw/net/cadence_gem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index e560b7a142..901c173970 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -1213,6 +1213,7 @@ static void gem_reset(DeviceState *d) int i; CadenceGEMState *s = CADENCE_GEM(d); const uint8_t *a; + uint32_t queues_mask; DB_PRINT("\n"); @@ -1229,7 +1230,10 @@ static void gem_reset(DeviceState *d) s->regs[GEM_DESCONF] = 0x02500111; s->regs[GEM_DESCONF2] = 0x2ab13fff; s->regs[GEM_DESCONF5] = 0x002f2045; - s->regs[GEM_DESCONF6] = 0x00000200; + s->regs[GEM_DESCONF6] = 0x0; + + queues_mask = MAKE_64BIT_MASK(1, s->num_priority_queues - 1); + s->regs[GEM_DESCONF6] |= queues_mask; /* Set MAC address */ a = &s->conf.macaddr.a[0];