From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF87BC4707B for ; Fri, 12 Jan 2024 01:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=lR/IMzHbiub1hn91+j6HNrtl4uAT2OL+J7H2o1L2b/o=; b=NliVFassdGKqhBIMxNW1vREdVG qd9Ba5uA4aO3eDRRjuXVsojQ9IwNZEMEfeBXSt0DLxrDzepUt+32QhSrYmpsnf3eM6DWWz0Mn3ptj t2nUwCiRBCGNzeFNVU8Bvo3gGBaz+V2MmcTPm6jbGeM0HC9H+t7vTfcOmsp4KwiZLar3VeRbJVLzP +rMwyiEt4CACE/LleU7By/8qjvS+JBWHg9RNGmDl8w+lvDyxlYc5my04XxKrUAB0WhVMJXH7PpIwn pDgg4c7lDU6FLNFV6Jt2pM2pEKWJ/Iw1IJci+TQtw1J7x/yXtYUR9fcvlwOdFf8c+2aU8OyMxP4jb lL4HMqww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rO67E-001bdJ-2X; Fri, 12 Jan 2024 01:13:44 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rO67B-001bcu-2U for linux-nvme@lists.infradead.org; Fri, 12 Jan 2024 01:13:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705022019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=lR/IMzHbiub1hn91+j6HNrtl4uAT2OL+J7H2o1L2b/o=; b=AYiLYBYOF1bNwvJ60Rj683vyvDYilg7LBQrf/XF5tr2KxsPrG0pJUskQW1zJpKVDiTwVgP kmSgu0u35mIemcEq3YRl6MFdGNbIleYFQt/PcUFKI0qI5iCQpwFj7zXoepTjGScejfg+54 /6214nhUm6hwaVd2C8GJgS414pHD3Y4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-21-w5G-OFUDN8epxwQCkl19wg-1; Thu, 11 Jan 2024 20:13:37 -0500 X-MC-Unique: w5G-OFUDN8epxwQCkl19wg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 582E685A58F; Fri, 12 Jan 2024 01:13:37 +0000 (UTC) Received: from fedora (unknown [10.72.116.36]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 24A692166B31; Fri, 12 Jan 2024 01:13:32 +0000 (UTC) Date: Fri, 12 Jan 2024 09:13:28 +0800 From: Ming Lei To: linux-block@vger.kernel.org, Damien Le Moal Cc: ming.lei@redhat.com, Yi Zhang , John Meneghini , linux-nvme@lists.infradead.org, hch@lst.de, Keith Busch Subject: [Report] blk-zoned/ZNS: non_power_of_2 of zone->len] Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240111_171341_902137_0AFDF03D X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org ----- Forwarded message from Ming Lei ----- Add linux-nvme Date: Fri, 12 Jan 2024 09:08:47 +0800 From: Ming Lei To: linux-block@vger.kernel.org, Damien Le Moal Cc: ming.lei@redhat.com, Yi Zhang , John Meneghini Subject: [Report] blk-zoned/ZNS: non_power_of_2 of zone->len Hello Damien and Guys, Yi reported that the following failure: Oct 18 15:24:15 localhost kernel: nvme nvme4: invalid zone size:196608 for namespace:1 Oct 18 15:24:33 localhost smartd[2303]: Device: /dev/nvme4, opened Oct 18 15:24:33 localhost smartd[2303]: Device: /dev/nvme4, NETAPPX4022S173A4T0NTZ, S/N:S66NNE0T800169, FW:MVP40B7B, 4.09 TB Looks current blk-zoned requires zone->len to be power_of_2() since commit: 6c6b35491422 ("block: set the zone size in blk_revalidate_disk_zones atomically") And the original power_of_2() requirement is from the following commit for ZBC and ZAC. d9dd73087a8b ("block: Enhance blk_revalidate_disk_zones()") Meantime block layer does support non-power_of_2 chunk sectors limit. The question is if there is such hard requirement for ZNS, and I can't see any such words in NVMe Zoned Namespace Command Set Specification. So is it one NVMe firmware issue? or blk-zoned problem with too strict(power_of_2) requirement on zone->len? Thanks, Ming ----- End forwarded message -----