uhubctl icon indicating copy to clipboard operation
uhubctl copied to clipboard

Can't toggle power to disk using Linux 6rc3

Open emsaks opened this issue 3 years ago • 4 comments

I've been using uhubctl to toggle power to frozen/hung disks. But now, under Linux 6 (rc3) if the disk is opened (e.g. a process is reading it, or in my case, dmsetup has a dependency on it) the command will hang until the disk is closed. (I've also tried using the sysfs-disable branch).

emsaks avatar Sep 13 '22 11:09 emsaks

@mgrzeschik, @hnez would know more why it broke in Linux 6 rc3.

mvp avatar Sep 13 '22 16:09 mvp

How can I contact them (or will they be notified by the @ mention)?

emsaks avatar Sep 13 '22 20:09 emsaks

I guess. I recommend to use older Linux kernel for now. Using Linux 6 is living on the edge at the moment.

mvp avatar Sep 13 '22 21:09 mvp

I for now can not see what change could have introduced this behavior. This could also be an issue with some specific peripheral/controller driver. At least I can say that the patch introducing the /sys/bus/usb/devices/.../<hub_interface>/port<X>/disable sysfs property is not involved in this. :)

mgrzeschik avatar Sep 19 '22 19:09 mgrzeschik

@emsaks, now that #450 is merged, can you try this again - build uhubctl from master branch?

mvp avatar Sep 22 '22 18:09 mvp

Closing for inactivity. Please feel free to reopen if you have anything to add @emsaks

mvp avatar Sep 25 '22 18:09 mvp

Did you use the latest version of uhubctl to trigger this. Including the recent changes of #450 that was merged lately?

mgrzeschik avatar Sep 29 '22 14:09 mgrzeschik

No; I built your tree myself before the merge.

emsaks avatar Sep 29 '22 16:09 emsaks

Can you try building it from master branch and check if it works for you @emsaks?

mvp avatar Sep 29 '22 16:09 mvp

I'll try when I can. I've downgraded to an earlier kernel in the meantime...

On Thu, Sep 22, 2022 at 9:30 PM mvp @.***> wrote:

@emsaks https://github.com/emsaks, now that #450 https://github.com/mvp/uhubctl/pull/450 is merged, can you try this again - build uhubctl from master branch?

— Reply to this email directly, view it on GitHub https://github.com/mvp/uhubctl/issues/457#issuecomment-1255399117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5AMJDKYR3TXCBIAKYZ5DDV7SQTTANCNFSM6AAAAAAQLKVEEA . You are receiving this because you were mentioned.Message ID: @.***>

emsaks avatar Oct 11 '22 09:10 emsaks

Thanks anyway! BTW, official kernel 6.0 was released few days ago.

mvp avatar Oct 12 '22 07:10 mvp