History log of /rk3399_rockchip-uboot/include/memblk.h (Results 1 – 12 of 12)
Revision Date Author Comments
# 8d5a6a40 19-Aug-2024 Joseph Chen <chenjh@rock-chips.com>

lib: sysmem: Use warning but not error for UNCOMP_KERNEL alloc

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I19410ccd250a2d6add594ebe0491b29259ed5e46


# 1e5eaf8f 27-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

memblk.h: increase MEM_RESV_COUNT

In order to pass more memory banks to kernel which overs 4GB.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I93393679d60d24f0628fc7bd272438f053e6cd

memblk.h: increase MEM_RESV_COUNT

In order to pass more memory banks to kernel which overs 4GB.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I93393679d60d24f0628fc7bd272438f053e6cd81

show more ...


# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# c01d4489 07-Feb-2020 Joseph Chen <chenjh@rock-chips.com>

sysmem: simplify the memblk name

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icfe908ade21d1d8f568db796298f67ba9f013da6


# 64c9242b 15-Jan-2020 Joseph Chen <chenjh@rock-chips.com>

sysmem: add FIT image memory block

The same feature with AVB memory block.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1aff5ef703d16852b4bc0a0887b037476464034c


# 1d09cf29 12-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

lib: bidram: add 4GB+ memory size support

- On ARMv7: LPAE seems to be not friendly that brings a lot of
compile errors.

- On ARMv8: MMU translate table is static defined by mem_map[]
and max 4

lib: bidram: add 4GB+ memory size support

- On ARMv7: LPAE seems to be not friendly that brings a lot of
compile errors.

- On ARMv8: MMU translate table is static defined by mem_map[]
and max 4GB as usual. It is not created dynamically according
to real memory size, that is different from ARMv7.

- 4GB memory is enough for U-Boot on both ARMv7 an ARMv8.

Considering all that, we decide to make max 4GB size to be visiable
for U-Boot, but still pass the real available memory size to kernel
by bidram_fixup() called at late before fixup "/memory" node.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Idd5fa769e940b0618446909f8f9edc39f596f072

show more ...


# 50226c8f 15-Jul-2019 Joseph Chen <chenjh@rock-chips.com>

lib: sysmem: optimise alloc policy

- Allow request region alloc within the first invisiable region reserved by
bidram when request region has flags M_ATTR_IGNORE_INVISIBLE. This is a
workaround

lib: sysmem: optimise alloc policy

- Allow request region alloc within the first invisiable region reserved by
bidram when request region has flags M_ATTR_IGNORE_INVISIBLE. This is a
workaround for some firmware memory layout, eg: on RK3308-AArch32, the ATF
region is 0~1M(same as RK3308-AArch64), but the kernel would like to alloc
at 0x00058000.

- Always make kernel reserved-memory alloc successfully and check overlap
with invisible and sysmem allocated regions in sysmem_overflow_check()
before bootm. This makes alloc policy more easier.

Change-Id: I533c710a6e69bd930befda441b9ec64415e3f408
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 556bbbe4 25-Jun-2019 Joseph Chen <chenjh@rock-chips.com>

lib: sysmem: add M_ATTR_CACHELINE_ALIGN support

If alloc buffer for storage read/write should be aligned to
cacheline size, please add the M_ATTR_CACHELINE_ALIGN flag
for this region.

Change-Id: I1

lib: sysmem: add M_ATTR_CACHELINE_ALIGN support

If alloc buffer for storage read/write should be aligned to
cacheline size, please add the M_ATTR_CACHELINE_ALIGN flag
for this region.

Change-Id: I1e5d46405ddacfadd1cdb4670f943996d9b66426
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 0986a7dd 30-Apr-2019 Joseph Chen <chenjh@rock-chips.com>

common: android: add sysmem alloc for uncompress kernel

It helps check whether uncompress kernel overlap with other region
or not.

Change-Id: Ia7e6c027f68c2e8af398824afd8b7580531cb77e
Signed-off-by

common: android: add sysmem alloc for uncompress kernel

It helps check whether uncompress kernel overlap with other region
or not.

Change-Id: Ia7e6c027f68c2e8af398824afd8b7580531cb77e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# f6e15301 07-May-2019 Joseph Chen <chenjh@rock-chips.com>

lib: sysmem: support avb android memblk sysmem alloc

Because avb android image usually needs a large memory buffer,
always alloc avb android memblk right after U-Boot stack is a
better choice to avo

lib: sysmem: support avb android memblk sysmem alloc

Because avb android image usually needs a large memory buffer,
always alloc avb android memblk right after U-Boot stack is a
better choice to avoid memblk overlap with others.

Since we have overflow protect magic for U-Boot stack, so we add
a pad(4KB) between them.

Change-Id: I72655d022f7e82f1ed9fbb381424d04bc86ccf6a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# efda1f1d 29-Apr-2019 Joseph Chen <chenjh@rock-chips.com>

lib: sysmem: support M_ATTR_PEEK for memblk

- always return successful for M_ATTR_PEEK;
- add code comments;

Change-Id: I3c7f939ac61d8da5948978de4e70f17576748c91
Signed-off-by: Joseph Chen <chenjh@

lib: sysmem: support M_ATTR_PEEK for memblk

- always return successful for M_ATTR_PEEK;
- add code comments;

Change-Id: I3c7f939ac61d8da5948978de4e70f17576748c91
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 88bfa979 14-Mar-2019 Joseph Chen <chenjh@rock-chips.com>

include: add memblk.h

Provide generic id and struct for memory blocks.

Change-Id: I1fe00dfdb8ee8209eca55c8e7ebbedcafa0371a1
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>