# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2026 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

# AMD's amdgpu driver power management (PowerPlay)

  abi <abi/4.0>,

  # DPM performance level (auto/low/high/manual)
  @{sys}/devices/@{pci}/power_dpm_force_performance_level r,

  # Memory clock frequency states and current selection
  @{sys}/devices/@{pci}/pp_dpm_mclk r,

  # PCIe bandwidth states
  @{sys}/devices/@{pci}/pp_dpm_pcie r,

  # Shader/core clock frequency states
  @{sys}/devices/@{pci}/pp_dpm_sclk r,

  # Overclocking table (clock/voltage curves)
  @{sys}/devices/@{pci}/pp_od_clk_voltage r,

  include if exists <abstractions/sys/amdgpu.d>

# vim:syntax=apparmor
