Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1659516

Summary: Add a udev rule to set the permissions properly for amdkfd
Product: Red Hat Enterprise Linux 7 Reporter: Alex Deucher <alexander.deucher>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: dtardon, felix.kuehling, fsumsal, hamzamaq9166, prd-fedora, systemd-maint-list, udev-maint-list
Target Milestone: rc   
Target Release: 7.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-219-70.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 20:02:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Deucher 2018-12-14 15:04:52 UTC
Description of problem:
The udev rules for kfd should match other drm rules.  Currently the user has to manually adjust the permissions to use the kfd.

How reproducible:
Try to access the kfd device node (/dev/kfd).

Steps to Reproduce:
1. Open the kfd device node

Actual results:
Permission denied.

Expected results:
Permission allowed if user is in the video group.


Additional info:
Please add the following do the default udev configuration:

SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"

Comment 2 Lukáš Nykrýn 2019-01-04 14:37:52 UTC
I believe this done upstream a bit differently. Please see:
https://github.com/systemd/systemd/commit/f301622d840ae414e7f56c364fe9b035f3041539

Comment 3 Alex Deucher 2019-01-04 15:58:12 UTC
That would be fine as well as long as the permissions are fixed.  Thanks!

Comment 4 Felix Kuehling 2019-01-04 18:52:14 UTC
I didn't realize this was part of systemd. It uses a different group ("render" instead of "video) than what I see in Ubuntu and RedHat. Do distributions customize this, or will the group name change to the upstream version ("render")?

The systemd commit also doesn't handle the uaccess tag. Maybe that requires another separate rule?

Comment 5 Alex Deucher 2019-06-05 19:13:03 UTC
Has the upstream fix been applied to RHEL 7 and 8?

Comment 6 David Tardon 2019-06-06 06:03:30 UTC
(In reply to Alex Deucher from comment #5)
> Has the upstream fix been applied to RHEL 7 

Not yet.

> and 8?

It's always been there, as the commit was included in systemd-236.

Comment 7 David Tardon 2019-06-06 07:41:17 UTC
pull request: https://github.com/systemd-rhel/rhel-7/pull/19

Comment 9 Lukáš Nykrýn 2019-08-28 06:06:33 UTC
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-7/pull/19 -> post

Comment 13 errata-xmlrpc 2020-03-31 20:02:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1117

Comment 14 hamzamaq 2022-04-01 18:34:22 UTC Comment hidden (spam)