public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
@ 2014-05-29  8:41 Zdenek Kabelac
  2014-05-29 11:14 ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Zdenek Kabelac @ 2014-05-29  8:41 UTC (permalink / raw)
  To: rafael.j.wysocki, LKML

Hi


I've noticed this message in my dmesg:
(Possibly related to this commit?:
a8d22396302b7e4e5f0a594c1c1594388c29edaf)

(My vanilla git commit number for my kernel:
cd79bde29f00a346eec3fe17c1c5073c37ed95e7)

Zdenek


[ 2174.058615] ata5: port disabled--ignoring
[ 2174.059460] sd 0:0:0:0: [sda] Starting disk
[ 2174.076342] ------------[ cut here ]------------
[ 2174.076350] WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 
pnpacpi_set_resources+0x14f/0x160()
[ 2174.076412] Modules linked in: dm_raid raid456 async_raid6_recov 
async_memcpy async_pq async_xor async_tx raid1 raid10 dm_mod md_mod xor 
raid6_pq i915 i2c_algo_bit drm_kms_helper drm xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 
xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables 
x_tables tun bridge stp llc ipv6 hid_generic usbhid hid snd_hda_codec_analog 
snd_hda_codec_generic iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm 
microcode psmouse serio_raw i2c_i801 i2c_core arc4 lpc_ich mfd_core r852 
iwl3945 sm_common nand r592 nand_ecc nand_ids iwlegacy mtd memstick mac80211 
sdhci_pci pcmcia sdhci snd_hda_intel mmc_core snd_hda_controller snd_hda_codec 
snd_hwdep snd_seq snd_seq_device snd_pcm cfg80211 e1000e ptp snd_timer
[ 2174.076433]  pps_core wmi thinkpad_acpi nvram snd soundcore evdev nfsd 
auth_rpcgss oid_registry nfs_acl lockd binfmt_misc loop sunrpc uhci_hcd sr_mod 
cdrom yenta_socket ehci_pci ehci_hcd usbcore usb_common video backlight autofs4
[ 2174.076436] CPU: 0 PID: 2623 Comm: systemd-sleep Not tainted 
3.15.0-rc7-00044-g887210a #209
[ 2174.076437] Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 ) 
03/18/2011
[ 2174.076440]  0000000000000009 ffff880095d55c40 ffffffff815db694 
0000000000000000
[ 2174.076444]  ffff880095d55c78 ffffffff8104e78d 0000000000000000 
ffff880136c3cd98
[ 2174.076447]  ffff8800bac2b000 ffffffff8180cb5a 0000000000000000 
ffff880095d55c88
[ 2174.076448] Call Trace:
[ 2174.076453]  [<ffffffff815db694>] dump_stack+0x4e/0x7a
[ 2174.076643]  [<ffffffff8104e78d>] warn_slowpath_common+0x7d/0xa0
[ 2174.076646]  [<ffffffff8104e86a>] warn_slowpath_null+0x1a/0x20
[ 2174.076648]  [<ffffffff814046cf>] pnpacpi_set_resources+0x14f/0x160
[ 2174.076651]  [<ffffffff81401db2>] pnp_start_dev+0x42/0x80
[ 2174.076655]  [<ffffffff81400858>] pnp_bus_resume+0x88/0xa0
[ 2174.076658]  [<ffffffff814007d0>] ? pnp_bus_suspend+0x20/0x20
[ 2174.076662]  [<ffffffff8145e919>] dpm_run_callback+0x49/0xa0
[ 2174.076664]  [<ffffffff8145ec18>] device_resume+0xc8/0x1f0
[ 2174.076667]  [<ffffffff81460639>] dpm_resume+0x119/0x250
[ 2174.076670]  [<ffffffff814609b1>] dpm_resume_end+0x11/0x20
[ 2174.076673]  [<ffffffff810b4b0f>] suspend_devices_and_enter+0xff/0x680
[ 2174.076676]  [<ffffffff810b5277>] pm_suspend+0x1e7/0x2a0
[ 2174.076678]  [<ffffffff810b3c2c>] state_store+0x7c/0xf0
[ 2174.076683]  [<ffffffff81359f2f>] kobj_attr_store+0xf/0x20
[ 2174.076686]  [<ffffffff8124b1b5>] sysfs_kf_write+0x45/0x60
[ 2174.076690]  [<ffffffff8124a4d9>] kernfs_fop_write+0xf9/0x180
[ 2174.076694]  [<ffffffff811c66bd>] vfs_write+0xbd/0x1e0
[ 2174.076696]  [<ffffffff811c7249>] SyS_write+0x49/0xb0
[ 2174.076700]  [<ffffffff815ecbd6>] system_call_fastpath+0x1a/0x1f
[ 2174.081587] ---[ end trace 32ffe1e61f685f01 ]---
[ 2174.082221] serial 00:09: activated
[ 2174.233290] thinkpad_acpi: ACPI backlight control delay disabled
[ 2174.323685] ata4.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
[ 2174.323688] ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[ 2174.324671] ata4.00: ACPI cmd e3/00:79:00:00:00:a0 (IDLE) succeeded
[ 2174.325651] ata4.00: ACPI cmd e3/00:01:00:00:00:a0 (IDLE) succeeded
[ 2174.345266] ata4.00: configured for UDMA/33

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-05-29  8:41 WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource Zdenek Kabelac
@ 2014-05-29 11:14 ` Rafael J. Wysocki
  2014-07-25 23:15   ` Vinson Lee
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2014-05-29 11:14 UTC (permalink / raw)
  To: Zdenek Kabelac; +Cc: rafael.j.wysocki, LKML, ACPI Devel Maling List

On Thursday, May 29, 2014 10:41:43 AM Zdenek Kabelac wrote:
> Hi
> 
> 
> I've noticed this message in my dmesg:
> (Possibly related to this commit?:
> a8d22396302b7e4e5f0a594c1c1594388c29edaf)

Well, does reverting that commit make the warning go away?

Rafael


> (My vanilla git commit number for my kernel:
> cd79bde29f00a346eec3fe17c1c5073c37ed95e7)
> 
> Zdenek
> 
> 
> [ 2174.058615] ata5: port disabled--ignoring
> [ 2174.059460] sd 0:0:0:0: [sda] Starting disk
> [ 2174.076342] ------------[ cut here ]------------
> [ 2174.076350] WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 
> pnpacpi_set_resources+0x14f/0x160()
> [ 2174.076412] Modules linked in: dm_raid raid456 async_raid6_recov 
> async_memcpy async_pq async_xor async_tx raid1 raid10 dm_mod md_mod xor 
> raid6_pq i915 i2c_algo_bit drm_kms_helper drm xt_CHECKSUM iptable_mangle 
> ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 
> xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables 
> x_tables tun bridge stp llc ipv6 hid_generic usbhid hid snd_hda_codec_analog 
> snd_hda_codec_generic iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm 
> microcode psmouse serio_raw i2c_i801 i2c_core arc4 lpc_ich mfd_core r852 
> iwl3945 sm_common nand r592 nand_ecc nand_ids iwlegacy mtd memstick mac80211 
> sdhci_pci pcmcia sdhci snd_hda_intel mmc_core snd_hda_controller snd_hda_codec 
> snd_hwdep snd_seq snd_seq_device snd_pcm cfg80211 e1000e ptp snd_timer
> [ 2174.076433]  pps_core wmi thinkpad_acpi nvram snd soundcore evdev nfsd 
> auth_rpcgss oid_registry nfs_acl lockd binfmt_misc loop sunrpc uhci_hcd sr_mod 
> cdrom yenta_socket ehci_pci ehci_hcd usbcore usb_common video backlight autofs4
> [ 2174.076436] CPU: 0 PID: 2623 Comm: systemd-sleep Not tainted 
> 3.15.0-rc7-00044-g887210a #209
> [ 2174.076437] Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 ) 
> 03/18/2011
> [ 2174.076440]  0000000000000009 ffff880095d55c40 ffffffff815db694 
> 0000000000000000
> [ 2174.076444]  ffff880095d55c78 ffffffff8104e78d 0000000000000000 
> ffff880136c3cd98
> [ 2174.076447]  ffff8800bac2b000 ffffffff8180cb5a 0000000000000000 
> ffff880095d55c88
> [ 2174.076448] Call Trace:
> [ 2174.076453]  [<ffffffff815db694>] dump_stack+0x4e/0x7a
> [ 2174.076643]  [<ffffffff8104e78d>] warn_slowpath_common+0x7d/0xa0
> [ 2174.076646]  [<ffffffff8104e86a>] warn_slowpath_null+0x1a/0x20
> [ 2174.076648]  [<ffffffff814046cf>] pnpacpi_set_resources+0x14f/0x160
> [ 2174.076651]  [<ffffffff81401db2>] pnp_start_dev+0x42/0x80
> [ 2174.076655]  [<ffffffff81400858>] pnp_bus_resume+0x88/0xa0
> [ 2174.076658]  [<ffffffff814007d0>] ? pnp_bus_suspend+0x20/0x20
> [ 2174.076662]  [<ffffffff8145e919>] dpm_run_callback+0x49/0xa0
> [ 2174.076664]  [<ffffffff8145ec18>] device_resume+0xc8/0x1f0
> [ 2174.076667]  [<ffffffff81460639>] dpm_resume+0x119/0x250
> [ 2174.076670]  [<ffffffff814609b1>] dpm_resume_end+0x11/0x20
> [ 2174.076673]  [<ffffffff810b4b0f>] suspend_devices_and_enter+0xff/0x680
> [ 2174.076676]  [<ffffffff810b5277>] pm_suspend+0x1e7/0x2a0
> [ 2174.076678]  [<ffffffff810b3c2c>] state_store+0x7c/0xf0
> [ 2174.076683]  [<ffffffff81359f2f>] kobj_attr_store+0xf/0x20
> [ 2174.076686]  [<ffffffff8124b1b5>] sysfs_kf_write+0x45/0x60
> [ 2174.076690]  [<ffffffff8124a4d9>] kernfs_fop_write+0xf9/0x180
> [ 2174.076694]  [<ffffffff811c66bd>] vfs_write+0xbd/0x1e0
> [ 2174.076696]  [<ffffffff811c7249>] SyS_write+0x49/0xb0
> [ 2174.076700]  [<ffffffff815ecbd6>] system_call_fastpath+0x1a/0x1f
> [ 2174.081587] ---[ end trace 32ffe1e61f685f01 ]---
> [ 2174.082221] serial 00:09: activated
> [ 2174.233290] thinkpad_acpi: ACPI backlight control delay disabled
> [ 2174.323685] ata4.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
> [ 2174.323688] ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
> [ 2174.324671] ata4.00: ACPI cmd e3/00:79:00:00:00:a0 (IDLE) succeeded
> [ 2174.325651] ata4.00: ACPI cmd e3/00:01:00:00:00:a0 (IDLE) succeeded
> [ 2174.345266] ata4.00: configured for UDMA/33
> --
> 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/

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-05-29 11:14 ` Rafael J. Wysocki
@ 2014-07-25 23:15   ` Vinson Lee
  2014-07-27  9:01     ` Vinson Lee
  0 siblings, 1 reply; 12+ messages in thread
From: Vinson Lee @ 2014-07-25 23:15 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Zdenek Kabelac, Rafael J. Wysocki, LKML, ACPI Devel Maling List

On Thu, May 29, 2014 at 4:14 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> On Thursday, May 29, 2014 10:41:43 AM Zdenek Kabelac wrote:
>> Hi
>>
>>
>> I've noticed this message in my dmesg:
>> (Possibly related to this commit?:
>> a8d22396302b7e4e5f0a594c1c1594388c29edaf)
>
> Well, does reverting that commit make the warning go away?
>
> Rafael
>
>
>> (My vanilla git commit number for my kernel:
>> cd79bde29f00a346eec3fe17c1c5073c37ed95e7)
>>
>> Zdenek
>>
>>
>> [ 2174.058615] ata5: port disabled--ignoring
>> [ 2174.059460] sd 0:0:0:0: [sda] Starting disk
>> [ 2174.076342] ------------[ cut here ]------------
>> [ 2174.076350] WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96
>> pnpacpi_set_resources+0x14f/0x160()
>> [ 2174.076412] Modules linked in: dm_raid raid456 async_raid6_recov
>> async_memcpy async_pq async_xor async_tx raid1 raid10 dm_mod md_mod xor
>> raid6_pq i915 i2c_algo_bit drm_kms_helper drm xt_CHECKSUM iptable_mangle
>> ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4
>> xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables
>> x_tables tun bridge stp llc ipv6 hid_generic usbhid hid snd_hda_codec_analog
>> snd_hda_codec_generic iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm
>> microcode psmouse serio_raw i2c_i801 i2c_core arc4 lpc_ich mfd_core r852
>> iwl3945 sm_common nand r592 nand_ecc nand_ids iwlegacy mtd memstick mac80211
>> sdhci_pci pcmcia sdhci snd_hda_intel mmc_core snd_hda_controller snd_hda_codec
>> snd_hwdep snd_seq snd_seq_device snd_pcm cfg80211 e1000e ptp snd_timer
>> [ 2174.076433]  pps_core wmi thinkpad_acpi nvram snd soundcore evdev nfsd
>> auth_rpcgss oid_registry nfs_acl lockd binfmt_misc loop sunrpc uhci_hcd sr_mod
>> cdrom yenta_socket ehci_pci ehci_hcd usbcore usb_common video backlight autofs4
>> [ 2174.076436] CPU: 0 PID: 2623 Comm: systemd-sleep Not tainted
>> 3.15.0-rc7-00044-g887210a #209
>> [ 2174.076437] Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 )
>> 03/18/2011
>> [ 2174.076440]  0000000000000009 ffff880095d55c40 ffffffff815db694
>> 0000000000000000
>> [ 2174.076444]  ffff880095d55c78 ffffffff8104e78d 0000000000000000
>> ffff880136c3cd98
>> [ 2174.076447]  ffff8800bac2b000 ffffffff8180cb5a 0000000000000000
>> ffff880095d55c88
>> [ 2174.076448] Call Trace:
>> [ 2174.076453]  [<ffffffff815db694>] dump_stack+0x4e/0x7a
>> [ 2174.076643]  [<ffffffff8104e78d>] warn_slowpath_common+0x7d/0xa0
>> [ 2174.076646]  [<ffffffff8104e86a>] warn_slowpath_null+0x1a/0x20
>> [ 2174.076648]  [<ffffffff814046cf>] pnpacpi_set_resources+0x14f/0x160
>> [ 2174.076651]  [<ffffffff81401db2>] pnp_start_dev+0x42/0x80
>> [ 2174.076655]  [<ffffffff81400858>] pnp_bus_resume+0x88/0xa0
>> [ 2174.076658]  [<ffffffff814007d0>] ? pnp_bus_suspend+0x20/0x20
>> [ 2174.076662]  [<ffffffff8145e919>] dpm_run_callback+0x49/0xa0
>> [ 2174.076664]  [<ffffffff8145ec18>] device_resume+0xc8/0x1f0
>> [ 2174.076667]  [<ffffffff81460639>] dpm_resume+0x119/0x250
>> [ 2174.076670]  [<ffffffff814609b1>] dpm_resume_end+0x11/0x20
>> [ 2174.076673]  [<ffffffff810b4b0f>] suspend_devices_and_enter+0xff/0x680
>> [ 2174.076676]  [<ffffffff810b5277>] pm_suspend+0x1e7/0x2a0
>> [ 2174.076678]  [<ffffffff810b3c2c>] state_store+0x7c/0xf0
>> [ 2174.076683]  [<ffffffff81359f2f>] kobj_attr_store+0xf/0x20
>> [ 2174.076686]  [<ffffffff8124b1b5>] sysfs_kf_write+0x45/0x60
>> [ 2174.076690]  [<ffffffff8124a4d9>] kernfs_fop_write+0xf9/0x180
>> [ 2174.076694]  [<ffffffff811c66bd>] vfs_write+0xbd/0x1e0
>> [ 2174.076696]  [<ffffffff811c7249>] SyS_write+0x49/0xb0
>> [ 2174.076700]  [<ffffffff815ecbd6>] system_call_fastpath+0x1a/0x1f
>> [ 2174.081587] ---[ end trace 32ffe1e61f685f01 ]---
>> [ 2174.082221] serial 00:09: activated
>> [ 2174.233290] thinkpad_acpi: ACPI backlight control delay disabled
>> [ 2174.323685] ata4.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
>> [ 2174.323688] ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
>> [ 2174.324671] ata4.00: ACPI cmd e3/00:79:00:00:00:a0 (IDLE) succeeded
>> [ 2174.325651] ata4.00: ACPI cmd e3/00:01:00:00:00:a0 (IDLE) succeeded
>> [ 2174.345266] ata4.00: configured for UDMA/33
>> --
>> 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/
>
> --
> I speak only for myself.
> Rafael J. Wysocki, Intel Open Source Technology Center.
> --
> 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/


Hi.

I hit a similar stack trace with 3.14.8.

------------[ cut here ]------------
 WARNING: CPU: 23 PID: 1 at drivers/pnp/pnpacpi/core.c:96
pnpacpi_set_resources+0x9a/0x134()
 Modules linked in:
 CPU: 23 PID: 1 Comm: swapper/0 Not tainted 3.14.8 #1
  0000000000000000 ffff881fd29f5c78 ffffffff814e27e5 0000000000000000
  ffff881fd29f5cb0 ffffffff8105c4b1 ffffffff812f32f3 0000000000000000
  ffff883fd1f0a800 ffff881fff047348 0000000000000000 ffff881fd29f5cc0
 Call Trace:
  [<ffffffff814e27e5>] dump_stack+0x45/0x56
  [<ffffffff8105c4b1>] warn_slowpath_common+0x7f/0x98
  [<ffffffff812f32f3>] ? pnpacpi_set_resources+0x9a/0x134
  [<ffffffff8105c578>] warn_slowpath_null+0x1a/0x1c
  [<ffffffff812f32f3>] pnpacpi_set_resources+0x9a/0x134
  [<ffffffff812f1264>] pnp_start_dev+0x3d/0x76
  [<ffffffff812f189d>] pnp_activate_dev+0x29/0x44
  [<ffffffff812f0406>] pnp_device_probe+0x47/0xa6
  [<ffffffff81333e20>] driver_probe_device+0x120/0x2f2
  [<ffffffff8133408c>] __driver_attach+0x5d/0x7f
  [<ffffffff8133402f>] ? __device_attach+0x3d/0x3d
  [<ffffffff81332248>] bus_for_each_dev+0x7b/0x85
  [<ffffffff81333852>] driver_attach+0x1e/0x20
  [<ffffffff813334a6>] bus_add_driver+0x12f/0x1f9
  [<ffffffff81334614>] driver_register+0x8e/0xca
  [<ffffffff812f0299>] pnp_register_driver+0x21/0x23
  [<ffffffff813169b6>] serial8250_pnp_init+0x15/0x17
  [<ffffffff81b39d3c>] serial8250_init+0x60/0x143
  [<ffffffff81b39cdc>] ? serial8250_console_init+0x19/0x19
  [<ffffffff810002d2>] do_one_initcall+0xa4/0x12a
  [<ffffffff810758b1>] ? parse_args+0x258/0x331
  [<ffffffff81afcea2>] kernel_init_freeable+0x16f/0x1f4
  [<ffffffff81afc719>] ? do_early_param+0x88/0x88
  [<ffffffff814d47b5>] ? rest_init+0x79/0x79
  [<ffffffff814d47c3>] kernel_init+0xe/0xdf
  [<ffffffff814ee0ec>] ret_from_fork+0x7c/0xb0
  [<ffffffff814d47b5>] ? rest_init+0x79/0x79
 ---[ end trace 9cf08771a70bd5a1 ]—


Cheers,
Vinson

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-25 23:15   ` Vinson Lee
@ 2014-07-27  9:01     ` Vinson Lee
  2014-07-28 19:11       ` Vinson Lee
  0 siblings, 1 reply; 12+ messages in thread
From: Vinson Lee @ 2014-07-27  9:01 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Zdenek Kabelac, Rafael J. Wysocki, LKML, ACPI Devel Maling List

On Fri, Jul 25, 2014 at 4:15 PM, Vinson Lee <vlee@twopensource.com> wrote:
> On Thu, May 29, 2014 at 4:14 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
>> On Thursday, May 29, 2014 10:41:43 AM Zdenek Kabelac wrote:
>>> Hi
>>>
>>>
>>> I've noticed this message in my dmesg:
>>> (Possibly related to this commit?:
>>> a8d22396302b7e4e5f0a594c1c1594388c29edaf)
>>
>> Well, does reverting that commit make the warning go away?
>>
>> Rafael
>>
>>
>>> (My vanilla git commit number for my kernel:
>>> cd79bde29f00a346eec3fe17c1c5073c37ed95e7)
>>>
>>> Zdenek
>>>
>>>
>>> [ 2174.058615] ata5: port disabled--ignoring
>>> [ 2174.059460] sd 0:0:0:0: [sda] Starting disk
>>> [ 2174.076342] ------------[ cut here ]------------
>>> [ 2174.076350] WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96
>>> pnpacpi_set_resources+0x14f/0x160()
>>> [ 2174.076412] Modules linked in: dm_raid raid456 async_raid6_recov
>>> async_memcpy async_pq async_xor async_tx raid1 raid10 dm_mod md_mod xor
>>> raid6_pq i915 i2c_algo_bit drm_kms_helper drm xt_CHECKSUM iptable_mangle
>>> ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4
>>> xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables
>>> x_tables tun bridge stp llc ipv6 hid_generic usbhid hid snd_hda_codec_analog
>>> snd_hda_codec_generic iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm
>>> microcode psmouse serio_raw i2c_i801 i2c_core arc4 lpc_ich mfd_core r852
>>> iwl3945 sm_common nand r592 nand_ecc nand_ids iwlegacy mtd memstick mac80211
>>> sdhci_pci pcmcia sdhci snd_hda_intel mmc_core snd_hda_controller snd_hda_codec
>>> snd_hwdep snd_seq snd_seq_device snd_pcm cfg80211 e1000e ptp snd_timer
>>> [ 2174.076433]  pps_core wmi thinkpad_acpi nvram snd soundcore evdev nfsd
>>> auth_rpcgss oid_registry nfs_acl lockd binfmt_misc loop sunrpc uhci_hcd sr_mod
>>> cdrom yenta_socket ehci_pci ehci_hcd usbcore usb_common video backlight autofs4
>>> [ 2174.076436] CPU: 0 PID: 2623 Comm: systemd-sleep Not tainted
>>> 3.15.0-rc7-00044-g887210a #209
>>> [ 2174.076437] Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 )
>>> 03/18/2011
>>> [ 2174.076440]  0000000000000009 ffff880095d55c40 ffffffff815db694
>>> 0000000000000000
>>> [ 2174.076444]  ffff880095d55c78 ffffffff8104e78d 0000000000000000
>>> ffff880136c3cd98
>>> [ 2174.076447]  ffff8800bac2b000 ffffffff8180cb5a 0000000000000000
>>> ffff880095d55c88
>>> [ 2174.076448] Call Trace:
>>> [ 2174.076453]  [<ffffffff815db694>] dump_stack+0x4e/0x7a
>>> [ 2174.076643]  [<ffffffff8104e78d>] warn_slowpath_common+0x7d/0xa0
>>> [ 2174.076646]  [<ffffffff8104e86a>] warn_slowpath_null+0x1a/0x20
>>> [ 2174.076648]  [<ffffffff814046cf>] pnpacpi_set_resources+0x14f/0x160
>>> [ 2174.076651]  [<ffffffff81401db2>] pnp_start_dev+0x42/0x80
>>> [ 2174.076655]  [<ffffffff81400858>] pnp_bus_resume+0x88/0xa0
>>> [ 2174.076658]  [<ffffffff814007d0>] ? pnp_bus_suspend+0x20/0x20
>>> [ 2174.076662]  [<ffffffff8145e919>] dpm_run_callback+0x49/0xa0
>>> [ 2174.076664]  [<ffffffff8145ec18>] device_resume+0xc8/0x1f0
>>> [ 2174.076667]  [<ffffffff81460639>] dpm_resume+0x119/0x250
>>> [ 2174.076670]  [<ffffffff814609b1>] dpm_resume_end+0x11/0x20
>>> [ 2174.076673]  [<ffffffff810b4b0f>] suspend_devices_and_enter+0xff/0x680
>>> [ 2174.076676]  [<ffffffff810b5277>] pm_suspend+0x1e7/0x2a0
>>> [ 2174.076678]  [<ffffffff810b3c2c>] state_store+0x7c/0xf0
>>> [ 2174.076683]  [<ffffffff81359f2f>] kobj_attr_store+0xf/0x20
>>> [ 2174.076686]  [<ffffffff8124b1b5>] sysfs_kf_write+0x45/0x60
>>> [ 2174.076690]  [<ffffffff8124a4d9>] kernfs_fop_write+0xf9/0x180
>>> [ 2174.076694]  [<ffffffff811c66bd>] vfs_write+0xbd/0x1e0
>>> [ 2174.076696]  [<ffffffff811c7249>] SyS_write+0x49/0xb0
>>> [ 2174.076700]  [<ffffffff815ecbd6>] system_call_fastpath+0x1a/0x1f
>>> [ 2174.081587] ---[ end trace 32ffe1e61f685f01 ]---
>>> [ 2174.082221] serial 00:09: activated
>>> [ 2174.233290] thinkpad_acpi: ACPI backlight control delay disabled
>>> [ 2174.323685] ata4.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
>>> [ 2174.323688] ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
>>> [ 2174.324671] ata4.00: ACPI cmd e3/00:79:00:00:00:a0 (IDLE) succeeded
>>> [ 2174.325651] ata4.00: ACPI cmd e3/00:01:00:00:00:a0 (IDLE) succeeded
>>> [ 2174.345266] ata4.00: configured for UDMA/33
>>> --
>>> 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/
>>
>> --
>> I speak only for myself.
>> Rafael J. Wysocki, Intel Open Source Technology Center.
>> --
>> 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/
>
>
> Hi.
>
> I hit a similar stack trace with 3.14.8.
>
> ------------[ cut here ]------------
>  WARNING: CPU: 23 PID: 1 at drivers/pnp/pnpacpi/core.c:96
> pnpacpi_set_resources+0x9a/0x134()
>  Modules linked in:
>  CPU: 23 PID: 1 Comm: swapper/0 Not tainted 3.14.8 #1
>   0000000000000000 ffff881fd29f5c78 ffffffff814e27e5 0000000000000000
>   ffff881fd29f5cb0 ffffffff8105c4b1 ffffffff812f32f3 0000000000000000
>   ffff883fd1f0a800 ffff881fff047348 0000000000000000 ffff881fd29f5cc0
>  Call Trace:
>   [<ffffffff814e27e5>] dump_stack+0x45/0x56
>   [<ffffffff8105c4b1>] warn_slowpath_common+0x7f/0x98
>   [<ffffffff812f32f3>] ? pnpacpi_set_resources+0x9a/0x134
>   [<ffffffff8105c578>] warn_slowpath_null+0x1a/0x1c
>   [<ffffffff812f32f3>] pnpacpi_set_resources+0x9a/0x134
>   [<ffffffff812f1264>] pnp_start_dev+0x3d/0x76
>   [<ffffffff812f189d>] pnp_activate_dev+0x29/0x44
>   [<ffffffff812f0406>] pnp_device_probe+0x47/0xa6
>   [<ffffffff81333e20>] driver_probe_device+0x120/0x2f2
>   [<ffffffff8133408c>] __driver_attach+0x5d/0x7f
>   [<ffffffff8133402f>] ? __device_attach+0x3d/0x3d
>   [<ffffffff81332248>] bus_for_each_dev+0x7b/0x85
>   [<ffffffff81333852>] driver_attach+0x1e/0x20
>   [<ffffffff813334a6>] bus_add_driver+0x12f/0x1f9
>   [<ffffffff81334614>] driver_register+0x8e/0xca
>   [<ffffffff812f0299>] pnp_register_driver+0x21/0x23
>   [<ffffffff813169b6>] serial8250_pnp_init+0x15/0x17
>   [<ffffffff81b39d3c>] serial8250_init+0x60/0x143
>   [<ffffffff81b39cdc>] ? serial8250_console_init+0x19/0x19
>   [<ffffffff810002d2>] do_one_initcall+0xa4/0x12a
>   [<ffffffff810758b1>] ? parse_args+0x258/0x331
>   [<ffffffff81afcea2>] kernel_init_freeable+0x16f/0x1f4
>   [<ffffffff81afc719>] ? do_early_param+0x88/0x88
>   [<ffffffff814d47b5>] ? rest_init+0x79/0x79
>   [<ffffffff814d47c3>] kernel_init+0xe/0xdf
>   [<ffffffff814ee0ec>] ret_from_fork+0x7c/0xb0
>   [<ffffffff814d47b5>] ? rest_init+0x79/0x79
>  ---[ end trace 9cf08771a70bd5a1 ]—
>
>
> Cheers,
> Vinson

