| #
406e6b1a |
| 14-Sep-2024 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: Fix alloc any where fail which return invalid addr 0x00000002
Fixes: (523469f4bf1 lib: sysmem: Bypass alloc check for periph device range)
Signed-off-by: Joseph Chen <chenjh@rock-chips
lib: sysmem: Fix alloc any where fail which return invalid addr 0x00000002
Fixes: (523469f4bf1 lib: sysmem: Bypass alloc check for periph device range)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Idd397dc67dad0d5032d920751fbec35f33dbce36
show more ...
|
| #
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
|
| #
523469f4 |
| 19-Aug-2024 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: Bypass alloc check for periph device range
Typical periph device range:
- (CONFIG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE) ~ 4GB: for most platforms. - 0 ~ CONFIG_SYS_SDRAM_BASE: rk3576
Signe
lib: sysmem: Bypass alloc check for periph device range
Typical periph device range:
- (CONFIG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE) ~ 4GB: for most platforms. - 0 ~ CONFIG_SYS_SDRAM_BASE: rk3576
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7a6d8848e657f8dbbb1676517f0802db32f871e3
show more ...
|
| #
f7a6474a |
| 24-Jun-2024 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: Fix U-Boot sysmem alloc size
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5bb9d4288b80df55ddf6a3cb216f9baf44b6ad2d
|
| #
50a17e9e |
| 27-Sep-2022 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: Fix typo
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I6cd47518df413b7595bf36fa7c09c0343b763c2d
|
| #
e9237ab5 |
| 17-Mar-2022 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: Support alloc temporary memory
Always alloc from available top address and ensure 1KB align.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I18241ca6f63122ada2f17487938a
lib: sysmem: Support alloc temporary memory
Always alloc from available top address and ensure 1KB align.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I18241ca6f63122ada2f17487938aa6a064b870ba
show more ...
|
| #
2c655b73 |
| 12-Nov-2020 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: update help of "sysmem_search" command
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ie747d258fa00301c488f5747cf729c242e4d6033
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
68cca28c |
| 15-Feb-2020 |
Joseph Chen <chenjh@rock-chips.com> |
sysmem: add cmd "sysmem_search" to find available region
If the user can't make sure where the region is available and safe for use, this command handles it.
Rename commands with prefix: sysmem_xxx
sysmem: add cmd "sysmem_search" to find available region
If the user can't make sure where the region is available and safe for use, this command handles it.
Rename commands with prefix: sysmem_xxx.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I37ea76bf33a3fcb8c16baeecae3980d746775ec7
show more ...
|
| #
90fca809 |
| 17-Jan-2020 |
Joseph Chen <chenjh@rock-chips.com> |
sysmem: fix invisiable region boundary
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I1677891796646cf3e1db3aef836921051386a0e0
|
| #
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
|
| #
1ce69de6 |
| 24-Dec-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: promise sysmem_alloc_by_name() alloc cacheline align buffer
This function is called to alloc buffer for storage driver access, make sure the address is cacheline align.
Also better for
lib: sysmem: promise sysmem_alloc_by_name() alloc cacheline align buffer
This function is called to alloc buffer for storage driver access, make sure the address is cacheline align.
Also better for any module which calls it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I520d16ea28764671eb566cc96cab744ca6b13fc2
show more ...
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
bcf005ba |
| 01-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: no need to increase alloc size when base is 0
Change-Id: Ia716956e1a0e980330d6a7f7eb6c89f91e133ddf Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
d65bf0c6 |
| 31-Oct-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: fix alloc failed at 0x0 address
The 0x0 address is usually allocated by 32-bit uncompressed kernel and this alloc action is just a peek. Due to LMB core doesn't support alloc at 0x0 add
lib: sysmem: fix alloc failed at 0x0 address
The 0x0 address is usually allocated by 32-bit uncompressed kernel and this alloc action is just a peek. Due to LMB core doesn't support alloc at 0x0 address, we have to alloc the memblk backword a few bytes.
This patch is mainly to avoid fail message from sysmem/LMB.
Change-Id: I894ae2252a30a7690d10899484266191dfb12d15 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
acffe332 |
| 22-Jul-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: add sysmem_alloc_by_name() interface
Change-Id: I9e2fd6d99fdc487396dd9619dc54567bcd2ba242 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
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 ...
|
| #
2c66f6f3 |
| 25-Jun-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: add sysmem overflow check support
Change-Id: Ifcb6e8cd59656b133f56115d104a1bba017c7c1b Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
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 ...
|
| #
598774ec |
| 24-May-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: add optimization for input base and M_ATTR_PEEK
- handle the case: the input base is 0; - ignore the head region which can't visible for M_ATTR_PEEK;
Change-Id: I2c3609b9457a5e2e429e84
lib: sysmem: add optimization for input base and M_ATTR_PEEK
- handle the case: the input base is 0; - ignore the head region which can't visible for M_ATTR_PEEK;
Change-Id: I2c3609b9457a5e2e429e849228301bfee0e4c9b0 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
661cbb0b |
| 14-May-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: goto out when alloc failed
Change-Id: I8f6fd82f7367c49596475a88bafd19137e2f2f7c Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
3bee194f |
| 07-May-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: add sysmem_can_alloc() interface
Check if the region can be sysmem allocated.
Change-Id: I26a524c1597bee65ab1282da5ec373b9603866ba Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
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 ...
|
| #
dcb404a6 |
| 07-May-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: add sysmem_alloc() interface
Change-Id: I3ae1fe618ba1bb9c7924bb9816884eb26927dc1e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|