<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/pci, branch v2.6.26-rc7</title>
<subtitle>Clone of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/'/>
<entry>
<title>PCI: fixup write combine comment in pci_mmap_resource</title>
<updated>2008-06-12T20:51:46+00:00</updated>
<author>
<name>Jesse Barnes</name>
<email>jbarnes@hobbes.lan</email>
</author>
<published>2008-06-12T20:51:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=81d5575a48f49f494289a1299a32e4e5e41fbf40'/>
<id>81d5575a48f49f494289a1299a32e4e5e41fbf40</id>
<content type='text'>
Now that we can actually do write combining properly, there's no need to have
the FIXME.

Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we can actually do write combining properly, there's no need to have
the FIXME.

Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'pci-for-jesse' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip into for-linus</title>
<updated>2008-06-12T20:51:05+00:00</updated>
<author>
<name>Jesse Barnes</name>
<email>jbarnes@hobbes.lan</email>
</author>
<published>2008-06-12T20:51:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=883eed1b3e25fb1d7d8f32c6550cc1ac44888838'/>
<id>883eed1b3e25fb1d7d8f32c6550cc1ac44888838</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>x86: PAT export resource_wc in pci sysfs</title>
<updated>2008-06-12T08:12:42+00:00</updated>
<author>
<name>venkatesh.pallipadi@intel.com</name>
<email>venkatesh.pallipadi@intel.com</email>
</author>
<published>2008-03-19T00:00:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=45aec1ae72fc592f231e9e73ed9ed4d10cfbc0b5'/>
<id>45aec1ae72fc592f231e9e73ed9ed4d10cfbc0b5</id>
<content type='text'>
For the ranges with IORESOURCE_PREFETCH, export a new resource_wc interface in
pci /sysfs along with resource (which is uncached).

Signed-off-by: Venkatesh Pallipadi &lt;venkatesh.pallipadi@intel.com&gt;
Signed-off-by: Suresh Siddha &lt;suresh.b.siddha@intel.com&gt;
Acked-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the ranges with IORESOURCE_PREFETCH, export a new resource_wc interface in
pci /sysfs along with resource (which is uncached).

Signed-off-by: Venkatesh Pallipadi &lt;venkatesh.pallipadi@intel.com&gt;
Signed-off-by: Suresh Siddha &lt;suresh.b.siddha@intel.com&gt;
Acked-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>PCI: fix rpadlpar pci hotplug driver sysfs usage</title>
<updated>2008-05-30T16:50:46+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2008-05-30T03:39:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=a9b841e1a336822a25899ec8cdf70a55a6696ae7'/>
<id>a9b841e1a336822a25899ec8cdf70a55a6696ae7</id>
<content type='text'>
When Greg "fixed" the sysfs usage of that driver a while back, he seem
to have introduced a bug where the quotes are added around the name of
our specific sysfs files, thus breaking the user space tool.

This fixes it. Tested DLPAR operations on a POWER6 machine successfully.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When Greg "fixed" the sysfs usage of that driver a while back, he seem
to have introduced a bug where the quotes are added around the name of
our specific sysfs files, thus breaking the user space tool.

This fixes it. Tested DLPAR operations on a POWER6 machine successfully.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pciehp: add message about pciehp_slot_with_bus option</title>
<updated>2008-05-27T22:43:47+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:07:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=9e4f2e8d4ddb04ad16a3828cd9a369a5a5287009'/>
<id>9e4f2e8d4ddb04ad16a3828cd9a369a5a5287009</id>
<content type='text'>
Some (broken?) platform assign the same slot name to multiple hotplug
slots. On such system, slot initialization would fail because of name
collision. The pciehp driver already have a "slot_with_bus" module
option which adds the bus number into the slot name. This patch adds
the message about this module option that will be displayed when slot
name collision is detected.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some (broken?) platform assign the same slot name to multiple hotplug
slots. On such system, slot initialization would fail because of name
collision. The pciehp driver already have a "slot_with_bus" module
option which adds the bus number into the slot name. This patch adds
the message about this module option that will be displayed when slot
name collision is detected.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pci hotplug core: add check of duplicate slot name</title>
<updated>2008-05-27T22:43:40+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:07:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=a86161b3134465f072d965ca7508ec9c1e2e52c7'/>
<id>a86161b3134465f072d965ca7508ec9c1e2e52c7</id>
<content type='text'>
Fix the following errors reported by Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

kobject_add_internal failed for 2 with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3 #1
 [&lt;c0266980&gt;] kobject_add_internal+0x140/0x190
 [&lt;c0266afd&gt;] kobject_init_and_add+0x2d/0x40
 [&lt;c027bc91&gt;] pci_hp_register+0x81/0x2f0
 [&lt;c027fd07&gt;] pciehp_probe+0x1a7/0x470
 [&lt;c01b3b84&gt;] sysfs_add_one+0x44/0xa0
 [&lt;c01b3c1f&gt;] sysfs_addrm_start+0x3f/0xb0
 [&lt;c01b497a&gt;] sysfs_create_link+0x8a/0xf0
 [&lt;c0279570&gt;] pcie_port_probe_service+0x50/0x80
 [&lt;c02e0545&gt;] driver_sysfs_add+0x55/0x70
 [&lt;c02e0662&gt;] driver_probe_device+0x82/0x180
 [&lt;c02e07cc&gt;] __driver_attach+0x6c/0x70
 [&lt;c02dfe0a&gt;] bus_for_each_dev+0x3a/0x60
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e04e6&gt;] driver_attach+0x16/0x20
 [&lt;c02e0760&gt;] __driver_attach+0x0/0x70
 [&lt;c02e0341&gt;] bus_add_driver+0x1a1/0x220
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e09cd&gt;] driver_register+0x4d/0x120
 [&lt;c05db050&gt;] ibm_acpiphp_init+0x0/0x190
 [&lt;c0125aab&gt;] printk+0x1b/0x20
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c05db2de&gt;] pcied_init+0xe/0x80
 [&lt;c05c751a&gt;] kernel_init+0x10a/0x300
 [&lt;c0120138&gt;] schedule_tail+0x18/0x50
 [&lt;c0103b9a&gt;] ret_from_fork+0x6/0x1c
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c010485b&gt;] kernel_thread_helper+0x7/0x1c
 =======================
pci_hotplug: Unable to register kobject '2'&lt;3&gt;pciehp: pci_hp_register failed with error -22

Slot with the same name can be registered multiple times if shpchp or
pciehp driver is loaded after acpiphp is loaded because ACPI based
hotplug driver and Native OS hotplug driver trying to handle the same
physical slot. In this case, current pci_hotplug core will call
kobject_init_and_add() muliple time with the same name. This is the
cause of this problem. To fix this problem, this patch adds the check
into pci_hp_register() to see if the slot with the same name.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following errors reported by Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

kobject_add_internal failed for 2 with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3 #1
 [&lt;c0266980&gt;] kobject_add_internal+0x140/0x190
 [&lt;c0266afd&gt;] kobject_init_and_add+0x2d/0x40
 [&lt;c027bc91&gt;] pci_hp_register+0x81/0x2f0
 [&lt;c027fd07&gt;] pciehp_probe+0x1a7/0x470
 [&lt;c01b3b84&gt;] sysfs_add_one+0x44/0xa0
 [&lt;c01b3c1f&gt;] sysfs_addrm_start+0x3f/0xb0
 [&lt;c01b497a&gt;] sysfs_create_link+0x8a/0xf0
 [&lt;c0279570&gt;] pcie_port_probe_service+0x50/0x80
 [&lt;c02e0545&gt;] driver_sysfs_add+0x55/0x70
 [&lt;c02e0662&gt;] driver_probe_device+0x82/0x180
 [&lt;c02e07cc&gt;] __driver_attach+0x6c/0x70
 [&lt;c02dfe0a&gt;] bus_for_each_dev+0x3a/0x60
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e04e6&gt;] driver_attach+0x16/0x20
 [&lt;c02e0760&gt;] __driver_attach+0x0/0x70
 [&lt;c02e0341&gt;] bus_add_driver+0x1a1/0x220
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e09cd&gt;] driver_register+0x4d/0x120
 [&lt;c05db050&gt;] ibm_acpiphp_init+0x0/0x190
 [&lt;c0125aab&gt;] printk+0x1b/0x20
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c05db2de&gt;] pcied_init+0xe/0x80
 [&lt;c05c751a&gt;] kernel_init+0x10a/0x300
 [&lt;c0120138&gt;] schedule_tail+0x18/0x50
 [&lt;c0103b9a&gt;] ret_from_fork+0x6/0x1c
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c010485b&gt;] kernel_thread_helper+0x7/0x1c
 =======================
