Skip to contentSkip to conversation

clk: allow non-blocking for nouveau_clock_astate()

PATCH In review Vince Hsu 3 participants 12 messages Dec 22, 2014 – Jan 8, 2015 7 messages not in the archive

lore
Share & tools
lore

Vince Hsu

author
#0 lore raw

PATCH v2 1/4 clk: allow non-blocking for nouveau_clock_astate()

There might be some callers of nouveau_clock_astate(), and they are from inetrrupt context. So we must ensure that this function can be atomic in that condition. This patch adds one parameter which is subsequently passed to nouveau_pstate_calc(). Therefore we can choose whether we want to wait for the pstate work's completion or not.

---

v2: none. (v1 is the RFC actually)

 nvkm/include/subdev/clock.h | 2 +-
 nvkm/subdev/clock/base.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
nvkm/include/subdev/clock.h +1 -1
index 36ed035d4d42..6c36f0e4385b 100644
@@ -159,7 +159,7 @@ int nva3_clock_pll_calc(struct nouveau_clock *, struct nvbios_pll *,
 			int clk, struct nouveau_pll_vals *);
 
 int nouveau_clock_ustate(struct nouveau_clock *, int req, int pwr);
-int nouveau_clock_astate(struct nouveau_clock *, int req, int rel);
+int nouveau_clock_astate(struct nouveau_clock *, int req, int rel, bool wait);
 int nouveau_clock_dstate(struct nouveau_clock *, int req, int rel);
 int nouveau_clock_tstate(struct nouveau_clock *, int req, int rel);
 
nvkm/subdev/clock/base.c +2 -2
index e51b72d47129..b1bbe764fa35 100644
@@ -430,13 +430,13 @@ nouveau_clock_ustate(struct nouveau_clock *clk, int req, int pwr)
 }
 
 int
-nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel)
+nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel, bool wait)
 {
 	if (!rel) clk->astate  = req;
 	if ( rel) clk->astate += rel;
 	clk->astate = min(clk->astate, clk->state_nr - 1);
 	clk->astate = max(clk->astate, 0);
-	return nouveau_pstate_calc(clk, true);
+	return nouveau_pstate_calc(clk, wait);
 }
 
 int
Signature · 6 lines
1.9.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 1419239500-19703-1-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

author
#2 lore raw

PATCH v2 2/4 pwr: make nouveau_pwr_pgob() non-static

The platform device does not use the common nouveau_pwr_init() to initialize the PWR, but it does need the .prob() be assigned to avoid NULL pointer dereference in graph/nve4.c.

---

v2: this patch is added since v2. (v1 is the RFC actually)

 nvkm/subdev/pwr/base.c | 2 +-
 nvkm/subdev/pwr/priv.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
nvkm/subdev/pwr/base.c +1 -1
index 0ab55f27ec45..1ea433a5e118 100644
@@ -26,7 +26,7 @@
 
 #include "priv.h"
 
-static void
+void
 nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable)
 {
 	const struct nvkm_pwr_impl *impl = (void *)nv_oclass(ppwr);
nvkm/subdev/pwr/priv.h +1 -0
index 3814a341db32..86149d9a440c 100644
@@ -26,6 +26,7 @@ int _nouveau_pwr_ctor(struct nouveau_object *, struct nouveau_object *,
 #define _nouveau_pwr_dtor _nouveau_subdev_dtor
 int _nouveau_pwr_init(struct nouveau_object *);
 int _nouveau_pwr_fini(struct nouveau_object *, bool);
+void nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable);
 
 struct nvkm_pwr_impl {
 	struct nouveau_oclass base;
Signature · 6 lines
1.9.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 1419239500-19703-2-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

author
#4 lore raw

Re: [PATCH V2 2/4] pwr: make nouveau_pwr_pgob() non-static

Quoted 3 lines · Vince Hsu

The platform device does not use the common nouveau_pwr_init() to initialize the PWR, but it does need the .prob() be assigned to avoid NULL pointer dereference in graph/nve4.c.

s/prob/pgob/ :-(
Will fix in next version.

Quoted 28 lines

---

v2: this patch is added since v2. (v1 is the RFC actually)

  nvkm/subdev/pwr/base.c | 2 +-
  nvkm/subdev/pwr/priv.h | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)
nvkm/subdev/pwr/base.c +1 -1
index 0ab55f27ec45..1ea433a5e118 100644
@@ -26,7 +26,7 @@
 
  #include "priv.h"
 
-static void
+void
  nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable)
  {
  	const struct nvkm_pwr_impl *impl = (void *)nv_oclass(ppwr);
nvkm/subdev/pwr/priv.h +0 -0
index 3814a341db32..86149d9a440c 100644

nvkm/subdev/pwr/priv.h int _nouveau_pwr_ctor(struct nouveau_object *, struct nouveau_object *, · line 32

Quoted 7 lines
nvkm/subdev/pwr/priv.h +1 -0
@@ -26,6 +26,7 @@ int _nouveau_pwr_ctor(struct nouveau_object *, struct nouveau_object *,
  #define _nouveau_pwr_dtor _nouveau_subdev_dtor
  int _nouveau_pwr_init(struct nouveau_object *);
  int _nouveau_pwr_fini(struct nouveau_object *, bool);
+void nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable);
 
  struct nvkm_pwr_impl {
  	struct nouveau_oclass base;

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Re: [PATCH V2 2/4] pwr: make nouveau_pwr_pgob() non-static

Quoted 10 lines · Vince Hsu
Quoted 5 lines · Vince Hsu

The platform device does not use the common nouveau_pwr_init() to initialize
the PWR, but it does need the .prob() be assigned to avoid NULL pointer dereference in graph/nve4.c.

s/prob/pgob/ :-(
Will fix in next version.

Is this the only change you need for a next version? If so, I can modify the commit message myself when I merge it.

Quoted 47 lines
Quoted 27 lines

---

v2: this patch is added since v2. (v1 is the RFC actually)

  nvkm/subdev/pwr/base.c | 2 +-
  nvkm/subdev/pwr/priv.h | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)
nvkm/subdev/pwr/base.c +1 -0
index 0ab55f27ec45..1ea433a5e118 100644
@@ -26,7 +26,7 @@
    #include "priv.h"
  -static void
+void
  nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable)
  {
        const struct nvkm_pwr_impl *impl = (void *)nv_oclass(ppwr);
nvkm/subdev/pwr/priv.h +0 -0
index 3814a341db32..86149d9a440c 100644

nvkm/subdev/pwr/priv.h int _nouveau_pwr_ctor(struct nouveau_object *, struct · line 32

Quoted 7 lines
nvkm/subdev/pwr/priv.h +1 -0
@@ -26,6 +26,7 @@ int _nouveau_pwr_ctor(struct nouveau_object *, struct
 nouveau_object *,
  #define _nouveau_pwr_dtor _nouveau_subdev_dtor
  int _nouveau_pwr_init(struct nouveau_object *);
  int _nouveau_pwr_fini(struct nouveau_object *, bool);
+void nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable);
    struct nvkm_pwr_impl {
        struct nouveau_oclass base;

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Quoted 4 lines

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): CACAvsv771pkd+p6eEQPCyYBXzL+YmCOg9CeMQ8Gghe_2=d2r9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#8 lore raw

Re: [PATCH V2 2/4] pwr: make nouveau_pwr_pgob() non-static

Hi,

Quoted 10 lines · Ben Skeggs
Quoted 7 lines · Vince Hsu
Quoted 4 lines · Vince Hsu

The platform device does not use the common nouveau_pwr_init() to initialize
the PWR, but it does need the .prob() be assigned to avoid NULL pointer dereference in graph/nve4.c.

s/prob/pgob/ :-(
Will fix in next version.

Is this the only change you need for a next version? If so, I can modify the commit message myself when I merge it.

Yes if no one has objection to this patchset. :)

Thanks,
Vince

Quoted 45 lines
Quoted 45 lines
Quoted 26 lines

---

v2: this patch is added since v2. (v1 is the RFC actually)

   nvkm/subdev/pwr/base.c | 2 +-
   nvkm/subdev/pwr/priv.h | 1 +
   2 files changed, 2 insertions(+), 1 deletion(-)
nvkm/subdev/pwr/base.c +1 -0
index 0ab55f27ec45..1ea433a5e118 100644
@@ -26,7 +26,7 @@
     #include "priv.h"
   -static void
+void
   nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable)
   {
         const struct nvkm_pwr_impl *impl = (void *)nv_oclass(ppwr);
nvkm/subdev/pwr/priv.h +0 -0
index 3814a341db32..86149d9a440c 100644

nvkm/subdev/pwr/priv.h int _nouveau_pwr_ctor(struct nouveau_object *, struct · line 32

Quoted 7 lines
nvkm/subdev/pwr/priv.h +1 -0
@@ -26,6 +26,7 @@ int _nouveau_pwr_ctor(struct nouveau_object *, struct
 nouveau_object *,
   #define _nouveau_pwr_dtor _nouveau_subdev_dtor
   int _nouveau_pwr_init(struct nouveau_object *);
   int _nouveau_pwr_fini(struct nouveau_object *, bool);
+void nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable);
     struct nvkm_pwr_impl {
         struct nouveau_oclass base;

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Quoted 4 lines
Quoted 4 lines

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

author
#9 lore raw

PATCH v2 3/4 pwr: add support for GK20A

In reply to a message not in the archive

This patch adds PWR support for GK20A. But instead of adding the PWR features like firmware loading and communication with PMU firmware, we add the DVFS (Dynamic Voltage and Frequency Scaling), which is one of the PMU firmware's jobs on dGPUs, in this patch. This refers to the idle signals provided by the NVIDIA hardware and tries to adjust the performance level based on the calculated target. The reclocking policy can be fine-tuned later when we have more real use cases.

---

v2: moved the dvfs to pwr subdev. (v1 is the RFC)

 drm/Kbuild                  |   1 +
 drm/core/subdev/pwr/gk20a.c |   1 +
 nvkm/engine/device/nve0.c   |   1 +
 nvkm/include/subdev/pwr.h   |   1 +
 nvkm/subdev/pwr/Makefile.am |   3 +-
 nvkm/subdev/pwr/gk20a.c     | 232 ++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 238 insertions(+), 1 deletion(-)
 create mode 120000 drm/core/subdev/pwr/gk20a.c
 create mode 100644 nvkm/subdev/pwr/gk20a.c
drm/Kbuild +1 -0
index 06556136deb5..d513c7e52f2c 100644
@@ -202,6 +202,7 @@ nouveau-y += core/subdev/pwr/nvc0.o
 nouveau-y += core/subdev/pwr/nvd0.o
 nouveau-y += core/subdev/pwr/gk104.o
 nouveau-y += core/subdev/pwr/nv108.o
+nouveau-y += core/subdev/pwr/gk20a.o
 nouveau-y += core/subdev/therm/base.o
 nouveau-y += core/subdev/therm/fan.o
 nouveau-y += core/subdev/therm/fannil.o
drm/core/subdev/pwr/gk20a.c new file +1 -0
new file mode 120000
index 000000000000..804979982c34
@@ -0,0 +1 @@
+../../../../nvkm/subdev/pwr/gk20a.c
\ No newline at end of file
nvkm/engine/device/nve0.c +1 -0
index 98e7d6485f43..1f7acd31c498 100644
@@ -180,6 +180,7 @@ nve0_identify(struct nouveau_device *device)
 		device->oclass[NVDEV_ENGINE_COPY2  ] = &nve0_copy2_oclass;
 		device->oclass[NVDEV_ENGINE_PERFMON] = &gk20a_perfmon_oclass;
 		device->oclass[NVDEV_SUBDEV_VOLT   ] = &gk20a_volt_oclass;
+		device->oclass[NVDEV_SUBDEV_PWR    ] =  gk20a_pwr_oclass;
 		break;
 	case 0xf0:
 		device->cname = "GK110";
nvkm/include/subdev/pwr.h +1 -0
index f2427bf5aeed..535a410674e5 100644
@@ -38,6 +38,7 @@ extern struct nouveau_oclass *nvc0_pwr_oclass;
 extern struct nouveau_oclass *nvd0_pwr_oclass;
 extern struct nouveau_oclass *gk104_pwr_oclass;
 extern struct nouveau_oclass *nv108_pwr_oclass;
+extern struct nouveau_oclass *gk20a_pwr_oclass;
 
 /* interface to MEMX process running on PPWR */
 struct nouveau_memx;
nvkm/subdev/pwr/Makefile.am +2 -1
index 2bb4ca666c58..f59eec0522cc 100644
@@ -12,7 +12,8 @@ libpwr_la_SOURCES = base.c \
 		    nvc0.c \
 		    nvd0.c \
 		    gk104.c \
-		    nv108.c
+		    nv108.c \
+		    gk20a.c
 
 FUC_COMMON = fuc/os.h \
 	     fuc/macros.fuc \
nvkm/subdev/pwr/gk20a.c new file +232 -0

232 lines not on this page · raw message

Signature · 6 lines
1.9.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
author
#10 lore raw

PATCH v2 4/4 clk: allow users to enable auto mode when loading driver

In reply to a message not in the archive

This patch adds one option for the boot config strings "NvClkMode*", so that we can enable the "auto" mode when loading module.

---

v2: none. (v1 is the RFC)

 nvkm/subdev/clock/base.c | 3 +++
 1 file changed, 3 insertions(+)
nvkm/subdev/clock/base.c +3 -0
index b1bbe764fa35..bc095b470121 100644
@@ -401,6 +401,9 @@ nouveau_clock_nstate(struct nouveau_clock *clk, const char *mode, int arglen)
 {
 	int ret = 1;
 
+	if (clk->allow_reclock && !strncasecmpz(mode, "auto", arglen))
+		return -2;
+
 	if (strncasecmpz(mode, "disabled", arglen)) {
 		char save = mode[arglen];
 		long v;
Signature · 6 lines
1.9.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
author
#11 lore raw
In reply to a message not in the archive

Hello Ben and Martin,

Any comments for this series?

Thanks,
Vince

Quoted 38 lines · Vince Hsu

There might be some callers of nouveau_clock_astate(), and they are from inetrrupt context. So we must ensure that this function can be atomic in that condition. This patch adds one parameter which is subsequently passed to nouveau_pstate_calc(). Therefore we can choose whether we want to wait for the pstate work's completion or not.

---

v2: none. (v1 is the RFC actually)

  nvkm/include/subdev/clock.h | 2 +-
  nvkm/subdev/clock/base.c    | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
nvkm/include/subdev/clock.h +1 -1
index 36ed035d4d42..6c36f0e4385b 100644
@@ -159,7 +159,7 @@ int nva3_clock_pll_calc(struct nouveau_clock *, struct nvbios_pll *,
  			int clk, struct nouveau_pll_vals *);
 
  int nouveau_clock_ustate(struct nouveau_clock *, int req, int pwr);
-int nouveau_clock_astate(struct nouveau_clock *, int req, int rel);
+int nouveau_clock_astate(struct nouveau_clock *, int req, int rel, bool wait);
  int nouveau_clock_dstate(struct nouveau_clock *, int req, int rel);
  int nouveau_clock_tstate(struct nouveau_clock *, int req, int rel);
 
nvkm/subdev/clock/base.c +1 -1
index e51b72d47129..b1bbe764fa35 100644
@@ -430,13 +430,13 @@ nouveau_clock_ustate(struct nouveau_clock *clk, int req, int pwr)
  }
 
  int
-nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel)
+nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel, bool wait)

nvkm/subdev/clock/base.c nouveau_clock_ustate(struct nouveau_clock *clk, int req, int pwr) · line 442

Quoted 10 lines
nvkm/subdev/clock/base.c +1 -1
  {
  	if (!rel) clk->astate  = req;
  	if ( rel) clk->astate += rel;
  	clk->astate = min(clk->astate, clk->state_nr - 1);
  	clk->astate = max(clk->astate, 0);
-	return nouveau_pstate_calc(clk, true);
+	return nouveau_pstate_calc(clk, wait);
  }
 
  int

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw
Quoted 3 lines · Vince Hsu

Hello Ben and Martin,

Any comments for this series?

Hey Vince,

Ah sorry, I thought my comment on the other patch indicated I was fine with it. I'll merge them now so they don't get lost :)

Thanks,
Ben.

Quoted 68 lines

Thanks,
Vince

Quoted 39 lines · Vince Hsu

There might be some callers of nouveau_clock_astate(), and they are from inetrrupt context. So we must ensure that this function can be atomic in that condition. This patch adds one parameter which is subsequently passed to nouveau_pstate_calc(). Therefore we can choose whether we want to wait for the pstate work's completion or not.

---

v2: none. (v1 is the RFC actually)

  nvkm/include/subdev/clock.h | 2 +-
  nvkm/subdev/clock/base.c    | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
nvkm/include/subdev/clock.h +1 -1
index 36ed035d4d42..6c36f0e4385b 100644
@@ -159,7 +159,7 @@ int nva3_clock_pll_calc(struct nouveau_clock *, struct
 nvbios_pll *,
                        int clk, struct nouveau_pll_vals *);
    int nouveau_clock_ustate(struct nouveau_clock *, int req, int pwr);
-int nouveau_clock_astate(struct nouveau_clock *, int req, int rel);
+int nouveau_clock_astate(struct nouveau_clock *, int req, int rel, bool
 wait);
  int nouveau_clock_dstate(struct nouveau_clock *, int req, int rel);
  int nouveau_clock_tstate(struct nouveau_clock *, int req, int rel);

diff --git a/nvkm/subdev/clock/base.c b/nvkm/subdev/clock/base.c
index e51b72d47129..b1bbe764fa35 100644

nvkm/subdev/clock/base.c +1 -1
@@ -430,13 +430,13 @@ nouveau_clock_ustate(struct nouveau_clock *clk, int
 req, int pwr)
  }
    int
-nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel)
+nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel, bool

nvkm/subdev/clock/base.c nouveau_clock_ustate(struct nouveau_clock *clk, int · line 442

Quoted 10 lines
nvkm/subdev/clock/base.c +1 -1
 wait)
  {
        if (!rel) clk->astate  = req;
        if ( rel) clk->astate += rel;
        clk->astate = min(clk->astate, clk->state_nr - 1);
        clk->astate = max(clk->astate, 0);
-       return nouveau_pstate_calc(clk, true);
+       return nouveau_pstate_calc(clk, wait);
  }
    int

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Quoted 4 lines

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): CACAvsv7ej-nd-x8stSvH8uHVu0W1p1A+O4mQJDV1yc76cUgcKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#15 lore raw
Quoted 8 lines · Ben Skeggs
Quoted 3 lines · Vince Hsu

Hello Ben and Martin,

Any comments for this series?

Hey Vince,

Ah sorry, I thought my comment on the other patch indicated I was fine with it. I'll merge them now so they don't get lost :)

Thanks a lot! :)

Quoted 76 lines

Thanks,
Ben.

Quoted 72 lines

Thanks,
Vince

Quoted 39 lines · Vince Hsu

There might be some callers of nouveau_clock_astate(), and they are from inetrrupt context. So we must ensure that this function can be atomic in that condition. This patch adds one parameter which is subsequently passed to nouveau_pstate_calc(). Therefore we can choose whether we want to wait for the pstate work's completion or not.

---

v2: none. (v1 is the RFC actually)

  nvkm/include/subdev/clock.h | 2 +-
  nvkm/subdev/clock/base.c    | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
nvkm/include/subdev/clock.h +1 -1
index 36ed035d4d42..6c36f0e4385b 100644
@@ -159,7 +159,7 @@ int nva3_clock_pll_calc(struct nouveau_clock *, struct
 nvbios_pll *,
                        int clk, struct nouveau_pll_vals *);
    int nouveau_clock_ustate(struct nouveau_clock *, int req, int pwr);
-int nouveau_clock_astate(struct nouveau_clock *, int req, int rel);
+int nouveau_clock_astate(struct nouveau_clock *, int req, int rel, bool
 wait);
  int nouveau_clock_dstate(struct nouveau_clock *, int req, int rel);
  int nouveau_clock_tstate(struct nouveau_clock *, int req, int rel);

diff --git a/nvkm/subdev/clock/base.c b/nvkm/subdev/clock/base.c
index e51b72d47129..b1bbe764fa35 100644

nvkm/subdev/clock/base.c +1 -1
@@ -430,13 +430,13 @@ nouveau_clock_ustate(struct nouveau_clock *clk, int
 req, int pwr)
  }
    int
-nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel)
+nouveau_clock_astate(struct nouveau_clock *clk, int req, int rel, bool

nvkm/subdev/clock/base.c nouveau_clock_ustate(struct nouveau_clock *clk, int · line 442

Quoted 10 lines
nvkm/subdev/clock/base.c +1 -1
 wait)
  {
        if (!rel) clk->astate  = req;
        if ( rel) clk->astate += rel;
        clk->astate = min(clk->astate, clk->state_nr - 1);
        clk->astate = max(clk->astate, 0);
-       return nouveau_pstate_calc(clk, true);
+       return nouveau_pstate_calc(clk, wait);
  }
    int

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#16 lore raw
In reply to a message not in the archive
Quoted 6 lines · Vince Hsu

Hello Ben and Martin,

Any comments for this series?

Thanks,
Vince

Hello Vince,

I have not really settled yet, so I don't think I have the time to review your patches right now as I have more urgent personnal priorities.

Sorry, hope to be available soon!

Martin
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#18 lore raw
Quoted 5 lines · Martin Peres
Quoted 4 lines · Vince Hsu

Hello Ben and Martin,

Any comments for this series?

Quoted 8 lines
Quoted 2 lines

Thanks,
Vince

Hello Vince,

I have not really settled yet, so I don't think I have the time to review your patches right now as I have more urgent personnal priorities.

Sorry, hope to be available soon!

Thanks, Martin. I hope all is well with your new journey. :)

Vince

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau