]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoHook up the generic OFW pnpinfo string method.
Marius Strobl [Thu, 19 Mar 2009 21:14:45 +0000 (21:14 +0000)]
Hook up the generic OFW pnpinfo string method.

15 years agoBring the implementation of the pnpinfo string function more in
Marius Strobl [Thu, 19 Mar 2009 21:12:44 +0000 (21:12 +0000)]
Bring the implementation of the pnpinfo string function more in
line with the rest of this file.

15 years ago- As suggested by OpenSolaris use up-burst-sizes for determining the
Marius Strobl [Thu, 19 Mar 2009 21:02:36 +0000 (21:02 +0000)]
- As suggested by OpenSolaris use up-burst-sizes for determining the
  supported burst sizes.
- Add support for 64-bit burst sizes (required for SBus GEM).
- Failing to register as interrupt controller during attach shouldn't
  be fatal so just inform about this instead of panicing.
- Take advantage of KOBJMETHOD_END.
- Remove some redundant variables.
- Add missing const.

15 years agoAdd device found in B100.
Marius Strobl [Thu, 19 Mar 2009 20:57:59 +0000 (20:57 +0000)]
Add device found in B100.

15 years agoSort include.
Marius Strobl [Thu, 19 Mar 2009 20:54:15 +0000 (20:54 +0000)]
Sort include.

15 years ago- Ensure we find no unexpected partner.
Marius Strobl [Thu, 19 Mar 2009 20:52:46 +0000 (20:52 +0000)]
- Ensure we find no unexpected partner.
- Failing to register as interrupt controller during attach shouldn't
  be fatal so just inform about this instead of panicing.
- Disable rerun of the streaming cache as workaround for a silicon bug
  of certain Psycho versions.
- Remove the comment regarding lack of newbus'ified bus_dma(9) as being
  able to associate a DMA tag with a device would allow to implement
  CDMA flushing/syncing in bus_dmamap_sync(9) but that would totally
  kill performance. Given that for devices not behind a PCI-PCI bridge
  the host-to-PCI bridges also only do CDMA flushing/syncing based on
  interrupts there's no additional disadvantage for polling(4) callbacks
  in the case schizo(4) has to do the CDMA flushing/syncing but rather a
  general problem.
- Don't panic if the power failure, power management or over-temperature
  interrupts doesn't exist as these aren't mandatory and not available
  with all controllers (not even Psychos). [1]
- Take advantage of KOBJMETHOD_END.
- Remove some redundant variables.
- Add missing const.

PR: 131371 [1]

15 years ago- Take advantage of KOBJMETHOD_END.
Marius Strobl [Thu, 19 Mar 2009 20:48:47 +0000 (20:48 +0000)]
- Take advantage of KOBJMETHOD_END.
- Hook up the streaming buffer (not used by iommu(4) by default, yet)
  if available and usable. [1]
- Move the message regarding belated registration as interrupt control
  under bootverbose as this isn't something the user should worry about.

Tested by: Michael Moll [1]

15 years ago- There's no need to wrap kdb_active and kdb_trap() in #ifdef KDB as
Marius Strobl [Thu, 19 Mar 2009 20:46:51 +0000 (20:46 +0000)]
- There's no need to wrap kdb_active and kdb_trap() in #ifdef KDB as
  they're always available.
- Remove unused variable. [1]
- Add a missing const.
- Sort includes.

Submitted by: Christoph Mallon [1]

15 years ago- Remove the delay in cpu_mp_shutdown() which is no longer necessary since
Marius Strobl [Thu, 19 Mar 2009 20:43:01 +0000 (20:43 +0000)]
- Remove the delay in cpu_mp_shutdown() which is no longer necessary since
  we have stopped using SUNW,stop-self with r186395.
- There's no need to wrap kdb_active in #ifdef KDB as it's always available.

15 years agoThere's no need to wrap kdb_enter() in #ifdef KDB as it's always available.
Marius Strobl [Thu, 19 Mar 2009 20:40:49 +0000 (20:40 +0000)]
There's no need to wrap kdb_enter() in #ifdef KDB as it's always available.

15 years agoTake advantage of KOBJMETHOD_END.
Marius Strobl [Thu, 19 Mar 2009 20:38:45 +0000 (20:38 +0000)]
Take advantage of KOBJMETHOD_END.

15 years agoRemove empty dirs.
Andrew Thompson [Thu, 19 Mar 2009 20:38:01 +0000 (20:38 +0000)]
Remove empty dirs.

15 years agoTake advantage of KOBJMETHOD_END.
Marius Strobl [Thu, 19 Mar 2009 20:36:46 +0000 (20:36 +0000)]
Take advantage of KOBJMETHOD_END.

15 years agoRemove the uscanner(4) driver, this follows the removal of the kernel scanner
Andrew Thompson [Thu, 19 Mar 2009 20:33:26 +0000 (20:33 +0000)]
Remove the uscanner(4) driver, this follows the removal of the kernel scanner
driver in Linux 2.6. uscanner was just a simple wrapper around a fifo and
contained no logic, the default interface is now libusb (supported by sane).

Reviewed by: HPS

15 years ago- Sort device methods.
Marius Strobl [Thu, 19 Mar 2009 20:31:55 +0000 (20:31 +0000)]
- Sort device methods.
- Take advantage of KOBJMETHOD_END.

15 years ago- Failing to register as interrupt controller during attach shouldn't
Marius Strobl [Thu, 19 Mar 2009 20:29:23 +0000 (20:29 +0000)]
- Failing to register as interrupt controller during attach shouldn't
  be fatal so just inform about this instead of panicing.
- Sort device methods.
- Take advantage of KOBJMETHOD_END.
- Remove some redundant variables.

15 years ago- Sprinkle const.
Marius Strobl [Thu, 19 Mar 2009 20:24:30 +0000 (20:24 +0000)]
- Sprinkle const.
- Remove incorrect __unused.

15 years agopurge hal abi support; now that the hal is merged w/ the driver
Sam Leffler [Thu, 19 Mar 2009 19:29:10 +0000 (19:29 +0000)]
purge hal abi support; now that the hal is merged w/ the driver
we cannot be out of sync

MFC after: 1 week

15 years agoRemove leftover comment because we now use a flag to check for associd.
Rui Paulo [Thu, 19 Mar 2009 18:45:37 +0000 (18:45 +0000)]
Remove leftover comment because we now use a flag to check for associd.

Discussed with: sam

15 years agoFix typo in comment.
Rui Paulo [Thu, 19 Mar 2009 18:34:58 +0000 (18:34 +0000)]
Fix typo in comment.

15 years ago- Add Sun Type 7 keyboard
Renato Botelho [Thu, 19 Mar 2009 17:16:33 +0000 (17:16 +0000)]
- Add Sun Type 7 keyboard
- Rename Type 6 entry (following NetBSD)
- Add Sun Type 7 Keyboard USB Hub

PR: usb/132811
Reviewed by: thompsa
Approved by: thompsa

15 years agoFixed style for some comments
VANHULLEBUS Yvan [Thu, 19 Mar 2009 15:50:45 +0000 (15:50 +0000)]
Fixed style for some comments

Approved by: gnn(mentor)

15 years agoFixed style for some comments
VANHULLEBUS Yvan [Thu, 19 Mar 2009 15:44:13 +0000 (15:44 +0000)]
Fixed style for some comments

Approved by: gnn(mentor)

15 years agoMake GEOM provider names starting with "/dev/" acceptable as well as their
Ivan Voras [Thu, 19 Mar 2009 14:23:17 +0000 (14:23 +0000)]
Make GEOM provider names starting with "/dev/" acceptable as well as their
"raw" names. While there, change the formatting of extended MSDOS partitions
so that the dot (".") is not used to separate two numbers (which kind of
looks like the whole is a decimal number). Use "+" instead, which also
hints that the second part of the name is the offset from the start of
the partition in the first part of the name. Also change the offset from
decimal to hexadecimal notation, simply for aesthetic reasons and future
compatibility.

GEOM_PART is the default in 8-CURRENT but not yet in 7-STABLE so this
changeset can be MFC-ed without causing major problems from the second
part.

Reviewed by: marcel
Approved by: gnn (mentor)
MFC after: 2 weeks

15 years agoCleanup: Nuke debug.mrtdebug, and replace it with KTR.
Bruce M Simpson [Thu, 19 Mar 2009 14:14:21 +0000 (14:14 +0000)]
Cleanup: Nuke debug.mrtdebug, and replace it with KTR.

15 years agoFix an mbuf leak in the error path.
Doug Rabson [Thu, 19 Mar 2009 14:13:18 +0000 (14:13 +0000)]
Fix an mbuf leak in the error path.

Submitted by: Rick Macklem <rick at snowhite dot cis dot uoguelph dot ca>

15 years agoReduce diffs against i386.
Yoshihiro Takahashi [Thu, 19 Mar 2009 13:53:42 +0000 (13:53 +0000)]
Reduce diffs against i386.

15 years agoAdd hostid to the ranks.
Dag-Erling Smørgrav [Thu, 19 Mar 2009 12:52:19 +0000 (12:52 +0000)]
Add hostid to the ranks.

MFC after: 2 weeks

15 years agoRevert r188010. When dhclient is backgrounded, services such as ntpdate,
Dag-Erling Smørgrav [Thu, 19 Mar 2009 12:48:00 +0000 (12:48 +0000)]
Revert r188010.  When dhclient is backgrounded, services such as ntpdate,
sendmail / postfix etc. may fail to start because DNS is unavailable and /
or the server is unreachable.  In the worst case, the machine may become
unusable.

Debugging this issue was far more difficult than it should have been, due
to earlier changes to the rc framework to hide almost all useful information
about the boot process.

Approved by: silence

15 years agoRename two functions to make their purpose clearer. Add tons of comments.
Dag-Erling Smørgrav [Thu, 19 Mar 2009 12:39:13 +0000 (12:39 +0000)]
Rename two functions to make their purpose clearer.  Add tons of comments.
Generated code is identical after stripping .comment section.

Suggested by: Andriy Gapon <avg@icyb.net.ua>
MFC after: 2 weeks

15 years agoUse the common PC98_MID_* defines instead of a magic number.
Yoshihiro Takahashi [Thu, 19 Mar 2009 12:33:37 +0000 (12:33 +0000)]
Use the common PC98_MID_* defines instead of a magic number.

15 years agoUse the common PC98_SID_ACTIVE define instead of a local define.
Yoshihiro Takahashi [Thu, 19 Mar 2009 12:31:59 +0000 (12:31 +0000)]
Use the common PC98_SID_ACTIVE define instead of a local define.

15 years agoMdoc style, spelling, grammar and wording fixes. This manpage needs more work.
Christian Brueffer [Thu, 19 Mar 2009 10:42:07 +0000 (10:42 +0000)]
Mdoc style, spelling, grammar and wording fixes. This manpage needs more work.

15 years agoForcibly unlock the malloc() locks in the child process after fork(),
Konstantin Belousov [Thu, 19 Mar 2009 10:32:25 +0000 (10:32 +0000)]
Forcibly unlock the malloc() locks in the child process after fork(),
by temporary pretending that the process is still multithreaded.
Current malloc lock primitives do nothing for singlethreaded process.

Reviewed by: davidxu, deischen

15 years agoFix size_t merge-o.
Bruce M Simpson [Thu, 19 Mar 2009 10:23:26 +0000 (10:23 +0000)]
Fix size_t merge-o.

15 years agoAdd some debugging so I can see when syscalls are being restarted
Robert Noland [Thu, 19 Mar 2009 08:36:08 +0000 (08:36 +0000)]
Add some debugging so I can see when syscalls are being restarted
consistantly.  After a lengthy irc discussion it seems like we
shouldn't need to worry about them, but it's nice to know about.

MFC after: 3 days

15 years agoRework vblank handling to try to resolve some reports of "slow" windows
Robert Noland [Thu, 19 Mar 2009 08:34:04 +0000 (08:34 +0000)]
Rework vblank handling to try to resolve some reports of "slow" windows
after vt switch or suspend.  I can't really test this on Intel right now
but I think I've heard reports of it on radeon as well.  I can't break
it on the radeon here.

MFC after: 3 days

15 years agoSync up the rest of the code that we use with what Intel is shipping
Robert Noland [Thu, 19 Mar 2009 08:28:36 +0000 (08:28 +0000)]
Sync up the rest of the code that we use with what Intel is shipping

-Some irq/vblank related changes that hopefully will help.
-A little more cleanup while I'm here.

MFC after: 3 days

15 years agoPull in some suspend / resume changes from Intel's code
Robert Noland [Thu, 19 Mar 2009 08:22:56 +0000 (08:22 +0000)]
Pull in some suspend / resume changes from Intel's code

Tested by: mav@
MFC after: 3 days

15 years agoIntroduce a number of changes to the MROUTING code.
Bruce M Simpson [Thu, 19 Mar 2009 01:43:03 +0000 (01:43 +0000)]
Introduce a number of changes to the MROUTING code.
This is purely a forwarding plane cleanup; no control plane
code is involved.

Summary:
 * Split IPv4 and IPv6 MROUTING support. The static compile-time
   kernel option remains the same, however, the modules may now
   be built for IPv4 and IPv6 separately as ip_mroute_mod and
   ip6_mroute_mod.
 * Clean up the IPv4 multicast forwarding code to use BSD queue
   and hash table constructs. Don't build our own timer abstractions
   when ratecheck() and timevalclear() etc will do.
 * Expose the multicast forwarding cache (MFC) and virtual interface
   table (VIF) as sysctls, to reduce netstat's dependence on libkvm
   for this information for running kernels.
   * bandwidth meters however still require libkvm.
 * Make the MFC hash table size a boot/load-time tunable ULONG,
   net.inet.ip.mfchashsize (defaults to 256).
 * Remove unused members from struct vif and struct mfc.
 * Kill RSVP support, as no current RSVP implementation uses it.
   These stubs could be moved to raw_ip.c.
 * Don't share locks or initialization between IPv4 and IPv6.
 * Don't use a static struct route_in6 in ip6_mroute.c.
   The v6 code is still using a cached struct route_in6, this is
   moved to mif6 for the time being.
 * More cleanup remains to be merged from ip_mroute.c to ip6_mroute.c.

v4 path tested using ports/net/mcast-tools.
v6 changes are mostly mechanical locking and *have not* been tested.
As these changes partially break some kernel ABIs, they will not
be MFCed. There is a lot more work to be done here.

Reviewed by: Pavlin Radoslavov

15 years agoComment IGMP_PIM as being very historic, as in, don't use.
Bruce M Simpson [Thu, 19 Mar 2009 01:15:26 +0000 (01:15 +0000)]
Comment IGMP_PIM as being very historic, as in, don't use.

15 years agoAdd usr.bin/ar to the list of cross tools. Before, when we had gnu
Warner Losh [Thu, 19 Mar 2009 00:44:22 +0000 (00:44 +0000)]
Add usr.bin/ar to the list of cross tools.  Before, when we had gnu
ar, it was built in the gnu/usr.bin/binutils tree.  Now it isn't.

Submitted by: John Hein

15 years agoAdd missing const.
Marius Strobl [Wed, 18 Mar 2009 23:52:20 +0000 (23:52 +0000)]
Add missing const.

15 years ago1. Update for new -F option from r189992.
Doug Barton [Wed, 18 Mar 2009 21:55:08 +0000 (21:55 +0000)]
1. Update for new -F option from r189992.
2. Sort the command line options to match how they are displayed
in usage()
3. Change references to cvs to the more generic "version control system"
and remove the .Xr for cvs
4. Consistently use ".Op Fl" to refer to command line options in the text.
5. Only use the apostrophe to indicate possession.
6. Add FREEBSD_ID (-F) to the list of variables in the example rc,
and change the DIFF_OPTIONS example to -Bb since -F now covers it.

15 years agoAdd a new -F option to automatically install files that differ
Doug Barton [Wed, 18 Mar 2009 21:51:11 +0000 (21:51 +0000)]
Add a new -F option to automatically install files that differ
only by version control Id strings

15 years agoUse plural in a comment. No functional change.
Rui Paulo [Wed, 18 Mar 2009 21:33:28 +0000 (21:33 +0000)]
Use plural in a comment. No functional change.

15 years agoReference exca.
Warner Losh [Wed, 18 Mar 2009 20:03:33 +0000 (20:03 +0000)]
Reference exca.

15 years agorate limit printfs for invalid tdma ie contents; probably want this to
Sam Leffler [Wed, 18 Mar 2009 19:38:39 +0000 (19:38 +0000)]
rate limit printfs for invalid tdma ie contents; probably want this to
be less than 1/sec

15 years agoMinor cleanups of tdma protocol handling:
Sam Leffler [Wed, 18 Mar 2009 19:28:17 +0000 (19:28 +0000)]
Minor cleanups of tdma protocol handling:
o break out version-related code to simplify rev'ing the protocol
o add parameter validation macros so checks that appear multiple places
  are consistent (and easy to change)
o add protocol version check when looking for a scan candidate
o improve scan debug output format
o rewrite beacon update handling to calculate a bitmask of changed values
  and pass that down through the driver callback so drivers can optimize work
o do slot bounds check before use when parsing received beacons

15 years agoadd the option to picobsd to copy files from the host filesystem
Luigi Rizzo [Wed, 18 Mar 2009 18:43:31 +0000 (18:43 +0000)]
add the option to picobsd to copy files from the host filesystem
without root privs. This is done, among other things, replacing
the absolute paths in the symlinks with relative paths, so we
do not need to do a chroot to follow them.

Still need to update the manpage.

MFC after: 3 days

15 years agok8temp(4) has been renamed to amdtemp(4).
Christian Brueffer [Wed, 18 Mar 2009 18:42:58 +0000 (18:42 +0000)]
k8temp(4) has been renamed to amdtemp(4).

15 years agoThe zfs_get_xattrdir() function is used to find the extended attribute
John Baldwin [Wed, 18 Mar 2009 16:19:44 +0000 (16:19 +0000)]
The zfs_get_xattrdir() function is used to find the extended attribute
directory for a znode.  When the directory already exists, it returns a
referenced but unlocked vnode.  When a directory does not yet exist, it
calls zfs_make_xattrdir() to create a new one.  zfs_make_xattrdir() returns
the vnode both referenced and and locked and zfs_get_xattrdir() was leaking
this vnode lock to its callers.  Fix this by dropping the vnode lock if
zfs_make_xattrdir() successfully creates a new extended attribute
directory.

Reviewed by: pjd

15 years ago- Fix typo
Gabor Kovesdan [Wed, 18 Mar 2009 14:33:10 +0000 (14:33 +0000)]
- Fix typo

PR: kern/132773
Reported by: Alan R. S. Bueno <alan.bsd@gmail.com>
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>

15 years agoFixed deletion of sav entries in key_delsah()
VANHULLEBUS Yvan [Wed, 18 Mar 2009 14:01:41 +0000 (14:01 +0000)]
Fixed deletion of sav entries in key_delsah()

Approved by: gnn(mentor)
Obtained from: NETASQ
MFC after: 1 month

15 years agoDo not use null_bypass for VOP_ISLOCKED, directly call default
Peter Holm [Wed, 18 Mar 2009 13:54:35 +0000 (13:54 +0000)]
Do not use null_bypass for VOP_ISLOCKED, directly call default
implementation. null_bypass cannot work for the !nullfs-vnodes, in
particular, for VBAD vnodes.

In collaboration with: kib

15 years agoImplement the dynamic string token substitution in the rpath and
Konstantin Belousov [Wed, 18 Mar 2009 13:40:37 +0000 (13:40 +0000)]
Implement the dynamic string token substitution in the rpath and
soneeded pathes. The $ORIGIN, $OSNAME, $OSREL and $PLATFORM tokens
are supported. Enabling the substitution requires DF_ORIGIN flag in
DT_FLAGS or DF_1_ORIGIN if DF_FLAGS_1, that may be set with -z origin
gnu ld flag. Translation is unconditionally disabled for setuid/setgid
processes.

The $ORIGIN translation relies on the AT_EXECPATH auxinfo supplied
by kernel.

Requested by: maho
Tested by: maho, pho
Reviewed by: kan

15 years agoClear confirm password field first when adding new user.
Ganbold Tsagaankhuu [Wed, 18 Mar 2009 03:56:26 +0000 (03:56 +0000)]
Clear confirm password field first when adding new user.

PR: i386/132580
Reported by:  ilgiz <ilgiz at reid.ru>
Approved by:    kensmith

15 years agoSome NDIS USB drivers try to call URB funcs like URB_FUNCTION_VENDOR_xxx
Weongyo Jeong [Wed, 18 Mar 2009 02:38:35 +0000 (02:38 +0000)]
Some NDIS USB drivers try to call URB funcs like URB_FUNCTION_VENDOR_xxx
or URB_FUNCTION_CLASS_xxx with HAL preemption lock that means it's
non-sleepable during USB requests though usb2_do_request() requires a
sleep so it needs to send queries to the default pipe without those
interfaces to avoid sleep.

15 years agoIf the caller sets irp_usriostat or irp_usrevent it try to process it
Weongyo Jeong [Wed, 18 Mar 2009 01:57:54 +0000 (01:57 +0000)]
If the caller sets irp_usriostat or irp_usrevent it try to process it
whatever the IRP flag is because some drivers (eg. RTL8187L NDIS driver)
call IoCompleteRequest() without setting flags.  It will prevent waiting
a event forever at attach.

15 years agoRemove unused local. usbconfig(8) can now compile under
Xin LI [Tue, 17 Mar 2009 21:21:33 +0000 (21:21 +0000)]
Remove unused local.  usbconfig(8) can now compile under
WARNS=6.

15 years agoAdd prototypes for libusb20_be_[gs]et_template.
Xin LI [Tue, 17 Mar 2009 21:20:39 +0000 (21:20 +0000)]
Add prototypes for libusb20_be_[gs]et_template.

15 years agoWarns fixes: use putenv rather than setenv to avoid constness problems,
David Malone [Tue, 17 Mar 2009 19:51:04 +0000 (19:51 +0000)]
Warns fixes: use putenv rather than setenv to avoid constness problems,
when we want to print an off_t cast to intmax_t and use %jd.

Up WARNS to 6.

15 years agoFix some warns - mainly signedness and unused variables.
David Malone [Tue, 17 Mar 2009 19:37:47 +0000 (19:37 +0000)]
Fix some warns - mainly signedness and unused variables.

15 years agoFix an old-standing bug that crept in along the several revisions:
Attilio Rao [Tue, 17 Mar 2009 16:30:49 +0000 (16:30 +0000)]
Fix an old-standing bug that crept in along the several revisions:
B_DELWRI cleanup and vnode disassociation should happen just before to
assign the buffer to a queue.

Reported by: miwi, Volker <volker at vwsoft dot com>,
Ben Kaduk <minimarmot at gmail dot com>,
Christopher Mallon <christoph dot mallon at gmx dot de>
Tested by: lulf, miwi

15 years agoAdd information about me as a new committer to the src tree
Fabien Thomas [Tue, 17 Mar 2009 14:53:42 +0000 (14:53 +0000)]
Add information about me as a new committer to the src tree

Approved by: jkoshy (mentor)

15 years agoDeal with the case where ifma_protospec may be NULL, during
Bruce M Simpson [Tue, 17 Mar 2009 14:41:54 +0000 (14:41 +0000)]
Deal with the case where ifma_protospec may be NULL, during
any IPv4 multicast operations which reference it.

There is a potential race because ifma_protospec is set to NULL
when we discover the underlying ifnet has gone away. This write
is not covered by the IF_ADDR_LOCK, and it's difficult to widen
its scope without making it a recursive lock. It isn't clear why
this manifests more quickly with 802.11 interfaces, but does not
seem to manifest at all with wired interfaces.

With this change, the 802.11 related panics reported by sam@
and cokane@ should go away. It is not the right fix, that requires
more thought before 8.0.

Idea from: sam
Tested by: cokane

15 years agoReviewed by: scott (scottl@freebsd.org)
Sean Bruno [Tue, 17 Mar 2009 13:07:11 +0000 (13:07 +0000)]
Reviewed by: scott (scottl@freebsd.org)
Obtained from: Hideotshi Shimokawa

This update is based on comments from Hidetoshi.

Changeset 183550 removed the call to crom_load() in fw_busreset().  Restore
that call such that the Configuration ROM is valid.

Stash and update fwdev settings in fw_explore_node() so that negotiation
works again.

15 years agoSupply AT_EXECPATH auxinfo entry to the interpreter, both for native and
Konstantin Belousov [Tue, 17 Mar 2009 12:53:28 +0000 (12:53 +0000)]
Supply AT_EXECPATH auxinfo entry to the interpreter, both for native and
compat32 binaries.

Tested by: pho
Reviewed by: kan

15 years agoAdd AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer
Konstantin Belousov [Tue, 17 Mar 2009 12:50:16 +0000 (12:50 +0000)]
Add AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer
to the full path of the image that is being executed.
Increase AT_COUNT.

Remove no longer true comment about types used in Linux ELF binaries,
listed types contain FreeBSD-specific entries.

Reviewed by: kan

15 years agoAdd some definitions for the DT_FLAGS_1 tag flags.
Konstantin Belousov [Tue, 17 Mar 2009 12:47:40 +0000 (12:47 +0000)]
Add some definitions for the DT_FLAGS_1 tag flags.

Reviewed by:      kan

15 years agoMFV of tzdata2009c
Edwin Groothuis [Tue, 17 Mar 2009 10:51:31 +0000 (10:51 +0000)]
MFV of tzdata2009c

- Cuba has DST again.

MFC after: 1 week

15 years agoVendor import of tzdata2009c
Edwin Groothuis [Tue, 17 Mar 2009 10:47:26 +0000 (10:47 +0000)]
Vendor import of tzdata2009c

- Cuba has DST again.

15 years agoUse the properly sized types for ELF object header and program headers.
Konstantin Belousov [Tue, 17 Mar 2009 09:50:40 +0000 (09:50 +0000)]
Use the properly sized types for ELF object header and program headers.
This fixes osrel fetching from the FreeBSD branding note for the 64bit
platforms.

Reported by: swell.k gmail com
Reviewed by: dchagin
Tested by: dchagin, swell.k gmail com

15 years agograb NDIS USB lock instead of HAL preemption. This change should be
Weongyo Jeong [Tue, 17 Mar 2009 05:57:43 +0000 (05:57 +0000)]
grab NDIS USB lock instead of HAL preemption.  This change should be
happened in the previous.

15 years agoCast to (unsigned long) to make printf happy on i386
Robert Noland [Tue, 17 Mar 2009 05:10:12 +0000 (05:10 +0000)]
Cast to (unsigned long) to make printf happy on i386

MFC after: 3 days

15 years agoAdd support for matching solely on vendor id.
Robert Noland [Tue, 17 Mar 2009 03:53:44 +0000 (03:53 +0000)]
Add support for matching solely on vendor id.

We will use this method with nouveau

MFC after: 3 days

15 years agoImprove the debugging output of drm_mmap
Robert Noland [Tue, 17 Mar 2009 03:50:35 +0000 (03:50 +0000)]
Improve the debugging output of drm_mmap

MFC after: 3 days

15 years agoAdd list_for_each_prev to our linux compatibility.
Robert Noland [Tue, 17 Mar 2009 03:49:24 +0000 (03:49 +0000)]
Add list_for_each_prev to our linux compatibility.

We need this for nouveau

MFC after: 3 days

15 years agoMinor code cleanup
Robert Noland [Tue, 17 Mar 2009 03:46:37 +0000 (03:46 +0000)]
Minor code cleanup

MFC after: 3 days

15 years agoWe can have more than 3 pci resources
Robert Noland [Tue, 17 Mar 2009 03:44:36 +0000 (03:44 +0000)]
We can have more than 3 pci resources

MFC after: 3 days

15 years agoCast register maps and offsets to vm_offset_t
Robert Noland [Tue, 17 Mar 2009 03:39:09 +0000 (03:39 +0000)]
Cast register maps and offsets to vm_offset_t

MFC after: 3 days

15 years agoChange the logic around to match ati_pcigart.
Robert Noland [Tue, 17 Mar 2009 03:36:24 +0000 (03:36 +0000)]
Change the logic around to match ati_pcigart.

MFC after: 3 days

15 years agoUse flsl() here rather than ffsl()
Robert Noland [Tue, 17 Mar 2009 03:32:12 +0000 (03:32 +0000)]
Use flsl() here rather than ffsl()

I discovered that we were computing page_order differently than linux.

MFC after: 3 days

15 years agoRemove the splimp()/splx() calls around the setting of the MTU. They are
Sean Farley [Tue, 17 Mar 2009 02:32:36 +0000 (02:32 +0000)]
Remove the splimp()/splx() calls around the setting of the MTU.  They are
no-op's that I inadvertently added.  Even if locking is needed in general
for the ioctl's, setting a single long will not need it due to the operation
being atomic.

Reported by: rwatson

15 years agoMFp4 //depot/projects/usb 159225,159241,159292
Andrew Thompson [Tue, 17 Mar 2009 01:46:40 +0000 (01:46 +0000)]
MFp4 //depot/projects/usb 159225,159241,159292

Fix regression issue in the USB file system interface.
 - Use cdev_privdata pointer as indicator of correct file handle.
 - Remove redundant FIFO opened flags.

Don't send ZLP at close for ulpt and uscanner devices as this causes some
models to stop working. This reverts back to the USB1 behaviour.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb 159238,159275
Andrew Thompson [Tue, 17 Mar 2009 01:42:46 +0000 (01:42 +0000)]
MFp4 //depot/projects/usb 159238,159275

Add umass quirks.

Submitted by: Michael Gmelin

15 years agoAdd Supertop IDE adapter and Quickcam entries.
Andrew Thompson [Tue, 17 Mar 2009 01:38:51 +0000 (01:38 +0000)]
Add Supertop IDE adapter and Quickcam entries.

15 years agoInitial suspend/resume support for amd64.
Jung-uk Kim [Tue, 17 Mar 2009 00:48:11 +0000 (00:48 +0000)]
Initial suspend/resume support for amd64.

This code is heavily inspired by Takanori Watanabe's experimental SMP patch
for i386 and large portion was shamelessly cut and pasted from Peter Wemm's
AP boot code.

15 years agoAdd some notes and clarify a few sections:
Doug Barton [Mon, 16 Mar 2009 23:56:28 +0000 (23:56 +0000)]
Add some notes and clarify a few sections:
1. Add a note to double-check the man page
2. Remove windows-specific items in the ctrl_interface section
3. Add a note that ap_scan must be set to 1 for use with wlan
4. Clarify the wording for scan_ssid related to APs that hide ssid
5. Clarify the wording for the priority option

15 years agoDetach GELI providers on shutdown/reboot, which will allow providers underneath
Pawel Jakub Dawidek [Mon, 16 Mar 2009 19:31:08 +0000 (19:31 +0000)]
Detach GELI providers on shutdown/reboot, which will allow providers underneath
to close properly.

Reported, reviewed and tested by: guido
MFC after: 1 week

15 years agoUse the right MSI_REARM for RS600.
Robert Noland [Mon, 16 Mar 2009 19:09:59 +0000 (19:09 +0000)]
Use the right MSI_REARM for RS600.

MFC after: 3 days

15 years ago- Add Brazilian Portuguese catalog [1]
Gabor Kovesdan [Mon, 16 Mar 2009 16:33:08 +0000 (16:33 +0000)]
- Add Brazilian Portuguese catalog [1]
- Fixes for German catalog [2]

PR: kern/132694 [1], conf/80504 [2]
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1],
brueffer [2]

15 years agointpm: minor enhancements
Andriy Gapon [Mon, 16 Mar 2009 16:15:14 +0000 (16:15 +0000)]
intpm: minor enhancements

1. fix nointr check in intsmb_start, matters only if ENABLE_ALART is
   defined (by default, it is not);
2. drop unnecessary inspection/reporting of power-management io registers
   base address;
3. in verbose mode report errors from SMBus host controller and their
   mapping to smbus(4) errors;

Approved by: jhb (mentor)

15 years ago(finally) document -n
Sam Leffler [Mon, 16 Mar 2009 15:54:21 +0000 (15:54 +0000)]
(finally) document -n

15 years agoRemove CD input hack for ALC268 based Acer systems. Latest systems does not
Alexander Motin [Mon, 16 Mar 2009 15:50:29 +0000 (15:50 +0000)]
Remove CD input hack for ALC268 based Acer systems. Latest systems does not
implement CD input in hardware, while unconditional showing it confuse users.
Also it was made in the way that sometimes improper with present driver.

Add patch for ALC268 based Acer TM5320 to make headphones jack sensing work.
Default configuration defines two separate playback associations, which
current driver unable to trace properly due to order they are defined and
limited codec uniformity.

Submitted by: G. Mirov <g.mirov AT gmail.com>

15 years agoFix two issues with bufdaemon, often causing the processes to hang in
Konstantin Belousov [Mon, 16 Mar 2009 15:39:46 +0000 (15:39 +0000)]
Fix two issues with bufdaemon, often causing the processes to hang in
the "nbufkv" sleep.

First, ffs background cg group block write requests a new buffer for
the shadow copy. When ffs_bufwrite() is called from the bufdaemon due
to buffers shortage, requesting the buffer deadlock bufdaemon.
Introduce a new flag for getnewbuf(), GB_NOWAIT_BD, to request getblk
to not block while allocating the buffer, and return failure
instead. Add a flag argument to the geteblk to allow to pass the flags
to getblk(). Do not repeat the getnewbuf() call from geteblk if buffer
allocation failed and either GB_NOWAIT_BD is specified, or geteblk()
is called from bufdaemon (or its helper, see below). In
ffs_bufwrite(), fall back to synchronous cg block write if shadow
block allocation failed.

Since r107847, buffer write assumes that vnode owning the buffer is
locked. The second problem is that buffer cache may accumulate many
buffers belonging to limited number of vnodes. With such workload,
quite often threads that own the mentioned vnodes locks are trying to
read another block from the vnodes, and, due to buffer cache
exhaustion, are asking bufdaemon for help. Bufdaemon is unable to make
any substantial progress because the vnodes are locked.

Allow the threads owning vnode locks to help the bufdaemon by doing
the flush pass over the buffer cache before getnewbuf() is going to
uninterruptible sleep. Move the flushing code from buf_daemon() to new
helper function buf_do_flush(), that is called from getnewbuf().  The
number of buffers flushed by single call to buf_do_flush() from
getnewbuf() is limited by new sysctl vfs.flushbufqtarget.  Prevent
recursive calls to buf_do_flush() by marking the bufdaemon and threads
that temporarily help bufdaemon by TDP_BUFNEED flag.

In collaboration with: pho
Reviewed by:  tegge (previous version)
Tested by:  glebius, yandex ...
MFC after:  3 weeks

15 years agoAdded DLT_ENC to map list, so it is now possible
VANHULLEBUS Yvan [Mon, 16 Mar 2009 15:09:47 +0000 (15:09 +0000)]
Added DLT_ENC to map list, so it is now possible
to save dumps on enc0

Reviewed by: gnn(mentor)
Obtained from: NETASQ
MFC after: 1 week

15 years agoFix spelling in message.
Alexander Motin [Mon, 16 Mar 2009 12:42:23 +0000 (12:42 +0000)]
Fix spelling in message.

15 years agocat(1) compiles fine at WARNS level 6.
Dag-Erling Smørgrav [Mon, 16 Mar 2009 12:16:17 +0000 (12:16 +0000)]
cat(1) compiles fine at WARNS level 6.

15 years agouse usb2_desc_foreach() to iterate the USB config descriptor instread of
Weongyo Jeong [Mon, 16 Mar 2009 11:19:07 +0000 (11:19 +0000)]
use usb2_desc_foreach() to iterate the USB config descriptor instread of
accessing structures directly to check some invalid descriptors.

Pointed by: hps