13 years agoDon't use macros which expand to some text (such as .Dx) in the short
Sascha Wildner [Thu, 13 Dec 2007 20:51:37 +0000 (20:51 +0000)]
Don't use macros which expand to some text (such as .Dx) in the short
description since they get discarded by makewhatis(8).

Reported-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
13 years ago* Follow conventions and rename -i (for printing verbose info) to -v.
Sascha Wildner [Thu, 13 Dec 2007 17:14:57 +0000 (17:14 +0000)]
* Follow conventions and rename -i (for printing verbose info) to -v.

* Make usage string look a bit more 'standard'.

13 years agoSave and restore the FP context in the signal stack frame.
Matthew Dillon [Wed, 12 Dec 2007 23:49:24 +0000 (23:49 +0000)]
Save and restore the FP context in the signal stack frame.

13 years agoFix bug in as-of mount date specification.
Matthew Dillon [Wed, 12 Dec 2007 23:47:57 +0000 (23:47 +0000)]
Fix bug in as-of mount date specification.

13 years agoInstall hammer includes in /usr/include/vfs/hammer.
Matthew Dillon [Wed, 12 Dec 2007 23:47:32 +0000 (23:47 +0000)]
Install hammer includes in /usr/include/vfs/hammer.

13 years agoSynchronize most of the remaining FreeBSD changes for Elf64 typedefs.
Matthew Dillon [Wed, 12 Dec 2007 23:29:20 +0000 (23:29 +0000)]
Synchronize most of the remaining FreeBSD changes for Elf64 typedefs.

Adjust the Elf*_Auxargs structures to use the correct typedef names.  The
size of the structure's various fields has not changed.

13 years agoUpdate pkg_search to download and use the pkg_summary file, allowing
Matthew Dillon [Wed, 12 Dec 2007 23:26:38 +0000 (23:26 +0000)]
Update pkg_search to download and use the pkg_summary file, allowing
searches on machines without requiring the pkgsrc tree to be downloaded.

Submitted-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
13 years agoNuke unused stack variable.
Sepherosa Ziehau [Wed, 12 Dec 2007 13:57:36 +0000 (13:57 +0000)]
Nuke unused stack variable.

13 years agoImporting some newer defines for elf to fix build of pkgsrc/devel/libelf.
Walter Sheets [Tue, 11 Dec 2007 18:10:51 +0000 (18:10 +0000)]
Importing some newer defines for elf to fix build of pkgsrc/devel/libelf.

These definitions are not yet used anywhere in DragonFly itself, so should
break nothing (yet).  There are several more defines remaining, but we
don't need them just now.

13 years agotest
Walter Sheets [Tue, 11 Dec 2007 14:59:44 +0000 (14:59 +0000)]

13 years agoFix a bug where all 'generic' ATA controllers were handled as if they had
Thomas E. Spanjaard [Sun, 9 Dec 2007 22:32:16 +0000 (22:32 +0000)]
Fix a bug where all 'generic' ATA controllers were handled as if they had
a DMA engine.

DragonFly-bug: http://bugs.dragonflybsd.org/issue879

13 years agoMake sure that we're locked when initially reading the config from disk.
Simon Schubert [Sun, 9 Dec 2007 17:23:53 +0000 (17:23 +0000)]
Make sure that we're locked when initially reading the config from disk.

Obtained-from:  FreeBSD

13 years agoAdd reference to the LWP "counterpart".
Sascha Wildner [Sat, 8 Dec 2007 23:20:29 +0000 (23:20 +0000)]
Add reference to the LWP "counterpart".

13 years agoFix krateprintf(). The frequency was improperly being multiplied by hz
Matthew Dillon [Sat, 8 Dec 2007 20:08:53 +0000 (20:08 +0000)]
Fix krateprintf().  The frequency was improperly being multiplied by hz
because we were testing against ticks instead of seconds.

13 years ago- It does not make sense to set IP options or multicast options on DIVERT
Sepherosa Ziehau [Sat, 8 Dec 2007 10:20:45 +0000 (10:20 +0000)]
- It does not make sense to set IP options or multicast options on DIVERT
  socket.  Ignore them.  Adjust divert(4) manpage accordingly.
- Don't abuse DIVERT socket inpcb's route entry.

13 years agoAdd a note that 'noerror' option is always on for pipes and queues.
Sepherosa Ziehau [Sat, 8 Dec 2007 04:47:31 +0000 (04:47 +0000)]
Add a note that 'noerror' option is always on for pipes and queues.

13 years agoMake sure that ip_dn_cpu does exist, if not set it to CPU0
Sepherosa Ziehau [Sat, 8 Dec 2007 04:33:58 +0000 (04:33 +0000)]
Make sure that ip_dn_cpu does exist, if not set it to CPU0

13 years agoAdd missing sys/proc.h
Matthew Dillon [Thu, 6 Dec 2007 23:22:33 +0000 (23:22 +0000)]
Add missing sys/proc.h

13 years agoFix a 'panic: vm_page_cache: caching a dirty page' assertion. Even though
Matthew Dillon [Thu, 6 Dec 2007 22:25:49 +0000 (22:25 +0000)]
Fix a 'panic: vm_page_cache: caching a dirty page' assertion.  Even though
callers of vm_page_cache() check m->dirty and test the PTE's in the page's
pmap, it is still possible on a SMP system for a process running in usermode
on a different cpu to dirty the page after these tests, but before the page
has been removed from various pagetables.

The solution is to test m->dirty again after vm_page_cache() removes the
page from its associated page tables and silently deactivate the page instead
of moving it to the cache if the page is found to be dirty.

Reported-by: Peter Avalos <pavalos@theshell.com>
13 years agoAdd clarifying comments for LWP_WSTOP and LWP_WEXIT.
Matthew Dillon [Thu, 6 Dec 2007 22:15:06 +0000 (22:15 +0000)]
Add clarifying comments for LWP_WSTOP and LWP_WEXIT.

Reported-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
13 years ago- Add a '-k' option which does not remove input file, like bzip2(1) do.
Hasso Tepper [Thu, 6 Dec 2007 19:54:52 +0000 (19:54 +0000)]
- Add a '-k' option which does not remove input file, like bzip2(1) do.
- Use better representation of 'S:' by expanding ':' to '.suffix'
- Simulate GNU gzip(1) behavior where full filename is being output in
  verbose mode when doing recursive[1].

Submitted-by: Xin LI <delphij@delphij.net>
Obtained-from: FreeBSD

13 years agoMerge from vendor branch LIBARCHIVE:
Peter Avalos [Thu, 6 Dec 2007 15:54:28 +0000 (15:54 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive-2.4.5:

Fix a bug in handling of "length at end" flags in ZIP files.

13 years agoImport libarchive-2.4.5:
Peter Avalos [Thu, 6 Dec 2007 15:54:28 +0000 (15:54 +0000)]
Import libarchive-2.4.5:

Fix a bug in handling of "length at end" flags in ZIP files.

13 years agoFix possible lockup when ptrace()'ing multi-lwp process.
Simon Schubert [Thu, 6 Dec 2007 15:03:25 +0000 (15:03 +0000)]
Fix possible lockup when ptrace()'ing multi-lwp process.

Submitted-by: Nicolas Thery <nthery@gmail.com>
DragonFly-bug:  <http://bugs.dragonflybsd.org/issue761>

13 years agodhcpd and dhclient manual pages are in section 8, not 1.
Sascha Wildner [Wed, 5 Dec 2007 21:41:41 +0000 (21:41 +0000)]
dhcpd and dhclient manual pages are in section 8, not 1.

Submitted-by: Francis Gudin <fgudin@nerim.net>
Patch-Fu:      pavalos
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue414>

13 years agoImprove wording of the comment for rtable_service_loop().
Sascha Wildner [Wed, 5 Dec 2007 20:46:34 +0000 (20:46 +0000)]
Improve wording of the comment for rtable_service_loop().

Reported-by: Nuno Antunes <nuno.antunes@gmail.com>
Final-version-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Dragonfly-bug:    <http://bugs.dragonflybsd.org/issue811>

13 years agoImprove the wording in the ERRORS section.
Sascha Wildner [Wed, 5 Dec 2007 20:34:12 +0000 (20:34 +0000)]
Improve the wording in the ERRORS section.

Submitted-by: Francis Gudin <fgudin@cri74.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue301>

13 years agoCleanup the pkg_search(1) manpage a bit.
Sascha Wildner [Tue, 4 Dec 2007 21:55:01 +0000 (21:55 +0000)]
Cleanup the pkg_search(1) manpage a bit.

13 years agoAdd some missing prototypes.
Sascha Wildner [Tue, 4 Dec 2007 20:59:15 +0000 (20:59 +0000)]
Add some missing prototypes.

The xdr_{accepted,rejected}_reply() part was taken from FreeBSD.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue72>

13 years agoBring in Matthias Schmidt's nice little pkg_search script.
Matthew Dillon [Tue, 4 Dec 2007 18:24:18 +0000 (18:24 +0000)]
Bring in Matthias Schmidt's nice little pkg_search script.

Submitted-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
13 years agoBring the getent(1) program in from FreeBSD and link it into the build.
Matthew Dillon [Tue, 4 Dec 2007 18:13:09 +0000 (18:13 +0000)]
Bring the getent(1) program in from FreeBSD and link it into the build.

Submitted-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
Obtained-from: FreeBSD

13 years agoHifn 7955/7956 support to the hifn(4) driver.
Hasso Tepper [Tue, 4 Dec 2007 09:11:12 +0000 (09:11 +0000)]
Hifn 7955/7956 support to the hifn(4) driver.

Submitted-by: Andrew Atrens
Obtained-from: FreeBSD/OpenBSD

13 years agoFix typo.
Sascha Wildner [Mon, 3 Dec 2007 20:40:31 +0000 (20:40 +0000)]
Fix typo.

13 years agoUpdate per Newsletter VI-1.
Sascha Wildner [Mon, 3 Dec 2007 20:38:05 +0000 (20:38 +0000)]
Update per Newsletter VI-1.

13 years agooperation is a function argument, not a defined value.
Sascha Wildner [Mon, 3 Dec 2007 20:13:10 +0000 (20:13 +0000)]
operation is a function argument, not a defined value.

13 years agoFix typo: MNT_ASYNCHRONOUS -> MNT_ASYNC
Sascha Wildner [Mon, 3 Dec 2007 20:11:15 +0000 (20:11 +0000)]

13 years agoSync zoneinfo database with tzdata2007j from elsie.
Sascha Wildner [Mon, 3 Dec 2007 15:24:51 +0000 (15:24 +0000)]
Sync zoneinfo database with tzdata2007j from elsie.

asia:           8.13 -> 8.14
northamerica:   8.19 -> 8.20
southamerica:   8.12 -> 8.13
zone.tab:       8.11 -> 8.12

From Paul Eggert's comments:

The following change affects near-future time stamps.

* Venezuela is changing their clocks on December 9 at 03:00, instead
  of the January 1 at 00:00 that we thought.  (Thanks to John
  Stainforth for the heads-up.)

The following change affects the country database, but not the time data.

* New links America/St_Barthelemy and America/Marigot, for the
  new countries St Barthelemy and St Martin (French part).
  (Thanks to Mark Davis for this.)

The following change affects commentary only.

* Add a comment about Iran's readoption of DST.
  (Thanks to Roozbeh Pournader for this.)

13 years agoSome trivial changes from FreeBSD that allow to use kgdb on /dev/fwmem0.0.
Hasso Tepper [Mon, 3 Dec 2007 14:42:45 +0000 (14:42 +0000)]
Some trivial changes from FreeBSD that allow to  use kgdb on /dev/fwmem0.0.
It also fixes an obvious typo (vmfd -> pmfd).

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue839>
Submitted-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Obtained-from: FreeBSD

13 years agoF_FLOCK no longer exists.
Sascha Wildner [Sun, 2 Dec 2007 22:57:58 +0000 (22:57 +0000)]
F_FLOCK no longer exists.

13 years agoLK_NOPAUSE no longer exists.
Sascha Wildner [Sun, 2 Dec 2007 22:39:56 +0000 (22:39 +0000)]
LK_NOPAUSE no longer exists.

13 years agoFix typo: LG_CANRECURSE -> LK_CANRECURSE
Sascha Wildner [Sun, 2 Dec 2007 22:31:31 +0000 (22:31 +0000)]

13 years agoFix facility name.
Sascha Wildner [Sun, 2 Dec 2007 22:11:43 +0000 (22:11 +0000)]
Fix facility name.

13 years agoFix typo: RMX_RTTUNIT -> RTM_RTTUNIT
Sascha Wildner [Sun, 2 Dec 2007 22:09:39 +0000 (22:09 +0000)]

13 years agoRemove trailing whitespace.
Sascha Wildner [Sun, 2 Dec 2007 21:12:44 +0000 (21:12 +0000)]
Remove trailing whitespace.

13 years agoSync quirk tables with FreeBSD.
Peter Avalos [Sun, 2 Dec 2007 16:38:11 +0000 (16:38 +0000)]
Sync quirk tables with FreeBSD.

Obtained-from: FreeBSD

13 years agoIn bge_stop():
Sepherosa Ziehau [Sun, 2 Dec 2007 07:41:10 +0000 (07:41 +0000)]
In bge_stop():
- Avoid dereferencing 'mii', if it is NULL
- Add comment about it

13 years agoXPT_GET_TRAN_SETTINGS can fail- so check for an error and
Peter Avalos [Sun, 2 Dec 2007 05:38:03 +0000 (05:38 +0000)]
XPT_GET_TRAN_SETTINGS can fail- so check for an error and
don't blindly assume it succeeded.

Obtained-from: FreeBSD

13 years agoChange the qualifier to force async from cur_spi to spi.
Peter Avalos [Sun, 2 Dec 2007 05:32:26 +0000 (05:32 +0000)]
Change the qualifier to force async from cur_spi to spi.

Obtained-from: FreeBSD

13 years agoAdd a tunable that allows one to turn off the automatic sending of
Peter Avalos [Sun, 2 Dec 2007 05:30:08 +0000 (05:30 +0000)]
Add a tunable that allows one to turn off the automatic sending of
the ORDERED tag. This recoups significant performance gains for many

The default is still to send out the ORDERED tag periodically.

Obtained-from: FreeBSD

13 years agoBlack list the atapci device on Intel PRO/1000 PM, which is just an NIC.
Sepherosa Ziehau [Sun, 2 Dec 2007 05:03:17 +0000 (05:03 +0000)]
Black list the atapci device on Intel PRO/1000 PM, which is just an NIC.

13 years ago- Increase m_flags' size, we have already short of flag space.
Sepherosa Ziehau [Sun, 2 Dec 2007 05:01:04 +0000 (05:01 +0000)]
- Increase m_flags' size, we have already short of flag space.
- Add explicit padding field.

Reviewed-by: dillon@
13 years agoPut a bit of hysteresis into both BUSY SCSI status returns
Peter Avalos [Sun, 2 Dec 2007 04:54:40 +0000 (04:54 +0000)]
Put a bit of hysteresis into both BUSY SCSI status returns
and CAM_RESRC_UNAVAIL returns. Delay a tunable amount for
either between retries.

This came up because the MPT IOC was returning "IOC out of
resources" for some FreeBSD users and this caused a CAM_RESRC_UNAVAIL
return. Putting a bit of delay between retries helped them

Obtained-from: FreeBSD

13 years agoImplement 'camcontrol reportluns'. This allows users to send the SCSI
Peter Avalos [Sun, 2 Dec 2007 04:44:03 +0000 (04:44 +0000)]
Implement 'camcontrol reportluns'.  This allows users to send the SCSI
REPORT LUNS command to a device.

camcontrol.[c8]: Implement reportluns.  This tries to print the LUNs
out in a reasonable format.
scsi_all.[ch]: Revamp the report luns CDB structure and helper

Obtained-from: FreeBSD

13 years agoSpelling fix.
Peter Avalos [Sun, 2 Dec 2007 04:24:11 +0000 (04:24 +0000)]
Spelling fix.

Obtained-from: FreeBSD

13 years agoAdd PIM_SEQSCAN for HBA misc flags and code that understands
Peter Avalos [Sun, 2 Dec 2007 04:22:31 +0000 (04:22 +0000)]
Add PIM_SEQSCAN for HBA misc flags and code that understands
what to do with it.

This forces us to scan targets sequentially, not in parallel.
The reason we might want to do this is that SPI negotiation
might not work right at the SIM level if we try to do it
in parallel.

If PIM_SEQSCAN is not set (default), the original behaviour for
probing is unchanged.

LUN probing is still done in parallel for each target in either

Obtained-from: FreeBSD

13 years agoFix missing update to reflect change in scsi_inquiry data structure.
Peter Avalos [Sun, 2 Dec 2007 03:54:16 +0000 (03:54 +0000)]
Fix missing update to reflect change in scsi_inquiry data structure.

Obtained-from: FreeBSD

13 years agoHandle some of the inquiry flags that have come into
Peter Avalos [Sun, 2 Dec 2007 03:41:58 +0000 (03:41 +0000)]
Handle some of the inquiry flags that have come into
usage as of SPC2r20. Specifically, handle the BQueue
flag which will indicate that a device supports the
Basic Queueing model (no Head of Queue or Ordered tags).
When this flag is set, SID_CmdQueue is clear.

Obtained-from: FreeBSD

13 years agoAdd references to llabs(3) and imaxabs(3).
Sascha Wildner [Sun, 2 Dec 2007 03:29:47 +0000 (03:29 +0000)]
Add references to llabs(3) and imaxabs(3).

13 years agoActually check to see if XPT_CALC_GEOMETRY had an error
Peter Avalos [Sun, 2 Dec 2007 03:25:07 +0000 (03:25 +0000)]
Actually check to see if XPT_CALC_GEOMETRY had an error
and pick a bogus geometry if it had so we don't later
get a divide by zero trap.

Obtained-from: FreeBSD

13 years agoGuard against divide-by-zero.
Peter Avalos [Sun, 2 Dec 2007 03:16:52 +0000 (03:16 +0000)]
Guard against divide-by-zero.

Obtained-from: FreeBSD

13 years agoCAM_NEW_TRAN_CODE placeholders for SAS support.
Peter Avalos [Sun, 2 Dec 2007 03:01:55 +0000 (03:01 +0000)]
CAM_NEW_TRAN_CODE placeholders for SAS support.

Obtained-from: FreeBSD

13 years agoAdd imaxabs(3) function and manual page.
Sascha Wildner [Sun, 2 Dec 2007 03:00:18 +0000 (03:00 +0000)]
Add imaxabs(3) function and manual page.

Taken-from: FreeBSD

13 years agoMake sure ioctl doesn't get swallowed (fit in 8 bits).
Peter Avalos [Sun, 2 Dec 2007 01:54:27 +0000 (01:54 +0000)]
Make sure ioctl doesn't get swallowed (fit in 8 bits).

Obtained-from: FreeBSD

13 years agoIncorporate the O_NONBLOCK open semantics of Linux and Solaris.
Peter Avalos [Sun, 2 Dec 2007 01:46:13 +0000 (01:46 +0000)]
Incorporate the O_NONBLOCK open semantics of Linux and Solaris.

Obtained-from: FreeBSD

13 years agoWhen deregistering a bus, attempt to flush out all outstanding
Peter Avalos [Sun, 2 Dec 2007 00:30:35 +0000 (00:30 +0000)]
When deregistering a bus, attempt to flush out all outstanding
operations before returning. Point the bus at a dummy cam_sim
structure so that any CCBs will complete immediately with a
CAM_DEV_NOT_THERE status, and ensure that any xpt_schedule() calls
on the bus's devices will immediately call the peripheral's
periph_start() routine. Also repeat the async messages because
devices that were part of the way through being probed may appear
after the original AC_LOST_DEVICE was sent, and would otherwise
never go away.

Obtained-from: FreeBSD

13 years agoThere should be no need to retry when the CCB status code is
Peter Avalos [Sat, 1 Dec 2007 22:54:18 +0000 (22:54 +0000)]
There should be no need to retry when the CCB status code is

This avoids crashes in camisr() when umass devices are
unplugged during probing.

Obtained-from: FreeBSD

13 years agoMake the exploring of all luns supported by an HBA more of a tunable.
Peter Avalos [Sat, 1 Dec 2007 22:49:49 +0000 (22:49 +0000)]
Make the exploring of all luns supported by an HBA more of a tunable.

If we're probing luns, and each probe succeeds, we keep going past
lun 7 if we're a SCSI3 or better device (until we fail to probe).

If we're probing luns, and a probe fails, we only keep going if
we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked
*against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device
and the tunable (kern.cam.cam_srch_hi) is set non-zero.

Obtained-from: FreeBSD

13 years agoFine-grained malloc statistics - replace some M_DEVBUF with module-specific
Peter Avalos [Sat, 1 Dec 2007 22:21:18 +0000 (22:21 +0000)]
Fine-grained malloc statistics - replace some M_DEVBUF with module-specific

Obtained-from: FreeBSD

13 years agoRegenerate the pciconf(8) database from the following files:
Sascha Wildner [Sat, 1 Dec 2007 20:24:33 +0000 (20:24 +0000)]
Regenerate the pciconf(8) database from the following files:

Hart:    Oct 10, 2007 (version 657)
Boemler: Dec  1, 2007

13 years ago- Add missing MCP65 id which was accidentally removed in previous commit.
Hasso Tepper [Sat, 1 Dec 2007 08:32:11 +0000 (08:32 +0000)]
- Add missing MCP65 id which was accidentally removed in previous commit.
- Add Analog Devices AD1984 codec id.
- Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake)
  hints so the parser will grab it and allocate "speaker" control.
- Fix regression while preparing DAC and ADC for multichannel
  format. Since playback policy is to output to every possible path,
  ensure that each DAC is started.

Obtained-from: FreeBSD

13 years agoClean up the manual pages of mount_hammer(8) and newfs_hammer(8) a bit.
Sascha Wildner [Fri, 30 Nov 2007 20:22:26 +0000 (20:22 +0000)]
Clean up the manual pages of mount_hammer(8) and newfs_hammer(8) a bit.

* In HISTORY, always refer to the (odd) development version numbers,
  not the (even) release ones.

* Start sentences on a new line, add some markup, comment out empty

* Sort options.

* Fix typos.

13 years ago* Fix support for followings:
Hasso Tepper [Fri, 30 Nov 2007 08:06:00 +0000 (08:06 +0000)]
* Fix support for followings:
  o Acer Aspire 4520 laptop
    - jack sensing / automute
  o Toshiba Satellite A135-S4527 laptop
    - jack sensing / automute
  o Apple Macbook 3 (is it?)
    - require gpio0 (for speakers) and ovref50 (for headphone) to make it work
    - jack sensing / automute
* Add Nvidia MCP67 controller ids.
* Be sensible about similar controller with multiple pci ids.
* Connect unused DAC/ADC to stream#0 rather than forcing each of them
  managing their own stream.

Obtained-from: FreeBSD

13 years agoLimit total playback channels to just 1, for ALi M5451. The reliability
Hasso Tepper [Fri, 30 Nov 2007 08:03:17 +0000 (08:03 +0000)]
Limit total playback channels to just 1, for ALi M5451. The reliability
of it's multi DAC / playback channels is not that good. Enabling vchans
make the bug more visible since playback allocation will look for possible
free hardware channels first (i.e: the next DAC, the very first has been
consumed by vchan mixer) which in this case has been proven faulty.

Obtained-from: FreeBSD

13 years agoAdd support for trimmed down version of ATI SB600 AC97 audio
Hasso Tepper [Fri, 30 Nov 2007 08:01:43 +0000 (08:01 +0000)]
Add support for trimmed down version of ATI SB600 AC97 audio

Obtained-from: FreeBSD

13 years agoRemap and virtualize mixer controls for HP nx6110 with AD1981B AC97 codec,
Hasso Tepper [Fri, 30 Nov 2007 07:59:56 +0000 (07:59 +0000)]
Remap and virtualize mixer controls for HP nx6110 with AD1981B AC97 codec,
unifying master volume control.

  * Remap "phout" --> SOUND_MIXER_VOLUME (internal speakers)
  * Virtual "vol" --> { "phout", "ogain" (headphone) }

Obtained-from: FreeBSD

13 years agoEnable headphone jack-sense for HP nx6100 with AD1981B AC'97 codec,
Hasso Tepper [Fri, 30 Nov 2007 07:57:20 +0000 (07:57 +0000)]
Enable headphone jack-sense for HP nx6100 with AD1981B AC'97 codec,
automuting internal speakers.

Obtained-from: FreeBSD

13 years ago- Gigabyte G33-S2H fixup, due to the present of multiple competing
Hasso Tepper [Fri, 30 Nov 2007 07:53:53 +0000 (07:53 +0000)]
- Gigabyte G33-S2H fixup, due to the present of multiple competing
  codecs. Codec at address 0 seems purely digital, or perhaps an HDMI
  interface. Let the driver skip it and continue scanning the codecs
  starting with address 2 (Realtek ALC885).

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  AMILO Si 1848 laptop.

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  Lifebook S7020D laptop.

- Some smart vendor trying to create interplanetary wormhole by
  screwing pci config space during their BIOS update. The side effects
  of their failure attempt includes mutilated hardware id, broken
  speaker automuting and loosing the entire analog CD connectivity,
  thus causing enough collateral damages to collapse the entire
  universe.  Move along with it.
  Please exercise extra cautious when applying BIOS updates.

- Fix no sound issues (on headphones) for Lenovo ThinkCentre A55 due
  to global automute table entry which is not applicable for

- Speaker mute control for HP DC7700 since the front headphone jack
  does not generate any interesting unsolicited signal/response.

Obtained-from: FreeBSD

13 years ago- malloc M_NOWAIT -> M_WAITOK.
Hasso Tepper [Fri, 30 Nov 2007 07:48:57 +0000 (07:48 +0000)]
- malloc M_NOWAIT -> M_WAITOK.
- Protect against divide by zero while calculating bus speed due to
  possible broken kernel timecounter.

Obtained-from: FreeBSD

13 years ago- Add codec id for Realtek ALC268.
Hasso Tepper [Fri, 30 Nov 2007 07:47:44 +0000 (07:47 +0000)]
- Add codec id for Realtek ALC268.
- Add controller id for Intel 82801I (ICH9).
- MSI support, though commented out due to lack of support in DragonFly.

Obtained-from: FreeBSD

13 years ago- Merge input/microphone support for ASUS A8N-VMCSM series.
Hasso Tepper [Fri, 30 Nov 2007 07:41:28 +0000 (07:41 +0000)]
- Merge input/microphone support for ASUS A8N-VMCSM series.
- Defer flushing unsolicited response into taskqueue thread rather
  than handle it directly in interrupt handler, since few of its
  operations (like measuring/calibrating jack impedance) are quite
- Misc. debugging cleanups.

Obtained-from: FreeBSD

13 years agoFix no-sound issues with ASUS A9T notebook.
Hasso Tepper [Fri, 30 Nov 2007 07:38:39 +0000 (07:38 +0000)]
Fix no-sound issues with ASUS A9T notebook.

Note: The offending quirk should have been made model/codec specific,
but since there were no records / log which model requires it, the quirk
logic had to be inverted (blacklist instead of whitelist).

Obtained-from: FreeBSD

13 years agoHAMMER 9/many - btree removal cases, mount nohistory
Matthew Dillon [Fri, 30 Nov 2007 00:16:56 +0000 (00:16 +0000)]
HAMMER 9/many - btree removal cases, mount nohistory

Add a 'nohistory' mount option that will cause HAMMER to not retain any
history.  This option is primarily for testing of btree removal and hinted
radix tree bitmap frees and reallocations.

Flesh out the btree node removal code.  We don't try to rebalance the tree
yet but we do attempt to remove empty nodes.

Add workarounds for a GCC-4 bug involving overflow tests on integers.

13 years agoAdd support for Intel 7221's and 845M GMCH controllers.
Hasso Tepper [Thu, 29 Nov 2007 09:28:38 +0000 (09:28 +0000)]
Add support for Intel 7221's and 845M GMCH controllers.

Obtained-from: FreeBSD

13 years agoFixing a memory leak in xpt_release_device().
Peter Avalos [Thu, 29 Nov 2007 03:57:25 +0000 (03:57 +0000)]
Fixing a memory leak in xpt_release_device().

Obtained-from: FreeBSD

13 years agoDo not initialize path variable with useless value just before
Peter Avalos [Thu, 29 Nov 2007 03:40:09 +0000 (03:40 +0000)]
Do not initialize path variable with useless value just before
xpt_create_path overwrites it anyway.

Obtained-from: FreeBSD

13 years agoMake sure we look at the correct sub op codes when
Peter Avalos [Thu, 29 Nov 2007 03:31:15 +0000 (03:31 +0000)]
Make sure we look at the correct sub op codes when
deciding whether it's an operation we can perform
via the control device.

Obtained-from: FreeBSD

13 years agoProtect against dividing by zero.
Peter Avalos [Thu, 29 Nov 2007 03:10:24 +0000 (03:10 +0000)]
Protect against dividing by zero.

Obtained-from: FreeBSD

13 years agoavoid use after free
Peter Avalos [Thu, 29 Nov 2007 02:56:42 +0000 (02:56 +0000)]
avoid use after free

Obtained-from: FreeBSD

13 years agoavoid use after free
Peter Avalos [Thu, 29 Nov 2007 02:41:21 +0000 (02:41 +0000)]
avoid use after free

Obtained-from: FreeBSD

13 years agoFix a problem with the cd(4) driver -- the CAMGETPASSTHRU ioctl wouldn't
Peter Avalos [Thu, 29 Nov 2007 02:32:43 +0000 (02:32 +0000)]
Fix a problem with the cd(4) driver -- the CAMGETPASSTHRU ioctl wouldn't
succeed if there was no media in the drive.

For now, check the ioctl group to decide whether to check for media or not.
(We only need to check for media on CD-specific ioctls.)

Obtained-from: FreeBSD

13 years agoAdd "report only" functionality to 'camcontrol format', so users can get a
Peter Avalos [Thu, 29 Nov 2007 01:57:29 +0000 (01:57 +0000)]
Add "report only" functionality to 'camcontrol format', so users can get a
report on the status of a format already running on a drive.

Obtained-from: FreeBSD

13 years agoFix a place where we were referencing a pointer after it had been freed.
Peter Avalos [Thu, 29 Nov 2007 01:48:15 +0000 (01:48 +0000)]
Fix a place where we were referencing a pointer after it had been freed.

Obtained-from: FreeBSD

13 years agoRestore queue depth settings across tag disable events. The system often
Peter Avalos [Thu, 29 Nov 2007 01:32:16 +0000 (01:32 +0000)]
Restore queue depth settings across tag disable events.  The system often
disables tag queuing temporarily in order to allow controllers a window
to safely perform transfer negotiation with non-compliant devices.  Before
this change, CAM would restore the queue depth to the controller specified
maximum or device quirk level rather than any depth determined by reactions
to QUEUE FULL/BUSY events or an explicit user setting.

During device probe, initialize the flags field for XPT_SCAN_BUS.
The uninitialized value often confused CAM into not bothering to
issue an AC_FOUND_DEVICE async event for new devices.  The reason
this bug wasn't reported earlier is that CAM manually announces
devices after the initial system bus scans.

Obtained-from: FreeBSD

13 years agoTry to automatically scan and attach luns for modern storage
Peter Avalos [Wed, 28 Nov 2007 22:37:05 +0000 (22:37 +0000)]
Try to automatically scan and attach luns for modern storage
which has luns in the 0..1000 range, not 0..7.

Obtained-from: FreeBSD

13 years agoAgain, use offsetof() instead of a constant to enhance readability.
Peter Avalos [Wed, 28 Nov 2007 22:27:57 +0000 (22:27 +0000)]
Again, use offsetof() instead of a constant to enhance readability.

Obtained-from: FreeBSD

13 years agoUse offsetof() instead of a hard-coded constant for readability.
Peter Avalos [Wed, 28 Nov 2007 22:21:48 +0000 (22:21 +0000)]
Use offsetof() instead of a hard-coded constant for readability.

Round odd long inquiry lengths up so as to avoid tickling ignore
wide residue bugs in broken parallel SCSI devices running with a
wide transfer negotiation.

Obtained-from: FreeBSD

13 years agoAdd necessary data structures and definitions for the 12-byte SCSI
Peter Avalos [Wed, 28 Nov 2007 22:16:09 +0000 (22:16 +0000)]
Add necessary data structures and definitions for the 12-byte SCSI

Obtained-from: FreeBSD

13 years agoRemove the camnet swi and CAM_PERIPH_NET. It has never been used, and
Peter Avalos [Wed, 28 Nov 2007 22:11:02 +0000 (22:11 +0000)]
Remove the camnet swi and CAM_PERIPH_NET.  It has never been used, and
given that network-over-scsi never really took off, there is little chance
that it will ever be needed.

Obtained-from: FreeBSD

13 years agoFix typo in comment.
Peter Avalos [Wed, 28 Nov 2007 21:55:59 +0000 (21:55 +0000)]
Fix typo in comment.

Obtained-from: FreeBSD

13 years agoWhen printing out an unknown sense code we should print it in hex, not
Peter Avalos [Wed, 28 Nov 2007 21:45:02 +0000 (21:45 +0000)]
When printing out an unknown sense code we should print it in hex, not

Obtained-from: FreeBSD