* [PATCH] powerpc/pseries: Provide verbose info about HPT resizing attempt
@ 2019-04-10 7:55 Bharata B Rao
2019-04-10 10:20 ` Michael Ellerman
0 siblings, 1 reply; 3+ messages in thread
From: Bharata B Rao @ 2019-04-10 7:55 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Bharata B Rao, aneesh.kumar, david
When HPT resizing is attempted in response to memory hotplug, we see
the following messages from the kernel:
lpar: Attempting to resize HPT to shift 23
Unable to resize hash page table to target order 23: -28
This gives a feeling as though we are trying to grow HPT but failed and
hence bad things might happen in future. Improve the message a bit
by explicitly printing the existing HPT shift value in addtion to
the newly targeted value so that it is clear that we haven't failed
to grow HPT. After this commit, the same message will appear like this:
lpar: Attempting to resize HPT from shift 25 to 23
Unable to resize hash page table to target order 23: -28
Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
---
arch/powerpc/platforms/pseries/lpar.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
index f2a9f0adc2d3..ecc7fa1876a9 100644
--- a/arch/powerpc/platforms/pseries/lpar.c
+++ b/arch/powerpc/platforms/pseries/lpar.c
@@ -875,7 +875,8 @@ static int pseries_lpar_resize_hpt(unsigned long shift)
if (!firmware_has_feature(FW_FEATURE_HPT_RESIZE))
return -ENODEV;
- pr_info("Attempting to resize HPT to shift %lu\n", shift);
+ pr_info("Attempting to resize HPT from shift %llu to %lu\n", ppc64_pft_size,
+ shift);
t0 = ktime_get();
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/pseries: Provide verbose info about HPT resizing attempt
2019-04-10 10:20 ` Michael Ellerman
@ 2019-04-10 9:49 ` Bharata B Rao
0 siblings, 0 replies; 3+ messages in thread
From: Bharata B Rao @ 2019-04-10 9:49 UTC (permalink / raw)
To: Michael Ellerman; +Cc: Laurent Vivier, linuxppc-dev, aneesh.kumar, david
On Wed, Apr 10, 2019 at 08:20:53PM +1000, Michael Ellerman wrote:
> Bharata B Rao <bharata@linux.ibm.com> writes:
>
> > When HPT resizing is attempted in response to memory hotplug, we see
> > the following messages from the kernel:
> >
> > lpar: Attempting to resize HPT to shift 23
> > Unable to resize hash page table to target order 23: -28
> >
> > This gives a feeling as though we are trying to grow HPT but failed and
> > hence bad things might happen in future. Improve the message a bit
> > by explicitly printing the existing HPT shift value in addtion to
> > the newly targeted value so that it is clear that we haven't failed
> > to grow HPT. After this commit, the same message will appear like this:
> >
> > lpar: Attempting to resize HPT from shift 25 to 23
> > Unable to resize hash page table to target order 23: -28
> >
> > Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
>
> I'd be inclined to just remove the "Attempting .." message.
>
> But I have this patch from Laurent queued, which already reworks things:
>
> https://patchwork.ozlabs.org/patch/1055996/
>
>
> Does that address your problem?
Yes, I should have seen this earlier.
Regards,
Bharata.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/pseries: Provide verbose info about HPT resizing attempt
2019-04-10 7:55 [PATCH] powerpc/pseries: Provide verbose info about HPT resizing attempt Bharata B Rao
@ 2019-04-10 10:20 ` Michael Ellerman
2019-04-10 9:49 ` Bharata B Rao
0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2019-04-10 10:20 UTC (permalink / raw)
To: Bharata B Rao, linuxppc-dev
Cc: Laurent Vivier, david, aneesh.kumar, Bharata B Rao
Bharata B Rao <bharata@linux.ibm.com> writes:
> When HPT resizing is attempted in response to memory hotplug, we see
> the following messages from the kernel:
>
> lpar: Attempting to resize HPT to shift 23
> Unable to resize hash page table to target order 23: -28
>
> This gives a feeling as though we are trying to grow HPT but failed and
> hence bad things might happen in future. Improve the message a bit
> by explicitly printing the existing HPT shift value in addtion to
> the newly targeted value so that it is clear that we haven't failed
> to grow HPT. After this commit, the same message will appear like this:
>
> lpar: Attempting to resize HPT from shift 25 to 23
> Unable to resize hash page table to target order 23: -28
>
> Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
I'd be inclined to just remove the "Attempting .." message.
But I have this patch from Laurent queued, which already reworks things:
https://patchwork.ozlabs.org/patch/1055996/
Does that address your problem?
cheers
> diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
> index f2a9f0adc2d3..ecc7fa1876a9 100644
> --- a/arch/powerpc/platforms/pseries/lpar.c
> +++ b/arch/powerpc/platforms/pseries/lpar.c
> @@ -875,7 +875,8 @@ static int pseries_lpar_resize_hpt(unsigned long shift)
> if (!firmware_has_feature(FW_FEATURE_HPT_RESIZE))
> return -ENODEV;
>
> - pr_info("Attempting to resize HPT to shift %lu\n", shift);
> + pr_info("Attempting to resize HPT from shift %llu to %lu\n", ppc64_pft_size,
> + shift);
>
> t0 = ktime_get();
>
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-10 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-10 7:55 [PATCH] powerpc/pseries: Provide verbose info about HPT resizing attempt Bharata B Rao
2019-04-10 10:20 ` Michael Ellerman
2019-04-10 9:49 ` Bharata B Rao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).