Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4229094imw; Tue, 19 Jul 2022 02:27:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSTovQPFJjyA8iqtWETHow6kLvfOwe6PiWqedyQm3quzJKtHkX+vNZD7XXAoXDsjesXyNZ X-Received: by 2002:a17:90a:4882:b0:1f2:d27:c8eb with SMTP id b2-20020a17090a488200b001f20d27c8ebmr593266pjh.169.1658222876014; Tue, 19 Jul 2022 02:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658222876; cv=none; d=google.com; s=arc-20160816; b=v8GxJ0yAjBCCyGkluzhq0QjL6vblASMbd3LMJZcmXii0B06JltjhTGEJ/N6/Nj7Wtp lcS+wvECSuH1Dv32d4m2gZ60/z+UAlJweKzG2q7hEkIh/TikHes5hLX1UTsN3qjxmVtB MN47m7jwg795BM0J2Ws0ZtVN8uZtEeNbiL/XJRzvrmQcoebw99ZGxFRli12X0n6HsLUY NGF8CaYZCsxlf1yKdPZlhn6VzoBmEkYIVLdjg+oKzs2iEU9QJ1CHQcXn3+KPXk1b9lQq W94AQ9Xfg0AA7uWkZ19Cd9ePcluCiBy/DMkFbra4j1Fywqo9/Gm82HlA8sNMhCOC3OFm 4/RA== 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:subject:user-agent:mime-version:date:message-id; bh=+mtuiF9F6axvrMcWe/FjXqUdNrJ+S9Hi1S63z1dxB3I=; b=fVDX8XDjUU5JtYV0BAaXNysy447fbZrCdb7vGpjNrv75B0Pri9cRh1I9sZ/y9vIDlJ 9Vusyv3dNc6dwkkxLN0tyeVpngpxFU7O4YhLhNIGcA/sVkN3YWmNxT67eJb0n2KH90oI lImp4rshZ1eO/jkyRzBhxmkT9Nu7v4W83v9+VEQYmmWeTUcoHG4IUmf79r7HaW9WrAlh 9TVDLYDIG2wKgbwkYtYG1me78XDKZqv5VwnPOMxfA9VJv8cYCF6N2aHfCXETmhKrGRbc JPG4ZkJeAM0uQUfAMgBiEg1fVZXL51ROOYEjgTSPuNWW8XDk2tPLSGlMBLIeBdgoI5iH FLnA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a056a001a8b00b0052b18a7d185si13759955pfv.263.2022.07.19.02.27.40; Tue, 19 Jul 2022 02:27:56 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232158AbiGSJKb (ORCPT + 99 others); Tue, 19 Jul 2022 05:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbiGSJK2 (ORCPT ); Tue, 19 Jul 2022 05:10:28 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F9F23BC6; Tue, 19 Jul 2022 02:10:27 -0700 (PDT) Received: from fraeml704-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LnCdL22Bgz67xrt; Tue, 19 Jul 2022 17:07:02 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Tue, 19 Jul 2022 11:10:24 +0200 Received: from [10.126.173.247] (10.126.173.247) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Jul 2022 10:10:23 +0100 Message-ID: <1f523333-1de5-2a09-0476-298edcbba413@huawei.com> Date: Tue, 19 Jul 2022 10:10:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v6 4/6] scsi: sd: Allow max_sectors be capped at DMA optimal size limit To: Christoph Hellwig CC: Damien Le Moal , , , , , , , , , , , , References: <1657797329-98541-1-git-send-email-john.garry@huawei.com> <1657797329-98541-5-git-send-email-john.garry@huawei.com> <6725df4f-4e27-3320-8b7b-22ba15a07866@opensource.wdc.com> <20220719071028.GA28633@lst.de> From: John Garry In-Reply-To: <20220719071028.GA28633@lst.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.173.247] X-ClientProxiedBy: lhreml716-chm.china.huawei.com (10.201.108.67) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 19/07/2022 08:10, Christoph Hellwig wrote: > On Tue, Jul 19, 2022 at 08:05:30AM +0100, John Garry wrote: >> Christoph has now applied this (thanks, BTW), so would you like me to >> follow up with a patch on top with a comment? > Please do. ok, fine, I'll do it now. Just saying in case it's an issue - I was looking at http://git.infradead.org/users/hch/dma-mapping.git/log/refs/heads/for-next and the order is not the same as this series and would cause an intermediate build breakage at 9f5ec52ae501 ("scsi: scsi_transport_sas: cap shost opt_sectors according to DMA optimal limit") Cheers, John