Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755030AbaDNXz7 (ORCPT ); Mon, 14 Apr 2014 19:55:59 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42067 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754582AbaDNXz5 (ORCPT ); Mon, 14 Apr 2014 19:55:57 -0400 From: Luis Henriques To: Eric Piel , Robert Moore , Lv Zheng , "Rafael J. Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: BUG: using __this_cpu_write() in preemptible [00000000] code: systemd-udevd/497 Date: Tue, 15 Apr 2014 00:55:50 +0100 Message-ID: <87mwfn4gah.fsf@canonical.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Cc'ing both lis3lv02d and ACPI maintainers) Since commit 188a81409ff7de1c5aae947a96356ddd8ff4aaa3 ("percpu: add preemption checks to __this_cpu ops") I've been seeing the following: [ 10.485588] hp_accel: hardware type HPB64xx found [ 10.485772] BUG: using __this_cpu_write() in preemptible [00000000] code: systemd-udevd/497 [ 10.485777] caller is __this_cpu_preempt_check+0x13/0x20 [ 10.485781] CPU: 3 PID: 497 Comm: systemd-udevd Tainted: G W 3.15.0-rc1 #9 [ 10.485783] Hardware name: Hewlett-Packard HP EliteBook 8470p/179B, BIOS 68ICF Ver. F.02 04/27/2012 [ 10.485785] ffffffff81a14db5 ffff88022c80b8e0 ffffffff81604ba4 0000000000000003 [ 10.485789] ffff88022c80b908 ffffffff81313431 0000000000000000 0000000000000032 [ 10.485793] 00000000000003e8 ffff88022c80b918 ffffffff81313473 ffff88022c80b928 [ 10.485796] Call Trace: [ 10.485802] [] dump_stack+0x4e/0x7a [ 10.485805] [] check_preemption_disabled+0xe1/0xf0 [ 10.485808] [] __this_cpu_preempt_check+0x13/0x20 [ 10.485813] [] touch_nmi_watchdog+0x28/0x40 [ 10.485817] [] acpi_os_stall+0x37/0x40 [ 10.485822] [] acpi_ex_system_do_stall+0x39/0x3d [ 10.485825] [] acpi_ex_opcode_1A_0T_0R+0x72/0xa3 [ 10.485829] [] acpi_ds_exec_end_op+0xd0/0x3e8 [ 10.485833] [] acpi_ps_parse_loop+0x51d/0x576 [ 10.485836] [] acpi_ps_parse_aml+0x98/0x289 [ 10.485839] [] acpi_ps_execute_method+0x1c1/0x26c [ 10.485843] [] acpi_ns_evaluate+0x1c1/0x258 [ 10.485846] [] acpi_evaluate_object+0x126/0x22f [ 10.485850] [] ? wake_up_klogd+0x52/0x70 [ 10.485853] [] acpi_evaluate_integer+0x34/0x52 [ 10.485858] [] lis3lv02d_acpi_read+0x59/0x70 [hp_accel] [ 10.485863] [] lis3lv02d_init_device+0x26/0xc00 [lis3lv02d] [ 10.485866] [] ? acpi_walk_resources+0x77/0x8d [ 10.485870] [] ? lis3lv02d_dmi_matched+0x35/0x40 [hp_accel] [ 10.485874] [] lis3lv02d_add+0xe1/0x1d0 [hp_accel] [ 10.485878] [] acpi_device_probe+0x41/0xee [ 10.485882] [] driver_probe_device+0xfd/0x240 [ 10.485886] [] __driver_attach+0x93/0xa0 [ 10.485889] [] ? __device_attach+0x40/0x40 [ 10.485893] [] bus_for_each_dev+0x63/0xa0 [ 10.485897] [] driver_attach+0x1e/0x20 [ 10.485900] [] bus_add_driver+0x178/0x230 [ 10.485904] [] ? 0xffffffffa001cfff [ 10.485908] [] driver_register+0x64/0xf0 [ 10.485911] [] ? 0xffffffffa001cfff [ 10.485915] [] acpi_bus_register_driver+0x3b/0x43 [ 10.485919] [] lis3lv02d_driver_init+0x10/0x1000 [hp_accel] [ 10.485923] [] do_one_initcall+0x112/0x160 [ 10.485927] [] ? set_memory_nx+0x43/0x50 [ 10.485932] [] load_module+0x1b20/0x22f0 [ 10.485936] [] ? ref_module+0x120/0x120 [ 10.485940] [] ? copy_module_from_fd.isra.46+0x10a/0x160 [ 10.485944] [] SyS_finit_module+0x7e/0x80 [ 10.485949] [] system_call_fastpath+0x1a/0x1f Before this BUG, I also have the following, which doesn't seem related (but I may be wrong): [ 1.868407] software IO TLB [mem 0xb4e1e000-0xb8e1e000] (64MB) mapped at [ffff8800b4e1e000-ffff8800b8e1dfff] [ 1.868703] resource map sanity check conflict: 0xfed10000 0xfed15fff 0xfed10000 0xfed13fff reserved [ 1.868705] ------------[ cut here ]------------ [ 1.868709] WARNING: CPU: 2 PID: 1 at arch/x86/mm/ioremap.c:171 __ioremap_caller+0x2d3/0x380() [ 1.868710] Info: mapping multiple BARs. Your kernel is fine. [ 1.868711] Modules linked in: [ 1.868715] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 3.15.0-rc1 #9 [ 1.868716] Hardware name: Hewlett-Packard HP EliteBook 8470p/179B, BIOS 68ICF Ver. F.02 04/27/2012 [ 1.868717] 0000000000000009 ffff8802330fdb68 ffffffff81604ba4 ffff8802330fdbb0 [ 1.868720] ffff8802330fdba0 ffffffff8104b05d ffffc90010e88000 00000000fed16000 [ 1.868722] ffffc90010e88000 ffffc90010e88000 0000000000006000 ffff8802330fdc00 [ 1.868724] Call Trace: [ 1.868729] [] dump_stack+0x4e/0x7a [ 1.868733] [] warn_slowpath_common+0x7d/0xa0 [ 1.868735] [] warn_slowpath_fmt+0x4c/0x50 [ 1.868738] [] ? iomem_map_sanity_check+0xac/0xe0 [ 1.868740] [] __ioremap_caller+0x2d3/0x380 [ 1.868742] [] ioremap_nocache+0x17/0x20 [ 1.868745] [] snb_uncore_imc_init_box+0x65/0x90 [ 1.868748] [] uncore_pci_probe+0xd6/0x1c0 [ 1.868751] [] local_pci_probe+0x45/0xa0 [ 1.868754] [] ? pci_match_device+0xc5/0xd0 [ 1.868756] [] pci_device_probe+0xd9/0x130 [ 1.868760] [] driver_probe_device+0xfd/0x240 [ 1.868763] [] __driver_attach+0x93/0xa0 [ 1.868765] [] ? __device_attach+0x40/0x40 [ 1.868768] [] bus_for_each_dev+0x63/0xa0 [ 1.868770] [] driver_attach+0x1e/0x20 [ 1.868773] [] bus_add_driver+0x178/0x230 [ 1.868776] [] ? uncore_types_init+0x1a7/0x1a7 [ 1.868779] [] driver_register+0x64/0xf0 [ 1.868781] [] ? uncore_types_init+0x1a7/0x1a7 [ 1.868783] [] __pci_register_driver+0x4c/0x50 [ 1.868786] [] intel_uncore_init+0x175/0x42b [ 1.868788] [] ? uncore_types_init+0x1a7/0x1a7 [ 1.868791] [] do_one_initcall+0x112/0x160 [ 1.868795] [] ? parse_args+0x1e8/0x320 [ 1.868797] [] kernel_init_freeable+0x168/0x1ed [ 1.868799] [] ? do_early_param+0x88/0x88 [ 1.868802] [] ? rest_init+0x90/0x90 [ 1.868804] [] kernel_init+0xe/0xf0 [ 1.868808] [] ret_from_fork+0x7c/0xb0 [ 1.868810] [] ? rest_init+0x90/0x90 [ 1.868815] ---[ end trace bb08bccc68a8cd3b ]--- Cheers, -- Luis -- 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/