Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp257070iob; Fri, 13 May 2022 00:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE7DeDtRzieCXoz9CQf1gVNOQwEIR+oBwlcqCx8PAAwhWnPU9P4uMBsprTfwdm4Bk1PMc9 X-Received: by 2002:a17:902:aa85:b0:155:ceb9:3710 with SMTP id d5-20020a170902aa8500b00155ceb93710mr3346282plr.59.1652427288296; Fri, 13 May 2022 00:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652427288; cv=none; d=google.com; s=arc-20160816; b=ZL7Q0KoPuGus6vRRTtT1LJt2Q0lbKrAyFI6F739o/0a5EN+60TyDb+b6PcXY8H9lEP p/3eQjcRyERa9CVAsX44HEnLBN3cR/L+A9NgT39WHEfzqi8iAXtdU2kaOEIHfb1Qp+1c JnzsVVxXHSbDLDPlkX8imA1xZrTlQZABHEAJG1TQceibRptTjf/ntTg1TteAvc6t1+UP HjupY9ffUAxluAl7ik0GgbkkObl890m7XDObsOb1QqLIGrdy0I7zm1DeUktTi7TJnKj5 i5oCkKrpPrZolPjqThKMzYpwv0ZJW3O8BJbxRtvEHa+IATd6ikf6tTYWQr6RlnBXwi/D AHrg== 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=5EH2eizEJHj786C4i7iVooWJ/uE/QSj7BBR5bCHBing=; b=gwF6KufpFxl72ocwhtIt7tto2BdrK2Tyd0AzQ6fk13xaOZ3JqDvIPWZT6S/ShMQw0f +eFc1v78KChh9xfJpf7QmK3A4a8Nn5tWFccZcKzaLvMeqs2+6KhQSYdrWcR/NJ8inFxv 4Ss/fLXMBZNHatp/pVeft7KG6n96tZ8NoiolgpRtdp1ejSb5/RhkaK4bHSCyNqHwKqUe dTFHhdrXt3rADZieJJfeV8+ygU1EO2+hsVgdoUhtNcfdz1p5lrY6M/wsCfoaxsWLDMUZ 5DXEhiqxKiyiWK98UV0QHFjoY4/Osm4VSjNRCA5/FFs/yaP3oC0GO0egIy9PN4ksWM2I DMoA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a639f0a000000b003c165f24f4csi1930667pge.593.2022.05.13.00.34.35; Fri, 13 May 2022 00:34:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356995AbiELRWf (ORCPT + 99 others); Thu, 12 May 2022 13:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356992AbiELRW2 (ORCPT ); Thu, 12 May 2022 13:22:28 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB5A66AF6; Thu, 12 May 2022 10:22:26 -0700 (PDT) Received: by mail-pj1-f47.google.com with SMTP id gj17-20020a17090b109100b001d8b390f77bso8459933pjb.1; Thu, 12 May 2022 10:22:26 -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=5EH2eizEJHj786C4i7iVooWJ/uE/QSj7BBR5bCHBing=; b=1PFeuc56IeMf5lH0ePlwRZL1gyOO8WGy7nV7hybICwqSHHF/zBtu3v8EhKou9vg4AP RikhnfvnWIdVt6FFjmv1eXUqKnqnDNnnPBX092IPR1gDYjhjNVUzNl8YEIcCRyBInV3S Tsx/q44i884cS688y9kyeNsx5dke+1TN7wW3OG9tJQn2cHxCUkdxnN7YUakfUYd1wdXX 6dX8m9/1lajNdjXmNukJYwzfohhg/HiQycIGfP3bj5B7J/5LHzRfg9G000T5VnMNzzBG 4fUQRuhTMbKaJkZ+EBRkpGVrVptiiBmRsOeKw/MnwcwtiAm0jQvME0wRzfaZvJzPLtTr mxTg== X-Gm-Message-State: AOAM5338mmL6w4SAZr9uS5gE0OY/dSmwQSKdkvqxMMi0eGp/jpiRKFAp H4b94YE471/2PET1es/GYDQ= X-Received: by 2002:a17:903:230e:b0:15e:ce57:d66f with SMTP id d14-20020a170903230e00b0015ece57d66fmr874623plh.35.1652376146314; Thu, 12 May 2022 10:22:26 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:78c5:5d65:4254:a5e? ([2620:15c:211:201:78c5:5d65:4254:a5e]) by smtp.gmail.com with ESMTPSA id d2-20020a170902cec200b0015e8d4eb2ddsm121808plg.295.2022.05.12.10.22.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 10:22:25 -0700 (PDT) Message-ID: Date: Thu, 12 May 2022 10:22:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3 10/11] null_blk: allow non power of 2 zoned devices Content-Language: en-US To: Pankaj Raghav , Damien Le Moal , jaegeuk@kernel.org, hare@suse.de, dsterba@suse.com, axboe@kernel.dk, hch@lst.de, snitzer@kernel.org Cc: Chris Mason , Josef Bacik , linux-fsdevel@vger.kernel.org, matias.bjorling@wdc.com, Jens Axboe , gost.dev@samsung.com, jonathan.derrick@linux.dev, jiangbo.365@bytedance.com, linux-nvme@lists.infradead.org, dm-devel@redhat.com, Naohiro Aota , linux-kernel@vger.kernel.org, Johannes Thumshirn , Sagi Grimberg , Alasdair Kergon , linux-block@vger.kernel.org, Chaitanya Kulkarni , Keith Busch , linux-btrfs@vger.kernel.org, Luis Chamberlain References: <20220506081105.29134-1-p.raghav@samsung.com> <20220506081105.29134-11-p.raghav@samsung.com> <39a80347-af70-8af0-024a-52f92e27a14a@opensource.wdc.com> <9eb00b42-ca5b-c94e-319d-a0e102b99f02@opensource.wdc.com> <9f1385a3-b471-fcd9-2c0c-61f544fbc855@samsung.com> From: Bart Van Assche In-Reply-To: <9f1385a3-b471-fcd9-2c0c-61f544fbc855@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 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_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 5/9/22 04:56, Pankaj Raghav wrote: > Even though I am not sure if this optimization will directly add value > looking at my experiments with the current change, I can fold this in > with a comment on top of zone_size_sect_shifts variable stating that > size can be npo2 and this variable is only meaningful for the po2 size > scenario. Have these experiments perhaps been run on an x86_64 CPU? These CPUs only need a single instruction to calculate ilog2(). No equivalent of that instruction is available on ARM CPUs as far as I know. I think the optimization Damien proposed will help on ARM CPUs. Thanks, Bart.