Skip to contentSkip to conversation

Niagara2 & Could not register hvapi ATU err=-22

DISCUSSION Meelis Roos 3 participants 3 messages Aug 15, 2017 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

I noticed that on Niagara2, dmesg has a red error about ATU registration:

[    4.579231] pci_sun4v: Could not register hvapi ATU err=-22

This is preceded by info line

[    4.578073] pci_sun4v: Registered hvapi major[1] minor[0]

As I understand, there is no ATU on Niagara1 & Niagara2 sun4v platforms, so there is no point in trying to log an error to dmesg in that case?

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw
Quoted 10 lines · Meelis Roos

I noticed that on Niagara2, dmesg has a red error about ATU registration:

[    4.579231] pci_sun4v: Could not register hvapi ATU err=-22

This is preceded by info line

[    4.578073] pci_sun4v: Registered hvapi major[1] minor[0]

As I understand, there is no ATU on Niagara1 & Niagara2 sun4v platforms, so there is no point in trying to log an error to dmesg in that case?

You are right.
IMO, we should not log ATU hvapi registration failure message at all. Unlike PCI hvapi, ATU hvapi registration failure is not *hard error*. Even if ATU hvapi registration fails (on system with ATU or without ATU) system continues with legacy IOMMU.
So I think log message only when ATU is registered successfully.

arch/sparc/kernel/pci_sun4v.c +0 -2
index f10e2f7..9ebebf1 100644
@@ -1266,8 +1266,6 @@ static int pci_sun4v_probe(struct platform_device *op)
                          * ATU group, but ATU hcalls won't be available.
                          */
                         hv_atu = false;
-                       pr_err(PFX "Could not register hvapi ATU err=%d\n",
-                              err);
                 } else {
                         pr_info(PFX "Registered hvapi ATU major[%lu] 

minor[%lu]\n",

                                 vatu_major, vatu_minor);

-Tushar

maintainer
#2 lore raw
In reply to Meelis Roos

From: Tushar Dave <[email protected]>
Date: Tue, 15 Aug 2017 15:07:35 -0700

Quoted 11 lines · Meelis Roos
Quoted 8 lines

I noticed that on Niagara2, dmesg has a red error about ATU registration:

[    4.579231] pci_sun4v: Could not register hvapi ATU err=-22
This is preceded by info line
[    4.578073] pci_sun4v: Registered hvapi major[1] minor[0]

As I understand, there is no ATU on Niagara1 & Niagara2 sun4v platforms,
so there is no point in trying to log an error to dmesg in that case?

Quoted 7 lines

You are right.
IMO, we should not log ATU hvapi registration failure message at all. Unlike PCI hvapi, ATU hvapi registration failure is not *hard error*.
Even if ATU hvapi registration fails (on system with ATU or without ATU) system continues with legacy IOMMU.
So I think log message only when ATU is registered successfully.

Please submit this formally.

Thank you.