From patchwork Tue Apr 11 22:30:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9676171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42FB960234 for ; Tue, 11 Apr 2017 22:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C66328562 for ; Tue, 11 Apr 2017 22:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DFC628589; Tue, 11 Apr 2017 22:44:59 +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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 CC54028562 for ; Tue, 11 Apr 2017 22:44:57 +0000 (UTC) Received: from localhost ([::1]:41405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy4Wv-00014n-0R for patchwork-qemu-devel@patchwork.kernel.org; Tue, 11 Apr 2017 18:44:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy4LT-0000LS-U2 for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:33:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cy4LP-0005fU-Tt for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:33:07 -0400 Received: from mail-by2nam03on0072.outbound.protection.outlook.com ([104.47.42.72]:30064 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cy4LP-0005fN-KX for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pB+bXItf0f0xWA1cE4JqKTEcOnLsway0we2ElSRf40s=; b=ZrmrtNqC43B5hj2kiv/QxrT269WvTsJhkLT9w9V0d2wocrwY94iLxVeOG7abJ5/Q6mF/QfoA60Y6OyWCVzW4hJnh7pWVvC013172wZ3G2KkMAirlA0X4lqc/NBgL4R9+9NChhIeAfLOW1Tqf0GdA4gbzUxXdiK0D2JUriBDlJiI= Received: from CY4PR02CA0047.namprd02.prod.outlook.com (10.175.57.161) by BY1PR02MB1194.namprd02.prod.outlook.com (10.162.108.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 22:33:00 +0000 Received: from CY1NAM02FT058.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::209) by CY4PR02CA0047.outlook.office365.com (2603:10b6:903:117::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Tue, 11 Apr 2017 22:33:00 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT058.mail.protection.outlook.com (10.152.74.149) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 22:33:00 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1cy4LL-0002cl-MK; Tue, 11 Apr 2017 15:32:59 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1cy4LL-0006K5-J9; Tue, 11 Apr 2017 15:32:59 -0700 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1cy4LG-0006JV-GT; Tue, 11 Apr 2017 15:32:54 -0700 From: Alistair Francis To: , Date: Tue, 11 Apr 2017 15:30:25 -0700 Message-ID: <541324373cf87b50f8be0439a0cb89f5028b016f.1491947224.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: References: MIME-Version: 1.0 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22998.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39840400002)(39860400002)(39450400003)(39410400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(9786002)(305945005)(5660300001)(36386004)(38730400002)(4326008)(5820100001)(39060400002)(189998001)(47776003)(50986999)(8676002)(2906002)(23676002)(81166006)(8936002)(50466002)(50226002)(2950100002)(356003)(6666003)(77096006)(118296001)(54906002)(2870700001)(63266004)(36756003)(106466001)(76176999)(33646002)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR02MB1194; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:ovrnspm; MX:1; A:1; PTR:unknown-60-83.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT058; 1:XVX3rOoIOzQaXXGB3d7Qt9bpR3Ib6wkiuBCQveO/lFMKLT7sMssK1fr0lnZtKri/VaBCD2s7mIavoXu9d16jDPHCMsvLvhhbnerwRfdN6zRE4lVg5jLaD/SJKF/9XgQMRmMVYCUs1kgBr4iWZQMouzBmIXwXEnewvbpos7CCycgFOW6WaY/oFBPUDrA8cxWiKxRiU/z/KFq2oQ1bjddbCtmP1S4vjTjCyh0lYrYDRmkL9eZFACSlfKZJ498NSLM+FCM6+47a9N6hkJkMR2uSJuNFJv21aVmSNgGl6j0S1wUKZ69aHPywnj3t7HIoy58GS4/+vhidfLMLln4ruGql6kjgyLEpBILawjeWX7bvTV53GP6McLHheK/0728DhVqHIuDkvXvzO+2sK1X8geOB7ng0+FOK+tJb8YMq92cKI8bvTrfux6gspw32fplEGGgWAzcJbWbWl5yIFhKvEAEIgxJILn2jFQ+/+wJ+HLvOSBT8FsfNctMLf53sp3hVtPE0LoxQo9D3GQFGiPrYF7L5BTKJi5ZdyepdLV8mwQT/vV36NUAl+7wTtW/HT5CITjKS X-MS-Office365-Filtering-Correlation-Id: 0934998d-6443-48c8-7b7e-08d4812ab5c5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY1PR02MB1194; X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1194; 3:ZlUgyx1LtlCXkTtLsOfPefJeBP2sFtk7BuR/djfOuwg6gX8nKQVDZWBiB5aHVkbrXvLaPJCzkhZxzDRaUDyalRbc+yo3k4nyICd7lGJhh+9yQIMEnoVMjrdNMmzODW2TYkaK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UN/hFkzCNARXBHKLVTGWnGeul9kzyKQ1mX/jkYoGtCLol2ZigV1BuCD09N7Evg7WZ/mnqVUv4kbbEDjhDoCannD2owYlI8YDh20vo24WxKy0BgQrIFbg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1194; 20:DPDnjmUWUAmKaq/pEdkkyAqjeG1ytqqgTVcNPy1hCOmI3AEQz2pPscfTnkY8rBicw9gOj6eYN81/qnyyRBtmtWwsP8T0OPpS6PAHR0ev3KQhfVemS7IgZ1Jd2Sz18D8YW5yFGTXG5dRTU0oZ0tTyJC4EykXXTUx8VKF5BS3Eo4mux9LQp6y5kXW08SJ8oifqw7PHby7sbwSgaxBTnHVKIK05vrHzVxAyJJ9mVTbqOyQJtFm1qrjhBtnEqnjiwx4eupeidb2Qa3n6vFOY9olv6ZhcfOnu2OtjIQ6uIgLz9oHaVjxjyQrj0IxoWgPx7xN+ixU0HoPQHLYM+dPuGIzUJlm+4YOnXqFac/iilVDi0HnwZbCBTxaWoBakHB9ix13+DjuZICDHoyccooHvuiPijGAtxZljQYIzYxzXvcRx6Qb7blEWNgnimw/eFzQCnEMKasKPpz2U8P0SVciWando1EJ06WfZ5b55kQLCxSMy0aay4k9aHHzc7TFqxaEzHJzI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(13015025)(8121501046)(5005006)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY1PR02MB1194; BCL:0; PCL:0; RULEID:; SRVR:BY1PR02MB1194; X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1194; 4:ZO7NiLh6+GNLbYUsgHByGLHM9LHnpEGdOTRZ2b3o+Xdmf3SByb56HWTGjmRMbMeGMQrqeAJVEyl/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hcixcDDV0Sv2MJ1QDhnCvmLP8D+qSTH2EXZ+F?= =?us-ascii?Q?CsXjai0N49LMAcbOM4es12Mv3Rh2WUgEBUMwyx3othCiQwGNQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1194; 6:pwpZEgDyXttDosiXsJqdDFF4YO0IDE9S8Ryhf+RXpDw077vj68SKcy6iq53BDwIY8UZ7O7Jxo2DDk2tEai73LlxaQyYVhiCpcUXDD/C/3cV53z1Yh6UAvADmxP3Fnbv2FM8hxZUyksL1rT7O1edbgiFIinu1j8oaa/Qxhse6Blow/70gOs5aXBSqI+3slDP/fDh4np4WeRkxO9aQqVL7L5NUiZ/iyYutfRR/sinaHSXLWSVYVFjzqs32Njl2k//tn/iTLfTw8JesDRAZkIm0wDdE3F6WXlegirNhhQwnpQZ5k4Tblnq9xGd2TZlXB9bH09M/c+/B6adGfojVyo3CS8aC6S6oobrh6fAGTftiLzdrqzRlQ6m8wU911I7KtVNNFvDYlwhsIjEBgcWqnrvukwMNJ7ahkZMgkN6e20IjhZyzOnPtKktxdUYoNNAU9R/oJ54jWhe09yjpTfOH1SqNjUVbRdSWbiHgrlMlXBPMvIE=; 5:LSiWQx2Z9ZrHO13IqGcIq6iNdVDK4yf9SBmIB4raQXV3aK2CHvA9rIFBcY/Egq1B5Ml4DmITAZvx9a31PSnhmi95jO+aZvGetHUOz/q82JCtf2y64FiYBN8MQZILef2us8HTe2wdz/+KndXP4sEYX5vSj6LtqKAXacNO093qrKE=; 24:pbZhPOH3/gCh/jwSPb+r5gmFVWA/lCqofFurpDKbA5BOjTY5ad4NDoxJUQDXROX3kNzPW85fECwidDwOV7TqfBConVMAHKOcWp+jvKNnu8o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1194; 7:MlfWCrS3M0UybmP2eQzun3ckE99nT8ppPlNR2HjkzwHaMgp5qZVfYP1UiD1pWx0l4107+KvZvkUtxj0gONaL+5K1vaqXELLGvr8ciWoUgFTRubw7TGvLdWEuYmq5z9hjCCv/CGwl0+uir4PHZaZlToyjb3qB0N32ikdhA1qi1UiOsHsaE66mA5dBYw0mcDZPn4Nu5OxVTFFG+EEFLfO1cbs8+M0n16ova3Xn/+46jZ9Qb+oDXOvZuTIFYe9ay3kInU3Iliq5wMGo8PxZ00LXeQsGuOmHZo6YLoLonckbIM9qzxSjjbuTFHnbgv9YE3EnukZFm3fI8DR9pqDaCoyh5g== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 22:33:00.1810 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR02MB1194 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.42.72 Subject: [Qemu-devel] [PATCH v3 4/5] cadence_gem: Make the revision a property 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: alistair23@gmail.com, f4bug@amsat.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Expose the Cadence GEM revision as a property. Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/net/cadence_gem.c | 6 +++++- include/hw/net/cadence_gem.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index e1962e1..3943187 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -300,6 +300,8 @@ #define DESC_1_RX_SOF 0x00004000 #define DESC_1_RX_EOF 0x00008000 +#define GEM_MODID_VALUE 0x00020118 + static inline unsigned tx_desc_get_buffer(unsigned *desc) { return desc[0]; @@ -1223,7 +1225,7 @@ static void gem_reset(DeviceState *d) s->regs[GEM_TXPAUSE] = 0x0000ffff; s->regs[GEM_TXPARTIALSF] = 0x000003ff; s->regs[GEM_RXPARTIALSF] = 0x000003ff; - s->regs[GEM_MODID] = 0x00020118; + s->regs[GEM_MODID] = s->revision; s->regs[GEM_DESCONF] = 0x02500111; s->regs[GEM_DESCONF2] = 0x2ab13fff; s->regs[GEM_DESCONF5] = 0x002f2145; @@ -1519,6 +1521,8 @@ static const VMStateDescription vmstate_cadence_gem = { static Property gem_properties[] = { DEFINE_NIC_PROPERTIES(CadenceGEMState, conf), + DEFINE_PROP_UINT32("revision", CadenceGEMState, revision, + GEM_MODID_VALUE), DEFINE_PROP_UINT8("num-priority-queues", CadenceGEMState, num_priority_queues, 1), DEFINE_PROP_UINT8("num-type1-screeners", CadenceGEMState, diff --git a/include/hw/net/cadence_gem.h b/include/hw/net/cadence_gem.h index c469ffe..35de622 100644 --- a/include/hw/net/cadence_gem.h +++ b/include/hw/net/cadence_gem.h @@ -50,6 +50,7 @@ typedef struct CadenceGEMState { uint8_t num_priority_queues; uint8_t num_type1_screeners; uint8_t num_type2_screeners; + uint32_t revision; /* GEM registers backing store */ uint32_t regs[CADENCE_GEM_MAXREG];