Displaying 1 50 of 280,702 commits (0.064s)

FreeBSD — head/sys/arm/conf YYHD18, head/sys/boot/fdt/dts/arm yyhd18-m3.dts meson3.dtsi

Add kernel config and dts files for an aml8726-m3
based device.
Following u-boot commands allow FreeBSD boot on
Yiyate Android TV Box (aml8726-m3):

tv open 480p
mmc rescan 0
fatload mmc 0 0x80100000 kernel.bin
go 0x80100000

The current FreeBSD driver doesn't program the video
clocks so the u-boot tv command is necessary in order
for the frame buffer to be useful (otherwise it can
be skipped).

The SD card for the Yiyate Android TV Box doesn't need
anything special beyond creating a FAT16 and a UFS
filesystem.

Differential Revision:        https://reviews.freebsd.org/D2636
Submitted by:        John Wehle

FreeBSD — head/sys/dev/acpi_support acpi_ibm.c, head/sys/dev/gpio gpioled.c

This implements default-state support as described in:

https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-gpio.txt

Without this booting the VSATV102 causes the blue "working" led to turn
off when the kernel starts up. With this the led (which is turned on by
the firmware) stays on since that's the default state specified in the FDT.

Expanded the meaning of the led_create_state state parameter in order
to implement support for "keep". The original values were:

== 0             Off
!= 0             On

The new values are:

== -1            don't change / keep current setting
== 0             Off
!= -1 && != 0    On

This should have no effect on acpi_asus_attach which only calls
led_create_state with state set to 1. Updated acpi_ibm_attach
in order to avoid surprises.

Differential Revision:        https://reviews.freebsd.org/D2615

    [2 lines not shown]

FreeBSD — stable/10/sys/amd64/linux32 linux32_machdep.c, stable/10/sys/compat/freebsd32 freebsd32_misc.c

MFC r282708:
On exec, single-threading must be enforced before arguments space is
allocated from exec_map.

FreeBSD — user/ngie/fix-progs/sys/boot/fdt/dts/arm vsatv102-m6.dts

MFhead @ r283357

FreeBSD — head/tools/regression file

Remove directory for test that has been integrated in under tests/sys/...

X-MFC with: r282067
MFC after: 1 week
Delta File
+0 -0 head/tools/regression/file/
+0 -0 1 file

FreeBSD — user/ngie/fix-progs/tools/regression file

Remove directory for test that has been integrated in under
tests/sys/...
Delta File
+0 -0 user/ngie/fix-progs/tools/regression/file/
+0 -0 1 file

FreeBSD — user/ngie checkdpadd-fixes

Prune branch that is no longer really relevant

Most of this has been either integrated in previously, fixed via LIBADD, or
will be fixed via LIBADD
Delta File
+0 -0 user/ngie/checkdpadd-fixes/
+0 -0 1 file

FreeBSD — user/ngie optional-require

Prune branch that I haven't done any work on
Delta File
+0 -0 user/ngie/optional-require/
+0 -0 1 file

FreeBSD — user/ngie/more-tests ObsoleteFiles.inc Makefile.inc1, user/ngie/more-tests/bin/chflags chflags.c chflags.1

MFhead @ r283351

FreeBSD — head/sys/boot/fdt/dts/arm vsatv102-m6.dts

Enable leds for VSATV102 in dts.

Differential Revision:         https://reviews.freebsd.org/D2614
Submitted by:        John Wehle

FreeBSD — user/ngie/fix-progs ObsoleteFiles.inc Makefile.inc1, user/ngie/fix-progs/bin/chflags chflags.c chflags.1

MFhead @ r283350

FreeBSD — stable/10/sys/dev/sfxge sfxge_tx.c

MFC: r283278

sfxge: relax assertion to allow RST flag in TSO packets

Kernel under stress load, mixed MC reboot and sfupdate really
generates TSO packet with RST flag.
It will generate many TCP packets with RST flag set.
May be RST flag should be set in the last segment only, but it could be
dropped. So, it is safer to keep the flag in all packets to be sure that
connection is reset.

Sponsored by:   Solarflare Communications, Inc.

FreeBSD — stable/10/sys/cam cam_periph.c cam_xpt.c

MFC r279554:

Make periphdriver_register() take XPT lock when modifying the periph_drivers
array.

This fixes a panic that sometimes occured when kldloading ctl.ko.

PR:                200384
Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/bmake/share/mk sys.mk

Add options for auto obj and meta mode to sys.mk
Delta File
+22 -2 projects/bmake/share/mk/sys.mk
+22 -2 1 file

FreeBSD — projects/bmake/share/mk local.sys.mk

Move include of auto.obj.mk to sys.mk

FreeBSD — projects/bmake/share/mk Makefile

Add files to install
Delta File
+7 -0 projects/bmake/share/mk/Makefile
+7 -0 1 file

FreeBSD — stable/10/release Makefile.ec2

MFC r283252:
  Include the TARGET in the EC2 AMI name.

  Without this, AWS rejects subsequent image uploads of a different
  architecture because the name conflicts.

Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 stable/10/release/Makefile.ec2
+2 -2 1 file

FreeBSD — stable/10/share/man/man3 pthread_getspecific.3

MFC r283093:

Added description of POSIX-specified behavior when invoked on a key from within that key's 
destructor.

FreeBSD — stable/10/sys/dev/netmap netmap_mem2.c

MFC r282978:

When a netmap process terminates without the full set of buffers it
was granted via rings and ni_bufs_list_head represented in those rings
and lists (e.g., via SIGKILL), those buffers are no longer available
for subsequent users for the lifetime of the system. To mitigate this
resource leak, reset the allocator state when the last ref to that
allocator is released.

Note that this only recovers leaked resources for an allocator when
there are no longer any users of that allocator, so there remain
circumstances in which leaked allocator resources may not ever be
recovered - consider a set of multiple netmap processes that are all
using the same allocator (say, the global allocator) where members of
that set may be killed and restarted over time but at any given point
there is one member of that set running.
Delta File
+67 -16 stable/10/sys/dev/netmap/netmap_mem2.c
+67 -16 1 file

FreeBSD — stable/10/share/man/man4 ucom.4

MFC r280221:

  Update ucom(4) with information about the new PPS capture abilities.
Delta File
+27 -4 stable/10/share/man/man4/ucom.4
+27 -4 1 file

FreeBSD — stable/10/sys/dev/usb/serial usb_serial.c uftdi.c, stable/10/sys/kern kern_tc.c

MFC r279728, r279729, r279756, r279773, r282424, r281367:

  Add mutex support to the pps_ioctl() API in the kernel.

  Add PPS support to USB serial drivers.

  Use correct mode variable for PPS support.

  Switch polarity of USB serial PPS events.

  The ftdi "get latency" and "get bitmode" device commands are read
  operations, not writes.

  Implement a mechanism for making changes in the kernel<->driver PPS
  interface without breaking ABI or API compatibility with existing drivers.

  Bump version number to indicate the new PPS ABI version changes in the
  pps_state structure.

FreeBSD — stable/10/sys/arm/mv/armadaxp armadaxp_mp.c mptramp.S

MFC r262409, r267129, r267130, r280709:

  Move the declaration for mpentry() into a header file

  Fix broken SMP startup on Armada XP after r265694

  Avoid using hard-coded SoC's register address in mptramp code for Armada XP

  Use pmap_mapdev()/unmapdev() to temporarily map on-chip sram while copying
  the startup trampoline code.

FreeBSD — stable/10/sys/arm/arm sys_machdep.c swtch.S, stable/10/sys/arm/include vmparam.h

MFC r280278, r280402:

  Allow to override default kernel virtual address assignment on ARM.

  Do not save/restore the TLS pointer on context switch for armv6.

FreeBSD — stable/10/sys/arm/ti/am335x am335x_dmtimer.c, stable/10/sys/arm/ti/omap4 omap4_prcm_clks.c

MFC r279816, r279826:

  Attach the prcm clock driver early, so it can set the mpcore timer frequency.

  Change the name of the dmtimer pps device from /dev/ppsN to /dev/dmtppsN.

FreeBSD — head/sys/arm/arm autoconf.c

Fix a lock up where we enter swapper() with interrupts disabled.

In smp_rendezvous_cpus we expect to wait for all cpus to enter
smp_rendezvous_action. If we call this holding a proc lock swapper may
attempt to also lock it, however as interrupts are disabled the cpu never
handles the ipi. Because smp_rendezvous_action waits for all signaled
cpus before contining it may get caught waiting for the cpu running swapper
as the proc mutex will be unlocked after smp_rendezvous_cpus finishes.

The fix is to enable interrupts in the configure stage as we should be
doing.

MFC after:        1 week
Delta File
+1 -0 head/sys/arm/arm/autoconf.c
+1 -0 1 file

FreeBSD — stable/10/sys/arm/arm cpuinfo.c cpufunc_asm_armv7.S, stable/10/sys/arm/include cpu-v6.h cpuinfo.h

MFC r279810, r279811:

  Clean data cache before instruction cache in armv7_icache_sync_range().

  Add minimum cache line sizes to struct cpuinfo, use them in the new cache
  maintenance routines.  Also add a routine to invalidate the branch cache.

FreeBSD — stable/10/sys/arm/arm cpufunc_asm_armv7.S cpufunc.c, stable/10/sys/arm/include armreg.h

MFC r278518: Resolve cache line size from CP15 instead of hard-coded 32.

FreeBSD — stable/10/sys/arm/arm gic.c, stable/10/sys/dev/fdt simplebus.c

MFC r277098, r279235:

  Introduce ofw_bus_reg_to_rl() to replace part of common bus code

  Fix endianness on FDT read in ARM GIC

FreeBSD — stable/10/sys/kern kern_cons.c

MFC r274711:

 Stop using early_putc immediately after configuring console with cninit()
Delta File
+7 -0 stable/10/sys/kern/kern_cons.c
+7 -0 1 file

FreeBSD — stable/10/sys/arm/arm gic.c, stable/10/sys/arm/mv mv_pci.c

MFC r274249, r274484, r275583:

  Avoid panic in ofwbus caused by not released resource list entry

  Fix typo in ARM GIC device_printf()

  Fix buffer overflow in Marvell PCI/PCIe driver

FreeBSD — head/sys/arm/arm mp_machdep.c

Use the wait-for-event instruction to put the core we have just enabled
to sleep while it waits to start scheduling. The boot core can then use
the send-event instruction to wake the cores when they should enter the
scheduler.

MFC after:        1 week
Delta File
+9 -2 head/sys/arm/arm/mp_machdep.c
+9 -2 1 file

FreeBSD — head/sys/fs/nfsclient nfs_clrpcops.c

The NFS client generated directory block(s) with d_fileno == 0
so that it would not return less data than requested.
Since returning less directory data than requested is not a problem
for FreeBSD and even UFS no longer returns directory structures
with d_fileno == 0, this patch stops the client from doing this.
Although entries with d_fileno == 0 should not be a problem,
the man pages no longer document that these entries should be
ignored, so there was a concern that these entries might be an
issue in the future.

Suggested by:        trasz
Tested by:        trasz
MFC after:        2 weeks
Delta File
+0 -38 head/sys/fs/nfsclient/nfs_clrpcops.c
+0 -38 1 file

FreeBSD — stable/10/sys/arm/ti aintc.c

MFC r276021, r279766:

  Reduce the diff in the Ti aintc between head and arm_intrng

  Fix spurious interrupts on arm am335x (beaglebone), by doing the EOI in
  both the post-filter and post-thread callbacks.
Delta File
+29 -20 stable/10/sys/arm/ti/aintc.c
+29 -20 1 file

FreeBSD — head/sys/sys proc.h

Update P_TOTAL_STOP commentary.
Delta File
+1 -1 head/sys/sys/proc.h
+1 -1 1 file

FreeBSD — stable/10/sys/arm/at91 uart_dev_at91usart.c uart_bus_at91usart.c, stable/10/sys/arm/freescale/vybrid vf_uart.c

MFC r279723, r279724:

  Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full
  (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART
  class only.

  Move the uart_class definitions and fdt compat data into the individual
  uart implementations, and export them using the new linker-set mechanism.

FreeBSD — stable/10/sys/sys linker_set.h cdefs.h

MFC r268137, r268138:

  Define a "__weak" macro for declaring symbols "weak".

  Add support for empty data sets. Data set begin and end pointers
  should resolve to "NULL" when not present. This is done by declaring
  the data set begin and end symbols as "weak".

FreeBSD — user/pho/stress2/misc pthread9.sh

Added a regression test.

Sponsored by:         EMC / Isilon storage division
Delta File
+185 -0 user/pho/stress2/misc/pthread9.sh
+185 -0 1 file

FreeBSD — stable/10/sys/dev/uart uart_dev_pl011.c

MFC r279239:

  Enable 'receive timeout' interrupt allowing us to not
  loose 'rx buffer full' event.
Delta File
+25 -10 stable/10/sys/dev/uart/uart_dev_pl011.c
+25 -10 1 file

FreeBSD — stable/10/sys/arm/samsung/exynos exynos_uart.c, stable/10/sys/dev/uart uart_bus_fdt.c uart.h

MFC r277132: Rename Exynos UART driver functions. No functional change.

FreeBSD — stable/10/sys/arm/samsung/exynos exynos_uart.c uart.c

MFC r266942, r266944:

  Do only receive chars if there are some data in the buffer.
  This fixes operation on newer Exynos boards.

  Rename exynos uart driver filenames.

FreeBSD — stable/10/sys/dev/uart uart_dev_msm.c uart_dev_msm.h

MFC r272399, r272602, r274451, r274452:

  Add uart driver for Qualcomm MSM 7000/8000 series chips.
  It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

  Use documented compat string for msm uart.

  Make PL011 UART to wait on putc only when TX FIFO is full

  Make uart_bus_fdt a decendant of ofwbus

FreeBSD — head/sys/kern kern_thread.c

If thread requested to not stop on non-boundary, then not only
stopping signals should obey, but also all forms of single-threading.
Otherwise, thread might sleep interruptible while owning some
resources, and single-threading thread could try to access them.
An example is owning vnode lock while dumping core.

Submitted by:        Conrad Meyer
Review:        https://reviews.freebsd.org/D2612
Tested by:        pho
MFC after:        1 week
Delta File
+2 -5 head/sys/kern/kern_thread.c
+2 -5 1 file

FreeBSD — stable/10/sys/arm/arm physmem.c

MFC r279702: Update a comment that had drifted out of date.
Delta File
+1 -1 stable/10/sys/arm/arm/physmem.c
+1 -1 1 file

FreeBSD — stable/10/sys/dev/mmc mmc.c, stable/10/sys/dev/sdhci sdhci.c

MFC r279359, r279360:

For new eMMC chips, we must signal controller HC capability in OP_COND command.

Detect, report and use 8-bit bus if is available.

FreeBSD — stable/10/sys/arm/arm cpuinfo.c cpufunc_asm_armv7.S, stable/10/sys/arm/include atomic.h

MFC r278770, r279114, r279215, r279338, r279543:

  Add logic for handling new-style ARM cpu ID info.

  Correct a comment which was exactly backwards from reality.

  There is no reason to do i+dcache writeback and invalidate when changing
  the translation table (this may be left over from armv5 days).  It's
  especially bad to do so using a cache operation that isn't coherent on
  SMP systems.

  Add casting to make atomic ops work for pointers.  (Apparently nobody has
  ever done atomic ops on pointers before now on arm).

  Revert incorrect casting.

FreeBSD — head/sys/mips/mips pmap.c

Simplify the allocation of page table pages for mips64.  Specifically,
when allocation fails, it suffices to perform VM_WAIT.  The direct map
covers the entirely of physical memory, so unlike 32-bit mips any
physical page can be used as a page table page.
Delta File
+1 -1 head/sys/mips/mips/pmap.c
+1 -1 1 file

FreeBSD — head/sys/ddb db_watch.c db_run.c

ddb:  de-register

FreeBSD — head/sys/arm/ti/omap4 omap4var.h, head/sys/arm/ti/omap4/pandaboard pandaboard.c

Remove an unused header.

FreeBSD — head/sys/net80211 ieee80211_output.c ieee80211_wds.c

Properly update TX statistics for wlan(4).
ieee80211_pwrsave() can fail due to queue overflow, check its return code
and increment oerrors counter when it fails. Also handle more error cases
and update oerrors counter when we don't send mbuf due to some errors.
Return ENETDOWN when parent interface isn't ready. Update obytes and omcasts
counters in corresponding places.

PR:                184626
Differential Revision:        https://reviews.freebsd.org/D2621
Reviewed by:        adrian
MFC after:        1 week

FreeBSD — stable/10/bin/pkill/tests pkill-j_test.sh pgrep-j_test.sh

Merge: 278618 278633 278636 278653 278742 278776 279121

Multiple fixes for pgrep and pkill tests.

PR: 19109