Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1704085pxb; Mon, 22 Feb 2021 08:50:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxahDOwcIz/0pT0TYZhyWYsvIUfgQiYqIBuIZWhEX/708w0Aq6v1k+2R1gvN6iDZrXhmHWv X-Received: by 2002:aa7:d1cf:: with SMTP id g15mr3361515edp.270.1614012637207; Mon, 22 Feb 2021 08:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614012637; cv=none; d=google.com; s=arc-20160816; b=MbYDn81XfDbzbGbkAzU60OghdtmvPXrGsjOKcltfswUbw0PVjuYwleITVaWsAeENHU vu4xOJl+KADQUhSAsgev0/c2AC4EcQY6DTLP+uBN1uK9xHz2A2qppw/po1dMFMt5bR78 O6EvZ21K4xUqraHDjAFcvXfvzIVdJlaUle0HoTzW886NNO9ggn4OHZ111SaTSYIReU1+ 5h4/+C1M+Y9RL+G9zDH0j0rEMQaIcQkdnasG5Ff5JtTUOmuMqSAJmmJ1tv6x7/++DFWM Rhfpbdc0+7BwqNIrayCL4kJKVNr8k51+DWgn2TUA6Gov2vHaJP2k6TxFfhMMHOM/LFJY Ei7g== 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=Q+mTrq1FCm72aS73t2sdgEW0wRg3cpUyRs6KvYINKIk=; b=OHwYOyANZG+uMRnyu3AJylMxde0C8a80g6N42Dqt7djQKYltND21cmS7SyADxUDeGD AL4Gzikxb9SVDM14Iu4tJLxMyHQx51Xsi5RdvbPIAoxMvFQ8vWHPBXz/3UqN1BqlqNHO FAxnIMtbi+PGGqft4Anp2yZFykqQB4xksfGyX6pXF9LXkeJlXcWu/QuA1AE6/ynK+fUd dQVfwXFN7fyhAVbthEyUhgYnHNx3Em+iFCkq5RsCKxZuS73qLZwIec7EJaEuOzYpqcZN To4IkV2+lotxTYdYzi3SAga4wth2+K/p3Vlh1WOfou4ZBLS0o+hfNyF9ngNOUcNn0H7V vRjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=b2JA8Lwe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si12092960ejo.251.2021.02.22.08.50.13; Mon, 22 Feb 2021 08:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=b2JA8Lwe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbhBVQtU (ORCPT + 99 others); Mon, 22 Feb 2021 11:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbhBVQtR (ORCPT ); Mon, 22 Feb 2021 11:49:17 -0500 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11662C061786 for ; Mon, 22 Feb 2021 08:48:36 -0800 (PST) Received: by mail-qt1-x836.google.com with SMTP id b24so9691104qtp.13 for ; Mon, 22 Feb 2021 08:48:36 -0800 (PST) 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=Q+mTrq1FCm72aS73t2sdgEW0wRg3cpUyRs6KvYINKIk=; b=b2JA8LweUMvXaEpIDY/7TExlbGmdyzhfW1IpfJORsKvS7slxkMolm0g6KRAZj4Cfd0 38f0gj7yLmaSO2OLXL9khtoLY+e5CJngVroT+J0iOI2oKmtOtTyy9RD4smRHlCHFq3UZ YdZ+EhlnaUzF+kPHG16HwF0++Q0QH3R8FjlAMndOmcONnVVMdILdVOvb7rzceGI/rxA4 fcDOjxxQI67tJMFdUT5ValRN82CdAa1Szn+5mvWL1lxweljw0X91FfDE4uhv/viFMcL0 f4IQeEGda0GWVUDugBsbilU6UPCO6rx8tfppu69qlanu9sA0uMhF3UuNXEL/fkHaN5Qc fhxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q+mTrq1FCm72aS73t2sdgEW0wRg3cpUyRs6KvYINKIk=; b=druy4wuPnXv6AiCVNUJhyoTJbSNZz2I6+6CEHz+725bw05Ctk7pkWqQC4tvEucZknO 6czzhXjnUl7YyYKSDlo6ONwzUAAQuwggD3kswAHPpqq7HRN0hoChhV+guHCpQJmGCfrF amg+jTHR2wi/FciQLvUo+vdoTBvug5Wblje1M1jPNg2tdFnj1iq+oZ2MmGTqxZP6GPhN +PrkNXIoDvCc2KGSKqyqhGWgIt/ZBF3AbjnzFKsSJ+PMLBQKN5c0aOeMxacC/Ba3ux7Z zA/ce3HeeuhYPkZ66ujVvB6vp/A+C80lnsezQ7VWFj/tDC0/bsfr3qgOx9qqvJNan1JJ UaCA== X-Gm-Message-State: AOAM530mb/YpCwAK0SGYkj2WFVG7feotpXA4hbYEJfl8k53gFjtBKY0z tHl6TWMzCqsiKSj8rDtt/LB+7w== X-Received: by 2002:ac8:4b56:: with SMTP id e22mr15959033qts.311.1614012515304; Mon, 22 Feb 2021 08:48:35 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id 15sm11072578qty.65.2021.02.22.08.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 08:48:34 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lEENu-00ERzG-4Z; Mon, 22 Feb 2021 12:48:34 -0400 Date: Mon, 22 Feb 2021 12:48:34 -0400 From: Jason Gunthorpe To: Praveen Kannoju Cc: "leon@kernel.org" , "dledford@redhat.com" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rama Nichanamatlu , Rajesh Sivaramasubramaniom Subject: Re: [PATCH RFC] IB/mlx5: Reduce max order of memory allocated for xlt update Message-ID: <20210222164834.GL2643399@ziepe.ca> References: <1613138176-22082-1-git-send-email-praveen.kannoju@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 04:26:23PM +0000, Praveen Kannoju wrote: > Ping! Your original message didn't make it to the mailing list or patchworks, you will need to fix your mailing environment and resend it. > - /* > - * If the system already has a suitable high order page then just use > - * that, but don't try hard to create one. This max is about 1M, so a > - * free x86 huge page will satisfy it. > - */ > size = min_t(size_t, ent_size * ALIGN(*nents, xlt_chunk_align), > - MLX5_MAX_UMR_CHUNK); > + MLX5_SPARE_UMR_CHUNK); > *nents = size / ent_size; > res = (void *)__get_free_pages(gfp_mask | __GFP_NOWARN, > get_order(size)); IIRC, there is some GFP flag here that fails fast if the order is not available, why not just use that? Jason