Re: [gentoo-user] USB problem/questions (not Gentoo specific)
On 2020.09.24 15:35, Sid Spry wrote: On Tue, Sep 22, 2020, at 7:11 PM, Jack wrote: > I've got a Ryzen 5 2600 in an MSI B350 Tomahawk motherboard. The specs > imply that the CPU produces four USB 3.0 ports and the chipset produces > 6 USB 2.0 and four USB 3.1 (although the last four are not available > with this motherboard. Even high end motherboards tend to only bring out 1 or 2 root hubs. That the chip supports 4 root hubs does not mean all of them were used. Typically there are two groups of USB3 and one or two groups of USB2. The mobo specs say I should have 6 USB2 ports (two on the rear plus two headers), 4 USB3 ports on the rear (three Type-A and one Type-C,) plus two USB3 headers. I know there is another USB3 hub in the chipset which is not available through the mobo. dmesg and lsusb show two USB2 hubs and two USB3 hubs (one of which is clearly the unavailable one.) Where is the extra USB2 hub coming from and where is the missing USB3 hub? Sometimes it's just one USB3 root hub and they attach all of the USB2 ports to it, making everything run at USB2 speeds. But connecting a USB2 device to a USB3 hub will slow things down, but they should not cause a USB3 hub to be identifed as USB2, just to work at the lower speed. Am I wrong about this? With USB2, hubs are required to have a translation unit that speeds USB1 packets up to USB2 speeds. Even with these translators you can incur delays waiting for slower USB1 devices to respond as they will take ~4x longer, and then the buffered data is sped up when it is put on the bus. With USB3 there is no such requirement. This would be fine as the USB2 is on separate wires but most USB3 silicon seems to be implemented in such a way that USB2 transactions slow down the USB3 transactions. In some cases this is visible with `lsusb -t`: putting a USB2 device on a USB3 bus will downgrade all devices to USB2 speeds (showing USB3 devices that were 5000M as 480M), and even if it is not visible, you may see transfers take ~10x as long. I found all of this out when benchmarking flash drives. My motherboard was wired such that every important USB3 port shared the keyboard and mouse ports. If you plug a USB1.1/USB2 keyboard and mouse in, everything else slows down. Again, I'm not yet worried about speeds. I'm worried that every external port show up connected to a USB2 hub. To me, that means that xHCI is calling one USB3 hub USB2 or something is not being identified correctly. USB3.1 I think explicitly addresses this issue saying that USB3 should always run at USB3 speeds, but vendors still seem to be churning out broken motherboards. > lsusb shows > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > lsusb -t shows > /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M > /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 1M > /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M > What I didn't post is the bits from dmesg that show that bus1 and bus2 are from PCI 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge, and bus3 and bus4 are from PCI 1d:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 Host controller. Bus2 is clearly from the B350 chipset, and not actually available. Bus1 (10 ports even with the external hub not connected) seems like the 2 rear USB2 ports plus the two headers, plus four more ports apparently not actually available. If bus3 and bus4 are from the CPU, I don't think there should be any USB2. If they are from the Chipset, then were are the USB3 ports from the CPU? I am pretty sure the pairs of ports are linked. This seems to be a new development, and I'm not really sure what it means yet. Pairs of ports, or pairs of busses? > Bus 01 shows 10p because there is a 4 port external hub connected, so > that should be the 6 USB 2.0 ports - two rear ports, and two two port > headers (JUSB1 and JUSB2) > Bus 02 is (I assume) advertised by the B350 chipset, but I don't expect > it to show up on any physical ports or headers > Bus 03 is a mystery, as I have no idea where the extra USB 2.0 ports > are coming from > Bus 04 should be the USB 3.0 generated by the CPU, and I assume should > be what feeds the JUSB3 and JUSB4 USB3 headers > > The rear IO panel has 2 USB 2.0 ports, and if I plug anything into > them, they show up as ports 8 and 9 on bus 1. > The front of the case has two USB3 ports, which show up on the bus 1, > ports 1 and 2 if the connector is in JUSB4 on the mobo, or ports 3 and > 4 if using JUSB3. > The three Type-A USB3 connec
Re: [gentoo-user] SELinux issues
On Saturday, 26 September 2020 17:41:06 BST Dan Egli wrote: > Questions regarding SELinux. Two of them actually. First is how the HECK > to I get it enabled!? I compiled my kernel to support it, and I do not > have the disabling line in my boot config. But after rebooting to the > new kernel, getenforce says disabled. So why is it disabled and how do I > enable it? There are a number of steps you need to follow to configure a selinux kernel and utilities. Have you walked through these guides? https://wiki.gentoo.org/wiki/SELinux In particular, the Installation guide? https://wiki.gentoo.org/wiki/SELinux/Installation > Next, whenever I try to install a SELinux policy that portage missed > during it's install (not many, but a couple) I get an error. I've > already created a bug on this > (https://bugs.gentoo.org/show_bug.cgi?id=744736), but I was wondering if > anyone on the list had any ideas as to what's wrong. > > > Thanks! In the first instance set 'SELINUX=permissive' in the selinux config and see if it works as expected. Address any errors/warnings and then try switching to enforcing. signature.asc Description: This is a digitally signed message part.
[gentoo-user] SELinux issues
Questions regarding SELinux. Two of them actually. First is how the HECK to I get it enabled!? I compiled my kernel to support it, and I do not have the disabling line in my boot config. But after rebooting to the new kernel, getenforce says disabled. So why is it disabled and how do I enable it? Next, whenever I try to install a SELinux policy that portage missed during it's install (not many, but a couple) I get an error. I've already created a bug on this (https://bugs.gentoo.org/show_bug.cgi?id=744736), but I was wondering if anyone on the list had any ideas as to what's wrong. Thanks! -- Dan Egli On my Test server OpenPGP_0xF8A7B3F2AAB08F9D.asc Description: application/pgp-keys OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-user] Shared libraries lack a SONAME
On 2020-09-26 00:50, urp...@gmx.com wrote: > > Files matching a file type that is not allowed: >usr/lib/liblsp-dsp-lib-0.5.9.so > * ERROR: media-libs/lsp-dsp-lib-0.5.9::macro failed: > * multilib-strict check failed! > * That's a 64-bit library I guess. It has to go in /usr/lib64 instead of /usr/lib. (You can read about multilib-strict in `man make.conf`)
Re: [gentoo-user] Shared libraries lack a SONAME
ch userpriv usersandbox usersync xattr" FFLAGS="-march=ivybridge -mtune=ivybridge -O2 -pipe" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo https://ftp.jaist.ac.jp/pub/Linux/Gentoo/"; LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4 -l1" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress +--force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles +--exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/home/tmp/" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr +cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fortran gdbm gif gpm +gtk gui iconv icu id3tag ipv6 jack jpeg lcms libglvnd libnotify libtirpc lv2 mad mmap mng mp3 +mp4 mpeg mtp multilib musicbrainz ncurses nls nptl ogg opengl openmp pam pango pcre pdf png +policykit ppds qt5 readline replaygain sdl seccomp sharedmem smp spell split-usr ssl +startup-notification svg taglib tcpd tiff truetype udev udisks unicode upower usb vorbis +wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" +ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 +multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs +protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn +unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=ivybridge -mtune=ivybridge -O2 -pipe" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo https://ftp.jaist.ac.jp/pub/Linux/Gentoo/"; LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4 -l1" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress +--force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles +--exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/home/tmp/" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr +cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fortran gdbm gif gpm +gtk gui iconv icu id3tag ipv6 jack jpeg lcms libglvnd libnotify libtirpc lv2 mad mmap mng mp3 +mp4 mpeg mtp multilib musicbrainz ncurses nls nptl ogg opengl openmp pam pango pcre pdf png +policykit ppds qt5 readline replaygain sdl seccomp sharedmem smp spell split-usr ssl +startup-notification svg taglib tcpd tiff truetype udev udisks unicode upower usb vorbis +wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" +ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 +PORTAGE_RSYNC_EXTRA_OPTS Install phase output: >>> Install media-libs/lsp-dsp-lib-0.5.9 into +/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image make -j4 -l1 DESTDIR=/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image install make lsp-common-lib.o ld [lsp-dsp-lib] lsp-dsp-lib.o g++ [lsp-dsp-lib] liblsp-dsp-lib-0.5.9.so ar [lsp-dsp-lib] liblsp-dsp-lib-0.5.9.a Installing lsp-dsp-lib install +/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/work/lsp-dsp-lib/.build/lsp-dsp-lib/liblsp-dsp-li +b-0.5.9.so -t /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image/usr/lib cp +/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/work/lsp-dsp-lib/.build/lsp-dsp-lib/liblsp-dsp-li +b-0.5.9.a -t /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image/usr/lib Install OK >>> Completed installing media-libs/lsp-dsp-lib-0.5.9 into +/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image * Final size of build directory: 14760 KiB (14.4 MiB) * Final size of installed tree: 2120 KiB ( 2.0 MiB) # Copyright 2020 Gentoo Authors * QA Notice: The following shared libraries lack a SONAME * /usr/lib/liblsp-dsp-lib-0.5.9.so Files matching a file type that is not allowed: usr/lib/liblsp-dsp-lib-0.5.9.so * ERROR: media-libs/lsp-dsp-lib-0.5.9::macro failed: * multilib-strict check failed! * * Call stack: * misc-functions.sh, line 596: Called install_qa_check * misc-functions.sh, line 132: Called source 'install_symlink_html_docs' * 80multilib-strict, line 46: Called multilib_strict_check * 80multilib-strict, line 42: Called die * The specific snippet of code: * [[ ${abort} == yes ]] && die "multilib-strict check failed!" * * If you need support, post the output of `emerge --info +'=media-libs/lsp-dsp-lib-0.5.9::macro'`, * the complete build log and the output of `emerge -pqv '=media-libs/lsp-dsp-lib-0.5.9::macro'`. * The complete build log is located at +'/var/log/portage/media-libs:lsp-dsp-lib-0.5.9:20200926-033814.log'. * For convenience, a symlink to the build log is located at +'/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/temp/build.log'. * The ebuild environment file is located at +'/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/temp/environment'. * Working directory: '/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image' * S: '/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/work/lsp-dsp-lib' !!! post install failed; exiting.