Bug 1229651 - 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: 22
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1205222
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-09 10:48 UTC by Harald Hoyer
Modified: 2015-06-25 08:23 UTC (History)
6 users (show)

Fixed In Version: dracut-041-14.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of: 1205222
Environment:
Last Closed: 2015-06-25 08:23:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Hoyer 2015-06-09 10:48:43 UTC
+++ This bug was initially created as a clone of Bug #1205222 +++

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

--- Additional comment from Harald Hoyer on 2015-04-23 10:14:17 EDT ---

http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=a3e464ca43618e362ad3c2e20573de23d725bee6

--- Additional comment from Oded Gabbay on 2015-04-23 14:35:42 EDT ---

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

--- Additional comment from Harald Hoyer on 2015-04-24 05:15:20 EDT ---

(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

--- Additional comment from Oded Gabbay on 2015-04-24 15:11:51 EDT ---

ok, thanks.

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

--- Additional comment from Fedora Update System on 2015-05-18 08:18:06 EDT ---

dracut-038-39.git20150518.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/dracut-038-39.git20150518.fc21

--- Additional comment from Fedora Update System on 2015-05-19 12:21:13 EDT ---

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).

--- Additional comment from Fedora Update System on 2015-05-21 13:36:49 EDT ---

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.

Comment 1 Fedora Update System 2015-06-16 13:05:54 UTC
dracut-041-14.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dracut-041-14.fc22

Comment 2 Fedora Update System 2015-06-21 00:15:24 UTC
Package dracut-041-14.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-041-14.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10407/dracut-041-14.fc22
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2015-06-25 08:23:35 UTC
dracut-041-14.fc22 has been pushed to the Fedora 22 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.