Sascha Wildner [Tue, 12 Jan 2016 04:33:09 +0000 (05:33 +0100)]
expand(1)/unexpand(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup.
François Tigeot [Mon, 11 Jan 2016 21:23:31 +0000 (22:23 +0100)]
drm: Add asm/cpufeature.h
François Tigeot [Mon, 11 Jan 2016 21:09:13 +0000 (22:09 +0100)]
kernel/linux: Add hweight8()
Sascha Wildner [Mon, 11 Jan 2016 18:25:41 +0000 (19:25 +0100)]
printf(1): Sync with FreeBSD.
* Better multibyte character support.
* Some improvements for better POSIX conformance.
* Position handling (%1$, %2$ etc.).
* Use variable length array instead of alloca().
Sascha Wildner [Sun, 10 Jan 2016 23:21:35 +0000 (00:21 +0100)]
libc/gen: Cleanup Makefile.inc a bit.
Sascha Wildner [Sun, 10 Jan 2016 23:21:29 +0000 (00:21 +0100)]
makecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.
While here, start one sentence on a new line.
Sascha Wildner [Sun, 10 Jan 2016 20:18:16 +0000 (21:18 +0100)]
wc(1): Sync with FreeBSD.
* Improved multibyte character support.
* New -L option to report the longest line.
Matthew Dillon [Sun, 10 Jan 2016 19:34:29 +0000 (11:34 -0800)]
kernel - Remove kernel debugging message related to user seg-faults
* Remove kprintf("T_PAGEFLT: Warning %%rip == 0!\n"); This debugging
output was put in place during the initial 64-bit port to help debug
the VM system and is no longer needed.
* Fixes system ultra-slowness/lockup issues if a user program faults on
%rip == 0 and tries to catch the signal and return, creating a continuous
loop that saturates the console.
François Tigeot [Sun, 10 Jan 2016 10:49:25 +0000 (11:49 +0100)]
drm/i915: Use dev->pdev to get PCI device revisions
Reducing differences with Linux.
François Tigeot [Sun, 10 Jan 2016 10:40:42 +0000 (11:40 +0100)]
drm: Store PCI device information in a struct pci_dev
Reducing differences with Linux
François Tigeot [Sun, 10 Jan 2016 10:37:47 +0000 (11:37 +0100)]
drm: Improve Linux compatibility of pci structures
Sascha Wildner [Sun, 10 Jan 2016 09:00:46 +0000 (10:00 +0100)]
kernel/kate: Bad idea to put temporary values in the sensor value directly.
Pointed-out-by: Constantine Aleksandrovich Murenin
Sascha Wildner [Sun, 10 Jan 2016 08:08:23 +0000 (09:08 +0100)]
ncal(1): Sync with FreeBSD.
* Multibyte character support.
* -3 to show previous, this and next month.
* -A for months after this month.
* -B for months before this month.
* -h to disable highlighting.
* Some extensions to -m ('f' and 'p').
* Various other fixes.
Also, raise WARNS to 6.
Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
Sascha Wildner [Sun, 10 Jan 2016 03:18:57 +0000 (04:18 +0100)]
ee(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 Jan 2016 03:18:30 +0000 (04:18 +0100)]
ee(1): Fix an uninitialized variable.
Since ee(1) was switched from mktemp() to mkstemp(), the file name is
no longer initialized. Initialize it to NULL at least. The message in
case of an error will still be confusing, but for now, live with it.
Sascha Wildner [Sun, 10 Jan 2016 02:43:35 +0000 (03:43 +0100)]
w(1): Use NELEM(), raise WARNS to 3.
Sascha Wildner [Sun, 10 Jan 2016 02:41:35 +0000 (03:41 +0100)]
w(1): inet_addr() returns INADDR_NONE upon failure.
Sascha Wildner [Sun, 10 Jan 2016 02:16:48 +0000 (03:16 +0100)]
kernel/kate: CurTmp starts at -28C on Socket AM2 Revision G processors.
Such as on this 4850e of mine.
Taken-from: FreeBSD
François Tigeot [Sat, 9 Jan 2016 21:28:18 +0000 (22:28 +0100)]
drm: Always enable MSI interrupts
The Linux drm code doesn't contain any blacklist for hardware with
broken MSI support; there is no reason for MSI interrupts to not work
with DragonFly either.
Sascha Wildner [Sat, 9 Jan 2016 18:56:50 +0000 (19:56 +0100)]
vis(1): Fix some warnings and raise WARNS to 6.
Sascha Wildner [Sat, 9 Jan 2016 18:44:13 +0000 (19:44 +0100)]
rtadvd(8)/rtadvctl(8): Raise WARNS to 6 and fix two warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:34:42 +0000 (19:34 +0100)]
mrouted(8): Raise WARNS to 2 and fix some warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:00:22 +0000 (19:00 +0100)]
sliplogin(8): Fix a number of style(9) issues / warnings, raise WARNS to 3.
Sascha Wildner [Sat, 9 Jan 2016 17:32:03 +0000 (18:32 +0100)]
tzsetup(8): Raise WARNS to 6 and fix a warning.
Sascha Wildner [Sat, 9 Jan 2016 04:37:06 +0000 (05:37 +0100)]
rpc.lockd(8): Clean up the Makefile a little.
Sascha Wildner [Sat, 9 Jan 2016 04:19:00 +0000 (05:19 +0100)]
rpc.lockd(8): Remove an obsolete file from an older version of lockd.
Sascha Wildner [Sat, 9 Jan 2016 03:05:44 +0000 (04:05 +0100)]
i386 removal, part 48/x: Remove ancient bootdev parsing in sysctl(8).
While here, remove an i386 specific reference from isa.4's SEE ALSO.
Sascha Wildner [Sat, 9 Jan 2016 02:47:39 +0000 (03:47 +0100)]
i386 removal, part 47/x: Remove the i386 specific spic(4) device.
Sascha Wildner [Fri, 8 Jan 2016 18:17:15 +0000 (19:17 +0100)]
Sync ACPICA with Intel's version
20160108.
This includes the
20151218 upgrade which we had to revert again because
of a bug found by tkusumi. The only major change in
20160108 is a fix
for this bug.
20151218 changes:
* Execute "module-level code" as ACPI tables are loaded into the
namespace during initialization and install the default operation
region handlers for the SystemMemory, SystemIO and PCI_Config
address spaces before any ACPI tables are loaded (in order to
enable module-level code to access these address spaces). Also,
several changes to the internal _REG support and to utilities
in conjunction with these changes.
20160108 changes:
* Fixed a regression introduced in version
20151218 concerning the
execution of so-called module-level ASL/AML code. Namespace objects
created under a module-level If() construct were not properly/fully
entered into the namespace and could cause an interpreter fault when
accessed.
* Fixed a problem with the compilation of the GpioIo and GpioInt resource
descriptors. The _PIN field name was incorrectly defined to be an array
of 32-bit values, but the _PIN values are in fact 16 bits each. This
would cause incorrect bit width warnings when using Word (16-bit) fields
to access the descriptors.
Additionally, some minor fixes, features etc. were added.
For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.
Tested-by: tkusumi
Zach Crownover [Thu, 7 Jan 2016 22:04:34 +0000 (22:04 +0000)]
route: various small fixes
* Added w and d flag to man page list of options
* Updated output from route command to list w and c in list of options
as well
* Added documentation in man page for d option
* Removed trailing whitespace on a few lines.
Imre Vadász [Thu, 7 Jan 2016 21:35:54 +0000 (22:35 +0100)]
if_run: Sync with FreeBSD up to r270643 (from August 26 2014)
Taken-From: FreeBSD (SVN r263985 r267089 r270192 r270643)
Sascha Wildner [Thu, 7 Jan 2016 18:30:36 +0000 (19:30 +0100)]
kernel/tmpfs: Use the more common 'ap' name for vops arguments.
Matthew Dillon [Thu, 7 Jan 2016 18:13:07 +0000 (10:13 -0800)]
hammer - remove debugging kprintf
* Remove a debugging kprintf related to mkdir() errors which can trigger
under nominal conditions (attempting to create a subdirectory in a parent
which had already been rmdir'd)
zrj [Wed, 6 Jan 2016 10:10:23 +0000 (12:10 +0200)]
hangman(6): Update to augmented version from OpenBSD.
This implements usage of extra wordlists:
* kernel symbols, from current booted kernel image;
* non-default, from Elf and conformant dictonaries.
While there, free hangman(6) from the shackles of dungeon master,
since hangman now could be used as a developer tool.
Imre Vadasz [Wed, 6 Jan 2016 12:53:25 +0000 (13:53 +0100)]
if_run: Uncomment code from FreeBSD to defer run_wme_update_cb
- This should avoid a frequently occuring deadlock in if_run.
- This workaround is already removed in current FreeBSD code, where the
net80211 layer now takes care of deferred calling of the wme_update
callback into the driver.
Sascha Wildner [Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)]
kernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.
Sascha Wildner [Wed, 6 Jan 2016 10:30:42 +0000 (11:30 +0100)]
getconf(1): Sort variable/name pairs.
zrj [Wed, 6 Jan 2016 07:40:33 +0000 (09:40 +0200)]
hals_end: Fix manlint.
While there, update .Dd in colorbars(6) too.
Imre Vadász [Sun, 3 Jan 2016 16:10:52 +0000 (17:10 +0100)]
if_iwm: Fix IEEE80211_ADDR_COPY() usage.
Taken-From: FreeBSD
Imre Vadász [Sun, 3 Jan 2016 15:57:02 +0000 (16:57 +0100)]
if_iwm: Always stop LED blinking when scanning is finished
When state is still IEEE80211_S_RUN after scanning is done, enable the LED.
This matches the behaviour of if_iwn(4).
zrj [Mon, 4 Jan 2016 17:15:46 +0000 (19:15 +0200)]
piano(6): Retire. R.I.P.
Support for /dev/speaker was removed back in 2005.
zrj [Mon, 4 Jan 2016 16:57:42 +0000 (18:57 +0200)]
games: Import colorbars and hals_end from NetBSD.
This satisfies two comes in, one comes out rule.
zrj [Mon, 4 Jan 2016 16:38:57 +0000 (18:38 +0200)]
mdoc.local: Add NetBSD 7.0 for future reference.
zrj [Tue, 5 Jan 2016 13:14:37 +0000 (15:14 +0200)]
test: ,,,^..^,,,~~~~
Sascha Wildner [Tue, 5 Jan 2016 05:14:07 +0000 (06:14 +0100)]
<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.
Also adjust sysconf(3) and getconf(1) accordingly.
Sascha Wildner [Tue, 5 Jan 2016 03:35:51 +0000 (04:35 +0100)]
<unistd.h>: Comment some POSIX options.
Sepherosa Ziehau [Mon, 4 Jan 2016 14:38:12 +0000 (22:38 +0800)]
re: Only probe fixed PHY location
Obtained-from: FreeBSD
Sepherosa Ziehau [Mon, 4 Jan 2016 14:15:58 +0000 (22:15 +0800)]
re: Reduce GMII PHY read/write timeout
Obtained-from: FreeBSD
Sepherosa Ziehau [Mon, 4 Jan 2016 13:23:40 +0000 (21:23 +0800)]
re: Change CFG1 and CFG5 after flip EECMD
Obtained-from: FreeBSD
Tomohiro Kusumi [Sun, 3 Jan 2016 13:40:43 +0000 (22:40 +0900)]
sbin/hammer: Fix hammer(8) manpage
Add a sentence that explains PFS via PFS is not allowed.
Sascha Wildner [Sun, 3 Jan 2016 20:55:20 +0000 (21:55 +0100)]
nl(1): Sync with FreeBSD.
* multibyte char support
* use getline()
* treat '-' as standard input
Sascha Wildner [Sun, 3 Jan 2016 19:07:30 +0000 (20:07 +0100)]
comm(1): Sync with FreeBSD.
* multibyte char support
* fix truncation of lines at LINE_MAX
* use getline()
* make functions static
zrj [Wed, 11 Nov 2015 07:26:27 +0000 (09:26 +0200)]
usr.bin/uniq: Sync with FreeBSD
Few improvements, mainly wchar_t support.
Obtained-from: FreeBSD
Sepherosa Ziehau [Sun, 3 Jan 2016 12:12:34 +0000 (20:12 +0800)]
re: Disable ASPM
Referenced: FreeBSD
Sepherosa Ziehau [Sun, 3 Jan 2016 06:21:08 +0000 (14:21 +0800)]
re: Update Realtek PHY power management related bits
Obtained-from: FreeBSD
Sepherosa Ziehau [Sun, 3 Jan 2016 02:21:43 +0000 (10:21 +0800)]
kqueue: Move notifymsglist out of kqinfo
It is only used by socket code.
Sascha Wildner [Sat, 2 Jan 2016 14:09:00 +0000 (15:09 +0100)]
<strings.h>: Fix VKERNEL64 build.
Sascha Wildner [Sat, 2 Jan 2016 12:53:10 +0000 (13:53 +0100)]
kernel/tmpfs: Implement _PC_FILESIZEBITS.
Sascha Wildner [Sat, 2 Jan 2016 12:50:03 +0000 (13:50 +0100)]
kernel: Add flsll(). Identical to flsl().
Add FreeBSD's libkern version too, but on x86_64 this is not compiled,
because we use inline assembly.
Sascha Wildner [Sat, 2 Jan 2016 11:23:27 +0000 (12:23 +0100)]
kernel/tmpfs: Sort pathconf cases.
François Tigeot [Sat, 2 Jan 2016 08:16:25 +0000 (09:16 +0100)]
if_iwm: Make the wifi LED work with iwm(4) (2/2)
Add forgotten if_iwm_led.c to sys/conf/files
Imre Vadász [Fri, 1 Jan 2016 21:41:23 +0000 (22:41 +0100)]
if_iwm: Make the wifi LED work with iwm(4).
- While the wifi device is scanning or trying to associate, the LED
should blink now.
- When associated to a wifi network, the LED will stop blinking and stay
enabled.
Taken-From: OpenBSD
Imre Vadász [Fri, 1 Jan 2016 21:26:02 +0000 (22:26 +0100)]
if_iwm: Remove comments referring to Linux iwlwifi source filenames.
Taken-From: OpenBSD
Sascha Wildner [Fri, 1 Jan 2016 12:45:32 +0000 (13:45 +0100)]
dump.8: Remove overlooked .Pp
Sascha Wildner [Fri, 1 Jan 2016 00:07:02 +0000 (01:07 +0100)]
Split EXIT STATUS and DIAGNOSTICS sections in manual pages.
Also correct some DIAGNOSTICS -> EXIT STATUS where it described only
the exit codes.
Imre Vadász [Thu, 31 Dec 2015 22:13:12 +0000 (23:13 +0100)]
if_iwm: Just store the struct firmware pointer, like if_iwn does.
if_iwm was passing the firmware data pointer to firmware_put(9), instead
of the struct firmware pointer that was returned by firmware_get(9).
Imre Vadász [Wed, 30 Dec 2015 16:01:11 +0000 (17:01 +0100)]
if_iwm: Apply some changes from OpenBSD, if_iwm.c rev 1.39 -> 1.42
- Use m_defrag(9) instead of rolling our own version of it.
- Limit the number of dma segments used for tx to IWM_MAX_SCATTER - 2.
This avoids out-of-bound accesses on the segs array in iwm_tx().
- cleanup attach message
Taken-From: OpenBSD
Sascha Wildner [Thu, 31 Dec 2015 22:16:00 +0000 (23:16 +0100)]
Bump our copyrights to 2016. Happy new year! :)
Sascha Wildner [Thu, 31 Dec 2015 20:18:53 +0000 (21:18 +0100)]
newfs_hammer.8: Remove two unneeded .Pp macros.
Imre Vadász [Thu, 31 Dec 2015 17:21:54 +0000 (18:21 +0100)]
bus_dma.9: Fix bus_dmamap_load_mbuf_segment documentation of maxsegs arg.
The maxsegs argument of bus_dmamap_load_mbuf_segment is allowed to be
equal to the nsegments of the dma tag, i.e. doesn't have to be "less than",
but "not larger than" the nsegments.
Tomohiro Kusumi [Sat, 5 Dec 2015 12:40:23 +0000 (21:40 +0900)]
sbin/mount_hammer: Fix mount_hammer(8) manpage
Tomohiro Kusumi [Sat, 5 Dec 2015 12:40:23 +0000 (21:40 +0900)]
sbin/newfs_hammer: Fix newfs_hammer(8) manpage
Sepherosa Ziehau [Thu, 31 Dec 2015 10:18:04 +0000 (18:18 +0800)]
kqueue: Use wakeup_one() to wake up kqueue scanner
It hard to imagine an application to have multiple threads to
wait on one kqueue. However, even if this kind of application
existed, wakeup_one() would not break them (admittedly they
might suffer uneven workload distribution).
In case the old behaviour is still wanted, sysctl
kern.kq_wakeup_one can be changed to 0.
This saves us 30Kipis/s ~ 50Kipis/s in kqueue+accept test.
Sepherosa Ziehau [Thu, 31 Dec 2015 09:31:39 +0000 (17:31 +0800)]
kqueue: Reduce file/hash list token coverage
They should only cover file/hash list operations. And reduce kqueue
token coverage on termination path; hash does not need protection
there.
Imre Vadász [Tue, 29 Dec 2015 13:21:03 +0000 (14:21 +0100)]
drm/i915: Convert hw level to user level when reading backlight value.
Values written to, and then read back from the hw.backlight_level sysctl
should now match.
Sascha Wildner [Tue, 29 Dec 2015 19:27:09 +0000 (20:27 +0100)]
libc/nls: Sync str{error,signal}() messages with <sys/{errno,signal}.h>.
Reported-by: zrj <rimvydas.jasinskas@gmail.com>
zrj [Tue, 29 Dec 2015 07:26:49 +0000 (09:26 +0200)]
intro.2: Document errnos 89-93.
Tomohiro Kusumi [Tue, 29 Dec 2015 19:01:19 +0000 (04:01 +0900)]
sbin/newfs_hammer: Fix newfs_hammer(8) manpage
-L is always necessary, but two or more fs with the same -L is allowed.
Tomohiro Kusumi [Tue, 29 Dec 2015 17:39:16 +0000 (02:39 +0900)]
sbin/newfs_hammer: Fix newfs_hammer(8) manpage
newfs_hammer has calculations and upper limit for boot area,
which don't result in default 4MB, but rather likely to be 64MB.
Also this isn't used for anything just like memory log area.
Sepherosa Ziehau [Tue, 29 Dec 2015 11:04:36 +0000 (19:04 +0800)]
kqueue: Don't check list against NULL; list is never NULL.
Instead, do a quick and unlocked SLIST_EMPTY check on the list.
Michael Neumann [Tue, 29 Dec 2015 10:27:58 +0000 (11:27 +0100)]
Sync man page stat.2 with the definitions in sys/stat.h
Sepherosa Ziehau [Tue, 29 Dec 2015 10:16:37 +0000 (18:16 +0800)]
kqueue: Mark user filter MPSAFE
Sepherosa Ziehau [Tue, 29 Dec 2015 10:12:58 +0000 (18:12 +0800)]
kqueue: Remove unapplied comment
Sepherosa Ziehau [Tue, 29 Dec 2015 09:59:04 +0000 (17:59 +0800)]
socket: Use {get,rel}pooltoken in netmsg_so_notify()
Sepherosa Ziehau [Tue, 29 Dec 2015 09:16:51 +0000 (17:16 +0800)]
bridge: Mark callouts MPSAFE
Sepherosa Ziehau [Tue, 29 Dec 2015 08:01:03 +0000 (16:01 +0800)]
ig_hal: Allow enabling debug at runtime
Imre Vadász [Mon, 28 Dec 2015 13:57:18 +0000 (14:57 +0100)]
BUS_SETUP_INTR.9: Mention INTR_NOPOLL flag.
Imre Vadász [Mon, 28 Dec 2015 11:30:31 +0000 (12:30 +0100)]
psm: Remove unused struct sigio *async
Imre Vadász [Mon, 28 Dec 2015 11:08:59 +0000 (12:08 +0100)]
psm: Remove leftover PSM_HOOKAPM #if defined check
François Tigeot [Mon, 28 Dec 2015 21:41:53 +0000 (22:41 +0100)]
agp: Remove support for Sandy Bridge hardware
This GPU family is now fully handled by the drm/i915 driver.
François Tigeot [Mon, 28 Dec 2015 20:46:50 +0000 (21:46 +0100)]
drm/i915: Use generic drm_plane helper functions
* Now than drm plane helpers have been fixed, we can use the generic
drm_plane_update function
* This should fix some mouse cursor corruption and disappearance
issues reported by various testers
François Tigeot [Mon, 28 Dec 2015 20:40:43 +0000 (21:40 +0100)]
drm: Skip vblank wait for legacy cursor updates
This commit fixes an issue with the generic drm_plane_helper_update
function where the mouse cursor position was updated long after the
mouse was actually moved.
Submitted-by: Matthew Dillon <dillon@apollo.backplane.com>
Sascha Wildner [Mon, 28 Dec 2015 16:37:23 +0000 (17:37 +0100)]
kernel/acpi_cpu: Fix argument name.
Sepherosa Ziehau [Mon, 28 Dec 2015 15:17:48 +0000 (23:17 +0800)]
acpi/pstate: Allow user to ignore type 0x80 notify
Some BIOSes just send stupid _PPC updates which do not make
sense, so allow users to ignore the stupidity through tunable
and sysctl.
Sepherosa Ziehau [Mon, 28 Dec 2015 13:55:36 +0000 (21:55 +0800)]
acpi/pstate: Support type 0x80 notify
- Protect power domain states by per-power-domain serializer.
- Protect global P-state setting by the first usable power domain's
serializer.
Sascha Wildner [Mon, 28 Dec 2015 13:41:16 +0000 (14:41 +0100)]
kernel/vga: Remove wrong lwkt_reltoken(). It's not taken at this point.
Sepherosa Ziehau [Mon, 28 Dec 2015 13:00:38 +0000 (21:00 +0800)]
acpi/pstate: Factor out acpi_pst_eval_{ppc,pdl}()
They will be used to handle type 0x80 notify.
Matthew Dillon [Mon, 28 Dec 2015 03:18:54 +0000 (19:18 -0800)]
test - refactor Makefile
* Refactor the Makefile, also generate binaries to /tmp insetead of to the
current directory.
Matthew Dillon [Mon, 28 Dec 2015 03:14:47 +0000 (19:14 -0800)]
test - Add testvblank program
* Test program opens /dev/dri/card0 and uses DRM ioctls to test drm's
vblank wait code.
Matthew Dillon [Mon, 28 Dec 2015 03:12:11 +0000 (19:12 -0800)]
test - cleanup build
* Get rid of -Wall warnings, cleanup Makefile