Hi.

Reverting "PNP / ACPI: Do not return errors if _DIS or _SRS are not
present" does not make the warning go away.

The warning also occurs with kernel 3.16-rc6.

------------[ cut here ]------------
 WARNING: CPU: 23 PID: 1 at drivers/pnp/pnpacpi/core.c:76
pnpacpi_set_resources+0x9a/0x134()
 Modules linked in:
 CPU: 23 PID: 1 Comm: swapper/0 Not tainted 3.16.0-rc6 #1
  0000000000000000 ffff8808541efc78 ffffffff814facfd 0000000000000000
  ffff8808541efcb0 ffffffff8105f229 ffffffff81302487 0000000000000000
  ffff8810530e8000 ffff88085f450e60 0000000000000000 ffff8808541efcc0
 Call Trace:
  [<ffffffff814facfd>] dump_stack+0x45/0x56
  [<ffffffff8105f229>] warn_slowpath_common+0x7f/0x98
  [<ffffffff81302487>] ? pnpacpi_set_resources+0x9a/0x134
  [<ffffffff8105f2f0>] warn_slowpath_null+0x1a/0x1c
  [<ffffffff81302487>] pnpacpi_set_resources+0x9a/0x134
  [<ffffffff8130029c>] pnp_start_dev+0x3d/0x76
  [<ffffffff813008d5>] pnp_activate_dev+0x29/0x44
  [<ffffffff812ff43e>] pnp_device_probe+0x47/0xa6
  [<ffffffff81342e1f>] driver_probe_device+0x120/0x2f3
  [<ffffffff8134308c>] __driver_attach+0x5d/0x7f
  [<ffffffff8134302f>] ? __device_attach+0x3d/0x3d
  [<ffffffff813412a0>] bus_for_each_dev+0x7b/0x85
  [<ffffffff81342886>] driver_attach+0x1e/0x20
  [<ffffffff813424fe>] bus_add_driver+0x12f/0x1f9
  [<ffffffff81343694>] driver_register+0x8e/0xca
  [<ffffffff812ff2d1>] pnp_register_driver+0x21/0x23
  [<ffffffff81325c2d>] serial8250_pnp_init+0x15/0x17
  [<ffffffff81b456a1>] serial8250_init+0x60/0x143
  [<ffffffff81b45641>] ? serial8250_console_init+0x19/0x19
  [<ffffffff8100032d>] do_one_initcall+0xff/0x186
  [<ffffffff81077ee1>] ? parse_args+0x280/0x373
  [<ffffffff81b07fb0>] kernel_init_freeable+0x16f/0x1f4
  [<ffffffff81b07719>] ? do_early_param+0x88/0x88
  [<ffffffff814efa15>] ? rest_init+0x79/0x79
  [<ffffffff814efa23>] kernel_init+0xe/0xdf
  [<ffffffff815002ec>] ret_from_fork+0x7c/0xb0
  [<ffffffff814efa15>] ? rest_init+0x79/0x79
 ---[ end trace 68542c0606786a42 ]---

Vinson

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-27  9:01     ` Vinson Lee
@ 2014-07-28 19:11       ` Vinson Lee
  2014-07-29  9:53         ` William Dauchy
  0 siblings, 1 reply; 12+ messages in thread
From: Vinson Lee @ 2014-07-28 19:11 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Zdenek Kabelac, Rafael J. Wysocki, LKML, ACPI Devel Maling List

On Sun, Jul 27, 2014 at 2:01 AM, Vinson Lee <vlee@twopensource.com> wrote:
> On Fri, Jul 25, 2014 at 4:15 PM, Vinson Lee <vlee@twopensource.com> wrote:
>> On Thu, May 29, 2014 at 4:14 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
>>> On Thursday, May 29, 2014 10:41:43 AM Zdenek Kabelac wrote:
>>>> Hi
>>>>
>>>>
>>>> I've noticed this message in my dmesg:
>>>> (Possibly related to this commit?:
>>>> a8d22396302b7e4e5f0a594c1c1594388c29edaf)
>>>
>>> Well, does reverting that commit make the warning go away?
>>>
>>> Rafael
>>>
>>>
>>>> (My vanilla git commit number for my kernel:
>>>> cd79bde29f00a346eec3fe17c1c5073c37ed95e7)
>>>>
>>>> Zdenek
>>>>
>>>>
>>>> [ 2174.058615] ata5: port disabled--ignoring
>>>> [ 2174.059460] sd 0:0:0:0: [sda] Starting disk
>>>> [ 2174.076342] ------------[ cut here ]------------
>>>> [ 2174.076350] WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96
>>>> pnpacpi_set_resources+0x14f/0x160()
>>>> [ 2174.076412] Modules linked in: dm_raid raid456 async_raid6_recov
>>>> async_memcpy async_pq async_xor async_tx raid1 raid10 dm_mod md_mod xor
>>>> raid6_pq i915 i2c_algo_bit drm_kms_helper drm xt_CHECKSUM iptable_mangle
>>>> ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4
>>>> xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables
>>>> x_tables tun bridge stp llc ipv6 hid_generic usbhid hid snd_hda_codec_analog
>>>> snd_hda_codec_generic iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm
>>>> microcode psmouse serio_raw i2c_i801 i2c_core arc4 lpc_ich mfd_core r852
>>>> iwl3945 sm_common nand r592 nand_ecc nand_ids iwlegacy mtd memstick mac80211
>>>> sdhci_pci pcmcia sdhci snd_hda_intel mmc_core snd_hda_controller snd_hda_codec
>>>> snd_hwdep snd_seq snd_seq_device snd_pcm cfg80211 e1000e ptp snd_timer
>>>> [ 2174.076433]  pps_core wmi thinkpad_acpi nvram snd soundcore evdev nfsd
>>>> auth_rpcgss oid_registry nfs_acl lockd binfmt_misc loop sunrpc uhci_hcd sr_mod
>>>> cdrom yenta_socket ehci_pci ehci_hcd usbcore usb_common video backlight autofs4
>>>> [ 2174.076436] CPU: 0 PID: 2623 Comm: systemd-sleep Not tainted
>>>> 3.15.0-rc7-00044-g887210a #209
>>>> [ 2174.076437] Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 )
>>>> 03/18/2011
>>>> [ 2174.076440]  0000000000000009 ffff880095d55c40 ffffffff815db694
>>>> 0000000000000000
>>>> [ 2174.076444]  ffff880095d55c78 ffffffff8104e78d 0000000000000000
>>>> ffff880136c3cd98
>>>> [ 2174.076447]  ffff8800bac2b000 ffffffff8180cb5a 0000000000000000
>>>> ffff880095d55c88
>>>> [ 2174.076448] Call Trace:
>>>> [ 2174.076453]  [<ffffffff815db694>] dump_stack+0x4e/0x7a
>>>> [ 2174.076643]  [<ffffffff8104e78d>] warn_slowpath_common+0x7d/0xa0
>>>> [ 2174.076646]  [<ffffffff8104e86a>] warn_slowpath_null+0x1a/0x20
>>>> [ 2174.076648]  [<ffffffff814046cf>] pnpacpi_set_resources+0x14f/0x160
>>>> [ 2174.076651]  [<ffffffff81401db2>] pnp_start_dev+0x42/0x80
>>>> [ 2174.076655]  [<ffffffff81400858>] pnp_bus_resume+0x88/0xa0
>>>> [ 2174.076658]  [<ffffffff814007d0>] ? pnp_bus_suspend+0x20/0x20
>>>> [ 2174.076662]  [<ffffffff8145e919>] dpm_run_callback+0x49/0xa0
>>>> [ 2174.076664]  [<ffffffff8145ec18>] device_resume+0xc8/0x1f0
>>>> [ 2174.076667]  [<ffffffff81460639>] dpm_resume+0x119/0x250
>>>> [ 2174.076670]  [<ffffffff814609b1>] dpm_resume_end+0x11/0x20
>>>> [ 2174.076673]  [<ffffffff810b4b0f>] suspend_devices_and_enter+0xff/0x680
>>>> [ 2174.076676]  [<ffffffff810b5277>] pm_suspend+0x1e7/0x2a0
>>>> [ 2174.076678]  [<ffffffff810b3c2c>] state_store+0x7c/0xf0
>>>> [ 2174.076683]  [<ffffffff81359f2f>] kobj_attr_store+0xf/0x20
>>>> [ 2174.076686]  [<ffffffff8124b1b5>] sysfs_kf_write+0x45/0x60
>>>> [ 2174.076690]  [<ffffffff8124a4d9>] kernfs_fop_write+0xf9/0x180
>>>> [ 2174.076694]  [<ffffffff811c66bd>] vfs_write+0xbd/0x1e0
>>>> [ 2174.076696]  [<ffffffff811c7249>] SyS_write+0x49/0xb0
>>>> [ 2174.076700]  [<ffffffff815ecbd6>] system_call_fastpath+0x1a/0x1f
>>>> [ 2174.081587] ---[ end trace 32ffe1e61f685f01 ]---
>>>> [ 2174.082221] serial 00:09: activated
>>>> [ 2174.233290] thinkpad_acpi: ACPI backlight control delay disabled
>>>> [ 2174.323685] ata4.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
>>>> [ 2174.323688] ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
>>>> [ 2174.324671] ata4.00: ACPI cmd e3/00:79:00:00:00:a0 (IDLE) succeeded
>>>> [ 2174.325651] ata4.00: ACPI cmd e3/00:01:00:00:00:a0 (IDLE) succeeded
>>>> [ 2174.345266] ata4.00: configured for UDMA/33
>>>> --
>>>> 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/
>>>
>>> --
>>> I speak only for myself.
>>> Rafael J. Wysocki, Intel Open Source Technology Center.
>>> --
>>> 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/
>>
>>
>> Hi.
>>
>> I hit a similar stack trace with 3.14.8.
>>
>> ------------[ cut here ]------------
>>  WARNING: CPU: 23 PID: 1 at drivers/pnp/pnpacpi/core.c:96
>> pnpacpi_set_resources+0x9a/0x134()
>>  Modules linked in:
>>  CPU: 23 PID: 1 Comm: swapper/0 Not tainted 3.14.8 #1
>>   0000000000000000 ffff881fd29f5c78 ffffffff814e27e5 0000000000000000
>>   ffff881fd29f5cb0 ffffffff8105c4b1 ffffffff812f32f3 0000000000000000
>>   ffff883fd1f0a800 ffff881fff047348 0000000000000000 ffff881fd29f5cc0
>>  Call Trace:
>>   [<ffffffff814e27e5>] dump_stack+0x45/0x56
>>   [<ffffffff8105c4b1>] warn_slowpath_common+0x7f/0x98
>>   [<ffffffff812f32f3>] ? pnpacpi_set_resources+0x9a/0x134
>>   [<ffffffff8105c578>] warn_slowpath_null+0x1a/0x1c
>>   [<ffffffff812f32f3>] pnpacpi_set_resources+0x9a/0x134
>>   [<ffffffff812f1264>] pnp_start_dev+0x3d/0x76
>>   [<ffffffff812f189d>] pnp_activate_dev+0x29/0x44
>>   [<ffffffff812f0406>] pnp_device_probe+0x47/0xa6
>>   [<ffffffff81333e20>] driver_probe_device+0x120/0x2f2
>>   [<ffffffff8133408c>] __driver_attach+0x5d/0x7f
>>   [<ffffffff8133402f>] ? __device_attach+0x3d/0x3d
>>   [<ffffffff81332248>] bus_for_each_dev+0x7b/0x85
>>   [<ffffffff81333852>] driver_attach+0x1e/0x20
>>   [<ffffffff813334a6>] bus_add_driver+0x12f/0x1f9
>>   [<ffffffff81334614>] driver_register+0x8e/0xca
>>   [<ffffffff812f0299>] pnp_register_driver+0x21/0x23
>>   [<ffffffff813169b6>] serial8250_pnp_init+0x15/0x17
>>   [<ffffffff81b39d3c>] serial8250_init+0x60/0x143
>>   [<ffffffff81b39cdc>] ? serial8250_console_init+0x19/0x19
>>   [<ffffffff810002d2>] do_one_initcall+0xa4/0x12a
>>   [<ffffffff810758b1>] ? parse_args+0x258/0x331
>>   [<ffffffff81afcea2>] kernel_init_freeable+0x16f/0x1f4
>>   [<ffffffff81afc719>] ? do_early_param+0x88/0x88
>>   [<ffffffff814d47b5>] ? rest_init+0x79/0x79
>>   [<ffffffff814d47c3>] kernel_init+0xe/0xdf
>>   [<ffffffff814ee0ec>] ret_from_fork+0x7c/0xb0
>>   [<ffffffff814d47b5>] ? rest_init+0x79/0x79
>>  ---[ end trace 9cf08771a70bd5a1 ]—
>>
>>
>> Cheers,
>> Vinson
>
> Hi.
>
> Reverting "PNP / ACPI: Do not return errors if _DIS or _SRS are not
> present" does not make the warning go away.
>
> The warning also occurs with kernel 3.16-rc6.
>
> ------------[ cut here ]------------
>  WARNING: CPU: 23 PID: 1 at drivers/pnp/pnpacpi/core.c:76
> pnpacpi_set_resources+0x9a/0x134()
>  Modules linked in:
>  CPU: 23 PID: 1 Comm: swapper/0 Not tainted 3.16.0-rc6 #1
>   0000000000000000 ffff8808541efc78 ffffffff814facfd 0000000000000000
>   ffff8808541efcb0 ffffffff8105f229 ffffffff81302487 0000000000000000
>   ffff8810530e8000 ffff88085f450e60 0000000000000000 ffff8808541efcc0
>  Call Trace:
>   [<ffffffff814facfd>] dump_stack+0x45/0x56
>   [<ffffffff8105f229>] warn_slowpath_common+0x7f/0x98
>   [<ffffffff81302487>] ? pnpacpi_set_resources+0x9a/0x134
>   [<ffffffff8105f2f0>] warn_slowpath_null+0x1a/0x1c
>   [<ffffffff81302487>] pnpacpi_set_resources+0x9a/0x134
>   [<ffffffff8130029c>] pnp_start_dev+0x3d/0x76
>   [<ffffffff813008d5>] pnp_activate_dev+0x29/0x44
>   [<ffffffff812ff43e>] pnp_device_probe+0x47/0xa6
>   [<ffffffff81342e1f>] driver_probe_device+0x120/0x2f3
>   [<ffffffff8134308c>] __driver_attach+0x5d/0x7f
>   [<ffffffff8134302f>] ? __device_attach+0x3d/0x3d
>   [<ffffffff813412a0>] bus_for_each_dev+0x7b/0x85
>   [<ffffffff81342886>] driver_attach+0x1e/0x20
>   [<ffffffff813424fe>] bus_add_driver+0x12f/0x1f9
>   [<ffffffff81343694>] driver_register+0x8e/0xca
>   [<ffffffff812ff2d1>] pnp_register_driver+0x21/0x23
>   [<ffffffff81325c2d>] serial8250_pnp_init+0x15/0x17
>   [<ffffffff81b456a1>] serial8250_init+0x60/0x143
>   [<ffffffff81b45641>] ? serial8250_console_init+0x19/0x19
>   [<ffffffff8100032d>] do_one_initcall+0xff/0x186
>   [<ffffffff81077ee1>] ? parse_args+0x280/0x373
>   [<ffffffff81b07fb0>] kernel_init_freeable+0x16f/0x1f4
>   [<ffffffff81b07719>] ? do_early_param+0x88/0x88
>   [<ffffffff814efa15>] ? rest_init+0x79/0x79
>   [<ffffffff814efa23>] kernel_init+0xe/0xdf
>   [<ffffffff815002ec>] ret_from_fork+0x7c/0xb0
>   [<ffffffff814efa15>] ? rest_init+0x79/0x79
>  ---[ end trace 68542c0606786a42 ]---
>
> Vinson


The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-28 19:11       ` Vinson Lee
@ 2014-07-29  9:53         ` William Dauchy
  2014-07-29 18:13           ` Vinson Lee
  0 siblings, 1 reply; 12+ messages in thread
From: William Dauchy @ 2014-07-29  9:53 UTC (permalink / raw)
  To: Vinson Lee
  Cc: Rafael J. Wysocki, Zdenek Kabelac, Rafael J. Wysocki, LKML,
	ACPI Devel Maling List

Hi Vinson,

On Mon, Jul 28, 2014 at 9:11 PM, Vinson Lee <vlee@twopensource.com> wrote:
> The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.

Hitting the same issue here with a similar trace on 3.14.x. Did you
start bisecting?

Regards,
-- 
William

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-29  9:53         ` William Dauchy
@ 2014-07-29 18:13           ` Vinson Lee
  2014-07-29 21:10             ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Vinson Lee @ 2014-07-29 18:13 UTC (permalink / raw)
  To: William Dauchy
  Cc: Rafael J. Wysocki, Zdenek Kabelac, Rafael J. Wysocki, LKML,
	ACPI Devel Maling List

On Tue, Jul 29, 2014 at 2:53 AM, William Dauchy <wdauchy@gmail.com> wrote:
> Hi Vinson,
>
> On Mon, Jul 28, 2014 at 9:11 PM, Vinson Lee <vlee@twopensource.com> wrote:
>> The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.
>
> Hitting the same issue here with a similar trace on 3.14.x. Did you
> start bisecting?
>
> Regards,
> --
> William


