Received: by 10.223.164.202 with SMTP id h10csp297007wrb; Wed, 8 Nov 2017 16:52:59 -0800 (PST) X-Google-Smtp-Source: ABhQp+QmrHym3u0DKbUaqPvaKq81ZSBMrCkQfDxG0XfC5oirzWosuLqvCNrYnCBMCTJOgo13tpMW X-Received: by 10.159.244.4 with SMTP id x4mr2023542plr.31.1510188779499; Wed, 08 Nov 2017 16:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510188779; cv=none; d=google.com; s=arc-20160816; b=zKwUT2fLKAfLEPTuX21t3KZOwBsgXYtJoL/6gwM8AJoRgo9F0SXXvLqprcVaCvk3O1 Jjt1ayyJBygUMi43+fDWBf+1JtXrBj0qJoziTQR9HnQi0Bgs/xBHA7COXJqux0DuMxcL /XMaRY4QlF8rKpY26PG7yr+fAgwI4jzkbH/cPaoCK20nRlgSP9YozeWNhSvVeTI/ecyl bZTLwHYAW6chIfBTIJKBqrOyAcnb88dXMFLZyUf7wZsxR39Z2279jI8obXnadIaaAzkb quh7dpscUKdeygJDQ15Clo9kZWVU+mhVzBKK1hHpjTIUegT2nnHxbQLABYYQ33L+qLVG 27Xg== 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=4HRaMU7g0e0SSZzhBzdMwpwPlwE2cBKYD8XF62TEdrE=; b=0BxtbzO38x1V0I46rN+xmb9RoK3ViY/xRNlFjvGlXsrhc7MeQXRVhgmmg2Zwr/UD7S NfnW5xEEKIRWot2eglTvwgIqnc0TqJHRYlkn9zpQHhyh5+IRGyXB0y/W2oa5D597T4Xe Yy4nushZYi7xBabec1xN98M1cGSj4DETLgUAJ3TEPxmMP2b9kqnRy9aR840/cM2w+6NK CRjkTLHVptlAcxVXnJtuuNINPHg6F34jCpX8EnWirPHKqvfyqeBberE2DSRsE/vSX0xH 7X1iJiZEUzmrjLjBkQJLb3LX7VYIqQ3mXHycJNZOXcgplyYGSufNFIWRlexLeT43pRwf Q/sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=GEz2oNnN; 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 x32si4738806pld.51.2017.11.08.16.52.47; Wed, 08 Nov 2017 16:52:59 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=GEz2oNnN; 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 S1753248AbdKIAvo (ORCPT + 84 others); Wed, 8 Nov 2017 19:51:44 -0500 Received: from mail-by2nam01on0058.outbound.protection.outlook.com ([104.47.34.58]:48138 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752697AbdKIAvm (ORCPT ); Wed, 8 Nov 2017 19:51:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4HRaMU7g0e0SSZzhBzdMwpwPlwE2cBKYD8XF62TEdrE=; b=GEz2oNnNW6xP9zO+Ea/pUXpiVMfrEh2o+DA6pNvHSXj73XW1YzNnW/SaidIgwgcV6rpgJDUORIcxigf9/RrB1w21eYbxoCLu7NfJROKnrNDrtayVWnl7OvDXfMGOsJsgWDqiCFrnbquGS6HGP2vhza7xBt3CN5MIEK50MOkb7Dk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com; Received: from ddl.caveonetworks.com (50.233.148.156) by CY4PR07MB3495.namprd07.prod.outlook.com (10.171.252.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Thu, 9 Nov 2017 00:51:37 +0000 From: David Daney To: linux-mips@linux-mips.org, ralf@linux-mips.org, James Hogan , netdev@vger.kernel.org, "David S. Miller" , Rob Herring , Mark Rutland , devel@driverdev.osuosl.org, Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, "Steven J. Hill" , devicetree@vger.kernel.org, Andrew Lunn , Florian Fainelli , David Daney Subject: [PATCH v2 0/8] Cavium OCTEON-III network driver. Date: Wed, 8 Nov 2017 16:51:18 -0800 Message-Id: <20171109005126.21341-1-david.daney@cavium.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: SN4PR0701CA0022.namprd07.prod.outlook.com (10.161.192.160) To CY4PR07MB3495.namprd07.prod.outlook.com (10.171.252.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f394f10d-cf43-4083-6778-08d5270c08d4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:CY4PR07MB3495; X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB3495;3:LthhonwQeapbRsnSiJxInzdtsVZUaaJpPHG8wkkP7BzLYaW5A6wu6kM5doerdrjP71w30kopNpwy7MQKs8TNQ/b2UtfrXTC/5HRepjU/lxQgjSwSEkbCmQr51+C+mgyqgMPvCqFQ4NjCq4McvruQ+/Rhp+poLX+SDHkihpky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4oH51ds4YFTo+XvFdjmPM56DCVyLEQI3PgabEm0Gmo3RNIRbmcoMQSZv/qXCTGwdDYbzObUutpMSmwAKLoqsJ/nDZw99Ssplmo8ZuyDw3qlyyyvc+aBRdc/Vyv9YdRxS+v5cFbHEQhYVl7Q+feRH6B8ehoycbHe9h9z8bg9fVHlL;4:RjbQ+OR2LWNWg0aE0Eo7m+xGEH3IzfD41IEEP182Nz1rVXoMi0mu8Lx2Eqjl15VQdGYybueEvZr7vtxRo8nEBbggHgpT8cvfMm3/OzC/Xtb74u6anNeV05LURdYz/4vM0qq91tTHToGRYnOw+PxQ1/N1pgPiwOvulhWoXQBUXzM7ez+cHGFcJsjTmKu5cxuN720k4nLeRHkTnTL+83KcD4jRzQ4DIW69zcuoyiqDLkUP1bqMHyM+yIzUKCZ+xbiuGt+OSY1siwdcwDFAor6Kgw== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3231021)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR07MB3495;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR07MB3495; X-Forefront-PRVS: 0486A0CB86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(53936002)(6486002)(50466002)(6506006)(110136005)(36756003)(33646002)(7736002)(54906003)(50986999)(106356001)(189998001)(66066001)(2906002)(25786009)(305945005)(7416002)(97736004)(1076002)(48376002)(47776003)(105586002)(16526018)(3846002)(81156014)(6512007)(81166006)(6116002)(8936002)(5003940100001)(101416001)(8676002)(478600001)(53416004)(316002)(6666003)(50226002)(72206003)(4326008)(69596002)(5660300001)(68736007)(16586007)(39060400002)(86362001)(107886003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR07MB3495;H:ddl.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR07MB3495;23:MwMOmUOkw4JV8o04MUrk7/ppSt9SwpAzmISwaqaa5?= =?us-ascii?Q?uHXfk1XJ1mFXnrBkjDvnArQu1+ab6BoGGa48mBcR6C+YBaeme1o3Omfl3Kgc?= =?us-ascii?Q?4369yEedqk5rSZm8qqj+LEpvZoYlfN4kFBapY2iozASLaud3lThfnPyh0F3V?= =?us-ascii?Q?hUvzXxNTaI0tDR2QrTxlDg2QibZK8GjzNeqqrqyL8WX5QvDWJJe3LjJuQ8CO?= =?us-ascii?Q?RJmPZt+9w4kuipm8X9Xmv0l3kd1diM7/sdWZB+1DLp+DHE21nR6ZbavCebgj?= =?us-ascii?Q?e0vpXkEHbjQoIngP2wlIqLk/5Vv4TfMxlZBWTp5VyNGPcP6ZHuvaXO35x50C?= =?us-ascii?Q?UeBem56ioAdCrZjSfN75IElYCfbQ0BwOv8+/Jby2CE1fUHixZoRCveY5PPVD?= =?us-ascii?Q?tjbGa9Je7YHwTHYGqiU7Us/OGjx1tCV7++CKvBEHFj0zhTt8aAwbIS8UiMGf?= =?us-ascii?Q?pZBph8CEif9ynNpjHUn8N7RCaKV9UpiIL7leYJcIqUcs10PMutfwDhvuDX76?= =?us-ascii?Q?KGwOTOh/zYB2h2dsLJGmFkPv68s0XqO2HxILKnwoyhKha547Aa0JyUlkvzc/?= =?us-ascii?Q?V3pe1PpBzHmGgm1wyI/TO/7U/uuG5QEFOMTH2hH7Rxzy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rcPP4nobKIJ/Drw/0u4GYzKV67uY=;5:c2jjtB4XcPEJ9w6GxTdVayiU3hpCuKFAOMRUKewRW7GX/tLtGNZjnceqSNH8sxipHIZKe5IEtTIMWmAkMmk424BZkuv6KBB0RUrx4totX/9ZT0NQQtsQjrx+ZjcURb7S0e2xspWAu1ar6HFWG/1tiI9i0R6aRGBd+jLXpGkLcS4=;24:vbiO0A123DaHCuYJRgvAA7CsOUfXLFcHQzq2xAKFJvsK+t82Y+GrjFICXHXIdvb+DlmEI3EnZ3SZHE9HP8xERu6nigy3F3ArB58U21Enb2k=;7:hsl0lZ+fgFNE0wxK3mSWRZT04PIe0d6MEJ6ThB7FU9tB4GMdmkgKoC22wgypnZodTjuL2BKSc9HbuM7JzhvavqstxppnAXknCJiUOgw0SV3Kua+wQ5fPwgQztkWgfqRDr4RvHyqZtguH+Ui/QwSBu3gPjtzeaux3QmXsGtqkdtUB/NaBzmn/PCPxX7TbgRxiGEIdPJlMYhupNazU5p2R5JBNTqZX0KqlToJLLOqtdoh59ubu6YxlvhNWbDSOvzTw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2017 00:51:37.2673 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f394f10d-cf43-4083-6778-08d5270c08d4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3495 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are adding the Cavium OCTEON-III network driver. But since interacting with the input and output queues is done via special CPU local memory, we also need to add support to the MIPS/Octeon architecture code. Aren't SoCs nice in this way? The first six patches add the SoC support needed by the driver, the last two add the driver and an entry in MAINTAINERS. Since these touch several subsystems (mips, staging, netdev), I would propose merging via netdev, but defer to the maintainers if they think something else would work better. A separate pull request was recently done by Steven Hill for the firmware required by the driver. Changes from v1: o Cleanup and use of standard bindings in the device tree bindings document. o Added (hopefully) clarifying comments about several OCTEON architectural peculiarities. o Removed unused testing code from the driver. o Removed some module parameters that already default to the proper values. o KConfig cleanup, including testing on x86_64, arm64 and mips. o Fixed breakage to the driver for previous generation of OCTEON SoCs (in the staging directory still). o Verified bisectability of the patch set. Carlos Munoz (5): dt-bindings: Add Cavium Octeon Common Ethernet Interface. MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. MIPS: Octeon: Add Free Pointer Unit (FPA) support. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (3): MIPS: Octeon: Automatically provision CVMSEG space. staging: octeon: Remove USE_ASYNC_IOBDMA macro. MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-* .../devicetree/bindings/net/cavium-bgx.txt | 61 + MAINTAINERS | 6 + arch/mips/cavium-octeon/Kconfig | 35 +- arch/mips/cavium-octeon/Makefile | 4 +- arch/mips/cavium-octeon/octeon-fpa3.c | 364 ++++ arch/mips/cavium-octeon/resource-mgr.c | 371 ++++ arch/mips/cavium-octeon/setup.c | 22 +- .../asm/mach-cavium-octeon/kernel-entry-init.h | 20 +- arch/mips/include/asm/mipsregs.h | 2 + arch/mips/include/asm/octeon/octeon.h | 47 +- arch/mips/include/asm/processor.h | 2 +- arch/mips/kernel/octeon_switch.S | 2 - arch/mips/mm/tlbex.c | 29 +- drivers/net/ethernet/cavium/Kconfig | 55 +- drivers/net/ethernet/cavium/octeon/Makefile | 6 + .../net/ethernet/cavium/octeon/octeon3-bgx-nexus.c | 698 +++++++ .../net/ethernet/cavium/octeon/octeon3-bgx-port.c | 2028 +++++++++++++++++++ drivers/net/ethernet/cavium/octeon/octeon3-core.c | 2068 ++++++++++++++++++++ drivers/net/ethernet/cavium/octeon/octeon3-pki.c | 833 ++++++++ drivers/net/ethernet/cavium/octeon/octeon3-pko.c | 1719 ++++++++++++++++ drivers/net/ethernet/cavium/octeon/octeon3-sso.c | 309 +++ drivers/net/ethernet/cavium/octeon/octeon3.h | 411 ++++ drivers/staging/octeon/ethernet-defines.h | 6 - drivers/staging/octeon/ethernet-rx.c | 25 +- drivers/staging/octeon/ethernet-tx.c | 85 +- 25 files changed, 9065 insertions(+), 143 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/cavium-bgx.txt create mode 100644 arch/mips/cavium-octeon/octeon-fpa3.c create mode 100644 arch/mips/cavium-octeon/resource-mgr.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-bgx-nexus.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-bgx-port.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-core.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-pki.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-pko.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3-sso.c create mode 100644 drivers/net/ethernet/cavium/octeon/octeon3.h -- 2.13.6 From 1583664561997429344@xxx Fri Nov 10 07:50:18 +0000 2017 X-GM-THRID: 1582906816175944536 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread