1. 09 8月, 2010 3 次提交
  2. 03 8月, 2010 4 次提交
  3. 09 7月, 2010 1 次提交
  4. 29 6月, 2010 1 次提交
    • T
      ivtv: use kthread_worker instead of workqueue · 7bc46560
      Tejun Heo 提交于
      Upcoming workqueue updates will no longer guarantee fixed workqueue to
      worker kthread association, so giving RT priority to the irq worker
      won't work.  Use kthread_worker which guarantees specific kthread
      association instead.  This also makes setting the priority cleaner.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Andy Walls <awalls@md.metrocast.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: ivtv-devel@ivtvdriver.org
      Cc: linux-media@vger.kernel.org
      7bc46560
  5. 01 6月, 2010 4 次提交
  6. 19 5月, 2010 8 次提交
  7. 18 5月, 2010 5 次提交
  8. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  9. 27 2月, 2010 6 次提交
    • A
      V4L/DVB: ivtv: Tweak Sony GigaPocket Kikyou card entry based on experiments · c1ea5b74
      Andy Walls 提交于
      Based on experiments by Eric Wescott, edit the Sony GigaPocket (Kikyou)
      card entry video and audio mux settings.
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c1ea5b74
    • E
      V4L/DVB: ivtv: Add initial entry for Sony VAIO Giga Pocket (Kikyou) cards · 7c12167b
      Eric Anderson 提交于
      This is a slightly modified version of Eric Anderson's original patch
      for the Sony Giga Pocket board.  It has been updated to apply to the
      latest ivtv driver version by Hans Verkuil <hverkuil@xs4all.nl> and
      Andy Walls <awalls@radix.net>.  Also Andy Walls modified the patch to
      use a new Sony BTF-Pnx01Z tuner entry based on Eric Anderson's experimental
      findings for the bandswitch.
      
      >From Eric Anderson's original email:
      
      1. The tuner on the card doesn't seem to match any standard
      ones. I modified an existing tuner entry. Ideally a new tuner
      entry should be created. (The only difference from the one I
      modified is that the low-to-mid range frequency cut-off is
      slightly different, as are the bit config settings.)
      
      2. It wasn't obvious how to choose a second audio input other
      than using "radio" as an option. Basically there's two GPIO
      audio inputs. Using radio allowed me to avoid major restructuring
      to the code. (perhaps other cards don't have this often...)
      
      3. It's not clear that there's a mute setting that works. Not
      sure why.
      
      4. I haven't had a chance to test the two Svideo inputs. I set
      them to COMPOSITE1 and SVIDEO2, but I'm not sure those are the
      correct settings. The standard composite video inputs seem to work.
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      7c12167b
    • A
      V4L/DVB: ivtv: Fix ivtv_api_get_data() to avoid unneeded IO during IRQ handling · 587808d5
      Andy Walls 提交于
      ivtv_api_get_data() was performing more PCI MMIO than needed, resulting
      often in it accounting for more than half the total time spent in
      ivtv_irq_handler().  Now it only reads at most 7 of the 16 mailbox data words
      over the PCI bus, and in some instances only 2 or 3 data words as needed.
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      587808d5
    • A
      V4L/DVB: ivtv: Adjust msleep() delays used to prevent tinny audio and PCI bus hang · 95480f27
      Andy Walls 提交于
      Martin Dauskardt <martin.dauskardt@gmx.de> has done extensive testing on what
      values can be used and and concluded that only 300 ms total is required to
      avoid bad video effects such as occasional black screen and short sync
      disturbances.  Furthermore he determined how this 300 ms was split between
      the two msleep()s did matter very much, so he suggested 150ms/150ms as one
      acceptable alternative that is implemented here.
      
      Many thanks go to Martin.
      Tested-by: NMartin Dauskardt <martin.dauskardt@gmx.de>
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      95480f27
    • A
      V4L/DVB: cx25840, v4l2-subdev, ivtv, pvrusb2: Fix ivtv/cx25840 tinny audio · 3ccc646b
      Andy Walls 提交于
      This change attempts to fix the ivtv tinny audio problem by keeping digitizer
      to encoder audio clocks running, while disabling the video clocks as needed to
      avoid unpredictable PCI bus hangs.
      
      To accomplish this, for the cx25840 module enabling of audio streaming had
      to be separated from enabling video streaming, requiring an additional
      v4l2_subdev_audio_op and calls to this new op in the pvrusb2 and ivtv drivers.
      
      The cx231xx and cx23885 driver use the cx25840 module for affecting only
      video on s_stream calls, so those drivers needed no change.
      
      The CX23418 hardware does not exhibit either the tinny audio problem nor the PCI
      bus hang, so the cx18 driver did not need corresponding changes.
      
      CX2341[56] based cards that are not using the CX2584x family of chips
      do not seem to be affected by the tinny audio problem, and this change should
      not affect how they are configured. It will delay their first capture by
      starting by another 300 msec though.
      
      Many thanks go to Argus <pthorn-ivtvd@styx2002.no-ip.org> and
      Martin Dauskardt <martin.dauskardt@gmx.de> whose persistent testing and
      investigation of this problem will hopefully fix this problem once and for all
      for many ivtv users.
      Reported-by: NMartin Dauskardt <martin.dauskardt@gmx.de>
      Reported-by: NArgus <pthorn-ivtvd@styx2002.no-ip.org>
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      3ccc646b
    • I
      V4L/DVB: ivtv: Fix race condition for queued udma transfers · b6e436b2
      Ian Armstrong 提交于
      There are several DMA related interrupts which wake up the dma_waitq. The udma
      routines use this queue while they wait for their transfer to complete. When
      woken, the udma routine will check the IVTV_F_I_UDMA_PENDING & IVTV_F_I_UDMA
      flags to see if the transfer is still queued or has finished. However, a small
      window exists between the IVTV_F_I_UDMA_PENDING flag being cleared and the
      IVTV_F_I_UDMA flag being set. Given that the completion of an unrelated DMA
      transfer may wake up the udma routine, it's possible for this check to fail
      and the udma routine will start unmapping pages when the transfer has only
      just started. The result of this is unpredictable.
      
      This fix simply delays the clearing of the IVTV_F_I_UDMA_PENDING flag until
      after IVTV_F_I_UDMA has been set.
      Signed-off-by: NIan Armstrong <ian@iarmst.demon.co.uk>
      Signed-off-by: NAndy Walls <awalls@radix.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b6e436b2
  10. 16 12月, 2009 2 次提交
  11. 06 12月, 2009 5 次提交