Displaying 20 results from an estimated 28 matches for "nvkm_boolopt".
2020 Jul 27
0
[PATCH] drm/nouveau: add config NvForceGpioReset
...gpu/drm/nouveau/nvkm/subdev/devinit/base.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/base.c
@@ -133,4 +133,6 @@ nvkm_devinit_ctor(const struct nvkm_devinit_func *func,
nvkm_subdev_ctor(&nvkm_devinit, device, index, &init->subdev);
init->func = func;
init->force_post = nvkm_boolopt(device->cfgopt, "NvForcePost", false);
+ init->force_gpio_reset = nvkm_boolopt(
+ device->cfgopt, "NvForceGpioReset", false);
}
--
2.27.0
2015 Sep 23
2
[PATCH 1/2] fb/ramgf100: disable memory reclocking by default
...219a2 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramgf100.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramgf100.c
@@ -409,7 +409,7 @@ gf100_ram_prog(struct nvkm_ram *base)
{
struct gf100_ram *ram = gf100_ram(base);
struct nvkm_device *device = ram->base.fb->subdev.device;
- ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", true));
+ ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", false));
return 0;
}
--
2.5.3
2016 Apr 01
0
[PATCH] devinit/gf100: make devinit on resume safer
...+
/* unlock the extended vga crtc regs */
nvkm_lockvgac(subdev->device, false);
return 0;
@@ -126,5 +132,5 @@ nvkm_devinit_ctor(const struct nvkm_devinit_func *func,
{
nvkm_subdev_ctor(&nvkm_devinit, device, index, 0, &init->subdev);
init->func = func;
- init->post = nvkm_boolopt(device->cfgopt, "NvForcePost", false);
+ init->force_post = nvkm_boolopt(device->cfgopt, "NvForcePost", false);
}
diff --git a/drm/nouveau/nvkm/subdev/devinit/gf100.c b/drm/nouveau/nvkm/subdev/devinit/gf100.c
index 2923598b5fe9..8b1b34c3ad26 100644
--- a/drm/nouveau/nv...
2019 Sep 17
2
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...h, false);
>
> return 0;
> }
>
> +int
> +nvkm_pcie_fini(struct nvkm_pci *pci, bool suspend)
> +{
> + struct nvkm_device *device = pci->subdev.device;
> + if (!device->has_runpm || !suspend)
> + return 0;
> +
> + if (!nvkm_boolopt(device->cfgopt, "NvRunpmWorkaround", true))
> + return 0;
> +
> + return nvkm_pcie_set_link(pci, NVKM_PCIE_SPEED_8_0, 16, false);
> +}
> +
> void
> nvkm_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)
> {
> @@ -120,7 +136,8 @@ nv...
2017 Aug 10
0
[PATCH] pci/msi: disable MSI on big-endian platforms by default
.../base.c
index eb9b2781..a4cb8249 100644
--- a/drm/nouveau/nvkm/subdev/pci/base.c
+++ b/drm/nouveau/nvkm/subdev/pci/base.c
@@ -192,6 +192,10 @@ nvkm_pci_new_(const struct nvkm_pci_func *func, struct nvkm_device *device,
}
}
+#ifdef __BIG_ENDIAN
+ pci->msi = false;
+#endif
+
pci->msi = nvkm_boolopt(device->cfgopt, "NvMSI", pci->msi);
if (pci->msi && func->msi_rearm) {
pci->msi = pci_enable_msi(pci->pdev) == 0;
--
2.13.0
2019 Sep 17
2
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...; > +nvkm_pcie_fini(struct nvkm_pci *pci, bool suspend)
> > > +{
> > > + struct nvkm_device *device = pci->subdev.device;
> > > + if (!device->has_runpm || !suspend)
> > > + return 0;
> > > +
> > > + if (!nvkm_boolopt(device->cfgopt, "NvRunpmWorkaround", true))
> > > + return 0;
> > > +
> > > + return nvkm_pcie_set_link(pci, NVKM_PCIE_SPEED_8_0, 16, false);
> > > +}
> > > +
> > > void
> > > nvkm_pcie_force_aspm_off(...
2019 Sep 13
8
[PATCH v4 0/4] add PCIe workaround to fix runpm on laptops
not much changed since the last time I sent those patches out, but there
are a couple of annoying bug fixes, which users would probably never hit
unless they do rmmod/modprobe nouveau cycles.
Biggest change is that I force the link to a 8.0 speed rather than the
speed the GPU came up with.
Also this series depends on the PCIe improvement patches I sent out
recently.
Karol Herbst (4):
pci:
2019 Sep 13
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...pci->pcie.width);
+ nvkm_pcie_set_link(pci, pci->pcie.speed,
+ pci->pcie.width, false);
return 0;
}
+int
+nvkm_pcie_fini(struct nvkm_pci *pci, bool suspend)
+{
+ struct nvkm_device *device = pci->subdev.device;
+ if (!device->has_runpm || !suspend)
+ return 0;
+
+ if (!nvkm_boolopt(device->cfgopt, "NvRunpmWorkaround", true))
+ return 0;
+
+ return nvkm_pcie_set_link(pci, NVKM_PCIE_SPEED_8_0, 16, false);
+}
+
void
nvkm_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)
{
@@ -120,7 +136,8 @@ nvkm_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)
}...
2019 Sep 17
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...}
> >
> > +int
> > +nvkm_pcie_fini(struct nvkm_pci *pci, bool suspend)
> > +{
> > + struct nvkm_device *device = pci->subdev.device;
> > + if (!device->has_runpm || !suspend)
> > + return 0;
> > +
> > + if (!nvkm_boolopt(device->cfgopt, "NvRunpmWorkaround", true))
> > + return 0;
> > +
> > + return nvkm_pcie_set_link(pci, NVKM_PCIE_SPEED_8_0, 16, false);
> > +}
> > +
> > void
> > nvkm_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)...
2019 Jul 18
5
[PATCH v3 0/4] Refuse to load if power cable are not connected
Added config override for power checks.
Mark Menzynski (4):
bios/gpio: sort gpios by values
gpio: fail if gpu external power is missing
gpio: check the gpio function 16 in the power check as well
gpio: check function 76 in the power check as well
drm/nouveau/include/nvkm/subdev/bios/gpio.h | 5 +++-
drm/nouveau/nvkm/subdev/gpio/base.c | 32 +++++++++++++++++++++
2 files
2019 Sep 17
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...nvkm_pci *pci, bool suspend)
> > > > +{
> > > > + struct nvkm_device *device = pci->subdev.device;
> > > > + if (!device->has_runpm || !suspend)
> > > > + return 0;
> > > > +
> > > > + if (!nvkm_boolopt(device->cfgopt, "NvRunpmWorkaround", true))
> > > > + return 0;
> > > > +
> > > > + return nvkm_pcie_set_link(pci, NVKM_PCIE_SPEED_8_0, 16, false);
> > > > +}
> > > > +
> > > > void
> > &...
2017 Jan 23
8
[Bug 99505] New: Attempting to reclock GeForce GT740M (GK208) cause GPU and system to hang
https://bugs.freedesktop.org/show_bug.cgi?id=99505
Bug ID: 99505
Summary: Attempting to reclock GeForce GT740M (GK208) cause GPU
and system to hang
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component:
2019 Aug 13
3
[PATCH 1/4] pci: enable pcie link changes for pascal
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Lyude Paul <lyude at redhat.com>
---
drm/nouveau/nvkm/subdev/pci/gk104.c | 8 ++++----
drm/nouveau/nvkm/subdev/pci/gp100.c | 10 ++++++++++
drm/nouveau/nvkm/subdev/pci/priv.h | 5 +++++
3 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/drm/nouveau/nvkm/subdev/pci/gk104.c
2018 Jan 26
1
[RFC v2 1/4] drm/nouveau: Add support for basic clockgating on Kepler1
..._new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
> therm->attr_get = nvkm_therm_attr_get;
> therm->attr_set = nvkm_therm_attr_set;
> therm->mode = therm->suspend = -1; /* undefined */
> +
> + therm->clkgating_enabled = nvkm_boolopt(device->cfgopt,
> + "NvPmEnableGating", false);
> +}
> +
> +int
> +nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
> + int index, struct nvkm_therm **ptherm)
> +{
> +...
2018 Jan 26
0
[RFC v2 1/4] drm/nouveau: Add support for basic clockgating on Kepler1
...gt;func = func;
@@ -395,5 +424,20 @@ nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
therm->attr_get = nvkm_therm_attr_get;
therm->attr_set = nvkm_therm_attr_set;
therm->mode = therm->suspend = -1; /* undefined */
+
+ therm->clkgating_enabled = nvkm_boolopt(device->cfgopt,
+ "NvPmEnableGating", false);
+}
+
+int
+nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
+ int index, struct nvkm_therm **ptherm)
+{
+ struct nvkm_therm *therm;
+
+ if (!(therm = *ptherm = kzalloc(sizeof(*therm), GFP_KERNEL)))
+ re...
2018 Jan 26
0
[RFC v3 1/4] drm/nouveau: Add support for basic clockgating on Kepler1
...gt;func = func;
@@ -395,5 +424,20 @@ nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
therm->attr_get = nvkm_therm_attr_get;
therm->attr_set = nvkm_therm_attr_set;
therm->mode = therm->suspend = -1; /* undefined */
+
+ therm->clkgating_enabled = nvkm_boolopt(device->cfgopt,
+ "NvPmEnableGating", false);
+}
+
+int
+nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
+ int index, struct nvkm_therm **ptherm)
+{
+ struct nvkm_therm *therm;
+
+ if (!(therm = *ptherm = kzalloc(sizeof(*therm), GFP_KERNEL)))
+ re...
2019 Sep 17
6
[PATCH 0/6] Add workaround for fixing runpm
I merged the both series I sent out recently into one bigger one so that
it's more obvious on why all of that is needed.
Biggest changes since last sent:
* reworked the ASPM patch
* removed "pci: add nvkm_pcie_get_speed" patch
Please test this on Laptops and report back if it either breaks something
or doesn't fix runpm.
Thanks
Karol Herbst (6):
pci: disable ASPM before
2015 Jun 07
21
[PATCH RFC 00/20] expose global performance counters
Hello,
This series exposes global performance counters (PCOUNTER) to the userspace
through the nvif interface by reworking most of the code related to the PM
engine.
This interface will allow the userspace to control and monitor complex hardware
events like the proprietary driver already does, for example with CUPTI and
PerfKit.
For now, this series only exposes performance counters on NV50,
2019 Aug 14
10
[PATCH 0/7] Adding a proper workaround for fixing RTD3 issues with Nouveau
First three patches are removing ACPI workarounds which should have never
landed.
The last four are adding a workaround to nouveau which seem to help quite
a lot with the RTD3 issues with Nouveau, so let's discuss and get wider
testing of those and see if there is any fallout or laptops where the
issues don't get fixed.
Karol Herbst (7):
Revert "ACPI / OSI: Add OEM _OSI string to
2018 Jan 26
6
[RFC v2 0/4] Implement full clockgating for Kepler1 and 2
Next version of my patchseries for adding clockgating support for
kepler1 and 2 on nouveau. The first version of this series can be found
here:
https://patchwork.freedesktop.org/series/36504/
Some minor changes:
- Clarified that SLCG stands for 'secondary level clockgating', thanks
for the small tip nvidia!
- Removed the concept of levels, this was more useful for debugging
then