Skip to content

[Driver] NPU driver fails to load: Missing /dev/rknpu node due to Device Tree mismatch #371

@WJHPRO

Description

@WJHPRO

Hello,
I noticed an issue with the NPU driver loading in the Linux kernel logs. It appears that the properties defined in the Device Tree (DTS) are not correctly aligned with the driver's expectations.
As a result, the /dev/rknpu device node is not being created.
Could you please confirm if this will completely prevent the NPU from functioning? Are there any specific Device Tree properties I should verify or adjust to resolve this?

LOG:
[ 2.167656] RKNPU ff300000.npu: can't request region for resource [mem 0xff300000-0xff30ffff]
[ 2.167946] [drm] Initialized rknpu 0.9.8 20240828 for ff300000.npu on minor 1
[ 2.168273] RKNPU ff300000.npu: bin=0
[ 2.168355] RKNPU ff300000.npu: leakage=3
[ 2.168419] RKNPU ff300000.npu: pvtm = 843, get from otp
[ 2.168430] RKNPU ff300000.npu: pvtm-volt-sel=3
[ 2.168736] RKNPU ff300000.npu: avs=0
[ 2.168875] RKNPU ff300000.npu: l=10000 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[ 2.168961] RKNPU ff300000.npu: failed to find power_model node
[ 2.168967] RKNPU ff300000.npu: RKNPU: failed to initialize power model
[ 2.168970] RKNPU ff300000.npu: RKNPU: failed to get dynamic-coefficient
[ 2.169180] RKNPU ff300000.npu: RKNPU: nbuf region: [0x00000000fe400000, 0x00000000fe440000), nbuf size: 0x40000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions