On 08/18/2016 03:23 PM, Felipe Balbi wrote: > Hi, > > Binyamin Sharet <bsharet@xxxxxxxxx> writes: >> On 08/18/2016 01:39 PM, Oliver Neukum wrote: >>> On Wed, 2016-08-17 at 14:39 +0300, Binyamin Sharet wrote: >>>> On 08/16/2016 04:52 PM, Binyamin Sharet wrote: >>>>> Kernel version: raspberrypi 4.4.6-v7+ #871 >>>>> Driver source file: drivers/media/usb/dvb-usb/dw2102.c >>>>> Umap2 command line: umap2vsscan -P <PHY> -s 9022:d483 >>>>> >>>>> After connecting such a device, kernel oops: kernel is unable to handle >>>>> paging address. >>>>> >>>>> Also happens with 9022:d484. >>>>> >>>>> Binyamin Sharet >>>>> Cisco, STARE-C >>>>> >>>>> << Attached: 9022_d483_dmesg_1.log >> >>>>> << Attached: 9022_d483_dmesg_2.log >> >>>>> << Attached: 9022_d483_kernel.log >> >>>> kernel: 4.8-rc2 >>>> result: reproduced >>>> attached an update dmesg log >>>> >>> Hi, >>> >>> could you try the attached patch? >>> >>> Regards >>> Oliver >>> >> Sure, but it will take some time. my test machine is rather slow and I'm >> still compiling the kernel for a previous patch. > you might wanna start using ccache to help a bit ;-) > Felipe, thanks for the ccache tip. We moved to a new error: Null pointer dereference (in RIP). dmesg log file attached. -- Binyamin Sharet, Cisco, STARE-C
[ 175.849934] usb 1-1.1: new high-speed USB device number 6 using ehci-pci [ 176.010233] usb 1-1.1: New USB device found, idVendor=9022, idProduct=d483 [ 176.010237] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 176.010239] usb 1-1.1: Product: UMAP2. PID:0xd483 [ 176.010241] usb 1-1.1: Manufacturer: UMAP2. VID:0x9022 [ 176.010243] usb 1-1.1: SerialNumber: 123456 [ 177.580049] dw2102: su3000_identify_state [ 177.580051] dvb-usb: found a 'TeVii S482 (tuner 1)' in warm state. [ 177.580055] dw2102: su3000_power_ctrl: 1, initialized 0 [ 177.580661] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. [ 177.580960] DVB: registering new adapter (TeVii S482 (tuner 1)) [ 177.601796] dvb-usb: recv bulk message failed: -71 [ 177.601804] dw2102: i2c transfer failed. [ 177.621908] dvb-usb: bulk message failed: -71 (6/0) [ 177.621919] dw2102: i2c transfer failed. [ 177.644030] dvb-usb: bulk message failed: -71 (6/0) [ 177.644036] dw2102: i2c transfer failed. [ 177.665928] dvb-usb: bulk message failed: -71 (6/0) [ 177.665935] dw2102: i2c transfer failed. [ 177.677652] usb 1-1.1: USB disconnect, device number 6 [ 177.688057] dvb-usb: bulk message failed: -71 (6/0) [ 177.688065] dw2102: i2c transfer failed. [ 177.688072] dvb-usb: bulk message failed: -19 (6/0) [ 177.688074] dw2102: i2c transfer failed. [ 177.688081] dvb-usb: MAC address: 00:00:00:00:00:00 [ 177.688608] dvb-usb: bulk message failed: -19 (3/0) [ 177.688612] dw2102: command 0x0e transfer failed. [ 177.688614] dvb-usb: bulk message failed: -19 (3/0) [ 177.688616] dw2102: command 0x0e transfer failed. [ 178.021974] dvb-usb: bulk message failed: -19 (3/0) [ 178.021981] dw2102: command 0x0e transfer failed. [ 178.021984] dvb-usb: bulk message failed: -19 (3/0) [ 178.021986] dw2102: command 0x0e transfer failed. [ 178.021988] dvb-usb: bulk message failed: -19 (1/0) [ 178.021989] dw2102: command 0x51 transfer failed. [ 178.061379] dvb-usb: bulk message failed: -19 (5/0) [ 178.061385] dw2102: i2c transfer failed. [ 178.061411] BUG: unable to handle kernel NULL pointer dereference at (null) [ 178.061480] IP: [< (null)>] (null) [ 178.061516] PGD 0 [ 178.061534] Oops: 0010 [#1] SMP [ 178.061557] Modules linked in: m88ds3103 i2c_mux dvb_usb_dw2102(+) dvb_usb dvb_core rc_core rfcomm bnep arc4 iwldvm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_hda_codec_hdmi snd_hda_codec_conexant videobuf2_core mac80211 snd_hda_codec_generic snd_hda_intel videodev snd_hda_codec snd_hda_core intel_powerclamp coretemp snd_hwdep media kvm_intel btusb snd_pcm kvm iwlwifi thinkpad_acpi nvram snd_seq_midi snd_seq_midi_event btrtl btbcm btintel snd_rawmidi bluetooth snd_seq cfg80211 irqbypass snd_seq_device crct10dif_pclmul snd_timer crc32_pclmul joydev ghash_clmulni_intel aesni_intel snd mei_me input_leds aes_x86_64 lrw gf128mul intel_ips glue_helper serio_raw ablk_helper cryptd shpchp soundcore mei mac_hid lpc_ich parport_pc ppdev lp parport autofs4 i915 psmouse i2c_algo_bit drm_kms_helper [ 178.062114] syscopyarea ahci sysfillrect libahci sysimgblt fb_sys_fops e1000e drm ptp pps_core wmi fjes video [ 178.062203] CPU: 1 PID: 3383 Comm: systemd-udevd Not tainted 4.8.0-rc2-dw2012-patched+ #5 [ 178.062241] Hardware name: LENOVO 4492A56/4492A56, BIOS 6QET44WW (1.14 ) 04/20/2010 [ 178.062279] task: ffffa37f31e1b400 task.stack: ffffa37f2e1f4000 [ 178.062307] RIP: 0010:[<0000000000000000>] [< (null)>] (null) [ 178.062346] RSP: 0018:ffffa37f2e1f7948 EFLAGS: 00010202 [ 178.062373] RAX: 0000000000000001 RBX: ffffa37f2e1f79a8 RCX: 0000000000000001 [ 178.062405] RDX: 0000000000000001 RSI: ffffffffc08a56c8 RDI: ffffa37f2f19c400 [ 178.062437] RBP: ffffa37f2e1f7a20 R08: 0000000000000000 R09: 0000000000000000 [ 178.062471] R10: 0000000000000000 R11: ffffa37f2b7da780 R12: ffffa37eab2d92d0 [ 178.062503] R13: ffffa37f2f19c400 R14: ffffa37e35b95100 R15: 0000000000000000 [ 178.062536] FS: 00007ff06d8ba8c0(0000) GS:ffffa37f37c80000(0000) knlGS:0000000000000000 [ 178.062573] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 178.062600] CR2: 0000000000000000 CR3: 000000012e6ec000 CR4: 00000000000006e0 [ 178.062633] Stack: [ 178.062647] ffffffffc088f3a4 ffffa37f00000030 00030021019bfcc0 0012990000003e80 [ 178.062694] 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 178.062737] 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 178.062789] Call Trace: [ 178.062819] [<ffffffffc088f3a4>] ? tt_s2_4600_frontend_attach+0x284/0x420 [dvb_usb_dw2102] [ 178.062861] [<ffffffffc081a73c>] dvb_usb_adapter_frontend_init+0xdc/0x190 [dvb_usb] [ 178.062895] [<ffffffffc08199d9>] dvb_usb_device_init+0x489/0x670 [dvb_usb] [ 178.062928] [<ffffffffc088e55f>] dw2102_probe+0x34f/0x3e0 [dvb_usb_dw2102] [ 178.062965] [<ffffffffb663c913>] usb_probe_interface+0x153/0x2f0 [ 178.062996] [<ffffffffb656d244>] driver_probe_device+0x224/0x430 [ 178.063024] [<ffffffffb656d52f>] __driver_attach+0xdf/0xf0 [ 178.063050] [<ffffffffb656d450>] ? driver_probe_device+0x430/0x430 [ 178.063079] [<ffffffffb656ad2c>] bus_for_each_dev+0x6c/0xc0 [ 178.063105] [<ffffffffb656c93e>] driver_attach+0x1e/0x20 [ 178.063131] [<ffffffffb656c3ed>] bus_add_driver+0x1fd/0x270 [ 178.063161] [<ffffffffb656dea0>] driver_register+0x60/0xe0 [ 178.063190] [<ffffffffb663b294>] usb_register_driver+0x84/0x140 [ 178.063221] [<ffffffffc071f000>] ? 0xffffffffc071f000 [ 178.063250] [<ffffffffc071f01e>] dw2102_driver_init+0x1e/0x1000 [dvb_usb_dw2102] [ 178.063289] [<ffffffffb6002190>] do_one_initcall+0x50/0x180 [ 178.063324] [<ffffffffb62023b2>] ? kmem_cache_alloc_trace+0x152/0x1c0 [ 178.063361] [<ffffffffb61977f4>] do_init_module+0x5f/0x1f6 [ 178.063395] [<ffffffffb610edfb>] load_module+0x241b/0x2ab0 [ 178.063425] [<ffffffffb610b7a0>] ? __symbol_put+0x60/0x60 [ 178.063456] [<ffffffffb6228ef0>] ? __vfs_read+0xe0/0x150 [ 178.063491] [<ffffffffb6363d5b>] ? security_kernel_post_read_file+0x6b/0x80 [ 178.065237] [<ffffffffb610f6ef>] SYSC_finit_module+0xdf/0x110 [ 178.066980] [<ffffffffb610f73e>] SyS_finit_module+0xe/0x10 [ 178.068302] [<ffffffffb685dc76>] entry_SYSCALL_64_fastpath+0x1e/0xa8 [ 178.069549] Code: Bad RIP value. [ 178.070770] RIP [< (null)>] (null) [ 178.071950] RSP <ffffa37f2e1f7948> [ 178.073115] CR2: 0000000000000000 [ 178.078823] ---[ end trace bf67dbd7450b2e75 ]---