| 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 ...
|
| b9a7e756 | 15-Jul-2019 |
Hisping Lin <hisping.lin@rock-chips.com> |
lib: optee_client: change the condition for eMMC devices
1.dev_desc->if_type == IF_TYPE_MMC for SD and eMMC device, dev_desc->devnum == 1 is SD devices, dev_desc->devnum == 0 is eMMC devices 2.S
lib: optee_client: change the condition for eMMC devices
1.dev_desc->if_type == IF_TYPE_MMC for SD and eMMC device, dev_desc->devnum == 1 is SD devices, dev_desc->devnum == 0 is eMMC devices 2.SD devices do not have rpmb 3.we prefer to use rpmb for eMMC devices, use security partition for nand or SD devices
Change-Id: Ifc21bd4da7c3ee91e2ecc845c343182c78d52dc1 Signed-off-by: Hisping Lin <hisping.lin@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 ...
|
| 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 ...
|