Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp191248lfo; Tue, 17 May 2022 21:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3AkxFeIfV64a4V9lCgQvVFSJgkCyxEfTydc0l6JIoobBU5wrjkoLmxzDLog/tbcQsFOUN X-Received: by 2002:a17:90b:3903:b0:1dc:8fe0:df4d with SMTP id ob3-20020a17090b390300b001dc8fe0df4dmr28706077pjb.191.1652849557755; Tue, 17 May 2022 21:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849557; cv=none; d=google.com; s=arc-20160816; b=nUvFgJjUJhuezK5iyQsX0LBEJLKXjq6sHbaZhmZeBuOtr7Smy8LWyTK2JCI1a/L5Fr YE8A6kyfY4uXHBnECnh13i9SxkiOFr5gCrobRX9m6RZzWlKE5yW8xMSceArMVk4ObPK+ e60PeSfxkKtOwR6jm7fUSEYR/awggGEcK9I78/JJqdBRjOomXhcAnMdVztKinSOIMCdd Lqci9gxAyEJ0kJ60ixwR23RDlc9Ooo2iOuCUVEDydxHLPo28l+qyq97ttMMNcZaeP2e4 NR/k1NYe+M3aJ0W2XVjyEiReizWUb6Lhdk52Es/BIoWpKfe4CGI0rdw0NLJuTsfx9eeV RrdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JJEMgNIcRL3du6mj18y7DJWgTz/zkl7dNOcbj8XhVX8=; b=tIFB9WaoWCD1hIfGdUbhhAP1p6GM+C/83ZhsVEy46DWaCarjBcxWUTRdUrdcsJ+Mqc 4aykSt6AE2RP75HpZzbB+n3jJRlcv6ZDSUvyNHMMv/0/NM9BrD5IJg/YJwrHt9pf+1/p 6cD9q9/zXDM21AIvSCHErZIMWOVJ4TIA/fqElDFdIpS+GobbN5W7UgrqoNt7y0uCJjfB LdoLWgYHGpNmbAngDv1FDWxNVptbaUpj1IZIRO3wci5n+MYr7LF1izo7SjdbrqqMcaaE 1OunU94roxIFC7KfmPuhYQVZzsA/cJ5O1LAdl+PNKGHMmQ5NoyTtANwI0DAFIU2O1jej FIwA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h8-20020a056a00218800b0050e17a48253si1887600pfi.117.2022.05.17.21.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04F04132742; Tue, 17 May 2022 21:00:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235783AbiEQJLz (ORCPT + 99 others); Tue, 17 May 2022 05:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244406AbiEQJLI (ORCPT ); Tue, 17 May 2022 05:11:08 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED1C1EEE8 for ; Tue, 17 May 2022 02:11:05 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 7FE9E67373; Tue, 17 May 2022 11:11:02 +0200 (CEST) Date: Tue, 17 May 2022 11:11:02 +0200 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, m.szyprowski@samsung.com, chenxiang66@hisilicon.com, thunder.leizhen@huawei.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, liyihang6@hisilicon.com Subject: Re: [RFC PATCH] dma-iommu: Add iommu_dma_max_mapping_size() Message-ID: <20220517091102.GB18723@lst.de> References: <1652706361-92557-1-git-send-email-john.garry@huawei.com> <20220517083834.GA16965@lst.de> <3e7c4d27-a0cb-2d9e-ca79-248ce26c6787@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e7c4d27-a0cb-2d9e-ca79-248ce26c6787@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, May 17, 2022 at 10:02:00AM +0100, John Garry wrote: > BTW, on a separate topic, I noticed that even with this change my ATA > devices have max_hw_sectors_kb of 32767, as opposed to 128 for SAS devices. > It seems that libata-scsi - specifically ata_scsi_dev_config() - doesn't > honour the shost max_sectors limit. I guess that is not intentional. I don't think it is. the libsas/libsata integration is a bit messy sometimes..