Bug 1205222 - Add "amdkfd" and "amd_iommu_v2" to default initramfs when using kernel 3.19 and above
Summary: Add "amdkfd" and "amd_iommu_v2" to default initramfs when using kernel 3.19 a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 21
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1229651
TreeView+ depends on / blocked
 
Reported: 2015-03-24 13:13 UTC by Oded Gabbay
Modified: 2015-06-09 10:48 UTC (History)
4 users (show)

Fixed In Version: dracut-038-39.git20150518.fc21
Clone Of:
: 1229651 (view as bug list)
Environment:
Last Closed: 2015-05-21 17:36:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Oded Gabbay 2015-03-24 13:13:41 UTC
Description of problem:

AMD's HSA Linux kernel driver (amdkfd) has been merged into the mainline kernel since kernel 3.19.

However, for the driver to work, it needs to be included in the default initramfs image, together with the amd_iommu_v2 driver.

The radeon driver (AMD's kernel graphic driver) calls amdkfd during its initialization and probing stages. Because radeon is included in the initramfs image, it tries to initialize amdkfd during the early boot stages. However, as amdkfd is not present there, it fails.

That doesn't harm radeon operation. However, it disables the HSA abilities in the machine.

Because of the current design, if you later try to "modprobe amdkfd", you won't be able to run HSA applications, even though the driver will be loaded.


Version-Release number of selected component (if applicable):

Fedora 21, Kernel 3.19 and forward

Steps to Reproduce:
1. Install Fedora 21 on a Kaveri (e.g. A10-7850) machine
2. Update Fedora 21 to latest (installs kernel 3.19.1)
3. Reboot

amdkfd is not loaded although the module is present in the /lib/modules folder.

Additional info:
As mentioned above, we need both "amdkfd" and "amd_iommu_v2" drivers to be included in the default initramfs image for HSA to work

Comment 2 Oded Gabbay 2015-04-23 18:35:42 UTC
Hello Harald,

Thanks for taking care of this issue.
Please note, however, that in order for amdkfd to work, we need also "amd_iommu_v2.ko" to be included in initramfs

Thanks,

 Oded

Comment 3 Harald Hoyer 2015-04-24 09:15:20 UTC
(In reply to Oded Gabbay from comment #2)
> Hello Harald,
> 
> Thanks for taking care of this issue.
> Please note, however, that in order for amdkfd to work, we need also
> "amd_iommu_v2.ko" to be included in initramfs
> 
> Thanks,
> 
>  Oded

$ modinfo amdkfd|fgrep depends
depends:        amd_iommu_v2

This dependency causes dracut to also include amd_iommu_v2

Comment 4 Oded Gabbay 2015-04-24 19:11:51 UTC
ok, thanks.

This patch will be inserted to Fedora 21, or just to Fedora 22 ?

Comment 5 Fedora Update System 2015-05-18 12:18:06 UTC
dracut-038-39.git20150518.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/dracut-038-39.git20150518.fc21

Comment 6 Fedora Update System 2015-05-19 16:21:13 UTC
Package dracut-038-39.git20150518.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-038-39.git20150518.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8504/dracut-038-39.git20150518.fc21
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-05-21 17:36:49 UTC
dracut-038-39.git20150518.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.