Bug 2246087

Summary: UFS storage not enabled on x86_64 kernel
Product: [Fedora] Fedora Reporter: James <jye836>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jarod, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-6.5.9-300.fc39 kernel-6.5.9-200.fc38 kernel-6.5.9-100.fc37 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-03 18:46:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg.txt none

Description James 2023-10-25 11:02:43 UTC
1. Please describe the problem:

On the ASUS Vivobook 13 Slate OLED (T3304) device, the internal UFS storage is not accessible.

Fedora 39 Beta is working quite well on this Alder Lake-N device, however the Fedora kernel appears to be missing the required drivers for UFS storage. I believe the relevant configs are CONFIG_SCSI_UFSHCD and CONFIG_SCSI_UFSHCD_PCI.

2. What is the Version-Release number of the kernel:

6.5.2-301.fc39.x86_64

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

Not sure.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Boot Fedora on x86_64 device with UFS storage, observe the storage is not shown in lsblk.

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

I haven't tried, but according to https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel-x86_64-fedora.config the relevant drivers are not included.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No.

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Reproducible: Always

Comment 1 James 2023-10-25 11:03:18 UTC
Created attachment 1995377 [details]
dmesg.txt

Comment 2 James 2023-10-25 11:59:15 UTC
The PCI ID of the UFS controller is 8086:54ff

Comment 3 Fedora Update System 2023-10-25 23:38:54 UTC
FEDORA-2023-d471dae70d has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d471dae70d

Comment 4 Fedora Update System 2023-10-25 23:38:56 UTC
FEDORA-2023-0d0c841d93 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0d0c841d93

Comment 5 Fedora Update System 2023-10-25 23:44:19 UTC
FEDORA-2023-cfd46a8051 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-cfd46a8051

Comment 6 Fedora Update System 2023-10-26 01:52:55 UTC
FEDORA-2023-cfd46a8051 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-cfd46a8051`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-cfd46a8051

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-10-26 02:48:04 UTC
FEDORA-2023-0d0c841d93 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0d0c841d93`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0d0c841d93

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-10-26 02:53:14 UTC
FEDORA-2023-d471dae70d has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d471dae70d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d471dae70d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 James 2023-10-26 10:21:38 UTC
Created a new live USB with kernel-6.5.9-300.fc39 and the internal storage is detected. Thanks!

Comment 10 Fedora Update System 2023-11-03 18:46:42 UTC
FEDORA-2023-cfd46a8051 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-11-04 03:41:57 UTC
FEDORA-2023-0d0c841d93 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-11-04 03:45:29 UTC
FEDORA-2023-d471dae70d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.