Bug 50111 - sony-laptop module Kernel OOPS
Summary: sony-laptop module Kernel OOPS
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform_x86 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_platform_x86@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks: 56331
  Show dependency tree
 
Reported: 2012-11-05 19:59 UTC by Salvatore Cristofaro
Modified: 2013-11-19 18:53 UTC (History)
4 users (show)

See Also:
Kernel Version: >= 3.5.x
Subsystem:
Regression: No
Bisected commit-id:


Attachments
do proper memcpy for ACPI_TYPE_INTEGER acpi_object (1.53 KB, patch)
2012-11-28 18:14 UTC, Zhang Rui
Details | Diff

Description Salvatore Cristofaro 2012-11-05 19:59:44 UTC
Hello,

After upgrade to 3.5.x kernel, suspend stop to work. Looking on dmesg, I obtain this kernel OPS:


--- CUT ---

[...]
[ 35.333632] lp: driver loaded but no devices found
[ 35.571221] wmi: Mapper loaded
[ 35.576770] ACPI Warning: 0x0000000000000460-0x000000000000047f SystemIO conflicts with Region \PMIO 1 (20120320/utaddress-251)
[ 35.576774] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 35.576775] lpc_ich: Resource conflict(s) found affecting iTCO_wdt
[ 35.576782] ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \PMIO 1 (20120320/utaddress-251)
[ 35.576788] ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \_SB_.PCI0.IEIT.SGPE 2 (20120320/utaddress-251)
[ 35.576789] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 35.576796] ACPI Warning: 0x0000000000000500-0x000000000000057f SystemIO conflicts with Region \GPIO 1 (20120320/utaddress-251)
[ 35.576798] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 35.576799] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 35.649026] sony_laptop: Sony Notebook Control Driver v0.6
[ 35.751202] microcode: CPU0 sig=0x20652, pf=0x10, revision=0xc
[ 35.755192] evbug: Connected device: input0 (Power Button at PNP0C0C/button/input0)
[ 35.755197] evbug: Connected device: input1 (Lid Switch at PNP0C0D/button/input0)
[ 35.755199] evbug: Connected device: input2 (Power Button at LNXPWRBN/button/input0)
[ 35.755202] evbug: Connected device: input3 (AT Translated Set 2 keyboard at isa0060/serio0/input0)
[ 35.790263] BUG: unable to handle kernel paging request at 0000000000ff1000
[ 35.790313] IP: [<ffffffff8132a77d>] memcpy+0xd/0x110
[ 35.790340] PGD 1290a7067 PUD 107c9b067 PMD 0
[ 35.790360] Oops: 0000 [#1] SMP
[ 35.790376] CPU 3
[ 35.790394] Modules linked in: evbug microcode(+) sony_laptop(+) mac_hid lpc_ich wmi lp parport vesafb video firewire_ohci firewire_core atl1c sdhci_pci sdhci crc_itu_t
[ 35.790460]
[ 35.790470] Pid: 628, comm: modprobe Not tainted 3.5.0-1-generic #1-Ubuntu Sony Corporation VPCS12L9E/VAIO
[ 35.790516] RIP: 0010:[<ffffffff8132a77d>] [<ffffffff8132a77d>] memcpy+0xd/0x110
[ 35.790547] RSP: 0000:ffff880107d45c50 EFLAGS: 00010246
[ 35.790570] RAX: ffff880107d45ca0 RBX: ffff8801290245e0 RCX: 0000000000000001
[ 35.790600] RDX: 0000000000000000 RSI: 0000000000ff1000 RDI: ffff880107d45ca0
[ 35.790630] RBP: ffff880107d45c68 R08: ffff880107c26e00 R09: 0000000180400019
[ 35.790660] R10: 0000000000000000 R11: ffffffff813a1ae9 R12: ffff880107d45ca0
[ 35.790689] R13: ffff880107d45cbf R14: ffff88012c9b0400 R15: 0000000000000135
[ 35.790720] FS: 00007fdd03db6700(0000) GS:ffff880137cc0000(0000) knlGS:0000000000000000
[ 35.790754] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 35.790778] CR2: 0000000000ff1000 CR3: 0000000107c15000 CR4: 00000000000007e0
[ 35.790807] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 35.790837] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 35.790867] Process modprobe (pid: 628, threadinfo ffff880107d44000, task ffff88012c89ae00)
[ 35.790901] Stack:
[ 35.790913] ffffffffa0087833 0000000000000009 0000000000000035 ffff880107d45cf8
[ 35.790945] ffffffffa0088a49 ffff880131ff3be0 ffff88012e1df800 ffff880107d45c90
[ 35.790977] ffff880100000000 0000000000000009 0000000000000000 0000000000000000
[ 35.791008] Call Trace:
[ 35.791025] [<ffffffffa0087833>] ? sony_nc_buffer_call.constprop.12+0x43/0xa0 [sony_laptop]
[ 35.791066] [<ffffffffa0088a49>] sony_nc_function_setup+0x2f9/0xab0 [sony_laptop]
[ 35.791105] [<ffffffffa00893d8>] sony_nc_add+0x1d8/0x620 [sony_laptop]
[ 35.791136] [<ffffffff81387ee9>] acpi_device_probe+0x50/0x11d
[ 35.791168] [<ffffffff8141328e>] driver_probe_device+0x7e/0x220
[ 35.791195] [<ffffffff814134db>] __driver_attach+0xab/0xb0
[ 35.791219] [<ffffffff81413430>] ? driver_probe_device+0x220/0x220
[ 35.791249] [<ffffffff81411555>] bus_for_each_dev+0x55/0x90
[ 35.791274] [<ffffffffa0094000>] ? 0xffffffffa0093fff
[ 35.791297] [<ffffffff81412c9e>] driver_attach+0x1e/0x20
[ 35.791322] [<ffffffff81412958>] bus_add_driver+0x198/0x270
[ 35.791347] [<ffffffffa0094000>] ? 0xffffffffa0093fff
[ 35.791370] [<ffffffff81413ba7>] driver_register+0x77/0x150
[ 35.791398] [<ffffffff8152a0c3>] ? dmi_matches+0x53/0xc0
[ 35.791421] [<ffffffffa0094000>] ? 0xffffffffa0093fff
[ 35.791445] [<ffffffff81388649>] acpi_bus_register_driver+0x3e/0x47
[ 35.791474] [<ffffffffa0094057>] sony_laptop_init+0x57/0x1000 [sony_laptop]
[ 35.791507] [<ffffffff8100212a>] do_one_initcall+0x12a/0x180
[ 35.791534] [<ffffffff810b4e62>] sys_init_module+0xc2/0x230
[ 35.792862] [<ffffffff8167c3e9>] system_call_fastpath+0x16/0x1b
[ 35.794194] Code: 2b 43 50 88 43 4e 48 83 c4 08 5b 5d c3 90 e8 eb fb ff ff eb e6 90 90 90 90 90 90 90 90 90 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 c3 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c
[ 35.797048] RIP [<ffffffff8132a77d>] memcpy+0xd/0x110
[ 35.798523] RSP <ffff880107d45c50>
[ 35.799997] CR2: 0000000000ff1000
[ 35.801519] ---[ end trace 8c3c13c17f8d7703 ]---
[ 35.821144] ACPI Warning: 0x0000000000008000-0x000000000000801f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 1 (20120320/utaddress-251)
[ 35.824180] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 35.870860] mei 0000:00:16.0: setting latency timer to 64
[ 35.872501] mei 0000:00:16.0: irq 42 for MSI/MSI-X
[ 35.874084] genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 42
[...]

