Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp541242yba; Sat, 4 May 2019 07:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2eFHF3oAz1oJAFA3NFVghMwc+xAMOFg8gplMcDvBzImYGSOkpojKhO+5DJn3CBcKJ8T/e X-Received: by 2002:a62:ed05:: with SMTP id u5mr19355104pfh.63.1556980816205; Sat, 04 May 2019 07:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556980816; cv=none; d=google.com; s=arc-20160816; b=ptvtaB5U2vQeGw/izUOmwL6RPQssHzqQA/FY/hNI6mli6zC1KsaVsO9rwQl2iP/Yok Hk5t+NqS2YvPtkKoRnbrSgWKHCzeU866zS9Z/50E4VyGd65qj9rD1cgxVzp+z0sOnc3C 4bZVqwpLqSbTKRqntmjKd85TXYrB56tmEl/rp3c8ThbfDZHYEE+OziYhUehiF2U7M4H9 fPlrHEXoWprMRFBpHFVsBbbnc98Dya8hMY0LNwKEMZScRsCzSj9d0iPa5EnPXZ2Xuesn kK7yviOetmybQ5bhSU08Vv0xhrSV4+dg4Xk0r59vs4F1e+JgoulrqcSMsaJxOBxt6cK0 g1lw== 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:from:references:cc:to:subject:dkim-signature; bh=dxXlXPIHOiLEpa62Dvte4CGqyLQwPemJ6HrBcCCpswo=; b=V3eeyaE5znfuSdfOcyEKdGC6j7+qAHpfhFFzuxvL/Ig82n8ofMbVb6bgkHbtOK5w2W wZ10GhOx0AfB5j8inlBr+acD4Lp0r6soteFK6ZprRzcMuyoU8g1yV1xey4TpLSUaWaNN 3rUCrWtXp7ykIa6FiC2t2lA6b8wutjmUe2v/lOtLdL/VGqC4bTZK6fSZFUZx9wmc4zPO DqYGrDsxACP868CiGjtAzyfl9qQf8tiDZrNeb9U3QnDLmCc4IIy4NDO8scdVbxNUhv7Q kOByjMASgAnb2DePRIlUGQObdKZji7E2BMJlmoqQRNbP3zM+azAXs68izYXaTXSuBgPV 39gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gCT1/s8n"; 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 z9si6996398pln.65.2019.05.04.07.40.00; Sat, 04 May 2019 07:40: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="gCT1/s8n"; 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 S1727235AbfEDOiY (ORCPT + 99 others); Sat, 4 May 2019 10:38:24 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34905 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfEDOiY (ORCPT ); Sat, 4 May 2019 10:38:24 -0400 Received: by mail-pf1-f196.google.com with SMTP id t87so3814976pfa.2 for ; Sat, 04 May 2019 07:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dxXlXPIHOiLEpa62Dvte4CGqyLQwPemJ6HrBcCCpswo=; b=gCT1/s8nmlYKVhGuab7b1b/q6N5FcSvjRhXig3XmZHCMS+n2uaBpRMEPH5K5RrCOjn RygCg2uYp+K4ALI+AYOXKkDWOomFpPyPYbFD8zy8RZ/UdU3OSZJ9YqnmKqlopSxbF32V RdPUeOh5gk0vk+zeHFufWbmCRYHflgYv1TXe+5taBhD8bhY47hKoCFIV7t/LhgxSStGA l7rU8kS5NbygAivqyXzIXkIqV9WkOf+Euq7L7PpZKFfKs+NjYfunkOPqneqLiqGfHGhx JMER+4zr3cl41pBuwswV/cY7giVmo2Dtx9SplATZeqcFpDUBbb0lrBFi48rLUajmqOPs tcwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dxXlXPIHOiLEpa62Dvte4CGqyLQwPemJ6HrBcCCpswo=; b=Uea+tk4+jvhgc+gAPcS5byx0uPDikVmaLjzU36XcXFTCRaaZAxNI5d09OAJMii7gy+ g6f0qZ7HuU8xLXsBt/N6sk7IOIBB6UfbrZ4rGDmsp+Y6ztlQa8HtSS1LerSaNex5Dnwq jGSU45rMjOh95vAoyB8EpSe1L0vhk4eBuRzD/t6mpANPKa6gcPuZhHiROddAqwbsbpGk 1kz2EzDJyYdhGGUxE6Ayy2p2he4BKeKN/RWut5YzORZz4dUHvhheeZ4z8vXKtm0MfCfG jgjw5bI1vHX2eeJUUeM1rxRbeSb8yKO8Z4wfPT5glWjdWrhecfuh/dIDXecfxuG8rzpG PpNQ== X-Gm-Message-State: APjAAAVL1noLMoFYJev54U9qlLi5Ub7lATKjmRhaGV84b/T9v1lRCVy5 J8bKuJeaiy/Kgh+bCvdiAzE= X-Received: by 2002:aa7:8458:: with SMTP id r24mr19709400pfn.231.1556980703466; Sat, 04 May 2019 07:38:23 -0700 (PDT) Received: from [192.168.0.6] ([123.213.206.190]) by smtp.gmail.com with ESMTPSA id p7sm6957050pgk.10.2019.05.04.07.38.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 07:38:22 -0700 (PDT) Subject: Re: [PATCH 3/4] nvme-pci: add device coredump support 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> From: Minwoo Im Message-ID: Date: Sat, 4 May 2019 23:38:19 +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:26 PM, Akinobu Mita wrote: > 2019年5月4日(土) 19:04 Minwoo Im : >> >> Hi, Akinobu, >> >> Regardless to reply of the cover, few nits here. >> >> On 5/2/19 5:59 PM, Akinobu Mita wrote: >>> + >>> +static const struct nvme_reg nvme_regs[] = { >>> + { NVME_REG_CAP, "cap", 64 }, >>> + { NVME_REG_VS, "version", 32 }, >> >> Why don't we just go with "vs" instead of full name of it just like >> the others. > > I tried to imitate the output of 'nvme show-regs'. Okay. > >>> + { 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.