Displaying 5 results from an estimated 5 matches for "g84_pcie_force_aspm_off".
2019 Sep 17
1
[PATCH 1/3] pci: force disable ASPM before changing the link speed
.../g84.c
> index 62438d892..353d70d7e 100644
> --- a/drm/nouveau/nvkm/subdev/pci/g84.c
> +++ b/drm/nouveau/nvkm/subdev/pci/g84.c
> @@ -122,6 +122,14 @@ g84_pci_init(struct nvkm_pci *pci)
> nvkm_pci_mask(pci, 0x041c, 0x00000060, 0x00000000);
> }
>
> +void
> +g84_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)
> +{
> + /* L0s and L1 */
> + u32 value = status ? 0x180 : 0x0;
> + nvkm_pci_mask(pci, 0x150, 0x180, value);
> +}
> +
> int
> g84_pcie_init(struct nvkm_pci *pci)
> {
> @@ -147,6 +155,7 @@ g84_pci_func = {
>...
2019 Sep 12
5
[PATCH 0/3] PCIe link change improvements
everything was taken from nvgpu.
Main reason for adding is to improve stability of the PCIe link changing code
as we might want to depend on it for a workaround fixing our infamous runpm
issues on recent laptops
Karol Herbst (3):
pci: force disable ASPM before changing the link speed
pci/gk104: enable dl_mgr safe mode
pci/gk104: wait for ltssm idle before changing the link
2019 Sep 12
0
[PATCH 1/3] pci: force disable ASPM before changing the link speed
...veau/nvkm/subdev/pci/g84.c b/drm/nouveau/nvkm/subdev/pci/g84.c
index 62438d892..353d70d7e 100644
--- a/drm/nouveau/nvkm/subdev/pci/g84.c
+++ b/drm/nouveau/nvkm/subdev/pci/g84.c
@@ -122,6 +122,14 @@ g84_pci_init(struct nvkm_pci *pci)
nvkm_pci_mask(pci, 0x041c, 0x00000060, 0x00000000);
}
+void
+g84_pcie_force_aspm_off(struct nvkm_pci *pci, bool status)
+{
+ /* L0s and L1 */
+ u32 value = status ? 0x180 : 0x0;
+ nvkm_pci_mask(pci, 0x150, 0x180, value);
+}
+
int
g84_pcie_init(struct nvkm_pci *pci)
{
@@ -147,6 +155,7 @@ g84_pci_func = {
.pcie.set_version = g84_pcie_set_version,
.pcie.version = g84_pcie_versi...
2019 Sep 13
0
[PATCH v4 1/4] pci: enable pcie link changes for pascal
..._init,
+ .pcie.set_link = gk104_pcie_set_link,
+
+ .pcie.max_speed = gk104_pcie_max_speed,
+ .pcie.cur_speed = g84_pcie_cur_speed,
+
+ .pcie.set_version = gf100_pcie_set_version,
+ .pcie.version = gf100_pcie_version,
+ .pcie.version_supported = gk104_pcie_version_supported,
+ .pcie.force_aspm_off = g84_pcie_force_aspm_off,
};
int
diff --git a/drm/nouveau/nvkm/subdev/pci/priv.h b/drm/nouveau/nvkm/subdev/pci/priv.h
index c6a9ef330..82c78befa 100644
--- a/drm/nouveau/nvkm/subdev/pci/priv.h
+++ b/drm/nouveau/nvkm/subdev/pci/priv.h
@@ -56,6 +56,11 @@ int gf100_pcie_cap_speed(struct nvkm_pci *);
int gf100_pcie_init(s...
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: