FreeBSD/src c7aa572 (r363741)sys/contrib/pcg-c/include pcg_variants.h, sys/dev/cy cy.c

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+1,070-0sys/dev/iommu/busdma_iommu.c
+1,052-3sys/kern/vfs_cache.c
+4,666-4,672553 files not shown
+21,285-16,648559 files

FreeBSD/src 1799696 (r363739)sys/arm/ti/am335x am335x_prcm.c, sys/contrib/pcg-c/include pcg_variants.h

Merge ^/head r363583 through r363738.
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+0-1,033sys/dev/rp/rpreg.h
+0-884sys/arm/ti/am335x/am335x_prcm.c
+2,544-6,586224 files not shown
+10,198-11,500230 files

FreeBSD/src 0050ea2 (r363700)sys/arm/ti ti_prcm.c ti_sysc.c, sys/arm/ti/am335x am335x_prcm.c

Move Ti AM335x to dev/extres/clk framework.

Re-implement clocks for these SoC by using now standard extres/clk framework.
This is necessary for future expansion of these. The new  implementation
is (due to the size of the patch) only the initial (minimum) version.
It will be updated/expanded with a subsequent set of particular patches.

This patch is also not tested on OMAP4 based boards (BeagleBone),
so all possible issues should be (and will be) fixed by ASAP once
identified.

Submited by:            Oskar Holmlund (oskar.holmlund at ohdata.se)
Differential Revision:  https://reviews.freebsd.org/D25118
DeltaFile
+0-884sys/arm/ti/am335x/am335x_prcm.c
+315-327sys/arm/ti/ti_prcm.c
+517-23sys/arm/ti/ti_sysc.c
+375-0sys/arm/ti/clk/ti_dpll_clock.c
+353-0sys/arm/ti/clk/ti_clkctrl.c
+341-0sys/arm/ti/clk/ti_clk_dpll.c
+1,901-1,23450 files not shown
+5,050-2,23956 files

FreeBSD/src 41cd649 (r333305)sys/arm/ti/am335x am335x_prcm.c

am335x_prcm: Delay the frequencies read check

With Linux 4.17 dts the compatible for the prcm added 'simplebus' we mean
that the simplebus driver will attach to it at the BUS_PASS_BUS pass.
Change the pass for the prcm driver to be at BUS_PASS_BUS so we will win
the attach.
This introduce a problem as this driver needs the ti_scm one to be already
attached. ti_scm also attach at BUS_PASS_BUS but after the prcm one as it is
after in the dtb and the simplebus driver simpy walk the tree to attach it's
children.
Use the bus_new_pass method to defer the frequencies read at BUS_PASS_TIMER.
This fixes booting on BeagleBone*

Reported by:    many
DeltaFile
+31-4sys/arm/ti/am335x/am335x_prcm.c
+31-41 files

FreeBSD/src 4ab2e06 (r331722)sys/dev/altera/atse if_atse.c, sys/dev/altera/avgen altera_avgen.c

Revert r330897:

This was intended to be a non-functional change. It wasn't. The commit
message was thus wrong. In addition it broke arm, and merged crypto
related code.

Revert with prejudice.

This revert skips files touched in r316370 since that commit was since
MFCed. This revert also skips files that require $FreeBSD$ property
changes.

Thank you to those who helped me get out of this mess including but not
limited to gonzo, kevans, rgrimes.

Requested by: gjb (re)
DeltaFile
+555-222sys/mips/beri/beri_pic.c
+26-212sys/dev/altera/avgen/altera_avgen.c
+68-129sys/dev/sound/pci/hdspe-pcm.c
+42-116sys/dev/altera/jtag_uart/altera_jtag_uart_tty.c
+16-109sys/dev/cfe/cfe_ioctl.h
+47-56sys/dev/altera/atse/if_atse.c
+754-8446,810 files not shown
+1,982-15,6676,816 files

FreeBSD/src be5d0b9 (r330897)sys/arm/arm pl190.c, sys/arm/versatile versatile_sic.c

Partial merge of the SPDX changes

These changes are incomplete but are making it difficult
to determine what other changes can/should be merged.

No objections from:     pfg
DeltaFile
+238-571sys/mips/beri/beri_pic.c
+178-61sys/arm/arm/pl190.c
+212-26sys/dev/altera/avgen/altera_avgen.c
+209-24sys/arm/versatile/versatile_sic.c
+129-68sys/dev/sound/pci/hdspe-pcm.c
+116-42sys/dev/altera/jtag_uart/altera_jtag_uart_tty.c
+1,082-7926,829 files not shown
+16,022-1,9906,835 files

FreeBSD/src af3dc4a (r326258)sys/arm/ti tivar.h, sys/arm/xscale/ixp425 ixp425.c ixp425_a4x_space.c

sys/arm: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
DeltaFile
+3-1sys/arm/xscale/ixp425/ixp425.c
+3-1sys/arm/xscale/ixp425/ixp425_a4x_space.c
+3-1sys/arm/xscale/ixp425/ixp425_iic.c
+3-1sys/arm/xscale/ixp425/ixp425_intr.h
+3-1sys/arm/xscale/ixp425/ixp425_mem.c
+3-1sys/arm/ti/tivar.h
+18-6378 files not shown
+802-34384 files

FreeBSD/src 619b0aa (r323470)sys/arm/ti/am335x am335x_prcm.c

MFC r322373:

Ensure the clocks driver is attached before any drivers that need to enable
clocks in their attach().
DeltaFile
+2-2sys/arm/ti/am335x/am335x_prcm.c
+2-21 files

FreeBSD/src 083c8de (r322452)contrib/sqlite3 sqlite3.c shell.c, crypto/openssh ChangeLog

MFhead at r322451
DeltaFile
+15,396-8,833contrib/sqlite3/sqlite3.c
+4,433-0sys/dev/cxgbe/cudbg/cudbg_lib.c
+3,292-495contrib/sqlite3/shell.c
+1,171-2,043crypto/openssh/ChangeLog
+1,310-0sys/dev/cxgbe/cudbg/cudbg_wtp.c
+759-407contrib/sqlite3/sqlite3.h
+26,361-11,778656 files not shown
+39,747-16,486662 files

FreeBSD/src 0275f9d (r322398)contrib/sqlite3 sqlite3.c shell.c, crypto/openssh ChangeLog

Merge ^/head r321383 through r322397.
DeltaFile
+15,396-8,833contrib/sqlite3/sqlite3.c
+4,433-0sys/dev/cxgbe/cudbg/cudbg_lib.c
+3,292-495contrib/sqlite3/shell.c
+1,171-2,043crypto/openssh/ChangeLog
+1,310-0sys/dev/cxgbe/cudbg/cudbg_wtp.c
+141-1,061sys/contrib/dev/acpica/compiler/asltree.c
+25,743-12,4321,276 files not shown
+56,010-27,3111,282 files

FreeBSD/src c89cfb4 (r322373)sys/arm/ti/am335x am335x_prcm.c

Ensure the clocks driver is attached before any drivers that need to enable
clocks in their attach().
DeltaFile
+2-2sys/arm/ti/am335x/am335x_prcm.c
+2-21 files

FreeBSD/src 9587b6a (r310855)sys/arm/ti/am335x am335x_prcm.c am335x_scm.h, sys/arm/ti/cpsw if_cpsw.c

MFC of r305112, r305113, r305119, r305141 and r305432:

Replace magic numbers with the proper register names.

Fix the build, revert r305119, move the control module register data to
am335x_scm.h and fix if_cpsw.c to include the correct header.

