mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
drm/nouveau/pm: allow zeroed signals to enable sources
Hardware signals index 0x00 are defined for some domains and they have to be allowed to enable sources like the others. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5a23936129
commit
7fe882eb90
@ -134,7 +134,7 @@ nvkm_perfsrc_enable(struct nvkm_pm *ppm, struct nvkm_perfctr *ctr)
|
||||
u32 mask, value;
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < 4 && ctr->signal[i]; i++) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
for (j = 0; j < 8 && ctr->source[i][j]; j++) {
|
||||
sig = nvkm_perfsig_find(ppm, ctr->domain,
|
||||
ctr->signal[i], &dom);
|
||||
@ -170,7 +170,7 @@ nvkm_perfsrc_disable(struct nvkm_pm *ppm, struct nvkm_perfctr *ctr)
|
||||
u32 mask;
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < 4 && ctr->signal[i]; i++) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
for (j = 0; j < 8 && ctr->source[i][j]; j++) {
|
||||
sig = nvkm_perfsig_find(ppm, ctr->domain,
|
||||
ctr->signal[i], &dom);
|
||||
|
Loading…
Reference in New Issue
Block a user