diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 13:23:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 13:23:53 -0400 |
| commit | ebc8eca169be0283d5a7ab54c4411dd59cfb0f27 (patch) | |
| tree | 831f6d577da3469e3154bf29409281c640bb67df /lib | |
| parent | 25c1a411e8a0a709abe3449866125dc290711ea8 (diff) | |
| parent | 9ff9a26b786c35ee8d2a66222924a807ec851a9f (diff) | |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (180 commits)
powerpc: clean up ssi.txt, add definition for fsl,ssi-asynchronous
powerpc/85xx: Add support for the "socrates" board (MPC8544).
powerpc: Fix bugs introduced by sysfs changes
powerpc: Sanitize stack pointer in signal handling code
powerpc: Add write barrier before enabling DTL flags
powerpc/83xx: Update ranges in gianfar node to match other dts
powerpc/86xx: Move gianfar mdio nodes under the ethernet nodes
powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes
powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes
powerpc/83xx: Add power management support for MPC837x boards
powerpc/mm: Introduce early_init_mmu() on 64-bit
powerpc/mm: Add option for non-atomic PTE updates to ppc64
powerpc/mm: Fix printk type warning in mmu_context_nohash
powerpc/mm: Rename arch/powerpc/kernel/mmap.c to mmap_64.c
powerpc/mm: Merge various PTE bits and accessors definitions
powerpc/mm: Tweak PTE bit combination definitions
powerpc/cell: Fix iommu exception reporting
powerpc/mm: e300c2/c3/c4 TLB errata workaround
powerpc/mm: Used free register to save a few cycles in SW TLB miss handling
powerpc/mm: Remove unused register usage in SW TLB miss handling
...
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lmb.c | 42 |
1 files changed, 21 insertions, 21 deletions
| @@ -29,33 +29,33 @@ static int __init early_lmb(char *p) | |||
| 29 | } | 29 | } |
| 30 | early_param("lmb", early_lmb); | 30 | early_param("lmb", early_lmb); |
| 31 | 31 | ||
| 32 | void lmb_dump_all(void) | 32 | static void lmb_dump(struct lmb_region *region, char *name) |
| 33 | { | 33 | { |
| 34 | unsigned long i; | 34 | unsigned long long base, size; |
| 35 | int i; | ||
| 36 | |||
| 37 | pr_info(" %s.cnt = 0x%lx\n", name, region->cnt); | ||
| 38 | |||
| 39 | for (i = 0; i < region->cnt; i++) { | ||
| 40 | base = region->region[i].base; | ||
| 41 | size = region->region[i].size; | ||
| 42 | |||
| 43 | pr_info(" %s[0x%x]\t0x%016llx - 0x%016llx, 0x%llx bytes\n", | ||
| 44 | name, i, base, base + size - 1, size); | ||
| 45 | } | ||
| 46 | } | ||
| 35 | 47 | ||
| 48 | void lmb_dump_all(void) | ||
| 49 | { | ||
| 36 | if (!lmb_debug) | 50 | if (!lmb_debug) |
| 37 | return; | 51 | return; |
| 38 | 52 | ||
| 39 | pr_info("lmb_dump_all:\n"); | 53 | pr_info("LMB configuration:\n"); |
| 40 | pr_info(" memory.cnt = 0x%lx\n", lmb.memory.cnt); | 54 | pr_info(" rmo_size = 0x%llx\n", (unsigned long long)lmb.rmo_size); |
| 41 | pr_info(" memory.size = 0x%llx\n", | 55 | pr_info(" memory.size = 0x%llx\n", (unsigned long long)lmb.memory.size); |
| 42 | (unsigned long long)lmb.memory.size); | ||
| 43 | for (i=0; i < lmb.memory.cnt ;i++) { | ||
| 44 | pr_info(" memory.region[0x%lx].base = 0x%llx\n", | ||
| 45 | i, (unsigned long long)lmb.memory.region[i].base); | ||
| 46 | pr_info(" .size = 0x%llx\n", | ||
| 47 | (unsigned long long)lmb.memory.region[i].size); | ||
| 48 | } | ||
| 49 | 56 | ||
| 50 | pr_info(" reserved.cnt = 0x%lx\n", lmb.reserved.cnt); | 57 | lmb_dump(&lmb.memory, "memory"); |
| 51 | pr_info(" reserved.size = 0x%llx\n", | 58 | lmb_dump(&lmb.reserved, "reserved"); |
| 52 | (unsigned long long)lmb.memory.size); | ||
| 53 | for (i=0; i < lmb.reserved.cnt ;i++) { | ||
| 54 | pr_info(" reserved.region[0x%lx].base = 0x%llx\n", | ||
| 55 | i, (unsigned long long)lmb.reserved.region[i].base); | ||
| 56 | pr_info(" .size = 0x%llx\n", | ||
| 57 | (unsigned long long)lmb.reserved.region[i].size); | ||
| 58 | } | ||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | static unsigned long lmb_addrs_overlap(u64 base1, u64 size1, u64 base2, | 61 | static unsigned long lmb_addrs_overlap(u64 base1, u64 size1, u64 base2, |
