aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Connect new dependencies.Bryan Drewery2016-11-135-0/+89
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308605
* Remove lingering ELFCOPY_AS_OBJCOPY missed in r306649.Bryan Drewery2016-11-131-4/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308604
* Move libsysdecode-specific hack out of buildworld.Bryan Drewery2016-11-132-4/+6
| | | | | | | | | | | | | This should fix the lib32 build since it was not removing the generated ioctl.c. This file is generated by a find(1) call, so cannot use normal dependency tracking methods. Reported by: jhb MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308603
* Generate and use a proper .depend file for tables.h.Bryan Drewery2016-11-132-2/+18
| | | | | | | | | Reported by: jhb MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308602
* Fix 'rebuild during install' error to only trigger on 'make install'.Bryan Drewery2016-11-131-1/+1
| | | | | | | | | | | This allows 'make foo install' or 'make all install'. It is a similar fix as r304697 did for reading dependency files. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308601
* DIRDEPS_BUILD: Consolidate some logic for skipping of reading Makefile.depend.Bryan Drewery2016-11-132-3/+7
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308600
* Consolidate the "don't build" optimizations into _SKIP_BUILD.Bryan Drewery2016-11-132-8/+22
| | | | | | | | | | | | | _SKIP_BUILD will be set when nothing is expected to be built. This can be used to optimize some tree-walks and operations which don't need to load dependency files or generate dependencies via beforebuild-style hacks. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308599
* DIRDEPS_BUILD: Don't hook 'beforebuild' into 'all' in MAKELEVEL 0.Bryan Drewery2016-11-131-4/+5
| | | | | | | | | | | | This was a mistake in r295641, but is effectively prevented from being a problem due to r296699 preventing 'make all' from being usable at MAKELEVEL 0 for DIRDEPS_BUILD. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308598
* Always set CLEANFILES, even if not building.Bryan Drewery2016-11-131-1/+2
| | | | | | | | | | This will ensure that 'make clean' does the right thing. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308597
* Make dpaa work with only slightly modified Linux device trees.Justin Hibbits2016-11-1215-435/+215
| | | | | | | | | | | | | | | | | Linux has a slightly different device tree definition for DPAA than originally done in the FreeBSD driver. This changes the driver to be mostly compatible with the Linux device tree definitions. Currently the differences are: bman-portals: compatible = "fsl,bman-portals" (Linux is "simple-bus") qman-portals: compatible = "fsl,qman-portals" (Linux is "simple-bus") fman: compatible = "fsl,fman" (Linux is "simple-bus") The Linux device tree doesn't specify anything for rgmii in the mdio. This change still requires the device tree to specify the phy-handle, and doesn't yet support tbi. Notes: svn path=/head/; revision=308584
* Fix a broken link to the USB audio class specs.Benedict Reuschling2016-11-121-2/+2
| | | | | | | | | PR: 214240 Submitted by: Tobias Kortkamp t@tobik.me MFC after: 5 days Notes: svn path=/head/; revision=308583
* Remove the DTrace printt and typeref actions.Mark Johnston2016-11-128-496/+16
| | | | | | | | | | | | | These are FreeBSD-specific and were added in r178576 to provide the ability to pretty-print instances of compound types. However, the print action has long since been augmented to provide this functionality with a simpler interface. Discussed with: gnn Differential Revision: https://reviews.freebsd.org/D8478 Notes: svn path=/head/; revision=308582
* [rpi_ft5406] Add missing dependency on mbox_if.hOleksandr Tymoshenko2016-11-121-1/+1
| | | | | | | | Submitted by: hselasky MFC after: ASAP Notes: svn path=/head/; revision=308581
* Don't read if_counters with if_addr_lock heldRyan Stone2016-11-121-8/+13
| | | | | | | | | | | | | | | | | | | Calling into an ifnet implementation with the if_addr_lock already held can cause a LOR and potentially a deadlock, as ifnet implementations typically can take the if_addr_lock after their own locks during configuration. Refactor a sysctl handler that was violating this to read if_counter data in a temporary buffer before the if_addr_lock is taken, and then copying the data in its final location later, when the if_addr_lock is held. PR: 194109 Reported by: Jean-Sebastien Pedron MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8498 Reviewed by: sbruno Notes: svn path=/head/; revision=308580
* Do not report error on close even if we have no paths left.Alexander Motin2016-11-121-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=308579
* iwm: If firmware load fails during init via iwm_preinit() we bail outGavin Atkinson2016-11-121-1/+2
| | | | | | | | | | | | before calling ieee80211_ifattach() so the taskqueue hasn't been initialized. Don't try to drain it, we'll panic. Looks like this issue was introduced in r303326. Reviewed by: avos, sbruno, adrian Differential Revision: https://reviews.freebsd.org/D8499 Notes: svn path=/head/; revision=308577
* Add myself (def) as a src committer and pjd as my mentor.Konrad Witaszczyk2016-11-121-0/+2
| | | | | | | Approved by: pjd (mentor) Notes: svn path=/head/; revision=308576
* rtwn: enable 11n support for RTL8188CE.Andriy Voskoboinyk2016-11-127-34/+94
| | | | | | | | | | | | | | | | | | | | | | - Increase Rx buffer size from MCLBYTES to MJUMPAGESIZE. - Provide an additional defragmentation routine for frames larger than MCLBYTES; that is required by A-MSDU / Atheros Fast-Frames support to work with current Tx path implementation. Enabled features list for RTL8188CE: - Atheros Fast-Frames; - A-MPDU (Tx / Rx); - A-MSDU (Tx / Rx; 4k only); - Short Guard Interval. Tested with: - RTL8188CE (STA+AP) + RTL8821AU (STA). - RTL8188CE (STA) + RTL8188CUS (AP). Relnotes: yes Notes: svn path=/head/; revision=308575
* The return type of is_managed() was changed from boolean_t to bool typeSvatopluk Kraus2016-11-121-4/+4
| | | | | | | | | in r308569. Now, propagate this change further for consistency sake. MFC after: 2 weeks Notes: svn path=/head/; revision=308570
* Always call PHYS_TO_VM_PAGE() in is_managed(). Fast road for addressesSvatopluk Kraus2016-11-121-11/+5
| | | | | | | | | | | | | | | | | | under first_page cannot be taken as this variable is connected only to vm_page_array segment. There could be more segments in system like the ones for various fictitious page ranges. These can be situated under vm_page_array segment and so, they could be skipped before this fix. However, as far as I know, there is no report associated with it. While here, the return type of this function is changed from boolean_t to bool type. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8502 Notes: svn path=/head/; revision=308569
* Set of improvements to acpi_hp(4) driver.Alexander Motin2016-11-121-136/+215
| | | | | | | | | | | | | - Attach only to WMI devices that provide supported GUIDs. HP Spectre x360 has two WMI devices, only one of which provides the GUIDs. - Pass proper device to ACPI_WMI_REMOVE_EVENT_HANDLER() on detach. - Improve error WMI handling separating status and data paths. This allows to hide sysctls not supported by specific hardware/BIOS. - Improve CMI block parser to make it work on HP Spectre x360 laptop. - In verbose mode log all unknown events to help futher improvements. Notes: svn path=/head/; revision=308568
* Fix build when WITHOUT_BLACKLIST=yes is specifiedKurt Lidl2016-11-121-3/+0
| | | | | | | | | | | PR: 214409 Submitted by: matthew Reported by: matteo MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=308567
* Reserve space for control message payload (currently a port name).Jakub Wojciech Klama2016-11-121-2/+3
| | | | | | | | Approved by: trasz (mentor) Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=308566
* Allow scheduling during early boot.John Baldwin2016-11-121-3/+2
| | | | | | | | | | | | | - Send IPI wakeups once SMP is started even if cold is true. - Permit preemptions when cold is true. These changes are needed for EARLY_AP_STARTUP. MFC after: 2 weeks Sponsored by: Netflix Notes: svn path=/head/; revision=308565
* Don't place threads on the run queue after waking up other CPUs.John Baldwin2016-11-121-49/+13
| | | | | | | | | | | | | | | | | | | | The other CPU might resume and see a still-empty runq and go back to sleep before sched_add() adds the thread to the runq. This results in a lost wakeup and a potential hang if the system is otherwise completely idle. The race originated due to a micro-optimization (my fault) in 4BSD in that it avoided putting a thread on the run queue if the scheduler was going to preempt to the new thread. To avoid complexity while fixing this race, just drop this optimization. 4BSD now always sets the "owepreempt" flag when a preemption is warranted and defers the actual preemption to the thread_unlock of the caller the same as ULE. MFC after: 2 weeks Sponsored by: Netflix Notes: svn path=/head/; revision=308564
* libcc_{s,eh}: build without SSPEd Maste2016-11-112-0/+2
| | | | | | | | | | | | | As in the gnu/lib/libgcc Makefile: libgcc is linked in last and thus cannot depend on ssp symbols coming from earlier libraries. Disable stack protection for this library. Reviewed by: dim Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=308563
* Fix git tools when run against a worktreeRyan Stone2016-11-112-16/+16
| | | | | | | | | | | | | | | | | In a git worktree, the gitdir is in an entirely different location. In arcgit, use git rev-parse --git-dir to get the correct path to it always. When running git from outside of the work tree, as in importgit, the path provided by git rev-parse --git-dir can be either a relative or absolute path depending on the work tree. Rather than trying to deal with that, just use git -C. Differential Revision: https://reviews.freebsd.org/D8501 Reviewed by: markj Notes: svn path=/head/; revision=308562
* Correct spelling in syslog: getttimeofday -> gettimeofdayGavin Atkinson2016-11-111-1/+1
| | | | Notes: svn path=/head/; revision=308561
* Replace another fdt_is_compatible() call.Justin Hibbits2016-11-111-1/+1
| | | | Notes: svn path=/head/; revision=308560
* Pull in r263169 from upstream llvm trunk (by Tim Northover):Dimitry Andric2016-11-111-1/+2
| | | | | | | | | | | | | | | | AArch64: only try to use scaled fcvt ops on legal vector types. Before we ended up calling getSimpleVectorType on a <3 x float>, which asserted. This fixes an assertion when building the print/ghostscript9-agpl-base port for AArch64. PR: 213865 MFC after: 3 days Notes: svn path=/head/; revision=308559
* queue.3: Document existing QMD_* macrosConrad Meyer2016-11-111-0/+39
| | | | | | | | | Feedback from: bapt, bdrewery, emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D3983 Notes: svn path=/head/; revision=308558
* ioat(4): Fix race between process_events and reset_hwConrad Meyer2016-11-111-0/+9
| | | | | | | | | | | | | | | | | In the case where a hardware error is detected during ioat_process_events, hardware may advance (by one descriptor, probably) and a subsequent ioat_process_events may race the intended ioat_reset_hw followup. In that case, the second process_events would observe a completion update that does not match the software "last_seen" status, and attempt to successfully complete already-failed descriptors. Guard against this race with the resetting_cleanup flag. Reviewed by: bdrewery, markj Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308553
* Increase the max allowed size of the microcode update blob for x86.Konstantin Belousov2016-11-111-1/+1
| | | | | | | | | | | | | | | | | Newer CPUs (SkyLakes) have updates of 100K size, which is bigger than current limit 32K. Increase it to 4M but leave the check around to prevent kernel memory allocator abuse. Some time ago, the memory for update was allocated by contigmalloc(9), and it was reasonable to be conservative as much as possible. Since all uses of contigmalloc(9) appear to be either misunderstanding or too cautious, and were removed, provide more slack than strictly neccessary. Submitted by: Oliver Pinter MFC after: 1 week Differential revision: https://reviews.freebsd.org/D8486 Notes: svn path=/head/; revision=308538
* Spell 'PACKAGE' correctly.Glen Barber2016-11-111-1/+1
| | | | | | | | | Submitted by: Kyle Evans, emaste MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=308537
* Use ofw_bus_node_is_compatible() instead of fdt_is_compatible()Justin Hibbits2016-11-113-11/+8
| | | | | | | | | | No need to have two functions that do the same thing, let's let fdt_* go away, and use ofw_bus_* equivalents instead. Requested by: andrew Notes: svn path=/head/; revision=308536
* Add support for LOADER_RC setting in the pkgfs manifest (defaults toStephen J. Kiernan2016-11-111-1/+17
| | | | | | | | | | | | | | | | | /loader.rc) to specify a Forth file to read from the pkgfs tarball and process by Ficl. This allows for the tarball to do runtime things like load a platform-specific FDT blob, among other things. Reviewed by: imp Approved by: sjg (mentor) MFC after: 2 weeks Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D8494 Notes: svn path=/head/; revision=308535
* The file_loadraw function grew an argument, update install functionStephen J. Kiernan2016-11-111-1/+1
| | | | | | | | | | | | | accordingly. Reviewed by: imp Approved by: sjg (mentor) MFC after: 2 weeks Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D8494 Notes: svn path=/head/; revision=308534
* Use ofw_bus_node_is_compatible in more drivers used on arm.Andrew Turner2016-11-113-4/+5
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=308533
* update SMB_BWRITE documentation, clarify SMB_BREADAndriy Gapon2016-11-111-10/+9
| | | | | | | | | | | | | | | | After removal of SMB_TRANS some information in the description of SMB_BWRITE has become stale. E.g., the maximum block size has been restored to 32. Also, the descriptions of SMB_BREAD and SMB_BWRITE had some incorrect information on the SMBus protocol details. MFC after: 1 week X-MFC with: r308242 Differential Revision: https://reviews.freebsd.org/D8431 Notes: svn path=/head/; revision=308532
* Use the modern spelling of ofw_bus_node_is_compatible in sys/arm.Andrew Turner2016-11-1113-22/+27
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=308531
* iicsmb: SMB_MAXBLOCKSIZE can be used againAndriy Gapon2016-11-111-14/+4
| | | | | | | | | | | | The constant was set to the correct value in r308242. While there, fix iicsmb_bread() to not use a value of an out parameter 'count'. MFC after: 3 weeks X-MFC after: r308242 Notes: svn path=/head/; revision=308530
* intpm: clean up intsmb_bread and intsmb_pcallAndriy Gapon2016-11-111-37/+2
| | | | | | | | | | | | | | | The hardware does not implement SMBus Process Call command, so remove ifdef-ed out code from intsmb_pcall. The code used exactly the same start sequence as for Write Word command. intsmb_bread code used to access an in value of the count parameter, but that parameter is supposed to be an out only parameter. For example, smb(4) does not initialize it before calling smbus_bread. MFC after: 3 weeks Notes: svn path=/head/; revision=308529
* smbmsg: use a more convenient way of accessing data read from a slaveAndriy Gapon2016-11-111-11/+7
| | | | | | | | | | | | Developers writing code for accessing /dev/smb may use this base utility as an example. Now that SMB_READB, SMB_READW, SMB_PCALL behave as documented, wwe can use them in a more convenient way than before. MFC after: 4 weeks X-MFC after: r308527 Notes: svn path=/head/; revision=308528
* smb: fix SMB_READB, SMB_READW, SMB_PCALL to work as documentedAndriy Gapon2016-11-112-5/+12
| | | | | | | | | | | | | | | | | | Previously, those ioctls were defined as 'in' only, so rdata.byte and rdata.word were never updated in the userland. The read data went only to rbuf if it was provided. Thus, consumers were forced to always use it. Now the ioctls are marked as in-out. Compatibility handlers are provided for old ioctls. PR: 213481 Reported by: Lewis Donzis <lew@perftech.com> MFC after: 2 weeks Relnotes: maybe Differential Revision: https://reviews.freebsd.org/D8430 Notes: svn path=/head/; revision=308527
* Fix ata_at91_alloc_resource to use rman_res_t.Andrew Turner2016-11-111-1/+1
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=308526
* Remove more unneeded users of the fdt_pic_decode_t table.Andrew Turner2016-11-116-148/+0
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=308525
* Replace OF_getprop ... fdt32_to_cpu with OF_getencprop. The latterAndrew Turner2016-11-111-7/+7
| | | | | | | | | | correctly adjusts for the endian. MFC after: 1 week Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=308524
* MFV r305100: Update amd from am-utils 6.1.5 to 6.2.Cy Schubert2016-11-11166-4261/+21074
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Used extensively on my network over the past month. Reviewed by: pfg, brooks Suggested by: pfg Obtained from: ftp://ftp.am-utils.org/pub/am-utils/ MFC after: 6 weeks Relnotes: yes Differential Revision: D8405 Notes: svn path=/head/; revision=308493
| * Import am-utils 6.2,vendor/amd/6.2vendor/amdCy Schubert2016-08-31457-9471/+198687
| | | | | | | | | | | | | | | | | | Suggested by: pfg@ Obtained from: ftp://ftp.am-utils.org/pub/am-utils/ Notes: svn path=/vendor/amd/dist/; revision=305100 svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
| * am-utils: Disable keyword expansion.Pedro F. Giffuni2016-06-140-0/+0
| | | | | | | | | | | | | | As recommended in the Committers guide section 5.4.4.1.2. Notes: svn path=/vendor/amd/dist/; revision=301899