Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1473696ybx; Thu, 31 Oct 2019 11:05:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6sYU267fbVgEmzwckGv4B6ru2Gt4dHbFLtkI5OtnBr5vHSyRLX2+zK7ziu2fnQfUJb8tl X-Received: by 2002:aa7:c5c5:: with SMTP id h5mr7687655eds.87.1572545151614; Thu, 31 Oct 2019 11:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572545151; cv=none; d=google.com; s=arc-20160816; b=gsme/Cp4s+2xxJfVA6xmdp8QraWTGLR5nkv50XbZJ2SjHEKcCJdSmv91+0rKWxbLGK QAL8CGsFPgJiUmQruAX0MkR1LjL4SN9yrO+LVFYaBZRvkEED9ceCiOGhMML/dgNlpOI0 PZPJaPEZFQlZ5LyA3Q+2OiGAurBc/TdBljI0PAk+F/aQoSkmn5d+81HFARUpdbbknmN7 3cks8mrb++zccbMssVkGU0Vie4PKzGS4/cOgZDjYEqSungo6yUYZVWIYAJLwTGREGRv+ AaB4oQcKR0rBcnY/hxhIw6pbUjvwuSt8c7SMLElZUfCHnYTybHtdjiMZB48Tha5TF8I6 CVgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7yF1ZFa0NQKW1P9+UET4zyA+4HzwzTV8eBOXyYYcm50=; b=MNb3z/xI0kQMtok+e74nGHuSlbLauWOLvx90uFySuNkWK9RF7HB2SFi/gA75SgVNfN Qvd9vGassAQEfQu/pPirnQ8OM3h9xqHWpFyH9pBR82b1zkhe2lc63cB1hc15pFLMW5zG VOQIPI9O6RyKTPYGnK7Evr2WnH5+ZPooZvNCwvi5NnKUZX1b1P7q2YeO5NO8z4i1XiQV QwVR6WlCQA5twAzOHf/xjXi9miesjOrtXkit4Z6SjJzjeBSQh2bONWpkeaaAnLjFGY85 294sfmL+ZrVTViwbh1w380YnB+7yACp6nIFKtR1HOD4GkMx3+ACNgXF6eWJeiVrHxRsS yT4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=KdI7GJoP; 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 h4si4669982edd.189.2019.10.31.11.05.26; Thu, 31 Oct 2019 11:05:51 -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=@broadcom.com header.s=google header.b=KdI7GJoP; 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 S1729212AbfJaSB3 (ORCPT + 99 others); Thu, 31 Oct 2019 14:01:29 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36299 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbfJaSB3 (ORCPT ); Thu, 31 Oct 2019 14:01:29 -0400 Received: by mail-ot1-f67.google.com with SMTP id c7so6193789otm.3 for ; Thu, 31 Oct 2019 11:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7yF1ZFa0NQKW1P9+UET4zyA+4HzwzTV8eBOXyYYcm50=; b=KdI7GJoPUQ87vC9eDvndZA0yAZXeweGXN1/7uAzOxrFy5OhyZwKF/N7T8DLXzqJ1JY YcJmQzIxRU+2NgvLtHQQ3zH6cLb1e4skGxrap6E9BQJSurU7Q/20H96bUJ7Hrndsb++e +QdEU2jUS01dbXwGCNlWHNwhOcF9bHuLrRbBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7yF1ZFa0NQKW1P9+UET4zyA+4HzwzTV8eBOXyYYcm50=; b=i9JYUX/3kP5CCPCoibj0WX7fB6FD8xwoRDtNaKN7xMyD3yQOCyWPKjOyLau6g/tcVI 3ryHjIGQjw/Y2+ygbtNtakiXtD8cY0pRE8B8B57OZEraLi+wAm504BKn+4rmr9/7iBa/ zmtVn+3DNnEOliQVZIsZ50g7WFNHkMhh4R0OQHNl/+8AIw+rN/NY93GZE0E6MkUvPzpJ a9EkvKcAeblGjM9V0BlDCKxJp7wvfbch415vCnsFAJ4z7KIO6hfs58/gMut4GNb+SOpm NaN0EIomSgvxR6a8Sa9UsAU4A+YOzOIPSDxVc0hefhFaLRVEbA8+scIogSquK6i0rZhG LmsQ== X-Gm-Message-State: APjAAAWna2jIE8huT3uSF3FDDVrQMf8/wANzfdrN3NzxiJhUkji4F/Fp qA7DDOwRCT/cC4XfY51Zqq2n7FB/YCksjOpW2944Bg== X-Received: by 2002:a9d:39a5:: with SMTP id y34mr5476867otb.36.1572544888141; Thu, 31 Oct 2019 11:01:28 -0700 (PDT) MIME-Version: 1.0 References: <1572516532-5977-1-git-send-email-sheetal.tigadoli@broadcom.com> <1572516532-5977-4-git-send-email-sheetal.tigadoli@broadcom.com> In-Reply-To: <1572516532-5977-4-git-send-email-sheetal.tigadoli@broadcom.com> From: Michael Chan Date: Thu, 31 Oct 2019 11:01:17 -0700 Message-ID: Subject: Re: [PATCH net-next V5 3/3] bnxt_en: Add support to collect crash dump via ethtool To: Sheetal Tigadoli Cc: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Greg Kroah-Hartman , Michal Simek , Rajan Vaja , Scott Branden , Ray Jui , Vikram Prakash , Jens Wiklander , "David S. Miller" , Vikas Gupta , Vasundhara Volam , Linux Kernel Mailing List , tee-dev@lists.linaro.org, bcm-kernel-feedback-list , Netdev , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 31, 2019 at 3:09 AM 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 Signed-off-by: Michael Chan