Marvel SAS 6440 not supported, missing mvsas module in kernel

Bug #352336 reported by vincefn
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Brad Figg
Jaunty
Fix Released
Medium
Brad Figg

Bug Description

SRU justification:

Impact: The Serial Attached Scsi (SAS) diver for "Marvell Technology Group Ltd. Device 6440" is not included in the kernel. This prevents using SAS disks with Ubuntu jaunty. This driver is included in a number of motherboards (in my case an ASAS P5N64), and is required both for installation and running Ubuntu. The relevant line in lspci is:
08:00.0 SCSI storage controller [0100]: Marvell Technology Group Ltd. Device [11ab:6440] (rev 02)

Fix: compile "mvsas" module in the linux kernel => option CONFIG_SCSI_MVSAS

Testcase: Installation with Marvel SAS will not detect disk without changes.

---

Binary package hint: linux-image-2.6.28-11-generic

The Serial Attached Scsi (SAS) diver for "Marvell Technology Group Ltd. Device 6440" is not included in the kernel. This prevents using SAS disks with Ubuntu jaunty.
  This driver is included in a number of motherboards (in my case an ASAS P5N64), and is required both for installation and running Ubuntu.

  The relevant line in lspci is:
08:00.0 SCSI storage controller [0100]: Marvell Technology Group Ltd. Device [11ab:6440] (rev 02)

   Solution: compile "mvsas" module in the linux kernel => option CONFIG_SCSI_MVSAS

 cf module description @ http://cateee.net/lkddb/web-lkddb/SCSI_MVSAS.html

tested on Jaunty (updated 2009/03/30), kernel 2.6.28-11-server and 2.6.28-11-generic:

root@:/home/vincent/bug# apt-cache policy linux-image-2.6.28-11-server
[...]
 *** 2.6.28-11.38 0
root@:/home/vincent/bug# apt-cache policy linux-image-2.6.28-11-generic
linux-image-2.6.28-11-generic:
[...]
 *** 2.6.28-11.38 0

Revision history for this message
vincefn (vincent-favre-nicolin) wrote :
Revision history for this message
vincefn (vincent-favre-nicolin) wrote :
Revision history for this message
vincefn (vincent-favre-nicolin) wrote :

NB: The issue is the same for the -generic and -server kernels. The -generic is more important to fix as it is used for the installer cd/dvd images.

Revision history for this message
vincefn (vincent-favre-nicolin) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Thanks vincefn,

It does indeed appear this is not enabled. Will try to ping the kernel team. Thanks.

ogasawara@emiko:~/ubuntu-jaunty/debian/config$ grep -rn "CONFIG_SCSI_MVSAS" *
amd64/config:2603:# CONFIG_SCSI_MVSAS is not set
armel/config.versatile:656:# CONFIG_SCSI_MVSAS is not set
i386/config:2764:# CONFIG_SCSI_MVSAS is not set
lpia/config:2533:# CONFIG_SCSI_MVSAS is not set

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

If you make this modular, please remember to add it to an appropriate udeb for d-i.

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
assignee: nobody → brad-figg
status: Triaged → In Progress
Revision history for this message
Tim Gardner (timg-tpi) wrote :
Changed in linux (Ubuntu):
milestone: none → jaunty-updates
status: In Progress → Fix Committed
Stefan Bader (smb)
description: updated
Revision history for this message
Brad Figg (brad-figg) wrote :

SRU Justification

Impact: Enables SAS drives on motherboards usning the Marvel adapter
Patch Description: Change MVSAS configuration option to enable the use of the driver.
Patch: attached

Test Case: See bug description

Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted linux into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Steve Beattie (sbeattie)
tags: added: hw-specific
Revision history for this message
SomeMan (alexeyn-skvortsov) wrote :

Package linux-image with SAS support still unavailable in jaunty-proposed (or in which package it placed?).
But I tried to compile kernel with this patch - it works fine.
SAS disks and raid on SAS also works.
I use ASUS P6T motherboard with marvell 88SE6320 SAS controller.
The only comment - dmraid does not start automatically, fsck died on boot,
needs to be done in the root-console:
dmraid -ay
mount -a
Ctrl+D

$ dmesg | grep sas
[ 5.557795] mvsas 0000:06:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 5.557806] mvsas 0000:06:00.0: setting latency timer to 64
[ 6.888021] mvsas 0000:06:00.0: phy[0] Get Attached Address 0x5000C5000BA2A0E1 , SAS Address 0x5005043011AB0000
[ 6.888024] mvsas 0000:06:00.0: Rate = 9 , type = 2
[ 6.992021] mvsas 0000:06:00.0: phy[1] Get Attached Address 0x5000C5000BA325C9 , SAS Address 0x5005043011AB0000
[ 6.992024] mvsas 0000:06:00.0: Rate = 9 , type = 2
[ 7.200025] scsi6 : mvsas
[ 7.200185] mvsas 0000:06:00.0: version 0.5.2
[ 7.200186] mvsas 0000:06:00.0: 4 phys, addr 5005043011ab0000

Revision history for this message
SomeMan (alexeyn-skvortsov) wrote :

I test linux-image-2.6.28-12-generic (AMD64) on motherboard ASUS P6T - SAS RAID works good.

$ dpkg -s linux-image-`uname -r`
Package: linux-image-2.6.28-12-generic
Status: install ok installed
Priority: optional
Section: base
Installed-Size: 109596
Maintainer: Ubuntu Kernel Team <email address hidden>
Architecture: amd64
Source: linux
Version: 2.6.28-12.43

$ dmesg | grep -i sas
[ 5.454409] mvsas 0000:06:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 5.454415] mvsas 0000:06:00.0: setting latency timer to 64
[ 6.796021] mvsas 0000:06:00.0: phy[0] Get Attached Address 0x5000C5000BA2A0E1 , SAS Address 0x5005043011AB0000
[ 6.796024] mvsas 0000:06:00.0: Rate = 9 , type = 2
[ 6.900020] mvsas 0000:06:00.0: phy[1] Get Attached Address 0x5000C5000BA325C9 , SAS Address 0x5005043011AB0000
[ 6.900023] mvsas 0000:06:00.0: Rate = 9 , type = 2
[ 7.108023] scsi6 : mvsas
[ 7.108187] mvsas 0000:06:00.0: version 0.5.2
[ 7.108189] mvsas 0000:06:00.0: 4 phys, addr 5005043011ab0000
[ 74.636302] Adding 16779884k swap on /dev/mapper/ddf1_SAS_RAID2. Priority:-1 extents:1 across:16779884k

