[PATCH] hw/arm/npcm7xx: remove setting of mp-affinity

Dorjoy Chowdhury posted 1 patch 2 weeks, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240504141733.14813-1-dorjoychy111@gmail.com
Maintainers: Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Peter Maydell <peter.maydell@linaro.org>
hw/arm/npcm7xx.c | 3 ---
1 file changed, 3 deletions(-)
[PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
Posted by Dorjoy Chowdhury 2 weeks, 1 day ago
The value of the mp-affinity property being set in npcm7xx_realize is
always the same as the default value it would have when arm_cpu_realizefn
is called if the property is not set here. So there is no need to set
the property value in npcm7xx_realize function.

Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
---
 hw/arm/npcm7xx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c
index 9f2d96c733..cb7791301b 100644
--- a/hw/arm/npcm7xx.c
+++ b/hw/arm/npcm7xx.c
@@ -487,9 +487,6 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp)
 
     /* CPUs */
     for (i = 0; i < nc->num_cpus; i++) {
-        object_property_set_int(OBJECT(&s->cpu[i]), "mp-affinity",
-                                arm_build_mp_affinity(i, NPCM7XX_MAX_NUM_CPUS),
-                                &error_abort);
         object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar",
                                 NPCM7XX_GIC_CPU_IF_ADDR, &error_abort);
         object_property_set_bool(OBJECT(&s->cpu[i]), "reset-hivecs", true,
-- 
2.39.2
Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
Posted by Peter Maydell 1 week, 5 days ago
On Sat, 4 May 2024 at 15:17, Dorjoy Chowdhury <dorjoychy111@gmail.com> wrote:
>
> The value of the mp-affinity property being set in npcm7xx_realize is
> always the same as the default value it would have when arm_cpu_realizefn
> is called if the property is not set here. So there is no need to set
> the property value in npcm7xx_realize function.
>
> Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
> ---



Applied to target-arm.next, thanks.

-- PMM
Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
Posted by Richard Henderson 2 weeks, 1 day ago
On 5/4/24 07:17, Dorjoy Chowdhury wrote:
> The value of the mp-affinity property being set in npcm7xx_realize is
> always the same as the default value it would have when arm_cpu_realizefn
> is called if the property is not set here. So there is no need to set
> the property value in npcm7xx_realize function.
> 
> Signed-off-by: Dorjoy Chowdhury<dorjoychy111@gmail.com>
> ---
>   hw/arm/npcm7xx.c | 3 ---
>   1 file changed, 3 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
Posted by Philippe Mathieu-Daudé 1 week, 6 days ago
On 4/5/24 16:32, Richard Henderson wrote:
> On 5/4/24 07:17, Dorjoy Chowdhury wrote:
>> The value of the mp-affinity property being set in npcm7xx_realize is
>> always the same as the default value it would have when arm_cpu_realizefn
>> is called if the property is not set here. So there is no need to set
>> the property value in npcm7xx_realize function.
>>
>> Signed-off-by: Dorjoy Chowdhury<dorjoychy111@gmail.com>
>> ---
>>   hw/arm/npcm7xx.c | 3 ---
>>   1 file changed, 3 deletions(-)

Implicitly in
https://lore.kernel.org/qemu-devel/20231212162935.42910-31-philmd@linaro.org/

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>