Received: by 10.223.185.116 with SMTP id b49csp1715003wrg; Thu, 22 Feb 2018 01:46:26 -0800 (PST) X-Google-Smtp-Source: AH8x2251nU6L0YwpGQD7aLhauKiFrLmfFdtda9l5DQVDQV/sGN8P76sco8+8z+vaM5Hb/8zTKXol X-Received: by 10.99.169.10 with SMTP id u10mr11131pge.163.1519292786363; Thu, 22 Feb 2018 01:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519292786; cv=none; d=google.com; s=arc-20160816; b=k6x4CDmv37tJfEZ/DRwNW7OlApefNfGgUX9q9goXfhmcN15D4tf1LwSUhztaiItghf nfRqnuTFBO+3MmxydQJEI4/PV+gmNYh3um38vCbNiaBOIYb+n16+31mFled/6S2u43Lk VyWTlj8aFCm+eSqOAn1Zr0QDTPyd3+y+cDCj19/8lfdp9WG0Sv8/R8EFfh28413pHXUB spxPGZj6V1QxcW4RyxeZcr2Dc5k77qfLbN52UY2vyJ89O9zTXgIZdCz4iov9oZ/OCeX6 CJfuWyz4mCHgHqnZW5a/ah2voiM2AUj8QnKsunKpaKJTVnTyGniOrOW9AFdo4eWBz3a0 fKFQ== 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 :arc-authentication-results; bh=ULcVlVWuK9nglfHb8YTenEOshC18FcTKRhqy9b3W0EM=; b=Polv3TYo3QtlPThANAABKd6NI78DKnIz29Vt5MFtu4a+H++0r/CUJ68XbaQNtbgsFf ijsslib70wKm5PtcKRte8POiQpQbCvwCU8gNhUCVKKCjOq8FgeMmW2nBEyOfPk//BNXx mdwG1TngxJ0XjoBCTJx6Nw6Cu7O+wteEtgeLvqVpwX87ci9bl0CeOQYIdNHan6LyQGoH Sc6HSxaYfplT43OnS2+/Lh1fdsfH1kKijPOi9+iH6qjQav/7ThJG19mhvFnKTUesRxmm oges42XcVPn45WHkJio+2IcDPbor1Mi0W41CztVNRCf2uaH0L5Xiw58AMMsYQSEnucc9 Wd4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=FcC5m7Uf; 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 p61-v6si1736710plb.584.2018.02.22.01.46.11; Thu, 22 Feb 2018 01:46:26 -0800 (PST) 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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=FcC5m7Uf; 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 S1753152AbeBVJpf (ORCPT + 99 others); Thu, 22 Feb 2018 04:45:35 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43268 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088AbeBVJpd (ORCPT ); Thu, 22 Feb 2018 04:45:33 -0500 Received: by mail-lf0-f65.google.com with SMTP id q69so6487770lfi.10 for ; Thu, 22 Feb 2018 01:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ULcVlVWuK9nglfHb8YTenEOshC18FcTKRhqy9b3W0EM=; b=FcC5m7UfnD2S31aiREgD90ooxCfRTUmUTXsnAe+Ux9LYrnddHrSreX+TAHB6OIYOsZ hPca3jak7A5LkkSkyH0VManP2GRbf1R3RZ9B4D5NqdqFvBF6rYmoTJKyZF1Yu3GtCMoy Huu6uDAGzSpR/2ZiNMBfdNOK03F+cTsTxg4xVJqX1JDF7bkPaKmcM/Xtx5Zviev48JYp vRZ81eJn4hkrs9GnfcFY+CfQrgcp4sPS+x4bOqikYJ7AwvJCBqJkTUYUM7kLN5zteqeQ A63n+o8CPF/3GvZyV1R4DB6+p4nOaUhrE3wQo1joY40NPrzRJcz+dXv0DJCxIRPwoi3Q uGLg== 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=ULcVlVWuK9nglfHb8YTenEOshC18FcTKRhqy9b3W0EM=; b=eI9C03OT7GScb1yHIZCk6Otp5t76Y9pTlsk4ONNXcrEpU6TpCP0sO9uRn8qXUOOgnT ojKz1P/hqQdrQqixu6Jl9t+Tsz9AKjbiBIy6IrABqM6Eyy/XACMl/Vnq3rtNfFGA9C9F r5DsPgm9DG4slzGk+lgrey99IlbyarRSJ9L338aWVMjU29Td9dFlJMjjO/ZhRRuvzGtO i1lkANZZM0O10q0FbvJENiGyhuZSphtX71KbTuQTiEeUogMbXYMK66uHe8JmWVZkmxMu 0ikTXBBBTEOBzALSXdJOQUX9M3eNnP9Xhm9ezAcqhgFpMn06iA5DYiHKRU48bT/jthV8 SVRA== X-Gm-Message-State: APf1xPCVAURTN7hNqIOp7D4IHnIqoWHCyuFSYnNjtLSWbXLyXTkcTjlE 0X2eoPlgwonDJZVXF8PqZLBf8w== X-Received: by 10.25.211.212 with SMTP id k203mr4958336lfg.146.1519292731804; Thu, 22 Feb 2018 01:45:31 -0800 (PST) Received: from [192.168.0.10] (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.googlemail.com with ESMTPSA id y198sm6451253lfd.62.2018.02.22.01.45.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 01:45:30 -0800 (PST) Subject: Re: [PATCH 08/20] lightnvm: complete geo structure with maxoc* To: Javier Gonzalez Cc: "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" References: <1519205218-26994-1-git-send-email-javier@cnexlabs.com> <1519205218-26994-9-git-send-email-javier@cnexlabs.com> <5e2948ed-19a8-7bd5-6c50-df37a1454d16@lightnvm.io> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: Date: Thu, 22 Feb 2018 10:45:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/22/2018 08:55 AM, Javier Gonzalez wrote: >> On 22 Feb 2018, at 08.45, Matias Bjørling wrote: >> >> On 02/21/2018 10:26 AM, Javier González wrote: >>> Complete the generic geometry structure with the maxoc and maxocpu >>> felds, present in the 2.0 spec. >>> Signed-off-by: Javier González >>> --- >>> drivers/nvme/host/lightnvm.c | 4 ++++ >>> include/linux/lightnvm.h | 2 ++ >>> 2 files changed, 6 insertions(+) >>> diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c >>> index cca32da05316..9c1f8225c4e1 100644 >>> --- a/drivers/nvme/host/lightnvm.c >>> +++ b/drivers/nvme/host/lightnvm.c >>> @@ -318,6 +318,8 @@ static int nvme_nvm_setup_12(struct nvme_nvm_id12 *id, >>> dev_geo->c.ws_min = sec_per_pg; >>> dev_geo->c.ws_opt = sec_per_pg; >>> dev_geo->c.mw_cunits = 8; /* default to MLC safe values */ >>> + dev_geo->c.maxoc = dev_geo->all_luns; /* default to 1 chunk per LUN */ >>> + dev_geo->c.maxocpu = 1; /* default to 1 chunk per LUN */ >> >> One can't assume that it is 1 open chunk per lun. If you need this for specific hardware, make a quirk for it. >> > > Which default you want for 1.2 if not specified then? I use 1 because it > has been the implicit default until now. INT_MAX, since it then allows the maximum of open chunks. It cannot be assumed that other 1.2 devices is limited to a single open chunk. > > Javier >