Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please enable the drivers for Xillybus and XillyUSB as modules #5786

Closed
billauer opened this issue Dec 12, 2023 · 4 comments
Closed

Please enable the drivers for Xillybus and XillyUSB as modules #5786

billauer opened this issue Dec 12, 2023 · 4 comments

Comments

@billauer
Copy link
Contributor

Describe the bug

The drivers for Xillybus and XillyUSB are not enabled in the kernel, not even as modules. As a result, people who want to use the PCIe / USB3 interface with Xillybus to interface with an FPGA, need to compile these drivers separately.

These drivers are beneficial for targets that support PCIe and/or USB3 (i.e. BCM2711 and BCM2712).

Steps to reproduce the behaviour

In the kernel compilation environment:

$ make ARCH=arm64 bcm2711_defconfig
#
# configuration written to .config
#
$ grep XILLY .config
# CONFIG_XILLYBUS is not set
# CONFIG_XILLYUSB is not set

The same happens with bcm2712_defconfig

The desired output is:

CONFIG_XILLYBUS_CLASS=m
CONFIG_XILLYBUS=m
CONFIG_XILLYBUS_PCIE=m
CONFIG_XILLYUSB=m

Device (s)

Raspberry Pi 4 Mod. B, Raspberry Pi 400, Other

System

This applies to all kernel versions currently available.

Logs

No response

Additional context

Xillybus is a solution for communication between programmable hardware (FPGA) and a host using the PCIe bus as well as USB 3.0. It makes the development of a combination between an FPGA and an embedded Linux system considerably easier.

It's further explained in the kernel tree's Documentation/xillybus.txt and at http://www.xillybus.com.

The suggested fix enables the compilation of the driver for Xillybus as a module. This driver has been in the kernel under drivers/char/xillybus/ since kernel v3.18 (and as a staging driver since v3.12) and is beneficial for FPGA hardware developers using the relevant hardware component.

The driver is enabled in several mainstream Linux distributions, e.g. Ubuntu >= 14.04. XillyUSB was enabled in Ubuntu 22.04 and Fedora 35.

Being a kernel module for a PCIe/USB device, it's activated only on a Vendor/Device IDs match, so this change has no possible impact on users who have no direct interest in it. Regardless, the module is stable for several years.

Please consider enabling these drivers for the mentioned targets.

@pelwell
Copy link
Contributor

pelwell commented Dec 12, 2023

Do you want the XILLYBUS_OF option as well? Given that it's so small it seems a shame not to.

@billauer
Copy link
Contributor Author

Do you want the XILLYBUS_OF option as well? Given that it's so small it seems a shame not to.

I don't mind, but I don't think it will do anything useful. XILLYBUS_OF is intended for a connection between the ARM processor's internal AXI bus and programmable logic. This is currently only supported on Zynq-7000 FPGA/ARM combo devices by AMD (formerly Xilinx). As far as I know, the internal AXI bus isn't exposed to the outer world on BCM devices.

And thanks.

pelwell added a commit that referenced this issue Dec 12, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor

pelwell commented Dec 12, 2023

Added - see 5931a01.

@billauer
Copy link
Contributor Author

Yay! Thanks a lot!

@pelwell pelwell closed this as completed Dec 12, 2023
pelwell added a commit that referenced this issue Dec 13, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this issue Dec 13, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Dec 14, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix added a commit to raspberrypi/firmware that referenced this issue Dec 15, 2023
kernel: dts: rp1: add SNPS quirk to USB3 host controllers
See: raspberrypi/linux#5788

kernel: firmware/psci: Pass given partition number through
See: raspberrypi/linux#5785

kernel: drivers/gpu/drm/panel:fix waveshare panel software restart/shutdown display is abnormal
See: raspberrypi/linux#5781

kernel: configs: Add XILLYBUS support modules
See: raspberrypi/linux#5786
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this issue Dec 15, 2023
kernel: dts: rp1: add SNPS quirk to USB3 host controllers
See: raspberrypi/linux#5788

kernel: firmware/psci: Pass given partition number through
See: raspberrypi/linux#5785

kernel: drivers/gpu/drm/panel:fix waveshare panel software restart/shutdown display is abnormal
See: raspberrypi/linux#5781

kernel: configs: Add XILLYBUS support modules
See: raspberrypi/linux#5786
popcornmix pushed a commit that referenced this issue Dec 19, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Dec 21, 2023
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 2, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 8, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 11, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 17, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 17, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 22, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 22, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 29, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jan 30, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 6, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 6, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 19, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 19, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 23, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Feb 23, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 5, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 5, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 11, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 19, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 27, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this issue Apr 5, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Apr 5, 2024
See: #5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
rajeshkumarwr pushed a commit to rajeshkumarwr/linux-yocto that referenced this issue Jul 9, 2024
See: raspberrypi/linux#5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
rajeshkumarwr pushed a commit to rajeshkumarwr/linux-yocto that referenced this issue Jul 10, 2024
See: raspberrypi/linux#5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
rajeshkumarwr pushed a commit to rajeshkumarwr/linux-yocto that referenced this issue Jul 18, 2024
See: raspberrypi/linux#5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
rajeshkumarwr pushed a commit to rajeshkumarwr/linux-yocto that referenced this issue Jul 20, 2024
commit a96b9812284cd223a2ae99f5650cb2ea5104d69f from
https://github.com/raspberrypi/linux.git rpi-6.6.y

See: raspberrypi/linux#5786

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Rajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants