[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5101961.eCg7ixLQWc@vostro.rjw.lan>
Date: Fri, 15 Jul 2016 15:07:08 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Fu Wei <fu.wei@...aro.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Marc Zyngier <marc.zyngier@....com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Sudeep Holla <sudeep.holla@....com>,
Hanjun Guo <hanjun.guo@...aro.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linaro-acpi@...ts.linaro.org" <linaro-acpi@...ts.linaro.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
rruigrok@...eaurora.org, harba@...eaurora.org,
Christopher Covington <cov@...eaurora.org>,
Timur Tabi <timur@...eaurora.org>,
G Gregory <graeme.gregory@...aro.org>,
Al Stone <al.stone@...aro.org>, Jon Masters <jcm@...hat.com>,
wei@...hat.com, Arnd Bergmann <arnd@...db.de>,
Wim Van Sebroeck <wim@...ana.be>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Suravee Suthikulanit <Suravee.Suthikulpanit@....com>,
Leo Duran <leo.duran@....com>,
Guenter Roeck <linux@...ck-us.net>,
"linux-watchdog@...r.kernel.org" <linux-watchdog@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
kvalo@...eaurora.org, Jiri Slaby <jslaby@...e.cz>,
Christoffer Dall <christoffer.dall@...aro.org>,
Julien Grall <julien.grall@....com>
Subject: Re: [PATCH v7 4/9] acpi/arm64: Add GTDT table parse driver
On Friday, July 15, 2016 02:15:27 PM Rafael J. Wysocki wrote:
> On Friday, July 15, 2016 03:32:35 PM Fu Wei wrote:
> > Hi Rafael,
> >
[cut]
> > >
> > >> + return 0;
> > >> + }
> > >> +
> > >> + if (!gtdt->platform_timer_count) {
> > >> + pr_info("No Platform Timer.\n");
> > >> + return 0;
> > >> + }
> > >> +
> > >> + acpi_gtdt_desc.platform_timer_start = (void *)gtdt +
> > >> + gtdt->platform_timer_offset;
> > >> + if (acpi_gtdt_desc.platform_timer_start <
> > >> + (void *)table + sizeof(struct acpi_table_gtdt)) {
> > >> + pr_err(FW_BUG "Platform Timer pointer error.\n");
> > >
> > > Why pr_err()?
> >
> > if (true), that means the GTDT table has bugs.
> >
>
> And that's not a very useful piece of information unless you're debugging the
> platform, is it?
FWIW, I'm not a big fan of printing "your firmware is buggy" type of messages
(especially at the "error" log level or higher) unless they can be clearly
connected to a specific type of functional failure.
So if you want to pring an error-level message, something like "I cannot do X
because of the firmware bug Y" would be better IMO.
Thanks,
Rafael
Powered by blists - more mailing lists