Sepherosa Ziehau [Sat, 25 Jan 2014 07:13:09 +0000 (15:13 +0800)]
acpi/cstate: If FADT is used, take C2_MP_SUPPORTED into consideration
Sepherosa Ziehau [Sat, 25 Jan 2014 06:59:45 +0000 (14:59 +0800)]
mwait: Allow treating interrupts as break-event for MWAIT
Even when interrupts disabled by setting ECX[0] to 1. Needed for
"native" C-state support.
Sepherosa Ziehau [Fri, 24 Jan 2014 16:02:15 +0000 (00:02 +0800)]
acpi/cstate: BM_STS only needs check before entering C3+ state
Sepherosa Ziehau [Fri, 24 Jan 2014 14:48:58 +0000 (22:48 +0800)]
acpi/cstate: Free previously allocated resource during re-probing
Sepherosa Ziehau [Thu, 23 Jan 2014 13:04:33 +0000 (21:04 +0800)]
acpi/pstate: Utilize CPUID_TO_{FAMILY,MODEL} macros
Joris Giovannangeli [Sat, 25 Jan 2014 00:04:04 +0000 (01:04 +0100)]
/sbin/swapon : adds a -i flag which prompts for user confirmation.
Markus Pfeiffer [Fri, 24 Jan 2014 18:05:10 +0000 (18:05 +0000)]
nrelease: Correct help message when cdrtools is not installed
Sascha Wildner [Fri, 24 Jan 2014 17:02:59 +0000 (18:02 +0100)]
kernel/drm: Add some missing opt_ktr.h in Makefiles.
François Tigeot [Thu, 23 Jan 2014 10:59:11 +0000 (11:59 +0100)]
drm: Fix DRM_CURRENTPID macro
Spotted-by: joris
Sascha Wildner [Thu, 23 Jan 2014 21:56:29 +0000 (22:56 +0100)]
Stop using libcompat in our tree.
The only thing that actually needed it was fortune(6). Move it to using
libc's regex(3) functions (taken from FreeBSD).
Markus Pfeiffer [Sun, 19 Jan 2014 16:17:04 +0000 (16:17 +0000)]
kern/usb4bsd: update usb_dev.c kqfilter code
Markus Pfeiffer [Sat, 18 Jan 2014 23:11:22 +0000 (23:11 +0000)]
usb4bsd: fix if_axe lock issue
For some reason if_axe was acquiring the sc_lock twice leading to
a panic.
Markus Pfeiffer [Fri, 17 Jan 2014 19:09:46 +0000 (19:09 +0000)]
usb4bsd: sync if_axe
Markus Pfeiffer [Thu, 16 Jan 2014 19:36:48 +0000 (19:36 +0000)]
usb4bsd sync ukbd
Markus Pfeiffer [Tue, 14 Jan 2014 23:40:57 +0000 (23:40 +0000)]
usb4bsd: remove debug kprintfs
Markus Pfeiffer [Tue, 14 Jan 2014 22:02:40 +0000 (22:02 +0000)]
devfs: add passing of file pointer through to dev_dclose
Markus Pfeiffer [Tue, 14 Jan 2014 22:02:12 +0000 (22:02 +0000)]
usb4bsd: remove merge artifact
Markus Pfeiffer [Tue, 14 Jan 2014 19:39:34 +0000 (19:39 +0000)]
Apply patches to enable get/set_cdevpriv
Johannes Hofmann [Wed, 18 Dec 2013 22:06:22 +0000 (23:06 +0100)]
add file pointer to dev_d*() functions
Johannes Hofmann [Wed, 18 Dec 2013 22:05:42 +0000 (23:05 +0100)]
add devfs_*_cdevpriv() functions
Sascha Wildner [Tue, 21 Jan 2014 21:09:03 +0000 (22:09 +0100)]
bsd-family-tree: Sync with FreeBSD (for FreeBSD 10.0).
Sascha Wildner [Tue, 21 Jan 2014 20:15:07 +0000 (21:15 +0100)]
acpidump.8: acpidb is acpiexec now but no manpage yet. Comment out .Xr.
Sepherosa Ziehau [Tue, 21 Jan 2014 13:06:58 +0000 (21:06 +0800)]
acpi/cstate: acpi_cpu_cst -> acpi_cst for driver glue variables
Sepherosa Ziehau [Tue, 21 Jan 2014 13:05:30 +0000 (21:05 +0800)]
acpi/cstate: acpi_cpu_cst -> acpi_cst for device methods
Sepherosa Ziehau [Tue, 21 Jan 2014 13:02:51 +0000 (21:02 +0800)]
acpi/cstate: Restore cx_lowest_req, if no suitable intr cputimer
Sepherosa Ziehau [Tue, 21 Jan 2014 12:54:54 +0000 (20:54 +0800)]
acpi/acad: Put unknown notify print under bootverbose
Sepherosa Ziehau [Tue, 21 Jan 2014 12:44:30 +0000 (20:44 +0800)]
acpi/acad: CST changed may service as notification for acline changes
François Tigeot [Mon, 20 Jan 2014 19:42:34 +0000 (20:42 +0100)]
Bump __DragonFly_version after drm/i915 update
xf86-video-intel-2.21.15 now runs properly on DragonFly
Sepherosa Ziehau [Mon, 20 Jan 2014 13:40:39 +0000 (21:40 +0800)]
acpi/cstate: Remove unused macros
Sepherosa Ziehau [Mon, 20 Jan 2014 13:36:13 +0000 (21:36 +0800)]
acpi/cstate: acpi_cpu_softc -> acpi_cst_softc
Sepherosa Ziehau [Mon, 20 Jan 2014 04:56:00 +0000 (12:56 +0800)]
acpi/cstate: Remove useless device methods
Sascha Wildner [Mon, 13 Jan 2014 08:00:26 +0000 (09:00 +0100)]
kernel/acpi: Silence exception warning when a \\_Sx_ object can't be found.
Submitted-by: sephe
Sascha Wildner [Thu, 2 Jan 2014 13:58:24 +0000 (14:58 +0100)]
Remove previous ACPICA.
Sascha Wildner [Thu, 2 Jan 2014 00:45:26 +0000 (01:45 +0100)]
acpi: Fix building the kernel.
Sascha Wildner [Fri, 3 Jan 2014 00:41:09 +0000 (01:41 +0100)]
acpi: Fix building userland.
As of this commit we're losing acpidb(8) which gets replaced by
acpiexec(8).
Additionally, we're getting:
acpibin(8)
acpiexec(8)
acpihelp(8)
acpinames(8)
acpisrc(8)
acpixtract(8)
Manual pages for the new utilities have yet to be written. Also
acpidump.8 and iasl.8 need to be updated, I guess.
Sascha Wildner [Wed, 1 Jan 2014 13:50:08 +0000 (14:50 +0100)]
sys/acpi: Bring in Intel's acpica-unix2-
20131218 verbatim.
On acpica.org, -unix is the version with an Intel license and
-unix2 is the BSD/GPL dual licensed version. I didn't want to
call the directory acpica-unix2 instead of our acpica-unix so
I settled on simply acpica.
Further updates would be done in-place in that directory.
François Tigeot [Sun, 19 Jan 2014 20:08:23 +0000 (21:08 +0100)]
drm: Reduce differences with Linux 3.8
François Tigeot [Sun, 19 Jan 2014 19:38:42 +0000 (20:38 +0100)]
asm/uaccess.h: Add get_user() and put_user()
Obtained-from: linux/uaccess.h from FreeBSD's OFED stack
François Tigeot [Sun, 19 Jan 2014 19:36:00 +0000 (20:36 +0100)]
drm: Import asm/uaccess.h from FreeBSD's OFED stack
Markus Pfeiffer [Sat, 18 Jan 2014 22:14:46 +0000 (22:14 +0000)]
manpages: Update documentation of lock(9) to include lockowned
François Tigeot [Sun, 19 Jan 2014 13:49:47 +0000 (14:49 +0100)]
drm: Remove DRM_MSLEEP()
François Tigeot [Sun, 19 Jan 2014 14:41:37 +0000 (15:41 +0100)]
drm/radeon: Replace DRM_MSLEEP() by msleep()
François Tigeot [Sun, 19 Jan 2014 13:20:44 +0000 (14:20 +0100)]
drm: Add linux/delay.h, implement msleep()
Sepherosa Ziehau [Sun, 19 Jan 2014 14:24:11 +0000 (22:24 +0800)]
acpi/cstate: Break long lines; minor style changes
Sepherosa Ziehau [Sun, 19 Jan 2014 14:06:51 +0000 (22:06 +0800)]
acpi/cstate: Dispatch Cx re-probing to the target CPU
And add flag to indicate that the Cx probing is in progress, so
if idle is scheduled before the probing is done, we could safely
fallback to C1.
Sepherosa Ziehau [Sun, 19 Jan 2014 08:54:34 +0000 (16:54 +0800)]
acpi/cstate: Set cx_lowest on the target CPU
Sepherosa Ziehau [Sun, 19 Jan 2014 07:45:00 +0000 (15:45 +0800)]
acpi/cstate: Fix global Cx count setup
Sepherosa Ziehau [Sun, 19 Jan 2014 06:57:13 +0000 (14:57 +0800)]
acpi/cstate: Use u_long as stats type
Sepherosa Ziehau [Sun, 19 Jan 2014 06:41:18 +0000 (14:41 +0800)]
acpi/cstate: Fix non-C3 setting
It should take lowest Cx setting into consideration.
Sepherosa Ziehau [Sat, 18 Jan 2014 13:25:37 +0000 (21:25 +0800)]
acpi/cstate: Set non-C3 state during generic Cx probing
Remove useless non-C3 state index setup in cx_list, which should
only reformat sysctl string.
Sascha Wildner [Sat, 18 Jan 2014 20:43:52 +0000 (21:43 +0100)]
Only run the 670.pkgsrcaudit periodic script if pkgsrc is found.
The script will eventually go away once we move away from pkgsrc
in PATHs, manpages and everywhere but I don't want to do that right
now, hence this check for now. This silences the error this script
was giving on dports systems.
Reported-by: pavalos
François Tigeot [Sat, 18 Jan 2014 19:46:31 +0000 (20:46 +0100)]
linux/kernel.h: Implement swap()
François Tigeot [Sat, 18 Jan 2014 19:39:13 +0000 (20:39 +0100)]
linux/kernel.h: printf => kprintf
François Tigeot [Sat, 18 Jan 2014 13:04:23 +0000 (14:04 +0100)]
drm: Import linux/err.h from FreeBSD's OFED stack
Sepherosa Ziehau [Sat, 18 Jan 2014 13:19:32 +0000 (21:19 +0800)]
acpi/cstate: Minor style cleanup
Sepherosa Ziehau [Sat, 18 Jan 2014 12:05:07 +0000 (20:05 +0800)]
acpi/cstate: Use serializer to protect _CST notfication and sysctls
Sepherosa Ziehau [Fri, 17 Jan 2014 13:44:51 +0000 (21:44 +0800)]
atomic/i386: Update intr_cond comment
Sepherosa Ziehau [Fri, 17 Jan 2014 13:31:29 +0000 (21:31 +0800)]
serializer.9: Mention LWKT_SERIALIZE_INITIALIZER
François Tigeot [Sat, 18 Jan 2014 08:35:51 +0000 (09:35 +0100)]
drm: Sync a few headers with Linux 3.8
François Tigeot [Sat, 18 Jan 2014 07:52:17 +0000 (08:52 +0100)]
drm: Rename device to dev in struct drm_device
Reducing differences with Linux
Sascha Wildner [Sat, 18 Jan 2014 06:48:44 +0000 (07:48 +0100)]
<sys/systm.h>: Mark various function parameters as __nonnull().
I guess we have KASSERTs too for some of these (tsleep(), I'm sure), but
it is always nice to catch issues at build time already.
Sascha Wildner [Sat, 18 Jan 2014 06:48:06 +0000 (07:48 +0100)]
kernel/ppc: Fix a tsleep with NULL ident.
Sascha Wildner [Fri, 17 Jan 2014 23:05:52 +0000 (00:05 +0100)]
kernel: Make eventhandler_{register,find_list}()'s name argument const.
Sascha Wildner [Fri, 17 Jan 2014 22:21:59 +0000 (23:21 +0100)]
altq.9: Fix some prototypes (altq_pkgattr -> altq_pktattr).
Sascha Wildner [Fri, 17 Jan 2014 07:41:23 +0000 (08:41 +0100)]
libc/sysvipc: Rename sysvipc_semctl() to sysvipc___semctl().
This function has the non-varargs interface of __semctl() and not
the vargargs interface of semctl().
While here, make it take a union semun pointer, like __semctl().
Sascha Wildner [Fri, 17 Jan 2014 07:19:07 +0000 (08:19 +0100)]
kernel/dm_target_striped: Plug a memory leak.
François Tigeot [Thu, 16 Jan 2014 20:03:07 +0000 (21:03 +0100)]
drm: Fix a merge issue in drm_fops.c
Pointed-out-by: swildner
Sepherosa Ziehau [Thu, 16 Jan 2014 12:19:13 +0000 (20:19 +0800)]
acpi/cstate: Remove unused fields in softc
apic_id is not useful in cstate driver; change it to cpuid.
Sascha Wildner [Thu, 16 Jan 2014 06:11:11 +0000 (07:11 +0100)]
hammer2(8): Fix wrong sizeof.
Sepherosa Ziehau [Wed, 15 Jan 2014 14:17:31 +0000 (22:17 +0800)]
spinlock.9: Update
- Spinlock prevent FAST interrupt from running and prevent IPIQ from
being processed.
- FAST interrupt and IPI could hold spinlock.
Sepherosa Ziehau [Wed, 15 Jan 2014 14:09:49 +0000 (22:09 +0800)]
serializer.9: Update
Sepherosa Ziehau [Wed, 15 Jan 2014 13:53:14 +0000 (21:53 +0800)]
atomic: Update intr_cond comment according to the recent changes
Sascha Wildner [Wed, 15 Jan 2014 10:19:20 +0000 (11:19 +0100)]
Remove a bunch of unnecessary semicolons.
Sascha Wildner [Wed, 15 Jan 2014 08:36:43 +0000 (09:36 +0100)]
Update the pciconf(8) database.
January 13, 2014 snapshot from http://pciids.sourceforge.net/
Sepherosa Ziehau [Tue, 14 Jan 2014 13:22:58 +0000 (21:22 +0800)]
x86_64: Detect CPU specific C-state through CPUID(5)
The information is exposed through machdep.mwait sysctl nodes
This could be used to:
- Validate cpu_mwait_halt
- Validate cpu_mwait_spin
- Prepare to turn on C1/C2/C3 native support in ACPI _OSC evalution
Sascha Wildner [Tue, 14 Jan 2014 13:11:36 +0000 (14:11 +0100)]
libmd: Fix some manual page prototypes.
John Marino [Tue, 14 Jan 2014 12:56:29 +0000 (13:56 +0100)]
libc: Add initial sysvipc Symbol map (untested)
Sascha Wildner [Tue, 14 Jan 2014 07:19:43 +0000 (08:19 +0100)]
<sys/param.h>: Fix typo in a comment.
John Marino [Mon, 13 Jan 2014 13:23:54 +0000 (14:23 +0100)]
Build: Bump version to 300701 for smb.h relocation
Now that video driver version checks have been updated on DPorts master
branch, __DragonFly_version can be bumped without breaking them.
Sascha Wildner [Mon, 13 Jan 2014 06:08:46 +0000 (07:08 +0100)]
ps.1: Remove info about the no longer existing 'M' process state.
Sascha Wildner [Mon, 13 Jan 2014 05:57:32 +0000 (06:57 +0100)]
Clean up some things in /usr/src/sys/conf.
* Remove 'defines'. It belonged to an old target (links) which is no
longer used.
* Remove the manual revision number adjustments for minor releases
(x.y.z). It can be seen in uname -v output too, so it's redundant.
Sepherosa Ziehau [Sun, 12 Jan 2014 12:28:53 +0000 (20:28 +0800)]
platform/acpi: Update according to ACPI spec 5.0
Sepherosa Ziehau [Sun, 12 Jan 2014 11:48:19 +0000 (19:48 +0800)]
cpuinfo: "Standard Extended Features" -> "Structured Extended Features"
Sepherosa Ziehau [Sun, 12 Jan 2014 11:42:55 +0000 (19:42 +0800)]
cpu_idle_hlt: Remove unapplied comment
The comment of possible values is in cpu_idle()
Sepherosa Ziehau [Sun, 12 Jan 2014 10:45:22 +0000 (18:45 +0800)]
acpi/cstate: Make sure we could handle C-state deeper than C3
Sepherosa Ziehau [Sun, 12 Jan 2014 08:54:45 +0000 (16:54 +0800)]
acpi/cstate: Allow request deeper C-state, even it has no _CST entry
On laptop, BIOS may unveil more C-states if power cable is unplugged,
which means if you want to use these deeper C-states you will have to
re-adjust C-state sysctls. This commit automates this kind of
"re-adjust". Read-only sysctl nodes hw.acpi.cpuX.cx_lowest_use and
hw.acpi.cpu.cx_lowest_use are introduced to show the current deepest
C-state could be used.
Sascha Wildner [Sat, 11 Jan 2014 19:09:45 +0000 (20:09 +0100)]
exec.3/sbuf.9: Fix some prototypes.
Sascha Wildner [Sat, 11 Jan 2014 17:46:42 +0000 (18:46 +0100)]
Remove redefinition warning in netgraph7.
Sascha Wildner [Sat, 11 Jan 2014 07:04:56 +0000 (08:04 +0100)]
kernel/smbfs: Remove dead code.
Sascha Wildner [Sat, 11 Jan 2014 06:57:22 +0000 (07:57 +0100)]
rndtest(4): Sync with FreeBSD (cosmetics), build as a module.
Sascha Wildner [Fri, 10 Jan 2014 20:45:03 +0000 (21:45 +0100)]
include/Makefile: Sort LSUBDIRS a bit better.
François Tigeot [Fri, 10 Jan 2014 20:24:56 +0000 (21:24 +0100)]
sysctl: Partial sync with FreeBSD
* Revisit locking to use the same locks and macro names as FreeBSD
* Add sysctl_remove_name()
* Add sysctl_rename_oid()
Matthew Dillon [Fri, 10 Jan 2014 20:09:03 +0000 (12:09 -0800)]
kernel - Revert version to 300700
* Revert version to 300700 until swildner/marino can figure out the
port build issues.
Matthew Dillon [Fri, 10 Jan 2014 20:03:43 +0000 (12:03 -0800)]
kernel - u4b - Implement doorbell
* Implement the doorbell properly.
* Use the doorbell to clear the previous transfer when reusing a transfer.
This is a horribly inefficient hack but it's better than blowing up the
controller
(This is in addition to the xfer freeing fifo hack)
* We also seem to need to ring the doorbell when queueing transfers. This
should not be necessary.
* Enable ASP. This allows qTD bursts, making high speed busses more
efficient.
* NOTE: There are still problems with umass. With some USB sticks,
writing to the stick causes the cpu to stall for very long
periods of time. It is shown as 'interrupt' overhead but insofar
as I can tell it's actually the controller stalling the memory
bus for reasons unknown.
This does not happen with e.g. a SATA SSD connected through a USB
adapter.
Matthew Dillon [Fri, 10 Jan 2014 20:02:02 +0000 (12:02 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 10 Jan 2014 20:01:37 +0000 (12:01 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
François Tigeot [Thu, 9 Jan 2014 20:37:14 +0000 (21:37 +0100)]
drm/i915: Remove a get/rel mplock sequence
This code was a FreeBSD addition, not present in the original Linux version
Sascha Wildner [Fri, 10 Jan 2014 19:15:39 +0000 (20:15 +0100)]
Bring back smb.h in /usr/include
It was moved recently. Since it was public and some ports want it,
bring it back in the corresponding location in /usr/include.
John Marino [Fri, 10 Jan 2014 00:06:03 +0000 (01:06 +0100)]
iconv: Sync#2 - Support ICONV_{GET,SET}_ILSEQ_INVALID
Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl. GNU iconv returns EILSEQ
when there is an invalid character in the output codeset while it is
valid in the input. However, POSIX requires iconv() to perform an
implementation-defined conversion on the character. So, Citrus iconv
converts such a character to a special character which means it is
invalid in the output codeset.
This is not a problem in most cases but some software like libxml2
depends on GNU's behavior to determine if a character is output as-is
or another form such as a character entity (&#NNN;).
Taken verbatim from:
FreeBSD SVN 258537 (24 NOV 2013)
John Marino [Thu, 9 Jan 2014 23:34:37 +0000 (00:34 +0100)]
iconv: Sync#1 with FreeBSD (minor)
This fixes a couple of minor bugs and removes WITH_LIBICONV_COMPAT
garbage, as seen in:
FreeBSD SVN 256833 (21 OCT 2013)
FreeBSD SVN 257583 (03 NOV 2013)
FreeBSD SVN 257858 (08 NOV 2013)