Commit d3b378c0 authored by Karol Herbst's avatar Karol Herbst Committed by Ben Skeggs

drm/nouveau/perf: add fields for pci speed and width and use it for the pstates

Signed-off-by: default avatarKarol Herbst <nouveau@karolherbst.de>
parent c6e2f9bc
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define __NVKM_CLK_H__ #define __NVKM_CLK_H__
#include <core/subdev.h> #include <core/subdev.h>
#include <core/notify.h> #include <core/notify.h>
#include <subdev/pci.h>
struct nvbios_pll; struct nvbios_pll;
struct nvkm_pll_vals; struct nvkm_pll_vals;
...@@ -59,6 +60,8 @@ struct nvkm_pstate { ...@@ -59,6 +60,8 @@ struct nvkm_pstate {
struct nvkm_cstate base; struct nvkm_cstate base;
u8 pstate; u8 pstate;
u8 fanspeed; u8 fanspeed;
enum nvkm_pcie_speed pcie_speed;
u8 pcie_width;
}; };
struct nvkm_domain { struct nvkm_domain {
......
...@@ -330,6 +330,8 @@ nvkm_pstate_new(struct nvkm_clk *clk, int idx) ...@@ -330,6 +330,8 @@ nvkm_pstate_new(struct nvkm_clk *clk, int idx)
pstate->pstate = perfE.pstate; pstate->pstate = perfE.pstate;
pstate->fanspeed = perfE.fanspeed; pstate->fanspeed = perfE.fanspeed;
pstate->pcie_speed = perfE.pcie_speed;
pstate->pcie_width = perfE.pcie_width;
cstate->voltage = perfE.voltage; cstate->voltage = perfE.voltage;
cstate->domain[nv_clk_src_core] = perfE.core; cstate->domain[nv_clk_src_core] = perfE.core;
cstate->domain[nv_clk_src_shader] = perfE.shader; cstate->domain[nv_clk_src_shader] = perfE.shader;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment