From: Stewart Smith <stewart@linux.vnet.ibm.com>
To: 蒲文 <wen.pu@powercore.com.cn>,
"Michael Ellerman" <mpe@ellerman.id.au>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] powerpc/opal: add warning for unimplemented OPAL message type
Date: Fri, 11 Dec 2015 11:51:23 +1100 [thread overview]
Message-ID: <8737v9byes.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <tencent_1097DF836527EECD6BF4E6AA@qq.com>
=E8=92=B2=E6=96=87 <wen.pu@powercore.com.cn> writes:
> On Wednesday, December 09, 2015 11:17:12 AM Michael Ellerman wrote:
>> On Tue, 2015-12-08 at 15:30 +0800, wen.pu@powercore.com.cn wrote:
>> > I found that there are unimplemented OPAL message types "OPAL_MSG_EPOW"
>> > and
>> > "OPAL_MSG_DPO" in PowerNV Platform. If skiboot send such messages to
>> > kernel, nothing will happen(notifier_call_chain() will silently drop i=
t).
>> > So I add a warning to inform what has happened, is it necessary?
>>=20
>> What kernel version are you using?
> The kernel version is v4.2.1-openpower2, from the newest version at=20
> https://github.com/open-power/linux.
>
>>=20
>> Looking at mainline (4.4-rc4), I do see handlers registered for EPOW and
>> DPO:
>>=20
>>=20=20
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arc=
h/p
>> owerpc/platforms/powernv/opal-power.c?#n82
>>=20
>> That code was merged in 4.3.
> I do find that EPOW and DPO are registered in kernel 4.3. So maybe in the=
near=20
> future it will be merged into open-power/linux.
Way back in 24366360035a9e0a9870ed7208aa2ba1948f844d where the opal_msg
code was introduced there was a warning added for opal messages that
were unknown... arguably this is actually a bad thing to have these
days... I'll submit a patch to print it *once*.
>> In general I don't think we want to warn for unhandled message types,
>> because we support old kernels running on new skiboot. In that case if we
>> warned on every unhandled message we'd potentially spam the console with
>> warnings.
>>=20
>> But perhaps we can come up with something smarter, that only warns once =
for
>> each unhandled message type, or something like that? Did you have a bug =
that
>> would have been easier to debug with a warning here?
> Yes, I think it is a good idea that only warns once, or warns every a few=
=20
> seconds.=20
> I found that EPOW and DPO only used in IBM FSP platform, not in Habanero=
=20
> platform that I had. So I modified the skiboot code and sent a EPOW/DPO m=
essage=20
> to kernel, and found that kernel warn nothing. I have no bug with a warni=
ng=20
> here, and just get a log message via dmesg.
Currently only FSP platform, yes. No real reason why a BMC based
platform couldn't emit those though.
next prev parent reply other threads:[~2015-12-11 0:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 8:55 [PATCH] powerpc/opal: add warning for unimplemented OPAL message type 蒲文
2015-12-11 0:51 ` Stewart Smith [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-08 7:30 wen.pu
2015-12-09 0:17 ` Michael Ellerman
2015-12-09 8:56 ` Wen Pu
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=8737v9byes.fsf@linux.vnet.ibm.com \
--to=stewart@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=wen.pu@powercore.com.cn \
/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.