Re: qlnxe driver not in 13.0 arm64

2021-03-31 Thread Hans Petter Selasky

On 3/30/21 8:31 PM, John-Mark Gurney wrote:

Daniel Morante via freebsd-stable wrote this message on Sun, Mar 28, 2021 at 
03:23 -0400:

I installed 13.0-RC3 ARM64 from the DVD ISO image
(FreeBSD-13.0-BETA4-arm64-aarch64-dvd1.iso
).
There is no "if_qlnxe" kernel model present on the install media, or on
the system after installing.

Next I try to build a custom kernel. I add "device qlnxe" to the
configuration file as instructed in
https://www.freebsd.org/cgi/man.cgi?query=qlnxe&manpath=FreeBSD+13.0-current.


Running "make buildkernel KERNCONF=THUNDERX2" results in:

config: Error: device "qlnxe" is unknown

Is this module not available for ARM64 architecture?


Correct, this is only available for amd64.

HPS might have some more insight as to why it's amd64 only.

I have cc'd him.

It could be as simple as moving the qlnxe lines from files.amd64 to files,
but it does appear that qnlxe depends upon the Linux compat layer, which
may not be complete for arm64..



The LinuxKPI works for ARM64 aswell. Maybe the QLNXE driver is not 
tested for ARM64.


--HPS
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: qlnxe driver not in 13.0 arm64

2021-03-30 Thread Daniel Morante via freebsd-stable
I tried to move the lines, but maybe I did something wrong since it 
failed to build.


make[3]: stopped in /usr/src/sys/modules *** [modules-all] Error code 2 
make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/THUNDERX2 15 errors


The full output is here: 
http://venus.morante.net/downloads/unibia/freebsd/misc/arm64/qlnxe_13.0-RC4-arm64.log



On 3/30/21 2:31 PM, John-Mark Gurney wrote:

Daniel Morante via freebsd-stable wrote this message on Sun, Mar 28, 2021 at 
03:23 -0400:

I installed 13.0-RC3 ARM64 from the DVD ISO image
(FreeBSD-13.0-BETA4-arm64-aarch64-dvd1.iso
).
There is no "if_qlnxe" kernel model present on the install media, or on
the system after installing.

Next I try to build a custom kernel. I add "device qlnxe" to the
configuration file as instructed in
https://www.freebsd.org/cgi/man.cgi?query=qlnxe&manpath=FreeBSD+13.0-current.


Running "make buildkernel KERNCONF=THUNDERX2" results in:

config: Error: device "qlnxe" is unknown

Is this module not available for ARM64 architecture?

Correct, this is only available for amd64.

HPS might have some more insight as to why it's amd64 only.

I have cc'd him.

It could be as simple as moving the qlnxe lines from files.amd64 to files,
but it does appear that qnlxe depends upon the Linux compat layer, which
may not be complete for arm64..

#
# GENERIC -- Generic kernel configuration file for FreeBSD/arm64
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
#
#
https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD$

cpu ARM64
ident   GENERIC

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols
makeoptions WITH_CTF=1  # Run ctfconvert(1) for DTrace support

options SCHED_ULE   # ULE scheduler
options NUMA# Non-Uniform Memory Architecture 
support
options PREEMPTION  # Enable kernel thread preemption
options VIMAGE  # Subsystem virtualization, e.g. VNET
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options IPSEC_SUPPORT   # Allow kldload of ipsec and tcpmd5
options ROUTE_MPATH # Multipath routing support
options TCP_OFFLOAD # TCP offload
options TCP_HHOOK   # hhook(9) framework for TCP
options TCP_RFC7413 # TCP Fast Open
options SCTP_SUPPORT# Allow kldload of SCTP
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options QUOTA   # Enable disk quotas for UFS
options MD_ROOT # MD is a potential root device
options NFSCL   # Network Filesystem Client
options NFSD# Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCL
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options TMPFS   # Efficient memory filesystem
options GEOM_RAID   # Soft RAID functionality.
options GEOM_LABEL  # Provides labelization
options EFIRT   # EFI Runtime Services support
options COMPAT_FREEBSD32# Compatible with FreeBSD/arm
options COMPAT_FREEBSD11# Compatible with FreeBSD11
options COMPAT_FREEBSD12# Compatible with FreeBSD12
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SY

Re: qlnxe driver not in 13.0 arm64

