Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1177421imj; Thu, 14 Feb 2019 02:28:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IYkn+yPmLPeqJQsdmQZ0a+t8wzHHsrTsHIAPjLNMlELuV9WeBSPknnxwZIWFdyU2lC2woH2 X-Received: by 2002:a62:2fc3:: with SMTP id v186mr3273912pfv.82.1550140127053; Thu, 14 Feb 2019 02:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550140127; cv=none; d=google.com; s=arc-20160816; b=zXBGVGmyn7is3NtKkpgp4aGOU5LO5VByTeopaZLkE9I1oVwqAfeVWeUgOT8ASfHAqU c7X5LoCh/h5zYePPHdZFg+yjpEUtB+erR0Vvykg6kCtKg5d4sGBUv/khDnqFKm+kIKYn XHekeHaaJlSKEK0CpdoaamwVfHwo3Ctoe79TxS2Tme4VZKlY7nQxEpAWPZSE4OvWhvXn 5yUTO21t1IFNqYpkIXn2Og/1pWj+oJx+PH7xeyP7PxjEb1AUKMZwHKF9AN87YcsfiKEr JwlCRxJ9i+RVxNrxkiP0f1k88yulJmrQjksFTNG/D7Kt8h7jucWjsHw0fgvDWMLghFhF iFfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2W8IxqwU5oOVLVpQ7/T8/p48+iqaHtvLrU3SqLj28mg=; b=XqVt1VEPfnidQ8YzfmG32gMJISOqM2YjK9RvaJoWKQeJJpLgj1jdToZSKxNVvDmTAj +EnAF1R1cZuZ80cS7QdrEQzp+Lf5TrRqrMb0oW7Utng1Gw0mvS1SAxjsh8Ku61OqCg5f WFcEhsR4oHpN3DTL0CHDG9PkhwWqywndWnIs18xZV8nPYq/YkgzJyIuq87XCG4d7OOPA 3GVz/RDWIL8+8XrF1932nBu4rOgy5q13mp1hdcNuGAbNbWye+U387LcqzOelaNC0IVRn dKoDOCoBGXLLCr+cIV0SohEvgpI4/xVEG7Ux1hzGn7hzPtht31f5/RGP+Xou6rO7I8sM nFFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vYW4QXUS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si2027716pgd.109.2019.02.14.02.28.31; Thu, 14 Feb 2019 02:28:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vYW4QXUS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393845AbfBNCJH (ORCPT + 99 others); Wed, 13 Feb 2019 21:09:07 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:35257 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390663AbfBNCJF (ORCPT ); Wed, 13 Feb 2019 21:09:05 -0500 Received: by mail-vs1-f67.google.com with SMTP id e7so2723803vsc.2 for ; Wed, 13 Feb 2019 18:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2W8IxqwU5oOVLVpQ7/T8/p48+iqaHtvLrU3SqLj28mg=; b=vYW4QXUSSD3sHoPN6JSArtilgaYIscuK6k7qrKKHczyaYGVELCThNIv+iTnV93Y0fI 3qCe3LosKtMzeRY+ElIXuzttv1SQ66a0zgklWPz6TvmoSjdJcZlOAlgpewAVKQrxQKsh yjFEelZSj4Jx2CjZQErkVE9LxYU6QLDv/uJkMyOcU67lLlH1oaAvDBLNrcXOD+jJphbO I3Cr/uAZTVAu99+PqDV5n28ZrFAYAjPu+frZLC9nzZv7PXzfrtplig8YNao5aqvH+Qy8 QG8ydLxENnvhYbYlElK1Fg6eAyGw9jXArPid67Y17nikZTbNJSIUCqoYcEPQ7gkA/58o QeGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2W8IxqwU5oOVLVpQ7/T8/p48+iqaHtvLrU3SqLj28mg=; b=Cgbk1YS8Sn2AtFnhkLMvZCIsfzTesH3QJqCGg1rfdTE3w9hAAzGAwGGAz+HWS2gg/P KhgaSDD3GfBZ/xu/Ot46aS5H/KPE77MwFNKweiOs4kn40PpYAwKcqkaxhMWm1G8eu1Yc AbbZiPe8BcG1NF1tGTCO49jjATcruYPaxFSo2spZHLq+qR0AsTBX/oUPaXwO3Qy6ftSi Z+YsTkKIhMEJXqiDt3hmgE1r8GQyCG7jbQwXMFaqX0Q0d6PH4qyK1G7IDYUFuQzWS3h2 4T/onNxiyCNtBeHskpHiMqENBUq8yqsb4qjPP+nipPNCLY/PHd1+6v6EQ5RBE+jakYfj 4jVg== X-Gm-Message-State: AHQUAubAweyUF4gVI8ybL4Ij/u3+8OsmjecClTARPwKPrT2FAwBJXnMm wX6fZT8GXrxKyisElJQkN9yrWBCTq2WmrLCX3XkxHQulJXQ= X-Received: by 2002:a67:f715:: with SMTP id m21mr752031vso.51.1550110144476; Wed, 13 Feb 2019 18:09:04 -0800 (PST) MIME-Version: 1.0 References: <1549955366-19930-1-git-send-email-jing.xia@unisoc.com> <19b0aefd-d265-2092-4787-34de20033ec1@redhat.com> In-Reply-To: <19b0aefd-d265-2092-4787-34de20033ec1@redhat.com> From: jing xia Date: Thu, 14 Feb 2019 10:08:53 +0800 Message-ID: Subject: Re: [PATCH] staging: android: ion: Use low_order_gfp_flags for smaller allocations To: Laura Abbott Cc: Sumit Semwal , gregkh@linuxfoundation.org, arve@android.com, tkjos@android.com, maco@android.com, joel@joelfernandes.org, christian@brauner.io, puck.chen@hisilicon.com, devel@driverdev.osuosl.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, yuming.han@unisoc.com, zhaoyang.huang@unisoc.com, orson.zhai@unisoc.com, wenan.hu@unisoc.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks. On Thu, Feb 14, 2019 at 2:27 AM Laura Abbott wrote: > > On 2/11/19 11:09 PM, Jing Xia wrote: > > gfp_flags is always set high_order_gfp_flags even if allocations of > > order 0 are made.But for smaller allocations, the system should be able > > to reclaim some memory. > > > > Signed-off-by: Jing Xia > > Reviewed-by: Yuming Han > > Reviewed-by: Zhaoyang Huang > > Reviewed-by: Orson Zhai > > --- > > drivers/staging/android/ion/ion_system_heap.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c > > index 0383f75..20f2103 100644 > > --- a/drivers/staging/android/ion/ion_system_heap.c > > +++ b/drivers/staging/android/ion/ion_system_heap.c > > @@ -223,10 +223,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools) > > static int ion_system_heap_create_pools(struct ion_page_pool **pools) > > { > > int i; > > - gfp_t gfp_flags = low_order_gfp_flags; > > > > for (i = 0; i < NUM_ORDERS; i++) { > > struct ion_page_pool *pool; > > + gfp_t gfp_flags = low_order_gfp_flags; > > > > if (orders[i] > 4) > > gfp_flags = high_order_gfp_flags; > > > > This was already submitted in > https://lore.kernel.org/lkml/1549004386-38778-1-git-send-email-saberlily.xia@hisilicon.com/T/#u > (I'm also very behind on Ion e-mail and need to catch up...) > > Laura