1. 11 Nov, 2008 10 commits
    • Matthias Schwarzott's avatar
      V4L/DVB (9357): cx88-dvb: Fix Oops in case i2c bus failed to register · 0e8bac97
      Matthias Schwarzott authored
      There already is an report at kernel bugzilla about this issue:
      http://bugzilla.kernel.org/show_bug.cgi?id=9455
      
      When enabling extra checks for the i2c-bus of cx88 based cards by
      loading i2c_algo_bit with bit_test=1 this may trigger an oops
      when loading cx88_dvb.
      
      This is caused by the extra check code that detects that the
      sda-line is stuck high and thus does not register the i2c-bus.
      
      cx88-dvb however does not check if the i2c-bus is valid and just
      uses core->i2c_adap to attach dvb frontend modules.
      This leads to an oops at the first call to i2c_transfer:
      
      $ modprobe i2c_algo_bit bit_test=1
      $ modprobe cx8802
      
      cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.6 loaded
      cx88[0]: quirk: PCIPCI_NATOMA -- set TBFX
      cx88[0]: subsystem: 0070:9202, board: Hauppauge Nova-S-Plus DVB-S [card=37,autodetected], frontend(s): 1
      cx88[0]: TV tuner type 4, Radio tuner type -1
      cx88[0]: SDA stuck high!
      cx88[0]: i2c register FAILED
      input: cx88 IR (Hauppauge Nova-S-Plus  as /class/input/input5
      cx88[0]/2: cx2388x 8802 Driver Manager
      cx88-mpeg driver manager 0000:00:10.2: enabling device (0154 -> 0156)
      cx88-mpeg driver manager 0000:00:10.2: PCI INT A -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
      cx88[0]/2: found at 0000:00:10.2, rev: 5, irq: 9, latency: 64, mmio: 0xfb000000
      cx8802_probe() allocating 1 frontend(s)
      cx88/2: cx2388x dvb driver version 0.0.6 loaded
      cx88/2: registering cx8802 driver, type: dvb access: shared
      cx88[0]/2: subsystem: 0070:9202, board: Hauppauge Nova-S-Plus DVB-S [card=37]
      cx88[0]/2: cx2388x based DVB/ATSC card
      BUG: unable to handle kernel NULL pointer dereference at 00000000
      IP: [<e084d4ef>] :i2c_core:i2c_transfer+0x1f/0x80
      *pde = 00000000
      Modules linked in: cx88_dvb(+) cx8802 cx88xx ir_common i2c_algo_bit tveeprom videobuf_dvb btcx_risc
      mga drm ipv6 fscpos eeprom nfsd exportfs stv0299 b2c2_flexcop_pci b2c2_flexcop cx24123 s5h1420 ves1x93
      dvb_ttpci dvb_core saa7146_vv saa7146 videobuf_dma_sg videobuf_core videodev v4l1_compat ttpci_eeprom
      lirc_serial lirc_dev usbhid rtc uhci_hcd 8139too i2c_piix4 i2c_core usbcore evdev
      Pid: 4249, comm: modprobe Not tainted (2.6.27-gentoo #3)
      EIP: 0060:[<e084d4ef>] EFLAGS: 00010296 CPU: 0
      EIP is at i2c_transfer+0x1f/0x80 [i2c_core]
      EAX: 00000000 EBX: ffffffa1 ECX: 00000002 EDX: d6c71e3c
      ESI: d80cd050 EDI: d8093c00 EBP: d6c71e20 ESP: d6c71e0c
      DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      0e8bac97
    • Suresh Siddha's avatar
      V4L/DVB (9356): [PATCH] saa7134: fix resource map sanity check conflict · d522af58
      Suresh Siddha authored
      Impact: driver could possibly stomp on resources outside of its scope
      
      {mchehab@redhat.com: I got two versions of the same patch (identical,
      except for whitespacing). One authored by Andy Burns and another
      authored by Suresh Siddha. Due to that, I'm applying the one that has
      less CodingStyle errors. I'm also adding both comments and the SOB's for
      both patches, since they are both interesting}
      
      Suresh Siddha commented:
      
        Alexey Fisher reported:
      
        > resource map sanity check conflict: 0xcfeff800 0xcff007ff 0xcfe00000
        > 0xcfefffff PCI Bus 0000:01
      
        BAR base is located in the middle of the 4K page and the hardcoded
        size argument makes the request span two pages causing the conflict.
      
        Fix the hard coded size argument in ioremap().
      
      Andy Burns commented:
      
        I have already sent this patch on the linux-dvb list, but it didn't get
        much attention, so re-sending direct, I hope you all don't mind.
      
        While attempting to run mythtv in a xen domU, I encountered problems
        loading the driver for my saa7134 card, with an error from ioremap().
      
        This error was due to the driver allocating an incorrectly sized mmio
        area, which was trapped by xen's permission checks, but this would go
        un-noticed on a kernel without xen.
      
        My card has a 1K sized mmio area, I've had information that other cards
        have 2K areas, perhaps others have different sizes, yet the driver
        always attempts to map 4K.  I realise that the granularity of mapping is
        the page size, which typically would be 4K, but unless the card's base
        address happens to fall on a 4K boundary (mine does not) then the
        base+4K will end up spanning two pages, and this is when the error
        occurs under xen.
      
        My patch uses the pci_resource_len macro to determine the size required
        for the user's particular card, instead of the hardcoded 4K value. I've
        tested with a couple of printk() inside ioremap() that the start address
        and size do get rounded to the closest page boundary.
      
        With this patch I am able to successfully load the saa7134 driver and
        run mythtv under xen with my card, subject to correct pollirq settings
        in case of shared IRQ, I am still seeing occasional DMA panics, which I
        think are related to swiotlb handling by dom0/domU, usually the panic
        occurs when changing mux, once tuned to a mux, 12 hour continuous
        recordings are possible without errors.
      Reported-by: default avatarAlexey Fisher <bug-track@fisher-privat.net>
      Tested-by: default avatarAlexey Fisher <bug-track@fisher-privat.net>
      Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
      Signed-off-by: default avatarAndy Burns <andy@burns.net>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      d522af58
    • Jonathan Corbet's avatar
      V4L/DVB (9355): de-BKL cafe_ccic.c · 74084d33
      Jonathan Corbet authored
      Remove lock_kernel() call from cafe_ccic.c
      
      Commit d56dc612 added lock_kernel()
      calls to cafe_ccic.c.  But that driver was written with proper locking
      and does not need the BKL, so take it back out.
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      74084d33
    • Gregor Jasny's avatar
      V4L/DVB (9352): Add some missing compat32 ioctls · c7f09db6
      Gregor Jasny authored
      This patch adds the missing compat ioctls that are needed to
      operate Skype in combination with libv4l and a MJPEG only camera.
      
      If you think it's trivial enough please submit it to -stable, too.
      Signed-off-by: default avatarGregor Jasny <gjasny@web.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      c7f09db6
    • Mauro Carvalho Chehab's avatar
      V4L/DVB (9351): ibmcam: Fix a regression caused by a482f327 · a24ddee3
      Mauro Carvalho Chehab authored
      As reported by David Ellingsworth:
      > I'm not sure if it matters or not, but the ibmcam driver in the
      > Mauro's linux-2.6 git tree in the for_linus branch is currently
      > broken.
      
      uvd is equal to NULL during most of ibmcam_probe. Due to that, an OOPS is
      generated at dev_info. This patch replaces uvd->dev->dev to dev->dev
      inside this routine.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Reviewed-by: default avatarDavid Ellingsworth <david@identd.dyndns.org>
      a24ddee3
    • Alexey Klimov's avatar
      V4L/DVB (9350): radio-si470x: add support for kworld usb radio · 69df96c3
      Alexey Klimov authored
      This patch add support for new device named KWorld USB FM Radio
      SnapMusic Mobile 700 (FM700).
      And changes few lines in comments.
      Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
      Acked-by: default avatarTobias Lorenz <tobias.lorenz@gmx.net>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      69df96c3
    • Antoine Jacquet's avatar
      V4L/DVB (9348): dtv5100: add dependency on zl10353 · e62b4756
      Antoine Jacquet authored
      Update Kconfig to add missing dependency on zl10353 for dtv5100 driver.
      Signed-off-by: default avatarAntoine Jacquet <royale@zerezo.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      e62b4756
    • Manu Abraham's avatar
      V4L/DVB (9346): Optimization: Enable gate in a symmetric/disciplined way, · 3b37a15c
      Manu Abraham authored
      rather than implementing different ways leading to confusion.
      
      This allows multiple gate_enable/disable's in the tuner_read/write
      functions, thereby lesser number of I/O operations throughout,
      eventually leading to better results. As a side effect demods that
      detect the STOP bit for auto closing of the gate can be avoided, thereby
      a very minimal gain in disabling the auto detect feature as well.
      Improves readability on the device control.
      Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      3b37a15c
    • Jean Delvare's avatar
      V4L/DVB (9337b): remove tuner-3036 and dpc7146 drivers from feature-removal-schedule.txt · f7378995
      Jean Delvare authored
      The tuner-3036 and dpc7146 drivers have been deleted now so we can
      remove the corresponding entries from feature-removal-schedule.txt.
      (Thanks for doing this, BTW.)
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      f7378995
    • Alexey Klimov's avatar
      V4L/DVB (9337a): HID: Don't allow KWorld radio fm700 be handled by usb hid drivers · 6a13378a
      Alexey Klimov authored
      This device is already handled by radio-si470x driver, and we
      therefore want usbhid to ignore it.
      Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
      Acked-by: default avatarTobias Lorenz <tobias.lorenz@gmx.net>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      6a13378a
  2. 10 Nov, 2008 8 commits
  3. 09 Nov, 2008 13 commits
  4. 08 Nov, 2008 9 commits