cgem: Add support for the SiFive FU740Note that currently Linux's device tree uses the FU540's compatiblestring, as does upstream U-Boot, but the U-Boot shipped with the boardbased on an older pa
cgem: Add support for the SiFive FU740Note that currently Linux's device tree uses the FU540's compatiblestring, as does upstream U-Boot, but the U-Boot shipped with the boardbased on an older patch series has the correct FU740 name. Thankfullythey are the same, at least as far as software is concerned.Whilst here, fix a style(9) nit.Reviewed by: philip, kpMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D31034(cherry picked from commit 4c4a6884ad7fb18b0777597a4f6c2cdb235dccb6)
show more ...
cgem: improve usage of busdma(9) KPIBUS_DMA_NOCACHE should only be used when one needs to guarantee thecreated mapping has uncached memory attributes, usually as a resultof buggy hardware. Normal
cgem: improve usage of busdma(9) KPIBUS_DMA_NOCACHE should only be used when one needs to guarantee thecreated mapping has uncached memory attributes, usually as a resultof buggy hardware. Normal use cases should pass BUS_DMA_COHERENT, tocreate an appropriate mapping based on the flags passed tobus_dma_tag_create().This should have no functional change, since the DMA tags in this driverare created without the BUS_DMA_COHERENT flag.Reported by: mmelReviewed by: mmel, Thomas Skibo <[email protected]>(cherry picked from commit 04d2d2d7fd22bba638ccb5a0b2e0805087a70cd3)
cgem: update 64-bit checkThe cgem(4) driver was updated to support 64-bit bus addressing infacdd1cd2045. However, the committed version determines this in anun-idiomatic way. Change the compile-t
cgem: update 64-bit checkThe cgem(4) driver was updated to support 64-bit bus addressing infacdd1cd2045. However, the committed version determines this in anun-idiomatic way. Change the compile-time conditional to checkBUS_SPACE_MAXADDR, rather than comparing int and pointer sizes.Reported by: jrtc27
cgem: add 64-bit supportAdd 64-bit address support to Cadence CGEM Ethernet driver for use inother SoCs such as the Zynq UltraScale+ and SiFive HighFive Unleashed.Reviewed by: philip, 0mp (manpa
cgem: add 64-bit supportAdd 64-bit address support to Cadence CGEM Ethernet driver for use inother SoCs such as the Zynq UltraScale+ and SiFive HighFive Unleashed.Reviewed by: philip, 0mp (manpages)Differential Revision: https://reviews.freebsd.org/D24304
cadence: clean up empty lines in .c and .h files
Cadence GEM ethernet driver style clean-up, no functional changes.This is mostly indentation whitespace, and reflowing a few multilinecomments. This gets a bunch of minor stuff out of the way so
Cadence GEM ethernet driver style clean-up, no functional changes.This is mostly indentation whitespace, and reflowing a few multilinecomments. This gets a bunch of minor stuff out of the way so that the diffsfor style don't clutter up the diffs for some upcoming functional changes.Submitted by: Thomas SkiboDifferential Revision: https://reviews.freebsd.org/D24226
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that arestill not MPSAFE (or already are but aren’t properly mark
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that arestill not MPSAFE (or already are but aren’t properly marked).Use it in preparation for a general review of all nodes.This is non-functional change that adds annotations to SYSCTL_NODE andSYSCTL_PROC nodes using one of the soon-to-be-required flags.Mark all obvious cases as MPSAFE. All entries that haven't been markedas MPSAFE before are by default marked as NEEDGIANTApproved by: kib (mentor, blanket)Commented by: kib, gallatin, melifaroDifferential Revision: https://reviews.freebsd.org/D23718
cgem: Add another compat string for the SiFive fu540Newer device trees use "sifive,fu540-c000-gem" instead of "cdns,macb".Reviewed by: br, kpDifferential Revision: https://reviews.freebsd.org/D2
cgem: Add another compat string for the SiFive fu540Newer device trees use "sifive,fu540-c000-gem" instead of "cdns,macb".Reviewed by: br, kpDifferential Revision: https://reviews.freebsd.org/D23407
Convert to if_foreach_llmaddr() KPI.
Add support for Cadence network controller found in HiFive Unleashed board.Reviewed by: markjSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D19798
kernel: Fix several typos and minor errors- duplicate words- typos- references to old versions of FreeBSDReviewed by: imp, benno
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Refactor DTS files for Zynq-based SoCs- Factor out common part to zynq-7000.dtsi- Fix problem with Zynq interrupts by using interrupt "triples" in .dtsi file to differentiate between edge-trig
Refactor DTS files for Zynq-based SoCs- Factor out common part to zynq-7000.dtsi- Fix problem with Zynq interrupts by using interrupt "triples" in .dtsi file to differentiate between edge-triggered and level-triggered interrupts- cgem driver now recognizes "status" propertySubmitted by: Thomas Skibo <[email protected]>Differential Revision: https://reviews.freebsd.org/D6095
Use the new ifnet API. Also, allocate bus_dma_maps as needed instead ofpre-allocating them all at start-up. Also fix a bug in cgem_stop(); before,it wasn't properly unloading dma maps due to a cu
Use the new ifnet API. Also, allocate bus_dma_maps as needed instead ofpre-allocating them all at start-up. Also fix a bug in cgem_stop(); before,it wasn't properly unloading dma maps due to a cut-and-paste error.
Mechanically convert to if_inc_counter().
Fixes and enhancements for the if_cgem driver...- miibus fixes as suggested by Yonghyeon Pyun.- enable VLAN MTU support.- fix a few WITNESS complaints in cgem_attach().- have cgem_attach() prope
Fixes and enhancements for the if_cgem driver...- miibus fixes as suggested by Yonghyeon Pyun.- enable VLAN MTU support.- fix a few WITNESS complaints in cgem_attach().- have cgem_attach() properly init the ifnet struct before calling mii_attach() to fix panic when using e1000phy.- fix ethernet address changing.- fix transmit queue overflow handling.- tweak receive queue handling to reduce receive overflows.- bring out MAC statistic counters to sysctls.- add e1000phy to config file.- implement receive hang work-around described in reference guide.- change device name from if_cgem to cgem to be consistent with other interfaces.Submitted by: Thomas Skibo <[email protected]>Reviewed by: wkoszek, Yonghyeon PYUN <[email protected]>
Fix the Zedboard/Zynq ethernet driver to handle media speed changes sothat it can connect to switches at speeds other than 1gb.This requires changing the reference clock speed. Since we still don
Fix the Zedboard/Zynq ethernet driver to handle media speed changes sothat it can connect to switches at speeds other than 1gb.This requires changing the reference clock speed. Since we still don'thave a general clock API that lets a SoC-independant driver manipulate itsown clocks, this change includes a weak reference to a routine namedcgem_set_ref_clk(). The default implementation is a no-op; SoC-specificcode can provide an implementation that actually changes the speed.Submitted by: Thomas Skibo <[email protected]>
Fix teardown of static DMA allocations in various NIC drivers:- Add missing calls to bus_dmamap_unload() in et(4).- Check the bus address against 0 to decide when to call bus_dmamap_unload() inst
Fix teardown of static DMA allocations in various NIC drivers:- Add missing calls to bus_dmamap_unload() in et(4).- Check the bus address against 0 to decide when to call bus_dmamap_unload() instead of comparing the bus_dma map against NULL.- Check the virtual address against NULL to decide when to call bus_dmamem_free() instead of comparing the bus_dma map against NULL.- Don't clear bus_dma map pointers to NULL for static allocations. Instead, treat the value as completely opaque.- Pass the correct virtual address to bus_dmamem_free() in wpi(4) instead of trying to free a pointer to the virtual address.Reviewed by: yongari
The r48589 promised to remove implicit inclusion of if_var.h soon. Prepareto this event, adding if_var.h to files that do need it. Also, includeall includes that now are included due to implicit po
The r48589 promised to remove implicit inclusion of if_var.h soon. Prepareto this event, adding if_var.h to files that do need it. Also, includeall includes that now are included due to implicit pollution via if_var.hSponsored by: NetflixSponsored by: Nginx, Inc.
Bring copyright changes with the agreement of Thomas Skibo.Communication on src-commiters, Sat, 27 Apr 2013 22:09:06 -0700,Subject was: "Re: svn commit: r249997"As I'm here, fix the style main b
Bring copyright changes with the agreement of Thomas Skibo.Communication on src-commiters, Sat, 27 Apr 2013 22:09:06 -0700,Subject was: "Re: svn commit: r249997"As I'm here, fix the style main block comments in files' headers.
Add Xilinx Zynq ARM/FPGA SoC support to FreeBSD/arm port.Submitted by: Thomas Skibo <ThomasSkibo (at) sbcglobal.net>Reviewed by: wkoszek, freebsd-arm@ (no objections raised)