I bisected the warning that I'm seeing to this commit.

commit 202317a573b20d77a9abb7c16a3fd5b40cef3d9d
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Fri Nov 22 21:54:37 2013 +0100

    ACPI / scan: Add acpi_device objects for all device nodes in the namespace

    Modify the ACPI namespace scanning code to register a struct
    acpi_device object for every namespace node representing a device,
    processor and so on, even if the device represented by that namespace
    node is reported to be not present and not functional by _STA.

    There are multiple reasons to do that.  First of all, it avoids
    quite a lot of overhead when struct acpi_device objects are
    deleted every time acpi_bus_trim() is run and then added again
    by a subsequent acpi_bus_scan() for the same scope, although the
    namespace objects they correspond to stay in memory all the time
    (which always is the case on a vast majority of systems).

    Second, it will allow user space to see that there are namespace
    nodes representing devices that are not present at the moment and may
    be added to the system.  It will also allow user space to evaluate
    _SUN for those nodes to check what physical slots the "missing"
    devices may be put into and it will make sense to add a sysfs
    attribute for _STA evaluation after this change (that will be
    useful for thermal management on some systems).

    Next, it will help to consolidate the ACPI hotplug handling among
    subsystems by making it possible to store hotplug-related information
    in struct acpi_device objects in a standard common way.

    Finally, it will help to avoid a race condition related to the
    deletion of ACPI namespace nodes.  Namely, namespace nodes may be
    deleted as a result of a table unload triggered by _EJ0 or _DCK.
    If a hotplug notification for one of those nodes is triggered
    right before the deletion and it executes a hotplug callback
    via acpi_hotplug_execute(), the ACPI handle passed to that
    callback may be stale when the callback actually runs.  One way
    to work around that is to always pass struct acpi_device pointers
    to hotplug callbacks after doing a get_device() on the objects in
    question which eliminates the use-after-free possibility (the ACPI
    handles in those objects are invalidated by acpi_scan_drop_device(),
    so they will trigger ACPICA errors on attempts to use them).

    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-29 18:13           ` Vinson Lee
@ 2014-07-29 21:10             ` Rafael J. Wysocki
  2014-07-29 21:52               ` Vinson Lee
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2014-07-29 21:10 UTC (permalink / raw)
  To: Vinson Lee
  Cc: William Dauchy, Zdenek Kabelac, Rafael J. Wysocki, LKML,
	ACPI Devel Maling List

On Tuesday, July 29, 2014 11:13:55 AM Vinson Lee wrote:
> On Tue, Jul 29, 2014 at 2:53 AM, William Dauchy <wdauchy@gmail.com> wrote:
> > Hi Vinson,
> >
> > On Mon, Jul 28, 2014 at 9:11 PM, Vinson Lee <vlee@twopensource.com> wrote:
> >> The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.
> >
> > Hitting the same issue here with a similar trace on 3.14.x. Did you
> > start bisecting?
> >
> > Regards,
> > --
> > William
> 
> 
> I bisected the warning that I'm seeing to this commit.
> 
> commit 202317a573b20d77a9abb7c16a3fd5b40cef3d9d
> Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> Date:   Fri Nov 22 21:54:37 2013 +0100
> 
>     ACPI / scan: Add acpi_device objects for all device nodes in the namespace

Interesting.

Does the appended patch make any difference?

Rafael

---
 drivers/pnp/pnpacpi/core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-pm/drivers/pnp/pnpacpi/core.c
===================================================================
--- linux-pm.orig/drivers/pnp/pnpacpi/core.c
+++ linux-pm/drivers/pnp/pnpacpi/core.c
@@ -319,8 +319,7 @@ static int __init acpi_pnp_match(struct
 	struct pnp_dev *pnp = _pnp;
 
 	/* true means it matched */
-	return !acpi->physical_node_count
-	    && compare_pnp_id(pnp->id, acpi_device_hid(acpi));
+	return pnp->data == acpi;
 }
 
 static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev)


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-29 21:10             ` Rafael J. Wysocki
@ 2014-07-29 21:52               ` Vinson Lee
  2014-07-29 22:39                 ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Vinson Lee @ 2014-07-29 21:52 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: William Dauchy, Zdenek Kabelac, Rafael J. Wysocki, LKML,
	ACPI Devel Maling List

On Tue, Jul 29, 2014 at 2:10 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> On Tuesday, July 29, 2014 11:13:55 AM Vinson Lee wrote:
>> On Tue, Jul 29, 2014 at 2:53 AM, William Dauchy <wdauchy@gmail.com> wrote:
>> > Hi Vinson,
>> >
>> > On Mon, Jul 28, 2014 at 9:11 PM, Vinson Lee <vlee@twopensource.com> wrote:
>> >> The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.
>> >
>> > Hitting the same issue here with a similar trace on 3.14.x. Did you
>> > start bisecting?
>> >
>> > Regards,
>> > --
>> > William
>>
>>
>> I bisected the warning that I'm seeing to this commit.
>>
>> commit 202317a573b20d77a9abb7c16a3fd5b40cef3d9d
>> Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>> Date:   Fri Nov 22 21:54:37 2013 +0100
>>
>>     ACPI / scan: Add acpi_device objects for all device nodes in the namespace
>
> Interesting.
>
> Does the appended patch make any difference?
>
> Rafael
>
> ---
>  drivers/pnp/pnpacpi/core.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> Index: linux-pm/drivers/pnp/pnpacpi/core.c
> ===================================================================
> --- linux-pm.orig/drivers/pnp/pnpacpi/core.c
> +++ linux-pm/drivers/pnp/pnpacpi/core.c
> @@ -319,8 +319,7 @@ static int __init acpi_pnp_match(struct
>         struct pnp_dev *pnp = _pnp;
>
>         /* true means it matched */
> -       return !acpi->physical_node_count
> -           && compare_pnp_id(pnp->id, acpi_device_hid(acpi));
> +       return pnp->data == acpi;
>  }
>
>  static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev)
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Yes, with the patch on top of 3.16-rc7 I do not see the warning.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-29 21:52               ` Vinson Lee
@ 2014-07-29 22:39                 ` Rafael J. Wysocki
  2014-07-30 11:49                   ` William Dauchy
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2014-07-29 22:39 UTC (permalink / raw)
  To: Vinson Lee, William Dauchy
  Cc: William Dauchy, Zdenek Kabelac, LKML, ACPI Devel Maling List

