]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agofix build w/ AH_DEBUG
Sam Leffler [Tue, 24 Mar 2009 00:09:35 +0000 (00:09 +0000)]
fix build w/ AH_DEBUG

15 years agoRemove gratuitous unlock in error case.
Juli Mallett [Tue, 24 Mar 2009 00:08:58 +0000 (00:08 +0000)]
Remove gratuitous unlock in error case.

Reviewed by: sam

15 years agoSave errno before calling _close(), which may clear it.
Xin LI [Mon, 23 Mar 2009 23:43:07 +0000 (23:43 +0000)]
Save errno before calling _close(), which may clear it.

Obtained from: OpenBSD

15 years agouse more proper format string.
Xin LI [Mon, 23 Mar 2009 23:22:09 +0000 (23:22 +0000)]
use more proper format string.

Obtained from: NetBSD via OpenBSD

15 years ago- Clean up suspend/resume code for amd64.
Jung-uk Kim [Mon, 23 Mar 2009 22:35:30 +0000 (22:35 +0000)]
- Clean up suspend/resume code for amd64.
- Call acpi_resync_clock() to reset system time before hardclock is ready
to tick.  Note we assume the current timecounter hardware and RTC are
already available for read operation.

Tested by: mav

15 years agoAdd a function to reset system time after resuming, which will be used
Jung-uk Kim [Mon, 23 Mar 2009 22:12:33 +0000 (22:12 +0000)]
Add a function to reset system time after resuming, which will be used
by amd64 shortly.  It can be turned off by setting "debug.acpi.reset_clock"
tunable to zero.

15 years agoCheck whether devd is running before calling resume notifier and
Jung-uk Kim [Mon, 23 Mar 2009 22:06:09 +0000 (22:06 +0000)]
Check whether devd is running before calling resume notifier and
reshuffle code to reduce unnecessary locking coverage.

15 years agoClean up MI inittodr(9) and kill noop code.
Jung-uk Kim [Mon, 23 Mar 2009 21:16:21 +0000 (21:16 +0000)]
Clean up MI inittodr(9) and kill noop code.

It was derived from i386 version long ago but never resync'ed again.
Originally, i386 version compared the current time from realtime clock
with time_second (which was just `time' in the old days).  When this MI
version was written, it was wrongly compared against `base' AND never
used because of a bug (typo?) in the code.  This check was killed
in i386 version when home-rolled calendaric calculation was removed.
Now, we just remove the code here as well to make the code simpler.

15 years agoImprove the description of a few sysctls.
John Baldwin [Mon, 23 Mar 2009 20:18:06 +0000 (20:18 +0000)]
Improve the description of a few sysctls.

Submitted by: bde (partially)
MFC after: 3 days

15 years agoMinor updates to the Chelsio driver, including removing an LOR.
George V. Neville-Neil [Mon, 23 Mar 2009 19:58:26 +0000 (19:58 +0000)]
Minor updates to the Chelsio driver, including removing an LOR.

Submitted by: Navdeep Parhar at Chelsio
Reviewed by: gnn
MFC after:  3 weeks

15 years agoReenable 64-bit DMA for twa(4) controllers, but use a boundary of 4GB to
John Baldwin [Mon, 23 Mar 2009 19:27:23 +0000 (19:27 +0000)]
Reenable 64-bit DMA for twa(4) controllers, but use a boundary of 4GB to
prevent individual transactions from crossing a 4GB address boundary.  Due
to bus_size_t type limitations, the driver uses a 2GB boundary in PAE
kernels.

Reviewed by: scottl
MFC after: 1 week

15 years agoFix order of debug printf items, addr and config# were swapped.
Andrew Thompson [Mon, 23 Mar 2009 19:10:38 +0000 (19:10 +0000)]
Fix order of debug printf items, addr and config# were swapped.

15 years agoRelease driver lock at the end of the watchdog routine instead of trying to
John Baldwin [Mon, 23 Mar 2009 17:51:07 +0000 (17:51 +0000)]
Release driver lock at the end of the watchdog routine instead of trying to
acquire it again.

Submitted by: bland
MFC after: 3 days

15 years agoSupport for a new environment variable, LD_ELF_HINTS_PATH for overriding
Xin LI [Mon, 23 Mar 2009 16:49:00 +0000 (16:49 +0000)]
Support for a new environment variable, LD_ELF_HINTS_PATH for overriding
the rtld hints file.  This environment variable would be unset if the
process is considered as tainted with setuid/setgid.  This feature gives
a convenient way of using a custom set of shared library that is not
located in the default location and switch back.

Feature requested by: iXsystems
Original patch by: John Hixson
MFC after: 2 weeks

15 years agoFixed comments so it stays in 80 chars by line
VANHULLEBUS Yvan [Mon, 23 Mar 2009 16:20:39 +0000 (16:20 +0000)]
Fixed comments so it stays in 80 chars by line
with hard tabs of 8 chars....

Approved by: gnn(mentor)

15 years agoDon't tempt svn to expand the example $FreeBSD strings
Doug Barton [Mon, 23 Mar 2009 14:42:41 +0000 (14:42 +0000)]
Don't tempt svn to expand the example $FreeBSD strings

15 years ago- Ensure that INTx isn't disabled, as these chips apparently have a
Marius Strobl [Mon, 23 Mar 2009 14:36:50 +0000 (14:36 +0000)]
- Ensure that INTx isn't disabled, as these chips apparently have a
  quirk requiring it to be enabled even when using MSI. This makes
  the latter work again after r189285.
- Remove a comment which no longer applies since r190194.

15 years agoSave (empty) worklist at successful completion
Poul-Henning Kamp [Mon, 23 Mar 2009 11:07:34 +0000 (11:07 +0000)]
Save (empty) worklist at successful completion

15 years agoTogging ALLMULTI does not require controller reset so have Rx
Pyun YongHyeon [Mon, 23 Mar 2009 05:46:28 +0000 (05:46 +0000)]
Togging ALLMULTI does not require controller reset so have Rx
filtering handle this. Introduce a new function msk_rxfilter that
handles Rx filter configuration and multicast setup as well as
promiscuous mode. This simplifies code a lot.
Promiscuous mode always have preference to any other Rx
filtering so don't disable the mode when ALLMULTI is set.

15 years agoDo not pass uninitialized data buffer to devctl_queue_data function.
Alexander Kabaev [Mon, 23 Mar 2009 01:24:17 +0000 (01:24 +0000)]
Do not pass uninitialized data buffer to devctl_queue_data function.
This was botched in revision 190191.

15 years agoAdd safety check that does not allow empty strings to be queued
Alexander Kabaev [Mon, 23 Mar 2009 01:13:34 +0000 (01:13 +0000)]
Add safety check that does not allow empty strings to be queued
to the devctl notification queue. Empty strings cause devctl read
call to return 0 and result in devd exiting prematurely.

The actual offender (ugen notes for root hubs) will be fixed
by separate commit.

15 years agoAdd the URL for RFC2142
Gregory Neil Shapiro [Mon, 23 Mar 2009 00:40:07 +0000 (00:40 +0000)]
Add the URL for RFC2142

PR: conf/127510

15 years agoFix inversed logic. pci_find_extcap() returns 0 when it finds
Pyun YongHyeon [Mon, 23 Mar 2009 00:27:46 +0000 (00:27 +0000)]
Fix inversed logic. pci_find_extcap() returns 0 when it finds
specified capability.

15 years agoCorrectly sanity-check timer IDs. [SA-09:06]
Colin Percival [Mon, 23 Mar 2009 00:00:50 +0000 (00:00 +0000)]
Correctly sanity-check timer IDs. [SA-09:06]

Limit the size of malloced buffer when dumping environment
variables. [EN-09:01]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-09:06.ktimer
Errata: FreeBSD-EN-09:01.kenv

15 years agoTest the r190298 change.
Stefan Farfeleder [Sun, 22 Mar 2009 23:00:52 +0000 (23:00 +0000)]
Test the r190298 change.

15 years agoFix the behaviour of the read built-in when IFS is unset.
Stefan Farfeleder [Sun, 22 Mar 2009 22:57:53 +0000 (22:57 +0000)]
Fix the behaviour of the read built-in when IFS is unset.

Obtained from: NetBSD

15 years agoAdd a few tests for the read built-in.
Stefan Farfeleder [Sun, 22 Mar 2009 22:14:46 +0000 (22:14 +0000)]
Add a few tests for the read built-in.

15 years agoImprove the IFS handling of the read built-in.
Stefan Farfeleder [Sun, 22 Mar 2009 22:09:12 +0000 (22:09 +0000)]
Improve the IFS handling of the read built-in.

Obtained from: NetBSD
Submitted by: Jilles Tjoelker

15 years agoAdd dtnfsclient, a first cut at an NFSv2/v3 client reuest DTrace
Robert Watson [Sun, 22 Mar 2009 22:07:52 +0000 (22:07 +0000)]
Add dtnfsclient, a first cut at an NFSv2/v3 client reuest DTrace
provider.  The NFS client exposes 'start' and 'done' probes for NFSv2
and NFSv3 RPCs when using the new RPC implementation, passing in the
vnode, mbuf chain, credential, and NFSv2 or NFSv3 procedure number.
For 'done' probes, the error number is also available.

Probes are named in the following way:

  ...
  nfsclient:nfs2:write:start
  nfsclient:nfs2:write:done
  ...
  nfsclient:nfs3:access:start
  nfsclient:nfs3:access:done
  ...

Access to the unmarshalled arguments is not easily available at this
point in the stack, but the passed probe arguments are sufficient to
to a lot of interesting things in practice.  Technically, these probes
may cover multiple RPC retransmits, and even transactions if the
transaction ID change as a result of authentication failure or a
jukebox error from the server, but usefully capture the intent of a
single NFS request, such as access, getattr, write, etc.

Typical use might involve profiling RPC latency by system call, number
of RPCs, how often a getattr leads to a call to access, when failed
access control checks occur, etc.  More detailed RPC information might
best be provided by adding a krpc provider.  It would also be useful
to add NFS client probes for events such as the access cache or
attribute cache satisfying requests without an RPC.

Sponsored by: Google, Inc.
MFC after: 1 month

15 years agoUpdate test for r190284.
Stefan Farfeleder [Sun, 22 Mar 2009 21:12:00 +0000 (21:12 +0000)]
Update test for r190284.

15 years ago- Apply the r190270 changes to printing of single aliases too.
Stefan Farfeleder [Sun, 22 Mar 2009 21:09:22 +0000 (21:09 +0000)]
- Apply the r190270 changes to printing of single aliases too.
- Sort the aliases before printing them.

15 years agoCorrect the documentation to reflect the fact that BUS_DMA_NOCACHE is a
Robert Noland [Sun, 22 Mar 2009 21:00:58 +0000 (21:00 +0000)]
Correct the documentation to reflect the fact that BUS_DMA_NOCACHE is a
flag to bus_dmamem_alloc() rather than bus_dmamap_load();

Discussed with: kib
MFC after: 3 days

15 years agoFix up the flags to bus_dmamem again. The man page incorrectly showed
Robert Noland [Sun, 22 Mar 2009 20:58:29 +0000 (20:58 +0000)]
Fix up the flags to bus_dmamem again.  The man page incorrectly showed
the BUS_DMA_NOCACHE flags as being a valid flag for load instead of alloc.

Discussed with: kib
MFC after: 3 days

15 years agoUpdate stale comments. The alternate address space mapping was eliminated
Alan Cox [Sun, 22 Mar 2009 18:56:26 +0000 (18:56 +0000)]
Update stale comments.  The alternate address space mapping was eliminated
when PAE support was added to i386.  The direct mapping exists on amd64.

15 years agoUpdate and extend the tests for alias.
Stefan Farfeleder [Sun, 22 Mar 2009 17:22:14 +0000 (17:22 +0000)]
Update and extend the tests for alias.

15 years agoMake the output of the alias built-in POSIX-compliant: Drop the leading 'alias'
Stefan Farfeleder [Sun, 22 Mar 2009 17:20:42 +0000 (17:20 +0000)]
Make the output of the alias built-in POSIX-compliant: Drop the leading 'alias'
and suppress printing the trailing space which is added for internal purposes.

15 years agoSet the endpoint on the preallocated fifo so it doesnt get matched as an
Andrew Thompson [Sun, 22 Mar 2009 17:09:56 +0000 (17:09 +0000)]
Set the endpoint on the preallocated fifo so it doesnt get matched as an
endpoint fifo.

Reported by: Pieter de Goeje

15 years ago7.2 will be the first release where strndup() appears.
Konstantin Belousov [Sun, 22 Mar 2009 15:29:12 +0000 (15:29 +0000)]
7.2 will be the first release where strndup() appears.

Submitted by: Florian Smeets <flo kasimir com>
MFC after: 3 days

15 years agoBump __FreeBSD_version for dynamic token string support added in ld.so.
Konstantin Belousov [Sun, 22 Mar 2009 14:39:37 +0000 (14:39 +0000)]
Bump __FreeBSD_version for dynamic token string support added in ld.so.

Requested by: maho

15 years agoFix several issues with parsing the notes for ELF objects.
Konstantin Belousov [Sun, 22 Mar 2009 13:42:41 +0000 (13:42 +0000)]
Fix several issues with parsing the notes for ELF objects.

Badly formed ELF note may cause the caclulated pointer to the next note
to point both after the note region, that was checked in the code, but
also to point before the region, that was not checked [1]. Remember the
first note location in note0 and leap out if the note is not between
note0 and note_end.

In the similar way, badly formed note may cause infinite loop by
pointing next note into the same or previous note. Guard against this by
limiting amount of loop iterations by arbitrary choosen big number.

For clarity, check the calculated note alignment in each iteration.

Reported by: Chris Palmer <chris noncombatant org> [1]
PR: kern/132886
Reviewed and tested by: dchagin
MFC after: 3 days

15 years agoNO_INQUIRY is wrong for this device. Alternatively, if it is right,
Warner Losh [Sun, 22 Mar 2009 13:17:46 +0000 (13:17 +0000)]
NO_INQUIRY is wrong for this device.  Alternatively, if it is right,
it is right for only a tiny fraction of these devices and this
wild-card entry is too broad.

# I run a kernel without this entry at all without ill effects...

15 years agoIn general, the kernel virtual address of the pml4 page table page that is
Alan Cox [Sun, 22 Mar 2009 04:32:05 +0000 (04:32 +0000)]
In general, the kernel virtual address of the pml4 page table page that is
stored in the pmap is from the direct map region.  The two exceptions have
been the kernel pmap and the swapper's pmap.  These pmaps have used a
kernel virtual address established by pmap_bootstrap() for their shared
pml4 page table page.  However, there is no reason not to use the direct
map for these pmaps as well.

15 years agoImprove debugging output around ioctls.
Andrew Thompson [Sun, 22 Mar 2009 04:19:36 +0000 (04:19 +0000)]
Improve debugging output around ioctls.

15 years agoEliminate the recomputation of pcb_cr3 from cpu_set_upcall(). The
Alan Cox [Sun, 22 Mar 2009 02:33:48 +0000 (02:33 +0000)]
Eliminate the recomputation of pcb_cr3 from cpu_set_upcall().  The
bcopy()ed value from the old thread is the correct value because the new
thread and the old thread will share a page table.

15 years agoFix typo in comment.
Rui Paulo [Sun, 22 Mar 2009 01:24:32 +0000 (01:24 +0000)]
Fix typo in comment.

15 years agoInstall the new headers.
Rui Paulo [Sun, 22 Mar 2009 01:06:39 +0000 (01:06 +0000)]
Install the new headers.

15 years agobpf_filter() and bpf_validate() can't live here if they already live in
Rui Paulo [Sun, 22 Mar 2009 00:47:41 +0000 (00:47 +0000)]
bpf_filter() and bpf_validate() can't live here if they already live in
bpf.h

15 years agoRemove local in6_addr variables for local and foreign addresses in sysctl_drop,
Juli Mallett [Sun, 22 Mar 2009 00:45:47 +0000 (00:45 +0000)]
Remove local in6_addr variables for local and foreign addresses in sysctl_drop,
they were passed uninitialized to in6_pcblookup_hash.  Instead, do as is done
for IPv4 and use the addresses within the sockaddr structure, which are
correctly populated.

This fixes tcpdrop(8) for IPv6 address pairs.

Reviewed by: bz

15 years agoBe more explicit and complain if kernel dumps are perfomed on unsupported
Ivan Voras [Sun, 22 Mar 2009 00:29:48 +0000 (00:29 +0000)]
Be more explicit and complain if kernel dumps are perfomed on unsupported
partition types. This is to help users used to the old behaviour.

Reviewed by: marcel
Approved by: gnn (mentor)

15 years agoAdd /usr/include/pcap (new in libpcap 1.0.0).
Rui Paulo [Sun, 22 Mar 2009 00:18:48 +0000 (00:18 +0000)]
Add /usr/include/pcap (new in libpcap 1.0.0).

15 years agoRemove remaining references to BIOCSETBUFMODE ifdefs. We now have
Rui Paulo [Sat, 21 Mar 2009 23:13:48 +0000 (23:13 +0000)]
Remove remaining references to BIOCSETBUFMODE ifdefs. We now have
another ifdef for zerocopy bpf.

15 years agoFinish merge of zerocopy bpf.
Rui Paulo [Sat, 21 Mar 2009 23:08:04 +0000 (23:08 +0000)]
Finish merge of zerocopy bpf.

15 years agoMerge from vendor/bind9/dist as of the 9.4.3-P2 import
Doug Barton [Sat, 21 Mar 2009 23:00:40 +0000 (23:00 +0000)]
Merge from vendor/bind9/dist as of the 9.4.3-P2 import

15 years agoSupport files for new libpcap 1.0.0.
Rui Paulo [Sat, 21 Mar 2009 22:59:02 +0000 (22:59 +0000)]
Support files for new libpcap 1.0.0.
Includes a shlib bump.

15 years agoMerge libpcap 1.0.0.
Rui Paulo [Sat, 21 Mar 2009 22:58:08 +0000 (22:58 +0000)]
Merge libpcap 1.0.0.

15 years agoFix WITHOUT_IPV6=yes build.
Rui Paulo [Sat, 21 Mar 2009 21:56:23 +0000 (21:56 +0000)]
Fix WITHOUT_IPV6=yes build.

Reported by: Andrzej Tobola ato at iem.pw.edu.pl

15 years agoIn nfs_request(), always exit using the nfsmout label once we're
Robert Watson [Sat, 21 Mar 2009 21:49:07 +0000 (21:49 +0000)]
In nfs_request(), always exit using the nfsmout label once we're
definitely doing an NFSv2 or NFSv3 RPC, rather than sometimes doing
so and sometimes not.  This makes it easier to add a DTrace return
probe at a single point in the function.

MFC after: 1 week

15 years agoVendor import of BIND 9.4.3-P2
Doug Barton [Sat, 21 Mar 2009 21:37:05 +0000 (21:37 +0000)]
Vendor import of BIND 9.4.3-P2

15 years agoImport of libpcap 1.0.0.
Rui Paulo [Sat, 21 Mar 2009 20:43:56 +0000 (20:43 +0000)]
Import of libpcap 1.0.0.

15 years agoAdd Mac OS X stuff.
Rui Paulo [Sat, 21 Mar 2009 20:39:22 +0000 (20:39 +0000)]
Add Mac OS X stuff.

15 years agoAdd a couple more paths.
Rui Paulo [Sat, 21 Mar 2009 20:34:41 +0000 (20:34 +0000)]
Add a couple more paths.

15 years agoAdd svn:keywords.
Rui Paulo [Sat, 21 Mar 2009 20:18:32 +0000 (20:18 +0000)]
Add svn:keywords.

15 years agoAdd exclude list for libpcap.
Rui Paulo [Sat, 21 Mar 2009 20:16:15 +0000 (20:16 +0000)]
Add exclude list for libpcap.

15 years agoWrap a long line.
Poul-Henning Kamp [Sat, 21 Mar 2009 19:09:33 +0000 (19:09 +0000)]
Wrap a long line.

Save a copy of the CONFIGFILES before we spam them.

15 years agoAdd new build targets for tcpdump 4.0.0.
Rui Paulo [Sat, 21 Mar 2009 18:40:38 +0000 (18:40 +0000)]
Add new build targets for tcpdump 4.0.0.

15 years agoMerge tcpdump 4.0.0 from the vendor branch.
Rui Paulo [Sat, 21 Mar 2009 18:30:25 +0000 (18:30 +0000)]
Merge tcpdump 4.0.0 from the vendor branch.

15 years agoFix a bug in the recent update to the Chelsio driver.
George V. Neville-Neil [Sat, 21 Mar 2009 17:09:00 +0000 (17:09 +0000)]
Fix a bug in the recent update to the Chelsio driver.
The tick routine was not being restarted in the init_locked routine
which could resulted in loss of carrier when updating the MTU.

Submitted by: Navdeep Parhar at Chelsio
MFC after: 3 weeks

15 years agoImport tcpdump 4.0.0.
Rui Paulo [Sat, 21 Mar 2009 16:23:46 +0000 (16:23 +0000)]
Import tcpdump 4.0.0.

15 years agoFix a path.
Rui Paulo [Sat, 21 Mar 2009 16:08:40 +0000 (16:08 +0000)]
Fix a path.

15 years agoExclude list for tcpdump imports.
Rui Paulo [Sat, 21 Mar 2009 15:46:37 +0000 (15:46 +0000)]
Exclude list for tcpdump imports.

15 years agoo Spell.
Maxim Konovalov [Sat, 21 Mar 2009 10:10:33 +0000 (10:10 +0000)]
o Spell.

15 years agoRevert r190173 as it breaks 64bit arches.
Andrew Thompson [Sat, 21 Mar 2009 05:44:22 +0000 (05:44 +0000)]
Revert r190173 as it breaks 64bit arches.

15 years ago- In bge_ifmedia_upd_locked() take advantrage of LIST_FOREACH().
Marius Strobl [Sat, 21 Mar 2009 00:23:07 +0000 (00:23 +0000)]
- In bge_ifmedia_upd_locked() take advantrage of LIST_FOREACH().
- If boot verbose, print asicrev, chiprev and bus type on attach.
- For PCI Express devices:
  1) Adjust max read request size to 4Kbytes
  2) Turn on FIFO_LONG_BURST in RDMA during bge_blockinit()
  Though 1) does not seem to have much to do with the poor TX performance
  observed on PCI Express bge(4), 2) does fix the problem. [1]
- Nuke the RX CPU self-diag, which prevents working cards from working
  (Linux tg3 does not have this diag neither does OpenBSD's bge(4)).
  The increasing of the firmware handshaking timeout to 20000 retries
  done as part of the original commit isn't merged as way already have a
  way higher BGE_TIMEOUT of 100000.

PR: 119361 [1]
Obtained from: tg3 via DragonflyBSD [1], DragonflyBSD

15 years ago- Add Ukranian catalog
Gabor Kovesdan [Fri, 20 Mar 2009 23:55:01 +0000 (23:55 +0000)]
- Add Ukranian catalog

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)

15 years agoSeparate the GEOM_PART entry into paragraphs with differences from old
Ivan Voras [Fri, 20 Mar 2009 23:13:32 +0000 (23:13 +0000)]
Separate the GEOM_PART entry into paragraphs with differences from old
slicers. Add more notes.

Reviewed by: marcel (implicit)
Approved by: gnn (mentor) (implicit)

15 years agoFix compile with USB_HAVE_BUSDMA/USB_HAVE_UGEN/USB_HAVE_STRINGS.
Andrew Thompson [Fri, 20 Mar 2009 23:12:14 +0000 (23:12 +0000)]
Fix compile with USB_HAVE_BUSDMA/USB_HAVE_UGEN/USB_HAVE_STRINGS.

Submitted by: Hans Petter Selasky

15 years agoAdd umass quirk.
Andrew Thompson [Fri, 20 Mar 2009 22:17:27 +0000 (22:17 +0000)]
Add umass quirk.

PR: usb/132799
Reported by: Yoshihiro Ota
Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb @159423, 159497
Andrew Thompson [Fri, 20 Mar 2009 22:15:22 +0000 (22:15 +0000)]
MFp4 //depot/projects/usb @159423, 159497

- Return a Zero Length packet on read errors.
- Allow for smaller buffer size.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb@159446
Andrew Thompson [Fri, 20 Mar 2009 22:12:15 +0000 (22:12 +0000)]
MFp4 //depot/projects/usb@159446

Remove unused and depreciated function: usb2_get_devid().

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb@159517
Andrew Thompson [Fri, 20 Mar 2009 22:10:36 +0000 (22:10 +0000)]
MFp4 //depot/projects/usb@159517

Fix warnings with the IAR compiler.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb
Andrew Thompson [Fri, 20 Mar 2009 22:04:33 +0000 (22:04 +0000)]
MFp4 //depot/projects/usb

Sync usb_core.h after header changes.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb @159479,159502,159516,159522,159529
Andrew Thompson [Fri, 20 Mar 2009 22:01:45 +0000 (22:01 +0000)]
MFp4 //depot/projects/usb @159479,159502,159516,159522,159529

Workaround for buggy USB hardware not handling new SETUP packet before STATUS
stage is complete, this allows xfers to endpoint0 to return a short frame.

Submitted by: Hans Petter Selasky
Reported by:  me

15 years agoMFp4 //depot/projects/usb @159479,159502,159516,159522,159529
Andrew Thompson [Fri, 20 Mar 2009 21:57:54 +0000 (21:57 +0000)]
MFp4 //depot/projects/usb @159479,159502,159516,159522,159529

Workaround for buggy USB hardware not handling new SETUP packet before STATUS
stage is complete, this allows xfers to endpoint0 to return a short frame.

Submitted by: Hans Petter Selasky
Reported by: me

15 years agoNote that GEOM_PART is on by default in 8-CURRENT and how it's different
Ivan Voras [Fri, 20 Mar 2009 21:51:27 +0000 (21:51 +0000)]
Note that GEOM_PART is on by default in 8-CURRENT and how it's different
from older slices.

OKed by: marcel
Approved by: gnn (mentor)

15 years agoMFp4 //depot/projects/usb @159431,159437,159438
Andrew Thompson [Fri, 20 Mar 2009 21:50:54 +0000 (21:50 +0000)]
MFp4 //depot/projects/usb @159431,159437,159438

- start using the new USB typedefs in the USB core
- Remove usage of USB_ADD_BYTES()

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb@159392
Andrew Thompson [Fri, 20 Mar 2009 21:48:11 +0000 (21:48 +0000)]
MFp4 //depot/projects/usb@159392

Add ifdefs for making parts of usb conditional.

Submitted by: Hans Petter Selasky

15 years agoExpand the per-node access cache to cache permissions for multiple users.
John Baldwin [Fri, 20 Mar 2009 21:12:38 +0000 (21:12 +0000)]
Expand the per-node access cache to cache permissions for multiple users.
The number of entries in the cache defaults to 8 but is easily changed in
nfsclient/nfs.h.  When the cache is filled, the oldest cache entry is
evicted when space is needed.

I mirrored the changes to the NFSv[23] client in the NFSv4 client to fix
compile breakage.  However, the NFSv4 client doesn't actually use the
access cache currently.

Submitted by: rmacklem

15 years agoMFp4 //depot/projects/usb @159430
Andrew Thompson [Fri, 20 Mar 2009 19:04:31 +0000 (19:04 +0000)]
MFp4 //depot/projects/usb @159430

- Move tunable defines into usb_core.h and dependancy towards usb_defs.h
- Leave hardcoded defines in "usb_defs.h".
- Allow overriding all tunable defines.
- Add more customisable typedefs.
- Correct maximum device number.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb @159379,159380
Andrew Thompson [Fri, 20 Mar 2009 18:59:53 +0000 (18:59 +0000)]
MFp4 //depot/projects/usb @159379,159380

Fixes for 8-bit and 16-bit compilation.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb @159375,159376,159377
Andrew Thompson [Fri, 20 Mar 2009 18:56:27 +0000 (18:56 +0000)]
MFp4 //depot/projects/usb @159375,159376,159377

Further remove dependancy towards Giant.

Submitted by: Hans Petter Selasky

15 years agoReplace anholt with myself as drm maintainer.
Robert Noland [Fri, 20 Mar 2009 18:51:13 +0000 (18:51 +0000)]
Replace anholt with myself as drm maintainer.

Noticed by: miwi

MFC after: 3 days

15 years agovm_offset_t is unsigned, so compare of >= 0 is not needed.
Robert Noland [Fri, 20 Mar 2009 18:35:16 +0000 (18:35 +0000)]
vm_offset_t is unsigned, so compare of >= 0 is not needed.

Found with: Coverity Prevent(tm)
CID: 2259

MFC after: 3 days

15 years agovm_offset_t is unsigned and therefore can not be negative.
Robert Noland [Fri, 20 Mar 2009 18:30:20 +0000 (18:30 +0000)]
vm_offset_t is unsigned and therefore can not be negative.
Avoid unnessecary compares.

Found with: Coverity Prevent(tm)
CID: 2362,4215,4214,4209,4208,2363,4211,4210,4213,4212

MFC after: 3 days

15 years agoAdd two missing include files and prototype for sockfamilyname()
Xin LI [Fri, 20 Mar 2009 18:29:52 +0000 (18:29 +0000)]
Add two missing include files and prototype for sockfamilyname()
which is generated by mksubr.

15 years agoRemove the DRM_ERROR to fix build. It didn't make any sense anyway.
Robert Noland [Fri, 20 Mar 2009 18:01:32 +0000 (18:01 +0000)]
Remove the DRM_ERROR to fix build.  It didn't make any sense anyway.

MFC after: 3 days

15 years agoFix what appears to be a typo, and restore the registers correctly.
Robert Noland [Fri, 20 Mar 2009 17:51:26 +0000 (17:51 +0000)]
Fix what appears to be a typo, and restore the registers correctly.

Found with: Coverity Prevent(tm)
CID:  2454

15 years agoDon't deref dev->dev_private before checking that it exists.
Robert Noland [Fri, 20 Mar 2009 17:48:36 +0000 (17:48 +0000)]
Don't deref dev->dev_private before checking that it exists.

Found with: Coverity Prevent(tm)
CID: 2940

MFC after: 3 days

15 years agoAct like ranlib if our name ends in ranlib. In particular,
Tim Kientzle [Fri, 20 Mar 2009 17:11:45 +0000 (17:11 +0000)]
Act like ranlib if our name ends in ranlib.  In particular,
this works with some recent cross-building changes by Warner
that install ranlib as, e.g., "arm-freebsd7.1-ranlib".

Submitted by: John Hein

15 years agoRevert r190105 so that removing options KDB but DDB or GDB being
Marius Strobl [Fri, 20 Mar 2009 17:10:50 +0000 (17:10 +0000)]
Revert r190105 so that removing options KDB but DDB or GDB being
available will cause the kernel to not respect -d and boot_kdb=1
for consistency with the other platforms as pointed out by marcel@.

15 years agoSmall cleanup to previous commit.
Ed Schouten [Fri, 20 Mar 2009 14:32:51 +0000 (14:32 +0000)]
Small cleanup to previous commit.

Just use % 8, instead of & 0x7. This makes it easier to understand.