Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armv7m7-imxrt117x: touch failure return EIO and VM pool exhaustion #1097

Closed
mateusz-bloch opened this issue Jun 17, 2024 · 2 comments · Fixed by phoenix-rtos/phoenix-rtos-kernel#599
Assignees
Labels

Comments

@mateusz-bloch
Copy link
Member

mateusz-bloch commented Jun 17, 2024

Trying to enable test execution in the new psh on this target, in relation to the resolution provided in issue #866 . I encountered a failure when using ls in the test touch. The command touch returns success, but the ls print that the directory does not seem to exist when attempting to list it. Additionally, a error message vm: Entry pool exhausted! appears.

  (psh)% touch test_touch_dir/slash_file/
  (psh)% echo $?
  0
  (psh)% date +%Y:%m:%d:%H:%M:%S
  1970:01:01:00:00:03
  (psh)% ls -la test_touch_dir
  ls: can't access test_touch_dir: no such file or directory
  (psh)% exit
  (psh)% dmesg -E
  vm: Entry pool exhausted!
  (psh)% vm: Entry pool exhausted!

Currently, also with touch command in touch test:

  (psh)% mkdir /test_touch_dir/multi_arg9
  (psh)% echo $?
  0
  (psh)% touch /test_touch_dir/multi_arg9/K2C?i#8M /test_touch_dir/multi_arg9/+y?@ /test_touch_dir/multi_arg9/BUAX?
  psh: failed to touch /test_touch_dir/multi_arg9/+y?@: EIO
  psh: failed to touch /test_touch_dir/multi_arg9/BUAX?: EIO
  (psh)% exit
  (psh)% dmesg -E
  vm: Entry pool exhausted!
  vm: Entry pool exhausted!
  (psh)% vm: Entry pool exhausted!
  vm: Entry pool exhausted!

Problems occur after adding changes from :

* phoenix-rtos-kernel 7634e1e...5beec45 (3):
  > NOMMU: Implement message passing between processes of different MPU regions
  > imxrt: Fix hal_exceptionJump and initial stack align
  > armv7m: Enable MPU

Currently seeking an easy way to reproduce the issue with minimal code for a more straightforward investigation

@mateusz-bloch mateusz-bloch changed the title armv7m7-imxrt117x: ls failure and VM pool exhaustion armv7m7-imxrt117x: touch failure return EIO and VM pool exhaustion Jun 17, 2024
mateusz-bloch added a commit to phoenix-rtos/phoenix-rtos-tests that referenced this issue Sep 17, 2024
@damianloew
Copy link
Contributor

Currently seeking an easy way to reproduce the issue with minimal code for a more straightforward investigation - please not forget to do so.

Btw maybe @agkaminski have some idea what may be wrong here as an author of mentioned commits. I am leaving the assignment just to not forget this issue forever ;d

damianloew pushed a commit to phoenix-rtos/phoenix-rtos-tests that referenced this issue Sep 26, 2024
@agkaminski
Copy link
Member

I suspect that the pool has been exhausted indeed - it's size is based on the kernel's memory map (i.e. dtcm in this case). On this target we have many memory maps and these need entries too

damianloew added a commit that referenced this issue Sep 26, 2024
* libphoenix 96c4c08...5073395 (1):
  > arm: convert __ieee754_sqrt(f) to macros

* phoenix-rtos-build 97fb495...f335a5c (4):
  > build: add noexecstack flag
  > toolchain: update multilib configuration for SPARC
  > toolchain: add patch with armv7-r/v8-r multilib config
  > toolchain: add PIC flags to armv7-r/v8-r in libstdcpp

* phoenix-rtos-doc 4ac6a9c...6eae539 (2):
  > libc/functions page adjustments
  > css: hide theme-toggle icon

* phoenix-rtos-kernel bcc5c41...1f9ea40 (8):
  > mprotect: fix mapEntrySplit
  > Cortex-M: NVIC and SCB code duplication cleanup
  > process_load: copy p_filesz bytes instead of p_memsz
  > hal/imxrt10xx: remove enet PLL deinit
  > hal/ia32: change I/O input parameter to u16
  > mmap: allow for not page aligned len
  > hal/ia32: cast operands to correct sizes
  > build: remove program headers from first loadable segment

* phoenix-rtos-lwip b1ab9f6...4896655 (4):
  > Update submodule
  > Add IPv6 address autoconfiguration
  > drivers/rtl8139cp.c: Change multicast filters
  > port/sockets.c: Fix IPv6 ioctls

* phoenix-rtos-ports b659aa2...df40217 (2):
  > build: Adapt ports to a new common definitions of paths (prefixes)
  > build: Move common definitions/actions from ports to a single spot

* phoenix-rtos-tests 3a22101...a20b474 (7):
  > psh: exclude touch test on imx117x due to #1097 issue
  > trunner: disable rebooting each test
  > psh: enable test execution in new psh for imxrt117x
  > mmap: add test for unaligned len
  > trunner.tools: fix error message in wait_for_vid_pid()
  > psh/trunner: fix wrong message in case of failing
  > unity: add handling fails without message in harness
@damianloew damianloew mentioned this issue Sep 26, 2024
14 tasks
damianloew added a commit that referenced this issue Sep 26, 2024
* libphoenix 96c4c08...5073395 (1):
  > arm: convert __ieee754_sqrt(f) to macros

* phoenix-rtos-build 97fb495...f335a5c (4):
  > build: add noexecstack flag
  > toolchain: update multilib configuration for SPARC
  > toolchain: add patch with armv7-r/v8-r multilib config
  > toolchain: add PIC flags to armv7-r/v8-r in libstdcpp

* phoenix-rtos-doc 4ac6a9c...6eae539 (2):
  > libc/functions page adjustments
  > css: hide theme-toggle icon

* phoenix-rtos-kernel bcc5c41...1f9ea40 (8):
  > mprotect: fix mapEntrySplit
  > Cortex-M: NVIC and SCB code duplication cleanup
  > process_load: copy p_filesz bytes instead of p_memsz
  > hal/imxrt10xx: remove enet PLL deinit
  > hal/ia32: change I/O input parameter to u16
  > mmap: allow for not page aligned len
  > hal/ia32: cast operands to correct sizes
  > build: remove program headers from first loadable segment

* phoenix-rtos-lwip b1ab9f6...4896655 (4):
  > Update submodule
  > Add IPv6 address autoconfiguration
  > drivers/rtl8139cp.c: Change multicast filters
  > port/sockets.c: Fix IPv6 ioctls

* phoenix-rtos-ports b659aa2...df40217 (2):
  > build: Adapt ports to a new common definitions of paths (prefixes)
  > build: Move common definitions/actions from ports to a single spot

* phoenix-rtos-tests 3a22101...a20b474 (7):
  > psh: exclude touch test on imx117x due to #1097 issue
  > trunner: disable rebooting each test
  > psh: enable test execution in new psh for imxrt117x
  > mmap: add test for unaligned len
  > trunner.tools: fix error message in wait_for_vid_pid()
  > psh/trunner: fix wrong message in case of failing
  > unity: add handling fails without message in harness
mateusz-bloch added a commit to phoenix-rtos/phoenix-rtos-tests that referenced this issue Sep 27, 2024
It is enabled due to the following issue resolution: phoenix-rtos/phoenix-rtos-project#1097

JIRA: CI-461
damianloew pushed a commit to phoenix-rtos/phoenix-rtos-tests that referenced this issue Oct 2, 2024
It is enabled due to the following issue resolution: phoenix-rtos/phoenix-rtos-project#1097

JIRA: CI-461
mateusz-bloch added a commit to phoenix-rtos/phoenix-rtos-tests that referenced this issue Oct 2, 2024
It is enabled due to the following issue resolution: phoenix-rtos/phoenix-rtos-project#1097

JIRA: CI-461
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants