Displaying 5 results from an estimated 5 matches for "ltssm".
Did you mean:
ltss
2019 Sep 12
1
[PATCH 3/3] pci/gk104: wait for ltssm idle before changing the link
...t; +#include <subdev/timer.h>
> +
> static int
> gk104_pcie_version_supported(struct nvkm_pci *pci)
> {
> @@ -142,6 +144,11 @@ gk104_pcie_set_link_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed)
> break;
> }
>
> + /* wait for ltssm idle */
> + nvkm_msec(device, 200,
> + if ((nvkm_rd32(device, 0x8c040) & 0x1f) == 0)
> + break;
> + );
What if it doesn't idle? Should you still do the below things?
> nvkm_mask(device, 0x8c040, 0xc0000, mask_value);
&...
2019 Sep 12
0
[PATCH 3/3] pci/gk104: wait for ltssm idle before changing the link
...bdev/pci/gk104.c
@@ -23,6 +23,8 @@
*/
#include "priv.h"
+#include <subdev/timer.h>
+
static int
gk104_pcie_version_supported(struct nvkm_pci *pci)
{
@@ -142,6 +144,11 @@ gk104_pcie_set_link_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed)
break;
}
+ /* wait for ltssm idle */
+ nvkm_msec(device, 200,
+ if ((nvkm_rd32(device, 0x8c040) & 0x1f) == 0)
+ break;
+ );
nvkm_mask(device, 0x8c040, 0xc0000, mask_value);
nvkm_mask(device, 0x8c040, 0x1, 0x1);
}
--
2.21.0
2019 Sep 12
5
[PATCH 0/3] PCIe link change improvements
...r 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
drm/nouveau/nvkm/subdev/pci/g84.c | 9 +++++++++
drm/nouveau/nvkm/subdev/pci/g92.c | 1 +
drm/nouveau/nvkm/subdev/pci/g94.c | 1 +
drm/nouveau/nvkm/subdev/pci/gf100.c | 1 +
drm/nouveau/nvkm/subdev/pci/gf106.c | 1 +
drm/nouveau/nvkm/subdev/pci/gk104.c | 1...
2019 Sep 17
6
[PATCH 0/6] Add workaround for fixing runpm
...atch
* 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 changing the link speed
pci/gk104: enable dl_mgr safe mode
pci/gk104: wait for ltssm idle before changing the link
pci: enable pcie link changes for pascal
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 | 3 +-
drm/nouveau/nouveau_drm.c...
2019 Sep 23
8
[PATCH 0/8] Add workaround for fixing runpm
...h and forgot to delete it, doesn't hurt though)
* expose information about runtime suspending to nvkm so that we can run
the pcie workaround only on runtime suspend
Karol Herbst (8):
pci: disable ASPM before changing the link speed
pci/gk104: enable dl_mgr safe mode
pci/gk104: wait for ltssm idle before changing the link
pci: enable pcie link changes for pascal
drm: set power_state to DRM_SWITCH_POWER_CHANGING before changing
drm: be explicit about runtime suspend in fini
pci: set the pcie link speed to 8.0 when suspending
drm: abort runtime suspend if we hit an error
bin/n...