summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix EFI UFS cachingsmh2016-01-212-92/+39
| | | | | | | | | | | | | | | | | | | EFI was mixing caching in two separate places causing issues when multiple partitions where tested. Eliminate this by removing fsstat and re-factoring fsread into fsread_size, adding basic parameter validation. Also: * Enhance some error print outs. * Fix compilation under UFS1_ONLY and UFS2_ONLY * Use sizeof on vars instead of structs. * Add basic parameter validation to fsread_size. MFC after: 1 week X-MFC-With: r293268 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4989
* Note that new ssh(1) doesn't allow to use DSA keys by default.glebius2016-01-211-0/+4
|
* AIO daemons have always been kernel processes to facilitate switching tojhb2016-01-211-29/+29
| | | | | | | | | | user VM spaces while servicing jobs. Update various comments and data structures that refer to AIO daemons as threads to refer to processes instead. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4999
* Remove unused variables for socket AIO.jhb2016-01-211-7/+0
| | | | | | | | | | | | | In r55943, a per-process queue of pending socket AIO requests (requests waiting for the socket to become ready) was added so that they could be cancelled during process rundown. In r154765, the rundown code was changed to handle jobs in this state (JOBST_JOBQSOCK) directly removing the need for the extra queue. However, the per-process queue head and global lock were never removed. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4997
* cache: minor changesmjg2016-01-211-28/+20
| | | | | | | | | 1. vhold and zap immediately instead of postponing few lines later 2. increment numneg after new entry is added No functional changes. No objections: kib
* cache: perform . lockup without the namecache lockmjg2016-01-211-28/+24
| | | | Reviewed by: kib
* cache: provide a helper for computing the hashmjg2016-01-211-8/+14
| | | | Reviewed by: kib
* cache: use counter(9) API to maintain statisticsmjg2016-01-211-61/+80
| | | | | | | | | | | | Previously the code would just increment statistics while only holding a shared lock, in effect losing updates. Separate tracking for nchstats is removed as values can be obtained from existing counters. Note that some fields are updated by external consumers and are left unfixed. This should not be a serious issue as this structure looks quite obsolete. No strong objections: kib
* iw_cxgbe: fix a couple of problems int the RDMA_TERMINATE handler.np2016-01-211-6/+9
| | | | | | | a) Look for the CPL in the payload buffer instead of the descriptor. b) Retrieve the socket associated with the tid with the inpcb lock held. Submitted by: Krishnamraju Eraparaju @ Chelsio
* urtwn: add temperature calibrationavos2016-01-203-5/+106
| | | | | | | | | | | | Redo LC calibration if temperature changed significantly since last calibration. Tested with RTL8188EU/RTL8188CUS in STA mode. Reviewed by: kevlo Approved by: adrian (mentor) Obtained from: NetBSD (mostly) Differential Revision: https://reviews.freebsd.org/D4966
* session: avoid proctree lock on proc exit when possiblemjg2016-01-203-53/+75
| | | | | | We can get away with the common case with only proc lock held. Reviewed by: kib
* urtwn: rework debug handlingavos2016-01-203-43/+120
| | | | | | | | | | | | | - Use bitmap for debug output selection. - Add few new messages (one for URTWN_DEBUG_BEACON and another one for URTWN_DEBUG_INTR). - Replace an undocumented URTWN_DEBUG definition with USB_DEBUG. Tested with RTL8188EU / RTL8188CUS in IBSS / HOSTAP modes. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4959
* Fix initlist_add_object invocation parameters.kan2016-01-201-3/+3
| | | | | | The tail parameter should point to the last object for which dependencies should be processed. In most cases, this is the object itself.
* Remove RCS tags from files in which we no longer have any localdes2016-01-2014-12/+2
| | | | modifications, and add them to two files in which we do.
* session: tidy up fixjobcmjg2016-01-201-13/+7
| | | | | | | This stops abusing the 'p' pointer for iteration over children processes and gets rid of useless locking around PRS_ZOMBIE check. Suggested by: kib
* Remove a number of generated files which are either out-of-date (becausedes2016-01-2016-27242/+0
| | | | | they are never regenerated to reflect our changes) or in the way of freebsd-configure.sh.
* urtwn: use ic_updateslot method to handle slot time changeavos2016-01-201-0/+39
| | | | | | | | | | (by default it was set to 9us). Tested with RTL8188EU / RTL8188CUS in STA mode. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4535
* Upgrade to OpenSSH 7.0p1.des2016-01-20159-1657/+2321
|
* Shift saved floating point registers up in jmp_buf.brooks2016-01-201-14/+15
| | | | | | | | sigmask_t is 128-bits so requires two slots. Approved by: CheriBSD (93699cb9b6e73980ac369e379cea9772c9494ccc) MFC after: 1 week Sponsored by: DARPA, AFRL
* MIPS also needs ofw_bus_if.h in some cases.brooks2016-01-201-1/+1
|
* Add .NOMETA missed in r291320.bdrewery2016-01-201-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Add a simple manpage for the cfi(4) and associated cfid(4) drivers.brooks2016-01-202-0/+96
| | | | | MFC after: 1 week Sponsored by: DARPA, AFRL
* Increase BERI boot components section alignment to 16emaste2016-01-202-6/+6
| | | | | | | | | | | | The .text, .bss, and .data sections claimed 16-byte alignment, but were only aligned to 8 by the linker script. Discovered with elfcopy(1) from elftoolchain, which performs validation absent from the binutils strip(1). ELF tool chain ticket #512. Reported by: brooks Reviewed by: brooks Sponsored by: DARPA, AFRL
* Add some missing dependencies on pci_iov_if.h.bdrewery2016-01-203-3/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* xen-netfront: add multiqueue supportroyger2016-01-201-661/+979
| | | | | | | | | | | | | | | Add support for multiple TX and RX queue pairs. The default number of queues is set to 4, but can be easily changed from the sysctl node hw.xn.num_queues. Also heavily refactor netfront driver: break out a bunch of helper functions and different structures. Use threads to handle TX and RX. Remove some dead code and fix quite a few bugs as I go along. Submitted by: Wei Liu <wei.liu2@citrix.com> Reviewed by: royger Sponsored by: Citrix Systems R&D Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D4193
* Introduce initial driver for PMSU on Armada38xzbb2016-01-206-0/+195
| | | | | | | | | | | | | | | This is a stub for PMSU driver. Note that it cannot be used to set the secondary core boot address during attach because drivers are attached later than SI_SUB_CPU sysinit where cores are started. Setting the boot address should be done manually in platform_mp_start_ap(). SMP is working fine with this commit and was enabled in Armada38x kernel configuration file. Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4427
* OFW: Fix ofw_bus_string_list_to_array() function.mmel2016-01-201-6/+8
| | | | | | | Originally committed version was unfinished and didn't work at all, because I took it from the wrong WIP branch by mistake. Approved by: kib (mentor)
* Add initial support for SMP on Armada38xzbb2016-01-204-1/+188
| | | | | | | | | | | | | - Add file sys/arm/mv/armada38x/armada38x_mp.c - Set mp_maxid and mp_ncpus based on FDT unless SCU register indicates only one core - Boot CPU1 in platform_mp_start_ap() - IPI range defined Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4426
* Open window to bootROM memory on Armada38x to allow CPU1 to bootzbb2016-01-203-1/+60
| | | | | | | | | | CPU1 is halted in bootROM code while it is waiting to be released. Memory window to bootROM must be opened before booting the core. Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4425
* Support watchdog depending on "mrvl,has-wdt" propertyzbb2016-01-201-2/+9
| | | | | | | | | | | | With this commit, watchdog is supported only in case of having "mrvl,has-wdt" property or dedicated for watchdog compatibility field ("marvell,armada-380-wdt"). There is no need to modify dts files, as "has-wdt" property already exists. Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4424
* Add support for watchdog on Armada38xzbb2016-01-202-9/+54
| | | | | | | | | | | | | | A38X watchdog support was implemented in sys/arm/mv/timer.c driver. It required following modifications: - add "marvell,armada-380-wdt" compatibility, which supports only watchdog - correct and enhance definitions related to timer control register - unmask reset capability in RSTOUTn_MASK register - use dedicated watchdog timer on A38X instead of second timer Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4423
* Add support for I2C on Armada38xzbb2016-01-202-1/+11
| | | | | | | | | | | Extend driver's compatible strings' table and enable I2C compilation in kernconf. Reviewed by: andrew, ian Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Jan Dabros <jsd@semihalf.com> Differential revision: https://reviews.freebsd.org/D4422
* Add a new RTC driver for Armada38xzbb2016-01-202-1/+236
| | | | | | | | | | | New driver registers RTC as system clock. New RTC resolution is 1 sec. Settime and gettime functions were implemented. Reviewed by: andrew, ian Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Jan Dabros <jsd@semihalf.com> Differential revision: https://reviews.freebsd.org/D4421
* Correct MV_DDR_CADR_BASE definiton in mvwin.hzbb2016-01-201-1/+1
| | | | | | | | | | | SOC_MV_ARMADAXP ifdef was enhanced with SOC_MV_ARMADA38X, correcting MV_DDR_CADR_BASE definition. It fixes PCIe hangs issue. Reviewed by: andrew Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4380
* Change DTS entry of PCIe controller for Armada38xzbb2016-01-204-130/+29
| | | | | | | | | | | | | | | Invalid (in FreeBSD) definition of PCI controller was replaced with another one, working in FreeBSD environment. PCI controller's entry had to move from its parent node so as to be recognized properly by FBSD. PCI was enabled in kernel configuration file. Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4379
* Improve definitions of CPU/PCIe windows for Armada38xzbb2016-01-201-2/+8
| | | | | | | | | | | Enhance existing ARMADAXP defines and introduce new MV_WIN_PCIE_ definitions. Reviewed by: andrew Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4378
* Fix invalid root link detection in mv_pci driverzbb2016-01-203-3/+26
| | | | | | | | | | | | | | mv_pci driver omitted slot 0, which can be valid device on Armada38x. New mechanism detects if device is root link, basing on vendor's and device's IDs. It is restricted to Armada38x; on other machines, behaviour remains the same. Reviewed by: andrew Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4377
* Enhance remap capabilities for Armada38xzbb2016-01-201-0/+3
| | | | | | | | | | | | Add conditions corresponding to Armada38x-based SoCs, enhancing their remap capabilities. This is required for PCIe to work properly. Reviewed by: andrew Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4376
* Enable USB in kernconf of Armada38xzbb2016-01-201-1/+10
| | | | | | | | | With this commit, USB 2.0 works fine on Armada38x platforms. Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4375
* Improve attachment of the ehci_mv driverzbb2016-01-201-14/+24
| | | | | | | | | | | | Driver was modified to ensure it attaches properly to "marvell,orion-ehci" node, which doesn't have error interrupt line defined. Neccessary ofw_compat_data struct was added and probe procedure was altered. Reviewed by: andrew, ian Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4369
* Enable SCU unit for Armada38xzbb2016-01-203-0/+39
| | | | | | | | | | | Valid SCU operation is necessary for SMP interoperability. Initialization function armada38x_enable_scu() was added. Reviewed by: andrew, ian Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4220
* Set IO Sync Barrier flags for all Mbus devices on Armada38xzbb2016-01-203-0/+45
| | | | | | | | | | IO Sync Barrier setting is required for I/O coherency. Reviewed by: andrew, ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4219
* Fix busy-detect when using DesignWare UARTzbb2016-01-205-22/+15
| | | | | | | | | | | | | uart_dev_ns8250 now relies on compatible property instead of additional 'busy-detect' cell. All drivers with compatible = "snps,dw-apb-uart" have busy detection turned on. DTS files of devices affected by the change were modified and 'busy-detect' property was removed. Reviewed by: andrew, ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4218
* Add compatibility string for dw-apb-uart in ns8250 driverzbb2016-01-201-0/+1
| | | | | | | | | | | This compatibility string is used in .dts file of Armada38x and isrequired for driver attachment. Reviewed by: andrew, ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4216
* Fix GIC FDT interrupts decodingzbb2016-01-201-2/+4
| | | | | | | | | | | | | Interrupt type in FDT was interpreted incorrectly. Patch taken from freebsd-arm thread 'GIC - interrupts interpretation in DTS/FDT': https://lists.freebsd.org/pipermail/freebsd-arm/2015-August/012145.html Reviewed by: ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4215
* Use GIC-specific decoding function in mv_common.czbb2016-01-201-0/+8
| | | | | | | | | | | | | Add gic_decode_fdt function to fdt_pic_table, allowing to recognize GIC interrupts on Armada38x. SOC_MV_ARMADA38X ifdef is required because A38X is the only Marvell's platform in FreeBSD using GIC; lack of ifdef would lead to linking errors on other platforms. Reviewed by: andrew, ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4214
* Add global mpcore timer node to Armada 38x DTSzbb2016-01-201-0/+9
| | | | | | | | | | | | Changes: - global mpcore timer dts node added - required by driver 'clock-frequency' property added Reviewed by: ian Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4213
* Do not require strict compatibility on simplebuszbb2016-01-202-3/+3
| | | | | | | | | | | | | | | Strict compatibility requirement is a root of problems when simplebus' node has two compatibility strings (i.e. on Armada38x). Removing this requirement should not interfere with other platforms. fdt_is_compatible_strict() and fdt_find_compatible() calls were changed in fdt_common.c and mv_common.c. Reviewed by: ian, imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Differential revision: https://reviews.freebsd.org/D4602
* Correct ranges in Armada38x dtszbb2016-01-201-2/+1
| | | | | | | | | | | | Ranges property of 'soc' node used two-cell addresses which resulted in casting errors as simplebus resource allocation works with 32-bit u_long variables. FDT ranges were simplified. Reviewed by: imp Obtained from: Semihalf Sponsored by: Stormshield Submitted by: Michal Stanek <mst@semihalf.com> Differential revision: https://reviews.freebsd.org/D4212
* Introduce initial support for Marvell Armada38xzbb2016-01-2015-14/+1598
| | | | | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud