Received: by 10.223.164.202 with SMTP id h10csp1243804wrb; Sun, 26 Nov 2017 23:11:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMY0Bk1y+RQYM7soKWfMIlPsawkygEgeAkk5RflPqkXrb8RzE5Df+baOR0ga8xFE2ZHqcrmO X-Received: by 10.159.207.149 with SMTP id z21mr36941253plo.258.1511766677781; Sun, 26 Nov 2017 23:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511766677; cv=none; d=google.com; s=arc-20160816; b=ZTGxuadMpMcErLVIq57x2gpIe/CbjsuG9tZtFmHVnhOnF3VZgv+4SolP6kisG+hBje SxDH5KhI+7v8Ifyhx0dhuu6zbavOhSrIdoGyIrWehD4ulOkQM7YTU7CrRNK9uycv/FjV WQO0VH66ISyxtz12Z4XQc3cTV3S0Hx7Uk5pBmMVWRH5rzq26I8mDWtBeXkMOrdp1CqKI K3jKxPpJYTTLMXnwMSmqKOCGTzDztQinS7wwOv998RJaBqhHXz5cq2BVMYvzabbUMDj8 tM4zTaNPUNx5LXYFS7ChNaqvZqJhxSvDl/WhanAuZbb341PvcdxmWpUYetrWzCTXrIE2 LvPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=UjyUPvd916ix+oGnhUHPxqjL7fPSg76WnrXwvVR5V2g=; b=MYOWbPPCjHszcVCJGJ7iQoOWb9hVFD40C0p/cb1iTSLjhSiLEqlxnbx+EMcTKs/jID tHGozS0SfV4bwFyeAuZn5L1SWQwdoiCRlc7l7c9hCWDCV6NnUBwoVwjmyNSZLG6ThWd2 s80sS0g2WEEH8FObHCyPvNaIXD554jn/NpG5pc68/1CdG+Or6PS2Yde8FbxKxTRiYmv3 BESzhz03jiH2NZiaQKpDzsW9JjqD2Q6snzRS4x9TPCMz9UsmEMwocngyvmXT3JHPmVrk Mssh13Zx1ETZO3xST2l3xZ4BlEvsu9gvI9st+4C2p5XxbSWbASVeAylWlSwoFapQ60DF +k1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=vWtvRnWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si18450960pgq.328.2017.11.26.23.11.06; Sun, 26 Nov 2017 23:11:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=vWtvRnWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbdK0HKT (ORCPT + 78 others); Mon, 27 Nov 2017 02:10:19 -0500 Received: from mail-cys01nam02on0053.outbound.protection.outlook.com ([104.47.37.53]:2112 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751141AbdK0HKR (ORCPT ); Mon, 27 Nov 2017 02:10:17 -0500 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=UjyUPvd916ix+oGnhUHPxqjL7fPSg76WnrXwvVR5V2g=; b=vWtvRnWahy+p7CfyMNbqFCUcnrV6Rsqoie7iUX8e6nQYWmQS/0qzQ0lMYxSHP2GR3wHSVlIz4gfjMCXl+pUL2p3evKZEahHOwRtGHyoRHddIxekgI/P4rwWZT0RhFpS38byE9Sirij9O1VC2zz3NzReZ/5P6OrGO4YdtrxTxHjs= Received: from SN4PR0201CA0048.namprd02.prod.outlook.com (10.162.76.34) by CY4PR02MB3270.namprd02.prod.outlook.com (10.165.88.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 07:10:14 +0000 Received: from BL2NAM02FT025.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::202) by SN4PR0201CA0048.outlook.office365.com (2603:10b6:803:2e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Mon, 27 Nov 2017 07:10:14 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.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 BL2NAM02FT025.mail.protection.outlook.com (10.152.77.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.239.4 via Frontend Transport; Mon, 27 Nov 2017 07:10:14 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:43610 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eJDYT-0002LJ-Jp; Sun, 26 Nov 2017 23:10:13 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1eJDYT-00046m-GW; Sun, 26 Nov 2017 23:10:13 -0800 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vAR7A3Tu023480; Sun, 26 Nov 2017 23:10:03 -0800 Received: from [172.23.37.92] (helo=xhdharinik40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eJDYJ-0003vl-8H; Sun, 26 Nov 2017 23:10:03 -0800 From: Harini Katakam To: , , CC: , , , , "Edgar E. Iglesias" , Michal Simek Subject: [RFC PATCH 1/2] net: macb: Add RBQP to the macb queues Date: Mon, 27 Nov 2017 12:33:57 +0530 Message-ID: <1511766238-1710-1-git-send-email-harinik@xilinx.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23492.006 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)(376002)(346002)(2980300002)(438002)(199003)(189002)(110136005)(305945005)(356003)(106002)(4326008)(2906002)(7696005)(5660300001)(106466001)(81166006)(8676002)(47776003)(2201001)(33646002)(478600001)(51416003)(9786002)(107886003)(16586007)(316002)(54906003)(189998001)(6666003)(77096006)(50226002)(81156014)(36386004)(8936002)(36756003)(63266004)(50466002)(39060400002)(50986999)(48376002)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR02MB3270;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT025;1:qkuH0W2ZRN5XdXmj4A/C4uVq3y2PaPYoFOBg+HXuC/2M8rOVmGp60v9dGuBH+80UbytRlzqyZaPj8Y20HIgi65jenM8l9PMzIUg195FPp2tYTTnFXoTIvjxOfk6F2GJH MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86c02daa-6a14-4bcf-1a75-08d53565e80f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603199);SRVR:CY4PR02MB3270; X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB3270;3:iNvV8xfveOdQeP21medTihv8O+oIKgSAt2FQtEOvAwVeytehX4FtSAfVKTFIDbBNYp6KxSD7QTubiUXwy0c/lZ9R2LLb/BN7JxnHmyMoU3/lTm4y+5trMT+BLaMynX3f5vEhKRXmkzdjPjlMRKK2uyN1Kwm33/EFWEjMCiYt1NbkDRyoLjVs/SEeEuKXMlihssDG2+yLdpxa2u3r6cZXruca37MbxD53A2C3VLsnzb/LHiYqSKxcQm5uygpktRdrHpiYRz+lqxGf7admEabIgOBkxg08si+W195GjnyxjCdgwuM0fATIhBDE+mW9+yZ3pCL+0sQP1BHgDxpFqjwTj9Pbp7qlBviKbbJF7kk/XAs=;25:3qbxUldlqDeYaR99rvBLYthhewghH6lrReVDp71HQuIi9uCclC3ivPr70Dy7EXt+8bTVvz+jOmF9jjxhGx/bzcePnMMYWSnTjjkbF3jFKvFb3m3N4JUcCMZLNDQjJyZM2LtiYSkCuPkItvhfcvAX1F5Dv+clQla66Z2vFJXmKIBpGvIiWTkbFUfDBqHia/S+M1tCX4uiwIeVyvsWzxRd5VbwpvMh71bmA0E7TSgzC+oHFA+py3Oof57aG7Mt6S1Tg3mdRYMBTGX8fh6ntGGrDvbmcMFlDTg8RbP4PVXVQkgxYYm7akZP+kQuaNPotSheEQUothLGRdrh3sYAOSe5IA== X-MS-TrafficTypeDiagnostic: CY4PR02MB3270: X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB3270;31:tniK4TpQSWxHhMRfGWbLhIeYgi/v5DTpjmPRvnB6FPjtl3UmwPWOWWrjzuU0EYPFtG3c8HUksmhrl7A9tyn4uxGnG16O6hld4yw0mO/sp/GxvejxD4LxIJXphgrjQzSMkxzGovDZ3EeUaAHglsgLaFTGtPI/AR9mawMJGdnSiwN3aP1dGfsL+5xMjNptuiFyxWeuxJ8Ta/LNB6Ui7m8ML3p7RUjrFB5w76M7ltfsoII=;20:i945el9SvaKI0bKu7NacE6x2x9rzsMZES8yH+AH4YnqybA5Uxs+1UgSR1Sq6a0M7qHGKAbkqXa9u8J+/kG0/d5uBsJISMBPDZU17+HIVOCYEq0DUv6X3FwTm2oQe3u2HW8tsoQsskTeFuJTL3InNDIW7XoWbTyMLDetSkX96BSJiM/qYyzFM0CLeL2OuNv2Z+dbUaUPMaP7Zfh8Z0pH5rmgrsXoAGUxW081zYVTP+gc2JTXNMfNzjx6OzjHn60QanZU3YLTIYi3XzAlLmHRlcaTaGpjgaSKrxkT8QUh5bwDhusPzCaTGABSLc9CttyTwzmrUTZxgAvfmSlq5PoTLg4VniVBkygHKssBVMYAwSmBfwFnk/FZJXfEiWpuVgU1U9l6x4pYZIMkZOkKYLgV06oD2ZVpFiKKpNVbRHFxMD9ApXIT2pWQLbOnEsvuSSRJ25bvVZ3rhgPnoIbNxg53cgASMxHu1MwHjz4hBzd+t4Yblfrx+Gyb0f9bSSUQ8iFUg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231022)(93006095)(93004095)(6055026)(6041248)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(6072148)(201708071742011);SRVR:CY4PR02MB3270;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR02MB3270; X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB3270;4:TbY/GPbksSbqQof3pbmDduY29IHxK8joPOADt8IKqnvb5VuQyPJO1NssRhQXzxb5f5Uc8cH8H8/Pk5pf+q37ZuSeMA0vkAeJlRPbPNr9qFmORKnL7hcU+JWHInZAdDkhl5UyU0Jw87Ae5BnggE4lSfBhtppJH+5bhvncaQpxfZPqH2Nd6YYYDZMe4BAR9qMRs5NprskgkWd0TbdU3AZVBLgePix5HuoXygbQrtPaHg7bHMyE8dL2kBwOamqREk21sdaqI6C2PzGSmVNVDhjEnOq1nMyEnURd4k9Nqo9caeKSoBV2BXZikMGpzWOWUMpb X-Forefront-PRVS: 0504F29D72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR02MB3270;23:U2W/RWXX18v43TH2u8MMcJ36VXG/FlVs+e/mR8lba?= =?us-ascii?Q?H++XBMs8SIoUrrI4eR7M5dKa+E9HokwhQ9QF/F+TjmvxLzfBukyOBX2Zsz9s?= =?us-ascii?Q?jiKdXhwTGlupkwh/yw1lu4gycrlVI0ZVtGHHQIxT6F8ZYXRGZgnGR2YUuBgc?= =?us-ascii?Q?fsSu9aWyWC8nzEHPZ/FocJKu+0+NdCmxbI656CKV0bFrFhLRN754uuyR83VN?= =?us-ascii?Q?A6IPTswmwtQNohMxgXgCXKr0v7GqXNVS9cnyCPLP+fHmPEbV76WiUZlBt415?= =?us-ascii?Q?zQi4HWpQ/QvKqAM3SceSLZ2qBQM9DXOM22HQMObykVi4WbN70olkc5698xAy?= =?us-ascii?Q?7U1lAboVKCZtHjKXkbahzjARFU7MDAqNk4X3VwI+toIhPO0/WEHi/8xZYBJe?= =?us-ascii?Q?q6STF3ulNBRWkVNnY+s3xKvynLMxglXckbHfLimcnyp0O1LpfHz0LI0k555b?= =?us-ascii?Q?kk5K/i1AkPPdkCAGKVP3F99CJS71reGF3nULveiwYUoyY087HJmg0CG/kSIC?= =?us-ascii?Q?xQC31xNbhZR3hF75hpL8oE7o0KK18g9znceyngtfY9YNr9BW+xbX+S79rZjy?= =?us-ascii?Q?OjQwiZxqzgKoGsoBtE4bkWpu/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gflOJbpBAf1HQMqFvODbzffU83bjX4o8G3vao=;24:VZRLnyEaQ4x6/pEjx4tCWEQI19FvfJy2WY4ci26Scw026vF0dEMxdSknkT9fu4R4ruEAXCf29PkZ9uIsyKGms/lL572fWxgVpC/BXEW9jo8=;7:XqZgHrGvRXwETgJBclEcAgfU5lcYA0aa/uYqs2moHiharKDM3k/D2cs7+zVIuYGnoesNgxekCO6XkVPOKR/MsyYLsEbIb8Fd4mmBPFauSErVc8gKvil81v0gUTU7RW7z8U4/yOonBWGMmb2/JBDvc0vqwaY6MCafGQuqZOlvAgeKN1RKwhMzwpo99xSdMtsM+J+epgHUf24DypNnhamhgmUGY/MFrJn9k8cBX3kglaEuj6CeX9l4xknn15R6qH6p SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 07:10:14.2191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 86c02daa-6a14-4bcf-1a75-08d53565e80f 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: CY4PR02MB3270 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Edgar E. Iglesias" Add RX queue pointer to macb queues to make it accessible for the multiple queues available. Currently the first RX queue is used. Signed-off-by: Edgar E. Iglesias Signed-off-by: Harini Katakam Signed-off-by: Michal Simek --- drivers/net/ethernet/cadence/macb.h | 1 + drivers/net/ethernet/cadence/macb_main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index c93f3a2..acb6578 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -968,6 +968,7 @@ struct macb_queue { unsigned int IMR; unsigned int TBQP; unsigned int TBQPH; + unsigned int RBQP; unsigned int tx_head, tx_tail; struct macb_dma_desc *tx_ring; diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 72a67f7..623ae9c 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -2875,6 +2875,7 @@ static int macb_init(struct platform_device *pdev) if (bp->hw_dma_cap & HW_DMA_CAP_64B) queue->TBQPH = GEM_TBQPH(hw_q - 1); #endif + queue->RBQP = GEM_RBQP(hw_q - 1); } else { /* queue0 uses legacy registers */ queue->ISR = MACB_ISR; @@ -2886,6 +2887,7 @@ static int macb_init(struct platform_device *pdev) if (bp->hw_dma_cap & HW_DMA_CAP_64B) queue->TBQPH = MACB_TBQPH; #endif + queue->RBQP = MACB_RBQP; } /* get irq: here we use the linux queue index, not the hardware -- 2.7.4 From 1584116562980325778@xxx Wed Nov 15 07:34:40 +0000 2017 X-GM-THRID: 1584116562980325778 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread