diff options
author | Lyude Paul <lyude@redhat.com> | 2018-02-01 13:13:59 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-02-02 00:24:10 -0500 |
commit | 3ea74559d851b0e3f611da45d0dd9d505c4f44d5 (patch) | |
tree | f03d9e343fc9a8eb9f8e75764a79cf8c3c1ae166 | |
parent | a0f79082bd1740137371f989dbdcbc19a52d3557 (diff) |
drm/nouveau: Introduce NvPmEnableGating option
This adds the NvPmEnableGating config option to nouveau, which can be
used to enable or disable clockgating for supported chipsets. Enabling
can be done by passing
config=NvPmEnableGating=1
To nouveau. If your chipset supports it, you'll see a message in your
kernel log indicating that clockgating is enabled. Since clockgating has
only had limited testing thus far, we leave this option disabled by
default for now.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c index de07bc07abdb..bf62303571b3 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | |||
@@ -434,7 +434,9 @@ nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, | |||
434 | therm->attr_get = nvkm_therm_attr_get; | 434 | therm->attr_get = nvkm_therm_attr_get; |
435 | therm->attr_set = nvkm_therm_attr_set; | 435 | therm->attr_set = nvkm_therm_attr_set; |
436 | therm->mode = therm->suspend = -1; /* undefined */ | 436 | therm->mode = therm->suspend = -1; /* undefined */ |
437 | therm->clkgating_enabled = false; | 437 | |
438 | therm->clkgating_enabled = nvkm_boolopt(device->cfgopt, | ||
439 | "NvPmEnableGating", false); | ||
438 | } | 440 | } |
439 | 441 | ||
440 | int | 442 | int |