From patchwork Wed Oct 17 21:39:30 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: 10646095 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 AF21817D2 for ; Wed, 17 Oct 2018 21:41:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A19CF28A7C for ; Wed, 17 Oct 2018 21:41:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FE9128A86; Wed, 17 Oct 2018 21:41:21 +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=-6.0 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 4B67328A5D for ; Wed, 17 Oct 2018 21:41:21 +0000 (UTC) Received: from localhost ([::1]:39208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCtZA-00005W-BW for patchwork-qemu-devel@patchwork.kernel.org; Wed, 17 Oct 2018 17:41:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCtXk-0007II-Mj for qemu-devel@nongnu.org; Wed, 17 Oct 2018 17:39:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCtXj-00084r-DA for qemu-devel@nongnu.org; Wed, 17 Oct 2018 17:39:52 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:35216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCtXi-0007ti-LM; Wed, 17 Oct 2018 17:39:50 -0400 Received: by mail-lj1-x243.google.com with SMTP id o14-v6so25777844ljj.2; Wed, 17 Oct 2018 14:39:40 -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=pgsJnZDAs8eE26rzRUh4GTf1YCy3gr5D0kRsInnCwhRR6Uv9q1AXVZh/EiqVzjfP0+ ldHyWKy5apzqTro+U/G/IosMGLQEZ2PCOSVbYpW02dEq911BRN0yj1GfwycIuqPZVAme 2vxouwN22UQsNqGBwR7Mhv8tUez4kzxLGbDSSetBP8FEdQZzwXmsi9nKs3TGGV6zVall ZRXLvvzoqVNp9Ak3zFnN94wc8ZMxdKwATIpOmxYN2/Nvy8ahtWH1yu0kJkvRnLyXEbKs rdZbZVQVWKyZRcZp92t/4T7UvvEXXcHT6E4bTy+pxwmZAFRlUnLd29gbGdgswo8avs7P miMg== 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=NY5URBVXFD3ALMM5/XWDKzv1+MFQ6BxBL6AxhOczpSFjKd4Xa9xWYbkbANwWZ02mW1 iNPrsTa4VwZjIagIqOtjhFNXKj8Kz8x4E36bs8Zjze++jyVnKLDQALVPW01wXiSxw7bk EfHIU8Kn9cUwCJ0KurO6+DGlFrc7fnVTtYzqicgGtFdvLkqF1BpcfNEZMYl3Ciiq8FQp rC5qVAkNk1/fAt20sHud5QC+IgTp3QgF6mwYQnBpSRiciJ4NsVebv8wqOR1FnkD1tG4c UY1S/xstHlmTsZdEI9DbdBsSJyhYxKpic7sJYvcVEa/so5l/O072hhQt9PsqggMEQu08 YoaA== X-Gm-Message-State: ABuFfojetHWnXz3wR+652I+IIM9GJuECGCnHsQrD4e2Mxw8VNH5Tqp2j 00/gpy8hK2kOngC3O3Z8TCaU2Zqq X-Google-Smtp-Source: ACcGV60u5tzUcipXyQkRoU4JoO/AoO9Kwca12OKlFZ2eSstXnGOvSMCJEPX50cA5L1VvYXUlHb7kPg== X-Received: by 2002:a2e:810e:: with SMTP id d14-v6mr4761619ljg.170.1539812378786; Wed, 17 Oct 2018 14:39:38 -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 25-v6sm4115380lfv.43.2018.10.17.14.39.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 14:39:37 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Wed, 17 Oct 2018 23:39:30 +0200 Message-Id: <20181017213932.19973-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181017213932.19973-1-edgar.iglesias@gmail.com> References: <20181017213932.19973-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::243 Subject: [Qemu-devel] [PATCH v3 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);