2021-03-30 Thread Daniel Morante via freebsd-stable
To test it with a custom kernel, would I only need to add these lines 
(https://cgit.freebsd.org/src/tree/sys/conf/files.amd64#n279-306)?


|dev/qlnx/qlnxe/ecore_cxt.c optional qlnxe pci \ compile-with 
"${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c optional qlnxe pci \ 
compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dcbx.c optional qlnxe 
pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dev.c optional 
qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_hw.c 
optional qlnxe pci \ compile-with "${LINUXKPI_C}" 
dev/qlnx/qlnxe/ecore_init_fw_funcs.c optional qlnxe pci \ compile-with 
"${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_init_ops.c optional qlnxe pci \ 
compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_int.c optional qlnxe 
pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_l2.c optional 
qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_mcp.c 
optional qlnxe pci \ compile-with "${LINUXKPI_C}" 
dev/qlnx/qlnxe/ecore_sp_commands.c optional qlnxe pci \ compile-with 
"${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_spq.c optional qlnxe pci \ 
compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/qlnx_ioctl.c optional qlnxe 
pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/qlnx_os.c optional 
qlnxe pci \ compile-with "${LINUXKPI_C}"|



On 3/30/21 3:00 PM, Hans Petter Selasky wrote:

On 3/30/21 8:31 PM, John-Mark Gurney wrote:
Daniel Morante via freebsd-stable wrote this message on Sun, Mar 28, 
2021 at 03:23 -0400:

I installed 13.0-RC3 ARM64 from the DVD ISO image
(FreeBSD-13.0-BETA4-arm64-aarch64-dvd1.iso
). 


There is no "if_qlnxe" kernel model present on the install media, or on
the system after installing.

Next I try to build a custom kernel. I add "device qlnxe" to the
configuration file as instructed in
https://www.freebsd.org/cgi/man.cgi?query=qlnxe&manpath=FreeBSD+13.0-current. 




Running "make buildkernel KERNCONF=THUNDERX2" results in:

config: Error: device "qlnxe" is unknown

Is this module not available for ARM64 architecture?


Correct, this is only available for amd64.

HPS might have some more insight as to why it's amd64 only.

I have cc'd him.

It could be as simple as moving the qlnxe lines from files.amd64 to 
files,

but it does appear that qnlxe depends upon the Linux compat layer, which
may not be complete for arm64..



The LinuxKPI works for ARM64 aswell. Maybe the QLNXE driver is not 
tested for ARM64.


--HPS



smime.p7s
Description: S/MIME Cryptographic Signature


Re: qlnxe driver not in 13.0 arm64

2021-03-30 Thread John-Mark Gurney
Daniel Morante via freebsd-stable wrote this message on Sun, Mar 28, 2021 at 
03:23 -0400:
> I installed 13.0-RC3 ARM64 from the DVD ISO image 
> (FreeBSD-13.0-BETA4-arm64-aarch64-dvd1.iso 
> ).
>  
> There is no "if_qlnxe" kernel model present on the install media, or on 
> the system after installing.
> 
> Next I try to build a custom kernel. I add "device qlnxe" to the 
> configuration file as instructed in 
> https://www.freebsd.org/cgi/man.cgi?query=qlnxe&manpath=FreeBSD+13.0-current. 
> 
> 
> Running "make buildkernel KERNCONF=THUNDERX2" results in:
> 
> config: Error: device "qlnxe" is unknown
> 
> Is this module not available for ARM64 architecture?

Correct, this is only available for amd64.

HPS might have some more insight as to why it's amd64 only.

I have cc'd him.

It could be as simple as moving the qlnxe lines from files.amd64 to files,
but it does appear that qnlxe depends upon the Linux compat layer, which
may not be complete for arm64..

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


qlnxe driver not in 13.0 arm64

2021-03-28 Thread Daniel Morante via freebsd-stable
I installed 13.0-RC3 ARM64 from the DVD ISO image 
(FreeBSD-13.0-BETA4-arm64-aarch64-dvd1.iso 
). 
There is no "if_qlnxe" kernel model present on the install media, or on 
the system after installing.


Next I try to build a custom kernel. I add "device qlnxe" to the 
configuration file as instructed in 
https://www.freebsd.org/cgi/man.cgi?query=qlnxe&manpath=FreeBSD+13.0-current. 



Running "make buildkernel KERNCONF=THUNDERX2" results in:

config: Error: device "qlnxe" is unknown

Is this module not available for ARM64 architecture?

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"