Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp982245lqs; Fri, 14 Jun 2024 11:02:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVYTMliW//yGWDQhL6BWEgs95cHF9hCbABEAXwEtIXyx/M8WOfXgAQOV9sn9aHS63v98fuB0dFPyaT9pzOJ/YyFsZ5cTX3k6/O7U9P/w== X-Google-Smtp-Source: AGHT+IHrmGdbPxMbalsqmR4Kmprn9P+t4Q5RIO1/aMFcPyfPvo2F5m9oX8+yvqt/LP+TtuPILptF X-Received: by 2002:a05:6a21:3213:b0:1b6:a7c5:4fac with SMTP id adf61e73a8af0-1bae800c090mr3558841637.38.1718388130423; Fri, 14 Jun 2024 11:02:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718388130; cv=pass; d=google.com; s=arc-20160816; b=TcTx6unU9AV7jn6fRoY7HLgFLOpU3tMdjNFmxESwSL3rVU+hdU8M+SYTYY0wdl51La njELliieM5TzCmFb8aWw8tKgipwRnqw88J7eLxGTeZ3Oo/4ZjPKZpqSjT+ShbGRTUblB KPaCc7KvelYyLMiuYCAN3P5zjnBponFXaxgKJsdm+N7s4w6ssPjs/o6PtbkqrQUiEi65 f9K7xTUCqcTwQ5tHjxRi/aCZ4w2Z35Lpo+Nuf1q5rU9QHUhSFAVUUSrZsed2DdRb89ZS iwrB4LCclsK/jlcAlejvuN7mj8+pExTdBgBYcyHBZT/MutV4v7eq974EeoKrf05IkXwe NStA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=MUF9XJqMkmkQjexFkfnks2orcYMhPl0ETqT57VwcVjo=; fh=alrt6mhTDCFbOcj9gcHiK1CAnOIYR9hZ6OhiVedhj9s=; b=vzstEYh8r0hScn2hzl0VfOUc5vIgwEbqADlb4NptGbRIEjBas/6C0y4a850LhvHklJ s/i5+IghUK0QQalkEQeVKCiT9Y3tsb4tVxQbODfvfp/VYakFaRvpJw55L0S0jylunUwN d3xjPEzQRfUUN5Nd+cV6tV+e/gjQIq1mqRhtp54AlFm9p0kjyQF9+Xqpsa7nl2CxeDCy wxuNFVXI51VEGRslAVAY3UuLNnOzvwNSBp/Me9biyaJMnW87/Pjad7irs4lpL7Qq5Eep VDEbjvCqPjiympdEKbuKhbKxldeNzFRLWNj9bEyEE0+TAx/Agy8Dic8+ys75RHcZkz9J WGWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oXzhxdDB; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-215393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee453ac90si3855744a12.544.2024.06.14.11.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 11:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oXzhxdDB; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-215393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DF0628893F for ; Fri, 14 Jun 2024 17:58:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74F3119DF5D; Fri, 14 Jun 2024 17:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="oXzhxdDB" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0015017BCC; Fri, 14 Jun 2024 17:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718387914; cv=none; b=XYZ8Gej2jBL+W9qOYB4Y49BTCI3nlbTJ7aDKch88reUGsUu9Ej7rinsx99GvDtWKygCf7FyXjVtLo8OSC9eCATVxdTeOAmbjHopxAqNL21Q/nI7FFuHTF2lfO1O3hT1kTtmDv9U8bmijqS27xInxIxdXM+Bdqv4h/+4jYicqx2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718387914; c=relaxed/simple; bh=hX6/vwcDgDP9auvxBpQzIAeam1ik3AqwsVBLxy+OLi0=; h=MIME-Version:Content-Type:Date:Message-ID:To:CC:Subject:From: References:In-Reply-To; b=V/MCFXHd5vG5Rvcg0s+gX5wMN46YNMs6e3axFuJlnfJbghFwAm8vt6ZoRqw9i/seqghaiEpr0CpLyyL3ZHZxG/9ilupbll6jXDIN5ZY6GOXmIu2Vfexfw3vN8BAznz1HRuO4mCQp+YcIDmZPbuIqF5htg8v7vh5+Ia4E3oI/fWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=oXzhxdDB; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45EHwMTc074684; Fri, 14 Jun 2024 12:58:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718387902; bh=MUF9XJqMkmkQjexFkfnks2orcYMhPl0ETqT57VwcVjo=; h=Date:To:CC:Subject:From:References:In-Reply-To; b=oXzhxdDBBN6Z7mAKkQRbcBdaAdn6UOWQDBkwBt4nVrAf4qa3npVEYqzTSr2sz6EVg dI8PntyPmFLoiZ+Cir9Ekf8g0I8TCo8FpSHR+NNmbHcBjUDotQ4487NkdDdJIn3b/E HFKc95i4HWN8j68E2KnqZvxe4aipItW+enuzZQbs= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45EHwMOO024310 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Jun 2024 12:58:22 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 14 Jun 2024 12:58:22 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 14 Jun 2024 12:58:22 -0500 Received: from localhost (rs-desk.dhcp.ti.com [128.247.81.144]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45EHwMHt118346; Fri, 14 Jun 2024 12:58:22 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Date: Fri, 14 Jun 2024 12:58:22 -0500 Message-ID: To: Devarsh Thakkar , , , , , , , , , CC: , , , , , , Subject: Re: [PATCH 0/3] Add global CMA reserve area From: Randolph Sapp X-Mailer: aerc 0.17.0 References: <20240613150902.2173582-1-devarsht@ti.com> In-Reply-To: <20240613150902.2173582-1-devarsht@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Thu Jun 13, 2024 at 10:08 AM CDT, Devarsh Thakkar wrote: > Add global CMA reserve area for AM62x, AM62A and AM62P SoCs. > These SoCs do not have MMU and hence require contiguous memory pool to > support various multimedia use-cases. > > Brandon Brnich (1): > arm64: dts: ti: k3-am62p5-sk: Reserve 576 MiB of global CMA > > Devarsh Thakkar (2): > arm64: dts: ti: k3-am62x-sk-common: Reserve 128MiB of global CMA > arm64: dts: ti: k3-am62a7-sk: Reserve 576MiB of global CMA > > arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 9 +++++++++ > arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 7 +++++++ > arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 8 ++++++++ > 3 files changed, 24 insertions(+) I'm still a little torn about putting this allocation into the device tree directly as the actual required allocation size depends on the task. If it's allowed though, this series is fine for introducing those changes. = This uses the long-tested values we've been using on our tree for a bit now. The= only thing that's a little worrying is the missing range definitions for devices= with more than 32bits of addressable memory as Brandon has pointed out. Once tha= t's addressed: Reviewed-by: Randolph Sapp Specifying these regions using the kernel cmdline parameter via u-boot was brought up as a potential workaround. This is fine until you get into distr= o boot methods which will almost certainly attempt to override those. I don't know. Still a little odd. Curious how the community feels about it. Technically the user or distro can still override it with the cmdline param= eter if necessary, so this may be the best way to have a useful default.