Received: by 10.223.164.202 with SMTP id h10csp365596wrb; Thu, 30 Nov 2017 11:37:57 -0800 (PST) X-Google-Smtp-Source: AGs4zMbJO+F+szntE37mTEcGJIXG91SB8oeAGf9r5zfqDhWnAJ8hgjKDuvrE6lAJ2lI2HnlC2fWS X-Received: by 10.98.34.199 with SMTP id p68mr7581284pfj.241.1512070676903; Thu, 30 Nov 2017 11:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512070676; cv=none; d=google.com; s=arc-20160816; b=Jsd9T4iZjri/t2Fe/dVOevoOBHeZS24xX0+Jpzn+m45KkQcwMktRT7TonVO347KBPV e1ACVJpLqDkRDHUd0AYy/vMrAbOM9iYGaJC0BmmsPyq4j7yOwRoShoM+vkcdkP/9dGMB yMO3U3vDJBWECWfBpx+x5/ezQq7lxgcEmNWftBL4J5zfCfm13Cn3KHn/hhEV2PjnRBgC VSN2kECatoGOvPZqUMcSGQcgxNpbfu5T9Tn3iMitSkpFROYIP0JlG3nO36tall+hqPPj XE9utzU2EX4y21ZZwXyvHYeVDby40xkS2t7TiKcN0eGkyz5NxscWjV1DBXG18GSJQ+E+ Tbmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/U1ms9e+Ht4r2/dOlQIR7tuDPfdd4/O4hdkvtoDdxEM=; b=bxO1G9vJc1kSWUEQXyX1Ur0s32g6RpH8ea0012aMZJw4yOgKQMZ2jjANjblYBjXv+c npOTSRSpsBW+U3ghbUb+0AtnD52e38cFm6csThd5UeQwOCVD2PQ64aKazT4vYnUDaHFi lZEcgmQ3pa9QX7n3lS7zrV4ZqR/Frphk+xkJveGCCEPb7WzRUnsWPcfHH/HRSAqisIXz uhiGB9L/mYpSf2/kOLRlVnvJmh6CtaZYE1veAhKYUfE6VxOdcCBs6o9JUp7FcasKnmxN yVoUklpP5hRAgKcvs2U2D6X7cUH3eu5Zyyv34Z2Ke0chkGWvJQ8vx4EMb+Q4rOh9KnD0 fU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=gwOkzeLU; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o88si3738164pfk.294.2017.11.30.11.37.43; Thu, 30 Nov 2017 11:37:56 -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=@broadcom.com header.s=google header.b=gwOkzeLU; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751582AbdK3Tgd (ORCPT + 99 others); Thu, 30 Nov 2017 14:36:33 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33641 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdK3Tga (ORCPT ); Thu, 30 Nov 2017 14:36:30 -0500 Received: by mail-wr0-f195.google.com with SMTP id v22so7771739wrb.0 for ; Thu, 30 Nov 2017 11:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/U1ms9e+Ht4r2/dOlQIR7tuDPfdd4/O4hdkvtoDdxEM=; b=gwOkzeLUAEbh+mimVS7Ss7uS+3ypan5SzuQCIbVerAhD8T6f2BUpIyGEEq4NIKH7DP ovUehfEd1/ow6h3xuPBf+ZJw3IEDOcKaLPelXFtLJg8ZQlw5Su42+Z6pJJ/822JRrLke Wc1RjN0IQECcI2/OeQmBpV4bzCvtg+mPZ7rdg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/U1ms9e+Ht4r2/dOlQIR7tuDPfdd4/O4hdkvtoDdxEM=; b=RS+diRmOWLhlAe3nJ8NmrbQ/QJ6P2Hfr6V08xO+hIJ/XSmspaFe9DwJVm4g8EtBXLt njYCz++TTqOLQkOsU9MBE2T4UD3hPbTx+bQtbtMuzxmFpaX7yXBA5DsMHnpO8sAj4cyR VczNaPr03kWvdzFMljpUm4KcGVg18746b00lXNOvrWVPUbDLEeDPK4SrtqQYQhECSM2y 2BqeqZSdMpxBNHSLvUGKOLiB8vOietYzaGCEzRo3UuDLOIJocNp16fvKj6tc0XqBxJX/ dw5SzQG+c7w3DEPrEz/pK14gAc9M/aM2XzOjQfcCyhmqYXa/1p1OXxZ4NnM7p7+SAE7Y kLbw== X-Gm-Message-State: AJaThX5c2aerG/vJ/M1tXGPuhTbHkzX+sKY8qrO/Ov/d7YKiGuSPGXm7 hHOFqYWKXftpH/cs2uEGsLE4fQ== X-Received: by 10.223.134.230 with SMTP id 35mr2966895wry.74.1512070588572; Thu, 30 Nov 2017 11:36:28 -0800 (PST) Received: from lbrmn-lnxub113.ric.broadcom.com ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id j15sm5392819wmg.48.2017.11.30.11.36.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 11:36:27 -0800 (PST) From: Scott Branden To: "David S. Miller" , "Allan W. Nielsen" , Andrew Lunn , Raju Lakkaraju , Florian Fainelli Cc: BCM Kernel Feedback , linux-kernel@vger.kernel.org, Steve Lin , netdev@vger.kernel.org, Michael Chan , Scott Branden Subject: [PATCH 1/2] net: ethtool: add support for reset of AP inside NIC interface. Date: Thu, 30 Nov 2017 11:35:59 -0800 Message-Id: <1512070560-16739-2-git-send-email-scott.branden@broadcom.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1512070560-16739-1-git-send-email-scott.branden@broadcom.com> References: <1512070560-16739-1-git-send-email-scott.branden@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ETH_RESET_AP to reset the application processor(s) inside the NIC interface. Current ETH_RESET_MGMT supports a management processor inside this NIC. This is typically used for remote NIC management purposes. Application processors exist inside some SmartNICs to run various applications inside the NIC processor - be it a simple algorithm without an OS to as complex as hosting multiple VMs. Signed-off-by: Scott Branden Reviewed-by: Andrew Lunn --- include/uapi/linux/ethtool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index ac71559..44a0b67 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -1686,6 +1686,7 @@ enum ethtool_reset_flags { ETH_RESET_PHY = 1 << 6, /* Transceiver/PHY */ ETH_RESET_RAM = 1 << 7, /* RAM shared between * multiple components */ + ETH_RESET_AP = 1 << 8, /* Application processor */ ETH_RESET_DEDICATED = 0x0000ffff, /* All components dedicated to * this interface */ -- 2.5.0 From 1585511037972380523@xxx Thu Nov 30 16:59:15 +0000 2017 X-GM-THRID: 1585444977810789552 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread