From 36971ed37bb638e9228c1fb99d6f0e8dceee7855 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lureau Date: Tue, 14 Feb 2017 13:18:27 +0400 Subject: rules: add persistent by-path drm rules (#5337) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create persistent symlinks for DRM devices, ex: /dev/dri/by-path/pci-0000:00:02.0-card -> /dev/dri/card1 /dev/dri/by-path/pci-0000:00:02.0-render -> /dev/dri/renderD129 etc... This allows to configure DRM device usage with stable paths. Signed-off-by: Marc-André Lureau --- rules/60-drm.rules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rules') diff --git a/rules/60-drm.rules b/rules/60-drm.rules index 1ed3e445f2..f7f3435d50 100644 --- a/rules/60-drm.rules +++ b/rules/60-drm.rules @@ -1,3 +1,8 @@ # do not edit this file, it will be overwritten on update ACTION!="remove", SUBSYSTEM=="drm", SUBSYSTEMS=="pci|usb|platform", IMPORT{builtin}="path_id" + +# by-path +ENV{ID_PATH}=="?*", KERNEL=="card*", SYMLINK+="dri/by-path/$env{ID_PATH}-card" +ENV{ID_PATH}=="?*", KERNEL=="controlD*", SYMLINK+="dri/by-path/$env{ID_PATH}-control" +ENV{ID_PATH}=="?*", KERNEL=="renderD*", SYMLINK+="dri/by-path/$env{ID_PATH}-render" -- cgit v1.2.3-54-g00ecf