Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B9161E00927; Fri, 21 Jun 2019 05:55:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [198.47.23.249 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1C316E003C1 for ; Fri, 21 Jun 2019 05:55:43 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5LCth9j096516 for ; Fri, 21 Jun 2019 07:55:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561121743; bh=oppCvIj0+KeDbH5FYuC8TeDCSmPLU+vgkoO6mf9IPC8=; h=Subject:To:References:From:Date:In-Reply-To; b=nTFBqbUnYzMovxOgWtLzRYgu+FIitcxKLkAZPN3FX+is9+1oc8wXEzMGEnZVhRO1U X2s2HrmpnP1XVPlKSUCpj8FX4XOGPS6HGKLn1VuHkumz561uxmXkR8cdHxctaKZc5M yyfjWtW8v/Eckxx1tgRkcCmjUhPhDWU6BuCS1bss= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5LCthhY066579 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 21 Jun 2019 07:55:43 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 21 Jun 2019 07:55:43 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 21 Jun 2019 07:55:43 -0500 Received: from [158.218.113.191] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5LCthWG014338; Fri, 21 Jun 2019 07:55:43 -0500 To: Djordje Senicic , References: <20190619174102.16280-1-x0157990@ti.com> From: Jacob Stiffler Message-ID: <27b2f94f-747c-07b2-7122-1b9749e8d7f7@ti.com> Date: Fri, 21 Jun 2019 08:55:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190619174102.16280-1-x0157990@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Subject: Re: [EXTERNAL] [thud/master][PATCH 1/2] cmem: Add CMEM 384MB block to dra76xx to enable opencl and tidl X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2019 12:55:44 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Denys, Can you please back-port this to ti2019.01? Thank you, Jake On 6/19/2019 1:41 PM, Djordje Senicic wrote: > Signed-off-by: Djordje Senicic > --- > recipes-kernel/linux/cmem.inc | 6 ++-- > .../linux/files/dra7xx/cmem-dra76x.dtsi | 29 +++++++++++++++++++ > 2 files changed, 33 insertions(+), 2 deletions(-) > create mode 100644 recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi > > diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc > index 5fd0b9d9..8bd643f4 100644 > --- a/recipes-kernel/linux/cmem.inc > +++ b/recipes-kernel/linux/cmem.inc > @@ -4,8 +4,8 @@ > CMEM_MACHINE = "${MACHINE}" > CMEM_MACHINE_am57xx-evm = "am571x am572x am574x" > CMEM_MACHINE_am57xx-hs-evm = "am571x am572x am574x" > -CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x" > -CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x" > +CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x dra76x" > +CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x dra76x" > > # Set cmem.dtsi per machine or machine variant > CMEM_DTSI = "cmem.dtsi" > @@ -13,6 +13,7 @@ CMEM_DTSI_am571x = "cmem-am571x.dtsi" > CMEM_DTSI_am574x = "cmem-am574x.dtsi" > CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" > CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" > +CMEM_DTSI_dra76x = "cmem-dra76x.dtsi" > > # Split device trees between variants > CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" > @@ -24,6 +25,7 @@ CMEM_DEVICETREE_dra71x = "dra71-evm.dtb" > CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \ > dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb" > CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb" > +CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb" > > # Flag to enable CMEM injection > RESERVE_CMEM ?= "0" > diff --git a/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi b/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi > new file mode 100644 > index 00000000..9d207db5 > --- /dev/null > +++ b/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi > @@ -0,0 +1,29 @@ > +/ { > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + cmem_block_mem_0: cmem_block_mem@a0000000 { > + reg = <0x0 0xa0000000 0x0 0x18000000>; > + no-map; > + status = "okay"; > + }; > + }; > + > + cmem { > + compatible = "ti,cmem"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + #pool-size-cells = <2>; > + > + status = "okay"; > + > + cmem_block_0: cmem_block@0 { > + reg = <0>; > + memory-region = <&cmem_block_mem_0>; > + cmem-buf-pools = <1 0x0 0x18000000>; > + }; > + }; > +};