Unsolved
This post is more than 5 years old
9 Posts
0
45258
March 2nd, 2007 20:00
System Freeze when using SD Memory card on Inspiron Laptops
I thought I would start a new thread about this topic specifically to better track the progress towards a solution. For a newbie just finding this for the first time, here is the bug this thread is about
Running Windows Vista OS on an Inspiron 9200 if you copy a file to/from an SD card using the built in SD card reader, the system is likely to freeze.
Since I own a 9200, and I would really like to get this working, I am making the effort with Microsoft Tech Support to get this fixed.
So here is what I know so far:
1) The SD card reader is based on the Ricoh R5C841 chip which takes care of the PCMCIA, 1394 and the SD card reader. This is a common chip used by other laptop manufactures, so other brands of laptops may see this problem as well.
2) The SD card reader driver that comes with Vista is the current and correct driver for the Ricoh R5C841. If you browse the sdhost.ini file, you will see the Ricoh R5C841 is listed in the comments section and the PCI/VEN ID matches what the chip reports.
3) If you uninstall and reinstall the driver after logging in. The card reader will function correctly until the next reboot. After a reboot, the system freeze behavior returns. (Note: This gives you a hack work around if you are desperate to use the SD Reader. Just disable and re-enable the SD Card reader in the Device Manager and it will work until the next reboot.)
4) I have swapped out the motherboard in my laptop and the system freeze problem persists
5) Installed a clean copy of Vista on a separate hard drive and the system freeze problem persists.
6) Installed a Check/Debug version of Vista and was able to generate a blue screen of death error when recreating the system freeze. The blue screen error was “An Interrupt storm has caused the system to hang”
7) When researching an “Interrupt Storm”, it appears one of the causes is when a device driver claims the interrupt signal even though it did not initiate from its hardware.
So the current theory is the SDHost device driver is not correctly forwarding IRQ events messages to “downstream” chained drivers for hardware sharing the IRQ line. The SD Card reader is using IRQ 7 which is shared will several other devices including the PCMCIA slot, wifi adapter, etc.
The theory seems to match the behavior where if the driver is uninstalled and reinstalled, it moves the driver down to the end of the chain to where incorrect forwarding does not matter, and the copy to an SD media card works.
Currently uploading a memory dump to Microsoft of the “Interrupt Storm” for further analysis.
More updates as the story progresses.


Monguse
87 Posts
0
March 2nd, 2007 23:00
bkrogers
13 Posts
0
April 13th, 2007 15:00
bkrogers
13 Posts
0
April 16th, 2007 20:00
bkrogers
13 Posts
0
April 23rd, 2007 14:00
I think I see what's happening in the sdbus driver, the way it checks the device means that it may claim interrupts for another device in the chain if certain events have been indicated by the device. I am going to talk to my dev team to see what can be done about this. It will likely be at least a few weeks before we decide what to do about this.
lailokenZen
7 Posts
0
May 12th, 2007 16:00
bkrogers
13 Posts
0
May 16th, 2007 14:00
Latest from Microsoft Support...
I [Microsoft Support Enginner] talked to our sustained engineering team and we determined that at this time we are not going to release a hotfix for this issue. We are investigating other options for addressing this, such as making a code change in SP1. I should know more in another week or two.
lailokenZen
7 Posts
0
May 24th, 2007 23:00
bkrogers
13 Posts
0
May 25th, 2007 00:00
lailokenZen
7 Posts
0
May 25th, 2007 00:00
BK Rogers
9 Posts
0
July 2nd, 2007 13:00
We are still investigating the possibility of fixing this in SP1 for Vista.
The code change to address this properly in sdbus.sys is more involved than I originally thought and getting the details worked out of how complex this fix will be has delayed the decision on inclusion in SP1. There is a risk that if we change this code to make your sd card reader work we may break other sd card readers. This device behaves a bit differently than other sd card readers, there is some variation in early devices that were developed before the spec was final and this is probably one of those devices. This is probably one of the reasons that Dell used their own driver for this device in XP and did not use sdbus.sys in XP.
I will let you know when I have more information regarding this issue.
BK Rogers
9 Posts
0
July 11th, 2007 20:00
BK,
We have decided that it is not feasible to fix this in the next service pack for Vista. The code in question works properly with all other hardware we have encountered, none of our OEM's have reported problems with this code. Any changes we make to help this code work better with your hardware is likely to break the other controllers that currently work properly. This code was largely the same in Windows XP, and this is probably why Dell used their own driver for this device in XP.
Please let me know if you have any questions about this issue. Because there are no other issues to address through this case I am going to close this case today.
Thank you
Taomyn
131 Posts
0
July 22nd, 2007 13:00
I went into Device Manager and updated the driver. Chose to install manually and to pick the driver myself. I unticked the show only compatible drivers and noticed a signed "Ricoh Secure Digital host controller R5C841" was listed. I chose this one and after a warning about not being able to confirm compatibility, the driver loaded and seemed to be okay.
I then reinserted the 1Gb SD card I was using that always hung the laptop, and voila no hang. The card can be seen and accessed with no problems now.
Hope this helps.
lailokenZen
7 Posts
0
July 22nd, 2007 16:00
BK Rogers
9 Posts
0
July 24th, 2007 12:00
lailokenZen
7 Posts
0
July 25th, 2007 01:00