powerpc/powernv: Print the M64 range information
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
@@ -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
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.
Signed-off-by Wei Yang <[email protected]>---
arch/powerpc/platforms/powernv/pci-ioda.c| 3 +++1 file changed, 3 insertions(+)arch/powerpc/platforms/powernv/pci-ioda.c +0
-0
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
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.
Signed-off-by Wei Yang <[email protected]>---
arch/powerpc/platforms/powernv/pci-ioda.c| 3 +++1 file changed, 3 insertions(+)arch/powerpc/platforms/powernv/pci-ioda.c +0
-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;
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,
GavinQuoted 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
Gavin Shan
Reviewed-byQuoted 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
Signed-off-by Wei Yang <[email protected]>---
arch/powerpc/platforms/powernv/pci-ioda.c| 3 +++1 file changed, 3 insertions(+)arch/powerpc/platforms/powernv/pci-ioda.c +0
-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;
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
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
Signed-off-by Wei Yang <[email protected]>---
arch/powerpc/platforms/powernv/pci-ioda.c| 3 +++1 file changed, 3 insertions(+)arch/powerpc/platforms/powernv/pci-ioda.c +0
-0arch/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 ...)" withpr_info. Could you please send updated version and include following line if you want:
Sure, glad to.
Quoted 5 lines
Reviewed-by Gavin Shan <[email protected]>Thanks,
Gavin
Signature · 2 lines
Richard Yang Help you, Help me
PATCH 1/1 powerpc/powernv: Print the M64 range information in bootup log
In reply to Gavin ShanThe 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
@@ -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