16 Aug, 2008

5 commits


27 Jul, 2008

1 commit


21 Jun, 2008

3 commits


03 May, 2008

1 commit

  • megaraid_sas suspend and resume are inappropriatelly placed in
    __devinit section. Remove those placements and make the stuff
    dependent on CONFIG_PM.

    While at it, mark remove function as __devexit.

    Signed-off-by: Jiri Slaby
    Acked-by: "Yang, Bo"
    Signed-off-by: James Bottomley

    Jiri Slaby
     

30 Apr, 2008

2 commits

  • Update the Version and Changelog for megaraid_sas Driver

    Signed-off-by: Bo Yang
    Signed-off-by: James Bottomley

    bo yang
     
  • Newer Dell CERC firmware (>= 6.62) implement a random deletion handling
    compatible with the legacy megaraid driver. The legacy handling shifted
    the target ID by 0x80 only for I/O commands (READ/WRITE/etc), whereas
    megaraid_mbox shifts the target ID always if random deletion is supported.
    The resulted in megaraid_mbox sending an INQUIRY to the wrong channel, and
    not finding any devices, obviously.

    So we disable the random deletion support if the offending firmware is
    found.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=6695

    Signed-off-by: Hannes Reinecke
    Signed-off-by: Andrew Morton
    Acked-by: "Yang, Bo"
    Signed-off-by: James Bottomley

    Hannes Reinecke
     

22 Apr, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: (36 commits)
    SCSI: convert struct class_device to struct device
    DRM: remove unused dev_class
    IB: rename "dev" to "srp_dev" in srp_host structure
    IB: convert struct class_device to struct device
    memstick: convert struct class_device to struct device
    driver core: replace remaining __FUNCTION__ occurrences
    sysfs: refill attribute buffer when reading from offset 0
    PM: Remove destroy_suspended_device()
    Firmware: add iSCSI iBFT Support
    PM: Remove legacy PM (fix)
    Kobject: Replace list_for_each() with list_for_each_entry().
    SYSFS: Explicitly include required header file slab.h.
    Driver core: make device_is_registered() work for class devices
    PM: Convert wakeup flag accessors to inline functions
    PM: Make wakeup flags available whenever CONFIG_PM is set
    PM: Fix misuse of wakeup flag accessors in serial core
    Driver core: Call device_pm_add() after bus_add_device() in device_add()
    PM: Handle device registrations during suspend/resume
    block: send disk "change" event for rescan_partitions()
    sysdev: detect multiple driver registrations
    ...

    Fixed trivial conflict in include/linux/memory.h due to semaphore header
    file change (made irrelevant by the change to mutex).

    Linus Torvalds
     

20 Apr, 2008

1 commit


19 Apr, 2008

2 commits


08 Apr, 2008

3 commits


12 Feb, 2008

1 commit

  • The MegaRAID driver's common management module (megaraid_mm.c) creates a
    char device used by the management tool "megarc" from LSI Logic (and
    possibly other management tools).

    In 2.6 with udev, this device doesn't get created because it is not
    registered in sysfs.

    I first fixed this by registering a class "megaraid_mm", but realized that
    this should probably be moved to misc devices, instead of taking up a char
    major. This is because only 1 device is used, even if there are multiple
    adapters - the minor is never used (the adapter info is in the ioctl block
    sent to the driver, not detected based on the minor number as one might
    think). So it is a complete waste to have an entire major taken by this.

    So it now uses a misc device which I named "megadev0" (the name that megarc
    expects), and has a dynamic minor (previoulsy a dynamic major was used).

    I have tested this on my own system with the megarc tool, and it works just
    as fine as before (only now the device gets created correctly by udev).

    Acked-by: "Patro, Sumant"
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Thomas Horsten
     

07 Feb, 2008

1 commit


03 Feb, 2008

1 commit


31 Jan, 2008

1 commit

  • With the sg table code, every SCSI driver is now either chain capable
    or broken (or has sg_tablesize set so chaining is never activated), so
    there's no need to have a check in the host template.

    Also tidy up the code by moving the scatterlist size defines into the
    SCSI includes and permit the last entry of the scatterlist pools not
    to be a power of two.
    Signed-off-by: James Bottomley

    James Bottomley
     

24 Jan, 2008

1 commit

  • Change megaraid_pci_driver_g variable name so that it matches the modpost
    whitelist that allows pointers to init text/data.

    WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

    Signed-off-by: Randy Dunlap
    Signed-off-by: James Bottomley

    Randy Dunlap
     

12 Jan, 2008

7 commits


23 Oct, 2007

1 commit


20 Oct, 2007

1 commit


16 Oct, 2007

1 commit


20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

15 Jul, 2007

1 commit


01 Jun, 2007

2 commits


30 May, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] megaraid_sas: intercept cmd timeout and throttle io
    [SCSI] fusion: Fix |/|| confusion
    [SCSI] aic94xx: asd_clear_nexus should fail if the cleared task does not complete
    [SCSI] aic7xxx: fix aicasm build failure with gcc-3.4.6
    [SCSI] aacraid: apply commit config for reset_devices flag
    [SCSI] sd: fix refcounting regression in suspend/resume routines
    [SCSI] aacraid: fix panic on short Inquiry
    [SCSI] aacraid: Correct sa platform support. (Was: [Bug 8469] Bad EIP value on pentium3 SMP kernel-2.6.21.1)
    [SCSI] NCR53C9x: correct spelling mistake in deprecation notice
    [SCSI] tgt: fix a rdma indirect transfer error bug
    [SCSI] MegaRAID: Update MAINTAINERS email-id
    [SCSI] stex: minor cleanup and version update
    [SCSI] stex: fix reset recovery for console device
    [SCSI] stex: extend hard reset wait time
    [SCSI] stex: fix id mapping issue
    [SCSI] ipr: Proper return codes for eh_dev_reset for SATA devices
    [SCSI] zfcp: IO stall after deleting and path checker changes after reenabling zfcp devices
    [SCSI] zfcp: avoid clutter in erp_dbf

    Linus Torvalds
     

24 May, 2007

1 commit

  • eh_timed_out call back (megasas_reset_timer) is used to throttle io
    to the adapter when it is called the first time for a scmd.
    The MEGASAS_FW_BUSY flag is set and can_queue reduced to 16.
    The can_queue is restored from completion routine in following
    two conditions : 5 seconds has elapsed and
    the # of outstanding cmds in FW is < 17.

    Signed-off-by: Sumant Patro
    Signed-off-by: James Bottomley

    Sumant Patro