1. 27 1月, 2015 7 次提交
  2. 22 1月, 2015 2 次提交
    • H
      [media] cx23885: fix free interrupt bug · 8d4d9329
      Hans Verkuil 提交于
      First free the interrupt, then disable the PCI device. The other way
      around will lead to this warning:
      
      Jan 19 11:42:02 telek kernel: [ 1440.161234] WARNING: CPU: 0 PID: 2191 at kernel/irq/manage.c:1311 __free_irq+0x97/0x1f0()
      Jan 19 11:42:02 telek kernel: [ 1440.161236] Trying to free already-free IRQ 0
      Jan 19 11:42:02 telek kernel: [ 1440.161237] Modules linked in: tda8290 tda10048 cx25840 cx23885(-) altera_ci tda18271 altera_stapl videobuf2_dvb tveeprom cx2341x videobuf2_dma_sg dvb_core rc_core videobuf2_memops videobuf2_core v4l2_common videodev media nouveau x86_pkg_temp_thermal cfbfillrect cfbimgblt cfbcopyarea ttm drm_kms_helper processor button isci
      Jan 19 11:42:02 telek kernel: [ 1440.161266] CPU: 0 PID: 2191 Comm: rmmod Tainted: G        W      3.19.0-rc1-telek #345
      Jan 19 11:42:02 telek kernel: [ 1440.161268] Hardware name: ASUSTeK COMPUTER INC. Z9PE-D8 WS/Z9PE-D8 WS, BIOS 5404 02/10/2014
      Jan 19 11:42:02 telek kernel: [ 1440.161270]  ffffffff81bf1fce ffff8808958b7cc8 ffffffff8194a97f 0000000000000000
      Jan 19 11:42:02 telek kernel: [ 1440.161274]  ffff8808958b7d18 ffff8808958b7d08 ffffffff810c56b0 0000000000000286
      Jan 19 11:42:02 telek kernel: [ 1440.161279]  0000000000000000 0000000000000000 ffff88089f808890 ffff88089f808800
      Jan 19 11:42:02 telek kernel: [ 1440.161284] Call Trace:
      Jan 19 11:42:02 telek kernel: [ 1440.161290]  [<ffffffff8194a97f>] dump_stack+0x4f/0x7b
      Jan 19 11:42:02 telek kernel: [ 1440.161295]  [<ffffffff810c56b0>] warn_slowpath_common+0x80/0xc0
      Jan 19 11:42:02 telek kernel: [ 1440.161299]  [<ffffffff810c5731>] warn_slowpath_fmt+0x41/0x50
      Jan 19 11:42:02 telek kernel: [ 1440.161303]  [<ffffffff81955d36>] ? _raw_spin_lock_irqsave+0x56/0x70
      Jan 19 11:42:02 telek kernel: [ 1440.161307]  [<ffffffff81114849>] ? __free_irq+0x49/0x1f0
      Jan 19 11:42:02 telek kernel: [ 1440.161311]  [<ffffffff81114897>] __free_irq+0x97/0x1f0
      Jan 19 11:42:02 telek kernel: [ 1440.161316]  [<ffffffff81114a88>] free_irq+0x48/0xd0
      Jan 19 11:42:02 telek kernel: [ 1440.161323]  [<ffffffffa00e6deb>] cx23885_finidev+0x4b/0x90 [cx23885]
      Jan 19 11:42:02 telek kernel: [ 1440.161329]  [<ffffffff814529fa>] pci_device_remove+0x3a/0xc0
      Jan 19 11:42:02 telek kernel: [ 1440.161334]  [<ffffffff8153b4ea>] __device_release_driver+0x7a/0xf0
      Jan 19 11:42:02 telek kernel: [ 1440.161338]  [<ffffffff8153bc98>] driver_detach+0xc8/0xd0
      Jan 19 11:42:02 telek kernel: [ 1440.161341]  [<ffffffff8153b1de>] bus_remove_driver+0x4e/0xb0
      Jan 19 11:42:02 telek kernel: [ 1440.161345]  [<ffffffff8153c2eb>] driver_unregister+0x2b/0x60
      Jan 19 11:42:02 telek kernel: [ 1440.161349]  [<ffffffff814525c5>] pci_unregister_driver+0x25/0x70
      Jan 19 11:42:02 telek kernel: [ 1440.161355]  [<ffffffffa00f6ddc>] cx23885_fini+0x10/0x12 [cx23885]
      Jan 19 11:42:02 telek kernel: [ 1440.161360]  [<ffffffff81139a98>] SyS_delete_module+0x1a8/0x1f0
      Jan 19 11:42:02 telek kernel: [ 1440.161364]  [<ffffffff819561a9>] system_call_fastpath+0x12/0x17
      Jan 19 11:42:02 telek kernel: [ 1440.161367] ---[ end trace a9c07cb5f3357020 ]---
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      8d4d9329
    • M
      [media] cx23885: Split Hauppauge WinTV Starburst from HVR4400 card entry · 721f3223
      Matthias Schwarzott 提交于
      Unconditionally attaching Si2161/Si2165 demod driver
      breaks Hauppauge WinTV Starburst.
      So create own card entry for this.
      
      Add card name comments to the subsystem ids.
      
      This fixes a regression introduced in 3.17 by
      36efec48 ([media] cx23885: Add si2165 support for HVR-5500)
      Signed-off-by: NMatthias Schwarzott <zzam@gentoo.org>
      Tested-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      CC: stable@vger.kernel.org # for 3.17 and upper
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      721f3223
  3. 30 12月, 2014 4 次提交
  4. 23 12月, 2014 12 次提交
  5. 17 12月, 2014 2 次提交
  6. 05 12月, 2014 1 次提交
  7. 02 12月, 2014 2 次提交
  8. 25 11月, 2014 5 次提交
  9. 22 11月, 2014 3 次提交
    • A
      [media] media: pci: smipcie: Fix dependency for DVB_SMIPCIE · 3f56d2b3
      Andreas Ruprecht 提交于
      In smipcie.c, the function i2c_bit_add_bus() is called. This
      function is defined by the I2C bit-banging interfaces enabled
      with CONFIG_I2C_ALGOBIT.
      
      As there was no dependency in Kconfig, CONFIG_I2C_ALGOBIT could
      be set to "m" while CONFIG_DVB_SMIPCIE was set to "y", resulting
      in a build error due to an undefined reference.
      
      This patch adds the dependency on CONFIG_I2C_ALGOBIT in Kconfig
      by selecting it when CONFIG_DVB_SMIPCIE is selected.
      Signed-off-by: NAndreas Ruprecht <rupran@einserver.de>
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      3f56d2b3
    • H
      [media] cx23885: use sg = sg_next(sg) instead of sg++ · 7675fe99
      Hans Verkuil 提交于
      The cx23885 driver still used sg++ instead of sg = sg_next(sg). This worked with
      vb1 since that filled in the sglist manually, page-by-page, but it fails with vb2
      which uses core scatterlist code that can combine contiguous scatterlist entries
      into one larger entry.
      
      This bug led to the following crash as reported by Mariusz:
      
      [20712.990258] BUG: Bad page state in process vb2-cx23885[0]  pfn:2ca34
      [20712.990265] page:ffffea00009c3b60 count:-1 mapcount:0 mapping:          (null) index:0x0
      [20712.990266] flags: 0x4000000000000000()
      [20712.990268] page dumped because: nonzero _count
      [20712.990269] Modules linked in: tun binfmt_misc nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables xt_mark xt_REDIRECT xt_limit xt_conntrack xt_nat xt_tcpudp iptable_mangle iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_filter ip_tables x_tables sit ip_tunnel nvidia(PO) stb6100 stv090x cx88_dvb videobuf_dvb cx88_vp3054_i2c tuner kvm_amd kvm cx8802 k10temp cx8800 cx88xx btcx_risc videobuf_dma_sg videobuf_core usb_storage ds2490 usbhid ftdi_sio cx23885 tveeprom cx2341x videobuf2_dvb videobuf2_core videobuf2_dma_sg videobuf2_memops asus_atk0110 snd_emu10k1 snd_hwdep snd_util_mem snd_ac97_codec ac97_bus snd_rawmidi snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd w1_therm wire ipv6
      [20712.990301] CPU: 2 PID: 26942 Comm: vb2-cx23885[0] Tainted: P    B   W  O   3.18.0-rc5-00001-gb3652d1 #2
      [20712.990303] Hardware name: System manufacturer System Product Name/M4A785TD-V EVO, BIOS 2105    07/23/2010
      [20712.990305]  ffffffff81765734 ffff880137683a78 ffffffff815b6b32 0000000000000006
      [20712.990307]  ffffea00009c3b60 ffff880137683aa8 ffffffff8108ec27 ffffffff81765712
      [20712.990309]  ffffffff8189c840 0000000000000246 ffffea00009c3b60 ffff880137683b78
      [20712.990312] Call Trace:
      [20712.990317]  [<ffffffff815b6b32>] dump_stack+0x46/0x58
      [20712.990321]  [<ffffffff8108ec27>] bad_page+0xe9/0x107
      [20712.990323]  [<ffffffff810912ca>] get_page_from_freelist+0x3b2/0x505
      [20712.990326]  [<ffffffff8109150a>] __alloc_pages_nodemask+0xed/0x65f
      [20712.990330]  [<ffffffff81047a52>] ? ttwu_do_activate.constprop.78+0x57/0x5c
      [20712.990332]  [<ffffffff81049ff3>] ? try_to_wake_up+0x21b/0x22d
      [20712.990336]  [<ffffffff810070f4>] dma_generic_alloc_coherent+0x6e/0xf5
      [20712.990339]  [<ffffffff810261a9>] gart_alloc_coherent+0x105/0x114
      [20712.990341]  [<ffffffff81025963>] ? flush_gart+0x39/0x3d
      [20712.990343]  [<ffffffff810260a4>] ? gart_map_sg+0x3a0/0x3a0
      [20712.990349]  [<ffffffffa0141a1e>] cx23885_risc_databuffer+0xa7/0x133 [cx23885]
      [20712.990354]  [<ffffffffa0142764>] cx23885_buf_prepare+0x121/0x134 [cx23885]
      [20712.990359]  [<ffffffffa0144210>] buffer_prepare+0x14/0x16 [cx23885]
      [20712.990363]  [<ffffffffa011f101>] __buf_prepare+0x190/0x279 [videobuf2_core]
      [20712.990366]  [<ffffffffa011d906>] ? vb2_queue_or_prepare_buf+0xb8/0xc0 [videobuf2_core]
      [20712.990369]  [<ffffffffa011f34b>] vb2_internal_qbuf+0x51/0x1e5 [videobuf2_core]
      [20712.990372]  [<ffffffffa0120537>] vb2_thread+0x199/0x1f6 [videobuf2_core]
      [20712.990376]  [<ffffffffa012039e>] ? vb2_fop_write+0xdf/0xdf [videobuf2_core]
      [20712.990379]  [<ffffffff81043e61>] kthread+0xdf/0xe7
      [20712.990381]  [<ffffffff81043d82>] ? kthread_create_on_node+0x16d/0x16d
      [20712.990384]  [<ffffffff815bd46c>] ret_from_fork+0x7c/0xb0
      [20712.990386]  [<ffffffff81043d82>] ? kthread_create_on_node+0x16d/0x16d
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Reported-by: NMariusz Bialonczyk <manio@skyboo.net>
      Tested-by: NMariusz Bialonczyk <manio@skyboo.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      7675fe99
    • K
      [media] solo6x10: fix a race in IRQ handler · 3c787b10
      Krzysztof Hałasa 提交于
      The IRQs have to be acknowledged before they are serviced, otherwise some events
      may be skipped. Also, acknowledging IRQs just before returning from the handler
      doesn't leave enough time for the device to deassert the INTx line, and for
      bridges to propagate this change. This resulted in twice the IRQ rate on ARMv6
      dual core CPU.
      Signed-off-by: NKrzysztof Ha?asa <khalasa@piap.pl>
      Acked-by: NAndrey Utkin <andrey.utkin@corp.bluecherry.net>
      Tested-by: NAndrey Utkin <andrey.utkin@corp.bluecherry.net>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      3c787b10
  10. 20 11月, 2014 2 次提交