Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A amd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,518
    • Issues 1,518
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • drm
  • amd
  • Issues
  • #2442
Closed
Open
Issue created Mar 04, 2023 by Umio Yasuno@Umio-Yasuno

[Cezanne/Green Sardine] `amdgpu_read_mm_registers` function always succeeds

Brief summary of the problem:

amdgpu_read_mm_registers(
                device_handle,
                offset,
                1, // count
                0xFFFF_FFFF, // instance mask, full mask
                0, // flags
                &out,
            )

When the above function is called via libdrm_amdgpu, it returns an error (-14) if register offset is not allowed, but in Cezanne/GreenSardine APU it always succeeds. (even if the register offset is a value such as 0xDEAD_BEEF)
In the case of Polaris11, it returns an error normally for register offsets that are not allowed.

  • amdgpu_allowed_register_entry
    • /drivers/gpu/drm/amd/amdgpu/vi.c
  • soc15_allowed_register_entry
    • /drivers/gpu/drm/amd/amdgpu/soc15.c

Hardware description:

  • CPU: Ryzen 5 5600G
  • GPU: AMD Radeon Graphics (0x1638:0xC9)
  • System Memory: DDR4 16GB

System information:

  • Kernel version: v6.1.13
  • drm version: 3.49.0

How to reproduce the issue:

  • test code: https://github.com/Umio-Yasuno/libdrm-amdgpu-sys-rs/blob/test-read-reg/examples/read_reg.rs
  • Command: cargo run --example read_reg
Assignee
Assign to
Time tracking