From patchwork Wed Oct 3 15:07:42 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: 10625037 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 AC3FB15E8 for ; Wed, 3 Oct 2018 15:24:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 931E728E3A for ; Wed, 3 Oct 2018 15:24:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 857B428E45; Wed, 3 Oct 2018 15:24:25 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 2BB1928E3A for ; Wed, 3 Oct 2018 15:24:25 +0000 (UTC) Received: from localhost ([::1]:49324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7j0i-0003Q8-4U for patchwork-qemu-devel@patchwork.kernel.org; Wed, 03 Oct 2018 11:24:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7ipc-0001gA-NA for qemu-devel@nongnu.org; Wed, 03 Oct 2018 11:12:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7ipa-0006KF-Ns for qemu-devel@nongnu.org; Wed, 03 Oct 2018 11:12:56 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:46142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7ipa-0006K0-Hr; Wed, 03 Oct 2018 11:12:54 -0400 Received: by mail-pl1-x643.google.com with SMTP id v5-v6so3626522plz.13; Wed, 03 Oct 2018 08:12:54 -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=pe5mtR+X2wlzLEwpldtMZ2hwzGyR0Tnoqvt/A9kTlIY=; b=XwyJjDmS6oy1O9/ptBAm7odBam8bAUepxxUnPgzSB1yMIIVksgRMwbOzh/zcC2A5dJ knfdf/SzTdbl6M7jcNVqb0EI6vk3rWtRDC9obTO8DRJhre1ZiQUZSU0wIVeyienieN4+ JSO0oa0B5+92q00SExsSwjVreKlIvJI8A3nZ6M5iZd0UMXhWMAyq6i6cQVeILyn2JZcD 3aHiNYHBMMJzuinviQpV/49MCn+V16u3Yk2bxg314qTq/ZEUlVc+s682pKqxoW6A34YS kgBeXxvxXt/RxKk5CIcoqbzQJNWGekRdcZyt2sGukT/bnBDRBTZGRpdHXgltwk8b3/lY TfGA== 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=pe5mtR+X2wlzLEwpldtMZ2hwzGyR0Tnoqvt/A9kTlIY=; b=G0lGRaFMIRDYRHczZTx+VvRrrrxAVcoIVUbTcKvYePXs2+xhko/LdQC0qtijsVGkHt fFOIA2zz4XwOYeXeJ0zDAMYVtK09FKWh2vUnn/WuxRiJhquZBJVCyTCR9nsgxWJFMDvH nA7kT60jOEyQbUWUp2foKegKUziye2Di3/C5zpfSRBUcyL/nQHmZM4P2ALXYGn/eIBWj p0SV74SeaP1Br10xNWdRQ3qIH4GMLqIY2+rQU9xfVGCwoketoGKqHiShaXmanKcPhdIs k4e/9vqDWIDIMgEUIWDamlBgJKE+qX8Ftpsa5fbfr/FPgpojX9ir2/LYtgXX0QQr8tnh 1f0Q== X-Gm-Message-State: ABuFfoj5z8+SafLOmHxAAnUGVeHQ96lqMREBQLdOUWjRsTLP7I/rGTHt mfMcsl1ReKjhT+lewakLbmKG94lOExk= X-Google-Smtp-Source: ACcGV625fRnZ91zIxsb8MgDg4IvOh7iju+Gr/3gxLE4vWvVKj7mxggmmbVcmjpFbbYpwh2Gqd6PmYg== X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr2066707pld.168.1538579573079; Wed, 03 Oct 2018 08:12:53 -0700 (PDT) Received: from localhost ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id g5-v6sm3297298pfk.160.2018.10.03.08.12.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 08:12:51 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Wed, 3 Oct 2018 22:07:42 +0700 Message-Id: <1538579266-8389-9-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538579266-8389-1-git-send-email-edgar.iglesias@gmail.com> References: <1538579266-8389-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::643 Subject: [Qemu-devel] [PATCH v1 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 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. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- 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 f93cd8e..fc81fb5 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;