--- CUT ---



Suspend work on kernel < 3.5.0: (3.4.x, 3.2.x, etc...):



--- CUT ---

[ 35.105711] lp: driver loaded but no devices found
[ 35.498875] EXT4-fs (sda6): re-mounted. Opts: errors=remount-ro
[ 35.544416] evbug: Connected device: input0 (Power Button at PNP0C0C/button/input0)
[ 35.544422] evbug: Connected device: input1 (Lid Switch at PNP0C0D/button/input0)
[ 35.544426] evbug: Connected device: input2 (Power Button at LNXPWRBN/button/input0)
[ 35.544430] evbug: Connected device: input3 (AT Translated Set 2 keyboard at isa0060/serio0/input0)
[ 35.544435] evbug: Connected device: input4 (Video Bus at LNXVIDEO/video/input0)
[ 35.560529] wmi: Mapper loaded
[ 35.579247] sony_laptop: Sony Notebook Control Driver v0.6
[ 35.620244] cfg80211: Calling CRDA to update world regulatory domain
[ 35.623608] i801_smbus 0000:00:1f.3: PCI INT C -> GSI 19 (level, low) -> IRQ 19
[ 35.623617] ACPI: resource 0000:00:1f.3 [io 0x8000-0x801f] conflicts with ACPI region SMBI [io 0x8000-0x800f]
[ 35.623620] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 35.633422] mei: module is from the staging directory, the quality is unknown, you have been warned.
[ 35.633910] mei 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 35.633919] mei 0000:00:16.0: setting latency timer to 64
[ 35.633999] mei 0000:00:16.0: irq 42 for MSI/MSI-X
[ 35.640640] input: PC Speaker as /devices/platform/pcspkr/input/input5
[ 35.640738] evbug: Connected device: input5 (PC Speaker at isa0061/input0)
[ 35.644079] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[ 35.644083] Copyright(c) 2003-2011 Intel Corporation

