Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4226389yba; Tue, 7 May 2019 14:29:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR7swLXmaS78X0zGF8aN+CCF7CnxwZKD006CpCXOKSiqGaz90wfpxacB6M2kjQjQ9wpW0h X-Received: by 2002:a62:470e:: with SMTP id u14mr44279604pfa.31.1557264569287; Tue, 07 May 2019 14:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557264569; cv=none; d=google.com; s=arc-20160816; b=u9qSsKQEFQ9J/tTE8279WqTW0hGPuKkXMLSNCd450+5G0F2UiPiOkV8Dfz9sKMzA/h BZcKSA7LXuvLHb2hvaCp8S61SHknEE7DU2/OzwxVp6UH3jxZGhW7StFMsn0b4xmgF8kK w07rIAaaAKgROPOlc+WV9GOnUV6/T+aHdGQK0TktAyTpl/r0j50K66DFVfl9bDk1+q2m xo+asZGC2eB1zS7YKOlEFbj3CJh0G6CD2n2WMEwPbOkhngbV5+rDv3vdhsDs7cgOFKRR JlVhRrKpTQG5lwEt00lX8gwJER4B1XG1EA2LwFHLkzijZIuJlJGA1Z/yqSj/8Av/jQM5 zwNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CUD7LUXBL2XefB/S3WBiPKIrG0IfLoZxNNEcWoMc/nw=; b=CB2w2Pr932PqdykuWuh81LZL/Q2rh0oiDldUW8tRK7ilVHyBGZHFDJQbHf+3qmpdk/ d5h7jBQRycY5Ahcp8PuOdalj2KAtG/zeTAU1EuWEJt7rZ750+VD5itpboFYiBIaDHhgS ttF30y+0tSDH3wSbobUa3t+Ld7518R2MCaqs1Z2GTcAtaiWMSz1RAzx6QDFCYaEkmyit seCeLSsdMwFMTKKQs+qT9bqZqK/AQWYoTSFp65RavZMYmo/QCiXxPXMLG+U8GkcJPw+c s3yCXo12Fa0FGV145AOUt4Pi9y5I68cqtrRppsScFXTA3omV7tSbl3Z9KNPP006ItPAR 2dcg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si19330913pgh.548.2019.05.07.14.29.13; Tue, 07 May 2019 14:29:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728587AbfEGV2Q (ORCPT + 99 others); Tue, 7 May 2019 17:28:16 -0400 Received: from mga14.intel.com ([192.55.52.115]:52636 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbfEGV2Q (ORCPT ); Tue, 7 May 2019 17:28:16 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2019 14:28:15 -0700 X-ExtLoop1: 1 Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga008.fm.intel.com with ESMTP; 07 May 2019 14:28:14 -0700 Date: Tue, 7 May 2019 15:22:41 -0600 From: Keith Busch To: "Heitke, Kenneth" Cc: Akinobu Mita , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Sagi Grimberg , Keith Busch , Minwoo Im , Johannes Berg , Christoph Hellwig Subject: Re: [PATCH v2 6/7] nvme-pci: add device coredump support Message-ID: <20190507212241.GA7113@localhost.localdomain> References: <1557248314-4238-1-git-send-email-akinobu.mita@gmail.com> <1557248314-4238-7-git-send-email-akinobu.mita@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2019 at 02:31:41PM -0600, Heitke, Kenneth wrote: > On 5/7/2019 10:58 AM, Akinobu Mita wrote: > > + > > +static int nvme_get_telemetry_log_blocks(struct nvme_ctrl *ctrl, void *buf, > > + size_t bytes, loff_t offset) > > +{ > > + const size_t chunk_size = ctrl->max_hw_sectors * ctrl->page_size; > > Just curious if chunk_size is correct since page size and block size can > be different. They're always different. ctrl->page_size is hard-coded to 4k, while sectors are always 512b.