Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp195578imn; Wed, 27 Jul 2022 20:05:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vfI+xJAW6MtjnlTLGZ2edanSx0Rethevge0+ur0ewyZkCE06zbSVxf78/XBNwUvLR7dfZM X-Received: by 2002:a05:6a00:240e:b0:52c:81cf:8df8 with SMTP id z14-20020a056a00240e00b0052c81cf8df8mr37198pfh.60.1658977500933; Wed, 27 Jul 2022 20:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658977500; cv=none; d=google.com; s=arc-20160816; b=HaPYBxcNJzwK+WbNfKBZJzlXzhTmlZPybINJD8b4+8FCk+CZEYeaz/rDyzLy05GKCQ qnxumBxe0C2TQBMXxdpRRRx/KDFC9eIPpqjCFKVhVxHvhfr5xlyh0tcjkBRyjhPaglmP 3g0JPOU6NERQxiWzQSctBlsrwDq++TLZjLQ3BpQ9j2yTsdE1aCSax0vHkwWq5e6J+6f8 BlLhpdCLici79FEKKB/IsACcg1pm7ALp+4gv6wF8FhuER0LT8VBnLvThDe/8x95KUfRk FNgzymIOwBsP7wYTwacSWCzIp5/AQfxOGUCJDbKqNP1NoAkRT5uZ6fdeDvPrgj1AZ4v5 LjfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=aQxaeeJ5JgMVcJcw8Ko279QSx3iejqMvsto3fG7z2rc=; b=pyU0Dk9pvYb1uV1RUgqfo+TYOjo+j6OK2vtM4QQezsCrPFcn3HlwGnRY7ISZ6ELwuu Gx/igUudGXOLq7GRoO4CIcDBOt4B8G/E9HZbkAphAJW3c4YiNlC2srVtMeEtsZgqsUsp u6NFXBg3c0lvRe6LLRdkoW3LHuUIjxGKyiqKWaOv0uAmdV5cFC13/rMGsaSwz7Gv8Yji ZaOnmxmP+2XrbzS9dLp3cvKzkQaZ+7013DzSazYi3+MOf0c6iTr7mptC775e7DKm5dIy QOKWfLXoqT9Q0FVwhlK/TwG48YNhJqYJRJglPgUWgcCKUvamY94Wh5KUlFhvwg2AJKJL nmrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a056a00249300b0052b1d70991csi22679713pfv.242.2022.07.27.20.04.45; Wed, 27 Jul 2022 20:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235595AbiG1C6F (ORCPT + 99 others); Wed, 27 Jul 2022 22:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231383AbiG1C6E (ORCPT ); Wed, 27 Jul 2022 22:58:04 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C478F58B7A; Wed, 27 Jul 2022 19:58:03 -0700 (PDT) Received: by mail-pl1-f176.google.com with SMTP id x1so644188plb.3; Wed, 27 Jul 2022 19:58:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=aQxaeeJ5JgMVcJcw8Ko279QSx3iejqMvsto3fG7z2rc=; b=gkP2nFAFpuydvUbt+AxS+JvNyKDUu8rmvSbryUi3h6yyNrnuTjcDoNi8U2PxTggK4U D+vxdH2wSAQcV45faeM32hdniRalbguR2x+NwB3W1gGknti2U1fh0WWZhEvsqK1yZBAp e1B4x0m7NDG2hnFQS0lxTyBVrKAHA8holQx5thBeWmIg3rCQidbGQHQj16bcAbljsbJz NrYRiFHIXLUZEeMmMm+lTcRulppsRUxPn1fIPatBsaN+opSdXZcDFQzT0rtuNuY/Kc6v bd+08rnDoQa+KWb9LG1R4xrgPnE26/q29WHeHaAzISsrNHN9l97cwpnwuAHZivu2vyad iTyA== X-Gm-Message-State: AJIora9L2K5mXkbB+NVhP6ehpt7tsD5aHuGmL7YJfqkY84YIR8O77YCK d5A56Md3JKd6deSbPcFbDFk= X-Received: by 2002:a17:902:d590:b0:16d:8a08:fa7d with SMTP id k16-20020a170902d59000b0016d8a08fa7dmr13863590plh.122.1658977083051; Wed, 27 Jul 2022 19:58:03 -0700 (PDT) Received: from [192.168.3.217] ([98.51.102.78]) by smtp.gmail.com with ESMTPSA id z11-20020aa7990b000000b005281d926733sm14543586pff.199.2022.07.27.19.58.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 19:58:02 -0700 (PDT) Message-ID: <024d16ac-d685-0fcf-1ad3-e99946852b03@acm.org> Date: Wed, 27 Jul 2022 19:58:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v8 00/11] support non power of 2 zoned device Content-Language: en-US To: Damien Le Moal , Pankaj Raghav , hch@lst.de, axboe@kernel.dk, snitzer@kernel.org, Johannes.Thumshirn@wdc.com Cc: matias.bjorling@wdc.com, gost.dev@samsung.com, linux-kernel@vger.kernel.org, hare@suse.de, linux-block@vger.kernel.org, pankydev8@gmail.com, jaegeuk@kernel.org, dm-devel@redhat.com, linux-nvme@lists.infradead.org References: <20220727162245.209794-1-p.raghav@samsung.com> <51255650-ddc2-4f3d-52e5-14007b9ff538@acm.org> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/22 18:52, Damien Le Moal wrote: > On 7/28/22 08:19, Bart Van Assche wrote: >> On 7/27/22 09:22, Pankaj Raghav wrote: >>> This series adds support to npo2 zoned devices in the block and nvme >>> layer and a new **dm target** is added: dm-po2z-target. This new >>> target will be initially used for filesystems such as btrfs and >>> f2fs that does not have native npo2 zone support. >> >> Should any SCSI changes be included in this patch series? From sd_zbc.c: >> >> if (!is_power_of_2(zone_blocks)) { >> sd_printk(KERN_ERR, sdkp, >> "Zone size %llu is not a power of two.\n", >> zone_blocks); >> return -EINVAL; >> } > > There are no non-power of 2 SMR drives on the market and no plans to have > any as far as I know. Users want power of 2 zone size. So I think it is > better to leave sd_zbc & scsi_debug as is for now. Zoned UFS devices will support ZBC and may have a zone size that is not a power of two. Thanks, Bart.