1. 15 8月, 2010 3 次提交
  2. 14 8月, 2010 1 次提交
  3. 12 8月, 2010 3 次提交
    • A
      mmc: add erase, secure erase, trim and secure trim operations · dfe86cba
      Adrian Hunter 提交于
      SD/MMC cards tend to support an erase operation.  In addition, eMMC v4.4
      cards can support secure erase, trim and secure trim operations that are
      all variants of the basic erase command.
      
      SD/MMC device attributes "erase_size" and "preferred_erase_size" have been
      added.
      
      "erase_size" is the minimum size, in bytes, of an erase operation.  For
      MMC, "erase_size" is the erase group size reported by the card.  Note that
      "erase_size" does not apply to trim or secure trim operations where the
      minimum size is always one 512 byte sector.  For SD, "erase_size" is 512
      if the card is block-addressed, 0 otherwise.
      
      SD/MMC cards can erase an arbitrarily large area up to and
      including the whole card.  When erasing a large area it may
      be desirable to do it in smaller chunks for three reasons:
      
          1. A single erase command will make all other I/O on the card
             wait.  This is not a problem if the whole card is being erased, but
             erasing one partition will make I/O for another partition on the
             same card wait for the duration of the erase - which could be a
             several minutes.
      
          2. To be able to inform the user of erase progress.
      
          3. The erase timeout becomes too large to be very useful.
             Because the erase timeout contains a margin which is multiplied by
             the size of the erase area, the value can end up being several
             minutes for large areas.
      
      "erase_size" is not the most efficient unit to erase (especially for SD
      where it is just one sector), hence "preferred_erase_size" provides a good
      chunk size for erasing large areas.
      
      For MMC, "preferred_erase_size" is the high-capacity erase size if a card
      specifies one, otherwise it is based on the capacity of the card.
      
      For SD, "preferred_erase_size" is the allocation unit size specified by
      the card.
      
      "preferred_erase_size" is in bytes.
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      Acked-by: NJens Axboe <axboe@kernel.dk>
      Cc: Kyungmin Park <kmpark@infradead.org>
      Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Ben Gardiner <bengardiner@nanometrics.ca>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dfe86cba
    • P
      dm: allow autoloading of dm mod · 7e507eb6
      Peter Rajnoha 提交于
      Add devname:mapper/control and MAPPER_CTRL_MINOR module alias
      to support dm-mod module autoloading.
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NPeter Rajnoha <prajnoha@redhat.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      7e507eb6
    • J
      i2c: Add support for custom probe function · 9a94241a
      Jean Delvare 提交于
      The probe method used by i2c_new_probed_device() may not be suitable
      for all cases. Let the caller provide its own, optional probe
      function.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9a94241a
  4. 11 8月, 2010 22 次提交
  5. 10 8月, 2010 11 次提交
    • T
      ALSA: hda - Update model entries in HD-Audio-Models.txt · 9b200d7d
      Takashi Iwai 提交于
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9b200d7d
    • C
      ALSA: hda: document VIA models · dc9bee37
      Clemens Ladisch 提交于
      Add documentation about the autodetection of the VIA codec models to
      avoid the false impression that they are not supported.
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      dc9bee37
    • G
      hwmon: f71882fg: add support for the Fintek F71808E · 7721fea3
      Giel van Schijndel 提交于
      Allow device probing to recognise the Fintek F71808E.
      
      Sysfs interface:
       * Fan/pwm control is the same as for F71889FG
       * Temperature and voltage sensor handling is largely the same as for
         the F71889FG
        - Has one temperature sensor less (doesn't have temp3)
        - Misses one voltage sensor (doesn't have V6, thus in6_input refers to
          what in7_input refers for F71889FG)
      
      For the purpose of the sysfs interface fxxxx_in_temp_attr[] is split up
      such that it can largely be reused.
      Signed-off-by: NGiel van Schijndel <me@mortis.eu>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7721fea3
    • C
      hwmon: coretemp: documentation update and cleanup · f3cffe4d
      Chen Gong 提交于
      Update coretemp supported CPU TjMax lists and some cleanup work.
      Signed-off-by: NChen Gong <gong.chen@linux.intel.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Huaxu Wan <huaxu.wan@intel.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f3cffe4d
    • G
      hwmon: add support for JEDEC JC 42.4 compliant temperature sensors · 4453d736
      Guenter Roeck 提交于
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4453d736
    • G
      hwmon: driver for SMM665 Six-Channel Active DC Output Controller/Monitor · 920fa1ff
      Guenter Roeck 提交于
      This driver adds support for the monitoring features of the Summit
      Microelectronics SMM665 Six-Channel Active DC Output Controller/Monitor.
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      920fa1ff
    • K
      hmc6352: add driver for the HMC6352 compass · cfa3b24c
      Kalhan Trisal 提交于
      This driver will report the heading values in degrees to the sysfs
      interface.  The values returned are headings .  e.g.  245.6
      
      Alan: Cleanups requested now all folded in and a sysfs description to keep
      Andrew happy. The sysfs description now resembles hwmon.
      Signed-off-by: NKalhan Trisal <kalhan.trisal@intel.com>
      Reviewed-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cfa3b24c
    • C
      drivers/misc: support for the pressure sensor BMP085 from Bosch Sensortec · 5bf1d290
      Christoph Mair 提交于
      This driver adds support for the BMP085 digital pressure sensor from Bosch
      Sensortec.  It exposes a sysfs api to userspace where pressure and
      temperature measurement results can be read from the pressure0_input and
      temp0_input file.  The chip is able to calculate the average of up to
      eight samples to increase the accuracy.  This feature can be controlled by
      writing to the oversampling file.
      
      The BMP085 digital pressure sensor can measure ambient air pressure and
      temperature.  Both values can be obtained from sysfs files.  The pressure
      is measured by reading from pressure0_input.  Valid values range from
      30000 to 110000 pascal with a resolution of 1 pascal (=0.01 millibar).
      
      temp0_input holds the current temperature in degree celsius, multiplied by
      10.  This results in a resolution of a tenth degree celsius.  Values range
      from -400 to 850.
      
      To increase the accuracy, this chip can calculate the average of 1, 2, 4
      or 8 samples.  This behavior is controlled through the oversampling sysfs
      file.  Two to the power of the value written to that file specifies how
      many samples will be used.  Valid values: 0..3.
      
      [akpm@linux-foundation.org: fix typo]
      [shubhrajyoti@ti.com: optimize the wait time for the pressure sensor, definition of long is arch dependent so make it u32]
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NChristoph Mair <christoph.mair@gmail.com>
      Signed-off-by: NShubhrajyoti D <shubhrajyoti@ti.com>
      Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
      Cc: Stefan Schmidt <stefan@datenfreihafen.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5bf1d290
    • R
      SubmittingPatches: add more about patch descriptions · d89b1945
      Randy Dunlap 提交于
      Add more information about patch descriptions.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Reviewed-by: NChristoph Lameter <cl@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d89b1945
    • D
      oom: deprecate oom_adj tunable · 51b1bd2a
      David Rientjes 提交于
      /proc/pid/oom_adj is now deprecated so that that it may eventually be
      removed.  The target date for removal is August 2012.
      
      A warning will be printed to the kernel log if a task attempts to use this
      interface.  Future warning will be suppressed until the kernel is rebooted
      to prevent spamming the kernel log.
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Balbir Singh <balbir@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      51b1bd2a
    • D
      oom: badness heuristic rewrite · a63d83f4
      David Rientjes 提交于
      This a complete rewrite of the oom killer's badness() heuristic which is
      used to determine which task to kill in oom conditions.  The goal is to
      make it as simple and predictable as possible so the results are better
      understood and we end up killing the task which will lead to the most
      memory freeing while still respecting the fine-tuning from userspace.
      
      Instead of basing the heuristic on mm->total_vm for each task, the task's
      rss and swap space is used instead.  This is a better indication of the
      amount of memory that will be freeable if the oom killed task is chosen
      and subsequently exits.  This helps specifically in cases where KDE or
      GNOME is chosen for oom kill on desktop systems instead of a memory
      hogging task.
      
      The baseline for the heuristic is a proportion of memory that each task is
      currently using in memory plus swap compared to the amount of "allowable"
      memory.  "Allowable," in this sense, means the system-wide resources for
      unconstrained oom conditions, the set of mempolicy nodes, the mems
      attached to current's cpuset, or a memory controller's limit.  The
      proportion is given on a scale of 0 (never kill) to 1000 (always kill),
      roughly meaning that if a task has a badness() score of 500 that the task
      consumes approximately 50% of allowable memory resident in RAM or in swap
      space.
      
      The proportion is always relative to the amount of "allowable" memory and
      not the total amount of RAM systemwide so that mempolicies and cpusets may
      operate in isolation; they shall not need to know the true size of the
      machine on which they are running if they are bound to a specific set of
      nodes or mems, respectively.
      
      Root tasks are given 3% extra memory just like __vm_enough_memory()
      provides in LSMs.  In the event of two tasks consuming similar amounts of
      memory, it is generally better to save root's task.
      
      Because of the change in the badness() heuristic's baseline, it is also
      necessary to introduce a new user interface to tune it.  It's not possible
      to redefine the meaning of /proc/pid/oom_adj with a new scale since the
      ABI cannot be changed for backward compatability.  Instead, a new tunable,
      /proc/pid/oom_score_adj, is added that ranges from -1000 to +1000.  It may
      be used to polarize the heuristic such that certain tasks are never
      considered for oom kill while others may always be considered.  The value
      is added directly into the badness() score so a value of -500, for
      example, means to discount 50% of its memory consumption in comparison to
      other tasks either on the system, bound to the mempolicy, in the cpuset,
      or sharing the same memory controller.
      
      /proc/pid/oom_adj is changed so that its meaning is rescaled into the
      units used by /proc/pid/oom_score_adj, and vice versa.  Changing one of
      these per-task tunables will rescale the value of the other to an
      equivalent meaning.  Although /proc/pid/oom_adj was originally defined as
      a bitshift on the badness score, it now shares the same linear growth as
      /proc/pid/oom_score_adj but with different granularity.  This is required
      so the ABI is not broken with userspace applications and allows oom_adj to
      be deprecated for future removal.
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Balbir Singh <balbir@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a63d83f4