Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4000683ybg; Fri, 25 Oct 2019 11:55:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwBPmcDuoEjVAJ9z+d+lN7wRN/4ET0hjXTQ/enIohvWlCXjaJ9c5vtJyQkjvJkEY6qRKgY X-Received: by 2002:aa7:d54e:: with SMTP id u14mr5654778edr.49.1572029732829; Fri, 25 Oct 2019 11:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029732; cv=none; d=google.com; s=arc-20160816; b=WwEcY3rgNwBBL9NINBS1S1ioM/iH7bdCUR+iFtxSAN/WKdzNFPbeWzkqXaBlZFbaM4 /xjFhqtr/wbvMR7VYu9mU46wENhiTfLvw0p11bZ1suWigVuBcHomZyqYUMTLzQYVFpij FjyL3x5eHodRb4r27IWd4+WBwHimqrmCrg0to1XWFqJvz91lcZEtyKBHlPAZLDu+IzPk m2c8x5UB8VLupdp6KPefDLziLUFfYzg6NIy/Ru53A8IJAa05dNjrx13yryVRx5ygw0ZZ u2ty07wlFABI2k6fznqJHmE3cTG5fNuIOzTEJ3ACA/llKkcYxdw86AiPPLEQHGjGIn/V igYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=skkWOjQAG2SIq7AkesQ7N9Msme6HEgCnl64zvN/Bfgc=; b=W9I52aIJC2Q9ixF7tE6y4n74zcpWdhlhqjCT8gIgETArdGdRLkcF9yJvGIKTyiLHh9 FOnFOTUf7S9DmOQK5U0pKUPkNURFSw+6Ek5CCrZmMZUDl2Ntvo9Zb6qkQDCD4jAkbW5c iPx1PGizM5Ntnkq6uljpk8g4ZbKXV5KWO2UK4ZzqWeuUvR5YCs7yx/gKlcENspo5X0ih eC3d/H1tLzMglVpdjPpPEG4g4qpznvIajTVs+AYPAZWn+Oip/Faoy0kqy2igcu5dCFs6 qVpy14XyVSz9nFIvSSGv0FHeOpgM87NlsYiELK1LTfAJpGAwu5iwjV7+5LP0E6UfzZxk V47w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=gmYZ0ZzX; 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 q18si1975116eda.291.2019.10.25.11.55.09; Fri, 25 Oct 2019 11:55:32 -0700 (PDT) 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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=gmYZ0ZzX; 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 S2504179AbfJXSz5 (ORCPT + 99 others); Thu, 24 Oct 2019 14:55:57 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35669 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504162AbfJXSz5 (ORCPT ); Thu, 24 Oct 2019 14:55:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id c8so9961601pgb.2 for ; Thu, 24 Oct 2019 11:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=skkWOjQAG2SIq7AkesQ7N9Msme6HEgCnl64zvN/Bfgc=; b=gmYZ0ZzXFAhIzSn0RsC3E5IY9lO/5YCbqiPHNi32xz8spoK5ic6ykYwFs1FYgYuyey gcSBD2gT0zJ1ONk5m3kGX9BkihBtmDZR4zhv5qJiFZj1KzesHfIkvdeP6G307k4UHrXQ qBwTje3AIyhk8WyJSj1jfRQe9piFiiOHMYH+CHsV7T6zT9HkiC4oXZ/kz7QrHnTjlfhE AnkKJRz+42vz1bkIJy3aohf+CuTT4SvjlNPEv/xMgRLUoRapXBcEzKpinlezFcT//pBX L6NJoY5ibeSgSWkaZteYUoq7L0OCQAxdzPbYdrfXI6doMjJ1z8oxwrf4TYsG08t6/nte qLFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=skkWOjQAG2SIq7AkesQ7N9Msme6HEgCnl64zvN/Bfgc=; b=KMClt0K8z3FV23+0jnar0VxGaXqB1nIIf7uNGlnPw6vHpJQCJR5quB60rSwKswQ7+3 RJYOHlmosqvCa8NgAuwM9i+J13lVQ4thMDrknDd1Hb62FW49c09Zi7zZFve5QiN43mbi cD826VBWJl7InpCtqJ4zus+9/xHZy8QVZd6fKDcEoL4dJeJ+GFjDu+Zq7xF9rPT1lk+d U4fXYIFRSGweKfc1wq0qmVkGAprSXtitUWVh+MrIKf2/6rNPCwp7vbTUNX8Lq2oiKkwv IL2nVmAjQ+bAOhV9moYMbDc9Rw4HdSPtTv0mH4kWdMn1JcA3uOUQBjVSaT1ld6NXA47Y Ribw== X-Gm-Message-State: APjAAAVYIM2yLssxc/gtL6fY/IX7CjvJtYjb3I08RUwFfJ3pSr9g2Ku+ usyxxmJkN0R0CqWCgyDZl006cw== X-Received: by 2002:a63:9208:: with SMTP id o8mr18075167pgd.256.1571943356385; Thu, 24 Oct 2019 11:55:56 -0700 (PDT) Received: from cakuba.hsd1.ca.comcast.net (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id f25sm9448405pfk.10.2019.10.24.11.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 11:55:56 -0700 (PDT) Date: Thu, 24 Oct 2019 11:55:53 -0700 From: Jakub Kicinski To: Sheetal Tigadoli Cc: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Greg Kroah-Hartman , Michal Simek , Rajan Vaja , Scott Branden , Ray Jui , Vikram Prakash , Jens Wiklander , Michael Chan , "David S. Miller" , Vikas Gupta , Vasundhara Volam , Linux Kernel Mailing List , tee-dev@lists.linaro.org, bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org Subject: Re: [PATCH V3 3/3] bnxt_en: Add support to collect crash dump via ethtool Message-ID: <20191024115553.11a6f4be@cakuba.hsd1.ca.comcast.net> In-Reply-To: <1571895161-26487-4-git-send-email-sheetal.tigadoli@broadcom.com> References: <1571895161-26487-1-git-send-email-sheetal.tigadoli@broadcom.com> <1571895161-26487-4-git-send-email-sheetal.tigadoli@broadcom.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Oct 2019 11:02:41 +0530, Sheetal Tigadoli wrote: > From: Vasundhara Volam > > Driver supports 2 types of core dumps. > > 1. Live dump - Firmware dump when system is up and running. > 2. Crash dump - Dump which is collected during firmware crash > that can be retrieved after recovery. > Crash dump is currently supported only on specific 58800 chips > which can be retrieved using OP-TEE API only, as firmware cannot > access this region directly. > > User needs to set the dump flag using following command before > initiating the dump collection: > > $ ethtool -W|--set-dump eth0 N > > Where N is "0" for live dump and "1" for crash dump > > Command to collect the dump after setting the flag: > > $ ethtool -w eth0 data Filename > > v3: Modify set_dump to support even when CONFIG_TEE_BNXT_FW=n. > Also change log message to netdev_info(). > > Cc: Jakub Kicinski > Cc: Michael Chan > Signed-off-by: Vasundhara Volam > Signed-off-by: Sheetal Tigadoli Acked-by: Jakub Kicinski