Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp549002yba; Sat, 4 May 2019 07:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMkPoG16Y74ttMPldwn+RRINFDfzSAftk/BcjDZ91RIAM3xH38NeHs/LyeJQ2ZcZXuJY2S X-Received: by 2002:a65:5941:: with SMTP id g1mr19025338pgu.51.1556981356698; Sat, 04 May 2019 07:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556981356; cv=none; d=google.com; s=arc-20160816; b=W6MfnQO0T24HDdYEIBE7oT2fDjWlS9OS0orKSKowhaP0wtHvrDBogLCk5PokNjkX0/ Ue6sycMVKtLPbetaGo+VUbm3NtdbwcJH+U6J4oaGUqwxdrplCmhUKX8+19gpTnLz/KQS Bmc0EnwBIgfLFGeXppJL+c8G+5uwuq7+0x2oU28nslUwoEn5mfex7kxF0LKb4aS4g5O3 Uho9svmWV53dWp+7pyVz1/mHrFGjr6jcenjGInwQN0SlsTYbNAmIQIWAompU0rYN6aMi X4LhLScRGhLqS3SthlKzWMPhJsbZQUW0EtfKDbu+/bGjjE1uo75YHuayScxr+ajzDebr E7mg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=KrYVIWeGk7qBqvHA6rNpWrRvfMfUKIOhNsH2mOO6/68=; b=0oNFoS1WR3B4cvg4RvABSiBrKS4oNz3WIopo+ep6v+z0ueJdHlE9ac/gmS5HnzdZ5m XN8m6K4ARxK6SrQ3UUD6CNuCawpw5ymFcr+uWWamylOdVA3IM59I6nCZgFaAGakm7sF5 EnRlO8LCPSVye+cVT8ArISLMhp1jWpVNOfjZeKKfnGp4UkgQp7FzDxhPSAce5Qbg/f6+ zGPfwxgAK/v2OAqvlFjXgixEaPlF2LFyi6ifzUvoRA9J5swY4pek5hSqlFnk650y9Dx2 Q0XGp6tsxRM4j2kqbDLK41n7A837jm7k0czNlb2dx8hUr5vaXrh/EEnygb2RKHutZ8tK e2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JetIVnWa; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si7060652pgu.572.2019.05.04.07.49.01; Sat, 04 May 2019 07:49:16 -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=@gmail.com header.s=20161025 header.b=JetIVnWa; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbfEDOqS (ORCPT + 99 others); Sat, 4 May 2019 10:46:18 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:38108 "EHLO mail-pf1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbfEDOqS (ORCPT ); Sat, 4 May 2019 10:46:18 -0400 Received: by mail-pf1-f174.google.com with SMTP id 10so4399733pfo.5 for ; Sat, 04 May 2019 07:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KrYVIWeGk7qBqvHA6rNpWrRvfMfUKIOhNsH2mOO6/68=; b=JetIVnWaTXyB//mCEeSIJqg/XiUq5os7ckZOxNTNuhuPCnmqn7i85NV+L/w2vJbGHZ FKbVB3Psw3OS3ZbsvvlYcfUIvqzr5FlNs7vAY9mW8JdJ6AzA/zIrti5jbymXgfD7hl6K 3ukTb6WR7/Yhm2qOg3jEq4pwh5wVfFuvAHcqoOIoq5+V2qXaIiuX4j7CCfMAwVCeTaVs AgZDMlXoL/jVkfSYIaOdGdzbEXv8Klo+TQYNLsqhUhwGfiNpVBFQ5imjDlBc2l7O5+ab epL2mOK8EfRiHT4z3KZgQJuMZkepdQjEgojI/lKNcCDDXCTyrI9DSzmerKg3axOU7Ucp 4uiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KrYVIWeGk7qBqvHA6rNpWrRvfMfUKIOhNsH2mOO6/68=; b=QoLebC0ultdj0MwXb8tXk6MVJbqD9HkeNVPUsvS9c+JfTmWMdz22edAsUgXy1YdM2F GgXfrRcAnQzGjXSnO2TSQyV5ua3BZ7Xt6WWlsJXO2xFVWV9TXyeN2CEJHTw+d3vZtWa/ SqZcseKHD4epom+FAmemQZdmwArXZqvF5N5dNzqXdlijZc/47CC3iq/3HFxP0kwhnpWI oOU9da/xGEEIkk9NFJiGN7hqUf4Dab4sGGlr/CPqCJUIfCbsqn2BMxk0Xhf/tqwl8sLo KCPLQ9Hzk4J4aUDXCGAzpt+0lEphqjV5/iiJjD2HGAlKi2xgtyI+Il5Ry4rtD9AyfEtb Rozw== X-Gm-Message-State: APjAAAVmJdCu8dA8waAtW0NIRSB3ojLO3Ynr7sqdNEvu4Wwzf2NAjENl ctpnKerekTeG1PjvGTbk2yk= X-Received: by 2002:aa7:8c84:: with SMTP id p4mr19791233pfd.164.1556981177245; Sat, 04 May 2019 07:46:17 -0700 (PDT) Received: from [192.168.0.6] ([123.213.206.190]) by smtp.gmail.com with ESMTPSA id p2sm668679pgd.63.2019.05.04.07.46.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 07:46:16 -0700 (PDT) Subject: Re: [PATCH 3/4] nvme-pci: add device coredump support From: Minwoo Im To: Akinobu Mita Cc: linux-nvme@lists.infradead.org, LKML , Jens Axboe , Sagi Grimberg , Keith Busch , Johannes Berg , Christoph Hellwig References: <1556787561-5113-1-git-send-email-akinobu.mita@gmail.com> <1556787561-5113-4-git-send-email-akinobu.mita@gmail.com> <66a5d068-47b1-341f-988f-c890d7f01720@gmail.com> Message-ID: <13a4ec6d-e586-3879-d883-33bdbf90f294@gmail.com> Date: Sat, 4 May 2019 23:46:12 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/4/19 11:38 PM, Minwoo Im wrote: > On 5/4/19 11:26 PM, Akinobu Mita wrote: >> 2019年5月4日(土) 19:04 Minwoo Im : >>>> +     { NVME_REG_INTMS,       "intms",        32 }, >>>> +     { NVME_REG_INTMC,       "intmc",        32 }, >>>> +     { NVME_REG_CC,          "cc",           32 }, >>>> +     { NVME_REG_CSTS,        "csts",         32 }, >>>> +     { NVME_REG_NSSR,        "nssr",         32 }, >>>> +     { NVME_REG_AQA,         "aqa",          32 }, >>>> +     { NVME_REG_ASQ,         "asq",          64 }, >>>> +     { NVME_REG_ACQ,         "acq",          64 }, >>>> +     { NVME_REG_CMBLOC,      "cmbloc",       32 }, >>>> +     { NVME_REG_CMBSZ,       "cmbsz",        32 }, >>> >>> If it's going to support optional registers also, then we can have >>> BP-related things (BPINFO, BPRSEL, BPMBL) here also. >> >> I'm going to change the register dump in binary format just like >> 'nvme show-regs -o binary' does.  So we'll have registers from 00h to >> 4Fh. >> > > Got it. > > And now I can see those two commands `nvme show-regs` and > `nvme show-regs -o binary` have different results for the register > range.  The binary output covers just 0x50 size, but it shows all the > registers including BP-related things in normal && json format. > > Anyway, I'll prepare a patch for nvme-cli to support binary output > format to cover BP things also. > > Thanks, for your reply. My bad, I misunderstood what you have said above. Please ignore what I mentioned. BP things are located from 40h. to 4Fh. Sorry for making noises here. ;)