irqchip/gicv3-its: remove GITS_BASER_TYPE_CPU base on latest specification
Subsystems (2)
PATCH 1/1 irqchip/gicv3-its: remove GITS_BASER_TYPE_CPU base on latest specification
Acutally, "Interrupt Collections" and "Physical Processors" is the same thing.
--- drivers/irqchip/irq-gic-v3-its.c | 2 +- include/linux/irqchip/arm-gic-v3.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-gic-v3-its.c +1 -1
@@ -777,7 +777,7 @@ static int __init its_alloc_lpi_tables(void)static const char *its_base_type_string[] = { [GITS_BASER_TYPE_DEVICE ] ="Devices" , [GITS_BASER_TYPE_VCPU ] ="Virtual CPUs" , - [GITS_BASER_TYPE_CPU ] ="Physical CPUs" , + [GITS_BASER_TYPE_RESERVED3 ] ="Reserved (3)" , [GITS_BASER_TYPE_COLLECTION ] ="Interrupt Collections" , [GITS_BASER_TYPE_RESERVED5 ] ="Reserved (5)" , [GITS_BASER_TYPE_RESERVED6 ] ="Reserved (6)" ,
include/linux/irqchip/arm-gic-v3.h +1 -1
@@ -233,7 +233,7 @@#define GITS_BASER_TYPE_NONE 0#define GITS_BASER_TYPE_DEVICE 1#define GITS_BASER_TYPE_VCPU 2 -#define GITS_BASER_TYPE_CPU 3 +#define GITS_BASER_TYPE_RESERVED3 3#define GITS_BASER_TYPE_COLLECTION 4#define GITS_BASER_TYPE_RESERVED5 5#define GITS_BASER_TYPE_RESERVED6 6
--
1.8.0
Zhen Lei,
Quoted 2 lines · Zhen Lei
Acutally, "Interrupt Collections" and "Physical Processors" is the same thing.
I'm sorry, but this isn't clear.
Quoted 11 lines
Signed-off-by Zhen Lei <[email protected]>--- drivers/irqchip/irq-gic-v3-its.c | 2 +- include/linux/irqchip/arm-gic-v3.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/irqchip/irq-gic-v3-its.c +0
-0
drivers/irqchip/irq-gic-v3-its.c static int __init its_alloc_lpi_tables(void) · line 780
Quoted 5 lines
drivers/irqchip/irq-gic-v3-its.c +1
-1@@ -777,7 +777,7 @@ static int __init its_alloc_lpi_tables(void)static const char *its_base_type_string[] = { [GITS_BASER_TYPE_DEVICE ] ="Devices" , [GITS_BASER_TYPE_VCPU ] ="Virtual CPUs" , - [GITS_BASER_TYPE_CPU ] ="Physical CPUs" , + [GITS_BASER_TYPE_RESERVED3 ] ="Reserved (3)" ,
Are you fixing a bug? Was the old information wrong? Did the spec get revised?
Please redo your commit message to explain why this change is necessary and what it's doing.
Quoted 17 lines
drivers/irqchip/irq-gic-v3-its.c +0
-0[GITS_BASER_TYPE_COLLECTION] = "Interrupt Collections", [GITS_BASER_TYPE_RESERVED5] = "Reserved (5)", [GITS_BASER_TYPE_RESERVED6] = "Reserved (6)",include/linux/irqchip/arm-gic-v3.h +1
-2@@ -233,7 +233,7 @@#define GITS_BASER_TYPE_NONE 0#define GITS_BASER_TYPE_DEVICE 1#define GITS_BASER_TYPE_VCPU 2 -#define GITS_BASER_TYPE_CPU 3 +#define GITS_BASER_TYPE_RESERVED3 3#define GITS_BASER_TYPE_COLLECTION 4#define GITS_BASER_TYPE_RESERVED5 5#define GITS_BASER_TYPE_RESERVED6 6 --
Quoted 1 line
1.8.0
thx,
Jason.
Quoted 14 lines · Jason Cooper
Zhen Lei,
Quoted 2 lines · Zhen Lei
Acutally, "Interrupt Collections" and "Physical Processors" is the same thing.
I'm sorry, but this isn't clear.
Quoted 6 lines
Signed-off-by Zhen Lei <[email protected]>--- drivers/irqchip/irq-gic-v3-its.c | 2 +- include/linux/irqchip/arm-gic-v3.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Quoted 13 lines
drivers/irqchip/irq-gic-v3-its.c static int __init its_alloc_lpi_tables(void) · line 780
Quoted 10 lines
drivers/irqchip/irq-gic-v3-its.c +1
-1@@ -777,7 +777,7 @@ static int __init its_alloc_lpi_tables(void)static const char *its_base_type_string[] = { [GITS_BASER_TYPE_DEVICE ] ="Devices" , [GITS_BASER_TYPE_VCPU ] ="Virtual CPUs" , - [GITS_BASER_TYPE_CPU ] ="Physical CPUs" , + [GITS_BASER_TYPE_RESERVED3 ] ="Reserved (3)" ,Are you fixing a bug? Was the old information wrong? Did the spec get revised?
In spec version 19.0, clause 5.12.13 GITS_BASERn. The "Type" field define value=0x3 means:0x3. Physical Processors. This register corresponds to a table that scales according to the number of physical processors in the system and requires (Entry-size * number-of-processors) bytes of memory.
In spec version 24.0, clause 5.12.13 GITS_BASERn. The "Type" field define value=0x3 as reserved:0x3. Reserved.
Quoted 3 lines
Please redo your commit message to explain why this change is necessary and what it's doing.
OK, thank you for your advise.
Quoted 26 lines
Quoted 18 lines
drivers/irqchip/irq-gic-v3-its.c +0
-0[GITS_BASER_TYPE_COLLECTION] = "Interrupt Collections", [GITS_BASER_TYPE_RESERVED5] = "Reserved (5)", [GITS_BASER_TYPE_RESERVED6] = "Reserved (6)",include/linux/irqchip/arm-gic-v3.h +1
-2@@ -233,7 +233,7 @@#define GITS_BASER_TYPE_NONE 0#define GITS_BASER_TYPE_DEVICE 1#define GITS_BASER_TYPE_VCPU 2 -#define GITS_BASER_TYPE_CPU 3 +#define GITS_BASER_TYPE_RESERVED3 3#define GITS_BASER_TYPE_COLLECTION 4#define GITS_BASER_TYPE_RESERVED5 5#define GITS_BASER_TYPE_RESERVED6 6 --Quoted 1 line
1.8.0
thx,
Jason.
.