OSDN Git Service

drm/i915/display: Add DC5 counter and DMC debugfs entries for MTL
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Mon, 10 Oct 2022 20:21:35 +0000 (13:21 -0700)
committerAnusha Srivatsa <anusha.srivatsa@intel.com>
Tue, 11 Oct 2022 21:13:53 +0000 (14:13 -0700)
commit636123a8357f465ba453480ed55fb206d9c961e7
tree5616eb5a8dbd92281f959c74e6b98360bb76eb10
parent8cee664d3eb6f80eb7ecc46b9a32214f0fe629d3
drm/i915/display: Add DC5 counter and DMC debugfs entries for MTL

MTL and dgfx use the same DC5 counter.

While at it, this patch also adds the corresponding
debugfs entries. Some cleanup wrt dc3co register
which makes the code more readable.

Driver loads all firmware that it finds in the firmware
binary but platform doesn't *need* all of them. Cleaning the
previous debugs entries to reflect which firmware is needed
and if the needed firmware is loaded or not.

MTL needs both Pipe A and Pipe B DMC to be loaded
along with Main DMC.

BSpec: 49788
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221010202135.28388-1-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/display/intel_dmc.c