Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp534952rwd; Thu, 1 Jun 2023 03:41:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7u+JURbOQ5UwylHYuXxbbO8InLC3+Vf7RohQ2XHEZ2kdfgmILmh9h+PaNyOzonutTBBreX X-Received: by 2002:a17:902:e844:b0:1ae:6a3:d058 with SMTP id t4-20020a170902e84400b001ae06a3d058mr9716370plg.36.1685616077482; Thu, 01 Jun 2023 03:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685616077; cv=none; d=google.com; s=arc-20160816; b=QzGHK4daBdHsj+R6dcvIuUs9fNOQjmgYTPK91YUQtIKgtCn9gVEfw3t6j5iYZy7zLm WnGTaP6dCsoGTtnbCwq6J8qOVdJl1RJXkX4/n9dDBbJLnh+VxIoCGkXw4gsiiaWFfwnU DuE3Y95A7yo3YL62kNlh979BQ4z5Gn35n25/Apj2c9ox3/yULaqhBzpX+p6xQv7D9iqp 6vA7J1ff4abJ5SHTvGHRhhZhrpdRbD+MRL+H6s0BXPlOuLGbKWDVSVVHSPR2yP4qYUSa FO+4LV0b1tILh0bfsl8R9nD1pKY3CHiXMUz7nDEP0hDeJ+QYMDwVEiWkXkgBjI+o8Vg+ wKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=v8YTjhW3WOirjjZqKrhN1MkBbROnk51pk3oWkKdtwMU=; b=QtKkNzEgZ64mkTMdILBmlM4+dJI1fa0m7eAZrs5rJC0HmblJTJe1bXxPOPbPXx02cx vbZyBAchbF5r6VXkFREyxgen4PmBHv7EF+fkUQ4xTH42lG8xoVD9QEuPDD2KQ1hsR3Gw 7ilzWNQ7Tw6ctGcstrLms/XwaYAe1nKHUf5cbMAs9HWOVe31+xYZbO00BFbfCRIqjEBz hRWjOnpedByblyXuxYow6Cml4hbnqEdhpXz0BeqR7IHLgQQMPQ6PjJAcrEB3CuyFNhST zAp7DGio3BXJsM9gMNfNG/+imgUrgAlAdBkC9baJ8IyOfHaH+XK1qG5RJd7WavchCSXS 3hoQ== 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=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a170902db1100b001b19bed77efsi1111746plx.68.2023.06.01.03.41.05; Thu, 01 Jun 2023 03:41:17 -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=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232183AbjFAK3o convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Jun 2023 06:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232812AbjFAK30 (ORCPT ); Thu, 1 Jun 2023 06:29:26 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF202170A for ; Thu, 1 Jun 2023 03:28:51 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-318-0fhv99D0OlqPvimtjd92WA-1; Thu, 01 Jun 2023 11:28:49 +0100 X-MC-Unique: 0fhv99D0OlqPvimtjd92WA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 1 Jun 2023 11:28:45 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Thu, 1 Jun 2023 11:28:45 +0100 From: David Laight To: 'Christoph Hellwig' , Daniel Gomez CC: Keith Busch , Jens Axboe , "Sagi Grimberg" , Pankaj Raghav , "mcgrof@kernel.org" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] nvme: Increase block size variable size to 32-bit Thread-Topic: [PATCH] nvme: Increase block size variable size to 32-bit Thread-Index: AQHZk8CokMhanTXaB0ibg7NXJWn+ba91vvfg Date: Thu, 1 Jun 2023 10:28:45 +0000 Message-ID: References: <20230530154231.8313-1-da.gomez@samsung.com> <20230531130325.GE27468@lst.de> In-Reply-To: <20230531130325.GE27468@lst.de> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,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 From: Christoph Hellwig > Sent: 31 May 2023 14:03 > > > + u32 bs = 1 << ns->lba_shift; > > Make that 1 a 1U so that we're not going to run into sign extension > issues when using up all bits in the u32 :) Not 'sign extension' but obscure integer shift/conversion issues that really only affect 1's compliment and sign-overpunch cpu. I'm not even sure gcc/clang support any non 2's compliment systems. > Otherwise looks good: Probably improves the generated code as well. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)