Kernel 5.2

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

I think the problem with the Logitech wireless USB mouse is somewhere in the file a/drivers/hid/hid-logitech-dj.c.

Maybe this is the problem:

Code: Select all

struct dj_device {
 	struct hid_device *hdev;
 	struct dj_receiver_dev *dj_receiver_dev;
-	u32 reports_supported;
+	u64 reports_supported;
 	u8 device_index;
 };
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

Hi Ace,

I undid the changes in the file drivers/hid/hid-logitech-dj.c today. After that I created a new test kernel.

Download: uImage-hid2

Please test this kernel with your Logitech wireless USB mouse.

Just for info. The kernel developers rewrote the complete code for the Logitech wireless receivers.
They wrote: logitech-dj has historically been treating devices behind non-unifying receivers as generic devices, using the HID emulation in the receiver. That had several shortcomings (special keys handling, battery level monitoring, etc). The driver has been reworked to enumarate (and directly communicate with) the devices behind the receiver, to avoid the (too) generic HID implementation in the receiver itself. All the work done by Benjamin Tissoires and Hans de Goede.
This is the reason why your outputs of 'xinput list' are so different between the DRM11 and alpha2.

DRM11:

Code: Select all

 ↳ Logitech USB Receiver id=7 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver Consumer Control id=8 [slave pointer (2)]
alpha2:

Code: Select all

⎜ ↳ Logitech M280/320/275 id=7 [slave pointer (2)]
Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
acefnq
Posts: 236
Joined: Fri Sep 09, 2011 9:58 am

Re: Kernel 5.2

Post by acefnq »

Christian
HID2 boots to Firepro and Logitech mouse works fine.

allan@Amigaone:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 Consumer Control id=7 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 id=9 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver Consumer Control id=10 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)]
⎜ ↳ SteelSeries SteelSeries Rival 100 Gaming Mouse id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 id=6 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 System Control id=8 [slave keyboard (3)]
allan@Amigaone:~$


Thanks
ace
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

acefnq wrote:Christian
HID2 boots to Firepro and Logitech mouse works fine.

allan@Amigaone:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 Consumer Control id=7 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 id=9 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver Consumer Control id=10 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)]
⎜ ↳ SteelSeries SteelSeries Rival 100 Gaming Mouse id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 id=6 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 System Control id=8 [slave keyboard (3)]
allan@Amigaone:~$


Thanks
ace
Hi Ace,

Thanks a lot for testing! :-) Now, we definitely know, that the issue is somewhere in the file a/drivers/hid/hid-logitech-dj.c of the HID updates.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

Hi All,

I released the alpha4 of kernel 5.2 for testing today. :-)

New:
It also includes:
  • X5000 and X1000: vgaarb patch for solving the issue with two graphics cards in an AmigaOne. Link to the bug report: Bug 109345 - drm-next-2018-12-14 -Linux PPC
  • X1000: pata_of_platform-v2 patch for solving the issues with new CF cards connected to the onboard CompactFlash Card Slot
  • X1000: Disabling the kernel config options CONFIG_PATA_PCMCIA, CONFIG_PCMCIA, and CONFIG_ELECTRA_CF for the pata_of_platform-v2 patch
  • X1000: compressed kernel (zImage) and uncompressed kernel (vmlinux)
CF cards test thread: forum.hyperion-entertainment.com

Download: linux-image-5.2-alpha4-X1000_X5000.tar.gz

Screenshot of Fienix PowerPC with the kernel 5.2-alpha4:

Image

BTW, I created a new PowerPC cross compiling environment on ubuntu MATE 18.04.2 LTS x86_64 (GCC 7.4.0) today. This kernel has been compiled with this new cross compiling environment.

@SailorMH
Please test it with your CF cards.

@Ace
Please test the default kernel (uImage-5.2) with your two installed graphics cards and the additional test kernel (uImage-hid3) with your Logitech wireless USB mouse.

Thanks,
Christian

[1] I changed all lines with "u64 reports_supported;" to "u32 reports_supported;" in the file "a/drivers/hid/hid-logitech-dj.c".
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 861
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.2

Post by Skateman »

Kernel 5.2 Alpha 4 running on the AmigaOne X5000 with the latest version of ArcticFox 27.9.17

Image

Big picture http://www.skateman.nl/wp-content/uploa ... 202002.png
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

Skateman wrote:Kernel 5.2 Alpha 4 running on the AmigaOne X5000 with the latest version of ArcticFox 27.9.17
Many thanks for testing the alpha4! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
acefnq
Posts: 236
Joined: Fri Sep 09, 2011 9:58 am

Re: Kernel 5.2

Post by acefnq »

Christian
Both boot to Firepro but Logitech mouse does not work with either.

ace

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 Consumer Control id=7 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 id=9 [slave pointer (2)]
⎜ ↳ SteelSeries SteelSeries Rival 100 Gaming Mouse id=10 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse PID:4040 id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 id=6 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 System Control id=8 [slave keyboard (3)]
allan@Amigaone:~$
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

acefnq wrote:Christian
Both boot to Firepro but Logitech mouse does not work with either.

ace

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 Consumer Control id=7 [slave pointer (2)]
⎜ ↳ Microsoft Wired Keyboard 600 id=9 [slave pointer (2)]
⎜ ↳ SteelSeries SteelSeries Rival 100 Gaming Mouse id=10 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse PID:4040 id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 id=6 [slave keyboard (3)]
↳ Microsoft Wired Keyboard 600 System Control id=8 [slave keyboard (3)]
allan@Amigaone:~$
Hi Allan,

Thanks a lot for testing the kernels! :-)

Could you please file a bug report at https://bugzilla.kernel.org/buglist.cgi?component=Input Devices?

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.2

Post by xeno74 »

xeno74 wrote: Hi Allan,

Thanks a lot for testing the kernels! :-)

Could you please file a bug report at https://bugzilla.kernel.org/buglist.cgi?component=Input Devices?

Thanks,
Christian
Hi Allan,

Could you also please create the following xorg.conf (/etc/X11/xorg.conf) and reboot your X5000 with the stable kernel 5.1?

Code: Select all

Section "Device"
        Identifier "ATI RV620 [FirePro 2260]"
        BusID   "PCI:5@4096:0:0"
EndSection
Thanks,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply