Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4615269imc; Mon, 25 Feb 2019 07:59:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IZoGpJ+BvgEaPPjLf++IoPM3U1vZ9WXrwsltg7kgPQiIfP97rMHrZlC8QbJQRtvO7bS57qc X-Received: by 2002:a62:458a:: with SMTP id n10mr21580607pfi.136.1551110344716; Mon, 25 Feb 2019 07:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551110344; cv=none; d=google.com; s=arc-20160816; b=lxqQaNOGp+2ZeL8Ifu0m6vm1oiCU0Z6ia2jx2xEYfCkshOmoB38ILLbBjYNkOwbcWu ZbY54ueHPSs7hhUTS/j9+ZH7KfwwNkIB4+ShQstcd3GSi2uoS3l7ooeT5N1eGhKdwANK uogY17TRtpBEe4mGZOEvZ5l+RpKafqVcxE0NNjaPWOCo7vc9SVcKCMnR+wqASMublEwO 2O0UMzx9PnQnyrNmW3ox4ktsaVNBwP9wErOO9P0J+qbWkUswelVVobQ9uQk1KTBwxhUa JANPu2mJPNG+larP13jE+lc5LqdWL4o2dR70rExgvou4csNH7v1RN5bKaDiIzu12Hur3 zKEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=8Z/Vs8kWmwlupgyEV9rO4Ktk8Zjs5wvHNgcPpFog55g=; b=whR98c3SpjDVnUqKNMbR1bXbI1Yrem1pK/DYird5HP0NshYOB4XIFGKc558X5ETBWs B/l/z5JFR4xzRHBCVFSPTIOYc7T8r6jhexzAM6JCJBFwzurS0rbMUDNWVVKtjEYJ8CMA 6bgFzOVD4IY4MVrdC8DKJThz2aw8R9uSWsXou46olfK0ToZya8oWpiRyntT/cZvlzQ+n fpToP3loFPkfQpFQpUTfyoXV+4kz8dm/y7zkA7a4V4EcExSynF3YLdOtb39EgslXSD2W d2oci6V52/7NBOdO1fps75RYl57CSOG6FxHu6C+ZpProFHHUkkuUMB1jNOg2bUGnj6KB VmeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si10088403plc.153.2019.02.25.07.58.49; Mon, 25 Feb 2019 07:59:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727823AbfBYP6A (ORCPT + 99 others); Mon, 25 Feb 2019 10:58:00 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:49843 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727638AbfBYP57 (ORCPT ); Mon, 25 Feb 2019 10:57:59 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1PFuc2M003031; Mon, 25 Feb 2019 16:57:45 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2qtvtwtqgq-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 25 Feb 2019 16:57:45 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3D65338; Mon, 25 Feb 2019 15:57:45 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 01D435244; Mon, 25 Feb 2019 15:57:44 +0000 (GMT) Received: from [10.48.0.160] (10.75.127.47) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 25 Feb 2019 16:57:44 +0100 Subject: Re: [PATCH v1 2/3] ARM: dts: stm32: enable Vivante GPU support on stm32mp157c-ed1 board To: Lucas Stach , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue CC: , Philippe Cornu , , , References: <1550246316-9747-1-git-send-email-pierre-yves.mordret@st.com> <1550246316-9747-3-git-send-email-pierre-yves.mordret@st.com> <1550247269.2546.58.camel@pengutronix.de> From: Pierre Yves MORDRET Message-ID: <2cf49be6-474d-350b-8dfd-3fe1bf38af3a@st.com> Date: Mon, 25 Feb 2019 16:57:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1550247269.2546.58.camel@pengutronix.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-25_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi again, On 2/15/19 5:14 PM, Lucas Stach wrote: > Am Freitag, den 15.02.2019, 16:58 +0100 schrieb Pierre-Yves MORDRET: >> Enable Vivante GPU driver for stm32mp157c-ed1 board. >> >> Signed-off-by: Pierre-Yves MORDRET >> --- >>  arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 ++++++++++++++++ >>  1 file changed, 16 insertions(+) >> >> diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts >> b/arch/arm/boot/dts/stm32mp157c-ed1.dts >> index 98ef7a0..792f402 100644 >> --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts >> +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts >> @@ -20,6 +20,17 @@ >>   reg = <0xC0000000 0x40000000>; >>   }; >>   >> + reserved-memory { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; >> + >> + gpu_reserved: gpu@f8000000 { >> + reg = <0xf8000000 0x8000000>; >> + no-map; >> + }; >> + }; >> + > > I don't think you need this. The GPU driver uses very little contig dma > memory. Most of the GPU memory is ordinary paged memory, so setting > aside a private memory region of this size is a waste of memory. Most > likely you can just allow the GPU driver to use the system global CMA > region. That's correct, but this memory area is also used for U-BOOT splash screen rendering. Moreover, even if we lack of proof as for today, it turns out performances are better with this region as reduces MMU accesses (with Vivante driver) Eventually using Android framework application is started more gently whatever previous application and CMA status(fragmentation). Provided this memory, CMA region is decreased accordingly. Hope it clarifies. Regards > > Regards, > Lucas > > >>   aliases { >>   serial0 = &uart4; >>   }; >> @@ -53,6 +64,11 @@ >>   status = "okay"; >>  }; >>   >> +&gpu { >> + contiguous-area = <&gpu_reserved>; >> + status = "okay"; >> +}; >> + >>  &i2c4 { >>   pinctrl-names = "default"; >>   pinctrl-0 = <&i2c4_pins_a>;