1. 30 1月, 2014 1 次提交
  2. 24 1月, 2014 1 次提交
  3. 11 1月, 2014 1 次提交
  4. 09 1月, 2014 2 次提交
    • J
      f2fs: update documents and a MAINTAINERS entry · 3bac380c
      Jaegeuk Kim 提交于
      This patch adds missing some description of sysfs entries in
       - Documentation/ABI/testing/sysfs-fs-f2fs
       - Documentation/filesystems/f2fs.txt.
      
      And it adds a maintained document entry of F2FS in MAINTAINERS.
      Signed-off-by: NJaegeuk Kim <jaegeuk.kim@samsung.com>
      3bac380c
    • A
      batman-adv: add isolation_mark sysfs attribute · c42edfe3
      Antonio Quartulli 提交于
      This attribute can be used to set and read the value and the
      mask of the skb mark which will be used to classify the
      source non-mesh client as ISOLATED. In this way a client can
      be advertised as such and the mark can potentially be
      restored at the receiving node before delivering the skb.
      
      This can be helpful for creating network wide netfilter
      policies.
      
      This sysfs file expects a string of the shape "$mark/$mask".
      Where $mark has to be a 32-bit number in any base, while
      $mask must be a 32bit mask expressed in hex base. Only bits
      in $mark covered by the bitmask are really stored.
      Signed-off-by: NAntonio Quartulli <antonio@open-mesh.com>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      c42edfe3
  5. 06 1月, 2014 1 次提交
  6. 01 1月, 2014 2 次提交
    • I
      rbd: add support for single-major device number allocation scheme · 9b60e70b
      Ilya Dryomov 提交于
      Currently each rbd device is allocated its own major number, which
      leads to a hard limit of 230-250 images mapped at once.  This commit
      adds support for a new single-major device number allocation scheme,
      which is hidden behind a new single_major boolean module parameter and
      is disabled by default for backwards compatibility reasons.  (Old
      userspace cannot correctly unmap images mapped under single-major
      scheme and would essentially just unmap a random image, if that.)
      
      $ rbd showmapped
      id pool image snap device
      0  rbd  b100  -    /dev/rbd0
      1  rbd  b101  -    /dev/rbd1
      2  rbd  b102  -    /dev/rbd2
      3  rbd  b103  -    /dev/rbd3
      
      Old scheme (modprobe rbd):
      
      $ ls -l /dev/rbd*
      brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
      brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
      brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
      brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
      brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
      brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
      brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
      brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
      
      New scheme (modprobe rbd single_major=Y):
      
      $ ls -l /dev/rbd*
      brw-rw---- 1 root disk 253,   0 Dec 10 12:30 /dev/rbd0
      brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
      brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
      brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
      brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
      brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
      brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
      brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
      
      (major 253 was assigned dynamically at module load time)
      
      The new limit is 4096 images mapped at once, and it comes from the fact
      that, as before, 256 minor numbers are reserved for each mapping.
      (A follow-up commit changes the number of minors reserved and the way
      we deal with partitions over that number.)
      
      If single_major is set to true, two new sysfs interfaces show up:
      /sys/bus/rbd/{add,remove}_single_major.  These are to be used instead
      of /sys/bus/rbd/{add,remove}, which are disabled for backwards
      compatibility reasons outlined above.
      Signed-off-by: NIlya Dryomov <ilya.dryomov@inktank.com>
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
      9b60e70b
    • I
      rbd: add 'minor' sysfs rbd device attribute · dd82fff1
      Ilya Dryomov 提交于
      Introduce /sys/bus/rbd/devices/<id>/minor sysfs attribute for exporting
      rbd whole disk minor numbers.  This is a step towards single-major
      device number allocation scheme, but also a good thing on its own.
      Signed-off-by: NIlya Dryomov <ilya.dryomov@inktank.com>
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
      dd82fff1
  7. 29 12月, 2013 1 次提交
    • D
      x86: Export x86 boot_params to sysfs · 5039e316
      Dave Young 提交于
      kexec-tools use boot_params for getting the 1st kernel hardware_subarch,
      the kexec kernel EFI runtime support also needs to read the old efi_info
      from boot_params. Currently it exists in debugfs which is not a good
      place for such infomation. Per HPA, we should avoid "sploit debugfs".
      
      In this patch /sys/kernel/boot_params are exported, also the setup_data is
      exported as a subdirectory. kexec-tools is using debugfs for hardware_subarch
      for a long time now so we're not removing it yet.
      
      Structure is like below:
      
      /sys/kernel/boot_params
      |__ data                /* boot_params in binary*/
      |__ setup_data
      |   |__ 0               /* the first setup_data node */
      |   |   |__ data        /* setup_data node 0 in binary*/
      |   |   |__ type        /* setup_data type of setup_data node 0, hex string */
      [snip]
      |__ version             /* boot protocal version (in hex, "0x" prefixed)*/
      Signed-off-by: NDave Young <dyoung@redhat.com>
      Acked-by: NBorislav Petkov <bp@suse.de>
      Tested-by: NToshi Kani <toshi.kani@hp.com>
      Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
      5039e316
  8. 21 12月, 2013 2 次提交
  9. 20 12月, 2013 1 次提交
  10. 19 12月, 2013 2 次提交
  11. 13 12月, 2013 1 次提交
  12. 07 12月, 2013 1 次提交
  13. 04 12月, 2013 1 次提交
  14. 27 11月, 2013 2 次提交
  15. 30 10月, 2013 2 次提交
  16. 28 10月, 2013 1 次提交
  17. 19 10月, 2013 4 次提交
  18. 17 10月, 2013 1 次提交
  19. 12 10月, 2013 1 次提交
  20. 10 10月, 2013 2 次提交
  21. 09 10月, 2013 1 次提交
  22. 06 10月, 2013 1 次提交
    • D
      misc: mic: Enable OSPM suspend and resume support. · af190494
      Dasaratharaman Chandramouli 提交于
      This patch enables support for OSPM suspend and resume in the MIC
      driver. During a host suspend event, the driver performs an
      orderly shutdown of the cards if they are online. Upon resume, any
      cards that were previously online before suspend are rebooted.
      The driver performs an orderly shutdown of the card primarily to
      ensure that applications in the card are terminated and mounted
      devices are safely un-mounted before the card is powered down in
      the event of an OSPM suspend.
      
      The driver makes use of the MIC daemon to accomplish OSPM suspend
      and resume. The driver registers a PM notifier per MIC device.
      The devices get notified synchronously during PM_SUSPEND_PREPARE and
      PM_POST_SUSPEND phases.
      
      During the PM_SUSPEND_PREPARE phase, the driver performs one of the
      following three tasks.
      1) If the card is 'offline', the driver sets the card to a
         'suspended' state and returns.
      2) If the card is 'online', the driver initiates card shutdown by
         setting the card state to suspending. This notifies the MIC
         daemon which invokes shutdown and sets card state to 'suspended'.
         The driver returns after the shutdown is complete.
      3) If the card is already being shutdown, possibly by a host user
         space application, the driver sets the card state to 'suspended'
         and returns after the shutdown is complete.
      
      During the PM_POST_SUSPEND phase, the driver simply notifies the
      daemon and returns. The daemon boots those cards that were previously
      online during the suspend phase.
      Signed-off-by: NAshutosh Dixit <ashutosh.dixit@intel.com>
      Signed-off-by: NNikhil Rao <nikhil.rao@intel.com>
      Signed-off-by: NHarshavardhan R Kharche <harshavardhan.r.kharche@intel.com>
      Signed-off-by: NSudeep Dutt <sudeep.dutt@intel.com>
      Signed-off-by: NDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      af190494
  23. 01 10月, 2013 1 次提交
  24. 27 9月, 2013 3 次提交
  25. 15 9月, 2013 1 次提交
    • P
      iio: Add INT_TIME (integration time) channel info attribute · 899d90bd
      Peter Meerwald 提交于
      Integration time is in seconds; it controls the measurement
      time and influences the gain of a sensor.
      
      There are two typical ways that scaling is implemented in a device:
      1) input amplifier,
      2) reference to the ADC is changed.
      These both result in the accuracy of the ADC varying (by applying its
      sampling over a more relevant range).
      
      Integration time is a way of dealing with noise inherent in the analog
      sensor itself.  In the case of a light sensor, a mixture of photon noise
      and device specific noise.  Photon noise is dealt with by either improving
      the efficiency of the sensor, (more photons actually captured) which is not
      easily varied dynamically, or by integrating the measurement over a longer
      time period.  Note that this can also be thought of as an averaging of a
      number of individual samples and is infact sometimes implemented this way.
      Altering integration time implies that the duration of a measurement changes,
      a fact the device's user may be interested in.
      
      Hence it makes sense to distinguish between integration time and simple
      scale. In some devices both types of control are present and whilst they
      will have similar effects on the amplitude of the reading, their effect
      on the noise of the measurements will differ considerably.
      
      Used by adjd_s311, tsl4531, tcs3472
      The following drivers have similar controls (and could be adapted):
      * tsl2563 (integration time is controlled via CALIBSCALE among other things)
      * tsl2583 (has integration_time device_attr, but driver doesn't use channels yet)
      * tsl2x7x (has integration_time attr)
      Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net>
      Cc: Jon Brenner <jon.brenner@ams.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      899d90bd
  26. 31 8月, 2013 2 次提交
  27. 29 8月, 2013 1 次提交