]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix teardown of static DMA allocations in various NIC drivers:
jhb [Tue, 17 Jun 2014 14:47:49 +0000 (14:47 +0000)]
Fix teardown of static DMA allocations in various NIC drivers:
- Add missing calls to bus_dmamap_unload() in et(4).
- Check the bus address against 0 to decide when to call
  bus_dmamap_unload() instead of comparing the bus_dma map against NULL.
- Check the virtual address against NULL to decide when to call
  bus_dmamem_free() instead of comparing the bus_dma map against NULL.
- Don't clear bus_dma map pointers to NULL for static allocations.
  Instead, treat the value as completely opaque.
- Pass the correct virtual address to bus_dmamem_free() in wpi(4) instead
  of trying to free a pointer to the virtual address.

Reviewed by: yongari

10 years agoAdd glyphs from converted syscons iso* fonts
emaste [Tue, 17 Jun 2014 13:12:30 +0000 (13:12 +0000)]
Add glyphs from converted syscons iso* fonts

This consists of the unique glyphs from the following font files in
/usr/share/syscons/fonts:

iso*.fnt     ISO-8859-1 West European
iso02*.fnt   ISO-8859-2 Central European
iso04*.fnt   ISO-8859-4 Baltic
iso05*.fnt   ISO-8859-5 Cyrillic
iso07*.fnt   ISO-8859-7 Greek
iso08*.fnt   ISO-8859-8 Hebrew
iso09*.fnt   ISO-8859-9 Turkish
iso15*.fnt   ISO-8859-15 West European

Sponsored by: The FreeBSD Foundation

10 years agoAdd a stub send-pr that simply points people towards the online support
gavin [Tue, 17 Jun 2014 12:59:03 +0000 (12:59 +0000)]
Add a stub send-pr that simply points people towards the online support
pages, to give people used to send-pr a bit of guidance.

MFC after: 3 days

10 years agoDo not reference native_lapic_ipi_*() functions in the UP build.
kib [Tue, 17 Jun 2014 09:33:22 +0000 (09:33 +0000)]
Do not reference native_lapic_ipi_*() functions in the UP build.
The functions' definitions are protected by #ifdef SMP.
Keeping apic_ops.ipi_*() methods NULL would allow to catch the use
on UP machines.

Reviewed by: royger
Sponsored by: The FreeBSD Foundation

10 years agoMake cs_terminating a bool; no functional changes.
trasz [Tue, 17 Jun 2014 09:02:10 +0000 (09:02 +0000)]
Make cs_terminating a bool; no functional changes.

Sponsored by: The FreeBSD Foundation

10 years agoMFV r249332 (illumos-gate 14005:55fc53126003)
delphij [Tue, 17 Jun 2014 08:11:45 +0000 (08:11 +0000)]
MFV r249332 (illumos-gate 14005:55fc53126003)

Illumos ZFS issues:
  3654 zdb should print number of ganged blocks

MFC after: 2 weeks

10 years agoIn msdosfs_setattr(), add a check for result of the utimes(2)
kib [Tue, 17 Jun 2014 07:11:00 +0000 (07:11 +0000)]
In msdosfs_setattr(), add a check for result of the utimes(2)
permissions test, forgotten in r164033.

Refactor the permission checks for utimes(2) into vnode helper
function vn_utimes_perm(9), and simplify its code comparing with the
UFS origin, by writing the call to VOP_ACCESSX only once.  Use the
helper for UFS(5), tmpfs(5), devfs(5) and msdosfs(5).

Reported by: bde
Reviewed by: bde, trasz
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoRevert r266925 as it can lead to instant panic at fexecve():
dchagin [Tue, 17 Jun 2014 05:29:18 +0000 (05:29 +0000)]
Revert r266925 as it can lead to instant panic at fexecve():

To allow to run the interpreter itself add a new ELF branding type.

Pointed out by: kib, mjg

10 years agoAdd MLINKS for macros decribed in queue.3 manpage.
kevlo [Tue, 17 Jun 2014 02:10:40 +0000 (02:10 +0000)]
Add MLINKS for macros decribed in queue.3 manpage.

10 years agoSupport for multiple disks and tap devices.
alfred [Tue, 17 Jun 2014 00:53:00 +0000 (00:53 +0000)]
Support for multiple disks and tap devices.

This allows you to give a bhyve instance multiple network devices
and disk devices easily by specifying additional "-d " and "-t "
options.

Reviewed by: neel
Sponsored by: Norse

10 years agoBring an overly enthusiastic KASSERT inline with the Intel SDM.
tychon [Mon, 16 Jun 2014 22:59:18 +0000 (22:59 +0000)]
Bring an overly enthusiastic KASSERT inline with the Intel SDM.

Reviewed by: neel

10 years agoAdd &citrix; and &citrix.rd; macros.
gjb [Mon, 16 Jun 2014 20:21:15 +0000 (20:21 +0000)]
Add &citrix; and &citrix.rd; macros.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r267536, Xen PVH DomU support for amd64.
gjb [Mon, 16 Jun 2014 20:20:54 +0000 (20:20 +0000)]
Document r267536, Xen PVH DomU support for amd64.

Submitted by: royger
Sponsored by: The FreeBSD Foundation

10 years agoAdd comment explaining a potential problem with just added LUN ID.
trasz [Mon, 16 Jun 2014 19:05:51 +0000 (19:05 +0000)]
Add comment explaining a potential problem with just added LUN ID.

Reminded by: mav@
Sponsored by: The FreeBSD Foundation

10 years ago- Modify vm_page_unwire() and vm_page_enqueue() to directly accept
attilio [Mon, 16 Jun 2014 18:15:27 +0000 (18:15 +0000)]
- Modify vm_page_unwire() and vm_page_enqueue() to directly accept
  the queue where to enqueue pages that are going to be unwired.
- Add stronger checks to the enqueue/dequeue for the pagequeues when
  adding and removing pages to them.

Of course, for unmanaged pages the queue parameter of vm_page_unwire() will
be ignored, just as the active parameter today.
This makes adding new pagequeues quicker.

This change effectively modifies the KPI.  __FreeBSD_version will be,
however, bumped just when the full cache of free pages will be
evicted.

Sponsored by: EMC / Isilon storage division
Reviewed by: alc
Tested by: pho

10 years agoAdd LUN-associated name to VPD, to make Hyper-V Failover Cluster happy.
trasz [Mon, 16 Jun 2014 18:14:05 +0000 (18:14 +0000)]
Add LUN-associated name to VPD, to make Hyper-V Failover Cluster happy.

Sponsored by: The FreeBSD Foundation

10 years agoTidy up the early parts of vm_map_insert(), in particular, simplify one
alc [Mon, 16 Jun 2014 16:37:41 +0000 (16:37 +0000)]
Tidy up the early parts of vm_map_insert(), in particular, simplify one
of the assertions and eliminate a comment that has grown stale.

Reviewed by: kib
MFC after: 1 week

10 years agoUpdate license to strptime(3) implementation.
pfg [Mon, 16 Jun 2014 14:55:09 +0000 (14:55 +0000)]
Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision: 13222:02526851ba75

Approved: core (jhb)
Approved: FreeBSD Foundation (emaste)
MFC after: 4 days

10 years agoFix destruction of character devices by passing correct pointer to
hselasky [Mon, 16 Jun 2014 14:02:14 +0000 (14:02 +0000)]
Fix destruction of character devices by passing correct pointer to
kernel in IOCTL request.

Submitted by: Andrey Zholos <aaz@q-fu.com>

10 years agoAdd support for VERIFY(10/12/16) and COMPARE AND WRITE SCSI commands.
mav [Mon, 16 Jun 2014 11:00:14 +0000 (11:00 +0000)]
Add support for VERIFY(10/12/16) and COMPARE AND WRITE SCSI commands.

Make data_submit backends method support not only read and write requests,
but also two new ones: verify and compare.  Verify just checks readability
of the data in specified location without transferring them outside.
Compare reads the specified data and compares them to received data,
returning error if they are different.

VERIFY(10/12/16) commands request either verify or compare from backend,
depending on BYTCHK CDB field.  COMPARE AND WRITE command executed in two
stages: first it requests compare, and then, if succeesed, requests write.
Atomicity of operation is guarantied by CTL request ordering code.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoxen: add missing files
royger [Mon, 16 Jun 2014 08:54:04 +0000 (08:54 +0000)]
xen: add missing files

Commit missing files that actually belong to previous commits.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

10 years agoisa: allow ISA bus to attach to xenpv bus
royger [Mon, 16 Jun 2014 08:49:16 +0000 (08:49 +0000)]
isa: allow ISA bus to attach to xenpv bus

This is needed because syscons depends on ISA.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/isa/isa.c:
 - Allow the ISA bus to attach to xenpv.

10 years agoxen: unify gnttab initialization for PVHVM and PVH
royger [Mon, 16 Jun 2014 08:48:42 +0000 (08:48 +0000)]
xen: unify gnttab initialization for PVHVM and PVH

Switch the initialization of gnttab to use an unused physical memory
range for both PVHVM and PVH.

In the past PVHVM was using the xenpci BAR, but there's no reason to
do that, and in fact FreeBSD was probably doing it because it was the
way it was done in Windows, were drivers cannot probably request for
unused physical memory ranges, but it was never enforced in the
hypervisor.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

xen/gnttab.c:
 - Allocate contiguous physical memory for grant table frames for both
   PVHVM and PVH.
 - Since gnttab is not a device, use the xenpv device in order to
   request for this allocation.

dev/xen/xenpci/xenpcivar.h:
dev/xen/xenpci/xenpci.c:
 - Remove the now unused xenpci_alloc_space and xenpci_alloc_space_int
   functions.

xen/gnttab.h:
 - Change the prototype of gnttab_init and gnttab_resume, that now
   takes a device_t parameter.

dev/xen/control/control.c:
x86/xen/xenpv.c:
 - Changes to accomodate the new prototype of gnttab_init and
   gnttab_resume.

10 years agoxen: init gnttab from xenpv
royger [Mon, 16 Jun 2014 08:48:06 +0000 (08:48 +0000)]
xen: init gnttab from xenpv

Currently the grant table is initialized from xenstore, but a better
place to do this would be xenpv, so move grant table initialization
there.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xenpv.c:
 - Add gnttab initialization.

xen/xenstore/xenstore.c:
 - Remove gnttab initialization.

10 years agoxen: xenstore changes to support PVH
royger [Mon, 16 Jun 2014 08:47:15 +0000 (08:47 +0000)]
xen: xenstore changes to support PVH

For PVH guests the xenstore parameters are fetched from the start_info
struct, just like on PV.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

xen/xenstore/xenstore.c:
 - Fetch xenstore event channel port from start_info.

10 years agoxen: add shutdown hook for PVH
royger [Mon, 16 Jun 2014 08:46:31 +0000 (08:46 +0000)]
xen: add shutdown hook for PVH

Add the PV shutdown hook to PVH.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

dev/xen/control/control.c:
 - Make xen_pv_shutdown_final available on XENHVM builds.
 - Register the Xen PV shutdown hook for PVH guests.

10 years agoxen: create a Xen nexus to use in PV/PVH
royger [Mon, 16 Jun 2014 08:45:51 +0000 (08:45 +0000)]
xen: create a Xen nexus to use in PV/PVH

Introduce a Xen specific nexus that is going to be used by Xen PV/PVH
guests.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xen_nexus.c:
 - Introduce a Nexus to use on Xen PV(H) guests, this prevents PV(H)
   guests from using the legacy Nexus.

conf/files.amd64:
conf/files.i386:
 - Add the xen nexus to the build.

10 years agoxen: create a PV CPU device for PVH guests
royger [Mon, 16 Jun 2014 08:45:12 +0000 (08:45 +0000)]
xen: create a PV CPU device for PVH guests

Since there's no ACPI on PVH guests, we need to create a dummy CPU
device in order to fill the pcpu->pc_device field.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

dev/xen/pvcpu/pvcpu.c:
 - Create a dummy CPU device for PVH guests in order to fill the
   per-cpu pc_device field.

conf/files:
 - Add the pvcpu device to kernels using XEN or XENHVM options.

10 years agoxen: introduce xenpv bus
royger [Mon, 16 Jun 2014 08:44:33 +0000 (08:44 +0000)]
xen: introduce xenpv bus

Create a dummy bus so top level Xen devices can attach to it (instead
of attaching directly to the nexus). This allows to have all the Xen
related devices grouped under a single bus.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xenpv.c:
 - Attach the xenpv bus when running as a Xen guest.
 - Attach the ISA bus if needed, in order to attach syscons.

conf/files.amd6:
conf/files.i386:
 - Include the xenpv.c file in the build of i386/amd64 kernels using
   XENHVM.

dev/xen/console/console.c:
dev/xen/timer/timer.c:
xen/xenstore/xenstore.c:
 - Attach to the xenpv bus instead of the Nexus.

dev/xen/xenpci/xenpci.c:
 - Xen specific devices on PVHVM guests are no longer attached to the
   xenpci device, they are instead attached to the xenpv bus, remove
   the now unused methods.

10 years agoxen: add hooks for Xen PV APIC
royger [Mon, 16 Jun 2014 08:43:45 +0000 (08:43 +0000)]
xen: add hooks for Xen PV APIC

Create the necessary hooks in order to provide a Xen PV APIC
implementation that can be used on PVH. Most of the lapic ops
shouldn't be called on Xen, since we trap those operations at a higher
layer.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/hvm.c:
x86/xen/xen_apic.c:
 - Move IPI related code to xen_apic.c

x86/xen/xen_apic.c:
 - Introduce Xen PV APIC implementation, most of the functions of the
   lapic interface should never be called when running as PV(H) guest,
   so make sure FreeBSD panics when trying to use one of those.
 - Define the Xen APIC implementation in xen_apic_ops.

xen/xen_pv.h:
 - Extern declaration of the xen_apic struct.

x86/xen/pv.c:
 - Use xen_apic_ops as apic_ops when running as PVH guest.

conf/files.amd64:
conf/files.i386:
 - Include the xen_apic.c file in the build of i386/amd64 kernels
   using XENHVM.

10 years agoamd64/i386: introduce APIC hooks for different APIC implementations.
royger [Mon, 16 Jun 2014 08:43:03 +0000 (08:43 +0000)]
amd64/i386: introduce APIC hooks for different APIC implementations.

This is needed for Xen PV(H) guests, since there's no hardware lapic
available on this kind of domains. This commit should not change
functionality.

Sponsored by: Citrix Systems R&D
Reviewed by: jhb
Approved by: gibbs

amd64/include/cpu.h:
amd64/amd64/mp_machdep.c:
i386/include/cpu.h:
i386/i386/mp_machdep.c:
 - Remove lapic_ipi_vectored hook from cpu_ops, since it's now
   implemented in the lapic hooks.

amd64/amd64/mp_machdep.c:
i386/i386/mp_machdep.c:
 - Use lapic_ipi_vectored directly, since it's now an inline function
   that will call the appropiate hook.

x86/x86/local_apic.c:
 - Prefix bare metal public lapic functions with native_ and mark them
   as static.
 - Define default implementation of apic_ops.

x86/include/apicvar.h:
 - Declare the apic_ops structure and create inline functions to
   access the hooks, so the change is transparent to existing users of
   the lapic_ functions.

x86/xen/hvm.c:
 - Switch to use the new apic_ops.

10 years agoxen: fix style in pv.c
royger [Mon, 16 Jun 2014 08:41:57 +0000 (08:41 +0000)]
xen: fix style in pv.c

Fix the lenght of some comments, and also add proper indentation to
xen_init_ops

Sponsored by: Citrix Systems R&D
Approved by: gibbs

10 years agoForce two byte alignment for all control message headers
bryanv [Mon, 16 Jun 2014 04:32:27 +0000 (04:32 +0000)]
Force two byte alignment for all control message headers

The header structure consists of two 1-byte elements, but it must always
be describable by a single SG entry. Note for consistency, specify the
alignment everywhere, even if the structure has the appropriate natural
alignment since it contains a uint16_t.

Obtained from: DragonFlyBSD
MFC after: 1 week

10 years agoMake the feature negotiation code easier to follow
bryanv [Mon, 16 Jun 2014 04:29:28 +0000 (04:29 +0000)]
Make the feature negotiation code easier to follow

MFC after: 1 week

10 years agoMove the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h
bryanv [Mon, 16 Jun 2014 04:25:04 +0000 (04:25 +0000)]
Move the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h

These defines are applicable to userland too, but virtqueue.h contains
the kernel virtqueue interface, and is therefore not usable in userland.

Note that Linux places these defines in virtio_ring.h, but I don't want
the drivers including this header file to keep the VirtIO ring opaque to
everything but the virtqueue.

MFC after: 1 week

10 years agoRemove kernel specific macro out of the VirtIO PCI header file
bryanv [Mon, 16 Jun 2014 04:16:31 +0000 (04:16 +0000)]
Remove kernel specific macro out of the VirtIO PCI header file

The eventual goal is to share this file with userland, so
remove the macro that is only specific for virtio_pci(4).
Instead, add the VIRTIO_PCI_CONFIG_OFF macro from Linux to
get the config size whether MSIX is enabled or not.

MFC after: 1 week

10 years ago - Remove two write-only local variables
bryanv [Mon, 16 Jun 2014 04:12:33 +0000 (04:12 +0000)]
  - Remove two write-only local variables
  - Remove unused element in the vtnet_rxq structure

MFC after: 1 week

10 years agoMake backends track completion by processed number of sectors instead of
mav [Sun, 15 Jun 2014 20:14:11 +0000 (20:14 +0000)]
Make backends track completion by processed number of sectors instead of
total transfer size.

Commands such as VERIFY or COMPARE AND WRITE may have transfer size not
matching directly to number of sectors.

10 years agoMinor mdoc improvements.
joel [Sun, 15 Jun 2014 18:39:10 +0000 (18:39 +0000)]
Minor mdoc improvements.

10 years agomdoc: add missing width to Bl -tag.
joel [Sun, 15 Jun 2014 18:30:26 +0000 (18:30 +0000)]
mdoc: add missing width to Bl -tag.

10 years agoRemove memcpy() from ctl_private[] accesses.
mav [Sun, 15 Jun 2014 18:16:51 +0000 (18:16 +0000)]
Remove memcpy() from ctl_private[] accesses.

That union is aligned enough to access data directly.

10 years agoMove kern_total_len setting from backend to core code.
mav [Sun, 15 Jun 2014 17:14:52 +0000 (17:14 +0000)]
Move kern_total_len setting from backend to core code.

