1. 31 Jul, 2007 1 commit
    • Meelis Roos's avatar
      fix integer overflow warning in i2o_block · db7526f9
      Meelis Roos authored
      
      
      drivers/message/i2o/i2o_block.c: In function 'i2o_block_transfer':
      drivers/message/i2o/i2o_block.c:837: warning: integer overflow in expression
      
      msg->u.head[1] = cpu_to_le32(I2O_CMD_PRIVATE << 24 | HOST_TID << 12 | tid);
      and I2O_CMD_PRIVATE is defined as 0xFF.  This gets "0xFF0100 | tid" and fits
      into 32-bit unsigned but not into 32-bit signed integer properly.  Target
      value is defined as u32 so the claculation does not fit during computation.
      
      Change local variable tid to u32 so the whole expression is of u32 type and
      fits well into u32 result.
      Signed-off-by: default avatarMeelis Roos <mroos@linux.ee>
      Cc: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      db7526f9
  2. 24 Jul, 2007 1 commit
  3. 19 Jul, 2007 1 commit
    • Paul Mundt's avatar
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt authored
      Slab destructors were no longer supported after Christoph's
      c59def9f
      
       change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      20c2df83
  4. 17 Jul, 2007 1 commit
  5. 27 Mar, 2007 1 commit
    • Vasily Averin's avatar
      [PATCH] i2o: block IO errors on i2o disk · d1985ad1
      Vasily Averin authored
      I2O subsystem has been broken in mainstream several months ago (after
      2.6.18).  Commit 4aff5e23
      
       from Jens
      Axboe split struct request ->flags into two parts: cmd_type and
      cmd_flags.
      
      In i2o layer this patch has replaced flag REQ_SPECIAL by the according
      cmd_type.  However i2o has used REQ_SPECIAL not as command type but as
      driver-specific flag for the debug purposes.  As result all i2o requests
      have type "special" now, are not processed to the hardware and fail with
      I/O error:
      
         i2o/hda:<3>Buffer I/O error on device i2o/hda, logical block 0
        Buffer I/O error on device i2o/hda, logical block 0
        Buffer I/O error on device i2o/hda, logical block 0
         unable to read partition table
        block-osm: device added (TID: 207): i2o/hda
      
      The following patch removes the extra debug checks without any drawbacks and
      restores the normal driver's work.
      Signed-off-by: default avatarVasily Averin <vvs@sw.ru>
      Acked-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d1985ad1
  6. 07 Dec, 2006 1 commit
  7. 22 Nov, 2006 1 commit
  8. 30 Sep, 2006 1 commit
    • Jens Axboe's avatar
      [PATCH] Split struct request ->flags into two parts · 4aff5e23
      Jens Axboe authored
      
      
      Right now ->flags is a bit of a mess: some are request types, and
      others are just modifiers. Clean this up by splitting it into
      ->cmd_type and ->cmd_flags. This allows introduction of generic
      Linux block message types, useful for sending generic Linux commands
      to block devices.
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      4aff5e23
  9. 26 Jun, 2006 1 commit
  10. 26 Mar, 2006 1 commit
  11. 08 Jan, 2006 1 commit
    • Christoph Hellwig's avatar
      [PATCH] Add block_device_operations.getgeo block device method · a885c8c4
      Christoph Hellwig authored
      
      
      HDIO_GETGEO is implemented in most block drivers, and all of them have to
      duplicate the code to copy the structure to userspace, as well as getting
      the start sector.  This patch moves that to common code [1] and adds a
      ->getgeo method to fill out the raw kernel hd_geometry structure.  For many
      drivers this means ->ioctl can go away now.
      
      [1] the s390 block drivers are odd in this respect.  xpram sets ->start
          to 4 always which seems more than odd, and the dasd driver shifts
          the start offset around, probably because of it's non-standard
          sector size.
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Cc: Jens Axboe <axboe@suse.de>
      Cc: <mike.miller@hp.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a885c8c4
  12. 06 Jan, 2006 5 commits
  13. 24 Jun, 2005 4 commits
    • Markus Lidel's avatar
      [PATCH] I2O: Lindent run and replacement of printk through osm printing functions · f33213ec
      Markus Lidel authored
      
      
      Lindent run and replaced printk() through the corresponding osm_*() function
      Signed-off-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f33213ec
    • Markus Lidel's avatar
      [PATCH] I2O: second code cleanup of sparse warnings and unneeded syncronization · 9e87545f
      Markus Lidel authored
      
      
      Changes:
       - Added header "core.h" for i2o_core.ko internal definitions
       - More sparse fixes
       - Changed display of TID's in sysfs attributes from XXX to 0xXXX
       - Use the right functions for accessing I/O and normal memory
       - Removed error handling of SCSI device errors and let the SCSI layer
         take care of it
       - Added new device / removed device handling to SCSI-OSM
       - Make status access volatile
       - Cleaned up activation of I2O controller
       - Removed unnecessary wmb() and rmb() calls
       - Use own struct i2o_io for I/O memory instead of struct i2o_dma
      Signed-off-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      9e87545f
    • Markus Lidel's avatar
      [PATCH] I2O: new sysfs attributes and Adaptec specific block device access and 64-bit DMA support · f10378ff
      Markus Lidel authored
      
      
      Changes:
       - Added Bus-OSM which could be used by user space programs to reset a
         channel on the controller
       - Make ioctl's in Config-OSM obsolete in prefer for sysfs attributes and
         move those to its own file
       - Added sysfs attribute for firmware read and write access for I2O
         controllers
       - Added special handling of firmware read and write access for Adaptec
         controllers
       - Added vendor id and product id as sysfs-attribute to Executive classes
       - Added automatic notification of LCT change handling to Exec-OSM
       - Added flushing function to Block-OSM for later barrier implementation
       - Use PRIVATE messages for Block access on Adaptec controllers, which are
         faster then BLOCK class access
       - Cleaned up support for Promise controller
       - New messages are now detected using the IRQ status register as
         suggested by the I2O spec
       - Added i2o_dma_high() and i2o_dma_low() functions
       - Added facility for SG tablesize calculation when using 32-bit and
         64-bit DMA addresses
       - Added i2o_dma_map_single() and i2o_dma_map_sg() which could build the
         SG list for 32-bit as well as 64-bit DMA addresses
      Signed-off-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f10378ff
    • Markus Lidel's avatar
      [PATCH] I2O: first code cleanup of spare warnings and unused functions · f88e119c
      Markus Lidel authored
      
      
      Changes:
      
       - Removed unnecessary checking of NULL before calling kfree()
       - Make some functions static
       - Changed pr_debug() into osm_debug()
       - Use i2o_msg_in_to_virt() for getting a pointer to the message frame
       - Cleaned up some comments
       - Changed some le32_to_cpu() into readl() where necessary
       - Make error messages of OSM's look the same
       - Cleaned up error handling in i2o_block_end_request()
       - Removed unused error handling of failed messages in Block-OSM, which
         are not allowed by the I2O spec
       - Corrected the blocksize detection in i2o_block
       - Added hrt and lct sysfs-attribute to controller
       - Call done() function in SCSI-OSM after freeing DMA buffers
       - Removed unneeded variable for message size calculation in
         i2o_scsi_queuecommand()
       - Make some changes to remove sparse warnings
       - Reordered some functions
       - Cleaned up controller initialization
       - Replaced some magic numbers by defines
       - Removed unnecessary dma_sync_single_for_cpu() call on coherent DMA
       - Removed some unused fields in i2o_controller and removed some unused
         functions
      Signed-off-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f88e119c
  14. 14 Jun, 2005 1 commit
  15. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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