Skip to content

/sys/debug/ fw_profile/ipc_type: permission denied #1171

Description

@marc-hb

#1167 does not work: it's at least missing a few sudo. I think you didn't notice because you run sof-test as root but that's not how it's usually tested.

https://sof-ci.01.org/softestpr/PR1167/build265/devicetest/index.html?model=MTLP_RVP_NOCODEC&testcase=verify-kernel-module-load-probe

2024-04-05 14:58:59 UTC [REMOTE_INFO] Starting func_exit_handler(0)
cat: /sys/kernel/debug/sof/fw_profile/ipc_type: Permission denied
2024-04-05 14:58:59 UTC [REMOTE_WARNING] using pre kernel 6.9 backwards-compatible fallback with ipc_type kernel parameter
cat: /sys/kernel/debug/sof/fw_profile/ipc_type: Permission denied
2024-04-05 14:58:59 UTC [REMOTE_WARNING] using pre kernel 6.9 backwards-compatible fallback with ipc_type kernel parameter
2024-04-05 14:58:59 UTC [REMOTE_INFO] pkill -TERM -f mtrace-reader.py
2024-04-05 14:58:59 UTC [REMOTE_INFO] ktime=123 sof-test PID=3129: ending
2024-04-05 14:58:59 UTC [REMOTE_INFO] Test Result: PASS!

Originally posted by @marc-hb in #1167 (comment)

cc:

Activity

  1. added
    type:bugSomething doesn't work as expected
    P2Critical bugs or normal features
    on Apr 9, 2024
  2. marc-hb commented on Apr 9, 2024

    @marc-hb
    CollaboratorAuthor

    I think you didn't notice because you run sof-test as root but that's not how it's usually tested.

    You can borrow any CI device to test and fix, no need to change the configuration of yours.

  3. plbossart commented on Apr 9, 2024

    @plbossart
    Member

    I am a bit confused here. The two files have the same permissions and use the same cat command.

    root@jf-cml-hel-rt5682-05:~# ls -l /sys/kernel/debug/sof/fw_profile/ipc_type
    -r--r--r-- 1 root root 0 Apr  9 16:35 /sys/kernel/debug/sof/fw_profile/ipc_type
    root@jf-cml-hel-rt5682-05:~# ls -l /sys/module/snd_sof_pci/parameters/ipc_type 
    -r--r--r-- 1 root root 4096 Apr  9 21:22 /sys/module/snd_sof_pci/parameters/ipc_type
    

    What causes one to complain and not the other?

  4. marc-hb commented on Apr 9, 2024

    @marc-hb
    CollaboratorAuthor

    /sys/kernel/debug is a different filesystem / mount point.

    ls -ld /sys/kernel/debug
    drwx------ 38 root root 0 Apr  8 18:06 /sys/kernel/debug
    
    findmnt | grep debug
    │ ├─/sys/kernel/debug                         debugfs                                          debugfs     rw,nosuid,nodev,noexec,relatime
    
  5. changed the title [-]fw_profile/ipc_type: permission denied[/-] [+]/sys/debug/ fw_profile/ipc_type: permission denied[/+] on Apr 9, 2024
  6. marc-hb commented on Apr 15, 2024

    @marc-hb
    CollaboratorAuthor

    This seems fixed, please re-open if seen again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featurestype:bugSomething doesn't work as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions