dragonfly.git
10 years agoBring back smb.h in /usr/include
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.

10 years agoiconv: Sync#2 - Support ICONV_{GET,SET}_ILSEQ_INVALID
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)

10 years agoiconv: Sync#1 with FreeBSD (minor)
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)

10 years agonrelease: Stop putting net/isc-dhcp42-client on the ISOs/IMGs.
Sascha Wildner [Fri, 10 Jan 2014 18:44:34 +0000 (19:44 +0100)]
nrelease: Stop putting net/isc-dhcp42-client on the ISOs/IMGs.

I don't remember how it got into the list, given that we have dhclient(8).
I assume building the server didn't work without having built the client
at some point in time (maybe in pkgsrc times).

Noticed-by: sephe
10 years agox86_64: Mark LAPIC timer as powersaving capable intr cputimer
Sepherosa Ziehau [Fri, 10 Jan 2014 13:35:16 +0000 (21:35 +0800)]
x86_64: Mark LAPIC timer as powersaving capable intr cputimer

If CPUID(0x6) has ARAT, then LAPIC timer will not stop in deep C-state.

Thank alexh@ for the necessary information.

10 years agocputimer/intr: Restart only if the intr cputimer is changed
Sepherosa Ziehau [Fri, 10 Jan 2014 13:34:11 +0000 (21:34 +0800)]
cputimer/intr: Restart only if the intr cputimer is changed

10 years agox86_64: Extract "Thermal and Power management Feature"
Sepherosa Ziehau [Fri, 10 Jan 2014 13:13:26 +0000 (21:13 +0800)]
x86_64: Extract "Thermal and Power management Feature"

This feature will be used to detect whether LAPIC timer could be enabled
for deep C-states.

10 years agoatomic: Adjust style a little bit
Sepherosa Ziehau [Fri, 10 Jan 2014 12:39:49 +0000 (20:39 +0800)]
atomic: Adjust style a little bit

10 years agolibc/fork: Fix __fork() definition.
Sascha Wildner [Fri, 10 Jan 2014 07:29:12 +0000 (08:29 +0100)]
libc/fork: Fix __fork() definition.

10 years agolibc/getosreldate: Include <unistd.h> for prototype.
Sascha Wildner [Fri, 10 Jan 2014 07:12:14 +0000 (08:12 +0100)]
libc/getosreldate: Include <unistd.h> for prototype.

10 years agogetosreldate.3: Update a bit (fix header for prototype, RETURN VALUES).
Sascha Wildner [Fri, 10 Jan 2014 07:11:50 +0000 (08:11 +0100)]
getosreldate.3: Update a bit (fix header for prototype, RETURN VALUES).

10 years agokernel - Fix bug in last commit to sys_generic.c
Matthew Dillon [Fri, 10 Jan 2014 03:33:20 +0000 (19:33 -0800)]
kernel - Fix bug in last commit to sys_generic.c

* memp can be uninitialized if the goto done occurs.

10 years agocyapa - Add false 3-finger button and add emulation for all three buttons
Matthew Dillon [Fri, 10 Jan 2014 02:01:29 +0000 (18:01 -0800)]
cyapa - Add false 3-finger button and add emulation for all three buttons

* 3-finger sequences can now be used to emulate all three buttons
  rather than just the left button.

  When you place three fingers down, the one you place last and/or
  the one you tap determines the button.  If the left finger is last
  then the LEFT mouse button is emulation.  Middle finger (of the
  three) emulates the MIDDLE mouse button, and the right finger
  emulates the right mouse button.  Only one button can be emulated
  at a time.

* Add detection for false 3-finger buttons.  When you place all three
  fingers down at the same time within 1/25 of a second this is detected
  and will emulate NO fingers.  You can then simply tap the finger you
  want after moving the mouse pointer to where you want.

  (In addition to the normal one-finger or two-finger mousing, this also
  allows you to mouse with three fingers).

* WARNING!  These trackpads have a limitation when three or more
  fingers are down.  This makes emulating a 4-finger or 5-finger
  'claw' (for button-4 or button-5) very difficult so we currently
  do not support that.

  If three or more fingers are placed on the pad in a horizontal line
  (all Y coordinates are the same), the pad will get confused after
  a few seconds.  It will recalibrate and de-confuse itself if you
  life your hand off the pad for a few seconds.

  The solution is when using 3-finger sequences to place your fingers
  on a SLIGHT diagonal so their Y coordinates are slightly different.
  This will yield much more reliable operation of the trackpadd's
  finger detection function.

