18 Jun, 2009

3 commits

  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] cpumask: new cpumask operators for arch/x86/kernel/cpu/cpufreq/powernow-k8.c
    [CPUFREQ] cpumask: avoid playing with cpus_allowed in powernow-k8.c
    [CPUFREQ] cpumask: avoid cpumask games in arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c
    [CPUFREQ] cpumask: avoid playing with cpus_allowed in speedstep-ich.c
    [CPUFREQ] powernow-k8: get drv data for correct CPU
    [CPUFREQ] powernow-k8: read P-state from HW
    [CPUFREQ] reduce scope of ACPI_PSS_BIOS_BUG_MSG[]
    [CPUFREQ] Clean up convoluted code in arch/x86/kernel/tsc.c:time_cpufreq_notifier()
    [CPUFREQ] minor correction to cpu-freq documentation
    [CPUFREQ] powernow-k8.c: mess cleanup
    [CPUFREQ] Only set sampling_rate_max deprecated, sampling_rate_min is useful
    [CPUFREQ] powernow-k8: Set transition latency to 1 if ACPI tables export 0
    [CPUFREQ] ondemand: Uncouple minimal sampling rate from HZ in NO_HZ case

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6:
    [SCSI] aic79xx: make driver respect nvram for IU and QAS settings
    [SCSI] don't attach ULD to Dell Universal Xport
    [SCSI] lpfc 8.3.3 : Update driver version to 8.3.3
    [SCSI] lpfc 8.3.3 : Add support for Target Reset handler entrypoint
    [SCSI] lpfc 8.3.3 : Fix a couple of spin_lock and memory issues and a crash
    [SCSI] lpfc 8.3.3 : FC/FCOE discovery fixes
    [SCSI] lpfc 8.3.3 : Fix various SLI-3 vs SLI-4 differences
    [SCSI] qla2xxx: Resolve a performance issue in interrupt
    [SCSI] cnic, bnx2i: Fix build failure when CONFIG_PCI is not set.
    [SCSI] nsp_cs: time_out reaches -1
    [SCSI] qla2xxx: fix printk format warnings
    [SCSI] ncr53c8xx: div reaches -1
    [SCSI] compat: don't perform unneeded copy in sg_io code
    [SCSI] zfcp: Update FC pass-through support
    [SCSI] zfcp: Add FC pass-through support
    [SCSI] FC Pass Thru support

    Linus Torvalds
     
  • For it is only in linux-next at this stage.

    Cc: Wu Fengguang
    Cc: KOSAKI Motohiro
    Cc: Andi Kleen
    Cc: Matt Mackall
    Cc: Alexey Dobriyan
    Cc: Ingo Molnar
    Cc: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

17 Jun, 2009

37 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    get rid of BKL in fs/sysv
    get rid of BKL in fs/minix
    get rid of BKL in fs/efs
    befs ->pust_super() doesn't need BKL
    Cleanup of adfs headers
    9P doesn't need BKL in ->umount_begin()
    fuse doesn't need BKL in ->umount_begin()
    No instance of ->bmap() needs BKL
    remove unlock_kernel() left accidentally
    ext4: avoid unnecessary spinlock in critical POSIX ACL path
    ext3: avoid unnecessary spinlock in critical POSIX ACL path

    Linus Torvalds
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (425 commits)
    V4L/DVB (11870): gspca - main: VIDIOC_ENUM_FRAMESIZES ioctl added.
    V4L/DVB (12004): poll method lose race condition
    V4L/DVB (11894): flexcop-pci: dmesg visible names broken
    V4L/DVB (11892): Siano: smsendian - declare function as extern
    V4L/DVB (11891): Siano: smscore - bind the GPIO SMS protocol
    V4L/DVB (11890): Siano: smscore - remove redundant code
    V4L/DVB (11889): Siano: smsdvb - add DVB v3 events
    V4L/DVB (11888): Siano: smsusb - remove redundant ifdef
    V4L/DVB (11887): Siano: smscards - add board (target) events
    V4L/DVB (11886): Siano: smscore - fix some new GPIO definitions names
    V4L/DVB (11885): Siano: Add new GPIO management interface
    V4L/DVB (11884): Siano: smssdio - revert to stand alone module
    V4L/DVB (11883): Siano: cards - add two additional (USB) devices
    V4L/DVB (11824): Siano: smsusb - change exit func debug msg
    V4L/DVB (11823): Siano: smsusb - fix typo in module description
    V4L/DVB (11822): Siano: smscore - bug fix at get_device_mode
    V4L/DVB (11821): Siano: smscore - fix isdb-t firmware name
    V4L/DVB (11820): Siano: smscore - fix byte ordering bug
    V4L/DVB (11819): Siano: smscore - fix get_common_buffer bug
    V4L/DVB (11818): Siano: smscards - assign gpio to HPG targets
    ...

    Linus Torvalds
     
  • * akpm: (182 commits)
    fbdev: bf54x-lq043fb: use kzalloc over kmalloc/memset
    fbdev: *bfin*: fix __dev{init,exit} markings
    fbdev: *bfin*: drop unnecessary calls to memset
    fbdev: bfin-t350mcqb-fb: drop unused local variables
    fbdev: blackfin has __raw I/O accessors, so use them in fb.h
    fbdev: s1d13xxxfb: add accelerated bitblt functions
    tcx: use standard fields for framebuffer physical address and length
    fbdev: add support for handoff from firmware to hw framebuffers
    intelfb: fix a bug when changing video timing
    fbdev: use framebuffer_release() for freeing fb_info structures
    radeon: P2G2CLK_ALWAYS_ONb tested twice, should 2nd be P2G2CLK_DAC_ALWAYS_ONb?
    s3c-fb: CPUFREQ frequency scaling support
    s3c-fb: fix resource releasing on error during probing
    carminefb: fix possible access beyond end of carmine_modedb[]
    acornfb: remove fb_mmap function
    mb862xxfb: use CONFIG_OF instead of CONFIG_PPC_OF
    mb862xxfb: restrict compliation of platform driver to PPC
    Samsung SoC Framebuffer driver: add Alpha Channel support
    atmel-lcdc: fix pixclock upper bound detection
    offb: use framebuffer_alloc() to allocate fb_info struct
    ...

    Manually fix up conflicts due to kmemcheck in mm/slab.c

    Linus Torvalds
     
  • Signed-off-by: Paul Menzel
    Cc: Gerd Knorr
    Cc: Nico Schmoigl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menzel
     
  • The console blank timer is currently hardcoded to 10*60 seconds which
    might be annoying on systems with no input devices attached to wake up the
    console again. Especially during development, disabling the screen saver
    can be handy - for example when debugging the root fs mount mechanism or
    other scenarios where no userspace program could be started to do that at
    runtime from userspace.

    This patch defines a core_param for the variable in charge which allows
    users to entirely disable the blank feature at boot time by setting it 0.
    The value can still be overwritten at runtime using the standard ioctl
    call - this just allows to conditionally change the default.

    Signed-off-by: Daniel Mack
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     
  • list_add() lost a parameter in sample code.

    Signed-off-by: Figo.zhang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Figo.zhang
     
  • Fix compilation warning:

    Documentation/accounting/getdelays.c: In function `main':
    Documentation/accounting/getdelays.c:249: warning: `cmd_type' may be used uninitialized in this function

    This is in fact a false positive.

    Signed-off-by: Jaswinder Singh Rajput
    Acked-by: Balbir Singh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jaswinder Singh Rajput
     
  • A bug was brought to my attention against a distro kernel but it affects
    mainline and I believe problems like this have been reported in various
    guises on the mailing lists although I don't have specific examples at the
    moment.

    The reported problem was that malloc() stalled for a long time (minutes in
    some cases) if a large tmpfs mount was occupying a large percentage of
    memory overall. The pages did not get cleaned or reclaimed by
    zone_reclaim() because the zone_reclaim_mode was unsuitable, but the lists
    are uselessly scanned frequencly making the CPU spin at near 100%.

    This patchset intends to address that bug and bring the behaviour of
    zone_reclaim() more in line with expectations which were noticed during
    investigation. It is based on top of mmotm and takes advantage of
    Kosaki's work with respect to zone_reclaim().

    Patch 1 fixes the heuristics that zone_reclaim() uses to determine if the
    scan should go ahead. The broken heuristic is what was causing the
    malloc() stall as it uselessly scanned the LRU constantly. Currently,
    zone_reclaim is assuming zone_reclaim_mode is 1 and historically it
    could not deal with tmpfs pages at all. This fixes up the heuristic so
    that an unnecessary scan is more likely to be correctly avoided.

    Patch 2 notes that zone_reclaim() returning a failure automatically means
    the zone is marked full. This is not always true. It could have
    failed because the GFP mask or zone_reclaim_mode were unsuitable.

    Patch 3 introduces a counter zreclaim_failed that will increment each
    time the zone_reclaim scan-avoidance heuristics fail. If that
    counter is rapidly increasing, then zone_reclaim_mode should be
    set to 0 as a temporarily resolution and a bug reported because
    the scan-avoidance heuristic is still broken.

    This patch:

    On NUMA machines, the administrator can configure zone_reclaim_mode that
    is a more targetted form of direct reclaim. On machines with large NUMA
    distances for example, a zone_reclaim_mode defaults to 1 meaning that
    clean unmapped pages will be reclaimed if the zone watermarks are not
    being met.

    There is a heuristic that determines if the scan is worthwhile but the
    problem is that the heuristic is not being properly applied and is
    basically assuming zone_reclaim_mode is 1 if it is enabled. The lack of
    proper detection can manfiest as high CPU usage as the LRU list is scanned
    uselessly.

    Historically, once enabled it was depending on NR_FILE_PAGES which may
    include swapcache pages that the reclaim_mode cannot deal with. Patch
    vmscan-change-the-number-of-the-unmapped-files-in-zone-reclaim.patch by
    Kosaki Motohiro noted that zone_page_state(zone, NR_FILE_PAGES) included
    pages that were not file-backed such as swapcache and made a calculation
    based on the inactive, active and mapped files. This is far superior when
    zone_reclaim==1 but if RECLAIM_SWAP is set, then NR_FILE_PAGES is a
    reasonable starting figure.

    This patch alters how zone_reclaim() works out how many pages it might be
    able to reclaim given the current reclaim_mode. If RECLAIM_SWAP is set in
    the reclaim_mode it will either consider NR_FILE_PAGES as potential
    candidates or else use NR_{IN}ACTIVE}_PAGES-NR_FILE_MAPPED to discount
    swapcache and other non-file-backed pages. If RECLAIM_WRITE is not set,
    then NR_FILE_DIRTY number of pages are not candidates. If RECLAIM_SWAP is
    not set, then NR_FILE_MAPPED are not.

    [kosaki.motohiro@jp.fujitsu.com: Estimate unmapped pages minus tmpfs pages]
    [fengguang.wu@intel.com: Fix underflow problem in Kosaki's estimate]
    Signed-off-by: Mel Gorman
    Reviewed-by: Rik van Riel
    Acked-by: Christoph Lameter
    Cc: KOSAKI Motohiro
    Cc: Wu Fengguang
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • The per-task oom_adj value is a characteristic of its mm more than the
    task itself since it's not possible to oom kill any thread that shares the
    mm. If a task were to be killed while attached to an mm that could not be
    freed because another thread were set to OOM_DISABLE, it would have
    needlessly been terminated since there is no potential for future memory
    freeing.

    This patch moves oomkilladj (now more appropriately named oom_adj) from
    struct task_struct to struct mm_struct. This requires task_lock() on a
    task to check its oom_adj value to protect against exec, but it's already
    necessary to take the lock when dereferencing the mm to find the total VM
    size for the badness heuristic.

    This fixes a livelock if the oom killer chooses a task and another thread
    sharing the same memory has an oom_adj value of OOM_DISABLE. This occurs
    because oom_kill_task() repeatedly returns 1 and refuses to kill the
    chosen task while select_bad_process() will repeatedly choose the same
    task during the next retry.

    Taking task_lock() in select_bad_process() to check for OOM_DISABLE and in
    oom_kill_task() to check for threads sharing the same memory will be
    removed in the next patch in this series where it will no longer be
    necessary.

    Writing to /proc/pid/oom_adj for a kthread will now return -EINVAL since
    these threads are immune from oom killing already. They simply report an
    oom_adj value of OOM_DISABLE.

    Cc: Nick Piggin
    Cc: Rik van Riel
    Cc: Mel Gorman
    Signed-off-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • Add page-types, a handy tool for querying page flags.

    It will expand some of the overloaded flags:
    PG_slob_free = PG_private
    PG_slub_frozen = PG_active
    PG_slub_debug = PG_error
    PG_readahead = PG_reclaim

    and mask out obscure flags except in -raw mode:
    PG_reserved
    PG_mlocked
    PG_mappedtodisk
    PG_private
    PG_private_2
    PG_owner_priv_1
    PG_arch_1
    PG_uncached
    PG_compound* for non hugeTLB pages

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: Wu Fengguang
    Cc: KOSAKI Motohiro
    Cc: Andi Kleen
    Cc: Matt Mackall
    Cc: Alexey Dobriyan
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wu Fengguang
     
  • Also add short descriptions for all of the 20 exported page flags.

    Signed-off-by: Wu Fengguang
    Cc: KOSAKI Motohiro
    Cc: Andi Kleen
    Cc: Matt Mackall
    Cc: Alexey Dobriyan
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wu Fengguang
     
  • Some bit ranges were inclusive and some not. Fix them to be consistently
    inclusive.

    Signed-off-by: Wu Fengguang
    Cc: KOSAKI Motohiro
    Cc: Andi Kleen
    Cc: Matt Mackall
    Cc: Alexey Dobriyan
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wu Fengguang
     
  • ALLOC_WMARK_MIN, ALLOC_WMARK_LOW and ALLOC_WMARK_HIGH determin whether
    pages_min, pages_low or pages_high is used as the zone watermark when
    allocating the pages. Two branches in the allocator hotpath determine
    which watermark to use.

    This patch uses the flags as an array index into a watermark array that is
    indexed with WMARK_* defines accessed via helpers. All call sites that
    use zone->pages_* are updated to use the helpers for accessing the values
    and the array offsets for setting.

    Signed-off-by: Mel Gorman
    Reviewed-by: Christoph Lameter
    Cc: KOSAKI Motohiro
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Cc: Nick Piggin
    Cc: Dave Hansen
    Cc: Lee Schermerhorn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Add 1461:f736 to the list of identifiers corresponding to the
    SAA7134_BOARD_AVERMEDIA_M103 board. This patch adds support for
    a variant of the AVerMedia M103 MiniPCI DVB-T Hybrid card.

    Signed-off-by: Barry Kitson
    Signed-off-by: Mauro Carvalho Chehab

    Barry Kitson
     
  • Added an entry for Kworld 315 (for while, dvb only)

    Signed-off-by: Franklin Meng
    Signed-off-by: Douglas Schilling Landgraf
    Signed-off-by: Mauro Carvalho Chehab

    Franklin Meng
     
  • Signed-off-by: Jean-Francois Moine
    Signed-off-by: Mauro Carvalho Chehab

    Jean-Francois Moine
     
  • Due to a reorganisation of AVermedia's websites, get_dvb_firmware
    no longer works for nxt2004. Fix it.

    Signed-off-by: Jan Ceuleers
    Signed-off-by: Douglas Schilling Landgraf
    Signed-off-by: Mauro Carvalho Chehab

    Jan Ceuleers
     
  • Signed-off-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Andy Walls
     
  • Make the KWorld 2800d work properly. In this case, that means making the
    profile more generic so that it works for both the Pointnix Intra-Oral USB
    camera and the KWorld device.

    The device provides the audio through a pass-thru cable, so we don't need
    an actual audio capture profile (neither the K-World device nor the Pointnix
    have an onboard audio decoder).

    Thanks to Paul Thomas for providing sample hardware.

    Cc: Paul Thomas
    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Devin Heitmueller
     
  • This patch add cx23885 support for card "Mygica X8506 DMB-TH".
    It should work on "Magic-Pro ProHDTV Extreme" as well, as they are
    same hardware with different branding.

    Sign-off-by: David T.L. Wong

    Signed-off-by: Mauro Carvalho Chehab

    David Wong
     
  • Enables analog/digital tv, radio and remote control (gpio).

    Tested-by: Marcin Wojcikowski
    Tested-by: Karel Juhanak
    Tested-by: Andrew Goff
    Tested-by: Jan Novak
    Signed-off-by: Miroslav Sustek
    Signed-off-by: Mauro Carvalho Chehab

    Miroslav Sustek
     
  • Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Michael Krufky
     
  • Change kmalloc()/kfree() to vmalloc()/vfree() for sglist allocation
    during videobuf_dma_map() and videobuf_dma_unmap()

    High resolution sensors might require too many contiguous pages
    to be allocated for sglist by kmalloc() during videobuf_dma_map()
    (i.e. 256Kib for 8MP sensor).
    In such situations, kmalloc() could face some problem to find the
    required free memory. vmalloc() is a safer solution instead, as the
    allocated memory does not need to be contiguous.

    Signed-off-by: David Cohen
    Signed-off-by: Mauro Carvalho Chehab

    Cohen David.A
     
  • Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov
    Signed-off-by: Mauro Carvalho Chehab

    Dmitri Belimov
     
  • Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Michael Krufky
     
  • Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Michael Krufky
     
  • Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Michael Krufky
     
  • The patch means the board will be recognised, and the parts brought
    out of reset correctly. This patches depends on the centralized GPIO
    patch to be merged. What's missing before the HVR-1270 will function
    for DTV? The model# needs to be added to avoid 'unknown model'
    output and the LG3305/Tuner need to be attached in cx23885-dvb.c

    Signed-off-by: Steven Toth
    Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Steven Toth
     
  • Signed-off-by: Jani Monoses
    Signed-off-by: Jean-Francois Moine
    Signed-off-by: Mauro Carvalho Chehab

    Jani Monoses
     
  • Signed-off-by: Jean-Francois Moine
    Signed-off-by: Mauro Carvalho Chehab

    Jean-Francois Moine
     
  • Add a utility function that can be used to setup the v4l2_device's name
    field in a standard manner.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • cx88: Add support for the Hauppauge IROnly board.

    Signed-off-by: Steven Toth
    Signed-off-by: Mauro Carvalho Chehab

    Steven Toth
     
  • After DMA redesign, the pxa_camera dynamic behaviour should
    be documented so that future contributors understand how it
    works, and improve it.

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     
  • Split Beholdr`s cards to correct models.

    Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov
    Signed-off-by: Mauro Carvalho Chehab

    Dmitri Belimov
     
  • Here comes the full support for AVerMedia Cardbus Plus (E501R) - including
    remote control. TV, Composite and FM radio tested, I don't have S-Video to
    test. I've figured out that the radio works only with xtal frequency 13MHz.

    [mchehab@redhat.com: CodingStyle fixes]
    Signed-off-by: Oldřich Jedlička
    Signed-off-by: Mauro Carvalho Chehab

    Oldřich Jedlička
     
  • [mchehab@redhat.com: Fix merge conflicts and CodingStyle issues]
    Signed-off-by: Mauro Carvalho Chehab

    Andy Shevchenko