Sponsored by:   Rubicon Communications, LLC (Netgate)
DeltaFile
+5-4sys/arm/ti/cpsw/if_cpsw.c
+5-4sys/arm/ti/am335x/am335x_prcm.c
+3-0sys/arm/ti/am335x/am335x_scm.h
+13-83 files

FreeBSD/src 67bc8c8 (r308842)contrib/amd/doc texinfo.tex, contrib/amd/fsinfo null_lex.c

Merge ^/head r308491 through r308841.
DeltaFile
+17,576-0sys/dev/bnxt/hsi_struct_def.h
+4,326-1,261contrib/amd/doc/texinfo.tex
+2,360-0sys/dev/bnxt/if_bnxt.c
+2,021-43contrib/amd/libamu/xdr_func.c
+1,791-0sys/dev/hyperv/pcib/vmbus_pcib.c
+1,716-0contrib/amd/fsinfo/null_lex.c
+29,790-1,304737 files not shown
+59,355-8,447743 files

FreeBSD/src df76753 (r308638)sys/arm/broadcom/bcm2835 bcm2835_cpufreq.c, sys/arm/freescale/vybrid vf_ehci.c vf_machdep.c

Stop including fdt_common.h from the arm code when it's unneeded.

Sponsored by:   ABT Systems Ltd
DeltaFile
+1-2sys/arm/nvidia/tegra_uart.c
+0-2sys/arm/freescale/vybrid/vf_ehci.c
+0-2sys/arm/versatile/versatile_machdep.c
+0-2sys/arm/rockchip/rk30xx_machdep.c
+0-2sys/arm/freescale/vybrid/vf_machdep.c
+0-2sys/arm/broadcom/bcm2835/bcm2835_cpufreq.c
+1-12131 files not shown
+1-147137 files

FreeBSD/src 8f1f370 (r305220)cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c, sys/arm/ti/am335x am335x_scm.c

Merge ^/head r305087 through r305219.
DeltaFile
+661-0sys/boot/fdt/dts/arm64/sun50i-a64.dtsi
+272-101sys/dev/cxgbe/tom/t4_ddp.c
+151-90sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c
+140-37cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+169-0sys/arm/ti/am335x/am335x_scm.c
+151-0sys/boot/fdt/dts/arm64/a64.dtsi
+1,544-228193 files not shown
+3,997-1,064199 files

FreeBSD/src f8fd1a9 (r305172)sys/arm/ti/am335x am335x_scm.c, sys/boot/fdt/dts/arm64 sun50i-a64.dtsi

MFhead @ r305170
DeltaFile
+117-546sys/dev/hyperv/netvsc/hv_rndis_filter.c
+661-0sys/boot/fdt/dts/arm64/sun50i-a64.dtsi
+272-101sys/dev/cxgbe/tom/t4_ddp.c
+129-92sys/vm/swap_pager.c
+88-99sys/dev/hyperv/netvsc/ndis.h
+169-0sys/arm/ti/am335x/am335x_scm.c
+1,436-838166 files not shown
+3,603-1,414172 files

FreeBSD/src eff30e9 (r305141)sys/arm/ti/am335x am335x_prcm.c

Fix the build.

Works better when the file with the #define is actually included...
DeltaFile
+2-0sys/arm/ti/am335x/am335x_prcm.c
+2-01 files

FreeBSD/src a089112 (r305112)sys/arm/ti/am335x am335x_prcm.c am335x_scm.h

Replace a magic number with the proper register name.

Sponsored by:   Rubicon Communications, LLC (Netgate)
DeltaFile
+3-4sys/arm/ti/am335x/am335x_prcm.c
+1-0sys/arm/ti/am335x/am335x_scm.h
+4-42 files

FreeBSD/src d608401 (r297567)sys/arm/nvidia tegra_pcie.c, sys/arm/ti/cpsw if_cpsw.c

MFH

Sponsored by:   The FreeBSD Foundation
DeltaFile
+5,402-0sys/dev/urtwn/if_urtwn.c
+0-5,281sys/dev/usb/wlan/if_urtwn.c
+0-2,176sys/dev/usb/wlan/if_urtwnreg.h
+2,176-0sys/dev/urtwn/if_urtwnreg.h
+1,071-736sys/arm/ti/cpsw/if_cpsw.c
+1,691-0sys/arm/nvidia/tegra_pcie.c
+10,340-8,193922 files not shown
+46,774-17,071928 files

FreeBSD/src cb18f3f (r297395)sys/arm/ti ti_spi.c ti_spireg.h, sys/arm/ti/am335x am335x_prcm.c

Add the SPI driver for am335x.

This driver works in PIO mode for now, interrupts are available only when
FIFO is enabled.  The FIFO cannot be used with arbitrary sizes which defeat
its general use.

At some point we can add DMA transfers where the FIFO can be more useful.

Tested on uBMC (microBMC) and BBB.

Sponsored by:   Rubicon Communications (Netgate)
DeltaFile
+582-0sys/arm/ti/ti_spi.c
+97-0sys/arm/ti/ti_spireg.h
+71-0sys/arm/ti/ti_spivar.h
+10-0sys/arm/ti/am335x/am335x_prcm.c
+4-0sys/arm/ti/ti_prcm.h
+3-0sys/arm/ti/ti_hwmods.c
+767-01 files not shown
+768-07 files

FreeBSD/src 11d38a5 (r290100)contrib/sqlite3 sqlite3.c, games/fortune/datfiles fortunes

Merge from head

Sponsored by:   Gandi.net
DeltaFile
+59,053-0usr.bin/fortune/datfiles/fortunes
+0-59,053games/fortune/datfiles/fortunes
+14,251-28,449sys/dev/ispfw/asm_2400.h
+14,827-25,954sys/dev/ispfw/asm_2500.h
+11,995-5,005contrib/sqlite3/sqlite3.c
+15,511-0sys/contrib/dev/iwm/iwm-7265-9.fw.uu
+115,637-118,46110,004 files not shown
+1,057,291-590,42110,010 files

FreeBSD/src f94594b (r287710)contrib/sqlite3 sqlite3.c, sys/contrib/dev/iwm iwm-7265-9.fw.uu iwm-7260-9.fw.uu

Finish merging from head, messed up in previous attempt
DeltaFile
+11,995-5,005contrib/sqlite3/sqlite3.c
+15,511-0sys/contrib/dev/iwm/iwm-7265-9.fw.uu
+15,126-0sys/contrib/dev/iwm/iwm-7260-9.fw.uu
+14,890-0sys/contrib/dev/iwm/iwm-3160-9.fw.uu
+0-10,447sys/dev/cxgbe/firmware/t5fw-1.14.2.0.bin.uu
+10,447-0sys/dev/cxgbe/firmware/t5fw-1.14.4.0.bin.uu
+67,969-15,4521,921 files not shown
+209,036-88,4361,927 files

FreeBSD/src 23a3282 (r287142)contrib/jemalloc/include/jemalloc/internal size_classes.h, contrib/jemalloc/src arena.c

Merge from HEAD
DeltaFile
+11,995-5,005contrib/sqlite3/sqlite3.c
+7,660-1,897share/misc/pci_vendors
+5,513-644contrib/jemalloc/include/jemalloc/internal/size_classes.h
+2,566-1,430sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
+2,696-785contrib/libxo/libxo/libxo.c
+1,825-1,073contrib/jemalloc/src/arena.c
+32,255-10,8341,075 files not shown
+81,430-31,5091,081 files

FreeBSD/src ab875b7 (r286744)sys/dev/hpt27xx amd64-elf.hpt27xx_lib.o.uu i386-elf.hpt27xx_lib.o.uu, sys/dev/pms/RefTisa/sallsdk/hda/64k raae8070.h aap18008.h

Catch up with head, primarily for the 1.14.4.0 firmware.
DeltaFile
+148,964-0sys/dev/qlxgbe/ql_fw.c
+24,697-22,508sys/dev/hpt27xx/amd64-elf.hpt27xx_lib.o.uu
+35,182-0sys/dev/pms/RefTisa/sallsdk/hda/64k/raae8070.h
+18,184-15,537sys/dev/hpt27xx/i386-elf.hpt27xx_lib.o.uu
+32,505-0sys/dev/pms/RefTisa/sallsdk/hda/64k/aap18008.h
+23,309-0sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
+282,841-38,0453,236 files not shown
+880,857-160,7963,242 files

FreeBSD/src e5c1efa (r286694). Makefile.inc1, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c rrwlock.c

Merge ^/head r286685 through r286693.
DeltaFile
+190-39sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+22-3sys/cddl/contrib/opensolaris/uts/common/fs/zfs/rrwlock.c
+11-12sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c
+20-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
+15-2sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
+13-2Makefile.inc1
+271-589 files not shown
+292-6715 files

FreeBSD/src 5b13e08 (r286692)sys/arm/ti/am335x am335x_prcm.c

Add a MODULE_VERSION(), because other things MODULE_DEPEND() on this.
DeltaFile
+1-0sys/arm/ti/am335x/am335x_prcm.c
+1-01 files

FreeBSD/src 416ba5c (r284687)contrib/ntp CommitLog configure, contrib/ntp/sntp configure

Catch up with HEAD (r280229-r284686).
DeltaFile
+177,242-8,203contrib/ntp/CommitLog
+29,219-17,107contrib/ntp/configure
+27,253-11,174contrib/ntp/sntp/configure
+10,723-13,061sys/dev/hptnr/amd64-elf.hptnr_lib.o.uu
+17,937-0contrib/ntp/sntp/libevent/configure
+7,405-9,147sys/dev/hptnr/i386-elf.hptnr_lib.o.uu
+269,779-58,69210,019 files not shown
+1,440,418-650,38610,025 files

FreeBSD/src 76aeda8 (r284648)lib/ncurses/ncursesw Makefile.depend, usr.bin/make job.c var.c

Merge ^/head r284188 through r284643.
DeltaFile
+0-3,391usr.bin/make/job.c
+0-2,623usr.bin/make/var.c
+0-2,545usr.bin/make/parse.c
+2,530-0lib/ncurses/ncursesw/Makefile.depend
+0-2,205usr.bin/make/suff.c
+0-1,843usr.bin/make/make.1
+2,530-12,6072,797 files not shown
+72,851-31,5342,803 files

FreeBSD/src 2fbd60e (r284621)usr.bin/make job.c var.c

Merge from head @274131
DeltaFile
+0-3,391usr.bin/make/job.c
+0-2,623usr.bin/make/var.c
+0-2,545usr.bin/make/parse.c
+0-2,205usr.bin/make/suff.c
+0-1,843usr.bin/make/make.1
+0-1,339usr.bin/make/main.c
+0-13,946495 files not shown
+10,060-26,223501 files

FreeBSD/src a08b6d1 (r284532)sys/arm/ti ti_prcm.c ti_prcm.h, sys/arm/ti/am335x am335x_prcm.c

- Add clk_set_source_freq field to struct ti_clock_dev so clock device
   consumers can configure clock frequency
- Add ti_prcm_clk_set_source_freq wrapper for clk_set_source_freq
- Add am335x_clk_set_arm_disp_freq function to control pixel clock
   frequency for LCD and HDMI output. Both of them are sensitive
   to frequency skews and we need to get pixel clock matching requested
   frequency as close to possible
DeltaFile
+65-23sys/arm/ti/am335x/am335x_prcm.c
+35-2sys/arm/ti/ti_prcm.c
+10-4sys/arm/ti/omap4/omap4_prcm_clks.c
+3-0sys/arm/ti/ti_prcm.h
+113-294 files