[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714959: linux-image-3.2.0-4-kirkwood mdraid array fails to assemble b/c drives are not yet ready (sata_mv)



On 03/26/2014 02:55 PM, Andrew Lunn wrote:
* Martin Waschbuesch <martin@waschbuesch.de> [2013-07-04 19:12]:
Package: src:linux Version: 3.2.46-1 Severity: normal Tags:
upstream patch

Dear Maintainer,

On my QNAP TS-412, after a clean install of Wheezy, the kernel
fails to bring up all sata ports (using Marvell 88SX7042 via
sata_mv driver) before md/raid tries to assemble the array. The
same disks/array work in a different model (TS-410) and the
drives/array from said TS-410 also fail in my TS-412. At the same
time, using the original QNAP firmware, everything works as
expected.

I _guess_ the real problem here is the power supply. It cannot
supply enough power to get all the drives spinning if they all start
at the same time. Many of the multi-bay NAS boxes have GPIO lines
which are used to individually power up each driver in a staggered
way. The QNAP kernel patch is doing something similar. However in its
current form it cannot be accepted. This delay needs to be made
conditional and only applied on hardware with a weak power supply.

I will take a look at the code and see how the platform can pass a
flag to the driver that it needs to stagger port initialization.

Actually, the code in question is not SoC's mvsata but PCI's mvsata,
I guess.

Sebastian


Reply to: