aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add an example to the chflags(1) man page.Edward Tomasz Napierala2018-06-121-1/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=335003
* Fix memory leakBaptiste Daroussin2018-06-121-0/+1
| | | | | | | CID: 1393352 Notes: svn path=/head/; revision=335002
* Correctly test return value of pipe(2)Baptiste Daroussin2018-06-121-1/+2
| | | | | | | CID: 1393351 Notes: svn path=/head/; revision=335001
* Align virtual addressing entries.Ruslan Bukin2018-06-121-0/+4
| | | | | | | | | | | This is required due to C-compressed ISA extension option being turned on. This fixes SMP operation in QEMU. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=335000
* Rework PSCI so it only searches for the call function once.Andrew Turner2018-06-121-42/+64
| | | | | | | | | | | This is in preperation for supporting newer smccc functions that also use the same call method. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D15745 Notes: svn path=/head/; revision=334999
* linux64: use linux output target for linux_vdso.soEd Maste2018-06-121-1/+1
| | | | | | | | | | | | | | | | | | linux_vdso.so provides the vdso for the linuxulator's amd64 target and is mapped into a Linux binary's address space. Thus it should be a Linux-style .so, which has the ELF OS/ABI unset. It turns out that ELF Tool Chain elfcopy/objcopy also has a bug where the OS/ABI field is unset, regardless of the specified --output-target, so this change is a no-op with the default in-tree toolchain. This is a real fix when using external binutils, and the ELF Tool Chain bug will be fixed in the future. PR: 228934 Sponsored by: Turing Robotic Industries Notes: svn path=/head/; revision=334998
* Add a driver for the BCM2835 Mini-UART as seen on the RPi3Diane Bruce2018-06-124-2/+526
| | | | | | | | | Reviewed by: andrew Approved by: andrew Differential Revision: https://reviews.freebsd.org/D15684 Notes: svn path=/head/; revision=334997
* arm64: rockchip: Correctly set armclkEmmanuel Vadot2018-06-121-3/+4
| | | | | | | | | | | Parent needs to be the same frequency as the armclk, not twice the freq. The real divider is incremented by one so write it with - 1 The rate can be at index 0 Pointy Hat To: myself Notes: svn path=/head/; revision=334996
* All exceptions IDT descriptors must use interrupt gates on 4/4 kernel.Konstantin Belousov2018-06-121-1/+1
| | | | | | | | | | Fix it for #MF. Noted by: rlibby Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334995
* Fix typo.Konstantin Belousov2018-06-121-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334994
* Implement the ip_eth_mc_map() function in the LinuxKPI.Hans Petter Selasky2018-06-121-0/+14
| | | | | | | | MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334993
* Add hrs, meta and myself to share/misc/committers-ports.dotKurt Jaeger2018-06-121-0/+10
| | | | | | | Approved by: remko Notes: svn path=/head/; revision=334991
* top(1): remove trailing whitespaceEitan Adler2018-06-125-32/+32
| | | | Notes: svn path=/head/; revision=334990
* top(1): style and relatedEitan Adler2018-06-126-13/+8
| | | | | | | | | | - style(9) - remove now-defunct comments - remove getuid check for low delay - expand range of format_k Notes: svn path=/head/; revision=334989
* top(1): move command mapping to commands.cEitan Adler2018-06-124-93/+88
| | | | | | | | | | | | | This eliminates the difficult to follow mapping of a string list. It moves numbers from "#define" into (more) debuggable enums. More generally, it follows the trend of moving more data into a more central mechanism. The help output is a little worse: " " is not rendered well, and there are duplicate entries, but that will be fixed in a followup. Notes: svn path=/head/; revision=334988
* cxgbe(4): Remove homemade version of htobe32 from the driver.Navdeep Parhar2018-06-122-6/+3
| | | | | | | | | | | | It was needed only for ia64 where it was implemented as a call to bswapXX, which was always a real function. htobeXX with a constant argument is calculated at compile-time everywhere else. MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=334987
* lualoader: More black-on-white fixesKyle Evans2018-06-122-7/+8
| | | | | | | | | | | | | | | | | | | | To recap the problem: with a black-on-white xterm, the menu draws terribly. Ideally, we would try our best for a white-on-black context for the menu since graphics and whatnot might not be tested for other setups and there's no reasonable way to sample the terminal at this point for the used color scheme. This commit attempts to address that further in two ways: - Instead of issuing CSI bg/fg resets (CSI 39m and CSI 49m respectively for "default"), issue CSI bg/fg escape sequences for our expected color scheme - Reset to *our* default color scheme before we even attempt to load the local module, so that we personally don't have any earlier text with the console default color scheme. Reported by: emaste (again) Notes: svn path=/head/; revision=334986
* Follow r333233, add fat32lba description to gpart(8)Li-Wen Hsu2018-06-121-1/+6
| | | | | | | | | | | Reviewed by: emaste MFC after: 3 days X-MFC with: r333233 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15767 Notes: svn path=/head/; revision=334985
* Fix a memory leak for the BIOCSETWF ioctl on kernels with the BPF_JITTERJonathan T. Looney2018-06-111-2/+7
| | | | | | | | | | | | | | | option. The BPF code was creating a compiled filter in the common filter-creation path. However, BPF only uses compiled filters in the read direction. When creating a write filter, the common filter-creation code was creating an unneeded write filter and leaking the memory used for that. MFC after: 2 weeks Sponsored by: Netflix Notes: svn path=/head/; revision=334983
* User service foo rather than /etc/rc.d/foo.Warner Losh2018-06-113-14/+14
| | | | | | | | | | | | devd predates service in the system. Modernize usage to use service to start/stop things in reaction to events rather than calling the rc file directly. This was pointed out in my talk at BSDcan as well as indirectly referrred to as a barrier to entry for OpenRC in that working group. Notes: svn path=/head/; revision=334982
* muge.4: remove BUGS section (about link/act LEDs)Ed Maste2018-06-111-3/+0
| | | | | | | | | | | | | | | | | | | | Lack of functioning link and activity LEDs on devices without an EEPROM is expected (not a bug). Quoting the EVB-LAN7850 User's Guide: When configured with the default internal register settings, the Ethernet Link status LEDs are not enabled. To enable Ethernet Link status LEDs, enable the EEPROM. This is an artifact of the different ways in which the evaluation board can be used. End-user USB-Ethernet adapters using the Microchip LAN78XX or LAN7515 controllers should use an EEPROM or have OTP configuration, if their product configuration does not match the boot default register configuration. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334981
* Revert size limits.Warner Losh2018-06-113-16/+1
| | | | | | | | | The size limits came from a flawed understanding of dump records. The real issue was that dump was bogusly interpreting c_count sometimes. r334978 fixes that. Notes: svn path=/head/; revision=334980
* Fix a bug in the counting of blks.Warner Losh2018-06-111-1/+2
| | | | | | | | | | | | | We shouldn't count the bytes set in c_addr for TS_CLRI and TS_BITS nodes. Those block overload c_count to communicate how many blocks follow, not now many c_addr spaces are used. Dump would dump core (now) because memory layout moved around and we'd access elements past the end to make a count. Reviewed by: kib@ Notes: svn path=/head/; revision=334979
* Connect muge.4 man pageEd Maste2018-06-111-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334977
* muge.4: correct BUGS statementEd Maste2018-06-111-1/+1
| | | | | | | | | | The EVB-LAN7850 I have does function with the EEPROM disabled - the link / activity LEDs just do not function. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334975
* Don't initialize c_count. We don't need to.Warner Losh2018-06-111-2/+2
| | | | Notes: svn path=/head/; revision=334974
* if_muge: retire lan78xx_eeprom_readEd Maste2018-06-111-23/+6
| | | | | | | | | | | | | | | | lan78xx_eeprom_read just checked for EEPROM presence then called lan78xx_eeprom_read_raw if present, and had only one caller. Introduce lan78xx_eeprom_present to check for EEPROM presence, and use it in the one place it is needed. This is used by r334964, which was accidentally committed out-of-order from my work tree. Reported by: markj Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334973
* Minor style polishing.Warner Losh2018-06-111-2/+1
| | | | | | | | | Declare c_count and initialize it with other ints. Reported by: mjg@ Notes: svn path=/head/; revision=334972
* Document the newly enforced 524288 inode restriction.Warner Losh2018-06-111-1/+6
| | | | Notes: svn path=/head/; revision=334971
* Document the dump issue in UPDATING so people understand when theyWarner Losh2018-06-111-0/+7
| | | | | | | get a new diagnostic. Notes: svn path=/head/; revision=334970
* Add asserts to prevent overflows of c_addr.Warner Losh2018-06-112-0/+6
| | | | | | | | | | | | | Add some asserts that prevents the overflows of c_addr. This can't happen, absent bugs. However, certain large filesystems can cause problems. These have been prevented by r334968, but a solution is needed. These asserts will help assure that solution is correct. PR: 228807 Reviewed by: db Notes: svn path=/head/; revision=334969
* Large file systems with inodes > 512K have been silently overflowingDiane Bruce2018-06-111-1/+4
| | | | | | | | | | | | | c_addr in spcl. So check before we start dumping otherwise we can end up with a corrupted dump. PR: 228807 Submitted by: db Reviewed by: imp Approved by: imp Notes: svn path=/head/; revision=334968
* Add a couple of safety belt checks to the NFSv4.1 client related to sessions.Rick Macklem2018-06-112-5/+8
| | | | | | | | | | | | | | | | | | There were a couple of cases in newnfs_request() that it assumed that it was an NFSv4.1 mount with a session. This should always be the case when a Sequence operation is in the reply or the server replies NFSERR_BADSESSION. However, if a server was broken and sent an erroneous reply, these safety belt checks should avoid trouble. The one check required a small tweak to nfsmnt_mdssession() so that it returns NULL when there is no session instead of the offset of the field in the structure (0x8 for i386). This patch should have no effect on normal operation of the client. Found by inspection during pNFS server development. MFC after: 2 weeks Notes: svn path=/head/; revision=334966
* makesyscalls: simplify capenabled pipelineEd Maste2018-06-111-1/+1
| | | | | | | | | Replace cat + 2x grep with one grep. Sponsored by: Turing Robotic Industries Notes: svn path=/head/; revision=334965
* if_muge: add LAN7850 supportEd Maste2018-06-112-9/+30
| | | | | | | | | | | | | | | | | | | | Differences between LAN7800 and LAN7850 from the driver's perspective: * The LAN7800 muxes EEPROM signals with LEDs, so LED mode needs to be disabled when reading/writing EEPROM. The EEPROM is not muxed on the LAN7850. * The Linux driver enables automatic duplex and speed detection when there is no EEPROM, for the LAN7800 only. With this FreeBSD driver LAN7850-based adapters without a configuration EEPROM fail to link (with or without the automatic duplex and speed detection code), so I have just followed the example of the Linux driver for now. Sponsored by: The FreeBSD Foundation Sponsored by: Microchip (hardware) Notes: svn path=/head/; revision=334964
* limit change to fixing controlp handling pending reviewMatt Macy2018-06-111-2/+0
| | | | Notes: svn path=/head/; revision=334962
* Process CUs with a language attribute of DW_LANG_Mips_Assembler.Mark Johnston2018-06-111-1/+2
| | | | | | | | | | | At the moment ctfconvert(1) does not do much with such CUs, but that may not be true in the future, and we run ctfconvert on several assembly files during the build. X-MFC with: r334883 Notes: svn path=/head/; revision=334961
* soreceive_stream: correctly handle edge casesMatt Macy2018-06-111-3/+4
| | | | | | | | | | | - non NULL controlp is not an error, returning EINVAL would cause X forwarding to fail - MSG_PEEK and MSG_WAITALL are fairly exceptional, but we still want to handle them - punt to soreceive_generic Notes: svn path=/head/; revision=334960
* Use the cached curthread reference in pmc_process_interrupt().Mark Johnston2018-06-111-3/+3
| | | | | | | Fix indentation while here. Notes: svn path=/head/; revision=334959
* Implement the kstrtobool() and kstrtobool_from_user() functionsHans Petter Selasky2018-06-111-0/+42
| | | | | | | | | | | | in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks Notes: svn path=/head/; revision=334958
* pmc gcc fixupsRyan Libby2018-06-113-5/+6
| | | | | | | | | | | Fix the build of lib/libpmc and usr.sbin/pmc for gcc on amd64. Reviewed by: mmacy Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D15723 Notes: svn path=/head/; revision=334957
* Implement the user_access_begin(), user_access_end(), usafe_get_user() andHans Petter Selasky2018-06-111-0/+13
| | | | | | | | | | | | unsafe_put_user() function macros in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks Notes: svn path=/head/; revision=334953
* Fix braino in r334799. Maxmem is in pages.Konstantin Belousov2018-06-111-1/+1
| | | | | | | | | | Reported by: ae, pho Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=334952
* More style(9) fixes, space vs tab.Marcelo Araujo2018-06-111-3/+3
| | | | Notes: svn path=/head/; revision=334951
* style(9): Fix tabs after #define.Pedro F. Giffuni2018-06-111-41/+41
| | | | | | | No functional change intended. Notes: svn path=/head/; revision=334950
* Change RACK dependency on TCPHPTS from a build-time dependency to a load-Jonathan T. Looney2018-06-112-4/+2
| | | | | | | | | | | | | | | time dependency. At present, RACK requires the TCPHPTS option to run. However, because modules can be moved from machine to machine, this dependency is really best assessed at load time rather than at build time. Reviewed by: rrs Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D15756 Notes: svn path=/head/; revision=334949
* Fix build of bxe with base gcc on i386Dimitry Andric2018-06-111-4/+4
| | | | | | | | | | | | | | | Casting from rman_res_t to a pointer results in "cast to pointer from integer of different size" warnings with base gcc on i386, so print these without casting. The kva field of struct bxe_bar is of type vm_offset_t, which can be 32 or 64 bit, so cast it to uintmax_t before printing. Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D15733 Notes: svn path=/head/; revision=334948
* Disable building aesni with base gccDimitry Andric2018-06-111-0/+2
| | | | | | | | | | | Because base gcc does not support the required intrinsics, do not attempt to compile the aesni module with it. Noticed by: Dan Allen <danallen46@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=334947
* Fix build of i915kms with base gccDimitry Andric2018-06-111-1/+9
| | | | | | | | | | | | | | | | | | | | | | | Base gcc fails to compile sys/dev/drm2/i915/intel_display.c for i386, with the following -Werror warnings: cc1: warnings being treated as errors /usr/src/sys/dev/drm2/i915/intel_display.c:8884: warning: initialization from incompatible pointer type This is due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36432, which incorrectly interprets the [] as a flexible array member. Because base gcc does not have a -W flag to suppress this particular warning, it requires a rather ugly cast. To not influence any other compiler, put it in a #if/#endif block. Reviewed by: kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D15744 Notes: svn path=/head/; revision=334946
* Fix build of ocs_fs with base gcc on i386Dimitry Andric2018-06-112-7/+7
| | | | | | | | | | | | | Add a few intermediate casts to uintptr_t to suppress "cast to pointer from integer of different size" warnings from gcc. Also remove a few incorrect casts. Reviewed by: ram MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D15747 Notes: svn path=/head/; revision=334945