This lets AMDGPU users know they should enable the kernel config option.
It should be enabled by CONFIG_GENTOO_LINUX_INIT_SYSTEMD, but if e.g.
OpenRC is used, it's possible for the option to be unset, as was in
my case.
Not doing so can cause the following spooky warning:
"amdgpu: os_same_file_description couldn't determine if two DRM fds
reference the same file description. If they do, bad things may happen!"
I haven't experienced any issues with the config option disabled, but
the warning is likely there for a reason.
Closes: https://github.com/gentoo/gentoo/pull/15926
Signed-off-by: Ilya Trukhanov <lahvuun@gmail.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit llvm meson multilib-minimal pax-utils python-any-r1
+inherit llvm meson multilib-minimal pax-utils python-any-r1 linux-info
OPENGL_DIR="xorg-x11"
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
+ # os_same_file_description requires the kcmp syscall,
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y.
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would
+ # get a spooky warning message if the syscall fails.
+ if use gallium && use video_cards_radeonsi; then
+ CONFIG_CHECK="~CHECKPOINT_RESTORE"
+ linux-info_pkg_setup
+ fi
+
if use gallium && use llvm; then
llvm_pkg_setup
fi
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit llvm meson multilib-minimal python-any-r1
+inherit llvm meson multilib-minimal python-any-r1 linux-info
OPENGL_DIR="xorg-x11"
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
+ # os_same_file_description requires the kcmp syscall,
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y.
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would
+ # get a spooky warning message if the syscall fails.
+ if use gallium && use video_cards_radeonsi; then
+ CONFIG_CHECK="~CHECKPOINT_RESTORE"
+ linux-info_pkg_setup
+ fi
+
if use gallium && use llvm; then
llvm_pkg_setup
fi
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit llvm meson multilib-minimal python-any-r1
+inherit llvm meson multilib-minimal python-any-r1 linux-info
OPENGL_DIR="xorg-x11"
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
+ # os_same_file_description requires the kcmp syscall,
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y.
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would
+ # get a spooky warning message if the syscall fails.
+ if use gallium && use video_cards_radeonsi; then
+ CONFIG_CHECK="~CHECKPOINT_RESTORE"
+ linux-info_pkg_setup
+ fi
+
if use gallium && use llvm; then
llvm_pkg_setup
fi
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit llvm meson multilib-minimal python-any-r1
+inherit llvm meson multilib-minimal python-any-r1 linux-info
OPENGL_DIR="xorg-x11"
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
+ # os_same_file_description requires the kcmp syscall,
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y.
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would
+ # get a spooky warning message if the syscall fails.
+ if use gallium && use video_cards_radeonsi; then
+ CONFIG_CHECK="~CHECKPOINT_RESTORE"
+ linux-info_pkg_setup
+ fi
+
if use gallium && use llvm; then
llvm_pkg_setup
fi
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit llvm meson multilib-minimal python-any-r1
+inherit llvm meson multilib-minimal python-any-r1 linux-info
OPENGL_DIR="xorg-x11"
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
+ # os_same_file_description requires the kcmp syscall,
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y.
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would
+ # get a spooky warning message if the syscall fails.
+ if use gallium && use video_cards_radeonsi; then
+ CONFIG_CHECK="~CHECKPOINT_RESTORE"
+ linux-info_pkg_setup
+ fi
+
if use gallium && use llvm; then
llvm_pkg_setup
fi