Displaying 1 50 of 35,715 commits (0.014s)

DragonFlyBSD — sys/kern kern_event.c

Revert "kqueue: Avoid reprocessing processed knotes in KNOTE."

This reverts commit ed9db6a1912db34af387ff6978a265003258df16.

This cause panic under certain network load.

Reported-by: pavalos@
Delta File
+34 -113 sys/kern/kern_event.c
+34 -113 1 file

DragonFlyBSD — sys/kern kern_event.c

Revert "kqueue: Return value of knote_release is no longer useful."

This reverts commit b75b5648541ea38deaf678ee62466780ffe62374.

Prepare to revert ed9db6a1912db34af387ff6978a265003258df16, which causes
panic under certain network load.

Reported-by: pavalos@
Delta File
+9 -2 sys/kern/kern_event.c
+9 -2 1 file

DragonFlyBSD — sys/dev/drm/include/linux/gpio consumer.h

drm/linux: Add linux/gpio/consumer.h

DragonFlyBSD — sys/dev/drm/include/linux kernel.h

drm/linux: Define U64_MAX

DragonFlyBSD — sys/dev/drm/include/linux bitops.h

drm/linux: Add __test_and_clear_bit

Obtained-from: NetBSD
Delta File
+14 -0 sys/dev/drm/include/linux/bitops.h
+14 -0 1 file

DragonFlyBSD — sys/bus/gpio/gpio_intel gpio_cherryview.c gpio_intel.c

gpio_intel: Slightly simplify interface to chipset-specific code.

* The intidx value in struct pin_intr_map is slightly redundant at the
  moment, but it avoids needless lookups for now.

DragonFlyBSD — sys/dev/disk/dm device-mapper.c

sys/dev/disk/dm: Remove read/write support for /dev/mapper/control

It's obvious that /dev/mapper/control has nothing to read/write.
Running below results in kernel panic as the code requires properly
initialized a per-table lock while this chrdev has no tables mapped.
(control chrdev and dm blkdevs use the same dm device structures)

-----
 [root@]~# cat ./dm1.c
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 int main(void)
 {
         int fd;
         char buf[1024];
         fd = open("/dev/mapper/control", O_RDWR);
         if (fd == -1) {
                 perror("open");
                 exit(1);
         }
         if (read(fd, buf, sizeof(buf)) == -1)
                 perror("read");
         if (write(fd, buf, sizeof(buf)) == -1)

    [27 lines not shown]
Delta File
+8 -1 sys/dev/disk/dm/device-mapper.c
+8 -1 1 file

DragonFlyBSD — sys/bus/gpio gpio_if.m, sys/bus/gpio/gpio_acpi gpio_acpi.c

gpio_intel: Use a cookie object for gpio interrupt allocation as well.

* This tries to improve the gpio_if.m api, e.g. only the interrupt pin
  allocation can legitimately fail. The interrupt setup and teardown
  functions can't really fail for proper input values (and for bogus
  arguments it can just panic).

DragonFlyBSD — sys/bus/gpio gpio_if.m, sys/bus/gpio/gpio_acpi gpio_acpi.c

gpio_acpi: Introduce separate setup_intr and teardown_intr functions.

* This allows us to actually reserve the gpio pin before, and separately
  from actually setting up the interrupt handler.

* XXX This interface is still a bit inconvenient to use, because the
  code allows gpio_setup_intr to fail. Instead the gpio_alloc_intr
  function should be returning a cookie to use for gpio_setup_intr
  (which could obviously never fail then).

DragonFlyBSD — lib/libstand rpc.h

libstand: Fix -Wstrict-prototypes warning.
Delta File
+1 -1 lib/libstand/rpc.h
+1 -1 1 file

DragonFlyBSD — sys/boot/common dev_net.c

sys/boot: Fix a prototype (pointed out by zrj).
Delta File
+1 -1 sys/boot/common/dev_net.c
+1 -1 1 file

DragonFlyBSD — sys/boot/common dev_net.c, sys/boot/efi/libefi efi_console.c efinet.c

sys/boot: Ansify the remaining cases found by -Wold-style-definition.

DragonFlyBSD — sys/boot/common module.c dev_net.c

boot/common: Clean up, ansify some functions, remove unneeded statements.

* No functional changes.

* Change some int variables into size_t in boot/common/module.c.

* Use MAX macro.

DragonFlyBSD — sys/dev/drm/radeon radeon_state.c r600_cp.c

drm/radeon: Retire old UMS driver.

Cleanup before next, removed upstream.

DragonFlyBSD — sys/netinet tcp_var.h tcp_subr.c, usr.bin/netstat inet.c

tcp: Count connections by TCP state

Inspired-by: FreeBSD 'netstat -s -p tcp' output

DragonFlyBSD — sys/boot/common module.c

Use size_t to remove casts.

While there, perform some style(9) fixes.

No functional change.
Delta File
+21 -18 sys/boot/common/module.c
+21 -18 1 file

DragonFlyBSD — sys/kern vfs_syscalls.c

sys/kern: Add comment on unmounting
Delta File
+5 -0 sys/kern/vfs_syscalls.c
+5 -0 1 file

DragonFlyBSD — sys/netinet tcp_subr.c tcp_usrreq.c

tcp: No need to return tcpcb from tcp_newtcpcb()

DragonFlyBSD — sys/netinet tcp_usrreq.c

tcp: Remove redundant tcpcb state setting
Delta File
+0 -1 sys/netinet/tcp_usrreq.c
+0 -1 1 file

DragonFlyBSD — sbin/dhclient dhclient.c

dhclient: Log a warning instead of bailing upon "illegal" options

Obtained-from: FreeBSD  r298385
Delta File
+11 -10 sbin/dhclient/dhclient.c
+11 -10 1 file

DragonFlyBSD — share/zoneinfo asia europe

Sync zoneinfo database with tzdata2016d from ftp://ftp.iana.org/tz/releases

* America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

* Asia/Magadan switched from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

* New zone Asia/Tomsk, split off from Asia/Novosibirsk.  It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

* New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

* Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

* Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

    [2 lines not shown]

DragonFlyBSD — share/zoneinfo asia europe

Sync zoneinfo database with tzdata2016d from ftp://ftp.iana.org/tz/releases

* America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

* Asia/Magadan switched from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

* New zone Asia/Tomsk, split off from Asia/Novosibirsk.  It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

* New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

* Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

* Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

    [2 lines not shown]

DragonFlyBSD — share/examples/kld/firmware wrap-fw_module.sh README

examples: Add binary firmware wrapping reference script.

Mainly to keep base with dports synchronized.
Also could be used while developing drivers to quickly make
firmware modules for testing.

DragonFlyBSD — sys/boot/common module.c loader.8, sys/boot/dloader loader-bootp.conf loader.conf

boot/loader: Handle the /boot/modules.local

Weather /boot/modules.local is used during boot or by kldload(8)
is controlled by a new "local_modules" loader variable.

If local_modules is set to "YES", /boot/modules.local is also
appended to kern.module_path sysctl variable for use by kldload(8).
Setting variable to any other value disables that.

By default allow modules to searched in /boot/modules.local directory
since it does not shadow the default kernel modules and has lower
directory search priority.

DragonFlyBSD — etc/mtree BSD.root.dist, share/man/man7 hier.7

mtree: Create /boot/modules.local

Intended for external modules and firmware e.g. from dports or for
user driver testing to keep base system clean during development.

This directory does not get affected when upgrading base system.

DragonFlyBSD — sys/dev/netif/igb if_igb.c

igb: Fix MSI-X allocation when # of rings is less than # of cpus

Dragonfly-bug: http://bugs.dragonflybsd.org/issues/2902
Delta File
+10 -12 sys/dev/netif/igb/if_igb.c
+10 -12 1 file

DragonFlyBSD — share/man/man7 hier.7

hier.7: Add missing /etc/devd entry.

There is also empty /etc/X11 /etc/skell in BSD.root.dist
and documented /pfs/ not in BSD.root.dist
Delta File
+5 -1 share/man/man7/hier.7
+5 -1 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_gem_gtt.c

drm/i915: Remove a duplicated assignment

Noticed-by: davshao, issue #2903
Delta File
+0 -1 sys/dev/drm/i915/i915_gem_gtt.c
+0 -1 1 file

DragonFlyBSD — sys/conf files, sys/contrib/dev/acpica changes.txt

Sync ACPICA with Intel's version 20160422.

* Fixed AcpiHwRead/AcpiHwWrite regression from 20160318. It was
  insufficiently worked around by me in 3b9bfd22b87e14, but was
  still causing issues with qemu (as reported by zrj).

* Support for I2cSerialBusV2, SpiSerialBusV2 and UartSerialBusV2.
  The original non-V2 names are deprecated. V2 macros have one
  new argument.

* Support for new integer field in _BIX's returned package object.

* New PCCT subtable (HW-Reduced Comm Subspace Type2).

* Various improvements to iASL.

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

Tested-by: ivadasz, zrj

DragonFlyBSD — sys/vfs/tmpfs tmpfs_vnops.c

sys/vfs/tmpfs: Remove unused mount variables
Delta File
+0 -23 sys/vfs/tmpfs/tmpfs_vnops.c
+0 -23 1 file

DragonFlyBSD — sys/dev/agp agp_i810.c, sys/dev/drm/i915 i915_gem.c i915_gem_gtt.c

drm/i915/gem: Switch to the Linux scatterlist API

* We were previously using regular arrays of pointers to vm pages

* This change tremendously reduces differences with the Linux code
  and will make future evolutions of this driver easier to implement

* Remove some unused i915 agp functions while I'm here

DragonFlyBSD — sys/kern kern_intr.c

kernel - Reduce BSS size (3)

* Fix ordering issue in emergency interrupt thread management.  These
  routines may be called before objcache is operational, so we have to
  kmalloc() the thread structure manually.

Reported-by: jh32
Delta File
+8 -4 sys/kern/kern_intr.c
+8 -4 1 file

DragonFlyBSD — sys/ddb db_examine.c

kernel - Enhance the examine (x) command.

* Change x/a to work similar to gdb.  The content of the memory is
  treated as an address, printed symbolically and the address is advanced.
  This way you can x/a <stack_address> and then just hit return a bunch
  of times to locate useful data on the stack.

* Add x/p.  The content of the memory is treated as an address and
  printed as hex.
Delta File
+32 -26 sys/ddb/db_examine.c
+32 -26 1 file

DragonFlyBSD — sys/dev/disk/ahci ahci.c ahci_pm.c

ahci: Add and use AHCI_PREG_SCTL_IPM_NODEVSLP definition from ahci-1.3.1.

* The DevSleep interface power saving state was introduced with the
  ahci-1.3.1 specification. However actual DevSleep support needs to be
  recognized via the AHCI_REG_CAP2_SDS bit, since many controllers
  identifying as ahci-1.3 already support DevSleep.

* Since the correct bitmask to use in the AHCI_PREG_SCTL_IPM field
  for disabling all power-management features depends on DevSleep support,
  store that precomputed value in sc->sc_ipm_disable.

* Make some operations on the AHCI_PREG_SCTL_IPM_* bitfield a bit clearer.

* While there add AHCI_PREG_CMD_ICC_DEVSLEEP definition.

DragonFlyBSD — sys/kern usched_bsd4.c kern_timeout.c, sys/net if.c netisr.c

kernel - Reduce BSS size (2)

* Fix a bunch of other places in the kernel where large BSS arrays are
  declared.  Reduces the kernel image by another ~2MB or so on top of
  the ~6MB saved in the last commit.

* Primarily these are places where a 'struct thread' is being embedded
  in a structure which is being declared [MAXCPU].  With MAXCPU at 256
  the result is pretty bloated.  Changing the embedded thread to a
  thread pointer removes most of the bloat.
Delta File
+11 -11 sys/kern/usched_bsd4.c
+7 -7 sys/kern/kern_timeout.c
+7 -7 sys/kern/usched_dfly.c
+7 -7 sys/net/if.c
+6 -6 sys/net/netisr.c
+5 -5 sys/kern/kern_intr.c
+6 -6 2 files not shown
+49 -49 8 files

DragonFlyBSD — sys/kern kern_intr.c subr_cpu_topology.c, sys/platform/pc64/apic ioapic_abi.c

kernel - Reduce BSS size to fix loader initrd problem

* kernel + modules + initrd.img (unpacked) exceeded the 63MB the loader has
  available for load-time data.

* Top hogs are mainly in BSS.  Make intr_info_ary and pcpu_sysctl
  kmalloc after boot instead of BSS as a temporary fix.

    335872  ifnet_threads
    335872  netisr_cpu
    339968  dummy_pcpu
    344064  bsd4_pcpu
    344064  stoppcbs
    346112  softclock_pcpu_ary
    538624  cpu_topology_nodes
    755712  dfly_pcpu
    786432  icu_irqmaps
    958464  map_entry_init
    1048576 idt_arr
    1064960 pcpu_sysctl                <---- now kmallocd
    1179648 ioapic_irqmaps        <---- (used too early, cannot be kmallocd)
    5242880 intr_info_ary        <---- now kmallocd

* Should fix loader issues when trying to use initrd.img[.gz] for now.

Reported-by: Valheru

DragonFlyBSD — sys/dev/disk/ahci atascsi.h ahci.c

ahci: Clean up SET_FEATURES definitions. Add some power-mgmt definitions.

* The ATA_C_SATA_FEATURE_ENA and ATA_C_SATA_FEATURE_DIS definitions aren't
  ata commands themselves, they are subcommands of ATA_C_SET_FEATURES.

* Add definitions for device-initiated power-management and for the
  devsleep power-state (which isn't supported in DragonFly yet).

DragonFlyBSD — etc/mtree BSD.root.dist

mtree: Move pam.d to correct dirname order.

Reduces diffs when comparing with BSD.X.new
Delta File
+2 -2 etc/mtree/BSD.root.dist
+2 -2 1 file

DragonFlyBSD — sys/dev/drm drm_memory.c, sys/kern kern_slaballoc.c

kernel/linux: Move M_DRM definition to kern_slaballoc.c

Making it available to more than the drm subsystem

DragonFlyBSD — sys/dev/drm/radeon radeon_drv.c

drm/radeon: Add explicit dependency to the acpi module

Suggested-by: zrj
Delta File
+3 -0 sys/dev/drm/radeon/radeon_drv.c
+3 -0 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_drv.c

drm/i915: Add explicit dependency to the acpi module

Suggested-by: zrj
Delta File
+3 -0 sys/dev/drm/i915/i915_drv.c
+3 -0 1 file

DragonFlyBSD — sbin/gpt map.c gpt.8

gpt: Align partitions to 1MiB

Submitted-by: pascii, bug report #2830
Delta File
+11 -2 sbin/gpt/map.c
+6 -0 sbin/gpt/gpt.8
+17 -2 2 files

DragonFlyBSD — sys/boot/efi/boot1 boot1.c

efi/boot1: Fix best text mode detection.

According to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL QueryMode() specs
Mode 0 is 80x25 and Mode 1 is 80x50, rest of device supported
modes follow as modes 2 and above. In case when device does not
support Mode 1, querying for it will return EFI_UNSUPPORTED.

Tested-on: Toshiba laptop w/o Mode 1 support.
Delta File
+7 -2 sys/boot/efi/boot1/boot1.c
+7 -2 1 file

DragonFlyBSD — sys/kern vfs_subr.c

sys/kern: Fix mountctl options list

Add some minor mount flags that are missing in vfs_flagstostr().
MNT_IGNORE should be ignored since the purpose of this flag is to ignore.
Delta File
+15 -11 sys/kern/vfs_subr.c
+15 -11 1 file

DragonFlyBSD — sys/boot/efi/loader main.c autoload.c

sys/boot/efi/loader: Make module autoloading work as in pc32/loader.

* For now keep sys/boot/efi/loader/autoload.c around, but we just
  use i386_module() from sys/boot/pc32/libi386/i386_module.c.

DragonFlyBSD — sbin/hammer cmd_info.c

    sbin/hammer: Use printf() instead of fprintf(stdout)
    
    Follow sbin/hammer's coding style (as well as C in general).
    
     # grep "fprintf(stdout" sbin/hammer -riI
     sbin/hammer/cmd_info.c:                                         fprintf(stdout, 
"\n");
     sbin/hammer/cmd_info.c:                         fprintf(stdout, "No mounted HAMMER 
filesystems found\n");
     sbin/hammer/cmd_info.c:                 fprintf(stdout, "No mounted filesystems 
found\n");
     sbin/hammer/cmd_info.c: fprintf(stdout, "Volume identification\n");
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tLabel               %s\n", fip->vol_name);
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tNo. Volumes         %d\n", fip->nvolumes);
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tHAMMER Volumes      ");
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tRoot Volume         %s\n", rootvol);
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tFSID                %s\n", fsid);
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tHAMMER Version      %d\n", fip->version);
     sbin/hammer/cmd_info.c: fprintf(stdout, "Big-block information\n");
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tTotal      %10jd\n", 
(intmax_t)fip->bigblocks);
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tUsed       %10jd (%.2lf%%)\n"
     sbin/hammer/cmd_info.c: fprintf(stdout, "Space information\n");
     sbin/hammer/cmd_info.c: fprintf(stdout, "\tNo. Inodes %10jd\n", 
(intmax_t)fip->inodes);

    [12 lines not shown]
Delta File
+34 -35 sbin/hammer/cmd_info.c
+34 -35 1 file

DragonFlyBSD — sbin/hammer cmd_info.c

sbin/hammer: Add no hammer found message if not mounted

The local variable 'first' being non-zero after the loop means
none of them were hammer.
Delta File
+2 -0 sbin/hammer/cmd_info.c
+2 -0 1 file

DragonFlyBSD — sbin/mount_hammer mount_hammer.c

    sbin/mount_hammer: Remove duplicated MOPT_UPDATE macro definition
    
    include/mntopts.h has this for getmntopts(3).
    
    mount_dirfs(8) has this too probably because it's been copy-pasted
    from mount_hammer(8) though this commit doesn't touch that.
    (the one in mount_devfs(8) is if0'd)
    
     # grep MOPT_UPDATE . -riI | grep define
     ./contrib/smbfs/mount_smbfs/mntopts.h:#define MOPT_UPDATE               { "update",   
  0, MNT_UPDATE, 0 }
     ./include/mntopts.h:#define MOPT_UPDATE         { "update",     0, MNT_UPDATE, 0 }
     ./sbin/mount_devfs/mount_devfs.c:#define MOPT_UPDATE         { "update",     0, 
MNT_UPDATE, 0 }
     ./sbin/mount_dirfs/mount_dirfs.c:#define MOPT_UPDATE         { "update",     0, 
MNT_UPDATE, 0 }
     ./sbin/mount_hammer/mount_hammer.c:#define MOPT_UPDATE         { "update",     0, 
MNT_UPDATE, 0 }
Delta File
+0 -2 sbin/mount_hammer/mount_hammer.c
+0 -2 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c

drm/i915/gem: Update i915_gem_fault()

Reducing differences with Linux 4.2
Delta File
+68 -12 sys/dev/drm/i915/i915_gem.c
+68 -12 1 file

DragonFlyBSD — sys/dev/drm/include/linux dma-mapping.h

drm/linux: Add dma_map_sg and dma_unmap_sg()