From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AB46C4360C for ; Thu, 26 Sep 2019 19:38:16 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DDB9222C2 for ; Thu, 26 Sep 2019 19:38:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lFVH4DJZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DDB9222C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46fQFd08yhzDqvK for ; Fri, 27 Sep 2019 05:38:13 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::d42; helo=mail-io1-xd42.google.com; envelope-from=aford173@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lFVH4DJZ"; dkim-atps=neutral Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46fQCH09K0zDqth for ; Fri, 27 Sep 2019 05:36:09 +1000 (AEST) Received: by mail-io1-xd42.google.com with SMTP id a1so9673981ioc.6 for ; Thu, 26 Sep 2019 12:36:09 -0700 (PDT) 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=uv8sypDhr4ui+8J14AcrUpiwkTC+Ius1tZ05+vuLNHk=; b=lFVH4DJZInfXaRXpqmiMEK9WpeSM/1iq4W9bn5uziJHuNnpDS5uJfwrrSMkKUYaoWu tjIzRew236DgZA4ISwubGuuzdkMEJIbQ8yLo4Gw4blLNNqTUJXJQc2T8EmFOMMaE/MZN TWI21uIOpWZV0B6kiTUPUzXP+86XUqzfSXBes1IbztoB6sCaCe2+0vHVrK7I1YSyHTRf vUusvWxQUo6svZWbb5qWyg1vE5i/0/5lEgToMxkxJ7QF/bNuxlBlDbD6OXf3ku60x8mI qYDnylEQgvdyDcRtg2M6u1XUP8jT9lELn92+Mho67HMmT8OkOdOtqWogr7E2TIwC5RUe rt7w== 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=uv8sypDhr4ui+8J14AcrUpiwkTC+Ius1tZ05+vuLNHk=; b=qvwCphuXdHx0AiAGchYVJRl/fvJ3go1AEi4LE9Wr/WM2ON9GwWU0gKnbTTVFuoZmyE Yz7zk3vFxZR/qkC+Zmd3WXJbBKCPsuAUKO+eYkSTFEV7Iw/ePEac+cu9JjS1j6mA3NcR 651/56ETwN8xPYDkcsgT69WLml8SR7opKaeHpwJ/i2IoVHKf4H+znl+BR79uww8iTCaa SSMcYLQwtQQL4qsQ+FszC1hXC4Z+6MNe9hwvSLNKdqb3yt8rnYKMXJOchudJ0rT0NU9L m1cio/q2iaS7u6lF5895c1TXmHqWxFTVfYH8/kIM2IGdiGkFKnuubcqMBAKlko0SnS// nzOg== X-Gm-Message-State: APjAAAWoIHQMj93n7DYZTS1ye86CjgZRq4wlt8L+URdjQqPSWmcpkn7S vrSbgbMHV9pB1P2m8YtsnBP/mrTJUJJlm9+02yY= X-Google-Smtp-Source: APXvYqz6Gzzz4fph8SDTgwR3nXuuRIG8y0wd6XvcO9/S+doLjWzArUyv9IHucQgjs6f3GvWFnHs+ZCUo69B6L3/gML4= X-Received: by 2002:a92:9912:: with SMTP id p18mr378753ili.78.1569526565531; Thu, 26 Sep 2019 12:36:05 -0700 (PDT) MIME-Version: 1.0 References: <1548057848-15136-1-git-send-email-rppt@linux.ibm.com> <20190926160433.GD32311@linux.ibm.com> In-Reply-To: <20190926160433.GD32311@linux.ibm.com> From: Adam Ford Date: Thu, 26 Sep 2019 14:35:53 -0500 Message-ID: Subject: Re: [PATCH v2 00/21] Refine memblock API To: Mike Rapoport Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Catalin Marinas , Heiko Carstens , linux-mips@vger.kernel.org, Max Filippov , devicetree , Guo Ren , sparclinux@vger.kernel.org, Fabio Estevam , Christoph Hellwig , linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Richard Weinberger , x86@kernel.org, Russell King , kasan-dev , Geert Uytterhoeven , Mark Salter , Dennis Zhou , Matt Turner , linux-snps-arc@lists.infradead.org, Chris Healy , uclinux-h8-devel@lists.sourceforge.jp, Petr Mladek , linux-xtensa@linux-xtensa.org, linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, The etnaviv authors , linux-m68k@lists.linux-m68k.org, Rob Herring , Greentime Hu , xen-devel@lists.xenproject.org, Stafford Horne , Guan Xuetao , arm-soc , Michal Simek , Tony Luck , Linux Memory Management List , Greg Kroah-Hartman , USB list , Linux Kernel Mailing List , Paul Burton , Vineet Gupta , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , openrisc@lists.librecores.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, Sep 26, 2019 at 11:04 AM Mike Rapoport wrote: > > Hi, > > On Thu, Sep 26, 2019 at 08:09:52AM -0500, Adam Ford wrote: > > On Wed, Sep 25, 2019 at 10:17 AM Fabio Estevam wrote: > > > > > > On Wed, Sep 25, 2019 at 9:17 AM Adam Ford wrote: > > > > > > > I tried cma=256M and noticed the cma dump at the beginning didn't > > > > change. Do we need to setup a reserved-memory node like > > > > imx6ul-ccimx6ulsom.dtsi did? > > > > > > I don't think so. > > > > > > Were you able to identify what was the exact commit that caused such regression? > > > > I was able to narrow it down the 92d12f9544b7 ("memblock: refactor > > internal allocation functions") that caused the regression with > > Etnaviv. > > > Can you please test with this change: > That appears to have fixed my issue. I am not sure what the impact is, but is this a safe option? adam > diff --git a/mm/memblock.c b/mm/memblock.c > index 7d4f61a..1f5a0eb 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -1356,9 +1356,6 @@ static phys_addr_t __init memblock_alloc_range_nid(phys_addr_t size, > align = SMP_CACHE_BYTES; > } > > - if (end > memblock.current_limit) > - end = memblock.current_limit; > - > again: > found = memblock_find_in_range_node(size, align, start, end, nid, > flags); > > > I also noticed that if I create a reserved memory node as was done one > > imx6ul-ccimx6ulsom.dtsi the 3D seems to work again, but without it, I > > was getting errors regardless of the 'cma=256M' or not. > > I don't have a problem using the reserved memory, but I guess I am not > > sure what the amount should be. I know for the video decoding 1080p, > > I have historically used cma=128M, but with the 3D also needing some > > memory allocation, is that enough or should I use 256M? > > > > adam > > -- > Sincerely yours, > Mike. >