1. 14 10月, 2008 6 次提交
    • E
      ide: Implement disk shock protection support (v4) · 4abdc6ee
      Elias Oltmanns 提交于
      On user request (through sysfs), the IDLE IMMEDIATE command with UNLOAD
      FEATURE as specified in ATA-7 is issued to the device and processing of
      the request queue is stopped thereafter until the specified timeout
      expires or user space asks to resume normal operation. This is supposed
      to prevent the heads of a hard drive from accidentally crashing onto the
      platter when a heavy shock is anticipated (like a falling laptop expected
      to hit the floor). Port resets are deferred whenever a device on that
      port is in the parked state.
      
      v3:
      Elias Oltmanns <eo@nebensachen.de> wrote:
      [...]
      > >> 1. Make sure that no negative value is being passed to
      > >>    jiffies_to_msecs() in ide_park_show().
      > >> 2. Drop the superfluous variable hwif in ide_special_rq().
      > >> 3. Skip initialisation of task and tf in ide_special_rq() if we are not
      > >>    handling a (un)park request.
      > >
      > > Well, #3 should have been done differently because we donn't want to
      > > check for REQ_(UN)?PARK_HEADS more often than is necessary.
      > 
      > While preparing the backport to 2.6.27, it has just occurred to me that
      > we need to clear the IDE_DFLAG_PARKED flag in ide_disk_pre_reset()
      > because this flag must not be set after *any* sort of access to the
      > device.
      
      v4:
      Fix a memory leak due to a missing blk_put_request() in
      issue_park_cmd(). Additionally, we should plug the queue when enqueueing
      the unpark request because there is no guarantee that the park timeout
      has not expired by then. Even though the chance for that to happen is
      very slim, the request might end up hanging in the queue until the next
      I/O operation is queued up. While at it, clean up the code a little:
      - make issue_park_cmd() a function of type void since nobody cares for
        the return value anyway;
      - use blk_start_queueing() instead of __blk_run_queue() since we don't
        have to worry about recursion;
      - remove a superfluous pointer deference in task_no_data_intr().
      Signed-off-by: NElias Oltmanns <eo@nebensachen.de>
      Cc: Jeff Garzik <jeff@garzik.org>,
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: Tejun Heo <htejun@gmail.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4abdc6ee
    • B
      2dbe7e91
    • B
      ide-disk: move /proc handling to ide-disk_proc.c (take 3) · 06b89518
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idedisk_capacity() -> ide_disk_capacity()
      - idedisk_proc[] -> ide_disk_proc[]
      - idedisk_settings[] -> ide_disk_settings[]
      
      v2/3:
      Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      06b89518
    • B
      ide-disk: move all ioctl handling to ide-disk_ioctl.c · f8790489
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idedisk_ioctl() -> ide_disk_ioctl()
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f8790489
    • B
      ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) · b9103da4
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idefloppy_capacity() -> ide_floppy_capacity()
      - idefloppy_proc[] -> ide_floppy_proc[]
      - idefloppy_settings[] -> ide_floppy_settings[]
      
      v2:
      Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns.
      
      Cc: Borislav Petkov <petkovbb@gmail.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      b9103da4
    • B
      ide: remove CONFIG_BLK_DEV_IDE config option (take 2) · 452a8ed8
      Bartlomiej Zolnierkiewicz 提交于
      Because hd.c was moved to drivers/block/ this config option
      is superfluous now and may be removed.
      
      v2:
      Fix drivers/ide/Makefile (noticed by Adrian Bunk).
      
      Cc: Adrian Bunk <bunk@kernel.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      452a8ed8
  2. 11 10月, 2008 2 次提交
  3. 25 7月, 2008 1 次提交
  4. 17 7月, 2008 4 次提交
  5. 16 7月, 2008 1 次提交
  6. 29 4月, 2008 1 次提交
    • A
      remove the broken ETRAX_IDE driver · 3f31b874
      Adrian Bunk 提交于
      ETRAX_IDE was marked as broken last year with the comment
      "it doesn't even compile currently".
      
      Remove it since it won't get fixed in the near future.
      
      On Mon, Apr 14, 2008 at 02:50:19PM +0200, Mikael Starvik wrote:
      > You can remove it for now and we will resubmit a new if/when we get around
      > to fix it.
      
      [bart: ported it over IDE tree]
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Cc: Mikael Starvik <mikael.starvik@axis.com>
      Cc: Jesper Nilsson <Jesper.Nilsson@axis.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      3f31b874
  7. 18 4月, 2008 1 次提交
  8. 02 2月, 2008 2 次提交
    • B
      ide-cd: move code handling cdrom.c IOCTLs to ide-cd_ioctl.c · 17802998
      Bartlomiej Zolnierkiewicz 提交于
      There should be no functionality changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      17802998
    • B
      ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c · 972560fb
      Bartlomiej Zolnierkiewicz 提交于
      * Rename ide-cd kernel module to ide-cd_mod in preparation to moving code out
        from ide-cd.[c,h].   Add MODULE_ALIAS("ide-cd") to preserve compatibility.
      
      * Move VERBOSE_IDE_CD_ERRORS code from ide-cd.[c,h] to ide-cd_verbose.c.
      
        ide-cd_verbose.c is IDE subsystem independent and may be easily converted
        into generic library usable by other drivers (i.e. libata) if needed.
      
      * Add CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS config option to drivers/ide/Kconfig
        replacing VERBOSE_IDE_CD_ERRORS define.  Make this config option enabled by
        default and visible only if CONFIG_EMBEDDED is defined.
      
      before the patch:
         text    data     bss     dec     hex filename
        22841     360    1056   24257    5ec1 drivers/ide/ide-cd.o
      
      after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y:
         text    data     bss     dec     hex filename
        22857     360    1056   24273    5ed1 drivers/ide/ide-cd_mod.o
      
      after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=n:
         text    data     bss     dec     hex filename
        15091     360    1056   16507    407b drivers/ide/ide-cd_mod.o
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      972560fb
  9. 27 1月, 2008 1 次提交
    • B
      ide: make remaining built-in only IDE host drivers modular (take 2) · ade2daf9
      Bartlomiej Zolnierkiewicz 提交于
      * Make remaining built-in only IDE host drivers modular, add ide-scan-pci.c
        file for probing PCI host drivers registered with IDE core (special case
        for built-in IDE and CONFIG_IDEPCI_PCIBUS_ORDER=y) and then take care of
        the ordering in which all IDE host drivers are probed when IDE is built-in
        during link time.
      
      * Move probing of gayle, falconide, macide, q40ide and buddha (m68k arch
        specific) host drivers, before PCI ones (no PCI on m68k), ide-cris (cris
        arch specific), cmd640 (x86 arch specific) and pmac (ppc arch specific).
      
      * Move probing of ide-cris (cris arch specific) host driver before cmd640
        (x86 arch specific).
      
      * Move probing of mpc8xx (ppc specific) host driver before ide-pnp (depends
        on ISA and none of ppc platform that use mpc8xx supports ISA) and ide-h8300
        (h8300 arch specific).
      
      * Add "probe_vlb" kernel parameter to cmd640 host driver and update
        Documentation/ide.txt accordingly.
      
      * Make IDE_ARM config option visible so it can also be disabled if needed.
      
      * Remove bogus comment from ide.c while at it.
      
      v2:
      * Fix two issues spotted by Sergei:
        - replace ENOMEM error value by ENOENT in ide-h8300 host driver
        - fix MODULE_PARM_DESC() in cmd640 host driver
      
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      ade2daf9
  10. 28 11月, 2007 1 次提交
  11. 10 5月, 2007 1 次提交
    • B
      ide: make /proc/ide/ optional · ecfd80e4
      Bartlomiej Zolnierkiewicz 提交于
      All important information/features should be already available through
      sysfs and ioctl interfaces.
      
      Add CONFIG_IDE_PROC_FS (CONFIG_SCSI_PROC_FS rip-off) config option,
      disabling it makes IDE driver ~5 kB smaller (on x86-32).
      
      While at it add CONFIG_PROC_FS=n versions of proc_ide_{create,destroy}()
      and remove no longer needed #ifdefs.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      ecfd80e4
  12. 18 3月, 2007 1 次提交
  13. 17 2月, 2007 1 次提交
    • K
      drivers/ide: PATA driver for Celleb · bde18a2e
      Kou Ishizaki 提交于
      This is the patch (based on 2.6.19-rc4) for PATA controller of
      Toshiba Cell reference set(Celleb). The reference set consists
      of Cell, 512MB memory, Super Companion Chip(SCC) and some
      peripherals such as HDD, GbE, etc. You can see brief explanation
      and picture of Cell reference set at following URLs.
      
          http://www.toshiba.co.jp/about/press/2005_09/pr2001.htm
          http://cell-industries.com/toshiba_announces.php
      
      We use a drivers/ide driver because its design is more suitable for
      SCC IDE controller than libata driver. Since SCC supports only 32bit
      read/write, we must override many callbacks of ata_port_operations
      by modifying generic helpers. Each time the libata common code is
      updated, we must update those modified helpers. It is very hard for us.
      But we will try to implement the libata driver as needed.
      
      Signed-off-by: Kou Ishizaki <kou.ishizaki at toshiba.co.jp>
      Signed-off-by: Akira Iguchi <akira2.iguchi at toshiba.co.jp>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      bde18a2e
  14. 08 2月, 2007 1 次提交
    • H
      ACPI support for IDE devices · e3a59b4d
      Hannes Reinecke 提交于
      This patch implements ACPI integration for generic IDE devices.
      The ACPI spec mandates that some methods are called during suspend and
      resume. And consequently there most modern Laptops cannot resume
      properly without it.
      
      According to the spec, we should call '_GTM' (Get Timing) upon suspend
      to store the current IDE adapter settings.
      Upon resume we should call '_STM' (Set Timing) to initialize the
      adapter with the stored settings; afterwards '_GTF' (Get Taskfile)
      should be called which returns a buffer with some IDE initialisation
      commands. Those commands should be passed to the drive.
      
      There are two module params which control the behaviour of this patch:
      
      'ide=noacpi'
      	Do not call any ACPI methods (Disables any ACPI method calls)
      'ide=acpigtf'
      	Enable execution of _GTF methods upon resume.
      	Has no effect if 'ide=noacpi' is set.
      'ide=acpionboot'
      	Enable execution of ACPI methods during boot.
      	This might be required on some machines if 'ide=acpigtf' is
      	selected as some machines modify the _GTF information
      	depending on the drive identification passed down with _STM.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      e3a59b4d
  15. 18 11月, 2005 1 次提交
  16. 03 7月, 2005 1 次提交
  17. 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