linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: defconfig: enable Generic on-chip SRAM driver
@ 2016-06-20 15:41 Sudeep Holla
  2016-06-20 16:34 ` Jon Medhurst (Tixy)
  0 siblings, 1 reply; 3+ messages in thread
From: Sudeep Holla @ 2016-06-20 15:41 UTC (permalink / raw)
  To: linux-arm-kernel

Most of the ARM SoCs have small SRAM memory used for various purposes
that require faster access to data compared to normal DDR.

This patch enables the Generic on-chip SRAM driver on ARM64.

Cc: Kevin Hilman <khilman@kernel.org>
Cc: Olof Johansson <olof@lixom.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index d9e914aec081..bf0b0d258246 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -101,6 +101,7 @@ CONFIG_MTD_M25P80=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_VIRTIO_BLK=y
+CONFIG_SRAM=y
 # CONFIG_SCSI_PROC_FS is not set
 CONFIG_BLK_DEV_SD=y
 # CONFIG_SCSI_LOWLEVEL is not set
--
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] arm64: defconfig: enable Generic on-chip SRAM driver
  2016-06-20 15:41 [PATCH] arm64: defconfig: enable Generic on-chip SRAM driver Sudeep Holla
@ 2016-06-20 16:34 ` Jon Medhurst (Tixy)
  2016-06-20 16:39   ` Sudeep Holla
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Medhurst (Tixy) @ 2016-06-20 16:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 2016-06-20 at 16:41 +0100, Sudeep Holla wrote:
> Most of the ARM SoCs have small SRAM memory used for various purposes
> that require faster access to data compared to normal DDR.
> 
> This patch enables the Generic on-chip SRAM driver on ARM64.

Would this cause things in the kernel to automatically start using SRAM
found in device-tree, or would each use need to be added explicitly?
I'm just wondering if we might start seeing new bugs caused by firmware
using SRAM for special purposes but that memory not being properly
reserved or hidden from the kernel.

-- 
Tixy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] arm64: defconfig: enable Generic on-chip SRAM driver
  2016-06-20 16:34 ` Jon Medhurst (Tixy)
@ 2016-06-20 16:39   ` Sudeep Holla
  0 siblings, 0 replies; 3+ messages in thread
From: Sudeep Holla @ 2016-06-20 16:39 UTC (permalink / raw)
  To: linux-arm-kernel



On 20/06/16 17:34, Jon Medhurst (Tixy) wrote:
> On Mon, 2016-06-20 at 16:41 +0100, Sudeep Holla wrote:
>> Most of the ARM SoCs have small SRAM memory used for various purposes
>> that require faster access to data compared to normal DDR.
>>
>> This patch enables the Generic on-chip SRAM driver on ARM64.
>
> Would this cause things in the kernel to automatically start using SRAM
> found in device-tree, or would each use need to be added explicitly?
> I'm just wondering if we might start seeing new bugs caused by firmware
> using SRAM for special purposes but that memory not being properly
> reserved or hidden from the kernel.
>

No only the unreserved part of SRAM will be used by generic allocator
and the users/drivers needing this have to explicitly request for the
same(my understanding based on some usage I have seen on ARM32
platforms). The reserved part is not touched by the generic allocator.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-20 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 15:41 [PATCH] arm64: defconfig: enable Generic on-chip SRAM driver Sudeep Holla
2016-06-20 16:34 ` Jon Medhurst (Tixy)
2016-06-20 16:39   ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).