pci_hotplug: Unable to register kobject '2'&lt;3&gt;pciehp: pci_hp_register failed with error -22

Slot with the same name can be registered multiple times if shpchp or
pciehp driver is loaded after acpiphp is loaded because ACPI based
hotplug driver and Native OS hotplug driver trying to handle the same
physical slot. In this case, current pci_hotplug core will call
kobject_init_and_add() muliple time with the same name. This is the
cause of this problem. To fix this problem, this patch adds the check
into pci_hp_register() to see if the slot with the same name.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pciehp: move msleep after power off</title>
<updated>2008-05-27T22:43:33+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:06:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=0711c70ec0e9d2c002b1e9b5fb9f21e49d77f4fd'/>
<id>0711c70ec0e9d2c002b1e9b5fb9f21e49d77f4fd</id>
<content type='text'>
According to the PCI Express specification, we must wait for at least
1 second after turning power off before taking any action that relies
on power having been removed from the slot/adapter. For this, current
pciehp wait for 1 second after issuing the power off command in
hpc_power_off_slot() function. But waiting for 1 second in
hpc_power_off_slot() can make pciehp probing slow-down because pciehp
probe code calls hpc_power_off_slot() if the slot is not occupied just
in case. We don't need to wait for 1 second at the pciehp probe time
because there is no action on that empty slot. So move 1 second wait
from hpc_power_off_slot() to the caller of hpc_power_off_slot().

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to the PCI Express specification, we must wait for at least
1 second after turning power off before taking any action that relies
on power having been removed from the slot/adapter. For this, current
pciehp wait for 1 second after issuing the power off command in
hpc_power_off_slot() function. But waiting for 1 second in
hpc_power_off_slot() can make pciehp probing slow-down because pciehp
probe code calls hpc_power_off_slot() if the slot is not occupied just
in case. We don't need to wait for 1 second at the pciehp probe time
because there is no action on that empty slot. So move 1 second wait
from hpc_power_off_slot() to the caller of hpc_power_off_slot().

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pciehp: poll cmd completion if hotplug interrupt is disabled</title>
<updated>2008-05-27T22:43:25+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:05:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=6592e02ae4bd7b277230aa0c5821588a13b9d8e3'/>
<id>6592e02ae4bd7b277230aa0c5821588a13b9d8e3</id>
<content type='text'>
Fix improper long wait for command completion in pciehp probing.

As described in PCI Express specification, software notification is
not generated if the command that occurs as a result of a write to the
Slot Control register that disables software notification of command
completed events. Since pciehp driver doesn't take it into account,
such command is issued in pciehp probing, and it causes improper long
wait for command completion.

This patch changes the pciehp driver to take such command into
account.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix improper long wait for command completion in pciehp probing.

As described in PCI Express specification, software notification is
not generated if the command that occurs as a result of a write to the
Slot Control register that disables software notification of command
completed events. Since pciehp driver doesn't take it into account,
such command is issued in pciehp probing, and it causes improper long
wait for command completion.

This patch changes the pciehp driver to take such command into
account.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pciehp: fix slow probing</title>
<updated>2008-05-27T22:43:16+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:04:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=5808639bfa98d69f77a481d759570d85f164fea0'/>
<id>5808639bfa98d69f77a481d759570d85f164fea0</id>
<content type='text'>
Fix the "pciehp probing slow" problem reported from Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

