From patchwork Tue Apr 4 23:40:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9662767 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 2315B60352 for ; Wed, 5 Apr 2017 00:18:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1654C2816B for ; Wed, 5 Apr 2017 00:18:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AD3E281AA; Wed, 5 Apr 2017 00:18:26 +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 76EBB2816B for ; Wed, 5 Apr 2017 00:18:25 +0000 (UTC) Received: from localhost ([::1]:38155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvYeW-0003ce-Cx for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Apr 2017 20:18:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvYcu-000379-2A for qemu-devel@nongnu.org; Tue, 04 Apr 2017 20:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvYcq-0003R4-TM for qemu-devel@nongnu.org; Tue, 04 Apr 2017 20:16:44 -0400 Received: from mail-sn1nam01on0088.outbound.protection.outlook.com ([104.47.32.88]:56128 helo=NAM01-SN1-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 1cvYcq-0003Ps-LC for qemu-devel@nongnu.org; Tue, 04 Apr 2017 20:16:40 -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=UORq+zs/SjKgQbZ+0qZ1MH62VnPt4Gp/wnpZg4ZQsuc=; b=zQsNZ1SxefTOxKd4TmXHMRsmhY5YTsOwum2Walf3AUQ52rz9hu0mWlVfrBhqBhVEGykOeVXToOTQg5Fv+1CqzhAH2jib59zV5wwKa0Yl0Y3srSYdsetBf13h1e5odgXfOyXlYVlgIFETrKnEWXr6qZgBiAMvY1ym2fn8PaEIz/Y= Received: from BN6PR02CA0036.namprd02.prod.outlook.com (10.173.146.150) by BLUPR02MB1187.namprd02.prod.outlook.com (10.163.80.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 23:42:36 +0000 Received: from BL2NAM02FT046.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::207) by BN6PR02CA0036.outlook.office365.com (2603:10b6:404:5f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Tue, 4 Apr 2017 23:42:36 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; 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 BL2NAM02FT046.mail.protection.outlook.com (10.152.76.118) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Tue, 4 Apr 2017 23:42:36 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:33604 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1cvY5r-0007nI-3L; Tue, 04 Apr 2017 16:42:35 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1cvY5r-0000fv-0k; Tue, 04 Apr 2017 16:42:35 -0700 Received: from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v34NgU1Z020465; Tue, 4 Apr 2017 16:42:30 -0700 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1cvY5m-0000eg-F3; Tue, 04 Apr 2017 16:42:30 -0700 From: Alistair Francis To: , Date: Tue, 4 Apr 2017 16:40:04 -0700 Message-ID: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22984.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)(39410400002)(39450400003)(39400400002)(39850400002)(39840400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(9786002)(305945005)(6666003)(39060400002)(118296001)(77096006)(48376002)(36756003)(2906002)(2950100002)(33646002)(106466001)(356003)(38730400002)(50226002)(50466002)(54906002)(36386004)(63266004)(5660300001)(5003940100001)(81166006)(50986999)(47776003)(76176999)(189998001)(8936002)(8676002)(4326008)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB1187; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:ovrnspm; A:1; MX:1; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT046; 1:1+dqM9hF3ivGXOi6Pjr6KCPqNWxVYe6RZ0TVUzLv0Ws2fbB5J20ABmwk+T5O3dRz9BjNd6LY+QrhwqMdJf+xjq9UnLudr83aCajk7qHdhDiAzCA6GA/T3sXbAAhn9Cg0cR23RA0HNRxCTAFYe4RLbmtSvN6HVQOJ9gfbpOB+T2UnsmnsFK2uuV4XFZxOYD6I+2NE+LNyKO/P+Gd1+ogxU6kWbExSvsbIuOeql9/Nkw/ztM+Q7vBa63scBG5uPb7iIY9ZTPvdwTCQLpmPAWu2k8Rq1GOeiX93vkenFPJeGPcEpS3leN9f9BzH1BjmUdmAsIli7BYY+3s1TPdTvWO4QpYOQLwOw1tAEQbqAjl1lAoj8binOlW9jDAfoi2zqAx+oCIjXhmYzheqU9uPoH62tuOmm8H9M9zuvkaxmbOVePgBr6BOBcQafCvyH1tr8SYNgRnpFH/OIFYQJoPUPyaeZWr5WtsQAO83Lv/517Zesx6YtPWD+/PXFaaUBsakeSAFENo7akJbCv86icP9tzW9AEtYy1/UAgC1coNGqDzlG3Ja30dau3X7vFI9ebIwsNHZWvTxsecnxdZ9XBm3vg0sWQZKLbiyTjC66mTKud6Zbe4= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d3123598-3e64-4b46-abc8-08d47bb445da X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR02MB1187; X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CxlwfqrjSiXr64zD5A==; 31:lu+aZZoMri7LSnK+EZuT+Kc3ySzp0kRir1DKArOvdLXMOLgeRogPYa6C6DeVJHoovDVdotLX10jRJc7ntKw3cJKJ2+MQIs1FIB1HBqwXbwAXRKq634JfafmGHZgrqr8GfNPXTXhmQazRDOdmQFRN0IMdifD7Fnw1VXz+u49Fdl21M6omsjazvu9/JysVgMwbRPydiHp4RWZ7kh0ElMBPcQ9RfjGdnbq37kYqss87qhjI/oMlNrY0jb67P+9F/5XwOBN9uLYtl5QgE7E6wZ4zpMb5bmx1Rp/Wd5z2YDn0bBg= X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB1187; 20:G+JXFvlVuAT4c1qKzfCwowXdzZXFhP2TM1rCZJaipmYmNh/llK7XWftcstI9uDtexRPLAmVd0V3cMA3xgKc4yRolnViK+pY2IYOppV+a72996cFt7K/PePOajtGq23RZGbOaLgFOYPAJET1M4GVpl5k1cuWxhhSnk98aYzUJ66mvFI6X4DjRF6N7HJccC1yfEtwY+DClVi1bdlQLGKOM9vlj53opsSjRGTa8GKlo9pJiI90W+Tav6ABRGXkXKHC5Sr8nfzEjCn890RzIXW44LFZaLXepD2H0oRh/Q8osN89a59To3MfFCUn4BMsyfMYwHF1hY3vpO1MMnu0qubt1xM2VtWbSrtL1I7qtIaz1U3RwVRdDt0KwoLzxTdrEV3qjRzgRi1zVUGtUDiY6ogXc0/QmSw+f6iqocC+nTo8/HGR87GpZYyiTfIMic+JWS9irv+CjbXdaRg71yPZ19/h6AyZqvD+/ucrxBXOwRopuKSLyZgqyJcMDkGCdHFygZHVA 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)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:BLUPR02MB1187; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB1187; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB1187; 4:5QQJQ2FmmKct4bu42DWf+vHoQsf5lkRIMO/EgiGNIuDBZN9lrCJCuNE/Z/GsTvA6nGd8jlpKy1bOqZ+9Pi18bXAWIn+IpPg/cP16HQQz1aqXqc4sKehZkN6X+hqitwatya4QLF3tER8OgPGVT6Gckt9KmnxQ5N3qsyQaO1q4G/3PxWi4Fu8NK5ndPY+Ceveh2WlpeLo7dUmf7piGmlHiHege8UHwmFxX6BzH4oTvH9syksSdjry8Vvbh8EnPiEFSEirTPXJYQXTinIEE57wfcxUdlHTifcdFrSj5Zk2U2SGFGIIy71o6TfNZurLNq2RpKl007yxTNJEXlWNfg3smE7nxloQmi+c391AN9Fjx5bj9SmDk64Z+kEYcWeLQaLI4Qn4jF0OV/6Sx/K8dnkqUYzmV/wvTSpsti3JxnbryTbt6G8vWh+b+3Csg8zOjdOUkJCJrzRHOvqBNS2xM61OTSmB28/59nvyhRoLGQ+i2em14pASFFaqmS+fpc56gn9jGDZQGoDcYcdo/soDu5QzSFSvx/KTst3Pn813L/8hNLd8IFkplj1ajqsyG6c7F1u+4p/6DEiPAcjhzYicnSDeK6cX7p96QKwJZ7prsA+JqYV7N7raNgUKN1le0uR8ueAlyFRC4xo6YR7KgEAT1rZrtxZVnnIHj0cpt4tCA6RvdcG875rWrxmWKEbYSsXgbzFgf7Q2SoqU+vFk5aLObquLIc4E/IzPvfBzZTFnkUqX1pz8i4+9R6FcRdeC4yTUBEdeZPF1OdWnLmM82DyFUIhD8hROpWMpE87+jWkGdjyc85quDEoYQDyn4q4sZs6ZYPvxZTkl3y1Us9q8PLUOaqReO87JGHrL/rOoKBhOGxvxSHr/k/MQr3+S9d1Ruj6iyA1rG X-Forefront-PRVS: 0267E514F9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR02MB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oft-Exchange-Diagnostics: 1; BLUPR02MB1187; 7:G7cVYHkjuR1Uo1s3J9MhkSFez4oIiniECMVjjmJv5mN2Ympe2YqGN2Xjo6FHKHJ8RNLC0jyNDzylGM1q5JUfzGIyJS4mjt3v2YDOxxObzPc7OIytiIYVQrehbYGAgmseZzmLMHapTOxtKqvSQLLEpp3IgwiJKRmb7LNIOWZOiYdsT86+JFyJVV7Ezxf0AtFFGAc6MM80QfketkBzLAY697sVzzQgy4kfDBm6dZiIMdf1p+O7/M+GRmd7W2aJhd4yIZnEzIJUH2Kh0aWk+9cOBxgMCbdGulTtBRsjAEH/Lho2w0ZhN20qSKdz1YT2C3zEzP3fBo/St5wCf/QZqtQ9JQ== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 23:42:36.0495 (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: BLUPR02MB1187 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.32.88 Subject: [Qemu-devel] [PATCH v1 1/5] cadence_gem: Read the correct queue descriptor 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, 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 Read the correct descriptor instead of hardcoding the first (q=0). Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/net/cadence_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index d4de8ad..17c229d 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -790,8 +790,8 @@ static void gem_get_rx_desc(CadenceGEMState *s, int q) { DB_PRINT("read descriptor 0x%x\n", (unsigned)s->rx_desc_addr[q]); /* read current descriptor */ - cpu_physical_memory_read(s->rx_desc_addr[0], - (uint8_t *)s->rx_desc[0], sizeof(s->rx_desc[0])); + cpu_physical_memory_read(s->rx_desc_addr[q], + (uint8_t *)s->rx_desc[q], sizeof(s->rx_desc[q])); /* Descriptor owned by software ? */ if (rx_desc_get_ownership(s->rx_desc[q]) == 1) {