x86: PAT followup - Incremental changes and bug fixes
Subsystems (6)
cover x86: PAT followup - Incremental changes and bug fixes
Some incremental changes and bug fixes for PAT patchset. The changes are from the feedback we received earlier. There are few more pending changes that will follow soon.
Thanks,
Venki
PATCH 1/4 x86: PAT followup - Do not fold two bits in _PAGE_PCD
Do not fold PCD and PWT bits in _PAGE_PCD. Instead, introduce a new _PAGE_UC which defines uncached mappings and use it in place of _PAGE_PCD.
arch/x86/mm/ioremap_32.c +1 -1
@@ -173,7 +173,7 @@void __iomem *ioremap_nocache (unsigned long phys_addr,unsigned long size) { -return __ioremap (phys_addr, size, _PAGE_PCD); +return __ioremap (phys_addr, size, _PAGE_UC); }EXPORT_SYMBOL (ioremap_nocache);
arch/x86/mm/ioremap_64.c +1 -1
@@ -150,7 +150,7 @@void __iomem *ioremap_nocache (unsigned long phys_addr,unsigned long size) { -return __ioremap (phys_addr, size, _PAGE_PCD); +return __ioremap (phys_addr, size, _PAGE_UC); }EXPORT_SYMBOL (ioremap_nocache);
arch/x86/mm/pat.c +7 -7
@@ -64,7 +64,7 @@if (smp_processor_id () && !pat_wc_enabled)return ; -/* Set PWT+PCD to Write-Combining. All other bits stay the same */ +/* Set PCD to Write-Combining. All other bits stay the same */ /* PTE encoding used in Linux: PAT |PCD
@@ -72,7 +72,7 @@||| 000 WB default 010 WC _PAGE_WC -011 UC _PAGE_PCD +011 UC _PAGE_UC PAT bit unused */ pat =PAT (0 ,WB ) |PAT (1 ,WT ) |PAT (2 ,WC ) |PAT (3 ,UC ) |PAT (4 ,WB ) |PAT (5 ,WT ) |PAT (6 ,WC ) |PAT (7 ,UC );
@@ -97,7 +97,7 @@ {switch (flags & _PAGE_CACHE_MASK) {case _PAGE_WC:return "write combining" ; -case _PAGE_PCD:return "uncached" ; +case _PAGE_UC:return "uncached" ;case 0 :return "default" ;default :return "broken" ; }
@@ -144,7 +144,7 @@if (!fattr)return -EINVAL ;else - *fattr = _PAGE_PCD; + *fattr = _PAGE_UC; }return 0 ;
@@ -227,13 +227,13 @@unsigned long flags;unsigned long want_flags =0 ;if (file->f_flags &O_SYNC ) - want_flags = _PAGE_PCD; + want_flags = _PAGE_UC;#ifdef CONFIG_X86_32 /* * On the PPro and successors, the MTRRs are used to set * memory types for physical addresses outside main memory, -* so blindly setting PCD or PWT on those pages is wrong. +* so blindly setting UC or PWT on those pages is wrong. * For Pentiums and earlier, the surround logic should disable * caching for the high addresses through the KEN pin, but * we maintain the tradition of paranoia in this code.
@@ -244,7 +244,7 @@ test_bit(X86_FEATURE_CYRIX_ARR, boot_cpu_data.x86_capability) || test_bit(X86_FEATURE_CENTAUR_MCR, boot_cpu_data.x86_capability)) && offset >= __pa(high_memory)) - want_flags = _PAGE_PCD; + want_flags = _PAGE_UC;#endif /* ignore error because we can't handle it here */
arch/x86/pci/i386.c +1 -1
@@ -353,7 +353,7 @@*/ prot =pgprot_val (vma->vm_page_prot);if (boot_cpu_data.x86 >3 ) { - prot |= _PAGE_PCD; + prot |= _PAGE_UC; } vma->vm_page_prot =__pgprot (prot); }
include/asm-x86/pgtable.h +8 -6
@@ -28,14 +28,16 @@#define _PAGE_RW (_AC(1, L)<<_PAGE_BIT_RW)#define _PAGE_USER (_AC(1, L)<<_PAGE_BIT_USER)#define _PAGE_PWT (_AC(1, L)<<_PAGE_BIT_PWT) -#define _PAGE_PCD ((_AC(1, L)<<_PAGE_BIT_PCD) | _PAGE_PWT) +#define _PAGE_PCD (_AC(1, L)<<_PAGE_BIT_PCD)/* Do not use PCD directly */ #define _PAGE_ACCESSED (_AC(1, L)<<_PAGE_BIT_ACCESSED)#define _PAGE_DIRTY (_AC(1, L)<<_PAGE_BIT_DIRTY)#define _PAGE_PSE (_AC(1, L)<<_PAGE_BIT_PSE)/* 2MB page */ #define _PAGE_GLOBAL (_AC(1, L)<<_PAGE_BIT_GLOBAL)/* Global TLB entry */ -/* We redefine PCD to be write combining. PAT bit is not used */ -#define _PAGE_WC ((_AC(1, L)<<_PAGE_BIT_PCD)) -#define _PAGE_CACHE_MASK (_PAGE_PCD) +/* We redefine PCD to be WC, PCD|PWT to be UC. PAT bit is not used */ +#define _PAGE_WC (_PAGE_PCD) +#define _PAGE_UC (_PAGE_PCD | _PAGE_PWT) +#define _PAGE_CACHE_MASK (_PAGE_PCD | _PAGE_PWT) +#define _PAGE_UNUSED1 (_AC(1, L)<<_PAGE_BIT_UNUSED1)#define _PAGE_UNUSED2 (_AC(1, L)<<_PAGE_BIT_UNUSED2)#define _PAGE_UNUSED3 (_AC(1, L)<<_PAGE_BIT_UNUSED3)
@@ -82,9 +84,9 @@#define __PAGE_KERNEL_RO (__PAGE_KERNEL & ~_PAGE_RW)#define __PAGE_KERNEL_RX (__PAGE_KERNEL_EXEC & ~_PAGE_RW) -#define __PAGE_KERNEL_NOCACHE (__PAGE_KERNEL | _PAGE_PCD) +#define __PAGE_KERNEL_NOCACHE (__PAGE_KERNEL | _PAGE_UC)#define __PAGE_KERNEL_VSYSCALL (__PAGE_KERNEL_RX | _PAGE_USER) -#define __PAGE_KERNEL_VSYSCALL_NOCACHE (__PAGE_KERNEL_VSYSCALL | _PAGE_PCD) +#define __PAGE_KERNEL_VSYSCALL_NOCACHE (__PAGE_KERNEL_VSYSCALL | _PAGE_UC)#define __PAGE_KERNEL_LARGE (__PAGE_KERNEL | _PAGE_PSE)#define __PAGE_KERNEL_LARGE_EXEC (__PAGE_KERNEL_EXEC | _PAGE_PSE)
include/asm-x86/pgtable_32.h +1 -1
@@ -121,7 +121,7 @@* it, this is a no-op. */ #define pgprot_noncached (prot) ((boot_cpu_data.x86 > 3) \ - ? (__pgprot(pgprot_val(prot) | _PAGE_PCD)) : (prot)) + ? (__pgprot(pgprot_val(prot) | _PAGE_UC)) : (prot))/* * Macro to make mark a page protection value as "write-combining".
include/asm-x86/pgtable_64.h +1 -1
@@ -170,7 +170,7 @@* and do not allow for consecutive writes to be combined. */ #define pgprot_noncached (prot) \ - __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_MASK) | _PAGE_PCD) + __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_MASK) | _PAGE_UC)/* * Macro to make mark a page protection value as "write-combining".
PATCH 2/4 x86: PAT followup - Remove KERNPG_TABLE from pte entry
In reply to [email protected]KERNPG_TABLE was a bug in earlier patch. Remove it from pte. pte_val() check is redundant as this routine is called immediately after a ptepage is allocated afresh.
arch/x86/mm/init_64.c +2 -5
@@ -541,9 +541,6 @@if (address >= end)break ; -if (pte_val (*pte)) -continue ; -/* Nothing to map. Map the null page */ if (!(address & (~PAGE_MASK)) && (address + PAGE_SIZE <= end) &&
@@ -561,9 +558,9 @@ }if (exec) - entry = _PAGE_NX|_KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_NX|_PAGE_GLOBAL|address;else - entry = _KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_GLOBAL|address; entry &= __supported_pte_mask;set_pte (pte,__pte (entry)); }
Re: [patch 2/4] x86: PAT followup - Remove KERNPG_TABLE from pte entry
[email protected] kirjoitti:
Quoted 25 lines
KERNPG_TABLEwas a bug in earlier patch. Remove it from pte.pte_val()check is redundant as this routine is called immediately after a ptepage is allocated afresh.Signed-off-by Venkatesh Pallipadi <[email protected]>Signed-off-by Suresh Siddha <[email protected]>Index:
linux-2.6.git/arch/x86/mm/init_64.c
===================================================================arch/x86/mm/init_64.c +0
-3@@ -541,9 +541,6 @@if (address >= end)break ; -if (pte_val (*pte)) -continue ; -/* Nothing to map. Map the null page */ if (!(address & (~PAGE_MASK)) && (address + PAGE_SIZE <= end) &&@@ -561,9 +558,9 @@ }
arch/x86/mm/init_64.c line 566
Quoted 10 lines
arch/x86/mm/init_64.c +2
-2if (exec) - entry = _PAGE_NX|_KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_NX|_PAGE_GLOBAL|address;else - entry = _KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_GLOBAL|address; entry &= __supported_pte_mask;set_pte (pte,__pte (entry)); }
Hmm then what's the point of mapping not present 4k pages for valid mem here?
--Mika
RE: [patch 2/4] x86: PAT followup - Remove KERNPG_TABLE from pte entry
Quoted 45 lines
-----Original Message-----
From: Mika Penttilä [mailto:[email protected]]
Sent: Wednesday, January 16, 2008 12:14 AM
To: Pallipadi, Venkatesh
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]; Siddha, Suresh B
Subject: Re: [patch 2/4] x86: PAT followup - RemoveKERNPG_TABLEfrom pte entry[email protected] kirjoitti:
Quoted 2 lines
KERNPG_TABLEwas a bug in earlier patch. Remove it from pte.pte_val()check is redundant as this routine is calledimmediately after a
Quoted 8 lines
ptepage is allocated afresh.
Signed-off-by Venkatesh Pallipadi <[email protected]>Signed-off-by Suresh Siddha <[email protected]>Index:
linux-2.6.git/arch/x86/mm/init_64.c
===================================================================
---linux-2.6.git.orig/arch/x86/mm/init_64.c2008-01-1511:02:23.000000000 -0800
Quoted 1 line
+++
linux-2.6.git/arch/x86/mm/init_64.c2008-01-1511:06:37.000000000 -0800
Quoted 11 lines
arch/x86/mm/init_64.c +0
-3@@ -541,9 +541,6 @@if (address >= end)break ; -if (pte_val (*pte)) -continue ; -/* Nothing to map. Map the null page */ if (!(address & (~PAGE_MASK)) && (address + PAGE_SIZE <= end) &&arch/x86/mm/init_64.c line 564
Quoted 4 lines
arch/x86/mm/init_64.c +0
-1@@ -561,9 +558,9 @@ }if (exec) - entry =_PAGE_NX|_KERNPG_TABLE|_PAGE_GLOBAL|address; > + entry = _PAGE_NX|_PAGE_GLOBAL|address;
Quoted 13 lines
arch/x86/mm/init_64.c line 566
Quoted 8 lines
arch/x86/mm/init_64.c +1
-1else - entry = _KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_GLOBAL|address; entry &= __supported_pte_mask;set_pte (pte,__pte (entry)); }Hmm then what's the point of mapping not present 4k pages for valid mem
here?
My bad... Thanks for the catch.
I had to replace KERNPG_TABLE by PAGE_KERNEL here.
Thanks,
Venki
Re: [patch 2/4] x86: PAT followup - Remove KERNPG_TABLE from pte entry
In reply to Mika PenttiläQuoted 27 lines · Mika Penttilä
[email protected] kirjoitti:
Quoted 26 lines
KERNPG_TABLEwas a bug in earlier patch. Remove it from pte.pte_val()check is redundant as this routine is called immediately after a ptepage is allocated afresh.Signed-off-by Venkatesh Pallipadi <[email protected]>Signed-off-by Suresh Siddha <[email protected]>Index:
linux-2.6.git/arch/x86/mm/init_64.c
===================================================================
---linux-2.6.git.orig/arch/x86/mm/init_64.c2008-01-15
11:02:23.000000000 -0800
+++linux-2.6.git/arch/x86/mm/init_64.c2008-01-15
11:06:37.000000000 -0800(quoted diff) +0
-3@@ -541,9 +541,6 @@ if (address >= end) break; - if (pte_val(*pte)) - continue; - /* Nothing to map. Map the null page */ if (!(address & (~PAGE_MASK)) && (address + PAGE_SIZE <= end) &&@@ -561,9 +558,9 @@ }
Quoted 15 lines
Review line 566
Quoted 11 lines
(quoted diff) +2
-2if (exec) - entry = _PAGE_NX|_KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_NX|_PAGE_GLOBAL|address; else - entry = _KERNPG_TABLE|_PAGE_GLOBAL|address; + entry = _PAGE_GLOBAL|address; entry &= __supported_pte_mask; set_pte(pte, __pte(entry)); }Hmm then what's the point of mapping not present 4k pages for valid mem here?
Ingo,
Below incremental patch fixes this pte entry setting correctly. Thanks to Mika for catching this.
arch/x86/mm/init_64.c +2 -2
@@ -515,9 +515,9 @@ }if (exec) - entry = _PAGE_NX|_PAGE_GLOBAL|address; + entry = __PAGE_KERNEL_EXEC | _PAGE_GLOBAL | address;else - entry = _PAGE_GLOBAL|address; + entry = __PAGE_KERNEL | _PAGE_GLOBAL | address; entry &= __supported_pte_mask;set_pte (pte,__pte (entry)); }
PATCH 3/4 x86: PAT followup - Remove reserved pages mapping to zero page and not map them
In reply to [email protected]Remove reserved pages mapping to zeropage. Reserved and holes are now not mapped at all.
arch/x86/mm/init_32.c +2 -52
@@ -143,50 +143,6 @@return 0 ; } -static unsigned long __init get_res_page (void ) -{ -static unsigned long res_phys_page; -if (!res_phys_page) { - - res_phys_page = (unsigned long ) -alloc_bootmem_low_pages (PAGE_SIZE ); -if (!res_phys_page) -BUG (); - -memset ((char *)res_phys_page,0xe ,PAGE_SIZE ); - res_phys_page =__pa (res_phys_page); - } -return res_phys_page; -} - -static unsigned long __init get_res_ptepage (void ) -{ -static unsigned long res_phys_ptepage; -pte_t *pte; -int pte_ofs; -unsigned long pfn; - -if (!res_phys_ptepage) { - - res_phys_ptepage = (unsigned long ) -alloc_bootmem_low_pages (PAGE_SIZE ); -if (!res_phys_ptepage) -BUG (); - -paravirt_alloc_pt (&init_mm, -__pa (res_phys_ptepage) >>PAGE_SHIFT ); - -/* Set all PTEs in the range to zero page */ - pfn =get_res_page () >>PAGE_SHIFT ; - pte = (pte_t *)res_phys_ptepage; -for (pte_ofs =0 ; pte_ofs <PTRS_PER_PTE ; pte++, pte_ofs++) -set_pte (pte,pfn_pte (pfn,PAGE_KERNEL )); - - res_phys_ptepage =__pa (res_phys_ptepage); - } -return res_phys_ptepage; -} -/* * This maps the physical memory to kernel virtual address space, a total * of max_low_pfn pages, by creating page tables starting from address
@@ -199,7 +155,6 @@pmd_t *pmd;pte_t *pte;int pgd_idx, pmd_idx, pte_ofs; -unsigned long temp_pfn; pgd_idx =pgd_index (PAGE_OFFSET ); pgd = pgd_base + pgd_idx;
@@ -238,9 +193,7 @@ }if (cpu_has_pse && !is_memory_any_valid (paddr, paddr +PMD_SIZE )) { - - temp_pfn =get_res_ptepage (); -set_pmd (pmd,__pmd (temp_pfn | _PAGE_TABLE)); +set_pmd (pmd,__pmd (0 )); pfn +=PTRS_PER_PTE ;continue ; }
@@ -259,10 +212,7 @@if (!is_memory_any_valid (paddr, paddr +PAGE_SIZE )) { - - temp_pfn =get_res_page () >>PAGE_SHIFT ; -set_pte (pte, -pfn_pte (temp_pfn,PAGE_KERNEL )); +set_pte (pte,__pte (0 ));continue ; }
arch/x86/mm/init_64.c +2 -48
68 lines not on this page · raw message
PATCH 4/4 x86: PAT followup - use ioremap for devmem read of reserved regions
In reply to [email protected]map and unmap reserved regions, before accessing through /dev/mem read interface. This is for full compatibility with existing /dev/mem usages.
For regions that are mapped in identity map, we use __va().
arch/x86/mm/ioremap.c +33 -0
@@ -32,6 +32,39 @@ }EXPORT_SYMBOL (ioremap_wc); +/* +* Convert a physical pointer to a virtual kernel pointer for /dev/mem +* access +*/ +void *xlate_dev_mem_ptr (unsigned long phys) +{ +void *addr; +unsigned long start = phys &PAGE_MASK ; + +/* +* If any memory in PAGE_SIZE is valid, then we can use __va. Otherwise +* ioremap and unmap the memory. +*/ +if (is_memory_any_valid (start, start +PAGE_SIZE )) +return __va (phys); + + addr = (void *)ioremap (start,PAGE_SIZE ); +if (addr) + addr = (void *)((unsigned long )addr | (phys & ~PAGE_MASK )); + +return addr; +} + +void unxlate_dev_mem_ptr (unsigned long phys,void *addr) +{ +unsigned long start = phys &PAGE_MASK ; +if (is_memory_any_valid (start, start +PAGE_SIZE )) +return ; + +iounmap ((void __iomem *)((unsigned long )addr &PAGE_MASK )); +return ; +} +int valid_phys_addr_range (unsigned long addr,size_t count) {if (addr + count >__pa (high_memory))
drivers/char/mem.c +13 -0
@@ -127,9 +127,14 @@* by the kernel or data corruption may occur */ ptr =xlate_dev_mem_ptr (p); +if (!ptr) +return -EFAULT ;if (copy_to_user (buf, ptr, sz))return -EFAULT ; + +unxlate_dev_mem_ptr (p, ptr); + buf += sz; p += sz; count -= sz;
@@ -184,6 +189,11 @@* by the kernel or data corruption may occur */ ptr =xlate_dev_mem_ptr (p); +if (!ptr) { +if (written) +break ; +return -EFAULT ; + } copied =copy_from_user (ptr, buf, sz);if (copied) {
@@ -192,6 +202,9 @@break ;return -EFAULT ; } + +unxlate_dev_mem_ptr (p, ptr); + buf += sz; p += sz; count -= sz;
include/asm-generic/iomap.h +4 -0
@@ -69,4 +69,8 @@#define ioremap_wc ioremap_nocache#endif +#ifndef unxlate_dev_mem_ptr +static inline void unxlate_dev_mem_ptr (unsigned long phys,void *addr) {} +#endif +#endif
include/asm-x86/io.h +3 -0
@@ -2,6 +2,7 @@#define _ASM_X86_IO_H#define ioremap_wc ioremap_wc +#define unxlate_dev_mem_ptr unxlate_dev_mem_ptr#ifdef CONFIG_X86_32 # include "io_32.h"
@@ -10,6 +11,8 @@#endif extern void __iomem *ioremap_wc (unsigned long offset,unsigned long size); +extern void *xlate_dev_mem_ptr (unsigned long phys); +extern void unxlate_dev_mem_ptr (unsigned long phys,void *addr);#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
include/asm-x86/io_32.h +0 -6
@@ -49,12 +49,6 @@#include <linux/vmalloc.h> /* -* Convert a physical pointer to a virtual kernel pointer for /dev/mem -* access -*/ -#define xlate_dev_mem_ptr (p) __va(p) - -/* * Convert a virtual cached pointer to an uncached pointer */ #define xlate_dev_kmem_ptr (p) p
include/asm-x86/io_64.h +0 -6
@@ -278,12 +278,6 @@#define BIO_VMERGE_BOUNDARY iommu_bio_merge/* -* Convert a physical pointer to a virtual kernel pointer for /dev/mem -* access -*/ -#define xlate_dev_mem_ptr (p) __va(p) - -/* * Convert a virtual cached pointer to an uncached pointer */ #define xlate_dev_kmem_ptr (p) p
Re: [patch 4/4] x86: PAT followup - use ioremap for devmem read of reserved regions
drivers/char/mem.c line 136
Quoted 13 lines · * [email protected] <[email protected]> wrote:
drivers/char/mem.c +4
-0@@ -127,9 +127,14 @@* by the kernel or data corruption may occur */ ptr =xlate_dev_mem_ptr (p); +if (!ptr) +return -EFAULT ;if (copy_to_user (buf, ptr, sz))return -EFAULT ; + +unxlate_dev_mem_ptr (p, ptr);
sidenote: drivers/char/mem.c has no locking here, are you sure it's safe to create a possibly large number of aliases here? At least on 32-bit it could deplete the vmalloc area. (where all ioremaps go)
since /dev/mem access is strongly discouraged anyway (except perhaps for debugging purposes), wouldnt it be safer to stick a mutex around these areas?
Ingo
Ingo Molnar
AppliedQuoted 3 lines · * [email protected] <[email protected]> wrote:
Some incremental changes and bug fixes for PAT patchset. The changes are from the feedback we received earlier. There are few more pending changes that will follow soon.
thanks, applied them to x86.git.
Note that PAT is still hardcoded to disabled in arch/x86/mm/pat.c:
int __read_mostly pat_disabled = 1;
because one of my testsystems failed during bootup. I'll re-check whether these fixes resolve that, and if it passes then we could enable PAT.
Ingo
Hi,
I just want to report that the PAT support in x86/mm causes crashes on two of my test machines. On both boxes the SATA detection does not work when the PAT support is patched into the kernel.
Symptoms are as follows -- best described by a diff between the two boot.logs:
# diff boot-failing.log boot-working.log
-Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version ... +Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version ...
...
early_iounmap(ffffffff82a0b000, 00001000)
-early_ioremap(000000000000c000, 00001000) => -000002103394304 -early_iounmap(ffffffff82a0c000, 00001000)
early_iounmap(ffffffff82808000, 00001000)
...
-ACPI: PCI interrupt for device 0000:00:12.0 disabled
-sata_sil: probe of 0000:00:12.0 failed with error -12
+scsi0 : sata_sil
+scsi1 : sata_sil
+ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22
...
-AC'97 space ioremap problem
-ACPI: PCI interrupt for device 0000:00:14.5 disabled
-ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5
ALSA device list:
- No soundcards found.
+ #0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17
...
-VFS: Cannot open root device "sda1" or unknown-block(0,0)
-Please append a correct "root=" boot option; here are the available partitions:
-1600 4194302 hdc driver: ide-cdrom
-Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) +kjournald starting. Commit interval 5 seconds
+EXT3-fs: mounted filesystem with ordered data mode.
+VFS: Mounted root (ext3 filesystem) readonly.
...
<snip>
The second test machine uses ahci. But the symptoms are similar.
I performed a git-bisect on x86/mm. Last commit that worked for me was
2ea3cf43fddecbfd66353caafdf73ec21ea3760b (x86: fix early_ioremap() ISA window)
The subsequent commits for PAT support introduced the problem. I noticed that PAT should be disabled by default, but obviously the patches still have some side-effect. (Maybe ioremap changes lead to the problem?)
Boot-logs are attached:
boot-failing.log for x86/mm as of v2.6.24-rc8-672-ga9f7faa boot-working.log for x86/mm as of v2.6.24-rc8-621-g2ea3cf4
Hopefully it helps to track down the problem.
Maybe someone has an idea why the PAT patches are causing that ominous "PCI interrupt for device ... disabled" messages.
Thanks and regards,
Andreas
Booting command-list
kernel=/tftpboot/aherrma3/hunter-x86-mm root=/dev/sda1 console=ttyS0,115200
[Linux-bzImage, setup=0x2a00, size=0x24bb58]
boot
Issuing RESET:
Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #1 SMP Wed Jan 16 18:26:59 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_ioremap(000000000000c000, 00001000) => -000002103394304early_iounmap(ffffffff82a0c000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_ioremap(00000000000e0000, 00020000) => -000002102525952early_iounmap(ffffffff82ae0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002102429584
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff82af7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002102945700
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff82a7985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002102945700early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002102973168
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002102939712
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff82a7afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002102945456
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82a79950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002102945406
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82a79982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002102944058
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82a79ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002102943866
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82a79f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058early_ioremap(0000000077e79ec6, 000000c0) => -000002100846906
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_ioremap(0000000077e79ec6, 000000c0) => -000002098749754
SRAT: Node 0 PXM 0 0-a0000
SRAT: Node 0 PXM 0 0-80000000
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002097152000early_iounmap(ffffffff83000000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002096497664early_iounmap(ffffffff8309fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002096168960early_iounmap(ffffffff830f0000, 00010000)
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120ATI board detected. Disabling timer routing over 8254.early_ioremap(0000000077e7985c, 000000f4) => -000002096654244
ACPI: PM-Timer IO Port: 0x8008early_ioremap(0000000077e79f86, 0000007a) => -000002094555258early_ioremap(0000000077e79f86, 0000007a) => -000002092458106early_ioremap(0000000077e79f86, 0000007a) => -000002090360954
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_ioremap(0000000077e79f86, 0000007a) => -000002088263802
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])early_ioremap(0000000077e79f86, 0000007a) => -000002086166650
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23early_ioremap(0000000077e79f86, 0000007a) => -000002084069498
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level)early_ioremap(0000000077e79f86, 0000007a) => -000002081972346
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281
Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMER
Marking TSC unstable due to TSCs unsynchronizedtime.c: Detected 2288.275 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3073k kernel code, 35108k reserved, 1737k data, 308k init) Calibrating delay using timer specific routine.. 4581.21 BogoMIPS (lpj=9162431)
Dentry cache hash table entries: 262144 (orde���b��ʺ���ѕͥ
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.70 BogoMIPS (lpj=9153416)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153428)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.73 BogoMIPS (lpj=9153467)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
Brought up 4 CPUsnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
Time: acpi_pm clocksource has been installed.
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #1 SMP Wed Jan 16 18:26:59 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_ioremap(000000000000c000, 00001000) => -000002103394304early_iounmap(ffffffff82a0c000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_ioremap(00000000000e0000, 00020000) => -000002102525952early_iounmap(ffffffff82ae0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002102429584
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff82af7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002102945700
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff82a7985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002102945700early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002102973168
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002102939712
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff82a7afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002102945456
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82a79950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002102945406
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82a79982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002102944058
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82a79ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002102943866
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82a79f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058early_ioremap(0000000077e79ec6, 000000c0) => -000002100846906
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_ioremap(0000000077e79ec6, 000000c0) => -000002098749754
SRAT: Node 0 PXM 0 0-a0000
SRAT: Node 0 PXM 0 0-80000000
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002097152000early_iounmap(ffffffff83000000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002096497664early_iounmap(ffffffff8309fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002096168960early_iounmap(ffffffff830f0000, 00010000)
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002096654244
ACPI: PM-Timer IO Port: 0x8008early_ioremap(0000000077e79f86, 0000007a) => -000002094555258 early_ioremap(0000000077e79f86, 0000007a) => -000002092458106 early_ioremap(0000000077e79f86, 0000007a) => -000002090360954
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_ioremap(0000000077e79f86, 0000007a) => -000002088263802
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_ioremap(0000000077e79f86, 0000007a) => -000002086166650
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_ioremap(0000000077e79f86, 0000007a) => -000002084069498
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_ioremap(0000000077e79f86, 0000007a) => -000002081972346
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMER
Marking TSC unstable due to TSCs unsynchronizedtime.c: Detected 2288.275 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3073k kernel code, 35108k reserved, 1737k data, 308k init) Calibrating delay using timer specific routine.. 4581.21 BogoMIPS (lpj=9162431) Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.70 BogoMIPS (lpj=9153416)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153428)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.73 BogoMIPS (lpj=9153467)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
Brought up 4 CPUsnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
Time: acpi_pm clocksource has been installed.
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
netconsole: network logging started
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:piohdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ACPI: PCI interrupt for device 0000:00:12.0 disabledsata_sil: probe of 0000:00:12.0 failed with error -12
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19 ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19 ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19 ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driverpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 device
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17 AC'97 space ioremap problem
ACPI: PCI interrupt for device 0000:00:14.5 disabled
ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00) powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz) VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: 1600 4194302 hdc driver: ide-cdrom Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Booting '(hunter) x86/mm (last working)'
kernel=/tftpboot/aherrma3/hunter-x86-mm-working root=/dev/sda1 console=ttyS0,11
5200
[Linux-bzImage, setup=0x2a00, size=0x24a578]
boot
Issuing RESET:
Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #3 SMP Wed Jan 16 19:17:19 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_ioremap(00000000000e0000, 00020000) => -000002102525952early_iounmap(ffffffff82ae0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002102429584
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff82af7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002102945700
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff82a7985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002102945700early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002102973168
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002102939712
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff82a7afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002102945456
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82a79950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002102945406
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82a79982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002102944058
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82a79ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002102943866
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82a79f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058early_ioremap(0000000077e79ec6, 000000c0) => -000002100846906
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_ioremap(0000000077e79ec6, 000000c0) => -000002098749754
SRAT: Node 0 PXM 0 0-a0000
SRAT: Node 0 PXM 0 0-80000000
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002097152000early_iounmap(ffffffff83000000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002096497664early_iounmap(ffffffff8309fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002096168960early_iounmap(ffffffff830f0000, 00010000)
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120ATI board detected. Disabling timer routing over 8254.early_ioremap(0000000077e7985c, 000000f4) => -000002096654244
ACPI: PM-Timer IO Port: 0x8008early_ioremap(0000000077e79f86, 0000007a) => -000002094555258early_ioremap(0000000077e79f86, 0000007a) => -000002092458106early_ioremap(0000000077e79f86, 0000007a) => -000002090360954
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_ioremap(0000000077e79f86, 0000007a) => -000002088263802
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])early_ioremap(0000000077e79f86, 0000007a) => -000002086166650
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23early_ioremap(0000000077e79f86, 0000007a) => -000002084069498
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level)early_ioremap(0000000077e79f86, 0000007a) => -000002081972346
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30112 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484282
Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMER
Marking TSC unstable due to TSCs unsynchronizedtime.c: Detected 2288.366 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928920k/1964480k available (3069k kernel code, 35100k reserved, 1738k data, 304k init) Calibrating delay using timer specific routine.. 4581.34 BogoMIPS (lpj=9162692)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.90 BogoMIPS (lpj=9153811)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.92 BogoMIPS (lpj=9153854)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.93 BogoMIPS (lpj=9153875)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
Brought up 4 CPUsnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
Time: acpi_pm clocksource has been installed.
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
�҂
� ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #3 SMP Wed Jan 16 19:17:19 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_ioremap(00000000000e0000, 00020000) => -000002102525952early_iounmap(ffffffff82ae0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002102429584
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff82af7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002102973244
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82a72cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002102973244early_iounmap(ffffffff82a72cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002102945700
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff82a7985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002102945700early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002102973168
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002102939712
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff82a7afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002102945456
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82a79950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002102945406
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82a79982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002102944058
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82a79ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002102943866
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82a79f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002102973168early_iounmap(ffffffff82a72d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058early_ioremap(0000000077e79ec6, 000000c0) => -000002100846906
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_ioremap(0000000077e79ec6, 000000c0) => -000002098749754
SRAT: Node 0 PXM 0 0-a0000
SRAT: Node 0 PXM 0 0-80000000
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002097152000early_iounmap(ffffffff83000000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002096497664early_iounmap(ffffffff8309fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002096168960early_iounmap(ffffffff830f0000, 00010000)
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002096654244
ACPI: PM-Timer IO Port: 0x8008early_ioremap(0000000077e79f86, 0000007a) => -000002094555258 early_ioremap(0000000077e79f86, 0000007a) => -000002092458106 early_ioremap(0000000077e79f86, 0000007a) => -000002090360954
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x0���lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_ioremap(0000000077e79f86, 0000007a) => -000002088263802
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_ioremap(0000000077e79f86, 0000007a) => -000002086166650
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_ioremap(0000000077e79f86, 0000007a) => -000002084069498
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_ioremap(0000000077e79f86, 0000007a) => -000002081972346
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30112 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484282 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMER
Marking TSC unstable due to TSCs unsynchronizedtime.c: Detected 2288.366 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928920k/1964480k available (3069k kernel code, 35100k reserved, 1738k data, 304k init) Calibrating delay using timer specific routine.. 4581.34 BogoMIPS (lpj=9162692) Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.90 BogoMIPS (lpj=9153811)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.92 BogoMIPS (lpj=9153854)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.93 BogoMIPS (lpj=9153875)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
Brought up 4 CPUsnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
Time: acpi_pm clocksource has been installed.
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
netconsole: network logging started
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:piohdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22 scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22
ata2: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc04030c0 irq 22
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: ST3120811AS, 3.AAE, max UDMA/133
ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access ATA ST3120811AS 3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19 ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19 ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19 ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driverpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 device
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17
ALSA device list:
#0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00) powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 304k freed
INIT: version 2.86 booting
Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
Press I to enter interactive boot mode
* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Mounting /dev for udev ... [ ok ]
* Seeding /dev with needed nodes ... [ ok ]
* Starting udevd ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Letting udev process events ... [ ok ]
* Finalizing udev configuration ... [ ok ]
* Mounting devpts at /dev/pts ... [ ok ]
* Checking root filesystem .../dev/sda1: clean, 596867/2443200 files, 3403917/4885760 blocks
[ ok ]* Remounting root filesystem read/write ... [ ok ]
<snip>
Can you attach the e820 map from the top of your dmesg.
Thanks,
Venki
Quoted 85 lines
-----Original Message-----
From: Andreas Herrmann [mailto:[email protected]]
Sent: Wednesday, January 16, 2008 10:58 AM
To: Pallipadi, Venkatesh
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesHi,
I just want to report that the PAT support in x86/mm causes crashes on two of my test machines. On both boxes the SATA detection does not work when the PAT support is patched into the kernel.
Symptoms are as follows -- best described by a diff between the two boot.logs:
# diff boot-failing.log boot-working.log(quoted diff) +1
-1-Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version ... +Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version ...
early_iounmap(ffffffff82a0b000, 00001000)(quoted diff) +0
-2-early_ioremap(000000000000c000, 00001000) => -000002103394304 -early_iounmap(ffffffff82a0c000, 00001000)
early_iounmap(ffffffff82808000, 00001000)
...(quoted diff) +3
-5-ACPI: PCI interrupt for device 0000:00:12.0 disabled -sata_sil: probe of 0000:00:12.0 failed with error -12 +scsi0 : sata_sil +scsi1 : sata_sil +ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22 -AC'97 space ioremap problem -ACPI: PCI interrupt for device 0000:00:14.5 disabled -ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5ALSA device list:
(quoted diff) +1
-3- No soundcards found. + #0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17 -VFS: Cannot open root device "sda1" or unknown-block(0,0) -Please append a correct "root=" boot option; here are theavailable partitions:
-1600 4194302 hdc driver: ide-cdrom
-Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)(quoted diff) +3
-0+kjournald starting. Commit interval 5 seconds +EXT3-fs: mounted filesystem with ordered data mode. +VFS: Mounted root (ext3 filesystem) readonly.The second test machine uses ahci. But the symptoms are similar.
I performed a git-bisect on x86/mm. Last commit that worked for me was
2ea3cf43fddecbfd66353caafdf73ec21ea3760b(x86: fixearly_ioremap()ISA window)The subsequent commits for PAT support introduced the problem. I noticed that PAT should be disabled by default, but obviously the patches
still have some side-effect. (Maybe ioremap changes lead to the problem?)Boot-logs are attached:
boot-failing.log for x86/mm as of v2.6.24-rc8-672-ga9f7faa boot-working.log for x86/mm as of v2.6.24-rc8-621-g2ea3cf4
Hopefully it helps to track down the problem.
Maybe someone has an idea why the PAT patches are causing that ominous "PCI interrupt for device ... disabled" messages.Thanks and regards,
Andreas
Sorry. Never mind about e820 map. Somehow I did not notice the boot.log you had attached earlier.
Thanks,
Venki
Quoted 104 lines
-----Original Message-----
From: Pallipadi, Venkatesh
Sent: Wednesday, January 16, 2008 11:06 AM
To: 'Andreas Herrmann'
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: RE: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesCan you attach the e820 map from the top of your dmesg.
Thanks,
VenkiQuoted 85 lines
-----Original Message-----
From: Andreas Herrmann [mailto:[email protected]]
Sent: Wednesday, January 16, 2008 10:58 AM
To: Pallipadi, Venkatesh
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesHi,
I just want to report that the PAT support in x86/mm causes crashes on two of my test machines. On both boxes the SATA detection does not work when the PAT support is patched into the kernel.
Symptoms are as follows -- best described by a diff between the two boot.logs:
# diff boot-failing.log boot-working.log(quoted diff) +1
-1-Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version ... +Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version ...
early_iounmap(ffffffff82a0b000, 00001000)(quoted diff) +0
-2-early_ioremap(000000000000c000, 00001000) => -000002103394304 -early_iounmap(ffffffff82a0c000, 00001000)
early_iounmap(ffffffff82808000, 00001000)
...(quoted diff) +3
-5-ACPI: PCI interrupt for device 0000:00:12.0 disabled -sata_sil: probe of 0000:00:12.0 failed with error -12 +scsi0 : sata_sil +scsi1 : sata_sil +ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22 -AC'97 space ioremap problem -ACPI: PCI interrupt for device 0000:00:14.5 disabled -ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5ALSA device list:
(quoted diff) +1
-3- No soundcards found. + #0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17 -VFS: Cannot open root device "sda1" or unknown-block(0,0) -Please append a correct "root=" boot option; here are theavailable partitions:
-1600 4194302 hdc driver: ide-cdrom
-Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)(quoted diff) +3
-0+kjournald starting. Commit interval 5 seconds +EXT3-fs: mounted filesystem with ordered data mode. +VFS: Mounted root (ext3 filesystem) readonly.The second test machine uses ahci. But the symptoms are similar.
I performed a git-bisect on x86/mm. Last commit that worked for me was
2ea3cf43fddecbfd66353caafdf73ec21ea3760b(x86: fixearly_ioremap()ISA window)The subsequent commits for PAT support introduced the problem. I noticed that PAT should be disabled by default, but obviously the patches
still have some side-effect. (Maybe ioremap changes lead to the problem?)Boot-logs are attached:
boot-failing.log for x86/mm as of v2.6.24-rc8-672-ga9f7faa boot-working.log for x86/mm as of v2.6.24-rc8-621-g2ea3cf4
Hopefully it helps to track down the problem.
Maybe someone has an idea why the PAT patches are causing that ominous "PCI interrupt for device ... disabled" messages.Thanks and regards,
Andreas
Quoted 9 lines · Andreas Herrmann
I just want to report that the PAT support in x86/mm causes crashes on two of my test machines. On both boxes the SATA detection does not work when the PAT support is patched into the kernel.
Symptoms are as follows -- best described by a diff between the two boot.logs:
# diff boot-failing.log boot-working.log
Review
Quoted 6 lines
(quoted diff) +1
-3-Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version ... +Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version ... early_iounmap(ffffffff82a0b000, 00001000) -early_ioremap(000000000000c000, 00001000) => -000002103394304 -early_iounmap(ffffffff82a0c000, 00001000)
hm, so the early_ioremap() stuff isnt working well enough ...
that's the main effect of the PAT patches at the moment: no kernel code will access the low linear mappings (BIOS tables, ACPI data, etc.) directly, it's all done via early_ioremap(). But it's apparently buggy somewhere ...
Ingo
Quoted 11 lines · Andreas Herrmann
Hi,
I just want to report that the PAT support in x86/mm causes crashes on two of my test machines. On both boxes the SATA detection does not work when the PAT support is patched into the kernel.
Symptoms are as follows -- best described by a diff between the two boot.logs:
# diff boot-failing.log boot-working.log
Review
Quoted 6 lines
(quoted diff) +1
-3-Linux version 2.6.24-rc8-ga9f7faa5 (root@hunter) (gcc version ... +Linux version 2.6.24-rc8-g2ea3cf43 (root@hunter) (gcc version ... early_iounmap(ffffffff82a0b000, 00001000) -early_ioremap(000000000000c000, 00001000) => -000002103394304 -early_iounmap(ffffffff82a0c000, 00001000)
This does not look to be the problem here. We just mapped some new low address due to possibly a different code path. But, seems to have worked fine.
Review
Quoted 11 lines
early_iounmap(ffffffff82808000, 00001000)
...(quoted diff) +3
-5-ACPI: PCI interrupt for device 0000:00:12.0 disabled -sata_sil: probe of 0000:00:12.0 failed with error -12 +scsi0 : sata_sil +scsi1 : sata_sil +ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22 -AC'97 space ioremap problem -ACPI: PCI interrupt for device 0000:00:14.5 disabled -ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5
This ioremap failing seems to be the real problem. This can be due to new tracking of ioremaps introduced by PAT patches. We do not allow conflicting ioremaps to same region. Probably that is happening in both Sound and sata initialization which results in driver init failing.
Can you please try the debug patch below over latest x86/mm and boot kernel with debug boot option and send us the dmesg from the failure. That will give us better info about ioremaps.
Thanks,
Venki
arch/x86/mm/ioremap_64.c +2 -0
@@ -150,6 +150,8 @@void __iomem *ioremap_nocache (unsigned long phys_addr,unsigned long size) { +printk (KERN_DEBUG "ioremap_nocache: addr %lx, size %lx\n" , + phys_addr, size);return __ioremap (phys_addr, size, _PAGE_UC); }EXPORT_SYMBOL (ioremap_nocache);
include/asm-x86/io_64.h +2 -0
@@ -154,6 +154,8 @@static inline void __iomem *ioremap (unsigned long offset,unsigned long size) { +printk (KERN_DEBUG "ioremap: addr %lx, size %lx\n" , + offset, size);return __ioremap (offset, size,0 ); }
Quoted 3 lines
This ioremap failing seems to be the real problem. This can be due to new tracking of ioremaps introduced by PAT patches. We do not allow conflicting ioremaps to same region. Probably that is happening
Normally if there is a conflict there should be a printk (or at least it was so in the original mattr code if you haven't changed it)
-Andi
Quoted 15 lines
-----Original Message-----
From: Andi Kleen [mailto:[email protected]]
Sent: Wednesday, January 16, 2008 2:02 PM
To: Pallipadi, Venkatesh
Cc: Andreas Herrmann; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]; Siddha, Suresh B
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixes
Quoted 8 lines
Quoted 3 lines
This ioremap failing seems to be the real problem. This can be due to new tracking of ioremaps introduced by PAT patches. We do not allow conflicting ioremaps to same region. Probably that is happening
Normally if there is a conflict there should be a printk (or at least it was
so in the original mattr code if you haven't changed it)
Yes. Printks are there. But are with KERN_DEBUG now. We should change them to WARNING atleast.
Thanks,
Venki
Quoted 2 lines
Yes. Printks are there. But are with
KERN_DEBUGnow. We should change them to WARNING atleast.
I'm pretty sure they were without KERN_* originally. Another reason why the checkpatch.pl KERN_* warnings suck -- the original state would have been better and I bet you changed it just to shut up the dumb scripts.
-Andi
Quoted 8 lines · Venki Pallipadi
This ioremap failing seems to be the real problem. This can be due to new tracking of ioremaps introduced by PAT patches. We do not allow conflicting ioremaps to same region. Probably that is happening in both Sound and sata initialization which results in driver init failing.
Can you please try the debug patch below over latest x86/mm and boot kernel with debug boot option and send us the dmesg from the failure. That will give us better info about ioremaps.
Attached is the boot.log with x86/mm as of today (v2.6.24-rc8-720-gd294e9e).
For the failed devices I get:
sata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabled
and
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42
2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17
ioremap_nocache: addr c0403800, size 100
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default AC'97 space ioremap problem
ACPI: PCI interrupt for device 0000:00:14.5 disabled
ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5
Grepping for ioremap/iounmap gives:
<snip>
ioremap: addr 77e72d10, size 6ad8
ioremap: addr 77e79982, size 544
ioremap: addr 77e7afc0, size 40
ioremap: addr c0403104, size fc
ioremap: addr 77e7ade1, size 3
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7985c, size f4
ioremap: addr 77e79950, size 32
ioremap: addr 77e79ec6, size c0
ioremap: addr 77e79f86, size 7a
ioremap: addr 77e7af74, size 48ioremap_nocache: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000ioremap_nocache: addr c0100000, size 80ioremap_nocache: addr c0403000, size 200ioremap_nocache: addr c0402000, size 1000ioremap_nocache: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000ioremap_nocache: addr c0403800, size 100
I guess the conflict for sata is
ioremap: addr c0403104, size fc
ioremap_nocache: addr c0403000, size 200But where does the conflict for the sound card
(ioremap_nocache: addr c0403800, size 100)
come from?
And what can I do about conflicting regions?
Regards,
Andreas
Booting '(hunter) x86/mm-test'
kernel=/tftpboot/aherrma3/hunter-x86-mm-test root=/dev/sda1 console=ttyS0,11520
0 debug
[Linux-bzImage, setup=0x2a00, size=0x24bd98]
boot
Issuing RESET:
Linux version 2.6.24-rc8-gd294e9ed (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #1 SMP Thu Jan 17 18:56:17 CET 2008
Command line: root=/dev/sda1 console=ttyS0,115200 debug BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 141) 0 entries of 3200 used Entering add_active_range(0, 256, 491120) 1 entries of 3200 used end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570 early_iounmap(ffffffff8280040e, 00000002) early_ioremap(000000000009e000, 00000002) => -000002104893440 early_iounmap(ffffffff8289e000, 00000002) early_ioremap(0000000000008000, 00001000) => -000002105507840 early_ioremap(0000000000009000, 00001000) => -000002103406592 early_iounmap(ffffffff82a09000, 00001000) early_ioremap(000000000000a000, 00001000) => -000002103402496 early_iounmap(ffffffff82a0a000, 00001000) early_ioremap(000000000000b000, 00001000) => -000002103398400 early_iounmap(ffffffff82a0b000, 00001000) early_ioremap(000000000000c000, 00001000) => -000002103394304 early_iounmap(ffffffff82a0c000, 00001000) early_iounmap(ffffffff82808000, 00001000) early_ioremap(00000000000f0000, 00010000) => -000002104557568 DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800 early_iounmap(ffffffff82aec000, 00000491) early_iounmap(ffffffff828f0000, 00010000) early_ioremap(0000000000000000, 00000400) => -000002105540608 early_iounmap(ffffffff82800000, 00000400) early_ioremap(00000000000e0000, 00020000) => -000002104623104 early_iounmap(ffffffff828e0000, 00020000) early_ioremap(00000000000f7870, 00000024) => -000002104526736
ACPI: RSDP 000F7870, 0024 (r2 PTLTD ) early_iounmap(ffffffff828f7870, 00000024) early_ioremap(0000000077e72cc4, 00000024) => -000002105070396 early_iounmap(ffffffff82872cc4, 00000024) early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396 early_iounmap(ffffffff82872cc4, 0000004c) early_ioremap(0000000077e72cc4, 00000024) => -000002105070396
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82872cc4, 00000024) early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396 early_iounmap(ffffffff82872cc4, 0000004c) early_ioremap(0000000077e7985c, 00000024) => -000002105042852
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff8287985c, 00000024) early_ioremap(0000000077e7985c, 000000f4) => -000002105042852 early_iounmap(ffffffff8287985c, 000000f4) early_ioremap(0000000077e72d10, 00000024) => -000002105070320
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e7afc0, 00000024) => -000002105036864
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff8287����, 00000024) early_ioremap(0000000077e79950, 00000024) => -000002105042608
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82879950, 00000024) early_ioremap(0000000077e79982, 00000024) => -000002105042558
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82879982, 00000024) early_ioremap(0000000077e79ec6, 00000024) => -000002105041210
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82879ec6, 00000024) early_ioremap(0000000077e79f86, 00000024) => -000002105041018
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82879f86, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e79ec6, 000000c0) => -000002105041210 early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_iounmap(ffffffff82a79ec6, 000000c0) early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: Node 0 PXM 0 0-a0000
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
SRAT: Node 0 PXM 0 0-80000000
Entering add_active_range(0, 0, 141) 1 entries of 3200 used Entering add_active_range(0, 256, 491120) 1 entries of 3200 used early_iounmap(ffffffff82a79ec6, 000000c0)
NUMA: Using 63 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000077e70000 early_ioremap(0000000000000000, 00000400) => -000002103443456 early_iounmap(ffffffff82a00000, 00000400) early_ioremap(000000000009fc00, 00000400) => -000002102789120 early_iounmap(ffffffff82a9fc00, 00000400) early_ioremap(00000000000f0000, 00010000) => -000002102460416 early_iounmap(ffffffff82af0000, 00010000)
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001600000 on node 0 [ffffe20000200000-ffffe200003fffff] PMD ->ffff810001a00000 on node 0 [ffffe20000400000-ffffe200005fffff] PMD ->ffff810001e00000 on node 0 [ffffe20000600000-ffffe200007fffff] PMD ->ffff810002200000 on node 0 [ffffe20000800000-ffffe200009fffff] PMD ->ffff810002600000 on node 0 [ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002e00000 on node 0 [ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810003200000 on node 0 [ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810003600000 on node 0 [ffffe20001000000-ffffe200011fffff] PMD ->ffff810003a00000 on node 0 [ffffe20001200000-ffffe200013fffff] PMD ->ffff810003e00000 on node 0 [ffffe20001400000-ffffe200015fffff] PMD ->ffff810004200000 on node 0 [ffffe20001600000-ffffe200017fffff] PMD ->ffff810004600000 on node 0 [ffffe20001800000-ffffe200019fffff] PMD ->ffff810004a00000 on node 0 [ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004e00000 on node 0
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120On node 0 totalpages: 491005
DMA zone: 56 pages used for memmap
DMA zone: 10 pages reserved
DMA zone: 3915 pages, LIFO batch:0
DMA32 zone: 6658 pages used for memmap
DMA32 zone: 480366 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002102945700
ACPI: PM-Timer IO Port: 0x8008early_iounmap(ffffffff82a7985c, 000000f4) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: Local APIC address 0xfee00000 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200 debug Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMERtime.c: Detected 2288.280 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3074k kernel code, 35108k reserved, 1737k data, 308k init)
Calibrating delay using timer specific routine.. 4581.18 BogoMIPS (lpj=9162360)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x1040600010406 SMP alternatives: switching to UP code
ACPI: Core revision 20070126
ioremap: addr 77e72d10, size 6ad8
ioremap: addr 77e79982, size 544
Using local APIC timer interrupts.
APIC timer calibration result 12436289
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.72 BogoMIPS (lpj=9153452)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153434)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
x86 PAT enabled: cpu 2, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.74 BogoMIPS (lpj=9153491)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
x86 PAT enabled: cpu 3, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
CPU0 attaching sched-domain:
domain 0: span f
groups: 1 2 4 8
domain 1: span f
groups: f
CPU1 attaching sched-domain:
domain 0: span f
groups: 2 4 8 1
domain 1: span f
groups: f
CPU2 attaching sched-domain:
domain 0: span f
groups: 4 8 1 2
domain 1: span f
groups: f
CPU3 attaching sched-domain:
domain 0: span f
groups: 8 1 2 4
domain 1: span f
groups: fnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ioremap: addr 77e7afc0, size 40
ACPI: EC: Look up EC in DSDT
ioremap: addr c0403104, size fc
ioremap: addr 77e7ade1, size 3
ioremap: addr 77e7af04, size 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
ioremap: addr 77e7985c, size f4
ioremap: addr 77e79950, size 32
ioremap: addr 77e79ec6, size c0
ioremap: addr 77e79f86, size 7a
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
ioremap: addr 77e7af74, size 48
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes) TCP established hash table entries: 262144 (order: 10, 4194304 bytes) TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.ioremap_nocache: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000
Boot video device is 0000:01:05.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16ioremap_nocache: addr c0100000, size 80
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000. console [netcon0] enabled
Linux version 2.6.24-rc8-gd294e9ed (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #1 SMP Thu Jan 17 18:56:17 CET 2008
Command line: root=/dev/sda1 console=ttyS0,115200 debug BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 141) 0 entries of 3200 used Entering add_active_range(0, 256, 491120) 1 entries of 3200 used end_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570 early_iounmap(ffffffff8280040e, 00000002) early_ioremap(000000000009e000, 00000002) => -000002104893440 early_iounmap(ffffffff8289e000, 00000002) early_ioremap(0000000000008000, 00001000) => -000002105507840 early_ioremap(0000000000009000, 00001000) => -000002103406592 early_iounmap(ffffffff82a09000, 00001000) early_ioremap(000000000000a000, 00001000) => -000002103402496 early_iounmap(ffffffff82a0a000, 00001000) early_ioremap(000000000000b000, 00001000) => -000002103398400 early_iounmap(ffffffff82a0b000, 00001000) early_ioremap(000000000000c000, 00001000) => -000002103394304 early_iounmap(ffffffff82a0c000, 00001000) early_iounmap(ffffffff82808000, 00001000) early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800 early_iounmap(ffffffff82aec000, 00000491) early_iounmap(ffffffff828f0000, 00010000) early_ioremap(0000000000000000, 00000400) => -000002105540608 early_iounmap(ffffffff82800000, 00000400) early_ioremap(00000000000e0000, 00020000) => -000002104623104 early_iounmap(ffffffff828e0000, 00020000) early_ioremap(00000000000f7870, 00000024) => -000002104526736
ACPI: RSDP 000F7870, 0024 (r2 PTLTD ) early_iounmap(ffffffff828f7870, 00000024) early_ioremap(0000000077e72cc4, 00000024) => -000002105070396 early_iounmap(ffffffff82872cc4, 00000024) early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396 early_iounmap(ffffffff82872cc4, 0000004c) early_ioremap(0000000077e72cc4, 00000024) => -000002105070396
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82872cc4, 00000024) early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396 early_iounmap(ffffffff82872cc4, 0000004c) early_ioremap(0000000077e7985c, 00000024) => -000002105042852
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff8287985c, 00000024) early_ioremap(0000000077e7985c, 000000f4) => -000002105042852 early_iounmap(ffffffff8287985c, 000000f4) early_ioremap(0000000077e72d10, 00000024) => -000002105070320
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e7afc0, 00000024) => -000002105036864
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff8287afc0, 00000024) early_ioremap(0000000077e79950, 00000024) => -000002105042608
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82879950, 00000024) early_ioremap(0000000077e79982, 00000024) => -000002105042558
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82879982, 00000024) early_ioremap(0000000077e79ec6, 00000024) => -000002105041210
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82879ec6, 00000024) early_ioremap(0000000077e79f86, 00000024) => -000002105041018
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82879f86, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e72d10, 00000024) => -000002105070320 early_iounmap(ffffffff82872d10, 00000024) early_ioremap(0000000077e79ec6, 000000c0) => -000002105041210 early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_iounmap(ffffffff82a79ec6, 000000c0) early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: Node 0 PXM 0 0-a0000
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
SRAT: Node 0 PXM 0 0-80000000
Entering add_active_range(0, 0, 141) 1 entries of 3200 used Entering add_active_range(0, 256, 491120) 1 entries of 3200 used early_iounmap(ffffffff82a79ec6, 000000c0)
NUMA: Using 63 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000077e70000 early_ioremap(0000000000000000, 00000400) => -000002103443456 early_iounmap(ffffffff82a00000, 00000400) early_ioremap(000000000009fc00, 00000400) => -000002102789120 early_iounmap(ffffffff82a9fc00, 00000400) early_ioremap(00000000000f0000, 00010000) => -000002102460416 early_iounmap(ffffffff82af0000, 00010000)
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001600000 on node 0 [ffffe20000200000-ffffe200003fffff] PMD ->ffff810001a00000 on node 0 [ffffe20000400000-ffffe200005fffff] PMD ->ffff810001e00000 on node 0 [ffffe20000600000-ffffe200007fffff] PMD ->ffff810002200000 on node 0 [ffffe20000800000-ffffe200009fffff] PMD ->ffff810002600000 on node 0 [ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002e00000 on node 0 [ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810003200000 on node 0 [ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810003600000 on node 0 [ffffe20001000000-ffffe200011fffff] PMD ->ffff810003a00000 on node 0 [ffffe20001200000-ffffe200013fffff] PMD ->ffff810003e00000 on node 0 [ffffe20001400000-ffffe200015fffff] PMD ->ffff810004200000 on node 0 [ffffe20001600000-ffffe200017fffff] PMD ->ffff810004600000 on node 0 [ffffe20001800000-ffffe200019fffff] PMD ->ffff810004a00000 on node 0 [ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004e00000 on node 0
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120On node 0 totalpages: 491005
DMA zone: 56 pages used for memmap
DMA zone: 10 pages reserved
DMA zone: 3915 pages, LIFO batch:0
DMA32 zone: 6658 pages used for memmap
DMA32 zone: 480366 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002102945700
ACPI: PM-Timer IO Port: 0x8008early_iounmap(ffffffff82a7985c, 000000f4) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: Local APIC address 0xfee00000 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_iounmap(ffffffff82a79f86, 0000007a) early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200 debug Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMERtime.c: Detected 2288.280 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3074k kernel code, 35108k reserved, 1737k data, 308k init)
Calibrating delay using timer specific routine.. 4581.18 BogoMIPS (lpj=9162360)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) Mount-cache hash table entries: 2�6
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x1040600010406 SMP alternatives: switching to UP code
ACPI: Core revision 20070126
ioremap: addr 77e72d10, size 6ad8
ioremap: addr 77e79982, size 544
Using local APIC timer interrupts.
APIC timer calibration result 12436289
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.72 BogoMIPS (lpj=9153452)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153434)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
x86 PAT enabled: cpu 2, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.74 BogoMIPS (lpj=9153491)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
x86 PAT enabled: cpu 3, old 0x7040600070406, new 0x1040600010406 AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
CPU0 attaching sched-domain:
domain 0: span f
groups: 1 2 4 8
domain 1: span f
groups: f
CPU1 attaching sched-domain:
domain 0: span f
groups: 2 4 8 1
domain 1: span f
groups: f
CPU2 attaching sched-domain:
domain 0: span f
groups: 4 8 1 2
domain 1: span f
groups: f
CPU3 attaching sched-domain:
domain 0: span f
groups: 8 1 2 4
domain 1: span f
groups: fnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ioremap: addr 77e7afc0, size 40
ACPI: EC: Look up EC in DSDT
ioremap: addr c0403104, size fc
ioremap: addr 77e7ade1, size 3
ioremap: addr 77e7af04, size 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
ioremap: addr 77e7985c, size f4
ioremap: addr 77e79950, size 32
ioremap: addr 77e79ec6, size c0
ioremap: addr 77e79f86, size 7a
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
ioremap: addr 77e7af74, size 48
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes) TCP established hash table entries: 262144 (order: 10, 4194304 bytes) TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.ioremap_nocache: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000
Boot video device is 0000:01:05.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16ioremap_nocache: addr c0100000, size 80
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000. console [netcon0] enabled
netconsole: network logging started
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
Probing IDE interface ide1...
hdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methodssata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22ioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabledsata_sil: probe of 0000:00:12.0 failed with error -12
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0402000, size 1000ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detectedohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0400000, size 1000ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0401000, size 1000ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driver
i2c-core: driver [dev_driver] registeredpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 devicepiix4_smbus 0000:00:14.0: Using Interrupt SMI# for SMBus. piix4_smbus 0000:00:14.0: SMBREV = 0x0piix4_smbus 0000:00:14.0: SMBA = 0x1050
i2c-adapter i2c-0: adapter [SMBus PIIX4 adapter at 1050] registered
i2c-dev: adapter [SMBus PIIX4 adapter at 1050] registered as minor 0
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17ioremap_nocache: addr c0403800, size 100
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default AC'97 space ioremap problem
ACPI: PCI interrupt for device 0000:00:14.5 disabled
ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5 ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00)
powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz) VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: 1600 4194302 hdc driver: ide-cdrom Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Quoted 1 line · On Thu, Jan 17, 2008 at 08:12:11PM +0100, Andreas Herrmann3 wrote:
On Wed, Jan 16, 2008 at 12:33:28PM -0800, Venki Pallipadi wrote:
<snip>
Quoted 8 lines
I guess the conflict for sata is
ioremap: addr c0403104, size fc ioremap_nocache: addr c0403000, size 200But where does the conflict for the sound card
(ioremap_nocache: addrc0403800, size 100)
come from?
Sorry, forget this dumb question. Its the
same page as above.
Andreas
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
For the failed devices I get:
sata_sil0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ioremap_nocache: addrc0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabled
hm, is the problem that the two devices share the same physical page, and thus get an overlapping area?
as an intermediate fix, how about following the attribute of the already existing mapping, instead of rejecting the ioremap due to the conflict? I.e. something like below?
Ingo
--- arch/x86/mm/pat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/mm/pat.c +6 -1
@@ -174,7 +174,12 @@ int reserve_mattr(u64 start, u64 end, un current->comm, current->pid, start, end, cattr_name(attr), cattr_name(ml->attr)); - err = -EBUSY ; +/* +* Force the already existing attribute: +*/ + ma->attr = ml->attr; +if (*fattr) + *fatt = ml->attr;break ; } }else if (ml->start >= end) {
H. Peter Anvin
reviewerQuoted 10 lines · Ingo Molnar
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
For the failed devices I get:
sata_sil0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ioremap_nocache: addrc0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabled
Quoted 3 lines
hm, is the problem that the two devices share the same physical page, and thus get an overlapping area?
as an intermediate fix, how about following the attribute of the already existing mapping, instead of rejecting the ioremap due to the conflict? I.e. something like below?
The correct behaviour probably would be to go with the most restrictive caching behaviour, i.e. uncached in this case.
-hpa
Quoted 6 lines · H. Peter Anvin
Quoted 3 lines
as an intermediate fix, how about following the attribute of the already existing mapping, instead of rejecting the ioremap due to the conflict? I.e. something like below?
The correct behaviour probably would be to go with the most restrictive caching behaviour, i.e. uncached in this case.
yeah. Or, to be on the safest side, forcing UC in this case. We'll have a warning message anyway, so it wont go unnoticed - but we wont break drivers.
Ingo
--------->
Subject: x86: patches/pat-conflict-fixup.patch
From: Ingo Molnar <[email protected]>
--- arch/x86/mm/pat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/mm/pat.c +6 -1
@@ -174,7 +174,12 @@ int reserve_mattr(u64 start, u64 end, un current->comm, current->pid, start, end, cattr_name(attr), cattr_name(ml->attr)); - err = -EBUSY ; +/* +* Force UC on a conflict: +*/ + ma->attr = _PAGE_UC; +if (*fattr) + *fattr = _PAGE_UC;break ; } }else if (ml->start >= end) {
Quoted 5 lines · H. Peter Anvin
Quoted 2 lines
Quoted 2 lines
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabledThe correct behaviour probably would be to go with the most restrictive caching behaviour, i.e. uncached in this case.
Well, the sad part is that in this case, uncached is the SAME THING as default.
So it's not like there is any actual real conflict, other than in a PAT confusion thing.
Linus
Quoted 1 line · Ingo Molnar
I.e. something like below?
or the one below. (it even builds)
Ingo
--- arch/x86/mm/pat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/mm/pat.c +6 -1
@@ -174,7 +174,12 @@ int reserve_mattr(u64 start, u64 end, un current->comm, current->pid, start, end, cattr_name(attr), cattr_name(ml->attr)); - err = -EBUSY ; +/* +* Force the already existing attribute: +*/ + ma->attr = ml->attr; +if (*fattr) + *fattr = ml->attr;break ; } }else if (ml->start >= end) {
Quoted 5 lines · Ingo Molnar
Quoted 2 lines · * Andreas Herrmann3 <[email protected]> wrote:
For the failed devices I get:
Quoted 8 lines
Quoted 5 lines
sata_sil0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ioremap_nocache: addrc0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabledhm, is the problem that the two devices share the same physical page, and thus get an overlapping area?
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in drivers/acpi/osl.c to ioremap_nocache. See attached patch.
Now the machine boots without conflicts.
ACPI: EC: Look up EC in DSDT
ioremap_nocache: addr c0403104, size fc
ioremap_nocache: addr 77e7ade1, size 3
ioremap_nocache: addr 77e7af04, size 1
...
sata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ioremap_nocache: addr c0403000, size 200
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22
ata2: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc04030c0 irq 22
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
...
dmesg-output is attached.
Quoted 3 lines
as an intermediate fix, how about following the attribute of the already existing mapping, instead of rejecting the ioremap due to the conflict? I.e. something like below?
I guess it is not a good idea to use an existing cachable attribute if the IO-region is non-prefetchable. And in this example there are 3 devices which are potentially affected:
00:12.0 IDE interface: ATI Technologies Inc 4379 Serial ATA Controller (rev 80) (
...
Memory at c0403000 (32-bit, non-prefetchable) [size=512]
...00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 82)
...
Memory at c0403400 (32-bit, non-prefetchable) [size=1K]
...00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 80)
...
Memory at c0403800 (32-bit, non-prefetchable) [size=256]
...BTW, is there a need for osl.c to map all regions as cached?
Regards,
Andreas
---
drivers/acpi/osl.c +3 -3
@@ -221,7 +221,7 @@ void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size)/* * ioremap checks to ensure this is in reserved space */ -return ioremap ((unsigned long )phys, size); +return ioremap_nocache ((unsigned long )phys, size); else return __acpi_map_table((unsigned long)phys, size); }
@@ -437,7 +437,7 @@ acpi_os_read_memory(acpi_physical_address phys_addr, u32 * value, u32 width)u32 dummy;void __iomem *virt_addr; - virt_addr =ioremap (phys_addr, width); + virt_addr =ioremap_nocache (phys_addr, width);if (!value) value = &dummy;
@@ -465,7 +465,7 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width) {void __iomem *virt_addr; - virt_addr =ioremap (phys_addr, width); + virt_addr =ioremap_nocache (phys_addr, width);switch (width) {case 8 :
Linux version 2.6.24-rc8-gd294e9ed-dirty (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #3 SMP Thu Jan 17 21:43:08 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200 debug
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedend_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_ioremap(000000000000c000, 00001000) => -000002103394304early_iounmap(ffffffff82a0c000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_iounmap(ffffffff828f0000, 00010000)early_ioremap(0000000000000000, 00000400) => -000002105540608early_iounmap(ffffffff82800000, 00000400)early_ioremap(00000000000e0000, 00020000) => -000002104623104early_iounmap(ffffffff828e0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002104526736
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff828f7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002105042852
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff8287985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002105042852early_iounmap(ffffffff8287985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002105070320
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002105036864
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff8287afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002105042608
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82879950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002105042558
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82879982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002105041210
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82879ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002105041018
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82879f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002105041210early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_iounmap(ffffffff82a79ec6, 000000c0)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: Node 0 PXM 0 0-a0000
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
SRAT: Node 0 PXM 0 0-80000000
Entering add_active_range(0, 0, 141) 1 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedearly_iounmap(ffffffff82a79ec6, 000000c0)
NUMA: Using 63 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002103443456early_iounmap(ffffffff82a00000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002102789120early_iounmap(ffffffff82a9fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002102460416early_iounmap(ffffffff82af0000, 00010000)
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001600000 on node 0
[ffffe20000200000-ffffe200003fffff] PMD ->ffff810001a00000 on node 0
[ffffe20000400000-ffffe200005fffff] PMD ->ffff810001e00000 on node 0
[ffffe20000600000-ffffe200007fffff] PMD ->ffff810002200000 on node 0
[ffffe20000800000-ffffe200009fffff] PMD ->ffff810002600000 on node 0
[ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002e00000 on node 0
[ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810003200000 on node 0
[ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810003600000 on node 0
[ffffe20001000000-ffffe200011fffff] PMD ->ffff810003a00000 on node 0
[ffffe20001200000-ffffe200013fffff] PMD ->ffff810003e00000 on node 0
[ffffe20001400000-ffffe200015fffff] PMD ->ffff810004200000 on node 0
[ffffe20001600000-ffffe200017fffff] PMD ->ffff810004600000 on node 0
[ffffe20001800000-ffffe200019fffff] PMD ->ffff810004a00000 on node 0
[ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004e00000 on node 0
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120On node 0 totalpages: 491005
DMA zone: 56 pages used for memmap
DMA zone: 10 pages reserved
DMA zone: 3915 pages, LIFO batch:0
DMA32 zone: 6658 pages used for memmap
DMA32 zone: 480366 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002102945700
ACPI: PM-Timer IO Port: 0x8008early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: Local APIC address 0xfee00000early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200 debug
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMERtime.c: Detected 2288.186 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3074k kernel code, 35108k reserved, 1737k data, 308k init) Calibrating delay using timer specific routine.. 4581.56 BogoMIPS (lpj=9163126) Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x1040600010406
SMP alternatives: switching to UP code
ACPI: Core revision 20070126ioremap_nocache: addr 77e72d10, size 6ad8ioremap_nocache: addr 77e79982, size 544
Using local APIC timer interrupts.
APIC timer calibration result 12435782
Detected 12.435 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.58 BogoMIPS (lpj=9153166)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.56 BogoMIPS (lpj=9153137)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
x86 PAT enabled: cpu 2, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.54 BogoMIPS (lpj=9153098)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
x86 PAT enabled: cpu 3, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
CPU0 attaching sched-domain:
domain 0: span f
groups: 1 2 4 8
domain 1: span f
groups: f
CPU1 attaching sched-domain:
domain 0: span f
groups: 2 4 8 1
domain 1: span f
groups: f
CPU2 attaching sched-domain:
domain 0: span f
groups: 4 8 1 2
domain 1: span f
groups: f
CPU3 attaching sched-domain:
domain 0: span f
groups: 8 1 2 4
domain 1: span f
groups: fnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1ioremap_nocache: addr 77e7afc0, size 40
ACPI: EC: Look up EC in DSDTioremap_nocache: addr c0403104, size fcioremap_nocache: addr 77e7ade1, size 3ioremap_nocache: addr 77e7af04, size 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.ioremap_nocache: addr 77e7985c, size f4ioremap_nocache: addr 77e79950, size 32ioremap_nocache: addr 77e79ec6, size c0ioremap_nocache: addr 77e79f86, size 7a
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registeredioremap_nocache: addr 77e7af74, size 48
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.ioremap_nocache: addr c0400000, size 1000
iounmap: addr ffffc200008aa000 (high_memory: ffff810077e70000
iounmap: addr ffffc200008aa000ioremap_nocache: addr c0401000, size 1000
iounmap: addr ffffc200008aa000 (high_memory: ffff810077e70000
iounmap: addr ffffc200008aa000ioremap_nocache: addr c0402000, size 1000
iounmap: addr ffffc200008aa000 (high_memory: ffff810077e70000
iounmap: addr ffffc200008aa000
Boot video device is 0000:01:05.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16ioremap_nocache: addr c0100000, size 80
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
netconsole: network logging started
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
Probing IDE interface ide1...
hdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methodssata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22ioremap_nocache: addr c0403000, size 200
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22
ata2: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc04030c0 irq 22
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: ST3120811AS, 3.AAE, max UDMA/133
ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access ATA ST3120811AS 3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0402000, size 1000ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detectedohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0400000, size 1000ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0401000, size 1000ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driver
i2c-core: driver [dev_driver] registeredpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 devicepiix4_smbus 0000:00:14.0: Using Interrupt SMI# for SMBus.piix4_smbus 0000:00:14.0: SMBREV = 0x0piix4_smbus 0000:00:14.0: SMBA = 0x1050
i2c-adapter i2c-0: adapter [SMBus PIIX4 adapter at 1050] registered
i2c-dev: adapter [SMBus PIIX4 adapter at 1050] registered as minor 0
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17ioremap_nocache: addr c0403800, size 100
ALSA device list:
#0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00) powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 308k freed
EXT3 FS on sda1, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 7823612k swap on /dev/sda6. Priority:-1 extents:1 across:7823612k
eth0: setting full-duplex.
eth0: no IPv6 routers present
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in
drivers/acpi/osl.ctoioremap_nocache. See attached patch.Now the machine boots without conflicts.
ah, nice!
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
Does my third patch (which falls back to UC in case of attribute conflicts, also attached below) instead of your ioremap_nocache() patch solve your bootup problem too?
while ACPI should not hurt too much from using UC mappings, we should still solve this intelligently and only use UC when needed. (Sane system makers with a sane layout of IO areas and BIOS areas should not be punished with UC overhead.)
Quoted 18 lines
Quoted 3 lines
as an intermediate fix, how about following the attribute of the already existing mapping, instead of rejecting the ioremap due to the conflict? I.e. something like below?
I guess it is not a good idea to use an existing cachable attribute if the IO-region is non-prefetchable. And in this example there are 3 devices which are potentially affected:
00:12.0 IDE interface: ATI Technologies Inc 4379 Serial ATA Controller (rev 80) (
... Memory at c0403000 (32-bit, non-prefetchable) [size=512] ...00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 82)
... Memory at c0403400 (32-bit, non-prefetchable) [size=1K] ...
Quoted 6 lines
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 80)
... Memory at c0403800 (32-bit, non-prefetchable) [size=256] ...BTW, is there a need for
osl.cto map all regions as cached?
no, there should be no such need. There can be "mapping leaks", in that the mapped object is not unmapped. There's detection code in today's x86.git that should report something like this if it occurs:
Debug warning: early ioremap leak of 1 areas detected. please boot with early_ioremap_debug and report the dmesg.
------------[ cut here ]------------ WARNING: at arch/x86/mm/ioremap_32.c:346 ()
but i have not seen this message in your boot log. Could you boot with early_ioremap_debug and send us the dmesg - i'm curious which ACPI tables are actively mapped while those devices are initialized.
Ingo
-------------->
Subject: x86: patches/pat-conflict-fixup.patch
From: Ingo Molnar <[email protected]>
--- arch/x86/mm/pat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/mm/pat.c +6 -1
@@ -174,7 +174,12 @@ int reserve_mattr(u64 start, u64 end, un current->comm, current->pid, start, end, cattr_name(attr), cattr_name(ml->attr)); - err = -EBUSY ; +/* +* Force UC on a conflict: +*/ + ma->attr = _PAGE_UC; +if (*fattr) + *fattr = _PAGE_UC;break ; } }else if (ml->start >= end) {
Quoted 8 lines · Ingo Molnar
Quoted 6 lines · * Andreas Herrmann3 <[email protected]> wrote:
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in
drivers/acpi/osl.ctoioremap_nocache. See attached patch.
Quoted 7 lines
Quoted 1 line
Now the machine boots without conflicts.
ah, nice!
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
btw., there's a change i did in today's x86.git: _all_ the old BIOS data accesses now go through early_ioremap(). This cleaned up the boot code quite significantly, as it's much more apparent now when we access a BIOS data table. (it also solves the problem when BIOS data pages are in reserved areas that we map via UC or dont map at all)
the same happens with all ISA ioremaps as well - no more "low 1MB is treated special" exceptions.
[ This also solves the 'EFI puts data pages into really high memory we
dont have mapped yet' category of problems that BIOS writers are apparently busy creating right now ;-) ]
the downside is that old linear-mapped assumptions might now result in an early fault - boot with earlyprintk=vga or earlyprintk=serial,ttyS0,115200. I fixed most such assumptions already and booted an allyesconfig kernel on both 32-bit and 64-bit x86, but a few more remain still. I've enhanced the early fault printout code as well to make it easier to debug such things, so it should be relatively easy to find the rest.
Ingo
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
As Linus mentioned, main problem is to figure out the correct attribute for ioremap() which doesn't specify the actual attribute to be used.
One mechanism to fix the issue generically (somewhat atleast) is to use MTRR's and figure out the default MTRR attribute for that physical address and use it for ioremap().
Quoted 4 lines
no, there should be no such need. There can be "mapping leaks", in that the mapped object is not unmapped. There's detection code in today's x86.git that should report something like this if it occurs:
Quoted 8 lines
Debug warning: early ioremap leak of 1 areas detected. please boot with
early_ioremap_debugand report the dmesg.------------[ cut here ]------------ WARNING: at arch/x86/mm/ioremap_32.c:346 ()but i have not seen this message in your boot log. Could you boot with
early_ioremap_debugand send us the dmesg - i'm curious which ACPI tables are actively mapped while those devices are initialized.
In this scenario, ACPI is using ioremap() leaving some dangling references. Venki is looking to fix this code. Getting the attribute for MTRR for ioremap noflags, might solve some of these issues aswell. Will look into this.
thanks,
suresh
Quoted 8 lines · Siddha, Suresh B
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
we could fix up all aliases of that page as well and degrade them to UC?
Quoted 3 lines
As Linus mentioned, main problem is to figure out the correct attribute for
ioremap()which doesn't specify the actual attribute to be used.
i think the problem is the proximity of some ACPI tables to actual device mmio areas - they share the same physical page. The ACPI tables will be mapped WB, the device mmio areas will be UC most of the time.
Quoted 3 lines
One mechanism to fix the issue generically (somewhat atleast) is to use MTRR's and figure out the default MTRR attribute for that physical address and use it for
ioremap().
how would this solve the problem at hand? I dont think it's possible to guarantee that all the BIOS data pages and mmio areas will have compatible attributes. BIOS data pages might be in plain RAM that we intend to map WB. Or they might be in reserved areas near the mmio addresses.
but if we fixed up aliases (only for that single conflicting page), so that all mappings are degraded to UC, we'd have uniform behavior all across and the least amount of surprise to drivers. Hm?
Quoted 8 lines
Quoted 3 lines
but i have not seen this message in your boot log. Could you boot with
early_ioremap_debugand send us the dmesg - i'm curious which ACPI tables are actively mapped while those devices are initialized.In this scenario, ACPI is using
ioremap()leaving some dangling references. Venki is looking to fix this code. Getting the attribute for MTRR for ioremap noflags, might solve some of these issues aswell. Will look into this.
ok. Resolving that would be nice anyway because the ACPI table might be in plain RAM which might be reused by the kernel later on, etc. FYI, there's also the patch from Yinghai Lu on lkml, for one such dangling reference problem in the SRAT table.
Ingo
---------------->
From: Yinghai Lu <[email protected]>
Subject: [PATCH] x86: copy srat table and unmap in acpi_parse_table
[PATCH] x86: copy srat table and unmap in acpi_parse_table
the old acpi_numa_slit_init was saving old address in early stage acpi_slit and acpi_parse_table can not unmap address that.
the patch copy the slit in the callback,
so we could unmap table in acpi_parse_table instead of outside track it.
need to revert
"
commit d8d28f25f33c6a035cdfb1d421c79293d16e5c58
Author: Ingo Molnar <[email protected]> Date: Thu Jan 17 15:26:42 2008 +0100
x86: ACPI: fix mapping leaks
ioremap_early() is stateful, hence we cannot tolerate mapping leaks.
"
before appling this patch
arch/x86/mm/srat_64.c +16 -5
@@ -23,7 +23,9 @@int acpi_numa__initdata ; -static struct acpi_table_slit *acpi_slit; +static int slit_copied; +static u64 slit_locality_count; +static u8 slit_entry[MAX_NUMNODES *MAX_NUMNODES ];static nodemask_t nodes_parsed__initdata ;static struct bootnode nodes[MAX_NUMNODES ]__initdata ;
@@ -130,7 +132,16 @@ void __init acpi_numa_slit_init(struct aprintk (KERN_INFO "ACPI: SLIT table looks invalid. Not used.\n" );return ; } - acpi_slit = slit; + +if (slit->locality_count >MAX_NUMNODES ) +return ; + + slit_locality_count = slit->locality_count; + +memcpy (slit_entry, slit->entry, + slit_locality_count * slit_locality_count); + + slit_copied =1 ; }/* Callback for Proximity Domain -> LAPIC mapping */
@@ -502,11 +513,11 @@ int __node_distance(int a, int b) {int index; -if (!acpi_slit) +if (!slit_copied)return null_slit_node_compare (a, b) ?LOCAL_DISTANCE :REMOTE_DISTANCE ; - index = acpi_slit->locality_count *node_to_pxm (a); -return acpi_slit->entry[index +node_to_pxm (b)]; + index = slit_locality_count *node_to_pxm (a); +return slit_entry[index +node_to_pxm (b)]; }EXPORT_SYMBOL (__node_distance);
drivers/acpi/tables.c +1 -0
@@ -260,6 +260,7 @@ int __init acpi_table_parse(char *id, acif (table) {handler (table); +acpi_os_unmap_memory (table, table->length);return 0 ; }else return 1 ;
Quoted 8 lines · Ingo Molnar
Quoted 5 lines · Siddha, Suresh B
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
Quoted 5 lines
Quoted 3 lines
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
we could fix up all aliases of that page as well and degrade them to UC?
Yes, we must fix all aliases or reject the conflicting mapping. But fixing all aliases might not be that easy.
(I've just seen a panic when using your patch ;-(
Andreas
H. Peter Anvin
reviewerQuoted 5 lines · Andreas Herrmann3 wrote:
Yes, we must fix all aliases or reject the conflicting mapping. But fixing all aliases might not be that easy.
(I've just seen a panic when using your patch ;-(
Avoiding inconsistent aliases is definitely fundamental to supporting PAT.
-hpa
Quoted 13 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 12 lines · Ingo Molnar
Quoted 8 lines · Siddha, Suresh B
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
Quoted 5 lines
Quoted 1 line
we could fix up all aliases of that page as well and degrade them to UC?
Yes, we must fix all aliases or reject the conflicting mapping. But fixing all aliases might not be that easy. (I've just seen a panic when using your patch ;-(
yes, indeed my patch is bad if you have PAT enabled: conflicting cache attributes might be present. I'll go with your patch for now.
should we perhaps do UC by default for early_ioremap() as well? Normally those mappings are only temporary - but in case of a leak they might hang around in the pagetables and the CPU might stumble upon them. Also, should early_iounmap() do a wbinvd() [/clflush()] call as well, to be safe?
Ingo
Quoted 16 lines · Ingo Molnar
Quoted 13 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 12 lines · Ingo Molnar
Quoted 8 lines · Siddha, Suresh B
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
we could fix up all aliases of that page as well and degrade them to UC?
Yes, we must fix all aliases or reject the conflicting mapping. But fixing all aliases might not be that easy. (I've just seen a panic when using your patch ;-(
yes, indeed my patch is bad if you have PAT enabled: conflicting cache attributes might be present. I'll go with your patch for now.
I think the best is to just reject conflicting mappings. (Because now I am too tired to think about a safe way how to change the aliases to the most restrictive memory type. ;-)
But then of course such boot-time problems like I've seen on my test machines should be avoided somehow.
Andreas
Quoted 26 lines · On Thu, Jan 17, 2008 at 11:52:43PM +0100, Andreas Herrmann3 wrote:
Quoted 16 lines · Ingo Molnar
Quoted 13 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 12 lines · Ingo Molnar
Quoted 8 lines · Siddha, Suresh B
Quoted 3 lines · Ingo Molnar
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
we could fix up all aliases of that page as well and degrade them to UC?
Yes, we must fix all aliases or reject the conflicting mapping. But fixing all aliases might not be that easy. (I've just seen a panic when using your patch ;-(
yes, indeed my patch is bad if you have PAT enabled: conflicting cache attributes might be present. I'll go with your patch for now.
Quoted 8 lines
I think the best is to just reject conflicting mappings. (Because now I am too tired to think about a safe way how to change the aliases to the most restrictive memory type. ;-)
But then of course such boot-time problems like I've seen on my test machines should be avoided somehow.
Below is another potential fix for the problem here. Going through ACPI ioremap usages, we found at one place the mapping is cached for possible optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
Thanks,
Venki
drivers/acpi/executer/exregion.c +9 -0
@@ -48,6 +48,8 @@#define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME("exregion") +static int ioremap_cache; +/******************************************************************************* * * FUNCTION: acpi_ex_system_memory_space_handler
@@ -249,6 +251,13 @@break ; } +if (!ioremap_cache) { +acpi_os_unmap_memory (mem_info->mapped_logical_address, + window_size); + mem_info->mapped_logical_address =0 ; + mem_info->mapped_physical_address =0 ; + mem_info->mapped_length =0 ; + }return_ACPI_STATUS (status); }
Quoted 27 lines · Venki Pallipadi
Below is another potential fix for the problem here. Going through ACPI ioremap usages, we found at one place the mapping is cached for possible optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
Thanks,
VenkiIndex:
linux-2.6.git/drivers/acpi/executer/exregion.c
===================================================================drivers/acpi/executer/exregion.c +2
-0@@ -48,6 +48,8 @@#define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME("exregion") +static int ioremap_cache; +/******************************************************************************* * * FUNCTION: acpi_ex_system_memory_space_handler @@ -249,6 +251,13 @@break ; }
drivers/acpi/executer/exregion.c line 263
Quoted 10 lines
drivers/acpi/executer/exregion.c +7
-0+if (!ioremap_cache) { +acpi_os_unmap_memory (mem_info->mapped_logical_address, + window_size); + mem_info->mapped_logical_address =0 ; + mem_info->mapped_physical_address =0 ; + mem_info->mapped_length =0 ; + }return_ACPI_STATUS (status); }
Applying and compiling your patch I see:
CC drivers/acpi/executer/exregion.odrivers/acpi/executer/exregion.c: In function 'acpi_ex_system_memory_space_handler':drivers/acpi/executer/exregion.c:81: warning: 'window_size' may be used uninitialized in this function
After glancing through this file it seems that ioremap_cache is always 0 and acpi_os_unmap_memory will unconditionally be executed at end of this function. I am not familiar with that code. But I just want to reinsure that this is what you want. And if so, why is that variable needed?
But maybe I missed something ...
(I'll test it tomorrow, or I better should say later today.)
Andreas
Quoted 70 lines
-----Original Message-----
From: Andreas Herrmann3 [mailto:[email protected]]
Sent: Thursday, January 17, 2008 3:25 PM
To: Pallipadi, Venkatesh
Cc: Ingo Molnar; Siddha, Suresh B; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesQuoted 2 lines · Venki Pallipadi
Below is another potential fix for the problem here. Going
through ACPI
Quoted 1 line
ioremap usages, we found at one place the mapping is cached
for possible
Quoted 10 lines
optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
Thanks,
VenkiIndex:
linux-2.6.git/drivers/acpi/executer/exregion.c
===================================================================
---linux-2.6.git.orig/drivers/acpi/executer/exregion.c2008-01-17 03:18:39.000000000 -0800Quoted 1 line
+++
linux-2.6.git/drivers/acpi/executer/exregion.c2008-01-17 07:34:33.000000000 -0800drivers/acpi/executer/exregion.c line 53
Quoted 7 lines
drivers/acpi/executer/exregion.c +2
-0@@ -48,6 +48,8 @@#define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME("exregion") +static int ioremap_cache; +/**************************************************************
*****************Quoted 6 lines
drivers/acpi/executer/exregion.c +0
-0* * FUNCTION: acpi_ex_system_memory_space_handler @@ -249,6 +251,13 @@break ; }drivers/acpi/executer/exregion.c line 263
Quoted 10 lines
drivers/acpi/executer/exregion.c +7
-0+if (!ioremap_cache) { +acpi_os_unmap_memory (mem_info->mapped_logical_address, + window_size); + mem_info->mapped_logical_address =0 ; + mem_info->mapped_physical_address =0 ; + mem_info->mapped_length =0 ; + }return_ACPI_STATUS (status); }Applying and compiling your patch I see:
CC
drivers/acpi/executer/exregion.odrivers/acpi/executer/exregion.c: In function 'acpi_ex_system_memory_space_handler':drivers/acpi/executer/exregion.c:81: warning: 'window_size' may be used uninitialized in this function
Quoted 7 lines
After glancing through this file it seems that
ioremap_cacheis always 0
andacpi_os_unmap_memorywill unconditionally be executed at end of this function.
I am not familiar with that code. But I just want to reinsure that this is what you want. And if so, why is that variable needed? But maybe I missed something ...
I missed that warning. But should not matter for testing this patch as we always initialize window_size with the patch.
Yes. The variable is not needed. With patch I always map at the beginning of this function and unmap at the end. I just kept the variable as I was planning to add a boot option to control this initially. But, later decided to keep the test patch simple without any boot option.
We can come up with a better patch once we know that the test patch helps.
Thanks,
Venki
Quoted 5 lines · Venki Pallipadi
Below is another potential fix for the problem here. Going through ACPI ioremap usages, we found at one place the mapping is cached for possible optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
The patch does not fix the problem. The conflicting cache attributes are still there.
I have done another test after I have added a debug message in iounmap when a direct mapping gets removed. (See boot-exregion-2.log) For the address in question this gives:
# grep c04 boot-exregion-2.log
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040318a, size 76
ioremap: addr c0403104, size fc
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7cioremap_nocache: addr c0400000, size 1000
iounmap: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000
iounmap: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000
iounmap: addr c0402000, size 1000
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7cioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
...
Regards,
Andreas
Booting command-list
kernel=/tftpboot/aherrma3/hunter-x86-mm-test-vp-debug root=/dev/sda1 console=tt
yS0,115200 debug
[Linux-bzImage, setup=0x2a00, size=0x24a918]
boot
Issuing RESET:
Linux version 2.6.24-rc8-gd294e9ed-dirty (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #5 SMP Fri Jan 18 16:47:32 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200 debug
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedend_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_ioremap(000000000000c000, 00001000) => -000002103394304early_iounmap(ffffffff82a0c000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_iounmap(ffffffff828f0000, 00010000)early_ioremap(0000000000000000, 00000400) => -000002105540608early_iounmap(ffffffff82800000, 00000400)early_ioremap(00000000000e0000, 00020000) => -000002104623104early_iounmap(ffffffff828e0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002104526736
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff828f7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002105042852
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff8287985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002105042852early_iounmap(ffffffff8287985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002105070320
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002105036864
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff8287afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002105042608
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82879950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002105042558
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82879982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002105041210
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82879ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002105041018
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82879f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002105041210early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_iounmap(ffffffff82a79ec6, 000000c0)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: Node 0 PXM 0 0-a0000
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
SRAT: Node 0 PXM 0 0-80000000
Entering add_active_range(0, 0, 141) 1 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedearly_iounmap(ffffffff82a79ec6, 000000c0)
NUMA: Using 63 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002103443456early_iounmap(ffffffff82a00000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002102789120early_iounmap(ffffffff82a9fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002102460416early_iounmap(ffffffff82af0000, 00010000)
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001600000 on node 0
[ffffe20000200000-ffffe200003fffff] PMD ->ffff810001a00000 on node 0
[ffffe20000400000-ffffe200005fffff] PMD ->ffff810001e00000 on node 0
[ffffe20000600000-ffffe200007fffff] PMD ->ffff810002200000 on node 0
[ffffe20000800000-ffffe200009fffff] PMD ->ffff810002600000 on node 0
[ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002e00000 on node 0
[ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810003200000 on node 0
[ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810003600000 on node 0
[ffffe20001000000-ffffe200011fffff] PMD ->ffff810003a00000 on node 0
[ffffe20001200000-ffffe200013fffff] PMD ->ffff810003e00000 on node 0
[ffffe20001400000-ffffe200015fffff] PMD ->ffff810004200000 on node 0
[ffffe20001600000-ffffe200017fffff] PMD ->ffff810004600000 on node 0
[ffffe20001800000-ffffe200019fffff] PMD ->ffff810004a00000 on node 0
[ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004e00000 on node 0
Zone PFN ranges:
@ DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120On node 0 totalpages: 491005
DMA zone: 56 pages used for memmap
DMA zone: 10 pages reserved
DMA zone: 3915 pages, LIFO batch:0
DMA32 zone: 6658 pages used for memmap
DMA32 zone: 480366 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002102945700
ACPI: PM-Timer IO Port: 0x8008early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: Local APIC address 0xfee00000early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30304 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200 debug
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMERtime.c: Detected 2288.286 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928916k/1964480k available (3068k kernel code, 35104k reserved, 1738k data, 308k init) Calibrating delay using timer specific routine.. 4581.25 BogoMIPS (lpj=9162508) Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x1040600010406
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
ioremap: addr 77e72d10, size 6ad8
ioremap: addr 77e79982, size 544
Using local APIC timer interrupts.
APIC timer calibration result 12436315
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.72 BogoMIPS (lpj=9153440)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153436)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
x86 PAT enabled: cpu 2, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.74 BogoMIPS (lpj=9153487)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
x86 PAT enabled: cpu 3, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
CPU0 attaching sched-domain:
domain 0: span f
groups: 1 2 4 8
domain 1: span f
groups: f
CPU1 attaching sched-domain:
domain 0: span f
groups: 2 4 8 1
domain 1: span f
groups: f
CPU2 attaching sched-domain:
domain 0: span f
groups: 4 8 1 2
domain 1: span f
groups: f
CPU3 attaching sched-domain:
domain 0: span f
groups: 8 1 2 4
domain 1: span f
groups: fnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ioremap: addr 77e7afc0, size 40
ACPI: EC: Look up EC in DSDT
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr 77e7ade1, size 3
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7af04, size 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040310a, size f6
ioremap: addr c040318a, size 76
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ioremap: addr c0403104, size fc
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr 77e7ade1, size 3
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
ioremap: addr 77e7985c, size f4
ioremap: addr 77e79950, size 32
ioremap: addr 77e79ec6, size c0
ioremap: addr 77e79f86, size 7a
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
ioremap: addr 77e7af74, size 48
ioremap: addr 77e7af75, size 47
ioremap: addr 77e7af76, size 46
ioremap: addr 77e7af77, size 45
ioremap: addr 77e7af78, size 44
ioremap: addr 77e7af79, size 43
ioremap: addr 77e7af7a, size 42
ioremap: addr 77e7af7b, size 41
ioremap: addr 77e7af7c, size 40
ioremap: addr 77e7af7d, size 3f
ioremap: addr 77e7af7e, size 3e
ioremap: addr 77e7af7f, size 3d
ioremap: addr 77e7af80, size 3c
ioremap: addr 77e7af81, size 3b
ioremap: addr 77e7af82, size 3a
ioremap: addr 77e7af83, size 39
ioremap: addr 77e7af84, size 38
ioremap: addr 77e7af85, size 37
ioremap: addr 77e7af86, size 36
ioremap: addr 77e7af87, size 35
ioremap: addr 77e7af88, size 34
ioremap: addr 77e7af89, size 33
ioremap: addr 77e7af8a, size 32
ioremap: addr 77e7af8b, size 31
ioremap: addr 77e7af8c, size 30
ioremap: addr 77e7af8d, size 2f
ioremap: addr 77e7af8e, size 2e
ioremap: addr 77e7af8f, size 2d
ioremap: addr 77e7af90, size 2c
ioremap: addr 77e7af91, size 2b
ioremap: addr 77e7af92, size 2a
ioremap: addr 77e7af93, size 29
ioremap: addr 77e7af94, size 28
ioremap: addr 77e7af95, size 27
ioremap: addr 77e7af96, size 26
ioremap: addr 77e7af97, size 25
ioremap: addr 77e7af98, size 24
ioremap: addr 77e7af99, size 23
ioremap: addr 77e7af9a, size 22
ioremap: addr 77e7af9b, size 21
ioremap: addr 77e7af9c, size 20
ioremap: addr 77e7af9d, size 1f
ioremap: addr 77e7af9e, size 1e
ioremap: addr 77e7af9f, size 1d
ioremap: addr 77e7afa0, size 1c
ioremap: addr 77e7afa1, size 1b
ioremap: addr 77e7afa2, size 1a
ioremap: addr 77e7afa3, size 19
ioremap: addr 77e7afb4, size 8
ioremap: addr 77e7afb5, size 7
ioremap: addr 77e7afb6, size 6
ioremap: addr 77e7afb7, size 5
ioremap: addr 77e7afb4, size 8
ioremap: addr 77e7afb5, size 7
ioremap: addr 77e7afb6, size 6
ioremap: addr 77e7afb7, size 5
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr 77e7af04, size 1
ioremap: addr 77e7ade1, size 3
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.ioremap_nocache: addr c0400000, size 1000
iounmap: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000
iounmap: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000
iounmap: addr c0402000, size 1000
Boot video device is 0000:01:05.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
ioremap: addr c0403104, size fc
ioremap: addr c0403184, size 7c
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade2, size 2
ioremap: addr 77e7ade1, size 3
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16ioremap_nocache: addr c0100000, size 80
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc2000030e000.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
Probing IDE interface ide1...
hdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methodssata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22ioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
ACPI: PCI interrupt for device 0000:00:12.0 disabledsata_sil: probe of 0000:00:12.0 failed with error -12
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0402000, size 1000ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detectedohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0400000, size 1000ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0401000, size 1000ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driver
i2c-core: driver [dev_driver] registeredpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 devicepiix4_smbus 0000:00:14.0: Using Interrupt SMI# for SMBus.piix4_smbus 0000:00:14.0: SMBREV = 0x0piix4_smbus 0000:00:14.0: SMBA = 0x1050
i2c-adapter i2c-0: adapter [SMBus PIIX4 adapter at 1050] registered
i2c-dev: adapter [SMBus PIIX4 adapter at 1050] registered as minor 0
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17ioremap_nocache: addr c0403800, size 100
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default AC'97 space ioremap problem
ACPI: PCI interrupt for device 0000:00:14.5 disabled
ATI IXP AC97 controller: probe of 0000:00:14.5 failed with error -5
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00) powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz) VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: 1600 4194302 hdc driver: ide-cdrom Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Quoted 19 lines
-----Original Message-----
From: Andreas Herrmann3 [mailto:[email protected]]
Sent: Friday, January 18, 2008 8:11 AM
To: Pallipadi, Venkatesh
Cc: Ingo Molnar; Siddha, Suresh B; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesQuoted 2 lines · Venki Pallipadi
Below is another potential fix for the problem here. Going
through ACPI
Quoted 9 lines
Quoted 1 line
ioremap usages, we found at one place the mapping is cached
for possible
Quoted 2 lines
optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
The patch does not fix the problem. The conflicting cache attributes are
still there.
Andreas,
Could you also try the patch Suresh Siddha sent out yesterday. That covers the case where the attribute was not getting removed even after unmap was called.
Thanks,
Venki
Quoted 29 lines · Pallipadi, Venkatesh
Quoted 19 lines
-----Original Message-----
From: Andreas Herrmann3 [mailto:[email protected]]
Sent: Friday, January 18, 2008 8:11 AM
To: Pallipadi, Venkatesh
Cc: Ingo Molnar; Siddha, Suresh B; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Barnes, Jesse; [email protected]; [email protected]
Subject: Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixesQuoted 2 lines · Venki Pallipadi
Below is another potential fix for the problem here. Going
through ACPI
Quoted 9 lines
Quoted 1 line
ioremap usages, we found at one place the mapping is cached
for possible
Quoted 2 lines
optimization reason and not unmapped later. Patch below always unmaps ioremap at this place in ACPICA.
The patch does not fix the problem. The conflicting cache attributes are
still there.
Quoted 6 lines
Andreas,
Could you also try the patch Suresh Siddha sent out yesterday. That covers the case where the attribute was not getting removed even after unmap was called.
An easy way for you to figure out if our patch will solve your problem is this, look for any quirks for your device in drivers/pci/quirks.c and or architecture specific quirks file. If you see your device in there, then our patch is likely to solve your problem.
Signature · 4 lines
Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL
H. Peter Anvin
reviewerQuoted 11 lines · Suresh B
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
As Linus mentioned, main problem is to figure out the correct attribute for
ioremap()which doesn't specify the actual attribute to be used.One mechanism to fix the issue generically (somewhat atleast) is to use MTRR's and figure out the default MTRR attribute for that physical address and use it for
ioremap().
This is the matrix the CPU uses when combining MTRR and PAT behaviour. It probably makes sense to mimic:
| WB WT WC UC
---+---------------
WB | WB WT WC UC WT | WT WT UC UC WC | WC UC WC UC UC | UC UC UC UC
With the current PAT encoding:
WB = 00
WT = 01
WC = 10
UC = 11
... this is simply a bitwise OR. This makes sense, since one of the bits denies delaying writes (WT, UC), and the other denies delaying reads (WC, UC).
-hpa
Quoted 25 lines · H. Peter Anvin
Quoted 11 lines · Suresh B
But then, this will cause an attribute conflicit. Old one was specifying WB in PAT (ioremap with noflags) and the new ioremap specifies UC.
As Linus mentioned, main problem is to figure out the correct attribute for
ioremap()which doesn't specify the actual attribute to be used.One mechanism to fix the issue generically (somewhat atleast) is to use MTRR's and figure out the default MTRR attribute for that physical address and use it for
ioremap().This is the matrix the CPU uses when combining MTRR and PAT behaviour. It probably makes sense to mimic:
| WB WT WC UC
---+---------------WB | WB WT WC UC WT | WT WT UC UC WC | WC UC WC UC UC | UC UC UC UCWith the current PAT encoding:
Quoted 7 lines
WB = 00
WT = 01
WC = 10
UC = 11... this is simply a bitwise OR. This makes sense, since one of the bits denies delaying writes (WT, UC), and the other denies delaying reads (WC, UC).
Almost. There is a specific case and important where MTRR UC + page table WC == WC.
But yes. For ioremap where we are WB + MTRR == MTRR we need to request the same attributes as the e820 map, to get the attribute checking correct.
Eric
H. Peter Anvin
reviewerQuoted 15 lines · Eric W. Biederman
Quoted 15 lines
| WB WT WC UC
---+---------------WB | WB WT WC UC WT | WT WT UC UC WC | WC UC WC UC UC | UC UC UC UCWith the current PAT encoding:
WB = 00
WT = 01
WC = 10
UC = 11
Quoted 8 lines
Quoted 2 lines
... this is simply a bitwise OR. This makes sense, since one of the bits denies delaying writes (WT, UC), and the other denies delaying reads (WC, UC).
Almost. There is a specific case and important where MTRR UC + page table WC == WC.
But yes. For ioremap where we are WB + MTRR == MTRR we need to request the same attributes as the e820 map, to get the attribute checking correct.
True; however, that shouldn't be followed for the case of conflicting attempts at mapping.
Now, I *believe* it is safe to have some mappings UC and some WC. This is also something to keep in mind (there are legitimate applications for that particular form of aliasing, too.) If so, we may not want to thump at those.
-hpa
Quoted 2 lines
As Linus mentioned, main problem is to figure out the correct attribute for
ioremap()which doesn't specify the actual attribute to be used.
In this case the correct attribute is the one of the underlying MTRR.
And if it conflicts with some other mapping that overrides an MTRR the driver was always broken and it should probably error out and be reevaluated/fixed.
-Andi
Quoted 13 lines · Ingo Molnar
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in
drivers/acpi/osl.ctoioremap_nocache. See attached patch.Now the machine boots without conflicts.
ah, nice!
Quoted 7 lines
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
Does my third patch (which falls back to UC in case of attribute conflicts, also attached below) instead of your
ioremap_nocache()patch solve your bootup problem too?
I'll check this asap
Quoted 3 lines
but i have not seen this message in your boot log. Could you boot with
early_ioremap_debugand send us the dmesg - i'm curious which ACPI tables are actively mapped while those devices are initialized.
Hmm, early_ioremap_debug exists only in ioremap_32.c Have to adapt the 64-bit version first.
But wait the 64-bit code contains already debug output for this. See the boot-logs that I have attached to my previous mails. (Interestingly the code for 64-bit early_io(re/un)map resides not in ioremap_64.c but in init_64.c.)
Andreas
Quoted 11 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 3 lines
but i have not seen this message in your boot log. Could you boot with
early_ioremap_debugand send us the dmesg - i'm curious which ACPI tables are actively mapped while those devices are initialized.Hmm,
early_ioremap_debugexists only inioremap_32.cHave to adapt the 64-bit version first.But wait the 64-bit code contains already debug output for this. See the boot-logs that I have attached to my previous mails. (Interestingly the code for 64-bit early_io(re/un)map resides not in
ioremap_64.cbut ininit_64.c.)
yeah, it's not unified yet.
Ingo
Quoted 18 lines · On Thu, Jan 17, 2008 at 10:42:28PM +0100, Andreas Herrmann3 wrote:
Quoted 17 lines · Ingo Molnar
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in
drivers/acpi/osl.ctoioremap_nocache. See attached patch.Now the machine boots without conflicts.
ah, nice!
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
Quoted 5 lines
Quoted 3 lines
Does my third patch (which falls back to UC in case of attribute conflicts, also attached below) instead of your
ioremap_nocache()patch solve your bootup problem too?I'll check this asap
Ok, here is the result:
sata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22ioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: [<ffffffff8102905d>] ? reserve_mat 1a5/0x221 PGD 0 Oops: 0000 [1] SMP CPU 3 Modules linked in: Pid: 1, comm: swapper Not tainted 2.6.24-rc8-gd294e9ed-dirty #1 RIP: 0010:[<ffffffff8102905d>] [<ffffffff8102905d>] ? reserve_mattr+0x1a5/0x221 RSP: 0018:ffff810077581c60 EFLAGS: 00010282 RAX: 000000000000004e RBX: ffff8100775a7a00 RCX: 0000000000004c12 RDX: 000000000000a9a9 RSI: 0000000000000018 RDI: ffffffff8153bed4 RBP: 0000000000000000 R08: ffffffff81540fe7 R09: ffffffff81329d70 R10: 0000000000000000 R11: 0000000000000000 R12: 00000000c0404000 R13: 0000000000000018 R14: 00000000c0403000 R15: 00000000c0403000 FS: 0000000000000000(0000) GS:ffff8100775d6bc0(0000) knlGS:0000000000000000 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b CR2: 0000000000000000 CR3: 0000000001001000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process swapper (pid: 1, threadinfo ffff810077580000, task ffff810077564790) Stack: ffffffff81411900 0000000000001000 0000000000001000 00000000c0404000 ffffc200008ac000 00000000c0403000 ffff8100775a7a40 ffffffff810281e9 0000000000000018 0000000000000005 ffff810077631680 ffff8100777b7800 Call Trace: [<ffffffff810281e9>] __ioremap+0xc2/0x11a [<ffffffff8114a6b0>] pcim_iomap+0x43/0x53 [<ffffffff8114a74f>] pcim_iomap_regions+0x8f/0x104 [<ffffffff811fba72>] sil_init_one+0xb0/0x1eb [<ffffffff81150f98>] pci_device_probe+0xd1/0x138 [<ffffffff811a4d9c>] driver_probe_device+0xe1/0x16a [<ffffffff811a4f6d>] __driver_attach+0x90/0xcd [<ffffffff811a4edd>] __driver_attach+0x0/0xcd [<ffffffff811a4edd>] __driver_attach+0x0/0xcd [<ffffffff811a4149>] bus_for_each_dev+0x43/0x6e [<ffffffff811a44c9>] bus_add_driver+0x77/0x1be [<ffffffff8115116e>] __pci_register_driver+0x58/0x8a [<ffffffff814d2634>] kernel_init+0x170/0x2e0 [<ffffffff8100cb58>] child_rip+0xa/0x12 [<ffffffff814d24c4>] kernel_init+0x0/0x2e0 [<ffffffff8100cb4e>] child_rip+0x0/0x12 Code: 00 49 89 c9 48 81 c6 e0 02 00 00 48 89 3c 24 31 c0 4d 89 e0 4c 89 f1 48 c7 c7 c3 97 3e 81 e8 71 ef 00 00 48 c7 43 10 18 00 00 00 <48> 83 3c 25 00 00 00 00 00 74 36 48 c7 04 25 00 00 00 00 18 00 RIP [<ffffffff8102905d>] ? reserve_mattr+0x1a5/0x221 RSP <ffff810077581c60> CR2: 0000000000000000 ---[ end trace 5516cbea98bb72f9 ]--- Kernel panic - not syncing: Attempted to kill init!
I should have reviewed your patch.
I guess it must be
"if (fattr)" instead of "if (*fattr)"
I'll give it another try ...
Andreas
Quoted 18 lines · On Thu, Jan 17, 2008 at 10:42:28PM +0100, Andreas Herrmann3 wrote:
Quoted 17 lines · Ingo Molnar
Quoted 7 lines · * Andreas Herrmann3 <[email protected]> wrote:
Yes.
Meanwhile I have figured out that it is some ACPI stuff that maps the page cached. I've changed the ioremap's in
drivers/acpi/osl.ctoioremap_nocache. See attached patch.Now the machine boots without conflicts.
ah, nice!
but in general we must be robust enough in this case and just degrade any overlapping page to UC (and emit a warning perhaps) - instead of failing the ioremap and thus failing the driver (and the bootup).
Quoted 5 lines
Quoted 3 lines
Does my third patch (which falls back to UC in case of attribute conflicts, also attached below) instead of your
ioremap_nocache()patch solve your bootup problem too?I'll check this asap
So, now that I've avoided this tiny NULL-pointer-dereference, the system boots fine as well with your (slightly modified) patch. See dmesg attached.
Andreas
Linux version 2.6.24-rc8-gd294e9ed-dirty (root@hunter) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #2 SMP Thu Jan 17 23:13:37 CET 2008 Command line: root=/dev/sda1 console=ttyS0,115200 debug
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000008dc00 (usable)
BIOS-e820: 000000000008dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000077e70000 (usable)
BIOS-e820: 0000000077e70000 - 0000000077e7a000 (ACPI data)
BIOS-e820: 0000000077e7a000 - 0000000077f00000 (ACPI NVS)
BIOS-e820: 0000000077f00000 - 0000000080000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedend_pfn_map = 1048576early_ioremap(000000000000040e, 00000002) => -000002105539570early_iounmap(ffffffff8280040e, 00000002)early_ioremap(000000000009e000, 00000002) => -000002104893440early_iounmap(ffffffff8289e000, 00000002)early_ioremap(0000000000008000, 00001000) => -000002105507840early_ioremap(0000000000009000, 00001000) => -000002103406592early_iounmap(ffffffff82a09000, 00001000)early_ioremap(000000000000a000, 00001000) => -000002103402496early_iounmap(ffffffff82a0a000, 00001000)early_ioremap(000000000000b000, 00001000) => -000002103398400early_iounmap(ffffffff82a0b000, 00001000)early_ioremap(000000000000c000, 00001000) => -000002103394304early_iounmap(ffffffff82a0c000, 00001000)early_iounmap(ffffffff82808000, 00001000)early_ioremap(00000000000f0000, 00010000) => -000002104557568
DMI present.early_ioremap(0000000077eec000, 00000491) => -000002102476800early_iounmap(ffffffff82aec000, 00000491)early_iounmap(ffffffff828f0000, 00010000)early_ioremap(0000000000000000, 00000400) => -000002105540608early_iounmap(ffffffff82800000, 00000400)early_ioremap(00000000000e0000, 00020000) => -000002104623104early_iounmap(ffffffff828e0000, 00020000)early_ioremap(00000000000f7870, 00000024) => -000002104526736
ACPI: RSDP 000F7870, 0024 (r2 PTLTD )early_iounmap(ffffffff828f7870, 00000024)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e72cc4, 00000024) => -000002105070396
ACPI: XSDT 77E72CC4, 004C (r1 PTLTD XSDT 6040000 LTP 0)early_iounmap(ffffffff82872cc4, 00000024)early_ioremap(0000000077e72cc4, 0000004c) => -000002105070396early_iounmap(ffffffff82872cc4, 0000004c)early_ioremap(0000000077e7985c, 00000024) => -000002105042852
ACPI: FACP 77E7985C, 00F4 (r3 AMD DUNE 6040000 ATI F4240)early_iounmap(ffffffff8287985c, 00000024)early_ioremap(0000000077e7985c, 000000f4) => -000002105042852early_iounmap(ffffffff8287985c, 000000f4)early_ioremap(0000000077e72d10, 00000024) => -000002105070320
ACPI: DSDT 77E72D10, 6AD8 (r1 ATI SB400 6040000 MSFT 100000E)early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e7afc0, 00000024) => -000002105036864
ACPI: FACS 77E7AFC0, 0040early_iounmap(ffffffff8287afc0, 00000024)early_ioremap(0000000077e79950, 00000024) => -000002105042608
ACPI: TCPA 77E79950, 0032 (r1 Phoeni x 6040000 TL 0)early_iounmap(ffffffff82879950, 00000024)early_ioremap(0000000077e79982, 00000024) => -000002105042558
ACPI: SSDT 77E79982, 0544 (r1 AMD POWERNOW 6040000 AMD 1)early_iounmap(ffffffff82879982, 00000024)early_ioremap(0000000077e79ec6, 00000024) => -000002105041210
ACPI: SRAT 77E79EC6, 00C0 (r1 AMD HAMMER 6040000 AMD 1)early_iounmap(ffffffff82879ec6, 00000024)early_ioremap(0000000077e79f86, 00000024) => -000002105041018
ACPI: APIC 77E79F86, 007A (r1 PTLTD APIC 6040000 LTP 0)early_iounmap(ffffffff82879f86, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e72d10, 00000024) => -000002105070320early_iounmap(ffffffff82872d10, 00000024)early_ioremap(0000000077e79ec6, 000000c0) => -000002105041210early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0early_iounmap(ffffffff82a79ec6, 000000c0)early_ioremap(0000000077e79ec6, 000000c0) => -000002102944058
SRAT: Node 0 PXM 0 0-a0000
Entering add_active_range(0, 0, 141) 0 entries of 3200 used
SRAT: Node 0 PXM 0 0-80000000
Entering add_active_range(0, 0, 141) 1 entries of 3200 used
Entering add_active_range(0, 256, 491120) 1 entries of 3200 usedearly_iounmap(ffffffff82a79ec6, 000000c0)
NUMA: Using 63 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000077e70000early_ioremap(0000000000000000, 00000400) => -000002103443456early_iounmap(ffffffff82a00000, 00000400)early_ioremap(000000000009fc00, 00000400) => -000002102789120early_iounmap(ffffffff82a9fc00, 00000400)early_ioremap(00000000000f0000, 00010000) => -000002102460416early_iounmap(ffffffff82af0000, 00010000)
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001600000 on node 0
[ffffe20000200000-ffffe200003fffff] PMD ->ffff810001a00000 on node 0
[ffffe20000400000-ffffe200005fffff] PMD ->ffff810001e00000 on node 0
[ffffe20000600000-ffffe200007fffff] PMD ->ffff810002200000 on node 0
[ffffe20000800000-ffffe200009fffff] PMD ->ffff810002600000 on node 0
[ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002e00000 on node 0
[ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810003200000 on node 0
[ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810003600000 on node 0
[ffffe20001000000-ffffe200011fffff] PMD ->ffff810003a00000 on node 0
[ffffe20001200000-ffffe200013fffff] PMD ->ffff810003e00000 on node 0
[ffffe20001400000-ffffe200015fffff] PMD ->ffff810004200000 on node 0
[ffffe20001600000-ffffe200017fffff] PMD ->ffff810004600000 on node 0
[ffffe20001800000-ffffe200019fffff] PMD ->ffff810004a00000 on node 0
[ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004e00000 on node 0
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 141
0: 256 -> 491120On node 0 totalpages: 491005
DMA zone: 56 pages used for memmap
DMA zone: 10 pages reserved
DMA zone: 3915 pages, LIFO batch:0
DMA32 zone: 6658 pages used for memmap
DMA32 zone: 480366 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ATI board detected. Disabling timer routing over 8254. early_ioremap(0000000077e7985c, 000000f4) => -000002102945700
ACPI: PM-Timer IO Port: 0x8008early_iounmap(ffffffff82a7985c, 000000f4)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: Local APIC address 0xfee00000early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 4, address 0xfec00000, GSI 0-23 early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) early_iounmap(ffffffff82a79f86, 0000007a)early_ioremap(0000000077e79f86, 0000007a) => -000002102943866 early_iounmap(ffffffff82a79f86, 0000007a)
Setting APIC routing to flat
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 30368 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 484281 Policy zone: DMA32
Kernel command line: root=/dev/sda1 console=ttyS0,115200 debug
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMERtime.c: Detected 2288.284 MHz processor.
Console: colour VGA+ 80x25
console [ttyS0] enabled
Checking aperture...
CPU 0: aperture @ 0 size 32 MB
No AGP bridge found
Memory: 1928912k/1964480k available (3074k kernel code, 35108k reserved, 1737k data, 308k init) Calibrating delay using timer specific routine.. 4581.44 BogoMIPS (lpj=9162891) Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x1040600010406
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
ioremap: addr 77e72d10, size 6ad8
ioremap: addr 77e79982, size 544
Using local APIC timer interrupts.
APIC timer calibration result 12436345
Detected 12.436 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153426)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 4576.71 BogoMIPS (lpj=9153423)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
x86 PAT enabled: cpu 2, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 4576.72 BogoMIPS (lpj=9153454)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
x86 PAT enabled: cpu 3, old 0x7040600070406, new 0x1040600010406
AMD Phenom(tm) 9600 Quad-Core Processor stepping 02
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
CPU0 attaching sched-domain:
domain 0: span f
groups: 1 2 4 8
domain 1: span f
groups: f
CPU1 attaching sched-domain:
domain 0: span f
groups: 2 4 8 1
domain 1: span f
groups: f
CPU2 attaching sched-domain:
domain 0: span f
groups: 4 8 1 2
domain 1: span f
groups: f
CPU3 attaching sched-domain:
domain 0: span f
groups: 8 1 2 4
domain 1: span f
groups: fnet_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ioremap: addr 77e7afc0, size 40
ACPI: EC: Look up EC in DSDT
ioremap: addr c0403104, size fc
ioremap: addr 77e7ade1, size 3
ioremap: addr 77e7af04, size 1
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to [email protected]
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled.
ioremap: addr 77e7985c, size f4
ioremap: addr 77e79950, size 32
ioremap: addr 77e79ec6, size c0
ioremap: addr 77e79f86, size 7a
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
ioremap: addr 77e7af74, size 48
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:08: ioport range 0x1080-0x1080 has been reserved
system 00:08: ioport range 0x220-0x22f has been reserved
system 00:08: ioport range 0x40b-0x40b has been reserved
system 00:08: ioport range 0x4d0-0x4d1 has been reserved
system 00:08: ioport range 0x4d6-0x4d6 has been reserved
system 00:08: ioport range 0x530-0x537 has been reserved
system 00:08: ioport range 0xc00-0xc01 has been reserved
system 00:08: ioport range 0xc14-0xc14 has been reserved
system 00:08: ioport range 0xc50-0xc52 has been reserved
system 00:08: ioport range 0xc6c-0xc6c has been reserved
system 00:08: ioport range 0xc6f-0xc6f has been reserved
system 00:08: ioport range 0xcd4-0xcd5 has been reserved
system 00:08: ioport range 0xcd6-0xcd7 has been reserved
system 00:08: ioport range 0xcd8-0xcdf has been reserved
system 00:08: ioport range 0x8000-0x805f has been reserved
system 00:08: ioport range 0xf40-0xf47 has been reserved
system 00:08: ioport range 0x87f-0x87f has been reserved
system 00:09: iomem range 0xe0000-0xfffff could not be reserved
system 00:09: iomem range 0xfff80000-0xffffffff could not be reserved
system 00:09: iomem range 0x0-0xfff could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: 9000-9fff
MEM window: c0000000-c00fffff
PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:14.4
IO window: 2000-2fff
MEM window: c0100000-c01fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: MSI quirk detected. MSI deactivated.ioremap_nocache: addr c0400000, size 1000ioremap_nocache: addr c0401000, size 1000ioremap_nocache: addr c0402000, size 1000
Boot video device is 0000:01:05.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [C000] (supports 8 throttling states)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16ioremap_nocache: addr c0100000, size 80
3c59x: Donald Becker and others.
0000:02:04.0: 3Com PCI 3c905C Tornado at ffffc200008aa000.
console [netcon0] enabled
netconsole: network logging started
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller (0x1002:0x4376 rev 0x80) at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
ATIIXP: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1060-0x1067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x1068-0x106f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
Probing IDE interface ide1...
hdc: SONY DVD-ROM DDU1615, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 40X DVD-ROM drive, 254kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methodssata_sil 0000:00:12.0: version 2.3
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22ioremap_nocache: addr c0403000, size 200
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc0403080 irq 22
ata2: SATA max UDMA/100 mmio m512@0xc0403000 tf 0xc04030c0 irq 22
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: ST3120811AS, 3.AAE, max UDMA/133
ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access ATA ST3120811AS 3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0402000, size 1000ehci_hcd 0000:00:13.2: EHCI Host Controllerehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 19, io mem 0xc0402000ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detectedohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0400000, size 1000ohci_hcd 0000:00:13.0: OHCI Host Controllerohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 19, io mem 0xc0400000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 19ioremap_nocache: addr c0401000, size 1000ohci_hcd 0000:00:13.1: OHCI Host Controllerohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 19, io mem 0xc0401000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
i2c /dev entries driver
i2c-core: driver [dev_driver] registeredpiix4_smbus 0000:00:14.0: Found 0000:00:14.0 devicepiix4_smbus 0000:00:14.0: Using Interrupt SMI# for SMBus.piix4_smbus 0000:00:14.0: SMBREV = 0x0piix4_smbus 0000:00:14.0: SMBA = 0x1050
i2c-adapter i2c-0: adapter [SMBus PIIX4 adapter at 1050] registered
i2c-dev: adapter [SMBus PIIX4 adapter at 1050] registered as minor 0
usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 17ioremap_nocache: addr c0403800, size 100
swapper:1 conflicting cache attribute c0403000-c0404000 uncached<->default ALSA device list:
#0: ATI IXP rev 80 with ALC655 at 0xc0403800, irq 17
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. powernow-k8: Found 1 AMD Phenom(tm) 9600 Quad-Core Processor processors (4 cpu cores) (version 2.20.00) powernow-k8: 0 : fid 0x0 did 0x0 (2300 MHz) powernow-k8: 1 : fid 0x0 did 0x0 (1150 MHz)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 308k freed
EXT3 FS on sda1, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 7823612k swap on /dev/sda6. Priority:-1 extents:1 across:7823612k
eth0: setting full-duplex.
eth0: no IPv6 routers present
Quoted 5 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 1 line
I'll check this asap
So, now that I've avoided this tiny NULL-pointer-dereference, the system boots fine as well with your (slightly modified) patch. See dmesg attached.
for now i applied your ioremap_uncached() patch and removed my patch.
my patch might work if the MTRR marks that area UC. Does it on your system?
if the MTRRs (as set up by the BIOS) keep it at WB, then the ACPI ioremap() is already unsafe: the mmio area that happens to be there might be prefetched by the CPU.
Ingo
Quoted 5 lines · Ingo Molnar
Quoted 2 lines · * Andreas Herrmann3 <[email protected]> wrote:
Quoted 1 line
I'll check this asap
Quoted 8 lines
Quoted 3 lines
So, now that I've avoided this tiny NULL-pointer-dereference, the system boots fine as well with your (slightly modified) patch. See dmesg attached.
for now i applied your
ioremap_uncached()patch and removed my patch.my patch might work if the MTRR marks that area UC. Does it on your system?
The region (c0403000-c04031ff) is not characterized by an MTRR. The MTRRdefType specifies it and it is
MTRRdefType = 0x0000000000000c00
MemType=0
MtrrDefTypeFixEn=0x1
MtrrDefTypeEn=0x1=> 0==UC
So, that's why it worked.
Andreas