1. 07 12月, 2006 16 次提交
    • H
      ACPI: ibm-acpi: add support for the ultrabay on the T60,X60 · e0298997
      Henrique de Moraes Holschuh 提交于
      This patch adds support for the ultrabay on the T60, X60 and other new
      ThinkPads that have a SATA ultrabay.
      
      I intend to keep bay and dock support in ibm-acpi working and updated until
      it finally gets deprecated and removed in favour of the generic dock and
      bay support.  But we aren't there yet.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      e0298997
    • H
      ACPI: ibm-acpi: implement fan watchdog command · 16663a87
      Henrique de Moraes Holschuh 提交于
      This patch implements a fan control safety watchdog, by request of the
      authors of userspace fan control scripts.
      
      When the watchdog timer expires, the equivalent action of a "fan enable"
      command is executed.  The watchdog timer is reset at every reception of a
      fan control command that could change the state of the fan itself.
      
      This command is meant to be used by userspace fan control daemons, to make
      sure the fan is never left set to an unsafe level because of userspace
      problems.
      
      Users of the X31/X40/X41 "speed" command are on their own, the current
      implementation of "speed" is just too incomplete to be used safely,
      anyway.  Better to never use it, and just use the "level" command instead.
      
      The watchdog is programmed using echo "watchdog <number>" > fan, where
      number is the number of seconds to wait before doing an "enable", and zero
      disables the watchdog.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      16663a87
    • H
      ACPI: ibm-acpi: workaround for EC 0x2f initialization bug · 778b4d74
      Henrique de Moraes Holschuh 提交于
      A few ThinkPads fail to initialize EC register 0x2f both in the EC
      firmware and ACPI DSDT.  If the BIOS and the ACPI DSDT also do not
      initialize it, then the initial status of that register does not
      correspond to reality.
      
      On all reported buggy machines, EC 0x2f will read 0x07 (fan level 7) upon
      cold boot, when the EC is actually in mode 0x80 (auto mode).  Since
      returning a text string ("unknown") would break a number of userspace
      programs, instead we correct the reading for the most probably correct
      answer, and return it is in auto mode.
      
      The workaround flags the status and level as unknown on module load/kernel
      boot, until we are certain at least one fan control command was issued,
      either by us, or by something else.
      
      We don't work around the bug by doing a "fan enable" at module
      load/startup (which would initialize the EC register) because it is not
      known if these ThinkPad ACPI DSDT might have set the fan to level 7
      instead of "auto" (we don't know if they can do this or not) due to a
      thermal condition, and we don't want to override that, should they be
      capable of it.
      
      We should be setting the workaround flag to "status known" upon resume, as
      both reports and a exaustive search on the DSDT tables at acpi.sf.net show
      that the DSDTs always enable the fan on resume, thus working around the
      bug.  But since we don't have suspend/resume handlers in ibm-acpi yet and
      the "EC register 0x2f was modified" logic is likely to catch the change
      anyway, we don't.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      778b4d74
    • H
      ACPI: ibm-acpi: store embedded controller firmware version for matching · 49a13cd6
      Henrique de Moraes Holschuh 提交于
      This patch changes the ThinkPad Embedded Controller DMI matching
      code to store the firmware version of the EC for later usage, e.g.
      for quirks.
      
      It also prints the firmware version when starting up.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      49a13cd6
    • H
      ACPI: ibm-acpi: fix and extend fan control functions · a12095c2
      Henrique de Moraes Holschuh 提交于
      This patch extend fan control functions, implementing enable/disable for
      all write access modes, implementing level control for all level-capable
      write access modes.
      
      The patch also updates the documentation, explaining levels auto and
      disengaged.
      
      ABI changes:
      	1. Support level 0 as an equivalent to disable
      	2. Add support for level auto and level disengaged when doing
      	   EC 0x2f fan control
      	3. Support enable/disable for all level-based write access modes
      	4. Add support for level command on FANS thinkpads, as per
      	   thinkwiki reports
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      a12095c2
    • H
      ACPI: ibm-acpi: fix and extend fan enable · 1c6a334e
      Henrique de Moraes Holschuh 提交于
      This patch fix fan enable to attempt to do the right thing and not slow
      down the fan if it is forced to the maximum speed.  It also extends fan
      enable to work on older thinkpads.
      
      ABI changes:
      	1.  Support enable/disable for all level-based write access modes
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      1c6a334e
    • H
      ACPI: ibm-acpi: extend fan status functions · bab812a3
      Henrique de Moraes Holschuh 提交于
      This patch fixes fan_read to return correct values for all fan access
      modes.  It also implements some fan access mode status output that was
      missing, and normalizes the proc fan abi to return consistent data across
      all fan read/write modes.
      
      Userspace ABI changes and extensions:
      	1. Return status: enable/disable for *all* modes
      	   (this actually improves compatibility with userspace utils!)
      	2. Return level: auto and level: disengaged for EC 2f access mode
      	3. Return level: <number> for EC 0x2f access mode
      	4. Return level 0 as well as "disabled" in level-aware modes
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      bab812a3
    • H
      ACPI: ibm-acpi: document fan control · a8b7a662
      Henrique de Moraes Holschuh 提交于
      This patch documents the ThinkPad fan control strategies.  Source of the
      data:
      
      0. ibm-acpi source
      1. DSDTs for various ThinkPads (770, X31, X40, X41, T43, A21m, T22)
      2. http://thinkwiki.org/wiki/Embedded_Controller_Firmware#Firmware_Issues
      3. http://thinkwiki.org/wiki/How_to_control_fan_speed
      4. Various threads about windows fan control utilities in thinkpads.com
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      a8b7a662
    • H
      ACPI: ibm-acpi: cleanup fan_write · 18ad7996
      Henrique de Moraes Holschuh 提交于
      This patch cleans up fan_write so that it is much easier to read and
      extend.  It separates the proc api handling from the operations themselves.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      18ad7996
    • H
      ACPI: ibm-acpi: break fan_read into separate functions · c52f0aa5
      Henrique de Moraes Holschuh 提交于
      This patch breaks fan_read mechanics into a generic function to get fan
      status and speed, and leaves only the procfs interface code in fan_read.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      c52f0aa5
    • H
      ACPI: ibm-acpi: clean up fan_read · 3ef8a609
      Henrique de Moraes Holschuh 提交于
      This patch cleans up fan_read so that it is much easier to read and
      extend.
      
      The patch fixes the userspace ABI to return "status: not supported" (like
      all other ibm-acpi functions) when neither fan status or fan control are
      possible.
      
      It also fixes the userspace ABI to return EIO if ACPI access to the EC
      fails, instead of returning "status: unreadable" or "speed: unreadable".
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      3ef8a609
    • H
      ACPI: ibm-acpi: prepare to cleanup fan_read and fan_write · 69ba91cb
      Henrique de Moraes Holschuh 提交于
      This patch lays some groundwork for a fan_read and fan_write cleanup in the
      next patches.  To do so, it provides a new fan_init initializer, and also some
      constants (through enums).
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      69ba91cb
    • H
      ACPI: ibm-acpi: Implement direct-ec-access thermal reading modes for up to 16 sensors · 60eb0b35
      Henrique de Moraes Holschuh 提交于
      This patch extends ibm-acpi to support reading thermal sensors directly
      through ACPI EC register access.  It uses a DMI match to detect ThinkPads
      with a new-style embedded controller, that are known to have forward-
      compatible register maps and use 0x00 to fill in non-used registers and
      export thermal sensors at EC offsets 0x78-7F and 0xC0-C7.
      
      Direct ACPI EC register access is implemented for 8-sensor and 16-sensor
      new-style ThinkPad controller firmwares as an experimental feature.  The
      code does some limited sanity checks on the temperatures read through EC
      access, and will default to the old ACPI TMP0-7 mode if anything is amiss.
      
      Userspace ABI is not changed for 8 sensors, but /proc/acpi/ibm/thermal is
      extended for 16 sensors if the firmware supports 16 sensors.
      
      A documentation update is also provided.
      
      The information about the ThinkPad register map was determined by studying
      ibm-acpi "ecdump" output from various ThinkPad models, submitted by
      subscribers of the linux-thinkpad mailinglist.  Futher information was
      gathered from the DSDT tables, as they describe the EC register map in
      recent ThinkPads.
      
      DSDT source shows that TMP0-7 access and direct register access are
      actually the same thing on these firmwares, but unfortunately IBM never
      did update their DSDT EC register map to export TMP8-TMP15 for the second
      range of sensors.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      60eb0b35
    • H
      ACPI: ibm-acpi: Use a enum to select the thermal sensor reading strategy · a26f878a
      Henrique de Moraes Holschuh 提交于
      This patch consolidades all decisions regarding the strategy to be used to
      read thinkpad thermal sensors into a single enum, and refactors the
      thermal sensor reading code to use a much more readable (and easier to
      extend) switch() construct, in a separate function.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      a26f878a
    • H
      ACPI: ibm-acpi: trivial Lindent cleanups · 8d297264
      Henrique de Moraes Holschuh 提交于
      This patch just makes drives/acpi/ibm-acpi.c Lindent-clean, as requested by
      Len Brown.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      8d297264
    • H
      ACPI: ibm-acpi: do not use / in driver names · 3dfd35cd
      Henrique de Moraes Holschuh 提交于
      ibm-acpi uses sub-device names like ibm/hotkey, which get in the way of
      a sysfs conversion.  Fix it to use ibm_hotkey instead.  Thanks to Zhang
      Rui for noticing this.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      3dfd35cd
  2. 21 10月, 2006 1 次提交
  3. 14 10月, 2006 1 次提交
  4. 02 6月, 2006 1 次提交
  5. 24 3月, 2006 1 次提交
  6. 26 8月, 2005 1 次提交
  7. 05 8月, 2005 1 次提交
  8. 12 7月, 2005 2 次提交
  9. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4