even though nothing is currently broken, make sure that boot_info
is set on all CPUs.
Ref:
"Message-ID: <CAFEAcA_NMWuA8WSs3cNeY6xX1kerO_uAcN_3=fK02BEhHJW86g@mail.gmail.com>"
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
hw/arm/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index ad71dd4..144abbd 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -1139,7 +1139,7 @@ void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info)
}
info->is_linux = is_linux;
- for (cs = CPU(cpu); cs; cs = CPU_NEXT(cs)) {
+ for (cs = first_cpu; cs; cs = CPU_NEXT(cs)) {
ARM_CPU(cs)->env.boot_info = info;
}
--
2.7.4
On 1 May 2018 at 13:08, Igor Mammedov <imammedo@redhat.com> wrote: > even though nothing is currently broken, make sure that boot_info > is set on all CPUs. > > Ref: > "Message-ID: <CAFEAcA_NMWuA8WSs3cNeY6xX1kerO_uAcN_3=fK02BEhHJW86g@mail.gmail.com>" Can you include the rationale in the commit message rather than just pointing to a message-id, please? > > Signed-off-by: Igor Mammedov <imammedo@redhat.com> > -- Otherwise Reviewed-by: Peter Maydell <peter.maydell@linaro.org> thanks -- PMM
On Tue, 1 May 2018 13:19:12 +0100 Peter Maydell <peter.maydell@linaro.org> wrote: > On 1 May 2018 at 13:08, Igor Mammedov <imammedo@redhat.com> wrote: > > even though nothing is currently broken, make sure that boot_info > > is set on all CPUs. > > > > Ref: > > "Message-ID: <CAFEAcA_NMWuA8WSs3cNeY6xX1kerO_uAcN_3=fK02BEhHJW86g@mail.gmail.com>" > > Can you include the rationale in the commit message rather > than just pointing to a message-id, please? sure, I'll post it reply here. BTW: I'm expecting this being merged through ARM tree > > > > Signed-off-by: Igor Mammedov <imammedo@redhat.com> > > -- > > Otherwise > Reviewed-by: Peter Maydell <peter.maydell@linaro.org> > > thanks > -- PMM
Even though nothing is currently broken (since all boards
use first_cpu as boot cpu), make sure that boot_info is set
on all CPUs.
If some board would like support heterogenuos setup (i.e.
init boot_info on subset of CPUs) in future, it should add
a reasonable API to do it, instead of starting assigning
boot_info from some CPU and till the end of present CPUs
list.
Ref:
"Message-ID: <CAFEAcA_NMWuA8WSs3cNeY6xX1kerO_uAcN_3=fK02BEhHJW86g@mail.gmail.com>"
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index ad71dd4..144abbd 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -1139,7 +1139,7 @@ void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info)
}
info->is_linux = is_linux;
- for (cs = CPU(cpu); cs; cs = CPU_NEXT(cs)) {
+ for (cs = first_cpu; cs; cs = CPU_NEXT(cs)) {
ARM_CPU(cs)->env.boot_info = info;
}
--
2.7.4
On 1 May 2018 at 14:44, Igor Mammedov <imammedo@redhat.com> wrote: > Even though nothing is currently broken (since all boards > use first_cpu as boot cpu), make sure that boot_info is set > on all CPUs. > If some board would like support heterogenuos setup (i.e. > init boot_info on subset of CPUs) in future, it should add > a reasonable API to do it, instead of starting assigning > boot_info from some CPU and till the end of present CPUs > list. It's a bit confusing to only send one patch rather than the whole set -- our automated patch application and testing tooling gets confused. I noticed this one by chance because I was skimming the commit log for v3 and noticed that it was missing this text. If the change had been in code rather than in the commit message I would probably not have picked it up... thanks -- PMM
On Thu, 3 May 2018 16:03:09 +0100 Peter Maydell <peter.maydell@linaro.org> wrote: > On 1 May 2018 at 14:44, Igor Mammedov <imammedo@redhat.com> wrote: > > Even though nothing is currently broken (since all boards > > use first_cpu as boot cpu), make sure that boot_info is set > > on all CPUs. > > If some board would like support heterogenuos setup (i.e. > > init boot_info on subset of CPUs) in future, it should add > > a reasonable API to do it, instead of starting assigning > > boot_info from some CPU and till the end of present CPUs > > list. > > It's a bit confusing to only send one patch rather than the > whole set -- our automated patch application and testing > tooling gets confused. I noticed this one by chance because > I was skimming the commit log for v3 and noticed that it was > missing this text. If the change had been in code rather than > in the commit message I would probably not have picked it up... I wanted to not to spam too much list with respin of whole series for commit message fixup, sending fixed up vX as reply is usually ok for x86 trees but it's up to a maintainer preference. Next time for fixups, I'll respin whole series if it's intended to go via ARM tree. > thanks > -- PMM
© 2016 - 2025 Red Hat, Inc.