From patchwork Mon Oct 22 17:35:57 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: 10652307 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 83A5213A4 for ; Mon, 22 Oct 2018 17:40:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85D5129154 for ; Mon, 22 Oct 2018 17:40:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79FA22918E; Mon, 22 Oct 2018 17:40:53 +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=-5.7 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 0831729170 for ; Mon, 22 Oct 2018 17:40:52 +0000 (UTC) Received: from localhost ([::1]:36431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEeCC-0000Xl-BL for patchwork-qemu-devel@patchwork.kernel.org; Mon, 22 Oct 2018 13:40:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEe7c-0005sx-2w for qemu-devel@nongnu.org; Mon, 22 Oct 2018 13:36:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEe7b-0002WV-FB for qemu-devel@nongnu.org; Mon, 22 Oct 2018 13:36:08 -0400 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:40393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEe7b-0002VT-6x; Mon, 22 Oct 2018 13:36:07 -0400 Received: by mail-lj1-x242.google.com with SMTP id t22-v6so297247lji.7; Mon, 22 Oct 2018 10:36:07 -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=9Y2gDLBxWq1i3BIXhcd34BHU8AEwLyYWTDyAu3LCjj4=; b=qLSABUtBp9Zbjv/3JbgQaVLkgjY6+iKAusZwEnGzsDtwSx7VecT+t31/fXjqaLO0r1 X0535IDDoAzn0wNiQ24QnomXPxXeqbjSGj6ahv1D5vxFCJGpwKVjyTQz7brk6RFMzh3M Pvwul/VfpV/Ojc9fYgq6ov6Sg0GIivw9f3rtu9dxEiqwsSDUCL7L4EnMssT79wCCwW7F a3Wd3+6K0KYkj2cfnCBszrnd+rFrjTBrm195pKx7/BOszZbGKOCQVu+zy7PhSHWYVF6H Q1ssI0LRyDmg9K7XmBo6OzW4NT23Hl4sE49J+cJWzgtUDbA/Ejq6jLnfnRdYhibRbPDF I2aQ== 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=9Y2gDLBxWq1i3BIXhcd34BHU8AEwLyYWTDyAu3LCjj4=; b=obqoeRF6DXtOMA3tVHt9hSHeATckoQjeB5YzkQZ+jzvWJEikrXjhYt4B/q9Ep8P06B mD8PpID+FYctGWgAwYgIfzdFUu0MvDg4oerdos0UCwk74s0U/z60N0XiWiOZRWo8ZdbB 7If6WRZlxN8Tu4nrBJ/3VqWeL0KGNB+nsyQ34bPJf48p6k3UETm39zaTXrmrZOqku15l CZdGtKUV2G2g7P4cjjD2FHPdmNBg1vXgy/DxEdy+oxvPJwUGsfj6wRbZAz7ikSKL3rCZ 4Yql6MWr4+xl3u7dqmO8xSpEoRz/i9QoKEvvux51z5u1ZOtLTu/dc+4ClJgQvuj6symm 5OxQ== X-Gm-Message-State: ABuFfoj3paZipAGKSKalBTR2d0/iGy5Mk/l3NnpzonCRny0SW89Pyhch Bb1PHyq7iq39U2ypwpgYnckSkpP/ X-Google-Smtp-Source: ACcGV625IQgojgH/Q2jP+CQ+9rZhRFh4QACw9JTEFSOGR7nFF9IgfGAnPt78wdGU6ZsagEzZCHCSTA== X-Received: by 2002:a2e:9955:: with SMTP id r21-v6mr13159211ljj.5.1540229765797; Mon, 22 Oct 2018 10:36:05 -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 a2-v6sm6775636lfi.23.2018.10.22.10.36.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 10:36:04 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Mon, 22 Oct 2018 19:35:57 +0200 Message-Id: <20181022173559.17111-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181022173559.17111-1-edgar.iglesias@gmail.com> References: <20181022173559.17111-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::242 Subject: [Qemu-devel] [PATCH v4 2/4] net: cadence_gem: Announce 64bit addressing support 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 64bit addressing support. Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- hw/net/cadence_gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 16a8455128..d95cc27f58 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -142,6 +142,7 @@ #define GEM_DESCONF4 (0x0000028C/4) #define GEM_DESCONF5 (0x00000290/4) #define GEM_DESCONF6 (0x00000294/4) +#define GEM_DESCONF6_64B_MASK (1U << 23) #define GEM_DESCONF7 (0x00000298/4) #define GEM_INT_Q1_STATUS (0x00000400 / 4) @@ -1300,7 +1301,7 @@ 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] = 0x0; + s->regs[GEM_DESCONF6] = GEM_DESCONF6_64B_MASK; if (s->num_priority_queues > 1) { queues_mask = MAKE_64BIT_MASK(1, s->num_priority_queues - 1);