From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730042.outbound.protection.outlook.com [40.107.73.42]) by dpdk.org (Postfix) with ESMTP id 060551B139 for ; Sat, 29 Sep 2018 12:32:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C29//cH0FUQxE02q0ReAh4OpUCV597oqowamgIF+CFY=; b=Cvu2+0Zya/UlzytW9NtLKXdQUfbKWxpvkSBLNquouvz2PZzfYd2cmCMTheBmIKB01OI5RZ7iCaoQcanYDCDFNYbNAqDIYM2Zj8G5S0ve1VSuUJq8GRJY7KOzaqqeLe8qFO+A65hbX4r+IDFKB8+HpO80QMpbbTSzYxkNZcT6F+4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; Received: from ubuntubox.rdc.aquantia.com (95.79.108.179) by BLUPR0701MB1650.namprd07.prod.outlook.com (2a01:111:e400:58c6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Sat, 29 Sep 2018 10:32:49 +0000 From: Igor Russkikh To: dev@dpdk.org Cc: pavel.belous@aquantia.com, igor.russkikh@aquantia.com, Pavel Belous Date: Sat, 29 Sep 2018 13:30:34 +0300 Message-Id: <1385c7733c0ad133b20b424957ac26662ecc8df7.1538215990.git.igor.russkikh@aquantia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.79.108.179] X-ClientProxiedBy: VI1P193CA0009.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:bd::19) To BLUPR0701MB1650.namprd07.prod.outlook.com (2a01:111:e400:58c6::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61c57ffc-0f00-4536-7c86-08d625f6ebb8 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BLUPR0701MB1650; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1650; 3:rH4eS3A/OJr2+ihlgKU9DlY3/7ZmKdemF78iZA/G9OwYV71CGdhk8XpNtUgVzK0rBDKRiqpwAQ+5BBj9RIoiDgJUYex8+FvMLApviXexdMd8SE+kOf4Gpg4315pF1wmEDfm4gv+h8JjRIbrXeF2Ghi62QJpLMoaUjVUzo7lkmkjBidd/DWhkhdGyg4caRc4B1nI8zytRp0IzXNqfZusy2/EgmgPTiUkiMrwf3cOykiXsfyRHZndy1G5ttA/UqiNI; 25:FOpM6EdjKQCE77r29+Ai4eo4PN2wCIg20IzOhLko3UQhth5EQqO/pUkL0NR7mJ7m+Qo6oTSCbkVjzCzz50fyseA+WxYrqyZ23SBlIY/zxdM36WtxcJZ7sWp/tUz/Q+f5JN+M8BhQmKhbwX9hEem0RoGWqF8+xW3QRyel1bZrdNLtwH9vZt8trvKMqDKKFdr66pPqpnTz0yLoahLsicVVRq+XpyPutLF08JzHv8Kvy5zXu7YxvZAsteC7A5+vQj7cjCxXcKk3KckMXVVUpNJkjFZTFAj9ESgURUrAubqdxZiKYvYCFmlkYwQwQISLh56nK7RSaoULnaeodni7aUiIcQ==; 31:yvZw0LAH1W9G6IwVaOQyH+Q5J6n+GO6Pz8ewxusCDb2dT3ovqGLvHdlquLXqKWB/aFGIgrTWk2NdkWh6SsdKyiqUjR8os7WGwJwBIU9iXIDIFE8XjUuC9cNOl4JMxsV3U86A6WQrmoPgGv+e23jy56hlP//FgZpdmwyCiewsg3cwRXLRMQGSVYDKVhnWxmQ/vqlXrdm8ljKGuGRWpYLaAotA7WbrJCZxVV0WQ5Mi6KA= X-MS-TrafficTypeDiagnostic: BLUPR0701MB1650: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1650; 20:FKi/pIThI7sq7TCQWCQFDEwVnyqUbjDp6pv0Ohf5gv0rwnT2uMrUxRFhp9aT6nsmuRCI0iu378JmxE4LODI6uwJTn9xEflBvr5boH9vvaBW82m3vt3mMdy0MkgMZ4T3ddWq1fxPndjUHZNxvWOBEG4VDorP1mbWmPuxHS263giFxLQns4aS1SC6w+0BBQs7k/Pp0N+btNGeY1TdJsOlkks2We7b8f1Edgt7YPiSvGAIhjRWCRedGO+zHuutoxvTybVdOWjLWA3OSZqdA4+miEl4rwxl0PDVZICJreXIqoDb3oJ27HwqkZ9iT8zcvpWx+yqP7YtlECkgtETr0dI+1f0knh9eLhp8wEsUxNPTRZz2imI8DKekHXcqfojYM2r6ggm5ryKx7yJIkCYHRAetgvee6Fn5U5ee42uvLjbTs08jpsnWry0WTbT8LVohXCvx1j5mUGhU+LJaX4sOfnsbRBlM8Nwjy3EwNtgMtlRyJL10YkxzDhJs/v7fodlQbOtAO; 4:NfAMfKuL5CfkWcDBIQQ2toSbo6SihDXR5dI7K+J4ljDaLpHcgevKVkU2gV/QNSn6xeMt5RNYmy1/eoUeIcwSezS0/GDxyRzw4zCp/HtNye3vrL1m2SWOy87jM3MxITQUmNEPdAxjG92VtwgTkjOZ6L280ZbMyuWCMB0lvnp+ZPAcW7XVZJcmACZoakC5V9uhtp0ZX1r2CQyFsCvP5tPT8oAQ+SnnAAhiAnQQwLU9+hmZwUWmW+E16f8kc69PIlR88DVe5BCWuZCzuXax4u1iOQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051); SRVR:BLUPR0701MB1650; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1650; X-Forefront-PRVS: 0810818DA0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(396003)(376002)(39850400004)(366004)(189003)(199004)(16526019)(446003)(76176011)(2906002)(6916009)(6666003)(97736004)(8676002)(81166006)(81156014)(36756003)(4326008)(316002)(8936002)(50226002)(34290500001)(575784001)(86362001)(5660300001)(68736007)(16586007)(118296001)(72206003)(3846002)(6116002)(53936002)(386003)(105586002)(6486002)(47776003)(66066001)(486006)(25786009)(305945005)(50466002)(44832011)(956004)(2616005)(26005)(107886003)(52116002)(51416003)(7696005)(186003)(476003)(478600001)(2361001)(7736002)(2351001)(48376002)(106356001)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1650; H:ubuntubox.rdc.aquantia.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1650; 23:KqlsG/+ZYIAGPkB+196qJPOYTUcJFd96GX3aicN?= =?us-ascii?Q?XydXW6SAqSeGmbXxJczjadhCUhexpOz88CBR/EYse3/BXHzXnQANEx9DOLKp?= =?us-ascii?Q?+q+2B7PgxmLFhHL924TuY0HWod55/13VW03CUXCsAjO8ldY/E0MTg3+5skPb?= =?us-ascii?Q?FuXX0cDpJZhxlMCys+pG4m0nzMQaDlOFXlJFQbHSFeu0yAni5qXUm6MkkNIs?= =?us-ascii?Q?Z3HnanRjwoQ+klbRbp/9PEpZgY/BlPZg9o/Ly5+GII9UjRtAN7tsxfDMqp3Y?= =?us-ascii?Q?HlbANTULminAHHmIDQTexDSlAZXixFswHxEe5NzDEt8IYZnD75PVmtj+PtVN?= =?us-ascii?Q?peZurONb4G+PAJ9HUbzELvYTyTT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ZmEDZRKujTdxp4pyTQj0l6YoUPIyFlo4aqeMl8EzQdS3gfQuuo825gP2dvqWPXDh6A385I2OZJR51szKPahM=; 7:GFavFV4+yVdDO0anqE3Pruxxz/M/EPNr6roFNFsqgJ71a6Nrub6jetoHq/pw2eLPvhensE2sVrOEQxEDapOcbVa9iskgQzjAN+qIn7wYpzjzXfWGSUVBp8raJL9ONPwCriEKCV5PnDr8S4REK2NzV8Zhk6F+9j99Hvu6/fK8jx0WrBx8B5GDEfIXg3mhjMCy9kjDeQTUegfsY9Xg6tqzRMQALI4KTBFNYdrCjFqBp85hZHrra+vC+alRnRMc1Txc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2018 10:32:49.0324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 61c57ffc-0f00-4536-7c86-08d625f6ebb8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1650 Subject: [dpdk-dev] [PATCH v3 20/22] net/atlantic: LED control DPDK and private APIs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2018 10:32:58 -0000 Signed-off-by: Igor Russkikh Signed-off-by: Pavel Belous --- drivers/net/atlantic/Makefile | 4 +++ drivers/net/atlantic/atl_ethdev.c | 53 +++++++++++++++++++++++++++++++++ drivers/net/atlantic/atl_ethdev.h | 3 ++ drivers/net/atlantic/meson.build | 3 ++ drivers/net/atlantic/rte_pmd_atlantic.c | 19 ++++++++++++ drivers/net/atlantic/rte_pmd_atlantic.h | 44 +++++++++++++++++++++++++++ 6 files changed, 126 insertions(+) create mode 100644 drivers/net/atlantic/rte_pmd_atlantic.c create mode 100644 drivers/net/atlantic/rte_pmd_atlantic.h diff --git a/drivers/net/atlantic/Makefile b/drivers/net/atlantic/Makefile index 62dcdbffa69c..6e821e013af9 100644 --- a/drivers/net/atlantic/Makefile +++ b/drivers/net/atlantic/Makefile @@ -31,5 +31,9 @@ SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_utils.c SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_llh.c SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_utils_fw2x.c SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_b0.c +SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += rte_pmd_atlantic.c + +# install this header file +SYMLINK-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD)-include := rte_pmd_atlantic.h include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index b3a19f96e8c8..90ab8d9c0b1d 100644 --- a/drivers/net/atlantic/atl_ethdev.c +++ b/drivers/net/atlantic/atl_ethdev.c @@ -69,6 +69,10 @@ static void atl_vlan_strip_queue_set(struct rte_eth_dev *dev, static int atl_vlan_tpid_set(struct rte_eth_dev *dev, enum rte_vlan_type vlan_type, uint16_t tpid); +/* LEDs */ +static int atl_dev_led_on(struct rte_eth_dev *dev); +static int atl_dev_led_off(struct rte_eth_dev *dev); + /* EEPROM */ static int atl_dev_get_eeprom_length(struct rte_eth_dev *dev); static int atl_dev_get_eeprom(struct rte_eth_dev *dev, @@ -273,6 +277,10 @@ static const struct eth_dev_ops atl_eth_dev_ops = { .rx_descriptor_status = atl_dev_rx_descriptor_status, .tx_descriptor_status = atl_dev_tx_descriptor_status, + /* LEDs */ + .dev_led_on = atl_dev_led_on, + .dev_led_off = atl_dev_led_off, + /* EEPROM */ .get_eeprom_length = atl_dev_get_eeprom_length, .get_eeprom = atl_dev_get_eeprom, @@ -1183,6 +1191,51 @@ atl_dev_interrupt_handler(void *param) atl_dev_interrupt_action(dev, dev->intr_handle); } +/** + * LED ON Enables software controllable LED blinking. + * LED status then is independent of link status or traffic + */ +static int +atl_dev_led_on(struct rte_eth_dev *dev) +{ + struct aq_hw_s *hw = ATL_DEV_PRIVATE_TO_HW(dev->data->dev_private); + + if (hw->aq_fw_ops->led_control == NULL) + return -ENOTSUP; + + return hw->aq_fw_ops->led_control(hw, + AQ_HW_LED_BLINK | + (AQ_HW_LED_BLINK << 2) | + (AQ_HW_LED_BLINK << 4)); +} + +/** + * LED OFF disables software controllable LED blinking + * LED is controlled by default logic and depends on link status and + * traffic activity + */ +static int +atl_dev_led_off(struct rte_eth_dev *dev) +{ + struct aq_hw_s *hw = ATL_DEV_PRIVATE_TO_HW(dev->data->dev_private); + + if (hw->aq_fw_ops->led_control == NULL) + return -ENOTSUP; + + return hw->aq_fw_ops->led_control(hw, AQ_HW_LED_DEFAULT); +} + +int +atl_dev_led_control(struct rte_eth_dev *dev, int control) +{ + struct aq_hw_s *hw = ATL_DEV_PRIVATE_TO_HW(dev->data->dev_private); + + if (hw->aq_fw_ops->led_control == NULL) + return -ENOTSUP; + + return hw->aq_fw_ops->led_control(hw, control); +} + #define SFP_EEPROM_SIZE 0xff static int diff --git a/drivers/net/atlantic/atl_ethdev.h b/drivers/net/atlantic/atl_ethdev.h index 69612a016089..51d6042088c7 100644 --- a/drivers/net/atlantic/atl_ethdev.h +++ b/drivers/net/atlantic/atl_ethdev.h @@ -104,4 +104,7 @@ uint16_t atl_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t atl_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts); +int +atl_dev_led_control(struct rte_eth_dev *dev, int control); + #endif /* _ATLANTIC_ETHDEV_H_ */ diff --git a/drivers/net/atlantic/meson.build b/drivers/net/atlantic/meson.build index 7575e471e306..8e992f2406f6 100644 --- a/drivers/net/atlantic/meson.build +++ b/drivers/net/atlantic/meson.build @@ -11,8 +11,11 @@ sources = files( 'hw_atl/hw_atl_llh.c', 'hw_atl/hw_atl_utils_fw2x.c', 'hw_atl/hw_atl_utils.c', + 'rte_pmd_atlantic.c', ) deps += ['eal'] allow_experimental_apis = true + +install_headers('rte_pmd_atlantic.h') diff --git a/drivers/net/atlantic/rte_pmd_atlantic.c b/drivers/net/atlantic/rte_pmd_atlantic.c new file mode 100644 index 000000000000..4cb09baf2afc --- /dev/null +++ b/drivers/net/atlantic/rte_pmd_atlantic.c @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Aquantia Corporation + */ + +#include + +#include "rte_pmd_atlantic.h" +#include "atl_ethdev.h" + +int rte_pmd_atl_dev_led_control(int port, int control) +{ + struct rte_eth_dev *dev; + + RTE_ETH_VALID_PORTID_OR_ERR_RET(port, -ENODEV); + + dev = &rte_eth_devices[port]; + + return atl_dev_led_control(dev, control); +} diff --git a/drivers/net/atlantic/rte_pmd_atlantic.h b/drivers/net/atlantic/rte_pmd_atlantic.h new file mode 100644 index 000000000000..1c80330911a0 --- /dev/null +++ b/drivers/net/atlantic/rte_pmd_atlantic.h @@ -0,0 +1,44 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Aquantia Corporation + */ + +/** + * @file rte_pmd_atlantic.h + * atlantic PMD specific functions. + * + **/ + +#ifndef _PMD_ATLANTIC_H_ +#define _PMD_ATLANTIC_H_ + +#include + +#define RTE_PMD_AQ_HW_LED_OFF 0x3U +#define RTE_PMD_AQ_HW_LED_BLINK 0x2U +#define RTE_PMD_AQ_HW_LED_ON 0x1U +#define RTE_PMD_AQ_HW_LED_DEFAULT 0x0U + +/** + * This is a custom API for adapter's LED controls. + * + * @param dev + * Ethernet device to apply control to + * @param control + * 6 bit value (3 leds each 2bit): + * - bits 0-1: LED0 control + * - bits 2-3: LED1 control + * - bits 4-5: LED2 control + * Each two bit control value is: + * - 0: Firmware manages this LED activity + * - 1: Permanent ON + * - 2: Blinking + * - 3: Permanent OFF + * + * @return + * - (0) if successful. + * - (-ENOTSUP) if hardware doesn't support. + */ +int rte_pmd_atl_dev_led_control(int port, int control); + + +#endif /* _PMD_ATLANTIC_H_ */ -- 2.7.4