Friday, August 24, 2018

[fedora-arm] Re: F28 on odroid XU4

Am 2018-08-24 14:37, schrieb Vince Geze:
>> -----Original Message-----
>> From: arm_ml@rirasoft.de [mailto:arm_ml@rirasoft.de]
>> Sent: Friday, August 24, 2018 2:27 PM
>> To: Vince Geze <vincegeze@gmail.com>
>> Cc: arm@lists.fedoraproject.org
>> Subject: Re: [fedora-arm] Re: F28 on odroid XU4
>>
>> Am 2018-08-24 14:17, schrieb Vince Geze:
>> >> -----Original Message-----
>> >> From: arm_ml@rirasoft.de [mailto:arm_ml@rirasoft.de]
>> >> Sent: Friday, August 24, 2018 1:39 PM
>> >> To: Vince Geze <vincegeze@gmail.com>
>> >> Cc: arm@lists.fedoraproject.org
>> >> Subject: Re: [fedora-arm] Re: F28 on odroid XU4
>> >>
>> >> Am 2018-08-24 12:09, schrieb Vince Geze:
>> >> --snip--
>> >> >
>> >> > Well, after countless reboots it seems to be even more simple.
>> >> > - USB3: preloading xhci-plat-hcd, which already is in the
>> >> > initramfs, is sufficient to get proper USB3 operation and the r8152
>> >> > at full speed as well
>> >> > - CPU HMP: this one I already knew was linked to the
>> >> > CONFIG_BL_SWITCHER. On [1] it is mentioned there are both sysfs and
>> >> > kernel boot options to control this behavior. The sysfs path exists
>> >> > and with lscpu you can see all 8 cores being put online. The kernel
>> >> > boot command however turned out to be incorrect, but after some
>> >> > digging I found you only need "no_bL_switcher" as boot option.
>> >> >
>> >> > Since the board will be used headless, I also enabled the blinking
>> >> > led by preloading ledtrig-heartbeat, but this needs to be included
>> >> > in a /etc/dracut.conf.d/ conf file with 'add_drivers+="
>> >> > ledtrig-heartbeat "'. The blinking frequency also gives an indication
> of
>> the load.
>> >> >
>> >> > The final boot line now looks like this:
>> >> > append ro rd.driver.pre=ledtrig-heartbeat,xhci-plat-hcd
>> >> > root=UUID=your_UUID cpuidle.off=1 no_bL_switcher console=tty1
>> >> > console=ttySAC2,115200n8
>> >> >
>> >> > Result:
>> >> > - systematically correct detection of USB3
>> >> > - performance improvement by enabling all cpus
>> >> > - indication whether the system is alive or not
>> >> > - no need for recompiling kernels, only boot time options and an
>> >> > optional dracut inclusion
>> >> >
>> >> > Best regards,
>> >> >
>> >> > Vince
>> >> >
>> >> > [1]
>> >> > https://wiki.linaro.org/projects/big.LITTLE.MP/Big.Little.Switcher/
>> >> > Doc
>> >> > s/porting-guide
>> >> _______________________________________________
>> >> > arm mailing list -- arm@lists.fedoraproject.org To unsubscribe send
>> >> > an email to arm-leave@lists.fedoraproject.org Fedora Code of Conduct:
>> >> > https://getfedora.org/code-of-conduct.html
>> >> > List Guidelines:
>> >> > https://fedoraproject.org/wiki/Mailing_list_guidelines
>> >> > List Archives:
>> >> >
> https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.
>> >> > org/message/Y7EMT5B5HYSV3SX533YZZHOOEOMRHNFZ/
>> >>
>> >> Hello Vince,
>> >>
>> >> I must say thank you !
>> >>
>> >> With your work I can enable all 8 CPUs on my Odroid HC1.
>> >>
>> >> lscpu before:
>> >> [root@odroidh1 ~]# lscpu
>> >> Architektur: armv7l
>> >> Byte-Reihenfolge: Little Endian
>> >> CPU(s): 8
>> >> Liste der Online-CPU(s): 0-3
>> >> Liste der Offline-CPU(s): 4-7
>> >> Thread(s) pro Kern: 1
>> >> Kern(e) pro Socket: 4
>> >> Sockel: 1
>> >>
>> >> lscpu after:
>> >> Architektur: armv7l
>> >> Byte-Reihenfolge: Little Endian
>> >> CPU(s): 8
>> >> Liste der Online-CPU(s): 0-7
>> >> Thread(s) pro Kern: 1
>> >> Kern(e) pro Socket: 4
>> >> Sockel: 2
>> >>
>> >> Greetings
>> >> Andreas
>> >
>> > Hi Andreas,
>> >
>> > Glad to hear it's working on your side as well. Could you also check
>> > the number at the end of the r8152 line in lsusb -t with the default
>> > boot line without preloads? Is it 480M or 5000M?
>> >
>> > Best regards,
>> >
>> > Vince
>>
>> System without your modifikation:
>>
>> [root@odroidh1 ~]# lsusb -t
>> /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
>> /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
>> |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class,
>> Driver=r8152,
> 480M
>> /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
>> |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
>> /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
>> /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
>> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
>> [root@odroidh1 ~]#
>>
>> System with your modifikation:
>>
>> [root@odroidh2 ~]# lsusb -t
>> /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
>> /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
>> |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class,
>> Driver=r8152,
> 480M
>> /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
>> |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
>> /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
>> /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
>> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
>> [root@odroidh2 ~]#
>>
>> Systems are identical: Odroid HC1 with update Fedora 28
>>
>> Andreas
>
> Hi Andreas,
>
> Looks like the storage is working at USB3 speed, but the Ethernet at
> USB2.
> Have you included the xhci preload at the modified boot line?
>
> Best regards,
>
> Vince

Yes of course:
[root@odroidh2 ~]# cat /boot/extlinux/extlinux.conf
# extlinux.conf generated by appliance-creator
ui menu.c32
menu autoboot Welcome to Fedora-Minimal-armhfp-28-1.1. Automatic boot in
# second{,s}. Press a key for options.
menu title Fedora-Minimal-armhfp-28-1.1 Boot Options.
menu hidden
timeout 20
totaltimeout 600

default=Fedora (4.17.14-202.fc28.armv7hl) 28 (Twenty Eight)
label Fedora (4.17.14-202.fc28.armv7hl) 28 (Twenty Eight)
kernel /vmlinuz-4.17.14-202.fc28.armv7hl
append ro rd.driver.pre=ledtrig-heartbeat,xhci-plat-hcd
root=UUID=cf0c90a1-25e4-429b-a77e-b9b4f3802258 cpuidle.off=1
LANG=de_DE.UTF-8 no_bL_switcher console=tty1 console=ttySAC2,1152
00n8
fdtdir /dtb-4.17.14-202.fc28.armv7hl/
initrd /initramfs-4.17.14-202.fc28.armv7hl.img

[root@odroidh2 ~]#

I've edit this line with the older kernel before I updated the system
this kernel.

Andreas
_______________________________________________
arm mailing list -- arm@lists.fedoraproject.org
To unsubscribe send an email to arm-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org/message/ICKOOTFFT2SNY6TYUZTNY2RRNNBCYBQW/

No comments:

Post a Comment