Commit 3a0cb88
drm/xe/hwmon: Expose memory controller temperature
Expose GPU memory controller average temperature and its limits under
temp4_xxx.
Update Xe hwmon documentation for this.
v2:
- Rephrase commit message. (Badal)
- Update kernel version in Xe hwmon documentation. (Raag)
v3:
- Update kernel version in Xe hwmon documentation.
- Address review comments from Raag.
- Remove obvious comments.
- Remove redundant debug logs.
- Remove unnecessary checks.
- Avoid magic numbers.
- Add new comments.
- Use temperature sensors count to make memory controller visible.
- Use temperature limits of package for memory controller.
v4:
- Address review comments from Raag.
- Group new temperature attributes with existing temperature attributes
as per channel index in Xe hwmon documentation.
- Use DIV_ROUND_UP to calculate dwords needed for temperature limits.
- Minor aesthetic refinements.
- Remove unused TEMP_MASK_MAILBOX.
v5:
- Use REG_FIELD_GET to get count from READ_THERMAL_DATA output. (Raag)
- Change count print from decimal to hexadecimal.
- Cosmetic changes.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://patch.msgid.link/20260112203521.1014388-3-karthik.poosa@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>1 parent c332fba commit 3a0cb88
3 files changed
Lines changed: 100 additions & 5 deletions
File tree
- Documentation/ABI/testing
- drivers/gpu/drm/xe
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
168 | 192 | | |
169 | 193 | | |
170 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| |||
703 | 711 | | |
704 | 712 | | |
705 | 713 | | |
| 714 | + | |
706 | 715 | | |
707 | 716 | | |
708 | 717 | | |
| |||
717 | 726 | | |
718 | 727 | | |
719 | 728 | | |
| 729 | + | |
720 | 730 | | |
721 | 731 | | |
722 | 732 | | |
723 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
724 | 737 | | |
725 | 738 | | |
726 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
727 | 748 | | |
728 | 749 | | |
729 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
730 | 774 | | |
731 | 775 | | |
732 | 776 | | |
| |||
831 | 875 | | |
832 | 876 | | |
833 | 877 | | |
| 878 | + | |
| 879 | + | |
834 | 880 | | |
835 | 881 | | |
836 | 882 | | |
| |||
840 | 886 | | |
841 | 887 | | |
842 | 888 | | |
| 889 | + | |
| 890 | + | |
843 | 891 | | |
844 | 892 | | |
845 | 893 | | |
| |||
852 | 900 | | |
853 | 901 | | |
854 | 902 | | |
855 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
856 | 913 | | |
857 | 914 | | |
858 | 915 | | |
| |||
866 | 923 | | |
867 | 924 | | |
868 | 925 | | |
869 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
870 | 930 | | |
871 | | - | |
872 | | - | |
873 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
874 | 939 | | |
875 | 940 | | |
876 | 941 | | |
| 942 | + | |
877 | 943 | | |
878 | 944 | | |
879 | 945 | | |
| |||
885 | 951 | | |
886 | 952 | | |
887 | 953 | | |
| 954 | + | |
888 | 955 | | |
889 | 956 | | |
890 | 957 | | |
| |||
1262 | 1329 | | |
1263 | 1330 | | |
1264 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
1265 | 1334 | | |
1266 | 1335 | | |
1267 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
0 commit comments