Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chromebook] UFS disk device type "unknown" #753

Open
micmalti opened this issue Jul 30, 2024 · 5 comments
Open

[Chromebook] UFS disk device type "unknown" #753

micmalti opened this issue Jul 30, 2024 · 5 comments

Comments

@micmalti
Copy link

[x] I've read and accepted the Bug Reporting Howto
[x] I've provided all required tlp-stat outputs via Gist (see below)

Describe the bug

Hi, I've been happily using tlp for 5+ years and never had any issues until I recently switched over to a new laptop. Now, I keep getting this kernel message every 5 seconds at random intervals, both on battery and AC:
sd 0:0:0:0: [sda] Starting disk

From what I understand, a similar message is reported whenever tlp endlessly tries to stop/start the laptop disk, so I checked powertop and confirmed that the Runtime PM for disk sda option was marked as 'good'. The recommendation for disabling this option is to uncomment SATA_LINKPWR_DENYLIST="hostX", yet when I ran tlp-stat -d to determine the host, it seems as though the disk isn't being recognized by tlp: tlp-stat

Is this perhaps due to a general lack of support for UFS drives, which this particular model is making use of (SDINFDO4-128G)?

@micmalti
Copy link
Author

It isn't tlp that's spamming the log but a bad kernel commit. It's still unclear though why tlp isn't properly identifying the disk.

@linrunner
Copy link
Owner

linrunner commented Aug 8, 2024

Hi, I have no idea what a "UFS drive" is supposed to be and what type of controller it uses, obviously it's not SATA/AHCI.

Please show the output of

ls -l /dev/disk/by-id

@micmalti
Copy link
Author

micmalti commented Aug 8, 2024

Here's the output (main and EFI):

total 0
lrwxrwxrwx 1 root root  9 Aug  8 14:24 scsi-0WDC_SDINFDO4-128G_WDC -> ../../sda
lrwxrwxrwx 1 root root 10 Aug  8 14:24 scsi-0WDC_SDINFDO4-128G_WDC-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug  8 14:24 scsi-0WDC_SDINFDO4-128G_WDC-part2 -> ../../sda2

@linrunner
Copy link
Owner

linrunner commented Sep 12, 2024

@micmalti Sorry for the late reply. I'm currently busy with the 1.7 beta.

I checked the kernel docs for UFS

but couldn't figure out how UFS pm works. Without having the hardware, I can neither investigate further nor develop or even test anything.

Your output shows the controller as PCIe device, so at least runtime pm will be enabled ("auto") on battery power :

/sys/bus/pci/devices/0000:00:12.7/power/control = on (0x010901, Universal Flash Storage controller, ufshcd)

@linrunner linrunner changed the title Device type "unknown" [Chromebook] UFS disk device type "unknown" Sep 12, 2024
@micmalti
Copy link
Author

That's fine by me. It's just a reporting issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants