Jump to content

Driver for LSI MegaRAID SAS family


dukzcry
 Share

402 posts in this topic

Recommended Posts

Here's my driver for LSI MegaRAID SAS family of controllers called SASMegaRAID.kext. This one was requested few times at InsanelyMac and other Mac-related communities.

Download link https://github.com/dukzcry/osx-goodies/releases or https://www.insanelymac.com/forum/files/file/306-sasmegaraidkext/
F.A.Q.:

Q: I can't manage controller via supplied utility

A: Only monitoring functional is supported, management is done via controller BIOS
Q: Any chance to make cards based on SAS2208 chip work?
A: Not currently, the chip belongs to the same family, but it requires a lot of handling different from common handling for supported cards.
Q: The driver loads but my device doesn't show up anywhere in profiler. What should I do?
A: Try inverting "PreferMSI" key value. It's under "Settings" dictionary in kext's plist. 
Q: macOS doesn't see my volumes
A: Set them as virtual (logical) disks in controller's BIOS. If no luck try "Uncontiguous enumeration.zip" version. See full issue report https://www.insanelymac.com/forum/forums/topic/285197-driver-for-lsi-megaraid-sas-family/?do=findComment&comment=1987665

Q: Is it possible to push more from my setup?
A: It may be.

The plist from "Unsafe settings unlocked.zip" allows tweaking of dangerous options. Before playing with them you need to detach all HDDs with critical data and attach some spare HDD for doing the tweaks. The "MaxSGL" option is number of scatter gather list entries you controller can handle. The "MaxTransferSize" determines the maximum size of data transfer (in bytes) per request your controller can catch. If you set them to some enormously big value then they will be truncated to the max values your hardware can achieve (may still be not safe enough for successful data transfers). "MaxTransferSizePerSegment" does the same but for a single SGL entry (will never be larger than MaxTransferSize). For the tests you need to stick to the system.log and start a transfer of a >= 100gb data. If the settings you set are inappropriate, you'll see the I/O errors.

Q: My Mac stopped to go sleep after i've loaded your kext.
A: This is awaited. See https://www.insanelymac.com/forum/forums/topic/285197-driver-for-lsi-megaraid-sas-family/?do=findComment&comment=1986269 Use kext from "Unsafe settings unlocked.zip" and set "AllowSleep" key to true.

Q: Your driver doesn't work for me. Are there any alternatives?
A: Yes there is one https://www.insanelymac.com/forum/forums/topic/314799-guide-z820-el-capitan-the-great-guide-sucess/?do=findComment&comment=2556863

Q: I get "mfiutil: mfi_open: not such file or directory" error

A: It maybe that unit number of you device is not 0 (which is default). Try the following:

$ ls /dev/mfi?

/dev/mfi2

$ sudo mfiutil -u 2

Edited by dukzcry
  • Like 11
Link to comment
Share on other sites

  • 3 weeks later...

Hi, hackintom!

Yep, doing solely, but it's not so large project, as it may look :)

 

BIG KUDOS !!! Seriously...
I wish you all the luck and bravery in the world to get the job done

Ah, thank you much!

 

By the way, are you still working on it ?

Yes, at my spare time, when not busy with other stuff.
The current task is to port/write some RAID management utility (i can't just use vendor utility called "megacli", because OS X doesn't have Linux/FreeBSD emulating facility), which is another medium task.

upd 18.02.12: Finished monthly driver test. My zevo zfs's data partition was attached to raid card. Kext was compiled with assertions placed on scsi path. During that time i've did what i usually do with media data: torrents (seeding all time; downloading), movies and music "consuming", massive data copying plus a bit of hdd speed tests. Nary data degradation or kernel panic. Zfs checkup result.
Link to comment
Share on other sites

  • 1 month later...

Hi,

Big thanks!

 

As for 9260:

Michael Bean for initial testing of 9260 card. OS X 10.7.5?

He contacted me directly via e-mail. I didn't ask him for details. Don't know under what alias he registered here, so can drop you a PM with his mail address, if you're interested.

Link to comment
Share on other sites

Hi, I have a PERC 6 in Mountain Lion and using your kext disables USB and doesn't load the drives attached to the PERC, nor does it add it to the System Profiler. Any idea why it would be? The driver is loaded and shown in IORegistry Explorer.

 

Thanks.

 

*Update* USB does still work, but not until either I VNC'd in or waited a long while. I don't know which made it work.

Edited by Black Knight
Link to comment
Share on other sites

Here is my console log.

 

3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] super->InitializeController
3/1/13 5:35:50.446 PM com.apple.launchd[1]: *** launchd[1] has started up. ***
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] [Helper] Region starting at 0xf7c40000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Memory mapped at virtual address 0xc5e4d000, length 8192
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Attach
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Transition_Firmware
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Firmware state: 0xb0000000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] [Helper] Looks like MSI interrupts are supported
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] [Helper] MSI IR line: 1
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] DMA: 64-bit, max commands: 1008, Max SGE Count: 33
3/1/13 5:35:50.466 PM com.apple.launchd[1]: *** Verbose boot, will log to /dev/console. ***
3/1/13 5:36:01.000 PM kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start
3/1/13 5:36:01.000 PM kernel[0]: FireWire runtime power conservation disabled. (2)
3/1/13 5:36:01.000 PM kernel[0]: SATA WARNING: IDENTIFY DEVICE checksum not implemented.
3/1/13 5:35:50.478 PM com.apple.launchd[1]: *** Shutdown logging is enabled. ***
3/1/13 5:36:01.000 PM kernel[0]: com.apple.AppleFSCompressionTypeDataless load succeeded
3/1/13 5:36:01.362 PM com.apple.launchd[1]: (com.apple.automountd) Unknown key for boolean: NSSupportsSuddenTermination
3/1/13 5:36:01.000 PM kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Initccb
3/1/13 5:36:01.000 PM kernel[0]: AppleIntelCPUPowerManagementClient: ready
3/1/13 5:36:01.000 PM kernel[0]: vendor:device: 0x8086:0x1503.
3/1/13 5:36:01.000 PM kernel[0]: AppleIntelE1000e(Info): Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
3/1/13 5:36:01.000 PM kernel[0]: AppleIntelE1000e(Info): changing MTU from 0 to 1500
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Initialize_Firmware
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] MRAID_Poll
3/1/13 5:36:01.000 PM kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/Maxtor 6V300F0 Media/IOGUIDPartitionScheme/ML2@2
3/1/13 5:36:01.000 PM kernel[0]: BSD root: disk0s2, major 1, minor 2
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] GetInfo
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Do_Management: opcode: 0x1010000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] PointToData
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Paddr: 0xdbaa000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] MRAID_Poll
3/1/13 5:36:01.000 PM kernel[0]: AppleIntelE1000e(Info): AppleIntelE1000e:WOL = 2
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Active FW APP  Version 1.40.342-1650 date May 11 2012 time 11:47:31
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Active FW BIOS Version 2.07.00 date Jan  6 2010 time 05:49:42
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Active FW BCON Version 2.2-22-e_15-Rel date Nov 21 2011 time 12:06:00
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Active FW PCLI Version 01.40-010:#%00008 date Aug 21 2009 time 00:10:02
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Active FW BTBL Version 1.00.00.01-0012 date Dec 15 2010 time 15:20:30
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Max Arms Per VD 32 Max Arrays 128
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Serial 1122334455667788� present 0x3d fw time 415492548
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] NVRAM 32 flash 4
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Memory Correctable Errors 0 Memory Uncorrectable Errors 0 Cluster Permitted 0 Cluster Active 0
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] raid_lvl 0xdf7 adapt_ops 0x1f45fbf ld_ops 0x3f
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Min Stripe Size 4 pd_ops 0x307 pd_mix 0x7
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] ECC Bucket Count 0
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] sq_nm 5 Predictive Fail Poll Interval: 300sec Interrupt Throttle Active Count 16 Interrupt Throttle Completion: 50us
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Rebuild Rate: 30% PR Rate: 30% Background Rate 30 Check Consistency Rate: 30%
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Reconstruction Rate: 30% Cache Flush Interval: 4s Max Drives to Spinup at One Time 2 Delay Among Spinup Groups: 12s
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Ecc Bucket Size 15
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Ecc Bucket Leak Rate: 1440 Minutes
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Vendor 0x1000 device 0x60 subvendor 0x1028 subdevice 0x1f0c
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Type 0x2 (frontend) port_count 0 Addresses 0 0 0 0 0 0 0 0
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Type 2 (backend) port_count 8 Addresses 1221000000000000 1221000001000000 0 0 1221000004000000 1221000005000000 1221000006000000 1221000007000000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] 6 physical drive(s) present
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Enabled options: Physical Drive Coercion Mode  Auto Rebuild  Battery Warning 
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] GetBBUInfo
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Do_Management: opcode: 0x5010000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] PointToData
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Paddr: 0xdbab000
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] MRAID_Poll
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] BBU voltage 4063, current 51, temperature 24, status 0x0
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Details: guage 49376 charger state 1
3/1/13 5:36:01.000 PM kernel[0]: rem capacity 1410 full capacity 1410
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] BBU type: BBU, status good, 100% charged
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] ReportHBAConstraints
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Resuming after sleep
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] super->StartController
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] ProcessParallelTask: Opcode 0x0, Target 0
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] LogicalDiskCmd
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Started processing
3/1/13 5:36:01.000 PM kernel[0]: [sASMegaRAID] Command queued

Link to comment
Share on other sites

Oops, i should definitely rework MSI support. Please pick the normal driver version and set "PreferMSI" property under "Settings" dict in Info.plist to "false". Then, it should work for you.

Ah, it will be overwritten anyway by checkout from hardware. Sorry, i should go away now. Please wait, i'll fix, recompile and upload a new kext.

Link to comment
Share on other sites

Also getting this right before the desktop loads:

 

3/1/13 10:37:09.984 PM configd[17]: InterfaceNamer: timed out waiting for IOKit to quiesce
3/1/13 10:37:09.984 PM configd[17]: Busy services :
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2 [1, 83818 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert [1, 83714 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert/PCI0@0 [1, 83488 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI [1, 83482 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG1@1,1 [1, 83482 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG1@1,1/IOPCI2PCIBridge [1, 82843 ms]
3/1/13 10:37:09.984 PM configd[17]:   iMac13,2/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG1@1,1/IOPCI2PCIBridge/pci1000,60@0 [!matched, 1, 82843 ms]

 

Wow, you're quick. I was just trying the edit you said to do when I noticed you wiped it out. LOL. I can wait.

Link to comment
Share on other sites

Wow dude!!! You're awesome. It works perfectly. All single drives (4x 2TB Western Digital Green) and 2x 300GB Velociraptors in RAID 0 are mounted. They show up as external instead of internal though. Is there a way we can make that configurable? Also, the only other thing that would have made it cosmetically perfect is if it actually showed up as a SAS controller in System Profiler instead of Parallel SCSI, but that is so not necessary. I'm just happy that my RAID drives are usable in Mountain Lion.

 

Thank you so much!

  • Like 1
Link to comment
Share on other sites

 

 

They show up as external instead of internal though. Is there a way we can make that configurable?

The driver doesn't interfere in SCSI data to/from device. OS X sees what was actually come from controller. Using driver for an old LSI product you'll see same behaviour: http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=65316 All are shown as external.
I may clear "removable media" bit in SCSI data coming from INQUIRY query, but i don't consider this critical, even LSI itself doesn't do it.

 

Also, the only other thing that would have made it cosmetically perfect is if it actually showed up as a SAS controller in System Profiler instead of Parallel SCSI, but that is so not necessary.

The cause of this is given in readme: "This family of controllers uses SCSI protocol for data passing, so your device will be presented as parallel SCSI controller to the system". It's impossible to change this representation. I've just used a public API, which Apple provides for 3rd parties.
Vendors being in partnership with Apple, or Apple itself (e.g. Mac Pro RAID card) may get round such limitations in their drivers, for sure. HighPoint, which doesn't pay fees to Apple has the same issue: http://www.tonymacx86.com/attachments/26370d1343835396-hpt_2720_4.png.html :D I don't know though, do their devices use SCSI protocol too or they emulate it in drivers for some reason.
Link to comment
Share on other sites

 

 


Report that since your last commit i'm not able anymore to build kext under ML. (Last Xcode)

Hello, Fred.
Did you meant that commit: https://github.com/d...ba061afba3feea9 ? As latest one should break nothing.
upd: Fixed in this: https://github.com/d...14be2791d77a381

 


They show up as external instead of internal though.

And i forgot, what about obvious solutions? Like option 3 or 4 from here: http://lnx2mac.blogs...disk-icons.html

FredWst:

 


Working with ... PERC6

 


Hi, I have a PERC 6 in Mountain Lion and using your kext disables USB and doesn't load the drives attached to the PERC, nor does it add it to the System Profiler

Since you had same version of driver at that time, a question for you, Fred: when you used that initial version, if it worked for you out of box, did you get "[sASMegaRAID] IRQ: ..." or else "[sASMegaRAID] MSI IR: ..." in system messages, i.e. did MSIs work for you or not?

Thanks.
Link to comment
Share on other sites

FredWst:

 

 

 

 

Since you had same version of driver at that time, a question for you, Fred: when you used that initial version, if it worked for you out of box, did you get "[sASMegaRAID] IRQ: ..." or else "[sASMegaRAID] MSI IR: ..." in system messages, i.e. did MSIs work for you or not?

 

Thanks.

 

 

PMAP: PCID enabled
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
vm_page_bootstrap: 2025768 free pages and 55000 wired pages
kext submap [0xffffff7f80741000 - 0xffffff8000000000], kernel text [0xffffff8000200000 - 0xffffff8000741000]
zone leak detection enabled
standard timeslicing quantum is 10000 us
standard background quantum is 2500 us
mig_table_max_displ = 74
corecrypto kext started!
Running kernel space in FIPS MODE
Plist hmac value is 735d392b68241ef173d81097b1c8ce9ba283521626d1c973ac376838c466757d
Computed hmac value is 735d392b68241ef173d81097b1c8ce9ba283521626d1c973ac376838c466757d
corecrypto.kext FIPS integrity POST test passed!
corecrypto.kext FIPS AES CBC POST test passed!
corecrypto.kext FIPS TDES CBC POST test passed!
corecrypto.kext FIPS AES ECB AESNI POST test passed!
corecrypto.kext FIPS AES XTS AESNI POST test passed!
corecrypto.kext FIPS SHA POST test passed!
corecrypto.kext FIPS HMAC POST test passed!
corecrypto.kext FIPS ECDSA POST test passed!
corecrypto.kext FIPS DRBG POST test passed!
corecrypto.kext FIPS POST passed!
[sleepEnabler] Registering PowerManagement dispatch table with PM_DISPATCH_VERSION 102...
[sleepEnabler] To disable (if the kernel panics), please specify the boot argument pmVersion=0
[sleepEnabler] Calling pmInitComplete()...
NullCPUPowerManagement::init: properties=0xffffff801185af80
NullCPUPowerManagement::start
AppleACPICPU: ProcessorId=1 LocalApicId=32 Enabled
AppleACPICPU: ProcessorId=2 LocalApicId=34 Enabled
AppleACPICPU: ProcessorId=3 LocalApicId=50 Enabled
AppleACPICPU: ProcessorId=4 LocalApicId=52 Enabled
AppleACPICPU: ProcessorId=5 LocalApicId=33 Enabled
AppleACPICPU: ProcessorId=6 LocalApicId=35 Enabled
AppleACPICPU: ProcessorId=7 LocalApicId=51 Enabled
AppleACPICPU: ProcessorId=8 LocalApicId=53 Enabled
AppleACPICPU: ProcessorId=9 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=10 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=11 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=12 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=13 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=14 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=15 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=16 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=17 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=18 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=19 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=20 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=21 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=22 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=23 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=24 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=25 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=26 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=27 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=28 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=29 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=30 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=31 LocalApicId=255 Disabled
AppleACPICPU: ProcessorId=32 LocalApicId=255 Disabled
calling mpo_policy_init for TMSafetyNet
Security policy loaded: Safety net for Time Machine (TMSafetyNet)
calling mpo_policy_init for Sandbox
Security policy loaded: Seatbelt sandbox policy (Sandbox)
calling mpo_policy_init for Quarantine
Security policy loaded: Quarantine policy (Quarantine)
Copyright (c) 1982, 1986, 1989, 1991, 1993
 The Regents of the University of California. All rights reserved.
MAC Framework successfully initialized
using 16384 buffer headers and 10240 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
IOAPIC: Version 0x20 Vectors 96:119
ACPI: System State [s0 S4 S5]
PFM64 (40 cpu) 0xff80000000, 0x80000000
HPET: map device registers failed
HWSensors Project Copyright 2013 netkas, slice, usr-sse2, kozlek, navi, THe KiNG. All rights reserved.
waitForSystemMapper
Backtrace 0xffffff8000650cdf 0xffffff8000650859 0xffffff80006507c0 0xffffff7f80f75b1b 0xffffff7f80f75750 0xffffff800063108c 0xffffff800062d2d0
 Kernel Extensions in backtrace:
	 org.netkas.driver.FakeSMC(432.0)[E139A81D-EEDE-3565-9CA6-60AE863104B1]@0xffffff7f80f71000->0xffffff7f80f83fff
	 dependency: com.apple.iokit.IOACPIFamily(1.4)[A35915E8-C1B0-3C0F-81DF-5515BC9002FC]@0xffffff7f80f68000
[ PCI configuration begin ]
FakeSMCDevice: 15 preconfigured key(s) added
FakeSMCDevice: 5 key(s) exported from Clover EFI
SMC: successfully initialized
CPUSensors: CPU family 0x6, model 0x2c, stepping 0x2, cores 4, threads 8, TJmax 95
CPUSensors: platform set to k74
mbinit: done [96 MB total pool size, (64/32) split]
Pthread support ABORTS when sync kernel primitives misused
rooting via boot-uuid from /chosen: DCFE3114-F1CD-30EA-87DF-1157FFCC3847
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
com.apple.AppleFSCompressionTypeZlib kmod start
com.apple.AppleFSCompressionTypeDataless kmod start
com.apple.AppleFSCompressionTypeZlib load succeeded
com.apple.AppleFSCompressionTypeDataless load succeeded
PCI configuration changed (bridge=4 device=0 cardbus=0)
[ PCI configuration end, bridges 8 devices 20 ]
[sASMegaRAID] IRQ: 32
BCM5722D (Build date/time: Feb 28 2013 19:55:43)
[sASMegaRAID] DMA: 64-bit, max commands: 1008, Max SGE Count: 33
GeForceSensors (pci6@0): chipset: GT218 (NVA8) bios: 70.18.76.00
[sASMegaRAID] 5 of physical drive(s) present
[sASMegaRAID] Enabled options: Physical Drive Coercion Mode Auto Rebuild Battery Warning
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/Maxtor 6L120M0 Media/IOGUIDPartitionScheme/Osx@2
BSD root: disk0s2, major 1, minor 3
[sASMegaRAID] BBU type: BBU, status good, 98% charged
SuperIODevice: [Fatal] found unsupported ship ID=0xffff
my_name_adlan_BCM5722D: Model: BCM5722 NetXtreme Server Gigabit Ethernet
my_name_adlan_BCM5722D: Loaded successfully
Kernel is LP64
GeForceSensors (pci6@0): started
my_name_adlan_BCM5722D: Ethernet address 00:10:18:73:6b:ce
Waiting for DSMOS...
macx_swapon SUCCESS
ioqueue_depth = 1007, ioscale = 32
Previous Shutdown Cause: 5
NVDANV50HAL loaded and registered.
[iOBluetoothHCIController][start] -- completed
DSMOS has arrived
my_name_adlan_BCM5722D: Link up: 100 MBps, full duplex. Flow control: symmetric
ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPowerManagement) timed out
[AGPM Controller] build GPUDict by Vendor10deDevice10c3
AppleTyMCEDriver::start coreVIDPID = 0x2c708086 Number of packages = 1 Number of cpus = 8 memory monitor trough MCA
ioqueue_depth = 1007, ioscale = 32
ioqueue_depth = 1007, ioscale = 32

 

Bootloader Clover, with my DSDT patch.

All hardware working except PowerManagement.

I got issue with HPET, after fiew time OSX hang, never mind for a file server it's ok without PM.

Seems to be irq with older Kext.

Build is now ok with last commit. Thanks

 

Regards

 

Fred

Edited by FredWst
Link to comment
Share on other sites

Friends, i've fixed MSI handling. Please re-download kext. This should offload your systems a bit.

 

[sASMegaRAID] Firmware state: 0xb0000000
[sASMegaRAID] [Helper] Looks like MSI interrupts are supported
[sASMegaRAID] [Helper] MSI IR line: 1
[sASMegaRAID] DMA: 64-bit, max commands: 1008, Max SGE Count: 33
[sASMegaRAID] Initccb
[sASMegaRAID] Initialize_Firmware
[sASMegaRAID] MRAID_Poll
[sASMegaRAID] GetInfo
[sASMegaRAID] Do_Management: opcode: 0x1010000
[sASMegaRAID] PointToData
[sASMegaRAID] Paddr: 0x2b940000
[sASMegaRAID] MRAID_Poll
[sASMegaRAID] Active FW APP  Version 1.22.32-1371 date Sep 12 2011 time 19:29:24
[sASMegaRAID] Active FW BIOS Version 2.04.00 date  time
[sASMegaRAID] Active FW BCON Version 1.1-46-e_15-Rel date Mar  2 2008 time 14:06:08
[sASMegaRAID] Active FW CTLR Version 1.02-015B date Jan 27 2009 time 12:02:58
[sASMegaRAID] Active FW PCLI Version 01.00-022:#%00005 date Sep 18 2008 time 20:27:14
[sASMegaRAID] Active FW BTBL Version 1.00.00.01-0011 date Nov 27 2007 time 18:29:20
[sASMegaRAID] Max Arms Per VD 32 Max Arrays 128
[sASMegaRAID] Serial 1122334455667788 present 0x3d fw time 415649563
[sASMegaRAID] NVRAM 32 flash 4
[sASMegaRAID] Memory Correctable Errors 0 Memory Uncorrectable Errors 0 Cluster Permitted 0 Cluster Active 0
[sASMegaRAID] raid_lvl 0xdf7 adapt_ops 0x1f45fbf ld_ops 0x3f
[sASMegaRAID] Min Stripe Size 4 pd_ops 0x7 pd_mix 0x7
[sASMegaRAID] ECC Bucket Count 0
[sASMegaRAID] sq_nm 1 Predictive Fail Poll Interval: 300sec Interrupt Throttle Active Count 16 Interrupt Throttle Completion: 50us
[sASMegaRAID] Rebuild Rate: 30% PR Rate: 30% Background Rate 30 Check Consistency Rate: 30%
[sASMegaRAID] Reconstruction Rate: 30% Cache Flush Interval: 4s Max Drives to Spinup at One Time 2 Delay Among Spinup Groups: 12s
[sASMegaRAID] Ecc Bucket Size 15
[sASMegaRAID] Ecc Bucket Leak Rate: 1440 Minutes
[sASMegaRAID] Vendor 0x1000 device 0x60 subvendor 0x1028 subdevice 0x1f0b
[sASMegaRAID] Type 0x2 (frontend) port_count 0 Addresses 0 0 0 0 0 0 0 0
[sASMegaRAID] Type 2 (backend) port_count 8 Addresses 0 0 0 0 0 0 0 0
[sASMegaRAID] Enabled options: Physical Drive Coercion Mode  Auto Rebuild  Battery Warning 
[sASMegaRAID] GetBBUInfo
[sASMegaRAID] Do_Management: opcode: 0x5010000
[sASMegaRAID] PointToData
[sASMegaRAID] Paddr: 0x2b941000
[sASMegaRAID] MRAID_Poll
[sASMegaRAID] BBU voltage 4039, current 0, temperature 26, status 0x0
[sASMegaRAID] Details: guage 16608 charger state 1
rem capacity 1518 full capacity 1521
[sASMegaRAID] BBU type: BBU, status good, 100% charged
[sASMegaRAID] ReportHBAConstraints
[sASMegaRAID] super->StartController

 

 

Boot but without disk attached.

If i let disks attach to board it take very long time to get login screen and can't get kerboard to enter password.

 

 

Regards

 

Fred

Link to comment
Share on other sites

I just wanted to mention, the PERC 6/i that I'm using is using the 11.0.1-0048 bios from LSI and not the dell bios. I don't know if this has anything to do with Fred's being a different result. I have not yet tried your latest driver with MSI handling working yet, but I will shortly.

Link to comment
Share on other sites

FredWst:

 

Thanks. That's strange to see, if you recompiled from last revision or downloaded the latest one. Got fixed for me: http://pastebin.com/96JgX2gM . Then please set "PreferMSI" property under "Settings" dict in Info.plist to "false" or use previous version. I'm forced to set it to false for futher versions after your report :(

 

i've compil from last commit.

With or without drives inside and long waiting for keyboard, i can logon.

I get this in log -> IOHIDSystem: postEvent LLEventQueue overflow.

 

I try to remove dsdt.aml it's same result.

 

PreferMSI = No -> back to IRQ.

 

I hope you'll find what's wrong.

 

Regards

Fred

Edited by FredWst
Link to comment
Share on other sites

I have not yet tried your latest driver with MSI handling working yet, but I will shortly.

Thanks, i need your help.

With or without drives inside and long waiting for keyboard, i can logon.

Sympoms are awaited, since you're messing the system, which awaits for command completion which never occurs. My system had similar behaviour like your or Black Knight's when tried MSIs, but it got fixed for me with my recent edits.

PreferMSI = No -> back to IRQ.

Yes.

I hope you'll find what's wrong.

Unfortunatelly, it's not much i can else do. I've just added missed enabling of interrupt source and interrupt acknowledge (seems to be hw requirement, before it was present only in interrupt filter routine and hence was used only in case of legacy interrupts) for MSI case.

Link to comment
Share on other sites

Here is my log for the latest driver you uploaded:

 

3/3/13 7:55:56.000 PM kernel[0]: [sASMegaRAID] IRQ: 17
3/3/13 7:55:56.000 PM kernel[0]: [sASMegaRAID] DMA: 64-bit, max commands: 1008, Max SGE Count: 33
3/3/13 7:55:56.000 PM kernel[0]: rooting via boot-uuid from /chosen: 28FD5F10-AAA9-3B7B-B148-0A42BB91E182
3/3/13 7:55:56.000 PM kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
3/3/13 7:55:56.000 PM kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start
3/3/13 7:55:46.111 PM com.apple.launchd[1]: *** Shutdown logging is enabled. ***
3/3/13 7:55:56.000 PM kernel[0]: com.apple.AppleFSCompressionTypeDataless kmod start
3/3/13 7:55:56.000 PM kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
3/3/13 7:55:56.000 PM kernel[0]: com.apple.AppleFSCompressionTypeDataless load succeeded
3/3/13 7:55:56.763 PM com.apple.launchd[1]: (com.apple.automountd) Unknown key for boolean: NSSupportsSuddenTermination
3/3/13 7:55:56.000 PM kernel[0]: AppleIntelCPUPowerManagementClient: ready
3/3/13 7:55:56.000 PM kernel[0]: vendor:device: 0x8086:0x1503.
3/3/13 7:55:56.000 PM kernel[0]: AppleIntelE1000e(Info): Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
3/3/13 7:55:56.000 PM kernel[0]: AppleIntelE1000e(Info): changing MTU from 0 to 1500
3/3/13 7:55:56.000 PM kernel[0]: FireWire runtime power conservation disabled. (2)
3/3/13 7:55:56.000 PM kernel[0]: SATA WARNING: IDENTIFY DEVICE checksum not implemented.
3/3/13 7:55:56.000 PM kernel[0]: [sASMegaRAID] 8 physical drive(s) present
3/3/13 7:55:56.000 PM kernel[0]: [sASMegaRAID] Enabled options: Physical Drive Coercion Mode Auto Rebuild Battery Warning
3/3/13 7:55:56.000 PM kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/Maxtor 6V300F0 Media/IOGUIDPartitionScheme/ML2@2
3/3/13 7:55:56.000 PM kernel[0]: BSD root: disk0s2, major 1, minor 2
3/3/13 7:55:56.000 PM kernel[0]: [sASMegaRAID] BBU type: BBU, status good, 100% charged

 

Looks like it's still using IRQ and PreferMSI is Yes in the driver. I have no delays and all seems to be working, other than 2x 2.5TB drives that I attached to the card. The two 300GB Velociraptors in RAID 0 are read/write using Tuxera NTFS, but the other 4x 2TB JBOD drives are read only using mac driver and won't mount at all using Tuxera. I'm guessing these are unrelated issues though. Not sure about the 2.5TB drives though. They show up, just won't mount.

 

*UPDATE*

 

Don't really know why, but I moved the 2x 2.5TB drives to the Intel SATA controller and now they show up and mount just fine. The only difference between them and the other drives on the PERC 6/i is that they are partitioned GUID rather than MBR. Don't know if this has anything to do with it, but I figured I'd mention it.

Edited by Black Knight
Link to comment
Share on other sites

 Share

×
×
  • Create New...