20 Oct, 2008

7 commits

  • This attribute just has a write operation.

    [akpm@linux-foundation.org: use S_IWUSR as suggested by Randy]
    Signed-off-by: Shaohua Li
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shaohua Li
     
  • This patch adds a function to scan individual or all zones' unevictable
    lists and move any pages that have become evictable onto the respective
    zone's inactive list, where shrink_inactive_list() will deal with them.

    Adds sysctl to scan all nodes, and per node attributes to individual
    nodes' zones.

    Kosaki: If evictable page found in unevictable lru when write
    /proc/sys/vm/scan_unevictable_pages, print filename and file offset of
    these pages.

    [akpm@linux-foundation.org: fix one CONFIG_MMU=n build error]
    [kosaki.motohiro@jp.fujitsu.com: adapt vmscan-unevictable-lru-scan-sysctl.patch to new sysfs API]
    Signed-off-by: Lee Schermerhorn
    Signed-off-by: Rik van Riel
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Lee Schermerhorn
     
  • Add NR_MLOCK zone page state, which provides a (conservative) count of
    mlocked pages (actually, the number of mlocked pages moved off the LRU).

    Reworked by lts to fit in with the modified mlock page support in the
    Reclaim Scalability series.

    [kosaki.motohiro@jp.fujitsu.com: fix incorrect Mlocked field of /proc/meminfo]
    [lee.schermerhorn@hp.com: mlocked-pages: add event counting with statistics]
    Signed-off-by: Nick Piggin
    Signed-off-by: Lee Schermerhorn
    Signed-off-by: Rik van Riel
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nick Piggin
     
  • Report unevictable pages per zone and system wide.

    Kosaki Motohiro added support for memory controller unevictable
    statistics.

    [riel@redhat.com: fix printk in show_free_areas()]
    [akpm@linux-foundation.org: fix units in /proc/vmstats]
    Signed-off-by: Lee Schermerhorn
    Signed-off-by: Rik van Riel
    Signed-off-by: KOSAKI Motohiro
    Debugged-by: Hiroshi Shimamoto
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Lee Schermerhorn
     
  • Split the LRU lists in two, one set for pages that are backed by real file
    systems ("file") and one for pages that are backed by memory and swap
    ("anon"). The latter includes tmpfs.

    The advantage of doing this is that the VM will not have to scan over lots
    of anonymous pages (which we generally do not want to swap out), just to
    find the page cache pages that it should evict.

    This patch has the infrastructure and a basic policy to balance how much
    we scan the anon lists and how much we scan the file lists. The big
    policy changes are in separate patches.

    [lee.schermerhorn@hp.com: collect lru meminfo statistics from correct offset]
    [kosaki.motohiro@jp.fujitsu.com: prevent incorrect oom under split_lru]
    [kosaki.motohiro@jp.fujitsu.com: fix pagevec_move_tail() doesn't treat unevictable page]
    [hugh@veritas.com: memcg swapbacked pages active]
    [hugh@veritas.com: splitlru: BDI_CAP_SWAP_BACKED]
    [akpm@linux-foundation.org: fix /proc/vmstat units]
    [nishimura@mxp.nes.nec.co.jp: memcg: fix handling of shmem migration]
    [kosaki.motohiro@jp.fujitsu.com: adjust Quicklists field of /proc/meminfo]
    [kosaki.motohiro@jp.fujitsu.com: fix style issue of get_scan_ratio()]
    Signed-off-by: Rik van Riel
    Signed-off-by: Lee Schermerhorn
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Hugh Dickins
    Signed-off-by: Daisuke Nishimura
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rik van Riel
     
  • Fix a warning caused by commit 0c8946d97ae7d2d6691f8290a10faa63453b63f8
    (serial: Make uart_port's ioport "unsigned long".)

    Signed-off-by: Atsushi Nemoto
    Cc: Alan Cox
    Cc: Josip Rodin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Today's linux-next build (powerpc_allyesconfig) failed like this:

    drivers/char/tpm/tpm.c:1162: error: __ksymtab_tpm_dev_release causes a section type conflict

    Caused by commit 253115b71fa06330bd58afbe01ccaf763a8a0cf1 ("The
    tpm_dev_release function is only called for platform devices, not pnp")
    which exported a static function.

    Signed-off-by: Stephen Rothwell
    Cc: Rajiv Andrade
    Cc: James Morris
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     

18 Oct, 2008

33 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (94 commits)
    USB: remove err() macro from more usb drivers
    USB: remove err() macro from usb misc drivers
    USB: remove err() macro from usb core code
    USB: remove err() macro from usb class drivers
    USB: remove use of err() in drivers/usb/serial
    USB: remove info() macro from usb mtd drivers
    USB: remove info() macro from usb input drivers
    USB: remove info() macro from usb network drivers
    USB: remove info() macro from remaining usb drivers
    USB: remove info() macro from usb/misc drivers
    USB: remove info() macro from usb/serial drivers
    USB: remove warn macro from HID core
    USB: remove warn() macro from usb drivers
    USB: remove warn() macro from usb net drivers
    USB: remove warn() macro from usb media drivers
    USB: remove warn() macro from usb input drivers
    usb/fsl_qe_udc: clear data toggle on clear halt request
    usb/fsl_qe_udc: fix response to get status request
    fsl_usb2_udc: Fix oops on probe failure.
    fsl_usb2_udc: Add a wmb before priming endpoint.
    ...

    Linus Torvalds
     
  • * 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (44 commits)
    drm/i915: fix ioremap of a user address for non-root (CVE-2008-3831)
    drm: make CONFIG_DRM depend on CONFIG_SHMEM.
    radeon: fix PCI bus mastering support enables.
    radeon: add RS400 family support.
    drm/radeon: add support for RS740 IGP chipsets.
    i915: GM45 has GM965-style MCH setup.
    i915: Don't run retire work handler while suspended
    i915: Map status page cached for chips with GTT-based HWS location.
    i915: Fix up ring initialization to cover G45 oddities
    i915: Use non-reserved status page index for breadcrumb
    drm: Increment dev_priv->irq_received so i915_gem_interrupts count works.
    drm: kill drm_device->irq
    drm: wbinvd is cache coherent.
    i915: add missing return in error path.
    i915: fixup permissions on gem ioctls.
    drm: Clean up many sparse warnings in i915.
    drm: Use ioremap_wc in i915_driver instead of ioremap, since we always want WC.
    drm: G33-class hardware has a newer 965-style MCH (no DCC register).
    drm: Avoid oops in GEM execbuffers with bad arguments.
    DRM: Return -EBADF on bad object in flink, and return curent name if it exists.
    ...

    Linus Torvalds
     
  • USB should not be having it's own printk macros, so remove err() and
    use the system-wide standard of dev_err() wherever possible. In the
    few places that will not work out, use a basic printk().

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove err() and
    use the system-wide standard of dev_err() wherever possible. In the
    few places that will not work out, use a basic printk().

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove err() and
    use the system-wide standard of dev_err() wherever possible. In the
    few places that will not work out, use a basic printk().

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove err() and
    use the system-wide standard of dev_err() wherever possible. In the
    few places that will not work out, use a basic printk().

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • err() is going away, so switch to dev_err() or printk() if it's really
    needed.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible.

    Acked-by: David Woodhouse
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible.

    Acked-by: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible.

    Cc: Jeff Garzik
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible. In the
    few places that will not work out, use a basic printk().

    Clean up the remaining usages of this in the drivers/usb/ directory.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove info() and
    use the system-wide standard of dev_info() wherever possible.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • There were two stragglers that got missed in the last merge of the HID tree that forgot to change the warn() calls to dev_warn(). This patch fixes them up.

    Acked-by: Jiri Kosina
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove warn() and
    use the system-wide standard of dev_warn() wherever possible. In the
    few places that will not work out, use a basic printk().

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove warn() and
    use the system-wide standard of dev_warn() wherever possible. In the
    few places that will not work out, use a basic printk().

    Cc: Jeff Garzik
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove warn() and
    use the system-wide standard of dev_warn() wherever possible. In the
    few places that will not work out, use a basic printk().

    Cc: Mauro Carvalho Chehab
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • USB should not be having it's own printk macros, so remove warn() and
    use the system-wide standard of dev_warn() wherever possible. In the
    few places that will not work out, use a basic printk().

    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Fix to comply with USB spec.

    Signed-off-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Li Yang
     
  • The original code didn't respond correctly to get status request on
    device and endpoint. Although normal operations can work without the
    fix. It is not compliant with USB spec chapter9 and fails USBCV ch9
    tests. The patch fix this and a few style/typo problems.

    Signed-off-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Li Yang
     
  • In some circumstances when fsl_udc_probe fails udc_controller is freed but
    the pointer remains non-NULL. fsl_udc_remove will then try and teardown
    the partly initialized and freed controller structure resulting in an oops.
    This patch ensures udc_controller is either NULL or fully initialized after
    fsl_udc_probe.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Add a wmb to fsl_queue_td before priming the endpoint. This ensures that the
    modifications to the QH are seen by the hardware.

    Added comment as suggested by Felipe Balbi.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • fsl_queue_td always returns 0. Make it void and remove checks for non-zero
    return in callers.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Uninline udc_reset_ep_queue and remove it's unused return value.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Rename the arguments of the fsl_writel macro to match their use.
    Remove a couple of unnecessary prototypes.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Move spinlock initialization earlier so we can turn shared irq handler
    debugging on safely.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Missing spaces were causing the /proc debugging output to be rather
    unreadable.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • VDBG always outputs a trailing \n.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Fix some sparse "integer used as NULL pointer" warnings.
    Remove some unnecessary volatiles and static initialization.
    Remove some unused struct members and reorder to improve packing.
    Remove a few unneeded includes.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Remove check for udc == NULL in dr_controller_setup. All callers of
    this function have already dereferenced udc at some point.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Make dr_ep_setup function static as it's never used outside this file.

    Signed-off-by: Will Newton
    Acked-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Will Newton
     
  • Add range check on buffer sizes passed in from user space
    (max is 8*PAGE_SIZE) which will work for the most common
    spectrometers even at pages as small as 1K.

    Add kref to vst device structure to preserve reference to the
    usb object until we truly are done with it.

    From: Stephen Ware
    From: Dennis O'Brien
    Signed-off-by: Dennis O'Brien
    Signed-off-by: Greg Kroah-Hartman

    Stephen Ware
     
  • This patch (as1149) fixes an obscure problem in OHCI polling. In the
    current code, if the RHSC interrupt status flag turns on at a time
    when RHSC interrupts are disabled, it will remain on forever:

    The interrupt handler is the only place where RHSC status
    gets turned back off;

    The interrupt handler won't turn RHSC status off because it
    doesn't turn off status flags if the corresponding interrupt
    isn't enabled;

    RHSC interrupts will never get enabled because
    ohci_root_hub_state_changes() doesn't reenable RHSC if RHSC
    status is on!

    As a result we will continue polling indefinitely instead of reverting
    to interrupt-driven operation, and the root hub will not autosuspend.
    This particular sequence of events is not at all unusual; in fact
    plugging a USB device into an OHCI controller will usually cause it to
    occur.

    Of course, this is a bug. The proper thing to do is to turn off RHSC
    status just before reading the actual port status values. That way
    either a port status change will be detected (if it occurs before the
    status read) or it will turn RHSC back on. Possibly both, but that
    won't hurt anything.

    We can still check for systems in which RHSC is totally broken, by
    re-reading RHSC after clearing it and before reading the port
    statuses. (This re-read has to be done anyway, to post the earlier
    write.) If RHSC is on but no port-change statuses are set, then we
    know that RHSC is broken and we can avoid re-enabling it.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern