Commit Graph

150853 Commits

Author SHA1 Message Date
John Baldwin
8224141fb7 MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.
2010-02-24 21:29:18 +00:00
John Baldwin
daeeeefea0 MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.
2010-02-24 21:20:25 +00:00
Rafal Jaworowski
0bd1aed098 MFC r203924:
Call the proper linkup routine in PowerPC Book-E machdep.

Submitted by:	attilio
2010-02-24 20:20:02 +00:00
Jaakko Heinonen
bb2f41f9a4 MFC r202945:
Fixes for ls(1) long format (-l) output:

- Allow -h option to work if the listing contains at least one device
  file.
- Align major and minor device numbers correctly to the size field.

PR:		bin/125678
2010-02-24 15:27:31 +00:00
Pawel Jakub Dawidek
1b4509372f MFC r201684.
Teach the (gpt)zfsboot and zfsloader raidz code to use its buffers
more efficiently.

Before this patch, in the worst case memory use would increase
exponentially on the number of drives in the raidz vdev.

Submitted by:	Matt Reimer <mattjreimer@gmail.com>
Sponsored by:	VPOP Technologies, Inc.
Silence from:	dfr
2010-02-23 16:46:34 +00:00
Ed Maste
624e666b5d MFC r202812:
Add H55 ID from Mike Tancsa, with minor rewording from avg@.

PR:		kern/143068
Submitted by:	Mike Tancsa (Sentex)
2010-02-23 01:00:15 +00:00
Xin LI
d21288b029 MFC r203728:
- Return EAFNOSUPPORT instead of EINVAL for unsupported address family,
   this matches the Linux behavior.
 - Check if we have sufficient space allocated for socket structure, which
   fixes a buffer overflow when wrong length is being passed into the
   emulation layer. [1]

PR:		kern/138860
Submitted by:	Mateusz Guzik <mjguzik gmail com>
Reported by:	Alexander Best [1]
2010-02-23 00:40:02 +00:00
Xin LI
18148841f8 MFC r203533:
Remove two files that are not needed by FreeBSD.

Approved by:  pjd
2010-02-22 22:27:26 +00:00
Marius Strobl
c6bf5f18c0 - Factor out the code shared between NFS client and server into its own
module so it's not present twice.
- Move nfs_realign() from the NFS client to the shared NFS code and
  remove the NFS server version in order to reduce code duplication.
  The shared version now uses a second parameter how, which is passed
  on to m_get(9) and m_getcl(9) as the server used M_WAIT while the
  client requires M_DONTWAIT, and replaces the the previously unused
  parameter hsiz.
- Change nfs_realign() to use nfsm_aligned() so as with other NFS code
  the alignment check isn't actually performed on platforms without
  strict alignment requirements for performance reasons because as the
  comment suggests unaligned data only occasionally occurs with TCP.
- Change fha_extract_info() to use nfs_realign() with M_DONTWAIT rather
  than M_WAIT because it's called with the RPC sp_lock held.
2010-02-22 21:45:20 +00:00
Bernhard Schmidt
7eb2cc363d MFC r203673:
Ensure that tkip_mixing_phase1() is called after a rekeying event when
using plain s/w crypto.

PR:		bin/142547
Approved by:	rpaulo (mentor)
2010-02-22 17:10:47 +00:00
Ruslan Ermilov
9cdec2ba0e MFC: r203919: Show when an ARP entry expires (now that this info
cannot be obtained with netstat(1)).
2010-02-22 16:00:55 +00:00
Ruslan Ermilov
8d0a84b1d4 MFC: r204008: realloc() with a proper amount of memory. 2010-02-22 15:58:10 +00:00
Jaakko Heinonen
27a5b388f3 MFC r203551:
- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
  printf.
- Cast the system call return value to long and use %ld in a printf in
  ktrsysret().

PR:		bin/123774
2010-02-21 13:17:35 +00:00
Antoine Brodin
4ed35fdd3d Merge r200413 and r202755 from head to stable/8:
reduces white space diff between head and stable/8

Suggested by:	ru@
2010-02-21 11:22:01 +00:00
Konstantin Belousov
3588e7da23 MFC r203866:
Invalid filesystem might cause the bp to be never read.
2010-02-21 11:13:15 +00:00
Alan Cox
454947a618 MFC r203085
Optimize pmap_demote_pde() by using the new KPTmap to access a kernel
  page table page instead of creating a temporary mapping to it.

  Set the PG_G bit on the page table entries that implement the KPTmap.

  Locore initializes the unused portions of the NKPT kernel page table
  pages that it allocates to zero.  So, pmap_bootstrap() needn't zero
  the page table entries referenced by CMAP1 and CMAP3.

  Simplify pmap_set_pg().
2010-02-21 04:10:25 +00:00
Marcel Moolenaar
69b0137459 MFC rev 203883:
o   Eliminate IA64_PHYS_TO_RR6 by calling bus_space_map() or pmap_mapdev().
o   Implement bus_space_map() in terms of pmap_mapdev().
o   Have ia64_pib hold the uncached virtual address of the PIB.
2010-02-20 22:43:12 +00:00
Jaakko Heinonen
1eb55c8537 MFC r203157, r203816:
Handle short reads when the -P option is used and remove some dead code.

PR:		bin/121502
2010-02-20 13:35:05 +00:00
Antoine Brodin
6335f05c51 MFC from head to stable/8:
r202896:
  Unbreak world:
  - WITHOUT_OPENSSH (and WITH_KERBEROS)
  - WITHOUT_KERBEROS and WITH_GSSAPI

  PR:		137483
  Submitted by:	bf
r203016 by ru@:
  Regen the list of prebuild libraries using tools/make_libdeps.sh.

Reviewed by:	ru@
2010-02-20 12:48:44 +00:00
Konstantin Belousov
fe5e746617 MFC r203826:
Use M_ZERO instead of calling bzero().
Fix function name in the comment.

MFC r203828:
Fix function name in the comment in the second location too.
2010-02-20 11:58:19 +00:00
Konstantin Belousov
bc6c9c912c MFC r203822:
Remove unused macros.
2010-02-20 11:54:18 +00:00
Konstantin Belousov
c84124c0d4 MFC r203818:
Clear the bp pointer when buffer is already brelse()d.
2010-02-20 11:50:50 +00:00
Alexander Motin
a510b78b19 MFC r200291, r203529:
Increase Max Read Request Size for PCIe chips from 512 to 1024 bytes.
It gives those beasts additional 10% of write bandwidth.
Use new helper functions to do it.
2010-02-19 18:15:45 +00:00
Alexander Motin
210a19d014 MFC r203528:
Add pci_get|set_max_read_req() helper functions to control maximum PCIe
read request size.
2010-02-19 18:07:51 +00:00
Alexander Motin
c48c2a2389 MFC r203873:
With FBS enabled, we have no idea what command caused timeout.
Implement same logic as in siis(4) - wait for other commands
complete or timeout and then give some more time.
2010-02-19 17:54:03 +00:00
Alexander Motin
04c9f4b6d0 MFC r203931:
Make CD driver a bit more robust and predictable to unreported errors.
2010-02-19 17:45:47 +00:00
Rick Macklem
3ed680d8da MFC: r203849
Change the default value for vfs.newnfs.enable_locallocks to 0 for
the experimental NFS server, since local locking is known to be
broken and the patch to fix it is still a work in progress.
2010-02-19 16:36:08 +00:00
Ruslan Ermilov
3343356549 MFC: r203918: Unbreak makefiles by removing mentions of DEFAULT_THREAD_LIB. 2010-02-18 16:52:49 +00:00
Rick Macklem
3322939bbb MFC: r203848
This fixes the experimental NFS server so that it won't crash in the
caching code for IPv6 by fixing a typo that used the incorrect variable.
It also fixes the indentation of the statement above it.

Reported by:	simon AT comsys.ntu-kpi.kiev.ua
2010-02-18 16:23:13 +00:00
Rebecca Cran
dfbcd90790 MFC r203685:
Document the usfs driver and the NO_SYSCTL_DESCR option, and update the comment
for umass.
Don't include the sysctl description variables in aic7xxx when NO_SYSCTL_DESCR
is used.

Approved by:	rrs (mentor)
2010-02-18 11:07:36 +00:00
Rebecca Cran
646b39536d MFC r203679:
Remove the usb2_input_kbd directive that was missed during the renaming of the
drivers in the usb2 stack.

Approved by:	rrs (mentor)
2010-02-18 11:03:35 +00:00
Rebecca Cran
82521c1509 MFC r203678:
Rename usb2_ structures and variables to usb_.

Approved by:	rrs (mentor)
2010-02-18 10:59:32 +00:00
Rebecca Cran
ee7ee75497 MFC r203323:
Remove extra semicolon.

Approved by:	rrs (mentor)
2010-02-18 10:55:42 +00:00
Rebecca Cran
73ab91c2d6 MFC r203322:
Fix typo of ENOTCONN.
Add missing RETURN VALUES section in sctp_opt_info(3).

Approved by:	rrs (mentor)
2010-02-18 10:51:31 +00:00
Rebecca Cran
6d812e4f38 MFC r203690:
Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be
configured when running ldconfig.

PR:	bin/138945
Approved by:	rrs (mentor)
2010-02-18 10:48:37 +00:00
Rebecca Cran
b9d3fd67b9 MFC r203688:
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows
the -M option to be used without specifying -N.

PR:	bin/138146
Approved by:	rrs (mentor)
2010-02-18 10:46:25 +00:00
Rebecca Cran
0ed9d88bca MFC r203681:
Fix typo and remove extra spaces.

Approved by:	rrs (mentor)
2010-02-18 10:39:53 +00:00
Matt Jacob
21eee1133a Add the long missing "destroy" option [mfc of 203505] 2010-02-18 01:15:58 +00:00
Konstantin Belousov
a5d3f6af70 MFC r203441:
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as an
argument for fnstsw. Explicitely specify sizes for the XMM control and
status word and X87 control and status words.
2010-02-17 09:09:12 +00:00
Konstantin Belousov
f723d876b5 MFC r203875:
Do not leak process lock when current thread is not allowed to see target.
2010-02-17 09:03:38 +00:00
Gavin Atkinson
da7f88513e Merge 203689 from head:
Install the padlock(4) man page on amd64 as well as i386, to match the
  platforms where the driver itself is compiled and installed.

PR:		docs/130895
Reported by:	George Hartzell <hartzell alerce.com>
2010-02-16 22:23:33 +00:00
Gavin Atkinson
3d4d4693f0 Merge r202461 from head:
Implement an "-x" option to cp(1), for compatibility with Linux and
  feature parity with du(1) and similar:  When set, cp(1) will not traverse
  mount points.

PR:		bin/88056
Initial patch by: Graham J Lee   leeg teaching.physics.ox.ac.uk
2010-02-16 22:19:55 +00:00
Maksim Yevmenkin
da9808aa29 MFC: r203676
Introduce new rc.conf variable firewall_coscripts. It can be used to
specify list of executables and/or rc scripts that should be executed
after firewall starts/stops.

Submitted by:	Yuri Kurenkov <y dot kurenkov at init dot ru>
Reviewed by:	rhodes, rc@
2010-02-16 19:00:47 +00:00
Xin LI
d1b9afd28a MFC r203408:
Prevent NULL deference by checking return value of
gctl_get_asciiparam.
2010-02-16 06:34:44 +00:00
Alexander Motin
be4274118a MFC r203124:
Note added FIS-based switching support.
2010-02-15 16:41:30 +00:00
Rafal Jaworowski
a911d19dfe MFC r203637:
Improve checking whether an ARM VA has a valid mapping before performing cache
sync.

VIPT/PIPT caches need valid VA-PA mapping in PTE for a cache operation to
succeed (unlike VIVT). Prior to this fix pmap was using l2pte_valid() for that
check, but this is not sufficient as the function merely checks if a PTE
exists (there can be existing but _invalid_ entries in the table).

A new pmap_has_valid_mapping() routine is introduced to do this job right by
checking proper PTE flags.

Among other potential problems this cures coherency issues with L2 caches on
MV-78100.

Submitted by:	Grzegorz Bernacki, Piotr Ziecik
Reviewed, tested by:	marcel
Obtained from:	Semihalf
2010-02-15 15:00:40 +00:00
Ruslan Ermilov
60d2ff2cd9 MFC: r202969: Actualize. 2010-02-15 11:29:27 +00:00
Alexander Motin
877380223f MFC r203426:
Disable PHY of unconnected ports when interface power management enabled.
It allows to save a bit more power (about 0.5W on 2 unused ports of ICH8M).
2010-02-14 20:00:21 +00:00
Alexander Motin
3e2fbfe5e6 MFC r203165:
Reset port on disconnect event, to abort any running requests.
2010-02-14 19:59:06 +00:00
Alexander Motin
0129e5cf7a MFC r203123:
Add FIS-based switching support. If controller supports FBS, it allows
several devices beyond Port Multiplier to work simultaneously, substantially
increasing performance.
2010-02-14 19:57:54 +00:00