FS#35184 - [linux] 3.9.x - 3.10.x sony-laptop module crashes (Sony VPC SE 1V9E)

Attached to Project: Arch Linux
Opened by Marco (kruegsch) - Friday, 10 May 2013, 19:48 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 10 October 2013, 09:55 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

The sony-laptop module crashes while setting up the keyboard backlight function on my machine (Sony VPC SE 1V9E).
Used the v3.9.1 kernel from the testing repo - v3.8.0 crashes as well.

Additional info:
* Linux version 3.9.1-1-ARCH (tobias@T-POWA-LX) (gcc version 4.8.0 20130502 (prerelease) (GCC) ) #1 SMP PREEMPT Wed May 8 09:29:17 CEST 2013
* full dmesg as attachement

* sony-laptop related output:
[ 92.714355] sony_laptop: Sony Notebook Control Driver v0.6
[ 92.714534] input: Sony Vaio Keys as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/SNY5001:00/input/input11
[ 92.714876] input: Sony Vaio Jogdial as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/SNY5001:00/input/input12
[ 92.723121] ------------[ cut here ]------------
[ 92.723126] WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xae/0xe0()
[ 92.723127] Hardware name: VPCSE1V9E
[ 92.723128] sysfs: cannot create duplicate filename '/devices/platform/sony-laptop/kbd_backlight'
[ 92.723129] Modules linked in: sony_laptop(+) fuse joydev hid_logitech_dj usbhid hid nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter ip_tables x_tables tpm_infineon uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media snd_hda_codec_hdmi snd_hda_codec_realtek intel_powerclamp coretemp kvm_intel kvm arc4 iTCO_wdt iTCO_vendor_support iwldvm crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel mac80211 aes_x86_64 xts lrw gf128mul ablk_helper cryptd microcode iwlwifi pcspkr cfg80211 r8169 rtsx_pci_ms memstick mii snd_hda_intel rfkill thermal i915 snd_hda_codec snd_hwdep battery snd_pcm tpm_tis button tpm intel_agp snd_page_alloc tpm_bios intel_gtt drm_kms_helper snd_timer drm psmouse mperf snd i2c_i801 i2c_algo_bit serio_raw video processor ac soundcore
[ 92.723165] evdev mei i2c_core lpc_ich ext4 crc16 mbcache jbd2 sd_mod rtsx_pci_sdmmc mmc_core ahci libahci ehci_pci libata ehci_hcd xhci_hcd scsi_mod rtsx_pci usbcore usb_common
[ 92.723176] Pid: 533, comm: modprobe Not tainted 3.9.1-1-ARCH #1
[ 92.723176] Call Trace:
[ 92.723181] [<ffffffff81058090>] warn_slowpath_common+0x70/0xa0
[ 92.723182] [<ffffffff8105810c>] warn_slowpath_fmt+0x4c/0x50
[ 92.723184] [<ffffffff811ff20e>] sysfs_add_one+0xae/0xe0
[ 92.723187] [<ffffffff811fe407>] sysfs_add_file_mode+0x97/0xe0
[ 92.723189] [<ffffffff811fe47a>] sysfs_create_file+0x2a/0x30
[ 92.723192] [<ffffffff813526f9>] device_create_file+0x19/0x20
[ 92.723196] [<ffffffffa03ac734>] sony_nc_add+0x5e4/0x11c8 [sony_laptop]
[ 92.723198] [<ffffffff811ffbcc>] ? sysfs_do_create_link_sd+0xcc/0x220
[ 92.723201] [<ffffffff812daa91>] acpi_device_probe+0x4e/0x10f
[ 92.723203] [<ffffffff81357247>] driver_probe_device+0x87/0x3a0
[ 92.723204] [<ffffffff81357633>] __driver_attach+0x93/0xa0
[ 92.723206] [<ffffffff813575a0>] ? __device_attach+0x40/0x40
[ 92.723208] [<ffffffff81355243>] bus_for_each_dev+0x63/0xa0
[ 92.723210] [<ffffffff81356cce>] driver_attach+0x1e/0x20
[ 92.723212] [<ffffffff81356868>] bus_add_driver+0x1f8/0x2b0
[ 92.723215] [<ffffffffa02a6000>] ? 0xffffffffa02a5fff
[ 92.723216] [<ffffffff81357cc1>] driver_register+0x71/0x150
[ 92.723218] [<ffffffffa02a6000>] ? 0xffffffffa02a5fff
[ 92.723220] [<ffffffff812dafdb>] acpi_bus_register_driver+0x3b/0x43
[ 92.723223] [<ffffffffa02a6059>] sony_laptop_init+0x59/0x8e [sony_laptop]
[ 92.723225] [<ffffffff8100210a>] do_one_initcall+0x10a/0x160
[ 92.723229] [<ffffffff810bdac6>] load_module+0x1b46/0x2640
[ 92.723233] [<ffffffff8128d870>] ? ddebug_proc_write+0xf0/0xf0
[ 92.723235] [<ffffffff810be662>] sys_init_module+0xa2/0xf0
[ 92.723238] [<ffffffff814d959d>] system_call_fastpath+0x1a/0x1f
[ 92.723239] ---[ end trace 13b618ecd0a2a537 ]---
[ 92.723240] sony_laptop: couldn't set up keyboard backlight function (-17)
[ 92.723264] sony_laptop: brightness ignored, must be controlled by ACPI video driver

Steps to reproduce:
sudo modprobe sony-laptop
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 10 October 2013, 09:55 GMT
Reason for closing:  Upstream
Comment by Tobias Powalowski (tpowa) - Tuesday, 30 July 2013, 10:41 GMT
Status on 3.10.x?
Comment by Marco (kruegsch) - Friday, 02 August 2013, 08:53 GMT
Still buggy for me. I added the module with "debug=1" for more output. The kernel commit 23caaeea271cfe3176f0e27374d2016bd7583ea8 introduced the behaviour.
Comment by Tobias Powalowski (tpowa) - Friday, 02 August 2013, 09:04 GMT
Please report this upstream to get this solved.
Thanks.
Comment by Marco (kruegsch) - Sunday, 04 August 2013, 10:38 GMT Comment by Tobias Powalowski (tpowa) - Tuesday, 06 August 2013, 13:41 GMT
Link to upstream report?
Comment by Tobias Powalowski (tpowa) - Tuesday, 17 September 2013, 09:56 GMT
Status on 3.11.1?
Comment by Marco (kruegsch) - Sunday, 22 September 2013, 07:01 GMT
Mattia just forgot the bug and I was busy. Now, we are back to work and a first patch by Mattia fixes the crash. We still have to investigate the keyboard timeout parameters. The mapping of parameter to timeout does not match the documentation. See the upstream report for further details.

The patch is ready, but not yet merged upstream. Guess we'll see it in v3.13: http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/4952

Linus missed the pull request and the patch is not in the v3.13-RC1 (https://lkml.org/lkml/2013/11/22/521). We have to wait for v3.13-RC2!

Loading...