From patchwork Mon Apr 10 23:43:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9674357 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 9749E601EA for ; Mon, 10 Apr 2017 23:49:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86ED4284D4 for ; Mon, 10 Apr 2017 23:49:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BA34284D8; Mon, 10 Apr 2017 23:49:54 +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 CD677284D4 for ; Mon, 10 Apr 2017 23:49:53 +0000 (UTC) Received: from localhost ([::1]:36481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxj4D-0003PP-10 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 10 Apr 2017 19:49:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxj0x-0001dA-S7 for qemu-devel@nongnu.org; Mon, 10 Apr 2017 19:46:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxj0u-0002Tk-Gu for qemu-devel@nongnu.org; Mon, 10 Apr 2017 19:46:31 -0400 Received: from mail-bn3nam01on0069.outbound.protection.outlook.com ([104.47.33.69]:40425 helo=NAM01-BN3-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 1cxj0u-0002TL-BI for qemu-devel@nongnu.org; Mon, 10 Apr 2017 19:46:28 -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=zjp0qFgjCF7AViQt6Ceb7ba4G1apq6Po8ooGQMOw5I8=; b=2kset+De4xxAbAdj6dXKxUz27gQ3pmXSH+GgM8EshEi9pTCFyiT42h5qDw5puljP7Se0XlVTGQfsWphmVswdCv5eH1inmuFt/4I+nAWyKrKtZlMpakkGl/VNCgGck3imEV+0oeex2LshbrE7wi2ubF3ihFlZNGNNxd8mjmzFxco= Received: from MWHPR02CA0053.namprd02.prod.outlook.com (10.164.133.42) by BN3PR02MB1192.namprd02.prod.outlook.com (10.162.168.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 23:46:26 +0000 Received: from BL2NAM02FT043.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::206) by MWHPR02CA0053.outlook.office365.com (2603:10b6:301:60::42) 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; Mon, 10 Apr 2017 23:46:26 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; amsat.org; dkim=none (message not signed) header.d=none;amsat.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT043.mail.protection.outlook.com (10.152.77.95) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Mon, 10 Apr 2017 23:46:26 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:35395 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1cxj0r-0001GX-6f; Mon, 10 Apr 2017 16:46:25 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1cxj0r-0000VX-2e; Mon, 10 Apr 2017 16:46:25 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v3ANkJGp001625; Mon, 10 Apr 2017 16:46:19 -0700 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1cxj0l-0000Ul-9D; Mon, 10 Apr 2017 16:46:19 -0700 From: Alistair Francis To: , Date: Mon, 10 Apr 2017 16:43:51 -0700 Message-ID: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22996.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.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39860400002)(39840400002)(39410400002)(39850400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(356003)(38730400002)(54906002)(6666003)(36756003)(9786002)(50226002)(2870700001)(33646002)(118296001)(8676002)(8936002)(2906002)(77096006)(81166006)(2950100002)(106466001)(575784001)(63266004)(50466002)(305945005)(23676002)(4326008)(76176999)(50986999)(189998001)(36386004)(39060400002)(5820100001)(5660300001)(47776003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR02MB1192; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:ovrnspm; MX:1; A:1; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT043; 1:iNJpvd3jDbYtZOh5FVHxvh5iaUn9Cibusc0p4mZhn0/oxfukvtAZ9KrS/ILpHqX7oajf8gIBTY7UY/iWSNHXbrpTSBP3enkB+k9ezjTOfHkd1sFH3mE37742Wfm8WwOfzkM3mSZ5jkckX6TP/Hgy3TnprM9+shDTMXYdYZpvKMFSklSYM6OeRFzrf/+UTqG8YkOmzfMFkU/i3VEcB1kCpX++0BMSDKFZjNfFI/rFdSuzPszEQdT4WNGCfncD+qMxFwaP/A2IPCoAjMN/D1fAiNo2cVy5hoxgJjnZK/QCtk+Uy1yDElHhtNsyzQTYyG/CaxQWmLxw1/qMa9jM4hs6qQVj+nSM/99/MvcrG9WjIA38cEL2ueYVlKf5bGRcBeP2B/L4onPzdzwdz/+jtttl7sW4dbxCZef3JjFKVpWBLF4imqp6F1t5xRfG5dcld4qAHtc0HEoG4QSS6/FbJjZcdXv/jyzIJzvsDCy/kNa7na0nHl9HQS51xu/BZNLd5f37UgFO0623e6qHXXrR/YyAmkpONfZII/X4anFqBMNVNWajkfljszPa7MswmZtzc7JRV6OwjMdEQaWpvni+Xv5+cCBP6C3FitaKevfyJ9l7Ccc= X-MS-Office365-Filtering-Correlation-Id: 41183c50-b464-451f-2a63-08d4806bcd67 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN3PR02MB1192; X-Microsoft-Exchange-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EsuMEVUm6/W7cNmf3hordhlZJY+074SCKSzinCMPxRZc3K+MW/+f9SlNUF8ECYzinn4GCYfGgH6N66mraRZZvKA1+dC2h+/mqLtrUg7sXsRy2zYq9pFjAfFyFEfMmUHsdXLus++RqJ871ZsJsu+axILO3np1BVY+tMccvBybdT65fX0apKvVpNGcQXtl1rzjkmA3GVvuXJhIq1V7QeZRT5iGKhUe2/nhoD4f35XSpLMzk10DLfN7Z0ExZ5ZmySgydDm1W05YmM= X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1192; 20:HvlrDkyV9KAOND8ehPucp/gtSJwD57zBFsJcP1WodRgnsrd/2imIceys4R4PQ9pt8nLs8oE5EdiLUxCm5OxFSej0lmpLqmgCZ1jY2+Kluuir8I48U5h4Ib0+d0ISYUdFkOlEtDAaETVKv3c0vaNM5HHg53HbQtXkDEz6lZQOfdnnsAK62vyoZXTNlU2qf32Wd14Vi0Y0nTagFZOxivzTrSxEhl/0rHMcT2nfwhyBartm/SS3MBoMgtKaSx2bLJKGToafAyjAUDTabwkivEqQKMo3zgke+iuvfnweKcXFsxeqRosdp3qoFvHcQSIlPE7rOXF6gnE3Zoo6PZvY4FFd/asPx70qpC+xMKPLUfmM18JydT7Ae67kGHTTUvqH87naJtDI5wlJQuvo9lAFPcQUEXmV39B0YFH2AOnHYImA+CPQFxg/5BjwXi1DYWT+yFYElrGV15CadzsdP3rKAWwCruzbRXByHw4tSyHrx+3vel2liHw3rvkqGcRDpYzr5YLe 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)(8121501046)(13015025)(5005006)(13017025)(13018025)(13024025)(13023025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123562025)(6072148); SRVR:BN3PR02MB1192; BCL:0; PCL:0; RULEID:; SRVR:BN3PR02MB1192; X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1192; 4:FBHOyLuYIoy32lREY++ePgpR+XaRczmY9iMvsSF3WL60NcpJZTGWS7gmY/pHUurbU/JA2+pciVbgMOIll6Obq9jQNd96pVI7ansFLiemBOwV+UQCHDrbhaJ0a+NFu9Y/1jiI3I/0R0zNtqC+qOMLO9NbGaqRNDSA2v+WchRTRK159Lc5+K4vq3SGGTTw6cE62jmQjQBh2AUda6lyLsMr0XepMFM3dSvi3sLEGPf+k3OlkcQVsvfEosmGYkpIFKzQshzRddLVmszkD3lk6m/lqg6y8ayBV3AK5K4xYSJy3m8IwPAzVlZaTLHZ/irniSwXnXJwUA+OnaWGNAsIGCkVJbB/+3q88xV7sKT+qwaGlwwYRLCyPGW+ZlErF5d9j2kNvnSFUOmQ8oNNxYhnDL+2zEpwu04WDGA6/LV0EfIJTC4Ndg7HD1726Kz1CH+RhWvcaC5Sx0LqzqnlDcQcaOiw0vXvVj6s3VE96vPsHGE6yzuin1KaNL+8nvgn+SgcwbfZNFPLD8zjJ2otGUyGk5bXSiCprn5FzrH4WcJmGL35b3mOAKfNlPzp3HXwjnwaT57eIBzIREyCHCPeCFhB9UqfmZcl+aaz0Y1UGFYlcjECtzYpkyqhicKigpf1QSabbGi8jLUYHU542NYiFasORTzmZ1jeLIhOxex1trQQ005WgQFwwMXwpglMuw5On/Sv993H0C1Z6zAMQ08KibYXAP6yZ2v+C9U3w+JslkVL/C6+ZSNPH6BtNoO73EeECkeod7TYmWUdcHmK3OL7/BTvI8TTW7g0ecV7zWrCXN1ih7dUPsknF+gbzEst4K6y4FeCPlWICGdj7o+E2Lpz1CGOtHRqgZTcylz7mvHR3NHniH8m4AWB3iXZpo/FUA9dzBPqXWBB X-Forefront-PRVS: 027367F73D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR02MB1192; 23:w3CXO5f9lj4pkBExImOcUnemB8t+a1Qdn0jr3kX0e?= =?us-ascii?Q?z6elBv8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S5QuuciXSk1R0Udjwk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1192; 7:LYlo/xkFAPKNu9OhYDwUF+dLGAc90Uf5K+Pgo7JR8l6OlMkOI6KFnGjJVBdWy5fPseUM/3NAUqFPCBFJWZcjt7RXoQxfCQAKj+mrPy0nxe8KLlzw3SHZrJq+xMz8sH5AhNAxizzKhPXHAkqVvqY4FZBvpGd29LglUJMRwjQI+UPbAcBzoQSBIfMBZuQz4etgW6eHhkE2U20X6swgIDSmZI5dYSQZdHTiEIobzEz18TABJiX7qanQZwoD7ZIkIzqHz73xDZXKBho2rcPUn+KYBnL6fR3fFzJ+VOJjBftlQW9e4d/xmv+CBqbuIwsbQEHNMXFThMYLNLk7C2dhMEWkqg== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 23:46:26.0153 (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.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR02MB1192 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.33.69 Subject: [Qemu-devel] [PATCH v2 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 fc3a184..fe0a49f 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];