diff mbox

[Bugfix] PCI, x86: Correctly allocate IRQs for PCI devices managed by non-PCI drivers

Message ID 55EF119E.5030905@linux.intel.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Jiang Liu Sept. 8, 2015, 4:49 p.m. UTC
On 2015/9/9 0:27, Bjorn Helgaas wrote:
> Hi Jiang,
> 
> I object to subject lines like "Correctly do such and such."  Nobody
> writes code to do things *incorrectly*, so the word "correctly" takes
> up space without contributing meaning.  In this case, it's at least
> debatable whether this is even the "correct" approach; see below.
> 
> On Tue, Sep 08, 2015 at 03:26:29PM +0800, Jiang Liu wrote:
>> Commit 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and
>> pcibios_free_irq()") changes the way to allocate PCI legacy IRQ
>> for PCI devices on x86 platforms. Instead of allocating PCI legacy
>> IRQs when pcibios_enable_device() gets called, now pcibios_alloc_irq()
>> will be called by pci_device_probe() to allocate PCI legacy IRQs
>> when binding PCI drivers to PCI devices.
>>
>> But some device drivers, such as eata, directly access PCI devices
>> without implementing corresponding PCI drivers, so pcibios_alloc_irq()
>> won't be called for those PCI devices and wrong IRQ number may be
>> used to manage the PCI device.
> 
> I'm not sure this is wise.  
> 
> We normally call pcibios_alloc_irq() from pci_device_probe(), just
> before we call the driver's .probe() method.
> 
> The eata driver does not use pci_register_driver(), so there is no
> .probe() method (also no .remove(), .suspend(), etc.)  But eata *does*
> use pci_enable_device() and other PCI interfaces.  So this patch adds
> code in the x86 pci_enable_device() path for this case.
> 
> AFAICT, there's no real reason why eata doesn't register a PCI driver;
> it's just a case of legacy code where nobody has been motivated to
> update it.  I'm not in favor of catering to code like that because
> then we have random special cases like this that clutter up the core
> code.
> 
> I don't think we should necessarily expect the PCI core to support
> calls to PCI interfaces when it hasn't had a chance to initialize
> itself via driver registration.
> 
>> So detect such a case in pcibios_enable_device() by checking
>> pci_dev->driver is NULL and call pcibios_alloc_irq() to allocate PCI
>> legacy IRQs.
>>
>> Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
>> ---
>>  arch/x86/pci/common.c |   10 ++++++++++
>>  1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
>> index 09d3afc0a181..60b237783582 100644
>> --- a/arch/x86/pci/common.c
>> +++ b/arch/x86/pci/common.c
>> @@ -685,6 +685,16 @@ void pcibios_free_irq(struct pci_dev *dev)
>>  
>>  int pcibios_enable_device(struct pci_dev *dev, int mask)
>>  {
>> +	/*
>> +	 * By design, pcibios_alloc_irq() will be called by pci_device_probe()
>> +	 * when binding a PCI device to a PCI driver. But some device drivers,
>> +	 * such as eata, directly make use of PCI devices without implementing
>> +	 * PCI device drivers, so pcibios_alloc_irq() won't be called for those
>> +	 * PCI devices.
>> +	 */
>> +	if (!dev->driver)
>> +		pcibios_alloc_irq(dev);
> 
> This is a point fix for x86 only, but I think eata can be built for
> any architecture.  Won't other architectures still have the same
> problem?
Hi Bjorn,
	We have used another draft version to fix this issue by changing
eata driver as below. But that needs to export pcibios_alloc_irq. And
I'm not sure whether there are other drivers having the same behavior.
If we think it's a legacy behavior and only a few drivers may have
such a behavior, I prefer changing drivers to fix the issue too.
Thanks!
Gerry
---
 drivers/pci/pci-driver.c |    1 +
 drivers/scsi/eata.c      |    2 ++
 2 files changed, 3 insertions(+)



> 
>>  	return pci_enable_resources(dev, mask);
>>  }
>>  
>> -- 
>> 1.7.10.4
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Bjorn Helgaas Sept. 9, 2015, 7:11 p.m. UTC | #1
On Tue, Sep 8, 2015 at 11:49 AM, Jiang Liu <jiang.liu@linux.intel.com> wrote:
> Hi Bjorn,
>         We have used another draft version to fix this issue by changing
> eata driver as below. But that needs to export pcibios_alloc_irq. And
> I'm not sure whether there are other drivers having the same behavior.
> If we think it's a legacy behavior and only a few drivers may have
> such a behavior, I prefer changing drivers to fix the issue too.

Did you look at changing the driver to use pci_register_driver()?  I
bet it's pretty straightforward.

>  drivers/pci/pci-driver.c |    1 +
>  drivers/scsi/eata.c      |    2 ++
>  2 files changed, 3 insertions(+)
>
> diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
> index 52a880ca1768..17d2a0b1de18 100644
> --- a/drivers/pci/pci-driver.c
> +++ b/drivers/pci/pci-driver.c
> @@ -392,6 +392,7 @@ int __weak pcibios_alloc_irq(struct pci_dev *dev)
>  {
>         return 0;
>  }
> +EXPORT_SYMBOL_GPL(pcibios_alloc_irq);
>
>  void __weak pcibios_free_irq(struct pci_dev *dev)
>  {
> diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
> index 227dd2c2ec2f..7e6eaf867987 100644
> --- a/drivers/scsi/eata.c
> +++ b/drivers/scsi/eata.c
> @@ -1061,6 +1061,7 @@ static void enable_pci_ports(void)
>                        driver_name, dev->bus->number, dev->devfn);
>  #endif
>
> +               pcibios_alloc_irq(dev);
>                 if (pci_enable_device(dev))
>                         printk
>                             ("%s: warning, pci_enable_device failed, bus %d devfn 0x%x.\n",
> @@ -1520,6 +1521,7 @@ static void add_pci_ports(void)
>                 if (!(dev = pci_get_class(PCI_CLASS_STORAGE_SCSI << 8, dev)))
>                         break;
>
> +               pcibios_alloc_irq(dev);
>                 if (pci_enable_device(dev)) {
>  #if defined(DEBUG_PCI_DETECT)
>                         printk
>
>
>>
>>>      return pci_enable_resources(dev, mask);
>>>  }
>>>
>>> --
>>> 1.7.10.4
>>>
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jiang Liu Sept. 10, 2015, 8:58 a.m. UTC | #2
On 2015/9/10 3:11, Bjorn Helgaas wrote:
> On Tue, Sep 8, 2015 at 11:49 AM, Jiang Liu <jiang.liu@linux.intel.com> wrote:
>> Hi Bjorn,
>>         We have used another draft version to fix this issue by changing
>> eata driver as below. But that needs to export pcibios_alloc_irq. And
>> I'm not sure whether there are other drivers having the same behavior.
>> If we think it's a legacy behavior and only a few drivers may have
>> such a behavior, I prefer changing drivers to fix the issue too.
> 
> Did you look at changing the driver to use pci_register_driver()?  I
> bet it's pretty straightforward.
Hi Bjorn,
	I have done some investigation. It's doable, but the change
may be a little bigger. Will send the patch out for comments once
it's done.
Thanks!
Gerry

> 
>>  drivers/pci/pci-driver.c |    1 +
>>  drivers/scsi/eata.c      |    2 ++
>>  2 files changed, 3 insertions(+)
>>
>> diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
>> index 52a880ca1768..17d2a0b1de18 100644
>> --- a/drivers/pci/pci-driver.c
>> +++ b/drivers/pci/pci-driver.c
>> @@ -392,6 +392,7 @@ int __weak pcibios_alloc_irq(struct pci_dev *dev)
>>  {
>>         return 0;
>>  }
>> +EXPORT_SYMBOL_GPL(pcibios_alloc_irq);
>>
>>  void __weak pcibios_free_irq(struct pci_dev *dev)
>>  {
>> diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
>> index 227dd2c2ec2f..7e6eaf867987 100644
>> --- a/drivers/scsi/eata.c
>> +++ b/drivers/scsi/eata.c
>> @@ -1061,6 +1061,7 @@ static void enable_pci_ports(void)
>>                        driver_name, dev->bus->number, dev->devfn);
>>  #endif
>>
>> +               pcibios_alloc_irq(dev);
>>                 if (pci_enable_device(dev))
>>                         printk
>>                             ("%s: warning, pci_enable_device failed, bus %d devfn 0x%x.\n",
>> @@ -1520,6 +1521,7 @@ static void add_pci_ports(void)
>>                 if (!(dev = pci_get_class(PCI_CLASS_STORAGE_SCSI << 8, dev)))
>>                         break;
>>
>> +               pcibios_alloc_irq(dev);
>>                 if (pci_enable_device(dev)) {
>>  #if defined(DEBUG_PCI_DETECT)
>>                         printk
>>
>>
>>>
>>>>      return pci_enable_resources(dev, mask);
>>>>  }
>>>>
>>>> --
>>>> 1.7.10.4
>>>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jiang Liu Sept. 14, 2015, 3:08 a.m. UTC | #3
Hi Authur,
	As suggested by Bjorn, patch 1-2 set implement a PCI device
driver to manage eata PCI devices. And patch 3 tries to support PCI
device hot-removal for eata, but I have no change to test due to 
limited knowledge about scsi subsystem and lacking of hardware for
tests.
	So you could please help to test patch 1-2? Patch 3 is just
for comments.
Thanks!
Gerry

Jiang Liu (3):
  eata: Use IDA to manage eata board IDs
  eata: Implement PCI driver to manage eata PCI devices
  eata: Enhance eata driver to support PCI device hot-removal

 drivers/scsi/eata.c |  232 +++++++++++++++++++++++++++------------------------
 1 file changed, 125 insertions(+), 107 deletions(-)
Arthur Marsh Sept. 14, 2015, 4:01 p.m. UTC | #4
Jiang Liu wrote on 14/09/15 12:38:
> Hi Authur,
> 	As suggested by Bjorn, patch 1-2 set implement a PCI device
> driver to manage eata PCI devices. And patch 3 tries to support PCI
> device hot-removal for eata, but I have no change to test due to
> limited knowledge about scsi subsystem and lacking of hardware for
> tests.
> 	So you could please help to test patch 1-2? Patch 3 is just
> for comments.
> Thanks!
> Gerry
>
> Jiang Liu (3):
>    eata: Use IDA to manage eata board IDs
>    eata: Implement PCI driver to manage eata PCI devices
>    eata: Enhance eata driver to support PCI device hot-removal
>
>   drivers/scsi/eata.c |  232 +++++++++++++++++++++++++++------------------------
>   1 file changed, 125 insertions(+), 107 deletions(-)
>

With patches 1 and 2 applied, I get a successful boot with IRQ mapping:

[    1.147056] EATA0: IRQ 10 mapped to IO-APIC IRQ 17.
[    1.160404] EATA/DMA 2.0x: Copyright (C) 1994-2003 Dario Ballabio.
[    1.160469] EATA config options -> tm:1, lc:y, mq:16, rs:y, et:n, 
ip:n, ep:n, pp:y.
[    1.160541] EATA0: 2.0C, PCI 0xd890, IRQ 17, BMST, SG 122, MB 64.
[    1.160600] EATA0: wide SCSI support enabled, max_id 16, max_lun 8.
[    1.160658] EATA0: SCSI channel 0 enabled, host target ID 7.
[    1.161207] scsi host0: EATA/DMA 2.0x rev. 8.10.00


but I still get errors when trying to do a kexec reboot, see 
http://www.users.on.net/~arthur.marsh/20150915547.jpg

roughly it reads (after the synchronising SCSI cache reboot messages) 
and a long period of a dark screen:

sd 0:0:6:0: abort, mbox 63.
EATA0: abort, mbox 63 is in use.
sd 0:0:6:0: reset, enter.
EATA0: reset, mbox 63 in reset.
EATA0: reset, board reset done, enabling interrupts.
EATA0: reset, interrupts disabled, loops 100469.
EATA0: reset, mbox 63 locked, DID_RESET, done.
EATA0: reset, exit, done.
sd 0:0:6:0: qcomm, mbox 0, adapter busy, will start
sd 0:0:6:0: abort, mbox 0.
EATA0: abort, timeout error.
sd 0:0:6:0: reset, enter.
EATA0: reset, exit, timeout error.
sd 0:0:6:0 Device offlinled - not ready after error recovery
sd 0:0:6:0 rejecting I/O to offline device
sd 0:0:6:0 rejecting I/O to offline device
sd 0:0:6:0 [sda] Synchronize Cache(10) failed: Result: 
hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
starting new kernel

It would be great if this problem could be fixed.

Arthur.

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jiang Liu Sept. 15, 2015, 2:31 a.m. UTC | #5
On 2015/9/15 0:01, Arthur Marsh wrote:
> 
> 
> Jiang Liu wrote on 14/09/15 12:38:
>> Hi Authur,
>>     As suggested by Bjorn, patch 1-2 set implement a PCI device
>> driver to manage eata PCI devices. And patch 3 tries to support PCI
>> device hot-removal for eata, but I have no change to test due to
>> limited knowledge about scsi subsystem and lacking of hardware for
>> tests.
>>     So you could please help to test patch 1-2? Patch 3 is just
>> for comments.
>> Thanks!
>> Gerry
>>
>> Jiang Liu (3):
>>    eata: Use IDA to manage eata board IDs
>>    eata: Implement PCI driver to manage eata PCI devices
>>    eata: Enhance eata driver to support PCI device hot-removal
>>
>>   drivers/scsi/eata.c |  232
>> +++++++++++++++++++++++++++------------------------
>>   1 file changed, 125 insertions(+), 107 deletions(-)
>>
> 
> With patches 1 and 2 applied, I get a successful boot with IRQ mapping:
> 
> [    1.147056] EATA0: IRQ 10 mapped to IO-APIC IRQ 17.
> [    1.160404] EATA/DMA 2.0x: Copyright (C) 1994-2003 Dario Ballabio.
> [    1.160469] EATA config options -> tm:1, lc:y, mq:16, rs:y, et:n,
> ip:n, ep:n, pp:y.
> [    1.160541] EATA0: 2.0C, PCI 0xd890, IRQ 17, BMST, SG 122, MB 64.
> [    1.160600] EATA0: wide SCSI support enabled, max_id 16, max_lun 8.
> [    1.160658] EATA0: SCSI channel 0 enabled, host target ID 7.
> [    1.161207] scsi host0: EATA/DMA 2.0x rev. 8.10.00
> 
> 
> but I still get errors when trying to do a kexec reboot, see
> http://www.users.on.net/~arthur.marsh/20150915547.jpg
> 
> roughly it reads (after the synchronising SCSI cache reboot messages)
> and a long period of a dark screen:
> 
> sd 0:0:6:0: abort, mbox 63.
> EATA0: abort, mbox 63 is in use.
> sd 0:0:6:0: reset, enter.
> EATA0: reset, mbox 63 in reset.
> EATA0: reset, board reset done, enabling interrupts.
> EATA0: reset, interrupts disabled, loops 100469.
> EATA0: reset, mbox 63 locked, DID_RESET, done.
> EATA0: reset, exit, done.
> sd 0:0:6:0: qcomm, mbox 0, adapter busy, will start
> sd 0:0:6:0: abort, mbox 0.
> EATA0: abort, timeout error.
> sd 0:0:6:0: reset, enter.
> EATA0: reset, exit, timeout error.
> sd 0:0:6:0 Device offlinled - not ready after error recovery
> sd 0:0:6:0 rejecting I/O to offline device
> sd 0:0:6:0 rejecting I/O to offline device
> sd 0:0:6:0 [sda] Synchronize Cache(10) failed: Result:
> hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
> starting new kernel
> 
> It would be great if this problem could be fixed.
HI Arthur,
	Really appreciate your help to test the patches. That's
a good sign we have moved forward a bit:)
	For kexec, it's always challenging to me. So could you
please help to provide full dmesg logs with working kernels
so I could try to figure out the order among scsi and PCI devices.
It may be shutdown order related.
Thanks!
Gerry

> 
> Arthur.
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arthur Marsh Sept. 15, 2015, 7:19 a.m. UTC | #6
Jiang Liu wrote on 15/09/15 12:01:

> HI Arthur,
> 	Really appreciate your help to test the patches. That's
> a good sign we have moved forward a bit:)
> 	For kexec, it's always challenging to me. So could you
> please help to provide full dmesg logs with working kernels
> so I could try to figure out the order among scsi and PCI devices.
> It may be shutdown order related.
> Thanks!
> Gerry

OK, attached is the dmesg output from the 4.2.0 kernel where kexec worked.

