Skip to contentSkip to conversation

soc: ti: qmss: fix the case when !SMP

PATCH Applied Grygorii Strashko 3 participants 4 messages Nov 30, 2016 TI Keystone multicore navigator drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 soc: ti: qmss: fix the case when !SMP

The irq_set_affinity_hint() will always fail when !SMP and Networking will fail on Keystone 2 devices in this case. Hence, fix by ignoring IRQ affinity settings when !SMP.

---
 drivers/soc/ti/knav_qmss_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
index b73e353..eacad57 100644
@@ -1228,7 +1228,7 @@ static int knav_setup_queue_range(struct knav_device *kdev,
 
 		range->num_irqs++;
 
-		if (oirq.args_count == 3)
+		if (IS_ENABLED(CONFIG_SMP) && oirq.args_count == 3)
 			range->irqs[i].cpu_map =
 				(oirq.args[2] & 0x0000ff00) >> 8;
 	}
Signature · 1 line
2.10.1
#1 lore raw

+ Santosh Shilimkar <[email protected]>

Quoted 24 lines · Grygorii Strashko

The irq_set_affinity_hint() will always fail when !SMP and Networking will fail on Keystone 2 devices in this case. Hence, fix by ignoring IRQ affinity settings when !SMP.

---
 drivers/soc/ti/knav_qmss_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
index b73e353..eacad57 100644
@@ -1228,7 +1228,7 @@ static int knav_setup_queue_range(struct knav_device *kdev,
 
 		range->num_irqs++;
 
-		if (oirq.args_count == 3)
+		if (IS_ENABLED(CONFIG_SMP) && oirq.args_count == 3)
 			range->irqs[i].cpu_map =
 				(oirq.args[2] & 0x0000ff00) >> 8;
 	}
Signature · 2 lines
regards,
-grygorii
#2 lore raw

Hi Anrd,

Can you apply this to your non critical fixes queue ?

Quoted 10 lines · Grygorii Strashko

+ Santosh Shilimkar <[email protected]>

Quoted 7 lines · Grygorii Strashko

The irq_set_affinity_hint() will always fail when !SMP and Networking will fail on Keystone 2 devices in this case. Hence, fix by ignoring IRQ affinity settings when !SMP.

---

Quoted 20 lines
Quoted 19 lines
 drivers/soc/ti/knav_qmss_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
index b73e353..eacad57 100644
@@ -1228,7 +1228,7 @@ static int knav_setup_queue_range(struct
 knav_device *kdev,
 
         range->num_irqs++;
 
-        if (oirq.args_count == 3)
+        if (IS_ENABLED(CONFIG_SMP) && oirq.args_count == 3)
             range->irqs[i].cpu_map =
                 (oirq.args[2] & 0x0000ff00) >> 8;
     }
#3 lore raw
Quoted 7 lines · CET Santosh Shilimkar

Can you apply this to your non critical fixes queue ?

Quoted 3 lines · Grygorii Strashko

+ Santosh Shilimkar <[email protected]>

On 11/30/2016 10:53 AM, Grygorii Strashko wrote:

Quoted 10 lines
Quoted 7 lines
Quoted 7 lines

The irq_set_affinity_hint() will always fail when !SMP and Networking will fail on Keystone 2 devices in this case. Hence, fix by ignoring IRQ affinity settings when !SMP.

---

Applied, thanks!

Arnd