View previous topic :: View next topic |
Author |
Message |
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sun Nov 07, 2021 9:40 pm Post subject: |
|
|
Code: | ~ $ lsmod
Module Size Used by
i2c_dev 16384 0
it87 45056 0
hwmon_vid 16384 1 it87
amdgpu 3940352 0
gpu_sched 20480 1 amdgpu
ttm 69632 1 amdgpu
drm_kms_helper 167936 1 amdgpu
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 356352 4 gpu_sched,drm_kms_helper,amdgpu,ttm
snd_hda_codec_hdmi 53248 1
k10temp 16384 0
snd_hda_codec_realtek 122880 1
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
i2c_piix4 20480 0
snd_hda_intel 32768 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 86016 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_hda_core 53248 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
fam15h_power 16384 0
snd_pcm 90112 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
r8169 90112 0
realtek 20480 1
mdio_devres 16384 1 r8169
libphy 77824 3 r8169,mdio_devres,realtek
snd_timer 28672 1 snd_pcm
snd 61440 8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore 16384 1 snd
acpi_cpufreq 16384 0
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Sun Nov 07, 2021 9:45 pm Post subject: |
|
|
Tony0945,
That says that amdgpu is loaded. What does dmesg say about your console?
A few lines like Code: | [ 11.412659] fbcon: amdgpu (fb0) is primary device
[ 11.790610] Console: switching to colour frame buffer device 320x98
[ 11.806436] amdgpu 0000:0a:00.0: [drm] fb0: amdgpu frame buffer device | would be good. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sun Nov 07, 2021 10:51 pm Post subject: |
|
|
Code: | ~ # dmesg |grep amdgpu
[ 4.940281] [drm] amdgpu kernel modesetting enabled. | ????
But it looks like Xorg is using fbdev according to /var/log/Xorg.0.log http://dpaste.com/A59XZUH4V
But it can't find frame buffer device?
Code: | # grep EE /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 8.765] (EE) open /dev/dri/card0: No such file or directory
[ 8.765] (EE) open /dev/dri/card0: No such file or directory
[ 8.765] (EE) Unable to find a valid framebuffer device
[ 8.766] (EE) Screen 0 deleted because of no matching config section.
[ 8.766] (EE) Screen 0 deleted because of no matching config section.
[ 8.766] (EE) Screen 0 deleted because of no matching config section.
[ 8.770] (II) Initializing extension MIT-SCREEN-SAVER
|
Code: | ~ # grep WW /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 8.763] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 8.763] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 8.765] (WW) Falling back to old probe method for modesetting
[ 8.766] (WW) Falling back to old probe method for fbdev |
no card zero? setpgid & setsid failed? Oh My!
NOT using elogind. Maybe I have to resurrect and older Xorg. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Sun Nov 07, 2021 10:59 pm Post subject: |
|
|
Tony0945,
Code: | [ 8.765] (EE) open /dev/dri/card0: No such file or directory |
Your kernel is missing DRI support.
Your log still shows
Code: | [ 8.762] (II) RADEON: Driver for ATI/AMD Radeon chipsets: | that's not amdgpu either.
Is it an old log?
radeon is not listed in your lsmod.
Without elgoind, you need to build xorg-server with USE=suid.
Code: | Installed versions: 1.20.13-r1(0/1.20.13)^t{tbz2}(21:17:03 28/10/21)(ipv6 suid xorg -debug -dmx -doc -elogind -kdrive -minimal -selinux -systemd -test -udev -unwind -xcsecurity -xephyr -xnest -xvfb) |
suid is a per package USE flag though. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sun Nov 07, 2021 11:06 pm Post subject: |
|
|
No. I erased the log before rebooting.
I replaced the radeon module with amdgpu in /etc/conf.d/modules
I'll try fixing the kernel, first ("If you don't know what's wrong but you know something that is wrong, fix it. Nine times out f ten it wll fix your other trouble.") |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sun Nov 07, 2021 11:34 pm Post subject: |
|
|
Enabled both options under amdgpu mentioned previously. The EE errors are gone but:
Code: | ~ # grep WW /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 9.420] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 9.420] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 9.426] (WW) Falling back to old probe method for modesetting
[ 9.426] (WW) Falling back to old probe method for fbdev
|
Code: | [ebuild R ] x11-base/xorg-server-1.20.10:0/1.20.10::oldgentoo USE="kdrive suid xephyr xnest xorg xvfb -debug -dmx -doc -elogind -ipv6 -libressl -minimal (-selinux) -systemd -udev -unwind -wayland -xcsecurity" 0 KiB
| That's the pre-elogind gentoo xorg-server
Out of ideas. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Sun Nov 07, 2021 11:38 pm Post subject: |
|
|
Tony0945,
You need
Code: | <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> |
Inside that menu, you need
Code: | │ ┌──────────────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) │ │
│ │ [ ] DRM DP AUX Interface │ │
│ │ [ ] Insert extra checks and debug info into the DRM range managers │ │
│ │ < > kselftests for DRM │ │
│ │ [ ] Enable refcount backtrace history in the DP MST helpers │ │
│ │ [*] Enable legacy fbdev support for your modesetting driver │ │
│ │ (100) Overallocation of the fbdev buffer │ │
│ │ [ ] Shamelessly allow leaking of fbdev physical address (DANGEROUS) │ │
│ │ [ ] Allow to specify an EDID data set instead of probing for it │ │
│ │ [ ] Enable DisplayPort CEC-Tunneling-over-AUX HDMI support |
The knobs for AMD GPU are
│ │ <*> AMD GPU │ │
│ │ [ ] Enable amdgpu support for SI parts │ │
│ │ [ ] Enable amdgpu support for CIK parts │ │
│ │ [*] Always enable userptr write support │ │
│ │ ACP (Audio CoProcessor) Configuration ---> │ │
│ │ Display Engine Configuration --->
You need one of Code: | │ │ [ ] Enable amdgpu support for SI parts │ │
│ │ [ ] Enable amdgpu support for CIK parts │ │ | for your GPU. I don't know which.
Inside Display Engine Configuration ---> choose
Code: | [*] AMD DC - Enable new display engine |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6220 Location: Dallas area
|
Posted: Sun Nov 07, 2021 11:49 pm Post subject: |
|
|
Southern Islands (SI) and Sea Islands (CIK) support
Edit to add: it's safe to turn on both SI and CIK, I have them set on, on my system even though I don't need them. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Nov 08, 2021 12:17 am Post subject: |
|
|
Main change was Direct rendering Manager going from M to *
I already had turned on both Si & CK (Thanks Anon-E-Moose)
Wondered if I should enable HSA kernel driver. I don't have a clue what it is. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6220 Location: Dallas area
|
Posted: Mon Nov 08, 2021 12:36 am Post subject: |
|
|
I don't mess with HSA
Heterogeneous system architecture configuration _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Nov 08, 2021 1:08 am Post subject: |
|
|
Xorg.0.log looks good. http://dpaste.com/7CTHK3AMZ
But still have warnings. Code: | ~ # grep WW /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 9.380] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 9.380] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 9.386] (WW) Falling back to old probe method for modesetting
[ 9.386] (WW) Falling back to old probe method for fbdev |
Good enough for a server, I guess. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Nov 08, 2021 1:19 am Post subject: |
|
|
Code: | ~ # which setpgid
which: no setpgid in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin:/usr//arm-softfloat-linux-gnu/gcc-bin/4.5.1)
|
Am I missing a package?
USE flag problem?
Code: | ~ # emerge -pv util-linux
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-apps/util-linux-2.37.2-r1::gentoo USE="cramfs hardlink logger ncurses readline (split-usr) suid tty-helpers (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -nls -pam -python (-selinux) -slang -static-libs -su -systemd -test -udev" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Mon Nov 08, 2021 10:37 am Post subject: |
|
|
Tony0945,
Yep, that log is good. dmesg should show the amdgpu in use for the console too.
I don't know what the warnings are about though.
I have USE="caps nls pam" on util-linux in addition to your use flags.
Maybe you need USE=caps? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6220 Location: Dallas area
|
Posted: Mon Nov 08, 2021 10:58 am Post subject: |
|
|
setpgid is a lib call not a program
Code: | (WW) xf86OpenConsole: setpgid failed: Operation not permitted |
Looks like a permission problem
Edit to add: Just before the Warning
Code: | [ 9.380] (++) using VT number 7 |
Either change permissions on tty7 or pass whatever tty you're on to the dm. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Nov 08, 2021 1:49 pm Post subject: |
|
|
Just checked and I see those warnings in the log on this nouveau machine as well. Probably due to not having pam. I used to have pam but removed it for some reason or other probably related to RedHat and systemd.
I see those warnings on every one of my machines including the utilitu box that hasn't been updated since January when I built it with a cheap $42 antec case, leftover drives and an ancient MSI board. It's a utility box intended to run one program (video recorder) and transmit them via ssh & rsync. It doesn't even have amonitor (built-in video on mobo).
BTW colors are better with amdgpu but not as nice as on this nouveau system or the newer 2700X with a cheap Radeon card. Might be the monitor. |
|
Back to top |
|
|
|