Displaying 2 results from an estimated 2 matches for "nvkm_clk_pmu_reclk_request".
2015 Nov 14
1
[PATCH v2] pmu: fix queued messages while getting no IRQ
...tions(+), 6 deletions(-)
diff --git a/drm/nouveau/nvkm/subdev/pmu/base.c b/drm/nouveau/nvkm/subdev/pmu/base.c
index 6b2007f..fafbe2a 100644
--- a/drm/nouveau/nvkm/subdev/pmu/base.c
+++ b/drm/nouveau/nvkm/subdev/pmu/base.c
@@ -43,6 +43,41 @@ nvkm_pmu_handle_reclk_request(struct work_struct *work)
nvkm_clk_pmu_reclk_request(clk, pmu->intr.data[0]);
}
+static int
+wait_for_pmu_reply(struct nvkm_pmu *pmu, u32 reply[2])
+{
+ struct nvkm_subdev *subdev = &pmu->subdev;
+ struct nvkm_device *device = subdev->device;
+ unsigned long jiffies = msecs_to_jiffies(1000);
+
+ if (!wait_event_timeout(pmu->recv.wa...
2015 Nov 14
0
[PATCH v3] pmu: fix queued messages while getting no IRQ
...tions(+), 4 deletions(-)
diff --git a/drm/nouveau/nvkm/subdev/pmu/base.c b/drm/nouveau/nvkm/subdev/pmu/base.c
index 6b2007f..81a5583 100644
--- a/drm/nouveau/nvkm/subdev/pmu/base.c
+++ b/drm/nouveau/nvkm/subdev/pmu/base.c
@@ -43,6 +43,34 @@ nvkm_pmu_handle_reclk_request(struct work_struct *work)
nvkm_clk_pmu_reclk_request(clk, pmu->intr.data[0]);
}
+static int
+wait_for_pmu_reply(struct nvkm_pmu *pmu, u32 reply[2])
+{
+ struct nvkm_subdev *subdev = &pmu->subdev;
+ struct nvkm_device *device = subdev->device;
+ unsigned long jiffies = msecs_to_jiffies(1000);
+
+ if (!wait_event_timeout(pmu->recv.wa...