--- CUT --- 

I tested 3.6/3.7-rc kernel but problem persist. 
The problem does not seem to be related to a specific distribution, as can be seen at the following link:
Ubuntu 12.10: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1069707/comments/35
Fedora 16:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1069707/comments/38

Thanks in advance for support.
Salvatore
Comment 1 Zhang Rui 2012-11-28 18:14:27 UTC
Created attachment 87591 [details]
do proper memcpy for ACPI_TYPE_INTEGER acpi_object

please try this patch and see if it helps.
Comment 2 Zhang Rui 2012-12-11 01:47:43 UTC
ping...
Comment 3 Kevin Li 2012-12-11 06:46:22 UTC
Hi Zhang,

I also have a Sony VAIO laptop, and found this thread via

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1069707

I would be happy to test out this patch, but I do not know how to apply it. Can you show me how, or at least direct me somewhere I can learn?

Regards,
Kevin.
Comment 4 Josh Boyer 2012-12-17 14:08:53 UTC
(In reply to comment #1)
> Created an attachment (id=87591) [details]
> do proper memcpy for ACPI_TYPE_INTEGER acpi_object
> 
> please try this patch and see if it helps.

Zhang, I had Rafael Torres test this patch on top of 3.6.10 in Fedora bug 873107.  He reported success.  I'm going to include this in Fedora until it gets into the upstream kernel.  Many thanks.

https://bugzilla.redhat.com/show_bug.cgi?id=873107
Comment 5 Zhang Rui 2012-12-18 01:06:26 UTC
(In reply to comment #3)
> Hi Zhang,
> 
> I also have a Sony VAIO laptop, and found this thread via
> 
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1069707
> 
> I would be happy to test out this patch, but I do not know how to apply it.
> Can
> you show me how, or at least direct me somewhere I can learn?
> 
> Regards,
> Kevin.

download kernel source code and run patch -p1 < foo.patch in the kernel source directory.
Comment 6 Zhang Rui 2012-12-18 06:50:34 UTC
would you please attach the acpidump of the laptop?
Comment 7 Salvatore Cristofaro 2013-01-29 21:07:11 UTC
Hello (...pong)

Sorry for my absence.

So, i tried the patch ubuntu  3.5.0-22-generic x86_64 kernel and it's work.

Thank you very much
Salvatore

--- dmesg ---

[161176.596421] sony_laptop: Sony Notebook Control Driver v0.6-3.4patched
[161176.596591] sony_laptop: found Vaio model ID: 20787
[161176.911691] input: Sony Vaio Keys as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:10/SNY5001:00/input/input20
[161176.911938] input: Sony Vaio Jogdial as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:10/SNY5001:00/input/input21
[161176.912115] sony_laptop: brightness ignored, must be controlled by ACPI video driver

Note You need to log in before you can comment on or make changes to this bug.