Skip to content

Ipu7 psys register psys node before add device and debugfs - #90

Open
arunt1 wants to merge 3 commits into
intel:mainfrom
arunt1:ipu7_psys
Open

Ipu7 psys register psys node before add device and debugfs#90
arunt1 wants to merge 3 commits into
intel:mainfrom
arunt1:ipu7_psys

Conversation

@arunt1

@arunt1 arunt1 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Error 1:

[ 4.352252] bus_add_device: cannot add device 'ipu7-psys0' to unregistered bus 'intel-ipu7-psys'
[ 4.362394] intel-ipu7-psys ipu7-psys0: psys device_register failed
[ 4.370175] intel_ipu7_psys.psys intel_ipu7.psys.40: probe with driver intel_ipu7_psys.psys failed with error -22

Fix Patch:

psys_probe is not passed when calling only module_auxiliary_driver(), from 7.1 code logic get changed we need to call first bus register so that auxiliary_driver_register register bus driver (psys) properly

Error2:

A kernel panic was observed when creating the PSYS DebugFS directory. The crash occurs because psys->adev->isp->ipu7_dir is NULL or invalid at that point. The fix uses a safe, standalone directory:

Fix:
added proper ipu7-psys node name in debugfs_create()

@arunt1 arunt1 changed the title Ipu7 psys Ipu7 psys register psys node before add device and debugfs Jul 17, 2026
struct dentry *file;
struct dentry *dir;

#if LINUX_VERSION_CODE < KERNEL_VERSION(6,17,0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

23: ERROR: space required after that ',' (ctx:VxV).

Space always after a comma. Space never before comma.
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,17,0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 17, 0)

#if LINUX_VERSION_CODE < KERNEL_VERSION(6,17,0)
dir = debugfs_create_dir("psys", psys->adev->isp->ipu7_dir);
#else
dir = debugfs_create_dir("ipu7-psys",NULL);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

26: ERROR: space required after that ',' (ctx:VxV)

Space always after a comma. Space never before comma.
dir = debugfs_create_dir("ipu7-psys",NULL);
dir = debugfs_create_dir("ipu7-psys", NULL);

@manikx manikx left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Consider adding some description about the commit or add an empty line.

media:ipu7: register psys node before add device

Reordering bus and auxiliary driver registration as required by v7.1 code logic

Signed-off-by: Arun T <arun.t@intel.com>

@tripathidm tripathidm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address review comments.

arunt1 added 3 commits July 21, 2026 23:14
Reordering bus and auxiliary driver registration as required by v7.1 code logic

Signed-off-by: Arun T <arun.t@intel.com>
Signed-off-by: Arun T <arun.t@intel.com>
Signed-off-by: Arun T <arun.t@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants