From: Vince Hsu <vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Ben Skeggs <skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Roy Spliet
<seven-FA6nBp6kBxZzu6KWmfFNGwC/G2K4zDHf@public.gmane.org>
Subject: Re: [PATCH V2 2/4] pwr: make nouveau_pwr_pgob() non-static
Date: Mon, 5 Jan 2015 09:30:11 +0800 [thread overview]
Message-ID: <54A9E923.1020602@nvidia.com> (raw)
In-Reply-To: <CACAvsv771pkd+p6eEQPCyYBXzL+YmCOg9CeMQ8Gghe_2=d2r9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi,
On 01/05/2015 06:29 AM, Ben Skeggs wrote:
> On Tue, Dec 23, 2014 at 11:37 AM, Vince Hsu <vinceh@nvidia.com> wrote:
>> On 12/22/2014 05:11 PM, Vince Hsu wrote:
>>> 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
>
>>> Signed-off-by: Vince Hsu <vinceh@nvidia.com>
>>> ---
>>>
>>> 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(-)
>>>
>>> diff --git a/nvkm/subdev/pwr/base.c b/nvkm/subdev/pwr/base.c
>>> index 0ab55f27ec45..1ea433a5e118 100644
>>> --- a/nvkm/subdev/pwr/base.c
>>> +++ b/nvkm/subdev/pwr/base.c
>>> @@ -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);
>>> diff --git a/nvkm/subdev/pwr/priv.h b/nvkm/subdev/pwr/priv.h
>>> index 3814a341db32..86149d9a440c 100644
>>> --- a/nvkm/subdev/pwr/priv.h
>>> +++ b/nvkm/subdev/pwr/priv.h
>>> @@ -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
>> Nouveau@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2015-01-05 1:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 9:11 [PATCH V2 1/4] clk: allow non-blocking for nouveau_clock_astate() Vince Hsu
[not found] ` <1419239500-19703-1-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-12-22 9:11 ` [PATCH V2 2/4] pwr: make nouveau_pwr_pgob() non-static Vince Hsu
[not found] ` <1419239500-19703-2-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-12-23 1:37 ` Vince Hsu
[not found] ` <5498C743.9060402-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-01-04 22:29 ` Ben Skeggs
[not found] ` <CACAvsv771pkd+p6eEQPCyYBXzL+YmCOg9CeMQ8Gghe_2=d2r9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-05 1:30 ` Vince Hsu [this message]
2014-12-22 9:11 ` [PATCH V2 3/4] pwr: add support for GK20A Vince Hsu
2014-12-22 9:11 ` [PATCH V2 4/4] clk: allow users to enable auto mode when loading driver Vince Hsu
2015-01-07 5:10 ` [PATCH V2 1/4] clk: allow non-blocking for nouveau_clock_astate() Vince Hsu
[not found] ` <54ACBFDC.4000603-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-01-07 11:22 ` Ben Skeggs
[not found] ` <CACAvsv7ej-nd-x8stSvH8uHVu0W1p1A+O4mQJDV1yc76cUgcKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-07 14:14 ` Vince Hsu
2015-01-07 15:34 ` Martin Peres
[not found] ` <54AD51F6.8090001-GANU6spQydw@public.gmane.org>
2015-01-08 1:55 ` Vince Hsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54A9E923.1020602@nvidia.com \
--to=vinceh-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=seven-FA6nBp6kBxZzu6KWmfFNGwC/G2K4zDHf@public.gmane.org \
--cc=skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.