summaryrefslogtreecommitdiffstats
path: root/sys/conf
Commit message (Collapse)AuthorAgeFilesLines
* urtwn: add an option to compile the driver without firmware specific codeavos2016-02-221-0/+3
| | | | | | | | | | | | | | | | - Add URTWN_WITHOUT_UCODE option (will disable any firmware specific code when set). - Do not exclude the driver from build when MK_SOURCELESS_UCODE is set (URTWN_WITHOUT_UCODE will be enforced unconditionally). - Do not abort initialization when firmware cannot be loaded; behave like the URTWN_WITHOUT_UCODE option was set. - Drop some unused variables from urtwn_softc structure. Tested with RTL8188EU and RTL8188CUS in HOSTAP and STA modes. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4849
* Revert r295756:zbb2016-02-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Extract common code from PowerPC's ofw_pci Import portions of the PowerPC OF PCI implementation into new file "ofw_pci.c", common for other platforms. The files ofw_pci.c and ofw_pci.h from sys/powerpc/ofw no longer exist. All required declarations are moved to sys/dev/ofw/ofw_pci.h. This creates a new ofw_pci_write_ivar() function and modifies ofw_pci_nranges(), ofw_pci_read_ivar(), ofw_pci_route_interrupt() methods. Most functions contain existing ppc implementations in the majority unchanged. Now there is no need to have multiple identical copies of methods for various architectures. Submitted by: Marcin Mazurek <mma@semihalf.com> Obtained from: Semihalf Sponsored by: Annapurna Labs Reviewed by: jhibbits, mmel Differential Revision: https://reviews.freebsd.org/D4879 This needs to return to the drawing board as it breaks both PowerPC and Sparc64 build. Pointed out by: jhibbits
* Rename busdma_machdep.c to busdma_machdep-v4.c, pmap.c to pmap-v4.cskra2016-02-201-3/+3
| | | | | and trap.c to trap-v4.c to be plain and consistent with other armv4 specific files.
* FAST_DEPEND: Apply conditional -MF from r291945 to kernel as well.bdrewery2016-02-191-0/+7
| | | | Sponsored by: EMC / Isilon Storage Division
* Avoid reading .depend.* in simple cases where not needed.bdrewery2016-02-191-1/+10
| | | | | | | | | | This will speed up some tree-walks with FAST_DEPEND which otherwise would include length(SRCS) .depend files. This also uses a trick suggested by sjg@ to still read them in when specifying _V_READ_DEPEND=1 in the env/make args. Sponsored by: EMC / Isilon Storage Division
* Use medany (Medium/Anywhere) GCC code model for RISC-V.br2016-02-181-0/+1
| | | | | This will allow us to use bigger relocations and all the 64-bit VA space.
* Extract common code from PowerPC's ofw_pcizbb2016-02-181-0/+1
| | | | | | | | | | | | | | | | | | | Import portions of the PowerPC OF PCI implementation into new file "ofw_pci.c", common for other platforms. The files ofw_pci.c and ofw_pci.h from sys/powerpc/ofw no longer exist. All required declarations are moved to sys/dev/ofw/ofw_pci.h. This creates a new ofw_pci_write_ivar() function and modifies ofw_pci_nranges(), ofw_pci_read_ivar(), ofw_pci_route_interrupt() methods. Most functions contain existing ppc implementations in the majority unchanged. Now there is no need to have multiple identical copies of methods for various architectures. Submitted by: Marcin Mazurek <mma@semihalf.com> Obtained from: Semihalf Sponsored by: Annapurna Labs Reviewed by: jhibbits, mmel Differential Revision: https://reviews.freebsd.org/D4879
* Move the Allwinner kernels to use fdt_pinctrl. This will read the pinandrew2016-02-171-0/+2
| | | | | | | | | | | | | configuration from the FDT data, then set the pins into the requested state. As part of this the gpio controller now reports the correct number of pins instead of returning the number of bank * 32. To allow for a future consolidated kernel we add the SOC_ALLWINNER_A10 and SOC_ALLWINNER_A20 kernel options. These need to be set as appropriate for the SoC the kernel will boot on. Submitted by: Emmanuel Vadot <manu@bidouilliste.com> Differential Revision: https://reviews.freebsd.org/D5177
* Support PEM that is not a PCI endpoint on ThunderXzbb2016-02-161-4/+5
| | | | | | | | | | | Some chip revisions don't have their external PCIe buses behind the internal bridge. Add support for FDT-configurable PEMs but keep ability for PCIe enumeration. Reviewed by: andrew, wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5285
* Use built-in :tA here rather than realpath(1).bdrewery2016-02-161-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Consolidate common beforebuild logic.bdrewery2016-02-161-2/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Move the twsi driver source to be under iicbus. It is in a separateandrew2016-02-141-0/+1
| | | | | | | directory as it is expected multiple attachments will be added for the SoC families that use this hardware. Sponsored by: ABT Systems Ltd
* Remove bus space fdt for MIPS.adrian2016-02-111-1/+0
| | | | | | | | This was originall done by kan@. Submitted by: Stanislav Galabov <sgalabov@gmail.com> Reviewed by: kan Differential Revision: https://reviews.freebsd.org/D5184
* kmod.mk: Ensure ILINKS are created before building.bdrewery2016-02-081-0/+1
| | | | | | | | | This allows skipping 'make depend' or running 'make clean all' without getting a flip-flopping dependency due to the exists() just below. Otherwise an error is encountered, such as: fatal error: 'machine/endian.h' file not found. Sponsored by: EMC / Isilon Storage Division
* kmod.mk: Support a beforebuild target such as bsd.prog.mk has.bdrewery2016-02-081-1/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* Provide a workaround for setting the correct endianness when doing CFI onadrian2016-02-041-0/+1
| | | | | | | | | | | | | a mips big-endian board. This is (hopefully! ish!) a temporary change until a slightly better way can be found to express this without a config option. Tested: * BUFFALO WZR-HP-G300NH 1stGen (by submitter) Submitted by: Mori Hiroki <yamori813@yahoo.co.jp>
* ARM: Remove support for xscale i80219 and i80321 CPUs. We haven't singlemmel2016-02-032-4/+2
| | | | supported config/board with these CPUs.
* ARM: All remaining functions in cpufunc_asm_arm10.S are identical withmmel2016-02-022-3/+1
| | | | | functions in cpufunc_asm_arm9.S. Use arm9 variants and remove cpufunc_asm_arm10.S completly.
* Rename some CPU_MIPSxxx options and add new CPU_MIPSxxx optionsadrian2016-02-021-3/+7
| | | | | | | | | | | | | | | | | | | | | | | This revision does the following renames: CPU_MIPS24KC -> CPU_MIPS24K CPU_MIPS74KC -> CPU_MIPS74K CPU_MIPS1004KC -> CPU_MIPS1004K It also adds the following new CPU_MIPSxxx options: CPU_MIPS24KE, CPU_MIPS34K, CPU_MIPS1074K, CPU_INTERAPTIV, CPU_PROAPTIV CPU_MIPSxxxxKC is limiting and possibly misleading as it implies the MIPSxxxxK CPU has no FPU. It would be better if the CPUs are named after their standard functionalities only and the presence or absence of FPU can then be controlled via the CPU_HAVEFPU option. I will send out another dependent revision that moves MIPS 32 r2 and r3 CPUs to use the EHB instruction for clearing hazards instead of NOP/SSNOP. Submitted by: Stanislav Galabov <sgalabov@gmail.com> Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D5077
* Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specifiedadrian2016-02-023-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | MD_ROOT_SIZE and embed_mfs.sh were basically retired as part of https://reviews.freebsd.org/D2903 . However, when building a kernel with 'options MD_ROOT_SIZE' specified, this results in a non-working MFS, as within sys/dev/md/md.c we fall within the wrong # ifdef. This patch implements the following: * Allow kernels to be built without the MD_ROOT_SIZE option, which results in a kernel built as per D2903. * Allow kernels to be built with the MD_ROOT_SIZE option, which results in a kernel built similarly to the pre-D2903 way, with the following differences: * The MFS is now put in a separate section within the kernel (oldmfs, so it differs from the mfs section introduced by D2903). * embed_mfs.sh is changed, so it looks up the oldmfs section within the kernel, gets its size and offset, sees if the MFS will fit within the allocated oldmfs section and only if all is well does a dd of the MFS image into the kernel. Submitted by: Stanislav Galabov <sgalabov@gmail.com> Reviewed by: brooks, imp Differential Revision: https://reviews.freebsd.org/D5093
* ARM: Split swtch.S into common, ARMv4 and ARMv6 parts. Cleanup them.mmel2016-01-301-0/+2
|
* Welcome the RISC-V 64-bit kernel.br2016-01-296-0/+238
| | | | | | | | | | | | | | | | | | | | | | | | This is the final step required allowing to compile and to run RISC-V kernel and userland from HEAD. RISC-V is a completely open ISA that is freely available to academia and industry. Thanks to all the people involved! Special thanks to Andrew Turner, David Chisnall, Ed Maste, Konstantin Belousov, John Baldwin and Arun Thomas for their help. Thanks to Robert Watson for organizing this project. This project sponsored by UK Higher Education Innovation Fund (HEIF5) and DARPA CTSRD project at the University of Cambridge Computer Laboratory. FreeBSD/RISC-V project home: https://wiki.freebsd.org/riscv Reviewed by: andrew, emaste, kib Relnotes: Yes Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D4982
* Framework for ARM64 instruction disassemblerwma2016-01-291-0/+1
| | | | | | | | | | | Provide an easy to use framework for ARM64 DDB disassembler. This commit does not contain full list of instruction opcodes. Obtained from: Semihalf Sponsored by: Cavium Approved by: cognet (mentor) Reviewed by: zbb, andrew, cognet Differential revision: https://reviews.freebsd.org/D5114
* ARM: After removal of old pmap-v6 code, rename pmap-v6-new.c to pmap-v6.c.mmel2016-01-291-1/+1
|
* ARM: remove old pmap-v6 code. The new pmap-v6 is mature enough, andmmel2016-01-292-3/+1
| | | | | | dual implementation is showstopper for major cleanup. This patch only removes old code from tree. Cleanups will follow asap.
* Support new MDIO hierarchy in ThunderX DTBzbb2016-01-281-0/+1
| | | | | | | | | | | | | | Some firmware revisions provide different DTB tree that include odd MDIO placement in the tree. This commit adds support for 2 new buses: - MRML bridge (PCIB subordinate) - MDIO nexus (MRML subordinate) This allows for the correct MDIO attachment with both - new and old firmware. Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5070
* Divide ThunderX PCIe driver to general and FDT partzbb2016-01-281-1/+2
| | | | | | | | | | | - Separate FDT and general PCIe driver parts - Drop some irrelevant printfs that cannot be displayed in FDT attach - Move ranges parsing to FDT portion of PCIe code Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5067
* Fix generation of dependency rules for the LinuxKPI, the MLX5 driverhselasky2016-01-272-91/+73
| | | | | | | and all of OFED except MLX4[EN/IB]. Sponsored by: Mellanox Technologies MFC after: 1 week
* FAST_DEPEND: Mark some unneeded code for later removal.bdrewery2016-01-271-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* FAST_DEPEND: Apply missed nofilemon fix from r294351.bdrewery2016-01-271-1/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* Introduce support for HW watchpoints and single stepping for ARMv6/v7zbb2016-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | Allows for using hardware watchpoints for 1, 2, 4, 8 byte long addresses. The default configuration of watchpoint is RW but code allows to select RO or WO and X. Since debugging registers are per-CPU (CP14) the watchpoint is set on the CPU that was lucky (or not) to enter DDB. HW breakpoints are used to perform single step in KDB. When HW breakpoint is enabled all watchpoints are temporary disabled to avoid recursive abort on both watchpoint and breakpoint. In case of branch, the breakpoint is set to both - next instruction and possible branch address. This requires at least 2 breakpoints supported in the CPU however this is a must for ARMv6/v7 CPUs. Reviewed by: imp Submitted by: Zbigniew Bodek <zbb@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4037
* Add reset framework, a second part of new 'extended resources' family ofmmel2016-01-241-0/+2
| | | | | | | | | support frameworks (i.e. regulators/phy/tsensors/fuses...). It provides simple unified consumers interface for manipulations with on-chip resets. Reviewed by: ian, imp (paritaly)
* Add clock framework, a first part of new 'extended resources' family ofmmel2016-01-242-0/+8
| | | | | | | | | | | | | | | | | support frameworks(i.e. reset/regulators/phy/tsensors/fuses...). The clock framework significantly simplifies handling of complex clock structures found in modern SoCs. It provides the unified consumers interface, holds and manages actual clock topology, frequency and gating. It's tested on three different ARM boards (Nvidia Tegra TK1, Inforce 6410 and Odroid XU2) and on one MIPS board (Creator Ci20) by kan@. The framework is still far from perfect and probably doesn't have stable interface yet, but we want to start testing it on more real boards and different architectures. Reviewed by: ian, kan (earlier version)
* Now that the flashmap code knows about SPI flash, add it in builds.adrian2016-01-231-2/+2
| | | | | PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com>
* - Separate sendfile(2) implementation from uipc_syscalls.c intoglebius2016-01-221-0/+1
| | | | | | | | separate file. Claim my copyright. - Provide more comments, better function and structure names. - Sort out unneeded includes from resulting two files. No functional changes.
* Remove fdt_fixup_table from architectures where it's unneeded. We only makeandrew2016-01-214-4/+0
| | | | | | | | | use of fdt_fixup_table on PowerPC and ARM. As such we can remove it from other architectures as it's unneeded. Reviewed by: nwhitehorn Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D5013
* ext2fs: Bring back the htree dir_index implementation.pfg2016-01-211-0/+2
| | | | | | | | | | | | | | | | | | The htree dir_index is perhaps one of the most characteristic features of the linux ext3 implementation. It was removed in r281670, due to repeated bug reports. Damjan Jovanic detected and fixed three bugs and did some stress testing by building Apache OpenOffice on top of it so it is now in good shape to bring back. Differential Revision: https://reviews.freebsd.org/D5007 Submitted by: Damjan Jovanovic Reviewed by: pfg Tested by: pho Relnotes: Yes MFC after: 2 months (only 10.x)
* Introduce initial support for Marvell Armada38xzbb2016-01-201-0/+1
| | | | | | | | | | | | | | | | | | This commit introduces initial support for Marvell Armada38x platform. Changes: - Add common DTS files for Armada38x SoCs and DTS file for A388-GP - Add ARMADA38X kernel configuration - Add option SOC_MV_ARMADA38X and set MV_PCI_PORTS - Add list of files to compile - Implement get_tclk(), get_sar_value(), cpu_reset() functions - Add CPU ID and SoC numbers - Correct ifdefs in arm/mv/timer.c Reviewed by: ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4210
* Revert r294352.bdrewery2016-01-191-1/+1
| | | | | Further research showed it was the wrong fix and revealed a bigger problem with the goal of skipping 'make depend'.
* FAST_DEPEND: Add header dependency missed in r290629.bdrewery2016-01-191-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Move ohci files to their proper place in the tree for atmel.imp2016-01-161-1/+0
| | | | | | | Fix when it is included (we don't have a at91rm9200 device). From a similar patch in the PR, with tweaked names. PR: 206229
* FAST_DEPEND: Fix incremental builds leading to kernel panics.bdrewery2016-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This fixes .depend.genassym.o not being included. genassym.o depends on all of the system headers and when rebuilt regenerates assym.s which lists offsets for critial .S files to utilize. By having a struct in a system header change its offsets and not have generassym.o be rebuilt, this would lead to panics. The flaw in the initial commit was seeing ${OBJS} in ${SYSTEM_OBJS} and assuming it had all of ${SRCS} in it. This is not the case though. The older mkdep code splits out all of the various SRC lists for generating the .depend file. It also includes ${GEN_CFILES}, which had genassym.c and was the only significant file lacking from ${SYSTEM_OBJS} upon inspection, since it is not linked in. Rather than duplicate the likely soon-to-be-removed mkdep lists, just add genassym.o to the DEPENDOBJS list. Using ${SRCS} as bsd.dep.mk does would be nice but there are many files in the build that are only added to ${OBJS} and not ${SRCS}, such as bf_enc.o derived from bf_enc.S for i386. Sponsored by: EMC / Isilon Storage Division Reported by: dhw (several panics on current@) Pointyhat to: bdrewery
* FAST_DEPEND: Rework optimization for r290524.bdrewery2016-01-151-4/+4
| | | | | | | | The .MAKEFLAGS check inside of the .for loop is extremely slow for some reason. Just moving it out of the loop trimmed -V lookup time from 11 seconds to 1 second in the kernel obj directory. Sponsored by: EMC / Isilon Storage Division
* sfxge: add accessors for license-related MCDI calls to common codearybchik2016-01-141-0/+1
| | | | | | | | | | | | Add support for Huntington MCDI licensing interface to common code. Ported from Linux net driver IOCTL functions with restructuring for initial support for V3 licensing API. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4918
* hyperv: implement an event timersephe2016-01-142-0/+2
| | | | | | | | Submitted by: Howard Su <howard0su@gmail.com> Reviewed by: delphij, royger, adrian Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4676
* Document etherswitch and drivers using this framework.brueffer2016-01-121-0/+19
| | | | MFC after: 2 weeks
* Make additional parts of sys/geom/eli more usable in userspaceallanjude2016-01-071-0/+1
| | | | | | | | | | | | | | | | | | The upcoming GELI support in the loader reuses parts of this code Some ifdefs are added, and some code is moved outside of existing ifdefs The HMAC parts of GELI are broken out into their own file, to separate them from the kernel crypto/openssl dependant parts that are replaced in the boot code. Passed the GELI regression suite (tools/regression/geom/eli) Files=20 Tests=14996 Result: PASS Reviewed by: pjd, delphij MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4699
* Revert r293070ngie2016-01-031-3/+0
| | | | | | | | | | | | It seems that `options GZIP` and `options ZFS` collide because they both define inconsistent definitions for inflate, etc Fixing this will require upgrading zlib in the kernel, as suggested in r245102. Pointyhat to: ngie Reported by: bz Sponsored by: EMC / Isilon Storage Division
* Add "options ZFS" to NOTES so this will be tested with the LINTngie2016-01-031-0/+3
| | | | | | | | | | KERNCONF when "make tinderbox" is run This will help ensure that "options ZFS" will not be accidentally regressed, as the current LINT configuration tests the zfs module MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Add an OF_decode_addr() implementation for arm64.ian2016-01-021-0/+1
| | | | Discussed with: andrew
OpenPOWER on IntegriCloud