Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp612120iob; Wed, 18 May 2022 09:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkYx0q/mz3HnWVspZOC8RY2QGag/n/MBE1Jof9yps9482O+R5kv+vXOskwaibWNSB57ZRQ X-Received: by 2002:a63:5d50:0:b0:3db:5325:b120 with SMTP id o16-20020a635d50000000b003db5325b120mr197912pgm.212.1652890090244; Wed, 18 May 2022 09:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652890090; cv=none; d=google.com; s=arc-20160816; b=C5xIloag/R0iJOAh2G+B1Qwjkb668lz/68wzcetM2F0GsCFTWDGvWukPMvjgUfPeqx zLeeHk57ljVUecRy0tlcL0UfDpjEnOx0wtdwq5LBi2LhPOCaGqXqNadLtxJrfJ1eiQPR KsKP0AC857YVUJ0/glrYI9d9r0bzkHJaLjeJ490VYIS710NpDCvnpO298tWVhfW3vFxC 9pRQyPDd6fS0mfvfGBEZPuaEpm7DR5iQNQ7HaXQSW9Mi58NzQkJX+t14AnViG8jywpWF dJN/166NB1elCdJYoncrBgz38HUBrkL1WOgLiUXcT82nlSVssO3MhEifr6X+v93o5Ucq dprw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AsDPJQJoORPGh0qS4EUeaOiktBXOii5jyqGHGv+kXII=; b=PHVeTSKdS44PJ9p8ZNz2BGMfzAlr42Dt6/Uh/sCJ+U1l1N1+ArMGh0i04sQyXuOZpJ Q/fzxh5VlxWjpj1QlEH+fjfWM/Q78XenDLZzPod31mdDpIEATMsUs/iVY6Bx5TRZsFKQ 2nQCals7Ed3DgOktB3YzMEvQ4JhYG4SYCE7Gmv72QVV9ncS9b2ID5Np/KqAm2mWDU90C 9F37KugCT4J+ATDG9lfQdONgqOETbGlrVlvamKrHFzcgWm5Uc0e8KujQuKTCGu8lI+SO eA21jJ3tmzdKIUc3SMrfy7YrIbhcto/sa45xDrDfSH3weWImbDPFls09T61Aoxy/YjVk BSqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=N76w0omW; 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 l5-20020a170903120500b00153b2d1663csi3370025plh.580.2022.05.18.09.08.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:08:10 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=N76w0omW; 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 59C951D8678; Wed, 18 May 2022 09:05:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239820AbiERQFd (ORCPT + 99 others); Wed, 18 May 2022 12:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239790AbiERQF3 (ORCPT ); Wed, 18 May 2022 12:05:29 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B131D6746 for ; Wed, 18 May 2022 09:05:28 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id j3so1877429qvn.0 for ; Wed, 18 May 2022 09:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AsDPJQJoORPGh0qS4EUeaOiktBXOii5jyqGHGv+kXII=; b=N76w0omWsgq1J3trQP+78nGSW1FVT0gWGjc72Mb7QVydmmWW9+FAv5I3Dcl5COOIKO 4vA4c/iw6Hjv1lPlLWYuu4ZXAV0cmilaFztjoqQq3rpGsdIFIbi3551Hy18a84tDtlM1 /PVy20Jd2KeJ0STPnZZTjPBpGkbDWJmfUuaImI4EugibkVhOCmGuKS4x5BqJjjSa84Tw nnk40ZmaQIdUG4daGMY+vWEQed0/kZKjkAfoSigwJTPRTsEEfJAYQcPLAAF4LtR/2p+U xlREPjULkf2pEVenp75I+mD993ExL5U5UfVfMA2Y0WgBGhVwjcrJdMytRTXhKHsMJl4j uWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AsDPJQJoORPGh0qS4EUeaOiktBXOii5jyqGHGv+kXII=; b=Ms/RzsYKseP7WjmzVhpQZOtnCCwNAqftlTTi3RFGEY44sWui8ChLe+VV4ekPAjhocr 2HCw2cEuyI6+DRudXE7OehBi3cnSZr2KOq2nWC52LJFpVHr+XMFAqoEY6LZtTbrrfPXH 8z3Y8pSHy158uCK49kbj1g6gMHsLaDBnJ1iC2FhftsGOSEyJ/dCQ/z4toyV6ATlHZnKx LArTxoijo9fYgCohBZigxqR60gSaYFKpieBMp9sO9nLjI7xnbzxhjtZbNz09uxTPRi68 K7h9AnuPmCYKo5+wLVmRR1/vEAT9zCe0Eo4c6TvaxpwFry8OP9/hkn85eTQXPSyeBv5l PAow== X-Gm-Message-State: AOAM530aQxkdGcnXupQcKiwztlaXowtwVHUqgl3ChVTO4x8xjsRi1wfj TVmml4BgrE/i4xRi4dfSr4l/Tw== X-Received: by 2002:a05:6214:224d:b0:461:f264:ba2 with SMTP id c13-20020a056214224d00b00461f2640ba2mr406148qvc.43.1652889927418; Wed, 18 May 2022 09:05:27 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id l19-20020a05622a175300b002f39b99f670sm1567656qtk.10.2022.05.18.09.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:05:26 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nrMAv-008VXe-MH; Wed, 18 May 2022 13:05:25 -0300 Date: Wed, 18 May 2022 13:05:25 -0300 From: Jason Gunthorpe To: Ajay Sharma Cc: Long Li , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH 05/12] net: mana: Set the DMA device max page size Message-ID: <20220518160525.GP63055@ziepe.ca> References: <1652778276-2986-1-git-send-email-longli@linuxonhyperv.com> <1652778276-2986-6-git-send-email-longli@linuxonhyperv.com> <20220517145949.GH63055@ziepe.ca> <20220517193515.GN63055@ziepe.ca> <20220518000356.GO63055@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Wed, May 18, 2022 at 05:59:00AM +0000, Ajay Sharma wrote: > Thanks Long. > Hello Jason, > I am the author of the patch. > To your comment below : > " As I've already said, you are supposed to set the value that limits to ib_sge and *NOT* the value that is related to ib_umem_find_best_pgsz. It is usually 2G because the ib_sge's typically work on a 32 bit length." > > The ib_sge is limited by the __sg_alloc_table_from_pages() which > uses ib_dma_max_seg_size() which is what is set by the eth driver > using dma_set_max_seg_size() . Currently our hw does not support > PTEs larger than 2M. *sigh* again it has nothing to do with *PTEs* in the HW. Jason