The command completed bit in Slot Status register applies only to
commands issued to control the attention indicator, power indicator,
power controller, or electromechanical interlock. However, writes to
other parts of the Slot Control register would end up writing to the
control fields. Hence, any write to Slot Control register is
considered as a command. However, if the controller doesn't support
any of attention indicator, power indicator, power controller and
electromechanical interlock, command completed bit would not set in
writing to Slot Control register. In this case, we should not wait for
command completed bit set, otherwise all commands would be considered
not completed in timeout seconds (1 sec.).

The cause of the problem is pciehp driver didn't take this situation
into account. This patch changes pciehp to take it into account. This
patch also add the check for "No Command Completed Support" bit in
Slot Capability register. If it is set, we should not wait for command
completed bit set as well.

This problem seems to be revealed by the commit
c27fb883dffe11aa4cb35ecea1fa1832ba45d4da that fixed the bug that
pciehp did not wait for command completed properly (pciehp just
ignored the command completion event).

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the "pciehp probing slow" problem reported from Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

The command completed bit in Slot Status register applies only to
commands issued to control the attention indicator, power indicator,
power controller, or electromechanical interlock. However, writes to
other parts of the Slot Control register would end up writing to the
control fields. Hence, any write to Slot Control register is
considered as a command. However, if the controller doesn't support
any of attention indicator, power indicator, power controller and
electromechanical interlock, command completed bit would not set in
writing to Slot Control register. In this case, we should not wait for
command completed bit set, otherwise all commands would be considered
not completed in timeout seconds (1 sec.).

The cause of the problem is pciehp driver didn't take this situation
into account. This patch changes pciehp to take it into account. This
patch also add the check for "No Command Completed Support" bit in
Slot Capability register. If it is set, we should not wait for command
completed bit set as well.

This problem seems to be revealed by the commit
c27fb883dffe11aa4cb35ecea1fa1832ba45d4da that fixed the bug that
pciehp did not wait for command completed properly (pciehp just
ignored the command completion event).

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pciehp: fix NULL dereference in interrupt handler</title>
<updated>2008-05-27T22:43:08+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:03:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=dbd79aed1aea2bece0bf43cc2ff3b2f9baf48a08'/>
<id>dbd79aed1aea2bece0bf43cc2ff3b2f9baf48a08</id>
<content type='text'>
Fix the following NULL dereference problem reported from Pierre Ossman
and Ingo Molnar.

pciehp: HPC vendor_id 8086 device_id 27d0 ss_vid 0 ss_did 0
pciehp: pciehp_find_slot: slot (device=0x0) not found
BUG: unable to handle kernel NULL pointer dereference at 0000000000000070
IP: [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
PGD 0
Oops: 0000 [1]
CPU 0
Modules linked in:
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3-sched-devel.git-00001-g2b99b26-dirty #170
RIP: 0010:[&lt;ffffffff80494a8b&gt;]  [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
RSP: 0000:ffff81003f83fbb0  EFLAGS: 00010046
RAX: 0000000000000039 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000046
RBP: ffff81003f83fbd0 R08: 0000000000000001 R09: ffffffff80245103
R10: 0000000000000020 R11: 0000000000000000 R12: ffff81003ea53a30
R13: 0000000000000000 R14: 0000000000000011 R15: ffffffff80495926
FS:  0000000000000000(0000) GS:ffffffff80be7400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000070 CR3: 0000000000201000 CR4: 00000000000006a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process swapper (pid: 1, threadinfo ffff81003f83e000, task ffff81003f840000)
Stack:  0000000000000008 ffff81003f83fbf6 ffff81003ea53a30 0000000000000008
 ffff81003f83fc10 ffffffff80495ab4 0000000000000011 0000000000000002
 0000000000000202 0000000000000202 00000000fffffff4 ffff81003ea53a30
Call Trace:
 [&lt;ffffffff80495ab4&gt;] pcie_isr+0x18e/0x1bc
 [&lt;ffffffff80260831&gt;] request_irq+0x106/0x12f
 [&lt;ffffffff80495fb6&gt;] pcie_init+0x15e/0x6cc
 [&lt;ffffffff804933a3&gt;] pciehp_probe+0x64/0x541
 [&lt;ffffffff8048f4e7&gt;] pcie_port_probe_service+0x4c/0x76
 [&lt;ffffffff8054af70&gt;] driver_probe_device+0xd4/0x1f0
 [&lt;ffffffff8054b108&gt;] __driver_attach+0x7c/0x7e
 [&lt;ffffffff8054b08c&gt;] ? __driver_attach+0x0/0x7e
 [&lt;ffffffff8054a4b6&gt;] bus_for_each_dev+0x53/0x7d
 [&lt;ffffffff8054ad3c&gt;] driver_attach+0x1c/0x1e
 [&lt;ffffffff8054a9c2&gt;] bus_add_driver+0xdd/0x25b
 [&lt;ffffffff80c09d3d&gt;] ? pcied_init+0x0/0x8b
 [&lt;ffffffff8054b288&gt;] driver_register+0x5f/0x13e
 [&lt;ffffffff80c09d3d&gt;] ? pcied_init+0x0/0x8b
 [&lt;ffffffff8048f441&gt;] pcie_port_service_register+0x47/0x49
 [&lt;ffffffff80c09d52&gt;] pcied_init+0x15/0x8b
 [&lt;ffffffff80bf3938&gt;] kernel_init+0x75/0x243
 [&lt;ffffffff808639d2&gt;] ? _spin_unlock_irq+0x2b/0x3a
 [&lt;ffffffff80228d1f&gt;] ? finish_task_switch+0x57/0x9a
 [&lt;ffffffff8020c258&gt;] child_rip+0xa/0x12
 [&lt;ffffffff8020bcec&gt;] ? restore_args+0x0/0x30
 [&lt;ffffffff80bf38c3&gt;] ? kernel_init+0x0/0x243
 [&lt;ffffffff8020c24e&gt;] ? child_rip+0x0/0x12

Code: 83 80 00 00 00 48 39 f0 75 e1 0f b6 c9 48 c7 c2 00 0e 8d 80 48 c7 c6 8a 60 a6 80 48 c7 c7 10 db a8 80 31 c0 e8 3f 8d d9 ff 31 db &lt;48&gt; 8b 43 70 48 8d 75 ef 48 89 df ff 50 30 80 7d ef 00 74 37 48
RIP  [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
 RSP &lt;ffff81003f83fbb0&gt;
CR2: 0000000000000070
Kernel panic - not syncing: Fatal exception

The situation under which it occurs is hw and timing related: it appears
to happen on a system that has PCI hotplug hardware but with no active
hotplug cards, and another interrupt in the same (shared) IRQ line
arrives too early, before the hotplug-slot entry has been set up - as
triggered by CONFIG_DEBUG_SHIRQ=y:

This patch contains the following two fixes.

(1) Clear all events bits in Slot Status register to prevent the pciehp
    driver from detecting the spurious events that would have been occur
    before pciehp loading.

(2) Add check whether slot initialization had been already done.

This is short term fix. We need more structural fixes to install
interrupt handler after slot initialization is done.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following NULL dereference problem reported from Pierre Ossman
and Ingo Molnar.

pciehp: HPC vendor_id 8086 device_id 27d0 ss_vid 0 ss_did 0
pciehp: pciehp_find_slot: slot (device=0x0) not found
BUG: unable to handle kernel NULL pointer dereference at 0000000000000070
IP: [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
PGD 0
Oops: 0000 [1]
CPU 0
Modules linked in:
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3-sched-devel.git-00001-g2b99b26-dirty #170
RIP: 0010:[&lt;ffffffff80494a8b&gt;]  [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
RSP: 0000:ffff81003f83fbb0  EFLAGS: 00010046
RAX: 0000000000000039 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000046
RBP: ffff81003f83fbd0 R08: 0000000000000001 R09: ffffffff80245103
R10: 0000000000000020 R11: 0000000000000000 R12: ffff81003ea53a30
R13: 0000000000000000 R14: 0000000000000011 R15: ffffffff80495926
FS:  0000000000000000(0000) GS:ffffffff80be7400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000070 CR3: 0000000000201000 CR4: 00000000000006a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process swapper (pid: 1, threadinfo ffff81003f83e000, task ffff81003f840000)
Stack:  0000000000000008 ffff81003f83fbf6 ffff81003ea53a30 0000000000000008
 ffff81003f83fc10 ffffffff80495ab4 0000000000000011 0000000000000002
 0000000000000202 0000000000000202 00000000fffffff4 ffff81003ea53a30
Call Trace:
 [&lt;ffffffff80495ab4&gt;] pcie_isr+0x18e/0x1bc
 [&lt;ffffffff80260831&gt;] request_irq+0x106/0x12f
 [&lt;ffffffff80495fb6&gt;] pcie_init+0x15e/0x6cc
 [&lt;ffffffff804933a3&gt;] pciehp_probe+0x64/0x541
 [&lt;ffffffff8048f4e7&gt;] pcie_port_probe_service+0x4c/0x76
 [&lt;ffffffff8054af70&gt;] driver_probe_device+0xd4/0x1f0
 [&lt;ffffffff8054b108&gt;] __driver_attach+0x7c/0x7e
 [&lt;ffffffff8054b08c&gt;] ? __driver_attach+0x0/0x7e
 [&lt;ffffffff8054a4b6&gt;] bus_for_each_dev+0x53/0x7d
 [&lt;ffffffff8054ad3c&gt;] driver_attach+0x1c/0x1e
 [&lt;ffffffff8054a9c2&gt;] bus_add_driver+0xdd/0x25b
 [&lt;ffffffff80c09d3d&gt;] ? pcied_init+0x0/0x8b
 [&lt;ffffffff8054b288&gt;] driver_register+0x5f/0x13e
 [&lt;ffffffff80c09d3d&gt;] ? pcied_init+0x0/0x8b
 [&lt;ffffffff8048f441&gt;] pcie_port_service_register+0x47/0x49
 [&lt;ffffffff80c09d52&gt;] pcied_init+0x15/0x8b
 [&lt;ffffffff80bf3938&gt;] kernel_init+0x75/0x243
 [&lt;ffffffff808639d2&gt;] ? _spin_unlock_irq+0x2b/0x3a
 [&lt;ffffffff80228d1f&gt;] ? finish_task_switch+0x57/0x9a
 [&lt;ffffffff8020c258&gt;] child_rip+0xa/0x12
 [&lt;ffffffff8020bcec&gt;] ? restore_args+0x0/0x30
 [&lt;ffffffff80bf38c3&gt;] ? kernel_init+0x0/0x243
 [&lt;ffffffff8020c24e&gt;] ? child_rip+0x0/0x12

Code: 83 80 00 00 00 48 39 f0 75 e1 0f b6 c9 48 c7 c2 00 0e 8d 80 48 c7 c6 8a 60 a6 80 48 c7 c7 10 db a8 80 31 c0 e8 3f 8d d9 ff 31 db &lt;48&gt; 8b 43 70 48 8d 75 ef 48 89 df ff 50 30 80 7d ef 00 74 37 48
RIP  [&lt;ffffffff80494a8b&gt;] pciehp_handle_presence_change+0x7e/0x113
 RSP &lt;ffff81003f83fbb0&gt;
CR2: 0000000000000070
Kernel panic - not syncing: Fatal exception

The situation under which it occurs is hw and timing related: it appears
to happen on a system that has PCI hotplug hardware but with no active
hotplug cards, and another interrupt in the same (shared) IRQ line
arrives too early, before the hotplug-slot entry has been set up - as
triggered by CONFIG_DEBUG_SHIRQ=y:

This patch contains the following two fixes.

(1) Clear all events bits in Slot Status register to prevent the pciehp
    driver from detecting the spurious events that would have been occur
    before pciehp loading.

(2) Add check whether slot initialization had been already done.

This is short term fix. We need more structural fixes to install
interrupt handler after slot initialization is done.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
