Skip to contentSkip to conversation

powerpc/powernv: Print the M64 range information

PATCH In review Wei Yang 2 participants 6 messages Dec 10, 2014 – Dec 12, 2014 PowerPC

lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 powerpc/powernv: Print the M64 range information

The M64 range information is missed, which would be helpful in debug.

This patch print the M64 range information in the same format as M32.

---
 arch/powerpc/platforms/powernv/pci-ioda.c |    3 +++
 1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
index 21c8b4d..34f1a27 100644
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
+	printk(KERN_INFO " MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+
 	/* Use last M64 BAR to cover M64 window */
 	phb->ioda.m64_bar_idx = 15;
 	phb->init_m64 = pnv_ioda2_init_m64;
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 14 lines · Wei Yang

The M64 range information is missed, which would be helpful in debug.

This patch print the M64 range information in the same format as M32.

---
arch/powerpc/platforms/powernv/pci-ioda.c | 3 +++

1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
index 21c8b4d..34f1a27 100644

arch/powerpc/platforms/powernv/pci-ioda.c static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb) · line 374

Quoted 6 lines
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
+	printk(KERN_INFO " MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+

Please output segment size if you think it's helpful as well.

Thanks,
Gavin

Quoted 6 lines
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
 	/* Use last M64 BAR to cover M64 window */
 	phb->ioda.m64_bar_idx = 15;
 	phb->init_m64 = pnv_ioda2_init_m64;
Signature · 1 line
1.7.9.5
author
#2 lore raw
Quoted 18 lines · Gavin Shan
Quoted 17 lines · Wei Yang

The M64 range information is missed, which would be helpful in debug.

This patch print the M64 range information in the same format as M32.

---
arch/powerpc/platforms/powernv/pci-ioda.c | 3 +++

1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
index 21c8b4d..34f1a27 100644
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
Quoted 5 lines

arch/powerpc/platforms/powernv/pci-ioda.c static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb) · line 374

Quoted 3 lines
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
+	printk(KERN_INFO " MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+

Please output segment size if you think it's helpful as well.

The M64 segment size is printed in pnv_pci_init_ioda_phb() line 2620.

Quoted 10 lines

Thanks,
Gavin

Quoted 6 lines
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
 	/* Use last M64 BAR to cover M64 window */
 	phb->ioda.m64_bar_idx = 15;
 	phb->init_m64 = pnv_ioda2_init_m64;
Signature · 1 line
1.7.9.5
Signature · 2 lines
Richard Yang
Help you, Help me
Reviewed-by
#3 lore raw
Quoted 5 lines · Wei Yang
Quoted 4 lines · Gavin Shan
Quoted 3 lines · Wei Yang

The M64 range information is missed, which would be helpful in debug.

This patch print the M64 range information in the same format as M32.

s/print/prints

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

---
arch/powerpc/platforms/powernv/pci-ioda.c | 3 +++

1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
index 21c8b4d..34f1a27 100644
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
Quoted 8 lines
Quoted 5 lines

arch/powerpc/platforms/powernv/pci-ioda.c static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb) · line 374

Quoted 3 lines
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
+	printk(KERN_INFO " MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+

Please output segment size if you think it's helpful as well.

The M64 segment size is printed in pnv_pci_init_ioda_phb() line 2620.

Yes, it has been printed separately. So the change looks good to me after you replace "printk(KERN_INFO ...)" with pr_info. Could you please send updated version and include following line if you want:

Thanks,
Gavin

author
#4 lore raw
Quoted 29 lines · Gavin Shan
Quoted 5 lines · Wei Yang
Quoted 4 lines · Gavin Shan
Quoted 3 lines · Wei Yang

The M64 range information is missed, which would be helpful in debug.

This patch print the M64 range information in the same format as M32.

s/print/prints

Quoted 20 lines
Quoted 19 lines
Quoted 11 lines

---
arch/powerpc/platforms/powernv/pci-ioda.c | 3 +++

1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +0 -0
index 21c8b4d..34f1a27 100644

arch/powerpc/platforms/powernv/pci-ioda.c static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb) · line 374

Quoted 6 lines
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
+	printk(KERN_INFO " MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+

Please output segment size if you think it's helpful as well.

Quoted 6 lines
Quoted 2 lines

The M64 segment size is printed in pnv_pci_init_ioda_phb() line 2620.

Yes, it has been printed separately. So the change looks good to me after you replace "printk(KERN_INFO ...)" with pr_info. Could you please send updated version and include following line if you want:

Sure, glad to.

Quoted 5 lines

Thanks,
Gavin

Signature · 2 lines
Richard Yang
Help you, Help me
author
#5 lore raw

PATCH 1/1 powerpc/powernv: Print the M64 range information in bootup log

In reply to Gavin Shan

The M64 range information is missed in dmesg, which would be helpful in debug.

This patch prints the M64 range information in the same format as M32.

V1:
* use pr_info() instead of printk(KERN_INFO)

---
 arch/powerpc/platforms/powernv/pci-ioda.c |    3 +++
 1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/pci-ioda.c +3 -0
index 21c8b4d..4fbdc7d 100644
@@ -369,6 +369,9 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
 	phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe;
 	phb->ioda.m64_base = pci_addr;
 
+	pr_info(" MEM64 0x%016llx..0x%016llx -> 0x%016llx\n",
+			res->start, res->end, pci_addr);
+
 	/* Use last M64 BAR to cover M64 window */
 	phb->ioda.m64_bar_idx = 15;
 	phb->init_m64 = pnv_ioda2_init_m64;
Signature · 1 line
1.7.9.5