From: Mark Salter <msalter@redhat.com> To: Catalin Marinas <catalin.marinas@arm.com>, Hanjun Guo <hanjun.guo@linaro.org> Cc: Will Deacon <will.deacon@arm.com>, Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry Date: Thu, 02 Jul 2015 13:40:22 -0400 [thread overview] Message-ID: <1435858822.24502.10.camel@redhat.com> (raw) In-Reply-To: <20150702162940.GF1354@e104818-lin.cambridge.arm.com> On Thu, 2015-07-02 at 17:29 +0100, Catalin Marinas wrote: > On Wed, Jul 01, 2015 at 09:37:23PM +0800, Hanjun Guo wrote: > > It is normal that firmware presents GICC entry or entries (processors) > > with disabled flag in ACPI MADT, taking a system of 16 cpus for example, > > ACPI firmware may present 8 enabled first with another 8 cpus disabled > > in MADT, the disabled cpus can be hot-added later. > > > > Firmware may also present more cpus than the hardware actually has, but > > disabled the unused ones, and easily enable it when the hardware has such > > cpus to make the firmware code scalable. > > > > So that's not an error for disabled cpus in MADT, we can switch > > pr_err() to pr_debug() instead. > > > > Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> > > --- > > arch/arm64/kernel/smp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > > index 4b2121b..5caf04a 100644 > > --- a/arch/arm64/kernel/smp.c > > +++ b/arch/arm64/kernel/smp.c > > @@ -402,7 +402,7 @@ acpi_map_gic_cpu_interface(struct acpi_madt_generic_interrupt *processor) > > } > > > > if (!(processor->flags & ACPI_MADT_ENABLED)) { > > - pr_err("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); > > + pr_debug("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); > > That's a pretty harmless change. But looking at the use-case, would we > expect the disabled entries to have a valid hwid? I guess such hwid is > not known, especially if we can hot-plug some CPU at a later time. If > that's the case, can we also move this check before the hwid one? > Heh, I should have read ahead. I just made the same point in a mail I just sent.
WARNING: multiple messages have this Message-ID (diff)
From: msalter@redhat.com (Mark Salter) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry Date: Thu, 02 Jul 2015 13:40:22 -0400 [thread overview] Message-ID: <1435858822.24502.10.camel@redhat.com> (raw) In-Reply-To: <20150702162940.GF1354@e104818-lin.cambridge.arm.com> On Thu, 2015-07-02 at 17:29 +0100, Catalin Marinas wrote: > On Wed, Jul 01, 2015 at 09:37:23PM +0800, Hanjun Guo wrote: > > It is normal that firmware presents GICC entry or entries (processors) > > with disabled flag in ACPI MADT, taking a system of 16 cpus for example, > > ACPI firmware may present 8 enabled first with another 8 cpus disabled > > in MADT, the disabled cpus can be hot-added later. > > > > Firmware may also present more cpus than the hardware actually has, but > > disabled the unused ones, and easily enable it when the hardware has such > > cpus to make the firmware code scalable. > > > > So that's not an error for disabled cpus in MADT, we can switch > > pr_err() to pr_debug() instead. > > > > Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> > > --- > > arch/arm64/kernel/smp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > > index 4b2121b..5caf04a 100644 > > --- a/arch/arm64/kernel/smp.c > > +++ b/arch/arm64/kernel/smp.c > > @@ -402,7 +402,7 @@ acpi_map_gic_cpu_interface(struct acpi_madt_generic_interrupt *processor) > > } > > > > if (!(processor->flags & ACPI_MADT_ENABLED)) { > > - pr_err("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); > > + pr_debug("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); > > That's a pretty harmless change. But looking at the use-case, would we > expect the disabled entries to have a valid hwid? I guess such hwid is > not known, especially if we can hot-plug some CPU at a later time. If > that's the case, can we also move this check before the hwid one? > Heh, I should have read ahead. I just made the same point in a mail I just sent.
next prev parent reply other threads:[~2015-07-02 17:40 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-01 13:37 [PATCH] ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry Hanjun Guo 2015-07-01 13:37 ` Hanjun Guo 2015-07-01 17:02 ` Al Stone 2015-07-01 17:02 ` Al Stone 2015-07-02 16:29 ` Catalin Marinas 2015-07-02 16:29 ` Catalin Marinas 2015-07-02 17:40 ` Mark Salter [this message] 2015-07-02 17:40 ` Mark Salter 2015-07-03 1:15 ` Hanjun Guo 2015-07-02 17:38 ` Mark Salter 2015-07-02 17:38 ` Mark Salter 2015-07-03 1:18 ` Hanjun Guo 2015-07-03 1:18 ` Hanjun Guo
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=1435858822.24502.10.camel@redhat.com \ --to=msalter@redhat.com \ --cc=Lorenzo.Pieralisi@arm.com \ --cc=catalin.marinas@arm.com \ --cc=hanjun.guo@linaro.org \ --cc=linux-acpi@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=rjw@rjwysocki.net \ --cc=will.deacon@arm.com \ /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: linkBe 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.