10 years agocyapa - Introduce better three-finger button emulation
Matthew Dillon [Thu, 9 Jan 2014 23:06:39 +0000 (15:06 -0800)]
cyapa - Introduce better three-finger button emulation

* Change the three-finger button emulation such that the third finger that
  you use to tap will emulate the LEFT, MIDDLE, or RIGHT buttons depending
  on its X position relative to the other two fingers that are being held
  down.

  e.g. if you arrange fingers left-to-right A, B, C, and you hold B and C
  on the pad and tap A, that's a LEFT button.  If you hold A and C and
  tap B, that's a middle button, and if you hold A and B and tap C, that's
  a right button.

* This methodology allows all three buttons to be emulated cleanly without
  having to depress the trackpad's physical button.

* Document all jestures.

10 years agoOops, fix typo in man4/Makefile.
Sascha Wildner [Thu, 9 Jan 2014 19:02:25 +0000 (20:02 +0100)]
Oops, fix typo in man4/Makefile.

10 years agoAdd a little ichiic(4) manual page.
Sascha Wildner [Thu, 9 Jan 2014 19:00:50 +0000 (20:00 +0100)]
Add a little ichiic(4) manual page.

10 years agobuild - remove uapi/linux.h for now
Matthew Dillon [Thu, 9 Jan 2014 17:37:07 +0000 (09:37 -0800)]
build - remove uapi/linux.h for now

* Remove the file from sys/contrib until we can figure out licensing
  issues.

10 years agokernel - Add another prototype skeleton to subr_input.c
Matthew Dillon [Thu, 9 Jan 2014 17:35:24 +0000 (09:35 -0800)]
kernel - Add another prototype skeleton to subr_input.c

* Add inputev_ioctl() (inactive file)

* Minor linux-compat adjustments (inactive file)

10 years agohammer2 - minor cleanups
Matthew Dillon [Thu, 9 Jan 2014 17:34:26 +0000 (09:34 -0800)]
hammer2 - minor cleanups

* Minor cleanups

10 years agoserialize: Rework adaptive enter
Sepherosa Ziehau [Fri, 3 Jan 2014 13:22:12 +0000 (21:22 +0800)]
serialize: Rework adaptive enter

- Don't increase wait counter before the spinning phrase; this avoids
  unnecessary wakeup() calls on other CPU
- Rework the spinning phrase according to our spinlock contest processing

Tested on 8 HT (i7-3770) box, using kq_accept_server/kq_connect_client:
- 4/4 TX/RX rings device (BCM5719, using MSI-X), slight improvement.
- 8/8 TX/RX rings device (Intel 82580, using MSI-X), slight improvement.
- 1/2 TX/RX rings device (Intel 82599, using MSI), slight improvement.

10 years agoinstaller: Fix recently introduced format / argument breakage.
Sascha Wildner [Thu, 9 Jan 2014 08:33:39 +0000 (09:33 +0100)]
installer: Fix recently introduced format / argument breakage.

It's __printflike(1, 3) but I treated it like __printflike(1, 2) in
9462167aa18776bf92c161a3c65740189ffe8912.

Reported-by: Joe White <hybris246@gmail.com>
10 years agocyapa - cleanup, bug fixes
Matthew Dillon [Thu, 9 Jan 2014 07:25:18 +0000 (23:25 -0800)]
cyapa - cleanup, bug fixes

* Document the xorg.conf config.

* Fix some button state change issues that could lead to false button
  handling when the slider is active.

* Increase the distance that must be travelled before locking to the
  left button on finger movement for button presses.

* Add experimental button-4 and button-5 (4-finger/5-finger) support,
  but at the moment it isn't playing nice with X.

10 years agocyapa - Add Intellimouse support (mousewheel) - right side slider
Matthew Dillon [Thu, 9 Jan 2014 05:01:43 +0000 (21:01 -0800)]
cyapa - Add Intellimouse support (mousewheel) - right side slider

* Adds emulation of a mouse wheel.  The driver is still ps/2 compatible
  but if you want a mousewheel specify the "imps/2" protocol.

    Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "imps/2"
    #       Option      "Protocol" "ps/2"
    Option      "Device" "/dev/cyapa0-67"
    EndSection

* The mousewheel is emulated by touching the rightmost border of the
  trackpad with a single finger and sliding your finger up or down.

* Any button push with two fingers down will now ALWAYS emulate the
  left mouse button, even if you haven't moved the mouse.

* FEATURE SUMMARY:

  - Supports right-side slider if "imps/2" protocol is used.

  - Emulates middle and right buttons if you push the trackpad button
    from the left, middle, or right side of the pad with one finger.

  - Trackpad button is always the 'left' button if you press it with
    two fingers.

  - You can also get the 'left' button with three fingers (try shifting
    the mouse around with two fingers and then tap a third finger), without
    actually articulating the trackpad button.  This is VERY convenient.

  - Has jitter supression.

  - True tracking for X and Y.  Within reason (X will drop deltas despite
    our best efforts), shifting your finger around the pad will not lose
    deltas, meaning that you can shift around and when you return your finger
    to where you started, the mouse should be where it started too.

  - Multi-finger delta handling.  This is not reported to X, but the driver
    tracks which finger touched first and delta tracking will be based on
    that finger.  If you lift that finger up, the next finger will take
    over and the driver is coded to not improperly 'jump' the mouse due to
    where the next finger is relative to the first.

    This means that spurious fingers won't mess up your mouse.  Remember
    however that three or more fingers emulates the left button.

10 years agopcm.4: Clean up .Nm and MLINKS situation.
Sascha Wildner [Thu, 9 Jan 2014 04:09:19 +0000 (05:09 +0100)]
pcm.4: Clean up .Nm and MLINKS situation.

There is neither a "snd" kernel option nor a "snd.ko" module, so remove
"snd" from both .Nm and MLINKS.

While here, document that the corresponding module for the "pcm" kernel
option is "sound.ko".

10 years agoRemove <bus/smbus/smb.h> via 'make upgrade'.
Sascha Wildner [Thu, 9 Jan 2014 04:01:39 +0000 (05:01 +0100)]
Remove <bus/smbus/smb.h> via 'make upgrade'.

10 years agocyapa - Adjust button and multi-touch handling a bit
Matthew Dillon [Thu, 9 Jan 2014 03:22:00 +0000 (19:22 -0800)]
cyapa - Adjust button and multi-touch handling a bit

* If you finger-move more than 16 pixels, the button press will always
  be registered as a LEFT button press.

  This makes it much easier to move around the pad and hit GUI buttons, move
  windows around, etc.

* Three fingers simulates the left button without actually having to hit it.
  (it's too easy to accidently have two fingers down so we don't simulate
  the left button with two fingers).  This makes it even easier to move
  windows around and hit GUI buttons.

* If you just hit the button without a finger-move, the button press will
  be LEFT, MIDDLE, or RIGHT depending on where you are on the pad, as before.

* Track identifiers when multiple fingers are down.  The trackpad can track
  up to 5 fingers.  Use the identifier tracking to avoid jumping the
  coordinates to a different finger (which would cause the mouse to jump).

  This results in much easier mouse movement.

10 years agocyapa - Add 1-pixel hystersis
Matthew Dillon [Thu, 9 Jan 2014 01:18:25 +0000 (17:18 -0800)]
cyapa - Add 1-pixel hystersis

* Add a little hystersis to fix +1/-1 jitter.  This makes (especially)
  shift-moving windows much pleasanter.

10 years agokernel - Hack fixes for EHCI issues in U4B
Matthew Dillon [Wed, 8 Jan 2014 23:31:00 +0000 (15:31 -0800)]
kernel - Hack fixes for EHCI issues in U4B

* These changes fix several issues with the U4B EHCI.  Insertion and Removal
  events through hubs no longer crash the controller and/or the machine.
  And heavy bulk traffic no longer crashes the controller or has weird
  failures.  Probing works more reliably as well.

* The main problem is the U4B design for QH/TD descriptors.  It allocates
  and frees them with the xfer.  For the EHCI controller it rips out the
  QH's from the chain and doesn't do the right interactions with the
  controller to ensure that the controller is not still iterating through
  the chain.

  It is possible for the controller to wind up iterating through a long
  chain of removed (finished or timed-out) QH's.  If any of them are
  kfree()'d or free/reallocated/reused before their time, BOOM!  The
  controller can chain right through into random memory and blow up.

* The first hack is to delay kfree()ing the xfer rollup buffer.  I just
  threw in a 256-slot delay.  I'm not even doing it right (it isn't time-based
  or doorbell-based).  Note that linux uses the doorbell-based method,
  where the structures are left intact until the next doorbell interrupt.

* The second hack is to issue doorbells (EHCI_CMD_IAAD) after every new
  transfer is queued and after each transfer is removed.  The doorbell is
  PARTICULARLY important after a removal, because the controller can
  wind up sitting on a removed QH indefinitely otherwise.

  Removed chains can cause the controller to miss newly added chains, thus
  the doorbell is needed for that reason as well.

  Also reorder the cpu flushes a little when coding the above.

* Add numerous new structural fields and assertions to ensure that the
  EHCI code doesn't try to remove requests from HW that were never queued
  to HW.  The U4B API's are *VERY* loose in this regard so I added a
  double check.

* DragonFly: The ugen*.* devices need a dev d_open and d_close routine.
  Our default d_open/d_close is not the same as FreeBSD's.

* Fix a major bug in usb_open() where the 'cpd' structure can get lost
  if multiple open()'s occur on the same ugen device.

  Allow multiple opens as long as the permissions are the same.  This
  is really a hack to fix an issue where 'usbconfig list' opens ugen0.1
  twice (i.e. has two open descriptors on the same device).

  Also properly NULL-out dev->si_drv2 on (last) close.

* Replace two cv_signal/cv_wait calls with wakeup/lksleep, and place a
  timeout on the lksleep loop because the two places in question have
  a SMP race which the locks don't handle.  Basically the callback is
  made BEFORE all the conditions potentially preventing an xfer from
  being flagged as completed are met, so the cv_signal() was waking up
  the waiter potentially before its time (and the lock is not held through
  the whole thing so it doesn't interlock the race).

* In usbd_req_get_desc() reload the req fresh on each loop.

* In usbd_req_get_desc() increase the timeout from 0.5 seconds to 1 second.

10 years agoTeach GCC about our strftime()'s non-standard %+ conversion specifier.
Sascha Wildner [Wed, 8 Jan 2014 20:57:22 +0000 (21:57 +0100)]
Teach GCC about our strftime()'s non-standard %+ conversion specifier.

This silences warnings which appear when using -Wformat on functions
which have the "strftime" attribute and where %+ is used.

10 years agokernel/acpi_fujitsu: Sync with FreeBSD (adds P8010 support).
Sascha Wildner [Wed, 8 Jan 2014 02:56:27 +0000 (03:56 +0100)]
kernel/acpi_fujitsu: Sync with FreeBSD (adds P8010 support).

10 years agoDocument usb4bsd build instructions for 32 bit users, too.
Sascha Wildner [Wed, 8 Jan 2014 01:18:06 +0000 (02:18 +0100)]
Document usb4bsd build instructions for 32 bit users, too.

10 years agobuild - Add dev/smbus to kernel module build
Matthew Dillon [Tue, 7 Jan 2014 23:26:15 +0000 (15:26 -0800)]
build - Add dev/smbus to kernel module build

* Add dev/smbus to the kernel module build, it required some Makefile
  adjustments in platform/pc*

10 years agoRe-add the cam rescan yet again. I shouldn't delete this every time I merge.
Markus Pfeiffer [Tue, 7 Jan 2014 22:59:13 +0000 (22:59 +0000)]
Re-add the cam rescan yet again. I shouldn't delete this every time I merge.

10 years agoSync umass driver with FreeBSD
Markus Pfeiffer [Tue, 7 Jan 2014 20:22:24 +0000 (20:22 +0000)]
Sync umass driver with FreeBSD

10 years agokernel - remove i2c debugging for ig4
Matthew Dillon [Tue, 7 Jan 2014 22:55:05 +0000 (14:55 -0800)]
kernel - remove i2c debugging for ig4

* Remove a kprintf("I") in the interrupt path for ig4.

10 years agobuild - Document usb4bsd build requirements
Matthew Dillon [Tue, 7 Jan 2014 22:49:33 +0000 (14:49 -0800)]
build - Document usb4bsd build requirements

* Document them in the obvious place

10 years agokernel - cyapa driver operational in PS/2 mode
Matthew Dillon [Tue, 7 Jan 2014 20:41:41 +0000 (12:41 -0800)]
kernel - cyapa driver operational in PS/2 mode

* For now don't try to emulate the event infrastructure or trackpad
  infrastructure.

* Requires ig4 for chrome.  Include this in /boot/loader.conf for now:

    ig4_load="YES"
    cyapa_load="YES"

* Implement a character device interface that is compatible with PS/2.
  The X configuation would thus be something like this:

    Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "ps/2"
    Option      "Device" "/dev/cyapa0-67"
    EndSection

* Implement simple left/middle/right button emulation depending on where
  on the trackpad you push the button.

* Do not implement simple-touch for buttons, that creates all sorts of
  false positives.  The trackpad has an actual button (the whole pad) if
  you push hard enough.

10 years agoFix some minor compilation issues after sync
Markus Pfeiffer [Tue, 7 Jan 2014 19:38:33 +0000 (19:38 +0000)]
Fix some minor compilation issues after sync

The u4b core is now at FreeBSD r241689

10 years agoFix some spillage from the sync
Markus Pfeiffer [Tue, 7 Jan 2014 00:01:57 +0000 (00:01 +0000)]
Fix some spillage from the sync

10 years agoUse sys/bus/u4b/usb_dragonfly.h
Markus Pfeiffer [Mon, 6 Jan 2014 23:47:58 +0000 (23:47 +0000)]
Use sys/bus/u4b/usb_dragonfly.h

10 years agoSync sys/bus/u4b/* with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 23:43:02 +0000 (23:43 +0000)]
Sync sys/bus/u4b/* with FreeBSD

10 years agoAdd usb_dragonfly.h for DragonFly specific configuration
Markus Pfeiffer [Mon, 6 Jan 2014 22:51:04 +0000 (22:51 +0000)]
Add usb_dragonfly.h for DragonFly specific configuration

10 years agoAdd another controller to ohci_pci.c
Markus Pfeiffer [Mon, 6 Jan 2014 22:32:08 +0000 (22:32 +0000)]
Add another controller to ohci_pci.c

10 years agoSync with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 22:25:52 +0000 (22:25 +0000)]
Sync with FreeBSD

10 years agoSync xhci with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 22:17:39 +0000 (22:17 +0000)]
Sync xhci with FreeBSD

10 years agoSync uhci with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 22:08:52 +0000 (22:08 +0000)]
Sync uhci with FreeBSD

10 years agoSync ohci code with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 22:03:20 +0000 (22:03 +0000)]
Sync ohci code with FreeBSD

10 years agoSync ehci_pci.c with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 21:56:29 +0000 (21:56 +0000)]
Sync ehci_pci.c with FreeBSD

10 years agoSync ehci.h with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 21:56:09 +0000 (21:56 +0000)]
Sync ehci.h with FreeBSD

10 years agoSync ehci.c with FreeBSD
Markus Pfeiffer [Mon, 6 Jan 2014 21:51:37 +0000 (21:51 +0000)]
Sync ehci.c with FreeBSD

10 years agousb4bsd/udav sync driver with FreeBSD
Markus Pfeiffer [Tue, 20 Aug 2013 20:34:27 +0000 (21:34 +0100)]
usb4bsd/udav sync driver with FreeBSD

10 years agousb4bsd: fix a panic due to wrong locking
Markus Pfeiffer [Tue, 20 Aug 2013 20:33:16 +0000 (21:33 +0100)]
usb4bsd: fix a panic due to wrong locking

10 years agousb4bsd: re-add function for rescanning the SCSI bus after attach
Markus Pfeiffer [Mon, 19 Aug 2013 22:37:39 +0000 (23:37 +0100)]
usb4bsd: re-add function for rescanning the SCSI bus after attach

10 years agousb4bsd: Synchronise with FreeBSD r254159
Markus Pfeiffer [Sun, 11 Aug 2013 09:41:54 +0000 (10:41 +0100)]
usb4bsd: Synchronise with FreeBSD r254159

10 years agousb4bsd resolve conflicts
Markus Pfeiffer [Thu, 22 Aug 2013 19:29:37 +0000 (20:29 +0100)]
usb4bsd resolve conflicts

10 years agoif: Use critical section on ifnet.if_start path
Sepherosa Ziehau [Sat, 4 Jan 2014 06:57:49 +0000 (14:57 +0800)]
if: Use critical section on ifnet.if_start path

This is mainly used to avoid contention on serializer between netisr
and ithread on the same CPU, when ithread preempts netisr which holds
serializer that ithread wants to aquire.

This kind of contention is found by analysing ktr(9) log of the
serializer operations.

Tested on 8 HT (i7-3770) box, using kq_accept_server/kq_connect_client:
- 4/4 TX/RX rings device (BCM5719, using MSI-X), slight improvement.
- 8/8 TX/RX rings device (Intel 82580, using MSI-X), slight improvement.
- 1/2 TX/RX rings device (Intel 82599, using MSI), slight improvement.

10 years agoserialize: Optimize atomic_intr_cond_{enter,try,exit}()
Sepherosa Ziehau [Fri, 3 Jan 2014 12:10:32 +0000 (20:10 +0800)]
serialize: Optimize atomic_intr_cond_{enter,try,exit}()

Use counter (30bits) of __atomic_intr_t as wait counter instead of request
counter:
- This avoids counter updates in atomic_intr_cond_try().
- Move counter decrement from atomic_intr_cond_exit() to
  atomic_intr_cond_enter().
- Try obtaining intr_cond first in atomic_intr_cond_enter().  If the try
  failed, counter would be incremented then.

This reduces the number of locked bus cycle intructions.
- For "try ok/exit" sequence: 4 -> 2.
- For "try fail": 3 -> 1.
- For uncontended "enter/exit" sequence: 3 -> 2

For contended "enter/exit" sequence, this increases the number of locked
bus cycle intructions from 3 to 4.  Compared with the sleep, this should
be relatively cheap.

Tested on 8 HT (i7-3770) box, using kq_accept_server/kq_connect_client:
- 4/4 TX/RX rings device (BCM5719, using MSI-X), slight improvement.
- 8/8 TX/RX rings device (Intel 82580, using MSI-X), slight improvement.
- 1/2 TX/RX rings device (Intel 82599, using MSI), no observable
  improvement.

10 years agorc.d/sysdb: Remove NetBSD specific stuff.
Sascha Wildner [Tue, 7 Jan 2014 05:42:05 +0000 (06:42 +0100)]
rc.d/sysdb: Remove NetBSD specific stuff.

10 years agokernel - Initial cyapa driver and input skeleton
Matthew Dillon [Tue, 7 Jan 2014 04:45:05 +0000 (20:45 -0800)]
kernel - Initial cyapa driver and input skeleton

* Add the cyapa driver (work still in progress).  It should be able to
  probe and attach and currently has debugging kprintf()s for scanning and
  testing.  It does not supply a stream for Xorg yet.

* Add a skeleton for subr_input.c (input event handler).  This is what will
  eventually supply a stream for Xorg and also help support the input
  ioctl()s.

10 years agokernel - Further smb cleanup
Matthew Dillon [Tue, 7 Jan 2014 02:14:48 +0000 (18:14 -0800)]
kernel - Further smb cleanup

* Doh. move smb.c and smb.h into smb/

10 years agokernel - Adjust access to thel linux input.h file
Matthew Dillon [Tue, 7 Jan 2014 02:10:23 +0000 (18:10 -0800)]
kernel - Adjust access to thel linux input.h file

* Adjust so fewer changes are needed.  Wrap with sys/input.h

10 years agokernel - Create dev/smbus infrastructure
Matthew Dillon [Tue, 7 Jan 2014 02:00:00 +0000 (18:00 -0800)]
kernel - Create dev/smbus infrastructure

* Create dev/smbus

* Move bus/smbus/{smb,smb.c,smb.h} to dev/smbus

* Adjust conf/files

* Change smbus to add the children as a wildcard instead of as "smb".
  This should allow the "cyapa" device to attach later on, rather than just
  the "smb" device.

* Minor cleanup in subr_bus.c.

10 years agokernel - Add sys/contrib/linux/include/uapi/linux/input.h
Matthew Dillon [Tue, 7 Jan 2014 00:16:25 +0000 (16:16 -0800)]
kernel - Add sys/contrib/linux/include/uapi/linux/input.h

* Bring input.h in from ubuntu.

10 years agoAdd -Wformat-security to WARNS >= 2.
Sascha Wildner [Mon, 6 Jan 2014 23:49:53 +0000 (00:49 +0100)]
Add -Wformat-security to WARNS >= 2.

10 years agolibwrap: Fix two -Wformat-security warnings.
Sascha Wildner [Mon, 6 Jan 2014 23:49:02 +0000 (00:49 +0100)]
libwrap: Fix two -Wformat-security warnings.

10 years agolibevtr: Fix another -Wformat-security warning.
Sascha Wildner [Mon, 6 Jan 2014 22:47:13 +0000 (23:47 +0100)]
libevtr: Fix another -Wformat-security warning.

10 years agokernel: Make ichiic compilable into the kernel and add it to LINT.
Sascha Wildner [Mon, 6 Jan 2014 21:45:01 +0000 (22:45 +0100)]
kernel: Make ichiic compilable into the kernel and add it to LINT.

10 years agoUnbreak building kernels that have snd_hda or hifn in the config.
Sascha Wildner [Mon, 6 Jan 2014 21:43:20 +0000 (22:43 +0100)]
Unbreak building kernels that have snd_hda or hifn in the config.

10 years agoIn userland, fix printf(-like) calls without literal format and no args.
Sascha Wildner [Mon, 6 Jan 2014 20:26:51 +0000 (21:26 +0100)]
In userland, fix printf(-like) calls without literal format and no args.

I.e., silence gcc's -Wformat-security warnings (in non-contrib code).

10 years agodevice attachment: no lock necessary
François Tigeot [Mon, 6 Jan 2014 20:10:42 +0000 (21:10 +0100)]
device attachment: no lock necessary

Remove devattach_token, there was no need for it after all.

In-discussion-with: corecode

10 years agomakewhatis: move verbose stuff into respective if statement
Franco Fichtner [Mon, 6 Jan 2014 18:54:31 +0000 (19:54 +0100)]
makewhatis: move verbose stuff into respective if statement

10 years agofix a couple of MLINKS issues
Franco Fichtner [Mon, 6 Jan 2014 19:38:09 +0000 (20:38 +0100)]
fix a couple of MLINKS issues

10 years agokernel - Add support for haswell I2C, expand smbus API, fix /dev/smb*
Matthew Dillon [Mon, 6 Jan 2014 19:16:53 +0000 (11:16 -0800)]
kernel - Add support for haswell I2C, expand smbus API, fix /dev/smb*

* Add support for the Haswell I2C bus, initially populated with the
  mobile chipset I2C PCI ids (probably others will work too).

* Expand the SMBUS API to add a smbus_trans() function.  This function
  wraps up all the other functions into one convenient call and is
  also capable of doing I2C pass-through and chaining when given the
  appropriate flags.

  If we continue to get our I2C/SMBUS act together we need to collapse
  the IIC and SMBUS APIs into one API and treat them both the same,
  with flags indicating what is supported.  And (pretty much) we need
  to collapse nearly the whole mess into this one function call.

* SMBUS now auto-probes and will attempt to add children for anything
  probed, including generic whole-bus children.

* The SMB user device now accept SMBUS probes last-in-line and creates
  appropriate /dev/smb* devices.

* Change the SMB user device ioctl() interface to something much less
  confusing, and implement an ioctl for generic transaction that
  basically folds into the new smbus_trans() API call.

10 years agops(1): Build without <utmp.h>.
Sascha Wildner [Mon, 6 Jan 2014 04:30:34 +0000 (05:30 +0100)]
ps(1): Build without <utmp.h>.

10 years agopax(1): Build without <utmp.h>.
Sascha Wildner [Mon, 6 Jan 2014 04:22:15 +0000 (05:22 +0100)]
pax(1): Build without <utmp.h>.

10 years agolastcomm(1): Build without <utmp.h>.
Sascha Wildner [Mon, 6 Jan 2014 04:05:54 +0000 (05:05 +0100)]
lastcomm(1): Build without <utmp.h>.

10 years agosysvipcd(8): Oops, remove forgotten brace.
Sascha Wildner [Mon, 6 Jan 2014 01:56:02 +0000 (02:56 +0100)]
sysvipcd(8): Oops, remove forgotten brace.

10 years agosysvipcd(8): Clean up log functions a bit.
Sascha Wildner [Mon, 6 Jan 2014 00:43:16 +0000 (01:43 +0100)]
sysvipcd(8): Clean up log functions a bit.

* Use a larger buffer

* Use snprintf()

* Print to stderr

10 years agosysvipcd(8): Put SYSV_SEMS related messages under -d.
Sascha Wildner [Mon, 6 Jan 2014 00:33:17 +0000 (01:33 +0100)]
sysvipcd(8): Put SYSV_SEMS related messages under -d.

10 years agosysvipcd(8): Mark two functions as printf like.
Sascha Wildner [Sun, 5 Jan 2014 18:02:35 +0000 (19:02 +0100)]
sysvipcd(8): Mark two functions as printf like.

10 years agosbuf.9: Use .Er for errors and comment out refs to sysctl_wire_old_buffer().
Sascha Wildner [Mon, 6 Jan 2014 00:25:01 +0000 (01:25 +0100)]
sbuf.9: Use .Er for errors and comment out refs to sysctl_wire_old_buffer().

10 years agokernel: Stop using the mplock to protect device attachment
François Tigeot [Sun, 5 Jan 2014 15:09:37 +0000 (16:09 +0100)]
kernel: Stop using the mplock to protect device attachment

10 years agolibc/sysvipc: Use a less generic name for a global.
Sascha Wildner [Sun, 5 Jan 2014 14:46:01 +0000 (15:46 +0100)]
libc/sysvipc: Use a less generic name for a global.

10 years agolibc/sysvipc: Only check for the presence of USR_SYSVIPC, not any value.
Sascha Wildner [Sun, 5 Jan 2014 14:38:00 +0000 (15:38 +0100)]
libc/sysvipc: Only check for the presence of USR_SYSVIPC, not any value.

10 years agorc: Put back the sysvipc line. Some more adjustment is needed here.
Sascha Wildner [Sun, 5 Jan 2014 13:48:28 +0000 (14:48 +0100)]
rc: Put back the sysvipc line. Some more adjustment is needed here.

10 years agolibc/gen: Remove 0 byte long msg*.3 files.
Sascha Wildner [Sun, 5 Jan 2014 13:44:49 +0000 (14:44 +0100)]
libc/gen: Remove 0 byte long msg*.3 files.

10 years agolibc/sys: Fix Makefile typo.
Sascha Wildner [Sun, 5 Jan 2014 13:44:00 +0000 (14:44 +0100)]
libc/sys: Fix Makefile typo.

10 years agokernel: Remove useless get/rel_mplock() sequence
François Tigeot [Sun, 5 Jan 2014 09:52:28 +0000 (10:52 +0100)]
kernel: Remove useless get/rel_mplock() sequence

10 years agocacos.3: add missing commas
Franco Fichtner [Sun, 5 Jan 2014 12:22:22 +0000 (13:22 +0100)]
cacos.3: add missing commas

10 years agomakewhatis: scan for potentially missing MLINKS in verbose mode
Franco Fichtner [Sun, 5 Jan 2014 11:57:50 +0000 (12:57 +0100)]
makewhatis: scan for potentially missing MLINKS in verbose mode

Since makewhatis has been switched to tracking files only, it's
likely that a couple of names specified in the manual pages can't
be found anymore.  In order to spot which are missing, verbose
mode now prints likely candidates for MLINKS.

While there, plug the strdup() leaks by erroring out properly,
and reduce the diff against the unmodified version.

10 years agokernel: Sync resource_string_value() with FreeBSD
François Tigeot [Sat, 5 Jan 2013 08:23:18 +0000 (09:23 +0100)]
kernel: Sync resource_string_value() with FreeBSD

10 years agoAdjust i386 for the sysvipc work.
Sascha Wildner [Sun, 5 Jan 2014 00:59:01 +0000 (01:59 +0100)]
Adjust i386 for the sysvipc work.

10 years agosysvipc.8: Add description for -p.
Sascha Wildner [Sat, 4 Jan 2014 23:38:21 +0000 (00:38 +0100)]
sysvipc.8: Add description for -p.

10 years agosysvipcd(8): Use pidfile() and add missing header.
Sascha Wildner [Sat, 4 Jan 2014 23:35:15 +0000 (00:35 +0100)]
sysvipcd(8): Use pidfile() and add missing header.

10 years agosysvipcd(8): Make -d imply -f and write a usage().
Sascha Wildner [Sat, 4 Jan 2014 23:16:32 +0000 (00:16 +0100)]
sysvipcd(8): Make -d imply -f and write a usage().

10 years agosysvipcd(8): It is -p which takes an argument, not -f.
Sascha Wildner [Sat, 4 Jan 2014 23:12:34 +0000 (00:12 +0100)]
sysvipcd(8): It is -p which takes an argument, not -f.

10 years ago<sys/sysctl.h>: Fix indent.
Sascha Wildner [Sat, 4 Jan 2014 22:40:36 +0000 (23:40 +0100)]
<sys/sysctl.h>: Fix indent.

10 years agorc.conf: Set default for sysvipcd(8) and document.
Sascha Wildner [Sat, 4 Jan 2014 22:36:39 +0000 (23:36 +0100)]
rc.conf: Set default for sysvipcd(8) and document.

10 years agorc.conf: Fix typo in a comment.
Sascha Wildner [Sat, 4 Jan 2014 22:34:28 +0000 (23:34 +0100)]
rc.conf: Fix typo in a comment.

10 years agoA few accumulated manual page fixes.
Sascha Wildner [Sat, 4 Jan 2014 22:19:25 +0000 (23:19 +0100)]
A few accumulated manual page fixes.