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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 060F8C433EF for ; Thu, 24 Feb 2022 15:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236473AbiBXPrn (ORCPT ); Thu, 24 Feb 2022 10:47:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233589AbiBXPri (ORCPT ); Thu, 24 Feb 2022 10:47:38 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADAE633890; Thu, 24 Feb 2022 07:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1645717628; x=1677253628; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ll3MqrDoeIh8KqQDetcgoJwBbe/DS1Rty18ugHPoHU8=; b=dtP4m30T8XpsZQQCgxbbzWixID4SoKRSPLk3R2FkCrxKsRmcc0idrGkB mAHamC/Du+Cba3lgCs7O1Tikb8sHiNg9RMnAhqFFlXyE7lRsy+c22ZbZx j2hGRASKnycfUQfszPUGHqyu9SjxGXKQNPiVYTuNEUiMqSUYENNBeOmW9 gurehmbYblI4BE695NAf9N3lonQ+E18AEMBGc7ISpetnDLUKrn/9Whm7u ZEpaGR0ICIcOvBnqzEVyITd28DJKwF8oUyl7jYLdCy5wKhxSRpRqWeglp E89Dd9Y9qolztYYrxfAbCyKi6+1H3NFMKR34cTgFVXDfkcibJ7R4aHgC+ w==; X-IronPort-AV: E=Sophos;i="5.90,134,1643698800"; d="scan'208";a="154774578" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Feb 2022 08:47:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 24 Feb 2022 08:47:06 -0700 Received: from [10.12.73.51] (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 24 Feb 2022 08:47:04 -0700 Message-ID: <9858f8e2-619c-2c3b-f771-114bb5379876@microchip.com> Date: Thu, 24 Feb 2022 16:47:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] 1/3] ARM: dts: at91: sama7g5: Restrict ns_sram Content-Language: en-US To: Alexandre Belloni , Hari Prasath CC: , , , , , , , References: <20220222113924.25799-1-Hari.PrasathGE@microchip.com> From: Nicolas Ferre Organization: microchip In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2022 at 21:46, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On 22/02/2022 17:09:22+0530, Hari Prasath wrote: >> Limit the size of SRAM available for the rest of kernel via genalloc API's to >> 13k. The rest of the SRAM is used by CAN controllers and hence this restriction. >> > > Certainly not, if the can controller need the SRAM, they have to > allocate it properly. I'm not sure that bosh mcan driver can be used with dynamic allocation of SRAM. Is it what you're thinking about? In the meantime, I'm taking the CAN patches of this series as they match what we currently do for other users of mcan driver on other SoCs. Regards, Nicolas >> Signed-off-by: Hari Prasath >> --- >> arch/arm/boot/dts/sama7g5.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi >> index eddcfbf4d223..6c7012f74b10 100644 >> --- a/arch/arm/boot/dts/sama7g5.dtsi >> +++ b/arch/arm/boot/dts/sama7g5.dtsi >> @@ -65,7 +65,7 @@ >> compatible = "mmio-sram"; >> #address-cells = <1>; >> #size-cells = <1>; >> - reg = <0x100000 0x20000>; >> + reg = <0x100000 0x3400>; >> ranges; >> }; >> >> -- >> 2.17.1 >> > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -- Nicolas Ferre 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC4E0C433F5 for ; Thu, 24 Feb 2022 15:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VBkjLQ8shdb5IraSPh/4383aXhzHxP94r8yKqkVzseI=; b=dmoYALdrkElAFb FQ9KHTBvQgcdGCpL5M2/XriPrjIp7pGhGgdsn8+/4FzT5E2uXshUgzdEJZCwNxgrdU22hsIY8JSl0 KFd0cYWyd/mWb/rdLM+jaUCR3bb5AMLgtqMHAph6K/aRkudVXTv4JN2YBvmcp9C/j591+WQPRfQq0 yKmzL2nZ7TVb36q2SdeM7RPCiWmG2cuoNeC8UvD9HKdsGVgdghq9CyRSoRjeWy1iPj/Uu+dFxBetb kXE1Ud5osbP9HUH35r4CSaQ46mBnZEZgZjhJ4wysgQJ9mk0mD7OmoBzqDmDHubByh5DJILMwA//yz fiybMr3Dze3/V/vMQOsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGKn-001MmX-K5; Thu, 24 Feb 2022 15:47:13 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGKj-001MlQ-3V for linux-arm-kernel@lists.infradead.org; Thu, 24 Feb 2022 15:47:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1645717629; x=1677253629; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ll3MqrDoeIh8KqQDetcgoJwBbe/DS1Rty18ugHPoHU8=; b=ag5SxBMx0c8ouCgIPXakU4GkcZbvr+8s0MpmF+aQQNnVaLWoMLXceCXw 0rmMNS/QZzeC6VhafKmAPhlvqHaU0+cG/z98XiKisLNQlYXZzexraIMTk QQ19ErdS4SikQ445xt1E4VC00IxJL3as9AA3Oq8V4SIbCddVoIaPISIiq BRCjTgXw/YD7xo/jymItf7LoeXGpbQ6Tc5gTKvauCMzQs3KV03qPVfnWj v6nshZb/aSJfiCPqif7Yu6qNnD7npfb6eCqB/54JG8mQb1WA/eNgZEe8g I/N1RcMzl2fqaS0xqDVW1fxBBClwXDo/Xwpzmz284N/jMrhsYhk3gYu+2 Q==; X-IronPort-AV: E=Sophos;i="5.90,134,1643698800"; d="scan'208";a="154774578" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Feb 2022 08:47:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 24 Feb 2022 08:47:06 -0700 Received: from [10.12.73.51] (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 24 Feb 2022 08:47:04 -0700 Message-ID: <9858f8e2-619c-2c3b-f771-114bb5379876@microchip.com> Date: Thu, 24 Feb 2022 16:47:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] 1/3] ARM: dts: at91: sama7g5: Restrict ns_sram Content-Language: en-US To: Alexandre Belloni , Hari Prasath CC: , , , , , , , References: <20220222113924.25799-1-Hari.PrasathGE@microchip.com> From: Nicolas Ferre Organization: microchip In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_074709_221735_AE4CE431 X-CRM114-Status: GOOD ( 18.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 22/02/2022 at 21:46, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On 22/02/2022 17:09:22+0530, Hari Prasath wrote: >> Limit the size of SRAM available for the rest of kernel via genalloc API's to >> 13k. The rest of the SRAM is used by CAN controllers and hence this restriction. >> > > Certainly not, if the can controller need the SRAM, they have to > allocate it properly. I'm not sure that bosh mcan driver can be used with dynamic allocation of SRAM. Is it what you're thinking about? In the meantime, I'm taking the CAN patches of this series as they match what we currently do for other users of mcan driver on other SoCs. Regards, Nicolas >> Signed-off-by: Hari Prasath >> --- >> arch/arm/boot/dts/sama7g5.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi >> index eddcfbf4d223..6c7012f74b10 100644 >> --- a/arch/arm/boot/dts/sama7g5.dtsi >> +++ b/arch/arm/boot/dts/sama7g5.dtsi >> @@ -65,7 +65,7 @@ >> compatible = "mmio-sram"; >> #address-cells = <1>; >> #size-cells = <1>; >> - reg = <0x100000 0x20000>; >> + reg = <0x100000 0x3400>; >> ranges; >> }; >> >> -- >> 2.17.1 >> > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -- Nicolas Ferre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel