aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Address issues found by the XCode code analyzer.Michael Tuexen2016-04-185-35/+35
| | | | Notes: svn path=/head/; revision=298223
* Add the ability to read a SAS device's Target Port NAA designatorAlan Somers2016-04-182-0/+14
| | | | | | | | | | | | | | sys/cam/scsi/scsi_all.h sys/cam/scsi/scsi_all.c Add the scsi_devid_is_port_naa helper function Reviewed by: ken MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5975 Notes: svn path=/head/; revision=298212
* Fix signed/unsigned warnings.Michael Tuexen2016-04-182-4/+5
| | | | Notes: svn path=/head/; revision=298203
* Pull the MSI/MSI-X handling functions out to help with INTRNG integration.Andrew Turner2016-04-181-7/+62
| | | | | | | | Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298202
* Fix a warning about an unused variable.Michael Tuexen2016-04-181-1/+1
| | | | Notes: svn path=/head/; revision=298200
* Put panic() calls under INVARIANTS.Michael Tuexen2016-04-183-0/+26
| | | | Notes: svn path=/head/; revision=298199
* Fix tinderbox LINT build.Xin LI2016-04-181-1/+0
| | | | Notes: svn path=/head/; revision=298197
* Cleanup debug output.Michael Tuexen2016-04-181-39/+39
| | | | Notes: svn path=/head/; revision=298188
* Don't use anonymous unions.Michael Tuexen2016-04-183-4/+4
| | | | Notes: svn path=/head/; revision=298187
* Remove a left-over debug printf().Michael Tuexen2016-04-181-10/+0
| | | | Notes: svn path=/head/; revision=298186
* Allow RT3350 CPU clock to be detected as part of RT3050/RT3052 detectionStanislav Galabov2016-04-182-8/+12
| | | | | | | | | | | | | | OpenWRT's dts files treat RT3050/RT3052/RT3350 within the same SoC dtsi file, so we need to distinguish between the three dynamically, mainly because the bit we use to determine the clock speed on RT3050/RT3052 can actually be floating on RT3350 and RT3350 is always at 320MHz. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5983 Notes: svn path=/head/; revision=298185
* [urtwn] default to announcing RX 64K aggregates.Adrian Chadd2016-04-181-0/+1
| | | | Notes: svn path=/head/; revision=298175
* [net80211] put in a comment about the not-quite-correctness of A-MPDU ↵Adrian Chadd2016-04-181-0/+8
| | | | | | | | | | | | | | | | | | | | parameters. Although we correctly (now!) calculate the right A-MPDU parameters, the ioctl() has some faulty logic for choosing which to display. The BSS params are what were advertised to us, and we would have chosen the lower of theirs/ours when advertising the HT bits back at them. So, we /should/ track and fix that so we display the correct A-MPDU density and size. However, since I'm a forgetful type, and I don't want to have to re-learn that this is wrong, drop in a comment so I or someone else fixes it. Or, when I discover this again in 4 years, I don't have to go digging too much to remember. Notes: svn path=/head/; revision=298174
* Use a loop instead of a goto in sysctl_kern_proc_kstack().Mark Johnston2016-04-171-6/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=298173
* Make the second argument of dtrace_invop() a trapframe pointer.Mark Johnston2016-04-1716-75/+100
| | | | | | | | | | | | | | | | Currently this argument is a pointer into the stack which is used by FBT to fetch the first five probe arguments. On all non-x86 architectures it's simply the trapframe address, so this change has no functional impact. On amd64 it's a pointer into the trapframe such that stack[1 .. 5] gives the first five argument registers, which are deliberately grouped together in the amd64 trapframe definition. A trapframe argument simplifies the invop handlers on !x86 and makes the x86 FBT invop handler easier to understand. Moreover, it allows for invop handlers that may want to modify the register set of the interrupted thread. Notes: svn path=/head/; revision=298171
* Add CAM_NETFLIX_IOSCHED to the build.Warner Losh2016-04-171-0/+1
| | | | Notes: svn path=/head/; revision=298165
* Do the intmax_t dance for debug so CAM_NETFLIX_IOSCHED builds onWarner Losh2016-04-171-3/+3
| | | | | | | | | i386. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=298164
* undo previous commit - WIP was committed by accident.Adrian Chadd2016-04-171-3/+3
| | | | | | | Noticed by: bz Notes: svn path=/head/; revision=298148
* The struct thread td_estcpu member is only used by the 4BSD scheduler.Konstantin Belousov2016-04-176-53/+53
| | | | | | | | | | | | | | | | | | | | | Move it to the struct td_sched for 4BSD, removing always present field, otherwise unused for ULE. New scheduler method sched_estcpu() returns the estimation for kinfo_proc consumption. As before, it always returns 0 for ULE. Remove sched_tick() scheduler method, unused both by 4BSD and ULE. Update locking comment for the 4BSD struct td_sched, copying it from the same comment for ULE. Spell MAXPRI as PRI_MAX_TIMESHARE in the 4BSD comment. Based on some notes from, and reviewed by: bde Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298145
* Add hw.dmar.batch_coalesce tunable/sysctl, which specifies rate atKonstantin Belousov2016-04-173-2/+20
| | | | | | | | | | | | | | | | which queued invalidation completion interrupt is requested with regard to the queued invalidation requests. In other words, setting the value of the knob to N requests completion interrupt after N items are processed. Existing behaviour is restored by setting hw.dmar.batch_coalesce=1. The knob significantly decreases the DMAR qi interrupt rate at the cost of slightly longer DMAR map entries recycling. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298144
* Implement Auxiliary register. Add PIM_ATA_EXT flag to flag that a SIMWarner Losh2016-04-177-10/+33
| | | | | | | | | | | | can handle it, and add the code to add it to the FIS that's sent to the drive. The mvs driver is the only other ATA driver in the system, and its hardware doesn't appear to support setting the Auxiliary register. Differential Revision: https://reviews.freebsd.org/D5598 Notes: svn path=/head/; revision=298143
* tag_action is not used at all in ata. It's set to 1 for orderedWarner Losh2016-04-174-14/+7
| | | | | | | | | | | | | | | | transactions, but that value isn't used. It's bogusly used to report in devstat, due to a cut and paste error from SCSI. Mark it as unused in cam_fill_ataio. Reclaim the memory as a new ata_flags. In addition, tag_id and init_id are completely unused, so reclaim those as 'unused' now too. These were needlessly copied when ata was split from scsi. This allows us, in the future, to create structures that can communicate AUXILIARY regsiter to the SIMs, which cannot be done now. Differential Revision: https://reviews.freebsd.org/D5598 Notes: svn path=/head/; revision=298142
* [urtwn] set the A-MPDU density to 16.Adrian Chadd2016-04-171-0/+4
| | | | | | | Obtained from: Linux rtlwifi/rtl8xxxu Notes: svn path=/head/; revision=298138
* Dell has an OEM drive from Samsung that has issues. NCQ Trim isn'tWarner Losh2016-04-171-0/+9
| | | | | | | | | broken on this drive, but it doesn't support it and the fallback logic is failing. Quirk it until those issues can be resolved in a more generic way. Notes: svn path=/head/; revision=298137
* Only compile the FDT bits when we are using FDT.Adrian Chadd2016-04-172-3/+5
| | | | Notes: svn path=/head/; revision=298136
* Fix the ICMP6 handling for SCTP.Michael Tuexen2016-04-164-226/+189
| | | | | | | | | Keep the IPv4 code in sync. MFC after: 1 week Notes: svn path=/head/; revision=298132
* Add Codel to NOTES.Luiz Otavio O Souza2016-04-161-0/+1
| | | | | | | | X-MFC with: r287009 Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=298131
* Import Mediatek/Ralink dts files from OpenWRTStanislav Galabov2016-04-16192-0/+23011
| | | | | | | | | | | | | | | | | Import original OpenWRT dts files after executing the following script on them: for f in `ls [mr]t*.dtsi`; do printf "\n#include <fbsd-$f>\n" >> $f done Approved by: adrian (mentor) Obtained from: OpenWRT Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5971 Notes: svn path=/head/; revision=298128
* Add support for boot arguments specification via fdtStanislav Galabov2016-04-161-0/+55
| | | | | | | | | | | | | | | Add suppport for passing boot arguments via FDT for mediatek/ralink SoCs. This was taken from kan's work on CI20. Since most OpenWRT dts files have bootargs defined, we use bsdbootargs to specify FreeBSD specific arguments. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5979 Notes: svn path=/head/; revision=298127
* Change MIPS_INTRNG to INTRNG in MEDIATEK_BASE configStanislav Galabov2016-04-161-2/+2
| | | | | | | | | | | | | Revision 298068 changed MIPS_INTRNG and ARM_INTRNG to simply INTRNG. MEDIATEK_BASE config was missed by this revision, so we change MIPS_INTRNG to INTRNG here. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5978 Notes: svn path=/head/; revision=298126
* Merge the projects/release-pkg branch to head.Glen Barber2016-04-163-2/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures. This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch. Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298107
| * MFHGlen Barber2016-04-165-37/+56
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the final merge from ^/head before merging this branch back to head. It's time. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298104
| * \ MFHGlen Barber2016-04-16287-1329/+5878
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298092
| * \ \ MFHGlen Barber2016-04-1318-305/+265
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297927
| * \ \ \ MFHGlen Barber2016-04-1348-447/+1958
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297906
| * \ \ \ \ MFHGlen Barber2016-04-1227-586/+531
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297861
| * \ \ \ \ \ MFHGlen Barber2016-04-11371-20431/+35017
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297824
| * \ \ \ \ \ \ MFHGlen Barber2016-04-0647-219/+2086
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297605
| * \ \ \ \ \ \ \ MFHGlen Barber2016-04-04663-6838/+34918
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-1479-919/+1401
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296869
| * \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-10213-13792/+28121
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-078-53/+235
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296457
| * \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-0675-566/+1844
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296422
| * \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-026-12/+26
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296328
| * \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-03-02601-114040/+233533
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-02-2460-1007/+1267
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295957
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-02-2329-127/+322
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295926
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-02-22273-2710/+23804
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295886
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-02-18107-480/+2236
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295734
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MFHGlen Barber2016-02-15175-2068/+5674
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295639