accel/amdxdna: Enhance power management settings
Add SET_STATE ioctl to configure device power mode for aie2 device. Three modes are supported initially. POWER_MODE_DEFAULT: Enable clock gating and set DPM (Dynamic Power Management) level to value which has been set by resource solver or maximum DPM level the device supports. POWER_MODE_HIGH: Enable clock gating and set DPM level to maximum DPM level the device supports. POWER_MODE_TURBO: Disable clock gating and set DPM level to maximum DPM level the device supports. Disabling clock gating means all clocks always run on full speed. And the different clock frequency are used based on DPM level been set. Initially, the driver set the power mode to default mode. Co-developed-by:Narendra Gutta <VenkataNarendraKumar.Gutta@amd.com> Signed-off-by:
Narendra Gutta <VenkataNarendraKumar.Gutta@amd.com> Co-developed-by:
George Yang <George.Yang@amd.com> Signed-off-by:
George Yang <George.Yang@amd.com> Reviewed-by:
Mario Limonciello <mario.limonciello@amd.com> Signed-off-by:
Lizhi Hou <lizhi.hou@amd.com> Signed-off-by:
Mario Limonciello <mario.limonciello@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241213232933.1545388-4-lizhi.hou@amd.com
Showing
- drivers/accel/amdxdna/Makefile 1 addition, 0 deletionsdrivers/accel/amdxdna/Makefile
- drivers/accel/amdxdna/TODO 0 additions, 1 deletiondrivers/accel/amdxdna/TODO
- drivers/accel/amdxdna/aie2_ctx.c 6 additions, 0 deletionsdrivers/accel/amdxdna/aie2_ctx.c
- drivers/accel/amdxdna/aie2_message.c 8 additions, 1 deletiondrivers/accel/amdxdna/aie2_message.c
- drivers/accel/amdxdna/aie2_pci.c 113 additions, 26 deletionsdrivers/accel/amdxdna/aie2_pci.c
- drivers/accel/amdxdna/aie2_pci.h 44 additions, 11 deletionsdrivers/accel/amdxdna/aie2_pci.h
- drivers/accel/amdxdna/aie2_pm.c 108 additions, 0 deletionsdrivers/accel/amdxdna/aie2_pm.c
- drivers/accel/amdxdna/aie2_smu.c 50 additions, 35 deletionsdrivers/accel/amdxdna/aie2_smu.c
- drivers/accel/amdxdna/aie2_solver.c 54 additions, 5 deletionsdrivers/accel/amdxdna/aie2_solver.c
- drivers/accel/amdxdna/aie2_solver.h 1 addition, 0 deletionsdrivers/accel/amdxdna/aie2_solver.h
- drivers/accel/amdxdna/amdxdna_pci_drv.c 19 additions, 0 deletionsdrivers/accel/amdxdna/amdxdna_pci_drv.c
- drivers/accel/amdxdna/amdxdna_pci_drv.h 17 additions, 0 deletionsdrivers/accel/amdxdna/amdxdna_pci_drv.h
- drivers/accel/amdxdna/npu1_regs.c 21 additions, 8 deletionsdrivers/accel/amdxdna/npu1_regs.c
- drivers/accel/amdxdna/npu2_regs.c 5 additions, 10 deletionsdrivers/accel/amdxdna/npu2_regs.c
- drivers/accel/amdxdna/npu4_regs.c 24 additions, 8 deletionsdrivers/accel/amdxdna/npu4_regs.c
- drivers/accel/amdxdna/npu5_regs.c 5 additions, 10 deletionsdrivers/accel/amdxdna/npu5_regs.c
- drivers/accel/amdxdna/npu6_regs.c 6 additions, 13 deletionsdrivers/accel/amdxdna/npu6_regs.c
- include/uapi/drm/amdxdna_accel.h 52 additions, 0 deletionsinclude/uapi/drm/amdxdna_accel.h
Loading
Please register or sign in to comment