Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1370749rwn; Thu, 15 Sep 2022 14:57:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MTJtzkEGZrgvyrpMCFlkiiauvWpmU4PMWpb2wOc4Eucaj4+7zv6ckxXzMD9bIDPcvnav7 X-Received: by 2002:a17:907:8a04:b0:77c:398c:90fa with SMTP id sc4-20020a1709078a0400b0077c398c90famr1300186ejc.595.1663279041304; Thu, 15 Sep 2022 14:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663279041; cv=none; d=google.com; s=arc-20160816; b=bWy0bIVIcHZdhddKHngw8WyK6mQyqQN0EDiaoNtav1T8vDQGo/3QQudqrA0KpQaISE D8dTbkIXEQ1DUbMtv/fXZCWKC2n10K8W3t8I3HvlousUfHpf1lVlzBM/PzuVtdwGOW2z y7i/FsZhRA4JXJCjb+w/wg2B7RNqivV6O9FOij0bIl7SFYgUlNRPctY/uLNhsL5uxZNL 9A0RdBVvdAJUZiEBcDOYSDt+2gn7n0sWis3BQvzKwMAswHd8ddUptoK7WJ6fnL11FLCg bpax97pzKvQ1gj7jYQtGGJHPTxFIEPOfMb0d6OMsBEJMQ9EnzRjBzbPcs3xCaVQCRehW ++6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=wGAyWEAabIbAvSogDrOIIx1zF8AmPT7zLl8Lu7dPpE8=; b=mTY5cNlpFu687lLbc3wvbKrXAblTZwtJOAD2f0qgJMjqqjw21h0NXHVX17lhOsmA7K Uyc5XpAD1k/9jdnzuA6gX0t8C7JDtZbQS5Ziq4ErlE0IwUFlI+Vqk6sImURQp9SfR2tL 8BXpnYQ2d8ilTqnI4WxFAbvuLlko1eJzNV7Aipn0J1Zja002Z8HA96KTcfxFjNegIWN/ eJJENazdbm2hfG0SwAblxe6aU8z7dlNlEgGn/lLZQcrbsW1wfP+2Dkn9GDPI7BY6CtXO 1RBR1VP+GdUzCisPhR4+y3RdTjvKHv27xuhO/NUPWRW2OqRoaOys10eH5QHehoceFZLc qaRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pX5VLD9p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a056402500a00b004534427aee6si362906eda.229.2022.09.15.14.56.56; Thu, 15 Sep 2022 14:57:21 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pX5VLD9p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229608AbiIOVg3 (ORCPT + 99 others); Thu, 15 Sep 2022 17:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbiIOVg0 (ORCPT ); Thu, 15 Sep 2022 17:36:26 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E794888DE6 for ; Thu, 15 Sep 2022 14:36:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id sb3so15423596ejb.9 for ; Thu, 15 Sep 2022 14:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=wGAyWEAabIbAvSogDrOIIx1zF8AmPT7zLl8Lu7dPpE8=; b=pX5VLD9pMWT1ix23xz+4or6aBpV3oaRY3wh7BRmCKsLt3isoxT1BZUpdznrzqFlKrq trWK4zS/EWvY6LfYOqmlFMUhoNLrPVcZ39l0BqAvNJS932NwvLFRFCBU48YySJOMNOnN 8Qua3tORKMqA6NgBRJHux+VP3XsOibY1Y0mnA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=wGAyWEAabIbAvSogDrOIIx1zF8AmPT7zLl8Lu7dPpE8=; b=fjV6A81mQ3ZM6WRw0sKJBeUuqlb3G+nt526iRqBiBzrc9eyGfzjR3u/TdY3FS/eUPC UoC75QXY/DKlT/MZsNFnpY1Kz9q26MiPrEAc8tw6b8T3f9JELFsxqZI9kwk712V04ApS w3KZuMrSuLWQ8sLtdLqjKcKFlkVqHzM7xOkq262RTwO8HSMPGiTfZI/6vTqSLdojw6RH svSQj7NWxVl3vlS6x9Fw1NDSRcWvqRHBcy0arMeVI+3zMBt7vRyCQ5StS7PHcGhX0gh0 W6mLALGKv08wY1KBe2AGIQG+gLo9PS+e43lU0CApadr02oubQ4OWrqim8FqAKb2qqGHZ V3zw== X-Gm-Message-State: ACrzQf3jEtOz+LfVfYo9fhdhRe+6sSNgTjP1awmwqqFs2QhZoavqbID4 oQt5bCdYfoDnOhPCR4P2aMZZkVHoEz1RwlZKwy/Wug== X-Received: by 2002:a17:907:6087:b0:77a:51e9:8e86 with SMTP id ht7-20020a170907608700b0077a51e98e86mr1293921ejc.31.1663277783495; Thu, 15 Sep 2022 14:36:23 -0700 (PDT) MIME-Version: 1.0 From: Michael Nazzareno Trimarchi Date: Thu, 15 Sep 2022 23:36:12 +0200 Message-ID: Subject: Correlation CMA size and FORCE_MAX_ZONEORDER To: Mike Rapoport , LKML , David Hildenbrand , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Hi all Working on a small device with 128MB of memory and using imx_v6_v7 defconfig I found that CMA_SIZE_MBYTES, CMA_SIZE_PERCENTAGE are not respected. The calculation done does not allow the requested size. I think that this should be somehow documented and described but I did not find the documentation. Does it work this way? With CMA_SIZE of 8MB I need to have FORCE_MAX_ZONEORDER=12 if I have the default FORCE_MAX_ZONEORDER=14 the min size is 32Mb Michael