From patchwork Thu Oct 11 02:19:27 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: 10635653 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 2500B16B1 for ; Thu, 11 Oct 2018 02:24:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 027022AF24 for ; Thu, 11 Oct 2018 02:24:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0088B2AF3C; Thu, 11 Oct 2018 02:24:23 +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 9E92A2AF24 for ; Thu, 11 Oct 2018 02:24:23 +0000 (UTC) Received: from localhost ([::1]:59984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAQeE-0005pq-Sd for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Oct 2018 22:24:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAQZs-0002EI-3T for qemu-devel@nongnu.org; Wed, 10 Oct 2018 22:19:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAQZn-0004Pw-Sk for qemu-devel@nongnu.org; Wed, 10 Oct 2018 22:19:50 -0400 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:42663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAQZn-0004PM-Jr; Wed, 10 Oct 2018 22:19:47 -0400 Received: by mail-lj1-x242.google.com with SMTP id y71-v6so6732192lje.9; Wed, 10 Oct 2018 19:19:47 -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=P8bE42secDzNCihtZNXaoNcRaMh9z1Mn+JR1meIGCf4=; b=UgjLqKnSmqWrWKb6Z0ekUK4KzllyG3/jA4Hb/FrT336weT1AV2kiGHXXHj183+i/Oy 1TKD+rqjjSSBUXlCxggj07qdTDf89RSp6xyvDokbArtGkDLRYYDt1cFTiccE1mgCQIa7 I7QLNj2icIqsVuqVQR5thg+UiTPNqEj8xRcoRhUP5ZVUsjLW7Gz3lY3Py/h3zbsm1Iq9 gqaBvH7deS8QaPZ8Ueyyhcc5trDLzk/+LxMH+R7iztv0ZlAASKlh2WDTXkiVw1ymMnyl y8ke6Rm4mlWuG1wPXnOyzf5gWClujLBSpmIf+A4HLxI5u39WHPUsjCuAHEbD7rHWwwtD rpbQ== 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=P8bE42secDzNCihtZNXaoNcRaMh9z1Mn+JR1meIGCf4=; b=tc2uP57CfpNgELAgCeTmuFa+Pwbop7uGfCl5QTCtX3hM3lFq7XS7gj4TTGXajc5H8S ABRkn+RSCRultN402WC90VeldPVfH7KjCRaE9psEq+0ib8dQMkGd+nNwggP+HG8REdH+ 4K3q7xRhsX2E0oug5Vl15d3XHzgrnOiyzPqrFzM0pfotAJXrb93CZbYlnwoDsMNBSdpC fvXUHbazuYn3WpVEN52Gtf+2lgtfnhs7WUX4ov5XJezFVAZzj3n5mu4L8GsLxffMrSok G1j30ji0i4XiFtFN7SjArj+Wk1oV2njC4piLuKHkCrwRua2GU1cK4EbjJLZuTQkrUopl Ghmw== X-Gm-Message-State: ABuFfojRDEawYjEUre+SmUr+oQ4GFbuKiBm9mHbAwWkTz+AHg5YaRY90 041tQk8KHZx2pGkmc49MxwiwLp9GltI= X-Google-Smtp-Source: ACcGV63bDGywb0ROnsHm6T1h4wKWMo6s/uZ7Y4Comw1PyNCd11kmsOyWgb6+eJoIMcVBsQ6CBxuWKw== X-Received: by 2002:a2e:9883:: with SMTP id b3-v6mr19513645ljj.171.1539224386085; Wed, 10 Oct 2018 19:19:46 -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 p24-v6sm5806467ljg.57.2018.10.10.19.19.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 19:19:44 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Thu, 11 Oct 2018 04:19:27 +0200 Message-Id: <20181011021931.4249-9-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::242 Subject: [Qemu-devel] [PATCH v2 08/12] 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 550225c15b..7f96de4aff 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; queues_mask = MAKE_64BIT_MASK(1, s->num_priority_queues - 1); s->regs[GEM_DESCONF6] |= queues_mask;