On Tuesday, July 29, 2014 02:52:32 PM Vinson Lee wrote:
> On Tue, Jul 29, 2014 at 2:10 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Tuesday, July 29, 2014 11:13:55 AM Vinson Lee wrote:
> >> On Tue, Jul 29, 2014 at 2:53 AM, William Dauchy <wdauchy@gmail.com> wrote:
> >> > Hi Vinson,
> >> >
> >> > On Mon, Jul 28, 2014 at 9:11 PM, Vinson Lee <vlee@twopensource.com> wrote:
> >> >> The warning first happens with 3.14-rc1. The warning does not occur with 3.13.0.
> >> >
> >> > Hitting the same issue here with a similar trace on 3.14.x. Did you
> >> > start bisecting?
> >> >
> >> > Regards,
> >> > --
> >> > William
> >>
> >>
> >> I bisected the warning that I'm seeing to this commit.
> >>
> >> commit 202317a573b20d77a9abb7c16a3fd5b40cef3d9d
> >> Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >> Date:   Fri Nov 22 21:54:37 2013 +0100
> >>
> >>     ACPI / scan: Add acpi_device objects for all device nodes in the namespace
> >
> > Interesting.
> >
> > Does the appended patch make any difference?
> >
> > Rafael
> >

[cut]

> 
> 
> Yes, with the patch on top of 3.16-rc7 I do not see the warning.

Great, thanks for testing!

The patch goes again below with a proper changelog.

William, it would be good if you could test it too as I'd like to
push it for 3.16.

Rafael

---
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Subject: ACPI / PNP: Fix acpi_pnp_match()

The acpi_pnp_match() function is used for finding the ACPI device
object that should be associated with the given PNP device.
Unfortunately, the check used by that function is not strict enough
and may cause success to be returned for a wrong ACPI device object.

To fix that, use the observation that the pointer to the ACPI
device object in question is already stored in the data field
in struct pnp_dev, so acpi_pnp_match() can simply use that
field to do its job.

This problem was uncovered in 3.14 by commit 202317a573b2 (ACPI / scan:
Add acpi_device objects for all device nodes in the namespace).

Fixes: 202317a573b2 (ACPI / scan: Add acpi_device objects for all device nodes in the namespace)
Reported-and-tested-by: Vinson Lee <vlee@twopensource.com>
Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/pnp/pnpacpi/core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-pm/drivers/pnp/pnpacpi/core.c
===================================================================
--- linux-pm.orig/drivers/pnp/pnpacpi/core.c
+++ linux-pm/drivers/pnp/pnpacpi/core.c
@@ -319,8 +319,7 @@ static int __init acpi_pnp_match(struct
 	struct pnp_dev *pnp = _pnp;
 
 	/* true means it matched */
-	return !acpi->physical_node_count
-	    && compare_pnp_id(pnp->id, acpi_device_hid(acpi));
+	return pnp->data == acpi;
 }
 
 static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev)


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-29 22:39                 ` Rafael J. Wysocki
@ 2014-07-30 11:49                   ` William Dauchy
  2014-07-30 12:50                     ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: William Dauchy @ 2014-07-30 11:49 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Vinson Lee, Zdenek Kabelac, LKML, ACPI Devel Maling List

Hi Rafael,

On Wed, Jul 30, 2014 at 12:39 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> William, it would be good if you could test it too as I'd like to
> push it for 3.16.

It also fixes the issue in 3.14.x

Tested-by: William Dauchy <william@gandi.net>

Thanks,
-- 
William

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource
  2014-07-30 11:49                   ` William Dauchy
@ 2014-07-30 12:50                     ` Rafael J. Wysocki
  0 siblings, 0 replies; 12+ messages in thread
From: Rafael J. Wysocki @ 2014-07-30 12:50 UTC (permalink / raw)
  To: William Dauchy; +Cc: Vinson Lee, Zdenek Kabelac, LKML, ACPI Devel Maling List

On Wednesday, July 30, 2014 01:49:55 PM William Dauchy wrote:
> Hi Rafael,
> 
> On Wed, Jul 30, 2014 at 12:39 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > William, it would be good if you could test it too as I'd like to
> > push it for 3.16.
> 
> It also fixes the issue in 3.14.x
> 
> Tested-by: William Dauchy <william@gandi.net>

Great, thanks for testing!

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-30 12:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29  8:41 WARNING: CPU: 0 PID: 2623 at drivers/pnp/pnpacpi/core.c:96 pnpacpi_set_resource Zdenek Kabelac
2014-05-29 11:14 ` Rafael J. Wysocki
2014-07-25 23:15   ` Vinson Lee
2014-07-27  9:01     ` Vinson Lee
2014-07-28 19:11       ` Vinson Lee
2014-07-29  9:53         ` William Dauchy
2014-07-29 18:13           ` Vinson Lee
2014-07-29 21:10             ` Rafael J. Wysocki
2014-07-29 21:52               ` Vinson Lee
2014-07-29 22:39                 ` Rafael J. Wysocki
2014-07-30 11:49                   ` William Dauchy
2014-07-30 12:50                     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox