Skip to content

Commit

Permalink
meta-hailo: Fix the CMA issue when PVU was integrated
Browse files Browse the repository at this point in the history
PVU-based DMA isolation brings SWIO TLB to the table and
the maximum allowable number of contiguous slabs to map
is 128 by default, but meta-hailo requires more 128. Hence
increase it to 256 when meta-hailo is included.

Signed-off-by: Li Hua Qian <[email protected]>
  • Loading branch information
huaqianli committed Dec 3, 2024
1 parent 62f1699 commit deb271e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kas/opt/meta-hailo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
header:
version: 14

local_conf_header:
hailo_override: |
OVERRIDES .= ":meta-hailo"
repos:
meta-hailo:
path: ${TOPDIR}/../meta-hailo
2 changes: 2 additions & 0 deletions recipes-kernel/linux/linux-iot2050-6.1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def get_extra_configs(d):

if re.search("pvu-dma", overrides):
append_config.append('CONFIG_TI_PVU=y')
if re.search("meta-hailo", overrides):
append_config.append('CONFIG_SWIOTLB_SEGSIZE=256')

if append_config:
append_config_file = os.path.join(d.getVar('T'), 'iot2050_append_config.cfg')
Expand Down

0 comments on commit deb271e

Please sign in to comment.