Displaying 20 results from an estimated 27 matches for "nvkm_pcie_get_speed".
2019 May 04
0
[PATCH 3/5] pci: add nvkm_pcie_get_speed
...00644
--- a/drm/nouveau/include/nvkm/subdev/pci.h
+++ b/drm/nouveau/include/nvkm/subdev/pci.h
@@ -53,4 +53,5 @@ int gp100_pci_new(struct nvkm_device *, int, struct nvkm_pci **);
/* pcie functions */
int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
+enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
#endif
diff --git a/drm/nouveau/nvkm/subdev/pci/pcie.c b/drm/nouveau/nvkm/subdev/pci/pcie.c
index d71e5db5..eb405dea 100644
--- a/drm/nouveau/nvkm/subdev/pci/pcie.c
+++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
@@ -163,3 +163,11 @@ nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvkm_...
2019 Sep 13
0
[PATCH v4 2/4] pci: add nvkm_pcie_get_speed
...00644
--- a/drm/nouveau/include/nvkm/subdev/pci.h
+++ b/drm/nouveau/include/nvkm/subdev/pci.h
@@ -53,4 +53,5 @@ int gp100_pci_new(struct nvkm_device *, int, struct nvkm_pci **);
/* pcie functions */
int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
+enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
#endif
diff --git a/drm/nouveau/nvkm/subdev/pci/pcie.c b/drm/nouveau/nvkm/subdev/pci/pcie.c
index 354ac4c85..b4203ff1a 100644
--- a/drm/nouveau/nvkm/subdev/pci/pcie.c
+++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
@@ -177,3 +177,11 @@ nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvk...
2019 Sep 13
8
[PATCH v4 0/4] add PCIe workaround to fix runpm on laptops
...t
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: enable pcie link changes for pascal
pci: add nvkm_pcie_get_speed
pci: set the pcie link speed to 8.0 when suspending
drm: abort runtime suspend if we hit an error
drm/nouveau/include/nvkm/core/device.h | 2 ++
drm/nouveau/include/nvkm/subdev/pci.h | 4 ++-
drm/nouveau/nouveau_drm.c | 6 +++++
drm/nouveau/nvkm/subdev/clk/base.c | 2 +-...
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
2019 May 04
10
[PATCH 0/5] Potential fix for runpm issues on various laptops
...n my machine. Secure booting
the gr (even with my workaround applied I need anyway) might fail after
the GPU got runtime resumed though...
Karol Herbst (5):
drm: don't set the pci power state if the pci subsystem handles the
ACPI bits
pci: enable pcie link changes for pascal
pci: add nvkm_pcie_get_speed
pci: save the boot pcie link speed
pci: restore the boot pcie link speed on fini
drm/nouveau/include/nvkm/subdev/pci.h | 6 ++++--
drm/nouveau/nouveau_acpi.c | 6 +++---
drm/nouveau/nouveau_acpi.h | 4 ++--
drm/nouveau/nouveau_drm.c | 15 +++++++++----
drm...
2019 May 07
8
[PATCH v2 0/4] Potential fix for runpm issues on various laptops
...n my machine. Secure booting
the gr (even with my workaround applied I need anyway) might fail after
the GPU got runtime resumed though...
Karol Herbst (4):
drm: don't set the pci power state if the pci subsystem handles the
ACPI bits
pci: enable pcie link changes for pascal
pci: add nvkm_pcie_get_speed
pci: save the boot pcie link speed and restore it on fini
drm/nouveau/include/nvkm/subdev/pci.h | 6 +++--
drm/nouveau/nouveau_acpi.c | 7 +++++-
drm/nouveau/nouveau_acpi.h | 2 ++
drm/nouveau/nouveau_drm.c | 14 +++++++++---
drm/nouveau/nouveau_drv.h...
2019 Aug 14
10
[PATCH 0/7] Adding a proper workaround for fixing RTD3 issues with Nouveau
...I / OSI: Add OEM _OSI string to enable dGPU direct output"
Revert "ACPI / OSI: Add OEM _OSI string to enable NVidia HDMI audio"
Revert "ACPI / OSI: Add OEM _OSI strings to disable NVidia RTD3"
drm/nouveau/pci: enable pcie link changes for pascal
drm/nouveau/pci: add nvkm_pcie_get_speed
drm/nouveau/pci: save the boot pcie link speed and restore it on fini
drm/nouveau: abort runtime suspend if we hit an error
drivers/acpi/osi.c | 24 ----------
.../drm/nouveau/include/nvkm/core/device.h | 2 +
.../gpu/drm/nouveau/include/nvkm/subdev/pci.h | 9 +...
2019 Sep 17
2
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...vkm_device *, int, struct nvkm_pci **);
>
> /* pcie functions */
> -int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
> +int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width,
> + bool save);
> enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
> #endif
> diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
> index 3d32afe8a..78d55c525 100644
> --- a/drm/nouveau/nouveau_drm.c
> +++ b/drm/nouveau/nouveau_drm.c
> @@ -676,6 +676,7 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
>...
2019 Sep 17
2
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...> > /* pcie functions */
> > > -int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
> > > +int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width,
> > > + bool save);
> > > enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
> > > #endif
> > > diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
> > > index 3d32afe8a..78d55c525 100644
> > > --- a/drm/nouveau/nouveau_drm.c
> > > +++ b/drm/nouveau/nouveau_drm.c
> > > @@ -676,6 +676,7...
2019 May 04
0
[PATCH 4/5] pci: save the boot pcie link speed
...rm/nouveau/nvkm/subdev/pci/pcie.c
index eb405dea..727b5d6a 100644
--- a/drm/nouveau/nvkm/subdev/pci/pcie.c
+++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
@@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
return 0;
}
+int
+nvkm_pcie_preinit(struct nvkm_pci *pci)
+{
+ pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
+ return 0;
+}
+
int
nvkm_pcie_init(struct nvkm_pci *pci)
{
@@ -105,8 +112,8 @@ nvkm_pcie_init(struct nvkm_pci *pci)
if (pci->func->pcie.init)
pci->func->pcie.init(pci);
- if (pci->pcie.speed != -1)
- nvkm_pcie_set_link(pci, pci->pcie.speed, pci->pcie.width);
+...
2019 May 20
2
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...731dd30e 100644
> --- a/drm/nouveau/nvkm/subdev/pci/pcie.c
> +++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
> @@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
> return 0;
> }
>
> +int
> +nvkm_pcie_preinit(struct nvkm_pci *pci)
> +{
> + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> + return 0;
> +}
> +
> int
> nvkm_pcie_init(struct nvkm_pci *pci)
> {
> @@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pci *pci)
> if (pci->func->pcie.init)
> pci->func->pcie.init(pci);
>
> - if (pci->pcie.speed != -1)
> - nvkm...
2019 May 07
0
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...rm/nouveau/nvkm/subdev/pci/pcie.c
index 70ccbe0d..731dd30e 100644
--- a/drm/nouveau/nvkm/subdev/pci/pcie.c
+++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
@@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
return 0;
}
+int
+nvkm_pcie_preinit(struct nvkm_pci *pci)
+{
+ pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
+ return 0;
+}
+
int
nvkm_pcie_init(struct nvkm_pci *pci)
{
@@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pci *pci)
if (pci->func->pcie.init)
pci->func->pcie.init(pci);
- if (pci->pcie.speed != -1)
- nvkm_pcie_set_link(pci, pci->pcie.speed, pci->pcie.width);...
2019 Sep 13
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...nvkm_pci **);
int gp100_pci_new(struct nvkm_device *, int, struct nvkm_pci **);
/* pcie functions */
-int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
+int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width,
+ bool save);
enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
#endif
diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
index 3d32afe8a..78d55c525 100644
--- a/drm/nouveau/nouveau_drm.c
+++ b/drm/nouveau/nouveau_drm.c
@@ -676,6 +676,7 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
if (nouveau_atomic)
driver_p...
2019 Sep 17
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
..._pci **);
> >
> > /* pcie functions */
> > -int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
> > +int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width,
> > + bool save);
> > enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
> > #endif
> > diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
> > index 3d32afe8a..78d55c525 100644
> > --- a/drm/nouveau/nouveau_drm.c
> > +++ b/drm/nouveau/nouveau_drm.c
> > @@ -676,6 +676,7 @@ static int nouveau_drm_pro...
2019 May 20
0
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...pci/pcie.c
> > +++ b/drm/nouveau/nvkm/subdev/pci/pcie.c
> > @@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
> > return 0;
> > }
> >
> > +int
> > +nvkm_pcie_preinit(struct nvkm_pci *pci)
> > +{
> > + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> > + return 0;
> > +}
> > +
> > int
> > nvkm_pcie_init(struct nvkm_pci *pci)
> > {
> > @@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pci *pci)
> > if (pci->func->pcie.init)
> > pci->func->pcie.ini...
2019 Sep 17
0
[PATCH v4 3/4] pci: set the pcie link speed to 8.0 when suspending
...unctions */
> > > > -int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width);
> > > > +int nvkm_pcie_set_link(struct nvkm_pci *, enum nvkm_pcie_speed, u8 width,
> > > > + bool save);
> > > > enum nvkm_pcie_speed nvkm_pcie_get_speed(struct nvkm_pci *);
> > > > #endif
> > > > diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
> > > > index 3d32afe8a..78d55c525 100644
> > > > --- a/drm/nouveau/nouveau_drm.c
> > > > +++ b/drm/nouveau/nouveau_drm.c
> &...
2019 May 21
3
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...vkm/subdev/pci/pcie.c
> > > @@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
> > > return 0;
> > > }
> > >
> > > +int
> > > +nvkm_pcie_preinit(struct nvkm_pci *pci)
> > > +{
> > > + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> > > + return 0;
> > > +}
> > > +
> > > int
> > > nvkm_pcie_init(struct nvkm_pci *pci)
> > > {
> > > @@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pci *pci)
> > > if (pci->func->pcie.init)
> >...
2019 May 21
2
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...nit(struct nvkm_pci *pci)
> > > > > return 0;
> > > > > }
> > > > >
> > > > > +int
> > > > > +nvkm_pcie_preinit(struct nvkm_pci *pci)
> > > > > +{
> > > > > + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> > > > > + return 0;
> > > > > +}
> > > > > +
> > > > > int
> > > > > nvkm_pcie_init(struct nvkm_pci *pci)
> > > > > {
> > > > > @@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pc...
2019 May 21
0
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...; @@ -85,6 +85,13 @@ nvkm_pcie_oneinit(struct nvkm_pci *pci)
> > > > return 0;
> > > > }
> > > >
> > > > +int
> > > > +nvkm_pcie_preinit(struct nvkm_pci *pci)
> > > > +{
> > > > + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> > > > + return 0;
> > > > +}
> > > > +
> > > > int
> > > > nvkm_pcie_init(struct nvkm_pci *pci)
> > > > {
> > > > @@ -105,12 +112,21 @@ nvkm_pcie_init(struct nvkm_pci *pci)
> > > > i...
2019 May 21
0
[PATCH v2 4/4] pci: save the boot pcie link speed and restore it on fini
...> > > > return 0;
> > > > > > }
> > > > > >
> > > > > > +int
> > > > > > +nvkm_pcie_preinit(struct nvkm_pci *pci)
> > > > > > +{
> > > > > > + pci->pcie.def_speed = nvkm_pcie_get_speed(pci);
> > > > > > + return 0;
> > > > > > +}
> > > > > > +
> > > > > > int
> > > > > > nvkm_pcie_init(struct nvkm_pci *pci)
> > > > > > {
> > > > > > @@ -105,12 +112,...