[gentoo-user] How to manage load on the GPU?

2020-05-17 Thread tuxic
Hi,

sorry for the somehow vague subject line...no native speaker...

With Blender I do a lot of experimenting and tinkering which
involves rendering most of the time.

With rendering comes ... waiting for the result.

Often (I am trying to) watch videos, like tutorial about
what I currently trying to acchieve with Blender.

The problem is, that the video (the audio does not) stutters
in short periods. 

Interestingly it does this not every time but quite often.

And it only effects videos online.

mpv for example is not affected.

Is there any way to configure whatever it is in a way, that Online
videos can be played smoothlessly also?

Hardware:
AMD Ryzen 5 3600
MSI Ventus RTX 2060 SUPER (NVidia)
32 GB RAM

Any helpful idea is very appreciated!
Cheers!
Meino






Re: [gentoo-user] Kernel drivers and modules list

2020-05-17 Thread Dale
Raphael MD wrote:
> Hello everyone,
>
> I’ve booted my system with a gentoo live cd, just to figure out my
> system drivers and modules to configure the kernel, because it’s
> difficult to realize what drive my intel Ethernet card uses and many
> others.
>
> Are there  some command to extract that list to configure the kernel?
>
> In fact, are there some manual to help to configure the kernel in the
> best way?
>
>  Usually I configure my Zen processor, put my schedule, and set
> preemptive kernel to low latency and put out every other drive.
>
> Thanks!
>
> -- 
> M.S. Raphael Mejias Dias
> ​Nuclear Engineer | Reactors
>
> Secure e-mail: raphael.mejias.d...@protonmail.com
> 
> PGP Key for raph...@gmail.com :
> https://pgp.mit.edu/pks/lookup?op=get=0x87BC5A746072F951


Generally a person installs from some sort of Linux bootable device, CD,
DVD, USB stick or something.  If everything works as it should, the
easiest way I know to get a list of drivers, lspci -k should work.  If
you want to narrow down to the drivers themselves, you can do it like this:


root@fireball / # lspci -k | grep driver
    Kernel driver in use: pcieport
    Kernel driver in use: pcieport
    Kernel driver in use: pcieport
    Kernel driver in use: ahci
    Kernel driver in use: ohci-pci
    Kernel driver in use: ehci-pci
    Kernel driver in use: ohci-pci
    Kernel driver in use: ehci-pci
    Kernel driver in use: piix4_smbus
    Kernel driver in use: snd_hda_intel
    Kernel driver in use: ohci-pci
    Kernel driver in use: pcieport
    Kernel driver in use: ohci-pci
    Kernel driver in use: ehci-pci
    Kernel driver in use: k10temp
    Kernel driver in use: fam15h_power
    Kernel driver in use: nvidia
    Kernel driver in use: snd_hda_intel
    Kernel driver in use: xhci_hcd
    Kernel driver in use: r8169
    Kernel driver in use: dmfe
    Kernel driver in use: ahci
root@fireball / #


At that point, you can use those names to search for the driver and
enable them.  That's the way I've done it in the past and it gives you a
very high chance of a working kernel for all hardware.  If you want to
see what each driver drives, just leave off the grep part.

Hope that helps.

Dale

:-)  :-) 


Re: [gentoo-user] Kernel drivers and modules list

2020-05-17 Thread Ashley Dixon
On Sun, May 17, 2020 at 02:47:33PM -0300, Raphael MD wrote:
> I’ve booted my system with a gentoo live cd, just to figure out my system
> drivers and modules to configure the kernel, because it's difficult to
> realize what drive my intel Ethernet card uses and many others.
> 
> Are there some command to extract that list to configure the kernel?

Sorry if I'm misunderstanding you here, but it seems like [1] might be of  help,
providing you can access the details of your connected devices with `lspci`  and
`lsusb`.

For example, if I wanted to set up my Ethernet card, I would run

$ `lspci | grep -i ethernet`
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2)
I218-V (rev 05)

and then use "Intel" (vendor) and "I218-V" (name) at [1] to find that  I  needed
to  enable  CONFIG_E1000E,  CONFIG_ETHERNET,  and  CONFIG_NET_VENDOR_INTEL  [2].

[1] https://linux-hardware.org/index.php?view=search
[2] https://linux-hardware.org/index.php?id=pci:8086-15a1-1043-85c4

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA



signature.asc
Description: PGP signature


Re: [gentoo-user] Kernel drivers and modules list

2020-05-17 Thread Volker Schneider
Raphael MD schrieb:
> Hello everyone,
>
> I’ve booted my system with a gentoo live cd, just to figure out my
> system drivers and modules to configure the kernel, because it’s
> difficult to realize what drive my intel Ethernet card uses and many
> others.
>
> Are there  some command to extract that list to configure the kernel?
>
> In fact, are there some manual to help to configure the kernel in the
> best way?
>
>  Usually I configure my Zen processor, put my schedule, and set
> preemptive kernel to low latency and put out every other drive.
>
> Thanks!
>
> -- 
> M.S. Raphael Mejias Dias
> ​Nuclear Engineer | Reactors
>
> Secure e-mail: raphael.mejias.d...@protonmail.com
> 
> PGP Key for raph...@gmail.com :
> https://pgp.mit.edu/pks/lookup?op=get=0x87BC5A746072F951


Hi Raphael,

I have a good manual for kernel config.
I saved the website of 'Firas Khalil Khana' called 'dotslashlinux'

I can send it to you via mail.

Please tell me.

--Volker--



Re: [gentoo-user] GCC 10.1 SUCKS.

2020-05-17 Thread Sergei Trofimovich
On Thu, 14 May 2020 11:15:59 -0400
Alan Grimes  wrote:

> KDE really can't update itself, I really had to flog the living bleep
> out of it to get it, and a lot of other stuff to settle down...
> 
> The configure phases for most of these packages are so monsterously
> inefficient that I have to run dozens of builds concurently to get CPU
> utilization out of the single digits... Okay, I have a high-end
> processor rn but it's crazy watching the actual compile stages of
> various packages only blip the histogram for a fraction of a second...
> 
> Here are some highlights from the fails that I consider "hard fails":
> 
> Dependency of libreoffice: Libetonyek 
> 
> 
>  -I/usr/include/libxml2  -DNDEBUG -DLIBETONYEK_VISIBILITY
> -fvisibility=hidden -march=native -pipe -O3  -Wall -Wextra -Wshadow
> -pedantic -Weffc++ -c -o
> contexts/libetonyek_internal_la-IWORKLayoutElement.lo `test -f
> 'contexts/IWORKLayoutElement.cpp' || echo './'`context
> s/IWORKLayoutElement.cpp
> /bin/sh ../../libtool  --tag=CXX   --mode=compile
> x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. 
> -DBOOST_SPIRIT_USE_PHOENIX_V3  -DLIBETONYEK_BUILD -I../../inc
> -I../../src/lib/contexts   -I/usr/include/libxml2
> -I/usr/include/mdds-1.5 -I/usr/include/librevenge-0.0
>  -I/usr/include/libxml2  -DNDEBUG -DLIBETONYEK_VISIBILITY
> -fvisibility=hidden -march=native -pipe -O3  -Wall -Wextra -Wshadow
> -pedantic -Weffc++ -c -o
> contexts/libetonyek_internal_la-IWORKLineElement.lo `test -f
> 'contexts/IWORKLineElement.cpp' || echo './'`contexts/IW
> ORKLineElement.cpp
> NUM3Parser.cpp: In member function ‘virtual bool
> libetonyek::NUM3Parser::parseDocument()’:
> NUM3Parser.cpp:46:8: error: ‘for_each’ is not a member of ‘std’
>    46 |   std::for_each(sheetListRefs.begin(), sheetListRefs.end(),
> std::bind(::parseSheet, this, std::placeholders::_1));
>   |    ^~~~

Please file bugs to bugs.gentoo.org and maintainer should help you.

In this case it looks like a https://bugs.gentoo.org/722042 which
was a boost update.

-- 

  Sergei



Re: [gentoo-user] Kernel drivers and modules list

2020-05-17 Thread Mark Knecht
On Sun, May 17, 2020 at 10:48 AM Raphael MD  wrote:
>
> Hello everyone,
>
> I’ve booted my system with a gentoo live cd, just to figure out my system
drivers and modules to configure the kernel, because it’s difficult to
realize what drive my intel Ethernet card uses and many others.
>
> Are there  some command to extract that list to configure the kernel?
>
> In fact, are there some manual to help to configure the kernel in the
best way?
>
>  Usually I configure my Zen processor, put my schedule, and set
preemptive kernel to low latency and put out every other drive.
>
> Thanks!

https://superuser.com/questions/287371/obtain-kernel-config-from-currently-running-linux-system


[gentoo-user] Kernel drivers and modules list

2020-05-17 Thread Raphael MD
Hello everyone,

I’ve booted my system with a gentoo live cd, just to figure out my system
drivers and modules to configure the kernel, because it’s difficult to
realize what drive my intel Ethernet card uses and many others.

Are there  some command to extract that list to configure the kernel?

In fact, are there some manual to help to configure the kernel in the best
way?

 Usually I configure my Zen processor, put my schedule, and set preemptive
kernel to low latency and put out every other drive.

Thanks!

-- 
M.S. Raphael Mejias Dias
​Nuclear Engineer | Reactors

Secure e-mail: raphael.mejias.d...@protonmail.com
PGP Key for raph...@gmail.com:
https://pgp.mit.edu/pks/lookup?op=get=0x87BC5A746072F951


Re: [gentoo-user] Kernel config for Docker

2020-05-17 Thread Peter Humphrey
On Sunday, 17 May 2020 12:26:02 BST Victor Ivanov wrote:
> Andrew makes a good point that, of course, not all options will be
> relevant to a particular image or use case. The script is aimed to check
> for "full" compatibility. Having some reported as missing is by no means
> a deal breaker.
> 
> Re nftables it's a very valid point as well. I too use nftables instead
> of iptables and, in general, anything that dares touch my rules I will
> either disable the option for it to do so or, if that's not possible,
> swiftly eradicate it off my system with vengeance. I'm not a big fan of
> how Docker manages netfilter rules so I too tend to disable that from
> the config and, as Andrew said, it has been slow at adopting nftables.
> It seems Docker is being developed with primary consideration for stable
> (read archaic) distributions that have long release cycles.

Ah. I scent Debian.

> If you use nftables at all - even via other software such as firewalld,
> etc - Docker may or may not like that. Previously, though admitedly
> quite a while ago, Docker just loved adding iptables rules in addition
> to my nftables rules. Needless to say, that quickly became a mess.

I've been using shorewall for many years.

> nftables is _a lot_ easier to manage, even writing rules manually feels
> a lot more intuitive. So I think the learning curve (at least in terms
> of syntax) tends to be less steep IMO if you decide to go down that road
> at some point.
> 
> Anyway, this probably wasn't a post of high contribution value haha

All grist to the mill - thanks.

-- 
Regards,
Peter.






Re: [gentoo-user] Realtek r8169 realtek.ko not loaded.

2020-05-17 Thread William Kenworthy
Here is one of mine: its part of openrc -  if you don't have it you
might be using systemd which should have something similar.

moriah ~ # cat /etc/conf.d/modules
# Linux users can define a list of modules for a specific kernel version,
# a released kernel version, a main kernel version or all kernel versions.
# The most specific versioned variable will take precedence.
# FreeBSD users can only use the modules="foo bar" setting.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules_2="ipv6"
#modules="ohci1394"

# Linux users can give modules a different name when they load - the new
name
# will also be used to pick arguments below.
# This is not supported on FreeBSD.
#modules="dummy:dummy1"

# Linux users can give the modules some arguments if needed, per version
# if necessary.
# Again, the most specific versioned variable will take precedence.
# This is not supported on FreeBSD.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
#module_ieee1394_args_2_6_23="debug3"
#module_ieee1394_args_2_6="debug4"
#module_ieee1394_args_2="debug5"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.

modules="forcedeth nouveau"

On 17/5/20 7:29 pm, Alexander Puchmayr wrote:
> Am Sonntag, 17. Mai 2020, 10:24:00 CEST schrieb William Kenworthy:
>> Easiest would be to put it in /etc/conf.d/modules and rebuild the
>> initrd.  Genkernel picks it up from there.  You could also ask genkernel
>> to add all built modules to the initrd via its config file.
>>
> Whats the format of that file?
>
> Alex
>
>
>
>> BillK
>>
>> On 17/5/20 4:07 pm, Alexander Puchmayr wrote:
>>> Hi there
>>>
>>> I just upgraded an older notebook with r8169 network chip to new kernel
>>> 5.4
>>> (sys-kernel/gentoo-sources-5.4.28) with genkernel.
>>> After booting the new kernel the network adapter was not initialized, no
>>> network interface eth0.
>>> Dmesg says
>>> [6.390973] r8169 :08:00.0: realtek.ko not loaded, maybe it needs
>>> to be added to initramfs?
>>> [6.392864] r8169: probe of :08:00.0 failed with error -2
>>>
>>> After searching with google I found a thread in the kernel mailing list
>>> https://bugzilla.kernel.org/show_bug.cgi?id=204343
>>> The cause is a soft depencency to module realtek.ko, which needs to be
>>> loaded first.
>>>
>>> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe
>>> r8169
>>> works fine; network interface eth0 gets configured and is operating.
>>>
>>> Since the kernel loads the network module before systemd is running, it
>>> has to be configured in initrd somehow.
>>> So, the final question is, how to get that into initrd with genkernel?
>>> I need to add something like this
>>>
>>> cat /etc/modprobe.d/realtek
>>> Softdep r8169 pre: realtek
>>>
>>> How do I get this into initrd with genkernel-next?
>>>
>>> Thanks in advance
>>>
>>> Alex
>>>
>>> PS
>>> Profile:
>>> default/linux/amd64/17.0/desktop/plasma/systemd
>>>
>>> Relevant packages:
>>> sys-apps/gentoo-systemd-integration-7
>>> sys-apps/kmod-26-r5
>>> sys-apps/systemd-244.3
>>> sys-kernel/genkernel-next-69
>>> sys-kernel/gentoo-sources-5.4.28
>>>
>>> Lspci
>>> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
>>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
>


pEpkey.asc
Description: application/pgp-keys


Re: [gentoo-user] Realtek r8169 realtek.ko not loaded.

2020-05-17 Thread Alexander Puchmayr
Am Sonntag, 17. Mai 2020, 10:24:00 CEST schrieb William Kenworthy:
> Easiest would be to put it in /etc/conf.d/modules and rebuild the
> initrd.  Genkernel picks it up from there.  You could also ask genkernel
> to add all built modules to the initrd via its config file.
> 

Whats the format of that file?

Alex



> BillK
> 
> On 17/5/20 4:07 pm, Alexander Puchmayr wrote:
> > Hi there
> > 
> > I just upgraded an older notebook with r8169 network chip to new kernel
> > 5.4
> > (sys-kernel/gentoo-sources-5.4.28) with genkernel.
> > After booting the new kernel the network adapter was not initialized, no
> > network interface eth0.
> > Dmesg says
> > [6.390973] r8169 :08:00.0: realtek.ko not loaded, maybe it needs
> > to be added to initramfs?
> > [6.392864] r8169: probe of :08:00.0 failed with error -2
> > 
> > After searching with google I found a thread in the kernel mailing list
> > https://bugzilla.kernel.org/show_bug.cgi?id=204343
> > The cause is a soft depencency to module realtek.ko, which needs to be
> > loaded first.
> > 
> > Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe
> > r8169
> > works fine; network interface eth0 gets configured and is operating.
> > 
> > Since the kernel loads the network module before systemd is running, it
> > has to be configured in initrd somehow.
> > So, the final question is, how to get that into initrd with genkernel?
> > I need to add something like this
> > 
> > cat /etc/modprobe.d/realtek
> > Softdep r8169 pre: realtek
> > 
> > How do I get this into initrd with genkernel-next?
> > 
> > Thanks in advance
> > 
> > Alex
> > 
> > PS
> > Profile:
> > default/linux/amd64/17.0/desktop/plasma/systemd
> > 
> > Relevant packages:
> > sys-apps/gentoo-systemd-integration-7
> > sys-apps/kmod-26-r5
> > sys-apps/systemd-244.3
> > sys-kernel/genkernel-next-69
> > sys-kernel/gentoo-sources-5.4.28
> > 
> > Lspci
> > 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> > RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)


-- 
Dipl. Ing. Alexander Puchmayr
Grundbachstraße 36
4060 Leonding, Österreich







Re: [gentoo-user] Kernel config for Docker

2020-05-17 Thread Victor Ivanov
Andrew makes a good point that, of course, not all options will be
relevant to a particular image or use case. The script is aimed to check
for "full" compatibility. Having some reported as missing is by no means
a deal breaker.

Re nftables it's a very valid point as well. I too use nftables instead
of iptables and, in general, anything that dares touch my rules I will
either disable the option for it to do so or, if that's not possible,
swiftly eradicate it off my system with vengeance. I'm not a big fan of
how Docker manages netfilter rules so I too tend to disable that from
the config and, as Andrew said, it has been slow at adopting nftables.
It seems Docker is being developed with primary consideration for stable
(read archaic) distributions that have long release cycles.

If you use nftables at all - even via other software such as firewalld,
etc - Docker may or may not like that. Previously, though admitedly
quite a while ago, Docker just loved adding iptables rules in addition
to my nftables rules. Needless to say, that quickly became a mess.

nftables is _a lot_ easier to manage, even writing rules manually feels
a lot more intuitive. So I think the learning curve (at least in terms
of syntax) tends to be less steep IMO if you decide to go down that road
at some point.

Anyway, this probably wasn't a post of high contribution value haha

Keep us updated in case you encounter any issues!

Cheers,
Victor

On 17/05/2020 09:31, Peter Humphrey wrote:
> On Sunday, 17 May 2020 00:58:54 BST Andrew Udvare wrote:
>> On 16/05/2020 13:12, Peter Humphrey wrote:
>>> I can't find any of those. Any clues for the uninitiated?
>>
>> I am running Docker fine on 5.6.12 and I am missing a lot:
> 
> --->8
> 
>> In regards to NF options, I use nftables and I manage the firewall
>> manually for Docker (I set {"iptables": false} in
>> /etc/docker/daemon.json). Docker has been extremely slow at adopting
>> nftables.
> 
> I'm still pretty much in the dark about setting up nftables and iptables in 
> the kernel config. Not to worry, though; I dare say it'll become clearer in 
> time.
> 
>> You definitely do not need zfs installed to use Docker. This machine
>> doesn't have it.
>>
>> As Victor stated, CFQ is deprecated and gone and BFQ will work fine. And
>> the script is basically for Red Hat (or corporate) users who still use
>> iptables, CFQ, ext3 apparently, and a much older kernel.
>>
>> On my slightly stabler server (running 5.4.38), this is the output and
>> Docker still works fine. Again on that server I use nftables and manage
>> the firewall manually. The system has ext4 for its root and the rest of
>> it is ZFS.
> 
> --->8
> 
> Thanks gents. I'll just try it and see what happens.
> 



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Realtek r8169 realtek.ko not loaded.

2020-05-17 Thread Victor Ivanov
Hi Alexander,

A while back I had the exact same issue with a remote machine that I am
managing. It has an Asus B45-M mobo with an r8169 chipset. Ever since
the 5.2.x kernel family - where it last used to work - it has been a pain.

Initially I added a manual "soft" dependency in "/etc/conf.d/modules" as
William has suggested to you with "realtek" appearing first in the list.
But this stopped working following an update to 5.4.x and is still the
case today with the 5.6.x family (I keep testing it once in a while).

I then decided to build both realtek and r8169 modules into the kernel:

REALTEK_PHY=y
CONFIG_R8169=y

It did require a bit of faff as the whole chain of dependencies from
REALTEK_PHY had to be built in as well, but I think that was about 5-6
kernel options in total.

Adding it to the ramdisk as William suggests might work too. In my case
I didn't bother trying this due to the fact that every failed attempted
required manual intervention by someone to get the machine booted with
working kernel.

I have a gut feeling that tells me adding it to the initrd probably
won't work. But if you're planning on trying it, please keep us posted.
I would be very interested in hearing your solution.

Regards,
V

On 17/05/2020 09:07, Alexander Puchmayr wrote:
> Hi there
> 
> I just upgraded an older notebook with r8169 network chip to new kernel 5.4 
> (sys-kernel/gentoo-sources-5.4.28) with genkernel. 
> After booting the new kernel the network adapter was not initialized, no 
> network interface eth0.
> Dmesg says
> [6.390973] r8169 :08:00.0: realtek.ko not loaded, maybe it needs to 
> be 
> added to initramfs?
> [6.392864] r8169: probe of :08:00.0 failed with error -2
> 
> After searching with google I found a thread in the kernel mailing list
> https://bugzilla.kernel.org/show_bug.cgi?id=204343
> The cause is a soft depencency to module realtek.ko, which needs to be loaded 
> first.
> 
> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169 
> works fine; network interface eth0 gets configured and is operating.
> 
> Since the kernel loads the network module before systemd is running, it has 
> to 
> be configured in initrd somehow.
> So, the final question is, how to get that into initrd with genkernel?
> I need to add something like this
> 
> cat /etc/modprobe.d/realtek 
> Softdep r8169 pre: realtek
> 
> How do I get this into initrd with genkernel-next?
> 
> Thanks in advance
>   Alex
> 
> PS 
> Profile:
> default/linux/amd64/17.0/desktop/plasma/systemd
> 
> Relevant packages:
> sys-apps/gentoo-systemd-integration-7
> sys-apps/kmod-26-r5
> sys-apps/systemd-244.3
> sys-kernel/genkernel-next-69
> sys-kernel/gentoo-sources-5.4.28
> 
> Lspci
> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
> RTL8111/8168/8411 
> PCI Express Gigabit Ethernet Controller (rev 03)
> 
> 
> 
> 



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Kernel config for Docker

2020-05-17 Thread Peter Humphrey
On Sunday, 17 May 2020 00:58:54 BST Andrew Udvare wrote:
> On 16/05/2020 13:12, Peter Humphrey wrote:
> > I can't find any of those. Any clues for the uninitiated?
> 
> I am running Docker fine on 5.6.12 and I am missing a lot:

--->8

> In regards to NF options, I use nftables and I manage the firewall
> manually for Docker (I set {"iptables": false} in
> /etc/docker/daemon.json). Docker has been extremely slow at adopting
> nftables.

I'm still pretty much in the dark about setting up nftables and iptables in 
the kernel config. Not to worry, though; I dare say it'll become clearer in 
time.

> You definitely do not need zfs installed to use Docker. This machine
> doesn't have it.
> 
> As Victor stated, CFQ is deprecated and gone and BFQ will work fine. And
> the script is basically for Red Hat (or corporate) users who still use
> iptables, CFQ, ext3 apparently, and a much older kernel.
> 
> On my slightly stabler server (running 5.4.38), this is the output and
> Docker still works fine. Again on that server I use nftables and manage
> the firewall manually. The system has ext4 for its root and the rest of
> it is ZFS.

--->8

Thanks gents. I'll just try it and see what happens.

-- 
Regards,
Peter.






Re: [gentoo-user] Realtek r8169 realtek.ko not loaded.

2020-05-17 Thread William Kenworthy
Easiest would be to put it in /etc/conf.d/modules and rebuild the
initrd.  Genkernel picks it up from there.  You could also ask genkernel
to add all built modules to the initrd via its config file.

BillK


On 17/5/20 4:07 pm, Alexander Puchmayr wrote:
> Hi there
>
> I just upgraded an older notebook with r8169 network chip to new kernel 5.4 
> (sys-kernel/gentoo-sources-5.4.28) with genkernel. 
> After booting the new kernel the network adapter was not initialized, no 
> network interface eth0.
> Dmesg says
> [6.390973] r8169 :08:00.0: realtek.ko not loaded, maybe it needs to 
> be 
> added to initramfs?
> [6.392864] r8169: probe of :08:00.0 failed with error -2
>
> After searching with google I found a thread in the kernel mailing list
> https://bugzilla.kernel.org/show_bug.cgi?id=204343
> The cause is a soft depencency to module realtek.ko, which needs to be loaded 
> first.
>
> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169 
> works fine; network interface eth0 gets configured and is operating.
>
> Since the kernel loads the network module before systemd is running, it has 
> to 
> be configured in initrd somehow.
> So, the final question is, how to get that into initrd with genkernel?
> I need to add something like this
>
> cat /etc/modprobe.d/realtek 
> Softdep r8169 pre: realtek
>
> How do I get this into initrd with genkernel-next?
>
> Thanks in advance
>   Alex
>
> PS 
> Profile:
> default/linux/amd64/17.0/desktop/plasma/systemd
>
> Relevant packages:
> sys-apps/gentoo-systemd-integration-7
> sys-apps/kmod-26-r5
> sys-apps/systemd-244.3
> sys-kernel/genkernel-next-69
> sys-kernel/gentoo-sources-5.4.28
>
> Lspci
> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
> RTL8111/8168/8411 
> PCI Express Gigabit Ethernet Controller (rev 03)
>
>
>
>


pEpkey.asc
Description: application/pgp-keys


[gentoo-user] Realtek r8169 realtek.ko not loaded.

2020-05-17 Thread Alexander Puchmayr
Hi there

I just upgraded an older notebook with r8169 network chip to new kernel 5.4 
(sys-kernel/gentoo-sources-5.4.28) with genkernel. 
After booting the new kernel the network adapter was not initialized, no 
network interface eth0.
Dmesg says
[6.390973] r8169 :08:00.0: realtek.ko not loaded, maybe it needs to be 
added to initramfs?
[6.392864] r8169: probe of :08:00.0 failed with error -2

After searching with google I found a thread in the kernel mailing list
https://bugzilla.kernel.org/show_bug.cgi?id=204343
The cause is a soft depencency to module realtek.ko, which needs to be loaded 
first.

Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169 
works fine; network interface eth0 gets configured and is operating.

Since the kernel loads the network module before systemd is running, it has to 
be configured in initrd somehow.
So, the final question is, how to get that into initrd with genkernel?
I need to add something like this

cat /etc/modprobe.d/realtek 
Softdep r8169 pre: realtek

How do I get this into initrd with genkernel-next?

Thanks in advance
Alex

PS 
Profile:
default/linux/amd64/17.0/desktop/plasma/systemd

Relevant packages:
sys-apps/gentoo-systemd-integration-7
sys-apps/kmod-26-r5
sys-apps/systemd-244.3
sys-kernel/genkernel-next-69
sys-kernel/gentoo-sources-5.4.28

Lspci
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 03)