Arthur.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0 (root@am64) (gcc version 5.1.1 20150711 (Debian 5.1.1-14) ) #1921 SMP PREEMPT Sun Sep 6 00:08:31 ACST 2015
[    0.000000] x86/fpu: Legacy x87 FPU detected.
[    0.000000] x86/fpu: Using 'lazy' FPU context switches.
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffaffff] usable
[    0.000000] BIOS-e820: [mem 0x000000003ffb0000-0x000000003ffbdfff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000003ffbe000-0x000000003ffdffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000003ffe0000-0x000000003fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000ff780000-0x00000000ffffffff] reserved
[    0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
[    0.000000] SMBIOS 2.3 present.
[    0.000000] DMI: System manufacturer System Product Name/A8V-MX, BIOS 0503    12/06/2005
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x3ffb0 max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-EFFFF uncachable
[    0.000000]   F0000-FFFFF write-protect
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 0000000000 mask FFC0000000 write-back
[    0.000000]   1 base 00D0000000 mask FFF0000000 write-combining
[    0.000000]   2 disabled
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- WT  
[    0.000000] found SMP MP-table at [mem 0x000ff780-0x000ff78f] mapped at [c00ff780]
[    0.000000] initial memory mapped: [mem 0x00000000-0x023fffff]
[    0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000]  [mem 0x00000000-0x000fffff] page 4k
[    0.000000] init_memory_mapping: [mem 0x35c00000-0x35ffffff]
[    0.000000]  [mem 0x35c00000-0x35ffffff] page 4M
[    0.000000] init_memory_mapping: [mem 0x00100000-0x35bfffff]
[    0.000000]  [mem 0x00100000-0x003fffff] page 4k
[    0.000000]  [mem 0x00400000-0x35bfffff] page 4M
[    0.000000] init_memory_mapping: [mem 0x36000000-0x377fdfff]
[    0.000000]  [mem 0x36000000-0x373fffff] page 4M
[    0.000000]  [mem 0x37400000-0x377fdfff] page 4k
[    0.000000] BRK [0x0207d000, 0x0207dfff] PGTABLE
[    0.000000] RAMDISK: [mem 0x36140000-0x37097fff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000FAC60 000024 (v02 ACPIAM)
[    0.000000] ACPI: XSDT 0x000000003FFB0100 00003C (v01 A M I  OEMXSDT  12000506 MSFT 00000097)
[    0.000000] ACPI: FACP 0x000000003FFB0290 0000F4 (v03 A M I  OEMFACP  12000506 MSFT 00000097)
[    0.000000] ACPI: DSDT 0x000000003FFB03F0 0046F0 (v01 A0347  A0347001 00000001 INTL 02002026)
[    0.000000] ACPI: FACS 0x000000003FFBE000 000040
[    0.000000] ACPI: FACS 0x000000003FFBE000 000040
[    0.000000] ACPI: APIC 0x000000003FFB0390 00005C (v01 A M I  OEMAPIC  12000506 MSFT 00000097)
[    0.000000] ACPI: OEMB 0x000000003FFBE040 000046 (v01 A M I  AMI_OEM  12000506 MSFT 00000097)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] 135MB HIGHMEM available.
[    0.000000] 887MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 377fe000
[    0.000000]   low ram: 0 - 377fe000
[    0.000000] BRK [0x0207e000, 0x0207efff] PGTABLE
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   Normal   [mem 0x0000000001000000-0x00000000377fdfff]
[    0.000000]   HighMem  [mem 0x00000000377fe000-0x000000003ffaffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000003ffaffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffaffff]
[    0.000000] On node 0 totalpages: 261966
[    0.000000]   DMA zone: 36 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   Normal zone: 1962 pages used for memmap
[    0.000000]   Normal zone: 223230 pages, LIFO batch:31
[    0.000000]   HighMem zone: 34738 pages, LIFO batch:7
[    0.000000] Using APIC driver default
[    0.000000] ACPI: PM-Timer IO Port: 0x808
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] IOAPIC[0]: apic_id 1, version 3, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] smpboot: Allowing 2 CPUs, 1 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
[    0.000000] e820: [mem 0x40000000-0xdfffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
[    0.000000] PERCPU: Embedded 17 pages/cpu @f5ef6000 s40744 r0 d28888 u69632
[    0.000000] pcpu-alloc: s40744 r0 d28888 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259968
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.2.0 root=UUID=96c96a61-8615-4715-86d0-09cb8c62638c ro
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] Initializing HighMem for node 0 (000377fe:0003ffb0)
[    0.000000] Initializing Movable for node 0 (00000000:00000000)
[    0.000000] Memory: 1004544K/1047864K available (5537K kernel code, 538K rwdata, 2072K rodata, 520K init, 8144K bss, 43320K reserved, 0K cma-reserved, 138952K highmem)
[    0.000000] virtual kernel memory layout:
                   fixmap  : 0xfff16000 - 0xfffff000   ( 932 kB)
                   pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
                   vmalloc : 0xf7ffe000 - 0xff7fe000   ( 120 MB)
                   lowmem  : 0xc0000000 - 0xf77fe000   ( 887 MB)
                     .init : 0xc17f8000 - 0xc187a000   ( 520 kB)
                     .data : 0xc1568a7a - 0xc17f69c0   (2615 kB)
                     .text : 0xc1000000 - 0xc1568a7a   (5538 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] Running RCU self tests
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU lockdep checking is enabled.
[    0.000000] 	Additional per-CPU info printed with stalls.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:2304 nr_irqs:440 16
[    0.000000] CPU 0 irqstacks, hard=f5816000 soft=f5818000
[    0.000000] spurious 8259A interrupt: IRQ7.
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.000000] ... MAX_LOCKDEP_CHAINS:      65536
[    0.000000] ... CHAINHASH_SIZE:          32768
[    0.000000]  memory used by lock dependency info: 4911 kB
[    0.000000]  per task-struct memory footprint: 1344 bytes
[    0.000000] ------------------------
[    0.000000] | Locking API testsuite:
[    0.000000] ----------------------------------------------------------------------------
[    0.000000]                                  | spin |wlock |rlock |mutex | wsem | rsem |
[    0.000000]   --------------------------------------------------------------------------
[    0.000000]                      A-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]                  A-B-B-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]              A-B-B-C-C-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]              A-B-C-A-B-C deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]          A-B-B-C-C-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]          A-B-C-D-B-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]          A-B-C-D-B-C-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]                     double unlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]                   initialize held:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]                  bad unlock order:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]   --------------------------------------------------------------------------
[    0.000000]               recursive read-lock:             |  ok  |             |  ok  |
[    0.000000]            recursive read-lock #2:             |  ok  |             |  ok  |
[    0.000000]             mixed read-write-lock:             |  ok  |             |  ok  |
[    0.000000]             mixed write-read-lock:             |  ok  |             |  ok  |
[    0.000000]   --------------------------------------------------------------------------
[    0.000000]      hard-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
[    0.000000]      soft-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
[    0.000000]      hard-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
[    0.000000]      soft-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
[    0.000000]        sirq-safe-A => hirqs-on/12:  ok  |  ok  |  ok  |
[    0.000000]        sirq-safe-A => hirqs-on/21:  ok  |  ok  |  ok  |
[    0.000000]          hard-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
[    0.000000]          soft-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
[    0.000000]          hard-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
[    0.000000]          soft-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
[    0.000000]     hard-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
[    0.000000]     soft-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/123:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/123:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/132:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/132:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/213:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/213:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/231:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/231:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/312:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/312:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq lock-inversion/321:  ok  |  ok  |  ok  |
[    0.000000]       soft-irq lock-inversion/321:  ok  |  ok  |  ok  |
[    0.000000]       hard-irq read-recursion/123:  ok  |
[    0.000000]       soft-irq read-recursion/123:  ok  |
[    0.000000]       hard-irq read-recursion/132:  ok  |
[    0.000000]       soft-irq read-recursion/132:  ok  |
[    0.000000]       hard-irq read-recursion/213:  ok  |
[    0.000000]       soft-irq read-recursion/213:  ok  |
[    0.000000]       hard-irq read-recursion/231:  ok  |
[    0.000000]       soft-irq read-recursion/231:  ok  |
[    0.000000]       hard-irq read-recursion/312:  ok  |
[    0.000000]       soft-irq read-recursion/312:  ok  |
[    0.000000]       hard-irq read-recursion/321:  ok  |
[    0.000000]       soft-irq read-recursion/321:  ok  |
[    0.000000]   --------------------------------------------------------------------------
[    0.000000]   | Wound/wait tests |
[    0.000000]   ---------------------
[    0.000000]                   ww api failures:  ok  |  ok  |  ok  |
[    0.000000]                ww contexts mixing:  ok  |  ok  |
[    0.000000]              finishing ww context:  ok  |  ok  |  ok  |  ok  |
[    0.000000]                locking mismatches:  ok  |  ok  |  ok  |
[    0.000000]                  EDEADLK handling:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
[    0.000000]            spinlock nest unlocked:  ok  |
[    0.000000]   -----------------------------------------------------
[    0.000000]                                  |block | try  |context|
[    0.000000]   -----------------------------------------------------
[    0.000000]                           context:  ok  |  ok  |  ok  |
[    0.000000]                               try:  ok  |  ok  |  ok  |
[    0.000000]                             block:  ok  |  ok  |  ok  |
[    0.000000]                          spinlock:  ok  |  ok  |  ok  |
[    0.000000] -------------------------------------------------------
[    0.000000] Good, all 253 testcases passed! |
[    0.000000] ---------------------------------
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 1999.920 MHz processor
[    0.000000] tsc: Marking TSC unstable due to TSCs unsynchronized
[    0.008119] Calibrating delay loop (skipped), value calculated using timer frequency.. 3999.84 BogoMIPS (lpj=7999680)
[    0.008234] pid_max: default: 32768 minimum: 301
[    0.008344] ACPI: Core revision 20150619
[    0.017932] ACPI: All ACPI Tables successfully acquired
[    0.018152] Security Framework initialized
[    0.018212] AppArmor: AppArmor disabled by boot time parameter
[    0.018270] Yama: becoming mindful.
[    0.018387] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.018448] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.019612] Initializing cgroup subsys blkio
[    0.019695] Initializing cgroup subsys memory
[    0.019773] Initializing cgroup subsys devices
[    0.019855] Initializing cgroup subsys freezer
[    0.019956] Initializing cgroup subsys net_cls
[    0.020009] Initializing cgroup subsys perf_event
[    0.020070] Initializing cgroup subsys net_prio
[    0.020164] mce: CPU supports 5 MCE banks
[    0.020229] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 4
[    0.020287] Last level dTLB entries: 4KB 512, 2MB 8, 4MB 4, 1GB 0
[    0.026283] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.026899] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    0.068000] smpboot: CPU0: AMD Athlon(tm) 64 Processor 3200+ (fam: 0f, model: 2f, stepping: 02)
[    0.068000] Performance Events: AMD PMU driver.
[    0.068000] ... version:                0
[    0.068000] ... bit width:              48
[    0.068000] ... generic registers:      4
[    0.068000] ... value mask:             0000ffffffffffff
[    0.068000] ... max period:             00007fffffffffff
[    0.068000] ... fixed-purpose events:   0
[    0.068000] ... event mask:             000000000000000f
[    0.076063] x86: Booted up 1 node, 1 CPUs
[    0.076124] smpboot: Total of 1 processors activated (3999.84 BogoMIPS)
[    0.076892] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
[    0.077941] devtmpfs: initialized
[    0.080630] PM: Registering ACPI NVS region [mem 0x3ffbe000-0x3ffdffff] (139264 bytes)
[    0.080968] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.081242] pinctrl core: initialized pinctrl subsystem
[    0.082154] NET: Registered protocol family 16
[    0.092043] cpuidle: using governor ladder
[    0.104019] cpuidle: using governor menu
[    0.104083] node 0 link 0: io port [1000, ffffff]
[    0.104088] TOM: 0000000040000000 aka 1024M
[    0.104146] node 0 link 0: mmio [a0000, bffff]
[    0.104151] node 0 link 0: mmio [40000000, ffffffff]
[    0.104155] bus: [bus 00-ff] on node 0 link 0
[    0.104157] bus: 00 [io  0x0000-0xffff]
[    0.104160] bus: 00 [mem 0x000a0000-0x000bffff]
[    0.104162] bus: 00 [mem 0x40000000-0xffffffff]
[    0.104270] ACPI: bus type PCI registered
[    0.104328] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.105298] PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=5
[    0.105356] PCI: Using configuration type 1 for base access
[    0.121547] ACPI: Added _OSI(Module Device)
[    0.121608] ACPI: Added _OSI(Processor Device)
[    0.121666] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.121723] ACPI: Added _OSI(Processor Aggregator Device)
[    0.129256] ACPI: Executed 1 blocks of module-level executable AML code
[    0.135364] ACPI: Interpreter enabled
[    0.135442] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150619/hwxface-580)
[    0.135598] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20150619/hwxface-580)
[    0.135801] ACPI: (supports S0 S1 S4 S5)
[    0.135858] ACPI: Using IOAPIC for interrupt routing
[    0.136009] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
[    0.160807] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.160878] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[    0.161020] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[    0.161275] acpi PNP0A03:00: host bridge window [io  0x0000-0x0cf7 window] (ignored)
[    0.161279] acpi PNP0A03:00: host bridge window [io  0x0d00-0xffff window] (ignored)
[    0.161283] acpi PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff window] (ignored)
[    0.161286] acpi PNP0A03:00: host bridge window [mem 0x000c0000-0x000dffff window] (ignored)
[    0.161289] acpi PNP0A03:00: host bridge window [mem 0x40000000-0xffffffff window] (ignored)
[    0.161293] PCI: root bus 00: hardware-probed resources
[    0.161343] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[    0.162451] PCI host bridge to bus 0000:00
[    0.162510] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.162570] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.162629] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
[    0.162690] pci_bus 0000:00: root bus resource [mem 0x40000000-0xffffffff]
[    0.162794] pci 0000:00:00.0: [1106:0204] type 00 class 0x060000
[    0.162827] pci 0000:00:00.0: reg 0x10: [mem 0xd0000000-0xdfffffff pref]
[    0.163455] pci 0000:00:00.1: [1106:1204] type 00 class 0x060000
[    0.163823] pci 0000:00:00.2: [1106:2204] type 00 class 0x060000
[    0.164183] pci 0000:00:00.3: [1106:3204] type 00 class 0x060000
[    0.164553] pci 0000:00:00.4: [1106:4204] type 00 class 0x060000
[    0.164905] pci 0000:00:00.7: [1106:7204] type 00 class 0x060000
[    0.165256] pci 0000:00:01.0: [1106:b188] type 01 class 0x060400
[    0.165328] pci 0000:00:01.0: supports D1
[    0.165638] pci 0000:00:0f.0: [1106:0571] type 00 class 0x01018a
[    0.165709] pci 0000:00:0f.0: reg 0x20: [io  0xfc00-0xfc0f]
[    0.165738] pci 0000:00:0f.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.165799] pci 0000:00:0f.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.165859] pci 0000:00:0f.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.165919] pci 0000:00:0f.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.166270] pci 0000:00:10.0: [1106:3038] type 00 class 0x0c0300
[    0.166340] pci 0000:00:10.0: reg 0x20: [io  0xec00-0xec1f]
[    0.166391] pci 0000:00:10.0: supports D1 D2
[    0.166394] pci 0000:00:10.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.166641] pci 0000:00:10.0: System wakeup disabled by ACPI
[    0.166881] pci 0000:00:10.1: [1106:3038] type 00 class 0x0c0300
[    0.166951] pci 0000:00:10.1: reg 0x20: [io  0xe880-0xe89f]
[    0.167002] pci 0000:00:10.1: supports D1 D2
[    0.167005] pci 0000:00:10.1: PME# supported from D0 D1 D2 D3hot D3cold
[    0.167165] pci 0000:00:10.1: System wakeup disabled by ACPI
[    0.167406] pci 0000:00:10.2: [1106:3038] type 00 class 0x0c0300
[    0.167476] pci 0000:00:10.2: reg 0x20: [io  0xe800-0xe81f]
[    0.167528] pci 0000:00:10.2: supports D1 D2
[    0.167531] pci 0000:00:10.2: PME# supported from D0 D1 D2 D3hot D3cold
[    0.167691] pci 0000:00:10.2: System wakeup disabled by ACPI
[    0.167934] pci 0000:00:10.3: [1106:3038] type 00 class 0x0c0300
[    0.168014] pci 0000:00:10.3: reg 0x20: [io  0xe480-0xe49f]
[    0.168066] pci 0000:00:10.3: supports D1 D2
[    0.168070] pci 0000:00:10.3: PME# supported from D0 D1 D2 D3hot D3cold
[    0.168226] pci 0000:00:10.3: System wakeup disabled by ACPI
[    0.168469] pci 0000:00:10.4: [1106:3104] type 00 class 0x0c0320
[    0.168504] pci 0000:00:10.4: reg 0x10: [mem 0xff6ffc00-0xff6ffcff]
[    0.168599] pci 0000:00:10.4: supports D1 D2
[    0.168602] pci 0000:00:10.4: PME# supported from D0 D1 D2 D3hot D3cold
[    0.168763] pci 0000:00:10.4: System wakeup disabled by ACPI
[    0.169008] pci 0000:00:11.0: [1106:3287] type 00 class 0x060100
[    0.169429] pci 0000:00:11.7: [1106:287e] type 00 class 0x060000
[    0.169793] pci 0000:00:12.0: [1106:3065] type 00 class 0x020000
[    0.169825] pci 0000:00:12.0: reg 0x10: [io  0xe000-0xe0ff]
[    0.169838] pci 0000:00:12.0: reg 0x14: [mem 0xff6ff800-0xff6ff8ff]
[    0.169919] pci 0000:00:12.0: supports D1 D2
[    0.169922] pci 0000:00:12.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.170081] pci 0000:00:12.0: System wakeup disabled by ACPI
[    0.170317] pci 0000:00:13.0: [1106:287b] type 01 class 0x060400
[    0.170642] pci 0000:00:13.1: [1106:287a] type 01 class 0x060400
[    0.170843] pci 0000:00:13.1: System wakeup disabled by ACPI
[    0.171097] pci 0000:00:18.0: [1022:1100] type 00 class 0x060000
[    0.171401] pci 0000:00:18.1: [1022:1101] type 00 class 0x060000
[    0.171699] pci 0000:00:18.2: [1022:1102] type 00 class 0x060000
[    0.172006] pci 0000:00:18.3: [1022:1103] type 00 class 0x060000
[    0.172437] pci 0000:01:00.0: [1002:4153] type 00 class 0x030000
[    0.172467] pci 0000:01:00.0: reg 0x10: [mem 0xa0000000-0xafffffff pref]
[    0.172478] pci 0000:01:00.0: reg 0x14: [io  0xc000-0xc0ff]
[    0.172489] pci 0000:01:00.0: reg 0x18: [mem 0xff4f0000-0xff4fffff]
[    0.172523] pci 0000:01:00.0: reg 0x30: [mem 0xff4c0000-0xff4dffff pref]
[    0.172559] pci 0000:01:00.0: supports D1 D2
[    0.172716] pci 0000:01:00.1: [1002:4173] type 00 class 0x038000
[    0.172740] pci 0000:01:00.1: reg 0x10: [mem 0x90000000-0x9fffffff pref]
[    0.172751] pci 0000:01:00.1: reg 0x14: [mem 0xff4e0000-0xff4effff]
[    0.172820] pci 0000:01:00.1: supports D1 D2
[    0.173014] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.173076] pci 0000:00:01.0:   bridge window [io  0xa000-0xcfff]
[    0.173082] pci 0000:00:01.0:   bridge window [mem 0xff400000-0xff4fffff]
[    0.173087] pci 0000:00:01.0:   bridge window [mem 0x7ff00000-0xbfefffff pref]
[    0.173266] pci 0000:02:00.0: [1106:287c] type 01 class 0x060400
[    0.173347] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    0.173415] pci 0000:02:00.0: System wakeup disabled by ACPI
[    0.173653] pci 0000:02:00.1: [1106:287d] type 01 class 0x060400
[    0.173733] pci 0000:02:00.1: PME# supported from D0 D3hot D3cold
[    0.173961] pci 0000:02:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.174087] pci 0000:00:13.0: PCI bridge to [bus 02-04]
[    0.174278] pci 0000:02:00.0: PCI bridge to [bus 03]
[    0.174476] pci 0000:02:00.1: PCI bridge to [bus 04]
[    0.174697] pci 0000:05:0b.0: [1102:0004] type 00 class 0x040100
[    0.174728] pci 0000:05:0b.0: reg 0x10: [io  0xd800-0xd83f]
[    0.174823] pci 0000:05:0b.0: supports D1 D2
[    0.174980] pci 0000:05:0b.1: [1102:7003] type 00 class 0x098000
[    0.175009] pci 0000:05:0b.1: reg 0x10: [io  0xdc00-0xdc07]
[    0.175105] pci 0000:05:0b.1: supports D1 D2
[    0.175260] pci 0000:05:0b.2: [1102:4001] type 00 class 0x0c0010
[    0.175292] pci 0000:05:0b.2: reg 0x10: [mem 0xff5ef800-0xff5effff]
[    0.175305] pci 0000:05:0b.2: reg 0x14: [mem 0xff5e8000-0xff5ebfff]
[    0.175393] pci 0000:05:0b.2: supports D1 D2
[    0.175396] pci 0000:05:0b.2: PME# supported from D0 D1 D2 D3hot
[    0.175596] pci 0000:05:0c.0: [1044:a400] type 00 class 0x010000
[    0.175617] pci 0000:05:0c.0: reg 0x10: [io  0xd880-0xd89f]
[    0.175680] pci 0000:05:0c.0: reg 0x30: [mem 0xff5f0000-0xff5f7fff pref]
[    0.175882] pci 0000:00:13.1: PCI bridge to [bus 05]
[    0.175943] pci 0000:00:13.1:   bridge window [io  0xd000-0xdfff]
[    0.175949] pci 0000:00:13.1:   bridge window [mem 0xff500000-0xff5fffff]
[    0.175972] pci_bus 0000:00: on NUMA node 0
[    0.178525] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
[    0.179250] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
[    0.179954] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
[    0.180665] ACPI: PCI Interrupt Link [LNKD] (IRQs *3 4 5 6 7 10 11 12 14 15)
[    0.181372] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.182171] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.182970] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.183770] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.185361] vgaarb: setting as boot device: PCI:0000:01:00.0
[    0.185421] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
[    0.185497] vgaarb: loaded
[    0.185551] vgaarb: bridge control possible 0000:01:00.0
[    0.185950] PCI: Using ACPI for IRQ routing
[    0.186011] PCI: pci_cache_line_size set to 64 bytes
[    0.186118] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.186131] e820: reserve RAM buffer [mem 0x3ffb0000-0x3fffffff]
[    0.187283] clocksource: Switched to clocksource refined-jiffies
[    0.206676] pnp: PnP ACPI init
[    0.207063] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.208274] pnp 00:01: [dma 3]
[    0.208590] pnp 00:01: Plug and Play ACPI device, IDs PNP0401 (active)
[    0.208942] system 00:02: [io  0x0290-0x0297] has been reserved
[    0.209064] system 00:02: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.209503] system 00:03: [io  0x03e0-0x03e7] has been reserved
[    0.209564] system 00:03: [io  0x04d0-0x04d1] has been reserved
[    0.209625] system 00:03: [io  0x0800-0x087f] has been reserved
[    0.209685] system 00:03: [io  0x0400-0x041f] has been reserved
[    0.209746] system 00:03: [mem 0xff780000-0xffffffff] has been reserved
[    0.209808] system 00:03: [mem 0xf0000000-0xf7ffffff] has been reserved
[    0.209872] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.210339] system 00:04: [mem 0xfec00000-0xfec00fff] could not be reserved
[    0.210401] system 00:04: [mem 0xfee00000-0xfee00fff] has been reserved
[    0.210466] system 00:04: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.210655] pnp 00:05: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
[    0.210884] pnp 00:06: Plug and Play ACPI device, IDs PNP0f03 PNP0f13 (active)
[    0.211471] pnp 00:07: [dma 0 disabled]
[    0.211644] pnp 00:07: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.211856] system 00:08: [mem 0xe0000000-0xefffffff] has been reserved
[    0.211921] system 00:08: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.212582] system 00:09: [mem 0x00000000-0x0009ffff] could not be reserved
[    0.212645] system 00:09: [mem 0x000e0000-0x000fffff] could not be reserved
[    0.212708] system 00:09: [mem 0x00100000-0x3fffffff] could not be reserved
[    0.212773] system 00:09: Plug and Play ACPI device, IDs PNP0c01 (active)
[    0.213102] pnp: PnP ACPI: found 10 devices
[    0.255771] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.255871] clocksource: Switched to clocksource acpi_pm
[    0.255970] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.255970] pci 0000:00:01.0:   bridge window [io  0xa000-0xcfff]
[    0.255970] pci 0000:00:01.0:   bridge window [mem 0xff400000-0xff4fffff]
[    0.255970] pci 0000:00:01.0:   bridge window [mem 0x7ff00000-0xbfefffff pref]
[    0.255970] pci 0000:02:00.0: PCI bridge to [bus 03]
[    0.255970] pci 0000:02:00.1: PCI bridge to [bus 04]
[    0.255970] pci 0000:00:13.0: PCI bridge to [bus 02-04]
[    0.255970] pci 0000:00:13.1: PCI bridge to [bus 05]
[    0.255970] pci 0000:00:13.1:   bridge window [io  0xd000-0xdfff]
[    0.255970] pci 0000:00:13.1:   bridge window [mem 0xff500000-0xff5fffff]
[    0.255970] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.255970] pci_bus 0000:00: resource 5 [mem 0x000a0000-0x000bffff]
[    0.255970] pci_bus 0000:00: resource 6 [mem 0x40000000-0xffffffff]
[    0.255970] pci_bus 0000:01: resource 0 [io  0xa000-0xcfff]
[    0.255970] pci_bus 0000:01: resource 1 [mem 0xff400000-0xff4fffff]
[    0.255970] pci_bus 0000:01: resource 2 [mem 0x7ff00000-0xbfefffff pref]
[    0.255970] pci_bus 0000:05: resource 0 [io  0xd000-0xdfff]
[    0.255970] pci_bus 0000:05: resource 1 [mem 0xff500000-0xff5fffff]
[    0.255970] NET: Registered protocol family 2
[    0.255970] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.255970] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.255970] TCP: Hash tables configured (established 8192 bind 8192)
[    0.255970] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.255970] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.256242] NET: Registered protocol family 1
[    0.256324] pci 0000:00:00.0: MSI quirk detected; MSI disabled
[    0.256405] pci 0000:00:01.0: disabling DAC on VIA PCI bridge
[    0.258314] pci 0000:01:00.0: Video device with shadowed ROM
[    0.258341] PCI: CLS 64 bytes, default 64
[    0.258696] Unpacking initramfs...
[    0.766681] Freeing initrd memory: 15712K (f6140000 - f7098000)
[    0.766886] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x39a7c5a7520, max_idle_ns: 881590795718 ns
[    0.767010] microcode: AMD CPU family 0xf not supported
[    0.768216] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.768424] audit: initializing netlink subsys (disabled)
[    0.768581] audit: type=2000 audit(1442300665.767:1): initialized
[    0.769493] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    0.769931] VFS: Disk quotas dquot_6.6.0
[    0.770021] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.772425] bounce: pool size: 64 pages
[    0.772519] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.772761] io scheduler noop registered
[    0.772820] io scheduler deadline registered
[    0.772900] io scheduler cfq registered (default)
[    0.773533] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.773615] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.773806] GHES: HEST is not enabled!
[    0.774022] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.794868] 00:07: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.796801] Linux agpgart interface v0.103
[    0.796896] agpgart-amd64 0000:00:00.0: AGP bridge [1106/0204]
[    0.804131] agpgart-amd64 0000:00:00.0: AGP aperture is 256M @ 0xd0000000
[    0.805006] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
[    0.805749] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.806270] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.806878] mousedev: PS/2 mouse device common for all mice
[    0.807360] rtc_cmos 00:00: RTC can wake from S4
[    0.807895] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[    0.807994] rtc_cmos 00:00: alarms up to one year, y3k, 114 bytes nvram
[    0.808396] NET: Registered protocol family 10
[    0.809222] mip6: Mobile IPv6
[    0.809305] NET: Registered protocol family 17
[    0.809372] mpls_gso: MPLS GSO support
[    0.809890] Using IPI No-Shortcut mode
[    0.810625] registered taskstats version 1
[    0.810700] page_owner is disabled
[    0.812423] rtc_cmos 00:00: setting system clock to 2015-09-15 07:04:26 UTC (1442300666)
[    0.812752] PM: Hibernation image not present or could not be loaded.
[    0.813675] Freeing unused kernel memory: 520K (c17f8000 - c187a000)
[    0.813852] Write protecting the kernel text: 5540k
[    0.814055] Write protecting the kernel read-only data: 2076k
[    0.830935] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    0.909928] random: systemd-udevd urandom read with 0 bits of entropy available
[    1.053872] SCSI subsystem initialized
[    1.069152] via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald Becker
[    1.070526] via-rhine 0000:00:12.0 eth0: VIA Rhine II at 0x1e000, 00:13:d4:cc:9b:57, IRQ 23
[    1.071379] via-rhine 0000:00:12.0 eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1
[    1.078148] ACPI: bus type USB registered
[    1.078329] usbcore: registered new interface driver usbfs
[    1.078519] usbcore: registered new interface driver hub
[    1.079347] usbcore: registered new device driver usb
[    1.081093] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.081767] uhci_hcd: USB Universal Host Controller Interface driver
[    1.082471] ehci-pci: EHCI PCI platform driver
[    1.085601] uhci_hcd 0000:00:10.0: UHCI Host Controller
[    1.086045] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
[    1.086222] uhci_hcd 0000:00:10.0: detected 2 ports
[    1.086412] uhci_hcd 0000:00:10.0: irq 20, io base 0x0000ec00
[    1.091236] libata version 3.00 loaded.
[    1.092130] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    1.092196] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.092266] usb usb1: Product: UHCI Host Controller
[    1.092324] usb usb1: Manufacturer: Linux 4.2.0 uhci_hcd
[    1.092382] usb usb1: SerialNumber: 0000:00:10.0
[    1.098772] hub 1-0:1.0: USB hub found
[    1.100452] hub 1-0:1.0: 2 ports detected
[    1.112301] ehci-pci 0000:00:10.4: EHCI Host Controller
[    1.112427] ehci-pci 0000:00:10.4: new USB bus registered, assigned bus number 2
[    1.112525] ehci-pci 0000:00:10.4: debug port 1
[    1.112738] ehci-pci 0000:00:10.4: irq 22, io mem 0xff6ffc00
[    1.124132] ehci-pci 0000:00:10.4: USB 2.0 started, EHCI 1.00
[    1.124715] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.124776] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.124847] usb usb2: Product: EHCI Host Controller
[    1.124904] usb usb2: Manufacturer: Linux 4.2.0 ehci_hcd
[    1.124962] usb usb2: SerialNumber: 0000:00:10.4
[    1.125945] hub 2-0:1.0: USB hub found
[    1.126066] hub 2-0:1.0: 8 ports detected
[    1.140445] firewire_ohci 0000:05:0b.2: added OHCI v1.10 device as card 0, 4 IR + 8 IT contexts, quirks 0x2
[    1.148438] hub 1-0:1.0: USB hub found
[    1.148579] hub 1-0:1.0: 2 ports detected
[    1.149310] pata_via 0000:00:0f.0: version 0.3.4
[    1.158573] scsi host0: pata_via
[    1.166030] scsi host1: pata_via
[    1.166355] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
[    1.166416] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15
[    1.167406] uhci_hcd 0000:00:10.1: UHCI Host Controller
[    1.167483] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
[    1.167571] uhci_hcd 0000:00:10.1: detected 2 ports
[    1.167653] uhci_hcd 0000:00:10.1: irq 22, io base 0x0000e880
[    1.167897] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.167958] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.168070] usb usb3: Product: UHCI Host Controller
[    1.168128] usb usb3: Manufacturer: Linux 4.2.0 uhci_hcd
[    1.168186] usb usb3: SerialNumber: 0000:00:10.1
[    1.168800] hub 3-0:1.0: USB hub found
[    1.168881] hub 3-0:1.0: 2 ports detected
[    1.169667] uhci_hcd 0000:00:10.2: UHCI Host Controller
[    1.169743] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
[    1.169820] uhci_hcd 0000:00:10.2: detected 2 ports
[    1.169923] uhci_hcd 0000:00:10.2: irq 21, io base 0x0000e800
[    1.170245] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    1.170307] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.170377] usb usb4: Product: UHCI Host Controller
[    1.170435] usb usb4: Manufacturer: Linux 4.2.0 uhci_hcd
[    1.170493] usb usb4: SerialNumber: 0000:00:10.2
[    1.172414] hub 4-0:1.0: USB hub found
[    1.173523] hub 4-0:1.0: 2 ports detected
[    1.175867] uhci_hcd 0000:00:10.3: UHCI Host Controller
[    1.175947] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
[    1.177104] uhci_hcd 0000:00:10.3: detected 2 ports
[    1.177216] uhci_hcd 0000:00:10.3: irq 23, io base 0x0000e480
[    1.178399] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[    1.178462] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.178533] usb usb5: Product: UHCI Host Controller
[    1.178590] usb usb5: Manufacturer: Linux 4.2.0 uhci_hcd
[    1.178648] usb usb5: SerialNumber: 0000:00:10.3
[    1.180970] hub 5-0:1.0: USB hub found
[    1.181494] hub 5-0:1.0: 2 ports detected
[    1.337396] ata1.00: ATA-8: WDC WD3200AAJB-00WGA0, 00.02C01, max UDMA/100
[    1.337463] ata1.00: 625142448 sectors, multi 16: LBA48 
[    1.344882] ata1.00: configured for UDMA/100
[    1.345910] scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200AAJB-0 2C01 PQ: 0 ANSI: 5
[    1.436044] usb 2-5: new high-speed USB device number 2 using ehci-pci
[    1.520371] ata2.00: ATAPI: HL-DT-ST DVDRAM GSA-4163B, A103, max UDMA/33
[    1.520820] ata2.01: HPA detected: current 66055248, native 78242976
[    1.520881] ata2.01: ATA-6: SAMSUNG SP4002H, QU100-57, max UDMA/100
[    1.520941] ata2.01: 66055248 sectors, multi 16: LBA 
[    1.521004] ata2.01: limited to UDMA/33 due to 40-wire cable
[    1.536236] ata2.00: configured for UDMA/33
[    1.552641] ata2.01: configured for UDMA/33
[    1.572725] scsi 1:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-4163B A103 PQ: 0 ANSI: 5
[    1.578632] usb 2-5: New USB device found, idVendor=13fe, idProduct=1e23
[    1.578693] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.578754] usb 2-5: Product: STORE N GO
[    1.578811] usb 2-5: Manufacturer: Verbatim
[    1.578868] usb 2-5: SerialNumber: 078A18B40293
[    1.586881] scsi 1:0:1:0: Direct-Access     ATA      SAMSUNG SP4002H  0-57 PQ: 0 ANSI: 5
[    1.598401] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[    1.598652] sd 0:0:0:0: [sda] Write Protect is off
[    1.598711] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.598785] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.608250] sr 1:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.609374] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.611298] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    1.613338] sd 1:0:1:0: [sdb] 66055248 512-byte logical blocks: (33.8 GB/31.4 GiB)
[    1.613586] sd 1:0:1:0: [sdb] Write Protect is off
[    1.613645] sd 1:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[    1.613718] sd 1:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.619737] uas: Unknown symbol usb_stor_adjust_quirks (err 0)
[    1.619850] uas: Unknown symbol usb_stor_sense_invalidCDB (err 0)
[    1.638093]  sda: sda1 sda2 < sda5 sda6 sda7 >
[    1.641126] firewire_core 0000:05:0b.2: created device fw0: GUID 00023c0153000612, S400
[    1.641572] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.688148]  sdb: sdb1 sdb2 < sdb5 sdb6 sdb7 > sdb3
[    1.688638] sdb: p3 size 13333950 extends beyond EOD, enabling native capacity
[    1.690289] ata2: soft resetting link
[    1.860364] ata2.01: n_sectors mismatch 66055248 != 78242976
[    1.860424] ata2.01: new n_sectors matches native, probably late HPA unlock, n_sectors updated
[    1.884239] ata2.00: configured for UDMA/33
[    1.900634] ata2.01: configured for UDMA/33
[    1.902837] ata2: EH complete
[    1.914087] sd 1:0:1:0: [sdb] 78242976 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    1.914683] sdb: detected capacity change from 33820286976 to 40060403712
[    1.988603]  sdb: sdb1 sdb2 < sdb5 sdb6 sdb7 > sdb3
[    2.006504] sd 1:0:1:0: [sdb] Attached SCSI disk
[    2.824751] random: nonblocking pool is initialized
[    4.064517] floppy0: no floppy controllers found
[    4.094169] PM: Starting manual resume from disk
[    4.094253] PM: Hibernation image partition 8:5 present
[    4.094256] PM: Looking for hibernation image.
[    4.095037] PM: Image not found (code -22)
[    4.095041] PM: Hibernation image not present or could not be loaded.
[    4.102678] PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
[    4.102686] PM: Marking nosave pages: [mem 0x0009f000-0x000fffff]
[    4.102690] PM: Basic memory bitmaps created
[    4.103346] PM: Basic memory bitmaps freed
[    4.464454] EXT4-fs (sda7): mounting ext3 file system using the ext4 subsystem
[    4.510296] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)
[    8.684433] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2
[    8.684519] ACPI: Sleep Button [SLPB]
[    8.684788] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3
[    8.684863] ACPI: Power Button [PWRB]
[    8.685121] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
[    8.685194] ACPI: Power Button [PWRF]
[    8.709959] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    8.862429] parport_pc 00:01: reported by Plug and Play ACPI
[    8.862838] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
[    8.969749] [drm] Initialized drm 1.1.0 20060810
[    8.996873] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.997091] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    8.997288] sd 1:0:1:0: Attached scsi generic sg2 type 0
[    9.308279] gameport gameport0: EMU10K1 is pci0000:05:0b.1/gameport0, io 0xdc00, speed 1201kHz
[    9.570108] EATA0: IRQ 10 mapped to IO-APIC IRQ 17.
[    9.571578] EATA/DMA 2.0x: Copyright (C) 1994-2003 Dario Ballabio.
[    9.571639] EATA config options -> tm:1, lc:y, mq:16, rs:y, et:n, ip:n, ep:n, pp:y.
[    9.571710] EATA0: 2.0C, PCI 0xd890, IRQ 17, BMST, SG 122, MB 64.
[    9.571769] EATA0: wide SCSI support enabled, max_id 16, max_lun 8.
[    9.571828] EATA0: SCSI channel 0 enabled, host target ID 7.
[    9.571892] scsi host2: EATA/DMA 2.0x rev. 8.10.00 
[    9.636442] [drm] radeon kernel modesetting enabled.
[    9.641905] [drm] initializing kernel modesetting (RV350 0x1002:0x4153 0x1458:0x4050).
[    9.642049] [drm] register mmio base: 0xFF4F0000
[    9.642106] [drm] register mmio size: 65536
[    9.643298] agpgart-amd64 0000:00:00.0: AGP 3.0 bridge
[    9.643375] agpgart-amd64 0000:00:00.0: putting AGP V3 device into 8x mode
[    9.643514] radeon 0000:01:00.0: putting AGP V3 device into 8x mode
[    9.643609] radeon 0000:01:00.0: GTT: 256M 0xD0000000 - 0xDFFFFFFF
[    9.643670] [drm] Generation 2 PCI interface, using max accessible memory
[    9.643731] radeon 0000:01:00.0: VRAM: 256M 0x00000000A0000000 - 0x00000000AFFFFFFF (256M used)
[    9.643843] [drm] Detected VRAM RAM=256M, BAR=256M
[    9.643900] [drm] RAM width 128bits DDR
[    9.646121] [TTM] Zone  kernel: Available graphics memory: 440912 kiB
[    9.646184] [TTM] Zone highmem: Available graphics memory: 510388 kiB
[    9.646242] [TTM] Initializing pool allocator
[    9.646344] [TTM] Initializing DMA pool allocator
[    9.647367] [drm] radeon: 256M of VRAM memory ready
[    9.647426] [drm] radeon: 256M of GTT memory ready.
[    9.647634] [drm] radeon: 1 quad pipes, 1 Z pipes initialized.
[    9.650518] radeon 0000:01:00.0: WB disabled
[    9.650586] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x00000000d0000000 and cpu addr 0xf802a000
[    9.650666] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.650725] [drm] Driver supports precise vblank timestamp query.
[    9.650969] [drm] radeon: irq initialized.
[    9.651078] [drm] Loading R300 Microcode
[    9.789084] [drm] radeon: ring at 0x00000000D0001000
[    9.789267] [drm] ring test succeeded in 0 usecs
[    9.789954] [drm] ib test succeeded in 0 usecs
[    9.795984] [drm] Radeon Display Connectors
[    9.796067] [drm] Connector 0:
[    9.796122] [drm]   VGA-1
[    9.796177] [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[    9.796235] [drm]   Encoders:
[    9.796290] [drm]     CRT1: INTERNAL_DAC1
[    9.796346] [drm] Connector 1:
[    9.796400] [drm]   DVI-I-1
[    9.796454] [drm]   HPD1
[    9.796509] [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
[    9.796567] [drm]   Encoders:
[    9.796621] [drm]     CRT2: INTERNAL_DAC2
[    9.796677] [drm]     DFP1: INTERNAL_TMDS1
[    9.796733] [drm] Connector 2:
[    9.796787] [drm]   SVIDEO-1
[    9.796841] [drm]   Encoders:
[    9.796895] [drm]     TV1: INTERNAL_DAC2
[   10.014854] [drm] fb mappable at 0xA0040000
[   10.014917] [drm] vram apper at 0xA0000000
[   10.014973] [drm] size 8294400
[   10.015028] [drm] fb depth is 24
[   10.015083] [drm]    pitch is 7680
[   10.018043] fbcon: radeondrmfb (fb0) is primary device
[   10.099478] EDAC MC: Ver: 3.0.0
[   10.139774] MCE: In-kernel MCE decoding enabled.
[   10.208686] snd_emu10k1 0000:05:0b.0: Installing spdif_bug patch: SB Audigy 2 ZS [SB0350]
[   10.280827] AMD64 EDAC driver v3.4.0
[   10.280892] EDAC amd64: DRAM ECC enabled.
[   10.280896] EDAC amd64: K8 revE or earlier detected (node 0).
[   10.282212] EDAC MC0: Giving out device to module amd64_edac controller K8: DEV 0000:00:18.2 (INTERRUPT)
[   10.282513] EDAC PCI0: Giving out device to module amd64_edac controller EDAC PCI controller: DEV 0000:00:18.2 (POLLED)
[   10.282514] EDAC amd64: amd64_edac on 32-bit is unsupported. USE AT YOUR OWN RISK!
[   10.287091] Console: switching to colour frame buffer device 240x67
[   10.396939] input: PC Speaker as /devices/platform/pcspkr/input/input5
[   10.501817] Error: Driver 'pcspkr' is already registered, aborting...
[   10.513631] powernow_k8: fid 0xc (2000 MHz), vid 0x6
[   10.513632] powernow_k8: fid 0xa (1800 MHz), vid 0x8
[   10.513633] powernow_k8: fid 0x2 (1000 MHz), vid 0x12
[   10.514460] powernow_k8: Found 1 AMD Athlon(tm) 64 Processor 3200+ (1 cpu cores) (version 2.20.00)
[   10.563490] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[   10.573944] radeon 0000:01:00.0: registered panic notifier
[   10.580133] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 0
[   10.782436] ppdev: user-space parallel port driver
[   11.106463] scsi 2:0:6:0: Direct-Access     IBM      DCAS-34330W      S65A PQ: 0 ANSI: 2
[   11.107318] scsi 2:0:6:0: cmds/lun 16, sorted, simple tags.
[   11.405959] usb-storage 2-5:1.0: USB Mass Storage device detected
[   11.416151] scsi host3: usb-storage 2-5:1.0
[   11.417424] usbcore: registered new interface driver usb-storage
[   11.451990] usbcore: registered new interface driver uas
[   11.848832] floppy0: no floppy controllers found
[   11.929217] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input6
[   12.419780] scsi 3:0:0:0: Direct-Access     Verbatim STORE N GO       5.00 PQ: 0 ANSI: 0 CCS
[   13.148261] sd 2:0:6:0: Attached scsi generic sg3 type 0
[   13.148801] sd 2:0:6:0: [sdc] 8466688 512-byte logical blocks: (4.33 GB/4.03 GiB)
[   13.154101] sd 3:0:0:0: Attached scsi generic sg4 type 0
[   13.156748] sd 3:0:0:0: [sdd] 3911680 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   13.158116] sd 3:0:0:0: [sdd] Write Protect is off
[   13.158556] sd 3:0:0:0: [sdd] Mode Sense: 23 00 00 00
[   13.159238] sd 3:0:0:0: [sdd] No Caching mode page found
[   13.159723] sd 3:0:0:0: [sdd] Assuming drive cache: write through
[   13.170121]  sdd: sdd1
[   13.174619] sd 3:0:0:0: [sdd] Attached SCSI removable disk
[   13.189076] sd 2:0:6:0: [sdc] Write Protect is off
[   13.189524] sd 2:0:6:0: [sdc] Mode Sense: b3 00 00 08
[   13.209963] sd 2:0:6:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.291310]  sdc: sdc1 sdc2 < sdc5 >
[   13.358301] sd 2:0:6:0: [sdc] Attached SCSI disk
[   15.397117] ata1.00: configured for UDMA/100
[   15.422022] ata1: EH complete
[   15.516276] ata2.00: configured for UDMA/33
[   15.552254] ata2.01: configured for UDMA/33
[   15.589979] ata2: EH complete
[   16.715752] Adding 2200868k swap on /dev/sda5.  Priority:-1 extents:1 across:2200868k 
[   16.884970] EXT4-fs (sda7): re-mounted. Opts: (null)
[   17.440147] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,data=ordered
[   18.483892] lp0: using parport0 (interrupt-driven).
[   18.686394] Loading iSCSI transport class v2.0-870.
[   18.795807] iscsi: registered transport (tcp)
[   18.959804] iscsi: registered transport (iser)
[   19.082932] fuse init (API version 7.23)
[   19.249050] tun: Universal TUN/TAP device driver, 1.6
[   19.279558] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   19.349866] w83627ehf: Found W83627EHG chip at 0x290
[   19.380951] ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x0000000000000299 (\_SB_.PCI0.SBRG.SIOR.HWRE) (20150619/utaddress-254)
[   19.411023] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   50.464824] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   50.515884] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   50.592678] FAT-fs (sda6): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[   50.672241] FAT-fs (sdd1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[   63.158660] Bluetooth: Core ver 2.20
[   63.191435] NET: Registered protocol family 31
[   63.220495] Bluetooth: HCI device and connection manager initialized
[   63.248462] Bluetooth: HCI socket layer initialized
[   63.277868] Bluetooth: L2CAP socket layer initialized
[   63.306857] Bluetooth: SCO socket layer initialized
[   63.366128] Netfilter messages via NETLINK v0.30.
[   63.647362] Process accounting resumed
[   67.352379] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   67.377345] Bluetooth: BNEP filters: protocol multicast
[   67.403262] Bluetooth: BNEP socket layer initialized
[   77.449236] nfc: nfc_init: NFC Core ver 0.1
[   77.449511] NET: Registered protocol family 39
Jiang Liu Sept. 16, 2015, 5:07 a.m. UTC | #7
On 2015/9/15 15:19, Arthur Marsh wrote:
> 
> 
> Jiang Liu wrote on 15/09/15 12:01:
> 
>> HI Arthur,
>>     Really appreciate your help to test the patches. That's
>> a good sign we have moved forward a bit:)
>>     For kexec, it's always challenging to me. So could you
>> please help to provide full dmesg logs with working kernels
>> so I could try to figure out the order among scsi and PCI devices.
>> It may be shutdown order related.
>> Thanks!
>> Gerry
> 
> OK, attached is the dmesg output from the 4.2.0 kernel where kexec worked.
Hi Arthur,
	Could you please also help to capture the log messages
of kexec, I need to those log messages to figure out the order
to shutdown PCI devices and scsi devices during kexec.
Thanks!
Gerry
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arthur Marsh Sept. 16, 2015, 7:37 a.m. UTC | #8
Jiang Liu wrote on 16/09/15 14:37:
> On 2015/9/15 15:19, Arthur Marsh wrote:
>>
>>
>> Jiang Liu wrote on 15/09/15 12:01:
>>
>>> HI Arthur,
>>>      Really appreciate your help to test the patches. That's
>>> a good sign we have moved forward a bit:)
>>>      For kexec, it's always challenging to me. So could you
>>> please help to provide full dmesg logs with working kernels
>>> so I could try to figure out the order among scsi and PCI devices.
>>> It may be shutdown order related.
>>> Thanks!
>>> Gerry
>>
>> OK, attached is the dmesg output from the 4.2.0 kernel where kexec worked.
> Hi Arthur,
> 	Could you please also help to capture the log messages
> of kexec, I need to those log messages to figure out the order
> to shutdown PCI devices and scsi devices during kexec.
> Thanks!
> Gerry
>

How would I capture the log messages of kexec (assuming that there are 
any, I couldn't see from the manual page entries and haven't seen 
anything beyond the screen images that I have already sent you)?

Regards,

Arthur.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jiang Liu Sept. 16, 2015, 8:21 a.m. UTC | #9
On 2015/9/16 15:37, Arthur Marsh wrote:
> 
> 
> Jiang Liu wrote on 16/09/15 14:37:
>> On 2015/9/15 15:19, Arthur Marsh wrote:
>>>
>>>
>>> Jiang Liu wrote on 15/09/15 12:01:
>>>
>>>> HI Arthur,
>>>>      Really appreciate your help to test the patches. That's
>>>> a good sign we have moved forward a bit:)
>>>>      For kexec, it's always challenging to me. So could you
>>>> please help to provide full dmesg logs with working kernels
>>>> so I could try to figure out the order among scsi and PCI devices.
>>>> It may be shutdown order related.
>>>> Thanks!
>>>> Gerry
>>>
>>> OK, attached is the dmesg output from the 4.2.0 kernel where kexec
>>> worked.
>> Hi Arthur,
>>     Could you please also help to capture the log messages
>> of kexec, I need to those log messages to figure out the order
>> to shutdown PCI devices and scsi devices during kexec.
>> Thanks!
>> Gerry
>>
> 
> How would I capture the log messages of kexec (assuming that there are
> any, I couldn't see from the manual page entries and haven't seen
> anything beyond the screen images that I have already sent you)?
Hi Arthur,
	It would be great if we could capture the text as in the
picture posted by you at:
	http://www.users.on.net/~arthur.marsh/20150915547.jpg
	I guess a serial console could help us to capture those
log messages. To use serial console, we need to setup serial cable,
configure grub and kernel to use serial port as console.
Thanks!
Gerry

> 
> Regards,
> 
> Arthur.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arthur Marsh Sept. 16, 2015, 11:29 a.m. UTC | #10
Jiang Liu wrote on 16/09/15 17:51:

> Hi Arthur,
> 	It would be great if we could capture the text as in the
> picture posted by you at:
> 	http://www.users.on.net/~arthur.marsh/20150915547.jpg
> 	I guess a serial console could help us to capture those
> log messages. To use serial console, we need to setup serial cable,
> configure grub and kernel to use serial port as console.
> Thanks!
> Gerry
>
>>
>> Regards,
>>
>> Arthur.
>

I've already included the text of what appeaered in the image above:

sd 0:0:6:0: abort, mbox 63.
EATA0: abort, mbox 63 is in use.
sd 0:0:6:0: reset, enter.
EATA0: reset, mbox 63 in reset.
EATA0: reset, board reset done, enabling interrupts.
EATA0: reset, interrupts disabled, loops 100469.
EATA0: reset, mbox 63 locked, DID_RESET, done.
EATA0: reset, exit, done.
sd 0:0:6:0: qcomm, mbox 0, adapter busy, will start
sd 0:0:6:0: abort, mbox 0.
EATA0: abort, timeout error.
sd 0:0:6:0: reset, enter.
EATA0: reset, exit, timeout error.
sd 0:0:6:0 Device offlinled - not ready after error recovery
sd 0:0:6:0 rejecting I/O to offline device
sd 0:0:6:0 rejecting I/O to offline device
sd 0:0:6:0 [sda] Synchronize Cache(10) failed: Result: 
hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
starting new kernel

As mentioned previously this occurred after the normal Synchronizing 
SCSI cache messages.

I don't think that there is anything else that gets sent to the console.

Arthur.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 52a880ca1768..17d2a0b1de18 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -392,6 +392,7 @@  int __weak pcibios_alloc_irq(struct pci_dev *dev)
 {
 	return 0;
 }
+EXPORT_SYMBOL_GPL(pcibios_alloc_irq);

 void __weak pcibios_free_irq(struct pci_dev *dev)
 {
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index 227dd2c2ec2f..7e6eaf867987 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -1061,6 +1061,7 @@  static void enable_pci_ports(void)
 		       driver_name, dev->bus->number, dev->devfn);
 #endif

+		pcibios_alloc_irq(dev);
 		if (pci_enable_device(dev))
 			printk
 			    ("%s: warning, pci_enable_device failed, bus %d devfn 0x%x.\n",
@@ -1520,6 +1521,7 @@  static void add_pci_ports(void)
 		if (!(dev = pci_get_class(PCI_CLASS_STORAGE_SCSI << 8, dev)))
 			break;

+		pcibios_alloc_irq(dev);
 		if (pci_enable_device(dev)) {
 #if defined(DEBUG_PCI_DETECT)
 			printk