Revision history for this message
vincefn (vincent-favre-nicolin) wrote :

   I can confirm that 2.6.28-12 (which is now in jaunty's proposed-updates) fixes this issue.

uname -a
Linux gre019099 2.6.28-12-generic #43-Ubuntu SMP Fri May 1 19:31:32 UTC 2009 x86_64 GNU/Linux

 find /lib/modules/ -iname *mvsas*
/lib/modules/2.6.28-12-generic/kernel/drivers/scsi/mvsas.ko

   Note that there are a few related bugs that may be fixed:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/335615
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/327783
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/358875

    It would be nice to have this kernel for the installer CD/DVD images too.

       Cheers,
          Vincent

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Brian Krueger (brian-krueger) wrote :

Should this fix allow me to mount a SATA RAID array with this controller? I've made the update and still can't see my array.

uname -a
Linux crunchmaster 2.6.28-12-generic #43-Ubuntu SMP Fri May 1 19:31:32 UTC 2009 x86_64 GNU/Linux

lspci | grep -i marvell
01:00.0 RAID bus controller: Marvell Technology Group Ltd. MV64460/64461/64462 System Controller, Revision B (rev 01)

Revision history for this message
vincefn (vincent-favre-nicolin) wrote :

> Should this fix allow me to mount a SATA RAID array with this controller?

  The question is: does the mvsas module actually support hardware raid ?

  You may want to ask the modules' author. Apparently most people under linux use software raid which is quite good.

Revision history for this message
Brian Krueger (brian-krueger) wrote :

This is probably beyond the scope of this bug fix, but I turned hardware raid off and still can't see my drives. If I plug one into the intel SATA controller it works fine.

Revision history for this message
vincefn (vincent-favre-nicolin) wrote :

I misread your first message - yes it is defintely beyond the scope of that bug fix, because you want SATA, not SAS.

Have you looked at: http://wiki.debian.org/pata_marvell ?

Another person (see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/335615) used that paged and managed to see its sata disks, though not with raid.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.28-13.44

---------------
linux (2.6.28-13.44) jaunty-proposed; urgency=low

  [ Stefan Bader ]

  * Revert "SAUCE: [jaunty] ALSA: Add retry for Intel8x0 clock measurement"
  * Revert "SAUCE: [jaunty] ALSA: Fix clock and buffer calculations for
    Intel8x0"
  * Revert "SAUCE: [jaunty] ALSA: Fix buffer positions and checks"

linux (2.6.28-12.43) jaunty-proposed; urgency=low

  [ Amit Kucheria ]

  * Enable SYN_COOKIES for iop32x and versatile flavours
    - LP: #361687
  * SAUCE: Quirk for BT USB device on MacbookPro to be reset before use
    - LP: #332443

  [ Brad Figg ]

  * [jaunty] Add missing mvsas (Marvel SAS 6440) module configuration.
    - LP: #352336

  [ Chuck Short ]

  * SAUCE: [USB] Unusual Device support for Gold MP3 Player Energy
    - LP: #125250

  [ Daniel T Chen ]

  * SAUCE: [jaunty] ALSA: Fix buffer positions and checks
    - LP: #345627
  * SAUCE: [jaunty] ALSA: Fix clock and buffer calculations for Intel8x0
    - LP: #345627
  * SAUCE: [jaunty] ALSA: Add retry for Intel8x0 clock measurement
    - LP: #345627

  [ Luke Yelavich ]

  * disable CONFIG_SND_HDA_INPUT_BEEP on amd64 and i386
    - LP: #331589

  [ Makito SHIOKAWA ]

  * [ARM] 5404/1: Fix condition in arm_elf_read_implies_exec() to set
    READ_IMPLIES_EXEC
    - LP: #364358

  [ Manoj Iyer ]

  * SAUCE: Added quirk to fix key release for Samsung NC20
    - LP: #360247

  [ Oleg Nesterov ]

  * posix timers: fix RLIMIT_CPU && fork()
    - LP: #361508

  [ Scott James Remnant ]

  * [Config] Disable libusual and the ub driver
    - LP: #364538

  [ Stefan Bader ]

  * Disable unwanted staging builds
    - LP: #366144
  * Remove prism2_usb driver from ubuntu and use the one from staging
    - LP: #325366
  * SAUCE: Make rtl8187se depend on WIRELESS_EXT
    - LP: #366144
  * Disable CONFIG_RTL8187SE for armel.versatile
    - LP: #366144

  [ Tejun Heo ]

  * libata: handle SEMB signature better
    - LP: #257790

  [ Tim Gardner ]

  * Set USB_SERIAL=m for i386/amd64
    - LP: #345002
  * SAUCE: Jaunty - aic79xx - set reset delay to 5 seconds, down from 15.
    - LP: #79542
  * SAUCE: (drop after 2.6.28) Wifi suspend/resume scan timeout fixes
    - LP: #336055
  * Sony laptop: Sony Vaio laptops do not enable wwan power by default.
    - LP: #364678

  [ Tyler Hicks ]

  * SAUCE: (drop after 2.6.28) eCryptfs: Larger buffer for encrypted
    symlink targets
    - LP: #357345

  [ Upstream Kernel Changes ]

  * V4L/DVB (9999): gspca - zc3xx: Webcam 046d:089d added.
    - LP: #326674
  * V4L/DVB (10044): gspca - pac7311: Webcam 093a:2620 added.
    - LP: #363195
  * hwmon: (it87) Add support for the ITE IT8720F
    - LP: #357766
  * vgacon: Return the upper half of 512 character fonts
    - LP: #355057
  * drm/i915: add support for G41 chipset
    - LP: #365958

 -- Stefan Bader <email address hidden> Mon, 25 May 2009 17:30:40 +0200

Changed in linux (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.