10 years agoMFV r266988:
pfg [Sun, 15 Jun 2014 16:54:26 +0000 (16:54 +0000)]
MFV r266988:

Merge from r258379 missed the tests.

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 54a20ab41aadcb81c53e72fc65886e964e9add59

MFC after: 5 days

10 years agopatch: add dry-run alias for compatibility with other implementations.
pfg [Sun, 15 Jun 2014 16:38:17 +0000 (16:38 +0000)]
patch: add dry-run alias for compatibility with other implementations.

Other implementations of patch(1), including GNU patch and "svn patch"
have a --dry-run option which does the same as our -C or --check
option.

Add a new alias to make our implementation more compatible.

MFC after: 1 week

10 years agoCreate a mechanism for providing fine-grained build order dependencies
ian [Sun, 15 Jun 2014 13:45:37 +0000 (13:45 +0000)]
Create a mechanism for providing fine-grained build order dependencies
during SUBDIR_PARALLEL builds.  This augments the coarse .WAIT mechanism,
which is still useful if you've got a situation such as "almost everything
depends on A and B".

Because the parallel subdir mechanism uses non-obvious mangling of
target names, which should probably remain a private detail of the
implementation, it's not easy to do things like "libfoo: libbar", so
instead the new mechanism lets you set a variable that lists dependencies:

  SUBDIR_DEPEND_libfoo= libgroodah libpouet

Note that while I'm using libraries as an example here, it really has
nothing to do with the generated library files.  This is really saying
"build in directory libfoo after building in the libgroodah and libpouet
directories."

This updates lib/Makefile with dependency information based on the old
almost-accurate comment block and by combing through lib/* makefiles
looking for LDADD dependencies to other libraries within lib/*.

Reviewed by: Jia-Shiun Li <jiashiun@gmail.com>

10 years agoAdd very basic driver for 12-bit Analog to Digital Converter (ADC).
br [Sun, 15 Jun 2014 12:08:33 +0000 (12:08 +0000)]
Add very basic driver for 12-bit Analog to Digital Converter (ADC).

10 years agoDocument additional LUN/backend options.
mav [Sun, 15 Jun 2014 11:21:44 +0000 (11:21 +0000)]
Document additional LUN/backend options.

10 years agomdoc: remove superfluous paragraph macros.
joel [Sun, 15 Jun 2014 10:43:12 +0000 (10:43 +0000)]
mdoc: remove superfluous paragraph macros.

10 years agomdoc: add missing width argument to Bl -tag.
joel [Sun, 15 Jun 2014 10:40:54 +0000 (10:40 +0000)]
mdoc: add missing width argument to Bl -tag.

10 years agomdoc: remove superfluous paragraph macros.
joel [Sun, 15 Jun 2014 10:34:35 +0000 (10:34 +0000)]
mdoc: remove superfluous paragraph macros.

10 years agomdoc: use display block in the beginning of the EXAMPLES section.
joel [Sun, 15 Jun 2014 10:31:50 +0000 (10:31 +0000)]
mdoc: use display block in the beginning of the EXAMPLES section.

10 years agoFix date.
joel [Sun, 15 Jun 2014 10:18:57 +0000 (10:18 +0000)]
Fix date.

10 years agoFormat Portal Group Tag same as istgt does -- %4.4x instead of %x.
mav [Sun, 15 Jun 2014 10:04:44 +0000 (10:04 +0000)]
Format Portal Group Tag same as istgt does -- %4.4x instead of %x.

SPC-4 spec tells it should be "two or more hexadecimal digits".
RFC3720 tells it is 16-bit value.

MFC after: 2 weeks

10 years agoRemove custom processing for "file" option.
mav [Sun, 15 Jun 2014 09:37:06 +0000 (09:37 +0000)]
Remove custom processing for "file" option.

10 years agoRespect "vendor" option in all places.
mav [Sun, 15 Jun 2014 08:43:52 +0000 (08:43 +0000)]
Respect "vendor" option in all places.

MFC after: 2 weeks

10 years agoOne of the intentions behind r267254 was that the global variable "sgrowsiz"
alc [Sun, 15 Jun 2014 07:52:59 +0000 (07:52 +0000)]
One of the intentions behind r267254 was that the global variable "sgrowsiz"
would be read once and cached in a local variable so that the resource limit
check and map entry insertion would be guaranteed to use the same value.
However, the value being passed to vm_map_insert() is still from "sgrowsiz"
and not the local variable.  Correct this oversight.

Reviewed by: kib

10 years agoAdd "vendor", "product" and "revision" options to control inquiry data.
mav [Sun, 15 Jun 2014 06:56:10 +0000 (06:56 +0000)]
Add "vendor", "product" and "revision" options to control inquiry data.

MFC after: 2 weeks

10 years agoFix two issues:
delphij [Sun, 15 Jun 2014 05:07:01 +0000 (05:07 +0000)]
Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR: conf/190665
Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes)
MFC after: 2 weeks

10 years agoFix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
kib [Sun, 15 Jun 2014 05:01:35 +0000 (05:01 +0000)]
Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
sysarch(2) code.

Use M_ZERO instead of explicit bzero(9).  Do not check for failed
allocation when M_WAITOK is specified (which is specified always).
Use malloc(9) when allocating memory for the intermediate copy of the
user-supplied buffer.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoUse vn_io_fault for the writes from core dumping code. Recursing into
kib [Sun, 15 Jun 2014 04:51:53 +0000 (04:51 +0000)]
Use vn_io_fault for the writes from core dumping code.  Recursing into
VM due to copyin(9) faulting while VFS locks are held is
deadlock-prone there in the same way as for the write(2) syscall.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agopatch: unsign the line length to avoid overflows.
pfg [Sun, 15 Jun 2014 03:54:23 +0000 (03:54 +0000)]
patch: unsign the line length to avoid overflows.

Patch(1) uses a short int for the line length, which is usually
sufficient for regular diffs, but makes no effort to signal
when there is an overflow.

Change the line length to an unsigned short int to better use
the fact that a length is never negative.  The change is loosely
inspired on a related change in DragonFly, but we avoid spending
more memory than necessary.

While here adjust the messages to be clearer on what is happening.

MFC after: 1 week

10 years agoDon't check the dma map address for a static DMA mapping against NULL
bryanv [Sat, 14 Jun 2014 23:36:17 +0000 (23:36 +0000)]
Don't check the dma map address for a static DMA mapping against NULL
to determine if the mapping is valid.

Submitted by: jhb

10 years agoRemove send-pr, the supported interface to submit bugs is now via
gavin [Sat, 14 Jun 2014 20:36:32 +0000 (20:36 +0000)]
Remove send-pr, the supported interface to submit bugs is now via
https://bugs.freebsd.org/submit/

Removing send-pr also removes one more piece of non-BSD-licensed software.

Hat: bugmeister
MFC after: 3 days

10 years agoRemove non-functional remnants of control LUN -- 18MB of RAM for nothing.
mav [Sat, 14 Jun 2014 20:25:14 +0000 (20:25 +0000)]
Remove non-functional remnants of control LUN -- 18MB of RAM for nothing.

10 years agoWith the move away from GNATS, point end users to a better web page
gavin [Sat, 14 Jun 2014 18:45:40 +0000 (18:45 +0000)]
With the move away from GNATS, point end users to a better web page
detailing how to report bugs.

Hat: bugmeister
MFC after: 3 days

10 years agoStop telling people to use send-pr; instead point them towards Bugzilla.
gavin [Sat, 14 Jun 2014 18:43:48 +0000 (18:43 +0000)]
Stop telling people to use send-pr; instead point them towards Bugzilla.

Hat: bugmeister@
MFC after: 3 days

10 years agoImplement small KPI to access LUN options instead doing it by hands.
mav [Sat, 14 Jun 2014 17:47:44 +0000 (17:47 +0000)]
Implement small KPI to access LUN options instead doing it by hands.

MFC after: 2 weeks

10 years agoFix/improve fhe_stats sysctl output.
mav [Sat, 14 Jun 2014 12:26:12 +0000 (12:26 +0000)]
Fix/improve fhe_stats sysctl output.

MFC after: 2 weeks

10 years agoMFp4: change 1191346
brueffer [Sat, 14 Jun 2014 12:17:45 +0000 (12:17 +0000)]
MFp4: change 1191346

In print_header32_tok(), correct printing in the XML case.  This lead to
invalid XML files before.

PR: 176259
Submitted by: zi
MFC after: 3 days

10 years agoMFV of 267471, tzdata2014e
edwin [Sat, 14 Jun 2014 11:34:39 +0000 (11:34 +0000)]
MFV of 267471, tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

10 years agoShadow RAM support is apparently not at all working on the Intel 5300 Wifi.
adrian [Sat, 14 Jun 2014 06:54:03 +0000 (06:54 +0000)]
Shadow RAM support is apparently not at all working on the Intel 5300 Wifi.

Tested:

* Intel 5300 3x3 wifi
* Intel 5100

10 years agopatch: cleanup some unnecessary cruft.
pfg [Sat, 14 Jun 2014 01:58:33 +0000 (01:58 +0000)]
patch: cleanup some unnecessary cruft.

- Drop some bogus casts to size_t.
- The new_p_foo variables are not needed after r267426.

Pointed out by: bde
MFC after: 1 week

10 years agoUndo commit r267455, which was done in the wrong directory.
edwin [Sat, 14 Jun 2014 01:18:02 +0000 (01:18 +0000)]
Undo commit r267455, which was done in the wrong directory.

10 years agoSwitch release/Makefile knobs from WITHOUT_FOO=1 to MK_FOO=no.
gjb [Sat, 14 Jun 2014 01:03:24 +0000 (01:03 +0000)]
Switch release/Makefile knobs from WITHOUT_FOO=1 to MK_FOO=no.

This allows greater granular control over the release
build, and avoids WITH_FOO=1 and WITHOUT_FOO=1 collision.

This change was verified to produce correct results
compared to an earlier build by diffing find(1) output
of the resulting bootonly/, dvd/, and release/ directories.

Tested on: head@r267449
MFC after: 1 month
X-MFC-Note: Requires commits not yet MFC'd, so likely
longer than 1 month.
Sponsored by: The FreeBSD Foundation

10 years agoAdded:
shurd [Sat, 14 Jun 2014 00:10:10 +0000 (00:10 +0000)]
Added:

- my birthday

Approved by: db, skreuzer (mentors)

10 years agoVendor import of tzdata2014e changes
edwin [Fri, 13 Jun 2014 23:56:47 +0000 (23:56 +0000)]
Vendor import of tzdata2014e changes

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

Obtained from: ftp://ftp.iana.org/tz/releases/

10 years agoCorrect variable for loader tunable variable hw.mfi.mrsas_enable.
delphij [Fri, 13 Jun 2014 22:33:41 +0000 (22:33 +0000)]
Correct variable for loader tunable variable hw.mfi.mrsas_enable.

Submitted by: Sascha Wildner (DragonFly)
MFC after: 3 days

10 years ago- Don't check the dma map address for a static DMA mapping against NULL
jhb [Fri, 13 Jun 2014 19:40:02 +0000 (19:40 +0000)]
- Don't check the dma map address for a static DMA mapping against NULL
  to determine if the mapping is valid.
- Don't explicitly destroy the dmap map for static DMA mappings.

Reviewed by: adrian

10 years agoDon't check maps for static DMA allocations against NULL to see if an
jhb [Fri, 13 Jun 2014 19:34:34 +0000 (19:34 +0000)]
Don't check maps for static DMA allocations against NULL to see if an
allocation succeeded.  Instead, check the tag against NULL.

10 years agoAdd missing calls to bus_dmamap_unload() when freeing static DMA
jhb [Fri, 13 Jun 2014 18:20:44 +0000 (18:20 +0000)]
Add missing calls to bus_dmamap_unload() when freeing static DMA
allocations.

Reviewed by: scottl

10 years agoAdd Jung-uk Kim as co-maintainer of OpenSSL per discussion on
delphij [Fri, 13 Jun 2014 18:07:42 +0000 (18:07 +0000)]
Add Jung-uk Kim as co-maintainer of OpenSSL per discussion on
-developers and agreed by benl@.

10 years agoDon't install GSS-API headers when the GSSAPI option has been disabled.
tijl [Fri, 13 Jun 2014 10:08:18 +0000 (10:08 +0000)]
Don't install GSS-API headers when the GSSAPI option has been disabled.
Some ports assume GSS-API is supported when they find the headers.

PR: 189156
Submitted by: Garrett Cooper <yanegomi@gmail.com>

10 years agoAttach the CUSE library and kernel module to the default FreeBSD
hselasky [Fri, 13 Jun 2014 08:53:49 +0000 (08:53 +0000)]
Attach the CUSE library and kernel module to the default FreeBSD
builds. Bump the FreeBSD version number.

10 years ago- Make invalids variable local to do_conv such that it prints the number
tijl [Fri, 13 Jun 2014 08:44:03 +0000 (08:44 +0000)]
- Make invalids variable local to do_conv such that it prints the number
  of invalid characters of the current file instead of an accumulated
  value.
- Make do_conv return an error when invalid characters have been found.
  Return EXIT_FAILURE from main if any file contained invalid characters.
  This matches the behaviour of GNU iconv.
- Mark usage with __dead2 attribute.
- Make the long_options array const.

10 years agoiconv_open: initialise ci_ilseq_invalid field of _citrus_iconv_shared
tijl [Fri, 13 Jun 2014 08:36:10 +0000 (08:36 +0000)]
iconv_open: initialise ci_ilseq_invalid field of _citrus_iconv_shared
struct after allocation with malloc.

iconvlist: reduce a memory leak by copying strings only once.

10 years agoReplace malloc+memset with calloc.
tijl [Fri, 13 Jun 2014 08:28:51 +0000 (08:28 +0000)]
Replace malloc+memset with calloc.

10 years agoReplace malloc+memset with calloc.
tijl [Fri, 13 Jun 2014 08:26:53 +0000 (08:26 +0000)]
Replace malloc+memset with calloc.

10 years agoRevert r267424 and r267425:
gjb [Fri, 13 Jun 2014 00:05:06 +0000 (00:05 +0000)]
Revert r267424 and r267425:
  More exploration will be needed in order to silence the
  tinderbox mails caused by setting WITH_TESTS=1 by default.

Ref: http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-amd64-amd64.full
With hat: re

10 years agoFix some leaks on LUN creation error.
mav [Thu, 12 Jun 2014 21:50:46 +0000 (21:50 +0000)]
Fix some leaks on LUN creation error.

MFC after: 2 weeks

10 years agoAvoid zeroing during allocation.
pfg [Thu, 12 Jun 2014 19:01:57 +0000 (19:01 +0000)]
Avoid zeroing during allocation.

This change reverts a change from OpenBSD which made use of
calloc, and therefore wasted time initializing arrays that
will later be realloc'ed. Consistently use FreeBSD's
reallocf().

While here also merge the changes from OpenBSD's manpage
patch.1 Rev 1.27:
"patch was moved from user portability (UP) to base in issue 7
and is no longer optional"

MFC after: 1 week

10 years agoRegen after r267424 to replace WITH_TESTS with WITHOUT_TESTS.
jmmv [Thu, 12 Jun 2014 18:59:25 +0000 (18:59 +0000)]
Regen after r267424 to replace WITH_TESTS with WITHOUT_TESTS.

10 years agoEnable MK_TESTS by default.
jmmv [Thu, 12 Jun 2014 18:54:52 +0000 (18:54 +0000)]
Enable MK_TESTS by default.

This was never intended to be off by default but was done this way
because the initial patches broke the build.  Things seem stable now
(have been so for a while too) and "make tinderbox" is clean so let's
try again.

Announced in freebsd-current; all reported shortcomings have been
addressed.

10 years agoBuild vt(4) fonts during buildworld
emaste [Thu, 12 Jun 2014 18:31:32 +0000 (18:31 +0000)]
Build vt(4) fonts during buildworld

vtfontcvt(8) is now built during buildworld, so can be used as a
bootstrap tool to create vt(4) fonts from source .hex or .bdf font
files, rather than having uuencoded binary fonts in the tree.

Sponsored by: The FreeBSD Foundation

10 years agoFix a typo in note for r266209, pmcstat(8)
gjb [Thu, 12 Jun 2014 17:19:57 +0000 (17:19 +0000)]
Fix a typo in note for r266209, pmcstat(8)

Spotted by: emaste
Sponsored by: The FreeBSD Foundation

10 years agoclear the write bit... This allows my AVILA board to survive a
jmg [Thu, 12 Jun 2014 16:31:15 +0000 (16:31 +0000)]
clear the write bit...   This allows my AVILA board to survive a
portsnap extract, where previously it would panic..  clearly someone
who knows pmap should optimize this code per alc's comment...

Submitted by: alc
MFC after: probably

10 years agoAdd thin versions of VGAROM 8x8 and 8x16 fonts for vt(4)
emaste [Thu, 12 Jun 2014 15:23:51 +0000 (15:23 +0000)]
Add thin versions of VGAROM 8x8 and 8x16 fonts for vt(4)

These are converted from syscons(4) cp437-thin-8x* fonts.

10 years agoAdd myself to the calendar
rodrigo [Thu, 12 Jun 2014 14:20:58 +0000 (14:20 +0000)]
Add myself to the calendar

Approved by: bapt (mentor)

10 years ago- Fix out of range shifting bug in bitops.h.
hselasky [Thu, 12 Jun 2014 13:33:01 +0000 (13:33 +0000)]
- Fix out of range shifting bug in bitops.h.
- Make code a bit easier to read by adding parenthesis.

MFC after: 3 days
Sponsored by: Mellanox Technologies

10 years agoImplement simple direct-mapped cache for popular filesystem identifiers to
mav [Thu, 12 Jun 2014 12:43:48 +0000 (12:43 +0000)]
Implement simple direct-mapped cache for popular filesystem identifiers to
avoid congestion on global mountlist_mtx mutex in vfs_busyfs(), while
traversing through the list of mount points.

This change significantly improves NFS server scalability, since it had
to do this translation for every request, and the global lock becomes quite
congested.

This code is more optimized for relatively small number of mount points.
On systems with hundreds of active mount points this simple cache may have
many collisions.  But the original traversal code in that case should also
behave much worse, so we are not loosing much.

Reviewed by: attilio
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoIntroduce new "256 Bucket" zone to split requests and reduce congestion
mav [Thu, 12 Jun 2014 11:57:07 +0000 (11:57 +0000)]
Introduce new "256 Bucket" zone to split requests and reduce congestion
on "128 Bucket" zone lock.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.