From owner-svn-src-head@freebsd.org Sun Nov 26 02:00:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9337DF7ED5; Sun, 26 Nov 2017 02:00:45 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27995785C0; Sun, 26 Nov 2017 02:00:45 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ20iLm056342; Sun, 26 Nov 2017 02:00:44 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ20X3q056232; Sun, 26 Nov 2017 02:00:33 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711260200.vAQ20X3q056232@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Sun, 26 Nov 2017 02:00:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326219 - in head/lib: csu/amd64 csu/arm csu/common csu/mips csu/powerpc csu/powerpc64 csu/sparc64 libarchive libbluetooth libbsdstat libc_nonshared libcalendar libcam libcompat/4.1 lib... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/lib: csu/amd64 csu/arm csu/common csu/mips csu/powerpc csu/powerpc64 csu/sparc64 libarchive libbluetooth libbsdstat libc_nonshared libcalendar libcam libcompat/4.1 libcrypt libdevinfo libdevst... X-SVN-Commit-Revision: 326219 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 02:00:45 -0000 Author: pfg Date: Sun Nov 26 02:00:33 2017 New Revision: 326219 URL: https://svnweb.freebsd.org/changeset/base/326219 Log: lib: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/lib/csu/amd64/crt1.c head/lib/csu/arm/crt1.c head/lib/csu/common/crtbrand.c head/lib/csu/common/ignore_init.c head/lib/csu/common/notes.h head/lib/csu/mips/crt1.c head/lib/csu/powerpc/crt1.c head/lib/csu/powerpc64/crt1.c head/lib/csu/sparc64/crt1.c head/lib/libarchive/config_freebsd.h head/lib/libbluetooth/bluetooth.c head/lib/libbluetooth/bluetooth.h head/lib/libbluetooth/dev.c head/lib/libbluetooth/hci.c head/lib/libbsdstat/bsdstat.c head/lib/libbsdstat/bsdstat.h head/lib/libc_nonshared/__stub.c head/lib/libcalendar/calendar.c head/lib/libcalendar/calendar.h head/lib/libcalendar/easter.c head/lib/libcam/camlib.c head/lib/libcompat/4.1/ftime.c head/lib/libcrypt/crypt-md5.c head/lib/libcrypt/crypt-nthash.c head/lib/libcrypt/crypt-sha256.c head/lib/libcrypt/crypt-sha512.c head/lib/libcrypt/crypt.c head/lib/libcrypt/crypt.h head/lib/libdevinfo/devinfo.c head/lib/libdevinfo/devinfo.h head/lib/libdevinfo/devinfo_var.h head/lib/libdevstat/devstat.c head/lib/libdevstat/devstat.h head/lib/libfetch/common.c head/lib/libfetch/common.h head/lib/libfetch/fetch.c head/lib/libfetch/fetch.h head/lib/libfetch/file.c head/lib/libfetch/ftp.c head/lib/libfetch/http.c head/lib/libgeom/geom_ctl.c head/lib/libgeom/geom_getxml.c head/lib/libgeom/geom_stats.c head/lib/libgeom/geom_util.c head/lib/libgeom/geom_xml2tree.c head/lib/libgeom/libgeom.h head/lib/libgssapi/context.h head/lib/libgssapi/cred.h head/lib/libgssapi/gss_accept_sec_context.c head/lib/libgssapi/gss_acquire_cred.c head/lib/libgssapi/gss_add_cred.c head/lib/libgssapi/gss_add_oid_set_member.c head/lib/libgssapi/gss_canonicalize_name.c head/lib/libgssapi/gss_compare_name.c head/lib/libgssapi/gss_context_time.c head/lib/libgssapi/gss_create_empty_oid_set.c head/lib/libgssapi/gss_decapsulate_token.c head/lib/libgssapi/gss_delete_sec_context.c head/lib/libgssapi/gss_display_name.c head/lib/libgssapi/gss_duplicate_name.c head/lib/libgssapi/gss_duplicate_oid.c head/lib/libgssapi/gss_encapsulate_token.c head/lib/libgssapi/gss_export_name.c head/lib/libgssapi/gss_export_sec_context.c head/lib/libgssapi/gss_get_mic.c head/lib/libgssapi/gss_import_name.c head/lib/libgssapi/gss_import_sec_context.c head/lib/libgssapi/gss_indicate_mechs.c head/lib/libgssapi/gss_init_sec_context.c head/lib/libgssapi/gss_inquire_context.c head/lib/libgssapi/gss_inquire_cred.c head/lib/libgssapi/gss_inquire_cred_by_mech.c head/lib/libgssapi/gss_inquire_mechs_for_name.c head/lib/libgssapi/gss_inquire_names_for_mech.c head/lib/libgssapi/gss_inquire_sec_context_by_oid.c head/lib/libgssapi/gss_krb5.c head/lib/libgssapi/gss_mech_switch.c head/lib/libgssapi/gss_names.c head/lib/libgssapi/gss_pname_to_uid.c head/lib/libgssapi/gss_process_context_token.c head/lib/libgssapi/gss_release_buffer.c head/lib/libgssapi/gss_release_cred.c head/lib/libgssapi/gss_release_name.c head/lib/libgssapi/gss_release_oid_set.c head/lib/libgssapi/gss_seal.c head/lib/libgssapi/gss_sign.c head/lib/libgssapi/gss_test_oid_set_member.c head/lib/libgssapi/gss_unseal.c head/lib/libgssapi/gss_unwrap.c head/lib/libgssapi/gss_utils.c head/lib/libgssapi/gss_verify.c head/lib/libgssapi/gss_verify_mic.c head/lib/libgssapi/gss_wrap.c head/lib/libgssapi/gss_wrap_size_limit.c head/lib/libgssapi/mech_switch.h head/lib/libgssapi/name.h head/lib/libgssapi/spnego.h head/lib/libgssapi/utils.h head/lib/libiconv_modules/BIG5/citrus_big5.h head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.h head/lib/libiconv_modules/EUC/citrus_euc.h head/lib/libiconv_modules/EUCTW/citrus_euctw.c head/lib/libiconv_modules/EUCTW/citrus_euctw.h head/lib/libiconv_modules/GBK2K/citrus_gbk2k.c head/lib/libiconv_modules/GBK2K/citrus_gbk2k.h head/lib/libiconv_modules/HZ/citrus_hz.c head/lib/libiconv_modules/HZ/citrus_hz.h head/lib/libiconv_modules/ISO2022/citrus_iso2022.c head/lib/libiconv_modules/ISO2022/citrus_iso2022.h head/lib/libiconv_modules/JOHAB/citrus_johab.c head/lib/libiconv_modules/JOHAB/citrus_johab.h head/lib/libiconv_modules/MSKanji/citrus_mskanji.c head/lib/libiconv_modules/MSKanji/citrus_mskanji.h head/lib/libiconv_modules/UES/citrus_ues.c head/lib/libiconv_modules/UES/citrus_ues.h head/lib/libiconv_modules/UTF1632/citrus_utf1632.c head/lib/libiconv_modules/UTF1632/citrus_utf1632.h head/lib/libiconv_modules/UTF7/citrus_utf7.c head/lib/libiconv_modules/UTF7/citrus_utf7.h head/lib/libiconv_modules/UTF8/citrus_utf8.h head/lib/libiconv_modules/VIQR/citrus_viqr.c head/lib/libiconv_modules/VIQR/citrus_viqr.h head/lib/libiconv_modules/ZW/citrus_zw.c head/lib/libiconv_modules/ZW/citrus_zw.h head/lib/libiconv_modules/iconv_none/citrus_iconv_none.c head/lib/libiconv_modules/iconv_none/citrus_iconv_none.h head/lib/libiconv_modules/iconv_std/citrus_iconv_std.c head/lib/libiconv_modules/iconv_std/citrus_iconv_std.h head/lib/libiconv_modules/iconv_std/citrus_iconv_std_local.h head/lib/libiconv_modules/mapper_646/citrus_mapper_646.c head/lib/libiconv_modules/mapper_646/citrus_mapper_646.h head/lib/libiconv_modules/mapper_none/citrus_mapper_none.c head/lib/libiconv_modules/mapper_none/citrus_mapper_none.h head/lib/libiconv_modules/mapper_serial/citrus_mapper_serial.c head/lib/libiconv_modules/mapper_serial/citrus_mapper_serial.h head/lib/libiconv_modules/mapper_std/citrus_mapper_std.c head/lib/libiconv_modules/mapper_std/citrus_mapper_std.h head/lib/libiconv_modules/mapper_std/citrus_mapper_std_file.h head/lib/libiconv_modules/mapper_std/citrus_mapper_std_local.h head/lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c head/lib/libiconv_modules/mapper_zone/citrus_mapper_zone.h head/lib/libjail/jail.c head/lib/libjail/jail.h head/lib/libjail/jail_getid.c head/lib/libkiconv/kiconv_sysctl.c head/lib/libkiconv/quirks.c head/lib/libkiconv/quirks.h head/lib/libkiconv/xlat16_iconv.c head/lib/libkvm/kvm_getswapinfo.c head/lib/libkvm/kvm_minidump_amd64.c head/lib/libkvm/kvm_minidump_arm.c head/lib/libkvm/kvm_minidump_i386.c head/lib/libkvm/kvm_minidump_mips.c head/lib/libkvm/kvm_vnet.c head/lib/libmemstat/memstat.c head/lib/libmemstat/memstat.h head/lib/libmemstat/memstat_all.c head/lib/libmemstat/memstat_internal.h head/lib/libmemstat/memstat_malloc.c head/lib/libmemstat/memstat_uma.c head/lib/libmp/mpasbn.c head/lib/libnandfs/libnandfs.h head/lib/libnandfs/nandfs.c head/lib/libnetbsd/rmd160.h head/lib/libnetbsd/sha1.h head/lib/libnetbsd/sha2.h head/lib/libnetbsd/stdlib.h head/lib/libnetbsd/strsuftoll.c head/lib/libnetbsd/util.c head/lib/libnv/common_impl.h head/lib/libnv/msgio.c head/lib/libnv/msgio.h head/lib/libpam/libpam/security/pam_mod_misc.h head/lib/libpam/modules/pam_chroot/pam_chroot.c head/lib/libpam/modules/pam_deny/pam_deny.c head/lib/libpam/modules/pam_echo/pam_echo.c head/lib/libpam/modules/pam_exec/pam_exec.c head/lib/libpam/modules/pam_ftpusers/pam_ftpusers.c head/lib/libpam/modules/pam_group/pam_group.c head/lib/libpam/modules/pam_guest/pam_guest.c head/lib/libpam/modules/pam_ksu/pam_ksu.c head/lib/libpam/modules/pam_login_access/pam_login_access.c head/lib/libpam/modules/pam_login_access/pam_login_access.h head/lib/libpam/modules/pam_nologin/pam_nologin.c head/lib/libpam/modules/pam_opie/pam_opie.c head/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c head/lib/libpam/modules/pam_permit/pam_permit.c head/lib/libpam/modules/pam_radius/pam_radius.c head/lib/libpam/modules/pam_rhosts/pam_rhosts.c head/lib/libpam/modules/pam_rootok/pam_rootok.c head/lib/libpam/modules/pam_securetty/pam_securetty.c head/lib/libpam/modules/pam_self/pam_self.c head/lib/libpam/modules/pam_ssh/pam_ssh.c head/lib/libpam/modules/pam_tacplus/pam_tacplus.c head/lib/libpam/modules/pam_unix/pam_unix.c head/lib/libpjdlog/pjdlog.c head/lib/libpjdlog/pjdlog.h head/lib/libpmc/libpmc.c head/lib/libpmc/libpmcinternal.h head/lib/libpmc/pmc.h head/lib/libpmc/pmclog.c head/lib/libpmc/pmclog.h head/lib/libproc/_libproc.h head/lib/libproc/libproc.h head/lib/libproc/proc_bkpt.c head/lib/libproc/proc_create.c head/lib/libproc/proc_regs.c head/lib/libproc/proc_rtld.c head/lib/libproc/proc_sym.c head/lib/libproc/proc_util.c head/lib/libprocstat/common_kvm.h head/lib/libprocstat/core.c head/lib/libprocstat/core.h head/lib/libprocstat/libprocstat.h head/lib/libprocstat/libprocstat_internal.h head/lib/libprocstat/smbfs.c head/lib/libprocstat/udf.c head/lib/libprocstat/zfs.c head/lib/libradius/radlib.c head/lib/libradius/radlib.h head/lib/libradius/radlib_private.h head/lib/libradius/radlib_vs.h head/lib/librpcsec_gss/rpcsec_gss_conf.c head/lib/librpcsec_gss/rpcsec_gss_misc.c head/lib/librt/aio.c head/lib/librt/mq.c head/lib/librt/sigev_thread.c head/lib/librt/sigev_thread.h head/lib/librt/timer.c head/lib/librtld_db/rtld_db.c head/lib/librtld_db/rtld_db.h head/lib/libsdp/sdp-int.h head/lib/libsdp/sdp.h head/lib/libsdp/search.c head/lib/libsdp/service.c head/lib/libsdp/session.c head/lib/libsdp/util.c head/lib/libstdbuf/stdbuf.c head/lib/libstdthreads/call_once.c head/lib/libstdthreads/cnd.c head/lib/libstdthreads/mtx.c head/lib/libstdthreads/thrd.c head/lib/libstdthreads/threads.h head/lib/libstdthreads/tss.c head/lib/libtacplus/taclib.c head/lib/libtacplus/taclib.h head/lib/libtacplus/taclib_private.h head/lib/libthr/arch/amd64/include/pthread_md.h head/lib/libthr/arch/arm/include/pthread_md.h head/lib/libthr/arch/i386/include/pthread_md.h head/lib/libthr/arch/mips/include/pthread_md.h head/lib/libthr/arch/powerpc/include/pthread_md.h head/lib/libthr/arch/sparc64/include/pthread_md.h head/lib/libthr/thread/thr_affinity.c head/lib/libthr/thread/thr_barrier.c head/lib/libthr/thread/thr_barrierattr.c head/lib/libthr/thread/thr_cancel.c head/lib/libthr/thread/thr_cond.c head/lib/libthr/thread/thr_create.c head/lib/libthr/thread/thr_detach.c head/lib/libthr/thread/thr_event.c head/lib/libthr/thread/thr_getcpuclockid.c head/lib/libthr/thread/thr_getthreadid_np.c head/lib/libthr/thread/thr_join.c head/lib/libthr/thread/thr_kern.c head/lib/libthr/thread/thr_list.c head/lib/libthr/thread/thr_main_np.c head/lib/libthr/thread/thr_once.c head/lib/libthr/thread/thr_printf.c head/lib/libthr/thread/thr_private.h head/lib/libthr/thread/thr_pspinlock.c head/lib/libthr/thread/thr_rtld.c head/lib/libthr/thread/thr_rwlock.c head/lib/libthr/thread/thr_rwlockattr.c head/lib/libthr/thread/thr_sem.c head/lib/libthr/thread/thr_sig.c head/lib/libthr/thread/thr_sleepq.c head/lib/libthr/thread/thr_stack.c head/lib/libthr/thread/thr_umtx.c head/lib/libthr/thread/thr_umtx.h head/lib/libthread_db/arch/amd64/libpthread_md.c head/lib/libthread_db/arch/arm/libpthread_md.c head/lib/libthread_db/arch/i386/libpthread_md.c head/lib/libthread_db/arch/powerpc/libpthread_md.c head/lib/libthread_db/arch/sparc64/libpthread_md.c head/lib/libthread_db/kse.h head/lib/libthread_db/libpthread_db.c head/lib/libthread_db/libpthread_db.h head/lib/libthread_db/libthr_db.c head/lib/libthread_db/thread_db.c head/lib/libthread_db/thread_db.h head/lib/libthread_db/thread_db_int.h head/lib/libufs/block.c head/lib/libufs/cgroup.c head/lib/libufs/inode.c head/lib/libufs/libufs.h head/lib/libufs/sblock.c head/lib/libufs/type.c head/lib/libugidfw/ugidfw.c head/lib/libugidfw/ugidfw.h head/lib/libulog/ulog.h head/lib/libulog/ulog_login.c head/lib/libulog/ulog_login_pseudo.c head/lib/libulog/utempter.c head/lib/libulog/utempter.h head/lib/libusb/libusb.h head/lib/libusb/libusb01.c head/lib/libusb/libusb10.c head/lib/libusb/libusb10.h head/lib/libusb/libusb10_desc.c head/lib/libusb/libusb10_io.c head/lib/libusb/libusb20.c head/lib/libusb/libusb20.h head/lib/libusb/libusb20_desc.c head/lib/libusb/libusb20_desc.h head/lib/libusb/libusb20_int.h head/lib/libusb/libusb20_ugen20.c head/lib/libusb/libusb_global_linux.h head/lib/libusb/usb.h head/lib/libusbhid/data.c head/lib/libusbhid/descr.c head/lib/libusbhid/descr_compat.c head/lib/libusbhid/parse.c head/lib/libusbhid/usage.c head/lib/libusbhid/usbhid.h head/lib/libusbhid/usbvar.h head/lib/libutil/auth.c head/lib/libutil/expand_number.c head/lib/libutil/flopen.c head/lib/libutil/fparseln.c head/lib/libutil/gr_util.c head/lib/libutil/humanize_number.c head/lib/libutil/kinfo_getallproc.c head/lib/libutil/kinfo_getproc.c head/lib/libutil/kld.c head/lib/libutil/libutil.h head/lib/libutil/login_crypt.c head/lib/libutil/pidfile.c head/lib/libutil/property.c head/lib/libutil/quotafile.c head/lib/libutil/realhostname.c head/lib/libutil/stub.c head/lib/libutil/trimdomain.c head/lib/libvgl/bitmap.c head/lib/libvgl/keyboard.c head/lib/libvgl/main.c head/lib/libvgl/mouse.c head/lib/libvgl/simple.c head/lib/libvgl/text.c head/lib/libvgl/vgl.h head/lib/libvmmapi/vmmapi.c head/lib/libvmmapi/vmmapi.h head/lib/libvmmapi/vmmapi_freebsd.c head/lib/libypclnt/ypclnt.h head/lib/libypclnt/ypclnt_connect.c head/lib/libypclnt/ypclnt_error.c head/lib/libypclnt/ypclnt_free.c head/lib/libypclnt/ypclnt_get.c head/lib/libypclnt/ypclnt_new.c head/lib/libypclnt/ypclnt_passwd.c head/lib/msun/amd64/fenv.c head/lib/msun/arm/fenv.c head/lib/msun/arm/fenv.h head/lib/msun/i387/fenv.c head/lib/msun/i387/invtrig.c head/lib/msun/ld128/invtrig.c head/lib/msun/ld128/invtrig.h head/lib/msun/ld128/k_expl.h head/lib/msun/ld128/s_exp2l.c head/lib/msun/ld128/s_expl.c head/lib/msun/ld128/s_logl.c head/lib/msun/ld128/s_nanl.c head/lib/msun/ld80/invtrig.c head/lib/msun/ld80/invtrig.h head/lib/msun/ld80/k_expl.h head/lib/msun/ld80/s_exp2l.c head/lib/msun/ld80/s_expl.c head/lib/msun/ld80/s_logl.c head/lib/msun/ld80/s_nanl.c head/lib/msun/mips/fenv.c head/lib/msun/mips/fenv.h head/lib/msun/powerpc/fenv.c head/lib/msun/powerpc/fenv.h head/lib/msun/sparc64/fenv.c head/lib/msun/sparc64/fenv.h head/lib/msun/src/catrig.c head/lib/msun/src/catrigf.c head/lib/msun/src/e_remainderl.c head/lib/msun/src/e_sqrtl.c head/lib/msun/src/fenv-softfloat.h head/lib/msun/src/imprecise.c head/lib/msun/src/k_exp.c head/lib/msun/src/k_expf.c head/lib/msun/src/s_carg.c head/lib/msun/src/s_cargf.c head/lib/msun/src/s_cargl.c head/lib/msun/src/s_ccosh.c head/lib/msun/src/s_ccoshf.c head/lib/msun/src/s_cexp.c head/lib/msun/src/s_cexpf.c head/lib/msun/src/s_cimag.c head/lib/msun/src/s_cimagf.c head/lib/msun/src/s_cimagl.c head/lib/msun/src/s_conj.c head/lib/msun/src/s_conjf.c head/lib/msun/src/s_conjl.c head/lib/msun/src/s_copysignl.c head/lib/msun/src/s_cosl.c head/lib/msun/src/s_cproj.c head/lib/msun/src/s_cprojf.c head/lib/msun/src/s_cprojl.c head/lib/msun/src/s_creal.c head/lib/msun/src/s_crealf.c head/lib/msun/src/s_creall.c head/lib/msun/src/s_csinh.c head/lib/msun/src/s_csinhf.c head/lib/msun/src/s_csqrt.c head/lib/msun/src/s_csqrtf.c head/lib/msun/src/s_csqrtl.c head/lib/msun/src/s_ctanh.c head/lib/msun/src/s_ctanhf.c head/lib/msun/src/s_exp2.c head/lib/msun/src/s_exp2f.c head/lib/msun/src/s_fabsl.c head/lib/msun/src/s_fdim.c head/lib/msun/src/s_fma.c head/lib/msun/src/s_fmaf.c head/lib/msun/src/s_fmal.c head/lib/msun/src/s_fmax.c head/lib/msun/src/s_fmaxf.c head/lib/msun/src/s_fmaxl.c head/lib/msun/src/s_fmin.c head/lib/msun/src/s_fminf.c head/lib/msun/src/s_fminl.c head/lib/msun/src/s_frexpl.c head/lib/msun/src/s_isfinite.c head/lib/msun/src/s_isnan.c head/lib/msun/src/s_isnormal.c head/lib/msun/src/s_lrint.c head/lib/msun/src/s_lround.c head/lib/msun/src/s_modfl.c head/lib/msun/src/s_nan.c head/lib/msun/src/s_nearbyint.c head/lib/msun/src/s_rintl.c head/lib/msun/src/s_round.c head/lib/msun/src/s_roundf.c head/lib/msun/src/s_roundl.c head/lib/msun/src/s_scalbln.c head/lib/msun/src/s_signbit.c head/lib/msun/src/s_sinl.c head/lib/msun/src/s_tanl.c head/lib/msun/src/s_tgammaf.c head/lib/msun/x86/fenv.h Modified: head/lib/csu/amd64/crt1.c ============================================================================== --- head/lib/csu/amd64/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/amd64/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/lib/csu/arm/crt1.c ============================================================================== --- head/lib/csu/arm/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/arm/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 David E. O'Brien. * All rights reserved. * Copyright 1996-1998 John D. Polstra. Modified: head/lib/csu/common/crtbrand.c ============================================================================== --- head/lib/csu/common/crtbrand.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/common/crtbrand.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2000 David E. O'Brien, John D. Polstra. * All rights reserved. * Modified: head/lib/csu/common/ignore_init.c ============================================================================== --- head/lib/csu/common/ignore_init.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/common/ignore_init.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov * All rights reserved. * Modified: head/lib/csu/common/notes.h ============================================================================== --- head/lib/csu/common/notes.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/common/notes.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov * All rights reserved. * Modified: head/lib/csu/mips/crt1.c ============================================================================== --- head/lib/csu/mips/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/mips/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Copyright (c) 1995 Christopher G. Demetriou Modified: head/lib/csu/powerpc/crt1.c ============================================================================== --- head/lib/csu/powerpc/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/powerpc/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 David E. O'Brien. * All rights reserved. * Copyright 1996-1998 John D. Polstra. Modified: head/lib/csu/powerpc64/crt1.c ============================================================================== --- head/lib/csu/powerpc64/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/powerpc64/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 David E. O'Brien. * All rights reserved. * Copyright 1996-1998 John D. Polstra. Modified: head/lib/csu/sparc64/crt1.c ============================================================================== --- head/lib/csu/sparc64/crt1.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/csu/sparc64/crt1.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2001 David E. O'Brien. * All rights reserved. * Copyright (c) 1995, 1998 Berkeley Software Design, Inc. Modified: head/lib/libarchive/config_freebsd.h ============================================================================== --- head/lib/libarchive/config_freebsd.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libarchive/config_freebsd.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2007 Tim Kientzle * All rights reserved. * Modified: head/lib/libbluetooth/bluetooth.c ============================================================================== --- head/lib/libbluetooth/bluetooth.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbluetooth/bluetooth.c Sun Nov 26 02:00:33 2017 (r326219) @@ -3,6 +3,8 @@ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001-2009 Maksim Yevmenkin * All rights reserved. * Modified: head/lib/libbluetooth/bluetooth.h ============================================================================== --- head/lib/libbluetooth/bluetooth.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbluetooth/bluetooth.h Sun Nov 26 02:00:33 2017 (r326219) @@ -3,6 +3,8 @@ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001-2009 Maksim Yevmenkin * All rights reserved. * Modified: head/lib/libbluetooth/dev.c ============================================================================== --- head/lib/libbluetooth/dev.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbluetooth/dev.c Sun Nov 26 02:00:33 2017 (r326219) @@ -3,6 +3,8 @@ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Maksim Yevmenkin * All rights reserved. * Modified: head/lib/libbluetooth/hci.c ============================================================================== --- head/lib/libbluetooth/hci.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbluetooth/hci.c Sun Nov 26 02:00:33 2017 (r326219) @@ -3,6 +3,8 @@ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Maksim Yevmenkin * All rights reserved. * Modified: head/lib/libbsdstat/bsdstat.c ============================================================================== --- head/lib/libbsdstat/bsdstat.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbsdstat/bsdstat.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/lib/libbsdstat/bsdstat.h ============================================================================== --- head/lib/libbsdstat/bsdstat.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libbsdstat/bsdstat.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/lib/libc_nonshared/__stub.c ============================================================================== --- head/lib/libc_nonshared/__stub.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libc_nonshared/__stub.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Peter Wemm * All rights reserved. * Modified: head/lib/libcalendar/calendar.c ============================================================================== --- head/lib/libcalendar/calendar.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcalendar/calendar.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Wolfgang Helbig * All rights reserved. * Modified: head/lib/libcalendar/calendar.h ============================================================================== --- head/lib/libcalendar/calendar.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcalendar/calendar.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Wolfgang Helbig * All rights reserved. * Modified: head/lib/libcalendar/easter.c ============================================================================== --- head/lib/libcalendar/easter.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcalendar/easter.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Wolfgang Helbig * All rights reserved. * Modified: head/lib/libcam/camlib.c ============================================================================== --- head/lib/libcam/camlib.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcam/camlib.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998, 1999, 2002 Kenneth D. Merry. * All rights reserved. * Modified: head/lib/libcompat/4.1/ftime.c ============================================================================== --- head/lib/libcompat/4.1/ftime.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcompat/4.1/ftime.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Christopher G. Demetriou * All rights reserved. * Modified: head/lib/libcrypt/crypt-md5.c ============================================================================== --- head/lib/libcrypt/crypt-md5.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt-md5.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libcrypt/crypt-nthash.c ============================================================================== --- head/lib/libcrypt/crypt-nthash.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt-nthash.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Michael Bretterklieber * All rights reserved. * Modified: head/lib/libcrypt/crypt-sha256.c ============================================================================== --- head/lib/libcrypt/crypt-sha256.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt-sha256.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The FreeBSD Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libcrypt/crypt-sha512.c ============================================================================== --- head/lib/libcrypt/crypt-sha512.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt-sha512.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The FreeBSD Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libcrypt/crypt.c ============================================================================== --- head/lib/libcrypt/crypt.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Mark Murray * Copyright (c) 2014 Dag-Erling Smørgrav * All rights reserved. Modified: head/lib/libcrypt/crypt.h ============================================================================== --- head/lib/libcrypt/crypt.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libcrypt/crypt.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,5 +1,7 @@ /* LINTLIBRARY */ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 * Mark Murray. All rights reserved. * Modified: head/lib/libdevinfo/devinfo.c ============================================================================== --- head/lib/libdevinfo/devinfo.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libdevinfo/devinfo.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/lib/libdevinfo/devinfo.h ============================================================================== --- head/lib/libdevinfo/devinfo.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libdevinfo/devinfo.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/lib/libdevinfo/devinfo_var.h ============================================================================== --- head/lib/libdevinfo/devinfo_var.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libdevinfo/devinfo_var.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/lib/libdevstat/devstat.c ============================================================================== --- head/lib/libdevstat/devstat.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libdevstat/devstat.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998 Kenneth D. Merry. * All rights reserved. * Modified: head/lib/libdevstat/devstat.h ============================================================================== --- head/lib/libdevstat/devstat.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libdevstat/devstat.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998 Kenneth D. Merry. * All rights reserved. * Modified: head/lib/libfetch/common.c ============================================================================== --- head/lib/libfetch/common.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/common.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2016 Dag-Erling Smørgrav * Copyright (c) 2013 Michael Gmelin * All rights reserved. Modified: head/lib/libfetch/common.h ============================================================================== --- head/lib/libfetch/common.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/common.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2014 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libfetch/fetch.c ============================================================================== --- head/lib/libfetch/fetch.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/fetch.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2004 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libfetch/fetch.h ============================================================================== --- head/lib/libfetch/fetch.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/fetch.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2004 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libfetch/file.c ============================================================================== --- head/lib/libfetch/file.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/file.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libfetch/ftp.c ============================================================================== --- head/lib/libfetch/ftp.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/ftp.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libfetch/http.c ============================================================================== --- head/lib/libfetch/http.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libfetch/http.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000-2014 Dag-Erling Smørgrav * All rights reserved. * Modified: head/lib/libgeom/geom_ctl.c ============================================================================== --- head/lib/libgeom/geom_ctl.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/geom_ctl.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libgeom/geom_getxml.c ============================================================================== --- head/lib/libgeom/geom_getxml.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/geom_getxml.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libgeom/geom_stats.c ============================================================================== --- head/lib/libgeom/geom_stats.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/geom_stats.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libgeom/geom_util.c ============================================================================== --- head/lib/libgeom/geom_util.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/geom_util.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Pawel Jakub Dawidek * All rights reserved. * Modified: head/lib/libgeom/geom_xml2tree.c ============================================================================== --- head/lib/libgeom/geom_xml2tree.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/geom_xml2tree.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libgeom/libgeom.h ============================================================================== --- head/lib/libgeom/libgeom.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgeom/libgeom.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/lib/libgssapi/context.h ============================================================================== --- head/lib/libgssapi/context.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/context.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/cred.h ============================================================================== --- head/lib/libgssapi/cred.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/cred.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_accept_sec_context.c ============================================================================== --- head/lib/libgssapi/gss_accept_sec_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_accept_sec_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_acquire_cred.c ============================================================================== --- head/lib/libgssapi/gss_acquire_cred.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_acquire_cred.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_add_cred.c ============================================================================== --- head/lib/libgssapi/gss_add_cred.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_add_cred.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_add_oid_set_member.c ============================================================================== --- head/lib/libgssapi/gss_add_oid_set_member.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_add_oid_set_member.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_canonicalize_name.c ============================================================================== --- head/lib/libgssapi/gss_canonicalize_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_canonicalize_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_compare_name.c ============================================================================== --- head/lib/libgssapi/gss_compare_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_compare_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_context_time.c ============================================================================== --- head/lib/libgssapi/gss_context_time.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_context_time.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_create_empty_oid_set.c ============================================================================== --- head/lib/libgssapi/gss_create_empty_oid_set.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_create_empty_oid_set.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_decapsulate_token.c ============================================================================== --- head/lib/libgssapi/gss_decapsulate_token.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_decapsulate_token.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_delete_sec_context.c ============================================================================== --- head/lib/libgssapi/gss_delete_sec_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_delete_sec_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_display_name.c ============================================================================== --- head/lib/libgssapi/gss_display_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_display_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_duplicate_name.c ============================================================================== --- head/lib/libgssapi/gss_duplicate_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_duplicate_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_duplicate_oid.c ============================================================================== --- head/lib/libgssapi/gss_duplicate_oid.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_duplicate_oid.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_encapsulate_token.c ============================================================================== --- head/lib/libgssapi/gss_encapsulate_token.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_encapsulate_token.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_export_name.c ============================================================================== --- head/lib/libgssapi/gss_export_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_export_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_export_sec_context.c ============================================================================== --- head/lib/libgssapi/gss_export_sec_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_export_sec_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_get_mic.c ============================================================================== --- head/lib/libgssapi/gss_get_mic.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_get_mic.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_import_name.c ============================================================================== --- head/lib/libgssapi/gss_import_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_import_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_import_sec_context.c ============================================================================== --- head/lib/libgssapi/gss_import_sec_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_import_sec_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_indicate_mechs.c ============================================================================== --- head/lib/libgssapi/gss_indicate_mechs.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_indicate_mechs.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_init_sec_context.c ============================================================================== --- head/lib/libgssapi/gss_init_sec_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_init_sec_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_context.c ============================================================================== --- head/lib/libgssapi/gss_inquire_context.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_context.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_cred.c ============================================================================== --- head/lib/libgssapi/gss_inquire_cred.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_cred.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_cred_by_mech.c ============================================================================== --- head/lib/libgssapi/gss_inquire_cred_by_mech.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_cred_by_mech.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_mechs_for_name.c ============================================================================== --- head/lib/libgssapi/gss_inquire_mechs_for_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_mechs_for_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_names_for_mech.c ============================================================================== --- head/lib/libgssapi/gss_inquire_names_for_mech.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_names_for_mech.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_inquire_sec_context_by_oid.c ============================================================================== --- head/lib/libgssapi/gss_inquire_sec_context_by_oid.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_inquire_sec_context_by_oid.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_krb5.c ============================================================================== --- head/lib/libgssapi/gss_krb5.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_krb5.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_mech_switch.c ============================================================================== --- head/lib/libgssapi/gss_mech_switch.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_mech_switch.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_names.c ============================================================================== --- head/lib/libgssapi/gss_names.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_names.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_pname_to_uid.c ============================================================================== --- head/lib/libgssapi/gss_pname_to_uid.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_pname_to_uid.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/lib/libgssapi/gss_process_context_token.c ============================================================================== --- head/lib/libgssapi/gss_process_context_token.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_process_context_token.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_release_buffer.c ============================================================================== --- head/lib/libgssapi/gss_release_buffer.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_release_buffer.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_release_cred.c ============================================================================== --- head/lib/libgssapi/gss_release_cred.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_release_cred.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_release_name.c ============================================================================== --- head/lib/libgssapi/gss_release_name.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_release_name.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_release_oid_set.c ============================================================================== --- head/lib/libgssapi/gss_release_oid_set.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_release_oid_set.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_seal.c ============================================================================== --- head/lib/libgssapi/gss_seal.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_seal.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_sign.c ============================================================================== --- head/lib/libgssapi/gss_sign.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_sign.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_test_oid_set_member.c ============================================================================== --- head/lib/libgssapi/gss_test_oid_set_member.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_test_oid_set_member.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_unseal.c ============================================================================== --- head/lib/libgssapi/gss_unseal.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_unseal.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_unwrap.c ============================================================================== --- head/lib/libgssapi/gss_unwrap.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_unwrap.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_utils.c ============================================================================== --- head/lib/libgssapi/gss_utils.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_utils.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_verify.c ============================================================================== --- head/lib/libgssapi/gss_verify.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_verify.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_verify_mic.c ============================================================================== --- head/lib/libgssapi/gss_verify_mic.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_verify_mic.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_wrap.c ============================================================================== --- head/lib/libgssapi/gss_wrap.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_wrap.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/gss_wrap_size_limit.c ============================================================================== --- head/lib/libgssapi/gss_wrap_size_limit.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/gss_wrap_size_limit.c Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/mech_switch.h ============================================================================== --- head/lib/libgssapi/mech_switch.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/mech_switch.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/name.h ============================================================================== --- head/lib/libgssapi/name.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/name.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/spnego.h ============================================================================== --- head/lib/libgssapi/spnego.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/spnego.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libgssapi/utils.h ============================================================================== --- head/lib/libgssapi/utils.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libgssapi/utils.h Sun Nov 26 02:00:33 2017 (r326219) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/lib/libiconv_modules/BIG5/citrus_big5.h ============================================================================== --- head/lib/libiconv_modules/BIG5/citrus_big5.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/BIG5/citrus_big5.h Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_big5.h,v 1.2 2003/06/25 09:51:41 tshiozak Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2002 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c ============================================================================== --- head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_dechanyu.c,v 1.4 2011/11/19 18:20:13 tnozaki Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2007 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.h ============================================================================== --- head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.h Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_dechanyu.h,v 1.1 2007/04/01 18:52:32 tnozaki Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2006 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/EUC/citrus_euc.h ============================================================================== --- head/lib/libiconv_modules/EUC/citrus_euc.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/EUC/citrus_euc.h Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_euc.h,v 1.2 2003/06/25 09:51:42 tshiozak Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2002 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/EUCTW/citrus_euctw.c ============================================================================== --- head/lib/libiconv_modules/EUCTW/citrus_euctw.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/EUCTW/citrus_euctw.c Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_euctw.c,v 1.11 2008/06/14 16:01:07 tnozaki Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2002 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/EUCTW/citrus_euctw.h ============================================================================== --- head/lib/libiconv_modules/EUCTW/citrus_euctw.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/EUCTW/citrus_euctw.h Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_euctw.h,v 1.2 2003/06/25 09:51:42 tshiozak Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2002 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/GBK2K/citrus_gbk2k.c ============================================================================== --- head/lib/libiconv_modules/GBK2K/citrus_gbk2k.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/GBK2K/citrus_gbk2k.c Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_gbk2k.c,v 1.7 2008/06/14 16:01:07 tnozaki Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2003 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/GBK2K/citrus_gbk2k.h ============================================================================== --- head/lib/libiconv_modules/GBK2K/citrus_gbk2k.h Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/GBK2K/citrus_gbk2k.h Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_gbk2k.h,v 1.2 2003/06/25 09:51:43 tshiozak Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2003 Citrus Project, * All rights reserved. * Modified: head/lib/libiconv_modules/HZ/citrus_hz.c ============================================================================== --- head/lib/libiconv_modules/HZ/citrus_hz.c Sat Nov 25 23:41:05 2017 (r326218) +++ head/lib/libiconv_modules/HZ/citrus_hz.c Sun Nov 26 02:00:33 2017 (r326219) @@ -2,6 +2,8 @@ /* $NetBSD: citrus_hz.c,v 1.2 2008/06/14 16:01:07 tnozaki Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c)2004, 2006 Citrus Project, *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Sun Nov 26 03:53:22 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01542DFBDF9; Sun, 26 Nov 2017 03:53:22 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C8C0F7C2B4; Sun, 26 Nov 2017 03:53:21 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ3rKn5006995; Sun, 26 Nov 2017 03:53:20 GMT (envelope-from nwhitehorn@FreeBSD.org) Received: (from nwhitehorn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ3rKDE006990; Sun, 26 Nov 2017 03:53:20 GMT (envelope-from nwhitehorn@FreeBSD.org) Message-Id: <201711260353.vAQ3rKDE006990@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nwhitehorn set sender to nwhitehorn@FreeBSD.org using -f From: Nathan Whitehorn Date: Sun, 26 Nov 2017 03:53:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326220 - in head: . sys/powerpc/aim sys/powerpc/booke sys/powerpc/powerpc X-SVN-Group: head X-SVN-Commit-Author: nwhitehorn X-SVN-Commit-Paths: in head: . sys/powerpc/aim sys/powerpc/booke sys/powerpc/powerpc X-SVN-Commit-Revision: 326220 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 03:53:22 -0000 Author: nwhitehorn Date: Sun Nov 26 03:53:20 2017 New Revision: 326220 URL: https://svnweb.freebsd.org/changeset/base/326220 Log: Use the cookie now set by loader to determine whether the value passed to PowerPC kernels in r6 is actually metadata from loader(8) or gibberish left in r6, which is not required to be anything under the PAPR/ePAPR/CHRP/OF standards, by another boot loader. Note that, as a result, systems need a new boot loader to boot PPC kernels after this revision without ending up at a mountroot prompt. New boot loaders are backwards compatible and can boot older kernels. Reviewed by: jhibbits MFC after: 2 months Modified: head/UPDATING head/sys/powerpc/aim/locore32.S head/sys/powerpc/aim/locore64.S head/sys/powerpc/booke/booke_machdep.c head/sys/powerpc/powerpc/machdep.c Modified: head/UPDATING ============================================================================== --- head/UPDATING Sun Nov 26 02:00:33 2017 (r326219) +++ head/UPDATING Sun Nov 26 03:53:20 2017 (r326220) @@ -51,6 +51,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW: ****************************** SPECIAL WARNING: ****************************** +20171125: + PowerPC users must update loader(8) by rebuilding world before + installing a new kernel, as the protocol connecting them has + changed. Without the update, loader metadata will not be passed + successfully to the kernel and users will have to enter their + root partition at the kernel mountroot prompt to continue booting. + Newer versions of loader can boot old kernels without issue. + 201711xx: The LOADER_FIREWIRE_SUPPORT build variable as been renamed to WITH/OUT_LOADER_FIREWIRE. LOADER_{NO_,}GELI_SUPPORT has been renamed Modified: head/sys/powerpc/aim/locore32.S ============================================================================== --- head/sys/powerpc/aim/locore32.S Sun Nov 26 02:00:33 2017 (r326219) +++ head/sys/powerpc/aim/locore32.S Sun Nov 26 03:53:20 2017 (r326220) @@ -79,13 +79,14 @@ __start: /* Set up temporary stack pointer */ lwz %r1,8(%r30) add %r1,%r1,%r30 - addi %r1,%r1,(8+TMPSTKSZ-32) + addi %r1,%r1,(8+TMPSTKSZ-40) /* Relocate self */ stw %r3,16(%r1) stw %r4,20(%r1) stw %r5,24(%r1) stw %r6,28(%r1) + stw %r7,32(%r1) lwz %r3,0(%r30) /* _DYNAMIC in %r3 */ add %r3,%r3,%r30 @@ -99,6 +100,7 @@ __start: lwz %r4,20(%r1) lwz %r5,24(%r1) lwz %r6,28(%r1) + lwz %r7,32(%r1) /* MD setup */ bl powerpc_init Modified: head/sys/powerpc/aim/locore64.S ============================================================================== --- head/sys/powerpc/aim/locore64.S Sun Nov 26 02:00:33 2017 (r326219) +++ head/sys/powerpc/aim/locore64.S Sun Nov 26 03:53:20 2017 (r326220) @@ -73,6 +73,7 @@ btext: * r4: ignored * r5: OF client interface pointer (or zero) * r6: Loader metadata pointer (or zero) + * r7: Magic cookie (0xfb5d104d) to indicate that r6 has loader metadata */ .text ASENTRY_NOPROF(__start) @@ -108,6 +109,8 @@ ASENTRY_NOPROF(__start) std %r4,56(%r1) std %r5,64(%r1) std %r6,72(%r1) + std %r7,80(%r1) + bl 1f .llong _DYNAMIC-. 1: mflr %r3 @@ -120,6 +123,7 @@ ASENTRY_NOPROF(__start) ld %r4,56(%r1) ld %r5,64(%r1) ld %r6,72(%r1) + ld %r7,80(%r1) /* Begin CPU init */ mr %r4,%r2 /* Replace ignored r4 with tocbase for trap handlers */ Modified: head/sys/powerpc/booke/booke_machdep.c ============================================================================== --- head/sys/powerpc/booke/booke_machdep.c Sun Nov 26 02:00:33 2017 (r326219) +++ head/sys/powerpc/booke/booke_machdep.c Sun Nov 26 03:53:20 2017 (r326220) @@ -200,7 +200,8 @@ extern void *int_performance_counter; ("Handler " #handler " too far from interrupt vector base")); \ mtspr(ivor, (uintptr_t)(&handler) & 0xffffUL); -uintptr_t powerpc_init(vm_offset_t fdt, vm_offset_t, vm_offset_t, void *mdp); +uintptr_t powerpc_init(vm_offset_t fdt, vm_offset_t, vm_offset_t, void *mdp, + vm_offset_t mdp_cookie); void booke_cpu_init(void); void @@ -346,7 +347,11 @@ booke_init(u_long arg1, u_long arg2) break; } - ret = powerpc_init(dtbp, 0, 0, mdp); + /* + * Last element is a magic cookie that indicates that the metadata + * pointer is meaningful. + */ + ret = powerpc_init(dtbp, 0, 0, mdp, (mdp == NULL) ? 0 : 0xfb5d104d); /* Enable caches */ booke_enable_l1_cache(); Modified: head/sys/powerpc/powerpc/machdep.c ============================================================================== --- head/sys/powerpc/powerpc/machdep.c Sun Nov 26 02:00:33 2017 (r326219) +++ head/sys/powerpc/powerpc/machdep.c Sun Nov 26 03:53:20 2017 (r326220) @@ -154,7 +154,8 @@ SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, SYSCTL_INT(_machdep, CPU_CACHELINE, cacheline_size, CTLFLAG_RD, &cacheline_size, 0, ""); -uintptr_t powerpc_init(vm_offset_t, vm_offset_t, vm_offset_t, void *); +uintptr_t powerpc_init(vm_offset_t, vm_offset_t, vm_offset_t, void *, + vm_offset_t); long Maxmem = 0; long realmem = 0; @@ -232,7 +233,8 @@ void aim_cpu_init(vm_offset_t toc); void booke_cpu_init(void); uintptr_t -powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp) +powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, + vm_offset_t mdp_cookie) { struct pcpu *pc; struct cpuref bsp; @@ -251,8 +253,11 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offs startkernel = __startkernel; endkernel = __endkernel; - /* Check for ePAPR loader, which puts a magic value into r6 */ - if (mdp == (void *)0x65504150) + /* + * If the metadata pointer cookie is not set to the magic value, + * the number in mdp should be treated as nonsense. + */ + if (mdp_cookie != 0xfb5d104d) mdp = NULL; #ifdef AIM @@ -352,7 +357,8 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offs platform_probe_and_attach(); /* - * Set up real per-cpu data. + * Set up per-cpu data for the BSP now that the platform can tell + * us which that is. */ if (platform_smp_get_bsp(&bsp) != 0) bsp.cr_cpuid = 0; From owner-svn-src-head@freebsd.org Sun Nov 26 04:34:14 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D122DFCFF2; Sun, 26 Nov 2017 04:34:14 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 293057D6EE; Sun, 26 Nov 2017 04:34:14 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ4YD3U023978; Sun, 26 Nov 2017 04:34:13 GMT (envelope-from nwhitehorn@FreeBSD.org) Received: (from nwhitehorn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ4YDvp023977; Sun, 26 Nov 2017 04:34:13 GMT (envelope-from nwhitehorn@FreeBSD.org) Message-Id: <201711260434.vAQ4YDvp023977@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nwhitehorn set sender to nwhitehorn@FreeBSD.org using -f From: Nathan Whitehorn Date: Sun, 26 Nov 2017 04:34:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326222 - head/sys/powerpc/pseries X-SVN-Group: head X-SVN-Commit-Author: nwhitehorn X-SVN-Commit-Paths: head/sys/powerpc/pseries X-SVN-Commit-Revision: 326222 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 04:34:14 -0000 Author: nwhitehorn Date: Sun Nov 26 04:34:13 2017 New Revision: 326222 URL: https://svnweb.freebsd.org/changeset/base/326222 Log: Remove another extern int n_slbs made redundant by declaring this in mmu_oea64.h. MFC after: 3 weeks Modified: head/sys/powerpc/pseries/mmu_phyp.c Modified: head/sys/powerpc/pseries/mmu_phyp.c ============================================================================== --- head/sys/powerpc/pseries/mmu_phyp.c Sun Nov 26 04:19:53 2017 (r326221) +++ head/sys/powerpc/pseries/mmu_phyp.c Sun Nov 26 04:34:13 2017 (r326222) @@ -57,8 +57,6 @@ __FBSDID("$FreeBSD$"); #include "phyp-hvcall.h" -extern int n_slbs; - static struct rmlock mphyp_eviction_lock; /* From owner-svn-src-head@freebsd.org Sun Nov 26 04:55:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4919DFD50F; Sun, 26 Nov 2017 04:55:24 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 801017DF40; Sun, 26 Nov 2017 04:55:24 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ4tNLA032531; Sun, 26 Nov 2017 04:55:23 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ4tN2x032530; Sun, 26 Nov 2017 04:55:23 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201711260455.vAQ4tN2x032530@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Sun, 26 Nov 2017 04:55:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326223 - head X-SVN-Group: head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: head X-SVN-Commit-Revision: 326223 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 04:55:24 -0000 Author: delphij Date: Sun Nov 26 04:55:23 2017 New Revision: 326223 URL: https://svnweb.freebsd.org/changeset/base/326223 Log: Fill in date. Modified: head/UPDATING Modified: head/UPDATING ============================================================================== --- head/UPDATING Sun Nov 26 04:34:13 2017 (r326222) +++ head/UPDATING Sun Nov 26 04:55:23 2017 (r326223) @@ -59,7 +59,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW: root partition at the kernel mountroot prompt to continue booting. Newer versions of loader can boot old kernels without issue. -201711xx: +20171110: The LOADER_FIREWIRE_SUPPORT build variable as been renamed to WITH/OUT_LOADER_FIREWIRE. LOADER_{NO_,}GELI_SUPPORT has been renamed to WITH/OUT_LOADER_GELI. From owner-svn-src-head@freebsd.org Sun Nov 26 06:31:35 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF7E5DFE778; Sun, 26 Nov 2017 06:31:35 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACA437FC07; Sun, 26 Nov 2017 06:31:35 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ6VYmx074719; Sun, 26 Nov 2017 06:31:34 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ6VYCt074718; Sun, 26 Nov 2017 06:31:34 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201711260631.vAQ6VYCt074718@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Sun, 26 Nov 2017 06:31:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326224 - head X-SVN-Group: head X-SVN-Commit-Author: cy X-SVN-Commit-Paths: head X-SVN-Commit-Revision: 326224 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 06:31:36 -0000 Author: cy Date: Sun Nov 26 06:31:34 2017 New Revision: 326224 URL: https://svnweb.freebsd.org/changeset/base/326224 Log: Fix spelling error (probably typo). Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ============================================================================== --- head/ObsoleteFiles.inc Sun Nov 26 04:55:23 2017 (r326223) +++ head/ObsoleteFiles.inc Sun Nov 26 06:31:34 2017 (r326224) @@ -38,7 +38,7 @@ # xargs -n1 | sort | uniq -d; # done -# 20171118: Remove old etc capser failes +# 20171118: Remove old etc capser files OLD_FILES+=etc/casper/system.dns OLD_FILES+=etc/casper/system.grp OLD_FILES+=etc/casper/system.pwd From owner-svn-src-head@freebsd.org Sun Nov 26 06:49:38 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93370DFEC7E; Sun, 26 Nov 2017 06:49:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 173E3802DF; Sun, 26 Nov 2017 06:49:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: from x2.osted.lan (87-58-223-204-dynamic.dk.customer.tdc.net [87.58.223.204]) by relay01.pair.com (Postfix) with ESMTP id C9FA3D00370; Sun, 26 Nov 2017 01:49:30 -0500 (EST) Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.9/8.14.9) with ESMTP id vAQ6nSHk069074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 26 Nov 2017 07:49:28 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.9/8.14.9/Submit) id vAQ6nRTG069073; Sun, 26 Nov 2017 07:49:27 +0100 (CET) (envelope-from pho) Date: Sun, 26 Nov 2017 07:49:27 +0100 From: Peter Holm To: Mateusz Guzik Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326200 - head/sys/kern Message-ID: <20171126064927.GA68986@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201711252049.vAPKnRaA026691@repo.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 06:49:38 -0000 On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 25 20:49:27 2017 > New Revision: 326200 > URL: https://svnweb.freebsd.org/changeset/base/326200 > > Log: > Add the missing lockstat check for thread lock. > > Modified: > head/sys/kern/kern_mutex.c > > Modified: head/sys/kern/kern_mutex.c > ============================================================================== > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 (r326199) Hi Mateusz, Could this be yours? spin lock 0xffffffff81ddc100 (turnstile chain) held by 0xfffff80014e57000 (tid 100277) too long panic: spin lock held too long cpuid = 20 time = 1511677687 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe104f86ea40 vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame 0xfffffe104f86eba0 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame 0xfffffe104f86ed10 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame 0xfffffe104f86edb0 turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 https://people.freebsd.org/~pho/stress/log/mateusz004.txt - Peter From owner-svn-src-head@freebsd.org Sun Nov 26 09:29:35 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E67E1DB9E20; Sun, 26 Nov 2017 09:29:35 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0C1064FB4; Sun, 26 Nov 2017 09:29:35 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQ9TYLf047844; Sun, 26 Nov 2017 09:29:34 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQ9TYpk047843; Sun, 26 Nov 2017 09:29:34 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201711260929.vAQ9TYpk047843@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Sun, 26 Nov 2017 09:29:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326225 - head/sys/arm64/arm64 X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/sys/arm64/arm64 X-SVN-Commit-Revision: 326225 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 09:29:36 -0000 Author: andrew Date: Sun Nov 26 09:29:34 2017 New Revision: 326225 URL: https://svnweb.freebsd.org/changeset/base/326225 Log: Make the arm64 pmap_invalidate functions static inline. This fixes building with DIAGNOSTIC. PR: 223874 Reported by: emaste MFC after: 1 week Modified: head/sys/arm64/arm64/pmap.c Modified: head/sys/arm64/arm64/pmap.c ============================================================================== --- head/sys/arm64/arm64/pmap.c Sun Nov 26 06:31:34 2017 (r326224) +++ head/sys/arm64/arm64/pmap.c Sun Nov 26 09:29:34 2017 (r326225) @@ -896,7 +896,7 @@ SYSCTL_ULONG(_vm_pmap_l2, OID_AUTO, promotions, CTLFLA /* * Invalidate a single TLB entry. */ -PMAP_INLINE void +static __inline void pmap_invalidate_page(pmap_t pmap, vm_offset_t va) { @@ -910,7 +910,7 @@ pmap_invalidate_page(pmap_t pmap, vm_offset_t va) sched_unpin(); } -PMAP_INLINE void +static __inline void pmap_invalidate_range(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) { vm_offset_t addr; @@ -927,7 +927,7 @@ pmap_invalidate_range(pmap_t pmap, vm_offset_t sva, vm sched_unpin(); } -PMAP_INLINE void +static __inline void pmap_invalidate_all(pmap_t pmap) { From owner-svn-src-head@freebsd.org Sun Nov 26 09:46:54 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4E2CDBA9D5; Sun, 26 Nov 2017 09:46:54 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4081B65992; Sun, 26 Nov 2017 09:46:53 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from [IPv6:2a02:c7f:1e13:cf00:84de:169d:1c70:7c3d] (unknown [IPv6:2a02:c7f:1e13:cf00:84de:169d:1c70:7c3d]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id 199A24E6DC; Sun, 26 Nov 2017 09:46:47 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r326218 - head/sys/kern From: Andrew Turner In-Reply-To: <201711252341.vAPNf5Qx001464@repo.freebsd.org> Date: Sun, 26 Nov 2017 09:46:46 +0000 Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <59383A7D-FC99-4748-9561-53D968C4B150@fubar.geek.nz> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 09:46:54 -0000 On 25 Nov 2017, at 23:41, Nathan Whitehorn = wrote: >=20 > Author: nwhitehorn > Date: Sat Nov 25 23:41:05 2017 > New Revision: 326218 > URL: https://svnweb.freebsd.org/changeset/base/326218 >=20 > Log: > Remove some, but not all, assumptions that the BSP is CPU 0 and that = CPUs > are numbered densely from there to n_cpus. >=20 > MFC after: 1 month >=20 > Modified: > head/sys/kern/kern_clock.c > head/sys/kern/kern_clocksource.c > head/sys/kern/kern_shutdown.c > head/sys/kern/kern_timeout.c > head/sys/kern/sched_ule.c > head/sys/kern/subr_pcpu.c >=20 ... > Modified: head/sys/kern/subr_pcpu.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 = (r326217) > +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 = (r326218) > @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) > struct pcpu * > pcpu_find(u_int cpuid) > { > + KASSERT(cpuid_to_pcpu[cpuid] !=3D NULL, > + ("Getting uninitialized PCPU %d", cpuid)); >=20 > return (cpuid_to_pcpu[cpuid]); > } This breaks on one arm64 simulator I have where the device tree lists 8 = cpus, but only 2 are enabled in the simulation. The ofw_cpu device nodes = for these are cpu0 and cpu4 so the call to cpu_find in ofw_cpu_attach = will hit this KASSERT when the CPU has not been enabled. Andrew cpu0: on cpulist0 cpu1: on cpulist0 panic: Getting uninitialized PCPU 1 cpuid =3D 0 time =3D 1 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc =3D 0xffff0000005f03e8 lr =3D 0xffff000000087048 sp =3D 0xffff0000000105a0 fp =3D 0xffff0000000107b0 db_trace_self_wrapper() at vpanic+0x184 pc =3D 0xffff000000087048 lr =3D 0xffff000000316448 sp =3D 0xffff0000000107c0 fp =3D 0xffff000000010840 vpanic() at kassert_panic+0x158 pc =3D 0xffff000000316448 lr =3D 0xffff0000003162c0 sp =3D 0xffff000000010850 fp =3D 0xffff000000010910 kassert_panic() at pcpu_find+0x3c pc =3D 0xffff0000003162c0 lr =3D 0xffff000000359450 sp =3D 0xffff000000010920 fp =3D 0xffff000000010930 pcpu_find() at ofw_cpu_attach+0x114 pc =3D 0xffff000000359450 lr =3D 0xffff0000001692d4 sp =3D 0xffff000000010940 fp =3D 0xffff000000010970 ofw_cpu_attach() at device_attach+0x40c pc =3D 0xffff0000001692d4 lr =3D 0xffff00000034822c sp =3D 0xffff000000010980 fp =3D 0xffff0000000109d0 device_attach() at bus_generic_attach+0x5c pc =3D 0xffff00000034822c lr =3D 0xffff00000034952c sp =3D 0xffff0000000109e0 fp =3D 0xffff000000010a00 bus_generic_attach() at device_attach+0x40c pc =3D 0xffff00000034952c lr =3D 0xffff00000034822c sp =3D 0xffff000000010a10 fp =3D 0xffff000000010a60 device_attach() at bus_generic_new_pass+0x12c pc =3D 0xffff00000034822c lr =3D 0xffff000000349c0c sp =3D 0xffff000000010a70 fp =3D 0xffff000000010aa0 bus_generic_new_pass() at bus_generic_new_pass+0xe4 pc =3D 0xffff000000349c0c lr =3D 0xffff000000349bc4 sp =3D 0xffff000000010ab0 fp =3D 0xffff000000010ae0 bus_generic_new_pass() at bus_generic_new_pass+0xe4 pc =3D 0xffff000000349bc4 lr =3D 0xffff000000349bc4 sp =3D 0xffff000000010af0 fp =3D 0xffff000000010b20 bus_generic_new_pass() at bus_set_pass+0x8c pc =3D 0xffff000000349bc4 lr =3D 0xffff000000345aec sp =3D 0xffff000000010b30 fp =3D 0xffff000000010b60 bus_set_pass() at mi_startup+0xc8 pc =3D 0xffff000000345aec lr =3D 0xffff0000002b43e8 sp =3D 0xffff000000010b70 fp =3D 0xffff000000010bb0 mi_startup() at virtdone+0x54 pc =3D 0xffff0000002b43e8 lr =3D 0xffff000000001084 sp =3D 0xffff000000010bc0 fp =3D 0x0000000000000000 KDB: enter: panic From owner-svn-src-head@freebsd.org Sun Nov 26 10:02:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 959E6DBB32F; Sun, 26 Nov 2017 10:02:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C98866244; Sun, 26 Nov 2017 10:02:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQA2hxw064363; Sun, 26 Nov 2017 10:02:43 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQA2hTU064362; Sun, 26 Nov 2017 10:02:43 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201711261002.vAQA2hTU064362@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Sun, 26 Nov 2017 10:02:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326226 - head/sbin/sysctl X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: head/sbin/sysctl X-SVN-Commit-Revision: 326226 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 10:02:44 -0000 Author: kib Date: Sun Nov 26 10:02:43 2017 New Revision: 326226 URL: https://svnweb.freebsd.org/changeset/base/326226 Log: Improve sysctl(8) pretty printing of some structures. S_vmtotal: Use unsigned format to print unsigned memory counters from struct vmtotal. Remove unneeded cast, style locals declarations. S_efi_map: Make printing of the memory regions descriptions less MD by using uintmax_t formats. Noted by and discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sbin/sysctl/sysctl.c Modified: head/sbin/sysctl/sysctl.c ============================================================================== --- head/sbin/sysctl/sysctl.c Sun Nov 26 09:29:34 2017 (r326225) +++ head/sbin/sysctl/sysctl.c Sun Nov 26 10:02:43 2017 (r326226) @@ -608,33 +608,33 @@ S_timeval(size_t l2, void *p) static int S_vmtotal(size_t l2, void *p) { - struct vmtotal *v = (struct vmtotal *)p; - int pageKilo = getpagesize() / 1024; + struct vmtotal *v; + int pageKilo; if (l2 != sizeof(*v)) { warnx("S_vmtotal %zu != %zu", l2, sizeof(*v)); return (1); } - printf( - "\nSystem wide totals computed every five seconds:" + v = p; + pageKilo = getpagesize() / 1024; + +#define pg2k(a) ((uintmax_t)(a) * pageKilo) + printf("\nSystem wide totals computed every five seconds:" " (values in kilobytes)\n"); printf("===============================================\n"); - printf( - "Processes:\t\t(RUNQ: %hd Disk Wait: %hd Page Wait: " - "%hd Sleep: %hd)\n", + printf("Processes:\t\t(RUNQ: %d Disk Wait: %d Page Wait: " + "%d Sleep: %d)\n", v->t_rq, v->t_dw, v->t_pw, v->t_sl); - printf( - "Virtual Memory:\t\t(Total: %jdK Active: %jdK)\n", - (intmax_t)v->t_vm * pageKilo, (intmax_t)v->t_avm * pageKilo); - printf("Real Memory:\t\t(Total: %jdK Active: %jdK)\n", - (intmax_t)v->t_rm * pageKilo, (intmax_t)v->t_arm * pageKilo); - printf("Shared Virtual Memory:\t(Total: %jdK Active: %jdK)\n", - (intmax_t)v->t_vmshr * pageKilo, (intmax_t)v->t_avmshr * pageKilo); - printf("Shared Real Memory:\t(Total: %jdK Active: %jdK)\n", - (intmax_t)v->t_rmshr * pageKilo, (intmax_t)v->t_armshr * pageKilo); - printf("Free Memory:\t%jdK", (intmax_t)v->t_free * pageKilo); - + printf("Virtual Memory:\t\t(Total: %juK Active: %juK)\n", + pg2k(v->t_vm), pg2k(v->t_avm)); + printf("Real Memory:\t\t(Total: %juK Active: %juK)\n", + pg2k(v->t_rm), pg2k(v->t_arm)); + printf("Shared Virtual Memory:\t(Total: %juK Active: %juK)\n", + pg2k(v->t_vmshr), pg2k(v->t_avmshr)); + printf("Shared Real Memory:\t(Total: %juK Active: %juK)\n", + pg2k(v->t_rmshr), pg2k(v->t_armshr)); + printf("Free Memory:\t%juK", pg2k(v->t_free)); return (0); } @@ -695,8 +695,9 @@ S_efi_map(size_t l2, void *p) type = types[map->md_type]; else type = ""; - printf("\n%23s %012lx %12p %08lx ", type, map->md_phys, - map->md_virt, map->md_pages); + printf("\n%23s %012jx %12p %08jx ", type, + (uintmax_t)map->md_phys, map->md_virt, + (uintmax_t)map->md_pages); if (map->md_attr & EFI_MD_ATTR_UC) printf("UC "); if (map->md_attr & EFI_MD_ATTR_WC) From owner-svn-src-head@freebsd.org Sun Nov 26 10:43:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85601DC0326 for ; Sun, 26 Nov 2017 10:43:19 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17C32672CA for ; Sun, 26 Nov 2017 10:43:19 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-wm0-x233.google.com with SMTP id b189so28968597wmd.0 for ; Sun, 26 Nov 2017 02:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TGpflkdaqYEztpwm0aeRI28T61O5iJ3WYCW7i1C54XM=; b=nj9xB+C6amjer/FE4ml3Aoy2dTD8lI1JEYkHd36U33QIt7k/jjWix5oRTDm9xjn7DD I08X6VuuPVp5ywXMPxxzFNP3yDykXBZlM9zhsagKGF8beh6fUH7zUXim3AUqzsoDhOfU 1efblSi6IWXWuAMiW/dmvz6r3MCqaZ8fRAUm+0iCz3bPQuwyDBhJUdadfjxe0jPnSWEU AlD/2pnuhCeP689V5mtyYpQPB8bWAL2f+8SmMQ2oA6gZ65QcbzB6ZE0H+IRYDNrjIRA0 2MUyx3jrpfbKQ93GQ3hdO42rEHsSSHrLOnmcvSigmnBFR1VWvNWCgU5UkEFAeMjWqNR6 Y7ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TGpflkdaqYEztpwm0aeRI28T61O5iJ3WYCW7i1C54XM=; b=bdoOb/Gp+AOiwwpTONlTswy5Y63GYemn4QcH9aqyFUMu4q295LZbPIHoGBe9nNNYls HtJ6UHo931ebIlXsrNdGHTW+wLBCOYGs6L/0VG/Nw4pPJvYJJ15JPvYAi3CAk9Aa+smD vEUNl+iceRzOdeZPBTJYWc2vTarc/wH+Xle8Hyd9/LxF8SDAoS5flaQvAQJ3A6Uh7JzZ 0Q31JXYimgUI52vB1ELM1HTZOOKVoInsCjcJYi/nAQxq8GXEGgfc3OmhD7a7Q0pqSdP0 yDa7Igrn4W4AgP8Rb0GV3DqvKxSIZHvOPq4IX4kzTBJr+4jWFU1yyUSsQIo3KhbnF4t5 gHuA== X-Gm-Message-State: AJaThX5PHQBtBIy8x5IVbosA0aoZAanYmgRo0dE2APzFnSLb/DR40CSr Sq40KJ0hiO2cfRCw6/Vab95OPXTDKovioVe/cKw0/w== X-Google-Smtp-Source: AGs4zMaxJr/pXYd3XQSK/Z3iR2x+o7PvkPmkqbKQIM6EU+mXOKzwqNPlgdbG5wmjZnderb00P0YnhD039Tgxejigwas= X-Received: by 10.80.180.187 with SMTP id w56mr47003559edd.15.1511692996971; Sun, 26 Nov 2017 02:43:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.149.174 with HTTP; Sun, 26 Nov 2017 02:43:16 -0800 (PST) In-Reply-To: <201711260631.vAQ6VYCt074718@repo.freebsd.org> References: <201711260631.vAQ6VYCt074718@repo.freebsd.org> From: Oliver Pinter Date: Sun, 26 Nov 2017 11:43:16 +0100 Message-ID: Subject: Re: svn commit: r326224 - head To: Cy Schubert Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 10:43:19 -0000 On Sunday, November 26, 2017, Cy Schubert wrote: > Author: cy > Date: Sun Nov 26 06:31:34 2017 > New Revision: 326224 > URL: https://svnweb.freebsd.org/changeset/base/326224 > > Log: > Fix spelling error (probably typo). > > Modified: > head/ObsoleteFiles.inc > > Modified: head/ObsoleteFiles.inc > ============================================================ > ================== > --- head/ObsoleteFiles.inc Sun Nov 26 04:55:23 2017 (r326223) > +++ head/ObsoleteFiles.inc Sun Nov 26 06:31:34 2017 (r326224) > @@ -38,7 +38,7 @@ > # xargs -n1 | sort | uniq -d; > # done > > -# 20171118: Remove old etc capser failes > +# 20171118: Remove old etc capser files There is an other one: capser -> casper. > OLD_FILES+=etc/casper/system.dns > OLD_FILES+=etc/casper/system.grp > OLD_FILES+=etc/casper/system.pwd > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org > " > From owner-svn-src-head@freebsd.org Sun Nov 26 14:28:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF5BDDE75A5; Sun, 26 Nov 2017 14:28:28 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BD5C6C313; Sun, 26 Nov 2017 14:28:28 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQESRgE073127; Sun, 26 Nov 2017 14:28:27 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQESRxo073124; Sun, 26 Nov 2017 14:28:27 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201711261428.vAQESRxo073124@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Sun, 26 Nov 2017 14:28:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326227 - in head/sys/arm64: arm64 include X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: in head/sys/arm64: arm64 include X-SVN-Commit-Revision: 326227 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 14:28:28 -0000 Author: ed Date: Sun Nov 26 14:28:27 2017 New Revision: 326227 URL: https://svnweb.freebsd.org/changeset/base/326227 Log: Make 32-bit system calls end up in svc_handler(). The nice thing about ARM64 is that it's pretty elegant to install separate trap/exception handlers for 32-bit and 64-bit processes. That said, for all other architectures (e.g., i386 on amd64) we always let 32-bit counterparts go through the regular system call codepath. Let's do the same on ARM64. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D13146 Modified: head/sys/arm64/arm64/exception.S head/sys/arm64/arm64/trap.c head/sys/arm64/include/armreg.h Modified: head/sys/arm64/arm64/exception.S ============================================================================== --- head/sys/arm64/arm64/exception.S Sun Nov 26 10:02:43 2017 (r326226) +++ head/sys/arm64/arm64/exception.S Sun Nov 26 14:28:27 2017 (r326227) @@ -219,8 +219,8 @@ exception_vectors: vempty /* FIQ 64-bit EL0 */ vector el0_error /* Error 64-bit EL0 */ - vempty /* Synchronous 32-bit EL0 */ - vempty /* IRQ 32-bit EL0 */ + vector el0_sync /* Synchronous 32-bit EL0 */ + vector el0_irq /* IRQ 32-bit EL0 */ vempty /* FIQ 32-bit EL0 */ - vempty /* Error 32-bit EL0 */ + vector el0_error /* Error 32-bit EL0 */ Modified: head/sys/arm64/arm64/trap.c ============================================================================== --- head/sys/arm64/arm64/trap.c Sun Nov 26 10:02:43 2017 (r326226) +++ head/sys/arm64/arm64/trap.c Sun Nov 26 14:28:27 2017 (r326227) @@ -381,7 +381,8 @@ do_el0_sync(struct thread *td, struct trapframe *frame panic("VFP exception in userland"); #endif break; - case EXCP_SVC: + case EXCP_SVC32: + case EXCP_SVC64: svc_handler(td, frame); break; case EXCP_INSN_ABORT_L: Modified: head/sys/arm64/include/armreg.h ============================================================================== --- head/sys/arm64/include/armreg.h Sun Nov 26 10:02:43 2017 (r326226) +++ head/sys/arm64/include/armreg.h Sun Nov 26 14:28:27 2017 (r326227) @@ -123,7 +123,8 @@ #define EXCP_UNKNOWN 0x00 /* Unkwn exception */ #define EXCP_FP_SIMD 0x07 /* VFP/SIMD trap */ #define EXCP_ILL_STATE 0x0e /* Illegal execution state */ -#define EXCP_SVC 0x15 /* SVC trap */ +#define EXCP_SVC32 0x11 /* SVC trap for AArch32 */ +#define EXCP_SVC64 0x15 /* SVC trap for AArch64 */ #define EXCP_MSR 0x18 /* MSR/MRS trap */ #define EXCP_INSN_ABORT_L 0x20 /* Instruction abort, from lower EL */ #define EXCP_INSN_ABORT 0x21 /* Instruction abort, from same EL */ From owner-svn-src-head@freebsd.org Sun Nov 26 14:45:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28EE2DE7CFD; Sun, 26 Nov 2017 14:45:58 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 033F76CD05; Sun, 26 Nov 2017 14:45:57 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQEjvH4081544; Sun, 26 Nov 2017 14:45:57 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQEjuan081539; Sun, 26 Nov 2017 14:45:56 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201711261445.vAQEjuan081539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Sun, 26 Nov 2017 14:45:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326228 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32 X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32 X-SVN-Commit-Revision: 326228 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 14:45:58 -0000 Author: ed Date: Sun Nov 26 14:45:56 2017 New Revision: 326228 URL: https://svnweb.freebsd.org/changeset/base/326228 Log: Use TO_PTR() to convert integers to pointers. For FreeBSD/arm64's cloudabi32 support, I'm going to need a TO_PTR() in this place. Also use it for all of the other source files, so that the difference remains as minimal as possible. MFC after: 2 weeks Modified: head/sys/amd64/cloudabi32/cloudabi32_sysvec.c head/sys/amd64/cloudabi64/cloudabi64_sysvec.c head/sys/arm/cloudabi32/cloudabi32_sysvec.c head/sys/arm64/cloudabi64/cloudabi64_sysvec.c head/sys/i386/cloudabi32/cloudabi32_sysvec.c Modified: head/sys/amd64/cloudabi32/cloudabi32_sysvec.c ============================================================================== --- head/sys/amd64/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:28:27 2017 (r326227) +++ head/sys/amd64/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) @@ -86,7 +86,7 @@ cloudabi32_proc_setregs(struct thread *td, struct imag { ia32_setregs(td, imgp, stack); - (void)cpu_set_user_tls(td, (void *)stack); + (void)cpu_set_user_tls(td, TO_PTR(stack)); } static int Modified: head/sys/amd64/cloudabi64/cloudabi64_sysvec.c ============================================================================== --- head/sys/amd64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:28:27 2017 (r326227) +++ head/sys/amd64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) @@ -83,7 +83,7 @@ cloudabi64_proc_setregs(struct thread *td, struct imag regs = td->td_frame; regs->tf_rdi = stack + sizeof(register_t) + roundup(sizeof(cloudabi64_tcb_t), sizeof(register_t)); - (void)cpu_set_user_tls(td, (void *)stack); + (void)cpu_set_user_tls(td, TO_PTR(stack)); } static int @@ -188,7 +188,7 @@ cloudabi64_thread_setregs(struct thread *td, frame->tf_rdi = td->td_tid; frame->tf_rsi = attr->argument; - return (cpu_set_user_tls(td, (void *)tcbptr)); + return (cpu_set_user_tls(td, TO_PTR(tcbptr))); } static struct sysentvec cloudabi64_elf_sysvec = { Modified: head/sys/arm/cloudabi32/cloudabi32_sysvec.c ============================================================================== --- head/sys/arm/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:28:27 2017 (r326227) +++ head/sys/arm/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) @@ -63,7 +63,7 @@ cloudabi32_proc_setregs(struct thread *td, struct imag regs = td->td_frame; regs->tf_r0 = stack + roundup(sizeof(cloudabi32_tcb_t), sizeof(register_t)); - (void)cpu_set_user_tls(td, (void *)stack); + (void)cpu_set_user_tls(td, TO_PTR(stack)); } static int Modified: head/sys/arm64/cloudabi64/cloudabi64_sysvec.c ============================================================================== --- head/sys/arm64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:28:27 2017 (r326227) +++ head/sys/arm64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) @@ -63,7 +63,7 @@ cloudabi64_proc_setregs(struct thread *td, struct imag regs = td->td_frame; regs->tf_x[0] = stack + roundup(sizeof(cloudabi64_tcb_t), sizeof(register_t)); - (void)cpu_set_user_tls(td, (void *)stack); + (void)cpu_set_user_tls(td, TO_PTR(stack)); } static int Modified: head/sys/i386/cloudabi32/cloudabi32_sysvec.c ============================================================================== --- head/sys/i386/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:28:27 2017 (r326227) +++ head/sys/i386/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) @@ -81,7 +81,7 @@ cloudabi32_proc_setregs(struct thread *td, struct imag { exec_setregs(td, imgp, stack); - (void)cpu_set_user_tls(td, (void *)stack); + (void)cpu_set_user_tls(td, TO_PTR(stack)); } static int From owner-svn-src-head@freebsd.org Sun Nov 26 14:53:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C1DEDE8149; Sun, 26 Nov 2017 14:53:57 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68F2E6D18F; Sun, 26 Nov 2017 14:53:57 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQEruwe085476; Sun, 26 Nov 2017 14:53:56 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQErufx085474; Sun, 26 Nov 2017 14:53:56 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201711261453.vAQErufx085474@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Sun, 26 Nov 2017 14:53:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326229 - in head/sys: arm/cloudabi32 arm64/cloudabi64 X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: in head/sys: arm/cloudabi32 arm64/cloudabi64 X-SVN-Commit-Revision: 326229 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 14:53:57 -0000 Author: ed Date: Sun Nov 26 14:53:56 2017 New Revision: 326229 URL: https://svnweb.freebsd.org/changeset/base/326229 Log: Correct some more places where TO_PTR() should be used. These were missed in r326228. MFC after: 2 weeks Modified: head/sys/arm/cloudabi32/cloudabi32_sysvec.c head/sys/arm64/cloudabi64/cloudabi64_sysvec.c Modified: head/sys/arm/cloudabi32/cloudabi32_sysvec.c ============================================================================== --- head/sys/arm/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) +++ head/sys/arm/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:53:56 2017 (r326229) @@ -165,7 +165,7 @@ cloudabi32_thread_setregs(struct thread *td, frame->tf_r1 = attr->argument; /* Set up TLS. */ - return (cpu_set_user_tls(td, (void *)tcb)); + return (cpu_set_user_tls(td, TO_PTR(tcb))); } static struct sysentvec cloudabi32_elf_sysvec = { Modified: head/sys/arm64/cloudabi64/cloudabi64_sysvec.c ============================================================================== --- head/sys/arm64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:45:56 2017 (r326228) +++ head/sys/arm64/cloudabi64/cloudabi64_sysvec.c Sun Nov 26 14:53:56 2017 (r326229) @@ -157,7 +157,7 @@ cloudabi64_thread_setregs(struct thread *td, frame->tf_x[1] = attr->argument; /* Set up TLS. */ - return (cpu_set_user_tls(td, (void *)tcb)); + return (cpu_set_user_tls(td, TO_PTR(tcb))); } static struct sysentvec cloudabi64_elf_sysvec = { From owner-svn-src-head@freebsd.org Sun Nov 26 14:56:25 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E460DE81FC; Sun, 26 Nov 2017 14:56:25 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B3B36D302; Sun, 26 Nov 2017 14:56:25 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQEuOSn085625; Sun, 26 Nov 2017 14:56:24 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQEuOoo085622; Sun, 26 Nov 2017 14:56:24 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201711261456.vAQEuOoo085622@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Sun, 26 Nov 2017 14:56:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326230 - in head/sys/arm64: arm64 include X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: in head/sys/arm64: arm64 include X-SVN-Commit-Revision: 326230 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 14:56:25 -0000 Author: ed Date: Sun Nov 26 14:56:23 2017 New Revision: 326230 URL: https://svnweb.freebsd.org/changeset/base/326230 Log: Add a Saved Process Status Register bit for AArch32 execution mode. The documentation on the Saved Process Status Register (SPSR) is a bit weird; the M[4] bit is documented separately from M[3:0]. The M[4] bit can be toggled to switch to 32-bit execution mode. This functionality is orthogonal to M[3:0]. Change the definition of PSR_M_MASK to no longer include M[4]. Add a new definition, PSR_AARCH32 that can be used to toggle 32-bit independently. This bit will be used by the cloudabi32 code to force execution of userspace code in 32-bit mode. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D13148 Modified: head/sys/arm64/arm64/machdep.c head/sys/arm64/include/armreg.h Modified: head/sys/arm64/arm64/machdep.c ============================================================================== --- head/sys/arm64/arm64/machdep.c Sun Nov 26 14:53:56 2017 (r326229) +++ head/sys/arm64/arm64/machdep.c Sun Nov 26 14:56:23 2017 (r326230) @@ -405,7 +405,7 @@ set_mcontext(struct thread *td, mcontext_t *mcp) spsr = mcp->mc_gpregs.gp_spsr; if ((spsr & PSR_M_MASK) != PSR_M_EL0t || - (spsr & (PSR_F | PSR_I | PSR_A | PSR_D)) != 0) + (spsr & (PSR_AARCH32 | PSR_F | PSR_I | PSR_A | PSR_D)) != 0) return (EINVAL); memcpy(tf->tf_x, mcp->mc_gpregs.gp_x, sizeof(tf->tf_x)); Modified: head/sys/arm64/include/armreg.h ============================================================================== --- head/sys/arm64/include/armreg.h Sun Nov 26 14:53:56 2017 (r326229) +++ head/sys/arm64/include/armreg.h Sun Nov 26 14:56:23 2017 (r326230) @@ -549,7 +549,6 @@ /* SPSR_EL1 */ /* * When the exception is taken in AArch64: - * M[4] is 0 for AArch64 mode * M[3:2] is the exception level * M[1] is unused * M[0] is the SP select: @@ -561,8 +560,9 @@ #define PSR_M_EL1h 0x00000005 #define PSR_M_EL2t 0x00000008 #define PSR_M_EL2h 0x00000009 -#define PSR_M_MASK 0x0000001f +#define PSR_M_MASK 0x0000000f +#define PSR_AARCH32 0x00000010 #define PSR_F 0x00000040 #define PSR_I 0x00000080 #define PSR_A 0x00000100 From owner-svn-src-head@freebsd.org Sun Nov 26 16:12:11 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98E61DEA914; Sun, 26 Nov 2017 16:12:11 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 733716EE4F; Sun, 26 Nov 2017 16:12:11 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQGCAbU018514; Sun, 26 Nov 2017 16:12:10 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQGCASx018512; Sun, 26 Nov 2017 16:12:10 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201711261612.vAQGCASx018512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sun, 26 Nov 2017 16:12:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326231 - head/lib/libefivar X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/lib/libefivar X-SVN-Commit-Revision: 326231 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 16:12:11 -0000 Author: imp Date: Sun Nov 26 16:12:10 2017 New Revision: 326231 URL: https://svnweb.freebsd.org/changeset/base/326231 Log: Add efidp_format_device_path_node to format a single node in a device path, much like efidp_format_device_path will format the entire path. Sponsored by: Netflix Modified: head/lib/libefivar/efivar-dp-format.c head/lib/libefivar/efivar-dp.h Modified: head/lib/libefivar/efivar-dp-format.c ============================================================================== --- head/lib/libefivar/efivar-dp-format.c Sun Nov 26 14:56:23 2017 (r326230) +++ head/lib/libefivar/efivar-dp-format.c Sun Nov 26 16:12:10 2017 (r326231) @@ -2272,7 +2272,6 @@ static const DEVICE_PATH_TO_TEXT_TABLE mUefiDevicePath {0, 0, NULL} }; -#ifndef __FreeBSD__ /** Converts a device node to its string representation. @@ -2288,7 +2287,7 @@ static const DEVICE_PATH_TO_TEXT_TABLE mUefiDevicePath is NULL or there was insufficient memory. **/ -CHAR16 * +static char * EFIAPI UefiDevicePathLibConvertDeviceNodeToText ( IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode, @@ -2299,6 +2298,7 @@ UefiDevicePathLibConvertDeviceNodeToText ( POOL_PRINT Str; UINTN Index; DEVICE_PATH_TO_TEXT ToText; + EFI_DEVICE_PATH_PROTOCOL *Node; if (DeviceNode == NULL) { return NULL; @@ -2310,6 +2310,7 @@ UefiDevicePathLibConvertDeviceNodeToText ( // Process the device path node // If not found, use a generic function // + Node = __DECONST(EFI_DEVICE_PATH_PROTOCOL *, DeviceNode); ToText = DevPathToTextNodeGeneric; for (Index = 0; mUefiDevicePathLibToTextTable[Index].Function != NULL; Index++) { if (DevicePathType (DeviceNode) == mUefiDevicePathLibToTextTable[Index].Type && @@ -2323,12 +2324,11 @@ UefiDevicePathLibConvertDeviceNodeToText ( // // Print this node // - ToText (&Str, (VOID *) DeviceNode, DisplayOnly, AllowShortcuts); + ToText (&Str, (VOID *) Node, DisplayOnly, AllowShortcuts); ASSERT (Str.Str != NULL); return Str.Str; } -#endif /** Converts a device path to its text representation. @@ -2431,8 +2431,26 @@ efidp_format_device_path(char *buf, size_t len, const_ return retval; } +ssize_t +efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, ssize_t max) +{ + char *str; + ssize_t retval; + + str = UefiDevicePathLibConvertDeviceNodeToText ( + __DECONST(EFI_DEVICE_PATH_PROTOCOL *, dp), FALSE, TRUE); + if (str == NULL) + return -1; + strlcpy(buf, str, len); + retval = strlen(str); + free(str); + + return retval; +} + size_t efidp_size(const_efidp dp) { + return GetDevicePathSize(__DECONST(EFI_DEVICE_PATH_PROTOCOL *, dp)); } Modified: head/lib/libefivar/efivar-dp.h ============================================================================== --- head/lib/libefivar/efivar-dp.h Sun Nov 26 14:56:23 2017 (r326230) +++ head/lib/libefivar/efivar-dp.h Sun Nov 26 16:12:10 2017 (r326231) @@ -60,6 +60,8 @@ typedef const efidp_data *const_efidp; */ ssize_t efidp_format_device_path(char *buf, size_t len, const_efidp dp, ssize_t max); +ssize_t efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, + ssize_t max); ssize_t efidp_parse_device_path(char *path, efidp out, size_t max); size_t efidp_size(const_efidp); From owner-svn-src-head@freebsd.org Sun Nov 26 16:41:31 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D432EDEB2D0; Sun, 26 Nov 2017 16:41:31 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A10F56FD67; Sun, 26 Nov 2017 16:41:31 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQGfU9b030210; Sun, 26 Nov 2017 16:41:30 GMT (envelope-from mmel@FreeBSD.org) Received: (from mmel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQGfU6C030209; Sun, 26 Nov 2017 16:41:30 GMT (envelope-from mmel@FreeBSD.org) Message-Id: <201711261641.vAQGfU6C030209@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmel set sender to mmel@FreeBSD.org using -f From: Michal Meloun Date: Sun, 26 Nov 2017 16:41:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326232 - head/lib/libzstd X-SVN-Group: head X-SVN-Commit-Author: mmel X-SVN-Commit-Paths: head/lib/libzstd X-SVN-Commit-Revision: 326232 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 16:41:31 -0000 Author: mmel Date: Sun Nov 26 16:41:30 2017 New Revision: 326232 URL: https://svnweb.freebsd.org/changeset/base/326232 Log: Addd work around for LLVM bug 35023. Clang crashes when compiling zstd_compress.c with optimization for ARM targets. https://bugs.llvm.org/show_bug.cgi?id=35023 Modified: head/lib/libzstd/Makefile Modified: head/lib/libzstd/Makefile ============================================================================== --- head/lib/libzstd/Makefile Sun Nov 26 16:12:10 2017 (r326231) +++ head/lib/libzstd/Makefile Sun Nov 26 16:41:30 2017 (r326232) @@ -38,4 +38,9 @@ ZSTDDIR= ${SRCTOP}/sys/contrib/zstd ${ZSTDDIR}/lib/decompress ${ZSTDDIR}/lib/deprecated \ ${ZSTDDIR}/lib/dictBuilder ${ZSTDDIR}/lib +# Work around for LLVM bug 35023, https://bugs.llvm.org/show_bug.cgi?id=35023 +.if ${MACHINE_ARCH:Marm*} != "" +CFLAGS.zstd_compress.c+= -O0 +.endif + .include From owner-svn-src-head@freebsd.org Sun Nov 26 17:07:32 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 335E7DEBB8D; Sun, 26 Nov 2017 17:07:32 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFF007069A; Sun, 26 Nov 2017 17:07:31 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vAQH7Smu022084 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 26 Nov 2017 09:07:29 -0800 Subject: Re: svn commit: r326218 - head/sys/kern To: Andrew Turner Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <59383A7D-FC99-4748-9561-53D968C4B150@fubar.geek.nz> From: Nathan Whitehorn Message-ID: <62864c22-e458-2f13-2b33-9dc075ed2ef2@freebsd.org> Date: Sun, 26 Nov 2017 09:07:27 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <59383A7D-FC99-4748-9561-53D968C4B150@fubar.geek.nz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVbOx2+VNdBpwjTv0t7WeLmL/f9MFlSF+kMdCphldoJW1OC/H5DuW/WvOmN0mi8SkQTadR+QjIfgIpdF/k6r3TrKvJqdY78bre8= X-Sonic-ID: C;tBkvSMzS5xGNausnWtmBlw== M;0hCSSMzS5xGNausnWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 17:07:32 -0000 On 11/26/17 01:46, Andrew Turner wrote: > On 25 Nov 2017, at 23:41, Nathan Whitehorn wrote: >> Author: nwhitehorn >> Date: Sat Nov 25 23:41:05 2017 >> New Revision: 326218 >> URL: https://svnweb.freebsd.org/changeset/base/326218 >> >> Log: >> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs >> are numbered densely from there to n_cpus. >> >> MFC after: 1 month >> >> Modified: >> head/sys/kern/kern_clock.c >> head/sys/kern/kern_clocksource.c >> head/sys/kern/kern_shutdown.c >> head/sys/kern/kern_timeout.c >> head/sys/kern/sched_ule.c >> head/sys/kern/subr_pcpu.c >> > ... >> Modified: head/sys/kern/subr_pcpu.c >> ============================================================================== >> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) >> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) >> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >> struct pcpu * >> pcpu_find(u_int cpuid) >> { >> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, >> + ("Getting uninitialized PCPU %d", cpuid)); >> >> return (cpuid_to_pcpu[cpuid]); >> } > This breaks on one arm64 simulator I have where the device tree lists 8 cpus, but only 2 are enabled in the simulation. The ofw_cpu device nodes for these are cpu0 and cpu4 so the call to cpu_find in ofw_cpu_attach will hit this KASSERT when the CPU has not been enabled. > > Andrew > > cpu0: on cpulist0 > cpu1: on cpulist0 > panic: Getting uninitialized PCPU 1 > cpuid = 0 > time = 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self_wrapper+0x28 > pc = 0xffff0000005f03e8 lr = 0xffff000000087048 > sp = 0xffff0000000105a0 fp = 0xffff0000000107b0 That's unfortunate. Removing the new KASSERT is probably not the right option, since all it is doing is indicating a pre-existing bug. Specifically, it is preventing ofw_cpu from using a NULL pointer for CPU 4, which I suppose it was previously happily doing (it would only get dereferenced if you had cpufreq support, hence no previous panic). A super quick-and-dirty fix would be to be fail attach on CPU_ABSENT(device_get_unit(dev)), which restores the previous buggy behavior but without the panic. If you do not actually use ofw_cpu for anything, we could also just disable it temporarily on your platform (it's off for some PPC systems, you will note, for similar reasons). A real fix is somewhat complex, since the driver relies on being able to get a mapping from platform-specific numbers in the device tree to an entry in pcpu, which intrinsically relies on reverse-engineering the platform's mapping between some kind of hardware CPU ID and the kernel CPU numbering. I can't think of a way to do that internally. We could make some kind of platform macro, but the whole concept is even somewhat dubious at the moment since a number of IBM systems with SMT don't even have a 1:1 relationship between CPUs as FreeBSD defines them and device tree nodes, so it's possible we need a serious rearchitecture of the driver. Please let me know how I can help get this fixed. -Nathan From owner-svn-src-head@freebsd.org Sun Nov 26 17:27:54 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20ED7DEC3C0 for ; Sun, 26 Nov 2017 17:27:54 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA67671256 for ; Sun, 26 Nov 2017 17:27:53 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 269aab30-d2cf-11e7-97f4-9d8903e843e3 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 269aab30-d2cf-11e7-97f4-9d8903e843e3; Sun, 26 Nov 2017 17:28:01 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id vAQHRje6001319; Sun, 26 Nov 2017 10:27:45 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1511717265.23588.43.camel@freebsd.org> Subject: Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts From: Ian Lepore To: Bruce Evans Cc: svn-src-all@freebsd.org, svn-src-head@freebsd.org Date: Sun, 26 Nov 2017 10:27:45 -0700 In-Reply-To: <20171125201623.J1236@besplex.bde.org> References: <201711231729.vANHTVmo092083@pdx.rh.CN85.dnsmgr.net> <20171124201621.K980@besplex.bde.org> <1511539000.94268.17.camel@freebsd.org> <20171125201623.J1236@besplex.bde.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 17:27:54 -0000 On Sat, 2017-11-25 at 22:09 +1100, Bruce Evans wrote: > On Fri, 24 Nov 2017, Ian Lepore wrote: > > [...] > > Is there any use for ntp as a client if you have an atomic clock? Just to > validate both it and ntpd? > > Bruce Ntpd treats the atomic clock as one of its peers... the clock emits a PPS pulse and serves as a refclock peer. There generally also needs to be a network peer, or another type of refclock such as a gps receiver, to tell ntpd how to number the seconds. Some atomic clocks are able to number the seconds as well (such as a Microsemi 5071a cesium), but that's not a feature that's used often in my experience. When the frequency output of the atomic clock directly drives the kernel timecounter (obviously using some custom hardware), ntpd isn't very good at being just a network protocol server. It really wants to steer the kernel clock based on phase/frequency measurements from some peer. There are dregs of old "LOCKCLOCK" support code in ntpd which is supposed to handle the "clock is externally steered" case, but when I tried to configure and build it to run that way last year, I had no success (which could be due to poor documentation and my misunderstanding of it, or could just be the support has bitrotted). -- Ian From owner-svn-src-head@freebsd.org Sun Nov 26 18:19:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5638BDED68D; Sun, 26 Nov 2017 18:19:03 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FFBE72DD6; Sun, 26 Nov 2017 18:19:02 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQIJ24B068967; Sun, 26 Nov 2017 18:19:02 GMT (envelope-from tuexen@FreeBSD.org) Received: (from tuexen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQIJ1Pj068961; Sun, 26 Nov 2017 18:19:01 GMT (envelope-from tuexen@FreeBSD.org) Message-Id: <201711261819.vAQIJ1Pj068961@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tuexen set sender to tuexen@FreeBSD.org using -f From: Michael Tuexen Date: Sun, 26 Nov 2017 18:19:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326233 - in head: sbin/ipfw sys/netinet sys/netpfil/ipfw X-SVN-Group: head X-SVN-Commit-Author: tuexen X-SVN-Commit-Paths: in head: sbin/ipfw sys/netinet sys/netpfil/ipfw X-SVN-Commit-Revision: 326233 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 18:19:03 -0000 Author: tuexen Date: Sun Nov 26 18:19:01 2017 New Revision: 326233 URL: https://svnweb.freebsd.org/changeset/base/326233 Log: Add to ipfw support for sending an SCTP packet containing an ABORT chunk. This is similar to the TCP case. where a TCP RST segment can be sent. There is one limitation: When sending an ABORT in response to an incoming packet, it should be tested if there is no ABORT chunk in the received packet. Currently, it is only checked if the first chunk is an ABORT chunk to avoid parsing the whole packet, which could result in a DOS attack. Thanks to Timo Voelker for helping me to test this patch. Reviewed by: bcr@ (man page part), ae@ (generic, non-SCTP part) Differential Revision: https://reviews.freebsd.org/D13239 Modified: head/sbin/ipfw/ipfw.8 head/sbin/ipfw/ipfw2.c head/sbin/ipfw/ipfw2.h head/sys/netinet/ip_fw.h head/sys/netpfil/ipfw/ip_fw2.c head/sys/netpfil/ipfw/ip_fw_log.c Modified: head/sbin/ipfw/ipfw.8 ============================================================================== --- head/sbin/ipfw/ipfw.8 Sun Nov 26 16:41:30 2017 (r326232) +++ head/sbin/ipfw/ipfw.8 Sun Nov 26 18:19:01 2017 (r326233) @@ -1,7 +1,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 2, 2017 +.Dd November 26, 2017 .Dt IPFW 8 .Os .Sh NAME @@ -1173,6 +1173,14 @@ ipfw add reass all from any to any in .Ed .Pp is all you need at the beginning of your ruleset. +.It Cm abort +Discard packets that match this rule, and if the packet is an SCTP packet, +try to send an SCTP packet containing an ABORT chunk. +The search terminates. +.It Cm abort6 +Discard packets that match this rule, and if the packet is an SCTP packet, +try to send an SCTP packet containing an ABORT chunk. +The search terminates. .El .Ss RULE BODY The body of a rule contains zero or more patterns (such as Modified: head/sbin/ipfw/ipfw2.c ============================================================================== --- head/sbin/ipfw/ipfw2.c Sun Nov 26 16:41:30 2017 (r326232) +++ head/sbin/ipfw/ipfw2.c Sun Nov 26 18:19:01 2017 (r326233) @@ -244,6 +244,8 @@ static struct _s_x rule_eactions[] = { }; static struct _s_x rule_actions[] = { + { "abort6", TOK_ABORT6 }, + { "abort", TOK_ABORT }, { "accept", TOK_ACCEPT }, { "pass", TOK_ACCEPT }, { "allow", TOK_ACCEPT }, @@ -1507,6 +1509,8 @@ show_static_rule(struct cmdline_opts *co, struct forma case O_REJECT: if (cmd->arg1 == ICMP_REJECT_RST) bprintf(bp, "reset"); + else if (cmd->arg1 == ICMP_REJECT_ABORT) + bprintf(bp, "abort"); else if (cmd->arg1 == ICMP_UNREACH_HOST) bprintf(bp, "reject"); else @@ -1516,6 +1520,8 @@ show_static_rule(struct cmdline_opts *co, struct forma case O_UNREACH6: if (cmd->arg1 == ICMP6_UNREACH_RST) bprintf(bp, "reset6"); + else if (cmd->arg1 == ICMP6_UNREACH_ABORT) + bprintf(bp, "abort6"); else print_unreach6_code(bp, cmd->arg1); break; @@ -3752,6 +3758,16 @@ compile_rule(char *av[], uint32_t *rbuf, int *rbufsize break; } errx(EX_DATAERR, "Invalid state name %s", *av); + break; + + case TOK_ABORT: + action->opcode = O_REJECT; + action->arg1 = ICMP_REJECT_ABORT; + break; + + case TOK_ABORT6: + action->opcode = O_UNREACH6; + action->arg1 = ICMP6_UNREACH_ABORT; break; case TOK_ACCEPT: Modified: head/sbin/ipfw/ipfw2.h ============================================================================== --- head/sbin/ipfw/ipfw2.h Sun Nov 26 16:41:30 2017 (r326232) +++ head/sbin/ipfw/ipfw2.h Sun Nov 26 18:19:01 2017 (r326233) @@ -81,6 +81,8 @@ enum tokens { TOK_STARTBRACE, TOK_ENDBRACE, + TOK_ABORT6, + TOK_ABORT, TOK_ACCEPT, TOK_COUNT, TOK_EACTION, Modified: head/sys/netinet/ip_fw.h ============================================================================== --- head/sys/netinet/ip_fw.h Sun Nov 26 16:41:30 2017 (r326232) +++ head/sys/netinet/ip_fw.h Sun Nov 26 18:19:01 2017 (r326233) @@ -728,6 +728,8 @@ struct _ipfw_dyn_rule { #define ICMP_REJECT_RST 0x100 /* fake ICMP code (send a TCP RST) */ #define ICMP6_UNREACH_RST 0x100 /* fake ICMPv6 code (send a TCP RST) */ +#define ICMP_REJECT_ABORT 0x101 /* fake ICMP code (send an SCTP ABORT) */ +#define ICMP6_UNREACH_ABORT 0x101 /* fake ICMPv6 code (send an SCTP ABORT) */ /* * These are used for lookup tables. Modified: head/sys/netpfil/ipfw/ip_fw2.c ============================================================================== --- head/sys/netpfil/ipfw/ip_fw2.c Sun Nov 26 16:41:30 2017 (r326232) +++ head/sys/netpfil/ipfw/ip_fw2.c Sun Nov 26 18:19:01 2017 (r326233) @@ -80,6 +80,8 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include #include #include @@ -469,6 +471,113 @@ verify_path(struct in_addr src, struct ifnet *ifp, u_i } /* + * Generate an SCTP packet containing an ABORT chunk. The verification tag + * is given by vtag. The T-bit is set in the ABORT chunk if and only if + * reflected is not 0. + */ + +static struct mbuf * +ipfw_send_abort(struct mbuf *replyto, struct ipfw_flow_id *id, u_int32_t vtag, + int reflected) +{ + struct mbuf *m; + struct ip *ip; +#ifdef INET6 + struct ip6_hdr *ip6; +#endif + struct sctphdr *sctp; + struct sctp_chunkhdr *chunk; + u_int16_t hlen, plen, tlen; + + MGETHDR(m, M_NOWAIT, MT_DATA); + if (m == NULL) + return (NULL); + + M_SETFIB(m, id->fib); +#ifdef MAC + if (replyto != NULL) + mac_netinet_firewall_reply(replyto, m); + else + mac_netinet_firewall_send(m); +#else + (void)replyto; /* don't warn about unused arg */ +#endif + + switch (id->addr_type) { + case 4: + hlen = sizeof(struct ip); + break; +#ifdef INET6 + case 6: + hlen = sizeof(struct ip6_hdr); + break; +#endif + default: + /* XXX: log me?!? */ + FREE_PKT(m); + return (NULL); + } + plen = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); + tlen = hlen + plen; + m->m_data += max_linkhdr; + m->m_flags |= M_SKIP_FIREWALL; + m->m_pkthdr.len = m->m_len = tlen; + m->m_pkthdr.rcvif = NULL; + bzero(m->m_data, tlen); + + switch (id->addr_type) { + case 4: + ip = mtod(m, struct ip *); + + ip->ip_v = 4; + ip->ip_hl = sizeof(struct ip) >> 2; + ip->ip_tos = IPTOS_LOWDELAY; + ip->ip_len = htons(tlen); + ip->ip_id = htons(0); + ip->ip_off = htons(0); + ip->ip_ttl = V_ip_defttl; + ip->ip_p = IPPROTO_SCTP; + ip->ip_sum = 0; + ip->ip_src.s_addr = htonl(id->dst_ip); + ip->ip_dst.s_addr = htonl(id->src_ip); + + sctp = (struct sctphdr *)(ip + 1); + break; +#ifdef INET6 + case 6: + ip6 = mtod(m, struct ip6_hdr *); + + ip6->ip6_vfc = IPV6_VERSION; + ip6->ip6_plen = htons(plen); + ip6->ip6_nxt = IPPROTO_SCTP; + ip6->ip6_hlim = IPV6_DEFHLIM; + ip6->ip6_src = id->dst_ip6; + ip6->ip6_dst = id->src_ip6; + + sctp = (struct sctphdr *)(ip6 + 1); + break; +#endif + } + + sctp->src_port = htons(id->dst_port); + sctp->dest_port = htons(id->src_port); + sctp->v_tag = htonl(vtag); + sctp->checksum = htonl(0); + + chunk = (struct sctp_chunkhdr *)(sctp + 1); + chunk->chunk_type = SCTP_ABORT_ASSOCIATION; + chunk->chunk_flags = 0; + if (reflected != 0) { + chunk->chunk_flags |= SCTP_HAD_NO_TCB; + } + chunk->chunk_length = htons(sizeof(struct sctp_chunkhdr)); + + sctp->checksum = sctp_calculate_cksum(m, hlen); + + return (m); +} + +/* * Generate a TCP packet, containing either a RST or a keepalive. * When flags & TH_RST, we are sending a RST packet, because of a * "reset" action matched the packet. @@ -730,7 +839,71 @@ send_reject6(struct ip_fw_args *args, int code, u_int NULL); } FREE_PKT(m); - } else if (code != ICMP6_UNREACH_RST) { /* Send an ICMPv6 unreach. */ + } else if (code == ICMP6_UNREACH_ABORT && + args->f_id.proto == IPPROTO_SCTP) { + struct mbuf *m0; + struct sctphdr *sctp; + u_int32_t v_tag; + int reflected; + + sctp = (struct sctphdr *)((char *)ip6 + hlen); + reflected = 1; + v_tag = ntohl(sctp->v_tag); + /* Investigate the first chunk header if available */ + if (m->m_len >= hlen + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr)) { + struct sctp_chunkhdr *chunk; + + chunk = (struct sctp_chunkhdr *)(sctp + 1); + switch (chunk->chunk_type) { + case SCTP_INITIATION: + /* + * Packets containing an INIT chunk MUST have + * a zero v-tag. + */ + if (v_tag != 0) { + v_tag = 0; + break; + } + /* INIT chunk MUST NOT be bundled */ + if (m->m_pkthdr.len > + hlen + sizeof(struct sctphdr) + + ntohs(chunk->chunk_length) + 3) { + break; + } + /* Use the initiate tag if available */ + if ((m->m_len >= hlen + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd))) { + struct sctp_init *init; + + init = (struct sctp_init *)(chunk + 1); + v_tag = ntohl(init->initiate_tag); + reflected = 0; + } + break; + case SCTP_ABORT_ASSOCIATION: + /* + * If the packet contains an ABORT chunk, don't + * reply. + * XXX: We should search through all chunks, + * but don't do to avoid attacks. + */ + v_tag = 0; + break; + } + } + if (v_tag == 0) { + m0 = NULL; + } else { + m0 = ipfw_send_abort(args->m, &(args->f_id), v_tag, + reflected); + } + if (m0 != NULL) + ip6_output(m0, NULL, NULL, 0, NULL, NULL, NULL); + FREE_PKT(m); + } else if (code != ICMP6_UNREACH_RST && code != ICMP6_UNREACH_ABORT) { + /* Send an ICMPv6 unreach. */ #if 0 /* * Unlike above, the mbufs need to line up with the ip6 hdr, @@ -770,9 +943,10 @@ send_reject(struct ip_fw_args *args, int code, int ipl if (args->L3offset) m_adj(m, args->L3offset); #endif - if (code != ICMP_REJECT_RST) { /* Send an ICMP unreach */ + if (code != ICMP_REJECT_RST && code != ICMP_REJECT_ABORT) { + /* Send an ICMP unreach */ icmp_error(args->m, ICMP_UNREACH, code, 0L, 0); - } else if (args->f_id.proto == IPPROTO_TCP) { + } else if (code == ICMP_REJECT_RST && args->f_id.proto == IPPROTO_TCP) { struct tcphdr *const tcp = L3HDR(struct tcphdr, mtod(args->m, struct ip *)); if ( (tcp->th_flags & TH_RST) == 0) { @@ -784,6 +958,68 @@ send_reject(struct ip_fw_args *args, int code, int ipl ip_output(m, NULL, NULL, 0, NULL, NULL); } FREE_PKT(args->m); + } else if (code == ICMP_REJECT_ABORT && + args->f_id.proto == IPPROTO_SCTP) { + struct mbuf *m; + struct sctphdr *sctp; + struct sctp_chunkhdr *chunk; + struct sctp_init *init; + u_int32_t v_tag; + int reflected; + + sctp = L3HDR(struct sctphdr, mtod(args->m, struct ip *)); + reflected = 1; + v_tag = ntohl(sctp->v_tag); + if (iplen >= (ip->ip_hl << 2) + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr)) { + /* Look at the first chunk header if available */ + chunk = (struct sctp_chunkhdr *)(sctp + 1); + switch (chunk->chunk_type) { + case SCTP_INITIATION: + /* + * Packets containing an INIT chunk MUST have + * a zero v-tag. + */ + if (v_tag != 0) { + v_tag = 0; + break; + } + /* INIT chunk MUST NOT be bundled */ + if (iplen > + (ip->ip_hl << 2) + sizeof(struct sctphdr) + + ntohs(chunk->chunk_length) + 3) { + break; + } + /* Use the initiate tag if available */ + if ((iplen >= (ip->ip_hl << 2) + + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd))) { + init = (struct sctp_init *)(chunk + 1); + v_tag = ntohl(init->initiate_tag); + reflected = 0; + } + break; + case SCTP_ABORT_ASSOCIATION: + /* + * If the packet contains an ABORT chunk, don't + * reply. + * XXX: We should search through all chunks, + * but don't do to avoid attacks. + */ + v_tag = 0; + break; + } + } + if (v_tag == 0) { + m = NULL; + } else { + m = ipfw_send_abort(args->m, &(args->f_id), v_tag, + reflected); + } + if (m != NULL) + ip_output(m, NULL, NULL, 0, NULL, NULL); + FREE_PKT(args->m); } else FREE_PKT(args->m); args->m = NULL; @@ -1203,7 +1439,18 @@ do { \ break; case IPPROTO_SCTP: - PULLUP_TO(hlen, ulp, struct sctphdr); + if (pktlen >= hlen + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd)) + PULLUP_LEN(hlen, ulp, + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd)); + else if (pktlen >= hlen + sizeof(struct sctphdr)) + PULLUP_LEN(hlen, ulp, pktlen - hlen); + else + PULLUP_LEN(hlen, ulp, + sizeof(struct sctphdr)); src_port = SCTP(ulp)->src_port; dst_port = SCTP(ulp)->dest_port; break; @@ -1380,7 +1627,18 @@ do { \ break; case IPPROTO_SCTP: - PULLUP_TO(hlen, ulp, struct sctphdr); + if (pktlen >= hlen + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd)) + PULLUP_LEN(hlen, ulp, + sizeof(struct sctphdr) + + sizeof(struct sctp_chunkhdr) + + offsetof(struct sctp_init, a_rwnd)); + else if (pktlen >= hlen + sizeof(struct sctphdr)) + PULLUP_LEN(hlen, ulp, pktlen - hlen); + else + PULLUP_LEN(hlen, ulp, + sizeof(struct sctphdr)); src_port = SCTP(ulp)->src_port; dst_port = SCTP(ulp)->dest_port; break; Modified: head/sys/netpfil/ipfw/ip_fw_log.c ============================================================================== --- head/sys/netpfil/ipfw/ip_fw_log.c Sun Nov 26 16:41:30 2017 (r326232) +++ head/sys/netpfil/ipfw/ip_fw_log.c Sun Nov 26 18:19:01 2017 (r326233) @@ -165,6 +165,8 @@ ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u case O_REJECT: if (cmd->arg1==ICMP_REJECT_RST) action = "Reset"; + else if (cmd->arg1==ICMP_REJECT_ABORT) + action = "Abort"; else if (cmd->arg1==ICMP_UNREACH_HOST) action = "Reject"; else @@ -175,6 +177,8 @@ ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u case O_UNREACH6: if (cmd->arg1==ICMP6_UNREACH_RST) action = "Reset"; + else if (cmd->arg1==ICMP6_UNREACH_ABORT) + action = "Abort"; else snprintf(SNPARGS(action2, 0), "Unreach %d", cmd->arg1); From owner-svn-src-head@freebsd.org Sun Nov 26 18:33:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EF93DEDE84; Sun, 26 Nov 2017 18:33:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA34F7384A; Sun, 26 Nov 2017 18:33:43 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id vAQIXb85063511 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 26 Nov 2017 20:33:38 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua vAQIXb85063511 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id vAQIXbgi063510; Sun, 26 Nov 2017 20:33:37 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 26 Nov 2017 20:33:37 +0200 From: Konstantin Belousov To: Ed Schouten Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326227 - in head/sys/arm64: arm64 include Message-ID: <20171126183337.GH2272@kib.kiev.ua> References: <201711261428.vAQESRxo073124@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201711261428.vAQESRxo073124@repo.freebsd.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 18:33:44 -0000 On Sun, Nov 26, 2017 at 02:28:27PM +0000, Ed Schouten wrote: > Author: ed > Date: Sun Nov 26 14:28:27 2017 > New Revision: 326227 > URL: https://svnweb.freebsd.org/changeset/base/326227 > > Log: > Make 32-bit system calls end up in svc_handler(). > > The nice thing about ARM64 is that it's pretty elegant to install > separate trap/exception handlers for 32-bit and 64-bit processes. That > said, for all other architectures (e.g., i386 on amd64) we always let > 32-bit counterparts go through the regular system call codepath. Let's > do the same on ARM64. We don't and never did on amd64. For amd64, IDT entry for int $0x80 points to a handler which, by its nature, is different from the native syscall entry. Then, i386 ABI-specific ia32_syscall() C handler is called from the trampoline, and reuses the subr_syscall.c code by inclusion. In other words, there is no reused code, except MI syscallenter/syscallret. > > Reviewed by: andrew > Differential Revision: https://reviews.freebsd.org/D13146 > > Modified: > head/sys/arm64/arm64/exception.S > head/sys/arm64/arm64/trap.c > head/sys/arm64/include/armreg.h > > Modified: head/sys/arm64/arm64/exception.S > ============================================================================== > --- head/sys/arm64/arm64/exception.S Sun Nov 26 10:02:43 2017 (r326226) > +++ head/sys/arm64/arm64/exception.S Sun Nov 26 14:28:27 2017 (r326227) > @@ -219,8 +219,8 @@ exception_vectors: > vempty /* FIQ 64-bit EL0 */ > vector el0_error /* Error 64-bit EL0 */ > > - vempty /* Synchronous 32-bit EL0 */ > - vempty /* IRQ 32-bit EL0 */ > + vector el0_sync /* Synchronous 32-bit EL0 */ > + vector el0_irq /* IRQ 32-bit EL0 */ > vempty /* FIQ 32-bit EL0 */ > - vempty /* Error 32-bit EL0 */ > + vector el0_error /* Error 32-bit EL0 */ > > > Modified: head/sys/arm64/arm64/trap.c > ============================================================================== > --- head/sys/arm64/arm64/trap.c Sun Nov 26 10:02:43 2017 (r326226) > +++ head/sys/arm64/arm64/trap.c Sun Nov 26 14:28:27 2017 (r326227) > @@ -381,7 +381,8 @@ do_el0_sync(struct thread *td, struct trapframe *frame > panic("VFP exception in userland"); > #endif > break; > - case EXCP_SVC: > + case EXCP_SVC32: > + case EXCP_SVC64: > svc_handler(td, frame); > break; > case EXCP_INSN_ABORT_L: > > Modified: head/sys/arm64/include/armreg.h > ============================================================================== > --- head/sys/arm64/include/armreg.h Sun Nov 26 10:02:43 2017 (r326226) > +++ head/sys/arm64/include/armreg.h Sun Nov 26 14:28:27 2017 (r326227) > @@ -123,7 +123,8 @@ > #define EXCP_UNKNOWN 0x00 /* Unkwn exception */ > #define EXCP_FP_SIMD 0x07 /* VFP/SIMD trap */ > #define EXCP_ILL_STATE 0x0e /* Illegal execution state */ > -#define EXCP_SVC 0x15 /* SVC trap */ > +#define EXCP_SVC32 0x11 /* SVC trap for AArch32 */ > +#define EXCP_SVC64 0x15 /* SVC trap for AArch64 */ > #define EXCP_MSR 0x18 /* MSR/MRS trap */ > #define EXCP_INSN_ABORT_L 0x20 /* Instruction abort, from lower EL */ > #define EXCP_INSN_ABORT 0x21 /* Instruction abort, from same EL */ From owner-svn-src-head@freebsd.org Sun Nov 26 19:16:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D73EDDEE7EF; Sun, 26 Nov 2017 19:16:46 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3DE87492A; Sun, 26 Nov 2017 19:16:46 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQJGjRC093766; Sun, 26 Nov 2017 19:16:45 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQJGjiJ093765; Sun, 26 Nov 2017 19:16:45 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711261916.vAQJGjiJ093765@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Sun, 26 Nov 2017 19:16:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326234 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326234 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 19:16:46 -0000 Author: markj Date: Sun Nov 26 19:16:45 2017 New Revision: 326234 URL: https://svnweb.freebsd.org/changeset/base/326234 Log: Remove unneeded initializations from vm_phys_init_page(). The page allocator always initializes the aflags and oflags fields. Reviewed by: alc, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13242 Modified: head/sys/vm/vm_phys.c Modified: head/sys/vm/vm_phys.c ============================================================================== --- head/sys/vm/vm_phys.c Sun Nov 26 18:19:01 2017 (r326233) +++ head/sys/vm/vm_phys.c Sun Nov 26 19:16:45 2017 (r326234) @@ -742,7 +742,7 @@ vm_phys_init_page(vm_paddr_t pa) m->wire_count = 0; m->busy_lock = VPB_UNBUSIED; m->hold_count = 0; - m->flags = m->aflags = m->oflags = 0; + m->flags = 0; m->phys_addr = pa; m->queue = PQ_NONE; m->psind = 0; From owner-svn-src-head@freebsd.org Sun Nov 26 19:17:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D595DEE874; Sun, 26 Nov 2017 19:17:56 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5771A74A89; Sun, 26 Nov 2017 19:17:56 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQJHtCv093852; Sun, 26 Nov 2017 19:17:55 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQJHt0m093849; Sun, 26 Nov 2017 19:17:55 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711261917.vAQJHt0m093849@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Sun, 26 Nov 2017 19:17:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326235 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326235 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 19:17:56 -0000 Author: markj Date: Sun Nov 26 19:17:55 2017 New Revision: 326235 URL: https://svnweb.freebsd.org/changeset/base/326235 Log: Move vm_phys_init_page() to vm_page.c. Suggested by: kib Reviewed by: alc, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13250 Modified: head/sys/vm/vm_page.c head/sys/vm/vm_phys.c head/sys/vm/vm_phys.h Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Sun Nov 26 19:16:45 2017 (r326234) +++ head/sys/vm/vm_page.c Sun Nov 26 19:17:55 2017 (r326235) @@ -423,6 +423,31 @@ vm_page_domain_init(struct vm_domain *vmd) } /* + * Initialize a physical page in preparation for adding it to the free + * lists. + */ +static void +vm_page_init_page(vm_paddr_t pa) +{ + vm_page_t m; + + m = vm_phys_paddr_to_vm_page(pa); + m->object = NULL; + m->wire_count = 0; + m->busy_lock = VPB_UNBUSIED; + m->hold_count = 0; + m->flags = 0; + m->phys_addr = pa; + m->queue = PQ_NONE; + m->psind = 0; + m->segind = vm_phys_paddr_to_segind(pa); + m->order = VM_NFREEORDER; + m->pool = VM_FREEPOOL_DEFAULT; + m->valid = m->dirty = 0; + pmap_page_init(m); +} + +/* * vm_page_startup: * * Initializes the resident memory module. Allocates physical memory for @@ -670,7 +695,7 @@ vm_page_startup(vm_offset_t vaddr) for (segind = 0; segind < vm_phys_nsegs; segind++) { seg = &vm_phys_segs[segind]; for (pa = seg->start; pa < seg->end; pa += PAGE_SIZE) - vm_phys_init_page(pa); + vm_page_init_page(pa); /* * Add the segment to the free lists only if it is covered by Modified: head/sys/vm/vm_phys.c ============================================================================== --- head/sys/vm/vm_phys.c Sun Nov 26 19:16:45 2017 (r326234) +++ head/sys/vm/vm_phys.c Sun Nov 26 19:17:55 2017 (r326235) @@ -171,7 +171,6 @@ static vm_page_t vm_phys_alloc_seg_contig(struct vm_ph vm_paddr_t boundary); static void _vm_phys_create_seg(vm_paddr_t start, vm_paddr_t end, int domain); static void vm_phys_create_seg(vm_paddr_t start, vm_paddr_t end); -static int vm_phys_paddr_to_segind(vm_paddr_t pa); static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order); @@ -729,31 +728,6 @@ vm_phys_split_pages(vm_page_t m, int oind, struct vm_f } /* - * Initialize a physical page in preparation for adding it to the free - * lists. - */ -void -vm_phys_init_page(vm_paddr_t pa) -{ - vm_page_t m; - - m = vm_phys_paddr_to_vm_page(pa); - m->object = NULL; - m->wire_count = 0; - m->busy_lock = VPB_UNBUSIED; - m->hold_count = 0; - m->flags = 0; - m->phys_addr = pa; - m->queue = PQ_NONE; - m->psind = 0; - m->segind = vm_phys_paddr_to_segind(pa); - m->order = VM_NFREEORDER; - m->pool = VM_FREEPOOL_DEFAULT; - m->valid = m->dirty = 0; - pmap_page_init(m); -} - -/* * Allocate a contiguous, power of two-sized set of physical pages * from the free lists. * @@ -1064,7 +1038,7 @@ vm_phys_fictitious_unreg_range(vm_paddr_t start, vm_pa /* * Find the segment containing the given physical address. */ -static int +int vm_phys_paddr_to_segind(vm_paddr_t pa) { struct vm_phys_seg *seg; Modified: head/sys/vm/vm_phys.h ============================================================================== --- head/sys/vm/vm_phys.h Sun Nov 26 19:16:45 2017 (r326234) +++ head/sys/vm/vm_phys.h Sun Nov 26 19:17:55 2017 (r326235) @@ -82,7 +82,7 @@ vm_page_t vm_phys_fictitious_to_vm_page(vm_paddr_t pa) void vm_phys_free_contig(vm_page_t m, u_long npages); void vm_phys_free_pages(vm_page_t m, int order); void vm_phys_init(void); -void vm_phys_init_page(vm_paddr_t pa); +int vm_phys_paddr_to_segind(vm_paddr_t pa); vm_page_t vm_phys_paddr_to_vm_page(vm_paddr_t pa); vm_page_t vm_phys_scan_contig(u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, int options); From owner-svn-src-head@freebsd.org Sun Nov 26 19:54:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69413DEF3C9; Sun, 26 Nov 2017 19:54:06 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ED66E75C25; Sun, 26 Nov 2017 19:54:05 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wr0-x242.google.com with SMTP id o14so24508430wrf.9; Sun, 26 Nov 2017 11:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=rZ72yx3HFlvs5oZ4XynAQRNqZ/GgAJymQyLb887764o=; b=o6LfYI5fnBm0Bed1nrHGEr5qs07MtbO7PCtCc/7jFnww5pLa8ekea0dEWiAITmoKLV M/wm+6nTbd+wNB0HYvJ3z//30Hdzj//0MUhh3slp03bOIuxNcwmvrwNYb9C9Ub/o6ekh cJLo4077svQtdE4wgD+mq4A9iZk0fgmUt5MSGJ1MwPf1Qtdn7ei35Upa4PjmnO0a+Ctp /a3PLieM2kXrjAAXH4KOeWy4Oz/ZgSPRcBVOlddKOaiITyIRH2cNWlwyqtcLZLGLer+h UCJfvcW9SAJG9ugi0Ja8VlHisPniwMR4jMepVnTneA0yxgY1lNtwqgQdFEEVwHSvJgNE TTRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=rZ72yx3HFlvs5oZ4XynAQRNqZ/GgAJymQyLb887764o=; b=esgUe4/k80FRz6n4HO8TU46fth6wOudc2wBnBIPGStEHoyV3/TUlEZQf7I12tBrEiT 8S5llQ28tDZcgMktGFVMt/rerqSqOBc9uqDIzgdGoTE0uAv2PHW8A/eMXDV2kpu6HXS3 a3SamgLZEkDUn0K9q4JQSUkKkg9bPmwFKOKFLDx78EoxhxTw3r7/SxISTKDsm/AYigJ+ TcoqQfzGR3Ab5AVvElTfi/gCenwGwbA6Oacah8U6HG0Zrd7oa5sOhb//1Xjam/zwdi9q dvM+7B/GVRbQg86KkScSIx0ItMjLxnrTZI4hftNo67KE6hRTNsHtFh0ti4zyIZTQ5IT8 I0Fw== X-Gm-Message-State: AJaThX6vfVrAJG9CrnfPo4TZUDT7W8kyarmhhxT43PrvXdFFvk6Ti3rN wdVOSJR3h60vm99Z1rXvDnuaNQ== X-Google-Smtp-Source: AGs4zMZreihIsdv28XXcuFS02t/1P4IXI0h8FpnK/Zk51Ezq+vss7Umm9HL7hvrXaYVOhzjt8ZFR2g== X-Received: by 10.223.139.140 with SMTP id o12mr11960742wra.280.1511726043098; Sun, 26 Nov 2017 11:54:03 -0800 (PST) Received: from brick (cpc92302-cmbg19-2-0-cust461.5-4.cable.virginm.net. [82.1.209.206]) by smtp.gmail.com with ESMTPSA id c2sm14597814wrg.57.2017.11.26.11.54.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2017 11:54:02 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sun, 26 Nov 2017 19:54:01 +0000 From: Edward Tomasz Napierala To: Bruce Evans Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326125 - head/usr.sbin/kgmon Message-ID: <20171126195401.GA3787@brick> Mail-Followup-To: Bruce Evans , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711231241.vANCf58n091345@repo.freebsd.org> <20171124002239.T1335@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171124002239.T1335@besplex.bde.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 19:54:06 -0000 On 1124T0138, Bruce Evans wrote: > On Thu, 23 Nov 2017, Edward Tomasz Napierala wrote: > > > Log: > > Mark kgmon(8) obsolete, redirecting users to pmcstat(8). > > It isn't obsolete. pmcstat can't do at least full (non-statistical) > call graphs and high-resolution profiling. [snip detailed explanation] Thanks. Based on your arguments (and on the fact that I've tried again to use it, following instructions from the URL below[1], and this time it actually worked), I think I'll revert this commit, and just add an ".Xr pmcstat 8" instead. 1. http://lserinol.blogspot.co.uk/2009/01/freebsd-kernel-profiling-with-kgmon.html From owner-svn-src-head@freebsd.org Sun Nov 26 20:30:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 928B0DEFA93; Sun, 26 Nov 2017 20:30:03 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E630767F5; Sun, 26 Nov 2017 20:30:03 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQKU2GO025184; Sun, 26 Nov 2017 20:30:02 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQKU2sT025183; Sun, 26 Nov 2017 20:30:02 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201711262030.vAQKU2sT025183@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Sun, 26 Nov 2017 20:30:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326236 - head/sys/powerpc/booke X-SVN-Group: head X-SVN-Commit-Author: jhibbits X-SVN-Commit-Paths: head/sys/powerpc/booke X-SVN-Commit-Revision: 326236 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 20:30:03 -0000 Author: jhibbits Date: Sun Nov 26 20:30:02 2017 New Revision: 326236 URL: https://svnweb.freebsd.org/changeset/base/326236 Log: Synchronize TLB1 mappings when created This allows modules creating mappings to be loaded post-boot, after SMP has started. Without this, the TLB1 mappings can become unsynchronized and lead to kernel page faults when accessed on the alternate CPUs. MFC after: 3 weeks Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Sun Nov 26 19:17:55 2017 (r326235) +++ head/sys/powerpc/booke/pmap.c Sun Nov 26 20:30:02 2017 (r326236) @@ -3872,31 +3872,27 @@ tlb1_read_entry(tlb_entry_t *entry, unsigned int slot) tsize2size((entry->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT); } -/* - * Write given entry to TLB1 hardware. - */ +struct tlbwrite_args { + tlb_entry_t *e; + unsigned int idx; +}; + static void -tlb1_write_entry(tlb_entry_t *e, unsigned int idx) +tlb1_write_entry_int(void *arg) { - register_t msr; + struct tlbwrite_args *args = arg; uint32_t mas0; - //debugf("tlb1_write_entry: s\n"); - /* Select entry */ - mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(idx); - //debugf("tlb1_write_entry: mas0 = 0x%08x\n", mas0); + mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(args->idx); - msr = mfmsr(); - __asm __volatile("wrteei 0"); - mtspr(SPR_MAS0, mas0); __asm __volatile("isync"); - mtspr(SPR_MAS1, e->mas1); + mtspr(SPR_MAS1, args->e->mas1); __asm __volatile("isync"); - mtspr(SPR_MAS2, e->mas2); + mtspr(SPR_MAS2, args->e->mas2); __asm __volatile("isync"); - mtspr(SPR_MAS3, e->mas3); + mtspr(SPR_MAS3, args->e->mas3); __asm __volatile("isync"); switch ((mfpvr() >> 16) & 0xFFFF) { case FSL_E500mc: @@ -3906,7 +3902,7 @@ tlb1_write_entry(tlb_entry_t *e, unsigned int idx) __asm __volatile("isync"); /* FALLTHROUGH */ case FSL_E500v2: - mtspr(SPR_MAS7, e->mas7); + mtspr(SPR_MAS7, args->e->mas7); __asm __volatile("isync"); break; default: @@ -3914,9 +3910,42 @@ tlb1_write_entry(tlb_entry_t *e, unsigned int idx) } __asm __volatile("tlbwe; isync; msync"); - mtmsr(msr); - //debugf("tlb1_write_entry: e\n"); +} + +static void +tlb1_write_entry_sync(void *arg) +{ + /* Empty synchronization point for smp_rendezvous(). */ +} + +/* + * Write given entry to TLB1 hardware. + */ +static void +tlb1_write_entry(tlb_entry_t *e, unsigned int idx) +{ + struct tlbwrite_args args; + + args.e = e; + args.idx = idx; + +#ifdef SMP + if ((e->mas2 & _TLB_ENTRY_SHARED) && smp_started) { + mb(); + smp_rendezvous(tlb1_write_entry_sync, + tlb1_write_entry_int, + tlb1_write_entry_sync, &args); + } else +#endif + { + register_t msr; + + msr = mfmsr(); + __asm __volatile("wrteei 0"); + tlb1_write_entry_int(&args); + mtmsr(msr); + } } /* From owner-svn-src-head@freebsd.org Sun Nov 26 21:10:49 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4113BDF09A5; Sun, 26 Nov 2017 21:10:49 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0022078163; Sun, 26 Nov 2017 21:10:48 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAQLAmRM043214; Sun, 26 Nov 2017 21:10:48 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAQLAmNF043213; Sun, 26 Nov 2017 21:10:48 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <201711262110.vAQLAmNF043213@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mjg set sender to mjg@FreeBSD.org using -f From: Mateusz Guzik Date: Sun, 26 Nov 2017 21:10:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326237 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326237 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 21:10:49 -0000 Author: mjg Date: Sun Nov 26 21:10:47 2017 New Revision: 326237 URL: https://svnweb.freebsd.org/changeset/base/326237 Log: rw: fix runlock_hard when new readers show up When waiters/writer spinner flags are set no new readers can show up unless they already have a different rw rock read locked. The change in r326195 failed to take that into account - in presence of new readers it would spin until they all drain, which would be lead to trouble if e.g. they go off cpu and can get scheduled because of this thread. Reported by: pho Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c ============================================================================== --- head/sys/kern/kern_rwlock.c Sun Nov 26 20:30:02 2017 (r326236) +++ head/sys/kern/kern_rwlock.c Sun Nov 26 21:10:47 2017 (r326237) @@ -769,6 +769,11 @@ __rw_runlock_hard(struct rwlock *rw, struct thread *td turnstile_chain_lock(&rw->lock_object); v = RW_READ_VALUE(rw); retry_ts: + if (__predict_false(RW_READERS(v) > 1)) { + turnstile_chain_unlock(&rw->lock_object); + continue; + } + v &= (RW_LOCK_WAITERS | RW_LOCK_WRITE_SPINNER); MPASS(v & RW_LOCK_WAITERS); From owner-svn-src-head@freebsd.org Sun Nov 26 21:11:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D914DF0A0B; Sun, 26 Nov 2017 21:11:23 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8F6E7840D; Sun, 26 Nov 2017 21:11:22 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk0-x22a.google.com with SMTP id j202so30129882qke.10; Sun, 26 Nov 2017 13:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qYgcawa7NNQ/z0Wbi+tgCmv1q7y++mxXZyEsu5GPzo4=; b=MJbLx+4/QCsMuZWfz3XvrOLwkfDeKwVdZTr63X9H4+3B3a64VaplI8hk/5jCedpQsd fkQOEcU34Fvd6ApmR6I07s8abM3G1NexntBt5lFkFO6afrsRGPgnxSF0Iwv8mWtAT9LU MCh3CUI4QVQzUKJdZ/OczcwORsxO8kcohVk4wR90VU7Q33NFb90ycW2kePVAfOpWa/zI 2UMbGSdND8h09DLrt03TxVBOXn01azRNSEkqlJUZ1q3oyjiw/mOi66uyABgIZxDd+5PK XHdpDii37XQ9yQlsWSt9zBpsFM0adg8TGHG0ecm2MqOHTNQPPvVhrjXEos+B0wIA9iIT 6J1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qYgcawa7NNQ/z0Wbi+tgCmv1q7y++mxXZyEsu5GPzo4=; b=PyW5Vvrl0drkivppmrXtwI5Owuaj6CMS0f8cWga2wpt9M2kBUQdy34k4GBX3ZbuuGD CkIMtdURJHaJBhQvR7817NIe81X2e85vcFs8n8fMTo72PWhS0xxTPMnqtVLxYUcLzs37 yMtNgvy4dE2U5ib7AgBtDrXrrNQPV4A7fuVTVkfOeu0m+kAh7SIregXua4q4dFrTX5EC kvDa9b8ZvJn7oOCQryzRLBrUpBYUq9HVqnEiGUuZ8wHvYXL0DfBeaYQzaum9i2Y9Rz4O 5cEEXlGjl0kQ0rCnPB5QfIKzFqgSI3Dr4ZWU02QMYZlFX2ndy3iwQmZvKVtiY0+uCfej QqzA== X-Gm-Message-State: AJaThX5ylqCoDmC1vEk0XghZzR0+PDb526bgRX2hV/eatFwrAKTY0N5v 87LV1cEldvcnypBk67TxLDLBSa2iMt9SGhEmvhdlWg== X-Google-Smtp-Source: AGs4zMYq8Nrno/icUrsRZ/N77SuhZSJvyjk+NnUtZE/UAfAwyI+jzpXSPa6Q05g7lomjy2Bf3Hl7Sqi+clpVEHF6NPc= X-Received: by 10.55.182.129 with SMTP id g123mr47884663qkf.243.1511730681842; Sun, 26 Nov 2017 13:11:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.29.17 with HTTP; Sun, 26 Nov 2017 13:11:21 -0800 (PST) In-Reply-To: <20171126064927.GA68986@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> From: Mateusz Guzik Date: Sun, 26 Nov 2017 22:11:21 +0100 Message-ID: Subject: Re: svn commit: r326200 - head/sys/kern To: Peter Holm Cc: Mateusz Guzik , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 21:11:23 -0000 On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > > Author: mjg > > Date: Sat Nov 25 20:49:27 2017 > > New Revision: 326200 > > URL: https://svnweb.freebsd.org/changeset/base/326200 > > > > Log: > > Add the missing lockstat check for thread lock. > > > > Modified: > > head/sys/kern/kern_mutex.c > > > > Modified: head/sys/kern/kern_mutex.c > > ============================================================ > ================== > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > (r326199) > > Hi Mateusz, > > Could this be yours? > > spin lock 0xffffffff81ddc100 (turnstile chain) held by 0xfffff80014e57000 > (tid 100277) too long > panic: spin lock held too long > cpuid = 20 > time = 1511677687 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe104f86ea40 > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > 0xfffffe104f86eba0 > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > 0xfffffe104f86ed10 > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > 0xfffffe104f86edb0 > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > > - Peter > Fixed in r326237. -- Mateusz Guzik From owner-svn-src-head@freebsd.org Sun Nov 26 21:14:39 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11CF8DF0BCD; Sun, 26 Nov 2017 21:14:39 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFC9B7865E; Sun, 26 Nov 2017 21:14:38 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id v137so30108777qkb.1; Sun, 26 Nov 2017 13:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ia+h9vrEgU/SZs78pAbsT9QeeNN3JmH23PO64UK6m1Q=; b=dbsKtjKG4eT9cYuG/CiQA+vOXLvxjlz4oQiNIUqbbmtBJmeL5ehJLKmRvGpT522oz+ 2GLKuZ1Y6D1hsmrJ37xiiWY/gv3S0YhlzAz/b/ngeEwa0R8O5BtrNwFbnE+rjJ1J78rm HJA2HKQesekiwCiX6MRgYCxzFU11O64qPalqDa2R2o9Jwn0uHry2nUPKaekOyfna1aF3 rhUDOl3y0x9aRTUlgDKxgQgf769KyZJqbKYe5bmWf/BbEl0ni877oP20M5zJxcbyT+mw PFasIt40J1IHf2vNfFS3asKzQShoLghcSoMzmkLA9Y8/DF0W/OmChKGonvGEip+b7xBk 2WJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ia+h9vrEgU/SZs78pAbsT9QeeNN3JmH23PO64UK6m1Q=; b=jkwmlUztNk6jeRRPN1MJoenGwn1kgdGLmsfm92bQndngtzGgJ0InpBrnKskcCicaJX U79gXSWjSJyB2EaJmN1pwebxaGqyFkSqWKC7AjJjsEBfm7CcltcOa7Ny8nJfdtGrbf1e muOH835PzYLdTaFK+xk0gbt8avsHK5Y2wA+7Q3Zz6sh1b1KmCZsoqF8/LqfOv8MSpMhl XI3W9t/IgUYZXkF+yMIW8MXhcO3XwcQln02syDGSFOuVWN3yxKQoNBYuczpHZokbJK9d 77k833rFoPu+fUvdB5zKnfXrowcyse9F9NIOJeEKrSirnDahchGmriS7n/VlTpOJTzmQ rZjA== X-Gm-Message-State: AJaThX5FEFcVDuCqfR8qRVdBrM5zSsKPzMVB8JK9eVTQdjWOD4kMlMsw lyZgkiNekDiKNz7T52lCJxdUAKBZtnNCX4KbaMI= X-Google-Smtp-Source: AGs4zMbtd5/qHgFYfNYwGO/GFfqe+NznxDbK/YAfDAq0aJeg1uDQHJWbVgSXgSZL62bAphjNhoFSpSyxuVe/oBQFDp4= X-Received: by 10.55.127.71 with SMTP id a68mr9911993qkd.90.1511730877803; Sun, 26 Nov 2017 13:14:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.29.17 with HTTP; Sun, 26 Nov 2017 13:14:37 -0800 (PST) In-Reply-To: <201711262110.vAQLAmNF043213@repo.freebsd.org> References: <201711262110.vAQLAmNF043213@repo.freebsd.org> From: Mateusz Guzik Date: Sun, 26 Nov 2017 22:14:37 +0100 Message-ID: Subject: Re: svn commit: r326237 - head/sys/kern To: Mateusz Guzik Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 21:14:39 -0000 On Sun, Nov 26, 2017 at 10:10 PM, Mateusz Guzik wrote: > Author: mjg > Date: Sun Nov 26 21:10:47 2017 > New Revision: 326237 > URL: https://svnweb.freebsd.org/changeset/base/326237 > > Log: > rw: fix runlock_hard when new readers show up > > When waiters/writer spinner flags are set no new readers can show up > unless > they already have a different rw rock read locked. The change in r326195 > failed > to take that into account - in presence of new readers it would spin > until > they all drain, which would be lead to trouble if e.g. they go off cpu > and > can get scheduled because of this thread. > > Now that's an amazingly bad commit message. Typos and whatnot aside, I of course meant they *can't* get on the cpu. The thread in runlock slow path holds a spinlock and loops with it. > Reported by: pho > > Modified: > head/sys/kern/kern_rwlock.c > > Modified: head/sys/kern/kern_rwlock.c > ============================================================ > ================== > --- head/sys/kern/kern_rwlock.c Sun Nov 26 20:30:02 2017 (r326236) > +++ head/sys/kern/kern_rwlock.c Sun Nov 26 21:10:47 2017 (r326237) > @@ -769,6 +769,11 @@ __rw_runlock_hard(struct rwlock *rw, struct thread *td > turnstile_chain_lock(&rw->lock_object); > v = RW_READ_VALUE(rw); > retry_ts: > + if (__predict_false(RW_READERS(v) > 1)) { > + turnstile_chain_unlock(&rw->lock_object); > + continue; > + } > + > v &= (RW_LOCK_WAITERS | RW_LOCK_WRITE_SPINNER); > MPASS(v & RW_LOCK_WAITERS); > > _______________________________________________ > svn-src-all@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" > -- Mateusz Guzik From owner-svn-src-head@freebsd.org Mon Nov 27 02:28:41 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D43C1DF63EE; Mon, 27 Nov 2017 02:28:41 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A17937FB09; Mon, 27 Nov 2017 02:28:41 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAR2SeCi075496; Mon, 27 Nov 2017 02:28:40 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAR2Se0s075495; Mon, 27 Nov 2017 02:28:40 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201711270228.vAR2Se0s075495@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Mon, 27 Nov 2017 02:28:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326239 - head/tools X-SVN-Group: head X-SVN-Commit-Author: brd X-SVN-Commit-Paths: head/tools X-SVN-Commit-Revision: 326239 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 02:28:41 -0000 Author: brd (doc,ports committer) Date: Mon Nov 27 02:28:40 2017 New Revision: 326239 URL: https://svnweb.freebsd.org/changeset/base/326239 Log: Fix handling -U. It does not take any arguments. Approved by: will Modified: head/tools/install.sh Modified: head/tools/install.sh ============================================================================== --- head/tools/install.sh Mon Nov 27 00:26:33 2017 (r326238) +++ head/tools/install.sh Mon Nov 27 02:28:40 2017 (r326239) @@ -34,9 +34,9 @@ linkmode="" while [ $# -gt 0 ]; do case $1 in -d) dirmode="YES"; shift;; - -[bCcpSsv]) shift;; - -[BDfghMmNoTU]) shift; shift;; - -[BDfghMmNoTU]*) shift;; + -[bCcpSsUv]) shift;; + -[BDfghMmNoT]) shift; shift;; + -[BDfghMmNoT]*) shift;; -l) shift case $1 in From owner-svn-src-head@freebsd.org Mon Nov 27 03:35:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77267DF76B0; Mon, 27 Nov 2017 03:35:28 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail106.syd.optusnet.com.au (mail106.syd.optusnet.com.au [211.29.132.42]) by mx1.freebsd.org (Postfix) with ESMTP id 414E01F25; Mon, 27 Nov 2017 03:35:27 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail106.syd.optusnet.com.au (Postfix) with ESMTPS id 8F01A3C3F80; Mon, 27 Nov 2017 14:35:20 +1100 (AEDT) Date: Mon, 27 Nov 2017 14:35:19 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Edward Tomasz Napierala cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326125 - head/usr.sbin/kgmon In-Reply-To: <20171126195401.GA3787@brick> Message-ID: <20171127141834.V1162@besplex.bde.org> References: <201711231241.vANCf58n091345@repo.freebsd.org> <20171124002239.T1335@besplex.bde.org> <20171126195401.GA3787@brick> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=cK6QihWN c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=1PkGfIDIAAAA:8 a=4mXlgclT9S5zBQdJ5p4A:9 a=CjuIK1q_8ugA:10 a=4u2QYngNSdgA:10 a=jcL-Sa2L8s019nTZ0LyB:22 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 03:35:28 -0000 On Sun, 26 Nov 2017, Edward Tomasz Napierala wrote: > On 1124T0138, Bruce Evans wrote: >> On Thu, 23 Nov 2017, Edward Tomasz Napierala wrote: >> >>> Log: >>> Mark kgmon(8) obsolete, redirecting users to pmcstat(8). >> >> It isn't obsolete. pmcstat can't do at least full (non-statistical) >> call graphs and high-resolution profiling. > > [snip detailed explanation] > > Thanks. Based on your arguments (and on the fact that I've tried > again to use it, following instructions from the URL below[1], and > this time it actually worked), I think I'll revert this commit, > and just add an ".Xr pmcstat 8" instead. Thanks. > 1. http://lserinol.blogspot.co.uk/2009/01/freebsd-kernel-profiling-with-kgmon.html This is very basic (only the about confinguration), but that makes it short enough to put in a section 4 man page or just in kgdb(8). I don't know of any tutorial for how to use either kgmon or pmcstat. Bruce From owner-svn-src-head@freebsd.org Mon Nov 27 04:15:04 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B71C8DF822E; Mon, 27 Nov 2017 04:15:04 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 806C6323E; Mon, 27 Nov 2017 04:15:04 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAR4F3xr022232; Mon, 27 Nov 2017 04:15:03 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAR4F3o9022231; Mon, 27 Nov 2017 04:15:03 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201711270415.vAR4F3o9022231@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Mon, 27 Nov 2017 04:15:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326244 - head/usr.sbin/inetd X-SVN-Group: head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: head/usr.sbin/inetd X-SVN-Commit-Revision: 326244 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 04:15:04 -0000 Author: delphij Date: Mon Nov 27 04:15:03 2017 New Revision: 326244 URL: https://svnweb.freebsd.org/changeset/base/326244 Log: Don't assign rs as we will assign it later. MFC after: 2 weeks Modified: head/usr.sbin/inetd/builtins.c Modified: head/usr.sbin/inetd/builtins.c ============================================================================== --- head/usr.sbin/inetd/builtins.c Mon Nov 27 03:49:51 2017 (r326243) +++ head/usr.sbin/inetd/builtins.c Mon Nov 27 04:15:03 2017 (r326244) @@ -166,10 +166,8 @@ chargen_stream(int s, struct servtab *sep) inetd_setproctitle(sep->se_service, s); - if (!endring) { + if (!endring) initring(); - rs = ring; - } text[LINESIZ] = '\r'; text[LINESIZ + 1] = '\n'; From owner-svn-src-head@freebsd.org Mon Nov 27 04:24:49 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D51DEDF8553; Mon, 27 Nov 2017 04:24:49 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C1643731; Mon, 27 Nov 2017 04:24:49 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAR4OmaJ026428; Mon, 27 Nov 2017 04:24:48 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAR4OmJp026427; Mon, 27 Nov 2017 04:24:48 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201711270424.vAR4OmJp026427@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Mon, 27 Nov 2017 04:24:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326245 - head X-SVN-Group: head X-SVN-Commit-Author: brd X-SVN-Commit-Paths: head X-SVN-Commit-Revision: 326245 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 04:24:49 -0000 Author: brd (doc,ports committer) Date: Mon Nov 27 04:24:48 2017 New Revision: 326245 URL: https://svnweb.freebsd.org/changeset/base/326245 Log: Fix another typo Pointy hat to: oshogbo Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ============================================================================== --- head/ObsoleteFiles.inc Mon Nov 27 04:15:03 2017 (r326244) +++ head/ObsoleteFiles.inc Mon Nov 27 04:24:48 2017 (r326245) @@ -38,7 +38,7 @@ # xargs -n1 | sort | uniq -d; # done -# 20171118: Remove old etc capser files +# 20171118: Remove old etc casper files OLD_FILES+=etc/casper/system.dns OLD_FILES+=etc/casper/system.grp OLD_FILES+=etc/casper/system.pwd From owner-svn-src-head@freebsd.org Mon Nov 27 04:29:59 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E782CDF8645; Mon, 27 Nov 2017 04:29:59 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail109.syd.optusnet.com.au (mail109.syd.optusnet.com.au [211.29.132.80]) by mx1.freebsd.org (Postfix) with ESMTP id A990C38BD; Mon, 27 Nov 2017 04:29:58 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail109.syd.optusnet.com.au (Postfix) with ESMTPS id 60C64D615D5; Mon, 27 Nov 2017 15:29:51 +1100 (AEDT) Date: Mon, 27 Nov 2017 15:29:51 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Andrew Turner cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326225 - head/sys/arm64/arm64 In-Reply-To: <201711260929.vAQ9TYpk047843@repo.freebsd.org> Message-ID: <20171127143528.J1162@besplex.bde.org> References: <201711260929.vAQ9TYpk047843@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=KeqiiUQD c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=cgg7eyTytd09u3vOAx0A:9 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 04:30:00 -0000 On Sun, 26 Nov 2017, Andrew Turner wrote: > Log: > Make the arm64 pmap_invalidate functions static inline. This fixes building > with DIAGNOSTIC. This is fairly broken on x86 too. > Modified: head/sys/arm64/arm64/pmap.c > ============================================================================== > --- head/sys/arm64/arm64/pmap.c Sun Nov 26 06:31:34 2017 (r326224) > +++ head/sys/arm64/arm64/pmap.c Sun Nov 26 09:29:34 2017 (r326225) > @@ -896,7 +896,7 @@ SYSCTL_ULONG(_vm_pmap_l2, OID_AUTO, promotions, CTLFLA > /* > * Invalidate a single TLB entry. > */ > -PMAP_INLINE void > +static __inline void > pmap_invalidate_page(pmap_t pmap, vm_offset_t va) PMAP_INLINE is now only used once on arm64 (for pmap_kremove). It gives a small optimization or pessimization by inlining, but is fragile and broken in some cases. In the DIAGNOSTIC case, it is usually or always defined as empty. This is silly. It does nothing except insignificantly simplify debugging and expose the 2 bugs fixed in this commit. These bugs are: - on arm64, the pmap_invalidate*() functions are not declared in a header file or used outside of pmap.c, but they were declared as gnu [implicit-extern] inline for the reachable !DIAGNOSTIC case. - complier bug: compilers don't detect the error that extern functions are not prototyped before they are defined in the gnu [implicit-extern] inline case The bugs are exposed by the DIAGNOSTIC case. Then the functions are plain implicit-extern. There is also an unreachable !DIAGNOSTIC case for non-gcc compatible compilers. On x86 and arm64, this uses explicit-extern inline. This gives C99 extern inline, which is confusing and probably doesn't worked. If it worked, then it might be used instead of forcing gnu implicit-extern inline if possible. Plain arm is quite different: arm/pmap-v4.c defines PMAP_INLINE as plain implicit-extern __inline in the !PMAP_DEBUG case. But this macro is completely different than the one of the same name in most other pmap files. It is only used when preceded by 'static', and thus is just for debugging, while its normal use is for inlining public functions. Some static functions are inlined without this obfuscation. i386 had the same obfuscation and more in FreeBSD-4 (it also used PMAP_INLINE for extern functions). arm/pmap-v6.c is more like arm64/pmap.c. It ifdefs on DIAGNOSTIC but gives plain implicit-extern C99 __inline only for extern functions where arm64 gives gnu implicit-extern non-C99 inline. There are also style bugs. Most places use __inline, but arm64 uses inline. amd64/pmap.c uses __inline except twice for PMAP_INLINE and once for pmap_unwire_ptp(). Bruce From owner-svn-src-head@freebsd.org Mon Nov 27 04:55:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5A4ADF8D90; Mon, 27 Nov 2017 04:55:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B8016381F; Mon, 27 Nov 2017 04:55:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 7F02E10A7DB; Sun, 26 Nov 2017 23:54:56 -0500 (EST) From: John Baldwin To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern Date: Sun, 26 Nov 2017 20:50:12 -0800 Message-ID: <3170692.kvv90QqB0X@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201711252341.vAPNf5Qx001464@repo.freebsd.org> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Sun, 26 Nov 2017 23:54:56 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 04:55:03 -0000 On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Sat Nov 25 23:41:05 2017 > New Revision: 326218 > URL: https://svnweb.freebsd.org/changeset/base/326218 > > Log: > Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs > are numbered densely from there to n_cpus. > > MFC after: 1 month > > Modified: > head/sys/kern/kern_clock.c > head/sys/kern/kern_clocksource.c > head/sys/kern/kern_shutdown.c > head/sys/kern/kern_timeout.c > head/sys/kern/sched_ule.c > head/sys/kern/subr_pcpu.c > > Modified: head/sys/kern/kern_clock.c > ============================================================================== > --- head/sys/kern/kern_clock.c Sat Nov 25 23:23:24 2017 (r326217) > +++ head/sys/kern/kern_clock.c Sat Nov 25 23:41:05 2017 (r326218) > @@ -573,7 +573,9 @@ hardclock_cnt(int cnt, int usermode) > void > hardclock_sync(int cpu) > { > - int *t = DPCPU_ID_PTR(cpu, pcputicks); > + int *t; > + KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu)); Blank line before the KASSERT() perhaps? > + t = DPCPU_ID_PTR(cpu, pcputicks); > > *t = ticks; Probably don't need this blank line though? > } > > Modified: head/sys/kern/sched_ule.c > ============================================================================== > --- head/sys/kern/sched_ule.c Sat Nov 25 23:23:24 2017 (r326217) > +++ head/sys/kern/sched_ule.c Sat Nov 25 23:41:05 2017 (r326218) > @@ -2444,6 +2451,7 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to the > * target cpu. > */ > + td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > cpu = sched_pickcpu(td, flags); It is not obvious why every sched_add() needs this once you've fixed thread0. Shouldn't new threads just inherit from thread0's already-fixed value? If not, perhaps fix thread0's value sooner? > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); > > Modified: head/sys/kern/subr_pcpu.c > ============================================================================== > --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) > +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) > @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) > struct pcpu * > pcpu_find(u_int cpuid) > { > + KASSERT(cpuid_to_pcpu[cpuid] != NULL, > + ("Getting uninitialized PCPU %d", cpuid)); This KASSERT seems unnecessary? If the caller uses an invalid one, it will just fault anyway. > return (cpuid_to_pcpu[cpuid]); > } > @@ -409,7 +411,7 @@ DB_SHOW_ALL_COMMAND(pcpu, db_show_cpu_all) > int id; > > db_printf("Current CPU: %d\n\n", PCPU_GET(cpuid)); > - for (id = 0; id <= mp_maxid; id++) { > + CPU_FOREACH(id) { If you remove the KASSERT you don't need this change since it checks the return value of pcpu_find() (which you didn't change). In particular, this DDB command shows all valid pcpu structures safely even if that set is inconsistent with the all_cpus mask (or the old version did at least). There is also nothing about this that assumes BSP == 0 either. CPU_FOREACH() is doing a loop from 0 to mp_maxid under the covers as well. > pc = pcpu_find(id); > if (pc != NULL) { > show_pcpu(pc); > -- John Baldwin From owner-svn-src-head@freebsd.org Mon Nov 27 06:07:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEA5FDF9FE3; Mon, 27 Nov 2017 06:07:05 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB6AE654B9; Mon, 27 Nov 2017 06:07:05 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vAR66upx031049 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 26 Nov 2017 22:06:57 -0800 Subject: Re: svn commit: r326218 - head/sys/kern To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <3170692.kvv90QqB0X@ralph.baldwin.cx> From: Nathan Whitehorn Message-ID: Date: Sun, 26 Nov 2017 22:06:56 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <3170692.kvv90QqB0X@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVagWHczlbvJRDm0AMTcXUN6Kw+98q+0DBDpaFwCBJt2AgHb44cMcM/ocXU1FFaS0eV9YTuzYL6mICnGBZoOrrubOnA7STh6Cfw= X-Sonic-ID: C;UKBqLDnT5xGY9+snWtmBlw== M;nGbLLDnT5xGY9+snWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 06:07:05 -0000 On 11/26/17 20:50, John Baldwin wrote: > On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: >> Author: nwhitehorn >> Date: Sat Nov 25 23:41:05 2017 >> New Revision: 326218 >> URL: https://svnweb.freebsd.org/changeset/base/326218 >> >> Log: >> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs >> are numbered densely from there to n_cpus. >> >> MFC after: 1 month >> >> Modified: >> head/sys/kern/kern_clock.c >> head/sys/kern/kern_clocksource.c >> head/sys/kern/kern_shutdown.c >> head/sys/kern/kern_timeout.c >> head/sys/kern/sched_ule.c >> head/sys/kern/subr_pcpu.c >> >> Modified: head/sys/kern/kern_clock.c >> ============================================================================== >> --- head/sys/kern/kern_clock.c Sat Nov 25 23:23:24 2017 (r326217) >> +++ head/sys/kern/kern_clock.c Sat Nov 25 23:41:05 2017 (r326218) >> @@ -573,7 +573,9 @@ hardclock_cnt(int cnt, int usermode) >> void >> hardclock_sync(int cpu) >> { >> - int *t = DPCPU_ID_PTR(cpu, pcputicks); >> + int *t; >> + KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu)); > Blank line before the KASSERT() perhaps? > >> + t = DPCPU_ID_PTR(cpu, pcputicks); >> >> *t = ticks; > Probably don't need this blank line though? Those are both good ideas. > >> } >> >> Modified: head/sys/kern/sched_ule.c >> ============================================================================== >> --- head/sys/kern/sched_ule.c Sat Nov 25 23:23:24 2017 (r326217) >> +++ head/sys/kern/sched_ule.c Sat Nov 25 23:41:05 2017 (r326218) >> @@ -2444,6 +2451,7 @@ sched_add(struct thread *td, int flags) >> * Pick the destination cpu and if it isn't ours transfer to the >> * target cpu. >> */ >> + td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ >> cpu = sched_pickcpu(td, flags); > It is not obvious why every sched_add() needs this once you've fixed thread0. > Shouldn't new threads just inherit from thread0's already-fixed value? If not, > perhaps fix thread0's value sooner? That's a fair point. I don't remember the rationale for this now; the changes are over a year old from the powernv branch. I do remember setting thread0's CPU early not working, but have forgotten why. I will try to remember... >> tdq = sched_setcpu(td, cpu, flags); >> tdq_add(tdq, td, flags); >> >> Modified: head/sys/kern/subr_pcpu.c >> ============================================================================== >> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) >> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) >> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >> struct pcpu * >> pcpu_find(u_int cpuid) >> { >> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, >> + ("Getting uninitialized PCPU %d", cpuid)); > This KASSERT seems unnecessary? If the caller uses an invalid one, it will > just fault anyway. It won't necessarily fault. For example, on PowerPC, NULL is a valid address that does not trigger faults. It's unfortunately quite complicated to fix this in a general way. Even if it did fault, this makes the fault more informative (and has found at least one bug on arm64 already). > >> return (cpuid_to_pcpu[cpuid]); >> } >> @@ -409,7 +411,7 @@ DB_SHOW_ALL_COMMAND(pcpu, db_show_cpu_all) >> int id; >> >> db_printf("Current CPU: %d\n\n", PCPU_GET(cpuid)); >> - for (id = 0; id <= mp_maxid; id++) { >> + CPU_FOREACH(id) { > If you remove the KASSERT you don't need this change since it checks the return > value of pcpu_find() (which you didn't change). In particular, this DDB command > shows all valid pcpu structures safely even if that set is inconsistent with > the all_cpus mask (or the old version did at least). There is also nothing about > this that assumes BSP == 0 either. CPU_FOREACH() is doing a loop from 0 to > mp_maxid under the covers as well. True. CPU_FOREACH just seemed simpler here and future-proof if it ever started doing something more complex. -Nathan > >> pc = pcpu_find(id); >> if (pc != NULL) { >> show_pcpu(pc); >> > From owner-svn-src-head@freebsd.org Mon Nov 27 06:49:50 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E6ACDFA993; Mon, 27 Nov 2017 06:49:50 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE890665FF; Mon, 27 Nov 2017 06:49:49 +0000 (UTC) (envelope-from pho@holm.cc) Received: from x2.osted.lan (87-58-223-204-dynamic.dk.customer.tdc.net [87.58.223.204]) by relay01.pair.com (Postfix) with ESMTP id A3F1DD0035A; Mon, 27 Nov 2017 01:49:42 -0500 (EST) Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.9/8.14.9) with ESMTP id vAR6neVg091445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 27 Nov 2017 07:49:40 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.9/8.14.9/Submit) id vAR6nes4091444; Mon, 27 Nov 2017 07:49:40 +0100 (CET) (envelope-from pho) Date: Mon, 27 Nov 2017 07:49:40 +0100 From: Peter Holm To: Mateusz Guzik Cc: Mateusz Guzik , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326200 - head/sys/kern Message-ID: <20171127064940.GA91390@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 06:49:50 -0000 On Sun, Nov 26, 2017 at 10:11:21PM +0100, Mateusz Guzik wrote: > On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > > > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > > > Author: mjg > > > Date: Sat Nov 25 20:49:27 2017 > > > New Revision: 326200 > > > URL: https://svnweb.freebsd.org/changeset/base/326200 > > > > > > Log: > > > Add the missing lockstat check for thread lock. > > > > > > Modified: > > > head/sys/kern/kern_mutex.c > > > > > > Modified: head/sys/kern/kern_mutex.c > > > ============================================================ > > ================== > > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > > (r326199) > > > > Hi Mateusz, > > > > Could this be yours? > > > > spin lock 0xffffffff81ddc100 (turnstile chain) held by 0xfffff80014e57000 > > (tid 100277) too long > > panic: spin lock held too long > > cpuid = 20 > > time = 1511677687 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > 0xfffffe104f86ea40 > > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > > 0xfffffe104f86eba0 > > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > > 0xfffffe104f86ed10 > > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > > 0xfffffe104f86edb0 > > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > > > > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > > > > - Peter > > > > Fixed in r326237. > Yes, that fixed the issue reported. After some more tests I got this one: 20171127 01:19:57 all (31/561): mkfifo2c.sh spin lock 0xffffffff81edace0 (smp rendezvous) held by 0xfffff80d2ae31000 (tid 100529) too long panic: spin lock held too long cpuid = 14 time = 1511742163 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe105096c0b0 vpanic() at vpanic+0x19c/frame 0xfffffe105096c130 panic() at panic+0x43/frame 0xfffffe105096c190 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame 0xfffffe105096c200 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame 0xfffffe105096c240 smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame 0xfffffe105096c2c0 smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame 0xfffffe105096c2f0 pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame 0xfffffe105096c340 allocbuf() at allocbuf+0x107/frame 0xfffffe105096c3b0 brelse() at brelse+0x219/frame 0xfffffe105096c400 trunc_dependencies() at trunc_dependencies+0x745/frame 0xfffffe105096c4a0 softdep_setup_freeblocks() at softdep_setup_freeblocks+0x7b4/frame 0xfffffe105096c510 ffs_truncate() at ffs_truncate+0x6b8/frame 0xfffffe105096c700 ufs_inactive() at ufs_inactive+0x1cb/frame 0xfffffe105096c740 VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xfd/frame 0xfffffe105096c770 vinactive() at vinactive+0xe3/frame 0xfffffe105096c7c0 vputx() at vputx+0x31e/frame 0xfffffe105096c820 kern_rmdirat() at kern_rmdirat+0x1c9/frame 0xfffffe105096c980 amd64_syscall() at amd64_syscall+0x7ab/frame 0xfffffe105096cab0 Not so much more info here, I'm afraid: https://people.freebsd.org/~pho/stress/log/mateusz005.txt -- Peter From owner-svn-src-head@freebsd.org Mon Nov 27 08:27:43 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EBB9DFC0A5; Mon, 27 Nov 2017 08:27:43 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 4A2B468C54; Mon, 27 Nov 2017 08:27:42 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id 593DB10440E8; Mon, 27 Nov 2017 19:27:34 +1100 (AEDT) Date: Mon, 27 Nov 2017 19:27:34 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Nathan Whitehorn cc: John Baldwin , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern In-Reply-To: Message-ID: <20171127183109.C1790@besplex.bde.org> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <3170692.kvv90QqB0X@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=bc8baKHB c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=1QgWAXTlbbf8hjtPRX8A:9 a=yrE8NTKN8dZdtXkm:21 a=Fgy4hgLG1BemluUb:21 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 08:27:43 -0000 On Sun, 26 Nov 2017, Nathan Whitehorn wrote: > On 11/26/17 20:50, John Baldwin wrote: >> On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: >>> ... >>> Modified: head/sys/kern/kern_clock.c >>> ============================================================================== >>> --- head/sys/kern/kern_clock.c Sat Nov 25 23:23:24 2017 >>> (r326217) >>> +++ head/sys/kern/kern_clock.c Sat Nov 25 23:41:05 2017 >>> (r326218) >>> @@ -573,7 +573,9 @@ hardclock_cnt(int cnt, int usermode) >>> void >>> hardclock_sync(int cpu) >>> { >>> - int *t = DPCPU_ID_PTR(cpu, pcputicks); >>> + int *t; >>> + KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu)); >> Blank line before the KASSERT() perhaps? >> >>> + t = DPCPU_ID_PTR(cpu, pcputicks); >>> *t = ticks; >> Probably don't need this blank line though? > > Those are both good ideas. Preserving the existing normal style is an even better idea. The change does fix 2 style bugs (indentation of t and initializing it in its declaration) as well as adding 2. >>> Modified: head/sys/kern/subr_pcpu.c >>> ============================================================================== >>> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 >>> (r326217) >>> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 >>> (r326218) >>> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >>> struct pcpu * >>> pcpu_find(u_int cpuid) >>> { >>> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, >>> + ("Getting uninitialized PCPU %d", cpuid)); >> This KASSERT seems unnecessary? If the caller uses an invalid one, it will >> just fault anyway. This also removes the blank line after the declarations and adds a bogus one after the new statement. > It won't necessarily fault. For example, on PowerPC, NULL is a valid address > that does not trigger faults. It's unfortunately quite complicated to fix > this in a general way. Even if it did fault, this makes the fault more > informative (and has found at least one bug on arm64 already). On arches that trap null pointer accesses, the KASSERT() itself will fault. This makes the fault less informative. Trapping of null pointers (with offset < PAGE_SIZE) is currently broken on i386 by a hack to support acpi wakeup. Bruce From owner-svn-src-head@freebsd.org Mon Nov 27 09:57:38 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5C81DFD4CC; Mon, 27 Nov 2017 09:57:38 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9355A6AFBE; Mon, 27 Nov 2017 09:57:38 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAR9vbpr063860; Mon, 27 Nov 2017 09:57:37 GMT (envelope-from phk@FreeBSD.org) Received: (from phk@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAR9vbRh063859; Mon, 27 Nov 2017 09:57:37 GMT (envelope-from phk@FreeBSD.org) Message-Id: <201711270957.vAR9vbRh063859@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: phk set sender to phk@FreeBSD.org using -f From: Poul-Henning Kamp Date: Mon, 27 Nov 2017 09:57:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326246 - head/lib/libc/stdio X-SVN-Group: head X-SVN-Commit-Author: phk X-SVN-Commit-Paths: head/lib/libc/stdio X-SVN-Commit-Revision: 326246 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 09:57:38 -0000 Author: phk Date: Mon Nov 27 09:57:37 2017 New Revision: 326246 URL: https://svnweb.freebsd.org/changeset/base/326246 Log: Truncate negative lengths to zero Modified: head/lib/libc/stdio/xprintf_hexdump.c Modified: head/lib/libc/stdio/xprintf_hexdump.c ============================================================================== --- head/lib/libc/stdio/xprintf_hexdump.c Mon Nov 27 04:24:48 2017 (r326245) +++ head/lib/libc/stdio/xprintf_hexdump.c Mon Nov 27 09:57:37 2017 (r326246) @@ -50,6 +50,7 @@ int __printf_render_hexdump(struct __printf_io *io, const struct printf_info *pi, const void *const *arg) { unsigned char *p; + int i; unsigned u, l, j, a; char buf[100], *q; int ret; @@ -59,7 +60,10 @@ __printf_render_hexdump(struct __printf_io *io, const else l = 16; p = *((unsigned char **)arg[0]); - u = *((unsigned *)arg[1]); + i = *((int *)arg[1]); + if (i < 0) + i = 0; + u = i; ret = 0; a = 0; From owner-svn-src-head@freebsd.org Mon Nov 27 12:34:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 60565E4F093; Mon, 27 Nov 2017 12:34:24 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A6326F111; Mon, 27 Nov 2017 12:34:24 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCYNsV030404; Mon, 27 Nov 2017 12:34:23 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCYNtA030403; Mon, 27 Nov 2017 12:34:23 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271234.vARCYNtA030403@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:34:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326247 - head/usr.sbin/kgmon X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/usr.sbin/kgmon X-SVN-Commit-Revision: 326247 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:34:24 -0000 Author: trasz Date: Mon Nov 27 12:34:23 2017 New Revision: 326247 URL: https://svnweb.freebsd.org/changeset/base/326247 Log: Revert r326125. It turns out kgmon(8) still works, and provides some functionality that's not provided by pmcstat(8). Reported by: bde@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/usr.sbin/kgmon/kgmon.8 Modified: head/usr.sbin/kgmon/kgmon.8 ============================================================================== --- head/usr.sbin/kgmon/kgmon.8 Mon Nov 27 09:57:37 2017 (r326246) +++ head/usr.sbin/kgmon/kgmon.8 Mon Nov 27 12:34:23 2017 (r326247) @@ -28,7 +28,7 @@ .\" @(#)kgmon.8 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd November 23, 2017 +.Dd June 6, 1993 .Dt KGMON 8 .Os .Sh NAME @@ -40,13 +40,6 @@ .Op Fl M Ar core .Op Fl N Ar system .Sh DESCRIPTION -.Bf -symbolic -This command is obsolete. -Users are advised to use -.Xr pmcstat 8 -instead. -.Ef -.Pp The .Nm utility is used when profiling the operating system. From owner-svn-src-head@freebsd.org Mon Nov 27 12:37:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4F1CE4F14B; Mon, 27 Nov 2017 12:37:15 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E93F6F270; Mon, 27 Nov 2017 12:37:15 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCbESl030541; Mon, 27 Nov 2017 12:37:14 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCbEBp030539; Mon, 27 Nov 2017 12:37:14 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271237.vARCbEBp030539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:37:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326248 - in head: usr.bin/gprof usr.sbin/kgmon X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: in head: usr.bin/gprof usr.sbin/kgmon X-SVN-Commit-Revision: 326248 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:37:15 -0000 Author: trasz Date: Mon Nov 27 12:37:14 2017 New Revision: 326248 URL: https://svnweb.freebsd.org/changeset/base/326248 Log: .Xr pmcstat(8) from kgmon(8) and gprof(1). MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/usr.bin/gprof/gprof.1 head/usr.sbin/kgmon/kgmon.8 Modified: head/usr.bin/gprof/gprof.1 ============================================================================== --- head/usr.bin/gprof/gprof.1 Mon Nov 27 12:34:23 2017 (r326247) +++ head/usr.bin/gprof/gprof.1 Mon Nov 27 12:37:14 2017 (r326248) @@ -28,7 +28,7 @@ .\" @(#)gprof.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd December 25, 2008 +.Dd November 27, 2017 .Dt GPROF 1 .Os .Sh NAME @@ -272,7 +272,8 @@ Summarized dynamic call graph and profile. .Sh SEE ALSO .Xr cc 1 , .Xr profil 2 , -.Xr clocks 7 +.Xr clocks 7 , +.Xr pmcstat 8 .\" .Xr monitor 3 , .\" .Xr prof 1 .Rs Modified: head/usr.sbin/kgmon/kgmon.8 ============================================================================== --- head/usr.sbin/kgmon/kgmon.8 Mon Nov 27 12:34:23 2017 (r326247) +++ head/usr.sbin/kgmon/kgmon.8 Mon Nov 27 12:37:14 2017 (r326248) @@ -28,7 +28,7 @@ .\" @(#)kgmon.8 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd June 6, 1993 +.Dd November 27, 2017 .Dt KGMON 8 .Os .Sh NAME @@ -121,7 +121,8 @@ file with the warning that the data may be inconsistent if profiling is in progress. .Sh SEE ALSO .Xr gprof 1 , -.Xr config 8 +.Xr config 8 , +.Xr pmcstat 8 .Sh HISTORY The .Nm From owner-svn-src-head@freebsd.org Mon Nov 27 12:39:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33D97E4F233; Mon, 27 Nov 2017 12:39:37 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F254E6F4B0; Mon, 27 Nov 2017 12:39:36 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCdavM030659; Mon, 27 Nov 2017 12:39:36 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCda8t030658; Mon, 27 Nov 2017 12:39:36 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271239.vARCda8t030658@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:39:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326249 - head/share/man/man6 X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/share/man/man6 X-SVN-Commit-Revision: 326249 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:39:37 -0000 Author: trasz Date: Mon Nov 27 12:39:35 2017 New Revision: 326249 URL: https://svnweb.freebsd.org/changeset/base/326249 Log: Update intro(6) - remove hint that doesn't work, add explicit list of games instead, and mention the "bsdgames" port. Reviewed by: bcr@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D13196 Modified: head/share/man/man6/intro.6 Modified: head/share/man/man6/intro.6 ============================================================================== --- head/share/man/man6/intro.6 Mon Nov 27 12:37:14 2017 (r326248) +++ head/share/man/man6/intro.6 Mon Nov 27 12:39:35 2017 (r326249) @@ -27,30 +27,33 @@ .\" .\" $FreeBSD$ .\" -.Dd February 16, 1997 +.Dd November 27, 2017 .Dt INTRO 6 .Os .Sh NAME .Nm intro .Nd "introduction to games" .Sh DESCRIPTION -This section contains information about games. +This section contains information about the traditional BSD games. The games are located in .Pa /usr/bin if installed. -You can get a short overview about all the games with the -command: -.Bd -literal -offset indent -$ apropos '\\(6\\)' -.Ed .Sh FILES .Bl -tag -width /usr/bin -compact .It Pa /usr/bin location of games .El .Sh SEE ALSO -.Xr intro 1 +.Xr intro 1 , +.Xr banner 6 , +.Xr caesar 6 , +.Xr fortune 6 , +.Xr grdc 6 , +.Xr morse 6 , +.Xr number 6 , +.Xr pom 6 , +.Xr random 6 .Sh HISTORY In earlier versions of .Fx , @@ -61,3 +64,5 @@ The .Nm section manual page appeared in .Fx 2.2 . +Most of the games were moved into the bsdgames port in +.Fx 5.0 . From owner-svn-src-head@freebsd.org Mon Nov 27 12:44:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5230BE4F4F5; Mon, 27 Nov 2017 12:44:05 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CDAA6F9E4; Mon, 27 Nov 2017 12:44:05 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCi4tY034494; Mon, 27 Nov 2017 12:44:04 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCi4Qt034493; Mon, 27 Nov 2017 12:44:04 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271244.vARCi4Qt034493@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:44:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326250 - head/etc/autofs X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/etc/autofs X-SVN-Commit-Revision: 326250 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:44:05 -0000 Author: trasz Date: Mon Nov 27 12:44:03 2017 New Revision: 326250 URL: https://svnweb.freebsd.org/changeset/base/326250 Log: Change formatting; no functional changes. MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/etc/autofs/Makefile Modified: head/etc/autofs/Makefile ============================================================================== --- head/etc/autofs/Makefile Mon Nov 27 12:39:35 2017 (r326249) +++ head/etc/autofs/Makefile Mon Nov 27 12:44:03 2017 (r326250) @@ -1,6 +1,11 @@ # $FreeBSD$ -FILES= include_ldap include_nis special_hosts special_media special_noauto special_null +FILES= include_ldap \ + include_nis \ + special_hosts \ + special_media \ + special_noauto \ + special_null NO_OBJ= FILESDIR= /etc/autofs From owner-svn-src-head@freebsd.org Mon Nov 27 12:46:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FE71E4F5DC; Mon, 27 Nov 2017 12:46:19 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49C276FB5E; Mon, 27 Nov 2017 12:46:19 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCkIPN034634; Mon, 27 Nov 2017 12:46:18 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCkIgm034632; Mon, 27 Nov 2017 12:46:18 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271246.vARCkIgm034632@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:46:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326251 - head/etc/autofs X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/etc/autofs X-SVN-Commit-Revision: 326251 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:46:19 -0000 Author: trasz Date: Mon Nov 27 12:46:18 2017 New Revision: 326251 URL: https://svnweb.freebsd.org/changeset/base/326251 Log: Rename /etc/autofs/include_nis to /etc/autofs/include_nis_nullfs, to indicate that this script provides nullfs map rewriting for local mounts. MFC after: 2 weeks Sponsored by: DARPA, AFRL Added: head/etc/autofs/include_nis_nullfs - copied, changed from r326250, head/etc/autofs/include_nis Deleted: head/etc/autofs/include_nis Modified: head/etc/autofs/Makefile Modified: head/etc/autofs/Makefile ============================================================================== --- head/etc/autofs/Makefile Mon Nov 27 12:44:03 2017 (r326250) +++ head/etc/autofs/Makefile Mon Nov 27 12:46:18 2017 (r326251) @@ -1,7 +1,7 @@ # $FreeBSD$ FILES= include_ldap \ - include_nis \ + include_nis_nullfs \ special_hosts \ special_media \ special_noauto \ Copied and modified: head/etc/autofs/include_nis_nullfs (from r326250, head/etc/autofs/include_nis) ============================================================================== --- head/etc/autofs/include_nis Mon Nov 27 12:44:03 2017 (r326250, copy source) +++ head/etc/autofs/include_nis_nullfs Mon Nov 27 12:46:18 2017 (r326251) @@ -28,14 +28,14 @@ # # -# /etc/autofs/include_nis +# /etc/autofs/include_nis_nullfs # # automountd Directory Services script for NIS # # SYNOPSIS -# include_nis +# include_nis_nullfs # -# include_nis +# include_nis_nullfs # # DESCRIPTION # From owner-svn-src-head@freebsd.org Mon Nov 27 12:50:27 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF9E2E4F6E7; Mon, 27 Nov 2017 12:50:27 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A99616FDBC; Mon, 27 Nov 2017 12:50:27 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARCoQ2N034974; Mon, 27 Nov 2017 12:50:26 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARCoQVI034972; Mon, 27 Nov 2017 12:50:26 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711271250.vARCoQVI034972@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:50:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326252 - head/etc/autofs X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/etc/autofs X-SVN-Commit-Revision: 326252 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:50:28 -0000 Author: trasz Date: Mon Nov 27 12:50:26 2017 New Revision: 326252 URL: https://svnweb.freebsd.org/changeset/base/326252 Log: Add /etc/autofs/include_nis, a non-rewriting NIS map. Submitted by: G. Paul Ziemba Suggested by: asomers@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Added: head/etc/autofs/include_nis (contents, props changed) Modified: head/etc/autofs/Makefile Modified: head/etc/autofs/Makefile ============================================================================== --- head/etc/autofs/Makefile Mon Nov 27 12:46:18 2017 (r326251) +++ head/etc/autofs/Makefile Mon Nov 27 12:50:26 2017 (r326252) @@ -1,6 +1,7 @@ # $FreeBSD$ FILES= include_ldap \ + include_nis \ include_nis_nullfs \ special_hosts \ special_media \ Added: head/etc/autofs/include_nis ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/autofs/include_nis Mon Nov 27 12:50:26 2017 (r326252) @@ -0,0 +1,14 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +if [ -n "$2" ]; then + ypmatch $2 $1 + exit 0 +fi + +if [ -n "$1" ]; then + ypcat -k $1 + exit 0 +fi From owner-svn-src-head@freebsd.org Mon Nov 27 14:13:32 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 877F9E52362; Mon, 27 Nov 2017 14:13:32 +0000 (UTC) (envelope-from dch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3879772B1D; Mon, 27 Nov 2017 14:13:32 +0000 (UTC) (envelope-from dch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAREDVmp074053; Mon, 27 Nov 2017 14:13:31 GMT (envelope-from dch@FreeBSD.org) Received: (from dch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAREDVSQ074050; Mon, 27 Nov 2017 14:13:31 GMT (envelope-from dch@FreeBSD.org) Message-Id: <201711271413.vAREDVSQ074050@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dch set sender to dch@FreeBSD.org using -f From: Dave Cottlehuber Date: Mon, 27 Nov 2017 14:13:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326253 - in head: share/misc usr.bin/calendar/calendars X-SVN-Group: head X-SVN-Commit-Author: dch X-SVN-Commit-Paths: in head: share/misc usr.bin/calendar/calendars X-SVN-Commit-Revision: 326253 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 14:13:32 -0000 Author: dch (ports committer) Date: Mon Nov 27 14:13:30 2017 New Revision: 326253 URL: https://svnweb.freebsd.org/changeset/base/326253 Log: add myself as ports committer, mentor jrm + swills Approved by: jrm Differential Revision: https://reviews.freebsd.org/D13268 Modified: head/share/misc/committers-ports.dot head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/share/misc/committers-ports.dot ============================================================================== --- head/share/misc/committers-ports.dot Mon Nov 27 12:50:26 2017 (r326252) +++ head/share/misc/committers-ports.dot Mon Nov 27 14:13:30 2017 (r326253) @@ -87,6 +87,7 @@ danilo [label="Danilo E. Gondolfo\ndanilo@FreeBSD.org\ db [label="Diane Bruce\ndb@FreeBSD.org\n2007/01/18"] dbaio [label="Danilo G. Baio\ndbaio@FreeBSD.org\n2017/05/03"] dbn [label="David Naylor\ndbn@FreeBSD.org\n2013/01/14"] +dch [label="Dave Cottlehuber\ndch@FreeBSD.org\n2017/09/09"] decke [label="Bernhard Froehlich\ndecke@FreeBSD.org\n2010/03/21"] delphij [label="Xin Li\ndelphij@FreeBSD.org\n2006/05/01"] demon [label="Dmitry Sivachenko\ndemon@FreeBSD.org\n2000/11/13"] @@ -445,6 +446,7 @@ jadawin -> wen joerg -> netchild +jrm -> dch jrm -> jwb junovitch -> tz @@ -627,6 +629,7 @@ stas -> araujo steve -> netchild +swills -> dch swills -> feld swills -> jmd swills -> jrm Modified: head/usr.bin/calendar/calendars/calendar.freebsd ============================================================================== --- head/usr.bin/calendar/calendars/calendar.freebsd Mon Nov 27 12:50:26 2017 (r326252) +++ head/usr.bin/calendar/calendars/calendar.freebsd Mon Nov 27 14:13:30 2017 (r326253) @@ -127,6 +127,7 @@ 03/26 Jonathan Anderson born in Ottawa, Ontario, Canada, 1983 03/27 Josef El-Rayes born in Linz, Austria, 1982 03/28 Sean C. Farley born in Indianapolis, Indiana, United States, 1970 +03/29 Dave Cottlehuber born in Christchurch, New Zealand, 1973 03/29 Thierry Thomas born in Luxeuil les Bains, France, 1961 03/30 Po-Chuan Hsieh born in Taipei, Taiwan, Republic of China, 1978 03/31 First quarter status reports are due on 04/15 From owner-svn-src-head@freebsd.org Mon Nov 27 14:52:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2917CE53530; Mon, 27 Nov 2017 14:52:55 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45E3C744A4; Mon, 27 Nov 2017 14:52:54 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAREqr1E091289; Mon, 27 Nov 2017 14:52:53 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAREqgAM091182; Mon, 27 Nov 2017 14:52:42 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271452.vAREqgAM091182@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 14:52:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326255 - in head/sys/dev: aac aacraid adb adlink advansys ae age agp aha ahci aic aic7xxx aic7xxx/aicasm alc ale altera/atse altera/avgen altera/jtag_uart altera/sdcard amdsbwd amdtemp... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/dev: aac aacraid adb adlink advansys ae age agp aha ahci aic aic7xxx aic7xxx/aicasm alc ale altera/atse altera/avgen altera/jtag_uart altera/sdcard amdsbwd amdtemp amr arcmsr asmc ata ata/... X-SVN-Commit-Revision: 326255 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 14:52:55 -0000 Author: pfg Date: Mon Nov 27 14:52:40 2017 New Revision: 326255 URL: https://svnweb.freebsd.org/changeset/base/326255 Log: sys/dev: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/dev/aac/aac.c head/sys/dev/aac/aac_cam.c head/sys/dev/aac/aac_debug.c head/sys/dev/aac/aac_disk.c head/sys/dev/aac/aac_linux.c head/sys/dev/aac/aac_pci.c head/sys/dev/aac/aac_tables.h head/sys/dev/aac/aacreg.h head/sys/dev/aac/aacvar.h head/sys/dev/aacraid/aacraid.c head/sys/dev/aacraid/aacraid_cam.c head/sys/dev/aacraid/aacraid_debug.c head/sys/dev/aacraid/aacraid_debug.h head/sys/dev/aacraid/aacraid_linux.c head/sys/dev/aacraid/aacraid_pci.c head/sys/dev/aacraid/aacraid_reg.h head/sys/dev/aacraid/aacraid_var.h head/sys/dev/adb/adb.h head/sys/dev/adb/adb_bus.c head/sys/dev/adb/adb_buttons.c head/sys/dev/adb/adb_kbd.c head/sys/dev/adb/adb_mouse.c head/sys/dev/adb/adbvar.h head/sys/dev/adlink/adlink.c head/sys/dev/advansys/adv_isa.c head/sys/dev/advansys/adv_pci.c head/sys/dev/advansys/advansys.c head/sys/dev/advansys/advansys.h head/sys/dev/advansys/advlib.c head/sys/dev/advansys/advlib.h head/sys/dev/advansys/adw_pci.c head/sys/dev/advansys/adwcam.c head/sys/dev/advansys/adwlib.c head/sys/dev/advansys/adwlib.h head/sys/dev/advansys/adwvar.h head/sys/dev/ae/if_ae.c head/sys/dev/ae/if_aereg.h head/sys/dev/ae/if_aevar.h head/sys/dev/age/if_age.c head/sys/dev/age/if_agereg.h head/sys/dev/age/if_agevar.h head/sys/dev/agp/agp.c head/sys/dev/agp/agp_ali.c head/sys/dev/agp/agp_amd.c head/sys/dev/agp/agp_amd64.c head/sys/dev/agp/agp_apple.c head/sys/dev/agp/agp_ati.c head/sys/dev/agp/agp_i810.c head/sys/dev/agp/agp_i810.h head/sys/dev/agp/agp_intel.c head/sys/dev/agp/agp_nvidia.c head/sys/dev/agp/agp_sis.c head/sys/dev/agp/agp_via.c head/sys/dev/agp/agppriv.h head/sys/dev/agp/agpreg.h head/sys/dev/agp/agpvar.h head/sys/dev/aha/aha.c head/sys/dev/aha/aha_isa.c head/sys/dev/aha/ahareg.h head/sys/dev/ahci/ahci.c head/sys/dev/ahci/ahci.h head/sys/dev/ahci/ahciem.c head/sys/dev/aic/aic.c head/sys/dev/aic/aic6360reg.h head/sys/dev/aic/aic_isa.c head/sys/dev/aic/aic_pccard.c head/sys/dev/aic/aicvar.h head/sys/dev/aic7xxx/ahc_isa.c head/sys/dev/aic7xxx/aic7770.c head/sys/dev/aic7xxx/aic79xx.c head/sys/dev/aic7xxx/aic79xx.h head/sys/dev/aic7xxx/aic79xx_inline.h head/sys/dev/aic7xxx/aic79xx_pci.c head/sys/dev/aic7xxx/aic7xxx.c head/sys/dev/aic7xxx/aic7xxx.h head/sys/dev/aic7xxx/aic7xxx_93cx6.h head/sys/dev/aic7xxx/aic7xxx_inline.h head/sys/dev/aic7xxx/aic7xxx_pci.c head/sys/dev/aic7xxx/aicasm/aicasm.c head/sys/dev/aic7xxx/aicasm/aicasm.h head/sys/dev/aic7xxx/aicasm/aicasm_gram.y head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h head/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l head/sys/dev/aic7xxx/aicasm/aicasm_scan.l head/sys/dev/aic7xxx/aicasm/aicasm_symbol.c head/sys/dev/aic7xxx/aicasm/aicasm_symbol.h head/sys/dev/alc/if_alc.c head/sys/dev/alc/if_alcreg.h head/sys/dev/alc/if_alcvar.h head/sys/dev/ale/if_ale.c head/sys/dev/ale/if_alereg.h head/sys/dev/ale/if_alevar.h head/sys/dev/altera/atse/a_api.h head/sys/dev/altera/atse/if_atse.c head/sys/dev/altera/atse/if_atse_fdt.c head/sys/dev/altera/atse/if_atse_nexus.c head/sys/dev/altera/atse/if_atsereg.h head/sys/dev/altera/avgen/altera_avgen.c head/sys/dev/altera/avgen/altera_avgen.h head/sys/dev/altera/avgen/altera_avgen_fdt.c head/sys/dev/altera/avgen/altera_avgen_nexus.c head/sys/dev/altera/jtag_uart/altera_jtag_uart.h head/sys/dev/altera/jtag_uart/altera_jtag_uart_cons.c head/sys/dev/altera/jtag_uart/altera_jtag_uart_fdt.c head/sys/dev/altera/jtag_uart/altera_jtag_uart_nexus.c head/sys/dev/altera/jtag_uart/altera_jtag_uart_tty.c head/sys/dev/altera/sdcard/altera_sdcard.c head/sys/dev/altera/sdcard/altera_sdcard.h head/sys/dev/altera/sdcard/altera_sdcard_disk.c head/sys/dev/altera/sdcard/altera_sdcard_fdt.c head/sys/dev/altera/sdcard/altera_sdcard_io.c head/sys/dev/altera/sdcard/altera_sdcard_nexus.c head/sys/dev/amdsbwd/amdsbwd.c head/sys/dev/amdtemp/amdtemp.c head/sys/dev/amr/amr.c head/sys/dev/amr/amr_cam.c head/sys/dev/amr/amr_disk.c head/sys/dev/amr/amr_linux.c head/sys/dev/amr/amr_pci.c head/sys/dev/amr/amr_tables.h head/sys/dev/amr/amrio.h head/sys/dev/amr/amrreg.h head/sys/dev/amr/amrvar.h head/sys/dev/arcmsr/arcmsr.c head/sys/dev/arcmsr/arcmsr.h head/sys/dev/asmc/asmc.c head/sys/dev/asmc/asmcvar.h head/sys/dev/ata/ata-all.c head/sys/dev/ata/ata-all.h head/sys/dev/ata/ata-card.c head/sys/dev/ata/ata-dma.c head/sys/dev/ata/ata-isa.c head/sys/dev/ata/ata-lowlevel.c head/sys/dev/ata/ata-pci.c head/sys/dev/ata/ata-pci.h head/sys/dev/ata/ata-sata.c head/sys/dev/ata/chipsets/ata-acard.c head/sys/dev/ata/chipsets/ata-acerlabs.c head/sys/dev/ata/chipsets/ata-amd.c head/sys/dev/ata/chipsets/ata-ati.c head/sys/dev/ata/chipsets/ata-cenatek.c head/sys/dev/ata/chipsets/ata-cypress.c head/sys/dev/ata/chipsets/ata-cyrix.c head/sys/dev/ata/chipsets/ata-fsl.c head/sys/dev/ata/chipsets/ata-highpoint.c head/sys/dev/ata/chipsets/ata-intel.c head/sys/dev/ata/chipsets/ata-ite.c head/sys/dev/ata/chipsets/ata-jmicron.c head/sys/dev/ata/chipsets/ata-marvell.c head/sys/dev/ata/chipsets/ata-micron.c head/sys/dev/ata/chipsets/ata-national.c head/sys/dev/ata/chipsets/ata-netcell.c head/sys/dev/ata/chipsets/ata-nvidia.c head/sys/dev/ata/chipsets/ata-promise.c head/sys/dev/ata/chipsets/ata-serverworks.c head/sys/dev/ata/chipsets/ata-siliconimage.c head/sys/dev/ata/chipsets/ata-sis.c head/sys/dev/ata/chipsets/ata-via.c head/sys/dev/ath/ah_osdep.c head/sys/dev/ath/ah_osdep.h head/sys/dev/ath/ath_dfs/null/dfs_null.c head/sys/dev/ath/ath_hal/ar9002/ar9002phy.h head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.h head/sys/dev/ath/ath_hal/ar9002/ar9285_cal.c head/sys/dev/ath/ath_hal/ar9002/ar9285_cal.h head/sys/dev/ath/ath_hal/ar9002/ar9285_diversity.c head/sys/dev/ath/ath_hal/ar9002/ar9285_diversity.h head/sys/dev/ath/ath_hal/ar9002/ar9285_phy.c head/sys/dev/ath/ath_hal/ar9002/ar9285_phy.h head/sys/dev/ath/ath_hal/ar9002/ar9285phy.h head/sys/dev/ath/ath_hal/ar9002/ar9287_cal.c head/sys/dev/ath/ath_hal/ar9002/ar9287_cal.h head/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c head/sys/dev/ath/ath_hal/ar9003/ar9300_devid.h head/sys/dev/ath/ath_rate/amrr/amrr.c head/sys/dev/ath/ath_rate/amrr/amrr.h head/sys/dev/ath/ath_rate/onoe/onoe.c head/sys/dev/ath/ath_rate/onoe/onoe.h head/sys/dev/ath/ath_rate/sample/sample.c head/sys/dev/ath/ath_rate/sample/sample.h head/sys/dev/ath/ath_rate/sample/tx_schedules.h head/sys/dev/ath/if_ath.c head/sys/dev/ath/if_ath_ahb.c head/sys/dev/ath/if_ath_alq.c head/sys/dev/ath/if_ath_alq.h head/sys/dev/ath/if_ath_beacon.c head/sys/dev/ath/if_ath_beacon.h head/sys/dev/ath/if_ath_btcoex.c head/sys/dev/ath/if_ath_btcoex.h head/sys/dev/ath/if_ath_debug.c head/sys/dev/ath/if_ath_debug.h head/sys/dev/ath/if_ath_keycache.c head/sys/dev/ath/if_ath_keycache.h head/sys/dev/ath/if_ath_led.c head/sys/dev/ath/if_ath_led.h head/sys/dev/ath/if_ath_lna_div.c head/sys/dev/ath/if_ath_lna_div.h head/sys/dev/ath/if_ath_misc.h head/sys/dev/ath/if_ath_pci.c head/sys/dev/ath/if_ath_rx.c head/sys/dev/ath/if_ath_rx.h head/sys/dev/ath/if_ath_rx_edma.c head/sys/dev/ath/if_ath_rx_edma.h head/sys/dev/ath/if_ath_spectral.c head/sys/dev/ath/if_ath_spectral.h head/sys/dev/ath/if_ath_sysctl.c head/sys/dev/ath/if_ath_sysctl.h head/sys/dev/ath/if_ath_tdma.c head/sys/dev/ath/if_ath_tdma.h head/sys/dev/ath/if_ath_tsf.h head/sys/dev/ath/if_ath_tx.c head/sys/dev/ath/if_ath_tx.h head/sys/dev/ath/if_ath_tx_edma.c head/sys/dev/ath/if_ath_tx_edma.h head/sys/dev/ath/if_ath_tx_ht.c head/sys/dev/ath/if_ath_tx_ht.h head/sys/dev/ath/if_athdfs.h head/sys/dev/ath/if_athioctl.h head/sys/dev/ath/if_athrate.h head/sys/dev/ath/if_athvar.h head/sys/dev/atkbdc/atkbd.c head/sys/dev/atkbdc/atkbd_atkbdc.c head/sys/dev/atkbdc/atkbdc.c head/sys/dev/atkbdc/atkbdc_ebus.c head/sys/dev/atkbdc/atkbdc_isa.c head/sys/dev/atkbdc/atkbdc_subr.c head/sys/dev/atkbdc/atkbdc_subr.h head/sys/dev/atkbdc/atkbdcreg.h head/sys/dev/atkbdc/atkbdreg.h head/sys/dev/auxio/auxio.c head/sys/dev/auxio/auxioreg.h head/sys/dev/bfe/if_bfe.c head/sys/dev/bfe/if_bfereg.h head/sys/dev/bktr/bktr_audio.c head/sys/dev/bktr/bktr_audio.h head/sys/dev/bktr/bktr_card.c head/sys/dev/bktr/bktr_card.h head/sys/dev/bktr/bktr_core.c head/sys/dev/bktr/bktr_core.h head/sys/dev/bktr/bktr_i2c.c head/sys/dev/bktr/bktr_i2c.h head/sys/dev/bktr/bktr_mem.c head/sys/dev/bktr/bktr_mem.h head/sys/dev/bktr/bktr_os.c head/sys/dev/bktr/bktr_os.h head/sys/dev/bktr/bktr_reg.h head/sys/dev/bktr/bktr_tuner.c head/sys/dev/bktr/bktr_tuner.h head/sys/dev/bktr/ioctl_meteor.h head/sys/dev/bktr/msp34xx.c head/sys/dev/bm/if_bm.c head/sys/dev/bm/if_bmreg.h head/sys/dev/bm/if_bmvar.h head/sys/dev/buslogic/bt.c head/sys/dev/buslogic/bt_isa.c head/sys/dev/buslogic/bt_pci.c head/sys/dev/buslogic/btreg.h head/sys/dev/bvm/bvm_console.c head/sys/dev/bvm/bvm_dbg.c head/sys/dev/bwi/bitops.h head/sys/dev/bwi/if_bwi_pci.c head/sys/dev/bwn/if_bwn.c head/sys/dev/bwn/if_bwnreg.h head/sys/dev/bwn/if_bwnvar.h head/sys/dev/cadence/if_cgem.c head/sys/dev/cadence/if_cgem_hw.h head/sys/dev/cardbus/cardbus.c head/sys/dev/cardbus/cardbus_cis.c head/sys/dev/cardbus/cardbus_cis.h head/sys/dev/cardbus/cardbus_device.c head/sys/dev/cardbus/cardbusreg.h head/sys/dev/cardbus/cardbusvar.h head/sys/dev/cas/if_cas.c head/sys/dev/cas/if_casreg.h head/sys/dev/cas/if_casvar.h head/sys/dev/cesa/cesa.c head/sys/dev/cesa/cesa.h head/sys/dev/cfe/cfe_api.c head/sys/dev/cfe/cfe_api.h head/sys/dev/cfe/cfe_api_int.h head/sys/dev/cfe/cfe_console.c head/sys/dev/cfe/cfe_env.c head/sys/dev/cfe/cfe_error.h head/sys/dev/cfe/cfe_ioctl.h head/sys/dev/cfe/cfe_resource.c head/sys/dev/cfi/cfi_bus_ixp4xx.c head/sys/dev/cfi/cfi_bus_nexus.c head/sys/dev/cfi/cfi_disk.c head/sys/dev/ciss/ciss.c head/sys/dev/ciss/cissio.h head/sys/dev/ciss/cissreg.h head/sys/dev/ciss/cissvar.h head/sys/dev/cm/if_cm_isa.c head/sys/dev/cm/smc90cx6.c head/sys/dev/cm/smc90cx6reg.h head/sys/dev/cm/smc90cx6var.h head/sys/dev/cmx/cmx_pccard.c head/sys/dev/cmx/cmxreg.h head/sys/dev/cmx/cmxvar.h head/sys/dev/coretemp/coretemp.c head/sys/dev/cpuctl/cpuctl.c head/sys/dev/cpufreq/ichss.c head/sys/dev/cs/if_cs.c head/sys/dev/cs/if_cs_isa.c head/sys/dev/cs/if_cs_pccard.c head/sys/dev/cs/if_csreg.h head/sys/dev/cs/if_csvar.h head/sys/dev/cxgb/bin2h.pl head/sys/dev/cxgb/common/cxgb_ael1002.c head/sys/dev/cxgb/common/cxgb_aq100x.c head/sys/dev/cxgb/common/cxgb_common.h head/sys/dev/cxgb/common/cxgb_firmware_exports.h head/sys/dev/cxgb/common/cxgb_mc5.c head/sys/dev/cxgb/common/cxgb_mv88e1xxx.c head/sys/dev/cxgb/common/cxgb_regs.h head/sys/dev/cxgb/common/cxgb_sge_defs.h head/sys/dev/cxgb/common/cxgb_t3_cpl.h head/sys/dev/cxgb/common/cxgb_t3_hw.c head/sys/dev/cxgb/common/cxgb_tcb.h head/sys/dev/cxgb/common/cxgb_tn1010.c head/sys/dev/cxgb/common/cxgb_vsc7323.c head/sys/dev/cxgb/common/cxgb_vsc8211.c head/sys/dev/cxgb/common/cxgb_xgmac.c head/sys/dev/cxgb/cxgb_adapter.h head/sys/dev/cxgb/cxgb_ioctl.h head/sys/dev/cxgb/cxgb_main.c head/sys/dev/cxgb/cxgb_offload.h head/sys/dev/cxgb/cxgb_osdep.h head/sys/dev/cxgb/cxgb_sge.c head/sys/dev/cxgb/cxgb_t3fw.h head/sys/dev/cxgb/sys/mvec.h head/sys/dev/cxgb/sys/uipc_mvec.c head/sys/dev/cxgb/t3b_protocol_sram.h head/sys/dev/cxgb/t3b_tp_eeprom.h head/sys/dev/cxgb/t3c_protocol_sram.h head/sys/dev/cxgb/t3c_tp_eeprom.h head/sys/dev/cxgbe/adapter.h head/sys/dev/cxgbe/common/common.h head/sys/dev/cxgbe/common/t4_hw.c head/sys/dev/cxgbe/common/t4_hw.h head/sys/dev/cxgbe/common/t4_msg.h head/sys/dev/cxgbe/common/t4_regs.h head/sys/dev/cxgbe/common/t4_regs_values.h head/sys/dev/cxgbe/common/t4_tcb.h head/sys/dev/cxgbe/iw_cxgbe/cm.c head/sys/dev/cxgbe/iw_cxgbe/cq.c head/sys/dev/cxgbe/iw_cxgbe/device.c head/sys/dev/cxgbe/iw_cxgbe/ev.c head/sys/dev/cxgbe/iw_cxgbe/id_table.c head/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h head/sys/dev/cxgbe/iw_cxgbe/mem.c head/sys/dev/cxgbe/iw_cxgbe/provider.c head/sys/dev/cxgbe/iw_cxgbe/qp.c head/sys/dev/cxgbe/iw_cxgbe/resource.c head/sys/dev/cxgbe/iw_cxgbe/t4.h head/sys/dev/cxgbe/iw_cxgbe/user.h head/sys/dev/cxgbe/offload.h head/sys/dev/cxgbe/osdep.h head/sys/dev/cxgbe/t4_ioctl.h head/sys/dev/cxgbe/t4_l2t.c head/sys/dev/cxgbe/t4_l2t.h head/sys/dev/cxgbe/t4_main.c head/sys/dev/cxgbe/t4_sge.c head/sys/dev/cxgbe/t4_tracer.c head/sys/dev/cxgbe/tom/t4_connect.c head/sys/dev/cxgbe/tom/t4_cpl_io.c head/sys/dev/cxgbe/tom/t4_ddp.c head/sys/dev/cxgbe/tom/t4_listen.c head/sys/dev/cxgbe/tom/t4_tom.c head/sys/dev/cxgbe/tom/t4_tom.h head/sys/dev/cxgbe/tom/t4_tom_l2t.c head/sys/dev/cxgbe/tom/t4_tom_l2t.h head/sys/dev/cy/cy.c head/sys/dev/cy/cy_isa.c head/sys/dev/cy/cy_pci.c head/sys/dev/cy/cyvar.h head/sys/dev/de/dc21040reg.h head/sys/dev/de/if_de.c head/sys/dev/de/if_devar.h head/sys/dev/dpt/dpt.h head/sys/dev/dpt/dpt_pci.c head/sys/dev/dpt/dpt_scsi.c head/sys/dev/drm2/drm_gem.c head/sys/dev/drm2/drm_gem_names.c head/sys/dev/drm2/drm_gem_names.h head/sys/dev/drm2/drm_linux_list_sort.c head/sys/dev/drm2/i915/i915_gem.c head/sys/dev/ed/ax88x90reg.h head/sys/dev/ed/dl100xxreg.h head/sys/dev/ed/if_ed.c head/sys/dev/ed/if_ed_3c503.c head/sys/dev/ed/if_ed_hpp.c head/sys/dev/ed/if_ed_isa.c head/sys/dev/ed/if_ed_novell.c head/sys/dev/ed/if_ed_pccard.c head/sys/dev/ed/if_ed_pci.c head/sys/dev/ed/if_ed_rtl80x9.c head/sys/dev/ed/if_ed_sic.c head/sys/dev/ed/if_ed_wd80x3.c head/sys/dev/ed/if_edvar.h head/sys/dev/ed/rtl80x9reg.h head/sys/dev/ed/tc5299jreg.h head/sys/dev/ep/if_ep.c head/sys/dev/ep/if_ep_isa.c head/sys/dev/ep/if_ep_pccard.c head/sys/dev/ep/if_epreg.h head/sys/dev/ep/if_epvar.h head/sys/dev/esp/am53c974reg.h head/sys/dev/esp/esp_pci.c head/sys/dev/esp/esp_sbus.c head/sys/dev/esp/ncr53c9x.c head/sys/dev/esp/ncr53c9xreg.h head/sys/dev/esp/ncr53c9xvar.h head/sys/dev/etherswitch/arswitch/arswitch.c head/sys/dev/etherswitch/arswitch/arswitch_7240.c head/sys/dev/etherswitch/arswitch/arswitch_7240.h head/sys/dev/etherswitch/arswitch/arswitch_8216.c head/sys/dev/etherswitch/arswitch/arswitch_8216.h head/sys/dev/etherswitch/arswitch/arswitch_8226.c head/sys/dev/etherswitch/arswitch/arswitch_8226.h head/sys/dev/etherswitch/arswitch/arswitch_8316.c head/sys/dev/etherswitch/arswitch/arswitch_8316.h head/sys/dev/etherswitch/arswitch/arswitch_8327.c head/sys/dev/etherswitch/arswitch/arswitch_8327.h head/sys/dev/etherswitch/arswitch/arswitch_9340.c head/sys/dev/etherswitch/arswitch/arswitch_9340.h head/sys/dev/etherswitch/arswitch/arswitch_phy.c head/sys/dev/etherswitch/arswitch/arswitch_phy.h head/sys/dev/etherswitch/arswitch/arswitch_reg.c head/sys/dev/etherswitch/arswitch/arswitch_reg.h head/sys/dev/etherswitch/arswitch/arswitch_vlans.c head/sys/dev/etherswitch/arswitch/arswitch_vlans.h head/sys/dev/etherswitch/arswitch/arswitchreg.h head/sys/dev/etherswitch/arswitch/arswitchvar.h head/sys/dev/etherswitch/etherswitch.c head/sys/dev/etherswitch/ip17x/ip175c.c head/sys/dev/etherswitch/ip17x/ip175c.h head/sys/dev/etherswitch/ip17x/ip175d.c head/sys/dev/etherswitch/ip17x/ip175d.h head/sys/dev/etherswitch/ip17x/ip17x.c head/sys/dev/etherswitch/ip17x/ip17x_phy.c head/sys/dev/etherswitch/ip17x/ip17x_phy.h head/sys/dev/etherswitch/ip17x/ip17x_reg.h head/sys/dev/etherswitch/ip17x/ip17x_var.h head/sys/dev/etherswitch/ip17x/ip17x_vlans.c head/sys/dev/etherswitch/ip17x/ip17x_vlans.h head/sys/dev/etherswitch/miiproxy.c head/sys/dev/etherswitch/miiproxy.h head/sys/dev/etherswitch/rtl8366/rtl8366rb.c head/sys/dev/etherswitch/rtl8366/rtl8366rbvar.h head/sys/dev/etherswitch/ukswitch/ukswitch.c head/sys/dev/ex/if_ex.c head/sys/dev/ex/if_ex_isa.c head/sys/dev/ex/if_ex_pccard.c head/sys/dev/ex/if_exreg.h head/sys/dev/ex/if_exvar.h head/sys/dev/exca/exca.c head/sys/dev/exca/excareg.h head/sys/dev/exca/excavar.h head/sys/dev/fb/creator.c head/sys/dev/fb/creatorreg.h head/sys/dev/fb/fb.c head/sys/dev/fb/fbd.c head/sys/dev/fb/fbreg.h head/sys/dev/fb/machfb.c head/sys/dev/fb/s3_pci.c head/sys/dev/fb/splash.c head/sys/dev/fb/splash_bmp.c head/sys/dev/fb/splash_pcx.c head/sys/dev/fb/splash_txt.c head/sys/dev/fb/splashreg.h head/sys/dev/fb/vesa.c head/sys/dev/fb/vesa.h head/sys/dev/fb/vga.c head/sys/dev/fb/vgareg.h head/sys/dev/fdc/fdc_acpi.c head/sys/dev/fdc/fdc_isa.c head/sys/dev/fdc/fdc_pccard.c head/sys/dev/fdc/fdcvar.h head/sys/dev/fdt/fdt_common.c head/sys/dev/fdt/fdt_common.h head/sys/dev/fdt/fdt_powerpc.c head/sys/dev/fdt/fdt_slicer.c head/sys/dev/fdt/simplebus.c head/sys/dev/ffec/if_ffec.c head/sys/dev/ffec/if_ffecreg.h head/sys/dev/filemon/filemon.c head/sys/dev/filemon/filemon.h head/sys/dev/filemon/filemon_wrapper.c head/sys/dev/firewire/firewire.c head/sys/dev/firewire/firewire.h head/sys/dev/firewire/firewire_phy.h head/sys/dev/firewire/firewirereg.h head/sys/dev/firewire/fwdev.c head/sys/dev/firewire/fwohci.c head/sys/dev/firewire/fwohci_pci.c head/sys/dev/firewire/fwohcireg.h head/sys/dev/firewire/fwohcivar.h head/sys/dev/firewire/iec13213.h head/sys/dev/firewire/iec68113.h head/sys/dev/firewire/sbp.c head/sys/dev/firewire/sbp.h head/sys/dev/flash/at45d.c head/sys/dev/flash/mx25l.c head/sys/dev/flash/mx25lreg.h head/sys/dev/fxp/if_fxp.c head/sys/dev/fxp/if_fxpreg.h head/sys/dev/fxp/if_fxpvar.h head/sys/dev/gem/if_gem.c head/sys/dev/gem/if_gem_pci.c head/sys/dev/gem/if_gem_sbus.c head/sys/dev/gem/if_gemreg.h head/sys/dev/gem/if_gemvar.h head/sys/dev/glxiic/glxiic.c head/sys/dev/glxsb/glxsb.h head/sys/dev/glxsb/glxsb_hash.c head/sys/dev/gpio/gpiobus.c head/sys/dev/gpio/gpiobusvar.h head/sys/dev/gpio/gpioc.c head/sys/dev/gpio/gpioiic.c head/sys/dev/gpio/gpioled.c head/sys/dev/gpio/ofw_gpiobus.c head/sys/dev/gxemul/cons/gxemul_cons.c head/sys/dev/gxemul/disk/gxemul_disk.c head/sys/dev/gxemul/disk/gxemul_diskreg.h head/sys/dev/gxemul/ether/gxreg.h head/sys/dev/gxemul/ether/if_gx.c head/sys/dev/hifn/hifn7751.c head/sys/dev/hifn/hifn7751reg.h head/sys/dev/hifn/hifn7751var.h head/sys/dev/hme/if_hme.c head/sys/dev/hme/if_hme_pci.c head/sys/dev/hme/if_hme_sbus.c head/sys/dev/hme/if_hmereg.h head/sys/dev/hme/if_hmevar.h head/sys/dev/hpt27xx/array.h head/sys/dev/hpt27xx/him.h head/sys/dev/hpt27xx/himfuncs.h head/sys/dev/hpt27xx/hpt27xx_config.c head/sys/dev/hpt27xx/hpt27xx_config.h head/sys/dev/hpt27xx/hpt27xx_os_bsd.c head/sys/dev/hpt27xx/hpt27xx_osm_bsd.c head/sys/dev/hpt27xx/hptintf.h head/sys/dev/hpt27xx/ldm.h head/sys/dev/hpt27xx/list.h head/sys/dev/hpt27xx/os_bsd.h head/sys/dev/hpt27xx/osm.h head/sys/dev/hpt27xx/wj.h head/sys/dev/hptiop/hptiop.c head/sys/dev/hptiop/hptiop.h head/sys/dev/hptmv/access601.h head/sys/dev/hptmv/array.h head/sys/dev/hptmv/atapi.h head/sys/dev/hptmv/command.h head/sys/dev/hptmv/entry.c head/sys/dev/hptmv/global.h head/sys/dev/hptmv/gui_lib.c head/sys/dev/hptmv/hptintf.h head/sys/dev/hptmv/hptproc.c head/sys/dev/hptmv/ioctl.c head/sys/dev/hptmv/mv.c head/sys/dev/hptmv/mvOs.h head/sys/dev/hptmv/mvSata.h head/sys/dev/hptmv/mvStorageDev.h head/sys/dev/hptmv/osbsd.h head/sys/dev/hptmv/raid5n.h head/sys/dev/hptmv/vdevice.h head/sys/dev/hptnr/array.h head/sys/dev/hptnr/him.h head/sys/dev/hptnr/himfuncs.h head/sys/dev/hptnr/hptintf.h head/sys/dev/hptnr/hptnr_config.c head/sys/dev/hptnr/hptnr_config.h head/sys/dev/hptnr/hptnr_os_bsd.c head/sys/dev/hptnr/hptnr_osm_bsd.c head/sys/dev/hptnr/ldm.h head/sys/dev/hptnr/list.h head/sys/dev/hptnr/os_bsd.h head/sys/dev/hptnr/osm.h head/sys/dev/hptnr/wj.h head/sys/dev/hptrr/array.h head/sys/dev/hptrr/him.h head/sys/dev/hptrr/himfuncs.h head/sys/dev/hptrr/hptintf.h head/sys/dev/hptrr/hptrr_config.c head/sys/dev/hptrr/hptrr_config.h head/sys/dev/hptrr/hptrr_os_bsd.c head/sys/dev/hptrr/hptrr_osm_bsd.c head/sys/dev/hptrr/ldm.h head/sys/dev/hptrr/list.h head/sys/dev/hptrr/os_bsd.h head/sys/dev/hptrr/osm.h head/sys/dev/hwpmc/hwpmc_amd.c head/sys/dev/hwpmc/hwpmc_amd.h head/sys/dev/hwpmc/hwpmc_arm.c head/sys/dev/hwpmc/hwpmc_core.c head/sys/dev/hwpmc/hwpmc_core.h head/sys/dev/hwpmc/hwpmc_intel.c head/sys/dev/hwpmc/hwpmc_logging.c head/sys/dev/hwpmc/hwpmc_mips.c head/sys/dev/hwpmc/hwpmc_mips24k.c head/sys/dev/hwpmc/hwpmc_mod.c head/sys/dev/hwpmc/hwpmc_mpc7xxx.c head/sys/dev/hwpmc/hwpmc_octeon.c head/sys/dev/hwpmc/hwpmc_pentium.c head/sys/dev/hwpmc/hwpmc_pentium.h head/sys/dev/hwpmc/hwpmc_piv.c head/sys/dev/hwpmc/hwpmc_piv.h head/sys/dev/hwpmc/hwpmc_powerpc.c head/sys/dev/hwpmc/hwpmc_powerpc.h head/sys/dev/hwpmc/hwpmc_ppc970.c head/sys/dev/hwpmc/hwpmc_ppro.c head/sys/dev/hwpmc/hwpmc_ppro.h head/sys/dev/hwpmc/hwpmc_soft.c head/sys/dev/hwpmc/hwpmc_soft.h head/sys/dev/hwpmc/hwpmc_sparc64.c head/sys/dev/hwpmc/hwpmc_tsc.c head/sys/dev/hwpmc/hwpmc_tsc.h head/sys/dev/hwpmc/hwpmc_uncore.c head/sys/dev/hwpmc/hwpmc_uncore.h head/sys/dev/hwpmc/hwpmc_x86.c head/sys/dev/hwpmc/hwpmc_xscale.c head/sys/dev/hwpmc/hwpmc_xscale.h head/sys/dev/hwpmc/pmc_events.h head/sys/dev/hyperv/include/hyperv.h head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c head/sys/dev/hyperv/storvsc/hv_vstorage.h head/sys/dev/hyperv/utilities/hv_kvp.h head/sys/dev/ic/cd1400.h head/sys/dev/ic/cd180.h head/sys/dev/ic/i8259.h head/sys/dev/ic/quicc.h head/sys/dev/ic/sab82532.h head/sys/dev/ic/via6522reg.h head/sys/dev/ic/z8530.h head/sys/dev/ichwd/ichwd.c head/sys/dev/ichwd/ichwd.h head/sys/dev/ida/ida.c head/sys/dev/ida/ida_disk.c head/sys/dev/ida/ida_pci.c head/sys/dev/ida/idareg.h head/sys/dev/ida/idavar.h head/sys/dev/iicbus/ad7417.c head/sys/dev/iicbus/ad7418.c head/sys/dev/iicbus/adt746x.c head/sys/dev/iicbus/ds1631.c head/sys/dev/iicbus/ds1672.c head/sys/dev/iicbus/ds1775.c head/sys/dev/iicbus/icee.c head/sys/dev/iicbus/if_ic.c head/sys/dev/iicbus/iic.c head/sys/dev/iicbus/iic.h head/sys/dev/iicbus/iicbb.c head/sys/dev/iicbus/iicbus.c head/sys/dev/iicbus/iicbus.h head/sys/dev/iicbus/iicoc.c head/sys/dev/iicbus/iicoc.h head/sys/dev/iicbus/iiconf.c head/sys/dev/iicbus/iiconf.h head/sys/dev/iicbus/iicsmb.c head/sys/dev/iicbus/max6690.c head/sys/dev/iicbus/s35390a.c head/sys/dev/iir/iir.c head/sys/dev/iir/iir.h head/sys/dev/iir/iir_ctrl.c head/sys/dev/iir/iir_pci.c head/sys/dev/io/iodev.c head/sys/dev/io/iodev.h head/sys/dev/ipmi/ipmi.c head/sys/dev/ipmi/ipmi_acpi.c head/sys/dev/ipmi/ipmi_isa.c head/sys/dev/ipmi/ipmi_kcs.c head/sys/dev/ipmi/ipmi_linux.c head/sys/dev/ipmi/ipmi_pci.c head/sys/dev/ipmi/ipmi_smbios.c head/sys/dev/ipmi/ipmi_smbus.c head/sys/dev/ipmi/ipmi_smic.c head/sys/dev/ipmi/ipmi_ssif.c head/sys/dev/ipmi/ipmivars.h head/sys/dev/ips/ips.c head/sys/dev/ips/ips.h head/sys/dev/ips/ips_commands.c head/sys/dev/ips/ips_disk.c head/sys/dev/ips/ips_disk.h head/sys/dev/ips/ips_ioctl.c head/sys/dev/ips/ips_ioctl.h head/sys/dev/ips/ips_pci.c head/sys/dev/ips/ipsreg.h head/sys/dev/ipw/if_ipw.c head/sys/dev/ipw/if_ipwreg.h head/sys/dev/ipw/if_ipwvar.h head/sys/dev/isci/environment.h head/sys/dev/isci/isci.c head/sys/dev/isci/isci.h head/sys/dev/isci/isci_controller.c head/sys/dev/isci/isci_domain.c head/sys/dev/isci/isci_interrupt.c head/sys/dev/isci/isci_io_request.c head/sys/dev/isci/isci_logger.c head/sys/dev/isci/isci_oem_parameters.c head/sys/dev/isci/isci_remote_device.c head/sys/dev/isci/isci_sysctl.c head/sys/dev/isci/isci_task_request.c head/sys/dev/isci/isci_timer.c head/sys/dev/isci/scil/intel_ata.h head/sys/dev/isci/scil/intel_pci.h head/sys/dev/isci/scil/intel_sas.h head/sys/dev/isci/scil/intel_sat.h head/sys/dev/isci/scil/intel_sata.h head/sys/dev/isci/scil/intel_scsi.h head/sys/dev/isci/scil/sati.c head/sys/dev/isci/scil/sati.h head/sys/dev/isci/scil/sati_abort_task_set.c head/sys/dev/isci/scil/sati_abort_task_set.h head/sys/dev/isci/scil/sati_atapi.c head/sys/dev/isci/scil/sati_atapi.h head/sys/dev/isci/scil/sati_callbacks.h head/sys/dev/isci/scil/sati_design.h head/sys/dev/isci/scil/sati_device.c head/sys/dev/isci/scil/sati_device.h head/sys/dev/isci/scil/sati_inquiry.c head/sys/dev/isci/scil/sati_inquiry.h head/sys/dev/isci/scil/sati_log_sense.c head/sys/dev/isci/scil/sati_log_sense.h head/sys/dev/isci/scil/sati_lun_reset.c head/sys/dev/isci/scil/sati_lun_reset.h head/sys/dev/isci/scil/sati_mode_pages.c head/sys/dev/isci/scil/sati_mode_pages.h head/sys/dev/isci/scil/sati_mode_select.c head/sys/dev/isci/scil/sati_mode_select.h head/sys/dev/isci/scil/sati_mode_sense.c head/sys/dev/isci/scil/sati_mode_sense.h head/sys/dev/isci/scil/sati_mode_sense_10.c head/sys/dev/isci/scil/sati_mode_sense_10.h head/sys/dev/isci/scil/sati_mode_sense_6.c head/sys/dev/isci/scil/sati_mode_sense_6.h head/sys/dev/isci/scil/sati_move.c head/sys/dev/isci/scil/sati_move.h head/sys/dev/isci/scil/sati_passthrough.c head/sys/dev/isci/scil/sati_passthrough.h head/sys/dev/isci/scil/sati_read.c head/sys/dev/isci/scil/sati_read.h head/sys/dev/isci/scil/sati_read_buffer.c head/sys/dev/isci/scil/sati_read_buffer.h head/sys/dev/isci/scil/sati_read_capacity.c head/sys/dev/isci/scil/sati_read_capacity.h head/sys/dev/isci/scil/sati_reassign_blocks.c head/sys/dev/isci/scil/sati_reassign_blocks.h head/sys/dev/isci/scil/sati_report_luns.c head/sys/dev/isci/scil/sati_report_luns.h head/sys/dev/isci/scil/sati_request_sense.c head/sys/dev/isci/scil/sati_request_sense.h head/sys/dev/isci/scil/sati_start_stop_unit.c head/sys/dev/isci/scil/sati_start_stop_unit.h head/sys/dev/isci/scil/sati_synchronize_cache.c head/sys/dev/isci/scil/sati_synchronize_cache.h head/sys/dev/isci/scil/sati_test_unit_ready.c head/sys/dev/isci/scil/sati_test_unit_ready.h head/sys/dev/isci/scil/sati_translator_sequence.h head/sys/dev/isci/scil/sati_types.h head/sys/dev/isci/scil/sati_unmap.c head/sys/dev/isci/scil/sati_unmap.h head/sys/dev/isci/scil/sati_util.c head/sys/dev/isci/scil/sati_util.h head/sys/dev/isci/scil/sati_verify.c head/sys/dev/isci/scil/sati_verify.h head/sys/dev/isci/scil/sati_write.c head/sys/dev/isci/scil/sati_write.h head/sys/dev/isci/scil/sati_write_and_verify.c head/sys/dev/isci/scil/sati_write_and_verify.h head/sys/dev/isci/scil/sati_write_buffer.c head/sys/dev/isci/scil/sati_write_buffer.h head/sys/dev/isci/scil/sati_write_long.c head/sys/dev/isci/scil/sati_write_long.h head/sys/dev/isci/scil/sci_abstract_list.c head/sys/dev/isci/scil/sci_abstract_list.h head/sys/dev/isci/scil/sci_base_controller.c head/sys/dev/isci/scil/sci_base_controller.h head/sys/dev/isci/scil/sci_base_domain.c head/sys/dev/isci/scil/sci_base_domain.h head/sys/dev/isci/scil/sci_base_iterator.c head/sys/dev/isci/scil/sci_base_iterator.h head/sys/dev/isci/scil/sci_base_library.c head/sys/dev/isci/scil/sci_base_library.h head/sys/dev/isci/scil/sci_base_logger.c head/sys/dev/isci/scil/sci_base_logger.h head/sys/dev/isci/scil/sci_base_memory_descriptor_list.c head/sys/dev/isci/scil/sci_base_memory_descriptor_list.h head/sys/dev/isci/scil/sci_base_memory_descriptor_list_decorator.c head/sys/dev/isci/scil/sci_base_object.c head/sys/dev/isci/scil/sci_base_object.h head/sys/dev/isci/scil/sci_base_observer.c head/sys/dev/isci/scil/sci_base_observer.h head/sys/dev/isci/scil/sci_base_phy.c head/sys/dev/isci/scil/sci_base_phy.h head/sys/dev/isci/scil/sci_base_port.c head/sys/dev/isci/scil/sci_base_port.h head/sys/dev/isci/scil/sci_base_remote_device.c head/sys/dev/isci/scil/sci_base_remote_device.h head/sys/dev/isci/scil/sci_base_request.c head/sys/dev/isci/scil/sci_base_request.h head/sys/dev/isci/scil/sci_base_state.h head/sys/dev/isci/scil/sci_base_state_machine.c head/sys/dev/isci/scil/sci_base_state_machine.h head/sys/dev/isci/scil/sci_base_state_machine_logger.c head/sys/dev/isci/scil/sci_base_state_machine_logger.h head/sys/dev/isci/scil/sci_base_state_machine_observer.c head/sys/dev/isci/scil/sci_base_state_machine_observer.h head/sys/dev/isci/scil/sci_base_subject.c head/sys/dev/isci/scil/sci_base_subject.h head/sys/dev/isci/scil/sci_controller.h head/sys/dev/isci/scil/sci_controller_constants.h head/sys/dev/isci/scil/sci_fast_list.h head/sys/dev/isci/scil/sci_iterator.h head/sys/dev/isci/scil/sci_library.h head/sys/dev/isci/scil/sci_logger.h head/sys/dev/isci/scil/sci_memory_descriptor_list.h head/sys/dev/isci/scil/sci_memory_descriptor_list_decorator.h head/sys/dev/isci/scil/sci_object.h head/sys/dev/isci/scil/sci_overview.h head/sys/dev/isci/scil/sci_pool.h head/sys/dev/isci/scil/sci_simple_list.h head/sys/dev/isci/scil/sci_status.h head/sys/dev/isci/scil/sci_types.h head/sys/dev/isci/scil/sci_util.c head/sys/dev/isci/scil/sci_util.h head/sys/dev/isci/scil/scic_config_parameters.h head/sys/dev/isci/scil/scic_controller.h head/sys/dev/isci/scil/scic_io_request.h head/sys/dev/isci/scil/scic_library.h head/sys/dev/isci/scil/scic_logger.h head/sys/dev/isci/scil/scic_overview.h head/sys/dev/isci/scil/scic_phy.h head/sys/dev/isci/scil/scic_port.h head/sys/dev/isci/scil/scic_remote_device.h head/sys/dev/isci/scil/scic_sds_controller.c head/sys/dev/isci/scil/scic_sds_controller.h head/sys/dev/isci/scil/scic_sds_controller_registers.h head/sys/dev/isci/scil/scic_sds_library.c head/sys/dev/isci/scil/scic_sds_library.h head/sys/dev/isci/scil/scic_sds_logger.h head/sys/dev/isci/scil/scic_sds_pci.c head/sys/dev/isci/scil/scic_sds_pci.h head/sys/dev/isci/scil/scic_sds_phy.c head/sys/dev/isci/scil/scic_sds_phy.h head/sys/dev/isci/scil/scic_sds_phy_registers.h head/sys/dev/isci/scil/scic_sds_port.c head/sys/dev/isci/scil/scic_sds_port.h head/sys/dev/isci/scil/scic_sds_port_configuration_agent.c head/sys/dev/isci/scil/scic_sds_port_configuration_agent.h head/sys/dev/isci/scil/scic_sds_port_registers.h head/sys/dev/isci/scil/scic_sds_remote_device.c head/sys/dev/isci/scil/scic_sds_remote_device.h head/sys/dev/isci/scil/scic_sds_remote_node_context.c head/sys/dev/isci/scil/scic_sds_remote_node_context.h head/sys/dev/isci/scil/scic_sds_remote_node_table.c head/sys/dev/isci/scil/scic_sds_remote_node_table.h head/sys/dev/isci/scil/scic_sds_request.c head/sys/dev/isci/scil/scic_sds_request.h head/sys/dev/isci/scil/scic_sds_sgpio.c head/sys/dev/isci/scil/scic_sds_smp_remote_device.c head/sys/dev/isci/scil/scic_sds_smp_request.c head/sys/dev/isci/scil/scic_sds_smp_request.h head/sys/dev/isci/scil/scic_sds_ssp_request.c head/sys/dev/isci/scil/scic_sds_stp_packet_request.c head/sys/dev/isci/scil/scic_sds_stp_packet_request.h head/sys/dev/isci/scil/scic_sds_stp_pio_request.h head/sys/dev/isci/scil/scic_sds_stp_remote_device.c head/sys/dev/isci/scil/scic_sds_stp_request.c head/sys/dev/isci/scil/scic_sds_stp_request.h head/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.c head/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.h head/sys/dev/isci/scil/scic_sgpio.h head/sys/dev/isci/scil/scic_task_request.h head/sys/dev/isci/scil/scic_user_callback.h head/sys/dev/isci/scil/scif_config_parameters.h head/sys/dev/isci/scil/scif_controller.h head/sys/dev/isci/scil/scif_domain.h head/sys/dev/isci/scil/scif_io_request.h head/sys/dev/isci/scil/scif_library.h head/sys/dev/isci/scil/scif_logger.h head/sys/dev/isci/scil/scif_overview.h head/sys/dev/isci/scil/scif_remote_device.h head/sys/dev/isci/scil/scif_sas_constants.h head/sys/dev/isci/scil/scif_sas_controller.c head/sys/dev/isci/scil/scif_sas_controller.h head/sys/dev/isci/scil/scif_sas_controller_state_handlers.c head/sys/dev/isci/scil/scif_sas_controller_states.c head/sys/dev/isci/scil/scif_sas_design.h head/sys/dev/isci/scil/scif_sas_domain.c head/sys/dev/isci/scil/scif_sas_domain.h head/sys/dev/isci/scil/scif_sas_domain_state_handlers.c head/sys/dev/isci/scil/scif_sas_domain_states.c head/sys/dev/isci/scil/scif_sas_high_priority_request_queue.c head/sys/dev/isci/scil/scif_sas_high_priority_request_queue.h head/sys/dev/isci/scil/scif_sas_internal_io_request.c head/sys/dev/isci/scil/scif_sas_internal_io_request.h head/sys/dev/isci/scil/scif_sas_io_request.c head/sys/dev/isci/scil/scif_sas_io_request.h head/sys/dev/isci/scil/scif_sas_io_request_state_handlers.c head/sys/dev/isci/scil/scif_sas_io_request_states.c head/sys/dev/isci/scil/scif_sas_library.c head/sys/dev/isci/scil/scif_sas_library.h head/sys/dev/isci/scil/scif_sas_logger.h head/sys/dev/isci/scil/scif_sas_remote_device.c head/sys/dev/isci/scil/scif_sas_remote_device.h head/sys/dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c head/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c head/sys/dev/isci/scil/scif_sas_remote_device_starting_substate_handlers.c head/sys/dev/isci/scil/scif_sas_remote_device_starting_substates.c head/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c head/sys/dev/isci/scil/scif_sas_remote_device_states.c head/sys/dev/isci/scil/scif_sas_request.c head/sys/dev/isci/scil/scif_sas_request.h head/sys/dev/isci/scil/scif_sas_sati_binding.h head/sys/dev/isci/scil/scif_sas_smp_activity_clear_affiliation.c head/sys/dev/isci/scil/scif_sas_smp_io_request.c head/sys/dev/isci/scil/scif_sas_smp_io_request.h head/sys/dev/isci/scil/scif_sas_smp_phy.c head/sys/dev/isci/scil/scif_sas_smp_phy.h head/sys/dev/isci/scil/scif_sas_smp_remote_device.c head/sys/dev/isci/scil/scif_sas_smp_remote_device.h head/sys/dev/isci/scil/scif_sas_stp_io_request.c head/sys/dev/isci/scil/scif_sas_stp_io_request.h head/sys/dev/isci/scil/scif_sas_stp_remote_device.c head/sys/dev/isci/scil/scif_sas_stp_remote_device.h head/sys/dev/isci/scil/scif_sas_stp_task_request.c head/sys/dev/isci/scil/scif_sas_stp_task_request.h head/sys/dev/isci/scil/scif_sas_task_request.c head/sys/dev/isci/scil/scif_sas_task_request.h head/sys/dev/isci/scil/scif_sas_task_request_state_handlers.c head/sys/dev/isci/scil/scif_sas_task_request_states.c head/sys/dev/isci/scil/scif_sas_timer.c head/sys/dev/isci/scil/scif_task_request.h head/sys/dev/isci/scil/scif_user_callback.h head/sys/dev/isci/scil/scu_bios_definitions.h head/sys/dev/isci/scil/scu_completion_codes.h head/sys/dev/isci/scil/scu_constants.h head/sys/dev/isci/scil/scu_event_codes.h head/sys/dev/isci/scil/scu_registers.h head/sys/dev/isci/scil/scu_remote_node_context.h head/sys/dev/isci/scil/scu_task_context.h head/sys/dev/isci/scil/scu_unsolicited_frame.h head/sys/dev/isci/scil/scu_viit_data.h head/sys/dev/isci/types.h head/sys/dev/iscsi/icl.c head/sys/dev/iscsi/icl.h head/sys/dev/iscsi/iscsi.c head/sys/dev/iscsi/iscsi.h head/sys/dev/iscsi/iscsi_ioctl.h head/sys/dev/iscsi/iscsi_proto.h head/sys/dev/iscsi_initiator/isc_cam.c head/sys/dev/iscsi_initiator/isc_sm.c head/sys/dev/iscsi_initiator/isc_soc.c head/sys/dev/iscsi_initiator/isc_subr.c head/sys/dev/iscsi_initiator/iscsi.c head/sys/dev/iscsi_initiator/iscsi.h head/sys/dev/iscsi_initiator/iscsi_subr.c head/sys/dev/iscsi_initiator/iscsivar.h head/sys/dev/isp/isp.c head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_freebsd.h head/sys/dev/isp/isp_ioctl.h head/sys/dev/isp/isp_library.c head/sys/dev/isp/isp_library.h head/sys/dev/isp/isp_pci.c head/sys/dev/isp/isp_sbus.c head/sys/dev/isp/isp_stds.h head/sys/dev/isp/isp_target.c head/sys/dev/isp/isp_target.h head/sys/dev/isp/ispmbox.h head/sys/dev/isp/ispreg.h head/sys/dev/isp/ispvar.h head/sys/dev/ispfw/asm_1000.h head/sys/dev/ispfw/asm_1040.h head/sys/dev/ispfw/asm_1080.h head/sys/dev/ispfw/asm_12160.h head/sys/dev/ispfw/asm_2100.h head/sys/dev/ispfw/asm_2200.h head/sys/dev/ispfw/asm_2300.h head/sys/dev/ispfw/asm_2322.h head/sys/dev/ispfw/asm_2400.h head/sys/dev/ispfw/asm_2500.h head/sys/dev/ispfw/ispfw.c head/sys/dev/iwi/if_iwi.c head/sys/dev/iwi/if_iwireg.h head/sys/dev/iwi/if_iwivar.h head/sys/dev/jme/if_jme.c head/sys/dev/jme/if_jmereg.h head/sys/dev/jme/if_jmevar.h head/sys/dev/joy/joy.c head/sys/dev/joy/joy_isa.c head/sys/dev/joy/joyvar.h head/sys/dev/kbd/kbd.c head/sys/dev/kbd/kbdreg.h head/sys/dev/kbd/kbdtables.h head/sys/dev/kbdmux/kbdmux.c head/sys/dev/ksyms/ksyms.c head/sys/dev/le/am7990.c head/sys/dev/le/am79900.c head/sys/dev/le/am79900reg.h head/sys/dev/le/am79900var.h head/sys/dev/le/am7990reg.h head/sys/dev/le/am7990var.h head/sys/dev/le/if_le_isa.c head/sys/dev/le/if_le_lebuffer.c head/sys/dev/le/if_le_ledma.c head/sys/dev/le/if_le_pci.c head/sys/dev/le/lance.c head/sys/dev/le/lancereg.h head/sys/dev/le/lancevar.h head/sys/dev/le/lebuffer_sbus.c head/sys/dev/lmc/if_lmc.c head/sys/dev/lmc/if_lmc.h head/sys/dev/malo/if_malo.c head/sys/dev/malo/if_malo.h head/sys/dev/malo/if_malo_pci.c head/sys/dev/malo/if_malohal.c head/sys/dev/malo/if_malohal.h head/sys/dev/malo/if_maloioctl.h head/sys/dev/mc146818/mc146818.c head/sys/dev/mc146818/mc146818var.h head/sys/dev/mem/memdev.c head/sys/dev/mem/memutil.c head/sys/dev/mfi/mfi.c head/sys/dev/mfi/mfi_cam.c head/sys/dev/mfi/mfi_debug.c head/sys/dev/mfi/mfi_disk.c head/sys/dev/mfi/mfi_ioctl.h head/sys/dev/mfi/mfi_linux.c head/sys/dev/mfi/mfi_pci.c head/sys/dev/mfi/mfi_syspd.c head/sys/dev/mfi/mfi_tbolt.c head/sys/dev/mfi/mfireg.h head/sys/dev/mfi/mfivar.h head/sys/dev/mii/acphy.c head/sys/dev/mii/acphyreg.h head/sys/dev/mii/atphy.c head/sys/dev/mii/atphyreg.h head/sys/dev/mii/axphy.c head/sys/dev/mii/bmtphy.c head/sys/dev/mii/bmtphyreg.h head/sys/dev/mii/e1000phy.c head/sys/dev/mii/gentbi.c head/sys/dev/mii/icsphy.c head/sys/dev/mii/icsphyreg.h head/sys/dev/mii/ip1000phy.c head/sys/dev/mii/ip1000phyreg.h head/sys/dev/mii/jmphy.c head/sys/dev/mii/jmphyreg.h head/sys/dev/mii/lxtphy.c head/sys/dev/mii/lxtphyreg.h head/sys/dev/mii/mii.c head/sys/dev/mii/mii.h head/sys/dev/mii/mii_bitbang.c head/sys/dev/mii/mii_bitbang.h head/sys/dev/mii/mii_physubr.c head/sys/dev/mii/miivar.h head/sys/dev/mii/nsgphy.c head/sys/dev/mii/nsphy.c head/sys/dev/mii/nsphyreg.h head/sys/dev/mii/nsphyter.c head/sys/dev/mii/nsphyterreg.h head/sys/dev/mii/qsphy.c head/sys/dev/mii/qsphyreg.h head/sys/dev/mii/rdcphy.c head/sys/dev/mii/rdcphyreg.h head/sys/dev/mii/smcphy.c head/sys/dev/mii/smscphy.c head/sys/dev/mii/tdkphy.c head/sys/dev/mii/tdkphyreg.h head/sys/dev/mii/tlphy.c head/sys/dev/mii/tlphyreg.h head/sys/dev/mii/ukphy.c head/sys/dev/mii/ukphy_subr.c head/sys/dev/mk48txx/mk48txx.c head/sys/dev/mk48txx/mk48txxreg.h head/sys/dev/mk48txx/mk48txxvar.h head/sys/dev/mlx/mlx.c head/sys/dev/mlx/mlx_disk.c head/sys/dev/mlx/mlx_pci.c head/sys/dev/mlx/mlxio.h head/sys/dev/mlx/mlxreg.h head/sys/dev/mlx/mlxvar.h head/sys/dev/mly/mly.c head/sys/dev/mly/mly_tables.h head/sys/dev/mly/mlyio.h head/sys/dev/mly/mlyreg.h head/sys/dev/mly/mlyvar.h head/sys/dev/mmc/bridge.h head/sys/dev/mmc/mmc.c head/sys/dev/mmc/mmcbrvar.h head/sys/dev/mmc/mmcreg.h head/sys/dev/mmc/mmcsd.c head/sys/dev/mmc/mmcvar.h head/sys/dev/mps/mpi/mpi2.h head/sys/dev/mps/mpi/mpi2_cnfg.h head/sys/dev/mps/mpi/mpi2_hbd.h head/sys/dev/mps/mpi/mpi2_init.h head/sys/dev/mps/mpi/mpi2_ioc.h head/sys/dev/mps/mpi/mpi2_ra.h head/sys/dev/mps/mpi/mpi2_raid.h head/sys/dev/mps/mpi/mpi2_sas.h head/sys/dev/mps/mpi/mpi2_targ.h head/sys/dev/mps/mpi/mpi2_tool.h head/sys/dev/mps/mpi/mpi2_type.h head/sys/dev/mps/mps.c head/sys/dev/mps/mps_config.c head/sys/dev/mps/mps_mapping.c head/sys/dev/mps/mps_mapping.h head/sys/dev/mps/mps_pci.c head/sys/dev/mps/mps_sas.c head/sys/dev/mps/mps_sas.h head/sys/dev/mps/mps_sas_lsi.c head/sys/dev/mps/mps_table.c head/sys/dev/mps/mps_table.h head/sys/dev/mps/mpsvar.h head/sys/dev/mpt/mpt.c head/sys/dev/mpt/mpt.h head/sys/dev/mpt/mpt_cam.c head/sys/dev/mpt/mpt_cam.h head/sys/dev/mpt/mpt_debug.c head/sys/dev/mpt/mpt_pci.c head/sys/dev/mpt/mpt_raid.c head/sys/dev/mpt/mpt_raid.h head/sys/dev/mpt/mpt_reg.h head/sys/dev/mse/mse.c head/sys/dev/mse/mse_isa.c head/sys/dev/mse/msevar.h head/sys/dev/mvs/mvs.c head/sys/dev/mvs/mvs.h head/sys/dev/mvs/mvs_pci.c head/sys/dev/mvs/mvs_soc.c head/sys/dev/mwl/if_mwl.c head/sys/dev/mwl/if_mwl_pci.c head/sys/dev/mwl/if_mwlioctl.h head/sys/dev/mwl/if_mwlvar.h head/sys/dev/mwl/mwldiag.h head/sys/dev/mwl/mwlhal.c head/sys/dev/mwl/mwlhal.h head/sys/dev/mwl/mwlreg.h head/sys/dev/mxge/eth_z8e.h head/sys/dev/mxge/ethp_z8e.h head/sys/dev/mxge/if_mxge.c head/sys/dev/mxge/if_mxge_var.h head/sys/dev/mxge/mcp_gen_header.h head/sys/dev/mxge/mxge_mcp.h head/sys/dev/mxge/rss_eth_z8e.h head/sys/dev/mxge/rss_ethp_z8e.h head/sys/dev/my/if_my.c head/sys/dev/my/if_myreg.h head/sys/dev/nand/nand.c head/sys/dev/nand/nand.h head/sys/dev/nand/nand_bbt.c head/sys/dev/nand/nand_cdev.c head/sys/dev/nand/nand_dev.h head/sys/dev/nand/nand_ecc_pos.h head/sys/dev/nand/nand_generic.c head/sys/dev/nand/nand_geom.c head/sys/dev/nand/nand_id.c head/sys/dev/nand/nandbus.c head/sys/dev/nand/nandbus.h head/sys/dev/nand/nandsim.c head/sys/dev/nand/nandsim.h head/sys/dev/nand/nandsim_chip.c head/sys/dev/nand/nandsim_chip.h head/sys/dev/nand/nandsim_ctrl.c head/sys/dev/nand/nandsim_log.c head/sys/dev/nand/nandsim_log.h head/sys/dev/nand/nandsim_swap.c head/sys/dev/nand/nandsim_swap.h head/sys/dev/nand/nfc_at91.c head/sys/dev/nand/nfc_at91.h head/sys/dev/nand/nfc_fsl.c head/sys/dev/nand/nfc_fsl.h head/sys/dev/nand/nfc_mv.c head/sys/dev/ncv/ncr53c500.c head/sys/dev/ncv/ncr53c500_pccard.c head/sys/dev/ncv/ncr53c500hw.h head/sys/dev/ncv/ncr53c500hwtab.h head/sys/dev/ncv/ncr53c500reg.h head/sys/dev/ncv/ncr53c500var.h head/sys/dev/netmap/if_em_netmap.h head/sys/dev/netmap/if_igb_netmap.h head/sys/dev/netmap/if_lem_netmap.h head/sys/dev/netmap/if_re_netmap.h head/sys/dev/netmap/ixgbe_netmap.h head/sys/dev/netmap/netmap.c head/sys/dev/netmap/netmap_freebsd.c head/sys/dev/netmap/netmap_generic.c head/sys/dev/netmap/netmap_kern.h head/sys/dev/netmap/netmap_mbq.c head/sys/dev/netmap/netmap_mbq.h head/sys/dev/netmap/netmap_mem2.c head/sys/dev/netmap/netmap_mem2.h head/sys/dev/netmap/netmap_offloadings.c head/sys/dev/netmap/netmap_pipe.c head/sys/dev/netmap/netmap_vale.c head/sys/dev/nsp/nsp.c head/sys/dev/nsp/nsp_pccard.c head/sys/dev/nsp/nspreg.h head/sys/dev/nsp/nspvar.h head/sys/dev/null/null.c head/sys/dev/nvd/nvd.c head/sys/dev/nvme/nvme.c head/sys/dev/nvme/nvme.h head/sys/dev/nvme/nvme_ctrlr.c head/sys/dev/nvme/nvme_ctrlr_cmd.c head/sys/dev/nvme/nvme_ns.c head/sys/dev/nvme/nvme_ns_cmd.c head/sys/dev/nvme/nvme_private.h head/sys/dev/nvme/nvme_qpair.c head/sys/dev/nvme/nvme_sysctl.c head/sys/dev/nvme/nvme_test.c head/sys/dev/nvme/nvme_util.c head/sys/dev/nvram/nvram.c head/sys/dev/nvram2env/nvram2env.c head/sys/dev/nxge/if_nxge.c head/sys/dev/nxge/if_nxge.h head/sys/dev/nxge/include/version.h head/sys/dev/nxge/include/xge-debug.h head/sys/dev/nxge/include/xge-defs.h head/sys/dev/nxge/include/xge-list.h head/sys/dev/nxge/include/xge-os-pal.h head/sys/dev/nxge/include/xge-queue.h head/sys/dev/nxge/include/xgehal-channel.h head/sys/dev/nxge/include/xgehal-config.h head/sys/dev/nxge/include/xgehal-device.h head/sys/dev/nxge/include/xgehal-driver.h head/sys/dev/nxge/include/xgehal-event.h head/sys/dev/nxge/include/xgehal-fifo.h head/sys/dev/nxge/include/xgehal-mgmt.h head/sys/dev/nxge/include/xgehal-mgmtaux.h head/sys/dev/nxge/include/xgehal-mm.h head/sys/dev/nxge/include/xgehal-regs.h head/sys/dev/nxge/include/xgehal-ring.h head/sys/dev/nxge/include/xgehal-stats.h head/sys/dev/nxge/include/xgehal-types.h head/sys/dev/nxge/include/xgehal.h head/sys/dev/nxge/xge-osdep.h head/sys/dev/nxge/xgehal/xge-queue.c head/sys/dev/nxge/xgehal/xgehal-channel-fp.c head/sys/dev/nxge/xgehal/xgehal-channel.c head/sys/dev/nxge/xgehal/xgehal-config.c head/sys/dev/nxge/xgehal/xgehal-device-fp.c head/sys/dev/nxge/xgehal/xgehal-device.c head/sys/dev/nxge/xgehal/xgehal-driver.c head/sys/dev/nxge/xgehal/xgehal-fifo-fp.c head/sys/dev/nxge/xgehal/xgehal-fifo.c head/sys/dev/nxge/xgehal/xgehal-mgmt.c head/sys/dev/nxge/xgehal/xgehal-mgmtaux.c head/sys/dev/nxge/xgehal/xgehal-mm.c head/sys/dev/nxge/xgehal/xgehal-ring-fp.c head/sys/dev/nxge/xgehal/xgehal-ring.c head/sys/dev/nxge/xgehal/xgehal-stats.c head/sys/dev/nxge/xgell-version.h head/sys/dev/ofw/ofw_bus.h head/sys/dev/ofw/ofw_bus_subr.c head/sys/dev/ofw/ofw_bus_subr.h head/sys/dev/ofw/ofw_console.c head/sys/dev/ofw/ofw_disk.c head/sys/dev/ofw/ofw_fdt.c head/sys/dev/ofw/ofw_pci.h head/sys/dev/ofw/ofw_standard.c head/sys/dev/ofw/ofwvar.h head/sys/dev/ofw/openfirm.c head/sys/dev/ofw/openfirm.h head/sys/dev/ofw/openpromio.c head/sys/dev/ofw/openpromio.h head/sys/dev/pbio/pbio.c head/sys/dev/pbio/pbioio.h head/sys/dev/pccard/pccard.c head/sys/dev/pccard/pccard_cis.c head/sys/dev/pccard/pccard_cis.h head/sys/dev/pccard/pccard_cis_quirks.c head/sys/dev/pccard/pccard_device.c head/sys/dev/pccard/pccardreg.h head/sys/dev/pccard/pccardvar.h head/sys/dev/pccard/pccardvarp.h head/sys/dev/pccbb/pccbb.c head/sys/dev/pccbb/pccbb_isa.c head/sys/dev/pccbb/pccbb_pci.c head/sys/dev/pccbb/pccbbdevid.h head/sys/dev/pccbb/pccbbreg.h head/sys/dev/pccbb/pccbbvar.h head/sys/dev/pcf/envctrl.c head/sys/dev/pcf/pcf.c head/sys/dev/pcf/pcf_ebus.c head/sys/dev/pcf/pcf_isa.c head/sys/dev/pcf/pcfvar.h head/sys/dev/pci/fixup_pci.c head/sys/dev/pci/hostb_pci.c head/sys/dev/pci/ignore_pci.c head/sys/dev/pci/isa_pci.c head/sys/dev/pci/pci.c head/sys/dev/pci/pci_pci.c head/sys/dev/pci/pci_private.h head/sys/dev/pci/pci_subr.c head/sys/dev/pci/pci_user.c head/sys/dev/pci/pcib_private.h head/sys/dev/pci/pcireg.h head/sys/dev/pci/pcivar.h head/sys/dev/pci/vga_pci.c head/sys/dev/pdq/if_fpa.c head/sys/dev/pdq/pdq.c head/sys/dev/pdq/pdq_freebsd.h head/sys/dev/pdq/pdq_ifsubr.c head/sys/dev/pdq/pdqreg.h head/sys/dev/pdq/pdqvar.h head/sys/dev/powermac_nvram/powermac_nvram.c head/sys/dev/powermac_nvram/powermac_nvramvar.h head/sys/dev/ppbus/if_plip.c head/sys/dev/ppbus/immio.c head/sys/dev/ppbus/lpbb.c head/sys/dev/ppbus/lpt.h head/sys/dev/ppbus/pcfclock.c head/sys/dev/ppbus/ppb_1284.c head/sys/dev/ppbus/ppb_1284.h head/sys/dev/ppbus/ppb_base.c head/sys/dev/ppbus/ppb_msq.c head/sys/dev/ppbus/ppb_msq.h head/sys/dev/ppbus/ppbconf.c head/sys/dev/ppbus/ppbconf.h head/sys/dev/ppbus/ppbio.h head/sys/dev/ppbus/ppi.c head/sys/dev/ppbus/ppi.h head/sys/dev/ppbus/vpo.c head/sys/dev/ppbus/vpoio.c head/sys/dev/ppbus/vpoio.h head/sys/dev/ppc/ppc.c head/sys/dev/ppc/ppc_acpi.c head/sys/dev/ppc/ppc_isa.c head/sys/dev/ppc/ppc_pci.c head/sys/dev/ppc/ppc_puc.c head/sys/dev/ppc/ppcreg.h head/sys/dev/ppc/ppcvar.h head/sys/dev/pst/pst-iop.c head/sys/dev/pst/pst-iop.h head/sys/dev/pst/pst-pci.c head/sys/dev/pst/pst-raid.c head/sys/dev/pty/pty.c head/sys/dev/puc/puc.c head/sys/dev/puc/puc_bfe.h head/sys/dev/puc/puc_bus.h head/sys/dev/puc/puc_cfg.c head/sys/dev/puc/puc_cfg.h head/sys/dev/puc/puc_pccard.c head/sys/dev/puc/puc_pci.c head/sys/dev/puc/pucdata.c head/sys/dev/qlxgb/qla_dbg.c head/sys/dev/qlxgb/qla_dbg.h head/sys/dev/qlxgb/qla_def.h head/sys/dev/qlxgb/qla_glbl.h head/sys/dev/qlxgb/qla_hw.c head/sys/dev/qlxgb/qla_hw.h head/sys/dev/qlxgb/qla_inline.h head/sys/dev/qlxgb/qla_ioctl.c head/sys/dev/qlxgb/qla_ioctl.h head/sys/dev/qlxgb/qla_isr.c head/sys/dev/qlxgb/qla_misc.c head/sys/dev/qlxgb/qla_os.c head/sys/dev/qlxgb/qla_os.h head/sys/dev/qlxgb/qla_reg.h head/sys/dev/qlxgb/qla_ver.h head/sys/dev/qlxgbe/ql_dbg.c head/sys/dev/qlxgbe/ql_dbg.h head/sys/dev/qlxgbe/ql_def.h head/sys/dev/qlxgbe/ql_glbl.h head/sys/dev/qlxgbe/ql_hw.c head/sys/dev/qlxgbe/ql_hw.h head/sys/dev/qlxgbe/ql_inline.h head/sys/dev/qlxgbe/ql_ioctl.c head/sys/dev/qlxgbe/ql_ioctl.h head/sys/dev/qlxgbe/ql_isr.c head/sys/dev/qlxgbe/ql_misc.c head/sys/dev/qlxgbe/ql_os.c head/sys/dev/qlxgbe/ql_os.h head/sys/dev/qlxgbe/ql_reset.c head/sys/dev/qlxgbe/ql_tmplt.h head/sys/dev/qlxgbe/ql_ver.h head/sys/dev/qlxge/qls_dbg.c head/sys/dev/qlxge/qls_dbg.h head/sys/dev/qlxge/qls_def.h head/sys/dev/qlxge/qls_dump.c head/sys/dev/qlxge/qls_dump.h head/sys/dev/qlxge/qls_glbl.h head/sys/dev/qlxge/qls_hw.c head/sys/dev/qlxge/qls_hw.h head/sys/dev/qlxge/qls_inline.h head/sys/dev/qlxge/qls_ioctl.c head/sys/dev/qlxge/qls_ioctl.h head/sys/dev/qlxge/qls_isr.c head/sys/dev/qlxge/qls_os.c head/sys/dev/qlxge/qls_os.h head/sys/dev/qlxge/qls_ver.h head/sys/dev/quicc/quicc_bfe.h head/sys/dev/quicc/quicc_bfe_fdt.c head/sys/dev/quicc/quicc_bus.h head/sys/dev/quicc/quicc_core.c head/sys/dev/rc/rc.c head/sys/dev/rc/rcreg.h head/sys/dev/rndtest/rndtest.c head/sys/dev/rndtest/rndtest.h head/sys/dev/rp/rp.c head/sys/dev/rp/rp_isa.c head/sys/dev/rp/rp_pci.c head/sys/dev/rp/rpreg.h head/sys/dev/rp/rpvar.h head/sys/dev/rt/if_rt.c head/sys/dev/rt/if_rtreg.h head/sys/dev/rt/if_rtvar.h head/sys/dev/safe/safe.c head/sys/dev/safe/safereg.h head/sys/dev/safe/safevar.h head/sys/dev/scc/scc_bfe.h head/sys/dev/scc/scc_bfe_ebus.c head/sys/dev/scc/scc_bfe_macio.c head/sys/dev/scc/scc_bfe_quicc.c head/sys/dev/scc/scc_bfe_sbus.c head/sys/dev/scc/scc_bus.h head/sys/dev/scc/scc_core.c head/sys/dev/scc/scc_dev_quicc.c head/sys/dev/scc/scc_dev_sab82532.c head/sys/dev/scc/scc_dev_z8530.c head/sys/dev/sdhci/sdhci.c head/sys/dev/sdhci/sdhci.h head/sys/dev/sdhci/sdhci_fdt.c head/sys/dev/sdhci/sdhci_pci.c head/sys/dev/sec/sec.c head/sys/dev/sec/sec.h head/sys/dev/sfxge/common/efsys.h head/sys/dev/sfxge/common/efx.h head/sys/dev/sfxge/common/efx_bootcfg.c head/sys/dev/sfxge/common/efx_ev.c head/sys/dev/sfxge/common/efx_filter.c head/sys/dev/sfxge/common/efx_impl.h head/sys/dev/sfxge/common/efx_intr.c head/sys/dev/sfxge/common/efx_mac.c head/sys/dev/sfxge/common/efx_mcdi.c head/sys/dev/sfxge/common/efx_mcdi.h head/sys/dev/sfxge/common/efx_mon.c head/sys/dev/sfxge/common/efx_nic.c head/sys/dev/sfxge/common/efx_nvram.c head/sys/dev/sfxge/common/efx_phy.c head/sys/dev/sfxge/common/efx_port.c head/sys/dev/sfxge/common/efx_regs.h head/sys/dev/sfxge/common/efx_regs_ef10.h head/sys/dev/sfxge/common/efx_regs_mcdi.h head/sys/dev/sfxge/common/efx_regs_pci.h head/sys/dev/sfxge/common/efx_rx.c head/sys/dev/sfxge/common/efx_sram.c head/sys/dev/sfxge/common/efx_tx.c head/sys/dev/sfxge/common/efx_types.h head/sys/dev/sfxge/common/efx_vpd.c head/sys/dev/sfxge/common/siena_flash.h head/sys/dev/sfxge/common/siena_impl.h head/sys/dev/sfxge/common/siena_mac.c head/sys/dev/sfxge/common/siena_nic.c head/sys/dev/sfxge/common/siena_nvram.c head/sys/dev/sfxge/common/siena_phy.c head/sys/dev/sfxge/common/siena_sram.c head/sys/dev/sfxge/common/siena_vpd.c head/sys/dev/sfxge/sfxge.c head/sys/dev/sfxge/sfxge.h head/sys/dev/sfxge/sfxge_dma.c head/sys/dev/sfxge/sfxge_ev.c head/sys/dev/sfxge/sfxge_intr.c head/sys/dev/sfxge/sfxge_mcdi.c head/sys/dev/sfxge/sfxge_port.c head/sys/dev/sfxge/sfxge_rx.c head/sys/dev/sfxge/sfxge_rx.h head/sys/dev/sfxge/sfxge_tx.c head/sys/dev/sfxge/sfxge_tx.h head/sys/dev/siba/siba_bwn.c head/sys/dev/siba/siba_core.c head/sys/dev/siba/siba_ids.h head/sys/dev/siba/sibareg.h head/sys/dev/siba/sibavar.h head/sys/dev/siis/siis.c head/sys/dev/siis/siis.h head/sys/dev/sio/sio_isa.c head/sys/dev/sio/sio_pccard.c head/sys/dev/sio/sio_pci.c head/sys/dev/sio/sio_puc.c head/sys/dev/smbus/smb.c head/sys/dev/smbus/smb.h head/sys/dev/smbus/smbconf.c head/sys/dev/smbus/smbconf.h head/sys/dev/smbus/smbus.c head/sys/dev/smbus/smbus.h head/sys/dev/smc/if_smc.c head/sys/dev/smc/if_smcreg.h head/sys/dev/smc/if_smcvar.h head/sys/dev/sn/if_sn.c head/sys/dev/sn/if_sn_isa.c head/sys/dev/sn/if_sn_pccard.c head/sys/dev/sn/if_snreg.h head/sys/dev/sn/if_snvar.h head/sys/dev/sn/ositech.h head/sys/dev/snp/snp.c head/sys/dev/sound/chip.h head/sys/dev/sound/clone.c head/sys/dev/sound/clone.h head/sys/dev/sound/driver.c head/sys/dev/sound/isa/ad1816.c head/sys/dev/sound/isa/ad1816.h head/sys/dev/sound/isa/ess.c head/sys/dev/sound/isa/gusc.c head/sys/dev/sound/isa/mss.c head/sys/dev/sound/isa/mss.h head/sys/dev/sound/isa/sb.h head/sys/dev/sound/isa/sb16.c head/sys/dev/sound/isa/sb8.c head/sys/dev/sound/isa/sbc.c head/sys/dev/sound/isa/sndbuf_dma.c head/sys/dev/sound/macio/aoa.c head/sys/dev/sound/macio/aoa.h head/sys/dev/sound/macio/davbus.c head/sys/dev/sound/macio/davbusreg.h head/sys/dev/sound/macio/i2s.c head/sys/dev/sound/macio/onyx.c head/sys/dev/sound/macio/snapper.c head/sys/dev/sound/macio/tumbler.c head/sys/dev/sound/midi/midi.c head/sys/dev/sound/midi/midi.h head/sys/dev/sound/midi/midiq.h head/sys/dev/sound/midi/mpu401.c head/sys/dev/sound/midi/mpu401.h head/sys/dev/sound/midi/sequencer.c head/sys/dev/sound/midi/sequencer.h head/sys/dev/sound/pci/allegro_code.h head/sys/dev/sound/pci/allegro_reg.h head/sys/dev/sound/pci/als4000.c head/sys/dev/sound/pci/als4000.h head/sys/dev/sound/pci/atiixp.c head/sys/dev/sound/pci/atiixp.h head/sys/dev/sound/pci/aureal.c head/sys/dev/sound/pci/aureal.h head/sys/dev/sound/pci/cmi.c head/sys/dev/sound/pci/cmireg.h head/sys/dev/sound/pci/cs4281.c head/sys/dev/sound/pci/cs4281.h head/sys/dev/sound/pci/cs461x_dsp.h head/sys/dev/sound/pci/csa.c head/sys/dev/sound/pci/csapcm.c head/sys/dev/sound/pci/csareg.h head/sys/dev/sound/pci/csavar.h head/sys/dev/sound/pci/ds1-fw.h head/sys/dev/sound/pci/ds1.c head/sys/dev/sound/pci/emu10k1.c head/sys/dev/sound/pci/emu10kx-midi.c head/sys/dev/sound/pci/emu10kx-pcm.c head/sys/dev/sound/pci/emu10kx.c head/sys/dev/sound/pci/emu10kx.h head/sys/dev/sound/pci/envy24.c head/sys/dev/sound/pci/envy24.h head/sys/dev/sound/pci/envy24ht.c head/sys/dev/sound/pci/envy24ht.h head/sys/dev/sound/pci/es137x.c head/sys/dev/sound/pci/es137x.h head/sys/dev/sound/pci/fm801.c head/sys/dev/sound/pci/hda/hda_reg.h head/sys/dev/sound/pci/hda/hdaa.c head/sys/dev/sound/pci/hda/hdaa.h head/sys/dev/sound/pci/hda/hdaa_patches.c head/sys/dev/sound/pci/hda/hdac.c head/sys/dev/sound/pci/hda/hdac.h head/sys/dev/sound/pci/hda/hdac_private.h head/sys/dev/sound/pci/hda/hdac_reg.h head/sys/dev/sound/pci/hda/hdacc.c head/sys/dev/sound/pci/hdspe-pcm.c head/sys/dev/sound/pci/hdspe.c head/sys/dev/sound/pci/hdspe.h head/sys/dev/sound/pci/ich.c head/sys/dev/sound/pci/ich.h head/sys/dev/sound/pci/maestro.c head/sys/dev/sound/pci/maestro3.c head/sys/dev/sound/pci/maestro_reg.h head/sys/dev/sound/pci/neomagic-coeff.h head/sys/dev/sound/pci/neomagic.c head/sys/dev/sound/pci/neomagic.h head/sys/dev/sound/pci/solo.c head/sys/dev/sound/pci/spicds.c head/sys/dev/sound/pci/spicds.h head/sys/dev/sound/pci/t4dwave.c head/sys/dev/sound/pci/t4dwave.h head/sys/dev/sound/pci/via8233.c head/sys/dev/sound/pci/via8233.h head/sys/dev/sound/pci/via82c686.c head/sys/dev/sound/pci/via82c686.h head/sys/dev/sound/pci/vibes.c head/sys/dev/sound/pci/vibes.h head/sys/dev/sound/pcm/ac97.c head/sys/dev/sound/pcm/ac97.h head/sys/dev/sound/pcm/ac97_patch.c head/sys/dev/sound/pcm/ac97_patch.h head/sys/dev/sound/pcm/buffer.c head/sys/dev/sound/pcm/buffer.h head/sys/dev/sound/pcm/channel.c head/sys/dev/sound/pcm/channel.h head/sys/dev/sound/pcm/dsp.c head/sys/dev/sound/pcm/dsp.h head/sys/dev/sound/pcm/feeder.c head/sys/dev/sound/pcm/feeder.h head/sys/dev/sound/pcm/feeder_chain.c head/sys/dev/sound/pcm/feeder_eq.c head/sys/dev/sound/pcm/feeder_format.c head/sys/dev/sound/pcm/feeder_matrix.c head/sys/dev/sound/pcm/feeder_mixer.c head/sys/dev/sound/pcm/feeder_rate.c head/sys/dev/sound/pcm/feeder_volume.c head/sys/dev/sound/pcm/g711.h head/sys/dev/sound/pcm/intpcm.h head/sys/dev/sound/pcm/matrix.h head/sys/dev/sound/pcm/matrix_map.h head/sys/dev/sound/pcm/mixer.c head/sys/dev/sound/pcm/mixer.h head/sys/dev/sound/pcm/pcm.h head/sys/dev/sound/pcm/sndstat.c head/sys/dev/sound/pcm/sndstat.h head/sys/dev/sound/pcm/sound.c head/sys/dev/sound/pcm/sound.h head/sys/dev/sound/pcm/vchan.c head/sys/dev/sound/pcm/vchan.h head/sys/dev/sound/sbus/apcdmareg.h head/sys/dev/sound/sbus/cs4231.c head/sys/dev/sound/sbus/cs4231.h head/sys/dev/sound/unit.c head/sys/dev/sound/unit.h head/sys/dev/sound/usb/uaudio.c head/sys/dev/sound/usb/uaudio.h head/sys/dev/sound/usb/uaudio_pcm.c head/sys/dev/sound/usb/uaudioreg.h head/sys/dev/sound/version.h head/sys/dev/spibus/ofw_spibus.c head/sys/dev/stg/tmc18c30.c head/sys/dev/stg/tmc18c30_isa.c head/sys/dev/stg/tmc18c30_pccard.c head/sys/dev/stg/tmc18c30_pci.c head/sys/dev/stg/tmc18c30_subr.c head/sys/dev/stg/tmc18c30reg.h head/sys/dev/stg/tmc18c30var.h head/sys/dev/stge/if_stge.c head/sys/dev/stge/if_stgereg.h head/sys/dev/sym/sym_conf.h head/sys/dev/sym/sym_defs.h head/sys/dev/sym/sym_fw.h head/sys/dev/sym/sym_fw1.h head/sys/dev/sym/sym_fw2.h head/sys/dev/sym/sym_hipd.c head/sys/dev/syscons/apm/apm_saver.c head/sys/dev/syscons/blank/blank_saver.c head/sys/dev/syscons/daemon/daemon_saver.c head/sys/dev/syscons/dragon/dragon_saver.c head/sys/dev/syscons/fade/fade_saver.c head/sys/dev/syscons/fire/fire_saver.c head/sys/dev/syscons/green/green_saver.c head/sys/dev/syscons/logo/logo_saver.c head/sys/dev/syscons/rain/rain_saver.c head/sys/dev/syscons/scgfbrndr.c head/sys/dev/syscons/schistory.c head/sys/dev/syscons/scmouse.c head/sys/dev/syscons/scterm-teken.c head/sys/dev/syscons/scterm.c head/sys/dev/syscons/scvesactl.c head/sys/dev/syscons/scvgarndr.c head/sys/dev/syscons/scvidctl.c head/sys/dev/syscons/scvtb.c head/sys/dev/syscons/snake/snake_saver.c head/sys/dev/syscons/star/star_saver.c head/sys/dev/syscons/syscons.c head/sys/dev/syscons/syscons.h head/sys/dev/syscons/sysmouse.c head/sys/dev/syscons/warp/warp_saver.c head/sys/dev/tdfx/tdfx_io.h head/sys/dev/tdfx/tdfx_linux.c head/sys/dev/tdfx/tdfx_linux.h head/sys/dev/tdfx/tdfx_pci.c head/sys/dev/tdfx/tdfx_pci.h head/sys/dev/tdfx/tdfx_vars.h head/sys/dev/terasic/de4led/terasic_de4led.c head/sys/dev/terasic/de4led/terasic_de4led.h head/sys/dev/terasic/de4led/terasic_de4led_fdt.c head/sys/dev/terasic/de4led/terasic_de4led_nexus.c head/sys/dev/terasic/mtl/terasic_mtl.c head/sys/dev/terasic/mtl/terasic_mtl.h head/sys/dev/terasic/mtl/terasic_mtl_fdt.c head/sys/dev/terasic/mtl/terasic_mtl_nexus.c head/sys/dev/terasic/mtl/terasic_mtl_pixel.c head/sys/dev/terasic/mtl/terasic_mtl_reg.c head/sys/dev/terasic/mtl/terasic_mtl_syscons.c head/sys/dev/terasic/mtl/terasic_mtl_text.c head/sys/dev/trm/trm.c head/sys/dev/trm/trm.h head/sys/dev/tsec/if_tsec.c head/sys/dev/tsec/if_tsec.h head/sys/dev/tsec/if_tsec_fdt.c head/sys/dev/tsec/if_tsecreg.h head/sys/dev/twa/tw_cl.h head/sys/dev/twa/tw_cl_externs.h head/sys/dev/twa/tw_cl_fwif.h head/sys/dev/twa/tw_cl_init.c head/sys/dev/twa/tw_cl_intr.c head/sys/dev/twa/tw_cl_io.c head/sys/dev/twa/tw_cl_ioctl.h head/sys/dev/twa/tw_cl_misc.c head/sys/dev/twa/tw_cl_share.h head/sys/dev/twa/tw_osl.h head/sys/dev/twa/tw_osl_cam.c head/sys/dev/twa/tw_osl_externs.h head/sys/dev/twa/tw_osl_freebsd.c head/sys/dev/twa/tw_osl_includes.h head/sys/dev/twa/tw_osl_inline.h head/sys/dev/twa/tw_osl_ioctl.h head/sys/dev/twa/tw_osl_share.h head/sys/dev/twa/tw_osl_types.h head/sys/dev/twe/twe.c head/sys/dev/twe/twe_compat.h head/sys/dev/twe/twe_freebsd.c head/sys/dev/twe/twe_tables.h head/sys/dev/twe/tweio.h head/sys/dev/twe/twereg.h head/sys/dev/twe/twevar.h head/sys/dev/tws/tws_cam.c head/sys/dev/tx/if_tx.c head/sys/dev/tx/if_txreg.h head/sys/dev/tx/if_txvar.h head/sys/dev/txp/3c990img.h head/sys/dev/txp/if_txpreg.h head/sys/dev/uart/uart.h head/sys/dev/uart/uart_bus.h head/sys/dev/uart/uart_bus_acpi.c head/sys/dev/uart/uart_bus_ebus.c head/sys/dev/uart/uart_bus_fdt.c head/sys/dev/uart/uart_bus_isa.c head/sys/dev/uart/uart_bus_pccard.c head/sys/dev/uart/uart_bus_pci.c head/sys/dev/uart/uart_bus_puc.c head/sys/dev/uart/uart_bus_scc.c head/sys/dev/uart/uart_core.c head/sys/dev/uart/uart_cpu.h head/sys/dev/uart/uart_cpu_fdt.c head/sys/dev/uart/uart_cpu_powerpc.c head/sys/dev/uart/uart_cpu_sparc64.c head/sys/dev/uart/uart_cpu_x86.c head/sys/dev/uart/uart_dbg.c head/sys/dev/uart/uart_dev_imx.c head/sys/dev/uart/uart_dev_lpc.c head/sys/dev/uart/uart_dev_ns8250.c head/sys/dev/uart/uart_dev_ns8250.h head/sys/dev/uart/uart_dev_pl011.c head/sys/dev/uart/uart_dev_quicc.c head/sys/dev/uart/uart_dev_sab82532.c head/sys/dev/uart/uart_dev_ti8250.c head/sys/dev/uart/uart_dev_z8530.c head/sys/dev/uart/uart_kbd_sun.c head/sys/dev/uart/uart_kbd_sun.h head/sys/dev/uart/uart_subr.c head/sys/dev/uart/uart_tty.c head/sys/dev/ubsec/ubsec.c head/sys/dev/ubsec/ubsecreg.h head/sys/dev/ubsec/ubsecvar.h head/sys/dev/usb/controller/at91dci.c head/sys/dev/usb/controller/at91dci.h head/sys/dev/usb/controller/at91dci_atmelarm.c head/sys/dev/usb/controller/at91dci_fdt.c head/sys/dev/usb/controller/atmegadci.c head/sys/dev/usb/controller/atmegadci.h head/sys/dev/usb/controller/atmegadci_atmelarm.c head/sys/dev/usb/controller/avr32dci.c head/sys/dev/usb/controller/avr32dci.h head/sys/dev/usb/controller/dwc_otg.c head/sys/dev/usb/controller/dwc_otg.h head/sys/dev/usb/controller/dwc_otg_fdt.c head/sys/dev/usb/controller/dwc_otgreg.h head/sys/dev/usb/controller/ehci.c head/sys/dev/usb/controller/ehci.h head/sys/dev/usb/controller/ehci_fsl.c head/sys/dev/usb/controller/ehci_imx.c head/sys/dev/usb/controller/ehci_ixp4xx.c head/sys/dev/usb/controller/ehci_pci.c head/sys/dev/usb/controller/ehcireg.h head/sys/dev/usb/controller/musb_otg.c head/sys/dev/usb/controller/musb_otg.h head/sys/dev/usb/controller/musb_otg_atmelarm.c head/sys/dev/usb/controller/ohci.c head/sys/dev/usb/controller/ohci.h head/sys/dev/usb/controller/ohci_pci.c head/sys/dev/usb/controller/ohci_s3c24x0.c head/sys/dev/usb/controller/ohcireg.h head/sys/dev/usb/controller/uhci.c head/sys/dev/usb/controller/uhci.h head/sys/dev/usb/controller/uhci_pci.c head/sys/dev/usb/controller/uhcireg.h head/sys/dev/usb/controller/usb_controller.c head/sys/dev/usb/controller/uss820dci.c head/sys/dev/usb/controller/uss820dci.h head/sys/dev/usb/controller/uss820dci_atmelarm.c head/sys/dev/usb/controller/xhci.c head/sys/dev/usb/controller/xhci.h head/sys/dev/usb/controller/xhci_pci.c head/sys/dev/usb/controller/xhcireg.h head/sys/dev/usb/gadget/g_audio.c head/sys/dev/usb/gadget/g_audio.h head/sys/dev/usb/gadget/g_keyboard.c head/sys/dev/usb/gadget/g_keyboard.h head/sys/dev/usb/gadget/g_modem.c head/sys/dev/usb/gadget/g_modem.h head/sys/dev/usb/gadget/g_mouse.c head/sys/dev/usb/gadget/g_mouse.h head/sys/dev/usb/input/atp.c head/sys/dev/usb/input/uep.c head/sys/dev/usb/input/uhid.c head/sys/dev/usb/input/ukbd.c head/sys/dev/usb/input/ums.c head/sys/dev/usb/input/usb_rdesc.h head/sys/dev/usb/input/wsp.c head/sys/dev/usb/misc/ufm.c head/sys/dev/usb/net/if_axge.c head/sys/dev/usb/net/if_axgereg.h head/sys/dev/usb/net/if_ipheth.c head/sys/dev/usb/net/if_iphethvar.h head/sys/dev/usb/net/if_mos.c head/sys/dev/usb/net/if_ruereg.h head/sys/dev/usb/net/if_smsc.c head/sys/dev/usb/net/if_smscreg.h head/sys/dev/usb/net/if_usie.c head/sys/dev/usb/net/if_usievar.h head/sys/dev/usb/net/ruephy.c head/sys/dev/usb/net/ruephyreg.h head/sys/dev/usb/net/uhso.c head/sys/dev/usb/net/usb_ethernet.c head/sys/dev/usb/net/usb_ethernet.h head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/quirk/usb_quirk.h head/sys/dev/usb/serial/ubsa.c head/sys/dev/usb/serial/ubser.c head/sys/dev/usb/serial/uchcom.c head/sys/dev/usb/serial/ucycom.c head/sys/dev/usb/serial/ufoma.c head/sys/dev/usb/serial/uftdi.c head/sys/dev/usb/serial/ugensa.c head/sys/dev/usb/serial/uipaq.c head/sys/dev/usb/serial/ulpt.c head/sys/dev/usb/serial/umcs.c head/sys/dev/usb/serial/umcs.h head/sys/dev/usb/serial/umct.c head/sys/dev/usb/serial/umodem.c head/sys/dev/usb/serial/uplcom.c head/sys/dev/usb/serial/usb_serial.c head/sys/dev/usb/serial/usb_serial.h head/sys/dev/usb/serial/uvisor.c head/sys/dev/usb/serial/uvscom.c head/sys/dev/usb/storage/umass.c head/sys/dev/usb/storage/urio.c head/sys/dev/usb/storage/ustorage_fs.c head/sys/dev/usb/template/usb_template.c head/sys/dev/usb/template/usb_template.h head/sys/dev/usb/template/usb_template_audio.c head/sys/dev/usb/template/usb_template_cdce.c head/sys/dev/usb/template/usb_template_kbd.c head/sys/dev/usb/template/usb_template_modem.c head/sys/dev/usb/template/usb_template_mouse.c head/sys/dev/usb/template/usb_template_msc.c head/sys/dev/usb/template/usb_template_mtp.c head/sys/dev/usb/ufm_ioctl.h head/sys/dev/usb/usb.h head/sys/dev/usb/usb_bus.h head/sys/dev/usb/usb_busdma.c head/sys/dev/usb/usb_busdma.h head/sys/dev/usb/usb_cdc.h head/sys/dev/usb/usb_controller.h head/sys/dev/usb/usb_core.c head/sys/dev/usb/usb_core.h head/sys/dev/usb/usb_debug.c head/sys/dev/usb/usb_debug.h head/sys/dev/usb/usb_dev.c head/sys/dev/usb/usb_dev.h head/sys/dev/usb/usb_device.c head/sys/dev/usb/usb_device.h head/sys/dev/usb/usb_dynamic.c head/sys/dev/usb/usb_dynamic.h head/sys/dev/usb/usb_endian.h head/sys/dev/usb/usb_error.c head/sys/dev/usb/usb_freebsd.h head/sys/dev/usb/usb_freebsd_loader.h head/sys/dev/usb/usb_generic.c head/sys/dev/usb/usb_generic.h head/sys/dev/usb/usb_handle_request.c head/sys/dev/usb/usb_hid.c head/sys/dev/usb/usb_hub.c head/sys/dev/usb/usb_hub.h head/sys/dev/usb/usb_ioctl.h head/sys/dev/usb/usb_lookup.c head/sys/dev/usb/usb_mbuf.c head/sys/dev/usb/usb_mbuf.h head/sys/dev/usb/usb_msctest.c head/sys/dev/usb/usb_msctest.h head/sys/dev/usb/usb_parse.c head/sys/dev/usb/usb_pci.h head/sys/dev/usb/usb_process.c head/sys/dev/usb/usb_process.h head/sys/dev/usb/usb_request.c head/sys/dev/usb/usb_request.h head/sys/dev/usb/usb_transfer.c head/sys/dev/usb/usb_transfer.h head/sys/dev/usb/usb_util.c head/sys/dev/usb/usb_util.h head/sys/dev/usb/usbdi.h head/sys/dev/usb/usbdi_util.h head/sys/dev/usb/usbhid.h head/sys/dev/usb/wlan/if_uath.c head/sys/dev/usb/wlan/if_zydfw.h head/sys/dev/viawd/viawd.c head/sys/dev/viawd/viawd.h head/sys/dev/virtio/balloon/virtio_balloon.c head/sys/dev/virtio/block/virtio_blk.c head/sys/dev/virtio/network/if_vtnet.c head/sys/dev/virtio/network/if_vtnetvar.h head/sys/dev/virtio/pci/virtio_pci.c head/sys/dev/virtio/random/virtio_random.c head/sys/dev/virtio/scsi/virtio_scsi.c head/sys/dev/virtio/scsi/virtio_scsi.h head/sys/dev/virtio/scsi/virtio_scsivar.h head/sys/dev/virtio/virtio.c head/sys/dev/virtio/virtqueue.c head/sys/dev/virtio/virtqueue.h head/sys/dev/vkbd/vkbd.c head/sys/dev/vkbd/vkbd_var.h head/sys/dev/vt/colors/vt_termcolors.c head/sys/dev/vt/colors/vt_termcolors.h head/sys/dev/vt/font/vt_font_default.c head/sys/dev/vt/font/vt_mouse_cursor.c head/sys/dev/vt/hw/efifb/efifb.c head/sys/dev/vt/hw/fb/vt_early_fb.c head/sys/dev/vt/hw/fb/vt_fb.c head/sys/dev/vt/hw/fb/vt_fb.h head/sys/dev/vt/hw/ofwfb/ofwfb.c head/sys/dev/vt/logo/logo_freebsd.c head/sys/dev/vt/vt.h head/sys/dev/vt/vt_buf.c head/sys/dev/vt/vt_consolectl.c head/sys/dev/vt/vt_core.c head/sys/dev/vt/vt_font.c head/sys/dev/vt/vt_sysmouse.c head/sys/dev/vte/if_vte.c head/sys/dev/vte/if_vtereg.h head/sys/dev/vte/if_vtevar.h head/sys/dev/vx/if_vx.c head/sys/dev/vx/if_vxreg.h head/sys/dev/vx/if_vxvar.h head/sys/dev/watchdog/watchdog.c head/sys/dev/wbwd/wbwd.c head/sys/dev/wtap/if_medium.c head/sys/dev/wtap/if_medium.h head/sys/dev/wtap/if_wtap.c head/sys/dev/wtap/if_wtap_module.c head/sys/dev/wtap/if_wtapioctl.h head/sys/dev/wtap/if_wtapvar.h head/sys/dev/wtap/plugins/visibility.c head/sys/dev/wtap/plugins/visibility.h head/sys/dev/wtap/plugins/visibility_ioctl.h head/sys/dev/wtap/plugins/wtap_plugin.h head/sys/dev/wtap/wtap_hal/hal.c head/sys/dev/wtap/wtap_hal/hal.h head/sys/dev/wtap/wtap_hal/handler.h head/sys/dev/xe/if_xe.c head/sys/dev/xe/if_xe_pccard.c head/sys/dev/xe/if_xereg.h head/sys/dev/xe/if_xevar.h head/sys/dev/xen/blkback/blkback.c head/sys/dev/xen/control/control.c head/sys/dev/xen/netback/netback.c head/sys/dev/xen/netback/netback_unit_tests.c head/sys/dev/xen/netfront/netfront.c head/sys/dev/xen/timer/timer.c head/sys/dev/xen/timer/timer.h head/sys/dev/xen/xenpci/xenpci.c head/sys/dev/xen/xenpci/xenpcivar.h head/sys/dev/xl/xlphy.c Modified: head/sys/dev/aac/aac.c ============================================================================== --- head/sys/dev/aac/aac.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aac/aac_cam.c ============================================================================== --- head/sys/dev/aac/aac_cam.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_cam.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Adaptec, Inc. * All rights reserved. * Modified: head/sys/dev/aac/aac_debug.c ============================================================================== --- head/sys/dev/aac/aac_debug.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_debug.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aac/aac_disk.c ============================================================================== --- head/sys/dev/aac/aac_disk.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_disk.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aac/aac_linux.c ============================================================================== --- head/sys/dev/aac/aac_linux.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_linux.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Scott Long * All rights reserved. * Modified: head/sys/dev/aac/aac_pci.c ============================================================================== --- head/sys/dev/aac/aac_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aac/aac_tables.h ============================================================================== --- head/sys/dev/aac/aac_tables.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aac_tables.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/sys/dev/aac/aacreg.h ============================================================================== --- head/sys/dev/aac/aacreg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aacreg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000-2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aac/aacvar.h ============================================================================== --- head/sys/dev/aac/aacvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aac/aacvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aacraid/aacraid.c ============================================================================== --- head/sys/dev/aacraid/aacraid.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aacraid/aacraid_cam.c ============================================================================== --- head/sys/dev/aacraid/aacraid_cam.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_cam.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2010 Adaptec, Inc. * Copyright (c) 2010-2012 PMC-Sierra, Inc. * All rights reserved. Modified: head/sys/dev/aacraid/aacraid_debug.c ============================================================================== --- head/sys/dev/aacraid/aacraid_debug.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_debug.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,5 +1,6 @@ - /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2010 Adaptec, Inc. * Copyright (c) 2010-2012 PMC-Sierra, Inc. * All rights reserved. Modified: head/sys/dev/aacraid/aacraid_debug.h ============================================================================== --- head/sys/dev/aacraid/aacraid_debug.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_debug.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adaptec, Inc. * Copyright (c) 2010-2012 PMC-Sierra, Inc. * All rights reserved. Modified: head/sys/dev/aacraid/aacraid_linux.c ============================================================================== --- head/sys/dev/aacraid/aacraid_linux.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_linux.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Scott Long * Copyright (c) 2002-2010 Adaptec, Inc. * Copyright (c) 2010-2012 PMC-Sierra, Inc. Modified: head/sys/dev/aacraid/aacraid_pci.c ============================================================================== --- head/sys/dev/aacraid/aacraid_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aacraid/aacraid_reg.h ============================================================================== --- head/sys/dev/aacraid/aacraid_reg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_reg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000-2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/aacraid/aacraid_var.h ============================================================================== --- head/sys/dev/aacraid/aacraid_var.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aacraid/aacraid_var.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2001 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/dev/adb/adb.h ============================================================================== --- head/sys/dev/adb/adb.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adb.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/adb/adb_bus.c ============================================================================== --- head/sys/dev/adb/adb_bus.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adb_bus.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/adb/adb_buttons.c ============================================================================== --- head/sys/dev/adb/adb_buttons.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adb_buttons.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2011, Justin Hibbits. * Copyright (c) 2002, Miodrag Vallat. * Copyright (C) 1999 Tsubai Masanari. All rights reserved. Modified: head/sys/dev/adb/adb_kbd.c ============================================================================== --- head/sys/dev/adb/adb_kbd.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adb_kbd.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/adb/adb_mouse.c ============================================================================== --- head/sys/dev/adb/adb_mouse.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adb_mouse.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/adb/adbvar.h ============================================================================== --- head/sys/dev/adb/adbvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adb/adbvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/adlink/adlink.c ============================================================================== --- head/sys/dev/adlink/adlink.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/adlink/adlink.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003-2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/dev/advansys/adv_isa.c ============================================================================== --- head/sys/dev/advansys/adv_isa.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adv_isa.c Mon Nov 27 14:52:40 2017 (r326255) @@ -20,6 +20,8 @@ * ** This board has been sold by SIIG as the i540 SpeedMaster. * *** This board has been sold by SIIG as the i542 SpeedMaster. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adv_pci.c ============================================================================== --- head/sys/dev/advansys/adv_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adv_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -33,6 +33,8 @@ * * This board has been sold by SIIG as the Fast SCSI Pro PCI. * ** This board has been sold by Iomega as a Jaz Jet PCI adapter. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/advansys.c ============================================================================== --- head/sys/dev/advansys/advansys.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/advansys.c Mon Nov 27 14:52:40 2017 (r326255) @@ -7,6 +7,8 @@ * ABP940UA, ABP950, ABP960, ABP960U, ABP960UA, * ABP970, ABP970U * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996-2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/advansys.h ============================================================================== --- head/sys/dev/advansys/advansys.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/advansys.h Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Generic driver definitions and exported functions for the Advanced * Systems Inc. SCSI controllers * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996-1997 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/advlib.c ============================================================================== --- head/sys/dev/advansys/advlib.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/advlib.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Low level routines for the Advanced Systems Inc. SCSI controllers chips * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996-1997, 1999-2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/advlib.h ============================================================================== --- head/sys/dev/advansys/advlib.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/advlib.h Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Definitions for low level routines and data structures * for the Advanced Systems Inc. SCSI controllers chips. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996-1997, 1999-2000 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adw_pci.c ============================================================================== --- head/sys/dev/advansys/adw_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adw_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -8,6 +8,8 @@ * ABP3940U2W - Bus-Master PCI LVD/Ultra2-Wide (253 CDB) * ABP3950U2W - Bus-Master PCI LVD/Ultra2-Wide (253 CDB) * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998, 1999, 2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adwcam.c ============================================================================== --- head/sys/dev/advansys/adwcam.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adwcam.c Mon Nov 27 14:52:40 2017 (r326255) @@ -6,6 +6,8 @@ * * adw_pci.c ABP[3]940UW, ABP950UW, ABP3940U2W * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998, 1999, 2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adwlib.c ============================================================================== --- head/sys/dev/advansys/adwlib.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adwlib.c Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Low level routines for Second Generation * Advanced Systems Inc. SCSI controllers chips * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998, 1999, 2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adwlib.h ============================================================================== --- head/sys/dev/advansys/adwlib.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adwlib.h Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Definitions for low level routines and data structures * for the Advanced Systems Inc. SCSI controllers chips. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998, 1999, 2000 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/advansys/adwvar.h ============================================================================== --- head/sys/dev/advansys/adwvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/advansys/adwvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Generic driver definitions and exported functions for the Advanced * Systems Inc. Second Generation SCSI controllers * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998, 1999, 2000 Justin Gibbs. * All rights reserved. * Modified: head/sys/dev/ae/if_ae.c ============================================================================== --- head/sys/dev/ae/if_ae.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ae/if_ae.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Stanislav Sedov . * All rights reserved. * Modified: head/sys/dev/ae/if_aereg.h ============================================================================== --- head/sys/dev/ae/if_aereg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ae/if_aereg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Stanislav Sedov . * All rights reserved. * Modified: head/sys/dev/ae/if_aevar.h ============================================================================== --- head/sys/dev/ae/if_aevar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ae/if_aevar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Stanislav Sedov . * All rights reserved. * Modified: head/sys/dev/age/if_age.c ============================================================================== --- head/sys/dev/age/if_age.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/age/if_age.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/age/if_agereg.h ============================================================================== --- head/sys/dev/age/if_agereg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/age/if_agereg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/age/if_agevar.h ============================================================================== --- head/sys/dev/age/if_agevar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/age/if_agevar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/agp/agp.c ============================================================================== --- head/sys/dev/agp/agp.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agp_ali.c ============================================================================== --- head/sys/dev/agp/agp_ali.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_ali.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agp_amd.c ============================================================================== --- head/sys/dev/agp/agp_amd.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_amd.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agp_amd64.c ============================================================================== --- head/sys/dev/agp/agp_amd64.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_amd64.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004, 2005 Jung-uk Kim * All rights reserved. * Modified: head/sys/dev/agp/agp_apple.c ============================================================================== --- head/sys/dev/agp/agp_apple.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_apple.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Nathan Whitehorn * All rights reserved. * Modified: head/sys/dev/agp/agp_ati.c ============================================================================== --- head/sys/dev/agp/agp_ati.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_ati.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Eric Anholt * All rights reserved. * Modified: head/sys/dev/agp/agp_i810.c ============================================================================== --- head/sys/dev/agp/agp_i810.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_i810.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * Copyright (c) 2000 Ruslan Ermilov * Copyright (c) 2011 The FreeBSD Foundation Modified: head/sys/dev/agp/agp_i810.h ============================================================================== --- head/sys/dev/agp/agp_i810.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_i810.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/dev/agp/agp_intel.c ============================================================================== --- head/sys/dev/agp/agp_intel.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_intel.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agp_nvidia.c ============================================================================== --- head/sys/dev/agp/agp_nvidia.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_nvidia.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Matthew N. Dodd * All rights reserved. * Modified: head/sys/dev/agp/agp_sis.c ============================================================================== --- head/sys/dev/agp/agp_sis.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_sis.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agp_via.c ============================================================================== --- head/sys/dev/agp/agp_via.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agp_via.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agppriv.h ============================================================================== --- head/sys/dev/agp/agppriv.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agppriv.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agpreg.h ============================================================================== --- head/sys/dev/agp/agpreg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agpreg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/agp/agpvar.h ============================================================================== --- head/sys/dev/agp/agpvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/agp/agpvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/dev/aha/aha.c ============================================================================== --- head/sys/dev/aha/aha.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aha/aha.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,10 +1,12 @@ -/* +/*- * Generic register and struct definitions for the Adaptech 154x * SCSI host adapters. Product specific probe and attach routines can * be found in: * aha 1542A/1542B/1542C/1542CF/1542CP aha_isa.c */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 M. Warner Losh. * All Rights Reserved. * Modified: head/sys/dev/aha/aha_isa.c ============================================================================== --- head/sys/dev/aha/aha_isa.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aha/aha_isa.c Mon Nov 27 14:52:40 2017 (r326255) @@ -3,6 +3,8 @@ * Adaptec 154x. */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2003 M. Warner Losh * All rights reserved. * Modified: head/sys/dev/aha/ahareg.h ============================================================================== --- head/sys/dev/aha/ahareg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aha/ahareg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Generic register and struct definitions for the Adaptech 1540, 1542, * SCSI host adapters. Product specific probe and attach * routines can be found in: Modified: head/sys/dev/ahci/ahci.c ============================================================================== --- head/sys/dev/ahci/ahci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ahci/ahci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2012 Alexander Motin * All rights reserved. * Modified: head/sys/dev/ahci/ahci.h ============================================================================== --- head/sys/dev/ahci/ahci.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ahci/ahci.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 - 2008 Søren Schmidt * Copyright (c) 2009-2012 Alexander Motin * All rights reserved. Modified: head/sys/dev/ahci/ahciem.c ============================================================================== --- head/sys/dev/ahci/ahciem.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ahci/ahciem.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Alexander Motin * All rights reserved. * Modified: head/sys/dev/aic/aic.c ============================================================================== --- head/sys/dev/aic/aic.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic/aic.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen. * All rights reserved. * Modified: head/sys/dev/aic/aic6360reg.h ============================================================================== --- head/sys/dev/aic/aic6360reg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic/aic6360reg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Charles Hannum. * Copyright (c) 1994 Jarle Greipsland. * All rights reserved. Modified: head/sys/dev/aic/aic_isa.c ============================================================================== --- head/sys/dev/aic/aic_isa.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic/aic_isa.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen. * All rights reserved. * Modified: head/sys/dev/aic/aic_pccard.c ============================================================================== --- head/sys/dev/aic/aic_pccard.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic/aic_pccard.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen. * All rights reserved. * Modified: head/sys/dev/aic/aicvar.h ============================================================================== --- head/sys/dev/aic/aicvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic/aicvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen. * All rights reserved. * Modified: head/sys/dev/aic7xxx/ahc_isa.c ============================================================================== --- head/sys/dev/aic7xxx/ahc_isa.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/ahc_isa.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * FreeBSD, VLB/ISA product support functions * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2004 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aic7770.c ============================================================================== --- head/sys/dev/aic7xxx/aic7770.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7770.c Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Product specific probe and attach routines for: * 27/284X and aic7770 motherboard SCSI controllers * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1998, 2000, 2001 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aic79xx.c ============================================================================== --- head/sys/dev/aic7xxx/aic79xx.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic79xx.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Core routines and tables shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2002, 2004 Justin T. Gibbs. * Copyright (c) 2000-2003 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic79xx.h ============================================================================== --- head/sys/dev/aic7xxx/aic79xx.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic79xx.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Core definitions and data structures shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2002 Justin T. Gibbs. * Copyright (c) 2000-2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic79xx_inline.h ============================================================================== --- head/sys/dev/aic7xxx/aic79xx_inline.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic79xx_inline.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Inline routines shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2001 Justin T. Gibbs. * Copyright (c) 2000-2003 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic79xx_pci.c ============================================================================== --- head/sys/dev/aic7xxx/aic79xx_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic79xx_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Product specific probe and attach routines for: * aic7901 and aic7902 SCSI controllers * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2001 Justin T. Gibbs. * Copyright (c) 2000-2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic7xxx.c ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7xxx.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Core routines and tables shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2002 Justin T. Gibbs. * Copyright (c) 2000-2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic7xxx.h ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7xxx.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Core definitions and data structures shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2001 Justin T. Gibbs. * Copyright (c) 2000-2001 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic7xxx_93cx6.h ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx_93cx6.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7xxx_93cx6.h Mon Nov 27 14:52:40 2017 (r326255) @@ -3,6 +3,8 @@ * settings for the aic7xxx based adaptec SCSI controllers. It can * also be used for 93C26 and 93C06 serial EEPROMS. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994, 1995, 2000 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aic7xxx_inline.h ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx_inline.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7xxx_inline.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Inline routines shareable across OS platforms. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2001 Justin T. Gibbs. * Copyright (c) 2000-2001 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aic7xxx_pci.c ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx_pci.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aic7xxx_pci.c Mon Nov 27 14:52:40 2017 (r326255) @@ -3,6 +3,8 @@ * 3940, 2940, aic7895, aic7890, aic7880, * aic7870, aic7860 and aic7850 SCSI controllers * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-2001 Justin T. Gibbs. * Copyright (c) 2000-2001 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm.c ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Aic7xxx SCSI host adapter firmware asssembler * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 2000, 2001 Justin T. Gibbs. * Copyright (c) 2001, 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm.h ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Justin T. Gibbs. * Copyright (c) 2001, 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm_gram.y ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_gram.y Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_gram.y Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ /*- * Parser for the Aic7xxx SCSI Host adapter sequencer assembler. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. * Copyright (c) 2001, 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ * Instruction formats for the sequencer program downloaded to * Aic7xxx SCSI host adapters * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y Mon Nov 27 14:52:40 2017 (r326255) @@ -3,6 +3,8 @@ * Sub-parser for macro invocation in the Aic7xxx SCSI * Host adapter sequencer assembler. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Adaptec Inc. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l Mon Nov 27 14:52:40 2017 (r326255) @@ -3,6 +3,8 @@ * Sub-Lexical Analyzer for macro invokation in * the Aic7xxx SCSI Host adapter sequencer assembler. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Adaptec Inc. * All rights reserved. * Modified: head/sys/dev/aic7xxx/aicasm/aicasm_scan.l ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_scan.l Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_scan.l Mon Nov 27 14:52:40 2017 (r326255) @@ -2,6 +2,8 @@ /*- * Lexical Analyzer for the Aic7xxx SCSI Host adapter sequencer assembler. * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. * Copyright (c) 2001, 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm_symbol.c ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_symbol.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_symbol.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Aic7xxx SCSI host adapter firmware asssembler symbol table implementation * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Justin T. Gibbs. * Copyright (c) 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/aic7xxx/aicasm/aicasm_symbol.h ============================================================================== --- head/sys/dev/aic7xxx/aicasm/aicasm_symbol.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/aic7xxx/aicasm/aicasm_symbol.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,6 +1,8 @@ /*- * Aic7xxx SCSI host adapter firmware asssembler symbol table definitions * + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Justin T. Gibbs. * Copyright (c) 2002 Adaptec Inc. * All rights reserved. Modified: head/sys/dev/alc/if_alc.c ============================================================================== --- head/sys/dev/alc/if_alc.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/alc/if_alc.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/alc/if_alcreg.h ============================================================================== --- head/sys/dev/alc/if_alcreg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/alc/if_alcreg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/alc/if_alcvar.h ============================================================================== --- head/sys/dev/alc/if_alcvar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/alc/if_alcvar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/ale/if_ale.c ============================================================================== --- head/sys/dev/ale/if_ale.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ale/if_ale.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/ale/if_alereg.h ============================================================================== --- head/sys/dev/ale/if_alereg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ale/if_alereg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/ale/if_alevar.h ============================================================================== --- head/sys/dev/ale/if_alevar.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/ale/if_alevar.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. * Modified: head/sys/dev/altera/atse/a_api.h ============================================================================== --- head/sys/dev/altera/atse/a_api.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/atse/a_api.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Bjoern A. Zeeb * All rights reserved. * Modified: head/sys/dev/altera/atse/if_atse.c ============================================================================== --- head/sys/dev/altera/atse/if_atse.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/atse/if_atse.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, 2013 Bjoern A. Zeeb * Copyright (c) 2014 Robert N. M. Watson * All rights reserved. Modified: head/sys/dev/altera/atse/if_atse_fdt.c ============================================================================== --- head/sys/dev/altera/atse/if_atse_fdt.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/atse/if_atse_fdt.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Bjoern A. Zeeb * All rights reserved. * Modified: head/sys/dev/altera/atse/if_atse_nexus.c ============================================================================== --- head/sys/dev/altera/atse/if_atse_nexus.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/atse/if_atse_nexus.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012,2013 Bjoern A. Zeeb * All rights reserved. * Modified: head/sys/dev/altera/atse/if_atsereg.h ============================================================================== --- head/sys/dev/altera/atse/if_atsereg.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/atse/if_atsereg.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Bjoern A. Zeeb * All rights reserved. * Modified: head/sys/dev/altera/avgen/altera_avgen.c ============================================================================== --- head/sys/dev/altera/avgen/altera_avgen.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/avgen/altera_avgen.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012-2013, 2016 Robert N. M. Watson * All rights reserved. * Modified: head/sys/dev/altera/avgen/altera_avgen.h ============================================================================== --- head/sys/dev/altera/avgen/altera_avgen.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/avgen/altera_avgen.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, 2016 Robert N. M. Watson * All rights reserved. * Modified: head/sys/dev/altera/avgen/altera_avgen_fdt.c ============================================================================== --- head/sys/dev/altera/avgen/altera_avgen_fdt.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/avgen/altera_avgen_fdt.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012-2013, 2016 Robert N. M. Watson * All rights reserved. * Modified: head/sys/dev/altera/avgen/altera_avgen_nexus.c ============================================================================== --- head/sys/dev/altera/avgen/altera_avgen_nexus.c Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/avgen/altera_avgen_nexus.c Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012-2013, 2016 Robert N. M. Watson * All rights reserved. * Modified: head/sys/dev/altera/jtag_uart/altera_jtag_uart.h ============================================================================== --- head/sys/dev/altera/jtag_uart/altera_jtag_uart.h Mon Nov 27 14:51:47 2017 (r326254) +++ head/sys/dev/altera/jtag_uart/altera_jtag_uart.h Mon Nov 27 14:52:40 2017 (r326255) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2012 Robert N. M. Watson * All rights reserved. * Modified: head/sys/dev/altera/jtag_uart/altera_jtag_uart_cons.c ============================================================================== --- head/sys/dev/altera/jtag_uart/altera_jtag_uart_cons.c Mon Nov 27 14:51:47 2017 (r326254) *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:02:12 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34F3CE5393D; Mon, 27 Nov 2017 15:02:12 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C323B749FB; Mon, 27 Nov 2017 15:02:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARF2A1w095025; Mon, 27 Nov 2017 15:02:10 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF1xNs094908; Mon, 27 Nov 2017 15:01:59 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271501.vARF1xNs094908@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:01:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326256 - head/sys/sys X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/sys X-SVN-Commit-Revision: 326256 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:02:12 -0000 Author: pfg Date: Mon Nov 27 15:01:59 2017 New Revision: 326256 URL: https://svnweb.freebsd.org/changeset/base/326256 Log: sys/sys: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/sys/_bitset.h head/sys/sys/_bus_dma.h head/sys/sys/_cpuset.h head/sys/sys/_ffcounter.h head/sys/sys/_lock.h head/sys/sys/_lockmgr.h head/sys/sys/_mutex.h head/sys/sys/_null.h head/sys/sys/_pctrie.h head/sys/sys/_pthreadtypes.h head/sys/sys/_rwlock.h head/sys/sys/_semaphore.h head/sys/sys/_stack.h head/sys/sys/_stdint.h head/sys/sys/_sx.h head/sys/sys/_task.h head/sys/sys/_timeval.h head/sys/sys/_types.h head/sys/sys/_umtx.h head/sys/sys/_unrhdr.h head/sys/sys/aac_ioctl.h head/sys/sys/acl.h head/sys/sys/agpio.h head/sys/sys/aio.h head/sys/sys/alq.h head/sys/sys/assym.h head/sys/sys/ata.h head/sys/sys/bitset.h head/sys/sys/boot.h head/sys/sys/buf_ring.h head/sys/sys/bufobj.h head/sys/sys/bus.h head/sys/sys/bus_dma.h head/sys/sys/busdma_bufalloc.h head/sys/sys/capability.h head/sys/sys/caprights.h head/sys/sys/cdrio.h head/sys/sys/chio.h head/sys/sys/clock.h head/sys/sys/condvar.h head/sys/sys/consio.h head/sys/sys/copyright.h head/sys/sys/counter.h head/sys/sys/cpu.h head/sys/sys/cpuctl.h head/sys/sys/cpuset.h head/sys/sys/devicestat.h head/sys/sys/digiio.h head/sys/sys/dtrace_bsd.h head/sys/sys/dvdio.h head/sys/sys/elf.h head/sys/sys/elf32.h head/sys/sys/elf64.h head/sys/sys/elf_common.h head/sys/sys/elf_generic.h head/sys/sys/endian.h head/sys/sys/eui64.h head/sys/sys/event.h head/sys/sys/eventhandler.h head/sys/sys/eventvar.h head/sys/sys/extattr.h head/sys/sys/fail.h head/sys/sys/fdcio.h head/sys/sys/firmware.h head/sys/sys/gpio.h head/sys/sys/gpt.h head/sys/sys/hash.h head/sys/sys/hhook.h head/sys/sys/iconv.h head/sys/sys/imgact_elf.h head/sys/sys/interrupt.h head/sys/sys/ipmi.h head/sys/sys/jail.h head/sys/sys/joystick.h head/sys/sys/kdb.h head/sys/sys/kenv.h head/sys/sys/kerneldump.h head/sys/sys/khelp.h head/sys/sys/kobj.h head/sys/sys/ksem.h head/sys/sys/kthread.h head/sys/sys/ktr.h head/sys/sys/ktr_class.h head/sys/sys/link_aout.h head/sys/sys/link_elf.h head/sys/sys/linker.h head/sys/sys/linker_set.h head/sys/sys/lock.h head/sys/sys/lock_profile.h head/sys/sys/lockmgr.h head/sys/sys/lockstat.h head/sys/sys/loginclass.h head/sys/sys/mac.h head/sys/sys/mchain.h head/sys/sys/memdesc.h head/sys/sys/module.h head/sys/sys/module_khelp.h head/sys/sys/mqueue.h head/sys/sys/msg.h head/sys/sys/mutex.h head/sys/sys/osd.h head/sys/sys/pciio.h head/sys/sys/pctrie.h head/sys/sys/pmc.h head/sys/sys/pmckern.h head/sys/sys/pmclog.h head/sys/sys/poll.h head/sys/sys/power.h head/sys/sys/priority.h head/sys/sys/priv.h head/sys/sys/procctl.h head/sys/sys/procdesc.h head/sys/sys/procfs.h head/sys/sys/ptio.h head/sys/sys/racct.h head/sys/sys/random.h head/sys/sys/rangelock.h head/sys/sys/rctl.h head/sys/sys/refcount.h head/sys/sys/regression.h head/sys/sys/rtprio.h head/sys/sys/runq.h head/sys/sys/rwlock.h head/sys/sys/sbuf.h head/sys/sys/sdt.h head/sys/sys/sema.h head/sys/sys/serial.h head/sys/sys/sf_buf.h head/sys/sys/shm.h head/sys/sys/sleepqueue.h head/sys/sys/slicer.h head/sys/sys/snoop.h head/sys/sys/stack.h head/sys/sys/stdatomic.h head/sys/sys/stddef.h head/sys/sys/stdint.h head/sys/sys/sx.h head/sys/sys/syscallsubr.h head/sys/sys/taskqueue.h head/sys/sys/terminal.h head/sys/sys/thr.h head/sys/sys/timeet.h head/sys/sys/timeffc.h head/sys/sys/timers.h head/sys/sys/tree.h head/sys/sys/tty.h head/sys/sys/ttydevsw.h head/sys/sys/ttydisc.h head/sys/sys/ttyhook.h head/sys/sys/ttyqueue.h head/sys/sys/turnstile.h head/sys/sys/ucontext.h head/sys/sys/umtx.h head/sys/sys/uuid.h head/sys/sys/vdso.h head/sys/sys/vmem.h head/sys/sys/watchdog.h Modified: head/sys/sys/_bitset.h ============================================================================== --- head/sys/sys/_bitset.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_bitset.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Jeffrey Roberson * All rights reserved. * Modified: head/sys/sys/_bus_dma.h ============================================================================== --- head/sys/sys/_bus_dma.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_bus_dma.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2006 John-Mark Gurney. * All rights reserved. * Modified: head/sys/sys/_cpuset.h ============================================================================== --- head/sys/sys/_cpuset.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_cpuset.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Jeffrey Roberson * All rights reserved. * Modified: head/sys/sys/_ffcounter.h ============================================================================== --- head/sys/sys/_ffcounter.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_ffcounter.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The University of Melbourne * All rights reserved. * Modified: head/sys/sys/_lock.h ============================================================================== --- head/sys/sys/_lock.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_lock.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/_lockmgr.h ============================================================================== --- head/sys/sys/_lockmgr.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_lockmgr.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Attilio Rao * All rights reserved. * Modified: head/sys/sys/_mutex.h ============================================================================== --- head/sys/sys/_mutex.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_mutex.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/_null.h ============================================================================== --- head/sys/sys/_null.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_null.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sys/_pctrie.h ============================================================================== --- head/sys/sys/_pctrie.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_pctrie.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 EMC Corp. * Copyright (c) 2011 Jeffrey Roberson * Copyright (c) 2008 Mayur Shardul Modified: head/sys/sys/_pthreadtypes.h ============================================================================== --- head/sys/sys/_pthreadtypes.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_pthreadtypes.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu * Copyright (c) 1995-1998 by John Birrell * All rights reserved. Modified: head/sys/sys/_rwlock.h ============================================================================== --- head/sys/sys/_rwlock.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_rwlock.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 John Baldwin * All rights reserved. * Modified: head/sys/sys/_semaphore.h ============================================================================== --- head/sys/sys/_semaphore.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_semaphore.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Alfred Perlstein * All rights reserved. * Modified: head/sys/sys/_stack.h ============================================================================== --- head/sys/sys/_stack.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_stack.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Antoine Brodin * All rights reserved. * Modified: head/sys/sys/_stdint.h ============================================================================== --- head/sys/sys/_stdint.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_stdint.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 David E. O'Brien * Copyright (c) 2001 Mike Barcroft * All rights reserved. Modified: head/sys/sys/_sx.h ============================================================================== --- head/sys/sys/_sx.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_sx.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Attilio Rao * All rights reserved. * Modified: head/sys/sys/_task.h ============================================================================== --- head/sys/sys/_task.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_task.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/sys/_timeval.h ============================================================================== --- head/sys/sys/_timeval.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_timeval.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Mike Barcroft * All rights reserved. * Modified: head/sys/sys/_types.h ============================================================================== --- head/sys/sys/_types.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_types.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Mike Barcroft * All rights reserved. * Modified: head/sys/sys/_umtx.h ============================================================================== --- head/sys/sys/_umtx.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_umtx.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, David Xu * All rights reserved. * Modified: head/sys/sys/_unrhdr.h ============================================================================== --- head/sys/sys/_unrhdr.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/_unrhdr.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/sys/aac_ioctl.h ============================================================================== --- head/sys/sys/aac_ioctl.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/aac_ioctl.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 Scott Long * Copyright (c) 2000 BSDi Modified: head/sys/sys/acl.h ============================================================================== --- head/sys/sys/acl.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/acl.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2001 Robert N. M. Watson * Copyright (c) 2008 Edward Tomasz Napierała * All rights reserved. Modified: head/sys/sys/agpio.h ============================================================================== --- head/sys/sys/agpio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/agpio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/sys/aio.h ============================================================================== --- head/sys/sys/aio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/aio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 John S. Dyson. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/alq.h ============================================================================== --- head/sys/sys/alq.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/alq.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 2002, Jeffrey Roberson * Copyright (c) 2008-2009, Lawrence Stewart * Copyright (c) 2010, The FreeBSD Foundation Modified: head/sys/sys/assym.h ============================================================================== --- head/sys/sys/assym.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/assym.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sys/ata.h ============================================================================== --- head/sys/sys/ata.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/ata.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. * Modified: head/sys/sys/bitset.h ============================================================================== --- head/sys/sys/bitset.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/bitset.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Jeffrey Roberson * All rights reserved. * Modified: head/sys/sys/boot.h ============================================================================== --- head/sys/sys/boot.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/boot.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Roger Pau Monné * All rights reserved. * Modified: head/sys/sys/buf_ring.h ============================================================================== --- head/sys/sys/buf_ring.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/buf_ring.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Kip Macy * All rights reserved. * Modified: head/sys/sys/bufobj.h ============================================================================== --- head/sys/sys/bufobj.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/bufobj.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/sys/bus.h ============================================================================== --- head/sys/sys/bus.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/bus.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997,1998,2003 Doug Rabson * All rights reserved. * Modified: head/sys/sys/bus_dma.h ============================================================================== --- head/sys/sys/bus_dma.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/bus_dma.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,6 +1,8 @@ /* $NetBSD: bus.h,v 1.12 1997/10/01 08:25:15 fvdl Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sys/busdma_bufalloc.h ============================================================================== --- head/sys/sys/busdma_bufalloc.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/busdma_bufalloc.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Ian Lepore * All rights reserved. * Modified: head/sys/sys/capability.h ============================================================================== --- head/sys/sys/capability.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/capability.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Robert N. M. Watson * All rights reserved. * Modified: head/sys/sys/caprights.h ============================================================================== --- head/sys/sys/caprights.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/caprights.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 FreeBSD Foundation * All rights reserved. * Modified: head/sys/sys/cdrio.h ============================================================================== --- head/sys/sys/cdrio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/cdrio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000,2001,2002 Søren Schmidt * All rights reserved. * Modified: head/sys/sys/chio.h ============================================================================== --- head/sys/sys/chio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/chio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1996 Jason R. Thorpe * All rights reserved. * Modified: head/sys/sys/clock.h ============================================================================== --- head/sys/sys/clock.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/clock.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sys/condvar.h ============================================================================== --- head/sys/sys/condvar.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/condvar.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Jake Burkholder . * All rights reserved. * Modified: head/sys/sys/consio.h ============================================================================== --- head/sys/sys/consio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/consio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1991-1996 Søren Schmidt * All rights reserved. * Modified: head/sys/sys/copyright.h ============================================================================== --- head/sys/sys/copyright.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/copyright.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1992-2017 The FreeBSD Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/counter.h ============================================================================== --- head/sys/sys/counter.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/counter.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Gleb Smirnoff * All rights reserved. * Modified: head/sys/sys/cpu.h ============================================================================== --- head/sys/sys/cpu.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/cpu.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2007 Nate Lawson (SDG) * All rights reserved. * Modified: head/sys/sys/cpuctl.h ============================================================================== --- head/sys/sys/cpuctl.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/cpuctl.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2008 Stanislav Sedov * All rights reserved. * Modified: head/sys/sys/cpuset.h ============================================================================== --- head/sys/sys/cpuset.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/cpuset.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Jeffrey Roberson * All rights reserved. * Modified: head/sys/sys/devicestat.h ============================================================================== --- head/sys/sys/devicestat.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/devicestat.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. * Modified: head/sys/sys/digiio.h ============================================================================== --- head/sys/sys/digiio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/digiio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Brian Somers * based on work by Slawa Olhovchenkov * John Prince Modified: head/sys/sys/dtrace_bsd.h ============================================================================== --- head/sys/sys/dtrace_bsd.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/dtrace_bsd.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 John Birrell (jb@freebsd.org) * All rights reserved. * Modified: head/sys/sys/dvdio.h ============================================================================== --- head/sys/sys/dvdio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/dvdio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999,2000,2001,2002 Søren Schmidt * All rights reserved. * Modified: head/sys/sys/elf.h ============================================================================== --- head/sys/sys/elf.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/elf.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 David E. O'Brien. * All rights reserved. * Modified: head/sys/sys/elf32.h ============================================================================== --- head/sys/sys/elf32.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/elf32.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/sys/sys/elf64.h ============================================================================== --- head/sys/sys/elf64.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/elf64.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/sys/sys/elf_common.h ============================================================================== --- head/sys/sys/elf_common.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/elf_common.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017 Dell EMC * Copyright (c) 2000, 2001, 2008, 2011, David E. O'Brien * Copyright (c) 1998 John D. Polstra. Modified: head/sys/sys/elf_generic.h ============================================================================== --- head/sys/sys/elf_generic.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/elf_generic.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 John D. Polstra. * All rights reserved. * Modified: head/sys/sys/endian.h ============================================================================== --- head/sys/sys/endian.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/endian.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Thomas Moestl * All rights reserved. * Modified: head/sys/sys/eui64.h ============================================================================== --- head/sys/sys/eui64.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/eui64.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2004 The Aerospace Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/event.h ============================================================================== --- head/sys/sys/event.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/event.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999,2000,2001 Jonathan Lemon * All rights reserved. * Modified: head/sys/sys/eventhandler.h ============================================================================== --- head/sys/sys/eventhandler.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/eventhandler.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Michael Smith * All rights reserved. * Modified: head/sys/sys/eventvar.h ============================================================================== --- head/sys/sys/eventvar.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/eventvar.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999,2000 Jonathan Lemon * All rights reserved. * Modified: head/sys/sys/extattr.h ============================================================================== --- head/sys/sys/extattr.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/extattr.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2001 Robert N. M. Watson * All rights reserved. * Modified: head/sys/sys/fail.h ============================================================================== --- head/sys/sys/fail.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/fail.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Isilon Inc http://www.isilon.com/ * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/fdcio.h ============================================================================== --- head/sys/sys/fdcio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/fdcio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1992-1994,2001 by Joerg Wunsch, Dresden * All rights reserved. * Modified: head/sys/sys/firmware.h ============================================================================== --- head/sys/sys/firmware.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/firmware.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005, Sam Leffler * All rights reserved. * Modified: head/sys/sys/gpio.h ============================================================================== --- head/sys/sys/gpio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/gpio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,6 +1,8 @@ /* $NetBSD: gpio.h,v 1.7 2009/09/25 20:27:50 mbalmer Exp $ */ /* $OpenBSD: gpio.h,v 1.7 2008/11/26 14:51:20 mbalmer Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/sys/gpt.h ============================================================================== --- head/sys/sys/gpt.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/gpt.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sys/hash.h ============================================================================== --- head/sys/sys/hash.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/hash.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Tobias Weingartner * All rights reserved. * Modified: head/sys/sys/hhook.h ============================================================================== --- head/sys/sys/hhook.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/hhook.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010,2013 Lawrence Stewart * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/iconv.h ============================================================================== --- head/sys/sys/iconv.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/iconv.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/sys/imgact_elf.h ============================================================================== --- head/sys/sys/imgact_elf.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/imgact_elf.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995-1996 Søren Schmidt * All rights reserved. * Modified: head/sys/sys/interrupt.h ============================================================================== --- head/sys/sys/interrupt.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/interrupt.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * All rights reserved. * Modified: head/sys/sys/ipmi.h ============================================================================== --- head/sys/sys/ipmi.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/ipmi.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 IronPort Systems Inc. * All rights reserved. * Modified: head/sys/sys/jail.h ============================================================================== --- head/sys/sys/jail.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/jail.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Poul-Henning Kamp. * Copyright (c) 2009 James Gritton. * All rights reserved. Modified: head/sys/sys/joystick.h ============================================================================== --- head/sys/sys/joystick.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/joystick.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 Jean-Marc Zucconi * All rights reserved. * Modified: head/sys/sys/kdb.h ============================================================================== --- head/sys/sys/kdb.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/kdb.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sys/kenv.h ============================================================================== --- head/sys/sys/kenv.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/kenv.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Maxime Henrion * All rights reserved. * Modified: head/sys/sys/kerneldump.h ============================================================================== --- head/sys/sys/kerneldump.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/kerneldump.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/sys/khelp.h ============================================================================== --- head/sys/sys/khelp.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/khelp.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Lawrence Stewart * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/kobj.h ============================================================================== --- head/sys/sys/kobj.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/kobj.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000,2003 Doug Rabson * All rights reserved. * Modified: head/sys/sys/ksem.h ============================================================================== --- head/sys/sys/ksem.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/ksem.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Alfred Perlstein * All rights reserved. * Modified: head/sys/sys/kthread.h ============================================================================== --- head/sys/sys/kthread.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/kthread.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Peter Wemm * All rights reserved. * Modified: head/sys/sys/ktr.h ============================================================================== --- head/sys/sys/ktr.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/ktr.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/ktr_class.h ============================================================================== --- head/sys/sys/ktr_class.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/ktr_class.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/link_aout.h ============================================================================== --- head/sys/sys/link_aout.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/link_aout.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1993 Paul Kranenburg * All rights reserved. * Modified: head/sys/sys/link_elf.h ============================================================================== --- head/sys/sys/link_elf.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/link_elf.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1993 Paul Kranenburg * All rights reserved. * Modified: head/sys/sys/linker.h ============================================================================== --- head/sys/sys/linker.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/linker.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997-2000 Doug Rabson * All rights reserved. * Modified: head/sys/sys/linker_set.h ============================================================================== --- head/sys/sys/linker_set.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/linker_set.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 John D. Polstra * Copyright (c) 1999,2001 Peter Wemm * All rights reserved. Modified: head/sys/sys/lock.h ============================================================================== --- head/sys/sys/lock.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/lock.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/lock_profile.h ============================================================================== --- head/sys/sys/lock_profile.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/lock_profile.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Kip Macy kmacy@FreeBSD.org * Copyright (c) 2006 Kris Kennaway kris@FreeBSD.org * Copyright (c) 2006 Dag-Erling Smorgrav des@des.no Modified: head/sys/sys/lockmgr.h ============================================================================== --- head/sys/sys/lockmgr.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/lockmgr.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Attilio Rao * All rights reserved. * Modified: head/sys/sys/lockstat.h ============================================================================== --- head/sys/sys/lockstat.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/lockstat.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2009 Stacey Son * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/loginclass.h ============================================================================== --- head/sys/sys/loginclass.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/loginclass.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/sys/mac.h ============================================================================== --- head/sys/sys/mac.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/mac.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2002 Robert N. M. Watson * Copyright (c) 2001-2005 Networks Associates Technology, Inc. * Copyright (c) 2005-2006 SPARTA, Inc. Modified: head/sys/sys/mchain.h ============================================================================== --- head/sys/sys/mchain.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/mchain.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000, 2001 Boris Popov * All rights reserved. * Modified: head/sys/sys/memdesc.h ============================================================================== --- head/sys/sys/memdesc.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/memdesc.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 EMC Corp. * All rights reserved. * Modified: head/sys/sys/module.h ============================================================================== --- head/sys/sys/module.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/module.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Doug Rabson * All rights reserved. * Modified: head/sys/sys/module_khelp.h ============================================================================== --- head/sys/sys/module_khelp.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/module_khelp.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Lawrence Stewart * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/mqueue.h ============================================================================== --- head/sys/sys/mqueue.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/mqueue.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 David Xu * All rights reserved. * Modified: head/sys/sys/msg.h ============================================================================== --- head/sys/sys/msg.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/msg.h Mon Nov 27 15:01:59 2017 (r326256) @@ -4,6 +4,8 @@ /*- * SVID compatible msg.h file * + * SPDX-License-Identifier: MIT + * * Author: Daniel Boulet * * Copyright 1993 Daniel Boulet and RTMX Inc. Modified: head/sys/sys/mutex.h ============================================================================== --- head/sys/sys/mutex.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/mutex.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sys/osd.h ============================================================================== --- head/sys/sys/osd.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/osd.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/sys/pciio.h ============================================================================== --- head/sys/sys/pciio.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/pciio.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 1997, 1998, 1999, Kenneth D. Merry * All rights reserved. Modified: head/sys/sys/pctrie.h ============================================================================== --- head/sys/sys/pctrie.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/pctrie.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 EMC Corp. * Copyright (c) 2011 Jeffrey Roberson * Copyright (c) 2008 Mayur Shardul Modified: head/sys/sys/pmc.h ============================================================================== --- head/sys/sys/pmc.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/pmc.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2008, Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/pmckern.h ============================================================================== --- head/sys/sys/pmckern.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/pmckern.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2007, Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/pmclog.h ============================================================================== --- head/sys/sys/pmclog.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/pmclog.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2007, Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/sys/poll.h ============================================================================== --- head/sys/sys/poll.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/poll.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Peter Wemm * All rights reserved. * Modified: head/sys/sys/power.h ============================================================================== --- head/sys/sys/power.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/power.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/sys/priority.h ============================================================================== --- head/sys/sys/priority.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/priority.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994, Henrik Vestergaard Draboel * All rights reserved. * Modified: head/sys/sys/priv.h ============================================================================== --- head/sys/sys/priv.h Mon Nov 27 14:52:40 2017 (r326255) +++ head/sys/sys/priv.h Mon Nov 27 15:01:59 2017 (r326256) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 nCircle Network Security, Inc. * All rights reserved. * *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:03:17 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42CBDE53A23; Mon, 27 Nov 2017 15:03:17 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D416874CE7; Mon, 27 Nov 2017 15:03:16 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARF3GWa096072; Mon, 27 Nov 2017 15:03:16 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF38FE095978; Mon, 27 Nov 2017 15:03:08 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271503.vARF38FE095978@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:03:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326257 - in head/sys/amd64: acpica amd64 ia32 include include/pc linux32 pci vmm vmm/amd vmm/intel vmm/io X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/amd64: acpica amd64 ia32 include include/pc linux32 pci vmm vmm/amd vmm/intel vmm/io X-SVN-Commit-Revision: 326257 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:03:17 -0000 Author: pfg Date: Mon Nov 27 15:03:07 2017 New Revision: 326257 URL: https://svnweb.freebsd.org/changeset/base/326257 Log: sys/amd64: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/amd64/acpica/acpi_machdep.c head/sys/amd64/amd64/atomic.c head/sys/amd64/amd64/bios.c head/sys/amd64/amd64/elf_machdep.c head/sys/amd64/amd64/gdb_machdep.c head/sys/amd64/amd64/initcpu.c head/sys/amd64/amd64/io.c head/sys/amd64/amd64/minidump_machdep.c head/sys/amd64/amd64/mp_machdep.c head/sys/amd64/amd64/prof_machdep.c head/sys/amd64/amd64/ptrace_machdep.c head/sys/amd64/amd64/uma_machdep.c head/sys/amd64/ia32/ia32_misc.c head/sys/amd64/ia32/ia32_reg.c head/sys/amd64/include/_bus.h head/sys/amd64/include/atomic.h head/sys/amd64/include/bus_dma.h head/sys/amd64/include/counter.h head/sys/amd64/include/gdb_machdep.h head/sys/amd64/include/intr_machdep.h head/sys/amd64/include/iodev.h head/sys/amd64/include/kdb.h head/sys/amd64/include/memdev.h head/sys/amd64/include/minidump.h head/sys/amd64/include/mp_watchdog.h head/sys/amd64/include/pc/bios.h head/sys/amd64/include/pcpu.h head/sys/amd64/include/pmc_mdep.h head/sys/amd64/include/ppireg.h head/sys/amd64/include/runq.h head/sys/amd64/include/sf_buf.h head/sys/amd64/include/timerreg.h head/sys/amd64/include/vm.h head/sys/amd64/include/vmm.h head/sys/amd64/include/vmm_dev.h head/sys/amd64/include/vmm_instruction_emul.h head/sys/amd64/linux32/linux.h head/sys/amd64/linux32/linux32_dummy.c head/sys/amd64/linux32/linux32_machdep.c head/sys/amd64/linux32/linux32_sysvec.c head/sys/amd64/pci/pci_cfgreg.c head/sys/amd64/vmm/amd/amdv.c head/sys/amd64/vmm/intel/ept.c head/sys/amd64/vmm/intel/ept.h head/sys/amd64/vmm/intel/vmcs.c head/sys/amd64/vmm/intel/vmcs.h head/sys/amd64/vmm/intel/vmx.c head/sys/amd64/vmm/intel/vmx.h head/sys/amd64/vmm/intel/vmx_controls.h head/sys/amd64/vmm/intel/vmx_cpufunc.h head/sys/amd64/vmm/intel/vmx_genassym.c head/sys/amd64/vmm/intel/vmx_msr.c head/sys/amd64/vmm/intel/vmx_msr.h head/sys/amd64/vmm/intel/vtd.c head/sys/amd64/vmm/io/iommu.c head/sys/amd64/vmm/io/iommu.h head/sys/amd64/vmm/io/ppt.c head/sys/amd64/vmm/io/ppt.h head/sys/amd64/vmm/io/vhpet.c head/sys/amd64/vmm/io/vhpet.h head/sys/amd64/vmm/io/vioapic.c head/sys/amd64/vmm/io/vioapic.h head/sys/amd64/vmm/io/vlapic.c head/sys/amd64/vmm/io/vlapic.h head/sys/amd64/vmm/io/vlapic_priv.h head/sys/amd64/vmm/vmm.c head/sys/amd64/vmm/vmm_dev.c head/sys/amd64/vmm/vmm_host.c head/sys/amd64/vmm/vmm_host.h head/sys/amd64/vmm/vmm_instruction_emul.c head/sys/amd64/vmm/vmm_ktr.h head/sys/amd64/vmm/vmm_lapic.c head/sys/amd64/vmm/vmm_lapic.h head/sys/amd64/vmm/vmm_mem.c head/sys/amd64/vmm/vmm_mem.h head/sys/amd64/vmm/vmm_stat.c head/sys/amd64/vmm/vmm_util.c head/sys/amd64/vmm/vmm_util.h head/sys/amd64/vmm/x86.c head/sys/amd64/vmm/x86.h Modified: head/sys/amd64/acpica/acpi_machdep.c ============================================================================== --- head/sys/amd64/acpica/acpi_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/acpica/acpi_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/amd64/amd64/atomic.c ============================================================================== --- head/sys/amd64/amd64/atomic.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/atomic.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Peter Jeremy * All rights reserved. * Modified: head/sys/amd64/amd64/bios.c ============================================================================== --- head/sys/amd64/amd64/bios.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/bios.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Michael Smith * Copyright (c) 1998 Jonathan Lemon * All rights reserved. Modified: head/sys/amd64/amd64/elf_machdep.c ============================================================================== --- head/sys/amd64/amd64/elf_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/elf_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/sys/amd64/amd64/gdb_machdep.c ============================================================================== --- head/sys/amd64/amd64/gdb_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/gdb_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/amd64/amd64/initcpu.c ============================================================================== --- head/sys/amd64/amd64/initcpu.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/initcpu.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) KATO Takenori, 1997, 1998. * * All rights reserved. Unpublished rights reserved under the copyright Modified: head/sys/amd64/amd64/io.c ============================================================================== --- head/sys/amd64/amd64/io.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/io.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/amd64/amd64/minidump_machdep.c ============================================================================== --- head/sys/amd64/amd64/minidump_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/minidump_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Peter Wemm * All rights reserved. * Modified: head/sys/amd64/amd64/mp_machdep.c ============================================================================== --- head/sys/amd64/amd64/mp_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/mp_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, by Steve Passe * Copyright (c) 2003, by Peter Wemm * All rights reserved. Modified: head/sys/amd64/amd64/prof_machdep.c ============================================================================== --- head/sys/amd64/amd64/prof_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/prof_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996 Bruce D. Evans. * All rights reserved. * Modified: head/sys/amd64/amd64/ptrace_machdep.c ============================================================================== --- head/sys/amd64/amd64/ptrace_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/ptrace_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Konstantin Belousov * All rights reserved. * Modified: head/sys/amd64/amd64/uma_machdep.c ============================================================================== --- head/sys/amd64/amd64/uma_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/amd64/uma_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Alan L. Cox * All rights reserved. * Modified: head/sys/amd64/ia32/ia32_misc.c ============================================================================== --- head/sys/amd64/ia32/ia32_misc.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/ia32/ia32_misc.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Konstantin Belousov * All rights reserved. * Modified: head/sys/amd64/ia32/ia32_reg.c ============================================================================== --- head/sys/amd64/ia32/ia32_reg.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/ia32/ia32_reg.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Peter Wemm * All rights reserved. * Modified: head/sys/amd64/include/_bus.h ============================================================================== --- head/sys/amd64/include/_bus.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/_bus.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. * All rights reserved. * Modified: head/sys/amd64/include/atomic.h ============================================================================== --- head/sys/amd64/include/atomic.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/atomic.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/amd64/include/bus_dma.h ============================================================================== --- head/sys/amd64/include/bus_dma.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/bus_dma.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Scott Long * All rights reserved. * Modified: head/sys/amd64/include/counter.h ============================================================================== --- head/sys/amd64/include/counter.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/counter.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Konstantin Belousov * All rights reserved. * Modified: head/sys/amd64/include/gdb_machdep.h ============================================================================== --- head/sys/amd64/include/gdb_machdep.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/gdb_machdep.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/amd64/include/intr_machdep.h ============================================================================== --- head/sys/amd64/include/intr_machdep.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/intr_machdep.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/amd64/include/iodev.h ============================================================================== --- head/sys/amd64/include/iodev.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/iodev.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/amd64/include/kdb.h ============================================================================== --- head/sys/amd64/include/kdb.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/kdb.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/amd64/include/memdev.h ============================================================================== --- head/sys/amd64/include/memdev.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/memdev.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/amd64/include/minidump.h ============================================================================== --- head/sys/amd64/include/minidump.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/minidump.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Peter Wemm * All rights reserved. * Modified: head/sys/amd64/include/mp_watchdog.h ============================================================================== --- head/sys/amd64/include/mp_watchdog.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/mp_watchdog.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Robert N. M. Watson * All rights reserved. * Modified: head/sys/amd64/include/pc/bios.h ============================================================================== --- head/sys/amd64/include/pc/bios.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/pc/bios.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Michael Smith * Copyright (c) 1998 Jonathan Lemon * All rights reserved. Modified: head/sys/amd64/include/pcpu.h ============================================================================== --- head/sys/amd64/include/pcpu.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/pcpu.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) Peter Wemm * All rights reserved. * Modified: head/sys/amd64/include/pmc_mdep.h ============================================================================== --- head/sys/amd64/include/pmc_mdep.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/pmc_mdep.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2008 Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/amd64/include/ppireg.h ============================================================================== --- head/sys/amd64/include/ppireg.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/ppireg.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/amd64/include/runq.h ============================================================================== --- head/sys/amd64/include/runq.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/runq.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder * All rights reserved. * Modified: head/sys/amd64/include/sf_buf.h ============================================================================== --- head/sys/amd64/include/sf_buf.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/sf_buf.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003, 2005 Alan L. Cox * All rights reserved. * Modified: head/sys/amd64/include/timerreg.h ============================================================================== --- head/sys/amd64/include/timerreg.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/timerreg.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/amd64/include/vm.h ============================================================================== --- head/sys/amd64/include/vm.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/vm.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/amd64/include/vmm.h ============================================================================== --- head/sys/amd64/include/vmm.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/vmm.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/include/vmm_dev.h ============================================================================== --- head/sys/amd64/include/vmm_dev.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/vmm_dev.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/include/vmm_instruction_emul.h ============================================================================== --- head/sys/amd64/include/vmm_instruction_emul.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/include/vmm_instruction_emul.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/linux32/linux.h ============================================================================== --- head/sys/amd64/linux32/linux.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/linux32/linux.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2004 Tim J. Robbins * Copyright (c) 2001 Doug Rabson * Copyright (c) 1994-1996 Søren Schmidt Modified: head/sys/amd64/linux32/linux32_dummy.c ============================================================================== --- head/sys/amd64/linux32/linux32_dummy.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/linux32/linux32_dummy.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/amd64/linux32/linux32_machdep.c ============================================================================== --- head/sys/amd64/linux32/linux32_machdep.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/linux32/linux32_machdep.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2004 Tim J. Robbins * Copyright (c) 2002 Doug Rabson * Copyright (c) 2000 Marcel Moolenaar Modified: head/sys/amd64/linux32/linux32_sysvec.c ============================================================================== --- head/sys/amd64/linux32/linux32_sysvec.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/linux32/linux32_sysvec.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2004 Tim J. Robbins * Copyright (c) 2003 Peter Wemm * Copyright (c) 2002 Doug Rabson Modified: head/sys/amd64/pci/pci_cfgreg.c ============================================================================== --- head/sys/amd64/pci/pci_cfgreg.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/pci/pci_cfgreg.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 2000, Michael Smith * Copyright (c) 2000, BSDi Modified: head/sys/amd64/vmm/amd/amdv.c ============================================================================== --- head/sys/amd64/vmm/amd/amdv.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/amd/amdv.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/ept.c ============================================================================== --- head/sys/amd64/vmm/intel/ept.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/ept.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/ept.h ============================================================================== --- head/sys/amd64/vmm/intel/ept.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/ept.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmcs.c ============================================================================== --- head/sys/amd64/vmm/intel/vmcs.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmcs.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmcs.h ============================================================================== --- head/sys/amd64/vmm/intel/vmcs.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmcs.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx.c ============================================================================== --- head/sys/amd64/vmm/intel/vmx.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx.h ============================================================================== --- head/sys/amd64/vmm/intel/vmx.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx_controls.h ============================================================================== --- head/sys/amd64/vmm/intel/vmx_controls.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx_controls.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx_cpufunc.h ============================================================================== --- head/sys/amd64/vmm/intel/vmx_cpufunc.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx_cpufunc.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx_genassym.c ============================================================================== --- head/sys/amd64/vmm/intel/vmx_genassym.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx_genassym.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx_msr.c ============================================================================== --- head/sys/amd64/vmm/intel/vmx_msr.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx_msr.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vmx_msr.h ============================================================================== --- head/sys/amd64/vmm/intel/vmx_msr.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vmx_msr.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/intel/vtd.c ============================================================================== --- head/sys/amd64/vmm/intel/vtd.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/intel/vtd.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/iommu.c ============================================================================== --- head/sys/amd64/vmm/io/iommu.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/iommu.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/iommu.h ============================================================================== --- head/sys/amd64/vmm/io/iommu.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/iommu.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/ppt.c ============================================================================== --- head/sys/amd64/vmm/io/ppt.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/ppt.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/ppt.h ============================================================================== --- head/sys/amd64/vmm/io/ppt.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/ppt.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/vhpet.c ============================================================================== --- head/sys/amd64/vmm/io/vhpet.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vhpet.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Tycho Nightingale * Copyright (c) 2013 Neel Natu * All rights reserved. Modified: head/sys/amd64/vmm/io/vhpet.h ============================================================================== --- head/sys/amd64/vmm/io/vhpet.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vhpet.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Tycho Nightingale * Copyright (c) 2013 Neel Natu * All rights reserved. Modified: head/sys/amd64/vmm/io/vioapic.c ============================================================================== --- head/sys/amd64/vmm/io/vioapic.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vioapic.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Tycho Nightingale * Copyright (c) 2013 Neel Natu * All rights reserved. Modified: head/sys/amd64/vmm/io/vioapic.h ============================================================================== --- head/sys/amd64/vmm/io/vioapic.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vioapic.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Tycho Nightingale * Copyright (c) 2013 Neel Natu * All rights reserved. Modified: head/sys/amd64/vmm/io/vlapic.c ============================================================================== --- head/sys/amd64/vmm/io/vlapic.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vlapic.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/vlapic.h ============================================================================== --- head/sys/amd64/vmm/io/vlapic.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vlapic.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/io/vlapic_priv.h ============================================================================== --- head/sys/amd64/vmm/io/vlapic_priv.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/io/vlapic_priv.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Neel Natu * All rights reserved. * Modified: head/sys/amd64/vmm/vmm.c ============================================================================== --- head/sys/amd64/vmm/vmm.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_dev.c ============================================================================== --- head/sys/amd64/vmm/vmm_dev.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_dev.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_host.c ============================================================================== --- head/sys/amd64/vmm/vmm_host.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_host.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_host.h ============================================================================== --- head/sys/amd64/vmm/vmm_host.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_host.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_instruction_emul.c ============================================================================== --- head/sys/amd64/vmm/vmm_instruction_emul.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_instruction_emul.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Sandvine, Inc. * Copyright (c) 2012 NetApp, Inc. * All rights reserved. Modified: head/sys/amd64/vmm/vmm_ktr.h ============================================================================== --- head/sys/amd64/vmm/vmm_ktr.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_ktr.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_lapic.c ============================================================================== --- head/sys/amd64/vmm/vmm_lapic.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_lapic.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_lapic.h ============================================================================== --- head/sys/amd64/vmm/vmm_lapic.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_lapic.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_mem.c ============================================================================== --- head/sys/amd64/vmm/vmm_mem.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_mem.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_mem.h ============================================================================== --- head/sys/amd64/vmm/vmm_mem.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_mem.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_stat.c ============================================================================== --- head/sys/amd64/vmm/vmm_stat.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_stat.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_util.c ============================================================================== --- head/sys/amd64/vmm/vmm_util.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_util.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/vmm_util.h ============================================================================== --- head/sys/amd64/vmm/vmm_util.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/vmm_util.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/x86.c ============================================================================== --- head/sys/amd64/vmm/x86.c Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/x86.c Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * Modified: head/sys/amd64/vmm/x86.h ============================================================================== --- head/sys/amd64/vmm/x86.h Mon Nov 27 15:01:59 2017 (r326256) +++ head/sys/amd64/vmm/x86.h Mon Nov 27 15:03:07 2017 (r326257) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:04:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E014E53AD5; Mon, 27 Nov 2017 15:04:23 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBDC074E6A; Mon, 27 Nov 2017 15:04:22 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARF4MJf096274; Mon, 27 Nov 2017 15:04:22 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF4Bsg096160; Mon, 27 Nov 2017 15:04:11 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271504.vARF4Bsg096160@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:04:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326258 - in head/sys/arm: allwinner allwinner/a20 arm at91 broadcom/bcm2835 conf freescale freescale/imx freescale/vybrid include lpc mv mv/armadaxp rockchip samsung/exynos ti ti/am335... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/arm: allwinner allwinner/a20 arm at91 broadcom/bcm2835 conf freescale freescale/imx freescale/vybrid include lpc mv mv/armadaxp rockchip samsung/exynos ti ti/am335x ti/cpsw ti/omap4 ti/oma... X-SVN-Commit-Revision: 326258 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:04:23 -0000 Author: pfg Date: Mon Nov 27 15:04:10 2017 New Revision: 326258 URL: https://svnweb.freebsd.org/changeset/base/326258 Log: sys/arm: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/arm/allwinner/a10_ehci.c head/sys/arm/allwinner/a10_gpio.c head/sys/arm/allwinner/a10_sramc.c head/sys/arm/allwinner/a10_sramc.h head/sys/arm/allwinner/a20/a20_cpu_cfg.c head/sys/arm/allwinner/a20/a20_cpu_cfg.h head/sys/arm/allwinner/if_emac.c head/sys/arm/allwinner/if_emacreg.h head/sys/arm/arm/bus_space_generic.c head/sys/arm/arm/busdma_machdep-v6.c head/sys/arm/arm/cpufunc.c head/sys/arm/arm/db_disasm.c head/sys/arm/arm/disassem.c head/sys/arm/arm/dump_machdep.c head/sys/arm/arm/elf_machdep.c head/sys/arm/arm/elf_trampoline.c head/sys/arm/arm/fiq.c head/sys/arm/arm/gdb_machdep.c head/sys/arm/arm/genassym.c head/sys/arm/arm/generic_timer.c head/sys/arm/arm/gic.c head/sys/arm/arm/intr.c head/sys/arm/arm/machdep.c head/sys/arm/arm/minidump_machdep.c head/sys/arm/arm/mp_machdep.c head/sys/arm/arm/mpcore_timer.c head/sys/arm/arm/physmem.c head/sys/arm/arm/pl190.c head/sys/arm/arm/pl310.c head/sys/arm/arm/pmap-v6.c head/sys/arm/arm/sc_machdep.c head/sys/arm/arm/stack_machdep.c head/sys/arm/arm/stdatomic.c head/sys/arm/arm/undefined.c head/sys/arm/arm/vfp.c head/sys/arm/at91/at91.c head/sys/arm/at91/at91_aic.c head/sys/arm/at91/at91_aicreg.h head/sys/arm/at91/at91_cfata.c head/sys/arm/at91/at91_gpio.h head/sys/arm/at91/at91_machdep.c head/sys/arm/at91/at91_mci.c head/sys/arm/at91/at91_mcireg.h head/sys/arm/at91/at91_pdcreg.h head/sys/arm/at91/at91_pio.c head/sys/arm/at91/at91_pio_sam9g45.h head/sys/arm/at91/at91_pioreg.h head/sys/arm/at91/at91_piovar.h head/sys/arm/at91/at91_pit.c head/sys/arm/at91/at91_pitreg.h head/sys/arm/at91/at91_pmc.c head/sys/arm/at91/at91_pmcreg.h head/sys/arm/at91/at91_pmcvar.h head/sys/arm/at91/at91_rst.c head/sys/arm/at91/at91_rstreg.h head/sys/arm/at91/at91_rtc.c head/sys/arm/at91/at91_rtcreg.h head/sys/arm/at91/at91_sdramc.c head/sys/arm/at91/at91_shdwc.c head/sys/arm/at91/at91_smc.c head/sys/arm/at91/at91_smc.h head/sys/arm/at91/at91_spi.c head/sys/arm/at91/at91_spireg.h head/sys/arm/at91/at91_ssc.c head/sys/arm/at91/at91_sscreg.h head/sys/arm/at91/at91_st.c head/sys/arm/at91/at91_streg.h head/sys/arm/at91/at91_tcb.c head/sys/arm/at91/at91_twi.c head/sys/arm/at91/at91_twiio.h head/sys/arm/at91/at91_twireg.h head/sys/arm/at91/at91_usartreg.h head/sys/arm/at91/at91_wdt.c head/sys/arm/at91/at91_wdtreg.h head/sys/arm/at91/at91board.h head/sys/arm/at91/at91reg.h head/sys/arm/at91/at91rm9200.c head/sys/arm/at91/at91rm9200_devices.c head/sys/arm/at91/at91rm9200var.h head/sys/arm/at91/at91rm92reg.h head/sys/arm/at91/at91sam9260.c head/sys/arm/at91/at91sam9260reg.h head/sys/arm/at91/at91sam9g20.c head/sys/arm/at91/at91sam9g20reg.h head/sys/arm/at91/at91sam9g45.c head/sys/arm/at91/at91sam9g45reg.h head/sys/arm/at91/at91sam9x5.c head/sys/arm/at91/at91sam9x5reg.h head/sys/arm/at91/at91soc.c head/sys/arm/at91/at91soc.h head/sys/arm/at91/at91var.h head/sys/arm/at91/board_bwct.c head/sys/arm/at91/board_eb9200.c head/sys/arm/at91/board_ethernut5.c head/sys/arm/at91/board_hl200.c head/sys/arm/at91/board_hl201.c head/sys/arm/at91/board_kb920x.c head/sys/arm/at91/board_qila9g20.c head/sys/arm/at91/board_sam9260ek.c head/sys/arm/at91/board_sam9g20ek.c head/sys/arm/at91/board_sam9x25ek.c head/sys/arm/at91/board_sn9g45.c head/sys/arm/at91/board_tsc4370.c head/sys/arm/at91/if_ate.c head/sys/arm/at91/if_atereg.h head/sys/arm/at91/if_macb.c head/sys/arm/at91/uart_bus_at91usart.c head/sys/arm/at91/uart_cpu_at91usart.c head/sys/arm/at91/uart_dev_at91usart.c head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c head/sys/arm/broadcom/bcm2835/bcm2835_bscreg.h head/sys/arm/broadcom/bcm2835/bcm2835_bscvar.h head/sys/arm/broadcom/bcm2835/bcm2835_dma.c head/sys/arm/broadcom/bcm2835/bcm2835_dma.h head/sys/arm/broadcom/bcm2835/bcm2835_fb.c head/sys/arm/broadcom/bcm2835/bcm2835_fbd.c head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c head/sys/arm/broadcom/bcm2835/bcm2835_gpio.h head/sys/arm/broadcom/bcm2835/bcm2835_intr.c head/sys/arm/broadcom/bcm2835/bcm2835_machdep.c head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c head/sys/arm/broadcom/bcm2835/bcm2835_mbox.h head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c head/sys/arm/broadcom/bcm2835/bcm2835_spi.c head/sys/arm/broadcom/bcm2835/bcm2835_spireg.h head/sys/arm/broadcom/bcm2835/bcm2835_spivar.h head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h head/sys/arm/broadcom/bcm2835/bcm2835_wdog.c head/sys/arm/broadcom/bcm2835/bcm2835_wdog.h head/sys/arm/conf/genboardid.awk head/sys/arm/freescale/fsl_ocotp.c head/sys/arm/freescale/fsl_ocotpreg.h head/sys/arm/freescale/fsl_ocotpvar.h head/sys/arm/freescale/imx/imx51_ccm.c head/sys/arm/freescale/imx/imx51_ccmreg.h head/sys/arm/freescale/imx/imx51_ccmvar.h head/sys/arm/freescale/imx/imx51_dpllreg.h head/sys/arm/freescale/imx/imx51_ipuv3.c head/sys/arm/freescale/imx/imx51_ipuv3_fbd.c head/sys/arm/freescale/imx/imx51_ipuv3reg.h head/sys/arm/freescale/imx/imx51_machdep.c head/sys/arm/freescale/imx/imx51_sdmareg.h head/sys/arm/freescale/imx/imx51_ssireg.h head/sys/arm/freescale/imx/imx51_tzicreg.h head/sys/arm/freescale/imx/imx53_machdep.c head/sys/arm/freescale/imx/imx6_anatop.c head/sys/arm/freescale/imx/imx6_anatopreg.h head/sys/arm/freescale/imx/imx6_anatopvar.h head/sys/arm/freescale/imx/imx6_ccm.c head/sys/arm/freescale/imx/imx6_ccmreg.h head/sys/arm/freescale/imx/imx6_machdep.c head/sys/arm/freescale/imx/imx6_mp.c head/sys/arm/freescale/imx/imx6_pl310.c head/sys/arm/freescale/imx/imx6_usbphy.c head/sys/arm/freescale/imx/imx_gpt.c head/sys/arm/freescale/imx/imx_gptreg.h head/sys/arm/freescale/imx/imx_machdep.c head/sys/arm/freescale/imx/imx_machdep.h head/sys/arm/freescale/imx/imx_nop_usbphy.c head/sys/arm/freescale/imx/imx_wdog.c head/sys/arm/freescale/imx/imx_wdogreg.h head/sys/arm/freescale/imx/tzic.c head/sys/arm/freescale/vybrid/vf_anadig.c head/sys/arm/freescale/vybrid/vf_ccm.c head/sys/arm/freescale/vybrid/vf_common.h head/sys/arm/freescale/vybrid/vf_dcu4.c head/sys/arm/freescale/vybrid/vf_dmamux.c head/sys/arm/freescale/vybrid/vf_dmamux.h head/sys/arm/freescale/vybrid/vf_edma.c head/sys/arm/freescale/vybrid/vf_edma.h head/sys/arm/freescale/vybrid/vf_ehci.c head/sys/arm/freescale/vybrid/vf_gpio.c head/sys/arm/freescale/vybrid/vf_i2c.c head/sys/arm/freescale/vybrid/vf_iomuxc.c head/sys/arm/freescale/vybrid/vf_iomuxc.h head/sys/arm/freescale/vybrid/vf_machdep.c head/sys/arm/freescale/vybrid/vf_mscm.c head/sys/arm/freescale/vybrid/vf_nfc.c head/sys/arm/freescale/vybrid/vf_port.c head/sys/arm/freescale/vybrid/vf_port.h head/sys/arm/freescale/vybrid/vf_sai.c head/sys/arm/freescale/vybrid/vf_src.c head/sys/arm/freescale/vybrid/vf_src.h head/sys/arm/freescale/vybrid/vf_tcon.c head/sys/arm/freescale/vybrid/vf_uart.c head/sys/arm/include/_bus.h head/sys/arm/include/_inttypes.h head/sys/arm/include/_stdint.h head/sys/arm/include/armreg.h head/sys/arm/include/asmacros.h head/sys/arm/include/at91_gpio.h head/sys/arm/include/atags.h head/sys/arm/include/atomic.h head/sys/arm/include/blockio.h head/sys/arm/include/board.h head/sys/arm/include/bus.h head/sys/arm/include/bus_dma.h head/sys/arm/include/clock.h head/sys/arm/include/counter.h head/sys/arm/include/cpufunc.h head/sys/arm/include/disassem.h head/sys/arm/include/elf.h head/sys/arm/include/fdt.h head/sys/arm/include/fiq.h head/sys/arm/include/frame.h head/sys/arm/include/gdb_machdep.h head/sys/arm/include/intr.h head/sys/arm/include/kdb.h head/sys/arm/include/memdev.h head/sys/arm/include/metadata.h head/sys/arm/include/minidump.h head/sys/arm/include/ofw_machdep.h head/sys/arm/include/pcb.h head/sys/arm/include/pcpu.h head/sys/arm/include/physmem.h head/sys/arm/include/pl310.h head/sys/arm/include/pmc_mdep.h head/sys/arm/include/psl.h head/sys/arm/include/runq.h head/sys/arm/include/sc_machdep.h head/sys/arm/include/sf_buf.h head/sys/arm/include/sysarch.h head/sys/arm/include/ucontext.h head/sys/arm/include/undefined.h head/sys/arm/include/utrap.h head/sys/arm/include/vdso.h head/sys/arm/include/vfp.h head/sys/arm/include/vm.h head/sys/arm/lpc/if_lpe.c head/sys/arm/lpc/if_lpereg.h head/sys/arm/lpc/lpc_dmac.c head/sys/arm/lpc/lpc_fb.c head/sys/arm/lpc/lpc_gpio.c head/sys/arm/lpc/lpc_intc.c head/sys/arm/lpc/lpc_machdep.c head/sys/arm/lpc/lpc_mmc.c head/sys/arm/lpc/lpc_ohci.c head/sys/arm/lpc/lpc_pll.c head/sys/arm/lpc/lpc_pwr.c head/sys/arm/lpc/lpc_rtc.c head/sys/arm/lpc/lpc_spi.c head/sys/arm/lpc/lpc_timer.c head/sys/arm/lpc/lpcreg.h head/sys/arm/lpc/lpcvar.h head/sys/arm/lpc/ssd1289.c head/sys/arm/mv/armadaxp/armadaxp.c head/sys/arm/mv/armadaxp/armadaxp_mp.c head/sys/arm/mv/gpio.c head/sys/arm/mv/ic.c head/sys/arm/mv/mpic.c head/sys/arm/mv/mv_localbus.c head/sys/arm/mv/mv_machdep.c head/sys/arm/mv/mv_ts.c head/sys/arm/mv/mvvar.h head/sys/arm/mv/timer.c head/sys/arm/rockchip/rk30xx_gpio.c head/sys/arm/rockchip/rk30xx_grf.c head/sys/arm/rockchip/rk30xx_grf.h head/sys/arm/rockchip/rk30xx_machdep.c head/sys/arm/rockchip/rk30xx_pmu.c head/sys/arm/rockchip/rk30xx_pmu.h head/sys/arm/rockchip/rk30xx_wdog.c head/sys/arm/rockchip/rk30xx_wdog.h head/sys/arm/samsung/exynos/exynos5_machdep.c head/sys/arm/samsung/exynos/exynos5_mp.c head/sys/arm/ti/aintc.c head/sys/arm/ti/am335x/am335x_dmtimer.c head/sys/arm/ti/am335x/am335x_lcd.c head/sys/arm/ti/am335x/am335x_lcd.h head/sys/arm/ti/am335x/am335x_lcd_syscons.c head/sys/arm/ti/am335x/am335x_pmic.c head/sys/arm/ti/am335x/am335x_prcm.c head/sys/arm/ti/am335x/am335x_pwm.h head/sys/arm/ti/am335x/am335x_reg.h head/sys/arm/ti/am335x/am335x_scm.h head/sys/arm/ti/am335x/am335x_scm_padconf.c head/sys/arm/ti/am335x/am335x_usbss.c head/sys/arm/ti/cpsw/if_cpsw.c head/sys/arm/ti/cpsw/if_cpswreg.h head/sys/arm/ti/cpsw/if_cpswvar.h head/sys/arm/ti/omap4/omap4_l2cache.c head/sys/arm/ti/omap4/omap4_mp.c head/sys/arm/ti/omap4/omap4_prcm_clks.c head/sys/arm/ti/omap4/omap4_reg.h head/sys/arm/ti/omap4/omap4_scm_padconf.c head/sys/arm/ti/omap4/omap4_smc.h head/sys/arm/ti/omap4/pandaboard/pandaboard.c head/sys/arm/ti/ti_cpuid.c head/sys/arm/ti/ti_cpuid.h head/sys/arm/ti/ti_edma3.h head/sys/arm/ti/ti_gpio.c head/sys/arm/ti/ti_i2c.c head/sys/arm/ti/ti_i2c.h head/sys/arm/ti/ti_machdep.c head/sys/arm/ti/ti_mbox.c head/sys/arm/ti/ti_mbox.h head/sys/arm/ti/ti_prcm.c head/sys/arm/ti/ti_prcm.h head/sys/arm/ti/ti_pruss.c head/sys/arm/ti/ti_pruss.h head/sys/arm/ti/ti_scm.c head/sys/arm/ti/ti_scm.h head/sys/arm/ti/ti_sdhci.c head/sys/arm/ti/ti_sdma.c head/sys/arm/ti/ti_sdma.h head/sys/arm/ti/ti_sdmareg.h head/sys/arm/ti/ti_smc.h head/sys/arm/ti/tivar.h head/sys/arm/ti/twl/twl.c head/sys/arm/ti/twl/twl.h head/sys/arm/ti/twl/twl_clks.c head/sys/arm/ti/twl/twl_clks.h head/sys/arm/ti/twl/twl_vreg.c head/sys/arm/ti/twl/twl_vreg.h head/sys/arm/ti/usb/omap_ehci.c head/sys/arm/ti/usb/omap_usb.h head/sys/arm/versatile/pl050.c head/sys/arm/versatile/sp804.c head/sys/arm/versatile/versatile_clcd.c head/sys/arm/versatile/versatile_machdep.c head/sys/arm/versatile/versatile_pci.c head/sys/arm/versatile/versatile_sic.c head/sys/arm/xilinx/uart_dev_cdnc.c head/sys/arm/xilinx/zy7_devcfg.c head/sys/arm/xilinx/zy7_ehci.c head/sys/arm/xilinx/zy7_gpio.c head/sys/arm/xilinx/zy7_l2cache.c head/sys/arm/xilinx/zy7_machdep.c head/sys/arm/xilinx/zy7_reg.h head/sys/arm/xilinx/zy7_slcr.c head/sys/arm/xilinx/zy7_slcr.h head/sys/arm/xscale/i8134x/crb_machdep.c head/sys/arm/xscale/i8134x/i81342.c head/sys/arm/xscale/i8134x/i81342_mcu.c head/sys/arm/xscale/i8134x/i81342_pci.c head/sys/arm/xscale/i8134x/i81342_space.c head/sys/arm/xscale/i8134x/i81342reg.h head/sys/arm/xscale/i8134x/i81342var.h head/sys/arm/xscale/i8134x/iq81342_7seg.c head/sys/arm/xscale/i8134x/iq81342reg.h head/sys/arm/xscale/i8134x/iq81342var.h head/sys/arm/xscale/i8134x/obio.c head/sys/arm/xscale/i8134x/obiovar.h head/sys/arm/xscale/i8134x/uart_bus_i81342.c head/sys/arm/xscale/i8134x/uart_cpu_i81342.c head/sys/arm/xscale/ixp425/avila_ata.c head/sys/arm/xscale/ixp425/avila_gpio.c head/sys/arm/xscale/ixp425/avila_led.c head/sys/arm/xscale/ixp425/avila_machdep.c head/sys/arm/xscale/ixp425/cambria_exp_space.c head/sys/arm/xscale/ixp425/cambria_fled.c head/sys/arm/xscale/ixp425/cambria_gpio.c head/sys/arm/xscale/ixp425/cambria_led.c head/sys/arm/xscale/ixp425/if_npe.c head/sys/arm/xscale/ixp425/ixdp425_pci.c head/sys/arm/xscale/ixp425/ixdp425reg.h head/sys/arm/xscale/ixp425/ixp425.c head/sys/arm/xscale/ixp425/ixp425_a4x_space.c head/sys/arm/xscale/ixp425/ixp425_iic.c head/sys/arm/xscale/ixp425/ixp425_intr.h head/sys/arm/xscale/ixp425/ixp425_mem.c head/sys/arm/xscale/ixp425/ixp425_npevar.h head/sys/arm/xscale/ixp425/ixp425_pci.c head/sys/arm/xscale/ixp425/ixp425_pci_space.c head/sys/arm/xscale/ixp425/ixp425_space.c head/sys/arm/xscale/ixp425/ixp425_timer.c head/sys/arm/xscale/ixp425/ixp425_wdog.c head/sys/arm/xscale/ixp425/ixp425reg.h head/sys/arm/xscale/ixp425/ixp425var.h head/sys/arm/xscale/ixp425/uart_bus_ixp425.c head/sys/arm/xscale/ixp425/uart_cpu_ixp425.c head/sys/arm/xscale/pxa/if_smc_smi.c head/sys/arm/xscale/pxa/pxa_gpio.c head/sys/arm/xscale/pxa/pxa_icu.c head/sys/arm/xscale/pxa/pxa_machdep.c head/sys/arm/xscale/pxa/pxa_obio.c head/sys/arm/xscale/pxa/pxa_smi.c head/sys/arm/xscale/pxa/pxa_space.c head/sys/arm/xscale/pxa/pxa_timer.c head/sys/arm/xscale/pxa/pxareg.h head/sys/arm/xscale/pxa/pxavar.h head/sys/arm/xscale/pxa/uart_bus_pxa.c head/sys/arm/xscale/pxa/uart_cpu_pxa.c Modified: head/sys/arm/allwinner/a10_ehci.c ============================================================================== --- head/sys/arm/allwinner/a10_ehci.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a10_ehci.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/a10_gpio.c ============================================================================== --- head/sys/arm/allwinner/a10_gpio.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a10_gpio.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * Copyright (c) 2012 Oleksandr Tymoshenko * Copyright (c) 2012 Luiz Otavio O Souza. Modified: head/sys/arm/allwinner/a10_sramc.c ============================================================================== --- head/sys/arm/allwinner/a10_sramc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a10_sramc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/a10_sramc.h ============================================================================== --- head/sys/arm/allwinner/a10_sramc.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a10_sramc.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/a20/a20_cpu_cfg.c ============================================================================== --- head/sys/arm/allwinner/a20/a20_cpu_cfg.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a20/a20_cpu_cfg.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/a20/a20_cpu_cfg.h ============================================================================== --- head/sys/arm/allwinner/a20/a20_cpu_cfg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/a20/a20_cpu_cfg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/if_emac.c ============================================================================== --- head/sys/arm/allwinner/if_emac.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/if_emac.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/allwinner/if_emacreg.h ============================================================================== --- head/sys/arm/allwinner/if_emacreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/allwinner/if_emacreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2013 Ganbold Tsagaankhuu * All rights reserved. * Modified: head/sys/arm/arm/bus_space_generic.c ============================================================================== --- head/sys/arm/arm/bus_space_generic.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/bus_space_generic.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: obio_space.c,v 1.6 2003/07/15 00:25:05 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/arm/arm/busdma_machdep-v6.c ============================================================================== --- head/sys/arm/arm/busdma_machdep-v6.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/busdma_machdep-v6.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012-2015 Ian Lepore * Copyright (c) 2010 Mark Tinguely * Copyright (c) 2004 Olivier Houchard Modified: head/sys/arm/arm/cpufunc.c ============================================================================== --- head/sys/arm/arm/cpufunc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/cpufunc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: cpufunc.c,v 1.65 2003/11/05 12:53:15 scw Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * arm9 support code Copyright (C) 2001 ARM Ltd * Copyright (c) 1997 Mark Brinicombe. * Copyright (c) 1997 Causality Limited Modified: head/sys/arm/arm/db_disasm.c ============================================================================== --- head/sys/arm/arm/db_disasm.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/db_disasm.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: db_disasm.c,v 1.4 2003/07/15 00:24:38 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1996 Mark Brinicombe. * Copyright (c) 1996 Brini. * Modified: head/sys/arm/arm/disassem.c ============================================================================== --- head/sys/arm/arm/disassem.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/disassem.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: disassem.c,v 1.14 2003/03/27 16:58:36 mycroft Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1996 Mark Brinicombe. * Copyright (c) 1996 Brini. * Modified: head/sys/arm/arm/dump_machdep.c ============================================================================== --- head/sys/arm/arm/dump_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/dump_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Marcel Moolenaar * All rights reserved. * Modified: head/sys/arm/arm/elf_machdep.c ============================================================================== --- head/sys/arm/arm/elf_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/elf_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/sys/arm/arm/elf_trampoline.c ============================================================================== --- head/sys/arm/arm/elf_trampoline.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/elf_trampoline.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/arm/fiq.c ============================================================================== --- head/sys/arm/arm/fiq.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/fiq.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: fiq.c,v 1.5 2002/04/03 23:33:27 thorpej Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/arm/arm/gdb_machdep.c ============================================================================== --- head/sys/arm/arm/gdb_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/gdb_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Olivier Houchard * All rights reserved. * Modified: head/sys/arm/arm/genassym.c ============================================================================== --- head/sys/arm/arm/genassym.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/genassym.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Olivier Houchard * All rights reserved. * Modified: head/sys/arm/arm/generic_timer.c ============================================================================== --- head/sys/arm/arm/generic_timer.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/generic_timer.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2011 The FreeBSD Foundation * Copyright (c) 2013 Ruslan Bukin * All rights reserved. Modified: head/sys/arm/arm/gic.c ============================================================================== --- head/sys/arm/arm/gic.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/gic.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/arm/arm/intr.c ============================================================================== --- head/sys/arm/arm/intr.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/intr.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: intr.c,v 1.12 2003/07/15 00:24:41 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2004 Olivier Houchard. * Copyright (c) 1994-1998 Mark Brinicombe. * All rights reserved. Modified: head/sys/arm/arm/machdep.c ============================================================================== --- head/sys/arm/arm/machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2004 Olivier Houchard * Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994 Brini. Modified: head/sys/arm/arm/minidump_machdep.c ============================================================================== --- head/sys/arm/arm/minidump_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/minidump_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Peter Wemm * Copyright (c) 2008 Semihalf, Grzegorz Bernacki * All rights reserved. Modified: head/sys/arm/arm/mp_machdep.c ============================================================================== --- head/sys/arm/arm/mp_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/mp_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Semihalf. * All rights reserved. * Modified: head/sys/arm/arm/mpcore_timer.c ============================================================================== --- head/sys/arm/arm/mpcore_timer.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/mpcore_timer.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/arm/arm/physmem.c ============================================================================== --- head/sys/arm/arm/physmem.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/physmem.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Ian Lepore * All rights reserved. * Modified: head/sys/arm/arm/pl190.c ============================================================================== --- head/sys/arm/arm/pl190.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/pl190.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012-2017 Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/arm/arm/pl310.c ============================================================================== --- head/sys/arm/arm/pl310.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/pl310.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2012 Olivier Houchard * Copyright (c) 2011 * Ben Gray . Modified: head/sys/arm/arm/pmap-v6.c ============================================================================== --- head/sys/arm/arm/pmap-v6.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/pmap-v6.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-Clause-FreeBSD + * * Copyright (c) 1991 Regents of the University of California. * Copyright (c) 1994 John S. Dyson * Copyright (c) 1994 David Greenman Modified: head/sys/arm/arm/sc_machdep.c ============================================================================== --- head/sys/arm/arm/sc_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/sc_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * All rights reserved. * Modified: head/sys/arm/arm/stack_machdep.c ============================================================================== --- head/sys/arm/arm/stack_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/stack_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Antoine Brodin * All rights reserved. * Modified: head/sys/arm/arm/stdatomic.c ============================================================================== --- head/sys/arm/arm/stdatomic.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/stdatomic.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Ed Schouten * All rights reserved. * Modified: head/sys/arm/arm/undefined.c ============================================================================== --- head/sys/arm/arm/undefined.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/undefined.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,6 +1,8 @@ /* $NetBSD: undefined.c,v 1.22 2003/11/29 22:21:29 bjh21 Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001 Ben Harris. * Copyright (c) 1995 Mark Brinicombe. * Copyright (c) 1995 Brini. Modified: head/sys/arm/arm/vfp.c ============================================================================== --- head/sys/arm/arm/vfp.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/arm/vfp.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Ian Lepore * Copyright (c) 2012 Mark Tinguely * Modified: head/sys/arm/at91/at91.c ============================================================================== --- head/sys/arm/at91/at91.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91_aic.c ============================================================================== --- head/sys/arm/at91/at91_aic.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_aic.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_aicreg.h ============================================================================== --- head/sys/arm/at91/at91_aicreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_aicreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_cfata.c ============================================================================== --- head/sys/arm/at91/at91_cfata.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_cfata.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Deglitch Networks, Stanislav Sedov * All rights reserved. * Modified: head/sys/arm/at91/at91_gpio.h ============================================================================== --- head/sys/arm/at91/at91_gpio.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_gpio.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_machdep.c ============================================================================== --- head/sys/arm/at91/at91_machdep.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_machdep.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994 Brini. * All rights reserved. Modified: head/sys/arm/at91/at91_mci.c ============================================================================== --- head/sys/arm/at91/at91_mci.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_mci.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Bernd Walter. All rights reserved. * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. Modified: head/sys/arm/at91/at91_mcireg.h ============================================================================== --- head/sys/arm/at91/at91_mcireg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_mcireg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Berndt Walter. All rights reserved. * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/at91_pdcreg.h ============================================================================== --- head/sys/arm/at91/at91_pdcreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pdcreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_pio.c ============================================================================== --- head/sys/arm/at91/at91_pio.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pio.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Copyright (C) 2012 Ian Lepore. All rights reserved. * Modified: head/sys/arm/at91/at91_pio_sam9g45.h ============================================================================== --- head/sys/arm/at91/at91_pio_sam9g45.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pio_sam9g45.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support - ROUSSET - * ---------------------------------------------------------------------------- Modified: head/sys/arm/at91/at91_pioreg.h ============================================================================== --- head/sys/arm/at91/at91_pioreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pioreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_piovar.h ============================================================================== --- head/sys/arm/at91/at91_piovar.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_piovar.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_pit.c ============================================================================== --- head/sys/arm/at91/at91_pit.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pit.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Gallon Sylvestre. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91_pitreg.h ============================================================================== --- head/sys/arm/at91/at91_pitreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pitreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_pmc.c ============================================================================== --- head/sys/arm/at91/at91_pmc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pmc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91_pmcreg.h ============================================================================== --- head/sys/arm/at91/at91_pmcreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pmcreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_pmcvar.h ============================================================================== --- head/sys/arm/at91/at91_pmcvar.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_pmcvar.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_rst.c ============================================================================== --- head/sys/arm/at91/at91_rst.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_rst.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_rstreg.h ============================================================================== --- head/sys/arm/at91/at91_rstreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_rstreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_rtc.c ============================================================================== --- head/sys/arm/at91/at91_rtc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_rtc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Copyright (c) 2012 Ian Lepore. All rights reserved. * Modified: head/sys/arm/at91/at91_rtcreg.h ============================================================================== --- head/sys/arm/at91/at91_rtcreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_rtcreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_sdramc.c ============================================================================== --- head/sys/arm/at91/at91_sdramc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_sdramc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_shdwc.c ============================================================================== --- head/sys/arm/at91/at91_shdwc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_shdwc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_smc.c ============================================================================== --- head/sys/arm/at91/at91_smc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_smc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_smc.h ============================================================================== --- head/sys/arm/at91/at91_smc.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_smc.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_spi.c ============================================================================== --- head/sys/arm/at91/at91_spi.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_spi.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. * Copyright (c) 2011-2012 Ian Lepore. * All rights reserved. Modified: head/sys/arm/at91/at91_spireg.h ============================================================================== --- head/sys/arm/at91/at91_spireg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_spireg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_ssc.c ============================================================================== --- head/sys/arm/at91/at91_ssc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_ssc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_sscreg.h ============================================================================== --- head/sys/arm/at91/at91_sscreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_sscreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_st.c ============================================================================== --- head/sys/arm/at91/at91_st.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_st.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_streg.h ============================================================================== --- head/sys/arm/at91/at91_streg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_streg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_tcb.c ============================================================================== --- head/sys/arm/at91/at91_tcb.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_tcb.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_twi.c ============================================================================== --- head/sys/arm/at91/at91_twi.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_twi.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_twiio.h ============================================================================== --- head/sys/arm/at91/at91_twiio.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_twiio.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_twireg.h ============================================================================== --- head/sys/arm/at91/at91_twireg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_twireg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_usartreg.h ============================================================================== --- head/sys/arm/at91/at91_usartreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_usartreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_wdt.c ============================================================================== --- head/sys/arm/at91/at91_wdt.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_wdt.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91_wdtreg.h ============================================================================== --- head/sys/arm/at91/at91_wdtreg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91_wdtreg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Gallon Sylvestre. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91board.h ============================================================================== --- head/sys/arm/at91/at91board.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91board.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91reg.h ============================================================================== --- head/sys/arm/at91/at91reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91rm9200.c ============================================================================== --- head/sys/arm/at91/at91rm9200.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91rm9200.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91rm9200_devices.c ============================================================================== --- head/sys/arm/at91/at91rm9200_devices.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91rm9200_devices.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 M. Warner Losh. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91rm9200var.h ============================================================================== --- head/sys/arm/at91/at91rm9200var.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91rm9200var.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91rm92reg.h ============================================================================== --- head/sys/arm/at91/at91rm92reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91rm92reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91sam9260.c ============================================================================== --- head/sys/arm/at91/at91sam9260.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9260.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91sam9260reg.h ============================================================================== --- head/sys/arm/at91/at91sam9260reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9260reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91sam9g20.c ============================================================================== --- head/sys/arm/at91/at91sam9g20.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9g20.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91sam9g20reg.h ============================================================================== --- head/sys/arm/at91/at91sam9g20reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9g20reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/at91sam9g45.c ============================================================================== --- head/sys/arm/at91/at91sam9g45.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9g45.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Copyright (c) 2012 Andrew Turner. All rights reserved. Modified: head/sys/arm/at91/at91sam9g45reg.h ============================================================================== --- head/sys/arm/at91/at91sam9g45reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9g45reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Copyright (c) 2012 Andrew Turner. All rights reserved. Modified: head/sys/arm/at91/at91sam9x5.c ============================================================================== --- head/sys/arm/at91/at91sam9x5.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9x5.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Copyright (c) 2012 M. Warner Losh.. All rights reserved. Modified: head/sys/arm/at91/at91sam9x5reg.h ============================================================================== --- head/sys/arm/at91/at91sam9x5reg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91sam9x5reg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. * Copyright (c) 2010 Greg Ansley. All rights reserved. * Copyright (c) 2012 M. Warener Losh. All rights reserved. Modified: head/sys/arm/at91/at91soc.c ============================================================================== --- head/sys/arm/at91/at91soc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91soc.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91soc.h ============================================================================== --- head/sys/arm/at91/at91soc.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91soc.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/at91var.h ============================================================================== --- head/sys/arm/at91/at91var.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/at91var.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/board_bwct.c ============================================================================== --- head/sys/arm/at91/board_bwct.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_bwct.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/board_eb9200.c ============================================================================== --- head/sys/arm/at91/board_eb9200.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_eb9200.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/board_ethernut5.c ============================================================================== --- head/sys/arm/at91/board_ethernut5.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_ethernut5.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Marius Strobl * All rights reserved. * Modified: head/sys/arm/at91/board_hl200.c ============================================================================== --- head/sys/arm/at91/board_hl200.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_hl200.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/board_hl201.c ============================================================================== --- head/sys/arm/at91/board_hl201.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_hl201.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2008 Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/board_kb920x.c ============================================================================== --- head/sys/arm/at91/board_kb920x.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_kb920x.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * Modified: head/sys/arm/at91/board_qila9g20.c ============================================================================== --- head/sys/arm/at91/board_qila9g20.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_qila9g20.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/board_sam9260ek.c ============================================================================== --- head/sys/arm/at91/board_sam9260ek.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_sam9260ek.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Marius Strobl * All rights reserved. * Modified: head/sys/arm/at91/board_sam9g20ek.c ============================================================================== --- head/sys/arm/at91/board_sam9g20ek.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_sam9g20ek.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/board_sam9x25ek.c ============================================================================== --- head/sys/arm/at91/board_sam9x25ek.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_sam9x25ek.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/board_sn9g45.c ============================================================================== --- head/sys/arm/at91/board_sn9g45.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_sn9g45.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Greg Ansley. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/board_tsc4370.c ============================================================================== --- head/sys/arm/at91/board_tsc4370.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/board_tsc4370.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * Copyright (c) 2007-2014 Ian Lepore. All rights reserved. Modified: head/sys/arm/at91/if_ate.c ============================================================================== --- head/sys/arm/at91/if_ate.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/if_ate.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * Copyright (c) 2009 Greg Ansley. All rights reserved. * Modified: head/sys/arm/at91/if_atereg.h ============================================================================== --- head/sys/arm/at91/if_atereg.h Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/if_atereg.h Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/if_macb.c ============================================================================== --- head/sys/arm/at91/if_macb.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/if_macb.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Yohanes Nugroho * All rights reserved. * Modified: head/sys/arm/at91/uart_bus_at91usart.c ============================================================================== --- head/sys/arm/at91/uart_bus_at91usart.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/uart_bus_at91usart.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Olivier Houchard. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/arm/at91/uart_cpu_at91usart.c ============================================================================== --- head/sys/arm/at91/uart_cpu_at91usart.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/uart_cpu_at91usart.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Marcel Moolenaar * Copyright (c) 2006 M. Warner Losh * All rights reserved. Modified: head/sys/arm/at91/uart_dev_at91usart.c ============================================================================== --- head/sys/arm/at91/uart_dev_at91usart.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/at91/uart_dev_at91usart.c Mon Nov 27 15:04:10 2017 (r326258) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh * Copyright (c) 2005 Olivier Houchard * Copyright (c) 2012 Ian Lepore Modified: head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c ============================================================================== --- head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c Mon Nov 27 15:03:07 2017 (r326257) +++ head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c Mon Nov 27 15:04:10 2017 (r326258) *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:07:38 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBAC6E53C0D; Mon, 27 Nov 2017 15:07:38 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 29A7175029; Mon, 27 Nov 2017 15:07:38 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARF7btJ096536; Mon, 27 Nov 2017 15:07:37 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF7Qvd096428; Mon, 27 Nov 2017 15:07:26 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271507.vARF7Qvd096428@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:07:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326259 - in head/sys/mips: adm5120 alchemy atheros beri cavium cavium/cryptocteon cavium/octe cavium/usb gxemul idt include malta mips nlm nlm/dev/net nlm/dev/net/ucore nlm/dev/sec nlm... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/mips: adm5120 alchemy atheros beri cavium cavium/cryptocteon cavium/octe cavium/usb gxemul idt include malta mips nlm nlm/dev/net nlm/dev/net/ucore nlm/dev/sec nlm/hal rmi rt305x sibyte X-SVN-Commit-Revision: 326259 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:07:38 -0000 Author: pfg Date: Mon Nov 27 15:07:26 2017 New Revision: 326259 URL: https://svnweb.freebsd.org/changeset/base/326259 Log: sys/mips: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/mips/adm5120/adm5120_machdep.c head/sys/mips/adm5120/adm5120reg.h head/sys/mips/adm5120/admpci.c head/sys/mips/adm5120/console.c head/sys/mips/adm5120/if_admsw.c head/sys/mips/adm5120/if_admswreg.h head/sys/mips/adm5120/if_admswvar.h head/sys/mips/adm5120/obio.c head/sys/mips/adm5120/obiovar.h head/sys/mips/adm5120/uart_bus_adm5120.c head/sys/mips/adm5120/uart_cpu_adm5120.c head/sys/mips/adm5120/uart_dev_adm5120.c head/sys/mips/adm5120/uart_dev_adm5120.h head/sys/mips/alchemy/alchemy_machdep.c head/sys/mips/alchemy/aureg.h head/sys/mips/alchemy/obio.c head/sys/mips/alchemy/uart_bus_alchemy.c head/sys/mips/alchemy/uart_cpu_alchemy.c head/sys/mips/atheros/apb.c head/sys/mips/atheros/apbvar.h head/sys/mips/atheros/ar71xx_bus_space_reversed.c head/sys/mips/atheros/ar71xx_bus_space_reversed.h head/sys/mips/atheros/ar71xx_chip.c head/sys/mips/atheros/ar71xx_chip.h head/sys/mips/atheros/ar71xx_cpudef.h head/sys/mips/atheros/ar71xx_ehci.c head/sys/mips/atheros/ar71xx_fixup.c head/sys/mips/atheros/ar71xx_fixup.h head/sys/mips/atheros/ar71xx_gpio.c head/sys/mips/atheros/ar71xx_gpiovar.h head/sys/mips/atheros/ar71xx_machdep.c head/sys/mips/atheros/ar71xx_ohci.c head/sys/mips/atheros/ar71xx_pci.c head/sys/mips/atheros/ar71xx_pci_bus_space.c head/sys/mips/atheros/ar71xx_pci_bus_space.h head/sys/mips/atheros/ar71xx_setup.c head/sys/mips/atheros/ar71xx_setup.h head/sys/mips/atheros/ar71xx_spi.c head/sys/mips/atheros/ar71xx_wdog.c head/sys/mips/atheros/ar71xxreg.h head/sys/mips/atheros/ar724x_chip.c head/sys/mips/atheros/ar724x_chip.h head/sys/mips/atheros/ar724x_pci.c head/sys/mips/atheros/ar724xreg.h head/sys/mips/atheros/ar91xx_chip.c head/sys/mips/atheros/ar91xx_chip.h head/sys/mips/atheros/ar91xxreg.h head/sys/mips/atheros/ar933x_chip.c head/sys/mips/atheros/ar933x_chip.h head/sys/mips/atheros/ar933x_uart.h head/sys/mips/atheros/ar933xreg.h head/sys/mips/atheros/ar934x_chip.c head/sys/mips/atheros/ar934x_chip.h head/sys/mips/atheros/ar934xreg.h head/sys/mips/atheros/if_arge.c head/sys/mips/atheros/if_argevar.h head/sys/mips/atheros/pcf2123_rtc.c head/sys/mips/atheros/pcf2123reg.h head/sys/mips/atheros/uart_bus_ar71xx.c head/sys/mips/atheros/uart_bus_ar933x.c head/sys/mips/atheros/uart_cpu_ar71xx.c head/sys/mips/atheros/uart_cpu_ar933x.c head/sys/mips/atheros/uart_dev_ar933x.c head/sys/mips/atheros/uart_dev_ar933x.h head/sys/mips/beri/beri_machdep.c head/sys/mips/beri/beri_pic.c head/sys/mips/cavium/ciu.c head/sys/mips/cavium/cryptocteon/cavium_crypto.c head/sys/mips/cavium/if_octm.c head/sys/mips/cavium/obio.c head/sys/mips/cavium/obiovar.h head/sys/mips/cavium/octe/ethernet-mv88e61xx.c head/sys/mips/cavium/octe/ethernet-mv88e61xx.h head/sys/mips/cavium/octe/mv88e61xxphy.c head/sys/mips/cavium/octe/mv88e61xxphyreg.h head/sys/mips/cavium/octe/octe.c head/sys/mips/cavium/octe/octebus.c head/sys/mips/cavium/octe/octebusvar.h head/sys/mips/cavium/octeon_cop2.h head/sys/mips/cavium/octeon_gpio.c head/sys/mips/cavium/octeon_gpiovar.h head/sys/mips/cavium/octeon_machdep.c head/sys/mips/cavium/octeon_mp.c head/sys/mips/cavium/octeon_pci_console.c head/sys/mips/cavium/octeon_pmc.c head/sys/mips/cavium/octeon_rnd.c head/sys/mips/cavium/octeon_rtc.c head/sys/mips/cavium/octeon_wdog.c head/sys/mips/cavium/octopci.c head/sys/mips/cavium/octopci_bus_space.c head/sys/mips/cavium/octopcivar.h head/sys/mips/cavium/uart_bus_octeonusart.c head/sys/mips/cavium/uart_cpu_octeonusart.c head/sys/mips/cavium/uart_dev_oct16550.c head/sys/mips/cavium/usb/octusb.c head/sys/mips/cavium/usb/octusb.h head/sys/mips/cavium/usb/octusb_octeon.c head/sys/mips/gxemul/gxemul_machdep.c head/sys/mips/gxemul/mpreg.h head/sys/mips/idt/idt_machdep.c head/sys/mips/idt/idtpci.c head/sys/mips/idt/idtreg.h head/sys/mips/idt/if_kr.c head/sys/mips/idt/if_krreg.h head/sys/mips/idt/obio.c head/sys/mips/idt/obiovar.h head/sys/mips/idt/uart_bus_rc32434.c head/sys/mips/idt/uart_cpu_rc32434.c head/sys/mips/include/_bus.h head/sys/mips/include/_inttypes.h head/sys/mips/include/_stdint.h head/sys/mips/include/atomic.h head/sys/mips/include/bootinfo.h head/sys/mips/include/bus.h head/sys/mips/include/bus_dma.h head/sys/mips/include/cache.h head/sys/mips/include/cache_mipsNN.h head/sys/mips/include/cache_r4k.h head/sys/mips/include/counter.h head/sys/mips/include/cpufunc.h head/sys/mips/include/db_machdep.h head/sys/mips/include/elf.h head/sys/mips/include/fdt.h head/sys/mips/include/frame.h head/sys/mips/include/gdb_machdep.h head/sys/mips/include/hwfunc.h head/sys/mips/include/intr_machdep.h head/sys/mips/include/kdb.h head/sys/mips/include/memdev.h head/sys/mips/include/metadata.h head/sys/mips/include/minidump.h head/sys/mips/include/octeon_cop2.h head/sys/mips/include/ofw_machdep.h head/sys/mips/include/pcpu.h head/sys/mips/include/pte.h head/sys/mips/include/runq.h head/sys/mips/include/sc_machdep.h head/sys/mips/include/sf_buf.h head/sys/mips/include/sigframe.h head/sys/mips/include/tlb.h head/sys/mips/include/tls.h head/sys/mips/include/vdso.h head/sys/mips/include/vm.h head/sys/mips/malta/gt.c head/sys/mips/malta/gt_pci.c head/sys/mips/malta/gt_pci_bus_space.c head/sys/mips/malta/gt_pci_bus_space.h head/sys/mips/malta/gtreg.h head/sys/mips/malta/gtvar.h head/sys/mips/malta/malta_machdep.c head/sys/mips/malta/maltareg.h head/sys/mips/malta/obio.c head/sys/mips/malta/obiovar.h head/sys/mips/malta/uart_bus_maltausart.c head/sys/mips/malta/uart_cpu_maltausart.c head/sys/mips/malta/yamon.c head/sys/mips/malta/yamon.h head/sys/mips/mips/bus_space_generic.c head/sys/mips/mips/busdma_machdep.c head/sys/mips/mips/cache.c head/sys/mips/mips/cache_mipsNN.c head/sys/mips/mips/cpu.c head/sys/mips/mips/db_interface.c head/sys/mips/mips/db_trace.c head/sys/mips/mips/dump_machdep.c head/sys/mips/mips/elf_machdep.c head/sys/mips/mips/elf_trampoline.c head/sys/mips/mips/freebsd32_machdep.c head/sys/mips/mips/gdb_machdep.c head/sys/mips/mips/intr_machdep.c head/sys/mips/mips/libkern_machdep.c head/sys/mips/mips/minidump_machdep.c head/sys/mips/mips/mp_machdep.c head/sys/mips/mips/octeon_cop2.c head/sys/mips/mips/ptrace_machdep.c head/sys/mips/mips/sc_machdep.c head/sys/mips/mips/stack_machdep.c head/sys/mips/mips/stdatomic.c head/sys/mips/mips/tick.c head/sys/mips/mips/tlb.c head/sys/mips/mips/uma_machdep.c head/sys/mips/nlm/board.c head/sys/mips/nlm/board.h head/sys/mips/nlm/board_cpld.c head/sys/mips/nlm/board_eeprom.c head/sys/mips/nlm/bus_space_rmi.c head/sys/mips/nlm/bus_space_rmi_pci.c head/sys/mips/nlm/clock.h head/sys/mips/nlm/cms.c head/sys/mips/nlm/dev/net/mdio.c head/sys/mips/nlm/dev/net/nae.c head/sys/mips/nlm/dev/net/sgmii.c head/sys/mips/nlm/dev/net/ucore/ucore.h head/sys/mips/nlm/dev/net/ucore/ucore_app.c head/sys/mips/nlm/dev/net/xaui.c head/sys/mips/nlm/dev/net/xlpge.c head/sys/mips/nlm/dev/net/xlpge.h head/sys/mips/nlm/dev/sec/nlmrsa.c head/sys/mips/nlm/dev/sec/nlmrsalib.h head/sys/mips/nlm/dev/sec/nlmsec.c head/sys/mips/nlm/dev/sec/nlmseclib.c head/sys/mips/nlm/dev/sec/nlmseclib.h head/sys/mips/nlm/dev/sec/rsa_ucode.h head/sys/mips/nlm/hal/bridge.h head/sys/mips/nlm/hal/cop2.h head/sys/mips/nlm/hal/cpucontrol.h head/sys/mips/nlm/hal/fmn.c head/sys/mips/nlm/hal/fmn.h head/sys/mips/nlm/hal/gbu.h head/sys/mips/nlm/hal/haldefs.h head/sys/mips/nlm/hal/interlaken.h head/sys/mips/nlm/hal/iomap.h head/sys/mips/nlm/hal/mdio.h head/sys/mips/nlm/hal/mips-extns.h head/sys/mips/nlm/hal/mmu.h head/sys/mips/nlm/hal/nae.h head/sys/mips/nlm/hal/nlm_hal.c head/sys/mips/nlm/hal/nlmsaelib.h head/sys/mips/nlm/hal/pcibus.h head/sys/mips/nlm/hal/pic.h head/sys/mips/nlm/hal/poe.h head/sys/mips/nlm/hal/sgmii.h head/sys/mips/nlm/hal/sys.h head/sys/mips/nlm/hal/uart.h head/sys/mips/nlm/hal/ucore_loader.h head/sys/mips/nlm/hal/usb.h head/sys/mips/nlm/hal/xaui.h head/sys/mips/nlm/interrupt.h head/sys/mips/nlm/intr_machdep.c head/sys/mips/nlm/msgring.h head/sys/mips/nlm/tick.c head/sys/mips/nlm/uart_cpu_xlp.c head/sys/mips/nlm/usb_init.c head/sys/mips/nlm/xlp.h head/sys/mips/nlm/xlp_machdep.c head/sys/mips/nlm/xlp_pci.c head/sys/mips/rmi/board.c head/sys/mips/rmi/bus_space_rmi.c head/sys/mips/rmi/bus_space_rmi_pci.c head/sys/mips/rmi/intr_machdep.c head/sys/mips/rmi/pcibus.h head/sys/mips/rmi/tick.c head/sys/mips/rmi/uart_bus_xlr_iodi.c head/sys/mips/rmi/uart_cpu_mips_xlr.c head/sys/mips/rmi/xlr_machdep.c head/sys/mips/rmi/xls_ehci.c head/sys/mips/rt305x/obio.c head/sys/mips/rt305x/obiovar.h head/sys/mips/rt305x/rt305x_dotg.c head/sys/mips/rt305x/rt305x_gpio.c head/sys/mips/rt305x/rt305x_gpio.h head/sys/mips/rt305x/rt305x_gpiovar.h head/sys/mips/rt305x/rt305x_ic.c head/sys/mips/rt305x/rt305x_icvar.h head/sys/mips/rt305x/rt305x_machdep.c head/sys/mips/rt305x/rt305x_sysctl.c head/sys/mips/rt305x/rt305x_sysctlvar.h head/sys/mips/rt305x/rt305xreg.h head/sys/mips/rt305x/rt_swreg.h head/sys/mips/rt305x/uart_bus_rt305x.c head/sys/mips/rt305x/uart_cpu_rt305x.c head/sys/mips/rt305x/uart_dev_rt305x.c head/sys/mips/rt305x/uart_dev_rt305x.h head/sys/mips/sibyte/ata_zbbus.c head/sys/mips/sibyte/sb_bus_space.h head/sys/mips/sibyte/sb_machdep.c head/sys/mips/sibyte/sb_scd.c head/sys/mips/sibyte/sb_scd.h head/sys/mips/sibyte/sb_zbbus.c head/sys/mips/sibyte/sb_zbpci.c Modified: head/sys/mips/adm5120/adm5120_machdep.c ============================================================================== --- head/sys/mips/adm5120/adm5120_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/adm5120_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/adm5120/adm5120reg.h ============================================================================== --- head/sys/mips/adm5120/adm5120reg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/adm5120reg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: adm5120reg.h,v 1.1 2007/03/20 08:52:03 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/adm5120/admpci.c ============================================================================== --- head/sys/mips/adm5120/admpci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/admpci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: admpci.c,v 1.1 2007/03/20 08:52:02 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 David Young. All rights reserved. * * Redistribution and use in source and binary forms, with or Modified: head/sys/mips/adm5120/console.c ============================================================================== --- head/sys/mips/adm5120/console.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/console.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: uart.c,v 1.2 2007/03/23 20:05:47 dogcow Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/adm5120/if_admsw.c ============================================================================== --- head/sys/mips/adm5120/if_admsw.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/if_admsw.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: if_admsw.c,v 1.3 2007/04/22 19:26:25 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/adm5120/if_admswreg.h ============================================================================== --- head/sys/mips/adm5120/if_admswreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/if_admswreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: if_admswreg.h,v 1.1 2007/03/20 08:52:02 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/adm5120/if_admswvar.h ============================================================================== --- head/sys/mips/adm5120/if_admswvar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/if_admswvar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: if_admswvar.h,v 1.1 2007/03/20 08:52:02 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/adm5120/obio.c ============================================================================== --- head/sys/mips/adm5120/obio.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/obio.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: obio.c,v 1.11 2003/07/15 00:25:05 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/mips/adm5120/obiovar.h ============================================================================== --- head/sys/mips/adm5120/obiovar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/obiovar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: obiovar.h,v 1.4 2003/06/16 17:40:53 thorpej Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/mips/adm5120/uart_bus_adm5120.c ============================================================================== --- head/sys/mips/adm5120/uart_bus_adm5120.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/uart_bus_adm5120.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Bruce M. Simpson. * All rights reserved. * Modified: head/sys/mips/adm5120/uart_cpu_adm5120.c ============================================================================== --- head/sys/mips/adm5120/uart_cpu_adm5120.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/uart_cpu_adm5120.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. * Modified: head/sys/mips/adm5120/uart_dev_adm5120.c ============================================================================== --- head/sys/mips/adm5120/uart_dev_adm5120.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/uart_dev_adm5120.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: uart.c,v 1.2 2007/03/23 20:05:47 dogcow Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * Copyright (c) 2007 Oleksandr Tymoshenko. * All rights reserved. Modified: head/sys/mips/adm5120/uart_dev_adm5120.h ============================================================================== --- head/sys/mips/adm5120/uart_dev_adm5120.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/adm5120/uart_dev_adm5120.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: uart.h,v 1.1 2007/03/20 08:52:02 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. * All rights reserved. * Modified: head/sys/mips/alchemy/alchemy_machdep.c ============================================================================== --- head/sys/mips/alchemy/alchemy_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/alchemy/alchemy_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/alchemy/aureg.h ============================================================================== --- head/sys/mips/alchemy/aureg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/alchemy/aureg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: aureg.h,v 1.18 2006/10/02 06:44:00 gdamore Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2002 Wasabi Systems, Inc. * All rights reserved. * @@ -33,6 +35,8 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef _MIPS_ALCHEMY_AUREG_H Modified: head/sys/mips/alchemy/obio.c ============================================================================== --- head/sys/mips/alchemy/obio.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/alchemy/obio.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: obio.c,v 1.11 2003/07/15 00:25:05 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/mips/alchemy/uart_bus_alchemy.c ============================================================================== --- head/sys/mips/alchemy/uart_bus_alchemy.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/alchemy/uart_bus_alchemy.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Bruce M. Simpson. * All rights reserved. * Modified: head/sys/mips/alchemy/uart_cpu_alchemy.c ============================================================================== --- head/sys/mips/alchemy/uart_cpu_alchemy.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/alchemy/uart_cpu_alchemy.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. * Modified: head/sys/mips/atheros/apb.c ============================================================================== --- head/sys/mips/atheros/apb.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/apb.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/apbvar.h ============================================================================== --- head/sys/mips/atheros/apbvar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/apbvar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_bus_space_reversed.c ============================================================================== --- head/sys/mips/atheros/ar71xx_bus_space_reversed.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_bus_space_reversed.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_bus_space_reversed.h ============================================================================== --- head/sys/mips/atheros/ar71xx_bus_space_reversed.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_bus_space_reversed.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * @@ -23,6 +25,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef __AR71XX_BUS_SPACE_REVERSEDH__ Modified: head/sys/mips/atheros/ar71xx_chip.c ============================================================================== --- head/sys/mips/atheros/ar71xx_chip.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_chip.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_chip.h ============================================================================== --- head/sys/mips/atheros/ar71xx_chip.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_chip.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_cpudef.h ============================================================================== --- head/sys/mips/atheros/ar71xx_cpudef.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_cpudef.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_ehci.c ============================================================================== --- head/sys/mips/atheros/ar71xx_ehci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_ehci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Sam Leffler. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/atheros/ar71xx_fixup.c ============================================================================== --- head/sys/mips/atheros/ar71xx_fixup.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_fixup.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_fixup.h ============================================================================== --- head/sys/mips/atheros/ar71xx_fixup.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_fixup.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_gpio.c ============================================================================== --- head/sys/mips/atheros/ar71xx_gpio.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_gpio.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * Copyright (c) 2009, Luiz Otavio O Souza. * All rights reserved. Modified: head/sys/mips/atheros/ar71xx_gpiovar.h ============================================================================== --- head/sys/mips/atheros/ar71xx_gpiovar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_gpiovar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * Copyright (c) 2009, Luiz Otavio O Souza. * All rights reserved. Modified: head/sys/mips/atheros/ar71xx_machdep.c ============================================================================== --- head/sys/mips/atheros/ar71xx_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_ohci.c ============================================================================== --- head/sys/mips/atheros/ar71xx_ohci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_ohci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_pci.c ============================================================================== --- head/sys/mips/atheros/ar71xx_pci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_pci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_pci_bus_space.c ============================================================================== --- head/sys/mips/atheros/ar71xx_pci_bus_space.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_pci_bus_space.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_pci_bus_space.h ============================================================================== --- head/sys/mips/atheros/ar71xx_pci_bus_space.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_pci_bus_space.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * @@ -23,6 +25,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef __AR71XX_PCI_BUS_SPACEH__ Modified: head/sys/mips/atheros/ar71xx_setup.c ============================================================================== --- head/sys/mips/atheros/ar71xx_setup.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_setup.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_setup.h ============================================================================== --- head/sys/mips/atheros/ar71xx_setup.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_setup.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_spi.c ============================================================================== --- head/sys/mips/atheros/ar71xx_spi.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_spi.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xx_wdog.c ============================================================================== --- head/sys/mips/atheros/ar71xx_wdog.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xx_wdog.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar71xxreg.h ============================================================================== --- head/sys/mips/atheros/ar71xxreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar71xxreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/ar724x_chip.c ============================================================================== --- head/sys/mips/atheros/ar724x_chip.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar724x_chip.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar724x_chip.h ============================================================================== --- head/sys/mips/atheros/ar724x_chip.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar724x_chip.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar724x_pci.c ============================================================================== --- head/sys/mips/atheros/ar724x_pci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar724x_pci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * Copyright (c) 2011, Luiz Otavio O Souza. * All rights reserved. Modified: head/sys/mips/atheros/ar724xreg.h ============================================================================== --- head/sys/mips/atheros/ar724xreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar724xreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar91xx_chip.c ============================================================================== --- head/sys/mips/atheros/ar91xx_chip.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar91xx_chip.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar91xx_chip.h ============================================================================== --- head/sys/mips/atheros/ar91xx_chip.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar91xx_chip.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar91xxreg.h ============================================================================== --- head/sys/mips/atheros/ar91xxreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar91xxreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar933x_chip.c ============================================================================== --- head/sys/mips/atheros/ar933x_chip.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar933x_chip.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar933x_chip.h ============================================================================== --- head/sys/mips/atheros/ar933x_chip.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar933x_chip.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar933x_uart.h ============================================================================== --- head/sys/mips/atheros/ar933x_uart.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar933x_uart.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar933xreg.h ============================================================================== --- head/sys/mips/atheros/ar933xreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar933xreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar934x_chip.c ============================================================================== --- head/sys/mips/atheros/ar934x_chip.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar934x_chip.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar934x_chip.h ============================================================================== --- head/sys/mips/atheros/ar934x_chip.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar934x_chip.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/ar934xreg.h ============================================================================== --- head/sys/mips/atheros/ar934xreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/ar934xreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/if_arge.c ============================================================================== --- head/sys/mips/atheros/if_arge.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/if_arge.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/if_argevar.h ============================================================================== --- head/sys/mips/atheros/if_argevar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/if_argevar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/pcf2123_rtc.c ============================================================================== --- head/sys/mips/atheros/pcf2123_rtc.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/pcf2123_rtc.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/pcf2123reg.h ============================================================================== --- head/sys/mips/atheros/pcf2123reg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/pcf2123reg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/uart_bus_ar71xx.c ============================================================================== --- head/sys/mips/atheros/uart_bus_ar71xx.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_bus_ar71xx.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/uart_bus_ar933x.c ============================================================================== --- head/sys/mips/atheros/uart_bus_ar933x.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_bus_ar933x.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/uart_cpu_ar71xx.c ============================================================================== --- head/sys/mips/atheros/uart_cpu_ar71xx.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_cpu_ar71xx.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/atheros/uart_cpu_ar933x.c ============================================================================== --- head/sys/mips/atheros/uart_cpu_ar933x.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_cpu_ar933x.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/uart_dev_ar933x.c ============================================================================== --- head/sys/mips/atheros/uart_dev_ar933x.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_dev_ar933x.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/atheros/uart_dev_ar933x.h ============================================================================== --- head/sys/mips/atheros/uart_dev_ar933x.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/atheros/uart_dev_ar933x.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Adrian Chadd * All rights reserved. * Modified: head/sys/mips/beri/beri_machdep.c ============================================================================== --- head/sys/mips/beri/beri_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/beri/beri_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * Copyright (c) 2012-2014 Robert N. M. Watson * All rights reserved. Modified: head/sys/mips/beri/beri_pic.c ============================================================================== --- head/sys/mips/beri/beri_pic.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/beri/beri_pic.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017 Ruslan Bukin * Copyright (c) 2013 SRI International * All rights reserved. Modified: head/sys/mips/cavium/ciu.c ============================================================================== --- head/sys/mips/cavium/ciu.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/ciu.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/cryptocteon/cavium_crypto.c ============================================================================== --- head/sys/mips/cavium/cryptocteon/cavium_crypto.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/cryptocteon/cavium_crypto.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,7 +1,9 @@ /* * vim:sw=4 ts=8 */ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2009 David McCullough * * Copyright (c) 2003-2007 Cavium Networks (support@cavium.com). All rights Modified: head/sys/mips/cavium/if_octm.c ============================================================================== --- head/sys/mips/cavium/if_octm.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/if_octm.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2011 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/obio.c ============================================================================== --- head/sys/mips/cavium/obio.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/obio.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: obio.c,v 1.11 2003/07/15 00:25:05 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/mips/cavium/obiovar.h ============================================================================== --- head/sys/mips/cavium/obiovar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/obiovar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: obiovar.h,v 1.4 2003/06/16 17:40:53 thorpej Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2002, 2003 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/mips/cavium/octe/ethernet-mv88e61xx.c ============================================================================== --- head/sys/mips/cavium/octe/ethernet-mv88e61xx.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/ethernet-mv88e61xx.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/ethernet-mv88e61xx.h ============================================================================== --- head/sys/mips/cavium/octe/ethernet-mv88e61xx.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/ethernet-mv88e61xx.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/mv88e61xxphy.c ============================================================================== --- head/sys/mips/cavium/octe/mv88e61xxphy.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/mv88e61xxphy.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/mv88e61xxphyreg.h ============================================================================== --- head/sys/mips/cavium/octe/mv88e61xxphyreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/mv88e61xxphyreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/octe.c ============================================================================== --- head/sys/mips/cavium/octe/octe.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/octe.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/octebus.c ============================================================================== --- head/sys/mips/cavium/octe/octebus.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/octebus.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octe/octebusvar.h ============================================================================== --- head/sys/mips/cavium/octe/octebusvar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octe/octebusvar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octeon_cop2.h ============================================================================== --- head/sys/mips/cavium/octeon_cop2.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_cop2.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/cavium/octeon_gpio.c ============================================================================== --- head/sys/mips/cavium/octeon_gpio.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_gpio.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/cavium/octeon_gpiovar.h ============================================================================== --- head/sys/mips/cavium/octeon_gpiovar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_gpiovar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011, Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/cavium/octeon_machdep.c ============================================================================== --- head/sys/mips/cavium/octeon_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. * Modified: head/sys/mips/cavium/octeon_mp.c ============================================================================== --- head/sys/mips/cavium/octeon_mp.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_mp.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octeon_pci_console.c ============================================================================== --- head/sys/mips/cavium/octeon_pci_console.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_pci_console.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octeon_pmc.c ============================================================================== --- head/sys/mips/cavium/octeon_pmc.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_pmc.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Oleksandr Tymoshenko * All rights reserved. * Modified: head/sys/mips/cavium/octeon_rnd.c ============================================================================== --- head/sys/mips/cavium/octeon_rnd.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_rnd.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octeon_rtc.c ============================================================================== --- head/sys/mips/cavium/octeon_rtc.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_rtc.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octeon_wdog.c ============================================================================== --- head/sys/mips/cavium/octeon_wdog.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octeon_wdog.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, Oleksandr Tymoshenko * Copyright (c) 2010-2011, Juli Mallett * All rights reserved. Modified: head/sys/mips/cavium/octopci.c ============================================================================== --- head/sys/mips/cavium/octopci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octopci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2011 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/octopci_bus_space.c ============================================================================== --- head/sys/mips/cavium/octopci_bus_space.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octopci_bus_space.c Mon Nov 27 15:07:26 2017 (r326259) @@ -2,6 +2,8 @@ /*- * $Id: bus.h,v 1.6 2007/08/09 11:23:32 katta Exp $ * + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-4-Clause + * * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/mips/cavium/octopcivar.h ============================================================================== --- head/sys/mips/cavium/octopcivar.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/octopcivar.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Juli Mallett * All rights reserved. * Modified: head/sys/mips/cavium/uart_bus_octeonusart.c ============================================================================== --- head/sys/mips/cavium/uart_bus_octeonusart.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/uart_bus_octeonusart.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. * Modified: head/sys/mips/cavium/uart_cpu_octeonusart.c ============================================================================== --- head/sys/mips/cavium/uart_cpu_octeonusart.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/uart_cpu_octeonusart.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 M. Warner Losh * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. Modified: head/sys/mips/cavium/uart_dev_oct16550.c ============================================================================== --- head/sys/mips/cavium/uart_dev_oct16550.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/uart_dev_oct16550.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-2-Clause + * * Copyright (c) 2003 Marcel Moolenaar * All rights reserved. * Modified: head/sys/mips/cavium/usb/octusb.c ============================================================================== --- head/sys/mips/cavium/usb/octusb.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/usb/octusb.c Mon Nov 27 15:07:26 2017 (r326259) @@ -2,6 +2,8 @@ __FBSDID("$FreeBSD$"); /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Hans Petter Selasky. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/cavium/usb/octusb.h ============================================================================== --- head/sys/mips/cavium/usb/octusb.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/usb/octusb.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Hans Petter Selasky. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/cavium/usb/octusb_octeon.c ============================================================================== --- head/sys/mips/cavium/usb/octusb_octeon.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/cavium/usb/octusb_octeon.c Mon Nov 27 15:07:26 2017 (r326259) @@ -2,6 +2,8 @@ __FBSDID("$FreeBSD$"); /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/gxemul/gxemul_machdep.c ============================================================================== --- head/sys/mips/gxemul/gxemul_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/gxemul/gxemul_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Wojciech A. Koszek * All rights reserved. * Modified: head/sys/mips/gxemul/mpreg.h ============================================================================== --- head/sys/mips/gxemul/mpreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/gxemul/mpreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2012 Juli Mallett * All rights reserved. * Modified: head/sys/mips/idt/idt_machdep.c ============================================================================== --- head/sys/mips/idt/idt_machdep.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/idt/idt_machdep.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/idt/idtpci.c ============================================================================== --- head/sys/mips/idt/idtpci.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/idt/idtpci.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,6 +1,8 @@ /* $NetBSD: idtpci.c,v 1.1 2007/03/20 08:52:02 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2007 David Young. * Copyright (c) 2007 Oleskandr Tymoshenko. All rights reserved. * Modified: head/sys/mips/idt/idtreg.h ============================================================================== --- head/sys/mips/idt/idtreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/idt/idtreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/mips/idt/if_kr.c ============================================================================== --- head/sys/mips/idt/if_kr.c Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/idt/if_kr.c Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007 * Oleksandr Tymoshenko . All rights reserved. * Modified: head/sys/mips/idt/if_krreg.h ============================================================================== --- head/sys/mips/idt/if_krreg.h Mon Nov 27 15:04:10 2017 (r326258) +++ head/sys/mips/idt/if_krreg.h Mon Nov 27 15:07:26 2017 (r326259) @@ -1,4 +1,6 @@ *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:09:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E597E53CD8; Mon, 27 Nov 2017 15:09:02 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B94B751E3; Mon, 27 Nov 2017 15:09:02 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARF91Et096723; Mon, 27 Nov 2017 15:09:01 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF8qp0096624; Mon, 27 Nov 2017 15:08:52 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271508.vARF8qp0096624@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:08:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326260 - in head/sys/i386: acpica bios i386 ibcs2 include include/pc isa linux pci X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/i386: acpica bios i386 ibcs2 include include/pc isa linux pci X-SVN-Commit-Revision: 326260 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:09:02 -0000 Author: pfg Date: Mon Nov 27 15:08:52 2017 New Revision: 326260 URL: https://svnweb.freebsd.org/changeset/base/326260 Log: sys/i386: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/i386/acpica/acpi_machdep.c head/sys/i386/bios/smapi.c head/sys/i386/i386/atomic.c head/sys/i386/i386/bios.c head/sys/i386/i386/elf_machdep.c head/sys/i386/i386/gdb_machdep.c head/sys/i386/i386/geode.c head/sys/i386/i386/initcpu.c head/sys/i386/i386/io.c head/sys/i386/i386/k6_mem.c head/sys/i386/i386/minidump_machdep.c head/sys/i386/i386/mp_machdep.c head/sys/i386/i386/ptrace_machdep.c head/sys/i386/i386/vm86.c head/sys/i386/ibcs2/coff.h head/sys/i386/ibcs2/ibcs2_dirent.h head/sys/i386/ibcs2/ibcs2_errno.c head/sys/i386/ibcs2/ibcs2_errno.h head/sys/i386/ibcs2/ibcs2_fcntl.c head/sys/i386/ibcs2/ibcs2_fcntl.h head/sys/i386/ibcs2/ibcs2_ioctl.c head/sys/i386/ibcs2/ibcs2_ipc.c head/sys/i386/ibcs2/ibcs2_ipc.h head/sys/i386/ibcs2/ibcs2_isc.c head/sys/i386/ibcs2/ibcs2_mount.h head/sys/i386/ibcs2/ibcs2_msg.c head/sys/i386/ibcs2/ibcs2_other.c head/sys/i386/ibcs2/ibcs2_signal.c head/sys/i386/ibcs2/ibcs2_signal.h head/sys/i386/ibcs2/ibcs2_socksys.c head/sys/i386/ibcs2/ibcs2_socksys.h head/sys/i386/ibcs2/ibcs2_stat.c head/sys/i386/ibcs2/ibcs2_stat.h head/sys/i386/ibcs2/ibcs2_statfs.h head/sys/i386/ibcs2/ibcs2_stropts.h head/sys/i386/ibcs2/ibcs2_sysi86.c head/sys/i386/ibcs2/ibcs2_sysvec.c head/sys/i386/ibcs2/ibcs2_termios.h head/sys/i386/ibcs2/ibcs2_time.h head/sys/i386/ibcs2/ibcs2_types.h head/sys/i386/ibcs2/ibcs2_unistd.h head/sys/i386/ibcs2/ibcs2_ustat.h head/sys/i386/ibcs2/ibcs2_util.c head/sys/i386/ibcs2/ibcs2_util.h head/sys/i386/ibcs2/ibcs2_utime.h head/sys/i386/ibcs2/ibcs2_utsname.h head/sys/i386/ibcs2/ibcs2_xenix.c head/sys/i386/ibcs2/imgact_coff.c head/sys/i386/include/_bus.h head/sys/i386/include/atomic.h head/sys/i386/include/bootinfo.h head/sys/i386/include/bus_dma.h head/sys/i386/include/counter.h head/sys/i386/include/cputypes.h head/sys/i386/include/elan_mmcr.h head/sys/i386/include/gdb_machdep.h head/sys/i386/include/if_wl_wavelan.h head/sys/i386/include/intr_machdep.h head/sys/i386/include/ioctl_bt848.h head/sys/i386/include/ioctl_meteor.h head/sys/i386/include/iodev.h head/sys/i386/include/kdb.h head/sys/i386/include/memdev.h head/sys/i386/include/minidump.h head/sys/i386/include/mp_watchdog.h head/sys/i386/include/pc/bios.h head/sys/i386/include/pcaudioio.h head/sys/i386/include/pcb_ext.h head/sys/i386/include/pcpu.h head/sys/i386/include/pmc_mdep.h head/sys/i386/include/ppireg.h head/sys/i386/include/runq.h head/sys/i386/include/sf_buf.h head/sys/i386/include/sigframe.h head/sys/i386/include/smapi.h head/sys/i386/include/timerreg.h head/sys/i386/include/ucontext.h head/sys/i386/include/vm.h head/sys/i386/include/vm86.h head/sys/i386/isa/ccbque.h head/sys/i386/isa/elink.c head/sys/i386/isa/elink.h head/sys/i386/isa/pmtimer.c head/sys/i386/isa/prof_machdep.c head/sys/i386/linux/imgact_linux.c head/sys/i386/linux/linux.h head/sys/i386/linux/linux_dummy.c head/sys/i386/linux/linux_machdep.c head/sys/i386/linux/linux_ptrace.c head/sys/i386/linux/linux_sysvec.c head/sys/i386/pci/pci_cfgreg.c head/sys/i386/pci/pci_pir.c Modified: head/sys/i386/acpica/acpi_machdep.c ============================================================================== --- head/sys/i386/acpica/acpi_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/acpica/acpi_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/i386/bios/smapi.c ============================================================================== --- head/sys/i386/bios/smapi.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/bios/smapi.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Matthew N. Dodd * All rights reserved. * Modified: head/sys/i386/i386/atomic.c ============================================================================== --- head/sys/i386/i386/atomic.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/atomic.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Peter Jeremy * All rights reserved. * Modified: head/sys/i386/i386/bios.c ============================================================================== --- head/sys/i386/i386/bios.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/bios.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Michael Smith * Copyright (c) 1998 Jonathan Lemon * All rights reserved. Modified: head/sys/i386/i386/elf_machdep.c ============================================================================== --- head/sys/i386/i386/elf_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/elf_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/sys/i386/i386/gdb_machdep.c ============================================================================== --- head/sys/i386/i386/gdb_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/gdb_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/i386/geode.c ============================================================================== --- head/sys/i386/i386/geode.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/geode.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/i386/i386/initcpu.c ============================================================================== --- head/sys/i386/i386/initcpu.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/initcpu.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) KATO Takenori, 1997, 1998. * * All rights reserved. Unpublished rights reserved under the copyright Modified: head/sys/i386/i386/io.c ============================================================================== --- head/sys/i386/i386/io.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/io.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/i386/i386/k6_mem.c ============================================================================== --- head/sys/i386/i386/k6_mem.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/k6_mem.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Brian Fundakowski Feldman * All rights reserved. * Modified: head/sys/i386/i386/minidump_machdep.c ============================================================================== --- head/sys/i386/i386/minidump_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/minidump_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Peter Wemm * All rights reserved. * Modified: head/sys/i386/i386/mp_machdep.c ============================================================================== --- head/sys/i386/i386/mp_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/mp_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, by Steve Passe * All rights reserved. * Modified: head/sys/i386/i386/ptrace_machdep.c ============================================================================== --- head/sys/i386/i386/ptrace_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/ptrace_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/sys/i386/i386/vm86.c ============================================================================== --- head/sys/i386/i386/vm86.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/i386/vm86.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Jonathan Lemon * All rights reserved. * Modified: head/sys/i386/ibcs2/coff.h ============================================================================== --- head/sys/i386/ibcs2/coff.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/coff.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Sean Eric Fagan * Copyright (c) 1994 Søren Schmidt * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_dirent.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_dirent.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_dirent.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_errno.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_errno.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_errno.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,5 +1,7 @@ /*- * ibcs2_errno.c + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_errno.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_errno.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_errno.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,5 +1,7 @@ /*- * ibcs2_errno.h + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_fcntl.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_fcntl.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_fcntl.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_fcntl.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_fcntl.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_fcntl.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_ioctl.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_ioctl.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_ioctl.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,6 +1,8 @@ /* $NetBSD: ibcs2_ioctl.c,v 1.6 1995/03/14 15:12:28 scottb Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 1994, 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_ipc.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_ipc.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_ipc.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1995 Scott Bartram * Copyright (c) 1995 Steven Wallace * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_ipc.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_ipc.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_ipc.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Steven Wallace * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_isc.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_isc.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_isc.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Søren Schmidt * Copyright (c) 1994 Sean Eric Fagan * Copyright (c) 1995 Steven Wallace Modified: head/sys/i386/ibcs2/ibcs2_mount.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_mount.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_mount.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_msg.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_msg.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_msg.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1995 Steven Wallace * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_other.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_other.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_other.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1995 Steven Wallace * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_signal.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_signal.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_signal.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 Scott Bartram * Copyright (c) 1995 Steven Wallace * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_signal.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_signal.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_signal.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,6 +1,8 @@ /* $NetBSD: ibcs2_signal.h,v 1.7 1995/08/14 02:26:01 mycroft Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994, 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_socksys.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_socksys.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_socksys.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1994, 1995 Scott Bartram * Copyright (c) 1994 Arne H Juul * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_socksys.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_socksys.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_socksys.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1994, 1995 Scott Bartram * Copyright (c) 1994 Arne H Juul * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_stat.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_stat.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_stat.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 Scott Bartram * Copyright (c) 1995 Steven Wallace * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_stat.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_stat.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_stat.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_statfs.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_statfs.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_statfs.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_stropts.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_stropts.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_stropts.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,5 +1,7 @@ /*- * ibcs2_stropts.h + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_sysi86.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_sysi86.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_sysi86.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Søren Schmidt * Copyright (c) 1995 Steven Wallace * All rights reserved. Modified: head/sys/i386/ibcs2/ibcs2_sysvec.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_sysvec.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_sysvec.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Steven Wallace * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_termios.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_termios.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_termios.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_time.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_time.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_time.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_types.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_types.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_types.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_unistd.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_unistd.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_unistd.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_ustat.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_ustat.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_ustat.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_util.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_util.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_util.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Christos Zoulas * Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Scott Bartram Modified: head/sys/i386/ibcs2/ibcs2_util.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_util.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_util.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Christos Zoulas * Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Scott Bartram Modified: head/sys/i386/ibcs2/ibcs2_utime.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_utime.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_utime.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_utsname.h ============================================================================== --- head/sys/i386/ibcs2/ibcs2_utsname.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_utsname.h Mon Nov 27 15:08:52 2017 (r326260) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Scott Bartram * All rights reserved. * Modified: head/sys/i386/ibcs2/ibcs2_xenix.c ============================================================================== --- head/sys/i386/ibcs2/ibcs2_xenix.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/ibcs2_xenix.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Sean Eric Fagan * Copyright (c) 1994 Søren Schmidt * Copyright (c) 1995 Steven Wallace Modified: head/sys/i386/ibcs2/imgact_coff.c ============================================================================== --- head/sys/i386/ibcs2/imgact_coff.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/ibcs2/imgact_coff.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Sean Eric Fagan * Copyright (c) 1994 Søren Schmidt * All rights reserved. Modified: head/sys/i386/include/_bus.h ============================================================================== --- head/sys/i386/include/_bus.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/_bus.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. * All rights reserved. * Modified: head/sys/i386/include/atomic.h ============================================================================== --- head/sys/i386/include/atomic.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/atomic.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/i386/include/bootinfo.h ============================================================================== --- head/sys/i386/include/bootinfo.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/bootinfo.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994 by Rodney W. Grimes, Milwaukie, Oregon 97222 * All rights reserved. * Modified: head/sys/i386/include/bus_dma.h ============================================================================== --- head/sys/i386/include/bus_dma.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/bus_dma.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Scott Long * All rights reserved. * Modified: head/sys/i386/include/counter.h ============================================================================== --- head/sys/i386/include/counter.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/counter.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Konstantin Belousov * All rights reserved. * Modified: head/sys/i386/include/cputypes.h ============================================================================== --- head/sys/i386/include/cputypes.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/cputypes.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1993 Christopher G. Demetriou * All rights reserved. * Modified: head/sys/i386/include/elan_mmcr.h ============================================================================== --- head/sys/i386/include/elan_mmcr.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/elan_mmcr.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 John Birrell * All rights reserved. * Modified: head/sys/i386/include/gdb_machdep.h ============================================================================== --- head/sys/i386/include/gdb_machdep.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/gdb_machdep.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/include/if_wl_wavelan.h ============================================================================== --- head/sys/i386/include/if_wl_wavelan.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/if_wl_wavelan.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,5 +1,7 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: Modified: head/sys/i386/include/intr_machdep.h ============================================================================== --- head/sys/i386/include/intr_machdep.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/intr_machdep.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/i386/include/ioctl_bt848.h ============================================================================== --- head/sys/i386/include/ioctl_bt848.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/ioctl_bt848.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 David O'Brien * All rights reserved. * Modified: head/sys/i386/include/ioctl_meteor.h ============================================================================== --- head/sys/i386/include/ioctl_meteor.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/ioctl_meteor.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 David O'Brien * All rights reserved. * Modified: head/sys/i386/include/iodev.h ============================================================================== --- head/sys/i386/include/iodev.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/iodev.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/i386/include/kdb.h ============================================================================== --- head/sys/i386/include/kdb.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/kdb.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/include/memdev.h ============================================================================== --- head/sys/i386/include/memdev.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/memdev.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/i386/include/minidump.h ============================================================================== --- head/sys/i386/include/minidump.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/minidump.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Peter Wemm * All rights reserved. * Modified: head/sys/i386/include/mp_watchdog.h ============================================================================== --- head/sys/i386/include/mp_watchdog.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/mp_watchdog.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Robert N. M. Watson * All rights reserved. * Modified: head/sys/i386/include/pc/bios.h ============================================================================== --- head/sys/i386/include/pc/bios.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/pc/bios.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Michael Smith * Copyright (c) 1998 Jonathan Lemon * All rights reserved. Modified: head/sys/i386/include/pcaudioio.h ============================================================================== --- head/sys/i386/include/pcaudioio.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/pcaudioio.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Søren Schmidt * All rights reserved. * Modified: head/sys/i386/include/pcb_ext.h ============================================================================== --- head/sys/i386/include/pcb_ext.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/pcb_ext.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Jonathan Lemon * All rights reserved. * Modified: head/sys/i386/include/pcpu.h ============================================================================== --- head/sys/i386/include/pcpu.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/pcpu.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) Peter Wemm * All rights reserved. * Modified: head/sys/i386/include/pmc_mdep.h ============================================================================== --- head/sys/i386/include/pmc_mdep.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/pmc_mdep.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2005,2008 Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/i386/include/ppireg.h ============================================================================== --- head/sys/i386/include/ppireg.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/ppireg.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/i386/include/runq.h ============================================================================== --- head/sys/i386/include/runq.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/runq.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder * All rights reserved. * Modified: head/sys/i386/include/sf_buf.h ============================================================================== --- head/sys/i386/include/sf_buf.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/sf_buf.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Gleb Smirnoff * All rights reserved. * Modified: head/sys/i386/include/sigframe.h ============================================================================== --- head/sys/i386/include/sigframe.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/sigframe.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/include/smapi.h ============================================================================== --- head/sys/i386/include/smapi.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/smapi.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Matthew N. Dodd * All rights reserved. * Modified: head/sys/i386/include/timerreg.h ============================================================================== --- head/sys/i386/include/timerreg.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/timerreg.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/i386/include/ucontext.h ============================================================================== --- head/sys/i386/include/ucontext.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/ucontext.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/include/vm.h ============================================================================== --- head/sys/i386/include/vm.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/vm.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/i386/include/vm86.h ============================================================================== --- head/sys/i386/include/vm86.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/include/vm86.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Jonathan Lemon * All rights reserved. * Modified: head/sys/i386/isa/ccbque.h ============================================================================== --- head/sys/i386/isa/ccbque.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/isa/ccbque.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,5 +1,7 @@ /* $NetBSD$ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * [NetBSD for NEC PC98 series] * Copyright (c) 1994, 1995, 1996 NetBSD/pc98 porting staff. * All rights reserved. Modified: head/sys/i386/isa/elink.c ============================================================================== --- head/sys/i386/isa/elink.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/isa/elink.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Charles Hannum. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/i386/isa/elink.h ============================================================================== --- head/sys/i386/isa/elink.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/isa/elink.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Charles Hannum. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/i386/isa/pmtimer.c ============================================================================== --- head/sys/i386/isa/pmtimer.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/isa/pmtimer.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/i386/isa/prof_machdep.c ============================================================================== --- head/sys/i386/isa/prof_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/isa/prof_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996 Bruce D. Evans. * All rights reserved. * Modified: head/sys/i386/linux/imgact_linux.c ============================================================================== --- head/sys/i386/linux/imgact_linux.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/imgact_linux.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1996 Søren Schmidt * All rights reserved. * Modified: head/sys/i386/linux/linux.h ============================================================================== --- head/sys/i386/linux/linux.h Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/linux.h Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1996 Søren Schmidt * All rights reserved. * Modified: head/sys/i386/linux/linux_dummy.c ============================================================================== --- head/sys/i386/linux/linux_dummy.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/linux_dummy.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/i386/linux/linux_machdep.c ============================================================================== --- head/sys/i386/linux/linux_machdep.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/linux_machdep.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000 Marcel Moolenaar * All rights reserved. * Modified: head/sys/i386/linux/linux_ptrace.c ============================================================================== --- head/sys/i386/linux/linux_ptrace.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/linux_ptrace.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Alexander Kabaev * All rights reserved. * Modified: head/sys/i386/linux/linux_sysvec.c ============================================================================== --- head/sys/i386/linux/linux_sysvec.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/linux/linux_sysvec.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1996 Søren Schmidt * All rights reserved. * Modified: head/sys/i386/pci/pci_cfgreg.c ============================================================================== --- head/sys/i386/pci/pci_cfgreg.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/pci/pci_cfgreg.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 2000, Michael Smith * Copyright (c) 2000, BSDi Modified: head/sys/i386/pci/pci_pir.c ============================================================================== --- head/sys/i386/pci/pci_pir.c Mon Nov 27 15:07:26 2017 (r326259) +++ head/sys/i386/pci/pci_pir.c Mon Nov 27 15:08:52 2017 (r326260) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 2000, Michael Smith * Copyright (c) 2000, BSDi From owner-svn-src-head@freebsd.org Mon Nov 27 15:10:11 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6F7AE53D7A; Mon, 27 Nov 2017 15:10:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 70D987533F; Mon, 27 Nov 2017 15:10:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFAA18096934; Mon, 27 Nov 2017 15:10:10 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARF9xgW096794; Mon, 27 Nov 2017 15:09:59 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271509.vARF9xgW096794@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:09:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326261 - in head/sys/powerpc: aim booke cpufreq fpu include mambo mpc85xx ofw powermac powerpc ps3 pseries psim X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/powerpc: aim booke cpufreq fpu include mambo mpc85xx ofw powermac powerpc ps3 pseries psim X-SVN-Commit-Revision: 326261 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:10:12 -0000 Author: pfg Date: Mon Nov 27 15:09:59 2017 New Revision: 326261 URL: https://svnweb.freebsd.org/changeset/base/326261 Log: sys/powerpc: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/powerpc/aim/mmu_oea.c head/sys/powerpc/aim/mmu_oea64.c head/sys/powerpc/aim/mmu_oea64.h head/sys/powerpc/aim/moea64_native.c head/sys/powerpc/aim/mp_cpudep.c head/sys/powerpc/aim/slb.c head/sys/powerpc/booke/machdep_e500.c head/sys/powerpc/booke/machdep_ppc4xx.c head/sys/powerpc/booke/mp_cpudep.c head/sys/powerpc/booke/platform_bare.c head/sys/powerpc/booke/pmap.c head/sys/powerpc/cpufreq/dfs.c head/sys/powerpc/cpufreq/pcr.c head/sys/powerpc/cpufreq/pmufreq.c head/sys/powerpc/fpu/fpu_extern.h head/sys/powerpc/include/_bus.h head/sys/powerpc/include/_inttypes.h head/sys/powerpc/include/altivec.h head/sys/powerpc/include/atomic.h head/sys/powerpc/include/bat.h head/sys/powerpc/include/bus.h head/sys/powerpc/include/bus_dma.h head/sys/powerpc/include/counter.h head/sys/powerpc/include/cpufunc.h head/sys/powerpc/include/dbdma.h head/sys/powerpc/include/elf.h head/sys/powerpc/include/gdb_machdep.h head/sys/powerpc/include/intr_machdep.h head/sys/powerpc/include/kdb.h head/sys/powerpc/include/machdep.h head/sys/powerpc/include/md_var.h head/sys/powerpc/include/memdev.h head/sys/powerpc/include/metadata.h head/sys/powerpc/include/mmuvar.h head/sys/powerpc/include/ofw_machdep.h head/sys/powerpc/include/openpicreg.h head/sys/powerpc/include/openpicvar.h head/sys/powerpc/include/pcpu.h head/sys/powerpc/include/platformvar.h head/sys/powerpc/include/pmap.h head/sys/powerpc/include/rtas.h head/sys/powerpc/include/runq.h head/sys/powerpc/include/sc_machdep.h head/sys/powerpc/include/slb.h head/sys/powerpc/include/smp.h head/sys/powerpc/include/spr.h head/sys/powerpc/include/sr.h head/sys/powerpc/include/vdso.h head/sys/powerpc/include/vm.h head/sys/powerpc/mambo/mambo.c head/sys/powerpc/mambo/mambo_console.c head/sys/powerpc/mambo/mambo_disk.c head/sys/powerpc/mambo/mambocall.h head/sys/powerpc/mpc85xx/atpic.c head/sys/powerpc/mpc85xx/ds1553_bus_fdt.c head/sys/powerpc/mpc85xx/ds1553_core.c head/sys/powerpc/mpc85xx/ds1553_reg.h head/sys/powerpc/mpc85xx/i2c.c head/sys/powerpc/mpc85xx/isa.c head/sys/powerpc/mpc85xx/lbc.c head/sys/powerpc/mpc85xx/lbc.h head/sys/powerpc/mpc85xx/mpc85xx.c head/sys/powerpc/mpc85xx/mpc85xx.h head/sys/powerpc/mpc85xx/pci_mpc85xx.c head/sys/powerpc/mpc85xx/platform_mpc85xx.c head/sys/powerpc/ofw/ofw_machdep.c head/sys/powerpc/ofw/ofw_pcib_pci.c head/sys/powerpc/ofw/ofw_pcibus.c head/sys/powerpc/ofw/ofw_pcibus.h head/sys/powerpc/ofw/ofw_real.c head/sys/powerpc/ofw/ofw_syscons.c head/sys/powerpc/ofw/ofw_syscons.h head/sys/powerpc/ofw/openpic_ofw.c head/sys/powerpc/ofw/rtas.c head/sys/powerpc/powermac/ata_dbdma.c head/sys/powerpc/powermac/ata_dbdma.h head/sys/powerpc/powermac/ata_kauai.c head/sys/powerpc/powermac/ata_macio.c head/sys/powerpc/powermac/atibl.c head/sys/powerpc/powermac/cpcht.c head/sys/powerpc/powermac/cuda.c head/sys/powerpc/powermac/dbdma.c head/sys/powerpc/powermac/dbdmavar.h head/sys/powerpc/powermac/fcu.c head/sys/powerpc/powermac/grackle.c head/sys/powerpc/powermac/gracklevar.h head/sys/powerpc/powermac/hrowpic.c head/sys/powerpc/powermac/hrowpicvar.h head/sys/powerpc/powermac/kiic.c head/sys/powerpc/powermac/macgpio.c head/sys/powerpc/powermac/macgpiovar.h head/sys/powerpc/powermac/macio.c head/sys/powerpc/powermac/maciovar.h head/sys/powerpc/powermac/nvbl.c head/sys/powerpc/powermac/platform_powermac.c head/sys/powerpc/powermac/pmu.c head/sys/powerpc/powermac/pmuvar.h head/sys/powerpc/powermac/powermac_thermal.c head/sys/powerpc/powermac/powermac_thermal.h head/sys/powerpc/powermac/pswitch.c head/sys/powerpc/powermac/smu.c head/sys/powerpc/powermac/smusat.c head/sys/powerpc/powermac/uninorth.c head/sys/powerpc/powermac/uninorthpci.c head/sys/powerpc/powermac/uninorthvar.h head/sys/powerpc/powermac/vcoregpio.c head/sys/powerpc/powermac/viareg.h head/sys/powerpc/powerpc/altivec.c head/sys/powerpc/powerpc/autoconf.c head/sys/powerpc/powerpc/bus_machdep.c head/sys/powerpc/powerpc/busdma_machdep.c head/sys/powerpc/powerpc/clock.c head/sys/powerpc/powerpc/copyinout.c head/sys/powerpc/powerpc/copystr.c head/sys/powerpc/powerpc/cpu.c head/sys/powerpc/powerpc/db_hwwatch.c head/sys/powerpc/powerpc/dump_machdep.c head/sys/powerpc/powerpc/elf32_machdep.c head/sys/powerpc/powerpc/elf64_machdep.c head/sys/powerpc/powerpc/exec_machdep.c head/sys/powerpc/powerpc/fpu.c head/sys/powerpc/powerpc/fuswintr.c head/sys/powerpc/powerpc/gdb_machdep.c head/sys/powerpc/powerpc/mp_machdep.c head/sys/powerpc/powerpc/openpic.c head/sys/powerpc/powerpc/platform.c head/sys/powerpc/powerpc/pmap_dispatch.c head/sys/powerpc/powerpc/sc_machdep.c head/sys/powerpc/powerpc/stack_machdep.c head/sys/powerpc/powerpc/suswintr.c head/sys/powerpc/powerpc/syncicache.c head/sys/powerpc/powerpc/sys_machdep.c head/sys/powerpc/ps3/ehci_ps3.c head/sys/powerpc/ps3/if_glc.c head/sys/powerpc/ps3/if_glcreg.h head/sys/powerpc/ps3/mmu_ps3.c head/sys/powerpc/ps3/ohci_ps3.c head/sys/powerpc/ps3/platform_ps3.c head/sys/powerpc/ps3/ps3_syscons.c head/sys/powerpc/ps3/ps3bus.c head/sys/powerpc/ps3/ps3bus.h head/sys/powerpc/ps3/ps3cdrom.c head/sys/powerpc/ps3/ps3disk.c head/sys/powerpc/ps3/ps3pic.c head/sys/powerpc/pseries/mmu_phyp.c head/sys/powerpc/pseries/phyp-hvcall.h head/sys/powerpc/pseries/phyp_console.c head/sys/powerpc/pseries/phyp_llan.c head/sys/powerpc/pseries/phyp_vscsi.c head/sys/powerpc/pseries/platform_chrp.c head/sys/powerpc/pseries/plpar_iommu.c head/sys/powerpc/pseries/plpar_iommu.h head/sys/powerpc/pseries/plpar_pcibus.c head/sys/powerpc/pseries/rtas_dev.c head/sys/powerpc/pseries/rtas_pci.c head/sys/powerpc/pseries/vdevice.c head/sys/powerpc/pseries/xics.c head/sys/powerpc/psim/ata_iobus.c head/sys/powerpc/psim/iobus.c head/sys/powerpc/psim/iobusvar.h head/sys/powerpc/psim/openpic_iobus.c head/sys/powerpc/psim/uart_iobus.c Modified: head/sys/powerpc/aim/mmu_oea.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/mmu_oea.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-4-Clause + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/aim/mmu_oea64.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea64.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/mmu_oea64.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2015 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/aim/mmu_oea64.h ============================================================================== --- head/sys/powerpc/aim/mmu_oea64.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/mmu_oea64.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2010 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/aim/moea64_native.c ============================================================================== --- head/sys/powerpc/aim/moea64_native.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/moea64_native.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND 4-Clause-BSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/aim/mp_cpudep.c ============================================================================== --- head/sys/powerpc/aim/mp_cpudep.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/mp_cpudep.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/powerpc/aim/slb.c ============================================================================== --- head/sys/powerpc/aim/slb.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/aim/slb.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/booke/machdep_e500.c ============================================================================== --- head/sys/powerpc/booke/machdep_e500.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/booke/machdep_e500.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2012 Semihalf. * All rights reserved. * Modified: head/sys/powerpc/booke/machdep_ppc4xx.c ============================================================================== --- head/sys/powerpc/booke/machdep_ppc4xx.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/booke/machdep_ppc4xx.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2012 Semihalf. * All rights reserved. * Modified: head/sys/powerpc/booke/mp_cpudep.c ============================================================================== --- head/sys/powerpc/booke/mp_cpudep.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/booke/mp_cpudep.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2009 Semihalf, Rafal Jaworowski * All rights reserved. * Modified: head/sys/powerpc/booke/platform_bare.c ============================================================================== --- head/sys/powerpc/booke/platform_bare.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/booke/platform_bare.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2012 Semihalf. * All rights reserved. * Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/booke/pmap.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2007-2009 Semihalf, Rafal Jaworowski * Copyright (C) 2006 Semihalf, Marian Balakowicz * All rights reserved. Modified: head/sys/powerpc/cpufreq/dfs.c ============================================================================== --- head/sys/powerpc/cpufreq/dfs.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/cpufreq/dfs.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/cpufreq/pcr.c ============================================================================== --- head/sys/powerpc/cpufreq/pcr.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/cpufreq/pcr.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/cpufreq/pmufreq.c ============================================================================== --- head/sys/powerpc/cpufreq/pmufreq.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/cpufreq/pmufreq.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Justin Hibbits * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. Modified: head/sys/powerpc/fpu/fpu_extern.h ============================================================================== --- head/sys/powerpc/fpu/fpu_extern.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/fpu/fpu_extern.h Mon Nov 27 15:09:59 2017 (r326261) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1995 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/include/_bus.h ============================================================================== --- head/sys/powerpc/include/_bus.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/_bus.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. * All rights reserved. * Modified: head/sys/powerpc/include/_inttypes.h ============================================================================== --- head/sys/powerpc/include/_inttypes.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/_inttypes.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/include/altivec.h ============================================================================== --- head/sys/powerpc/include/altivec.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/altivec.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Nathan Whitehorn * All rights reserved * Modified: head/sys/powerpc/include/atomic.h ============================================================================== --- head/sys/powerpc/include/atomic.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/atomic.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marcel Moolenaar * Copyright (c) 2001 Benno Rice * Copyright (c) 2001 David E. O'Brien Modified: head/sys/powerpc/include/bat.h ============================================================================== --- head/sys/powerpc/include/bat.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/bat.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-4-Clause + * * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/include/bus.h ============================================================================== --- head/sys/powerpc/include/bus.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/bus.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,6 +1,8 @@ /* $NetBSD: bus.h,v 1.11 2003/07/28 17:35:54 thorpej Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-4-Clause + * * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/include/bus_dma.h ============================================================================== --- head/sys/powerpc/include/bus_dma.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/bus_dma.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Scott Long * All rights reserved. * Modified: head/sys/powerpc/include/counter.h ============================================================================== --- head/sys/powerpc/include/counter.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/counter.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, 2013 Konstantin Belousov * All rights reserved. * Modified: head/sys/powerpc/include/cpufunc.h ============================================================================== --- head/sys/powerpc/include/cpufunc.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/cpufunc.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/powerpc/include/dbdma.h ============================================================================== --- head/sys/powerpc/include/dbdma.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/dbdma.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Nathan Whitehorn * All rights reserved * Modified: head/sys/powerpc/include/elf.h ============================================================================== --- head/sys/powerpc/include/elf.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/elf.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 David E. O'Brien * Copyright (c) 1996-1997 John D. Polstra. * All rights reserved. Modified: head/sys/powerpc/include/gdb_machdep.h ============================================================================== --- head/sys/powerpc/include/gdb_machdep.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/gdb_machdep.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Marcel Moolenaar * All rights reserved. * Modified: head/sys/powerpc/include/intr_machdep.h ============================================================================== --- head/sys/powerpc/include/intr_machdep.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/intr_machdep.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/include/kdb.h ============================================================================== --- head/sys/powerpc/include/kdb.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/kdb.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/powerpc/include/machdep.h ============================================================================== --- head/sys/powerpc/include/machdep.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/machdep.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2012 Semihalf * All rights reserved. * Modified: head/sys/powerpc/include/md_var.h ============================================================================== --- head/sys/powerpc/include/md_var.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/md_var.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/powerpc/include/memdev.h ============================================================================== --- head/sys/powerpc/include/memdev.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/memdev.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/powerpc/include/metadata.h ============================================================================== --- head/sys/powerpc/include/metadata.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/metadata.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/powerpc/include/mmuvar.h ============================================================================== --- head/sys/powerpc/include/mmuvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/mmuvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Peter Grehan * All rights reserved. * Modified: head/sys/powerpc/include/ofw_machdep.h ============================================================================== --- head/sys/powerpc/include/ofw_machdep.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/ofw_machdep.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 by Thomas Moestl . * All rights reserved. * Modified: head/sys/powerpc/include/openpicreg.h ============================================================================== --- head/sys/powerpc/include/openpicreg.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/openpicreg.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000 Tsubai Masanari. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/include/openpicvar.h ============================================================================== --- head/sys/powerpc/include/openpicvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/openpicvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/include/pcpu.h ============================================================================== --- head/sys/powerpc/include/pcpu.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/pcpu.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen * Copyright (c) Peter Wemm * All rights reserved. Modified: head/sys/powerpc/include/platformvar.h ============================================================================== --- head/sys/powerpc/include/platformvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/platformvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Peter Grehan * All rights reserved. * Modified: head/sys/powerpc/include/pmap.h ============================================================================== --- head/sys/powerpc/include/pmap.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/pmap.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-3-Clause AND BSD-4-Clause * * Copyright (C) 2006 Semihalf, Marian Balakowicz * All rights reserved. Modified: head/sys/powerpc/include/rtas.h ============================================================================== --- head/sys/powerpc/include/rtas.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/rtas.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/include/runq.h ============================================================================== --- head/sys/powerpc/include/runq.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/runq.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder * All rights reserved. * Modified: head/sys/powerpc/include/sc_machdep.h ============================================================================== --- head/sys/powerpc/include/sc_machdep.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/sc_machdep.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * All rights reserved. * Modified: head/sys/powerpc/include/slb.h ============================================================================== --- head/sys/powerpc/include/slb.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/slb.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2009 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/include/smp.h ============================================================================== --- head/sys/powerpc/include/smp.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/smp.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/powerpc/include/spr.h ============================================================================== --- head/sys/powerpc/include/spr.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/spr.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/powerpc/include/sr.h ============================================================================== --- head/sys/powerpc/include/sr.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/sr.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/include/vdso.h ============================================================================== --- head/sys/powerpc/include/vdso.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/vdso.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov . * All rights reserved. * Modified: head/sys/powerpc/include/vm.h ============================================================================== --- head/sys/powerpc/include/vm.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/include/vm.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alan L. Cox * All rights reserved. * Modified: head/sys/powerpc/mambo/mambo.c ============================================================================== --- head/sys/powerpc/mambo/mambo.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mambo/mambo.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mambo/mambo_console.c ============================================================================== --- head/sys/powerpc/mambo/mambo_console.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mambo/mambo_console.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mambo/mambo_disk.c ============================================================================== --- head/sys/powerpc/mambo/mambo_disk.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mambo/mambo_disk.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mambo/mambocall.h ============================================================================== --- head/sys/powerpc/mambo/mambocall.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mambo/mambocall.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mpc85xx/atpic.c ============================================================================== --- head/sys/powerpc/mpc85xx/atpic.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/atpic.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Marcel Moolenaar * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mpc85xx/ds1553_bus_fdt.c ============================================================================== --- head/sys/powerpc/mpc85xx/ds1553_bus_fdt.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/ds1553_bus_fdt.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2006-2008 Semihalf, Grzegorz Bernacki * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/ds1553_core.c ============================================================================== --- head/sys/powerpc/mpc85xx/ds1553_core.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/ds1553_core.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2006-2008 Semihalf, Grzegorz Bernacki * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/ds1553_reg.h ============================================================================== --- head/sys/powerpc/mpc85xx/ds1553_reg.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/ds1553_reg.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2006-2008 Semihalf, Grzegorz Bernacki * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/i2c.c ============================================================================== --- head/sys/powerpc/mpc85xx/i2c.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/i2c.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008-2009 Semihalf, Michal Hajduk * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/isa.c ============================================================================== --- head/sys/powerpc/mpc85xx/isa.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/isa.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Marcel Moolenaar * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/mpc85xx/lbc.c ============================================================================== --- head/sys/powerpc/mpc85xx/lbc.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/lbc.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2006-2008, Juniper Networks, Inc. * Copyright (c) 2008 Semihalf, Rafal Czubak * Copyright (c) 2009 The FreeBSD Foundation Modified: head/sys/powerpc/mpc85xx/lbc.h ============================================================================== --- head/sys/powerpc/mpc85xx/lbc.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/lbc.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2008, Juniper Networks, Inc. * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/mpc85xx.c ============================================================================== --- head/sys/powerpc/mpc85xx/mpc85xx.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/mpc85xx.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Semihalf, Rafal Jaworowski * All rights reserved. * Modified: head/sys/powerpc/mpc85xx/mpc85xx.h ============================================================================== --- head/sys/powerpc/mpc85xx/mpc85xx.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/mpc85xx.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Semihalf, Rafal Jaworowski * Copyright 2006 by Juniper Networks. * All rights reserved. Modified: head/sys/powerpc/mpc85xx/pci_mpc85xx.c ============================================================================== --- head/sys/powerpc/mpc85xx/pci_mpc85xx.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/pci_mpc85xx.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2006-2007 by Juniper Networks. * Copyright 2008 Semihalf. * Copyright 2010 The FreeBSD Foundation Modified: head/sys/powerpc/mpc85xx/platform_mpc85xx.c ============================================================================== --- head/sys/powerpc/mpc85xx/platform_mpc85xx.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/mpc85xx/platform_mpc85xx.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2012 Semihalf. * All rights reserved. * Modified: head/sys/powerpc/ofw/ofw_machdep.c ============================================================================== --- head/sys/powerpc/ofw/ofw_machdep.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_machdep.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1996 Wolfgang Solfrank. * Copyright (C) 1996 TooLs GmbH. * All rights reserved. Modified: head/sys/powerpc/ofw/ofw_pcib_pci.c ============================================================================== --- head/sys/powerpc/ofw/ofw_pcib_pci.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_pcib_pci.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/sys/powerpc/ofw/ofw_pcibus.c ============================================================================== --- head/sys/powerpc/ofw/ofw_pcibus.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_pcibus.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 2000, Michael Smith * Copyright (c) 2000, BSDi Modified: head/sys/powerpc/ofw/ofw_pcibus.h ============================================================================== --- head/sys/powerpc/ofw/ofw_pcibus.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_pcibus.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/ofw/ofw_real.c ============================================================================== --- head/sys/powerpc/ofw/ofw_real.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_real.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,6 +1,8 @@ /* $NetBSD: Locore.c,v 1.7 2000/08/20 07:04:59 tsubai Exp $ */ /*- + * SPDX-License-Identifier:BSD-4-Clause AND BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1996 Wolfgang Solfrank. * Copyright (C) 1995, 1996 TooLs GmbH. * All rights reserved. Modified: head/sys/powerpc/ofw/ofw_syscons.c ============================================================================== --- head/sys/powerpc/ofw/ofw_syscons.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_syscons.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Peter Grehan * All rights reserved. * Modified: head/sys/powerpc/ofw/ofw_syscons.h ============================================================================== --- head/sys/powerpc/ofw/ofw_syscons.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/ofw_syscons.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Peter Grehan * All rights reserved. * Modified: head/sys/powerpc/ofw/openpic_ofw.c ============================================================================== --- head/sys/powerpc/ofw/openpic_ofw.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/openpic_ofw.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2003 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/ofw/rtas.c ============================================================================== --- head/sys/powerpc/ofw/rtas.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/ofw/rtas.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/ata_dbdma.c ============================================================================== --- head/sys/powerpc/powermac/ata_dbdma.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/ata_dbdma.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/ata_dbdma.h ============================================================================== --- head/sys/powerpc/powermac/ata_dbdma.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/ata_dbdma.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/ata_kauai.c ============================================================================== --- head/sys/powerpc/powermac/ata_kauai.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/ata_kauai.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2004 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/ata_macio.c ============================================================================== --- head/sys/powerpc/powermac/ata_macio.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/ata_macio.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2002 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/atibl.c ============================================================================== --- head/sys/powerpc/powermac/atibl.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/atibl.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Justin Hibbits * All rights reserved. * Modified: head/sys/powerpc/powermac/cpcht.c ============================================================================== --- head/sys/powerpc/powermac/cpcht.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/cpcht.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008-2010 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/cuda.c ============================================================================== --- head/sys/powerpc/powermac/cuda.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/cuda.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2006 Michael Lorenz * Copyright 2008 by Nathan Whitehorn * All rights reserved. Modified: head/sys/powerpc/powermac/dbdma.c ============================================================================== --- head/sys/powerpc/powermac/dbdma.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/dbdma.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Nathan Whitehorn * All rights reserved * Modified: head/sys/powerpc/powermac/dbdmavar.h ============================================================================== --- head/sys/powerpc/powermac/dbdmavar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/dbdmavar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Nathan Whitehorn * All rights reserved * Modified: head/sys/powerpc/powermac/fcu.c ============================================================================== --- head/sys/powerpc/powermac/fcu.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/fcu.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Andreas Tobler * All rights reserved. * Modified: head/sys/powerpc/powermac/grackle.c ============================================================================== --- head/sys/powerpc/powermac/grackle.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/grackle.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2003 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/gracklevar.h ============================================================================== --- head/sys/powerpc/powermac/gracklevar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/gracklevar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2003 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/hrowpic.c ============================================================================== --- head/sys/powerpc/powermac/hrowpic.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/hrowpic.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2003 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/hrowpicvar.h ============================================================================== --- head/sys/powerpc/powermac/hrowpicvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/hrowpicvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2003 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/kiic.c ============================================================================== --- head/sys/powerpc/powermac/kiic.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/kiic.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Tsubai Masanari. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/macgpio.c ============================================================================== --- head/sys/powerpc/powermac/macgpio.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/macgpio.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/macgpiovar.h ============================================================================== --- head/sys/powerpc/powermac/macgpiovar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/macgpiovar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2008 by Nathan Whitehorn. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/macio.c ============================================================================== --- head/sys/powerpc/powermac/macio.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/macio.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2002 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/maciovar.h ============================================================================== --- head/sys/powerpc/powermac/maciovar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/maciovar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 2002 by Peter Grehan. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/powerpc/powermac/nvbl.c ============================================================================== --- head/sys/powerpc/powermac/nvbl.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/nvbl.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Justin Hibbits * All rights reserved. * Modified: head/sys/powerpc/powermac/platform_powermac.c ============================================================================== --- head/sys/powerpc/powermac/platform_powermac.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/platform_powermac.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marcel Moolenaar * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. Modified: head/sys/powerpc/powermac/pmu.c ============================================================================== --- head/sys/powerpc/powermac/pmu.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/pmu.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Michael Lorenz * Copyright 2008 by Nathan Whitehorn * All rights reserved. Modified: head/sys/powerpc/powermac/pmuvar.h ============================================================================== --- head/sys/powerpc/powermac/pmuvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/pmuvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Michael Lorenz * Copyright (c) 2008 Nathan Whitehorn * All rights reserved. Modified: head/sys/powerpc/powermac/powermac_thermal.c ============================================================================== --- head/sys/powerpc/powermac/powermac_thermal.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/powermac_thermal.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2011 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/powermac_thermal.h ============================================================================== --- head/sys/powerpc/powermac/powermac_thermal.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/powermac_thermal.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2011 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/pswitch.c ============================================================================== --- head/sys/powerpc/powermac/pswitch.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/pswitch.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/powermac/smu.c ============================================================================== --- head/sys/powerpc/powermac/smu.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/smu.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/smusat.c ============================================================================== --- head/sys/powerpc/powermac/smusat.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/smusat.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/uninorth.c ============================================================================== --- head/sys/powerpc/powermac/uninorth.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/uninorth.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/powermac/uninorthpci.c ============================================================================== --- head/sys/powerpc/powermac/uninorthpci.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/uninorthpci.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/powermac/uninorthvar.h ============================================================================== --- head/sys/powerpc/powermac/uninorthvar.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/uninorthvar.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2002 Benno Rice. * All rights reserved. * Modified: head/sys/powerpc/powermac/vcoregpio.c ============================================================================== --- head/sys/powerpc/powermac/vcoregpio.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/vcoregpio.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powermac/viareg.h ============================================================================== --- head/sys/powerpc/powermac/viareg.h Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powermac/viareg.h Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Nathan Whitehorn * All rights reserved. * Modified: head/sys/powerpc/powerpc/altivec.c ============================================================================== --- head/sys/powerpc/powerpc/altivec.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powerpc/altivec.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1996 Wolfgang Solfrank. * Copyright (C) 1996 TooLs GmbH. * All rights reserved. Modified: head/sys/powerpc/powerpc/autoconf.c ============================================================================== --- head/sys/powerpc/powerpc/autoconf.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powerpc/autoconf.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/powerpc/powerpc/bus_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/bus_machdep.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powerpc/bus_machdep.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Semihalf, Rafal Jaworowski * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. Modified: head/sys/powerpc/powerpc/busdma_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/busdma_machdep.c Mon Nov 27 15:08:52 2017 (r326260) +++ head/sys/powerpc/powerpc/busdma_machdep.c Mon Nov 27 15:09:59 2017 (r326261) @@ -1,4 +1,6 @@ /*- *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:10:51 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC05DE53E11; Mon, 27 Nov 2017 15:10:51 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 365E0754DA; Mon, 27 Nov 2017 15:10:51 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFAoOS097107; Mon, 27 Nov 2017 15:10:50 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFAd14096992; Mon, 27 Nov 2017 15:10:39 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271510.vARFAd14096992@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:10:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326262 - in head/sys/sparc64: central ebus fhc include isa pci sbus sparc64 X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/sparc64: central ebus fhc include isa pci sbus sparc64 X-SVN-Commit-Revision: 326262 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:10:51 -0000 Author: pfg Date: Mon Nov 27 15:10:39 2017 New Revision: 326262 URL: https://svnweb.freebsd.org/changeset/base/326262 Log: sys/sparc64: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/sparc64/central/central.c head/sys/sparc64/ebus/ebus.c head/sys/sparc64/ebus/ebusreg.h head/sys/sparc64/ebus/epic.c head/sys/sparc64/fhc/clkbrd.c head/sys/sparc64/fhc/clkbrdreg.h head/sys/sparc64/fhc/fhc.c head/sys/sparc64/fhc/fhcreg.h head/sys/sparc64/include/_align.h head/sys/sparc64/include/_bus.h head/sys/sparc64/include/_inttypes.h head/sys/sparc64/include/_limits.h head/sys/sparc64/include/_stdint.h head/sys/sparc64/include/asi.h head/sys/sparc64/include/asmacros.h head/sys/sparc64/include/atomic.h head/sys/sparc64/include/bus.h head/sys/sparc64/include/bus_dma.h head/sys/sparc64/include/bus_private.h head/sys/sparc64/include/ccr.h head/sys/sparc64/include/cmt.h head/sys/sparc64/include/counter.h head/sys/sparc64/include/cpufunc.h head/sys/sparc64/include/dcr.h head/sys/sparc64/include/elf.h head/sys/sparc64/include/exec.h head/sys/sparc64/include/fireplane.h head/sys/sparc64/include/fp.h head/sys/sparc64/include/frame.h head/sys/sparc64/include/fsr.h head/sys/sparc64/include/gdb_machdep.h head/sys/sparc64/include/idprom.h head/sys/sparc64/include/instr.h head/sys/sparc64/include/intr_machdep.h head/sys/sparc64/include/iommuvar.h head/sys/sparc64/include/jbus.h head/sys/sparc64/include/kdb.h head/sys/sparc64/include/kerneldump.h head/sys/sparc64/include/ktr.h head/sys/sparc64/include/limits.h head/sys/sparc64/include/lsu.h head/sys/sparc64/include/mcntl.h head/sys/sparc64/include/memdev.h head/sys/sparc64/include/metadata.h head/sys/sparc64/include/nexusvar.h head/sys/sparc64/include/ofw_machdep.h head/sys/sparc64/include/ofw_mem.h head/sys/sparc64/include/ofw_nexus.h head/sys/sparc64/include/param.h head/sys/sparc64/include/pcb.h head/sys/sparc64/include/pcpu.h head/sys/sparc64/include/pstate.h head/sys/sparc64/include/runq.h head/sys/sparc64/include/sc_machdep.h head/sys/sparc64/include/sf_buf.h head/sys/sparc64/include/sigframe.h head/sys/sparc64/include/smp.h head/sys/sparc64/include/stack.h head/sys/sparc64/include/stdarg.h head/sys/sparc64/include/tick.h head/sys/sparc64/include/tlb.h head/sys/sparc64/include/trap.h head/sys/sparc64/include/tsb.h head/sys/sparc64/include/tstate.h head/sys/sparc64/include/tte.h head/sys/sparc64/include/ucontext.h head/sys/sparc64/include/upa.h head/sys/sparc64/include/utrap.h head/sys/sparc64/include/vdso.h head/sys/sparc64/include/ver.h head/sys/sparc64/include/vm.h head/sys/sparc64/include/watch.h head/sys/sparc64/include/wstate.h head/sys/sparc64/isa/isa.c head/sys/sparc64/isa/isa_dma.c head/sys/sparc64/isa/ofw_isa.c head/sys/sparc64/isa/ofw_isa.h head/sys/sparc64/pci/apb.c head/sys/sparc64/pci/fire.c head/sys/sparc64/pci/firereg.h head/sys/sparc64/pci/firevar.h head/sys/sparc64/pci/ofw_pci.h head/sys/sparc64/pci/ofw_pcib.c head/sys/sparc64/pci/ofw_pcib_subr.c head/sys/sparc64/pci/ofw_pcib_subr.h head/sys/sparc64/pci/ofw_pcibus.c head/sys/sparc64/pci/psycho.c head/sys/sparc64/pci/psychoreg.h head/sys/sparc64/pci/psychovar.h head/sys/sparc64/pci/sbbc.c head/sys/sparc64/pci/schizo.c head/sys/sparc64/pci/schizoreg.h head/sys/sparc64/pci/schizovar.h head/sys/sparc64/sbus/dma_sbus.c head/sys/sparc64/sbus/lsi64854.c head/sys/sparc64/sbus/lsi64854reg.h head/sys/sparc64/sbus/lsi64854var.h head/sys/sparc64/sbus/ofw_sbus.h head/sys/sparc64/sbus/sbus.c head/sys/sparc64/sbus/sbusvar.h head/sys/sparc64/sparc64/ata_machdep.c head/sys/sparc64/sparc64/autoconf.c head/sys/sparc64/sparc64/bus_machdep.c head/sys/sparc64/sparc64/cam_machdep.c head/sys/sparc64/sparc64/cheetah.c head/sys/sparc64/sparc64/clock.c head/sys/sparc64/sparc64/counter.c head/sys/sparc64/sparc64/db_disasm.c head/sys/sparc64/sparc64/db_hwwatch.c head/sys/sparc64/sparc64/db_interface.c head/sys/sparc64/sparc64/db_trace.c head/sys/sparc64/sparc64/dump_machdep.c head/sys/sparc64/sparc64/elf_machdep.c head/sys/sparc64/sparc64/gdb_machdep.c head/sys/sparc64/sparc64/genassym.c head/sys/sparc64/sparc64/iommu.c head/sys/sparc64/sparc64/jbusppm.c head/sys/sparc64/sparc64/mp_machdep.c head/sys/sparc64/sparc64/ofw_machdep.c head/sys/sparc64/sparc64/prof_machdep.c head/sys/sparc64/sparc64/rtc.c head/sys/sparc64/sparc64/rwindow.c head/sys/sparc64/sparc64/sc_machdep.c head/sys/sparc64/sparc64/schppm.c head/sys/sparc64/sparc64/spitfire.c head/sys/sparc64/sparc64/ssm.c head/sys/sparc64/sparc64/stack_machdep.c head/sys/sparc64/sparc64/sys_machdep.c head/sys/sparc64/sparc64/tick.c head/sys/sparc64/sparc64/tlb.c head/sys/sparc64/sparc64/tsb.c head/sys/sparc64/sparc64/upa.c head/sys/sparc64/sparc64/zeus.c Modified: head/sys/sparc64/central/central.c ============================================================================== --- head/sys/sparc64/central/central.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/central/central.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/ebus/ebus.c ============================================================================== --- head/sys/sparc64/ebus/ebus.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/ebus/ebus.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * Copyright (c) 2009 by Marius Strobl * All rights reserved. Modified: head/sys/sparc64/ebus/ebusreg.h ============================================================================== --- head/sys/sparc64/ebus/ebusreg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/ebus/ebusreg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -3,6 +3,8 @@ /* $NetBSD: ebusreg.h,v 1.8 2008/05/29 14:51:27 mrg Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1999 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/ebus/epic.c ============================================================================== --- head/sys/sparc64/ebus/epic.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/ebus/epic.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/fhc/clkbrd.c ============================================================================== --- head/sys/sparc64/fhc/clkbrd.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/fhc/clkbrd.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 2004 Jason L. Wright (jason@thought.net) * Copyright (c) 2005 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/fhc/clkbrdreg.h ============================================================================== --- head/sys/sparc64/fhc/clkbrdreg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/fhc/clkbrdreg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 2004 Jason L. Wright (jason@thought.net) * Copyright (c) 2006 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/fhc/fhc.c ============================================================================== --- head/sys/sparc64/fhc/fhc.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/fhc/fhc.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * Copyright (c) 2005 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/fhc/fhcreg.h ============================================================================== --- head/sys/sparc64/fhc/fhcreg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/fhc/fhcreg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-2-Clause + * * Copyright (c) 2003 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/_align.h ============================================================================== --- head/sys/sparc64/include/_align.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/_align.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * Modified: head/sys/sparc64/include/_bus.h ============================================================================== --- head/sys/sparc64/include/_bus.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/_bus.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 M. Warner Losh. * All rights reserved. * Modified: head/sys/sparc64/include/_inttypes.h ============================================================================== --- head/sys/sparc64/include/_inttypes.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/_inttypes.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/include/_limits.h ============================================================================== --- head/sys/sparc64/include/_limits.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/_limits.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * Modified: head/sys/sparc64/include/_stdint.h ============================================================================== --- head/sys/sparc64/include/_stdint.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/_stdint.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Mike Barcroft * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. Modified: head/sys/sparc64/include/asi.h ============================================================================== --- head/sys/sparc64/include/asi.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/asi.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/asmacros.h ============================================================================== --- head/sys/sparc64/include/asmacros.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/asmacros.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * Copyright (c) 2011 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/include/atomic.h ============================================================================== --- head/sys/sparc64/include/atomic.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/atomic.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson. * Copyright (c) 2001 Jake Burkholder. * All rights reserved. Modified: head/sys/sparc64/include/bus.h ============================================================================== --- head/sys/sparc64/include/bus.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/bus.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-4-Clause + * * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/include/bus_dma.h ============================================================================== --- head/sys/sparc64/include/bus_dma.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/bus_dma.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-4-Clause + * * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/include/bus_private.h ============================================================================== --- head/sys/sparc64/include/bus_private.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/bus_private.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * Copyright (c) 2002 by Thomas Moestl . * All rights reserved. Modified: head/sys/sparc64/include/ccr.h ============================================================================== --- head/sys/sparc64/include/ccr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ccr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/cmt.h ============================================================================== --- head/sys/sparc64/include/cmt.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/cmt.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/counter.h ============================================================================== --- head/sys/sparc64/include/counter.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/counter.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Konstantin Belousov * All rights reserved. * Modified: head/sys/sparc64/include/cpufunc.h ============================================================================== --- head/sys/sparc64/include/cpufunc.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/cpufunc.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/dcr.h ============================================================================== --- head/sys/sparc64/include/dcr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/dcr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/elf.h ============================================================================== --- head/sys/sparc64/include/elf.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/elf.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996-1997 John D. Polstra. * All rights reserved. * Modified: head/sys/sparc64/include/exec.h ============================================================================== --- head/sys/sparc64/include/exec.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/exec.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/fireplane.h ============================================================================== --- head/sys/sparc64/include/fireplane.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/fireplane.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/fp.h ============================================================================== --- head/sys/sparc64/include/fp.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/fp.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/frame.h ============================================================================== --- head/sys/sparc64/include/frame.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/frame.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/fsr.h ============================================================================== --- head/sys/sparc64/include/fsr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/fsr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/gdb_machdep.h ============================================================================== --- head/sys/sparc64/include/gdb_machdep.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/gdb_machdep.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sparc64/include/idprom.h ============================================================================== --- head/sys/sparc64/include/idprom.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/idprom.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1993 Adam Glass * All rights reserved. * Modified: head/sys/sparc64/include/instr.h ============================================================================== --- head/sys/sparc64/include/instr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/instr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 David S. Miller, davem@nadzieja.rutgers.edu * Copyright (c) 1995 Paul Kranenburg * Copyright (c) 2001 Thomas Moestl Modified: head/sys/sparc64/include/intr_machdep.h ============================================================================== --- head/sys/sparc64/include/intr_machdep.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/intr_machdep.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/iommuvar.h ============================================================================== --- head/sys/sparc64/include/iommuvar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/iommuvar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/include/jbus.h ============================================================================== --- head/sys/sparc64/include/jbus.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/jbus.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/kdb.h ============================================================================== --- head/sys/sparc64/include/kdb.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/kdb.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sparc64/include/kerneldump.h ============================================================================== --- head/sys/sparc64/include/kerneldump.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/kerneldump.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 by Thomas Moestl . * All rights reserved. * Modified: head/sys/sparc64/include/ktr.h ============================================================================== --- head/sys/sparc64/include/ktr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ktr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/limits.h ============================================================================== --- head/sys/sparc64/include/limits.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/limits.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * Modified: head/sys/sparc64/include/lsu.h ============================================================================== --- head/sys/sparc64/include/lsu.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/lsu.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/mcntl.h ============================================================================== --- head/sys/sparc64/include/mcntl.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/mcntl.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/memdev.h ============================================================================== --- head/sys/sparc64/include/memdev.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/memdev.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Mark R V Murray * All rights reserved. * Modified: head/sys/sparc64/include/metadata.h ============================================================================== --- head/sys/sparc64/include/metadata.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/metadata.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/nexusvar.h ============================================================================== --- head/sys/sparc64/include/nexusvar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/nexusvar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/include/ofw_machdep.h ============================================================================== --- head/sys/sparc64/include/ofw_machdep.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ofw_machdep.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 by Thomas Moestl . * All rights reserved. * Modified: head/sys/sparc64/include/ofw_mem.h ============================================================================== --- head/sys/sparc64/include/ofw_mem.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ofw_mem.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/ofw_nexus.h ============================================================================== --- head/sys/sparc64/include/ofw_nexus.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ofw_nexus.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/include/param.h ============================================================================== --- head/sys/sparc64/include/param.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/param.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * Modified: head/sys/sparc64/include/pcb.h ============================================================================== --- head/sys/sparc64/include/pcb.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/pcb.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/pcpu.h ============================================================================== --- head/sys/sparc64/include/pcpu.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/pcpu.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Luoqi Chen * All rights reserved. * Modified: head/sys/sparc64/include/pstate.h ============================================================================== --- head/sys/sparc64/include/pstate.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/pstate.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/runq.h ============================================================================== --- head/sys/sparc64/include/runq.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/runq.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder * All rights reserved. * Modified: head/sys/sparc64/include/sc_machdep.h ============================================================================== --- head/sys/sparc64/include/sc_machdep.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/sc_machdep.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/sf_buf.h ============================================================================== --- head/sys/sparc64/include/sf_buf.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/sf_buf.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2014 Gleb Smirnoff * All rights reserved. * Modified: head/sys/sparc64/include/sigframe.h ============================================================================== --- head/sys/sparc64/include/sigframe.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/sigframe.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sparc64/include/smp.h ============================================================================== --- head/sys/sparc64/include/smp.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/smp.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * Copyright (c) 2007 - 2011 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/include/stack.h ============================================================================== --- head/sys/sparc64/include/stack.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/stack.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/stdarg.h ============================================================================== --- head/sys/sparc64/include/stdarg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/stdarg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 David E. O'Brien. All rights reserved. * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/sparc64/include/tick.h ============================================================================== --- head/sys/sparc64/include/tick.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/tick.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/tlb.h ============================================================================== --- head/sys/sparc64/include/tlb.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/tlb.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * Copyright (c) 2008, 2010 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/include/trap.h ============================================================================== --- head/sys/sparc64/include/trap.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/trap.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/tsb.h ============================================================================== --- head/sys/sparc64/include/tsb.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/tsb.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/tstate.h ============================================================================== --- head/sys/sparc64/include/tstate.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/tstate.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/tte.h ============================================================================== --- head/sys/sparc64/include/tte.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/tte.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/ucontext.h ============================================================================== --- head/sys/sparc64/include/ucontext.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ucontext.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/sparc64/include/upa.h ============================================================================== --- head/sys/sparc64/include/upa.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/upa.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 by Thomas Moestl . * All rights reserved. * Modified: head/sys/sparc64/include/utrap.h ============================================================================== --- head/sys/sparc64/include/utrap.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/utrap.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/vdso.h ============================================================================== --- head/sys/sparc64/include/vdso.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/vdso.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov . * All rights reserved. * Modified: head/sys/sparc64/include/ver.h ============================================================================== --- head/sys/sparc64/include/ver.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/ver.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/include/vm.h ============================================================================== --- head/sys/sparc64/include/vm.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/vm.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alan L. Cox * All rights reserved. * Modified: head/sys/sparc64/include/watch.h ============================================================================== --- head/sys/sparc64/include/watch.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/watch.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2001 by Thomas Moestl . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/include/wstate.h ============================================================================== --- head/sys/sparc64/include/wstate.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/include/wstate.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/sparc64/isa/isa.c ============================================================================== --- head/sys/sparc64/isa/isa.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/isa/isa.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * Copyright (c) 2001 Thomas Moestl * All rights reserved. Modified: head/sys/sparc64/isa/isa_dma.c ============================================================================== --- head/sys/sparc64/isa/isa_dma.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/isa/isa_dma.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pyun YongHyeon. * All rights reserved. * Modified: head/sys/sparc64/isa/ofw_isa.c ============================================================================== --- head/sys/sparc64/isa/ofw_isa.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/isa/ofw_isa.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/isa/ofw_isa.h ============================================================================== --- head/sys/sparc64/isa/ofw_isa.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/isa/ofw_isa.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/pci/apb.c ============================================================================== --- head/sys/sparc64/pci/apb.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/apb.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi Modified: head/sys/sparc64/pci/fire.c ============================================================================== --- head/sys/sparc64/pci/fire.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/fire.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * Copyright (c) 2001 - 2003 by Thomas Moestl * Copyright (c) 2009 by Marius Strobl Modified: head/sys/sparc64/pci/firereg.h ============================================================================== --- head/sys/sparc64/pci/firereg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/firereg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/pci/firevar.h ============================================================================== --- head/sys/sparc64/pci/firevar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/firevar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 by Marius Strobl . * All rights reserved. * Modified: head/sys/sparc64/pci/ofw_pci.h ============================================================================== --- head/sys/sparc64/pci/ofw_pci.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/ofw_pci.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/pci/ofw_pcib.c ============================================================================== --- head/sys/sparc64/pci/ofw_pcib.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/ofw_pcib.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier * Copyright (c) 2000 Michael Smith * Copyright (c) 2000 BSDi Modified: head/sys/sparc64/pci/ofw_pcib_subr.c ============================================================================== --- head/sys/sparc64/pci/ofw_pcib_subr.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/ofw_pcib_subr.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 by Thomas Moestl * All rights reserved. * Modified: head/sys/sparc64/pci/ofw_pcib_subr.h ============================================================================== --- head/sys/sparc64/pci/ofw_pcib_subr.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/ofw_pcib_subr.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 by Thomas Moestl * All rights reserved. * Modified: head/sys/sparc64/pci/ofw_pcibus.c ============================================================================== --- head/sys/sparc64/pci/ofw_pcibus.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/ofw_pcibus.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * Copyright (c) 2000, Michael Smith * Copyright (c) 2000, BSDi Modified: head/sys/sparc64/pci/psycho.c ============================================================================== --- head/sys/sparc64/pci/psycho.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/psycho.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * Copyright (c) 2001 - 2003 by Thomas Moestl * Copyright (c) 2005 - 2006 Marius Strobl Modified: head/sys/sparc64/pci/psychoreg.h ============================================================================== --- head/sys/sparc64/pci/psychoreg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/psychoreg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/pci/psychovar.h ============================================================================== --- head/sys/sparc64/pci/psychovar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/psychovar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1999, 2000 Matthew R. Green * All rights reserved. * Modified: head/sys/sparc64/pci/sbbc.c ============================================================================== --- head/sys/sparc64/pci/sbbc.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/sbbc.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,5 +1,7 @@ /* $OpenBSD: sbbc.c,v 1.7 2009/11/09 17:53:39 nicm Exp $ */ /*- + * SPDX-License-Identifier: MIT AND BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Mark Kettenis * * Permission to use, copy, modify, and distribute this software for any Modified: head/sys/sparc64/pci/schizo.c ============================================================================== --- head/sys/sparc64/pci/schizo.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/schizo.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999, 2000 Matthew R. Green * Copyright (c) 2001 - 2003 by Thomas Moestl * Copyright (c) 2005 - 2011 by Marius Strobl Modified: head/sys/sparc64/pci/schizoreg.h ============================================================================== --- head/sys/sparc64/pci/schizoreg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/schizoreg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Jason L. Wright (jason@thought.net) * Copyright (c) 2005 by Marius Strobl * All rights reserved. Modified: head/sys/sparc64/pci/schizovar.h ============================================================================== --- head/sys/sparc64/pci/schizovar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/pci/schizovar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 by Marius Strobl . * All rights reserved. * Modified: head/sys/sparc64/sbus/dma_sbus.c ============================================================================== --- head/sys/sparc64/sbus/dma_sbus.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/dma_sbus.c Mon Nov 27 15:10:39 2017 (r326262) @@ -2,6 +2,8 @@ /* $NetBSD: dma_sbus.c,v 1.32 2008/04/28 20:23:57 martin Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sbus/lsi64854.c ============================================================================== --- head/sys/sparc64/sbus/lsi64854.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/lsi64854.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-2-Clause-NetBSD + * * Copyright (c) 2004 Scott Long * All rights reserved. * Modified: head/sys/sparc64/sbus/lsi64854reg.h ============================================================================== --- head/sys/sparc64/sbus/lsi64854reg.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/lsi64854reg.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,6 +1,8 @@ /* $NetBSD: lsi64854reg.h,v 1.6 2008/04/28 20:23:50 martin Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sbus/lsi64854var.h ============================================================================== --- head/sys/sparc64/sbus/lsi64854var.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/lsi64854var.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,6 +1,8 @@ /* $NetBSD: lsi64854var.h,v 1.12 2008/04/28 20:23:50 martin Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sbus/ofw_sbus.h ============================================================================== --- head/sys/sparc64/sbus/ofw_sbus.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/ofw_sbus.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sbus/sbus.c ============================================================================== --- head/sys/sparc64/sbus/sbus.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/sbus.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999-2002 Eduardo Horvath * All rights reserved. * Modified: head/sys/sparc64/sbus/sbusvar.h ============================================================================== --- head/sys/sparc64/sbus/sbusvar.h Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sbus/sbusvar.h Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sparc64/ata_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/ata_machdep.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/ata_machdep.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/sparc64/autoconf.c ============================================================================== --- head/sys/sparc64/sparc64/autoconf.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/autoconf.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/sparc64/bus_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/bus_machdep.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/bus_machdep.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause + * * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/sparc64/sparc64/cam_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/cam_machdep.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/cam_machdep.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Marius Strobl * All rights reserved. * Modified: head/sys/sparc64/sparc64/cheetah.c ============================================================================== --- head/sys/sparc64/sparc64/cheetah.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/cheetah.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder. * Copyright (c) 2005 - 2011 Marius Strobl * All rights reserved. Modified: head/sys/sparc64/sparc64/clock.c ============================================================================== --- head/sys/sparc64/sparc64/clock.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/clock.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/sparc64/counter.c ============================================================================== --- head/sys/sparc64/sparc64/counter.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/counter.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 by Thomas Moestl . * All rights reserved. * Modified: head/sys/sparc64/sparc64/db_disasm.c ============================================================================== --- head/sys/sparc64/sparc64/db_disasm.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/db_disasm.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 David S. Miller, davem@nadzieja.rutgers.edu * Copyright (c) 1995 Paul Kranenburg * All rights reserved. Modified: head/sys/sparc64/sparc64/db_hwwatch.c ============================================================================== --- head/sys/sparc64/sparc64/db_hwwatch.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/db_hwwatch.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Copyright 2001 by Thomas Moestl . All rights reserved. Modified: head/sys/sparc64/sparc64/db_interface.c ============================================================================== --- head/sys/sparc64/sparc64/db_interface.c Mon Nov 27 15:09:59 2017 (r326261) +++ head/sys/sparc64/sparc64/db_interface.c Mon Nov 27 15:10:39 2017 (r326262) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder. * All rights reserved. * Modified: head/sys/sparc64/sparc64/db_trace.c ============================================================================== --- head/sys/sparc64/sparc64/db_trace.c Mon Nov 27 15:09:59 2017 (r326261) *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:11:54 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3564E54005; Mon, 27 Nov 2017 15:11:54 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 89DD475809; Mon, 27 Nov 2017 15:11:54 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFBrcT098929; Mon, 27 Nov 2017 15:11:53 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFBl92098865; Mon, 27 Nov 2017 15:11:47 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271511.vARFBl92098865@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:11:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326263 - in head/sys/x86: acpica bios cpufreq include iommu isa pci x86 xen X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/x86: acpica bios cpufreq include iommu isa pci x86 xen X-SVN-Commit-Revision: 326263 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:11:55 -0000 Author: pfg Date: Mon Nov 27 15:11:47 2017 New Revision: 326263 URL: https://svnweb.freebsd.org/changeset/base/326263 Log: sys/x86: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/x86/acpica/OsdEnvironment.c head/sys/x86/acpica/acpi_apm.c head/sys/x86/acpica/acpi_wakeup.c head/sys/x86/acpica/madt.c head/sys/x86/acpica/srat.c head/sys/x86/bios/smbios.c head/sys/x86/bios/vpd.c head/sys/x86/cpufreq/est.c head/sys/x86/cpufreq/hwpstate.c head/sys/x86/cpufreq/p4tcc.c head/sys/x86/cpufreq/powernow.c head/sys/x86/cpufreq/smist.c head/sys/x86/include/_inttypes.h head/sys/x86/include/_stdint.h head/sys/x86/include/acpica_machdep.h head/sys/x86/include/apicreg.h head/sys/x86/include/apicvar.h head/sys/x86/include/bus.h head/sys/x86/include/busdma_impl.h head/sys/x86/include/elf.h head/sys/x86/include/fdt.h head/sys/x86/include/init.h head/sys/x86/include/legacyvar.h head/sys/x86/include/mca.h head/sys/x86/include/mptable.h head/sys/x86/include/ofw_machdep.h head/sys/x86/include/pci_cfgreg.h head/sys/x86/include/sigframe.h head/sys/x86/include/ucontext.h head/sys/x86/include/vdso.h head/sys/x86/iommu/busdma_dmar.c head/sys/x86/iommu/busdma_dmar.h head/sys/x86/iommu/intel_ctx.c head/sys/x86/iommu/intel_dmar.h head/sys/x86/iommu/intel_drv.c head/sys/x86/iommu/intel_fault.c head/sys/x86/iommu/intel_gas.c head/sys/x86/iommu/intel_idpgtbl.c head/sys/x86/iommu/intel_qi.c head/sys/x86/iommu/intel_quirks.c head/sys/x86/iommu/intel_reg.h head/sys/x86/iommu/intel_utils.c head/sys/x86/isa/atpic.c head/sys/x86/isa/atrtc.c head/sys/x86/isa/elcr.c head/sys/x86/isa/isa.c head/sys/x86/isa/orm.c head/sys/x86/pci/pci_bus.c head/sys/x86/pci/qpi.c head/sys/x86/x86/busdma_bounce.c head/sys/x86/x86/busdma_machdep.c head/sys/x86/x86/dump_machdep.c head/sys/x86/x86/fdt_machdep.c head/sys/x86/x86/intr_machdep.c head/sys/x86/x86/io_apic.c head/sys/x86/x86/local_apic.c head/sys/x86/x86/mca.c head/sys/x86/x86/mptable.c head/sys/x86/x86/mptable_pci.c head/sys/x86/x86/tsc.c head/sys/x86/xen/hvm.c head/sys/x86/xen/pv.c head/sys/x86/xen/pvcpu_enum.c Modified: head/sys/x86/acpica/OsdEnvironment.c ============================================================================== --- head/sys/x86/acpica/OsdEnvironment.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/acpica/OsdEnvironment.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000,2001 Michael Smith * Copyright (c) 2000 BSDi * All rights reserved. Modified: head/sys/x86/acpica/acpi_apm.c ============================================================================== --- head/sys/x86/acpica/acpi_apm.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/acpica/acpi_apm.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/x86/acpica/acpi_wakeup.c ============================================================================== --- head/sys/x86/acpica/acpi_wakeup.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/acpica/acpi_wakeup.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Takanori Watanabe * Copyright (c) 2001-2012 Mitsuru IWASAKI * Copyright (c) 2003 Peter Wemm Modified: head/sys/x86/acpica/madt.c ============================================================================== --- head/sys/x86/acpica/madt.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/acpica/madt.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/acpica/srat.c ============================================================================== --- head/sys/x86/acpica/srat.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/acpica/srat.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/x86/bios/smbios.c ============================================================================== --- head/sys/x86/bios/smbios.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/bios/smbios.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Matthew N. Dodd * All rights reserved. * Modified: head/sys/x86/bios/vpd.c ============================================================================== --- head/sys/x86/bios/vpd.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/bios/vpd.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Matthew N. Dodd * All rights reserved. * Modified: head/sys/x86/cpufreq/est.c ============================================================================== --- head/sys/x86/cpufreq/est.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/cpufreq/est.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Colin Percival * Copyright (c) 2005 Nate Lawson * All rights reserved. Modified: head/sys/x86/cpufreq/hwpstate.c ============================================================================== --- head/sys/x86/cpufreq/hwpstate.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/cpufreq/hwpstate.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Nate Lawson * Copyright (c) 2004 Colin Percival * Copyright (c) 2004-2005 Bruno Durcot Modified: head/sys/x86/cpufreq/p4tcc.c ============================================================================== --- head/sys/x86/cpufreq/p4tcc.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/cpufreq/p4tcc.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Nate Lawson * All rights reserved. * Modified: head/sys/x86/cpufreq/powernow.c ============================================================================== --- head/sys/x86/cpufreq/powernow.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/cpufreq/powernow.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Bruno Ducrot * Copyright (c) 2004 FUKUDA Nobuhiko * Modified: head/sys/x86/cpufreq/smist.c ============================================================================== --- head/sys/x86/cpufreq/smist.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/cpufreq/smist.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Bruno Ducrot * * Redistribution and use in source and binary forms, with or without Modified: head/sys/x86/include/_inttypes.h ============================================================================== --- head/sys/x86/include/_inttypes.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/_inttypes.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/x86/include/_stdint.h ============================================================================== --- head/sys/x86/include/_stdint.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/_stdint.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2001, 2002 Mike Barcroft * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. Modified: head/sys/x86/include/acpica_machdep.h ============================================================================== --- head/sys/x86/include/acpica_machdep.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/acpica_machdep.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/x86/include/apicreg.h ============================================================================== --- head/sys/x86/include/apicreg.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/apicreg.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, by Peter Wemm and Steve Passe * All rights reserved. * Modified: head/sys/x86/include/apicvar.h ============================================================================== --- head/sys/x86/include/apicvar.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/apicvar.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/include/bus.h ============================================================================== --- head/sys/x86/include/bus.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/bus.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-Clause-NetBSDE + * * Copyright (c) KATO Takenori, 1999. * * All rights reserved. Unpublished rights reserved under the copyright Modified: head/sys/x86/include/busdma_impl.h ============================================================================== --- head/sys/x86/include/busdma_impl.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/busdma_impl.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/include/elf.h ============================================================================== --- head/sys/x86/include/elf.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/elf.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996-1997 John D. Polstra. * All rights reserved. * Modified: head/sys/x86/include/fdt.h ============================================================================== --- head/sys/x86/include/fdt.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/fdt.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Juniper Networks, Inc. * All rights reserved. * Modified: head/sys/x86/include/init.h ============================================================================== --- head/sys/x86/include/init.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/init.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Roger Pau Monné * All rights reserved. * Modified: head/sys/x86/include/legacyvar.h ============================================================================== --- head/sys/x86/include/legacyvar.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/legacyvar.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Peter Wemm * All rights reserved. * Modified: head/sys/x86/include/mca.h ============================================================================== --- head/sys/x86/include/mca.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/mca.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/x86/include/mptable.h ============================================================================== --- head/sys/x86/include/mptable.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/mptable.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, by Steve Passe * All rights reserved. * Modified: head/sys/x86/include/ofw_machdep.h ============================================================================== --- head/sys/x86/include/ofw_machdep.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/ofw_machdep.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Juniper Networks, Inc. * All rights reserved. * Modified: head/sys/x86/include/pci_cfgreg.h ============================================================================== --- head/sys/x86/include/pci_cfgreg.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/pci_cfgreg.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * All rights reserved. * Modified: head/sys/x86/include/sigframe.h ============================================================================== --- head/sys/x86/include/sigframe.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/sigframe.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/x86/include/ucontext.h ============================================================================== --- head/sys/x86/include/ucontext.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/ucontext.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 Peter Wemm * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. Modified: head/sys/x86/include/vdso.h ============================================================================== --- head/sys/x86/include/vdso.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/include/vdso.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov . * Copyright 2016 The FreeBSD Foundation. * All rights reserved. Modified: head/sys/x86/iommu/busdma_dmar.c ============================================================================== --- head/sys/x86/iommu/busdma_dmar.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/busdma_dmar.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/busdma_dmar.h ============================================================================== --- head/sys/x86/iommu/busdma_dmar.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/busdma_dmar.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_ctx.c ============================================================================== --- head/sys/x86/iommu/intel_ctx.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_ctx.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_dmar.h ============================================================================== --- head/sys/x86/iommu/intel_dmar.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_dmar.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013-2015 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_drv.c ============================================================================== --- head/sys/x86/iommu/intel_drv.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_drv.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013-2015 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_fault.c ============================================================================== --- head/sys/x86/iommu/intel_fault.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_fault.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_gas.c ============================================================================== --- head/sys/x86/iommu/intel_gas.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_gas.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_idpgtbl.c ============================================================================== --- head/sys/x86/iommu/intel_idpgtbl.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_idpgtbl.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_qi.c ============================================================================== --- head/sys/x86/iommu/intel_qi.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_qi.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_quirks.c ============================================================================== --- head/sys/x86/iommu/intel_quirks.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_quirks.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013, 2015 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_reg.h ============================================================================== --- head/sys/x86/iommu/intel_reg.h Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_reg.h Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013-2015 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/iommu/intel_utils.c ============================================================================== --- head/sys/x86/iommu/intel_utils.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/iommu/intel_utils.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/x86/isa/atpic.c ============================================================================== --- head/sys/x86/isa/atpic.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/isa/atpic.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/isa/atrtc.c ============================================================================== --- head/sys/x86/isa/atrtc.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/isa/atrtc.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Poul-Henning Kamp * Copyright (c) 2010 Alexander Motin * All rights reserved. Modified: head/sys/x86/isa/elcr.c ============================================================================== --- head/sys/x86/isa/elcr.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/isa/elcr.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 John Baldwin * All rights reserved. * Modified: head/sys/x86/isa/isa.c ============================================================================== --- head/sys/x86/isa/isa.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/isa/isa.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/x86/isa/orm.c ============================================================================== --- head/sys/x86/isa/orm.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/isa/orm.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Nikolai Saoukh * All rights reserved. * Modified: head/sys/x86/pci/pci_bus.c ============================================================================== --- head/sys/x86/pci/pci_bus.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/pci/pci_bus.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * All rights reserved. * Modified: head/sys/x86/pci/qpi.c ============================================================================== --- head/sys/x86/pci/qpi.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/pci/qpi.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/x86/x86/busdma_bounce.c ============================================================================== --- head/sys/x86/x86/busdma_bounce.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/busdma_bounce.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/x86/x86/busdma_machdep.c ============================================================================== --- head/sys/x86/x86/busdma_machdep.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/busdma_machdep.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. Modified: head/sys/x86/x86/dump_machdep.c ============================================================================== --- head/sys/x86/x86/dump_machdep.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/dump_machdep.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Marcel Moolenaar * All rights reserved. * Modified: head/sys/x86/x86/fdt_machdep.c ============================================================================== --- head/sys/x86/x86/fdt_machdep.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/fdt_machdep.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Juniper Networks, Inc. * All rights reserved. * Modified: head/sys/x86/x86/intr_machdep.c ============================================================================== --- head/sys/x86/x86/intr_machdep.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/intr_machdep.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/x86/io_apic.c ============================================================================== --- head/sys/x86/x86/io_apic.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/io_apic.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/x86/local_apic.c ============================================================================== --- head/sys/x86/x86/local_apic.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/local_apic.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 John Baldwin * Copyright (c) 1996, by Steve Passe * All rights reserved. Modified: head/sys/x86/x86/mca.c ============================================================================== --- head/sys/x86/x86/mca.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/mca.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Hudson River Trading LLC * Written by: John H. Baldwin * All rights reserved. Modified: head/sys/x86/x86/mptable.c ============================================================================== --- head/sys/x86/x86/mptable.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/mptable.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * Copyright (c) 1996, by Steve Passe * All rights reserved. Modified: head/sys/x86/x86/mptable_pci.c ============================================================================== --- head/sys/x86/x86/mptable_pci.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/mptable_pci.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * All rights reserved. * Modified: head/sys/x86/x86/tsc.c ============================================================================== --- head/sys/x86/x86/tsc.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/x86/tsc.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998-2003 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/x86/xen/hvm.c ============================================================================== --- head/sys/x86/xen/hvm.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/xen/hvm.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, 2013 Citrix Systems, Inc. * Copyright (c) 2012 Spectra Logic Corporation * All rights reserved. Modified: head/sys/x86/xen/pv.c ============================================================================== --- head/sys/x86/xen/pv.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/xen/pv.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2004 Christian Limpach. * Copyright (c) 2004-2006,2008 Kip Macy * Copyright (c) 2008 The NetBSD Foundation, Inc. Modified: head/sys/x86/xen/pvcpu_enum.c ============================================================================== --- head/sys/x86/xen/pvcpu_enum.c Mon Nov 27 15:10:39 2017 (r326262) +++ head/sys/x86/xen/pvcpu_enum.c Mon Nov 27 15:11:47 2017 (r326263) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 John Baldwin * Copyright (c) 2013 Roger Pau Monné * All rights reserved. From owner-svn-src-head@freebsd.org Mon Nov 27 15:12:52 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83450E5414F; Mon, 27 Nov 2017 15:12:52 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 208D975C15; Mon, 27 Nov 2017 15:12:52 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFCpsU001413; Mon, 27 Nov 2017 15:12:51 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFChWA001338; Mon, 27 Nov 2017 15:12:43 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271512.vARFChWA001338@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:12:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326265 - in head/sys/cam: . ata ctl scsi X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/cam: . ata ctl scsi X-SVN-Commit-Revision: 326265 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:12:52 -0000 Author: pfg Date: Mon Nov 27 15:12:43 2017 New Revision: 326265 URL: https://svnweb.freebsd.org/changeset/base/326265 Log: sys/cam: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/cam/ata/ata_all.c head/sys/cam/ata/ata_all.h head/sys/cam/ata/ata_da.c head/sys/cam/ata/ata_pmp.c head/sys/cam/ata/ata_xpt.c head/sys/cam/cam.c head/sys/cam/cam.h head/sys/cam/cam_ccb.h head/sys/cam/cam_compat.c head/sys/cam/cam_compat.h head/sys/cam/cam_debug.h head/sys/cam/cam_periph.c head/sys/cam/cam_periph.h head/sys/cam/cam_queue.c head/sys/cam/cam_queue.h head/sys/cam/cam_sim.c head/sys/cam/cam_sim.h head/sys/cam/cam_xpt.c head/sys/cam/cam_xpt.h head/sys/cam/cam_xpt_internal.h head/sys/cam/cam_xpt_periph.h head/sys/cam/cam_xpt_sim.h head/sys/cam/ctl/ctl.c head/sys/cam/ctl/ctl.h head/sys/cam/ctl/ctl_backend.c head/sys/cam/ctl/ctl_backend.h head/sys/cam/ctl/ctl_backend_block.c head/sys/cam/ctl/ctl_backend_ramdisk.c head/sys/cam/ctl/ctl_cmd_table.c head/sys/cam/ctl/ctl_debug.h head/sys/cam/ctl/ctl_error.c head/sys/cam/ctl/ctl_error.h head/sys/cam/ctl/ctl_frontend.c head/sys/cam/ctl/ctl_frontend.h head/sys/cam/ctl/ctl_frontend_cam_sim.c head/sys/cam/ctl/ctl_frontend_iscsi.c head/sys/cam/ctl/ctl_frontend_iscsi.h head/sys/cam/ctl/ctl_ha.h head/sys/cam/ctl/ctl_io.h head/sys/cam/ctl/ctl_ioctl.h head/sys/cam/ctl/ctl_private.h head/sys/cam/ctl/ctl_scsi_all.c head/sys/cam/ctl/ctl_scsi_all.h head/sys/cam/ctl/ctl_ser_table.c head/sys/cam/ctl/ctl_util.c head/sys/cam/ctl/ctl_util.h head/sys/cam/ctl/scsi_ctl.c head/sys/cam/scsi/scsi_all.c head/sys/cam/scsi/scsi_cd.c head/sys/cam/scsi/scsi_cd.h head/sys/cam/scsi/scsi_ch.c head/sys/cam/scsi/scsi_ch.h head/sys/cam/scsi/scsi_da.c head/sys/cam/scsi/scsi_dvcfg.h head/sys/cam/scsi/scsi_enc.c head/sys/cam/scsi/scsi_enc_internal.h head/sys/cam/scsi/scsi_enc_safte.c head/sys/cam/scsi/scsi_enc_ses.c head/sys/cam/scsi/scsi_low.c head/sys/cam/scsi/scsi_low.h head/sys/cam/scsi/scsi_pass.c head/sys/cam/scsi/scsi_pass.h head/sys/cam/scsi/scsi_pt.c head/sys/cam/scsi/scsi_pt.h head/sys/cam/scsi/scsi_sa.c head/sys/cam/scsi/scsi_sa.h head/sys/cam/scsi/scsi_sg.c head/sys/cam/scsi/scsi_targ_bh.c head/sys/cam/scsi/scsi_target.c head/sys/cam/scsi/scsi_targetio.h head/sys/cam/scsi/scsi_xpt.c head/sys/cam/scsi/smp_all.c head/sys/cam/scsi/smp_all.h Modified: head/sys/cam/ata/ata_all.c ============================================================================== --- head/sys/cam/ata/ata_all.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ata/ata_all.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alexander Motin * All rights reserved. * Modified: head/sys/cam/ata/ata_all.h ============================================================================== --- head/sys/cam/ata/ata_all.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ata/ata_all.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alexander Motin * All rights reserved. * Modified: head/sys/cam/ata/ata_da.c ============================================================================== --- head/sys/cam/ata/ata_da.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ata/ata_da.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alexander Motin * All rights reserved. * Modified: head/sys/cam/ata/ata_pmp.c ============================================================================== --- head/sys/cam/ata/ata_pmp.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ata/ata_pmp.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alexander Motin * All rights reserved. * Modified: head/sys/cam/ata/ata_xpt.c ============================================================================== --- head/sys/cam/ata/ata_xpt.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ata/ata_xpt.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Alexander Motin * All rights reserved. * Modified: head/sys/cam/cam.c ============================================================================== --- head/sys/cam/cam.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Generic utility routines for the Common Access Method layer. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam.h ============================================================================== --- head/sys/cam/cam.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Data structures and definitions for the CAM system. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_ccb.h ============================================================================== --- head/sys/cam/cam_ccb.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_ccb.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Data structures and definitions for CAM Control Blocks (CCBs). * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_compat.c ============================================================================== --- head/sys/cam/cam_compat.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_compat.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * CAM ioctl compatibility shims * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Scott Long * All rights reserved. * Modified: head/sys/cam/cam_compat.h ============================================================================== --- head/sys/cam/cam_compat.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_compat.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * CAM ioctl compatibility shims * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Scott Long * All rights reserved. * Modified: head/sys/cam/cam_debug.h ============================================================================== --- head/sys/cam/cam_debug.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_debug.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Macros for tracing/loging information in the CAM layer * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_periph.c ============================================================================== --- head/sys/cam/cam_periph.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_periph.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Common functions for CAM "type" (peripheral) drivers. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999, 2000 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/cam_periph.h ============================================================================== --- head/sys/cam/cam_periph.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_periph.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Data structures and definitions for CAM peripheral ("type") drivers. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_queue.c ============================================================================== --- head/sys/cam/cam_queue.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_queue.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * CAM request queue management functions. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_queue.h ============================================================================== --- head/sys/cam/cam_queue.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_queue.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * CAM request queue management definitions. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_sim.c ============================================================================== --- head/sys/cam/cam_sim.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_sim.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Common functions for SCSI Interface Modules (SIMs). * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_sim.h ============================================================================== --- head/sys/cam/cam_sim.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_sim.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Data structures and definitions for SCSI Interface Modules (SIMs). * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_xpt.c ============================================================================== --- head/sys/cam/cam_xpt.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_xpt.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Implementation of the Common Access Method Transport (XPT) layer. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/cam_xpt.h ============================================================================== --- head/sys/cam/cam_xpt.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_xpt.h Mon Nov 27 15:12:43 2017 (r326265) @@ -2,6 +2,8 @@ * Data structures and definitions for dealing with the * Common Access Method Transport (xpt) layer. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_xpt_internal.h ============================================================================== --- head/sys/cam/cam_xpt_internal.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_xpt_internal.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2009 Scott Long * All rights reserved. * Modified: head/sys/cam/cam_xpt_periph.h ============================================================================== --- head/sys/cam/cam_xpt_periph.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_xpt_periph.h Mon Nov 27 15:12:43 2017 (r326265) @@ -3,6 +3,8 @@ * Common Access Method Transport (xpt) layer from peripheral * drivers. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/cam_xpt_sim.h ============================================================================== --- head/sys/cam/cam_xpt_sim.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/cam_xpt_sim.h Mon Nov 27 15:12:43 2017 (r326265) @@ -2,6 +2,8 @@ * Data structures and definitions for dealing with the * Common Access Method Transport (xpt) layer. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/ctl/ctl.c ============================================================================== --- head/sys/cam/ctl/ctl.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2009 Silicon Graphics International Corp. * Copyright (c) 2012 The FreeBSD Foundation * Copyright (c) 2014-2017 Alexander Motin Modified: head/sys/cam/ctl/ctl.h ============================================================================== --- head/sys/cam/ctl/ctl.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_backend.c ============================================================================== --- head/sys/cam/ctl/ctl_backend.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_backend.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_backend.h ============================================================================== --- head/sys/cam/ctl/ctl_backend.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_backend.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2014-2017 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_backend_block.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_block.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_backend_block.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2009-2011 Spectra Logic Corporation * Copyright (c) 2012 The FreeBSD Foundation Modified: head/sys/cam/ctl/ctl_backend_ramdisk.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_ramdisk.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_backend_ramdisk.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003, 2008 Silicon Graphics International Corp. * Copyright (c) 2012 The FreeBSD Foundation * Copyright (c) 2014-2017 Alexander Motin Modified: head/sys/cam/ctl/ctl_cmd_table.c ============================================================================== --- head/sys/cam/ctl/ctl_cmd_table.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_cmd_table.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003, 2004, 2005, 2009 Silicon Graphics International Corp. * Copyright (c) 2014-2015 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_debug.h ============================================================================== --- head/sys/cam/ctl/ctl_debug.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_debug.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_error.c ============================================================================== --- head/sys/cam/ctl/ctl_error.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_error.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2009 Silicon Graphics International Corp. * Copyright (c) 2011 Spectra Logic Corporation * Copyright (c) 2014-2015 Alexander Motin Modified: head/sys/cam/ctl/ctl_error.h ============================================================================== --- head/sys/cam/ctl/ctl_error.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_error.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2014-2015 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_frontend.c ============================================================================== --- head/sys/cam/ctl/ctl_frontend.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_frontend.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2014-2017 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_frontend.h ============================================================================== --- head/sys/cam/ctl/ctl_frontend.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_frontend.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2014-2017 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_frontend_cam_sim.c ============================================================================== --- head/sys/cam/ctl/ctl_frontend_cam_sim.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_frontend_cam_sim.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c ============================================================================== --- head/sys/cam/ctl/ctl_frontend_iscsi.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_frontend_iscsi.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/cam/ctl/ctl_frontend_iscsi.h ============================================================================== --- head/sys/cam/ctl/ctl_frontend_iscsi.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_frontend_iscsi.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/cam/ctl/ctl_ha.h ============================================================================== --- head/sys/cam/ctl/ctl_ha.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_ha.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2009 Silicon Graphics International Corp. * Copyright (c) 2011 Spectra Logic Corporation * Copyright (c) 2015 Alexander Motin Modified: head/sys/cam/ctl/ctl_io.h ============================================================================== --- head/sys/cam/ctl/ctl_io.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_io.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2014-2015 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_ioctl.h ============================================================================== --- head/sys/cam/ctl/ctl_ioctl.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_ioctl.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * Copyright (c) 2011 Spectra Logic Corporation * Copyright (c) 2014-2017 Alexander Motin Modified: head/sys/cam/ctl/ctl_private.h ============================================================================== --- head/sys/cam/ctl/ctl_private.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_private.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp. * Copyright (c) 2014-2017 Alexander Motin * All rights reserved. Modified: head/sys/cam/ctl/ctl_scsi_all.c ============================================================================== --- head/sys/cam/ctl/ctl_scsi_all.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_scsi_all.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Implementation of Utility functions for all SCSI device types. * * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. Modified: head/sys/cam/ctl/ctl_scsi_all.h ============================================================================== --- head/sys/cam/ctl/ctl_scsi_all.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_scsi_all.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. * Copyright (c) 1997, 1998, 2003 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/ctl/ctl_ser_table.c ============================================================================== --- head/sys/cam/ctl/ctl_ser_table.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_ser_table.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_util.c ============================================================================== --- head/sys/cam/ctl/ctl_util.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_util.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/ctl_util.h ============================================================================== --- head/sys/cam/ctl/ctl_util.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/ctl_util.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Silicon Graphics International Corp. * All rights reserved. * Modified: head/sys/cam/ctl/scsi_ctl.c ============================================================================== --- head/sys/cam/ctl/scsi_ctl.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/ctl/scsi_ctl.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, 2009 Silicon Graphics International Corp. * Copyright (c) 2014-2015 Alexander Motin * All rights reserved. Modified: head/sys/cam/scsi/scsi_all.c ============================================================================== --- head/sys/cam/scsi/scsi_all.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_all.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Implementation of Utility functions for all SCSI device types. * * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. Modified: head/sys/cam/scsi/scsi_cd.c ============================================================================== --- head/sys/cam/scsi/scsi_cd.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_cd.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/scsi/scsi_cd.h ============================================================================== --- head/sys/cam/scsi/scsi_cd.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_cd.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000, 2002 Kenneth D. Merry * All rights reserved. * Modified: head/sys/cam/scsi/scsi_ch.c ============================================================================== --- head/sys/cam/scsi/scsi_ch.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_ch.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-4-Clause + * * Copyright (c) 1997 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/scsi/scsi_ch.h ============================================================================== --- head/sys/cam/scsi/scsi_ch.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_ch.h Mon Nov 27 15:12:43 2017 (r326265) @@ -2,6 +2,8 @@ /* $NetBSD: scsi_changer.h,v 1.11 1998/02/13 08:28:32 enami Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1996 Jason R. Thorpe * All rights reserved. * Modified: head/sys/cam/scsi/scsi_da.c ============================================================================== --- head/sys/cam/scsi/scsi_da.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_da.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Implementation of SCSI Direct Access Peripheral driver for CAM. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/scsi/scsi_dvcfg.h ============================================================================== --- head/sys/cam/scsi/scsi_dvcfg.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_dvcfg.h Mon Nov 27 15:12:43 2017 (r326265) @@ -3,6 +3,8 @@ /* $NetBSD$ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * [NetBSD for NEC PC-98 series] * Copyright (c) 1994, 1995, 1996, 1997, 1998 * NetBSD/pc98 porting staff. All rights reserved. Modified: head/sys/cam/scsi/scsi_enc.c ============================================================================== --- head/sys/cam/scsi/scsi_enc.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_enc.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Matthew Jacob * All rights reserved. * Modified: head/sys/cam/scsi/scsi_enc_internal.h ============================================================================== --- head/sys/cam/scsi/scsi_enc_internal.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_enc_internal.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Matthew Jacob * All rights reserved. * Modified: head/sys/cam/scsi/scsi_enc_safte.c ============================================================================== --- head/sys/cam/scsi/scsi_enc_safte.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_enc_safte.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Matthew Jacob * All rights reserved. * Modified: head/sys/cam/scsi/scsi_enc_ses.c ============================================================================== --- head/sys/cam/scsi/scsi_enc_ses.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_enc_ses.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Matthew Jacob * Copyright (c) 2010 Spectra Logic Corporation * All rights reserved. Modified: head/sys/cam/scsi/scsi_low.c ============================================================================== --- head/sys/cam/scsi/scsi_low.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_low.c Mon Nov 27 15:12:43 2017 (r326265) @@ -17,6 +17,8 @@ __FBSDID("$FreeBSD$"); #define SCSI_LOW_FLAGS_QUIRKS_OK /*- + * SPDX-License-Identifier: BSD-3-Clause + * * [NetBSD for NEC PC-98 series] * Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001 * NetBSD/pc98 porting staff. All rights reserved. Modified: head/sys/cam/scsi/scsi_low.h ============================================================================== --- head/sys/cam/scsi/scsi_low.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_low.h Mon Nov 27 15:12:43 2017 (r326265) @@ -6,6 +6,8 @@ #define SCSI_LOW_ALT_QTAG_ALLOCATE /*- + * SPDX-License-Identifier: BSD-3-Clause + * * [NetBSD for NEC PC-98 series] * Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001 * NetBSD/pc98 porting staff. All rights reserved. Modified: head/sys/cam/scsi/scsi_pass.c ============================================================================== --- head/sys/cam/scsi/scsi_pass.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_pass.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/scsi/scsi_pass.h ============================================================================== --- head/sys/cam/scsi/scsi_pass.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_pass.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1999 Kenneth D. Merry. * All rights reserved. * Modified: head/sys/cam/scsi/scsi_pt.c ============================================================================== --- head/sys/cam/scsi/scsi_pt.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_pt.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Implementation of SCSI Processor Target Peripheral driver for CAM. * * Copyright (c) 1998 Justin T. Gibbs. Modified: head/sys/cam/scsi/scsi_pt.h ============================================================================== --- head/sys/cam/scsi/scsi_pt.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_pt.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Structure and function declarations for Processor type devices. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Justin T. Gibbs * All rights reserved. * Modified: head/sys/cam/scsi/scsi_sa.c ============================================================================== --- head/sys/cam/scsi/scsi_sa.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_sa.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Implementation of SCSI Sequential Access Peripheral driver for CAM. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 Matthew Jacob * Copyright (c) 2013, 2014, 2015 Spectra Logic Corporation * All rights reserved. Modified: head/sys/cam/scsi/scsi_sa.h ============================================================================== --- head/sys/cam/scsi/scsi_sa.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_sa.h Mon Nov 27 15:12:43 2017 (r326265) @@ -2,6 +2,8 @@ * Structure and function declarations for the * SCSI Sequential Access Peripheral driver for CAM. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 Matthew Jacob * Copyright (c) 2013, 2014, 2015 Spectra Logic Corporation * All rights reserved. Modified: head/sys/cam/scsi/scsi_sg.c ============================================================================== --- head/sys/cam/scsi/scsi_sg.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_sg.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Scott Long * All rights reserved. * Modified: head/sys/cam/scsi/scsi_targ_bh.c ============================================================================== --- head/sys/cam/scsi/scsi_targ_bh.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_targ_bh.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Implementation of the Target Mode 'Black Hole device' for CAM. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Justin T. Gibbs. * All rights reserved. * Modified: head/sys/cam/scsi/scsi_target.c ============================================================================== --- head/sys/cam/scsi/scsi_target.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_target.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Generic SCSI Target Kernel Mode Driver * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Nate Lawson. * Copyright (c) 1998, 1999, 2001, 2002 Justin T. Gibbs. * All rights reserved. Modified: head/sys/cam/scsi/scsi_targetio.h ============================================================================== --- head/sys/cam/scsi/scsi_targetio.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_targetio.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Ioctl definitions for the SCSI Target Driver * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Nate Lawson. * Copyright (c) 1998 Justin T. Gibbs. * All rights reserved. Modified: head/sys/cam/scsi/scsi_xpt.c ============================================================================== --- head/sys/cam/scsi/scsi_xpt.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/scsi_xpt.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,6 +1,8 @@ /*- * Implementation of the SCSI Transport * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. Modified: head/sys/cam/scsi/smp_all.c ============================================================================== --- head/sys/cam/scsi/smp_all.c Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/smp_all.c Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Spectra Logic Corporation * All rights reserved. * Modified: head/sys/cam/scsi/smp_all.h ============================================================================== --- head/sys/cam/scsi/smp_all.h Mon Nov 27 15:12:14 2017 (r326264) +++ head/sys/cam/scsi/smp_all.h Mon Nov 27 15:12:43 2017 (r326265) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Spectra Logic Corporation * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:13:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D07CE541DC; Mon, 27 Nov 2017 15:13:28 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 613AE75D86; Mon, 27 Nov 2017 15:13:28 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFDRV8001528; Mon, 27 Nov 2017 15:13:27 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFDNPR001478; Mon, 27 Nov 2017 15:13:23 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271513.vARFDNPR001478@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:13:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326266 - in head/sys/compat: freebsd32 ia32 linsysfs linux netbsd X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/compat: freebsd32 ia32 linsysfs linux netbsd X-SVN-Commit-Revision: 326266 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:13:28 -0000 Author: pfg Date: Mon Nov 27 15:13:23 2017 New Revision: 326266 URL: https://svnweb.freebsd.org/changeset/base/326266 Log: sys/compat: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/compat/freebsd32/freebsd32.h head/sys/compat/freebsd32/freebsd32_capability.c head/sys/compat/freebsd32/freebsd32_ipc.h head/sys/compat/freebsd32/freebsd32_misc.c head/sys/compat/freebsd32/freebsd32_misc.h head/sys/compat/freebsd32/freebsd32_signal.h head/sys/compat/freebsd32/freebsd32_util.h head/sys/compat/ia32/ia32_signal.h head/sys/compat/ia32/ia32_sysvec.c head/sys/compat/ia32/ia32_util.h head/sys/compat/linsysfs/linsysfs.c head/sys/compat/linux/linux_dtrace.h head/sys/compat/linux/linux_emul.c head/sys/compat/linux/linux_emul.h head/sys/compat/linux/linux_file.c head/sys/compat/linux/linux_file.h head/sys/compat/linux/linux_fork.c head/sys/compat/linux/linux_futex.c head/sys/compat/linux/linux_futex.h head/sys/compat/linux/linux_getcwd.c head/sys/compat/linux/linux_ioctl.c head/sys/compat/linux/linux_ioctl.h head/sys/compat/linux/linux_ipc.c head/sys/compat/linux/linux_ipc.h head/sys/compat/linux/linux_mib.c head/sys/compat/linux/linux_mib.h head/sys/compat/linux/linux_misc.c head/sys/compat/linux/linux_misc.h head/sys/compat/linux/linux_signal.c head/sys/compat/linux/linux_signal.h head/sys/compat/linux/linux_socket.c head/sys/compat/linux/linux_socket.h head/sys/compat/linux/linux_stats.c head/sys/compat/linux/linux_sysctl.c head/sys/compat/linux/linux_sysproto.h head/sys/compat/linux/linux_time.c head/sys/compat/linux/linux_uid16.c head/sys/compat/linux/linux_util.c head/sys/compat/linux/linux_util.h head/sys/compat/netbsd/dvcfg.h Modified: head/sys/compat/freebsd32/freebsd32.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Doug Rabson * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_capability.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_capability.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_capability.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_ipc.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_ipc.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_ipc.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Doug Rabson * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_misc.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_misc.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_misc.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Doug Rabson * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_misc.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_misc.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_misc.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_signal.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_signal.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_signal.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 David Xu * All rights reserved. * Modified: head/sys/compat/freebsd32/freebsd32_util.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_util.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/freebsd32/freebsd32_util.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-1999 Andrew Gallatin * All rights reserved. * Modified: head/sys/compat/ia32/ia32_signal.h ============================================================================== --- head/sys/compat/ia32/ia32_signal.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/ia32/ia32_signal.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * Copyright (c) 2003 Peter Wemm * All rights reserved. Modified: head/sys/compat/ia32/ia32_sysvec.c ============================================================================== --- head/sys/compat/ia32/ia32_sysvec.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/ia32/ia32_sysvec.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Doug Rabson * Copyright (c) 2003 Peter Wemm * All rights reserved. Modified: head/sys/compat/ia32/ia32_util.h ============================================================================== --- head/sys/compat/ia32/ia32_util.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/ia32/ia32_util.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998-1999 Andrew Gallatin * All rights reserved. * Modified: head/sys/compat/linsysfs/linsysfs.c ============================================================================== --- head/sys/compat/linsysfs/linsysfs.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linsysfs/linsysfs.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 IronPort Systems * All rights reserved. * Modified: head/sys/compat/linux/linux_dtrace.h ============================================================================== --- head/sys/compat/linux/linux_dtrace.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_dtrace.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2012 Alexander Leidinger * All rights reserved. * Modified: head/sys/compat/linux/linux_emul.c ============================================================================== --- head/sys/compat/linux/linux_emul.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_emul.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2006 Roman Divacky * Copyright (c) 2013 Dmitry Chagin * All rights reserved. Modified: head/sys/compat/linux/linux_emul.h ============================================================================== --- head/sys/compat/linux/linux_emul.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_emul.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2006 Roman Divacky * Copyright (c) 2013 Dmitry Chagin * All rights reserved. Modified: head/sys/compat/linux/linux_file.c ============================================================================== --- head/sys/compat/linux/linux_file.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_file.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_file.h ============================================================================== --- head/sys/compat/linux/linux_file.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_file.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Roman Divacky * All rights reserved. * Modified: head/sys/compat/linux/linux_fork.c ============================================================================== --- head/sys/compat/linux/linux_fork.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_fork.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Tim J. Robbins * Copyright (c) 2002 Doug Rabson * Copyright (c) 2000 Marcel Moolenaar Modified: head/sys/compat/linux/linux_futex.c ============================================================================== --- head/sys/compat/linux/linux_futex.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_futex.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,6 +1,8 @@ /* $NetBSD: linux_futex.c,v 1.7 2006/07/24 19:01:49 manu Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2009-2016 Dmitry Chagin * Copyright (c) 2005 Emmanuel Dreyfus * All rights reserved. Modified: head/sys/compat/linux/linux_futex.h ============================================================================== --- head/sys/compat/linux/linux_futex.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_futex.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,6 +1,8 @@ /* $NetBSD: linux_futex.h,v 1.2 2005/12/11 12:20:19 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/compat/linux/linux_getcwd.c ============================================================================== --- head/sys/compat/linux/linux_getcwd.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_getcwd.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,6 +1,8 @@ /* $OpenBSD: linux_getcwd.c,v 1.2 2001/05/16 12:50:21 ho Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1999 The NetBSD Foundation, Inc. * Copyright (c) 2015 The FreeBSD Foundation * All rights reserved. Modified: head/sys/compat/linux/linux_ioctl.c ============================================================================== --- head/sys/compat/linux/linux_ioctl.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_ioctl.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_ioctl.h ============================================================================== --- head/sys/compat/linux/linux_ioctl.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_ioctl.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_ipc.c ============================================================================== --- head/sys/compat/linux/linux_ipc.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_ipc.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_ipc.h ============================================================================== --- head/sys/compat/linux/linux_ipc.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_ipc.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_mib.c ============================================================================== --- head/sys/compat/linux/linux_mib.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_mib.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_mib.h ============================================================================== --- head/sys/compat/linux/linux_mib.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_mib.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_misc.c ============================================================================== --- head/sys/compat/linux/linux_misc.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_misc.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Doug Rabson * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. Modified: head/sys/compat/linux/linux_misc.h ============================================================================== --- head/sys/compat/linux/linux_misc.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_misc.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2006 Roman Divacky * All rights reserved. * Modified: head/sys/compat/linux/linux_signal.c ============================================================================== --- head/sys/compat/linux/linux_signal.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_signal.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_signal.h ============================================================================== --- head/sys/compat/linux/linux_signal.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_signal.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_socket.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_socket.h ============================================================================== --- head/sys/compat/linux/linux_socket.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_socket.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2000 Assar Westerlund * All rights reserved. * Modified: head/sys/compat/linux/linux_stats.c ============================================================================== --- head/sys/compat/linux/linux_stats.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_stats.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * Modified: head/sys/compat/linux/linux_sysctl.c ============================================================================== --- head/sys/compat/linux/linux_sysctl.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_sysctl.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Marcel Moolenaar * All rights reserved. * Modified: head/sys/compat/linux/linux_sysproto.h ============================================================================== --- head/sys/compat/linux/linux_sysproto.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_sysproto.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2005 Travis Poppe * All rights reserved. * Modified: head/sys/compat/linux/linux_time.c ============================================================================== --- head/sys/compat/linux/linux_time.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_time.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,6 +1,8 @@ /* $NetBSD: linux_time.c,v 1.14 2006/05/14 03:40:54 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/compat/linux/linux_uid16.c ============================================================================== --- head/sys/compat/linux/linux_uid16.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_uid16.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 The FreeBSD Project * All rights reserved. * Modified: head/sys/compat/linux/linux_util.c ============================================================================== --- head/sys/compat/linux/linux_util.c Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_util.c Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Christos Zoulas * Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Scott Bartram Modified: head/sys/compat/linux/linux_util.h ============================================================================== --- head/sys/compat/linux/linux_util.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/linux/linux_util.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1994 Christos Zoulas * Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Scott Bartram Modified: head/sys/compat/netbsd/dvcfg.h ============================================================================== --- head/sys/compat/netbsd/dvcfg.h Mon Nov 27 15:12:43 2017 (r326265) +++ head/sys/compat/netbsd/dvcfg.h Mon Nov 27 15:13:23 2017 (r326266) @@ -1,6 +1,8 @@ /* $FreeBSD$ */ /* $NetBSD$ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * [NetBSD for NEC PC98 series] * Copyright (c) 1996 NetBSD/pc98 porting staff. * All rights reserved. From owner-svn-src-head@freebsd.org Mon Nov 27 15:14:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93E73E54301; Mon, 27 Nov 2017 15:14:48 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5EA3175F0D; Mon, 27 Nov 2017 15:14:48 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFElkE001618; Mon, 27 Nov 2017 15:14:47 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFElcn001614; Mon, 27 Nov 2017 15:14:47 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271514.vARFElcn001614@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:14:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326267 - head/sys/ddb X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/ddb X-SVN-Commit-Revision: 326267 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:14:48 -0000 Author: pfg Date: Mon Nov 27 15:14:46 2017 New Revision: 326267 URL: https://svnweb.freebsd.org/changeset/base/326267 Log: sys/ddb: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/ddb/db_capture.c head/sys/ddb/db_script.c head/sys/ddb/db_textdump.c head/sys/ddb/db_thread.c Modified: head/sys/ddb/db_capture.c ============================================================================== --- head/sys/ddb/db_capture.c Mon Nov 27 15:13:23 2017 (r326266) +++ head/sys/ddb/db_capture.c Mon Nov 27 15:14:46 2017 (r326267) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sys/ddb/db_script.c ============================================================================== --- head/sys/ddb/db_script.c Mon Nov 27 15:13:23 2017 (r326266) +++ head/sys/ddb/db_script.c Mon Nov 27 15:14:46 2017 (r326267) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sys/ddb/db_textdump.c ============================================================================== --- head/sys/ddb/db_textdump.c Mon Nov 27 15:13:23 2017 (r326266) +++ head/sys/ddb/db_textdump.c Mon Nov 27 15:14:46 2017 (r326267) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sys/ddb/db_thread.c ============================================================================== --- head/sys/ddb/db_thread.c Mon Nov 27 15:13:23 2017 (r326266) +++ head/sys/ddb/db_thread.c Mon Nov 27 15:14:46 2017 (r326267) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:15:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9825AE54386; Mon, 27 Nov 2017 15:15:47 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48EBB76070; Mon, 27 Nov 2017 15:15:47 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFFk1d001813; Mon, 27 Nov 2017 15:15:46 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFFb4C001703; Mon, 27 Nov 2017 15:15:37 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271515.vARFFb4C001703@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:15:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326268 - in head/sys/fs: cd9660 devfs ext2fs msdosfs nandfs nfs nfsclient nfsserver procfs pseudofs smbfs tmpfs udf X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/fs: cd9660 devfs ext2fs msdosfs nandfs nfs nfsclient nfsserver procfs pseudofs smbfs tmpfs udf X-SVN-Commit-Revision: 326268 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:15:47 -0000 Author: pfg Date: Mon Nov 27 15:15:37 2017 New Revision: 326268 URL: https://svnweb.freebsd.org/changeset/base/326268 Log: sys/fs: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/fs/cd9660/cd9660_iconv.c head/sys/fs/devfs/devfs.h head/sys/fs/devfs/devfs_devs.c head/sys/fs/devfs/devfs_dir.c head/sys/fs/devfs/devfs_int.h head/sys/fs/devfs/devfs_rule.c head/sys/fs/devfs/devfs_vfsops.c head/sys/fs/devfs/devfs_vnops.c head/sys/fs/ext2fs/ext2_dinode.h head/sys/fs/ext2fs/ext2_dir.h head/sys/fs/ext2fs/ext2_extents.c head/sys/fs/ext2fs/ext2_extents.h head/sys/fs/ext2fs/ext2_hash.c head/sys/fs/ext2fs/ext2_htree.c head/sys/fs/ext2fs/ext2fs.h head/sys/fs/ext2fs/htree.h head/sys/fs/msdosfs/denode.h head/sys/fs/msdosfs/direntry.h head/sys/fs/msdosfs/fat.h head/sys/fs/msdosfs/msdosfs_conv.c head/sys/fs/msdosfs/msdosfs_denode.c head/sys/fs/msdosfs/msdosfs_fat.c head/sys/fs/msdosfs/msdosfs_iconv.c head/sys/fs/msdosfs/msdosfs_lookup.c head/sys/fs/msdosfs/msdosfs_vfsops.c head/sys/fs/msdosfs/msdosfs_vnops.c head/sys/fs/msdosfs/msdosfsmount.h head/sys/fs/nandfs/bmap.c head/sys/fs/nandfs/bmap.h head/sys/fs/nandfs/nandfs.h head/sys/fs/nandfs/nandfs_alloc.c head/sys/fs/nandfs/nandfs_bmap.c head/sys/fs/nandfs/nandfs_buffer.c head/sys/fs/nandfs/nandfs_cleaner.c head/sys/fs/nandfs/nandfs_cpfile.c head/sys/fs/nandfs/nandfs_dat.c head/sys/fs/nandfs/nandfs_dir.c head/sys/fs/nandfs/nandfs_fs.h head/sys/fs/nandfs/nandfs_ifile.c head/sys/fs/nandfs/nandfs_mount.h head/sys/fs/nandfs/nandfs_segment.c head/sys/fs/nandfs/nandfs_subr.c head/sys/fs/nandfs/nandfs_subr.h head/sys/fs/nandfs/nandfs_sufile.c head/sys/fs/nandfs/nandfs_vfsops.c head/sys/fs/nandfs/nandfs_vnops.c head/sys/fs/nfs/nfs_commonacl.c head/sys/fs/nfs/nfscl.h head/sys/fs/nfs/nfsclstate.h head/sys/fs/nfs/nfsdport.h head/sys/fs/nfs/nfskpiport.h head/sys/fs/nfs/nfsrvstate.h head/sys/fs/nfs/nfsv4_errstr.h head/sys/fs/nfsclient/nfs_clkdtrace.c head/sys/fs/nfsclient/nfs_clstate.c head/sys/fs/nfsclient/nfs_kdtrace.h head/sys/fs/nfsclient/nlminfo.h head/sys/fs/nfsserver/nfs_fha_new.c head/sys/fs/nfsserver/nfs_fha_new.h head/sys/fs/nfsserver/nfs_nfsdstate.c head/sys/fs/procfs/procfs_ioctl.c head/sys/fs/pseudofs/pseudofs.c head/sys/fs/pseudofs/pseudofs.h head/sys/fs/pseudofs/pseudofs_fileno.c head/sys/fs/pseudofs/pseudofs_internal.h head/sys/fs/pseudofs/pseudofs_vncache.c head/sys/fs/pseudofs/pseudofs_vnops.c head/sys/fs/smbfs/smbfs.h head/sys/fs/smbfs/smbfs_io.c head/sys/fs/smbfs/smbfs_node.c head/sys/fs/smbfs/smbfs_node.h head/sys/fs/smbfs/smbfs_smb.c head/sys/fs/smbfs/smbfs_subr.c head/sys/fs/smbfs/smbfs_subr.h head/sys/fs/smbfs/smbfs_vfsops.c head/sys/fs/smbfs/smbfs_vnops.c head/sys/fs/tmpfs/tmpfs.h head/sys/fs/tmpfs/tmpfs_fifoops.c head/sys/fs/tmpfs/tmpfs_fifoops.h head/sys/fs/tmpfs/tmpfs_subr.c head/sys/fs/tmpfs/tmpfs_vfsops.c head/sys/fs/tmpfs/tmpfs_vnops.c head/sys/fs/tmpfs/tmpfs_vnops.h head/sys/fs/udf/ecma167-udf.h head/sys/fs/udf/udf.h head/sys/fs/udf/udf_iconv.c head/sys/fs/udf/udf_mount.h head/sys/fs/udf/udf_vfsops.c head/sys/fs/udf/udf_vnops.c Modified: head/sys/fs/cd9660/cd9660_iconv.c ============================================================================== --- head/sys/fs/cd9660/cd9660_iconv.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/cd9660/cd9660_iconv.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Ryuichiro Imura * All rights reserved. * Modified: head/sys/fs/devfs/devfs.h ============================================================================== --- head/sys/fs/devfs/devfs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * Copyright (c) 2000 Modified: head/sys/fs/devfs/devfs_devs.c ============================================================================== --- head/sys/fs/devfs/devfs_devs.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_devs.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000,2004 * Poul-Henning Kamp. All rights reserved. * Modified: head/sys/fs/devfs/devfs_dir.c ============================================================================== --- head/sys/fs/devfs/devfs_dir.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_dir.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Jaakko Heinonen * All rights reserved. * Modified: head/sys/fs/devfs/devfs_int.h ============================================================================== --- head/sys/fs/devfs/devfs_int.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_int.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Poul-Henning Kamp. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/fs/devfs/devfs_rule.c ============================================================================== --- head/sys/fs/devfs/devfs_rule.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_rule.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Dima Dorfman. * All rights reserved. * Modified: head/sys/fs/devfs/devfs_vfsops.c ============================================================================== --- head/sys/fs/devfs/devfs_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1992, 1993, 1995 * The Regents of the University of California. All rights reserved. * Copyright (c) 2000 Modified: head/sys/fs/devfs/devfs_vnops.c ============================================================================== --- head/sys/fs/devfs/devfs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/devfs/devfs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2004 * Poul-Henning Kamp. All rights reserved. * Copyright (c) 1989, 1992-1993, 1995 Modified: head/sys/fs/ext2fs/ext2_dinode.h ============================================================================== --- head/sys/fs/ext2fs/ext2_dinode.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_dinode.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Aditya Sarawgi * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_dir.h ============================================================================== --- head/sys/fs/ext2fs/ext2_dir.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_dir.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Aditya Sarawgi * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_extents.c ============================================================================== --- head/sys/fs/ext2fs/ext2_extents.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_extents.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Zheng Liu * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_extents.h ============================================================================== --- head/sys/fs/ext2fs/ext2_extents.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_extents.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012, 2010 Zheng Liu * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_hash.c ============================================================================== --- head/sys/fs/ext2fs/ext2_hash.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_hash.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, 2013 Zheng Liu * Copyright (c) 2012, Vyacheslav Matyushin * All rights reserved. Modified: head/sys/fs/ext2fs/ext2_htree.c ============================================================================== --- head/sys/fs/ext2fs/ext2_htree.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2_htree.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, 2012 Zheng Liu * Copyright (c) 2012, Vyacheslav Matyushin * All rights reserved. Modified: head/sys/fs/ext2fs/ext2fs.h ============================================================================== --- head/sys/fs/ext2fs/ext2fs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/ext2fs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -7,6 +7,8 @@ * $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Aditya Sarawgi * All rights reserved. * Modified: head/sys/fs/ext2fs/htree.h ============================================================================== --- head/sys/fs/ext2fs/htree.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/ext2fs/htree.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, 2012 Zheng Liu * Copyright (c) 2012, Vyacheslav Matyushin * All rights reserved. Modified: head/sys/fs/msdosfs/denode.h ============================================================================== --- head/sys/fs/msdosfs/denode.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/denode.h Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: denode.h,v 1.25 1997/11/17 15:36:28 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/direntry.h ============================================================================== --- head/sys/fs/msdosfs/direntry.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/direntry.h Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: direntry.h,v 1.14 1997/11/17 15:36:32 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/fat.h ============================================================================== --- head/sys/fs/msdosfs/fat.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/fat.h Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: fat.h,v 1.12 1997/11/17 15:36:36 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_conv.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_conv.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_conv.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_conv.c,v 1.25 1997/11/17 15:36:40 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_denode.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_denode.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_denode.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 mrg Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_fat.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_fat.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_fat.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_fat.c,v 1.28 1997/11/17 15:36:49 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_iconv.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_iconv.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_iconv.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Ryuichiro Imura * All rights reserved. * Modified: head/sys/fs/msdosfs/msdosfs_lookup.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_lookup.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_lookup.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_lookup.c,v 1.37 1997/11/17 15:36:54 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_vfsops.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfs_vnops.c ============================================================================== --- head/sys/fs/msdosfs/msdosfs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/msdosfs/msdosfsmount.h ============================================================================== --- head/sys/fs/msdosfs/msdosfsmount.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/msdosfs/msdosfsmount.h Mon Nov 27 15:15:37 2017 (r326268) @@ -2,6 +2,8 @@ /* $NetBSD: msdosfsmount.h,v 1.17 1997/11/17 15:37:07 ws Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. Modified: head/sys/fs/nandfs/bmap.c ============================================================================== --- head/sys/fs/nandfs/bmap.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/bmap.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Semihalf * All rights reserved. * Modified: head/sys/fs/nandfs/bmap.h ============================================================================== --- head/sys/fs/nandfs/bmap.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/bmap.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Semihalf * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs.h ============================================================================== --- head/sys/fs/nandfs/nandfs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_alloc.c ============================================================================== --- head/sys/fs/nandfs/nandfs_alloc.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_alloc.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_bmap.c ============================================================================== --- head/sys/fs/nandfs/nandfs_bmap.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_bmap.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_buffer.c ============================================================================== --- head/sys/fs/nandfs/nandfs_buffer.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_buffer.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_cleaner.c ============================================================================== --- head/sys/fs/nandfs/nandfs_cleaner.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_cleaner.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_cpfile.c ============================================================================== --- head/sys/fs/nandfs/nandfs_cpfile.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_cpfile.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_dat.c ============================================================================== --- head/sys/fs/nandfs/nandfs_dat.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_dat.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_dir.c ============================================================================== --- head/sys/fs/nandfs/nandfs_dir.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_dir.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_fs.h ============================================================================== --- head/sys/fs/nandfs/nandfs_fs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_fs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_ifile.c ============================================================================== --- head/sys/fs/nandfs/nandfs_ifile.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_ifile.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_mount.h ============================================================================== --- head/sys/fs/nandfs/nandfs_mount.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_mount.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_segment.c ============================================================================== --- head/sys/fs/nandfs/nandfs_segment.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_segment.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_subr.c ============================================================================== --- head/sys/fs/nandfs/nandfs_subr.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_subr.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_subr.h ============================================================================== --- head/sys/fs/nandfs/nandfs_subr.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_subr.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_sufile.c ============================================================================== --- head/sys/fs/nandfs/nandfs_sufile.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_sufile.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf. * All rights reserved. * Modified: head/sys/fs/nandfs/nandfs_vfsops.c ============================================================================== --- head/sys/fs/nandfs/nandfs_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nandfs/nandfs_vnops.c ============================================================================== --- head/sys/fs/nandfs/nandfs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nandfs/nandfs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2012 Semihalf * Copyright (c) 2008, 2009 Reinoud Zandijk * All rights reserved. Modified: head/sys/fs/nfs/nfs_commonacl.c ============================================================================== --- head/sys/fs/nfs/nfs_commonacl.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfs_commonacl.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfscl.h ============================================================================== --- head/sys/fs/nfs/nfscl.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfscl.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfsclstate.h ============================================================================== --- head/sys/fs/nfs/nfsclstate.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfsclstate.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfsdport.h ============================================================================== --- head/sys/fs/nfs/nfsdport.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfsdport.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfskpiport.h ============================================================================== --- head/sys/fs/nfs/nfskpiport.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfskpiport.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfsrvstate.h ============================================================================== --- head/sys/fs/nfs/nfsrvstate.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfsrvstate.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfs/nfsv4_errstr.h ============================================================================== --- head/sys/fs/nfs/nfsv4_errstr.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfs/nfsv4_errstr.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfsclient/nfs_clkdtrace.c ============================================================================== --- head/sys/fs/nfsclient/nfs_clkdtrace.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsclient/nfs_clkdtrace.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Robert N. M. Watson * All rights reserved. * Modified: head/sys/fs/nfsclient/nfs_clstate.c ============================================================================== --- head/sys/fs/nfsclient/nfs_clstate.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsclient/nfs_clstate.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/nfsclient/nfs_kdtrace.h ============================================================================== --- head/sys/fs/nfsclient/nfs_kdtrace.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsclient/nfs_kdtrace.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Robert N. M. Watson * All rights reserved. * Modified: head/sys/fs/nfsclient/nlminfo.h ============================================================================== --- head/sys/fs/nfsclient/nlminfo.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsclient/nlminfo.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions Modified: head/sys/fs/nfsserver/nfs_fha_new.c ============================================================================== --- head/sys/fs/nfsserver/nfs_fha_new.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsserver/nfs_fha_new.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Copyright (c) 2013 Spectra Logic Corporation * Modified: head/sys/fs/nfsserver/nfs_fha_new.h ============================================================================== --- head/sys/fs/nfsserver/nfs_fha_new.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsserver/nfs_fha_new.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Copyright (c) 2013 Spectra Logic Corporation * Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c ============================================================================== --- head/sys/fs/nfsserver/nfs_nfsdstate.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/nfsserver/nfs_nfsdstate.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Rick Macklem, University of Guelph * All rights reserved. * Modified: head/sys/fs/procfs/procfs_ioctl.c ============================================================================== --- head/sys/fs/procfs/procfs_ioctl.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/procfs/procfs_ioctl.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs.c ============================================================================== --- head/sys/fs/pseudofs/pseudofs.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs.h ============================================================================== --- head/sys/fs/pseudofs/pseudofs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs_fileno.c ============================================================================== --- head/sys/fs/pseudofs/pseudofs_fileno.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs_fileno.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs_internal.h ============================================================================== --- head/sys/fs/pseudofs/pseudofs_internal.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs_internal.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs_vncache.c ============================================================================== --- head/sys/fs/pseudofs/pseudofs_vncache.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs_vncache.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/pseudofs/pseudofs_vnops.c ============================================================================== --- head/sys/fs/pseudofs/pseudofs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/pseudofs/pseudofs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2001 Dag-Erling Coïdan Smørgrav * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs.h ============================================================================== --- head/sys/fs/smbfs/smbfs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_io.c ============================================================================== --- head/sys/fs/smbfs/smbfs_io.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_io.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_node.c ============================================================================== --- head/sys/fs/smbfs/smbfs_node.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_node.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_node.h ============================================================================== --- head/sys/fs/smbfs/smbfs_node.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_node.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_smb.c ============================================================================== --- head/sys/fs/smbfs/smbfs_smb.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_smb.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_subr.c ============================================================================== --- head/sys/fs/smbfs/smbfs_subr.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_subr.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_subr.h ============================================================================== --- head/sys/fs/smbfs/smbfs_subr.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_subr.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_vfsops.c ============================================================================== --- head/sys/fs/smbfs/smbfs_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/smbfs/smbfs_vnops.c ============================================================================== --- head/sys/fs/smbfs/smbfs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/smbfs/smbfs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2001 Boris Popov * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs.h ============================================================================== --- head/sys/fs/tmpfs/tmpfs.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs.h,v 1.26 2007/02/22 06:37:00 thorpej Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_fifoops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_fifoops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_fifoops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_fifoops.c,v 1.5 2005/12/11 12:24:29 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_fifoops.h ============================================================================== --- head/sys/fs/tmpfs/tmpfs_fifoops.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_fifoops.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_fifoops.h,v 1.4 2005/12/03 17:34:44 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_subr.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_subr.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_subr.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_subr.c,v 1.35 2007/07/09 21:10:50 ad Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_vfsops.c,v 1.10 2005/12/11 12:24:29 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_vnops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_vnops.c,v 1.39 2007/07/23 15:41:01 jmmv Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/tmpfs/tmpfs_vnops.h ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vnops.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/tmpfs/tmpfs_vnops.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,6 +1,8 @@ /* $NetBSD: tmpfs_vnops.h,v 1.7 2005/12/03 17:34:44 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sys/fs/udf/ecma167-udf.h ============================================================================== --- head/sys/fs/udf/ecma167-udf.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/ecma167-udf.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Scott Long * All rights reserved. * Modified: head/sys/fs/udf/udf.h ============================================================================== --- head/sys/fs/udf/udf.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/udf.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Scott Long * All rights reserved. * Modified: head/sys/fs/udf/udf_iconv.c ============================================================================== --- head/sys/fs/udf/udf_iconv.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/udf_iconv.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Ryuichiro Imura * All rights reserved. * Modified: head/sys/fs/udf/udf_mount.h ============================================================================== --- head/sys/fs/udf/udf_mount.h Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/udf_mount.h Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Ryuichiro Imura * All rights reserved. * Modified: head/sys/fs/udf/udf_vfsops.c ============================================================================== --- head/sys/fs/udf/udf_vfsops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/udf_vfsops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Scott Long * All rights reserved. * Modified: head/sys/fs/udf/udf_vnops.c ============================================================================== --- head/sys/fs/udf/udf_vnops.c Mon Nov 27 15:14:46 2017 (r326267) +++ head/sys/fs/udf/udf_vnops.c Mon Nov 27 15:15:37 2017 (r326268) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Scott Long * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:17:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D874E5447D; Mon, 27 Nov 2017 15:17:01 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC80E76229; Mon, 27 Nov 2017 15:17:00 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFGx5q001895; Mon, 27 Nov 2017 15:16:59 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFGx7h001890; Mon, 27 Nov 2017 15:16:59 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271516.vARFGx7h001890@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:16:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326269 - head/sys/gdb X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/gdb X-SVN-Commit-Revision: 326269 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:17:01 -0000 Author: pfg Date: Mon Nov 27 15:16:59 2017 New Revision: 326269 URL: https://svnweb.freebsd.org/changeset/base/326269 Log: sys/gdb: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/gdb/gdb.h head/sys/gdb/gdb_cons.c head/sys/gdb/gdb_int.h head/sys/gdb/gdb_main.c head/sys/gdb/gdb_packet.c Modified: head/sys/gdb/gdb.h ============================================================================== --- head/sys/gdb/gdb.h Mon Nov 27 15:15:37 2017 (r326268) +++ head/sys/gdb/gdb.h Mon Nov 27 15:16:59 2017 (r326269) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/gdb/gdb_cons.c ============================================================================== --- head/sys/gdb/gdb_cons.c Mon Nov 27 15:15:37 2017 (r326268) +++ head/sys/gdb/gdb_cons.c Mon Nov 27 15:16:59 2017 (r326269) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Sam Leffler * All rights reserved. * Modified: head/sys/gdb/gdb_int.h ============================================================================== --- head/sys/gdb/gdb_int.h Mon Nov 27 15:15:37 2017 (r326268) +++ head/sys/gdb/gdb_int.h Mon Nov 27 15:16:59 2017 (r326269) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/gdb/gdb_main.c ============================================================================== --- head/sys/gdb/gdb_main.c Mon Nov 27 15:15:37 2017 (r326268) +++ head/sys/gdb/gdb_main.c Mon Nov 27 15:16:59 2017 (r326269) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * Modified: head/sys/gdb/gdb_packet.c ============================================================================== --- head/sys/gdb/gdb_packet.c Mon Nov 27 15:15:37 2017 (r326268) +++ head/sys/gdb/gdb_packet.c Mon Nov 27 15:16:59 2017 (r326269) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Marcel Moolenaar * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:17:50 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B97AE5457D; Mon, 27 Nov 2017 15:17:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CCEA763B9; Mon, 27 Nov 2017 15:17:49 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFHmXF002084; Mon, 27 Nov 2017 15:17:48 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFHb0e001962; Mon, 27 Nov 2017 15:17:37 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271517.vARFHb0e001962@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:17:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326270 - in head/sys/geom: . bde cache concat eli gate journal label linux_lvm mirror mountver multipath nop part raid raid3 sched shsec stripe uzip vinum virstor zero X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/geom: . bde cache concat eli gate journal label linux_lvm mirror mountver multipath nop part raid raid3 sched shsec stripe uzip vinum virstor zero X-SVN-Commit-Revision: 326270 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:17:50 -0000 Author: pfg Date: Mon Nov 27 15:17:37 2017 New Revision: 326270 URL: https://svnweb.freebsd.org/changeset/base/326270 Log: sys/geom: adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/geom/bde/g_bde.c head/sys/geom/bde/g_bde.h head/sys/geom/bde/g_bde_crypt.c head/sys/geom/bde/g_bde_lock.c head/sys/geom/bde/g_bde_work.c head/sys/geom/cache/g_cache.c head/sys/geom/cache/g_cache.h head/sys/geom/concat/g_concat.c head/sys/geom/concat/g_concat.h head/sys/geom/eli/g_eli.c head/sys/geom/eli/g_eli.h head/sys/geom/eli/g_eli_crypto.c head/sys/geom/eli/g_eli_ctl.c head/sys/geom/eli/g_eli_integrity.c head/sys/geom/eli/g_eli_key.c head/sys/geom/eli/g_eli_key_cache.c head/sys/geom/eli/g_eli_privacy.c head/sys/geom/eli/pkcs5v2.c head/sys/geom/eli/pkcs5v2.h head/sys/geom/gate/g_gate.c head/sys/geom/gate/g_gate.h head/sys/geom/geom.h head/sys/geom/geom_aes.c head/sys/geom/geom_bsd.c head/sys/geom/geom_bsd_enc.c head/sys/geom/geom_ccd.c head/sys/geom/geom_ctl.c head/sys/geom/geom_ctl.h head/sys/geom/geom_dev.c head/sys/geom/geom_disk.c head/sys/geom/geom_disk.h head/sys/geom/geom_dump.c head/sys/geom/geom_event.c head/sys/geom/geom_flashmap.c head/sys/geom/geom_fox.c head/sys/geom/geom_int.h head/sys/geom/geom_io.c head/sys/geom/geom_kern.c head/sys/geom/geom_map.c head/sys/geom/geom_mbr.c head/sys/geom/geom_mbr_enc.c head/sys/geom/geom_redboot.c head/sys/geom/geom_slice.c head/sys/geom/geom_slice.h head/sys/geom/geom_subr.c head/sys/geom/geom_sunlabel.c head/sys/geom/geom_sunlabel_enc.c head/sys/geom/geom_vfs.c head/sys/geom/geom_vfs.h head/sys/geom/geom_vol_ffs.c head/sys/geom/journal/g_journal.c head/sys/geom/journal/g_journal.h head/sys/geom/journal/g_journal_ufs.c head/sys/geom/label/g_label.c head/sys/geom/label/g_label.h head/sys/geom/label/g_label_disk_ident.c head/sys/geom/label/g_label_ext2fs.c head/sys/geom/label/g_label_gpt.c head/sys/geom/label/g_label_iso9660.c head/sys/geom/label/g_label_msdosfs.c head/sys/geom/label/g_label_msdosfs.h head/sys/geom/label/g_label_ntfs.c head/sys/geom/label/g_label_reiserfs.c head/sys/geom/label/g_label_ufs.c head/sys/geom/linux_lvm/g_linux_lvm.c head/sys/geom/linux_lvm/g_linux_lvm.h head/sys/geom/mirror/g_mirror.c head/sys/geom/mirror/g_mirror.h head/sys/geom/mirror/g_mirror_ctl.c head/sys/geom/mountver/g_mountver.c head/sys/geom/mountver/g_mountver.h head/sys/geom/multipath/g_multipath.c head/sys/geom/multipath/g_multipath.h head/sys/geom/nop/g_nop.c head/sys/geom/nop/g_nop.h head/sys/geom/part/g_part.c head/sys/geom/part/g_part.h head/sys/geom/part/g_part_apm.c head/sys/geom/part/g_part_bsd.c head/sys/geom/part/g_part_ebr.c head/sys/geom/part/g_part_gpt.c head/sys/geom/part/g_part_ldm.c head/sys/geom/part/g_part_mbr.c head/sys/geom/part/g_part_vtoc8.c head/sys/geom/raid/g_raid.c head/sys/geom/raid/g_raid.h head/sys/geom/raid/g_raid_ctl.c head/sys/geom/raid/md_ddf.c head/sys/geom/raid/md_ddf.h head/sys/geom/raid/md_intel.c head/sys/geom/raid/md_jmicron.c head/sys/geom/raid/md_nvidia.c head/sys/geom/raid/md_promise.c head/sys/geom/raid/md_sii.c head/sys/geom/raid/tr_concat.c head/sys/geom/raid/tr_raid0.c head/sys/geom/raid/tr_raid1.c head/sys/geom/raid/tr_raid1e.c head/sys/geom/raid/tr_raid5.c head/sys/geom/raid3/g_raid3.c head/sys/geom/raid3/g_raid3.h head/sys/geom/raid3/g_raid3_ctl.c head/sys/geom/sched/g_sched.c head/sys/geom/sched/g_sched.h head/sys/geom/sched/gs_rr.c head/sys/geom/sched/gs_scheduler.h head/sys/geom/shsec/g_shsec.c head/sys/geom/shsec/g_shsec.h head/sys/geom/stripe/g_stripe.c head/sys/geom/stripe/g_stripe.h head/sys/geom/uzip/g_uzip.c head/sys/geom/vinum/geom_vinum.c head/sys/geom/vinum/geom_vinum.h head/sys/geom/vinum/geom_vinum_create.c head/sys/geom/vinum/geom_vinum_drive.c head/sys/geom/vinum/geom_vinum_events.c head/sys/geom/vinum/geom_vinum_init.c head/sys/geom/vinum/geom_vinum_list.c head/sys/geom/vinum/geom_vinum_move.c head/sys/geom/vinum/geom_vinum_plex.c head/sys/geom/vinum/geom_vinum_raid5.c head/sys/geom/vinum/geom_vinum_raid5.h head/sys/geom/vinum/geom_vinum_rename.c head/sys/geom/vinum/geom_vinum_rm.c head/sys/geom/vinum/geom_vinum_share.h head/sys/geom/vinum/geom_vinum_state.c head/sys/geom/vinum/geom_vinum_volume.c head/sys/geom/virstor/binstream.c head/sys/geom/virstor/binstream.h head/sys/geom/virstor/g_virstor.c head/sys/geom/virstor/g_virstor.h head/sys/geom/virstor/g_virstor_md.c head/sys/geom/virstor/g_virstor_md.h head/sys/geom/zero/g_zero.c Modified: head/sys/geom/bde/g_bde.c ============================================================================== --- head/sys/geom/bde/g_bde.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/bde/g_bde.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/bde/g_bde.h ============================================================================== --- head/sys/geom/bde/g_bde.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/bde/g_bde.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/bde/g_bde_crypt.c ============================================================================== --- head/sys/geom/bde/g_bde_crypt.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/bde/g_bde_crypt.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/bde/g_bde_lock.c ============================================================================== --- head/sys/geom/bde/g_bde_lock.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/bde/g_bde_lock.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/bde/g_bde_work.c ============================================================================== --- head/sys/geom/bde/g_bde_work.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/bde/g_bde_work.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/cache/g_cache.c ============================================================================== --- head/sys/geom/cache/g_cache.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/cache/g_cache.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Ruslan Ermilov * All rights reserved. * Modified: head/sys/geom/cache/g_cache.h ============================================================================== --- head/sys/geom/cache/g_cache.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/cache/g_cache.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Ruslan Ermilov * All rights reserved. * Modified: head/sys/geom/concat/g_concat.c ============================================================================== --- head/sys/geom/concat/g_concat.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/concat/g_concat.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/concat/g_concat.h ============================================================================== --- head/sys/geom/concat/g_concat.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/concat/g_concat.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli.c ============================================================================== --- head/sys/geom/eli/g_eli.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli.h ============================================================================== --- head/sys/geom/eli/g_eli.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_crypto.c ============================================================================== --- head/sys/geom/eli/g_eli_crypto.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_crypto.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_ctl.c ============================================================================== --- head/sys/geom/eli/g_eli_ctl.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_ctl.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_integrity.c ============================================================================== --- head/sys/geom/eli/g_eli_integrity.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_integrity.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_key.c ============================================================================== --- head/sys/geom/eli/g_eli_key.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_key.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_key_cache.c ============================================================================== --- head/sys/geom/eli/g_eli_key_cache.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_key_cache.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/g_eli_privacy.c ============================================================================== --- head/sys/geom/eli/g_eli_privacy.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/g_eli_privacy.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/pkcs5v2.c ============================================================================== --- head/sys/geom/eli/pkcs5v2.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/pkcs5v2.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/eli/pkcs5v2.h ============================================================================== --- head/sys/geom/eli/pkcs5v2.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/eli/pkcs5v2.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/gate/g_gate.c ============================================================================== --- head/sys/geom/gate/g_gate.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/gate/g_gate.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/geom/gate/g_gate.h ============================================================================== --- head/sys/geom/gate/g_gate.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/gate/g_gate.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/geom.h ============================================================================== --- head/sys/geom/geom.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_aes.c ============================================================================== --- head/sys/geom/geom_aes.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_aes.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_bsd.c ============================================================================== --- head/sys/geom/geom_bsd.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_bsd.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_bsd_enc.c ============================================================================== --- head/sys/geom/geom_bsd_enc.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_bsd_enc.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_ccd.c ============================================================================== --- head/sys/geom/geom_ccd.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_ccd.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2003 Poul-Henning Kamp. * Copyright (c) 1995 Jason R. Thorpe. * Copyright (c) 1990, 1993 Modified: head/sys/geom/geom_ctl.c ============================================================================== --- head/sys/geom/geom_ctl.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_ctl.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_ctl.h ============================================================================== --- head/sys/geom/geom_ctl.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_ctl.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_dev.c ============================================================================== --- head/sys/geom/geom_dev.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_dev.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_disk.c ============================================================================== --- head/sys/geom/geom_disk.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_disk.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_disk.h ============================================================================== --- head/sys/geom/geom_disk.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_disk.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_dump.c ============================================================================== --- head/sys/geom/geom_dump.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_dump.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_event.c ============================================================================== --- head/sys/geom/geom_event.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_event.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_flashmap.c ============================================================================== --- head/sys/geom/geom_flashmap.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_flashmap.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Semihalf * Copyright (c) 2009 Jakub Klama * All rights reserved. Modified: head/sys/geom/geom_fox.c ============================================================================== --- head/sys/geom/geom_fox.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_fox.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_int.h ============================================================================== --- head/sys/geom/geom_int.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_int.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_io.c ============================================================================== --- head/sys/geom/geom_io.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_io.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * Copyright (c) 2013 The FreeBSD Foundation Modified: head/sys/geom/geom_kern.c ============================================================================== --- head/sys/geom/geom_kern.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_kern.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_map.c ============================================================================== --- head/sys/geom/geom_map.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_map.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2011 Aleksandr Rybalko * based on geom_redboot.c * Copyright (c) 2009 Sam Leffler, Errno Consulting Modified: head/sys/geom/geom_mbr.c ============================================================================== --- head/sys/geom/geom_mbr.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_mbr.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_mbr_enc.c ============================================================================== --- head/sys/geom/geom_mbr_enc.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_mbr_enc.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_redboot.c ============================================================================== --- head/sys/geom/geom_redboot.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_redboot.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/geom/geom_slice.c ============================================================================== --- head/sys/geom/geom_slice.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_slice.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_slice.h ============================================================================== --- head/sys/geom/geom_slice.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_slice.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_subr.c ============================================================================== --- head/sys/geom/geom_subr.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_subr.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_sunlabel.c ============================================================================== --- head/sys/geom/geom_sunlabel.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_sunlabel.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sys/geom/geom_sunlabel_enc.c ============================================================================== --- head/sys/geom/geom_sunlabel_enc.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_sunlabel_enc.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Jake Burkholder * Copyright (c) 2003 Poul-Henning Kamp * Copyright (c) 2004,2005 Joerg Wunsch Modified: head/sys/geom/geom_vfs.c ============================================================================== --- head/sys/geom/geom_vfs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_vfs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_vfs.h ============================================================================== --- head/sys/geom/geom_vfs.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_vfs.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/geom/geom_vol_ffs.c ============================================================================== --- head/sys/geom/geom_vol_ffs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/geom_vol_ffs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002, 2003 Gordon Tetlow * All rights reserved. * Modified: head/sys/geom/journal/g_journal.c ============================================================================== --- head/sys/geom/journal/g_journal.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/journal/g_journal.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/journal/g_journal.h ============================================================================== --- head/sys/geom/journal/g_journal.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/journal/g_journal.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/journal/g_journal_ufs.c ============================================================================== --- head/sys/geom/journal/g_journal_ufs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/journal/g_journal_ufs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/label/g_label.c ============================================================================== --- head/sys/geom/label/g_label.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/label/g_label.h ============================================================================== --- head/sys/geom/label/g_label.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/label/g_label_disk_ident.c ============================================================================== --- head/sys/geom/label/g_label_disk_ident.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_disk_ident.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Ivan Voras * All rights reserved. * Modified: head/sys/geom/label/g_label_ext2fs.c ============================================================================== --- head/sys/geom/label/g_label_ext2fs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_ext2fs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Stanislav Sedov * All rights reserved. * Modified: head/sys/geom/label/g_label_gpt.c ============================================================================== --- head/sys/geom/label/g_label_gpt.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_gpt.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marius Nuennerich * All rights reserved. * Modified: head/sys/geom/label/g_label_iso9660.c ============================================================================== --- head/sys/geom/label/g_label_iso9660.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_iso9660.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/label/g_label_msdosfs.c ============================================================================== --- head/sys/geom/label/g_label_msdosfs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_msdosfs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * Copyright (c) 2006 Tobias Reifenberger * All rights reserved. Modified: head/sys/geom/label/g_label_msdosfs.h ============================================================================== --- head/sys/geom/label/g_label_msdosfs.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_msdosfs.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Tobias Reifenberger * All rights reserved. * Modified: head/sys/geom/label/g_label_ntfs.c ============================================================================== --- head/sys/geom/label/g_label_ntfs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_ntfs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Takanori Watanabe * All rights reserved. * Modified: head/sys/geom/label/g_label_reiserfs.c ============================================================================== --- head/sys/geom/label/g_label_reiserfs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_reiserfs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Stanislav Sedov * All rights reserved. * Modified: head/sys/geom/label/g_label_ufs.c ============================================================================== --- head/sys/geom/label/g_label_ufs.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/label/g_label_ufs.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002, 2003 Gordon Tetlow * Copyright (c) 2006 Pawel Jakub Dawidek * All rights reserved. Modified: head/sys/geom/linux_lvm/g_linux_lvm.c ============================================================================== --- head/sys/geom/linux_lvm/g_linux_lvm.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/linux_lvm/g_linux_lvm.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Andrew Thompson * All rights reserved. * Modified: head/sys/geom/linux_lvm/g_linux_lvm.h ============================================================================== --- head/sys/geom/linux_lvm/g_linux_lvm.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/linux_lvm/g_linux_lvm.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Andrew Thompson * All rights reserved. * Modified: head/sys/geom/mirror/g_mirror.c ============================================================================== --- head/sys/geom/mirror/g_mirror.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/mirror/g_mirror.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/mirror/g_mirror.h ============================================================================== --- head/sys/geom/mirror/g_mirror.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/mirror/g_mirror.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/mirror/g_mirror_ctl.c ============================================================================== --- head/sys/geom/mirror/g_mirror_ctl.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/mirror/g_mirror_ctl.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/mountver/g_mountver.c ============================================================================== --- head/sys/geom/mountver/g_mountver.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/mountver/g_mountver.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Edward Tomasz Napierala * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. Modified: head/sys/geom/mountver/g_mountver.h ============================================================================== --- head/sys/geom/mountver/g_mountver.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/mountver/g_mountver.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Edward Tomasz Napierala * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. Modified: head/sys/geom/multipath/g_multipath.c ============================================================================== --- head/sys/geom/multipath/g_multipath.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/multipath/g_multipath.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2013 Alexander Motin * Copyright (c) 2006-2007 Matthew Jacob * All rights reserved. Modified: head/sys/geom/multipath/g_multipath.h ============================================================================== --- head/sys/geom/multipath/g_multipath.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/multipath/g_multipath.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2007 Matthew Jacob * All rights reserved. * Modified: head/sys/geom/nop/g_nop.c ============================================================================== --- head/sys/geom/nop/g_nop.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/nop/g_nop.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/nop/g_nop.h ============================================================================== --- head/sys/geom/nop/g_nop.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/nop/g_nop.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/part/g_part.c ============================================================================== --- head/sys/geom/part/g_part.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002, 2005-2009 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part.h ============================================================================== --- head/sys/geom/part/g_part.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_apm.c ============================================================================== --- head/sys/geom/part/g_part_apm.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_apm.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_bsd.c ============================================================================== --- head/sys/geom/part/g_part_bsd.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_bsd.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_ebr.c ============================================================================== --- head/sys/geom/part/g_part_ebr.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_ebr.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_gpt.c ============================================================================== --- head/sys/geom/part/g_part_gpt.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_gpt.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002, 2005-2007, 2011 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_ldm.c ============================================================================== --- head/sys/geom/part/g_part_ldm.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_ldm.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Andrey V. Elsukov * All rights reserved. * Modified: head/sys/geom/part/g_part_mbr.c ============================================================================== --- head/sys/geom/part/g_part_mbr.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_mbr.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007, 2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/part/g_part_vtoc8.c ============================================================================== --- head/sys/geom/part/g_part_vtoc8.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/part/g_part_vtoc8.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Marcel Moolenaar * All rights reserved. * Modified: head/sys/geom/raid/g_raid.c ============================================================================== --- head/sys/geom/raid/g_raid.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/g_raid.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/g_raid.h ============================================================================== --- head/sys/geom/raid/g_raid.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/g_raid.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/g_raid_ctl.c ============================================================================== --- head/sys/geom/raid/g_raid_ctl.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/g_raid_ctl.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/md_ddf.c ============================================================================== --- head/sys/geom/raid/md_ddf.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_ddf.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/md_ddf.h ============================================================================== --- head/sys/geom/raid/md_ddf.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_ddf.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Alexander Motin * Copyright (c) 2008 Scott Long * All rights reserved. Modified: head/sys/geom/raid/md_intel.c ============================================================================== --- head/sys/geom/raid/md_intel.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_intel.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. Modified: head/sys/geom/raid/md_jmicron.c ============================================================================== --- head/sys/geom/raid/md_jmicron.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_jmicron.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. Modified: head/sys/geom/raid/md_nvidia.c ============================================================================== --- head/sys/geom/raid/md_nvidia.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_nvidia.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Alexander Motin * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. Modified: head/sys/geom/raid/md_promise.c ============================================================================== --- head/sys/geom/raid/md_promise.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_promise.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Alexander Motin * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. Modified: head/sys/geom/raid/md_sii.c ============================================================================== --- head/sys/geom/raid/md_sii.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/md_sii.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Alexander Motin * Copyright (c) 2000 - 2008 Søren Schmidt * All rights reserved. Modified: head/sys/geom/raid/tr_concat.c ============================================================================== --- head/sys/geom/raid/tr_concat.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/tr_concat.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/tr_raid0.c ============================================================================== --- head/sys/geom/raid/tr_raid0.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/tr_raid0.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/tr_raid1.c ============================================================================== --- head/sys/geom/raid/tr_raid1.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/tr_raid1.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/tr_raid1e.c ============================================================================== --- head/sys/geom/raid/tr_raid1e.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/tr_raid1e.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid/tr_raid5.c ============================================================================== --- head/sys/geom/raid/tr_raid5.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid/tr_raid5.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Alexander Motin * All rights reserved. * Modified: head/sys/geom/raid3/g_raid3.c ============================================================================== --- head/sys/geom/raid3/g_raid3.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid3/g_raid3.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/raid3/g_raid3.h ============================================================================== --- head/sys/geom/raid3/g_raid3.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid3/g_raid3.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/raid3/g_raid3_ctl.c ============================================================================== --- head/sys/geom/raid3/g_raid3_ctl.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/raid3/g_raid3_ctl.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/sched/g_sched.c ============================================================================== --- head/sys/geom/sched/g_sched.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/sched/g_sched.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 Fabio Checconi * Copyright (c) 2009-2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. Modified: head/sys/geom/sched/g_sched.h ============================================================================== --- head/sys/geom/sched/g_sched.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/sched/g_sched.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 Fabio Checconi * Copyright (c) 2009-2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. Modified: head/sys/geom/sched/gs_rr.c ============================================================================== --- head/sys/geom/sched/gs_rr.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/sched/gs_rr.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 Fabio Checconi * Copyright (c) 2009-2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. Modified: head/sys/geom/sched/gs_scheduler.h ============================================================================== --- head/sys/geom/sched/gs_scheduler.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/sched/gs_scheduler.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 Fabio Checconi * Copyright (c) 2009-2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. Modified: head/sys/geom/shsec/g_shsec.c ============================================================================== --- head/sys/geom/shsec/g_shsec.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/shsec/g_shsec.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/shsec/g_shsec.h ============================================================================== --- head/sys/geom/shsec/g_shsec.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/shsec/g_shsec.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/stripe/g_stripe.c ============================================================================== --- head/sys/geom/stripe/g_stripe.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/stripe/g_stripe.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/stripe/g_stripe.h ============================================================================== --- head/sys/geom/stripe/g_stripe.h Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/stripe/g_stripe.h Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/geom/uzip/g_uzip.c ============================================================================== --- head/sys/geom/uzip/g_uzip.c Mon Nov 27 15:16:59 2017 (r326269) +++ head/sys/geom/uzip/g_uzip.c Mon Nov 27 15:17:37 2017 (r326270) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Max Khon * Copyright (c) 2014 Juniper Networks, Inc. * Copyright (c) 2006-2016 Maxim Sobolev Modified: head/sys/geom/vinum/geom_vinum.c ============================================================================== --- head/sys/geom/vinum/geom_vinum.c Mon Nov 27 15:16:59 2017 (r326269) *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:20:25 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 969EFE546F2; Mon, 27 Nov 2017 15:20:25 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 330F5765B0; Mon, 27 Nov 2017 15:20:25 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFKOsq002351; Mon, 27 Nov 2017 15:20:24 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFKD0Q002236; Mon, 27 Nov 2017 15:20:13 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271520.vARFKD0Q002236@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:20:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326271 - in head/sys: kern libkern libkern/arm X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys: kern libkern libkern/arm X-SVN-Commit-Revision: 326271 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:20:25 -0000 Author: pfg Date: Mon Nov 27 15:20:12 2017 New Revision: 326271 URL: https://svnweb.freebsd.org/changeset/base/326271 Log: sys/kern: adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Modified: head/sys/kern/imgact_aout.c head/sys/kern/imgact_elf.c head/sys/kern/imgact_elf32.c head/sys/kern/imgact_elf64.c head/sys/kern/imgact_shell.c head/sys/kern/kern_alq.c head/sys/kern/kern_clocksource.c head/sys/kern/kern_condvar.c head/sys/kern/kern_conf.c head/sys/kern/kern_context.c head/sys/kern/kern_cpu.c head/sys/kern/kern_cpuset.c head/sys/kern/kern_ctf.c head/sys/kern/kern_dtrace.c head/sys/kern/kern_environment.c head/sys/kern/kern_et.c head/sys/kern/kern_event.c head/sys/kern/kern_exec.c head/sys/kern/kern_fail.c head/sys/kern/kern_ffclock.c head/sys/kern/kern_hhook.c head/sys/kern/kern_idle.c head/sys/kern/kern_intr.c head/sys/kern/kern_jail.c head/sys/kern/kern_khelp.c head/sys/kern/kern_kthread.c head/sys/kern/kern_ktr.c head/sys/kern/kern_linker.c head/sys/kern/kern_lock.c head/sys/kern/kern_lockstat.c head/sys/kern/kern_loginclass.c head/sys/kern/kern_mbuf.c head/sys/kern/kern_module.c head/sys/kern/kern_mtxpool.c head/sys/kern/kern_mutex.c head/sys/kern/kern_osd.c head/sys/kern/kern_physio.c head/sys/kern/kern_pmc.c head/sys/kern/kern_poll.c head/sys/kern/kern_priv.c head/sys/kern/kern_racct.c head/sys/kern/kern_rangelock.c head/sys/kern/kern_rctl.c head/sys/kern/kern_rwlock.c head/sys/kern/kern_sdt.c head/sys/kern/kern_sema.c head/sys/kern/kern_sharedpage.c head/sys/kern/kern_switch.c head/sys/kern/kern_sx.c head/sys/kern/kern_syscalls.c head/sys/kern/kern_thr.c head/sys/kern/kern_thread.c head/sys/kern/kern_umtx.c head/sys/kern/kern_uuid.c head/sys/kern/link_elf.c head/sys/kern/link_elf_obj.c head/sys/kern/sched_ule.c head/sys/kern/subr_acl_nfs4.c head/sys/kern/subr_acl_posix1e.c head/sys/kern/subr_bufring.c head/sys/kern/subr_bus.c head/sys/kern/subr_bus_dma.c head/sys/kern/subr_busdma_bufalloc.c head/sys/kern/subr_capability.c head/sys/kern/subr_counter.c head/sys/kern/subr_devstat.c head/sys/kern/subr_dummy_vdso_tc.c head/sys/kern/subr_eventhandler.c head/sys/kern/subr_fattime.c head/sys/kern/subr_firmware.c head/sys/kern/subr_hints.c head/sys/kern/subr_kdb.c head/sys/kern/subr_kobj.c head/sys/kern/subr_lock.c head/sys/kern/subr_module.c head/sys/kern/subr_msgbuf.c head/sys/kern/subr_pctrie.c head/sys/kern/subr_power.c head/sys/kern/subr_sbuf.c head/sys/kern/subr_sleepqueue.c head/sys/kern/subr_smp.c head/sys/kern/subr_stack.c head/sys/kern/subr_taskqueue.c head/sys/kern/subr_terminal.c head/sys/kern/subr_turnstile.c head/sys/kern/subr_unit.c head/sys/kern/subr_vmem.c head/sys/kern/subr_witness.c head/sys/kern/sys_capability.c head/sys/kern/sys_pipe.c head/sys/kern/sys_procdesc.c head/sys/kern/sys_process.c head/sys/kern/sysv_ipc.c head/sys/kern/sysv_msg.c head/sys/kern/sysv_sem.c head/sys/kern/sysv_shm.c head/sys/kern/tty.c head/sys/kern/tty_inq.c head/sys/kern/tty_outq.c head/sys/kern/tty_pts.c head/sys/kern/tty_tty.c head/sys/kern/tty_ttydisc.c head/sys/kern/uipc_accf.c head/sys/kern/uipc_debug.c head/sys/kern/uipc_mqueue.c head/sys/kern/uipc_sem.c head/sys/kern/uipc_shm.c head/sys/kern/vfs_acl.c head/sys/kern/vfs_aio.c head/sys/kern/vfs_bio.c head/sys/kern/vfs_extattr.c head/sys/kern/vfs_hash.c head/sys/libkern/arm/aeabi_unwind.c head/sys/libkern/arm/ldivmod_helper.c head/sys/libkern/iconv.c head/sys/libkern/iconv_ucs.c head/sys/libkern/iconv_xlat.c head/sys/libkern/iconv_xlat16.c head/sys/libkern/inet_aton.c head/sys/libkern/memcchr.c head/sys/libkern/memmove.c head/sys/libkern/memset.c head/sys/libkern/strcspn.c head/sys/libkern/strdup.c head/sys/libkern/strlcat.c head/sys/libkern/strlen.c head/sys/libkern/strnlen.c head/sys/libkern/strspn.c head/sys/libkern/strvalid.c Modified: head/sys/kern/imgact_aout.c ============================================================================== --- head/sys/kern/imgact_aout.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/imgact_aout.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1993, David Greenman * All rights reserved. * Modified: head/sys/kern/imgact_elf.c ============================================================================== --- head/sys/kern/imgact_elf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/imgact_elf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2017 Dell EMC * Copyright (c) 2000 David O'Brien * Copyright (c) 1995-1996 Søren Schmidt Modified: head/sys/kern/imgact_elf32.c ============================================================================== --- head/sys/kern/imgact_elf32.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/imgact_elf32.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Doug Rabson * All rights reserved. * Modified: head/sys/kern/imgact_elf64.c ============================================================================== --- head/sys/kern/imgact_elf64.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/imgact_elf64.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Doug Rabson * All rights reserved. * Modified: head/sys/kern/imgact_shell.c ============================================================================== --- head/sys/kern/imgact_shell.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/imgact_shell.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1993, David Greenman * All rights reserved. * Modified: head/sys/kern/kern_alq.c ============================================================================== --- head/sys/kern/kern_alq.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_alq.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002, Jeffrey Roberson * Copyright (c) 2008-2009, Lawrence Stewart * Copyright (c) 2009-2010, The FreeBSD Foundation Modified: head/sys/kern/kern_clocksource.c ============================================================================== --- head/sys/kern/kern_clocksource.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_clocksource.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2013 Alexander Motin * All rights reserved. * Modified: head/sys/kern/kern_condvar.c ============================================================================== --- head/sys/kern/kern_condvar.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_condvar.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Jake Burkholder . * All rights reserved. * Modified: head/sys/kern/kern_conf.c ============================================================================== --- head/sys/kern/kern_conf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_conf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2002 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/kern/kern_context.c ============================================================================== --- head/sys/kern/kern_context.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_context.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Daniel M. Eischen * All rights reserved. * Modified: head/sys/kern/kern_cpu.c ============================================================================== --- head/sys/kern/kern_cpu.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_cpu.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2007 Nate Lawson (SDG) * All rights reserved. * Modified: head/sys/kern/kern_cpuset.c ============================================================================== --- head/sys/kern/kern_cpuset.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_cpuset.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008, Jeffrey Roberson * All rights reserved. * Modified: head/sys/kern/kern_ctf.c ============================================================================== --- head/sys/kern/kern_ctf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_ctf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 John Birrell * All rights reserved. * Modified: head/sys/kern/kern_dtrace.c ============================================================================== --- head/sys/kern/kern_dtrace.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_dtrace.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 John Birrell * All rights reserved. * Modified: head/sys/kern/kern_environment.c ============================================================================== --- head/sys/kern/kern_environment.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_environment.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Michael Smith * All rights reserved. * Modified: head/sys/kern/kern_et.c ============================================================================== --- head/sys/kern/kern_et.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_et.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2013 Alexander Motin * All rights reserved. * Modified: head/sys/kern/kern_event.c ============================================================================== --- head/sys/kern/kern_event.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_event.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999,2000,2001 Jonathan Lemon * Copyright 2004 John-Mark Gurney * Copyright (c) 2009 Apple, Inc. Modified: head/sys/kern/kern_exec.c ============================================================================== --- head/sys/kern/kern_exec.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_exec.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1993, David Greenman * All rights reserved. * Modified: head/sys/kern/kern_fail.c ============================================================================== --- head/sys/kern/kern_fail.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_fail.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Isilon Inc http://www.isilon.com/ * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_ffclock.c ============================================================================== --- head/sys/kern/kern_ffclock.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_ffclock.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The University of Melbourne * All rights reserved. * Modified: head/sys/kern/kern_hhook.c ============================================================================== --- head/sys/kern/kern_hhook.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_hhook.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010,2013 Lawrence Stewart * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/kern/kern_idle.c ============================================================================== --- head/sys/kern/kern_idle.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_idle.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2000-2004 The FreeBSD Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_intr.c ============================================================================== --- head/sys/kern/kern_intr.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_intr.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997, Stefan Esser * All rights reserved. * Modified: head/sys/kern/kern_jail.c ============================================================================== --- head/sys/kern/kern_jail.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_jail.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Poul-Henning Kamp. * Copyright (c) 2008 Bjoern A. Zeeb. * Copyright (c) 2009 James Gritton. Modified: head/sys/kern/kern_khelp.c ============================================================================== --- head/sys/kern/kern_khelp.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_khelp.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010,2013 Lawrence Stewart * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. Modified: head/sys/kern/kern_kthread.c ============================================================================== --- head/sys/kern/kern_kthread.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_kthread.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Peter Wemm * All rights reserved. * Modified: head/sys/kern/kern_ktr.c ============================================================================== --- head/sys/kern/kern_ktr.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_ktr.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 John Baldwin * All rights reserved. * Modified: head/sys/kern/kern_linker.c ============================================================================== --- head/sys/kern/kern_linker.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_linker.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997-2000 Doug Rabson * All rights reserved. * Modified: head/sys/kern/kern_lock.c ============================================================================== --- head/sys/kern/kern_lock.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_lock.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Attilio Rao * All rights reserved. * Modified: head/sys/kern/kern_lockstat.c ============================================================================== --- head/sys/kern/kern_lockstat.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_lockstat.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2008-2009 Stacey Son * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_loginclass.c ============================================================================== --- head/sys/kern/kern_loginclass.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_loginclass.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/kern/kern_mbuf.c ============================================================================== --- head/sys/kern/kern_mbuf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_mbuf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004, 2005, * Bosko Milekic . All rights reserved. * Modified: head/sys/kern/kern_module.c ============================================================================== --- head/sys/kern/kern_module.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_module.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Doug Rabson * All rights reserved. * Modified: head/sys/kern/kern_mtxpool.c ============================================================================== --- head/sys/kern/kern_mtxpool.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_mtxpool.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Matthew Dillon. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_mutex.c ============================================================================== --- head/sys/kern/kern_mutex.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_mutex.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_osd.c ============================================================================== --- head/sys/kern/kern_osd.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_osd.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sys/kern/kern_physio.c ============================================================================== --- head/sys/kern/kern_physio.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_physio.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 John S. Dyson * All rights reserved. * Modified: head/sys/kern/kern_pmc.c ============================================================================== --- head/sys/kern/kern_pmc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_pmc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2008 Joseph Koshy * Copyright (c) 2007 The FreeBSD Foundation * All rights reserved. Modified: head/sys/kern/kern_poll.c ============================================================================== --- head/sys/kern/kern_poll.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_poll.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001-2002 Luigi Rizzo * * Supported by: the Xorp Project (www.xorp.org) Modified: head/sys/kern/kern_priv.c ============================================================================== --- head/sys/kern/kern_priv.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_priv.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 nCircle Network Security, Inc. * Copyright (c) 2009 Robert N. M. Watson * All rights reserved. Modified: head/sys/kern/kern_racct.c ============================================================================== --- head/sys/kern/kern_racct.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_racct.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/kern/kern_rangelock.c ============================================================================== --- head/sys/kern/kern_rangelock.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_rangelock.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Konstantin Belousov * All rights reserved. * Modified: head/sys/kern/kern_rctl.c ============================================================================== --- head/sys/kern/kern_rctl.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_rctl.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/kern/kern_rwlock.c ============================================================================== --- head/sys/kern/kern_rwlock.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_rwlock.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 John Baldwin * All rights reserved. * Modified: head/sys/kern/kern_sdt.c ============================================================================== --- head/sys/kern/kern_sdt.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_sdt.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2006-2008 John Birrell * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_sema.c ============================================================================== --- head/sys/kern/kern_sema.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_sema.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2001 Jason Evans . All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/kern_sharedpage.c ============================================================================== --- head/sys/kern/kern_sharedpage.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_sharedpage.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010, 2012 Konstantin Belousov * Copyright (c) 2015 The FreeBSD Foundation * All rights reserved. Modified: head/sys/kern/kern_switch.c ============================================================================== --- head/sys/kern/kern_switch.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_switch.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jake Burkholder * All rights reserved. * Modified: head/sys/kern/kern_sx.c ============================================================================== --- head/sys/kern/kern_sx.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_sx.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Attilio Rao * Copyright (c) 2001 Jason Evans * All rights reserved. Modified: head/sys/kern/kern_syscalls.c ============================================================================== --- head/sys/kern/kern_syscalls.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_syscalls.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Assar Westerlund * All rights reserved. * Modified: head/sys/kern/kern_thr.c ============================================================================== --- head/sys/kern/kern_thr.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_thr.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003, Jeffrey Roberson * All rights reserved. * Modified: head/sys/kern/kern_thread.c ============================================================================== --- head/sys/kern/kern_thread.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_thread.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2001 Julian Elischer . * All rights reserved. * Modified: head/sys/kern/kern_umtx.c ============================================================================== --- head/sys/kern/kern_umtx.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_umtx.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2015, 2016 The FreeBSD Foundation * Copyright (c) 2004, David Xu * Copyright (c) 2002, Jeffrey Roberson Modified: head/sys/kern/kern_uuid.c ============================================================================== --- head/sys/kern/kern_uuid.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/kern_uuid.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Marcel Moolenaar * All rights reserved. * Modified: head/sys/kern/link_elf.c ============================================================================== --- head/sys/kern/link_elf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/link_elf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998-2000 Doug Rabson * All rights reserved. * Modified: head/sys/kern/link_elf_obj.c ============================================================================== --- head/sys/kern/link_elf_obj.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/link_elf_obj.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998-2000 Doug Rabson * Copyright (c) 2004 Peter Wemm * All rights reserved. Modified: head/sys/kern/sched_ule.c ============================================================================== --- head/sys/kern/sched_ule.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sched_ule.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2007, Jeffrey Roberson * All rights reserved. * Modified: head/sys/kern/subr_acl_nfs4.c ============================================================================== --- head/sys/kern/subr_acl_nfs4.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_acl_nfs4.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2010 Edward Tomasz Napierała * All rights reserved. * Modified: head/sys/kern/subr_acl_posix1e.c ============================================================================== --- head/sys/kern/subr_acl_posix1e.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_acl_posix1e.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2006 Robert N. M. Watson * All rights reserved. * Modified: head/sys/kern/subr_bufring.c ============================================================================== --- head/sys/kern/subr_bufring.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_bufring.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007, 2008 Kip Macy * All rights reserved. * Modified: head/sys/kern/subr_bus.c ============================================================================== --- head/sys/kern/subr_bus.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_bus.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997,1998,2003 Doug Rabson * All rights reserved. * Modified: head/sys/kern/subr_bus_dma.c ============================================================================== --- head/sys/kern/subr_bus_dma.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_bus_dma.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 EMC Corp. * All rights reserved. * Modified: head/sys/kern/subr_busdma_bufalloc.c ============================================================================== --- head/sys/kern/subr_busdma_bufalloc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_busdma_bufalloc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Ian Lepore * All rights reserved. * Modified: head/sys/kern/subr_capability.c ============================================================================== --- head/sys/kern/subr_capability.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_capability.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 FreeBSD Foundation * All rights reserved. * Modified: head/sys/kern/subr_counter.c ============================================================================== --- head/sys/kern/subr_counter.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_counter.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2012 Gleb Smirnoff * All rights reserved. * Modified: head/sys/kern/subr_devstat.c ============================================================================== --- head/sys/kern/subr_devstat.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_devstat.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. * All rights reserved. * Modified: head/sys/kern/subr_dummy_vdso_tc.c ============================================================================== --- head/sys/kern/subr_dummy_vdso_tc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_dummy_vdso_tc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2012 Konstantin Belousov . * All rights reserved. * Modified: head/sys/kern/subr_eventhandler.c ============================================================================== --- head/sys/kern/subr_eventhandler.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_eventhandler.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Michael Smith * All rights reserved. * Modified: head/sys/kern/subr_fattime.c ============================================================================== --- head/sys/kern/subr_fattime.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_fattime.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/kern/subr_firmware.c ============================================================================== --- head/sys/kern/subr_firmware.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_firmware.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008, Sam Leffler * All rights reserved. * Modified: head/sys/kern/subr_hints.c ============================================================================== --- head/sys/kern/subr_hints.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_hints.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000,2001 Peter Wemm * All rights reserved. * Modified: head/sys/kern/subr_kdb.c ============================================================================== --- head/sys/kern/subr_kdb.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_kdb.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 The FreeBSD Project * All rights reserved. * Modified: head/sys/kern/subr_kobj.c ============================================================================== --- head/sys/kern/subr_kobj.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_kobj.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000,2003 Doug Rabson * All rights reserved. * Modified: head/sys/kern/subr_lock.c ============================================================================== --- head/sys/kern/subr_lock.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_lock.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 John Baldwin * All rights reserved. * Modified: head/sys/kern/subr_module.c ============================================================================== --- head/sys/kern/subr_module.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_module.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Michael Smith * All rights reserved. * Modified: head/sys/kern/subr_msgbuf.c ============================================================================== --- head/sys/kern/subr_msgbuf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_msgbuf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Ian Dowse. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/subr_pctrie.c ============================================================================== --- head/sys/kern/subr_pctrie.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_pctrie.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 EMC Corp. * Copyright (c) 2011 Jeffrey Roberson * Copyright (c) 2008 Mayur Shardul Modified: head/sys/kern/subr_power.c ============================================================================== --- head/sys/kern/subr_power.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_power.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Mitsuru IWASAKI * All rights reserved. * Modified: head/sys/kern/subr_sbuf.c ============================================================================== --- head/sys/kern/subr_sbuf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_sbuf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2008 Poul-Henning Kamp * Copyright (c) 2000-2008 Dag-Erling Coïdan Smørgrav * All rights reserved. Modified: head/sys/kern/subr_sleepqueue.c ============================================================================== --- head/sys/kern/subr_sleepqueue.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_sleepqueue.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 John Baldwin * All rights reserved. * Modified: head/sys/kern/subr_smp.c ============================================================================== --- head/sys/kern/subr_smp.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_smp.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, John Baldwin . * All rights reserved. * Modified: head/sys/kern/subr_stack.c ============================================================================== --- head/sys/kern/subr_stack.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_stack.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Antoine Brodin * All rights reserved. * Modified: head/sys/kern/subr_taskqueue.c ============================================================================== --- head/sys/kern/subr_taskqueue.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_taskqueue.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Doug Rabson * All rights reserved. * Modified: head/sys/kern/subr_terminal.c ============================================================================== --- head/sys/kern/subr_terminal.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_terminal.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/kern/subr_turnstile.c ============================================================================== --- head/sys/kern/subr_turnstile.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_turnstile.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/subr_unit.c ============================================================================== --- head/sys/kern/subr_unit.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_unit.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * All rights reserved. * Modified: head/sys/kern/subr_vmem.c ============================================================================== --- head/sys/kern/subr_vmem.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_vmem.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi, * Copyright (c) 2013 EMC Corp. * All rights reserved. Modified: head/sys/kern/subr_witness.c ============================================================================== --- head/sys/kern/subr_witness.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/subr_witness.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2008 Isilon Systems, Inc. * Copyright (c) 2008 Ilya Maykov * Copyright (c) 1998 Berkeley Software Design, Inc. Modified: head/sys/kern/sys_capability.c ============================================================================== --- head/sys/kern/sys_capability.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sys_capability.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008-2011 Robert N. M. Watson * Copyright (c) 2010-2011 Jonathan Anderson * Copyright (c) 2012 FreeBSD Foundation Modified: head/sys/kern/sys_pipe.c ============================================================================== --- head/sys/kern/sys_pipe.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sys_pipe.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1996 John S. Dyson * Copyright (c) 2012 Giovanni Trematerra * All rights reserved. Modified: head/sys/kern/sys_procdesc.c ============================================================================== --- head/sys/kern/sys_procdesc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sys_procdesc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009, 2016 Robert N. M. Watson * All rights reserved. * Modified: head/sys/kern/sys_process.c ============================================================================== --- head/sys/kern/sys_process.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sys_process.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994, Sean Eric Fagan * All rights reserved. * Modified: head/sys/kern/sysv_ipc.c ============================================================================== --- head/sys/kern/sysv_ipc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sysv_ipc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,5 +1,7 @@ /* $NetBSD: sysv_ipc.c,v 1.7 1994/06/29 06:33:11 cgd Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Herb Peyerl * Copyright (c) 2006 nCircle Network Security, Inc. * All rights reserved. Modified: head/sys/kern/sysv_msg.c ============================================================================== --- head/sys/kern/sysv_msg.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sysv_msg.c Mon Nov 27 15:20:12 2017 (r326271) @@ -17,6 +17,8 @@ * This software is provided ``AS IS'' without any warranties of any kind. */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2005 McAfee, Inc. * Copyright (c) 2016-2017 Robert N. M. Watson * All rights reserved. Modified: head/sys/kern/sysv_sem.c ============================================================================== --- head/sys/kern/sysv_sem.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sysv_sem.c Mon Nov 27 15:20:12 2017 (r326271) @@ -6,6 +6,8 @@ * This software is provided ``AS IS'' without any warranties of any kind. */ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2005 McAfee, Inc. * Copyright (c) 2016-2017 Robert N. M. Watson * All rights reserved. Modified: head/sys/kern/sysv_shm.c ============================================================================== --- head/sys/kern/sysv_shm.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/sysv_shm.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,5 +1,7 @@ /* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ /*- + * SPDX-License-Identifier: BSD-4-Clause AND BSD-2-Clause-FreeBSD + * * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/tty.c ============================================================================== --- head/sys/kern/tty.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Ed Schouten * All rights reserved. * Modified: head/sys/kern/tty_inq.c ============================================================================== --- head/sys/kern/tty_inq.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty_inq.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Ed Schouten * All rights reserved. * Modified: head/sys/kern/tty_outq.c ============================================================================== --- head/sys/kern/tty_outq.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty_outq.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Ed Schouten * All rights reserved. * Modified: head/sys/kern/tty_pts.c ============================================================================== --- head/sys/kern/tty_pts.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty_pts.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Ed Schouten * All rights reserved. * Modified: head/sys/kern/tty_tty.c ============================================================================== --- head/sys/kern/tty_tty.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty_tty.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003 Poul-Henning Kamp. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/tty_ttydisc.c ============================================================================== --- head/sys/kern/tty_ttydisc.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/tty_ttydisc.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Ed Schouten * All rights reserved. * Modified: head/sys/kern/uipc_accf.c ============================================================================== --- head/sys/kern/uipc_accf.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/uipc_accf.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Paycounter, Inc. * Copyright (c) 2005 Robert N. M. Watson * Author: Alfred Perlstein , Modified: head/sys/kern/uipc_debug.c ============================================================================== --- head/sys/kern/uipc_debug.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/uipc_debug.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sys/kern/uipc_mqueue.c ============================================================================== --- head/sys/kern/uipc_mqueue.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/uipc_mqueue.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 David Xu * Copyright (c) 2016-2017 Robert N. M. Watson * All rights reserved. Modified: head/sys/kern/uipc_sem.c ============================================================================== --- head/sys/kern/uipc_sem.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/uipc_sem.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Alfred Perlstein * Copyright (c) 2003-2005 SPARTA, Inc. * Copyright (c) 2005, 2016-2017 Robert N. M. Watson Modified: head/sys/kern/uipc_shm.c ============================================================================== --- head/sys/kern/uipc_shm.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/uipc_shm.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006, 2011, 2016-2017 Robert N. M. Watson * All rights reserved. * Modified: head/sys/kern/vfs_acl.c ============================================================================== --- head/sys/kern/vfs_acl.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/vfs_acl.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2006, 2016-2017 Robert N. M. Watson * All rights reserved. * Modified: head/sys/kern/vfs_aio.c ============================================================================== --- head/sys/kern/vfs_aio.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/vfs_aio.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 John S. Dyson. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/vfs_bio.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Poul-Henning Kamp * Copyright (c) 1994,1997 John S. Dyson * Copyright (c) 2013 The FreeBSD Foundation Modified: head/sys/kern/vfs_extattr.c ============================================================================== --- head/sys/kern/vfs_extattr.c Mon Nov 27 15:17:37 2017 (r326270) +++ head/sys/kern/vfs_extattr.c Mon Nov 27 15:20:12 2017 (r326271) @@ -1,4 +1,6 @@ *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:23:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2120EE54AA0; Mon, 27 Nov 2017 15:23:30 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B93076C63; Mon, 27 Nov 2017 15:23:29 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFNSsh006454; Mon, 27 Nov 2017 15:23:28 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFNIt1006341; Mon, 27 Nov 2017 15:23:18 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271523.vARFNIt1006341@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:23:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326272 - in head/sys: isa modules/dtrace/dtraceall net net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/commo... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys: isa modules/dtrace/dtraceall net net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgraph/bluetooth/driv... X-SVN-Commit-Revision: 326272 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:23:30 -0000 Author: pfg Date: Mon Nov 27 15:23:17 2017 New Revision: 326272 URL: https://svnweb.freebsd.org/changeset/base/326272 Log: sys: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Modified: head/sys/isa/isa_common.c head/sys/isa/isa_common.h head/sys/isa/isa_dmareg.h head/sys/isa/isahint.c head/sys/isa/isavar.h head/sys/isa/pnp.c head/sys/isa/pnpparse.c head/sys/isa/pnpvar.h head/sys/isa/syscons_isa.c head/sys/isa/vga_isa.c head/sys/modules/dtrace/dtraceall/dtraceall.c head/sys/net/bpf_buffer.h head/sys/net/bpf_zerocopy.c head/sys/net/bpf_zerocopy.h head/sys/net/bridgestp.c head/sys/net/bridgestp.h head/sys/net/firewire.h head/sys/net/ieee8023ad_lacp.c head/sys/net/ieee8023ad_lacp.h head/sys/net/ieee_oui.h head/sys/net/if_bridge.c head/sys/net/if_bridgevar.h head/sys/net/if_dead.c head/sys/net/if_debug.c head/sys/net/if_enc.c head/sys/net/if_enc.h head/sys/net/if_epair.c head/sys/net/if_gre.c head/sys/net/if_gre.h head/sys/net/if_iso88025subr.c head/sys/net/if_llatbl.c head/sys/net/if_llatbl.h head/sys/net/if_media.c head/sys/net/if_media.h head/sys/net/if_pflog.h head/sys/net/if_pfsync.h head/sys/net/if_tap.c head/sys/net/if_tap.h head/sys/net/if_tapvar.h head/sys/net/iso88025.h head/sys/net/netisr.c head/sys/net/netisr.h head/sys/net/netisr_internal.h head/sys/net/netmap.h head/sys/net/netmap_user.h head/sys/net/pfil.c head/sys/net/pfil.h head/sys/net/pfvar.h head/sys/net/sff8472.h head/sys/net/vnet.c head/sys/net/vnet.h head/sys/net80211/_ieee80211.h head/sys/net80211/ieee80211.c head/sys/net80211/ieee80211.h head/sys/net80211/ieee80211_acl.c head/sys/net80211/ieee80211_action.c head/sys/net80211/ieee80211_action.h head/sys/net80211/ieee80211_adhoc.c head/sys/net80211/ieee80211_adhoc.h head/sys/net80211/ieee80211_ageq.c head/sys/net80211/ieee80211_ageq.h head/sys/net80211/ieee80211_alq.c head/sys/net80211/ieee80211_alq.h head/sys/net80211/ieee80211_crypto.c head/sys/net80211/ieee80211_crypto.h head/sys/net80211/ieee80211_crypto_ccmp.c head/sys/net80211/ieee80211_crypto_none.c head/sys/net80211/ieee80211_crypto_tkip.c head/sys/net80211/ieee80211_crypto_wep.c head/sys/net80211/ieee80211_ddb.c head/sys/net80211/ieee80211_dfs.c head/sys/net80211/ieee80211_dfs.h head/sys/net80211/ieee80211_freebsd.c head/sys/net80211/ieee80211_freebsd.h head/sys/net80211/ieee80211_hostap.c head/sys/net80211/ieee80211_hostap.h head/sys/net80211/ieee80211_ht.c head/sys/net80211/ieee80211_ht.h head/sys/net80211/ieee80211_hwmp.c head/sys/net80211/ieee80211_input.c head/sys/net80211/ieee80211_input.h head/sys/net80211/ieee80211_ioctl.c head/sys/net80211/ieee80211_ioctl.h head/sys/net80211/ieee80211_mesh.c head/sys/net80211/ieee80211_mesh.h head/sys/net80211/ieee80211_monitor.c head/sys/net80211/ieee80211_monitor.h head/sys/net80211/ieee80211_node.c head/sys/net80211/ieee80211_node.h head/sys/net80211/ieee80211_output.c head/sys/net80211/ieee80211_phy.c head/sys/net80211/ieee80211_phy.h head/sys/net80211/ieee80211_power.c head/sys/net80211/ieee80211_power.h head/sys/net80211/ieee80211_proto.c head/sys/net80211/ieee80211_proto.h head/sys/net80211/ieee80211_radiotap.c head/sys/net80211/ieee80211_radiotap.h head/sys/net80211/ieee80211_ratectl.c head/sys/net80211/ieee80211_ratectl.h head/sys/net80211/ieee80211_ratectl_none.c head/sys/net80211/ieee80211_regdomain.c head/sys/net80211/ieee80211_regdomain.h head/sys/net80211/ieee80211_rssadapt.c head/sys/net80211/ieee80211_rssadapt.h head/sys/net80211/ieee80211_scan.c head/sys/net80211/ieee80211_scan.h head/sys/net80211/ieee80211_scan_sta.c head/sys/net80211/ieee80211_sta.c head/sys/net80211/ieee80211_sta.h head/sys/net80211/ieee80211_superg.c head/sys/net80211/ieee80211_superg.h head/sys/net80211/ieee80211_tdma.c head/sys/net80211/ieee80211_tdma.h head/sys/net80211/ieee80211_var.h head/sys/net80211/ieee80211_wds.c head/sys/net80211/ieee80211_wds.h head/sys/net80211/ieee80211_xauth.c head/sys/netgraph/atm/ccatm/ng_ccatm_cust.h head/sys/netgraph/atm/ng_sscfu.h head/sys/netgraph/atm/ng_sscop.h head/sys/netgraph/atm/ng_uni.h head/sys/netgraph/atm/ngatmbase.c head/sys/netgraph/atm/sscfu/ng_sscfu.c head/sys/netgraph/atm/sscfu/ng_sscfu_cust.h head/sys/netgraph/atm/sscop/ng_sscop_cust.h head/sys/netgraph/atm/uni/ng_uni.c head/sys/netgraph/atm/uni/ng_uni_cust.h head/sys/netgraph/bluetooth/common/ng_bluetooth.c head/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c head/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_var.h head/sys/netgraph/bluetooth/drivers/h4/ng_h4.c head/sys/netgraph/bluetooth/drivers/h4/ng_h4_prse.h head/sys/netgraph/bluetooth/drivers/h4/ng_h4_var.h head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h head/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c head/sys/netgraph/bluetooth/hci/ng_hci_cmds.c head/sys/netgraph/bluetooth/hci/ng_hci_cmds.h head/sys/netgraph/bluetooth/hci/ng_hci_evnt.c head/sys/netgraph/bluetooth/hci/ng_hci_evnt.h head/sys/netgraph/bluetooth/hci/ng_hci_main.c head/sys/netgraph/bluetooth/hci/ng_hci_misc.c head/sys/netgraph/bluetooth/hci/ng_hci_misc.h head/sys/netgraph/bluetooth/hci/ng_hci_prse.h head/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c head/sys/netgraph/bluetooth/hci/ng_hci_ulpi.h head/sys/netgraph/bluetooth/hci/ng_hci_var.h head/sys/netgraph/bluetooth/include/ng_bluetooth.h head/sys/netgraph/bluetooth/include/ng_bt3c.h head/sys/netgraph/bluetooth/include/ng_btsocket.h head/sys/netgraph/bluetooth/include/ng_btsocket_hci_raw.h head/sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h head/sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h head/sys/netgraph/bluetooth/include/ng_btsocket_sco.h head/sys/netgraph/bluetooth/include/ng_h4.h head/sys/netgraph/bluetooth/include/ng_hci.h head/sys/netgraph/bluetooth/include/ng_l2cap.h head/sys/netgraph/bluetooth/include/ng_ubt.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_prse.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c head/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.h head/sys/netgraph/bluetooth/l2cap/ng_l2cap_var.h head/sys/netgraph/bluetooth/socket/ng_btsocket.c head/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c head/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c head/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c head/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c head/sys/netgraph/bluetooth/socket/ng_btsocket_sco.c head/sys/netgraph/netflow/netflow.c head/sys/netgraph/netflow/netflow.h head/sys/netgraph/netflow/netflow_v9.c head/sys/netgraph/netflow/netflow_v9.h head/sys/netgraph/netflow/ng_netflow.c head/sys/netgraph/netflow/ng_netflow.h head/sys/netgraph/ng_atmllc.c head/sys/netgraph/ng_atmllc.h head/sys/netgraph/ng_car.c head/sys/netgraph/ng_car.h head/sys/netgraph/ng_deflate.c head/sys/netgraph/ng_deflate.h head/sys/netgraph/ng_device.c head/sys/netgraph/ng_device.h head/sys/netgraph/ng_eiface.c head/sys/netgraph/ng_eiface.h head/sys/netgraph/ng_etf.c head/sys/netgraph/ng_etf.h head/sys/netgraph/ng_gif.c head/sys/netgraph/ng_gif.h head/sys/netgraph/ng_gif_demux.c head/sys/netgraph/ng_gif_demux.h head/sys/netgraph/ng_hub.c head/sys/netgraph/ng_hub.h head/sys/netgraph/ng_ip_input.c head/sys/netgraph/ng_ip_input.h head/sys/netgraph/ng_ipfw.c head/sys/netgraph/ng_ipfw.h head/sys/netgraph/ng_nat.c head/sys/netgraph/ng_nat.h head/sys/netgraph/ng_patch.c head/sys/netgraph/ng_patch.h head/sys/netgraph/ng_pipe.c head/sys/netgraph/ng_pipe.h head/sys/netgraph/ng_ppp.c head/sys/netgraph/ng_pred1.c head/sys/netgraph/ng_pred1.h head/sys/netgraph/ng_split.c head/sys/netgraph/ng_split.h head/sys/netgraph/ng_tag.c head/sys/netgraph/ng_tag.h head/sys/netgraph/ng_tcpmss.c head/sys/netgraph/ng_tcpmss.h head/sys/netgraph/ng_vlan.c head/sys/netgraph/ng_vlan.h head/sys/netinet/accf_data.c head/sys/netinet/accf_dns.c head/sys/netinet/accf_http.c head/sys/netinet/cc/cc.c head/sys/netinet/cc/cc_cdg.c head/sys/netinet/cc/cc_chd.c head/sys/netinet/cc/cc_cubic.c head/sys/netinet/cc/cc_cubic.h head/sys/netinet/cc/cc_hd.c head/sys/netinet/cc/cc_htcp.c head/sys/netinet/cc/cc_module.h head/sys/netinet/cc/cc_newreno.c head/sys/netinet/cc/cc_vegas.c head/sys/netinet/in_debug.c head/sys/netinet/in_kdtrace.c head/sys/netinet/in_kdtrace.h head/sys/netinet/in_mcast.c head/sys/netinet/in_pcbgroup.c head/sys/netinet/ip_carp.c head/sys/netinet/ip_carp.h head/sys/netinet/ip_divert.h head/sys/netinet/ip_dummynet.h head/sys/netinet/ip_fastfwd.c head/sys/netinet/ip_fw.h head/sys/netinet/ip_gre.c head/sys/netinet/ip_id.c head/sys/netinet/khelp/h_ertt.c head/sys/netinet/khelp/h_ertt.h head/sys/netinet/libalias/alias.c head/sys/netinet/libalias/alias.h head/sys/netinet/libalias/alias_cuseeme.c head/sys/netinet/libalias/alias_db.c head/sys/netinet/libalias/alias_dummy.c head/sys/netinet/libalias/alias_ftp.c head/sys/netinet/libalias/alias_irc.c head/sys/netinet/libalias/alias_local.h head/sys/netinet/libalias/alias_mod.c head/sys/netinet/libalias/alias_mod.h head/sys/netinet/libalias/alias_nbt.c head/sys/netinet/libalias/alias_proxy.c head/sys/netinet/libalias/alias_sctp.c head/sys/netinet/libalias/alias_sctp.h head/sys/netinet/libalias/alias_skinny.c head/sys/netinet/libalias/alias_smedia.c head/sys/netinet/libalias/alias_util.c head/sys/netinet/siftr.c head/sys/netinet/tcp_hostcache.c head/sys/netinet/tcp_hostcache.h head/sys/netinet/tcp_lro.c head/sys/netinet/tcp_lro.h head/sys/netinet/tcp_offload.c head/sys/netinet/tcp_offload.h head/sys/netinet/tcp_syncache.c head/sys/netinet/toecore.c head/sys/netinet/toecore.h head/sys/netinet6/in6_mcast.c head/sys/netinet6/in6_pcbgroup.c head/sys/netinet6/mld6.h head/sys/netinet6/mld6_var.h head/sys/netinet6/send.c head/sys/netinet6/send.h head/sys/netipsec/ipsec_mbuf.c head/sys/netipsec/ipsec_output.c head/sys/netipsec/xform_ipcomp.c head/sys/netipsec/xform_tcp.c head/sys/netpfil/ipfw/dn_heap.c head/sys/netpfil/ipfw/dn_heap.h head/sys/netpfil/ipfw/dn_sched.h head/sys/netpfil/ipfw/dn_sched_fifo.c head/sys/netpfil/ipfw/dn_sched_prio.c head/sys/netpfil/ipfw/dn_sched_qfq.c head/sys/netpfil/ipfw/dn_sched_rr.c head/sys/netpfil/ipfw/dn_sched_wf2q.c head/sys/netpfil/ipfw/ip_dn_glue.c head/sys/netpfil/ipfw/ip_dn_io.c head/sys/netpfil/ipfw/ip_dn_private.h head/sys/netpfil/ipfw/ip_dummynet.c head/sys/netpfil/ipfw/ip_fw2.c head/sys/netpfil/ipfw/ip_fw_dynamic.c head/sys/netpfil/ipfw/ip_fw_log.c head/sys/netpfil/ipfw/ip_fw_nat.c head/sys/netpfil/ipfw/ip_fw_pfil.c head/sys/netpfil/ipfw/ip_fw_private.h head/sys/netpfil/ipfw/ip_fw_sockopt.c head/sys/netpfil/ipfw/ip_fw_table.c head/sys/netpfil/ipfw/test/test_dn_heap.c head/sys/netpfil/pf/if_pfsync.c head/sys/netpfil/pf/pf.c head/sys/netpfil/pf/pf.h head/sys/netpfil/pf/pf_altq.h head/sys/netpfil/pf/pf_if.c head/sys/netpfil/pf/pf_ioctl.c head/sys/netpfil/pf/pf_lb.c head/sys/netpfil/pf/pf_mtag.h head/sys/netpfil/pf/pf_norm.c head/sys/netpfil/pf/pf_ruleset.c head/sys/netpfil/pf/pf_table.c head/sys/netsmb/netbios.h head/sys/netsmb/smb.h head/sys/netsmb/smb_conn.c head/sys/netsmb/smb_conn.h head/sys/netsmb/smb_dev.c head/sys/netsmb/smb_dev.h head/sys/netsmb/smb_iod.c head/sys/netsmb/smb_rq.c head/sys/netsmb/smb_rq.h head/sys/netsmb/smb_smb.c head/sys/netsmb/smb_subr.c head/sys/netsmb/smb_subr.h head/sys/netsmb/smb_tran.h head/sys/netsmb/smb_trantcp.c head/sys/netsmb/smb_trantcp.h head/sys/netsmb/smb_usr.c head/sys/nfs/nfs_fha.c head/sys/nfs/nfs_fha.h head/sys/nfs/nfs_kdtrace.h head/sys/nfs/nfs_lock.c head/sys/nfs/nfs_lock.h head/sys/nfs/nfs_mountcommon.h head/sys/nfsclient/nlminfo.h head/sys/nfsserver/nfs_fha_old.h head/sys/nlm/nlm.h head/sys/nlm/nlm_advlock.c head/sys/nlm/nlm_prot_impl.c head/sys/nlm/nlm_prot_server.c head/sys/nlm/nlm_prot_svc.c head/sys/ofed/drivers/infiniband/core/agent.h head/sys/ofed/drivers/infiniband/core/core_priv.h head/sys/ofed/drivers/infiniband/core/iwcm.h head/sys/ofed/drivers/infiniband/core/mad_priv.h head/sys/ofed/drivers/infiniband/core/mad_rmpp.h head/sys/ofed/drivers/infiniband/core/sa.h head/sys/ofed/drivers/infiniband/core/smi.h head/sys/ofed/drivers/infiniband/core/uverbs.h head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib.h head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_vlan.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_zcopy.c head/sys/ofed/drivers/infiniband/util/madeye.c head/sys/ofed/include/rdma/ib_addr.h head/sys/ofed/include/rdma/ib_cache.h head/sys/ofed/include/rdma/ib_cm.h head/sys/ofed/include/rdma/ib_fmr_pool.h head/sys/ofed/include/rdma/ib_mad.h head/sys/ofed/include/rdma/ib_marshall.h head/sys/ofed/include/rdma/ib_pack.h head/sys/ofed/include/rdma/ib_pma.h head/sys/ofed/include/rdma/ib_sa.h head/sys/ofed/include/rdma/ib_smi.h head/sys/ofed/include/rdma/ib_umem.h head/sys/ofed/include/rdma/ib_verbs.h head/sys/ofed/include/rdma/iw_cm.h head/sys/ofed/include/rdma/rdma_cm.h head/sys/ofed/include/rdma/rdma_cm_ib.h head/sys/rpc/clnt_rc.c head/sys/rpc/getnetconfig.c head/sys/rpc/replay.c head/sys/rpc/replay.h head/sys/rpc/rpcsec_gss.h head/sys/rpc/rpcsec_gss/rpcsec_gss_conf.c head/sys/rpc/rpcsec_gss/rpcsec_gss_misc.c head/sys/teken/demo/teken_demo.c head/sys/teken/stress/teken_stress.c head/sys/teken/teken.c head/sys/teken/teken.h head/sys/teken/teken_scs.h head/sys/teken/teken_subr.h head/sys/teken/teken_subr_compat.h head/sys/tools/acpi_quirks2h.awk head/sys/tools/bus_macro.sh head/sys/tools/embed_mfs.sh head/sys/tools/fdt/embed_dtb.sh head/sys/tools/fw_stub.awk head/sys/tools/miidevs2h.awk head/sys/tools/pccarddevs2h.awk head/sys/tools/sound/feeder_eq_mkfilter.awk head/sys/tools/sound/feeder_rate_mkfilter.awk head/sys/tools/sound/snd_fxdiv_gen.awk head/sys/tools/usbdevs2h.awk head/sys/ufs/ffs/ffs_rawread.c head/sys/ufs/ffs/ffs_snapshot.c head/sys/ufs/ffs/ffs_softdep.c head/sys/ufs/ffs/ffs_suspend.c head/sys/ufs/ffs/softdep.h head/sys/ufs/ufs/acl.h head/sys/ufs/ufs/dinode.h head/sys/ufs/ufs/dirhash.h head/sys/ufs/ufs/extattr.h head/sys/ufs/ufs/gjournal.h head/sys/ufs/ufs/ufs_acl.c head/sys/ufs/ufs/ufs_dirhash.c head/sys/ufs/ufs/ufs_extattr.c head/sys/ufs/ufs/ufs_gjournal.c head/sys/vm/_vm_radix.h head/sys/vm/default_pager.c head/sys/vm/memguard.c head/sys/vm/memguard.h head/sys/vm/phys_pager.c head/sys/vm/redzone.c head/sys/vm/redzone.h head/sys/vm/sg_pager.c head/sys/vm/uma.h head/sys/vm/uma_core.c head/sys/vm/uma_dbg.c head/sys/vm/uma_dbg.h head/sys/vm/uma_int.h head/sys/vm/vm_phys.c head/sys/vm/vm_phys.h head/sys/vm/vm_radix.c head/sys/vm/vm_radix.h head/sys/vm/vm_reserv.c head/sys/vm/vm_reserv.h head/sys/xdr/xdr_mbuf.c head/sys/xen/xenbus/xenbusb.h head/sys/xen/xenstore/xenstore_internal.h Modified: head/sys/isa/isa_common.c ============================================================================== --- head/sys/isa/isa_common.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/isa_common.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * * Copyright (c) 1999 Doug Rabson * All rights reserved. * Modified: head/sys/isa/isa_common.h ============================================================================== --- head/sys/isa/isa_common.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/isa_common.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Doug Rabson * All rights reserved. * Modified: head/sys/isa/isa_dmareg.h ============================================================================== --- head/sys/isa/isa_dmareg.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/isa_dmareg.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/isa/isahint.c ============================================================================== --- head/sys/isa/isahint.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/isahint.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Doug Rabson * All rights reserved. * Modified: head/sys/isa/isavar.h ============================================================================== --- head/sys/isa/isavar.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/isavar.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 Doug Rabson * All rights reserved. * Modified: head/sys/isa/pnp.c ============================================================================== --- head/sys/isa/pnp.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/pnp.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1996, Sujal M. Patel * All rights reserved. * Modified: head/sys/isa/pnpparse.c ============================================================================== --- head/sys/isa/pnpparse.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/pnpparse.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Doug Rabson * All rights reserved. * Modified: head/sys/isa/pnpvar.h ============================================================================== --- head/sys/isa/pnpvar.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/pnpvar.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Doug Rabson * All rights reserved. * Modified: head/sys/isa/syscons_isa.c ============================================================================== --- head/sys/isa/syscons_isa.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/syscons_isa.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Kazutaka YOKOTA * All rights reserved. * Modified: head/sys/isa/vga_isa.c ============================================================================== --- head/sys/isa/vga_isa.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/isa/vga_isa.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Kazutaka YOKOTA * All rights reserved. * Modified: head/sys/modules/dtrace/dtraceall/dtraceall.c ============================================================================== --- head/sys/modules/dtrace/dtraceall/dtraceall.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/modules/dtrace/dtraceall/dtraceall.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 John Birrell * * Redistribution and use in source and binary forms, with or without Modified: head/sys/net/bpf_buffer.h ============================================================================== --- head/sys/net/bpf_buffer.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/bpf_buffer.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Seccuris Inc. * All rights reserved. * Modified: head/sys/net/bpf_zerocopy.c ============================================================================== --- head/sys/net/bpf_zerocopy.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/bpf_zerocopy.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Seccuris Inc. * All rights reserved. * Modified: head/sys/net/bpf_zerocopy.h ============================================================================== --- head/sys/net/bpf_zerocopy.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/bpf_zerocopy.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Seccuris Inc. * All rights reserved. * Modified: head/sys/net/bridgestp.c ============================================================================== --- head/sys/net/bridgestp.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/bridgestp.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: bridgestp.c,v 1.5 2003/11/28 08:56:48 keihan Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2000 Jason L. Wright (jason@thought.net) * Copyright (c) 2006 Andrew Thompson (thompsa@FreeBSD.org) * All rights reserved. Modified: head/sys/net/bridgestp.h ============================================================================== --- head/sys/net/bridgestp.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/bridgestp.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: if_bridgevar.h,v 1.4 2003/07/08 07:13:50 itojun Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 Wasabi Systems, Inc. * All rights reserved. * @@ -35,7 +37,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -/* +/*- * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) * All rights reserved. * Modified: head/sys/net/firewire.h ============================================================================== --- head/sys/net/firewire.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/firewire.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Doug Rabson * All rights reserved. * Modified: head/sys/net/ieee8023ad_lacp.c ============================================================================== --- head/sys/net/ieee8023ad_lacp.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/ieee8023ad_lacp.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: ieee8023ad_lacp.c,v 1.3 2005/12/11 12:24:54 christos Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c)2005 YAMAMOTO Takashi, * Copyright (c)2008 Andrew Thompson * All rights reserved. Modified: head/sys/net/ieee8023ad_lacp.h ============================================================================== --- head/sys/net/ieee8023ad_lacp.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/ieee8023ad_lacp.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: ieee8023ad_impl.h,v 1.2 2005/12/10 23:21:39 elad Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c)2005 YAMAMOTO Takashi, * All rights reserved. * Modified: head/sys/net/ieee_oui.h ============================================================================== --- head/sys/net/ieee_oui.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/ieee_oui.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/* - + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/net/if_bridge.c ============================================================================== --- head/sys/net/if_bridge.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_bridge.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: if_bridge.c,v 1.31 2005/06/01 19:45:34 jdc Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/net/if_bridgevar.h ============================================================================== --- head/sys/net/if_bridgevar.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_bridgevar.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $NetBSD: if_bridgevar.h,v 1.4 2003/07/08 07:13:50 itojun Exp $ */ /* + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright 2001 Wasabi Systems, Inc. * All rights reserved. * Modified: head/sys/net/if_dead.c ============================================================================== --- head/sys/net/if_dead.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_dead.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Robert N. M. Watson * All rights reserved. * Modified: head/sys/net/if_debug.c ============================================================================== --- head/sys/net/if_debug.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_debug.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Bjoern A. Zeeb * All rights reserved. * Modified: head/sys/net/if_enc.c ============================================================================== --- head/sys/net/if_enc.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_enc.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 The FreeBSD Project. * Copyright (c) 2015 Andrey V. Elsukov * All rights reserved. Modified: head/sys/net/if_enc.h ============================================================================== --- head/sys/net/if_enc.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_enc.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 The FreeBSD Project. * All rights reserved. * Modified: head/sys/net/if_epair.c ============================================================================== --- head/sys/net/if_epair.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_epair.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 The FreeBSD Foundation * Copyright (c) 2009-2010 Bjoern A. Zeeb * All rights reserved. Modified: head/sys/net/if_gre.c ============================================================================== --- head/sys/net/if_gre.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_gre.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 2014 Andrey V. Elsukov * All rights reserved. Modified: head/sys/net/if_gre.h ============================================================================== --- head/sys/net/if_gre.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_gre.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 2014 Andrey V. Elsukov * All rights reserved Modified: head/sys/net/if_iso88025subr.c ============================================================================== --- head/sys/net/if_iso88025subr.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_iso88025subr.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998, Larry Lile * All rights reserved. * Modified: head/sys/net/if_llatbl.c ============================================================================== --- head/sys/net/if_llatbl.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_llatbl.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved. * Copyright (c) 2004-2008 Qing Li. All rights reserved. * Copyright (c) 2008 Kip Macy. All rights reserved. Modified: head/sys/net/if_llatbl.h ============================================================================== --- head/sys/net/if_llatbl.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_llatbl.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved. * Copyright (c) 2004-2008 Qing Li. All rights reserved. * Copyright (c) 2008 Kip Macy. All rights reserved. Modified: head/sys/net/if_media.c ============================================================================== --- head/sys/net/if_media.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_media.c Mon Nov 27 15:23:17 2017 (r326272) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1997 * Jonathan Stone and Jason R. Thorpe. All rights reserved. * Modified: head/sys/net/if_media.h ============================================================================== --- head/sys/net/if_media.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_media.h Mon Nov 27 15:23:17 2017 (r326272) @@ -2,6 +2,8 @@ /* $FreeBSD$ */ /*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1997 * Jonathan Stone and Jason R. Thorpe. All rights reserved. * Modified: head/sys/net/if_pflog.h ============================================================================== --- head/sys/net/if_pflog.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_pflog.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,5 +1,7 @@ /* $OpenBSD: if_pflog.h,v 1.13 2006/10/23 12:46:09 henning Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright 2001 Niels Provos * All rights reserved. * @@ -22,6 +24,8 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef _NET_IF_PFLOG_H_ Modified: head/sys/net/if_pfsync.h ============================================================================== --- head/sys/net/if_pfsync.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_pfsync.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Michael Shalayeff * All rights reserved. * Modified: head/sys/net/if_tap.c ============================================================================== --- head/sys/net/if_tap.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_tap.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1999-2000 by Maksim Yevmenkin * All rights reserved. * Modified: head/sys/net/if_tap.h ============================================================================== --- head/sys/net/if_tap.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_tap.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1999-2000 by Maksim Yevmenkin * All rights reserved. * Modified: head/sys/net/if_tapvar.h ============================================================================== --- head/sys/net/if_tapvar.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/if_tapvar.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1999-2000 by Maksim Yevmenkin * All rights reserved. * Modified: head/sys/net/iso88025.h ============================================================================== --- head/sys/net/iso88025.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/iso88025.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1998, Larry Lile * All rights reserved. * Modified: head/sys/net/netisr.c ============================================================================== --- head/sys/net/netisr.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/netisr.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Robert N. M. Watson * Copyright (c) 2010-2011 Juniper Networks, Inc. * All rights reserved. Modified: head/sys/net/netisr.h ============================================================================== --- head/sys/net/netisr.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/netisr.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Robert N. M. Watson * Copyright (c) 2010-2011 Juniper Networks, Inc. * All rights reserved. Modified: head/sys/net/netisr_internal.h ============================================================================== --- head/sys/net/netisr_internal.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/netisr_internal.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Robert N. M. Watson * Copyright (c) 2010-2011 Juniper Networks, Inc. * All rights reserved. Modified: head/sys/net/netmap.h ============================================================================== --- head/sys/net/netmap.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/netmap.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/net/netmap_user.h ============================================================================== --- head/sys/net/netmap_user.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/netmap_user.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2011-2016 Universita` di Pisa * All rights reserved. * Modified: head/sys/net/pfil.c ============================================================================== --- head/sys/net/pfil.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/pfil.c Mon Nov 27 15:23:17 2017 (r326272) @@ -2,6 +2,8 @@ /* $NetBSD: pfil.c,v 1.20 2001/11/12 23:49:46 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996 Matthew R. Green * All rights reserved. * Modified: head/sys/net/pfil.h ============================================================================== --- head/sys/net/pfil.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/pfil.h Mon Nov 27 15:23:17 2017 (r326272) @@ -2,6 +2,8 @@ /* $NetBSD: pfil.h,v 1.22 2003/06/23 12:57:08 martin Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1996 Matthew R. Green * All rights reserved. * Modified: head/sys/net/pfvar.h ============================================================================== --- head/sys/net/pfvar.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/pfvar.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 2001 Daniel Hartmeier * All rights reserved. * Modified: head/sys/net/sff8472.h ============================================================================== --- head/sys/net/sff8472.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/sff8472.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 George V. Neville-Neil * All rights reserved. * Modified: head/sys/net/vnet.c ============================================================================== --- head/sys/net/vnet.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/vnet.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2009 University of Zagreb * Copyright (c) 2006-2009 FreeBSD Foundation * All rights reserved. Modified: head/sys/net/vnet.h ============================================================================== --- head/sys/net/vnet.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net/vnet.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006-2009 University of Zagreb * Copyright (c) 2006-2009 FreeBSD Foundation * All rights reserved. Modified: head/sys/net80211/_ieee80211.h ============================================================================== --- head/sys/net80211/_ieee80211.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/_ieee80211.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211.c ============================================================================== --- head/sys/net80211/ieee80211.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211.h ============================================================================== --- head/sys/net80211/ieee80211.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_acl.c ============================================================================== --- head/sys/net80211/ieee80211_acl.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_acl.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_action.c ============================================================================== --- head/sys/net80211/ieee80211_action.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_action.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_action.h ============================================================================== --- head/sys/net80211/ieee80211_action.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_action.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_adhoc.c ============================================================================== --- head/sys/net80211/ieee80211_adhoc.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_adhoc.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_adhoc.h ============================================================================== --- head/sys/net80211/ieee80211_adhoc.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_adhoc.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ageq.c ============================================================================== --- head/sys/net80211/ieee80211_ageq.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ageq.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ageq.h ============================================================================== --- head/sys/net80211/ieee80211_ageq.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ageq.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_alq.c ============================================================================== --- head/sys/net80211/ieee80211_alq.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_alq.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Adrian Chadd, Xenion Lty Ltd * All rights reserved. * Modified: head/sys/net80211/ieee80211_alq.h ============================================================================== --- head/sys/net80211/ieee80211_alq.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_alq.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Adrian Chadd, Xenion Lty Ltd * All rights reserved. * Modified: head/sys/net80211/ieee80211_crypto.c ============================================================================== --- head/sys/net80211/ieee80211_crypto.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_crypto.h ============================================================================== --- head/sys/net80211/ieee80211_crypto.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_crypto_ccmp.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_ccmp.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto_ccmp.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_crypto_none.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_none.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto_none.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_crypto_tkip.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_tkip.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto_tkip.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_crypto_wep.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_wep.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_crypto_wep.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ddb.c ============================================================================== --- head/sys/net80211/ieee80211_ddb.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ddb.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_dfs.c ============================================================================== --- head/sys/net80211/ieee80211_dfs.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_dfs.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_dfs.h ============================================================================== --- head/sys/net80211/ieee80211_dfs.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_dfs.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_freebsd.c ============================================================================== --- head/sys/net80211/ieee80211_freebsd.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_freebsd.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_freebsd.h ============================================================================== --- head/sys/net80211/ieee80211_freebsd.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_freebsd.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2003-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_hostap.c ============================================================================== --- head/sys/net80211/ieee80211_hostap.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_hostap.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_hostap.h ============================================================================== --- head/sys/net80211/ieee80211_hostap.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_hostap.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ht.c ============================================================================== --- head/sys/net80211/ieee80211_ht.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ht.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ht.h ============================================================================== --- head/sys/net80211/ieee80211_ht.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ht.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_hwmp.c ============================================================================== --- head/sys/net80211/ieee80211_hwmp.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_hwmp.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/net80211/ieee80211_input.c ============================================================================== --- head/sys/net80211/ieee80211_input.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_input.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_input.h ============================================================================== --- head/sys/net80211/ieee80211_input.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_input.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_ioctl.c ============================================================================== --- head/sys/net80211/ieee80211_ioctl.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ioctl.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_ioctl.h ============================================================================== --- head/sys/net80211/ieee80211_ioctl.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ioctl.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_mesh.c ============================================================================== --- head/sys/net80211/ieee80211_mesh.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_mesh.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/net80211/ieee80211_mesh.h ============================================================================== --- head/sys/net80211/ieee80211_mesh.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_mesh.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 The FreeBSD Foundation * All rights reserved. * Modified: head/sys/net80211/ieee80211_monitor.c ============================================================================== --- head/sys/net80211/ieee80211_monitor.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_monitor.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_monitor.h ============================================================================== --- head/sys/net80211/ieee80211_monitor.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_monitor.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_node.c ============================================================================== --- head/sys/net80211/ieee80211_node.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_node.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_node.h ============================================================================== --- head/sys/net80211/ieee80211_node.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_node.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_output.c ============================================================================== --- head/sys/net80211/ieee80211_output.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_output.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_phy.c ============================================================================== --- head/sys/net80211/ieee80211_phy.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_phy.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_phy.h ============================================================================== --- head/sys/net80211/ieee80211_phy.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_phy.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_power.c ============================================================================== --- head/sys/net80211/ieee80211_power.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_power.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_power.h ============================================================================== --- head/sys/net80211/ieee80211_power.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_power.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_proto.c ============================================================================== --- head/sys/net80211/ieee80211_proto.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_proto.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting * Copyright (c) 2012 IEEE Modified: head/sys/net80211/ieee80211_proto.h ============================================================================== --- head/sys/net80211/ieee80211_proto.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_proto.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting * All rights reserved. Modified: head/sys/net80211/ieee80211_radiotap.c ============================================================================== --- head/sys/net80211/ieee80211_radiotap.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_radiotap.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_radiotap.h ============================================================================== --- head/sys/net80211/ieee80211_radiotap.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_radiotap.h Mon Nov 27 15:23:17 2017 (r326272) @@ -2,6 +2,8 @@ /* $NetBSD: ieee80211_radiotap.h,v 1.16 2007/01/06 05:51:15 dyoung Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003, 2004 David Young. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sys/net80211/ieee80211_ratectl.c ============================================================================== --- head/sys/net80211/ieee80211_ratectl.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ratectl.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Rui Paulo * All rights reserved. * Modified: head/sys/net80211/ieee80211_ratectl.h ============================================================================== --- head/sys/net80211/ieee80211_ratectl.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ratectl.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Rui Paulo * All rights reserved. * Modified: head/sys/net80211/ieee80211_ratectl_none.c ============================================================================== --- head/sys/net80211/ieee80211_ratectl_none.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_ratectl_none.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Bernhard Schmidt * All rights reserved. * Modified: head/sys/net80211/ieee80211_regdomain.c ============================================================================== --- head/sys/net80211/ieee80211_regdomain.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_regdomain.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_regdomain.h ============================================================================== --- head/sys/net80211/ieee80211_regdomain.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_regdomain.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2008 Sam Leffler, Errno Consulting * All rights reserved. * Modified: head/sys/net80211/ieee80211_rssadapt.c ============================================================================== --- head/sys/net80211/ieee80211_rssadapt.c Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_rssadapt.c Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $FreeBSD$ */ /* $NetBSD: ieee80211_rssadapt.c,v 1.9 2005/02/26 22:45:09 perry Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2010 Rui Paulo * Copyright (c) 2003, 2004 David Young. All rights reserved. * Modified: head/sys/net80211/ieee80211_rssadapt.h ============================================================================== --- head/sys/net80211/ieee80211_rssadapt.h Mon Nov 27 15:20:12 2017 (r326271) +++ head/sys/net80211/ieee80211_rssadapt.h Mon Nov 27 15:23:17 2017 (r326272) @@ -1,6 +1,8 @@ /* $FreeBSD$ */ /* $NetBSD: ieee80211_rssadapt.h,v 1.4 2005/02/26 22:45:09 perry Exp $ */ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 2003, 2004 David Young. All rights reserved. * *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:24:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1070DE54B46; Mon, 27 Nov 2017 15:24:15 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBCA076DD8; Mon, 27 Nov 2017 15:24:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFODXb006542; Mon, 27 Nov 2017 15:24:13 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFODsM006541; Mon, 27 Nov 2017 15:24:13 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201711271524.vARFODsM006541@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Mon, 27 Nov 2017 15:24:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326273 - head/usr.bin/ctlstat X-SVN-Group: head X-SVN-Commit-Author: mav X-SVN-Commit-Paths: head/usr.bin/ctlstat X-SVN-Commit-Revision: 326273 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:24:15 -0000 Author: mav Date: Mon Nov 27 15:24:13 2017 New Revision: 326273 URL: https://svnweb.freebsd.org/changeset/base/326273 Log: Make ctlstat -n option work reasonably for sparse LUN list. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Modified: head/usr.bin/ctlstat/ctlstat.c Modified: head/usr.bin/ctlstat/ctlstat.c ============================================================================== --- head/usr.bin/ctlstat/ctlstat.c Mon Nov 27 15:23:17 2017 (r326272) +++ head/usr.bin/ctlstat/ctlstat.c Mon Nov 27 15:24:13 2017 (r326273) @@ -320,11 +320,12 @@ static const char *iotypes[] = {"NO IO", "READ", "WRIT static void ctlstat_dump(struct ctlstat_context *ctx) { - int iotype, i; + int iotype, i, n; struct ctl_io_stats *stats = ctx->cur_stats; - for (i = 0; i < ctx->cur_items;i++) { - if (F_MASK(ctx) && bit_test(ctx->item_mask, i) == 0) + for (i = n = 0; i < ctx->cur_items;i++) { + if (F_MASK(ctx) && bit_test(ctx->item_mask, + (int)stats[i].item) == 0) continue; printf("%s %d\n", F_PORTS(ctx) ? "port" : "lun", stats[i].item); for (iotype = 0; iotype < CTL_STATS_NUM_TYPES; iotype++) { @@ -341,17 +342,20 @@ ctlstat_dump(struct ctlstat_context *ctx) PRINT_BINTIME(stats[i].dma_time[iotype]); printf("\n"); } + if (++n >= ctx->numdevs) + break; } } static void ctlstat_json(struct ctlstat_context *ctx) { - int iotype, i; + int iotype, i, n; struct ctl_io_stats *stats = ctx->cur_stats; printf("{\"%s\":[", F_PORTS(ctx) ? "ports" : "luns"); - for (i = 0; i < ctx->cur_items; i++) { - if (F_MASK(ctx) && bit_test(ctx->item_mask, i) == 0) + for (i = n = 0; i < ctx->cur_items; i++) { + if (F_MASK(ctx) && bit_test(ctx->item_mask, + (int)stats[i].item) == 0) continue; printf("{\"num\":%d,\"io\":[", stats[i].item); @@ -372,6 +376,8 @@ ctlstat_json(struct ctlstat_context *ctx) { printf(","); /* continue io array */ } printf("]}"); + if (++n >= ctx->numdevs) + break; if (i < (ctx->cur_items - 1)) printf(","); /* continue lun array */ } @@ -383,7 +389,7 @@ ctlstat_standard(struct ctlstat_context *ctx) { long double etime; uint64_t delta_jiffies, delta_idle; long double cpu_percentage; - int i, j; + int i, j, n; cpu_percentage = 0; @@ -413,10 +419,6 @@ ctlstat_standard(struct ctlstat_context *ctx) { if (F_HDR(ctx)) { ctx->header_interval--; if (ctx->header_interval <= 0) { - int hdr_devs; - - hdr_devs = 0; - if (F_CPU(ctx)) fprintf(stdout, " CPU"); if (F_TOTALS(ctx)) { @@ -425,9 +427,9 @@ ctlstat_standard(struct ctlstat_context *ctx) { (F_TIMEVAL(ctx) != 0) ? " " : "", (F_TIMEVAL(ctx) != 0) ? " " : "", (F_TIMEVAL(ctx) != 0) ? " " : ""); - hdr_devs = 3; + n = 3; } else { - for (i = 0; i < min(CTL_STAT_BITS, + for (i = n = 0; i < min(CTL_STAT_BITS, ctx->cur_items); i++) { int item; @@ -444,13 +446,14 @@ ctlstat_standard(struct ctlstat_context *ctx) { fprintf(stdout, "%15.6s%d %s", F_PORTS(ctx) ? "port" : "lun", item, (F_TIMEVAL(ctx) != 0) ? " " : ""); - hdr_devs++; + if (++n >= ctx->numdevs) + break; } fprintf(stdout, "\n"); } if (F_CPU(ctx)) fprintf(stdout, " "); - for (i = 0; i < hdr_devs; i++) + for (i = 0; i < n; i++) fprintf(stdout, "%s KB/t %s MB/s", (F_TIMEVAL(ctx) != 0) ? " ms" : "", (F_DMA(ctx) == 0) ? "tps" : "dps"); @@ -534,7 +537,7 @@ ctlstat_standard(struct ctlstat_context *ctx) { dmas_per_sec[i], mbsec[i]); } } else { - for (i = 0; i < min(CTL_STAT_BITS, ctx->cur_items); i++) { + for (i = n = 0; i < min(CTL_STAT_BITS, ctx->cur_items); i++) { long double mbsec, kb_per_transfer; long double transfers_per_sec; long double ms_per_transfer; @@ -565,6 +568,8 @@ ctlstat_standard(struct ctlstat_context *ctx) { fprintf(stdout, " %4.0Lf %5.0Lf %4.0Lf", kb_per_transfer, (F_DMA(ctx) == 0) ? transfers_per_sec : dmas_per_sec, mbsec); + if (++n >= ctx->numdevs) + break; } } } @@ -668,18 +673,6 @@ main(int argc, char **argv) ctx.flags |= CTLSTAT_FLAG_PORTS; else ctx.flags |= CTLSTAT_FLAG_LUNS; - } - - if (!F_TOTALS(&ctx) && !F_MASK(&ctx)) { - /* - * Note that this just selects the first N LUNs to display, - * but at this point we have no knoweledge of which LUN - * numbers actually exist. So we may select LUNs that - * aren't there. - */ - bit_nset(ctx.item_mask, 0, min(ctx.numdevs - 1, - CTL_STAT_BITS - 1)); - ctx.flags |= CTLSTAT_FLAG_MASK; } if ((fd = open(CTL_DEFAULT_DEV, O_RDWR)) == -1) From owner-svn-src-head@freebsd.org Mon Nov 27 15:25:08 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90FADE54BFE; Mon, 27 Nov 2017 15:25:08 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 548B276F4C; Mon, 27 Nov 2017 15:25:08 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFP7JE006672; Mon, 27 Nov 2017 15:25:07 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFP2Pf006621; Mon, 27 Nov 2017 15:25:02 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271525.vARFP2Pf006621@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:25:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326274 - in head/libexec: atrun bootpd/tools/bootptest pppoed rpc.rwalld rpc.sprayd rtld-aout rtld-elf rtld-elf/amd64 rtld-elf/arm rtld-elf/i386 rtld-elf/mips rtld-elf/powerpc rtld-elf... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/libexec: atrun bootpd/tools/bootptest pppoed rpc.rwalld rpc.sprayd rtld-aout rtld-elf rtld-elf/amd64 rtld-elf/arm rtld-elf/i386 rtld-elf/mips rtld-elf/powerpc rtld-elf/powerpc64 rtld-elf/sparc... X-SVN-Commit-Revision: 326274 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:25:08 -0000 Author: pfg Date: Mon Nov 27 15:25:02 2017 New Revision: 326274 URL: https://svnweb.freebsd.org/changeset/base/326274 Log: libexec: adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Modified: head/libexec/atrun/atrun.c head/libexec/atrun/gloadavg.c head/libexec/atrun/gloadavg.h head/libexec/bootpd/tools/bootptest/print-bootp.c head/libexec/pppoed/pppoed.c head/libexec/rpc.rwalld/rwalld.c head/libexec/rpc.sprayd/sprayd.c head/libexec/rtld-aout/shlib.c head/libexec/rtld-aout/shlib.h head/libexec/rtld-aout/support.c head/libexec/rtld-aout/support.h head/libexec/rtld-elf/amd64/reloc.c head/libexec/rtld-elf/amd64/rtld_machdep.h head/libexec/rtld-elf/arm/rtld_machdep.h head/libexec/rtld-elf/debug.c head/libexec/rtld-elf/debug.h head/libexec/rtld-elf/i386/reloc.c head/libexec/rtld-elf/i386/rtld_machdep.h head/libexec/rtld-elf/map_object.c head/libexec/rtld-elf/mips/reloc.c head/libexec/rtld-elf/mips/rtld_machdep.h head/libexec/rtld-elf/powerpc/reloc.c head/libexec/rtld-elf/powerpc/rtld_machdep.h head/libexec/rtld-elf/powerpc64/reloc.c head/libexec/rtld-elf/powerpc64/rtld_machdep.h head/libexec/rtld-elf/rtld.c head/libexec/rtld-elf/rtld.h head/libexec/rtld-elf/rtld_lock.c head/libexec/rtld-elf/rtld_lock.h head/libexec/rtld-elf/rtld_printf.h head/libexec/rtld-elf/rtld_tls.h head/libexec/rtld-elf/sparc64/reloc.c head/libexec/rtld-elf/sparc64/rtld_machdep.h head/libexec/rtld-elf/xmalloc.c head/libexec/save-entropy/save-entropy.sh head/libexec/talkd/extern.h head/libexec/tftpd/tftp-file.c head/libexec/tftpd/tftp-file.h head/libexec/tftpd/tftp-io.c head/libexec/tftpd/tftp-io.h head/libexec/tftpd/tftp-options.c head/libexec/tftpd/tftp-options.h head/libexec/tftpd/tftp-transfer.c head/libexec/tftpd/tftp-transfer.h head/libexec/tftpd/tftp-utils.c head/libexec/tftpd/tftp-utils.h head/libexec/ulog-helper/ulog-helper.c Modified: head/libexec/atrun/atrun.c ============================================================================== --- head/libexec/atrun/atrun.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/atrun/atrun.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,5 +1,8 @@ -/* +/*- * atrun.c - run jobs queued by at; run with root privileges. + * + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (C) 1993, 1994 Thomas Koenig * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/atrun/gloadavg.c ============================================================================== --- head/libexec/atrun/gloadavg.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/atrun/gloadavg.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ -/* +/*- * gloadavg.c - get load average for Linux * Copyright (C) 1993 Thomas Koenig + * + * SPDX-License-Identifier: BSD-2-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions Modified: head/libexec/atrun/gloadavg.h ============================================================================== --- head/libexec/atrun/gloadavg.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/atrun/gloadavg.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ -/* +/*- * gloadavg.h - header for atrun(8) * Copyright (C) 1993 Thomas Koenig + * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions Modified: head/libexec/bootpd/tools/bootptest/print-bootp.c ============================================================================== --- head/libexec/bootpd/tools/bootptest/print-bootp.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/bootpd/tools/bootptest/print-bootp.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1988-1990 * The Regents of the University of California. All rights reserved. * Modified: head/libexec/pppoed/pppoed.c ============================================================================== --- head/libexec/pppoed/pppoed.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/pppoed/pppoed.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999-2001 Brian Somers * All rights reserved. * Modified: head/libexec/rpc.rwalld/rwalld.c ============================================================================== --- head/libexec/rpc.rwalld/rwalld.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rpc.rwalld/rwalld.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1993 Christopher G. Demetriou * All rights reserved. * Modified: head/libexec/rpc.sprayd/sprayd.c ============================================================================== --- head/libexec/rpc.sprayd/sprayd.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rpc.sprayd/sprayd.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1994 Christos Zoulas * All rights reserved. * Modified: head/libexec/rtld-aout/shlib.c ============================================================================== --- head/libexec/rtld-aout/shlib.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-aout/shlib.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1993 Paul Kranenburg * All rights reserved. * Modified: head/libexec/rtld-aout/shlib.h ============================================================================== --- head/libexec/rtld-aout/shlib.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-aout/shlib.h Mon Nov 27 15:25:02 2017 (r326274) @@ -2,6 +2,8 @@ * Copyright (C) 1996 * Peter Wemm. All rights reserved. * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: Modified: head/libexec/rtld-aout/support.c ============================================================================== --- head/libexec/rtld-aout/support.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-aout/support.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,9 +1,11 @@ -/* +/*- * Generic "support" routines to replace those obtained from libiberty for ld. * * I've collected these from random bits of (published) code I've written * over the years, not that they are a big deal. peter@freebsd.org - *- + * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1996 * Peter Wemm. All rights reserved. * Modified: head/libexec/rtld-aout/support.h ============================================================================== --- head/libexec/rtld-aout/support.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-aout/support.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1996 * Peter Wemm. All rights reserved. * Modified: head/libexec/rtld-elf/amd64/reloc.c ============================================================================== --- head/libexec/rtld-elf/amd64/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/amd64/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996, 1997, 1998, 1999 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/amd64/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/amd64/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/amd64/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/arm/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/arm/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/arm/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/debug.c ============================================================================== --- head/libexec/rtld-elf/debug.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/debug.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/debug.h ============================================================================== --- head/libexec/rtld-elf/debug.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/debug.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/i386/reloc.c ============================================================================== --- head/libexec/rtld-elf/i386/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/i386/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996, 1997, 1998, 1999 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/i386/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/i386/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/i386/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/map_object.c ============================================================================== --- head/libexec/rtld-elf/map_object.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/map_object.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/mips/reloc.c ============================================================================== --- head/libexec/rtld-elf/mips/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/mips/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ /* $NetBSD: mips_reloc.c,v 1.58 2010/01/14 11:57:06 skrll Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright 1997 Michael L. Hitch * Portions copyright 2002 Charles M. Hannum * All rights reserved. Modified: head/libexec/rtld-elf/mips/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/mips/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/mips/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/powerpc/reloc.c ============================================================================== --- head/libexec/rtld-elf/powerpc/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/powerpc/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ /* $NetBSD: ppc_reloc.c,v 1.10 2001/09/10 06:09:41 mycroft Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (C) 1998 Tsubai Masanari * All rights reserved. * Modified: head/libexec/rtld-elf/powerpc/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/powerpc/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/powerpc/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/powerpc64/reloc.c ============================================================================== --- head/libexec/rtld-elf/powerpc64/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/powerpc64/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ /* $NetBSD: ppc_reloc.c,v 1.10 2001/09/10 06:09:41 mycroft Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (C) 1998 Tsubai Masanari * All rights reserved. * Modified: head/libexec/rtld-elf/powerpc64/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/powerpc64/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/powerpc64/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/rtld.c ============================================================================== --- head/libexec/rtld-elf/rtld.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. * Copyright 2003 Alexander Kabaev . * Copyright 2009-2013 Konstantin Belousov . Modified: head/libexec/rtld-elf/rtld.h ============================================================================== --- head/libexec/rtld-elf/rtld.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/rtld_lock.c ============================================================================== --- head/libexec/rtld-elf/rtld_lock.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld_lock.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/rtld_lock.h ============================================================================== --- head/libexec/rtld-elf/rtld_lock.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld_lock.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2003 Alexander Kabaev. * All rights reserved. * Modified: head/libexec/rtld-elf/rtld_printf.h ============================================================================== --- head/libexec/rtld-elf/rtld_printf.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld_printf.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2011 Konstantin Belousov . * All rights reserved. * Modified: head/libexec/rtld-elf/rtld_tls.h ============================================================================== --- head/libexec/rtld-elf/rtld_tls.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/rtld_tls.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Doug Rabson * All rights reserved. * Modified: head/libexec/rtld-elf/sparc64/reloc.c ============================================================================== --- head/libexec/rtld-elf/sparc64/reloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/sparc64/reloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,6 +1,8 @@ /* $NetBSD: mdreloc.c,v 1.42 2008/04/28 20:23:04 martin Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2000 Eduardo Horvath. * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. Modified: head/libexec/rtld-elf/sparc64/rtld_machdep.h ============================================================================== --- head/libexec/rtld-elf/sparc64/rtld_machdep.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/sparc64/rtld_machdep.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999, 2000 John D. Polstra. * All rights reserved. * Modified: head/libexec/rtld-elf/xmalloc.c ============================================================================== --- head/libexec/rtld-elf/xmalloc.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/rtld-elf/xmalloc.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 1996-1998 John D. Polstra. * All rights reserved. * Modified: head/libexec/save-entropy/save-entropy.sh ============================================================================== --- head/libexec/save-entropy/save-entropy.sh Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/save-entropy/save-entropy.sh Mon Nov 27 15:25:02 2017 (r326274) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2001-2006,2012 Douglas Barton, dougb@FreeBSD.org # All rights reserved. # Modified: head/libexec/talkd/extern.h ============================================================================== --- head/libexec/talkd/extern.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/talkd/extern.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 M. Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-file.c ============================================================================== --- head/libexec/tftpd/tftp-file.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-file.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-file.h ============================================================================== --- head/libexec/tftpd/tftp-file.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-file.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-io.c ============================================================================== --- head/libexec/tftpd/tftp-io.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-io.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-io.h ============================================================================== --- head/libexec/tftpd/tftp-io.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-io.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-options.c ============================================================================== --- head/libexec/tftpd/tftp-options.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-options.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-options.h ============================================================================== --- head/libexec/tftpd/tftp-options.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-options.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-transfer.c ============================================================================== --- head/libexec/tftpd/tftp-transfer.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-transfer.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-transfer.h ============================================================================== --- head/libexec/tftpd/tftp-transfer.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-transfer.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-utils.c ============================================================================== --- head/libexec/tftpd/tftp-utils.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-utils.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/tftpd/tftp-utils.h ============================================================================== --- head/libexec/tftpd/tftp-utils.h Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/tftpd/tftp-utils.h Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 2008 Edwin Groothuis. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/libexec/ulog-helper/ulog-helper.c ============================================================================== --- head/libexec/ulog-helper/ulog-helper.c Mon Nov 27 15:24:13 2017 (r326273) +++ head/libexec/ulog-helper/ulog-helper.c Mon Nov 27 15:25:02 2017 (r326274) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Ed Schouten * All rights reserved. * From owner-svn-src-head@freebsd.org Mon Nov 27 15:28:34 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EBF6E54DE8; Mon, 27 Nov 2017 15:28:34 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28AB177430; Mon, 27 Nov 2017 15:28:34 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFSXsc007321; Mon, 27 Nov 2017 15:28:33 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFSQCi007248; Mon, 27 Nov 2017 15:28:26 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271528.vARFSQCi007248@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:28:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326275 - in head: share/examples/bhyve share/examples/hast share/examples/ipfw share/examples/kld/cdev/module share/examples/kld/cdev/test share/examples/kld/dyn_sysctl share/examples/... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head: share/examples/bhyve share/examples/hast share/examples/ipfw share/examples/kld/cdev/module share/examples/kld/cdev/test share/examples/kld/dyn_sysctl share/examples/kld/firmware/fwconsumer s... X-SVN-Commit-Revision: 326275 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:28:34 -0000 Author: pfg Date: Mon Nov 27 15:28:26 2017 New Revision: 326275 URL: https://svnweb.freebsd.org/changeset/base/326275 Log: share and pc-sysinstall: adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Commit these apart because compile testing doesn't guarantee I didn't made some nasty mistake. No functional change intended. Modified: head/share/examples/bhyve/vmrun.sh head/share/examples/hast/ucarp.sh head/share/examples/hast/ucarp_down.sh head/share/examples/hast/ucarp_up.sh head/share/examples/ipfw/change_rules.sh head/share/examples/kld/cdev/module/cdev.c head/share/examples/kld/cdev/module/cdev.h head/share/examples/kld/cdev/module/cdevmod.c head/share/examples/kld/cdev/test/testcdev.c head/share/examples/kld/dyn_sysctl/dyn_sysctl.c head/share/examples/kld/firmware/fwconsumer/fw_consumer.c head/share/examples/kld/khelp/h_example.c head/share/examples/kld/random_adaptor/random_adaptor_example.c head/share/examples/kld/syscall/module/syscall.c head/share/examples/kld/syscall/test/call.c head/share/examples/libvgl/demo.c head/share/examples/scsi_target/scsi_cmds.c head/share/examples/scsi_target/scsi_target.c head/share/examples/scsi_target/scsi_target.h head/share/mk/version_gen.awk head/share/syscons/scrnmaps/mkscrfil.c head/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh head/usr.sbin/pc-sysinstall/backend-partmanager/delete-part.sh head/usr.sbin/pc-sysinstall/backend-query/detect-emulation.sh head/usr.sbin/pc-sysinstall/backend-query/detect-laptop.sh head/usr.sbin/pc-sysinstall/backend-query/detect-nics.sh head/usr.sbin/pc-sysinstall/backend-query/disk-info.sh head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh head/usr.sbin/pc-sysinstall/backend-query/disk-part.sh head/usr.sbin/pc-sysinstall/backend-query/enable-net.sh head/usr.sbin/pc-sysinstall/backend-query/get-packages.sh head/usr.sbin/pc-sysinstall/backend-query/list-components.sh head/usr.sbin/pc-sysinstall/backend-query/list-config.sh head/usr.sbin/pc-sysinstall/backend-query/list-mirrors.sh head/usr.sbin/pc-sysinstall/backend-query/list-packages.sh head/usr.sbin/pc-sysinstall/backend-query/list-rsync-backups.sh head/usr.sbin/pc-sysinstall/backend-query/list-tzones.sh head/usr.sbin/pc-sysinstall/backend-query/query-langs.sh head/usr.sbin/pc-sysinstall/backend-query/send-logs.sh head/usr.sbin/pc-sysinstall/backend-query/set-mirror.sh head/usr.sbin/pc-sysinstall/backend-query/setup-ssh-keys.sh head/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh head/usr.sbin/pc-sysinstall/backend-query/test-live.sh head/usr.sbin/pc-sysinstall/backend-query/test-netup.sh head/usr.sbin/pc-sysinstall/backend-query/update-part-list.sh head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-layouts.sh head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-models.sh head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-variants.sh head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh head/usr.sbin/pc-sysinstall/backend/functions-disk.sh head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh head/usr.sbin/pc-sysinstall/backend/functions-ftp.sh head/usr.sbin/pc-sysinstall/backend/functions-installcomponents.sh head/usr.sbin/pc-sysinstall/backend/functions-installpackages.sh head/usr.sbin/pc-sysinstall/backend/functions-localize.sh head/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh head/usr.sbin/pc-sysinstall/backend/functions-mountoptical.sh head/usr.sbin/pc-sysinstall/backend/functions-networking.sh head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh head/usr.sbin/pc-sysinstall/backend/functions-packages.sh head/usr.sbin/pc-sysinstall/backend/functions-parse.sh head/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh head/usr.sbin/pc-sysinstall/backend/functions-unmount.sh head/usr.sbin/pc-sysinstall/backend/functions-upgrade.sh head/usr.sbin/pc-sysinstall/backend/functions-users.sh head/usr.sbin/pc-sysinstall/backend/functions.sh head/usr.sbin/pc-sysinstall/backend/installimage.sh head/usr.sbin/pc-sysinstall/backend/parseconfig.sh head/usr.sbin/pc-sysinstall/backend/startautoinstall.sh head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.sh Modified: head/share/examples/bhyve/vmrun.sh ============================================================================== --- head/share/examples/bhyve/vmrun.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/bhyve/vmrun.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2013 NetApp, Inc. # All rights reserved. # Modified: head/share/examples/hast/ucarp.sh ============================================================================== --- head/share/examples/hast/ucarp.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/hast/ucarp.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 The FreeBSD Foundation # All rights reserved. # Modified: head/share/examples/hast/ucarp_down.sh ============================================================================== --- head/share/examples/hast/ucarp_down.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/hast/ucarp_down.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 The FreeBSD Foundation # All rights reserved. # Modified: head/share/examples/hast/ucarp_up.sh ============================================================================== --- head/share/examples/hast/ucarp_up.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/hast/ucarp_up.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 The FreeBSD Foundation # All rights reserved. # Modified: head/share/examples/ipfw/change_rules.sh ============================================================================== --- head/share/examples/ipfw/change_rules.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/ipfw/change_rules.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2000 Alexandre Peixoto # All rights reserved. # Modified: head/share/examples/kld/cdev/module/cdev.c ============================================================================== --- head/share/examples/kld/cdev/module/cdev.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/cdev/module/cdev.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,8 +1,10 @@ /* 08 Nov 1998*/ -/* +/*- * cdev.c * * 08 Nov 1998 Rajesh Vaidheeswarran + * + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1998 Rajesh Vaidheeswarran * All rights reserved. Modified: head/share/examples/kld/cdev/module/cdev.h ============================================================================== --- head/share/examples/kld/cdev/module/cdev.h Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/cdev/module/cdev.h Mon Nov 27 15:28:26 2017 (r326275) @@ -1,9 +1,11 @@ /* 08 Nov 1998*/ -/* +/*- * cdev.h - header for sample kld module implementing a character device * driver. * * 08 Nov 1998 Rajesh Vaidheeswarran + * + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1998 Rajesh Vaidheeswarran * All rights reserved. Modified: head/share/examples/kld/cdev/module/cdevmod.c ============================================================================== --- head/share/examples/kld/cdev/module/cdevmod.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/cdev/module/cdevmod.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,8 +1,10 @@ /* 08 Nov 1998*/ -/* +/*- * cdevmod.c - a sample kld module implementing a character device driver. * * 08 Nov 1998 Rajesh Vaidheeswarran + * + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1998 Rajesh Vaidheeswarran * All rights reserved. Modified: head/share/examples/kld/cdev/test/testcdev.c ============================================================================== --- head/share/examples/kld/cdev/test/testcdev.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/cdev/test/testcdev.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,11 +1,13 @@ /* 08 Nov 1998*/ -/* +/*- * testmisc.c * * Test program to call the sample loaded kld device driver. * * 05 Jun 93 Rajesh Vaidheeswarran Original * + * + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1993 Rajesh Vaidheeswarran. * All rights reserved. Modified: head/share/examples/kld/dyn_sysctl/dyn_sysctl.c ============================================================================== --- head/share/examples/kld/dyn_sysctl/dyn_sysctl.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/dyn_sysctl/dyn_sysctl.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2000 Andrzej Bialecki * All rights reserved. * Modified: head/share/examples/kld/firmware/fwconsumer/fw_consumer.c ============================================================================== --- head/share/examples/kld/firmware/fwconsumer/fw_consumer.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/firmware/fwconsumer/fw_consumer.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2006, Max Laier * All rights reserved. * Modified: head/share/examples/kld/khelp/h_example.c ============================================================================== --- head/share/examples/kld/khelp/h_example.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/khelp/h_example.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010-2011 The FreeBSD Foundation * All rights reserved. * Modified: head/share/examples/kld/random_adaptor/random_adaptor_example.c ============================================================================== --- head/share/examples/kld/random_adaptor/random_adaptor_example.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/random_adaptor/random_adaptor_example.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2013 Arthur Mesh * All rights reserved. * Modified: head/share/examples/kld/syscall/module/syscall.c ============================================================================== --- head/share/examples/kld/syscall/module/syscall.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/syscall/module/syscall.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Assar Westerlund * All rights reserved. * Modified: head/share/examples/kld/syscall/test/call.c ============================================================================== --- head/share/examples/kld/syscall/test/call.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/kld/syscall/test/call.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1999 Assar Westerlund * All rights reserved. * Modified: head/share/examples/libvgl/demo.c ============================================================================== --- head/share/examples/libvgl/demo.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/libvgl/demo.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1991-1997 Søren Schmidt * All rights reserved. * Modified: head/share/examples/scsi_target/scsi_cmds.c ============================================================================== --- head/share/examples/scsi_target/scsi_cmds.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/scsi_target/scsi_cmds.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * SCSI Disk Emulator * * Copyright (c) 2002 Nate Lawson. Modified: head/share/examples/scsi_target/scsi_target.c ============================================================================== --- head/share/examples/scsi_target/scsi_target.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/scsi_target/scsi_target.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * SCSI Disk Emulator * * Copyright (c) 2002 Nate Lawson. Modified: head/share/examples/scsi_target/scsi_target.h ============================================================================== --- head/share/examples/scsi_target/scsi_target.h Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/examples/scsi_target/scsi_target.h Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * SCSI Target Emulator * * Copyright (c) 2002 Nate Lawson. Modified: head/share/mk/version_gen.awk ============================================================================== --- head/share/mk/version_gen.awk Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/mk/version_gen.awk Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ # +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (C) 2006 Daniel M. Eischen. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/share/syscons/scrnmaps/mkscrfil.c ============================================================================== --- head/share/syscons/scrnmaps/mkscrfil.c Mon Nov 27 15:25:02 2017 (r326274) +++ head/share/syscons/scrnmaps/mkscrfil.c Mon Nov 27 15:28:26 2017 (r326275) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1994 by Andrew A. Chernov, Moscow, Russia. * All rights reserved. * Modified: head/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-partmanager/delete-part.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-partmanager/delete-part.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-partmanager/delete-part.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/detect-emulation.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/detect-emulation.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/detect-emulation.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/detect-laptop.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/detect-laptop.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/detect-laptop.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/detect-nics.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/detect-nics.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/detect-nics.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/disk-info.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/disk-info.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/disk-info.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/disk-part.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/disk-part.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/disk-part.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/enable-net.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/enable-net.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/enable-net.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # Copyright (c) 2011 The FreeBSD Foundation # All rights reserved. Modified: head/usr.sbin/pc-sysinstall/backend-query/get-packages.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/get-packages.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/get-packages.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-components.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-components.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-components.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-config.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-config.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-config.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-mirrors.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-mirrors.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-mirrors.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-packages.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-packages.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-packages.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-rsync-backups.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-rsync-backups.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-rsync-backups.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/list-tzones.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/list-tzones.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/list-tzones.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/query-langs.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/query-langs.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/query-langs.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/send-logs.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/send-logs.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/send-logs.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/set-mirror.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/set-mirror.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/set-mirror.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXSystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/setup-ssh-keys.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/setup-ssh-keys.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/setup-ssh-keys.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/test-live.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/test-live.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/test-live.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/test-netup.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/test-netup.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/test-netup.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # Copyright (c) 2011 The FreeBSD Foundation # All rights reserved. Modified: head/usr.sbin/pc-sysinstall/backend-query/update-part-list.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/update-part-list.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/update-part-list.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-layouts.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-layouts.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-layouts.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-models.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-models.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-models.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-variants.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-variants.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend-query/xkeyboard-variants.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-disk.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-disk.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-disk.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-ftp.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-ftp.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-ftp.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-installcomponents.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-installcomponents.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-installcomponents.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-installpackages.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-installpackages.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-installpackages.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-localize.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-localize.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-localize.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-mountoptical.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-mountoptical.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-mountoptical.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-networking.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-networking.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-networking.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # Copyright (c) 2011 The FreeBSD Foundation # All rights reserved. Modified: head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-packages.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-packages.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-packages.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-parse.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-parse.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-parse.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-unmount.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-unmount.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-unmount.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-upgrade.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-upgrade.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-upgrade.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions-users.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-users.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions-users.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/functions.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/functions.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/installimage.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/installimage.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/installimage.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/parseconfig.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/parseconfig.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/parseconfig.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/backend/startautoinstall.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/startautoinstall.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/backend/startautoinstall.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -1,5 +1,7 @@ #!/bin/sh #- +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright (c) 2010 iXsystems, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.sh Mon Nov 27 15:25:02 2017 (r326274) +++ head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.sh Mon Nov 27 15:28:26 2017 (r326275) @@ -6,6 +6,8 @@ # system installations, as well as calls which a front-end can use # to retrive information about the system ##################################################################### +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# # Copyright 2010 iXsystems # All rights reserved # From owner-svn-src-head@freebsd.org Mon Nov 27 15:37:29 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54AF7E55266; Mon, 27 Nov 2017 15:37:29 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 979E677AD1; Mon, 27 Nov 2017 15:37:28 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFbRZO011583; Mon, 27 Nov 2017 15:37:27 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFbH9O011466; Mon, 27 Nov 2017 15:37:17 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271537.vARFbH9O011466@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:37:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326276 - in head: bin/pkill etc/pam.d kerberos5/lib/libgssapi_krb5 kerberos5/lib/libgssapi_ntlm kerberos5/lib/libgssapi_spnego sbin/adjkerntz sbin/camcontrol sbin/ccdconfig sbin/comcon... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head: bin/pkill etc/pam.d kerberos5/lib/libgssapi_krb5 kerberos5/lib/libgssapi_ntlm kerberos5/lib/libgssapi_spnego sbin/adjkerntz sbin/camcontrol sbin/ccdconfig sbin/comcontrol sbin/conscontrol sbi... X-SVN-Commit-Revision: 326276 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:37:29 -0000 Author: pfg Date: Mon Nov 27 15:37:16 2017 New Revision: 326276 URL: https://svnweb.freebsd.org/changeset/base/326276 Log: various: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Modified: head/bin/pkill/pkill.c head/etc/pam.d/convert.pl head/kerberos5/lib/libgssapi_krb5/gss_krb5.c head/kerberos5/lib/libgssapi_krb5/pname_to_uid.c head/kerberos5/lib/libgssapi_krb5/prefix.c head/kerberos5/lib/libgssapi_ntlm/prefix.c head/kerberos5/lib/libgssapi_spnego/freebsd_compat.c head/sbin/adjkerntz/adjkerntz.c head/sbin/adjkerntz/pathnames.h head/sbin/camcontrol/camcontrol.h head/sbin/camcontrol/fwdownload.c head/sbin/camcontrol/modeedit.c head/sbin/camcontrol/progress.c head/sbin/camcontrol/progress.h head/sbin/camcontrol/util.c head/sbin/ccdconfig/ccdconfig.c head/sbin/ccdconfig/pathnames.h head/sbin/comcontrol/comcontrol.c head/sbin/conscontrol/conscontrol.c head/sbin/ddb/ddb.c head/sbin/ddb/ddb.h head/sbin/ddb/ddb_capture.c head/sbin/ddb/ddb_script.c head/sbin/devd/devd.h head/sbin/devd/devd.hh head/sbin/devd/parse.y head/sbin/devd/token.l head/sbin/devfs/devfs.c head/sbin/devfs/extern.h head/sbin/devfs/rule.c head/sbin/etherswitchcfg/etherswitchcfg.c head/sbin/fsck/fsutil.h head/sbin/fsck_ffs/ea.c head/sbin/fsck_ffs/suj.c head/sbin/fsck_msdosfs/boot.c head/sbin/fsck_msdosfs/check.c head/sbin/fsck_msdosfs/dir.c head/sbin/fsck_msdosfs/dosfs.h head/sbin/fsck_msdosfs/ext.h head/sbin/fsck_msdosfs/fat.c head/sbin/fsck_msdosfs/main.c head/sbin/fsdb/fsdb.c head/sbin/fsdb/fsdb.h head/sbin/fsdb/fsdbutil.c head/sbin/fsirand/fsirand.c head/sbin/gbde/gbde.c head/sbin/geom/class/cache/geom_cache.c head/sbin/geom/class/concat/geom_concat.c head/sbin/geom/class/eli/geom_eli.c head/sbin/geom/class/journal/geom_journal.c head/sbin/geom/class/journal/geom_journal.h head/sbin/geom/class/journal/geom_journal_ufs.c head/sbin/geom/class/label/geom_label.c head/sbin/geom/class/mirror/geom_mirror.c head/sbin/geom/class/mountver/geom_mountver.c head/sbin/geom/class/multipath/geom_multipath.c head/sbin/geom/class/nop/geom_nop.c head/sbin/geom/class/part/geom_part.c head/sbin/geom/class/raid/geom_raid.c head/sbin/geom/class/raid3/geom_raid3.c head/sbin/geom/class/sched/geom_sched.c head/sbin/geom/class/shsec/geom_shsec.c head/sbin/geom/class/stripe/geom_stripe.c head/sbin/geom/class/virstor/geom_virstor.c head/sbin/geom/core/geom.c head/sbin/geom/core/geom.h head/sbin/geom/misc/subr.c head/sbin/geom/misc/subr.h head/sbin/ggate/ggatec/ggatec.c head/sbin/ggate/ggated/ggated.c head/sbin/ggate/ggatel/ggatel.c head/sbin/ggate/shared/ggate.c head/sbin/ggate/shared/ggate.h head/sbin/gvinum/gvinum.c head/sbin/hastctl/hastctl.c head/sbin/hastd/activemap.c head/sbin/hastd/activemap.h head/sbin/hastd/control.c head/sbin/hastd/control.h head/sbin/hastd/ebuf.c head/sbin/hastd/ebuf.h head/sbin/hastd/event.c head/sbin/hastd/event.h head/sbin/hastd/hast.h head/sbin/hastd/hast_checksum.c head/sbin/hastd/hast_checksum.h head/sbin/hastd/hast_compression.c head/sbin/hastd/hast_compression.h head/sbin/hastd/hast_proto.c head/sbin/hastd/hast_proto.h head/sbin/hastd/hastd.c head/sbin/hastd/hastd.h head/sbin/hastd/hooks.c head/sbin/hastd/hooks.h head/sbin/hastd/lzf.c head/sbin/hastd/lzf.h head/sbin/hastd/metadata.c head/sbin/hastd/metadata.h head/sbin/hastd/nv.c head/sbin/hastd/nv.h head/sbin/hastd/parse.y head/sbin/hastd/pjdlog.c head/sbin/hastd/pjdlog.h head/sbin/hastd/primary.c head/sbin/hastd/proto.c head/sbin/hastd/proto.h head/sbin/hastd/proto_common.c head/sbin/hastd/proto_impl.h head/sbin/hastd/proto_socketpair.c head/sbin/hastd/proto_tcp.c head/sbin/hastd/proto_uds.c head/sbin/hastd/rangelock.c head/sbin/hastd/rangelock.h head/sbin/hastd/refcnt.h head/sbin/hastd/secondary.c head/sbin/hastd/subr.c head/sbin/hastd/subr.h head/sbin/hastd/synch.h head/sbin/hastd/token.l head/sbin/ifconfig/af_nd6.c head/sbin/ifconfig/carp.c head/sbin/ifconfig/ifbridge.c head/sbin/ifconfig/ifconfig.h head/sbin/ifconfig/iffib.c head/sbin/ifconfig/ifgif.c head/sbin/ifconfig/ifgre.c head/sbin/ifconfig/ifgroup.c head/sbin/ifconfig/ifieee80211.c head/sbin/ifconfig/ifmac.c head/sbin/ifconfig/ifpfsync.c head/sbin/iscontrol/auth_subr.c head/sbin/iscontrol/config.c head/sbin/iscontrol/fsm.c head/sbin/iscontrol/iscontrol.c head/sbin/iscontrol/iscontrol.h head/sbin/iscontrol/login.c head/sbin/iscontrol/misc.c head/sbin/iscontrol/pdu.c head/sbin/kldconfig/kldconfig.c head/sbin/kldload/kldload.c head/sbin/kldstat/kldstat.c head/sbin/kldunload/kldunload.c head/sbin/ldconfig/elfhints.c head/sbin/ldconfig/ldconfig.c head/sbin/ldconfig/ldconfig.h head/sbin/mdconfig/mdconfig.c head/sbin/mdmfs/mdmfs.c head/sbin/mksnap_ffs/mksnap_ffs.c head/sbin/mount/extern.h head/sbin/mount_fusefs/mount_fusefs.c head/sbin/mount_msdosfs/mount_msdosfs.c head/sbin/nandfs/lssnap.c head/sbin/nandfs/mksnap.c head/sbin/nandfs/nandfs.c head/sbin/nandfs/nandfs.h head/sbin/nandfs/rmsnap.c head/sbin/newfs_msdos/newfs_msdos.c head/sbin/newfs_nandfs/newfs_nandfs.c head/sbin/nos-tun/nos-tun.c head/sbin/nvmecontrol/devlist.c head/sbin/nvmecontrol/firmware.c head/sbin/nvmecontrol/identify.c head/sbin/nvmecontrol/logpage.c head/sbin/nvmecontrol/nvmecontrol.c head/sbin/nvmecontrol/nvmecontrol.h head/sbin/nvmecontrol/perftest.c head/sbin/nvmecontrol/reset.c head/sbin/pfctl/parse.y head/sbin/pfctl/pf_print_state.c head/sbin/pfctl/pfctl.c head/sbin/pfctl/pfctl.h head/sbin/pfctl/pfctl_parser.c head/sbin/pfctl/pfctl_parser.h head/sbin/pfctl/pfctl_radix.c head/sbin/pfctl/pfctl_table.c head/sbin/rcorder/rcorder.c head/sbin/reboot/nextboot.sh head/sbin/spppcontrol/spppcontrol.c head/usr.bin/ar/acplex.l head/usr.bin/ar/acpyacc.y head/usr.bin/ar/ar.h head/usr.bin/ar/read.c head/usr.bin/ar/util.c head/usr.bin/ar/write.c head/usr.bin/asa/asa.c head/usr.bin/at/at.c head/usr.bin/at/at.h head/usr.bin/at/panic.c head/usr.bin/at/panic.h head/usr.bin/at/parsetime.c head/usr.bin/at/parsetime.h head/usr.bin/at/perm.c head/usr.bin/at/perm.h head/usr.bin/at/privs.h head/usr.bin/bluetooth/bthost/bthost.c head/usr.bin/bluetooth/btsockstat/btsockstat.c head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c head/usr.bin/brandelf/brandelf.c head/usr.bin/bsdiff/bsdiff/bsdiff.c head/usr.bin/bsdiff/bspatch/bspatch.c head/usr.bin/c89/c89.c head/usr.bin/c99/c99.c head/usr.bin/calendar/dates.c head/usr.bin/calendar/events.c head/usr.bin/calendar/ostern.c head/usr.bin/calendar/parsedata.c head/usr.bin/calendar/paskha.c head/usr.bin/calendar/sunpos.c head/usr.bin/cmp/link.c head/usr.bin/colldef/parse.y head/usr.bin/colldef/scan.l head/usr.bin/compress/zopen.h head/usr.bin/cpuset/cpuset.c head/usr.bin/csplit/csplit.c head/usr.bin/ctlstat/ctlstat.c head/usr.bin/dtc/checking.cc head/usr.bin/dtc/checking.hh head/usr.bin/dtc/dtb.cc head/usr.bin/dtc/dtb.hh head/usr.bin/dtc/dtc.cc head/usr.bin/dtc/fdt.cc head/usr.bin/dtc/fdt.hh head/usr.bin/dtc/input_buffer.cc head/usr.bin/dtc/input_buffer.hh head/usr.bin/dtc/string.cc head/usr.bin/dtc/util.hh head/usr.bin/elf2aout/elf2aout.c head/usr.bin/elfdump/elfdump.c head/usr.bin/env/envopts.c head/usr.bin/env/envopts.h head/usr.bin/fetch/fetch.c head/usr.bin/finger/pathnames.h head/usr.bin/fstat/functions.h head/usr.bin/fstat/fuser.c head/usr.bin/fstat/main.c head/usr.bin/fsync/fsync.c head/usr.bin/gcore/elfcore.c head/usr.bin/gencat/gencat.c head/usr.bin/getent/getent.c head/usr.bin/grep/file.c head/usr.bin/grep/grep.c head/usr.bin/grep/grep.h head/usr.bin/grep/queue.c head/usr.bin/grep/regex/fastmatch.c head/usr.bin/grep/regex/hashtable.c head/usr.bin/grep/regex/tre-fastmatch.c head/usr.bin/grep/util.c head/usr.bin/gzip/gzip.c head/usr.bin/gzip/unbzip2.c head/usr.bin/gzip/unpack.c head/usr.bin/gzip/unxz.c head/usr.bin/iconv/iconv.c head/usr.bin/indent/indent.h head/usr.bin/ipcrm/ipcrm.c head/usr.bin/ipcs/ipc.c head/usr.bin/ipcs/ipc.h head/usr.bin/ipcs/ipcs.c head/usr.bin/iscsictl/iscsictl.c head/usr.bin/iscsictl/iscsictl.h head/usr.bin/iscsictl/parse.y head/usr.bin/iscsictl/periphs.c head/usr.bin/iscsictl/token.l head/usr.bin/killall/killall.c head/usr.bin/ktrdump/ktrdump.c head/usr.bin/lastcomm/readrec.c head/usr.bin/ldd/extern.h head/usr.bin/ldd/ldd.c head/usr.bin/ldd/sods.c head/usr.bin/locale/locale.c head/usr.bin/locate/locate/concatdb.sh head/usr.bin/locate/locate/mklocatedb.sh head/usr.bin/locate/locate/updatedb.sh head/usr.bin/lockf/lockf.c head/usr.bin/login/login.h head/usr.bin/logins/logins.c head/usr.bin/m4/gnum4.c head/usr.bin/m4/trace.c head/usr.bin/man/man.sh head/usr.bin/mkcsmapper/ldef.h head/usr.bin/mkcsmapper/lex.l head/usr.bin/mkcsmapper/yacc.y head/usr.bin/mkesdb/ldef.h head/usr.bin/mkesdb/lex.l head/usr.bin/mkesdb/yacc.y head/usr.bin/mktemp/mktemp.c head/usr.bin/mkuzip/mkuzip.c head/usr.bin/ncal/ncal.c head/usr.bin/netstat/bpf.c head/usr.bin/netstat/netisr.c head/usr.bin/newgrp/newgrp.c head/usr.bin/nl/nl.c head/usr.bin/passwd/passwd.c head/usr.bin/pathchk/pathchk.c head/usr.bin/perror/perror.c head/usr.bin/procstat/procstat.c head/usr.bin/procstat/procstat.h head/usr.bin/procstat/procstat_args.c head/usr.bin/procstat/procstat_auxv.c head/usr.bin/procstat/procstat_basic.c head/usr.bin/procstat/procstat_bin.c head/usr.bin/procstat/procstat_cred.c head/usr.bin/procstat/procstat_files.c head/usr.bin/procstat/procstat_kstack.c head/usr.bin/procstat/procstat_rlimit.c head/usr.bin/procstat/procstat_sigs.c head/usr.bin/procstat/procstat_threads.c head/usr.bin/procstat/procstat_vm.c head/usr.bin/protect/protect.c head/usr.bin/rctl/rctl.c head/usr.bin/revoke/revoke.c head/usr.bin/seq/seq.c head/usr.bin/setchannel/setchannel.c head/usr.bin/sockstat/sockstat.c head/usr.bin/sort/bwstring.c head/usr.bin/sort/bwstring.h head/usr.bin/sort/coll.c head/usr.bin/sort/coll.h head/usr.bin/sort/file.c head/usr.bin/sort/file.h head/usr.bin/sort/mem.c head/usr.bin/sort/mem.h head/usr.bin/sort/radixsort.c head/usr.bin/sort/radixsort.h head/usr.bin/sort/sort.c head/usr.bin/sort/sort.h head/usr.bin/sort/vsort.c head/usr.bin/sort/vsort.h head/usr.bin/ssh-copy-id/ssh-copy-id.sh head/usr.bin/stat/stat.c head/usr.bin/stdbuf/stdbuf.c head/usr.bin/systat/convtbl.c head/usr.bin/systat/convtbl.h head/usr.bin/systat/devs.h head/usr.bin/systat/ifcmds.c head/usr.bin/systat/ifstat.c head/usr.bin/tabs/tabs.c head/usr.bin/tr/cmap.c head/usr.bin/tr/cmap.h head/usr.bin/tr/cset.c head/usr.bin/tr/cset.h head/usr.bin/truncate/truncate.c head/usr.bin/truss/truss.h head/usr.bin/unifdef/unifdef.c head/usr.bin/unifdef/unifdef.h head/usr.bin/unifdef/unifdefall.sh head/usr.bin/units/units.c head/usr.bin/unzip/unzip.c head/usr.bin/usbhidaction/usbhidaction.c head/usr.bin/usbhidctl/usbhid.c head/usr.bin/whereis/pathnames.h head/usr.bin/whereis/whereis.c head/usr.bin/which/which.c head/usr.bin/who/who.c head/usr.bin/ypcat/ypcat.c head/usr.bin/ypmatch/ypmatch.c head/usr.bin/ypwhich/ypwhich.c head/usr.sbin/ac/ac.c head/usr.sbin/acpi/acpiconf/acpiconf.c head/usr.sbin/acpi/acpidb/acpidb.c head/usr.sbin/acpi/acpidump/acpi.c head/usr.sbin/acpi/acpidump/acpi_user.c head/usr.sbin/acpi/acpidump/acpidump.c head/usr.sbin/acpi/acpidump/acpidump.h head/usr.sbin/adduser/adduser.sh head/usr.sbin/adduser/rmuser.sh head/usr.sbin/apmd/apmd.c head/usr.sbin/apmd/apmd.h head/usr.sbin/apmd/apmdlex.l head/usr.sbin/apmd/apmdparse.y head/usr.sbin/asf/asf.c head/usr.sbin/asf/asf.h head/usr.sbin/asf/asf_kld.c head/usr.sbin/asf/asf_kvm.c head/usr.sbin/asf/asf_prog.c head/usr.sbin/bhyve/acpi.c head/usr.sbin/bhyve/acpi.h head/usr.sbin/bhyve/ahci.h head/usr.sbin/bhyve/bhyverun.c head/usr.sbin/bhyve/bhyverun.h head/usr.sbin/bhyve/block_if.c head/usr.sbin/bhyve/block_if.h head/usr.sbin/bhyve/consport.c head/usr.sbin/bhyve/dbgport.c head/usr.sbin/bhyve/dbgport.h head/usr.sbin/bhyve/inout.c head/usr.sbin/bhyve/inout.h head/usr.sbin/bhyve/ioapic.c head/usr.sbin/bhyve/ioapic.h head/usr.sbin/bhyve/mem.c head/usr.sbin/bhyve/mem.h head/usr.sbin/bhyve/mevent.c head/usr.sbin/bhyve/mevent.h head/usr.sbin/bhyve/mevent_test.c head/usr.sbin/bhyve/mptbl.c head/usr.sbin/bhyve/mptbl.h head/usr.sbin/bhyve/pci_ahci.c head/usr.sbin/bhyve/pci_emul.c head/usr.sbin/bhyve/pci_emul.h head/usr.sbin/bhyve/pci_hostbridge.c head/usr.sbin/bhyve/pci_lpc.c head/usr.sbin/bhyve/pci_lpc.h head/usr.sbin/bhyve/pci_passthru.c head/usr.sbin/bhyve/pci_uart.c head/usr.sbin/bhyve/pci_virtio_block.c head/usr.sbin/bhyve/pci_virtio_net.c head/usr.sbin/bhyve/pm.c head/usr.sbin/bhyve/post.c head/usr.sbin/bhyve/rtc.c head/usr.sbin/bhyve/rtc.h head/usr.sbin/bhyve/smbiostbl.c head/usr.sbin/bhyve/smbiostbl.h head/usr.sbin/bhyve/spinup_ap.c head/usr.sbin/bhyve/spinup_ap.h head/usr.sbin/bhyve/uart_emul.c head/usr.sbin/bhyve/uart_emul.h head/usr.sbin/bhyve/virtio.c head/usr.sbin/bhyve/virtio.h head/usr.sbin/bhyve/xmsr.c head/usr.sbin/bhyve/xmsr.h head/usr.sbin/bhyvectl/bhyvectl.c head/usr.sbin/bhyveload/bhyveload.c head/usr.sbin/bluetooth/bcmfw/bcmfw.c head/usr.sbin/bluetooth/bt3cfw/bt3cfw.c head/usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c head/usr.sbin/bluetooth/bthidcontrol/bthidcontrol.h head/usr.sbin/bluetooth/bthidcontrol/hid.c head/usr.sbin/bluetooth/bthidcontrol/sdp.c head/usr.sbin/bluetooth/bthidd/bthid_config.h head/usr.sbin/bluetooth/bthidd/bthidd.c head/usr.sbin/bluetooth/bthidd/bthidd.h head/usr.sbin/bluetooth/bthidd/client.c head/usr.sbin/bluetooth/bthidd/hid.c head/usr.sbin/bluetooth/bthidd/kbd.c head/usr.sbin/bluetooth/bthidd/kbd.h head/usr.sbin/bluetooth/bthidd/lexer.l head/usr.sbin/bluetooth/bthidd/parser.y head/usr.sbin/bluetooth/bthidd/server.c head/usr.sbin/bluetooth/bthidd/session.c head/usr.sbin/bluetooth/btpand/bnep.c head/usr.sbin/bluetooth/btpand/bnep.h head/usr.sbin/bluetooth/btpand/btpand.c head/usr.sbin/bluetooth/btpand/btpand.h head/usr.sbin/bluetooth/btpand/channel.c head/usr.sbin/bluetooth/btpand/client.c head/usr.sbin/bluetooth/btpand/event.c head/usr.sbin/bluetooth/btpand/event.h head/usr.sbin/bluetooth/btpand/packet.c head/usr.sbin/bluetooth/btpand/sdp.c head/usr.sbin/bluetooth/btpand/sdp.h head/usr.sbin/bluetooth/btpand/server.c head/usr.sbin/bluetooth/btpand/tap.c head/usr.sbin/bluetooth/hccontrol/hccontrol.c head/usr.sbin/bluetooth/hccontrol/hccontrol.h head/usr.sbin/bluetooth/hccontrol/host_controller_baseband.c head/usr.sbin/bluetooth/hccontrol/info.c head/usr.sbin/bluetooth/hccontrol/link_control.c head/usr.sbin/bluetooth/hccontrol/link_policy.c head/usr.sbin/bluetooth/hccontrol/node.c head/usr.sbin/bluetooth/hccontrol/send_recv.c head/usr.sbin/bluetooth/hccontrol/status.c head/usr.sbin/bluetooth/hccontrol/util.c head/usr.sbin/bluetooth/hcsecd/hcsecd.c head/usr.sbin/bluetooth/hcsecd/hcsecd.h head/usr.sbin/bluetooth/hcsecd/lexer.l head/usr.sbin/bluetooth/hcsecd/parser.y head/usr.sbin/bluetooth/hcseriald/hcseriald.c head/usr.sbin/bluetooth/l2control/l2cap.c head/usr.sbin/bluetooth/l2control/l2control.c head/usr.sbin/bluetooth/l2control/l2control.h head/usr.sbin/bluetooth/l2ping/l2ping.c head/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.c head/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c head/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.h head/usr.sbin/bluetooth/sdpcontrol/search.c head/usr.sbin/bluetooth/sdpd/bgd.c head/usr.sbin/bluetooth/sdpd/dun.c head/usr.sbin/bluetooth/sdpd/ftrn.c head/usr.sbin/bluetooth/sdpd/gn.c head/usr.sbin/bluetooth/sdpd/irmc.c head/usr.sbin/bluetooth/sdpd/irmc_command.c head/usr.sbin/bluetooth/sdpd/lan.c head/usr.sbin/bluetooth/sdpd/log.c head/usr.sbin/bluetooth/sdpd/log.h head/usr.sbin/bluetooth/sdpd/main.c head/usr.sbin/bluetooth/sdpd/nap.c head/usr.sbin/bluetooth/sdpd/opush.c head/usr.sbin/bluetooth/sdpd/panu.c head/usr.sbin/bluetooth/sdpd/profile.c head/usr.sbin/bluetooth/sdpd/profile.h head/usr.sbin/bluetooth/sdpd/provider.c head/usr.sbin/bluetooth/sdpd/provider.h head/usr.sbin/bluetooth/sdpd/sar.c head/usr.sbin/bluetooth/sdpd/scr.c head/usr.sbin/bluetooth/sdpd/sd.c head/usr.sbin/bluetooth/sdpd/server.c head/usr.sbin/bluetooth/sdpd/server.h head/usr.sbin/bluetooth/sdpd/sp.c head/usr.sbin/bluetooth/sdpd/srr.c head/usr.sbin/bluetooth/sdpd/ssar.c head/usr.sbin/bluetooth/sdpd/ssr.c head/usr.sbin/bluetooth/sdpd/sur.c head/usr.sbin/bluetooth/sdpd/uuid-private.h head/usr.sbin/bluetooth/sdpd/uuid.c head/usr.sbin/boot0cfg/boot0cfg.c head/usr.sbin/bsdinstall/distextract/distextract.c head/usr.sbin/bsdinstall/distfetch/distfetch.c head/usr.sbin/bsdinstall/partedit/diskeditor.c head/usr.sbin/bsdinstall/partedit/diskeditor.h head/usr.sbin/bsdinstall/partedit/gpart_ops.c head/usr.sbin/bsdinstall/partedit/part_wizard.c head/usr.sbin/bsdinstall/partedit/partedit.c head/usr.sbin/bsdinstall/partedit/partedit.h head/usr.sbin/bsdinstall/partedit/partedit_generic.c head/usr.sbin/bsdinstall/partedit/partedit_powerpc.c head/usr.sbin/bsdinstall/partedit/partedit_sparc64.c head/usr.sbin/bsdinstall/partedit/partedit_x86.c head/usr.sbin/bsdinstall/partedit/scripted.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_pf.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c head/usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c head/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c head/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c head/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h head/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c head/usr.sbin/btxld/btx.h head/usr.sbin/btxld/btxld.c head/usr.sbin/btxld/elfh.c head/usr.sbin/btxld/elfh.h head/usr.sbin/chkgrp/chkgrp.c head/usr.sbin/ckdist/ckdist.c head/usr.sbin/clear_locks/clear_locks.c head/usr.sbin/cpucontrol/amd.c head/usr.sbin/cpucontrol/amd.h head/usr.sbin/cpucontrol/cpucontrol.c head/usr.sbin/cpucontrol/cpucontrol.h head/usr.sbin/cpucontrol/intel.c head/usr.sbin/cpucontrol/intel.h head/usr.sbin/cpucontrol/via.c head/usr.sbin/cpucontrol/via.h head/usr.sbin/crunch/crunchide/exec_elf32.c head/usr.sbin/crunch/crunchide/exec_elf64.c head/usr.sbin/crunch/crunchide/extern.h head/usr.sbin/ctladm/ctladm.h head/usr.sbin/ctladm/util.c head/usr.sbin/ctld/ctld.c head/usr.sbin/ctld/ctld.h head/usr.sbin/ctld/discovery.c head/usr.sbin/ctld/kernel.c head/usr.sbin/ctld/keys.c head/usr.sbin/ctld/log.c head/usr.sbin/ctld/login.c head/usr.sbin/ctld/parse.y head/usr.sbin/ctld/pdu.c head/usr.sbin/ctld/token.l head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c head/usr.sbin/daemon/daemon.c head/usr.sbin/devinfo/devinfo.c head/usr.sbin/digictl/digictl.c head/usr.sbin/diskinfo/diskinfo.c head/usr.sbin/dumpcis/cardinfo.h head/usr.sbin/dumpcis/cis.h head/usr.sbin/dumpcis/main.c head/usr.sbin/dumpcis/printcis.c head/usr.sbin/dumpcis/readcis.c head/usr.sbin/dumpcis/readcis.h head/usr.sbin/eeprom/eeprom.c head/usr.sbin/eeprom/ofw_options.c head/usr.sbin/eeprom/ofw_options.h head/usr.sbin/etcupdate/etcupdate.sh head/usr.sbin/extattr/rmextattr.c head/usr.sbin/extattrctl/extattrctl.c head/usr.sbin/fdcontrol/fdcontrol.c head/usr.sbin/fdformat/fdformat.c head/usr.sbin/fdread/fdread.c head/usr.sbin/fdread/fdutil.c head/usr.sbin/fdread/fdutil.h head/usr.sbin/fifolog/fifolog_create/fifolog_create.c head/usr.sbin/fifolog/fifolog_reader/fifolog_reader.c head/usr.sbin/fifolog/fifolog_writer/fifolog_writer.c head/usr.sbin/fifolog/lib/fifolog.h head/usr.sbin/fifolog/lib/fifolog_create.c head/usr.sbin/fifolog/lib/fifolog_int.c head/usr.sbin/fifolog/lib/fifolog_reader.c head/usr.sbin/fifolog/lib/fifolog_write.h head/usr.sbin/fifolog/lib/fifolog_write_poll.c head/usr.sbin/fifolog/lib/libfifolog.h head/usr.sbin/fifolog/lib/libfifolog_int.h head/usr.sbin/fifolog/lib/miniobj.h head/usr.sbin/flowctl/flowctl.c head/usr.sbin/freebsd-update/freebsd-update.sh head/usr.sbin/getfmac/getfmac.c head/usr.sbin/getpmac/getpmac.c head/usr.sbin/gpioctl/gpioctl.c head/usr.sbin/gssd/gssd.c head/usr.sbin/gstat/gstat.c head/usr.sbin/i2c/i2c.c head/usr.sbin/inetd/builtins.c head/usr.sbin/iscsid/discovery.c head/usr.sbin/iscsid/iscsid.c head/usr.sbin/iscsid/iscsid.h head/usr.sbin/iscsid/keys.c head/usr.sbin/iscsid/log.c head/usr.sbin/iscsid/login.c head/usr.sbin/iscsid/pdu.c head/usr.sbin/jail/command.c head/usr.sbin/jail/config.c head/usr.sbin/jail/jail.c head/usr.sbin/jail/jaillex.l head/usr.sbin/jail/jailp.h head/usr.sbin/jail/jailparse.y head/usr.sbin/jail/state.c head/usr.sbin/jexec/jexec.c head/usr.sbin/jls/jls.c head/usr.sbin/kbdcontrol/kbdcontrol.c head/usr.sbin/kbdcontrol/lex.h head/usr.sbin/kbdcontrol/lex.l head/usr.sbin/kbdmap/kbdmap.c head/usr.sbin/kbdmap/kbdmap.h head/usr.sbin/kgzip/aouthdr.c head/usr.sbin/kgzip/aouthdr.h head/usr.sbin/kgzip/elfhdr.c head/usr.sbin/kgzip/elfhdr.h head/usr.sbin/kgzip/kgz.h head/usr.sbin/kgzip/kgzcmp.c head/usr.sbin/kgzip/kgzip.c head/usr.sbin/kgzip/kgzip.h head/usr.sbin/kgzip/kgzld.c head/usr.sbin/kgzip/xio.c head/usr.sbin/kldxref/ef_amd64.c head/usr.sbin/kldxref/ef_i386.c head/usr.sbin/kldxref/ef_nop.c head/usr.sbin/kldxref/ef_powerpc.c head/usr.sbin/kldxref/ef_sparc64.c head/usr.sbin/lastlogin/lastlogin.c head/usr.sbin/lpr/chkprintcap/skimprintcap.c head/usr.sbin/lpr/chkprintcap/skimprintcap.h head/usr.sbin/lpr/common_source/ctlinfo.c head/usr.sbin/lpr/common_source/ctlinfo.h head/usr.sbin/lpr/common_source/lp.cdefs.h head/usr.sbin/lpr/common_source/matchjobs.c head/usr.sbin/lpr/common_source/matchjobs.h head/usr.sbin/lpr/filters.ru/koi2855/koi2855.c head/usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c head/usr.sbin/lpr/lp/lp.sh head/usr.sbin/lpr/lpc/movejobs.c head/usr.sbin/lptcontrol/lptcontrol.c head/usr.sbin/mailwrapper/mailwrapper.c head/usr.sbin/mailwrapper/pathnames.h head/usr.sbin/makefs/cd9660.c head/usr.sbin/makefs/cd9660.h head/usr.sbin/makefs/cd9660/cd9660_archimedes.c head/usr.sbin/makefs/cd9660/cd9660_archimedes.h head/usr.sbin/makefs/cd9660/cd9660_conversion.c head/usr.sbin/makefs/cd9660/cd9660_debug.c head/usr.sbin/makefs/cd9660/cd9660_eltorito.c head/usr.sbin/makefs/cd9660/cd9660_eltorito.h head/usr.sbin/makefs/cd9660/cd9660_strings.c head/usr.sbin/makefs/cd9660/cd9660_write.c head/usr.sbin/makefs/cd9660/iso9660_rrip.c head/usr.sbin/makefs/cd9660/iso9660_rrip.h head/usr.sbin/makefs/ffs.h head/usr.sbin/makefs/ffs/buf.c head/usr.sbin/makefs/ffs/buf.h head/usr.sbin/makefs/ffs/ffs_bswap.c head/usr.sbin/makefs/ffs/newfs_extern.h head/usr.sbin/makefs/ffs/ufs_bswap.h head/usr.sbin/makefs/makefs.c head/usr.sbin/makefs/makefs.h head/usr.sbin/makefs/mtree.c head/usr.sbin/makefs/walk.c head/usr.sbin/memcontrol/memcontrol.c head/usr.sbin/mfiutil/mfi_bbu.c head/usr.sbin/mfiutil/mfi_cmd.c head/usr.sbin/mfiutil/mfi_config.c head/usr.sbin/mfiutil/mfi_drive.c head/usr.sbin/mfiutil/mfi_evt.c head/usr.sbin/mfiutil/mfi_flash.c head/usr.sbin/mfiutil/mfi_foreign.c head/usr.sbin/mfiutil/mfi_patrol.c head/usr.sbin/mfiutil/mfi_properties.c head/usr.sbin/mfiutil/mfi_show.c head/usr.sbin/mfiutil/mfi_volume.c head/usr.sbin/mfiutil/mfiutil.c head/usr.sbin/mfiutil/mfiutil.h head/usr.sbin/mlxcontrol/command.c head/usr.sbin/mlxcontrol/config.c head/usr.sbin/mlxcontrol/interface.c head/usr.sbin/mlxcontrol/mlxcontrol.h head/usr.sbin/mlxcontrol/util.c head/usr.sbin/moused/moused.c head/usr.sbin/mptable/mptable.c head/usr.sbin/mtest/mtest.c head/usr.sbin/nandsim/nandsim.c head/usr.sbin/nandsim/nandsim_cfgparse.c head/usr.sbin/nandsim/nandsim_cfgparse.h head/usr.sbin/nandtool/nand_erase.c head/usr.sbin/nandtool/nand_info.c head/usr.sbin/nandtool/nand_read.c head/usr.sbin/nandtool/nand_readoob.c head/usr.sbin/nandtool/nand_write.c head/usr.sbin/nandtool/nand_writeoob.c head/usr.sbin/nandtool/nandtool.c head/usr.sbin/nandtool/nandtool.h head/usr.sbin/nandtool/usage.h head/usr.sbin/newsyslog/extern.h head/usr.sbin/pciconf/err.c head/usr.sbin/pkg/config.c head/usr.sbin/pkg/config.h head/usr.sbin/pkg/dns_utils.c head/usr.sbin/pkg/dns_utils.h head/usr.sbin/pkg/pkg.c head/usr.sbin/pmcannotate/pmcannotate.c head/usr.sbin/pmccontrol/pmccontrol.c head/usr.sbin/pmcstat/pmcpl_annotate.c head/usr.sbin/pmcstat/pmcpl_annotate.h head/usr.sbin/pmcstat/pmcpl_annotate_cg.c head/usr.sbin/pmcstat/pmcpl_annotate_cg.h head/usr.sbin/pmcstat/pmcpl_callgraph.c head/usr.sbin/pmcstat/pmcpl_callgraph.h head/usr.sbin/pmcstat/pmcpl_calltree.c head/usr.sbin/pmcstat/pmcpl_calltree.h head/usr.sbin/pmcstat/pmcpl_gprof.c head/usr.sbin/pmcstat/pmcpl_gprof.h head/usr.sbin/pmcstat/pmcstat.c head/usr.sbin/pmcstat/pmcstat.h head/usr.sbin/pmcstat/pmcstat_log.c head/usr.sbin/pmcstat/pmcstat_log.h head/usr.sbin/pmcstat/pmcstat_top.h head/usr.sbin/portsnap/make_index/make_index.c head/usr.sbin/portsnap/phttpget/phttpget.c head/usr.sbin/portsnap/portsnap/portsnap.sh head/usr.sbin/powerd/powerd.c head/usr.sbin/ppp/acf.c head/usr.sbin/ppp/acf.h head/usr.sbin/ppp/arp.c head/usr.sbin/ppp/arp.h head/usr.sbin/ppp/async.c head/usr.sbin/ppp/async.h head/usr.sbin/ppp/auth.c head/usr.sbin/ppp/auth.h head/usr.sbin/ppp/bundle.c head/usr.sbin/ppp/bundle.h head/usr.sbin/ppp/cbcp.c head/usr.sbin/ppp/cbcp.h head/usr.sbin/ppp/ccp.c head/usr.sbin/ppp/ccp.h head/usr.sbin/ppp/chap.c head/usr.sbin/ppp/chap.h head/usr.sbin/ppp/chap_ms.c head/usr.sbin/ppp/chap_ms.h head/usr.sbin/ppp/chat.c head/usr.sbin/ppp/chat.h head/usr.sbin/ppp/command.c head/usr.sbin/ppp/command.h head/usr.sbin/ppp/datalink.c head/usr.sbin/ppp/datalink.h head/usr.sbin/ppp/deflate.c head/usr.sbin/ppp/deflate.h head/usr.sbin/ppp/defs.c head/usr.sbin/ppp/defs.h head/usr.sbin/ppp/descriptor.h head/usr.sbin/ppp/ether.c head/usr.sbin/ppp/ether.h head/usr.sbin/ppp/exec.c head/usr.sbin/ppp/exec.h head/usr.sbin/ppp/filter.c head/usr.sbin/ppp/filter.h head/usr.sbin/ppp/fsm.c head/usr.sbin/ppp/fsm.h head/usr.sbin/ppp/hdlc.c head/usr.sbin/ppp/hdlc.h head/usr.sbin/ppp/i4b.h head/usr.sbin/ppp/id.c head/usr.sbin/ppp/id.h head/usr.sbin/ppp/iface.c head/usr.sbin/ppp/iface.h head/usr.sbin/ppp/ip.c head/usr.sbin/ppp/ip.h head/usr.sbin/ppp/ipcp.c head/usr.sbin/ppp/ipcp.h head/usr.sbin/ppp/iplist.c head/usr.sbin/ppp/iplist.h head/usr.sbin/ppp/ipv6cp.c head/usr.sbin/ppp/ipv6cp.h head/usr.sbin/ppp/layer.h head/usr.sbin/ppp/lcp.c head/usr.sbin/ppp/lcp.h head/usr.sbin/ppp/link.c head/usr.sbin/ppp/link.h head/usr.sbin/ppp/log.c head/usr.sbin/ppp/log.h head/usr.sbin/ppp/lqr.c head/usr.sbin/ppp/lqr.h head/usr.sbin/ppp/main.c head/usr.sbin/ppp/main.h head/usr.sbin/ppp/mbuf.c head/usr.sbin/ppp/mbuf.h head/usr.sbin/ppp/mp.c head/usr.sbin/ppp/mp.h head/usr.sbin/ppp/mppe.c head/usr.sbin/ppp/mppe.h head/usr.sbin/ppp/nat_cmd.c head/usr.sbin/ppp/nat_cmd.h head/usr.sbin/ppp/ncp.c head/usr.sbin/ppp/ncp.h head/usr.sbin/ppp/ncpaddr.c head/usr.sbin/ppp/ncpaddr.h head/usr.sbin/ppp/netgraph.c head/usr.sbin/ppp/netgraph.h head/usr.sbin/ppp/pap.c head/usr.sbin/ppp/pap.h head/usr.sbin/ppp/pred.c head/usr.sbin/ppp/pred.h head/usr.sbin/ppp/probe.c head/usr.sbin/ppp/probe.h head/usr.sbin/ppp/prompt.c head/usr.sbin/ppp/prompt.h head/usr.sbin/ppp/proto.c head/usr.sbin/ppp/proto.h head/usr.sbin/ppp/radius.c head/usr.sbin/ppp/radius.h head/usr.sbin/ppp/route.c head/usr.sbin/ppp/route.h head/usr.sbin/ppp/server.c head/usr.sbin/ppp/server.h head/usr.sbin/ppp/sig.c head/usr.sbin/ppp/sig.h head/usr.sbin/ppp/sync.c head/usr.sbin/ppp/sync.h head/usr.sbin/ppp/systems.c head/usr.sbin/ppp/systems.h head/usr.sbin/ppp/tcp.c head/usr.sbin/ppp/tcp.h head/usr.sbin/ppp/tcpmss.c head/usr.sbin/ppp/tcpmss.h head/usr.sbin/ppp/throughput.c head/usr.sbin/ppp/throughput.h head/usr.sbin/ppp/timer.c head/usr.sbin/ppp/timer.h head/usr.sbin/ppp/tty.c head/usr.sbin/ppp/tty.h head/usr.sbin/ppp/tun.c head/usr.sbin/ppp/tun.h head/usr.sbin/ppp/ua.h head/usr.sbin/ppp/udp.c head/usr.sbin/ppp/udp.h head/usr.sbin/ppp/vjcomp.c head/usr.sbin/ppp/vjcomp.h head/usr.sbin/pppctl/pppctl.c head/usr.sbin/pw/bitmap.c head/usr.sbin/pw/bitmap.h head/usr.sbin/pw/cpdir.c head/usr.sbin/pw/grupd.c head/usr.sbin/pw/psdate.c head/usr.sbin/pw/psdate.h head/usr.sbin/pw/pw.c head/usr.sbin/pw/pw.h head/usr.sbin/pw/pw_conf.c head/usr.sbin/pw/pw_group.c head/usr.sbin/pw/pw_log.c head/usr.sbin/pw/pw_nis.c head/usr.sbin/pw/pw_user.c head/usr.sbin/pw/pw_vpw.c head/usr.sbin/pw/pwupd.c head/usr.sbin/pw/pwupd.h head/usr.sbin/pw/rm_r.c head/usr.sbin/quot/quot.c head/usr.sbin/rarpd/rarpd.c head/usr.sbin/rpc.lockd/kern.c head/usr.sbin/rpc.umntall/mounttab.c head/usr.sbin/rpc.umntall/mounttab.h head/usr.sbin/rpc.umntall/rpc.umntall.c head/usr.sbin/rpcbind/util.c head/usr.sbin/rtadvctl/rtadvctl.c head/usr.sbin/rtadvd/advcap.h head/usr.sbin/rtadvd/control.c head/usr.sbin/rtadvd/control.h head/usr.sbin/rtadvd/control_client.c head/usr.sbin/rtadvd/control_client.h head/usr.sbin/rtadvd/control_server.c head/usr.sbin/rtadvd/control_server.h head/usr.sbin/rtprio/rtprio.c head/usr.sbin/sa/db.c head/usr.sbin/sa/extern.h head/usr.sbin/sa/main.c head/usr.sbin/sa/pathnames.h head/usr.sbin/sa/pdb.c head/usr.sbin/sa/usrdb.c head/usr.sbin/service/service.sh head/usr.sbin/services_mkdb/extern.h head/usr.sbin/services_mkdb/services_mkdb.c head/usr.sbin/services_mkdb/uniq.c head/usr.sbin/setfmac/setfmac.c head/usr.sbin/setpmac/setpmac.c head/usr.sbin/smbmsg/pathnames.h head/usr.sbin/smbmsg/smbmsg.c head/usr.sbin/snapinfo/snapinfo.c head/usr.sbin/spkrtest/spkrtest.sh head/usr.sbin/spray/spray.c head/usr.sbin/traceroute/findsaddr-udp.c head/usr.sbin/uathload/uathload.c head/usr.sbin/ugidfw/ugidfw.c head/usr.sbin/uhsoctl/uhsoctl.c head/usr.sbin/unbound/local-setup/local-unbound-setup.sh head/usr.sbin/usbconfig/dump.c head/usr.sbin/usbconfig/dump.h head/usr.sbin/usbconfig/usbconfig.c head/usr.sbin/usbdump/usbdump.c head/usr.sbin/utx/utx.c head/usr.sbin/vidcontrol/decode.c head/usr.sbin/vidcontrol/vidcontrol.c head/usr.sbin/wake/wake.c head/usr.sbin/watch/watch.c head/usr.sbin/watchdogd/watchdogd.c head/usr.sbin/wlandebug/wlandebug.c head/usr.sbin/ypbind/ypbind.c head/usr.sbin/yppoll/yppoll.c head/usr.sbin/ypset/ypset.c Modified: head/bin/pkill/pkill.c ============================================================================== --- head/bin/pkill/pkill.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/bin/pkill/pkill.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: pkill.c,v 1.16 2005/10/10 22:13:20 kleink Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 2002 The NetBSD Foundation, Inc. * Copyright (c) 2005 Pawel Jakub Dawidek * All rights reserved. Modified: head/etc/pam.d/convert.pl ============================================================================== --- head/etc/pam.d/convert.pl Mon Nov 27 15:28:26 2017 (r326275) +++ head/etc/pam.d/convert.pl Mon Nov 27 15:37:16 2017 (r326276) @@ -1,5 +1,7 @@ #!/usr/bin/perl -w #- +# SPDX-License-Identifier: BSD-3-Clause +# # Copyright (c) 2001,2002 Networks Associates Technologies, Inc. # All rights reserved. # Modified: head/kerberos5/lib/libgssapi_krb5/gss_krb5.c ============================================================================== --- head/kerberos5/lib/libgssapi_krb5/gss_krb5.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/kerberos5/lib/libgssapi_krb5/gss_krb5.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/kerberos5/lib/libgssapi_krb5/pname_to_uid.c ============================================================================== --- head/kerberos5/lib/libgssapi_krb5/pname_to_uid.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/kerberos5/lib/libgssapi_krb5/pname_to_uid.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/kerberos5/lib/libgssapi_krb5/prefix.c ============================================================================== --- head/kerberos5/lib/libgssapi_krb5/prefix.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/kerberos5/lib/libgssapi_krb5/prefix.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/kerberos5/lib/libgssapi_ntlm/prefix.c ============================================================================== --- head/kerberos5/lib/libgssapi_ntlm/prefix.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/kerberos5/lib/libgssapi_ntlm/prefix.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/kerberos5/lib/libgssapi_spnego/freebsd_compat.c ============================================================================== --- head/kerberos5/lib/libgssapi_spnego/freebsd_compat.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/kerberos5/lib/libgssapi_spnego/freebsd_compat.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Doug Rabson * All rights reserved. * Modified: head/sbin/adjkerntz/adjkerntz.c ============================================================================== --- head/sbin/adjkerntz/adjkerntz.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/adjkerntz/adjkerntz.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1993-1998 by Andrey A. Chernov, Moscow, Russia. * All rights reserved. * Modified: head/sbin/adjkerntz/pathnames.h ============================================================================== --- head/sbin/adjkerntz/pathnames.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/adjkerntz/pathnames.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1993 by Andrew A. Chernov, Moscow, Russia. * All rights reserved. * @@ -22,6 +24,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #include Modified: head/sbin/camcontrol/camcontrol.h ============================================================================== --- head/sbin/camcontrol/camcontrol.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/camcontrol.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1998 Kenneth D. Merry. * All rights reserved. * Modified: head/sbin/camcontrol/fwdownload.c ============================================================================== --- head/sbin/camcontrol/fwdownload.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/fwdownload.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Sandvine Incorporated. All rights reserved. * Copyright (c) 2002-2011 Andre Albsmeier * All rights reserved. Modified: head/sbin/camcontrol/modeedit.c ============================================================================== --- head/sbin/camcontrol/modeedit.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/modeedit.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Kelly Yancey * Derived from work done by Julian Elischer , 1993, and Peter Dufault , 1994. Modified: head/sbin/camcontrol/progress.c ============================================================================== --- head/sbin/camcontrol/progress.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/progress.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: progressbar.c,v 1.21 2009/04/12 10:18:52 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1997-2009 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sbin/camcontrol/progress.h ============================================================================== --- head/sbin/camcontrol/progress.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/progress.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: progressbar.c,v 1.21 2009/04/12 10:18:52 lukem Exp $ */ /*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * * Copyright (c) 1997-2012 The NetBSD Foundation, Inc. * All rights reserved. * Modified: head/sbin/camcontrol/util.c ============================================================================== --- head/sbin/camcontrol/util.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/camcontrol/util.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Written By Julian ELischer * Copyright julian Elischer 1993. * Permission is granted to use or redistribute this file in any way as long Modified: head/sbin/ccdconfig/ccdconfig.c ============================================================================== --- head/sbin/ccdconfig/ccdconfig.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ccdconfig/ccdconfig.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 2003 Poul-Henning Kamp * Copyright (c) 1995 Jason R. Thorpe. * All rights reserved. Modified: head/sbin/ccdconfig/pathnames.h ============================================================================== --- head/sbin/ccdconfig/pathnames.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ccdconfig/pathnames.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: pathnames.h,v 1.1 1995/08/17 16:37:20 thorpej Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-4-Clause + * * Copyright (c) 1995 Jason R. Thorpe. * All rights reserved. * Modified: head/sbin/comcontrol/comcontrol.c ============================================================================== --- head/sbin/comcontrol/comcontrol.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/comcontrol/comcontrol.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1992 Christopher G. Demetriou * All rights reserved. * Modified: head/sbin/conscontrol/conscontrol.c ============================================================================== --- head/sbin/conscontrol/conscontrol.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/conscontrol/conscontrol.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001 Jonathan Lemon * All rights reserved. * Modified: head/sbin/ddb/ddb.c ============================================================================== --- head/sbin/ddb/ddb.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ddb/ddb.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sbin/ddb/ddb.h ============================================================================== --- head/sbin/ddb/ddb.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ddb/ddb.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sbin/ddb/ddb_capture.c ============================================================================== --- head/sbin/ddb/ddb_capture.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ddb/ddb_capture.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Robert N. M. Watson * All rights reserved. * Modified: head/sbin/ddb/ddb_script.c ============================================================================== --- head/sbin/ddb/ddb_script.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ddb/ddb_script.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007 Robert N. M. Watson * All rights reserved. * Modified: head/sbin/devd/devd.h ============================================================================== --- head/sbin/devd/devd.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devd/devd.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /*- * DEVD (Device action daemon) * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 M. Warner Losh . * All rights reserved. * Modified: head/sbin/devd/devd.hh ============================================================================== --- head/sbin/devd/devd.hh Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devd/devd.hh Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002-2003 M. Warner Losh. * All rights reserved. * Modified: head/sbin/devd/parse.y ============================================================================== --- head/sbin/devd/parse.y Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devd/parse.y Mon Nov 27 15:37:16 2017 (r326276) @@ -2,6 +2,8 @@ /*- * DEVD (Device action daemon) * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 M. Warner Losh . * All rights reserved. * Modified: head/sbin/devd/token.l ============================================================================== --- head/sbin/devd/token.l Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devd/token.l Mon Nov 27 15:37:16 2017 (r326276) @@ -2,6 +2,8 @@ /*- * DEVD (Device action daemon) * + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 M. Warner Losh . * All rights reserved. * Modified: head/sbin/devfs/devfs.c ============================================================================== --- head/sbin/devfs/devfs.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devfs/devfs.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2001, 2002 Dima Dorfman. * All rights reserved. * Modified: head/sbin/devfs/extern.h ============================================================================== --- head/sbin/devfs/extern.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devfs/extern.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Dima Dorfman. * All rights reserved. * Modified: head/sbin/devfs/rule.c ============================================================================== --- head/sbin/devfs/rule.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/devfs/rule.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Dima Dorfman. * All rights reserved. * Modified: head/sbin/etherswitchcfg/etherswitchcfg.c ============================================================================== --- head/sbin/etherswitchcfg/etherswitchcfg.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/etherswitchcfg/etherswitchcfg.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011-2012 Stefan Bethke. * All rights reserved. * Modified: head/sbin/fsck/fsutil.h ============================================================================== --- head/sbin/fsck/fsutil.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck/fsutil.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: fsutil.h,v 1.114 2009/10/21 01:07:46 snj Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (c) 1996 Christos Zoulas. All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/sbin/fsck_ffs/ea.c ============================================================================== --- head/sbin/fsck_ffs/ea.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_ffs/ea.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sbin/fsck_ffs/suj.c ============================================================================== --- head/sbin/fsck_ffs/suj.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_ffs/suj.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright 2009, 2010 Jeffrey W. Roberson * All rights reserved. * Modified: head/sbin/fsck_msdosfs/boot.c ============================================================================== --- head/sbin/fsck_msdosfs/boot.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/boot.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Modified: head/sbin/fsck_msdosfs/check.c ============================================================================== --- head/sbin/fsck_msdosfs/check.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/check.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Modified: head/sbin/fsck_msdosfs/dir.c ============================================================================== --- head/sbin/fsck_msdosfs/dir.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/dir.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Some structure declaration borrowed from Paul Popelka Modified: head/sbin/fsck_msdosfs/dosfs.h ============================================================================== --- head/sbin/fsck_msdosfs/dosfs.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/dosfs.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Some structure declaration borrowed from Paul Popelka Modified: head/sbin/fsck_msdosfs/ext.h ============================================================================== --- head/sbin/fsck_msdosfs/ext.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/ext.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Modified: head/sbin/fsck_msdosfs/fat.c ============================================================================== --- head/sbin/fsck_msdosfs/fat.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/fat.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Modified: head/sbin/fsck_msdosfs/main.c ============================================================================== --- head/sbin/fsck_msdosfs/main.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsck_msdosfs/main.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause + * * Copyright (C) 1995 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * Modified: head/sbin/fsdb/fsdb.c ============================================================================== --- head/sbin/fsdb/fsdb.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsdb/fsdb.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: fsdb.c,v 1.2 1995/10/08 23:18:10 thorpej Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 John T. Kohl * All rights reserved. * Modified: head/sbin/fsdb/fsdb.h ============================================================================== --- head/sbin/fsdb/fsdb.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsdb/fsdb.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: fsdb.h,v 1.2 1995/10/08 23:18:11 thorpej Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 John T. Kohl * All rights reserved. * Modified: head/sbin/fsdb/fsdbutil.c ============================================================================== --- head/sbin/fsdb/fsdbutil.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsdb/fsdbutil.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $NetBSD: fsdbutil.c,v 1.2 1995/10/08 23:18:12 thorpej Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1995 John T. Kohl * All rights reserved. * Modified: head/sbin/fsirand/fsirand.c ============================================================================== --- head/sbin/fsirand/fsirand.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/fsirand/fsirand.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,6 +1,8 @@ /* $OpenBSD: fsirand.c,v 1.9 1997/02/28 00:46:33 millert Exp $ */ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 1997 Todd C. Miller * All rights reserved. * Modified: head/sbin/gbde/gbde.c ============================================================================== --- head/sbin/gbde/gbde.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/gbde/gbde.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2002 Poul-Henning Kamp * Copyright (c) 2002 Networks Associates Technology, Inc. * All rights reserved. Modified: head/sbin/geom/class/cache/geom_cache.c ============================================================================== --- head/sbin/geom/class/cache/geom_cache.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/cache/geom_cache.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Ruslan Ermilov * All rights reserved. * Modified: head/sbin/geom/class/concat/geom_concat.c ============================================================================== --- head/sbin/geom/class/concat/geom_concat.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/concat/geom_concat.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/eli/geom_eli.c ============================================================================== --- head/sbin/geom/class/eli/geom_eli.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/eli/geom_eli.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/journal/geom_journal.c ============================================================================== --- head/sbin/geom/class/journal/geom_journal.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/journal/geom_journal.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/journal/geom_journal.h ============================================================================== --- head/sbin/geom/class/journal/geom_journal.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/journal/geom_journal.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/journal/geom_journal_ufs.c ============================================================================== --- head/sbin/geom/class/journal/geom_journal_ufs.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/journal/geom_journal_ufs.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/label/geom_label.c ============================================================================== --- head/sbin/geom/class/label/geom_label.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/label/geom_label.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/mirror/geom_mirror.c ============================================================================== --- head/sbin/geom/class/mirror/geom_mirror.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/mirror/geom_mirror.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/mountver/geom_mountver.c ============================================================================== --- head/sbin/geom/class/mountver/geom_mountver.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/mountver/geom_mountver.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Edward Tomasz Napierala * All rights reserved. * Modified: head/sbin/geom/class/multipath/geom_multipath.c ============================================================================== --- head/sbin/geom/class/multipath/geom_multipath.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/multipath/geom_multipath.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2006 Mathew Jacob * All rights reserved. * Modified: head/sbin/geom/class/nop/geom_nop.c ============================================================================== --- head/sbin/geom/class/nop/geom_nop.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/nop/geom_nop.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2006 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/part/geom_part.c ============================================================================== --- head/sbin/geom/class/part/geom_part.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/part/geom_part.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2007, 2008 Marcel Moolenaar * All rights reserved. * Modified: head/sbin/geom/class/raid/geom_raid.c ============================================================================== --- head/sbin/geom/class/raid/geom_raid.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/raid/geom_raid.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Alexander Motin * All rights reserved. * Modified: head/sbin/geom/class/raid3/geom_raid3.c ============================================================================== --- head/sbin/geom/class/raid3/geom_raid3.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/raid3/geom_raid3.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/sched/geom_sched.c ============================================================================== --- head/sbin/geom/class/sched/geom_sched.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/sched/geom_sched.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 Fabio Checconi * Copyright (c) 2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. Modified: head/sbin/geom/class/shsec/geom_shsec.c ============================================================================== --- head/sbin/geom/class/shsec/geom_shsec.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/shsec/geom_shsec.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/stripe/geom_stripe.c ============================================================================== --- head/sbin/geom/class/stripe/geom_stripe.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/stripe/geom_stripe.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2005 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/class/virstor/geom_virstor.c ============================================================================== --- head/sbin/geom/class/virstor/geom_virstor.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/class/virstor/geom_virstor.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Ivan Voras * * Redistribution and use in source and binary forms, with or without Modified: head/sbin/geom/core/geom.c ============================================================================== --- head/sbin/geom/core/geom.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/core/geom.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/core/geom.h ============================================================================== --- head/sbin/geom/core/geom.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/core/geom.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/misc/subr.c ============================================================================== --- head/sbin/geom/misc/subr.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/misc/subr.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/geom/misc/subr.h ============================================================================== --- head/sbin/geom/misc/subr.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/geom/misc/subr.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004-2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/ggate/ggatec/ggatec.c ============================================================================== --- head/sbin/ggate/ggatec/ggatec.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ggate/ggatec/ggatec.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/ggate/ggated/ggated.c ============================================================================== --- head/sbin/ggate/ggated/ggated.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ggate/ggated/ggated.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/ggate/ggatel/ggatel.c ============================================================================== --- head/sbin/ggate/ggatel/ggatel.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ggate/ggatel/ggatel.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/ggate/shared/ggate.c ============================================================================== --- head/sbin/ggate/shared/ggate.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ggate/shared/ggate.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/ggate/shared/ggate.h ============================================================================== --- head/sbin/ggate/shared/ggate.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/ggate/shared/ggate.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/gvinum/gvinum.c ============================================================================== --- head/sbin/gvinum/gvinum.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/gvinum/gvinum.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2004 Lukas Ertl * Copyright (c) 2005 Chris Jones * Copyright (c) 2007 Ulf Lilleengen Modified: head/sbin/hastctl/hastctl.c ============================================================================== --- head/sbin/hastctl/hastctl.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastctl/hastctl.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/activemap.c ============================================================================== --- head/sbin/hastd/activemap.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/activemap.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/activemap.h ============================================================================== --- head/sbin/hastd/activemap.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/activemap.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/control.c ============================================================================== --- head/sbin/hastd/control.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/control.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/control.h ============================================================================== --- head/sbin/hastd/control.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/control.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/ebuf.c ============================================================================== --- head/sbin/hastd/ebuf.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/ebuf.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/ebuf.h ============================================================================== --- head/sbin/hastd/ebuf.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/ebuf.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/event.c ============================================================================== --- head/sbin/hastd/event.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/event.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/event.h ============================================================================== --- head/sbin/hastd/event.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/event.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/hast.h ============================================================================== --- head/sbin/hastd/hast.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/hast_checksum.c ============================================================================== --- head/sbin/hastd/hast_checksum.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_checksum.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/hast_checksum.h ============================================================================== --- head/sbin/hastd/hast_checksum.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_checksum.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/hast_compression.c ============================================================================== --- head/sbin/hastd/hast_compression.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_compression.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/hast_compression.h ============================================================================== --- head/sbin/hastd/hast_compression.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_compression.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. * Modified: head/sbin/hastd/hast_proto.c ============================================================================== --- head/sbin/hastd/hast_proto.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_proto.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/hast_proto.h ============================================================================== --- head/sbin/hastd/hast_proto.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hast_proto.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/hastd.c ============================================================================== --- head/sbin/hastd/hastd.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hastd.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2010-2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/hastd.h ============================================================================== --- head/sbin/hastd/hastd.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hastd.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/hooks.c ============================================================================== --- head/sbin/hastd/hooks.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hooks.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/hooks.h ============================================================================== --- head/sbin/hastd/hooks.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/hooks.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/lzf.c ============================================================================== --- head/sbin/hastd/lzf.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/lzf.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2008 Marc Alexander Lehmann * * Redistribution and use in source and binary forms, with or without modifica- Modified: head/sbin/hastd/lzf.h ============================================================================== --- head/sbin/hastd/lzf.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/lzf.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000-2008 Marc Alexander Lehmann * * Redistribution and use in source and binary forms, with or without modifica- Modified: head/sbin/hastd/metadata.c ============================================================================== --- head/sbin/hastd/metadata.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/metadata.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/metadata.h ============================================================================== --- head/sbin/hastd/metadata.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/metadata.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/nv.c ============================================================================== --- head/sbin/hastd/nv.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/nv.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/nv.h ============================================================================== --- head/sbin/hastd/nv.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/nv.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * All rights reserved. * Modified: head/sbin/hastd/parse.y ============================================================================== --- head/sbin/hastd/parse.y Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/parse.y Mon Nov 27 15:37:16 2017 (r326276) @@ -1,5 +1,7 @@ %{ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/pjdlog.c ============================================================================== --- head/sbin/hastd/pjdlog.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/pjdlog.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/pjdlog.h ============================================================================== --- head/sbin/hastd/pjdlog.h Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/pjdlog.h Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation * Copyright (c) 2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/primary.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009 The FreeBSD Foundation * Copyright (c) 2010-2011 Pawel Jakub Dawidek * All rights reserved. Modified: head/sbin/hastd/proto.c ============================================================================== --- head/sbin/hastd/proto.c Mon Nov 27 15:28:26 2017 (r326275) +++ head/sbin/hastd/proto.c Mon Nov 27 15:37:16 2017 (r326276) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2009-2010 The FreeBSD Foundation *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 15:39:12 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AED9BE5547E; Mon, 27 Nov 2017 15:39:12 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 797907809B; Mon, 27 Nov 2017 15:39:12 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFdBQi011753; Mon, 27 Nov 2017 15:39:11 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFdB47011752; Mon, 27 Nov 2017 15:39:11 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201711271539.vARFdB47011752@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Mon, 27 Nov 2017 15:39:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326278 - head/etc/rc.d X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: head/etc/rc.d X-SVN-Commit-Revision: 326278 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:39:12 -0000 Author: manu Date: Mon Nov 27 15:39:11 2017 New Revision: 326278 URL: https://svnweb.freebsd.org/changeset/base/326278 Log: growfs: Commit the changes after expanding the partition This fix the problem in arm snapshot present since at least 6 months where growfs was failing at firstboot and dropped you in a single user shell. Modified: head/etc/rc.d/growfs Modified: head/etc/rc.d/growfs ============================================================================== --- head/etc/rc.d/growfs Mon Nov 27 15:38:40 2017 (r326277) +++ head/etc/rc.d/growfs Mon Nov 27 15:39:11 2017 (r326278) @@ -90,6 +90,7 @@ growfs_start () exit 0 } }' dev="$rawdev" + gpart commit "$rootdev" growfs -y /dev/"$rootdev" } From owner-svn-src-head@freebsd.org Mon Nov 27 15:49:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63375E557F1; Mon, 27 Nov 2017 15:49:05 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 273D278644; Mon, 27 Nov 2017 15:49:05 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARFn4Qj016079; Mon, 27 Nov 2017 15:49:04 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARFn1pY016043; Mon, 27 Nov 2017 15:49:01 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271549.vARFn1pY016043@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 15:49:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326279 - in head/sys/kgssapi: . krb5 X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys/kgssapi: . krb5 X-SVN-Commit-Revision: 326279 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:49:05 -0000 Author: pfg Date: Mon Nov 27 15:49:00 2017 New Revision: 326279 URL: https://svnweb.freebsd.org/changeset/base/326279 Log: sys/kgssapi: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Modified: head/sys/kgssapi/gss_accept_sec_context.c head/sys/kgssapi/gss_acquire_cred.c head/sys/kgssapi/gss_add_oid_set_member.c head/sys/kgssapi/gss_canonicalize_name.c head/sys/kgssapi/gss_create_empty_oid_set.c head/sys/kgssapi/gss_delete_sec_context.c head/sys/kgssapi/gss_display_status.c head/sys/kgssapi/gss_export_name.c head/sys/kgssapi/gss_get_mic.c head/sys/kgssapi/gss_impl.c head/sys/kgssapi/gss_import_name.c head/sys/kgssapi/gss_init_sec_context.c head/sys/kgssapi/gss_names.c head/sys/kgssapi/gss_pname_to_uid.c head/sys/kgssapi/gss_release_buffer.c head/sys/kgssapi/gss_release_cred.c head/sys/kgssapi/gss_release_name.c head/sys/kgssapi/gss_release_oid_set.c head/sys/kgssapi/gss_set_cred_option.c head/sys/kgssapi/gss_test_oid_set_member.c head/sys/kgssapi/gss_unwrap.c head/sys/kgssapi/gss_verify_mic.c head/sys/kgssapi/gss_wrap.c head/sys/kgssapi/gss_wrap_size_limit.c head/sys/kgssapi/gssapi_impl.h head/sys/kgssapi/gssd_prot.c head/sys/kgssapi/gsstest.c head/sys/kgssapi/krb5/kcrypto.c head/sys/kgssapi/krb5/kcrypto.h head/sys/kgssapi/krb5/kcrypto_aes.c head/sys/kgssapi/krb5/kcrypto_arcfour.c head/sys/kgssapi/krb5/kcrypto_des.c head/sys/kgssapi/krb5/kcrypto_des3.c head/sys/kgssapi/krb5/krb5_mech.c Modified: head/sys/kgssapi/gss_accept_sec_context.c ============================================================================== --- head/sys/kgssapi/gss_accept_sec_context.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_accept_sec_context.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_acquire_cred.c ============================================================================== --- head/sys/kgssapi/gss_acquire_cred.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_acquire_cred.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_add_oid_set_member.c ============================================================================== --- head/sys/kgssapi/gss_add_oid_set_member.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_add_oid_set_member.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_canonicalize_name.c ============================================================================== --- head/sys/kgssapi/gss_canonicalize_name.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_canonicalize_name.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_create_empty_oid_set.c ============================================================================== --- head/sys/kgssapi/gss_create_empty_oid_set.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_create_empty_oid_set.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_delete_sec_context.c ============================================================================== --- head/sys/kgssapi/gss_delete_sec_context.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_delete_sec_context.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_display_status.c ============================================================================== --- head/sys/kgssapi/gss_display_status.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_display_status.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_export_name.c ============================================================================== --- head/sys/kgssapi/gss_export_name.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_export_name.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_get_mic.c ============================================================================== --- head/sys/kgssapi/gss_get_mic.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_get_mic.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_impl.c ============================================================================== --- head/sys/kgssapi/gss_impl.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_impl.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_import_name.c ============================================================================== --- head/sys/kgssapi/gss_import_name.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_import_name.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_init_sec_context.c ============================================================================== --- head/sys/kgssapi/gss_init_sec_context.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_init_sec_context.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_names.c ============================================================================== --- head/sys/kgssapi/gss_names.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_names.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2005 Doug Rabson * All rights reserved. * Modified: head/sys/kgssapi/gss_pname_to_uid.c ============================================================================== --- head/sys/kgssapi/gss_pname_to_uid.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_pname_to_uid.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_release_buffer.c ============================================================================== --- head/sys/kgssapi/gss_release_buffer.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_release_buffer.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_release_cred.c ============================================================================== --- head/sys/kgssapi/gss_release_cred.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_release_cred.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_release_name.c ============================================================================== --- head/sys/kgssapi/gss_release_name.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_release_name.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_release_oid_set.c ============================================================================== --- head/sys/kgssapi/gss_release_oid_set.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_release_oid_set.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_set_cred_option.c ============================================================================== --- head/sys/kgssapi/gss_set_cred_option.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_set_cred_option.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_test_oid_set_member.c ============================================================================== --- head/sys/kgssapi/gss_test_oid_set_member.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_test_oid_set_member.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_unwrap.c ============================================================================== --- head/sys/kgssapi/gss_unwrap.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_unwrap.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_verify_mic.c ============================================================================== --- head/sys/kgssapi/gss_verify_mic.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_verify_mic.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_wrap.c ============================================================================== --- head/sys/kgssapi/gss_wrap.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_wrap.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gss_wrap_size_limit.c ============================================================================== --- head/sys/kgssapi/gss_wrap_size_limit.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gss_wrap_size_limit.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gssapi_impl.h ============================================================================== --- head/sys/kgssapi/gssapi_impl.h Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gssapi_impl.h Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gssd_prot.c ============================================================================== --- head/sys/kgssapi/gssd_prot.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gssd_prot.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/gsstest.c ============================================================================== --- head/sys/kgssapi/gsstest.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/gsstest.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto.c ============================================================================== --- head/sys/kgssapi/krb5/kcrypto.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto.h ============================================================================== --- head/sys/kgssapi/krb5/kcrypto.h Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto.h Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto_aes.c ============================================================================== --- head/sys/kgssapi/krb5/kcrypto_aes.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto_aes.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto_arcfour.c ============================================================================== --- head/sys/kgssapi/krb5/kcrypto_arcfour.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto_arcfour.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto_des.c ============================================================================== --- head/sys/kgssapi/krb5/kcrypto_des.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto_des.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/kcrypto_des3.c ============================================================================== --- head/sys/kgssapi/krb5/kcrypto_des3.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/kcrypto_des3.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein Modified: head/sys/kgssapi/krb5/krb5_mech.c ============================================================================== --- head/sys/kgssapi/krb5/krb5_mech.c Mon Nov 27 15:39:11 2017 (r326278) +++ head/sys/kgssapi/krb5/krb5_mech.c Mon Nov 27 15:49:00 2017 (r326279) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: Doug Rabson * Developed with Red Inc: Alfred Perlstein From owner-svn-src-head@freebsd.org Mon Nov 27 16:19:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9F38DB867B; Mon, 27 Nov 2017 16:19:01 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 839D1796EE; Mon, 27 Nov 2017 16:19:01 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARGJ0a3028702; Mon, 27 Nov 2017 16:19:00 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARGJ0Qe028701; Mon, 27 Nov 2017 16:19:00 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201711271619.vARGJ0Qe028701@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Mon, 27 Nov 2017 16:19:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326280 - head/sys/arm64/arm64 X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/sys/arm64/arm64 X-SVN-Commit-Revision: 326280 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 16:19:01 -0000 Author: andrew Date: Mon Nov 27 16:19:00 2017 New Revision: 326280 URL: https://svnweb.freebsd.org/changeset/base/326280 Log: Set the kernel file name so the kern.bootfile sysctl is set. This allows for the creation of kernel.old when running installkernel. MFC after: 1 week Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/machdep.c Modified: head/sys/arm64/arm64/machdep.c ============================================================================== --- head/sys/arm64/arm64/machdep.c Mon Nov 27 15:49:00 2017 (r326279) +++ head/sys/arm64/arm64/machdep.c Mon Nov 27 16:19:00 2017 (r326280) @@ -1017,6 +1017,7 @@ initarm(struct arm64_bootparams *abp) { struct efi_map_header *efihdr; struct pcpu *pcpup; + char *env; #ifdef FDT struct mem_region mem_regions[FDT_MEM_REGIONS]; int mem_regions_sz; @@ -1116,6 +1117,10 @@ initarm(struct arm64_bootparams *abp) dbg_init(); kdb_init(); pan_enable(); + + env = kern_getenv("kernelname"); + if (env != NULL) + strlcpy(kernelname, env, sizeof(kernelname)); early_boot = 0; } From owner-svn-src-head@freebsd.org Mon Nov 27 16:28:29 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53854DB8935; Mon, 27 Nov 2017 16:28:29 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D78779C29; Mon, 27 Nov 2017 16:28:29 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARGSSKa033091; Mon, 27 Nov 2017 16:28:28 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARGSSee033090; Mon, 27 Nov 2017 16:28:28 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201711271628.vARGSSee033090@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Mon, 27 Nov 2017 16:28:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326281 - head/share/man/man4 X-SVN-Group: head X-SVN-Commit-Author: sbruno X-SVN-Commit-Paths: head/share/man/man4 X-SVN-Commit-Revision: 326281 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 16:28:29 -0000 Author: sbruno Date: Mon Nov 27 16:28:28 2017 New Revision: 326281 URL: https://svnweb.freebsd.org/changeset/base/326281 Log: Add vmm(4) man page PR: 205705 184046 Submitted by: Matt Macy Reviewed by: grehan Differential Revision: https://reviews.freebsd.org/D13062 Added: head/share/man/man4/vmm.4 (contents, props changed) Added: head/share/man/man4/vmm.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/vmm.4 Mon Nov 27 16:28:28 2017 (r326281) @@ -0,0 +1,105 @@ +.\" Copyright (c) 2013 Peter Grehan +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd December 19, 2013 +.Dt VMM 4 +.Os +.Sh NAME +.Nm vmm.ko +.Nd "bhyve virtual machine monitor" +.Sh SYNOPSIS +.Pp +To load the driver as a module at boot, add this line to +.Xr loader.conf 5 : +.Bd -literal -offset indent +.Cd vmm_load="YES" +.Ed +.Pp +The module can also be loaded manually with +.Xr kldload 8 : +.Bd -literal -offset indent +kldload vmm +.Ed +.Sh DESCRIPTION +.Nm +provides the kernel portion of the +.Xr bhyve 4 +hypervisor. +.Pp +An Intel CPU with VT-x/EPT or AMD CPU with SVM support is required. +.Pp +PCI device passthrough to a virtual machine requires +hardware with VT-d support. +.Sh PCI PASSTHROUGH +When the hardware supports VT-d, and +.Nm +has been loaded at boot time, +PCI devices can be reserved for use by the hypervisor. +Entries consisting of the PCI +.Ar bus Ns / Ns Ar slot Ns / Ns Ar function +are added to the +.Va pptdevs +.Xr loader.conf 5 +variable. +Additional entries are separated by spaces. +Host PCI devices that match an entry will be assigned to the hypervisor +and will not be probed by +.Fx +device drivers. +See the +.Sx EXAMPLES +section below for sample usage. +.Pp +A large number of PCI device entries may require a string longer than the +128-character limit of +.Xr loader.conf 5 +variables. +The +.Va pptdevs2 +and +.Va pptdevs3 +variables can be used for additional entries. +.Sh EXAMPLES +Reserve three PCI devices for use by the hypervisor: bus 10 slot 0 function 0, +bus 6 slot 5 function 0, and bus 6 slot 5 function 1. +.Bd -literal -offset indent +pptdevs="10/0/0 6/5/0 6/5/1" +.Ed +.Sh SEE ALSO +.Xr bhyve 4 , +.Xr loader.conf 5 , +.Xr bhyve 8 , +.Xr bhyveload 8 , +.Xr kldload 8 +.Sh HISTORY +.Nm vmm.ko +first appeared in +.Fx 10.0 . +.Sh AUTHORS +.An Neel Natu Aq neel@freebsd.org +.An Peter Grehan Aq grehan@freebsd.org + + From owner-svn-src-head@freebsd.org Mon Nov 27 17:03:12 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2B0DDB9BB7; Mon, 27 Nov 2017 17:03:12 +0000 (UTC) (envelope-from fsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EE787B447; Mon, 27 Nov 2017 17:03:12 +0000 (UTC) (envelope-from fsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARH3BJ9049485; Mon, 27 Nov 2017 17:03:11 GMT (envelope-from fsu@FreeBSD.org) Received: (from fsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARH3B5c049482; Mon, 27 Nov 2017 17:03:11 GMT (envelope-from fsu@FreeBSD.org) Message-Id: <201711271703.vARH3B5c049482@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fsu set sender to fsu@FreeBSD.org using -f From: Fedor Uporov Date: Mon, 27 Nov 2017 17:03:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326282 - in head/sys: amd64/linux amd64/linux32 i386/linux X-SVN-Group: head X-SVN-Commit-Author: fsu X-SVN-Commit-Paths: in head/sys: amd64/linux amd64/linux32 i386/linux X-SVN-Commit-Revision: 326282 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 17:03:12 -0000 Author: fsu Date: Mon Nov 27 17:03:11 2017 New Revision: 326282 URL: https://svnweb.freebsd.org/changeset/base/326282 Log: Remap ENOATTR to ENODATA in the linuxulator. In the linux ENOADATA is frequently #defined as ENOATTR. The change is required for an xattrs support implementation. MFC after: 1 week Discussed with: netchild Approved by: pfg Differential Revision: https://reviews.freebsd.org/D13221 Modified: head/sys/amd64/linux/linux_sysvec.c head/sys/amd64/linux32/linux32_sysvec.c head/sys/i386/linux/linux_sysvec.c Modified: head/sys/amd64/linux/linux_sysvec.c ============================================================================== --- head/sys/amd64/linux/linux_sysvec.c Mon Nov 27 16:28:28 2017 (r326281) +++ head/sys/amd64/linux/linux_sysvec.c Mon Nov 27 17:03:11 2017 (r326282) @@ -147,7 +147,7 @@ static int bsd_to_linux_errno[ELAST + 1] = { -100,-101,-102,-103,-104,-105,-106,-107,-108,-109, -110,-111, -40, -36,-112,-113, -39, -11, -87,-122, -116, -66, -6, -6, -6, -6, -6, -37, -38, -9, - -6, -6, -43, -42, -75,-125, -84, -95, -16, -74, + -6, -6, -43, -42, -75,-125, -84, -61, -16, -74, -72, -67, -71 }; Modified: head/sys/amd64/linux32/linux32_sysvec.c ============================================================================== --- head/sys/amd64/linux32/linux32_sysvec.c Mon Nov 27 16:28:28 2017 (r326281) +++ head/sys/amd64/linux32/linux32_sysvec.c Mon Nov 27 17:03:11 2017 (r326282) @@ -148,7 +148,7 @@ static int bsd_to_linux_errno[ELAST + 1] = { -100,-101,-102,-103,-104,-105,-106,-107,-108,-109, -110,-111, -40, -36,-112,-113, -39, -11, -87,-122, -116, -66, -6, -6, -6, -6, -6, -37, -38, -9, - -6, -6, -43, -42, -75,-125, -84, -95, -16, -74, + -6, -6, -43, -42, -75,-125, -84, -61, -16, -74, -72, -67, -71 }; Modified: head/sys/i386/linux/linux_sysvec.c ============================================================================== --- head/sys/i386/linux/linux_sysvec.c Mon Nov 27 16:28:28 2017 (r326281) +++ head/sys/i386/linux/linux_sysvec.c Mon Nov 27 17:03:11 2017 (r326282) @@ -147,7 +147,7 @@ static int bsd_to_linux_errno[ELAST + 1] = { -100,-101,-102,-103,-104,-105,-106,-107,-108,-109, -110,-111, -40, -36,-112,-113, -39, -11, -87,-122, -116, -66, -6, -6, -6, -6, -6, -37, -38, -9, - -6, -6, -43, -42, -75,-125, -84, -95, -16, -74, + -6, -6, -43, -42, -75,-125, -84, -61, -16, -74, -72, -67, -71 }; From owner-svn-src-head@freebsd.org Mon Nov 27 17:18:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D4CDDB9F97; Mon, 27 Nov 2017 17:18:33 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2DBD37BBD4; Mon, 27 Nov 2017 17:18:33 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARHIWZJ055442; Mon, 27 Nov 2017 17:18:32 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARHIWFU055441; Mon, 27 Nov 2017 17:18:32 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711271718.vARHIWFU055441@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 17:18:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326283 - head/include X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/include X-SVN-Commit-Revision: 326283 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 17:18:33 -0000 Author: pfg Date: Mon Nov 27 17:18:31 2017 New Revision: 326283 URL: https://svnweb.freebsd.org/changeset/base/326283 Log: netconfig.h: sync with upstream. Bring some comments and the license. Add SPDX License ID tag while here. Obtained from: NetBSD (CVS rev 1.2, 1.5, 1.6) Modified: head/include/netconfig.h Modified: head/include/netconfig.h ============================================================================== --- head/include/netconfig.h Mon Nov 27 17:03:11 2017 (r326282) +++ head/include/netconfig.h Mon Nov 27 17:18:31 2017 (r326283) @@ -1,6 +1,36 @@ -/* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */ +/* $NetBSD: netconfig.h,v 1.6 2008/04/28 20:22:54 martin Exp $ */ /* $FreeBSD$ */ +/*- + * SPDX-License-Identifier: BSD-2-Clause-NetBSD + * + * Copyright (c) 2004 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Frank van der Linden. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #ifndef _NETCONFIG_H_ #define _NETCONFIG_H_ @@ -30,10 +60,10 @@ typedef struct { /* * nc_semantics values */ -#define NC_TPI_CLTS 1 -#define NC_TPI_COTS 2 -#define NC_TPI_COTS_ORD 3 -#define NC_TPI_RAW 4 +#define NC_TPI_CLTS 1 /* Connectionless transport */ +#define NC_TPI_COTS 2 /* Connection oriented transport */ +#define NC_TPI_COTS_ORD 3 /* Connection oriented, ordered transport */ +#define NC_TPI_RAW 4 /* Raw connection */ /* * nc_flag values From owner-svn-src-head@freebsd.org Mon Nov 27 17:27:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5B0ADBA322; Mon, 27 Nov 2017 17:27:01 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86D597C30E; Mon, 27 Nov 2017 17:27:01 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vARHR0vm010646; Mon, 27 Nov 2017 09:27:00 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vARHR0oQ010645; Mon, 27 Nov 2017 09:27:00 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201711271727.vARHR0oQ010645@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r326283 - head/include In-Reply-To: <201711271718.vARHIWFU055441@repo.freebsd.org> To: "Pedro F. Giffuni" Date: Mon, 27 Nov 2017 09:27:00 -0800 (PST) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 17:27:01 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: pfg > Date: Mon Nov 27 17:18:31 2017 > New Revision: 326283 > URL: https://svnweb.freebsd.org/changeset/base/326283 > > Log: > netconfig.h: sync with upstream. > > Bring some comments and the license. > Add SPDX License ID tag while here. Please please please do not mix these with any other type of commit. > Obtained from: NetBSD (CVS rev 1.2, 1.5, 1.6) > > Modified: > head/include/netconfig.h > > Modified: head/include/netconfig.h > ============================================================================== > --- head/include/netconfig.h Mon Nov 27 17:03:11 2017 (r326282) > +++ head/include/netconfig.h Mon Nov 27 17:18:31 2017 (r326283) > @@ -1,6 +1,36 @@ > -/* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */ > +/* $NetBSD: netconfig.h,v 1.6 2008/04/28 20:22:54 martin Exp $ */ > /* $FreeBSD$ */ > > +/*- > + * SPDX-License-Identifier: BSD-2-Clause-NetBSD > + * > + * Copyright (c) 2004 The NetBSD Foundation, Inc. > + * All rights reserved. > + * > + * This code is derived from software contributed to The NetBSD Foundation > + * by Frank van der Linden. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * > + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS > + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED > + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS > + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF > + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE > + * POSSIBILITY OF SUCH DAMAGE. > + */ > > #ifndef _NETCONFIG_H_ > #define _NETCONFIG_H_ > @@ -30,10 +60,10 @@ typedef struct { > /* > * nc_semantics values > */ > -#define NC_TPI_CLTS 1 > -#define NC_TPI_COTS 2 > -#define NC_TPI_COTS_ORD 3 > -#define NC_TPI_RAW 4 > +#define NC_TPI_CLTS 1 /* Connectionless transport */ > +#define NC_TPI_COTS 2 /* Connection oriented transport */ > +#define NC_TPI_COTS_ORD 3 /* Connection oriented, ordered transport */ > +#define NC_TPI_RAW 4 /* Raw connection */ > > /* > * nc_flag values > > -- Rod Grimes rgrimes@freebsd.org From owner-svn-src-head@freebsd.org Mon Nov 27 17:46:39 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD09FDBAB1C; Mon, 27 Nov 2017 17:46:39 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A06587D1F5; Mon, 27 Nov 2017 17:46:39 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARHkcSP073208; Mon, 27 Nov 2017 17:46:38 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARHkcJQ073204; Mon, 27 Nov 2017 17:46:38 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711271746.vARHkcJQ073204@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Mon, 27 Nov 2017 17:46:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326284 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326284 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 17:46:39 -0000 Author: markj Date: Mon Nov 27 17:46:38 2017 New Revision: 326284 URL: https://svnweb.freebsd.org/changeset/base/326284 Log: Avoid unnecessary lookups when initializing the vm_page array. This gives a marginal improvement in the vm_page_array initialization time. Also garbage-collect the now-unused vm_phys_paddr_to_segind(). Reviewed by: alc, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13270 Modified: head/sys/vm/vm_page.c head/sys/vm/vm_phys.c head/sys/vm/vm_phys.h Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Mon Nov 27 17:18:31 2017 (r326283) +++ head/sys/vm/vm_page.c Mon Nov 27 17:46:38 2017 (r326284) @@ -427,11 +427,9 @@ vm_page_domain_init(struct vm_domain *vmd) * lists. */ static void -vm_page_init_page(vm_paddr_t pa) +vm_page_init_page(vm_page_t m, vm_paddr_t pa, int segind) { - vm_page_t m; - m = vm_phys_paddr_to_vm_page(pa); m->object = NULL; m->wire_count = 0; m->busy_lock = VPB_UNBUSIED; @@ -440,7 +438,7 @@ vm_page_init_page(vm_paddr_t pa) m->phys_addr = pa; m->queue = PQ_NONE; m->psind = 0; - m->segind = vm_phys_paddr_to_segind(pa); + m->segind = segind; m->order = VM_NFREEORDER; m->pool = VM_FREEPOOL_DEFAULT; m->valid = m->dirty = 0; @@ -694,8 +692,9 @@ vm_page_startup(vm_offset_t vaddr) vm_cnt.v_free_count = 0; for (segind = 0; segind < vm_phys_nsegs; segind++) { seg = &vm_phys_segs[segind]; - for (pa = seg->start; pa < seg->end; pa += PAGE_SIZE) - vm_page_init_page(pa); + for (m = seg->first_page, pa = seg->start; pa < seg->end; + m++, pa += PAGE_SIZE) + vm_page_init_page(m, pa, segind); /* * Add the segment to the free lists only if it is covered by Modified: head/sys/vm/vm_phys.c ============================================================================== --- head/sys/vm/vm_phys.c Mon Nov 27 17:18:31 2017 (r326283) +++ head/sys/vm/vm_phys.c Mon Nov 27 17:46:38 2017 (r326284) @@ -1038,24 +1038,6 @@ vm_phys_fictitious_unreg_range(vm_paddr_t start, vm_pa } /* - * Find the segment containing the given physical address. - */ -int -vm_phys_paddr_to_segind(vm_paddr_t pa) -{ - struct vm_phys_seg *seg; - int segind; - - for (segind = 0; segind < vm_phys_nsegs; segind++) { - seg = &vm_phys_segs[segind]; - if (pa >= seg->start && pa < seg->end) - return (segind); - } - panic("vm_phys_paddr_to_segind: paddr %#jx is not in any segment" , - (uintmax_t)pa); -} - -/* * Free a contiguous, power of two-sized set of physical pages. * * The free page queues must be locked. Modified: head/sys/vm/vm_phys.h ============================================================================== --- head/sys/vm/vm_phys.h Mon Nov 27 17:18:31 2017 (r326283) +++ head/sys/vm/vm_phys.h Mon Nov 27 17:46:38 2017 (r326284) @@ -84,7 +84,6 @@ vm_page_t vm_phys_fictitious_to_vm_page(vm_paddr_t pa) void vm_phys_free_contig(vm_page_t m, u_long npages); void vm_phys_free_pages(vm_page_t m, int order); void vm_phys_init(void); -int vm_phys_paddr_to_segind(vm_paddr_t pa); vm_page_t vm_phys_paddr_to_vm_page(vm_paddr_t pa); vm_page_t vm_phys_scan_contig(u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, int options); From owner-svn-src-head@freebsd.org Mon Nov 27 17:54:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75108DBAE56; Mon, 27 Nov 2017 17:54:19 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4EB1E7D900; Mon, 27 Nov 2017 17:54:19 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARHsIZn078724; Mon, 27 Nov 2017 17:54:18 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARHsIuf078719; Mon, 27 Nov 2017 17:54:18 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711271754.vARHsIuf078719@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Mon, 27 Nov 2017 17:54:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326285 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uct... X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uctf usr.sbin/dtrace/tests/t... X-SVN-Commit-Revision: 326285 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 17:54:19 -0000 Author: markj Date: Mon Nov 27 17:54:17 2017 New Revision: 326285 URL: https://svnweb.freebsd.org/changeset/base/326285 Log: Revert r326181 for now. We can't link an executable using -m32 until the lib32 phase of a buildworld, though the build works fine when executing make from cddl/usr.sbin/dtrace/tests. Some other solution will need to be found. Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/tst.userlandkey.ksh head/cddl/usr.sbin/dtrace/tests/common/probes/Makefile head/cddl/usr.sbin/dtrace/tests/common/speculation/Makefile head/cddl/usr.sbin/dtrace/tests/common/uctf/Makefile head/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/tst.userlandkey.ksh ============================================================================== --- head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/tst.userlandkey.ksh Mon Nov 27 17:46:38 2017 (r326284) +++ head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/tst.userlandkey.ksh Mon Nov 27 17:54:17 2017 (r326285) @@ -38,7 +38,7 @@ fi ./$exe & pid=$! -$dtrace -32 -qs /dev/stdin < Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C8E3DBB222; Mon, 27 Nov 2017 18:06:49 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id CAF537E0A6; Mon, 27 Nov 2017 18:06:48 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from dhcp-10-248-127-139.eduroam.wireless.private.cam.ac.uk (global-5-144.nat-2.net.cam.ac.uk [131.111.5.144]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id 00B9F4E6DC; Mon, 27 Nov 2017 18:06:11 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r326218 - head/sys/kern From: Andrew Turner In-Reply-To: <62864c22-e458-2f13-2b33-9dc075ed2ef2@freebsd.org> Date: Mon, 27 Nov 2017 18:06:11 +0000 Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <59383A7D-FC99-4748-9561-53D968C4B150@fubar.geek.nz> <62864c22-e458-2f13-2b33-9dc075ed2ef2@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 18:06:49 -0000 > On 26 Nov 2017, at 17:07, Nathan Whitehorn = wrote: >=20 >=20 >=20 > On 11/26/17 01:46, Andrew Turner wrote: >> On 25 Nov 2017, at 23:41, Nathan Whitehorn = wrote: >>> Author: nwhitehorn >>> Date: Sat Nov 25 23:41:05 2017 >>> New Revision: 326218 >>> URL: https://svnweb.freebsd.org/changeset/base/326218 >>>=20 >>> Log: >>> Remove some, but not all, assumptions that the BSP is CPU 0 and = that CPUs >>> are numbered densely from there to n_cpus. >>>=20 >>> MFC after: 1 month >>>=20 >>> Modified: >>> head/sys/kern/kern_clock.c >>> head/sys/kern/kern_clocksource.c >>> head/sys/kern/kern_shutdown.c >>> head/sys/kern/kern_timeout.c >>> head/sys/kern/sched_ule.c >>> head/sys/kern/subr_pcpu.c >>>=20 >> ... >>> Modified: head/sys/kern/subr_pcpu.c >>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 = (r326217) >>> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 = (r326218) >>> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >>> struct pcpu * >>> pcpu_find(u_int cpuid) >>> { >>> + KASSERT(cpuid_to_pcpu[cpuid] !=3D NULL, >>> + ("Getting uninitialized PCPU %d", cpuid)); >>>=20 >>> return (cpuid_to_pcpu[cpuid]); >>> } >> This breaks on one arm64 simulator I have where the device tree lists = 8 cpus, but only 2 are enabled in the simulation. The ofw_cpu device = nodes for these are cpu0 and cpu4 so the call to cpu_find in = ofw_cpu_attach will hit this KASSERT when the CPU has not been enabled. >>=20 >> Andrew >>=20 >> cpu0: on cpulist0 >> cpu1: on cpulist0 >> panic: Getting uninitialized PCPU 1 >> cpuid =3D 0 >> time =3D 1 >> KDB: stack backtrace: >> db_trace_self() at db_trace_self_wrapper+0x28 >> pc =3D 0xffff0000005f03e8 lr =3D 0xffff000000087048 >> sp =3D 0xffff0000000105a0 fp =3D 0xffff0000000107b0 >=20 > That's unfortunate. Removing the new KASSERT is probably not the right = option, since all it is doing is indicating a pre-existing bug. = Specifically, it is preventing ofw_cpu from using a NULL pointer for CPU = 4, which I suppose it was previously happily doing (it would only get = dereferenced if you had cpufreq support, hence no previous panic). I would expect cpu4 to have a non-NULL value as its cpu pointer will = have been set. It=E2=80=99s cpu1 that is the issue as it=E2=80=99s in = the device tree, but doesn=E2=80=99t exist in =E2=80=9Chardware=E2=80=9D. = Because of this it fails when we try to enable it so free it=E2=80=99s = pcpu data clear the pointer. >=20 > A super quick-and-dirty fix would be to be fail attach on = CPU_ABSENT(device_get_unit(dev)), which restores the previous buggy = behavior but without the panic. If you do not actually use ofw_cpu for = anything, we could also just disable it temporarily on your platform = (it's off for some PPC systems, you will note, for similar reasons). We used to use it to find CPUs to start, however this is no longer the = case. >=20 > A real fix is somewhat complex, since the driver relies on being able = to get a mapping from platform-specific numbers in the device tree to an = entry in pcpu, which intrinsically relies on reverse-engineering the = platform's mapping between some kind of hardware CPU ID and the kernel = CPU numbering. I can't think of a way to do that internally. We could = make some kind of platform macro, but the whole concept is even somewhat = dubious at the moment since a number of IBM systems with SMT don't even = have a 1:1 relationship between CPUs as FreeBSD defines them and device = tree nodes, so it's possible we need a serious rearchitecture of the = driver. On arm64 we use the ID from the device tree to assign the cpuid so there = is a 1:1 mapping between the two. In most cases both are identical, the = only case that=E2=80=99s not correct is when we boot from a non-zero = CPU, and I know of only one SoC where this is true. Andrew From owner-svn-src-head@freebsd.org Mon Nov 27 18:42:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FF2CDE26AD; Mon, 27 Nov 2017 18:42:24 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A31A7FE6F; Mon, 27 Nov 2017 18:42:24 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARIgNR7007370; Mon, 27 Nov 2017 18:42:23 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARIgNCk007369; Mon, 27 Nov 2017 18:42:23 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711271842.vARIgNCk007369@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Mon, 27 Nov 2017 18:42:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326286 - head/sys/cddl/dev/dtrace X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/cddl/dev/dtrace X-SVN-Commit-Revision: 326286 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 18:42:24 -0000 Author: markj Date: Mon Nov 27 18:42:23 2017 New Revision: 326286 URL: https://svnweb.freebsd.org/changeset/base/326286 Log: Don't use pcpu_find() to determine if a CPU ID is valid. This addresses assertion failures after r326218. MFC after: 1 week Modified: head/sys/cddl/dev/dtrace/dtrace_ioctl.c Modified: head/sys/cddl/dev/dtrace/dtrace_ioctl.c ============================================================================== --- head/sys/cddl/dev/dtrace/dtrace_ioctl.c Mon Nov 27 17:54:17 2017 (r326285) +++ head/sys/cddl/dev/dtrace/dtrace_ioctl.c Mon Nov 27 18:42:23 2017 (r326286) @@ -231,10 +231,8 @@ dtrace_ioctl(struct cdev *dev, u_long cmd, caddr_t add "DTRACEIOC_AGGSNAP":"DTRACEIOC_BUFSNAP", curcpu, desc.dtbd_cpu); - if (desc.dtbd_cpu >= NCPU) + if (desc.dtbd_cpu >= MAXCPU || CPU_ABSENT(desc.dtbd_cpu)) return (ENOENT); - if (pcpu_find(desc.dtbd_cpu) == NULL) - return (ENOENT); mutex_enter(&dtrace_lock); @@ -797,11 +795,7 @@ dtrace_ioctl(struct cdev *dev, u_long cmd, caddr_t add nerrs = state->dts_errors; dstate = &state->dts_vstate.dtvs_dynvars; - for (i = 0; i < NCPU; i++) { -#ifndef illumos - if (pcpu_find(i) == NULL) - continue; -#endif + CPU_FOREACH(i) { dtrace_dstate_percpu_t *dcpu = &dstate->dtds_percpu[i]; stat->dtst_dyndrops += dcpu->dtdsc_drops; From owner-svn-src-head@freebsd.org Mon Nov 27 18:45:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9645DDE29A7; Mon, 27 Nov 2017 18:45:44 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80A098017C; Mon, 27 Nov 2017 18:45:44 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vARIjdtO025181 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Nov 2017 10:45:40 -0800 Subject: Re: svn commit: r326218 - head/sys/kern To: Andrew Turner Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <59383A7D-FC99-4748-9561-53D968C4B150@fubar.geek.nz> <62864c22-e458-2f13-2b33-9dc075ed2ef2@freebsd.org> From: Nathan Whitehorn Message-ID: <3deeb9e5-4f6b-0f7f-3303-c4c8ad7ad624@freebsd.org> Date: Mon, 27 Nov 2017 10:45:39 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVYSQETC/g2k7gdj4695qbqquEZFoU2a/lz2Wl3PI+8/r8lWn2V8jyvA1wCjExOYCtDMDjWghZ/pILb+MahaEbjDma9o/43iWu0= X-Sonic-ID: C;EtUuKqPT5xGHLusnWtmBlw== M;vs61KqPT5xGHLusnWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 18:45:44 -0000 On 11/27/17 10:06, Andrew Turner wrote: >> On 26 Nov 2017, at 17:07, Nathan Whitehorn wrote: >> >> >> >> On 11/26/17 01:46, Andrew Turner wrote: >>> On 25 Nov 2017, at 23:41, Nathan Whitehorn wrote: >>>> Author: nwhitehorn >>>> Date: Sat Nov 25 23:41:05 2017 >>>> New Revision: 326218 >>>> URL: https://svnweb.freebsd.org/changeset/base/326218 >>>> >>>> Log: >>>> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs >>>> are numbered densely from there to n_cpus. >>>> >>>> MFC after: 1 month >>>> >>>> Modified: >>>> head/sys/kern/kern_clock.c >>>> head/sys/kern/kern_clocksource.c >>>> head/sys/kern/kern_shutdown.c >>>> head/sys/kern/kern_timeout.c >>>> head/sys/kern/sched_ule.c >>>> head/sys/kern/subr_pcpu.c >>>> >>> ... >>>> Modified: head/sys/kern/subr_pcpu.c >>>> ============================================================================== >>>> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) >>>> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) >>>> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >>>> struct pcpu * >>>> pcpu_find(u_int cpuid) >>>> { >>>> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, >>>> + ("Getting uninitialized PCPU %d", cpuid)); >>>> >>>> return (cpuid_to_pcpu[cpuid]); >>>> } >>> This breaks on one arm64 simulator I have where the device tree lists 8 cpus, but only 2 are enabled in the simulation. The ofw_cpu device nodes for these are cpu0 and cpu4 so the call to cpu_find in ofw_cpu_attach will hit this KASSERT when the CPU has not been enabled. >>> >>> Andrew >>> >>> cpu0: on cpulist0 >>> cpu1: on cpulist0 >>> panic: Getting uninitialized PCPU 1 >>> cpuid = 0 >>> time = 1 >>> KDB: stack backtrace: >>> db_trace_self() at db_trace_self_wrapper+0x28 >>> pc = 0xffff0000005f03e8 lr = 0xffff000000087048 >>> sp = 0xffff0000000105a0 fp = 0xffff0000000107b0 >> That's unfortunate. Removing the new KASSERT is probably not the right option, since all it is doing is indicating a pre-existing bug. Specifically, it is preventing ofw_cpu from using a NULL pointer for CPU 4, which I suppose it was previously happily doing (it would only get dereferenced if you had cpufreq support, hence no previous panic). > I would expect cpu4 to have a non-NULL value as its cpu pointer will have been set. It’s cpu1 that is the issue as it’s in the device tree, but doesn’t exist in “hardware”. Because of this it fails when we try to enable it so free it’s pcpu data clear the pointer. Yes, I phrased that badly. As you say, the CPU ID that ofw_cpu has is "1", which doesn't exist. To fix this, we need to change the CPU ID that ofw_cpu has to match what the kernel thinks it is using. > >> A super quick-and-dirty fix would be to be fail attach on CPU_ABSENT(device_get_unit(dev)), which restores the previous buggy behavior but without the panic. If you do not actually use ofw_cpu for anything, we could also just disable it temporarily on your platform (it's off for some PPC systems, you will note, for similar reasons). > We used to use it to find CPUs to start, however this is no longer the case. OK, so disabling it works fine for now. > >> A real fix is somewhat complex, since the driver relies on being able to get a mapping from platform-specific numbers in the device tree to an entry in pcpu, which intrinsically relies on reverse-engineering the platform's mapping between some kind of hardware CPU ID and the kernel CPU numbering. I can't think of a way to do that internally. We could make some kind of platform macro, but the whole concept is even somewhat dubious at the moment since a number of IBM systems with SMT don't even have a 1:1 relationship between CPUs as FreeBSD defines them and device tree nodes, so it's possible we need a serious rearchitecture of the driver. > On arm64 we use the ID from the device tree to assign the cpuid so there is a 1:1 mapping between the two. In most cases both are identical, the only case that’s not correct is when we boot from a non-zero CPU, and I know of only one SoC where this is true. The "ID from the device tree" being the value of "reg"? Or something else? I see a lot of variation in the encoding in sys/dts and there does not seem to be an obvious single answer. This is making me think that the only workable solution is something like a new ofw_machdep function that gets the phandle for a given CPU ID. -Nathan > > Andrew > > From owner-svn-src-head@freebsd.org Mon Nov 27 19:35:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 304B0DE3C54; Mon, 27 Nov 2017 19:35:23 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E40171BEB; Mon, 27 Nov 2017 19:35:22 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARJZMQG031562; Mon, 27 Nov 2017 19:35:22 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARJZM4O031561; Mon, 27 Nov 2017 19:35:22 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201711271935.vARJZM4O031561@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Mon, 27 Nov 2017 19:35:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326287 - head/usr.sbin/efivar X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/usr.sbin/efivar X-SVN-Commit-Revision: 326287 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 19:35:23 -0000 Author: emaste Date: Mon Nov 27 19:35:21 2017 New Revision: 326287 URL: https://svnweb.freebsd.org/changeset/base/326287 Log: efivar: add missing getopt 'u' option Modified: head/usr.sbin/efivar/efivar.c Modified: head/usr.sbin/efivar/efivar.c ============================================================================== --- head/usr.sbin/efivar/efivar.c Mon Nov 27 18:42:23 2017 (r326286) +++ head/usr.sbin/efivar/efivar.c Mon Nov 27 19:35:21 2017 (r326287) @@ -255,7 +255,7 @@ parse_args(int argc, char **argv) { int ch, i; - while ((ch = getopt_long(argc, argv, "aAbdDf:gHlLNn:OpRt:w", + while ((ch = getopt_long(argc, argv, "aAbdDf:gHlLNn:OpRt:uw", longopts, NULL)) != -1) { switch (ch) { case 'a': From owner-svn-src-head@freebsd.org Mon Nov 27 20:01:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03901DE64CF; Mon, 27 Nov 2017 20:01:45 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2A192BCA; Mon, 27 Nov 2017 20:01:44 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARK1hKE043664; Mon, 27 Nov 2017 20:01:43 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARK1hCe043663; Mon, 27 Nov 2017 20:01:43 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201711272001.vARK1hCe043663@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Mon, 27 Nov 2017 20:01:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326288 - head/usr.sbin/diskinfo X-SVN-Group: head X-SVN-Commit-Author: mav X-SVN-Commit-Paths: head/usr.sbin/diskinfo X-SVN-Commit-Revision: 326288 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:01:45 -0000 Author: mav Date: Mon Nov 27 20:01:43 2017 New Revision: 326288 URL: https://svnweb.freebsd.org/changeset/base/326288 Log: Fix integer overflow in SLOG test. MFC after: 1 week Modified: head/usr.sbin/diskinfo/diskinfo.c Modified: head/usr.sbin/diskinfo/diskinfo.c ============================================================================== --- head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 19:35:21 2017 (r326287) +++ head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 20:01:43 2017 (r326288) @@ -398,7 +398,7 @@ TS(u_int size, int count) dt = delta_t(); printf("%8.1f usec/IO = %8.1f Mbytes/s\n", - dt * 1000000.0 / count, size * count / dt / (1024 * 1024)); + dt * 1000000.0 / count, (double)size * count / dt / (1024 * 1024)); } static void From owner-svn-src-head@freebsd.org Mon Nov 27 20:02:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 215A7DE66C1; Mon, 27 Nov 2017 20:02:01 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D99A02D42; Mon, 27 Nov 2017 20:02:00 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARK202T043727; Mon, 27 Nov 2017 20:02:00 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARK1xmS043716; Mon, 27 Nov 2017 20:01:59 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711272001.vARK1xmS043716@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Mon, 27 Nov 2017 20:01:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326289 - in head: cddl/usr.bin/ctfconvert cddl/usr.bin/ctfconvert/tests etc/mtree usr.bin/fold usr.bin/fold/tests usr.bin/rs usr.bin/rs/tests X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in head: cddl/usr.bin/ctfconvert cddl/usr.bin/ctfconvert/tests etc/mtree usr.bin/fold usr.bin/fold/tests usr.bin/rs usr.bin/rs/tests X-SVN-Commit-Revision: 326289 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:02:01 -0000 Author: asomers Date: Mon Nov 27 20:01:58 2017 New Revision: 326289 URL: https://svnweb.freebsd.org/changeset/base/326289 Log: Add basic tests for ctfconvert(1), fold(1) and rs(1) Add basic command line parsing test coverage for these utilities. The tests were automatically generated based on their man pages. These tests can be expanded by hand for more thorough coverage. The aim is to generate very basic amount of test coverage for all the utilities in the base system. Tests generated via: https://github.com/shivansh/smoketestsuite/ Submitted by: shivansh Reviewed by: asomers MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D12424 Added: head/cddl/usr.bin/ctfconvert/tests/ head/cddl/usr.bin/ctfconvert/tests/Makefile (contents, props changed) head/cddl/usr.bin/ctfconvert/tests/ctfconvert_test.sh (contents, props changed) head/usr.bin/fold/tests/ head/usr.bin/fold/tests/Makefile (contents, props changed) head/usr.bin/fold/tests/fold_test.sh (contents, props changed) head/usr.bin/rs/tests/ head/usr.bin/rs/tests/Makefile (contents, props changed) head/usr.bin/rs/tests/rs_test.sh (contents, props changed) Modified: head/cddl/usr.bin/ctfconvert/Makefile head/etc/mtree/BSD.tests.dist head/usr.bin/fold/Makefile head/usr.bin/rs/Makefile Modified: head/cddl/usr.bin/ctfconvert/Makefile ============================================================================== --- head/cddl/usr.bin/ctfconvert/Makefile Mon Nov 27 20:01:43 2017 (r326288) +++ head/cddl/usr.bin/ctfconvert/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -1,5 +1,7 @@ # $FreeBSD$ +.include + .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/cvt @@ -35,5 +37,8 @@ CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ -I${OPENSOLARIS_SYS_DISTDIR}/uts/common LIBADD= dwarf elf z pthread + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include Added: head/cddl/usr.bin/ctfconvert/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/usr.bin/ctfconvert/tests/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,5 @@ +# $FreeBSD$ + +ATF_TESTS_SH+= ctfconvert_test + +.include Added: head/cddl/usr.bin/ctfconvert/tests/ctfconvert_test.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/usr.bin/ctfconvert/tests/ctfconvert_test.sh Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,62 @@ +# +# Copyright 2017 Shivansh +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $FreeBSD$ +# + +usage_output='Usage: ctfconvert' + +atf_test_case invalid_usage +invalid_usage_head() +{ + atf_set "descr" "Verify that an invalid usage with a supported option produces a valid error message" +} + +invalid_usage_body() +{ + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -l + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -L + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -g + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -i + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -s + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert -o +} + +atf_test_case no_arguments +no_arguments_head() +{ + atf_set "descr" "Verify that ctfconvert(1) fails and generates a valid usage message when no arguments are supplied" +} + +no_arguments_body() +{ + atf_check -s not-exit:0 -e match:"$usage_output" ctfconvert +} + +atf_init_test_cases() +{ + atf_add_test_case invalid_usage + atf_add_test_case no_arguments +} Modified: head/etc/mtree/BSD.tests.dist ============================================================================== --- head/etc/mtree/BSD.tests.dist Mon Nov 27 20:01:43 2017 (r326288) +++ head/etc/mtree/BSD.tests.dist Mon Nov 27 20:01:58 2017 (r326289) @@ -65,6 +65,8 @@ sbin .. usr.bin + ctfconvert + .. .. usr.sbin dtrace @@ -654,6 +656,8 @@ .. file2c .. + fold + .. getconf .. grep @@ -689,6 +693,8 @@ printf .. procstat + .. + rs .. sdiff .. Modified: head/usr.bin/fold/Makefile ============================================================================== --- head/usr.bin/fold/Makefile Mon Nov 27 20:01:43 2017 (r326288) +++ head/usr.bin/fold/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -1,6 +1,11 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include + PROG= fold + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include Added: head/usr.bin/fold/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/fold/tests/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,5 @@ +# $FreeBSD$ + +ATF_TESTS_SH+= fold_test + +.include Added: head/usr.bin/fold/tests/fold_test.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/fold/tests/fold_test.sh Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,81 @@ +# +# Copyright 2017 Shivansh +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $FreeBSD$ +# + +atf_test_case b_flag +b_flag_head() +{ + atf_set "descr" "Verify the usage of option 'b'" +} + +b_flag_body() +{ + atf_check -s exit:0 -o empty fold -b < /dev/null +} + +atf_test_case s_flag +s_flag_head() +{ + atf_set "descr" "Verify the usage of option 's'" +} + +s_flag_body() +{ + atf_check -s exit:0 -o empty fold -s < /dev/null +} + +atf_test_case invalid_usage +invalid_usage_head() +{ + atf_set "descr" "Verify that an invalid usage with a supported option produces a valid error message" +} + +invalid_usage_body() +{ + atf_check -s not-exit:0 -e inline:"fold: option requires an argument -- w +usage: fold [-bs] [-w width] [file ...] +" fold -w +} + +atf_test_case no_arguments +no_arguments_head() +{ + atf_set "descr" "Verify that fold(1) executes successfully and silently when invoked without any arguments" +} + +no_arguments_body() +{ + atf_check -s exit:0 -o empty fold < /dev/null +} + +atf_init_test_cases() +{ + atf_add_test_case b_flag + atf_add_test_case s_flag + atf_add_test_case invalid_usage + atf_add_test_case no_arguments +} Modified: head/usr.bin/rs/Makefile ============================================================================== --- head/usr.bin/rs/Makefile Mon Nov 27 20:01:43 2017 (r326288) +++ head/usr.bin/rs/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -1,5 +1,11 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ +.include + PROG= rs + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include Added: head/usr.bin/rs/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/rs/tests/Makefile Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,5 @@ +# $FreeBSD$ + +ATF_TESTS_SH+= rs_test + +.include Added: head/usr.bin/rs/tests/rs_test.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/rs/tests/rs_test.sh Mon Nov 27 20:01:58 2017 (r326289) @@ -0,0 +1,278 @@ +# +# Copyright 2017 Shivansh +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $FreeBSD$ +# + +atf_test_case c_flag +c_flag_head() +{ + atf_set "descr" "Verify the usage of option 'c'" +} + +c_flag_body() +{ + atf_check -s exit:0 -o empty rs -c < /dev/null +} + +atf_test_case s_flag +s_flag_head() +{ + atf_set "descr" "Verify the usage of option 's'" +} + +s_flag_body() +{ + atf_check -s exit:0 -o empty rs -s < /dev/null +} + +atf_test_case C_flag +C_flag_head() +{ + atf_set "descr" "Verify the usage of option 'C'" +} + +C_flag_body() +{ + atf_check -s exit:0 -o empty rs -C < /dev/null +} + +atf_test_case S_flag +S_flag_head() +{ + atf_set "descr" "Verify the usage of option 'S'" +} + +S_flag_body() +{ + atf_check -s exit:0 -o empty rs -S < /dev/null +} + +atf_test_case t_flag +t_flag_head() +{ + atf_set "descr" "Verify the usage of option 't'" +} + +t_flag_body() +{ + atf_check -s exit:0 -o empty rs -t < /dev/null +} + +atf_test_case T_flag +T_flag_head() +{ + atf_set "descr" "Verify the usage of option 'T'" +} + +T_flag_body() +{ + atf_check -s exit:0 -o empty rs -T < /dev/null +} + +atf_test_case k_flag +k_flag_head() +{ + atf_set "descr" "Verify the usage of option 'k'" +} + +k_flag_body() +{ + atf_check -s exit:0 -o empty rs -k < /dev/null +} + +atf_test_case K_flag +K_flag_head() +{ + atf_set "descr" "Verify the usage of option 'K'" +} + +K_flag_body() +{ + atf_check -s exit:0 -o inline:" +" rs -K < /dev/null +} + +atf_test_case g_flag +g_flag_head() +{ + atf_set "descr" "Verify the usage of option 'g'" +} + +g_flag_body() +{ + atf_check -s exit:0 -o empty rs -g < /dev/null +} + +atf_test_case G_flag +G_flag_head() +{ + atf_set "descr" "Verify the usage of option 'G'" +} + +G_flag_body() +{ + atf_check -s exit:0 -o empty rs -G < /dev/null +} + +atf_test_case e_flag +e_flag_head() +{ + atf_set "descr" "Verify the usage of option 'e'" +} + +e_flag_body() +{ + atf_check -s exit:0 -o inline:" +" rs -e < /dev/null +} + +atf_test_case n_flag +n_flag_head() +{ + atf_set "descr" "Verify the usage of option 'n'" +} + +n_flag_body() +{ + atf_check -s exit:0 -o empty rs -n < /dev/null +} + +atf_test_case y_flag +y_flag_head() +{ + atf_set "descr" "Verify the usage of option 'y'" +} + +y_flag_body() +{ + atf_check -s exit:0 -o empty rs -y < /dev/null +} + +atf_test_case h_flag +h_flag_head() +{ + atf_set "descr" "Verify the usage of option 'h'" +} + +h_flag_body() +{ + atf_check -s exit:0 -o inline:"1 0 +" rs -h < /dev/null +} + +atf_test_case H_flag +H_flag_head() +{ + atf_set "descr" "Verify the usage of option 'H'" +} + +H_flag_body() +{ + atf_check -s exit:0 -o inline:" 0 line 1 +1 0 +" rs -H < /dev/null +} + +atf_test_case j_flag +j_flag_head() +{ + atf_set "descr" "Verify the usage of option 'j'" +} + +j_flag_body() +{ + atf_check -s exit:0 -o empty rs -j < /dev/null +} + +atf_test_case m_flag +m_flag_head() +{ + atf_set "descr" "Verify the usage of option 'm'" +} + +m_flag_body() +{ + atf_check -s exit:0 -o empty rs -m < /dev/null +} + +atf_test_case z_flag +z_flag_head() +{ + atf_set "descr" "Verify the usage of option 'z'" +} + +z_flag_body() +{ + atf_check -s exit:0 -o empty rs -z < /dev/null +} + +atf_test_case invalid_usage +invalid_usage_head() +{ + atf_set "descr" "Verify that an invalid usage with a supported option produces a valid error message" +} + +invalid_usage_body() +{ + atf_check -s not-exit:0 -e inline:"rs: width must be a positive integer +" rs -w +} + +atf_test_case no_arguments +no_arguments_head() +{ + atf_set "descr" "Verify that rs(1) executes successfully and produces a valid output when invoked without any arguments" +} + +no_arguments_body() +{ + atf_check -s exit:0 -o inline:" +" rs < /dev/null +} + +atf_init_test_cases() +{ + atf_add_test_case c_flag + atf_add_test_case s_flag + atf_add_test_case C_flag + atf_add_test_case S_flag + atf_add_test_case t_flag + atf_add_test_case T_flag + atf_add_test_case k_flag + atf_add_test_case K_flag + atf_add_test_case g_flag + atf_add_test_case G_flag + atf_add_test_case e_flag + atf_add_test_case n_flag + atf_add_test_case y_flag + atf_add_test_case h_flag + atf_add_test_case H_flag + atf_add_test_case j_flag + atf_add_test_case m_flag + atf_add_test_case z_flag + atf_add_test_case invalid_usage + atf_add_test_case no_arguments +} From owner-svn-src-head@freebsd.org Mon Nov 27 20:43:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EC20DE7AED; Mon, 27 Nov 2017 20:43:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3464C63873; Mon, 27 Nov 2017 20:43:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 5185B10A8BC; Mon, 27 Nov 2017 15:43:42 -0500 (EST) From: John Baldwin To: Mark Johnston Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326286 - head/sys/cddl/dev/dtrace Date: Mon, 27 Nov 2017 11:28:07 -0800 Message-ID: <2717040.9stBD4iAp4@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201711271842.vARIgNCk007369@repo.freebsd.org> References: <201711271842.vARIgNCk007369@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 27 Nov 2017 15:43:42 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:43:44 -0000 On Monday, November 27, 2017 06:42:23 PM Mark Johnston wrote: > Author: markj > Date: Mon Nov 27 18:42:23 2017 > New Revision: 326286 > URL: https://svnweb.freebsd.org/changeset/base/326286 > > Log: > Don't use pcpu_find() to determine if a CPU ID is valid. > > This addresses assertion failures after r326218. I'd perhaps rather revert the assertion as per my other mail? -- John Baldwin From owner-svn-src-head@freebsd.org Mon Nov 27 20:43:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B608CDE7AFC; Mon, 27 Nov 2017 20:43:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 936B663879; Mon, 27 Nov 2017 20:43:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 966A310AF2A; Mon, 27 Nov 2017 15:43:43 -0500 (EST) From: John Baldwin To: Fedor Uporov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326282 - in head/sys: amd64/linux amd64/linux32 i386/linux Date: Mon, 27 Nov 2017 11:27:35 -0800 Message-ID: <2015849.BP9pEIm6Xk@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201711271703.vARH3B5c049482@repo.freebsd.org> References: <201711271703.vARH3B5c049482@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 27 Nov 2017 15:43:43 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:43:44 -0000 On Monday, November 27, 2017 05:03:11 PM Fedor Uporov wrote: > Author: fsu > Date: Mon Nov 27 17:03:11 2017 > New Revision: 326282 > URL: https://svnweb.freebsd.org/changeset/base/326282 > > Log: > Remap ENOATTR to ENODATA in the linuxulator. > In the linux ENOADATA is frequently #defined as ENOATTR. > The change is required for an xattrs support implementation. > > MFC after: 1 week > Discussed with: netchild > Approved by: pfg Please also update the table in lib/libsysdecode/errno.c (bsd_to_linux_errno[]). It is kind of crummy to have 4 identical copies of this table. We should probably move it into some shared header file (libsysdecode already depends on files from sys/, so the header could live in sys/, maybe sys/x86/linux/errno.h or some such, or if it is MI sys/compat/linux/linux_errno.h) -- John Baldwin From owner-svn-src-head@freebsd.org Mon Nov 27 20:43:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16469DE7AA4; Mon, 27 Nov 2017 20:43:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD91763850; Mon, 27 Nov 2017 20:43:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id E940610A8BA; Mon, 27 Nov 2017 15:43:40 -0500 (EST) From: John Baldwin To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern Date: Mon, 27 Nov 2017 11:31:46 -0800 Message-ID: <14322447.103fKFTi3y@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <3170692.kvv90QqB0X@ralph.baldwin.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 27 Nov 2017 15:43:41 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:43:42 -0000 On Sunday, November 26, 2017 10:06:56 PM Nathan Whitehorn wrote: > > On 11/26/17 20:50, John Baldwin wrote: > > On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: > >> Author: nwhitehorn > >> Date: Sat Nov 25 23:41:05 2017 > >> New Revision: 326218 > >> URL: https://svnweb.freebsd.org/changeset/base/326218 > >> > >> Log: > >> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs > >> are numbered densely from there to n_cpus. > >> > >> MFC after: 1 month > >> > >> Modified: > >> head/sys/kern/kern_clock.c > >> head/sys/kern/kern_clocksource.c > >> head/sys/kern/kern_shutdown.c > >> head/sys/kern/kern_timeout.c > >> head/sys/kern/sched_ule.c > >> head/sys/kern/subr_pcpu.c > >> > >> Modified: head/sys/kern/kern_clock.c > >> ============================================================================== > >> --- head/sys/kern/kern_clock.c Sat Nov 25 23:23:24 2017 (r326217) > >> +++ head/sys/kern/kern_clock.c Sat Nov 25 23:41:05 2017 (r326218) > >> @@ -573,7 +573,9 @@ hardclock_cnt(int cnt, int usermode) > >> void > >> hardclock_sync(int cpu) > >> { > >> - int *t = DPCPU_ID_PTR(cpu, pcputicks); > >> + int *t; > >> + KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu)); > > Blank line before the KASSERT() perhaps? > > > >> + t = DPCPU_ID_PTR(cpu, pcputicks); > >> > >> *t = ticks; > > Probably don't need this blank line though? > > Those are both good ideas. > > > > >> } > >> > >> Modified: head/sys/kern/sched_ule.c > >> ============================================================================== > >> --- head/sys/kern/sched_ule.c Sat Nov 25 23:23:24 2017 (r326217) > >> +++ head/sys/kern/sched_ule.c Sat Nov 25 23:41:05 2017 (r326218) > >> @@ -2444,6 +2451,7 @@ sched_add(struct thread *td, int flags) > >> * Pick the destination cpu and if it isn't ours transfer to the > >> * target cpu. > >> */ > >> + td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > >> cpu = sched_pickcpu(td, flags); > > It is not obvious why every sched_add() needs this once you've fixed thread0. > > Shouldn't new threads just inherit from thread0's already-fixed value? If not, > > perhaps fix thread0's value sooner? > > That's a fair point. I don't remember the rationale for this now; the > changes are over a year old from the powernv branch. I do remember > setting thread0's CPU early not working, but have forgotten why. I will > try to remember... > > >> tdq = sched_setcpu(td, cpu, flags); > >> tdq_add(tdq, td, flags); > >> > >> Modified: head/sys/kern/subr_pcpu.c > >> ============================================================================== > >> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) > >> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) > >> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) > >> struct pcpu * > >> pcpu_find(u_int cpuid) > >> { > >> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, > >> + ("Getting uninitialized PCPU %d", cpuid)); > > This KASSERT seems unnecessary? If the caller uses an invalid one, it will > > just fault anyway. > > It won't necessarily fault. For example, on PowerPC, NULL is a valid > address that does not trigger faults. It's unfortunately quite > complicated to fix this in a general way. Even if it did fault, this > makes the fault more informative (and has found at least one bug on > arm64 already). Given the large number of bugs caused by NULL pointers, having NULL pointers "work" doesn't seem like a long-term tenable solution. You'd have to go add explicit KASSERT()'s to every pointer indirection in the kernel which seems unworkable. Also, adding the KASSERT() here has broken other places that were depending on the existing behavior of pcpu_find() (see markj@'s commit to dtrace today). -- John Baldwin From owner-svn-src-head@freebsd.org Mon Nov 27 20:43:41 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18DA7DE7A66; Mon, 27 Nov 2017 20:43:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E760663848; Mon, 27 Nov 2017 20:43:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 6FAF510AF3A; Mon, 27 Nov 2017 15:43:39 -0500 (EST) From: John Baldwin To: Mark Johnston Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326285 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uct... Date: Mon, 27 Nov 2017 11:40:30 -0800 Message-ID: <4113193.T1NcBVhuux@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201711271754.vARHsIuf078719@repo.freebsd.org> References: <201711271754.vARHsIuf078719@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 27 Nov 2017 15:43:39 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:43:41 -0000 On Monday, November 27, 2017 05:54:18 PM Mark Johnston wrote: > Author: markj > Date: Mon Nov 27 17:54:17 2017 > New Revision: 326285 > URL: https://svnweb.freebsd.org/changeset/base/326285 > > Log: > Revert r326181 for now. > > We can't link an executable using -m32 until the lib32 phase of a > buildworld, though the build works fine when executing make from > cddl/usr.sbin/dtrace/tests. Some other solution will need to be found. I think we should move lib32 earlier ala libraries. Eventually if we grow x32 support, we might choose to install some binaries as x32 instead of amd64 for example (or n32 instead of n64 for MIPS) because they don't need the large address space and are more efficient when using smaller pointers. (This is similar to Solaris shipping 32-bit binaries for some system binaries on sparc64.) We might also need to install lib32 (and other alternate ABI libraries) into WORLDTMP for this to fully work. -- John Baldwin From owner-svn-src-head@freebsd.org Mon Nov 27 20:49:20 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1875EDE8253 for ; Mon, 27 Nov 2017 20:49:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD50D64000 for ; Mon, 27 Nov 2017 20:49:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x231.google.com with SMTP id v21so37899897ioi.4 for ; Mon, 27 Nov 2017 12:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=XZatES4zmuMjJT249jXzTOc4U80qiqWo01qyq/hTvmE=; b=NnK7CFlA+jRvYP/mujt0ykc9Oljv8WD0oFnLNCru6wHs3M4QJyyyHokzzDAquneMky 4HyG4LVyFPL/NcsgyIBF+Q3V4/TSETtBrqd4lw8iGAsJFtCmz0q/HTr4uAU1qluifRdb a7G2PiyiVjj1FUxtWA76eTKqNe/b21eBE5AYQJ45xgGGMr8DqzjVLcyfSDQvOdCgFUHn Q9ypbWabkZkfT6H4zUN66xalzRW4i9uq5FFC0DCE5AX+rtzeZX1Zxw78y2sRNl765Teo CdYc4IN6aThISYyGKHyqwINRfrVCueJDdQh/v1C/d6lJGqztALnpZBQLgmQgUrY0MqDR Usgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=XZatES4zmuMjJT249jXzTOc4U80qiqWo01qyq/hTvmE=; b=YxwdKHTwgJBHxkW25xXoqi6eyEHBG+lZMiX9gGEgAnPsdtKaPLQfsg5z6fuPzcku4W jvYtoEgYK6PReP/kDboCNPG2zPviY7GNDCG8qZiHT4ozXPDZBtQRvHxb2kASSqpmfwI/ GijbD2Z92QzEQ7/6SLb0roNPfpxIMcQqfVj7E1UCCddTdQGXFDDgtFjODWskSS4r4ruZ vWPv4178rV/uMUCCnZCDle/86v7xRZh5KgI/rPX21fphEEnBHoZ3vfkAO1Dp+2pkfxzl +70zuCYTFjEC8Yc5D8Wd43jkBXsXHbt7bEmZXH55Gio4wZNukKum5pDS8JYFt1pKhxZR fN7w== X-Gm-Message-State: AJaThX7jqGu6sgsyszcq3xdTRpa4uP41EWM7K/NabdaQgqSwd94Lwnyp KIO20aroyBhbdZQjvLCtv1SetKFmei7rxLHQ83FjCA== X-Google-Smtp-Source: AGs4zMYDkkjQPNZzhEaC2pGLVANafO+L6bchHGLnWqDqloFIHzFd6cQUBeNejE59gdRD2Elz1UnVhHm4sCYSNuBtnok= X-Received: by 10.107.104.18 with SMTP id d18mr95968ioc.136.1511815759064; Mon, 27 Nov 2017 12:49:19 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Mon, 27 Nov 2017 12:49:18 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <4113193.T1NcBVhuux@ralph.baldwin.cx> References: <201711271754.vARHsIuf078719@repo.freebsd.org> <4113193.T1NcBVhuux@ralph.baldwin.cx> From: Warner Losh Date: Mon, 27 Nov 2017 13:49:18 -0700 X-Google-Sender-Auth: VcM404JgWYgSA_5CeYQUx4tzXbw Message-ID: Subject: Re: svn commit: r326285 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uct... To: John Baldwin Cc: Mark Johnston , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 20:49:20 -0000 On Mon, Nov 27, 2017 at 12:40 PM, John Baldwin wrote: > On Monday, November 27, 2017 05:54:18 PM Mark Johnston wrote: > > Author: markj > > Date: Mon Nov 27 17:54:17 2017 > > New Revision: 326285 > > URL: https://svnweb.freebsd.org/changeset/base/326285 > > > > Log: > > Revert r326181 for now. > > > > We can't link an executable using -m32 until the lib32 phase of a > > buildworld, though the build works fine when executing make from > > cddl/usr.sbin/dtrace/tests. Some other solution will need to be found. > > I think we should move lib32 earlier ala libraries. Eventually if we > grow x32 support, we might choose to install some binaries as x32 > instead of amd64 for example (or n32 instead of n64 for MIPS) because > they don't need the large address space and are more efficient when > using smaller pointers. (This is similar to Solaris shipping 32-bit > binaries for some system binaries on sparc64.) We might also need > to install lib32 (and other alternate ABI libraries) into WORLDTMP > for this to fully work. > Since lib32 is optional part of the build, that would need to be taken into account as well for any binaries we build / run. But the whole libcompat stuff is bolted on at the end as an afterthought, and I totally agree that should change if we ever want it to be more than just an after thought. Warner From owner-svn-src-head@freebsd.org Mon Nov 27 21:10:51 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8776DE88C5; Mon, 27 Nov 2017 21:10:51 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7970B64B50; Mon, 27 Nov 2017 21:10:51 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARLAoI1070022; Mon, 27 Nov 2017 21:10:50 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARLAo0F070021; Mon, 27 Nov 2017 21:10:50 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711272110.vARLAo0F070021@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Mon, 27 Nov 2017 21:10:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326290 - head/usr.sbin/diskinfo X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/usr.sbin/diskinfo X-SVN-Commit-Revision: 326290 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 21:10:51 -0000 Author: asomers Date: Mon Nov 27 21:10:50 2017 New Revision: 326290 URL: https://svnweb.freebsd.org/changeset/base/326290 Log: diskinfo(8): Delete dead code in slog test Reported by: Coverity CID: 1377556 Reviewed by: mav MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13275 Modified: head/usr.sbin/diskinfo/diskinfo.c Modified: head/usr.sbin/diskinfo/diskinfo.c ============================================================================== --- head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 20:01:58 2017 (r326289) +++ head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 21:10:50 2017 (r326290) @@ -646,22 +646,22 @@ parwrite(int fd, size_t size, off_t off) { struct aiocb aios[MAXIOS]; off_t o; - size_t s; int n, error; struct aiocb *aiop; - for (n = 0, o = 0; size > MAXIO; n++, size -= s, o += s) { - s = (size >= MAXIO) ? MAXIO : size; + // if size > MAXIO, use AIO to write n - 1 pieces in parallel + for (n = 0, o = 0; size > MAXIO; n++, size -= MAXIO, o += MAXIO) { aiop = &aios[n]; bzero(aiop, sizeof(*aiop)); aiop->aio_buf = &buf[o]; aiop->aio_fildes = fd; aiop->aio_offset = off + o; - aiop->aio_nbytes = s; + aiop->aio_nbytes = MAXIO; error = aio_write(aiop); if (error != 0) err(EX_IOERR, "AIO write submit error"); } + // Use synchronous writes for the runt of size <= MAXIO error = pwrite(fd, &buf[o], size, off + o); if (error < 0) err(EX_IOERR, "Sync write error"); From owner-svn-src-head@freebsd.org Mon Nov 27 21:30:52 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 424BADE8E3E; Mon, 27 Nov 2017 21:30:52 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E054B6549A; Mon, 27 Nov 2017 21:30:51 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARLUp06080001; Mon, 27 Nov 2017 21:30:51 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARLUoqm078232; Mon, 27 Nov 2017 21:30:50 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711272130.vARLUoqm078232@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Mon, 27 Nov 2017 21:30:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326291 - in head: share/man/man4 share/man/man9 sys/dev/bhnd sys/dev/bhnd/nvram X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: in head: share/man/man4 share/man/man9 sys/dev/bhnd sys/dev/bhnd/nvram X-SVN-Commit-Revision: 326291 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 21:30:52 -0000 Author: landonf Date: Mon Nov 27 21:30:49 2017 New Revision: 326291 URL: https://svnweb.freebsd.org/changeset/base/326291 Log: bhnd(4) update inline documentation comments and man pages. This includes a number of copyedits for the inline code documentation comments, updates to the existing bhnd(4), bhndb(4), bcma(4), and siba(4) man pages, and new man pages for bhnd_chipc(4), bhnd_pmu(4), bhndb_pci(4), bhnd(9), and bhnd_erom(9). Approved by: adrian (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D13021 Added: head/share/man/man4/bhnd_chipc.4 (contents, props changed) head/share/man/man4/bhnd_pmu.4 (contents, props changed) head/share/man/man4/bhndb_pci.4 (contents, props changed) head/share/man/man9/bhnd.9 (contents, props changed) head/share/man/man9/bhnd_erom.9 (contents, props changed) Modified: head/share/man/man4/Makefile head/share/man/man4/bcma.4 head/share/man/man4/bhnd.4 head/share/man/man4/bhndb.4 head/share/man/man4/siba.4 head/share/man/man9/Makefile head/sys/dev/bhnd/bhnd.h head/sys/dev/bhnd/bhnd_bus_if.m head/sys/dev/bhnd/bhnd_erom.c head/sys/dev/bhnd/bhnd_subr.c head/sys/dev/bhnd/nvram/bhnd_nvram_subr.c Modified: head/share/man/man4/Makefile ============================================================================== --- head/share/man/man4/Makefile Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man4/Makefile Mon Nov 27 21:30:49 2017 (r326291) @@ -78,7 +78,10 @@ MAN= aac.4 \ bge.4 \ ${_bhyve.4} \ bhnd.4 \ + bhnd_chipc.4 \ + bhnd_pmu.4 \ bhndb.4 \ + bhndb_pci.4 \ bktr.4 \ blackhole.4 \ bnxt.4 \ Modified: head/share/man/man4/bcma.4 ============================================================================== --- head/share/man/man4/bcma.4 Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man4/bcma.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -32,15 +32,14 @@ .Nm bcma .Nd Broadcom AMBA Backplane driver .Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your kernel configuration file: +To compile this driver into the kernel, add the following lines to the +kernel configuration file: .Bd -ragged -offset indent .Cd "device bhnd" .Cd "device bcma" .Ed .Pp -Alternatively, to load the driver as a module at boot time, -place the following line in +To load the driver as a module at boot, add this line to .Xr loader.conf 5 : .Bd -literal -offset indent bcma_load="YES" @@ -51,8 +50,8 @@ The driver provides .Xr bhnd 4 support for devices using the ARM AMBA-based backplane architecture found -in later Broadcom Home Networking Division's (HND) wireless chipsets and -embedded systems. +in later Broadcom Home Networking Division's network chipsets and embedded +systems. .Pp A common interconnect connects all of the backplane's functional blocks. @@ -64,7 +63,9 @@ The IP cores used in devices were adapted by Broadcom for compatibility with the new interconnect. .Sh SEE ALSO -.Xr bhnd 4 +.Xr bhnd 4 , +.Xr intro 4 , +.Xr siba 4 .Sh HISTORY The .Nm Modified: head/share/man/man4/bhnd.4 ============================================================================== --- head/share/man/man4/bhnd.4 Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man4/bhnd.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -31,14 +31,13 @@ .Nm bhnd .Nd Broadcom Home Networking Division interconnect bus .Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your kernel configuration file: +To compile this driver into the kernel, add the following lines to the +kernel configuration file: .Bd -ragged -offset indent .Cd "device bhnd" .Ed .Pp -Alternatively, to load the driver as a module at boot time, -place the following line in +To load the driver as a module at boot, add this line to .Xr loader.conf 5 : .Bd -literal -offset indent bhnd_load="YES" @@ -69,6 +68,7 @@ BHND driver. .Sh SEE ALSO .Xr bcma 4 , .Xr bhndb 4 , +.Xr intro 4 , .Xr siba 4 .Sh HISTORY The Added: head/share/man/man4/bhnd_chipc.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/bhnd_chipc.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -0,0 +1,81 @@ +.\" Copyright (c) 2017 The FreeBSD Foundation +.\" All rights reserved. +.\" +.\" This documentation was written by Landon Fuller under sponsorship from +.\" the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd October 16, 2017 +.Dt BHND_CHIPC 4 +.Os +.Sh NAME +.Nm bhnd_chipc +.Nd Broadcom Home Networking Division ChipCommon Driver +.Sh SYNOPSIS +To compile this driver into the kernel, add this line to the +kernel configuration file: +.Bd -ragged -offset indent +.Cd "device bhnd" +.Ed +.Pp +To compile driver support for all additional devices found in embedded systems, +add the following additional lines to the kernel configuration file: +.Bd -ragged -offset indent +.Cd "device cfi" +.Cd "device gpio" +.Cd "device spibus" +.Cd "device uart" +.Ed +.Pp +To load the driver as a module at boot, add this line to +.Xr loader.conf 5 : +.Bd -literal -offset indent +bhnd_load="YES" +.Ed +.Sh DESCRIPTION +The +.Nm +driver supports the ChipCommon core found in Broadcom Home Networking +Division network chipsets and embedded systems. +.Pp +The ChipCommon core provides an interface to common hardware facilities, +including device identification, UARTs, CFI and SPI flash, One-time Programmable +(OTP) Memory, and GPIO. +.Sh SEE ALSO +.Xr bhnd 4 , +.Xr intro 4 +.Sh HISTORY +The +.Nm +device driver first appeared in +.Fx 11.0 . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Landon Fuller Aq Mt landonf@FreeBSD.org , +and +.An Michael Zhilin Aq Mt mizhka@FreeBSD.org . Added: head/share/man/man4/bhnd_pmu.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/bhnd_pmu.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -0,0 +1,74 @@ +.\" Copyright (c) 2017 The FreeBSD Foundation +.\" All rights reserved. +.\" +.\" This documentation was written by Landon Fuller under sponsorship from +.\" the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd October 16, 2017 +.Dt BHND_PMU 4 +.Os +.Sh NAME +.Nm bhnd_pmu +.Nd Broadcom Home Networking Division PMU Driver +.Sh SYNOPSIS +To compile this driver into the kernel, add this line to the +kernel configuration file: +.Bd -ragged -offset indent +.Cd "device bhnd" +.Ed +.Pp +To load the driver as a module at boot, add this line to +.Xr loader.conf 5 : +.Bd -literal -offset indent +bhnd_load="YES" +.Ed +.Sh DESCRIPTION +The +.Nm +driver supports the Power Management Unit (PMU) found in Broadcom Home +Networking Division network chipsets and embedded systems. +.Pp +The PMU provides a hardware interface for managing the device's clock and power +topology. +.Sh SEE ALSO +.Xr bhnd 4 , +.Xr intro 4 +.Sh HISTORY +The +.Nm +device driver first appeared in +.Fx 12.0 . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was derived from Broadcom's ISC-licensed Linux PMU drivers, and was +ported to +.Fx +and +.Xr bhnd 4 +by +.An Landon Fuller Aq Mt landonf@FreeBSD.org . Modified: head/share/man/man4/bhndb.4 ============================================================================== --- head/share/man/man4/bhndb.4 Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man4/bhndb.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -1,6 +1,10 @@ -.\" Copyright (c) 2015 Landon Fuller +.\" Copyright (c) 2015 Landon Fuller +.\" Copyright (c) 2017 The FreeBSD Foundation .\" All rights reserved. .\" +.\" Portions of this documentation were written by Landon Fuller +.\" under sponsorship from the FreeBSD Foundation. +.\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: @@ -24,37 +28,41 @@ .\" .\" $FreeBSD$ .\" -.Dd June 3, 2016 +.Dd October 16th, 2017 .Dt BHNDB 4 .Os .Sh NAME .Nm bhndb .Nd Broadcom Home Networking Division interconnect bridge driver .Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your kernel configuration file: +To compile this driver into the kernel, add the following lines to the +kernel configuration file: .Bd -ragged -offset indent .Cd "device bhnd" .Cd "device bhndb" .Ed .Pp -Alternatively, to load the driver as a module at boot time, -place the following line in +To load the driver as a module at boot, add this line to .Xr loader.conf 5 : .Bd -literal -offset indent bhndb_load="YES" -bhndb_pci_load="YES" .Ed .Sh DESCRIPTION The .Nm -driver supports +driver provides .Xr bhnd 4 -host bridge cores such as those used by Broadcom HND PCI, -PCMCIA, and SDIO network adapters. +host bridge support for Broadcom Home Networking Division's wireless chipsets +and network adapters. +.Pp +To enable use for PCI/PCIe systems, see the +.Xr bhndb_pci 4 +driver. .Sh SEE ALSO .Xr bhnd 4 , -.Xr bwn 4 +.Xr bhndb_pci 4 , +.Xr bwn 4 , +.Xr intro 4 .Sh HISTORY The .Nm Added: head/share/man/man4/bhndb_pci.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/bhndb_pci.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -0,0 +1,75 @@ +.\" Copyright (c) 2015 Landon Fuller +.\" Copyright (c) 2017 The FreeBSD Foundation +.\" All rights reserved. +.\" +.\" Portions of this documentation were written by Landon Fuller +.\" under sponsorship from the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd October 16, 2017 +.Dt BHNDB_PCI 4 +.Os +.Sh NAME +.Nm bhndb_pci +.Nd Broadcom Home Networking Division PCI host bridge driver +.Sh SYNOPSIS +To compile this driver into the kernel, add the following lines to the +kernel configuration file: +.Bd -ragged -offset indent +.Cd "device bhnd" +.Cd "device bhndb" +.Cd "device bhndb_pci" +.Cd "device pci" +.Ed +.Pp +To load the driver as a module at boot, add this line to +.Xr loader.conf 5 : +.Bd -literal -offset indent +bhndb_pci_load="YES" +.Ed +.Sh DESCRIPTION +The +.Nm +driver provides +.Xr bhndb 4 +support for the PCI and PCIe host bridge cores found in Broadcom Home Networking +Division's wireless chipsets and network adapters. +.Sh SEE ALSO +.Xr bhnd 4 , +.Xr bhndb 4 , +.Xr bwn 4 , +.Xr intro 4 , +.Xr pci 4 +.Sh HISTORY +The +.Nm +device driver first appeared in +.Fx 11.0 . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Landon Fuller Aq Mt landonf@FreeBSD.org . Modified: head/share/man/man4/siba.4 ============================================================================== --- head/share/man/man4/siba.4 Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man4/siba.4 Mon Nov 27 21:30:49 2017 (r326291) @@ -31,15 +31,14 @@ .Nm siba .Nd Sonic Inc. Silicon Backplane driver .Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your kernel configuration file: +To compile this driver into the kernel, add the following lines to the +kernel configuration file: .Bd -ragged -offset indent .Cd "device bhnd" .Cd "device siba" .Ed .Pp -Alternatively, to load the driver as a module at boot time, -place the following line in +To load the driver as a module at boot, add this line to .Xr loader.conf 5 : .Bd -literal -offset indent siba_load="YES" @@ -68,7 +67,8 @@ host interfaces (PCI, PCMCIA), embedded processors (MI or DMA processors associated with communications cores. .Sh SEE ALSO .Xr bcma 4 , -.Xr bhnd 4 +.Xr bhnd 4 , +.Xr intro 4 .Sh HISTORY The .Nm Modified: head/share/man/man9/Makefile ============================================================================== --- head/share/man/man9/Makefile Mon Nov 27 21:10:50 2017 (r326290) +++ head/share/man/man9/Makefile Mon Nov 27 21:30:49 2017 (r326291) @@ -12,6 +12,8 @@ MAN= accept_filter.9 \ alq.9 \ altq.9 \ atomic.9 \ + bhnd.9 \ + bhnd_erom.9 \ bios.9 \ bitset.9 \ boot.9 \ @@ -444,6 +446,124 @@ MLINKS+=atomic.9 atomic_add.9 \ atomic.9 atomic_subtract.9 \ atomic.9 atomic_swap.9 \ atomic.9 atomic_testandset.9 +MLINKS+=bhnd.9 BHND_MATCH_BOARD_TYPE.9 \ + bhnd.9 BHND_MATCH_BOARD_VENDOR.9 \ + bhnd.9 BHND_MATCH_CHIP_ID.9 \ + bhnd.9 BHND_MATCH_CHIP_PKG.9 \ + bhnd.9 BHND_MATCH_CHIP_REV.9 \ + bhnd.9 BHND_MATCH_CORE_ID.9 \ + bhnd.9 BHND_MATCH_CORE_VENDOR.9 \ + bhnd.9 bhnd_activate_resource.9 \ + bhnd.9 bhnd_alloc_pmu.9 \ + bhnd.9 bhnd_alloc_resource.9 \ + bhnd.9 bhnd_alloc_resource_any.9 \ + bhnd.9 bhnd_alloc_resources.9 \ + bhnd.9 bhnd_board_matches.9 \ + bhnd.9 bhnd_bus_match_child.9 \ + bhnd.9 bhnd_bus_read_1.9 \ + bhnd.9 bhnd_bus_read_2.9 \ + bhnd.9 bhnd_bus_read_4.9 \ + bhnd.9 bhnd_bus_read_stream_1.9 \ + bhnd.9 bhnd_bus_read_stream_2.9 \ + bhnd.9 bhnd_bus_read_stream_4.9 \ + bhnd.9 bhnd_bus_write_1.9 \ + bhnd.9 bhnd_bus_write_2.9 \ + bhnd.9 bhnd_bus_write_4.9 \ + bhnd.9 bhnd_bus_write_stream_1.9 \ + bhnd.9 bhnd_bus_write_stream_2.9 \ + bhnd.9 bhnd_bus_write_stream_4.9 \ + bhnd.9 bhnd_chip_matches.9 \ + bhnd.9 bhnd_core_class.9 \ + bhnd.9 bhnd_core_get_match_desc.9 \ + bhnd.9 bhnd_core_matches.9 \ + bhnd.9 bhnd_core_name.9 \ + bhnd.9 bhnd_cores_equal.9 \ + bhnd.9 bhnd_deactivate_resource.9 \ + bhnd.9 bhnd_decode_port_rid.9 \ + bhnd.9 bhnd_deregister_provider.9 \ + bhnd.9 bhnd_device_lookup.9 \ + bhnd.9 bhnd_device_matches.9 \ + bhnd.9 bhnd_device_quirks.9 \ + bhnd.9 bhnd_driver_get_erom_class.9 \ + bhnd.9 bhnd_enable_clocks.9 \ + bhnd.9 bhnd_find_core_class.9 \ + bhnd.9 bhnd_find_core_name.9 \ + bhnd.9 bhnd_format_chip_id.9 \ + bhnd.9 bhnd_get_attach_type.9 \ + bhnd.9 bhnd_get_chipid.9 \ + bhnd.9 bhnd_get_class.9 \ + bhnd.9 bhnd_get_clock_freq.9 \ + bhnd.9 bhnd_get_clock_latency.9 \ + bhnd.9 bhnd_get_core_index.9 \ + bhnd.9 bhnd_get_core_info.9 \ + bhnd.9 bhnd_get_core_unit.9 \ + bhnd.9 bhnd_get_device.9 \ + bhnd.9 bhnd_get_device_name.9 \ + bhnd.9 bhnd_get_dma_translation.9 \ + bhnd.9 bhnd_get_hwrev.9 \ + bhnd.9 bhnd_get_intr_count.9 \ + bhnd.9 bhnd_get_intr_ivec.9 \ + bhnd.9 bhnd_get_port_count.9 \ + bhnd.9 bhnd_get_port_rid.9 \ + bhnd.9 bhnd_get_region_addr.9 \ + bhnd.9 bhnd_get_region_count.9 \ + bhnd.9 bhnd_get_vendor.9 \ + bhnd.9 bhnd_get_vendor_name.9 \ + bhnd.9 bhnd_hwrev_matches.9 \ + bhnd.9 bhnd_is_hw_suspended.9 \ + bhnd.9 bhnd_is_region_valid.9 \ + bhnd.9 bhnd_map_intr.9 \ + bhnd.9 bhnd_match_core.9 \ + bhnd.9 bhnd_nvram_getvar.9 \ + bhnd.9 bhnd_nvram_getvar_array.9 \ + bhnd.9 bhnd_nvram_getvar_int.9 \ + bhnd.9 bhnd_nvram_getvar_int16.9 \ + bhnd.9 bhnd_nvram_getvar_int32.9 \ + bhnd.9 bhnd_nvram_getvar_int8.9 \ + bhnd.9 bhnd_nvram_getvar_str.9 \ + bhnd.9 bhnd_nvram_getvar_uint.9 \ + bhnd.9 bhnd_nvram_getvar_uint16.9 \ + bhnd.9 bhnd_nvram_getvar_uint32.9 \ + bhnd.9 bhnd_nvram_getvar_uint8.9 \ + bhnd.9 bhnd_nvram_string_array_next.9 \ + bhnd.9 bhnd_read_board_info.9 \ + bhnd.9 bhnd_read_config.9 \ + bhnd.9 bhnd_read_ioctl.9 \ + bhnd.9 bhnd_read_iost.9 \ + bhnd.9 bhnd_register_provider.9 \ + bhnd.9 bhnd_release_ext_rsrc.9 \ + bhnd.9 bhnd_release_pmu.9 \ + bhnd.9 bhnd_release_provider.9 \ + bhnd.9 bhnd_release_resource.9 \ + bhnd.9 bhnd_release_resources.9 \ + bhnd.9 bhnd_request_clock.9 \ + bhnd.9 bhnd_request_ext_rsrc.9 \ + bhnd.9 bhnd_reset_hw.9 \ + bhnd.9 bhnd_retain_provider.9 \ + bhnd.9 bhnd_set_custom_core_desc.9 \ + bhnd.9 bhnd_set_default_core_desc.9 \ + bhnd.9 bhnd_suspend_hw.9 \ + bhnd.9 bhnd_unmap_intr.9 \ + bhnd.9 bhnd_vendor_name.9 \ + bhnd.9 bhnd_write_config.9 \ + bhnd.9 bhnd_write_ioctl.9 +MLINKS+=bhnd_erom.9 bhnd_erom_alloc.9 \ + bhnd_erom.9 bhnd_erom_dump.9 \ + bhnd_erom.9 bhnd_erom_fini_static.9 \ + bhnd_erom.9 bhnd_erom_free.9 \ + bhnd_erom.9 bhnd_erom_free_core_table.9 \ + bhnd_erom.9 bhnd_erom_get_core_table.9 \ + bhnd_erom.9 bhnd_erom_init_static.9 \ + bhnd_erom.9 bhnd_erom_io.9 \ + bhnd_erom.9 bhnd_erom_io_fini.9 \ + bhnd_erom.9 bhnd_erom_io_map.9 \ + bhnd_erom.9 bhnd_erom_io_read.9 \ + bhnd_erom.9 bhnd_erom_iobus_init.9 \ + bhnd_erom.9 bhnd_erom_iores_new.9 \ + bhnd_erom.9 bhnd_erom_lookup_core.9 \ + bhnd_erom.9 bhnd_erom_lookup_core_addr.9 \ + bhnd_erom.9 bhnd_erom_probe.9 \ + bhnd_erom.9 bhnd_erom_probe_driver_classes.9 MLINKS+=bitset.9 BITSET_DEFINE.9 \ bitset.9 BITSET_T_INITIALIZER.9 \ bitset.9 BITSET_FSET.9 \ Added: head/share/man/man9/bhnd.9 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man9/bhnd.9 Mon Nov 27 21:30:49 2017 (r326291) @@ -0,0 +1,2644 @@ +.\" Copyright (c) 2015-2016 Landon Fuller +.\" Copyright (c) 2017 The FreeBSD Foundation +.\" All rights reserved. +.\" +.\" Portions of this documentation were written by Landon Fuller +.\" under sponsorship from the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd November 9, 2017 +.Dt BHND 9 +.Os +.Sh NAME +.Nm bhnd +.Nd BHND driver programming interface +.Sh SYNOPSIS +.In dev/bhnd/bhnd.h +.\" +.Ss Bus Resource Functions +.Ft int +.Fo bhnd_activate_resource +.Fa "device_t dev" "int type" "int rid" "struct bhnd_resource *r" +.Fc +.Ft "struct bhnd_resource *" +.Fo bhnd_alloc_resource +.Fa "device_t dev" "int type" "int *rid" "rman_res_t start" "rman_res_t end" +.Fa "rman_res_t count" "u_int flags" +.Fc +.Ft "struct bhnd_resource *" +.Fo bhnd_alloc_resource_any +.Fa "device_t dev" "int type" "int *rid" "u_int flags" +.Fc +.Ft int +.Fo bhnd_alloc_resources +.Fa "device_t dev" "struct resource_spec *rs" "struct bhnd_resource **res" +.Fc +.Ft int +.Fo bhnd_deactivate_resource +.Fa "device_t dev" "int type" "int rid" "struct bhnd_resource *r" +.Fc +.Ft int +.Fo bhnd_release_resource +.Fa "device_t dev" "int type" "int rid" "struct bhnd_resource *r" +.Fc +.Ft void +.Fo bhnd_release_resources +.Fa "device_t dev" "const struct resource_spec *rs" +.Fa "struct bhnd_resource **res" +.Fc +.\" +.Ss "Bus Space Functions" +.Ft void +.Fo bhnd_bus_barrier +.Fa "struct bhnd_resource *r" "bus_size_t offset" +.Fa "bus_size_t length" "int flags" +.Fc +.Ft uint8_t +.Fn bhnd_bus_read_1 "struct bhnd_resource *r" "bus_size_t offset" +.Ft uint16_t +.Fn bhnd_bus_read_2 "struct bhnd_resource *r" "bus_size_t offset" +.Ft uint32_t +.Fn bhnd_bus_read_4 "struct bhnd_resource *r" "bus_size_t offset" +.Ft void +.Fo bhnd_bus_read_multi_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_multi_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_multi_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_multi_stream_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_multi_stream_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_multi_stream_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_stream_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_stream_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_read_region_stream_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fn bhnd_bus_read_stream_1 "struct bhnd_resource *r" "bus_size_t offset" +.Ft void +.Fn bhnd_bus_read_stream_2 "struct bhnd_resource *r" "bus_size_t offset" +.Ft uint32_t +.Fn bhnd_bus_read_stream_4 "struct bhnd_resource *r" "bus_size_t offset" +.Ft void +.Fo bhnd_bus_set_multi_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_set_multi_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_set_multi_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_set_region_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_set_region_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_set_region_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t value" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fn bhnd_bus_write_1 "struct bhnd_resource *r" "uint8_t value" +.Ft void +.Fn bhnd_bus_write_2 "struct bhnd_resource *r" "uint16_t value" +.Ft void +.Fn bhnd_bus_write_4 "struct bhnd_resource *r" "uint32_t value" +.Ft void +.Fo bhnd_bus_write_multi_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_multi_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_multi_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_multi_stream_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_multi_stream_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_multi_stream_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_stream_1 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint8_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_stream_2 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint16_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fo bhnd_bus_write_region_stream_4 +.Fa "struct bhnd_resource *r" "bus_size_t offset" "uint32_t *datap" +.Fa "bus_size_t count" +.Fc +.Ft void +.Fn bhnd_bus_write_stream_1 "struct bhnd_resource *r" "uint8_t value" +.Ft void +.Fn bhnd_bus_write_stream_2 "struct bhnd_resource *r" "uint16_t value" +.Ft void +.Fn bhnd_bus_write_stream_4 "struct bhnd_resource *r" "uint32_t value" +.\" +.Ss "Device Configuration Functions" +.Ft int +.Fn bhnd_read_ioctl "device_t dev" "uint16_t *ioctl" +.Ft int +.Fn bhnd_write_ioctl "device_t dev" "uint16_t value" "uint16_t mask" +.Ft int +.Fn bhnd_read_iost "device_t dev" "uint16_t *iost" +.Ft uint32_t +.Fo bhnd_read_config +.Fa "device_t dev" "bus_size_t offset" "void *value" "u_int width" +.Fc +.Ft int +.Fo bhnd_write_config +.Fa "device_t dev" "bus_size_t offset" "const void *value" "u_int width" +.Fc +.Ft int +.Fn bhnd_reset_hw "device_t dev" "uint16_t ioctl" +.Ft int +.Fn bhnd_suspend_hw "device_t dev" +.Ft bool +.Fn bhnd_is_hw_suspended "device_t dev" +.\" +.Ss "Device Information Functions" +.Ft bhnd_attach_type +.Fo bhnd_get_attach_type +.Fa "device_t dev" +.Fc +.Ft "const struct bhnd_chipid *" +.Fo bhnd_get_chipid +.Fa "device_t dev" +.Fc +.Ft bhnd_devclass_t +.Fo bhnd_get_class +.Fa "device_t dev" +.Fc +.Ft u_int +.Fo bhnd_get_core_index +.Fa "device_t dev" +.Fc +.Ft "struct bhnd_core_info" +.Fo bhnd_get_core_info +.Fa "device_t dev" +.Fc +.Ft int +.Fo bhnd_get_core_unit +.Fa "device_t dev" +.Fc +.Ft uint16_t +.Fo bhnd_get_device +.Fa "device_t dev" +.Fc +.Ft const char * +.Fo bhnd_get_device_name +.Fa "device_t dev" +.Fc +.Ft uint8_t +.Fo bhnd_get_hwrev +.Fa "device_t dev" +.Fc +.Ft uint16_t +.Fo bhnd_get_vendor +.Fa "device_t dev" +.Fc +.Ft const char * +.Fo bhnd_get_vendor_name +.Fa "device_t dev" +.Fc +.Ft int +.Fo bhnd_read_board_info +.Fa "device_t dev" "struct bhnd_board_info *info" +.Fc +.\" +.Ss "Device Matching Functions" +.Ft bool +.Fo bhnd_board_matches +.Fa "const struct bhnd_board_info *board" "const struct bhnd_board_match *desc" +.Fc +.Ft device_t +.Fo bhnd_bus_match_child +.Fa "device_t bus" "const struct bhnd_core_match *desc" +.Fc +.Ft bool +.Fo bhnd_chip_matches +.Fa "const struct bhnd_chipid *chip" "const struct bhnd_chip_match *desc" +.Fc +.Ft "struct bhnd_core_match" +.Fo bhnd_core_get_match_desc +.Fa "const struct bhnd_core_info *core" +.Fc +.Ft bool +.Fo bhnd_core_matches +.Fa "const struct bhnd_core_info *core" "const struct bhnd_core_match *desc" +.Fc +.Ft bool +.Fo bhnd_cores_equal +.Fa "const struct bhnd_core_info *lhs" "const struct bhnd_core_info *rhs" +.Fc +.Ft bool +.Fo bhnd_hwrev_matches +.Fa "uint16_t hwrev" "const struct bhnd_hwrev_match *desc" +.Fc +.Ft "const struct bhnd_core_info *" +.Fo bhnd_match_core +.Fa "const struct bhnd_core_info *cores" "u_int num_cores" +.Fa "const struct bhnd_core_match *desc" +.Fc +.\" +.Ss "Device Table Functions" +.Ft "const struct bhnd_device *" +.Fo bhnd_device_lookup +.Fa "device_t dev" "const struct bhnd_device *table" "size_t entry_size" +.Fc +.Ft bool +.Fo bhnd_device_matches +.Fa "device_t dev" "const struct bhnd_device_match *desc" +.Fc +.Ft uint32_t +.Fo bhnd_device_quirks +.Fa "device_t dev" "const struct bhnd_device *table" "size_t entry_size" +.Fc +.Fo BHND_BOARD_QUIRK +.Fa "board" "flags" +.Fc +.Fo BHND_CHIP_QUIRK +.Fa "chip" "hwrev" "flags" +.Fc +.Fo BHND_CORE_QUIRK +.Fa "hwrev" "flags" +.Fc +.Fo BHND_DEVICE +.Fa "vendor" "device" "desc" "quirks" "..." +.Fc +.Fo BHND_DEVICE_IS_END +.Fa "struct bhnd_device *d" +.Fc +.Fo BHND_DEVICE_QUIRK_IS_END +.Fa "struct bhnd_device_quirk *q" +.Fc +.Fo BHND_PKG_QUIRK +.Fa "chip" "pkg" "flags" +.Fc +.Bd -literal +struct bhnd_device_quirk { + struct bhnd_device_match desc; + uint32_t quirks; +}; +.Ed +.Bd -literal +struct bhnd_device { + const struct bhnd_device_match core; + const char *desc; + const struct bhnd_device_quirk *quirks_table; + uint32_t device_flags; +}; +.Ed +.Bd -literal +enum { + BHND_DF_ANY = 0, + BHND_DF_HOSTB = (1 << 0), + BHND_DF_SOC = (1 << 1), + BHND_DF_ADAPTER = (1 << 2) +}; +.Ed +.Bd -literal +#define BHND_DEVICE_END { { BHND_MATCH_ANY }, NULL, NULL, 0 } +.Ed +.Bd -literal +#define BHND_DEVICE_QUIRK_END { { BHND_MATCH_ANY }, 0 } +.Ed +.\" +.Ss "DMA Address Translation Functions" +.Ft int +.Fo bhnd_get_dma_translation +.Fa "device_t dev" "u_int width" "uint32_t flags" "bus_dma_tag_t *dmat" +.Fa "struct bhnd_dma_translation *translation" +.Fc +.Bd -literal +struct bhnd_dma_translation { + bhnd_addr_t base_addr; + bhnd_addr_t addr_mask; + bhnd_addr_t addrext_mask; + uint32_t flags; +}; +.Ed +.Bd -literal +typedef enum { + BHND_DMA_ADDR_30BIT = 30, + BHND_DMA_ADDR_32BIT = 32, + BHND_DMA_ADDR_64BIT = 64 *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Mon Nov 27 21:41:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BCD3DEA468; Mon, 27 Nov 2017 21:41:45 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk0-x244.google.com (mail-qk0-x244.google.com [IPv6:2607:f8b0:400d:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 223B965E4F; Mon, 27 Nov 2017 21:41:45 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk0-x244.google.com with SMTP id d125so34472002qkc.12; Mon, 27 Nov 2017 13:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jwQN6L2YBx+q5tlF8a7AEIs5wpCi06TS6WxV0PcVTng=; b=GyZdvKdEcma9D21M29yq29nt+MSX7Or/hbIl5YdxCT/rM/6d9L2Dm/L5CvRSzIPW+N rAZRx2oMSQDzp/5IQ0pEAC1jnriZIQlc5qI99acwxRAqrDMhHhbLl7MylpWgLI4PWmA+ V+p59F+8Z2FeVBsF0OroyRdRNziRQXA8H/ys+7xFIs6Ts/OtzxcmVfwt3ezlzIoK/tJ8 FLb/jBvOYrR5V6froXPPQw9Ny27wQ3YAB21/R2FuR5NDQxIC5VA+5bbwtReneqevTU6d d4LPjeGxcYzPR94umlLbnLBr5r4ophezCS+8j7WMxSsMw5gL/QGHvx9IC+pUZ0vfCicR S/gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jwQN6L2YBx+q5tlF8a7AEIs5wpCi06TS6WxV0PcVTng=; b=GkeYFhUmYq7tIyy9TwnmUIjXs5SS2aV8o2CZSUtJwcIVAf71jTO2XuvsPTkBSRqdrm 3yDNqPWK3D6WTOzXTPjqyiugn7o/bpQXa84TLuR8z8PvxXOv6hEZoKjWN4BWntziuvX/ ugw9T4n8bZsN51zpHVzvmXlH/S52Hbv2kfSmTSfxUU26Osx8TUZ2StsWZ7YWsJjIhlxB mMMponZUbl0X/nyKpQ2TeV/ZpgPSdlVnaEFOjH+SuxAjBKxSIcgK03ceVo8ujw/fDKfT h3JP4naL6YlucbhlBE7H+UJdgRCBVsmKkc95KZy0iQh53HNvMjU9Oz4qeutC7a3nB/v4 wtfw== X-Gm-Message-State: AJaThX7nD31rrju38MRK5l8eYbIWs9SNfiw9QGTrs3KfZbtMsbX21i5m BVdm5q5onDJkKQRVsqRjr9Z2tA== X-Google-Smtp-Source: AGs4zMbTAOITcsyj+pEo8d8fCD+0pWcZ0MiWSYVVz5MIVwWAMtcF9Ztg+oiCfMhDjiVnC24XXgoEjg== X-Received: by 10.55.65.70 with SMTP id o67mr25048525qka.48.1511818903917; Mon, 27 Nov 2017 13:41:43 -0800 (PST) Received: from raichu (toroon0560w-lp140-01-69-159-38-22.dsl.bell.ca. [69.159.38.22]) by smtp.gmail.com with ESMTPSA id q12sm21036542qtk.32.2017.11.27.13.41.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 13:41:42 -0800 (PST) Sender: Mark Johnston Date: Mon, 27 Nov 2017 16:41:40 -0500 From: Mark Johnston To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326286 - head/sys/cddl/dev/dtrace Message-ID: <20171127214140.GB75832@raichu> References: <201711271842.vARIgNCk007369@repo.freebsd.org> <2717040.9stBD4iAp4@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2717040.9stBD4iAp4@ralph.baldwin.cx> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 21:41:45 -0000 On Mon, Nov 27, 2017 at 11:28:07AM -0800, John Baldwin wrote: > On Monday, November 27, 2017 06:42:23 PM Mark Johnston wrote: > > Author: markj > > Date: Mon Nov 27 18:42:23 2017 > > New Revision: 326286 > > URL: https://svnweb.freebsd.org/changeset/base/326286 > > > > Log: > > Don't use pcpu_find() to determine if a CPU ID is valid. > > > > This addresses assertion failures after r326218. > > I'd perhaps rather revert the assertion as per my other mail? I considered waiting for a resolution of that thread, but it seems to me that using CPU_FOREACH()/CPU_ABSENT() is more idiomatic anyway? We already use CPU_FOREACH() in a few places in dtrace.c, and dtrace_ioctl.c is meant to be a fork of the ioctl handler from illumos, i.e., we shouldn't make much effort to avoid diverging from upstream. From owner-svn-src-head@freebsd.org Mon Nov 27 22:05:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8808CDEAFF5; Mon, 27 Nov 2017 22:05:02 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73C8566D56; Mon, 27 Nov 2017 22:05:02 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from helicon.physics.ucla.edu (helicon.physics.ucla.edu [169.232.156.253]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vARM4xHf031729 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Nov 2017 14:04:59 -0800 Subject: Re: svn commit: r326218 - head/sys/kern To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <3170692.kvv90QqB0X@ralph.baldwin.cx> <14322447.103fKFTi3y@ralph.baldwin.cx> From: Nathan Whitehorn Message-ID: <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> Date: Mon, 27 Nov 2017 14:04:59 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <14322447.103fKFTi3y@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVaRTVsGyDOCIfE+C4+QIqB8TDd+Xzoer05KfGZMTwcXdwaya5nVJ1z8eWFEsbqD7WVT9yJaO9OfxInVEh1lMolSfIOKBVI18Mo= X-Sonic-ID: C;5izDAr/T5xGUSesnWtmBlw== M;RgfyAr/T5xGUSesnWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 22:05:02 -0000 On 11/27/17 11:31, John Baldwin wrote: > On Sunday, November 26, 2017 10:06:56 PM Nathan Whitehorn wrote: >> On 11/26/17 20:50, John Baldwin wrote: >>> On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: >>>> Author: nwhitehorn >>>> Date: Sat Nov 25 23:41:05 2017 >>>> New Revision: 326218 >>>> URL: https://svnweb.freebsd.org/changeset/base/326218 >>>> >>>> Log: >>>> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs >>>> are numbered densely from there to n_cpus. >>>> >>>> MFC after: 1 month >>>> >>>> Modified: >>>> head/sys/kern/kern_clock.c >>>> head/sys/kern/kern_clocksource.c >>>> head/sys/kern/kern_shutdown.c >>>> head/sys/kern/kern_timeout.c >>>> head/sys/kern/sched_ule.c >>>> head/sys/kern/subr_pcpu.c >>>> >>>> Modified: head/sys/kern/kern_clock.c >>>> ============================================================================== >>>> --- head/sys/kern/kern_clock.c Sat Nov 25 23:23:24 2017 (r326217) >>>> +++ head/sys/kern/kern_clock.c Sat Nov 25 23:41:05 2017 (r326218) >>>> @@ -573,7 +573,9 @@ hardclock_cnt(int cnt, int usermode) >>>> void >>>> hardclock_sync(int cpu) >>>> { >>>> - int *t = DPCPU_ID_PTR(cpu, pcputicks); >>>> + int *t; >>>> + KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu)); >>> Blank line before the KASSERT() perhaps? >>> >>>> + t = DPCPU_ID_PTR(cpu, pcputicks); >>>> >>>> *t = ticks; >>> Probably don't need this blank line though? >> Those are both good ideas. >> >>>> } >>>> >>>> Modified: head/sys/kern/sched_ule.c >>>> ============================================================================== >>>> --- head/sys/kern/sched_ule.c Sat Nov 25 23:23:24 2017 (r326217) >>>> +++ head/sys/kern/sched_ule.c Sat Nov 25 23:41:05 2017 (r326218) >>>> @@ -2444,6 +2451,7 @@ sched_add(struct thread *td, int flags) >>>> * Pick the destination cpu and if it isn't ours transfer to the >>>> * target cpu. >>>> */ >>>> + td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ >>>> cpu = sched_pickcpu(td, flags); >>> It is not obvious why every sched_add() needs this once you've fixed thread0. >>> Shouldn't new threads just inherit from thread0's already-fixed value? If not, >>> perhaps fix thread0's value sooner? >> That's a fair point. I don't remember the rationale for this now; the >> changes are over a year old from the powernv branch. I do remember >> setting thread0's CPU early not working, but have forgotten why. I will >> try to remember... >> >>>> tdq = sched_setcpu(td, cpu, flags); >>>> tdq_add(tdq, td, flags); >>>> >>>> Modified: head/sys/kern/subr_pcpu.c >>>> ============================================================================== >>>> --- head/sys/kern/subr_pcpu.c Sat Nov 25 23:23:24 2017 (r326217) >>>> +++ head/sys/kern/subr_pcpu.c Sat Nov 25 23:41:05 2017 (r326218) >>>> @@ -279,6 +279,8 @@ pcpu_destroy(struct pcpu *pcpu) >>>> struct pcpu * >>>> pcpu_find(u_int cpuid) >>>> { >>>> + KASSERT(cpuid_to_pcpu[cpuid] != NULL, >>>> + ("Getting uninitialized PCPU %d", cpuid)); >>> This KASSERT seems unnecessary? If the caller uses an invalid one, it will >>> just fault anyway. >> It won't necessarily fault. For example, on PowerPC, NULL is a valid >> address that does not trigger faults. It's unfortunately quite >> complicated to fix this in a general way. Even if it did fault, this >> makes the fault more informative (and has found at least one bug on >> arm64 already). > Given the large number of bugs caused by NULL pointers, having NULL pointers > "work" doesn't seem like a long-term tenable solution. You'd have to go add > explicit KASSERT()'s to every pointer indirection in the kernel which seems > unworkable. Also, adding the KASSERT() here has broken other places that were > depending on the existing behavior of pcpu_find() (see markj@'s commit to dtrace > today). > Unfortunately, it's unfixable on ppc64. Apologies for breaking dtrace! Would you like me to remove the KASSERT() here? I'm happy to do that in a few hours (unless you beat me to it first) -- although I do think that explicitly checking for CPU_ABSENT is a much better behavior in client code than checking the return value of pcpu_find(). -Nathan From owner-svn-src-head@freebsd.org Mon Nov 27 22:13:32 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFD06DEB25F; Mon, 27 Nov 2017 22:13:32 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 874B36723E; Mon, 27 Nov 2017 22:13:32 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARMDVdR099242; Mon, 27 Nov 2017 22:13:31 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARMDVit099232; Mon, 27 Nov 2017 22:13:31 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711272213.vARMDVit099232@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Mon, 27 Nov 2017 22:13:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326292 - in head: share/man/man9 sys/dev/bhnd sys/dev/bhnd/bcma sys/dev/bhnd/cores/usb sys/dev/bhnd/siba X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: in head: share/man/man9 sys/dev/bhnd sys/dev/bhnd/bcma sys/dev/bhnd/cores/usb sys/dev/bhnd/siba X-SVN-Commit-Revision: 326292 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 22:13:32 -0000 Author: landonf Date: Mon Nov 27 22:13:30 2017 New Revision: 326292 URL: https://svnweb.freebsd.org/changeset/base/326292 Log: bhnd(4): Fix bcma/siba core reset behavior Add missing support for specifying I/O control flags during core reset, and resolve a number of siba(4)-specific reset issues: - Add missing check for target reject flags in siba_is_hw_suspended(). - Remove incorrect wait on SIBA_TMH_BUSY when modifying any target state register; this should only be done when waiting for initiated transactions to clear. - Add missing wait on SIBA_IM_BY when asserting SIBA_IM_RJ. - Overwrite any previously set SIBA_TML_REJ flag when bringing the core out of reset. This fixes a lockup that occured when we brought up a core (after reboot) that had previously been placed into RESET by siba_bwn(4). Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D13039 Modified: head/share/man/man9/bhnd.9 head/sys/dev/bhnd/bcma/bcma.c head/sys/dev/bhnd/bcma/bcma_subr.c head/sys/dev/bhnd/bhnd.h head/sys/dev/bhnd/bhnd_bus_if.m head/sys/dev/bhnd/cores/usb/bhnd_usb.c head/sys/dev/bhnd/siba/siba.c head/sys/dev/bhnd/siba/siba_subr.c head/sys/dev/bhnd/siba/sibavar.h Modified: head/share/man/man9/bhnd.9 ============================================================================== --- head/share/man/man9/bhnd.9 Mon Nov 27 21:30:49 2017 (r326291) +++ head/share/man/man9/bhnd.9 Mon Nov 27 22:13:30 2017 (r326292) @@ -266,9 +266,9 @@ .Fa "device_t dev" "bus_size_t offset" "const void *value" "u_int width" .Fc .Ft int -.Fn bhnd_reset_hw "device_t dev" "uint16_t ioctl" +.Fn bhnd_reset_hw "device_t dev" "uint16_t ioctl" "uint16_t reset_ioctl" .Ft int -.Fn bhnd_suspend_hw "device_t dev" +.Fn bhnd_suspend_hw "device_t dev" "uint16_t ioctl" .Ft bool .Fn bhnd_is_hw_suspended "device_t dev" .\" @@ -1054,7 +1054,10 @@ function transitions the device .Fa dev to a low power .Dq RESET -state. +state, writing +.Fa ioctl +to the I/O control flags of +.Fa dev . The hardware may be brought out of this state using .Fn bhnd_reset_hw . .Pp @@ -1062,10 +1065,14 @@ The .Fn bhnd_reset_hw function first transitions the device .Fa dev -to a low power RESET state, and then brings the device out of RESET, writing +to a low power RESET state, writing +.Fa ioctl_reset +to the I/O control flags +of +.Fa dev , +and then brings the device out of RESET, writing .Fa ioctl -to the I/O control flags of -.Fa dev . +to the device's I/O control flags. .Pp The .Fn bhnd_is_hw_suspended Modified: head/sys/dev/bhnd/bcma/bcma.c ============================================================================== --- head/sys/dev/bhnd/bcma/bcma.c Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/bcma/bcma.c Mon Nov 27 22:13:30 2017 (r326292) @@ -296,22 +296,22 @@ bcma_is_hw_suspended(device_t dev, device_t child) } static int -bcma_reset_hw(device_t dev, device_t child, uint16_t ioctl) +bcma_reset_hw(device_t dev, device_t child, uint16_t ioctl, + uint16_t reset_ioctl) { - struct bcma_devinfo *dinfo; - struct bhnd_core_pmu_info *pm; - struct bhnd_resource *r; - int error; + struct bcma_devinfo *dinfo; + struct bhnd_resource *r; + uint16_t clkflags; + int error; if (device_get_parent(child) != dev) return (EINVAL); dinfo = device_get_ivars(child); - pm = dinfo->pmu_info; - /* We require exclusive control over BHND_IOCTL_CLK_EN and - * BHND_IOCTL_CLK_FORCE. */ - if (ioctl & (BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE)) + /* We require exclusive control over BHND_IOCTL_CLK_(EN|FORCE) */ + clkflags = BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE; + if (ioctl & clkflags) return (EINVAL); /* Can't suspend the core without access to the agent registers */ @@ -319,7 +319,7 @@ bcma_reset_hw(device_t dev, device_t child, uint16_t i return (ENODEV); /* Place core into known RESET state */ - if ((error = BHND_BUS_SUSPEND_HW(dev, child))) + if ((error = bhnd_suspend_hw(child, reset_ioctl))) return (error); /* @@ -329,9 +329,7 @@ bcma_reset_hw(device_t dev, device_t child, uint16_t i * - Force clock distribution to ensure propagation throughout the * core. */ - error = bhnd_write_ioctl(child, - ioctl | BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE, UINT16_MAX); - if (error) + if ((error = bhnd_write_ioctl(child, ioctl | clkflags, UINT16_MAX))) return (error); /* Bring the core out of reset */ @@ -347,11 +345,11 @@ bcma_reset_hw(device_t dev, device_t child, uint16_t i } static int -bcma_suspend_hw(device_t dev, device_t child) +bcma_suspend_hw(device_t dev, device_t child, uint16_t ioctl) { struct bcma_devinfo *dinfo; struct bhnd_resource *r; - uint32_t rst; + uint16_t clkflags; int error; if (device_get_parent(child) != dev) @@ -359,6 +357,11 @@ bcma_suspend_hw(device_t dev, device_t child) dinfo = device_get_ivars(child); + /* We require exclusive control over BHND_IOCTL_CLK_(EN|FORCE) */ + clkflags = BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE; + if (ioctl & clkflags) + return (EINVAL); + /* Can't suspend the core without access to the agent registers */ if ((r = dinfo->res_agent) == NULL) return (ENODEV); @@ -367,17 +370,12 @@ bcma_suspend_hw(device_t dev, device_t child) if ((error = bcma_dmp_wait_reset(child, dinfo))) return (error); - /* Already in reset? */ - rst = bhnd_bus_read_4(r, BCMA_DMP_RESETCTRL); - if (rst & BCMA_DMP_RC_RESET) - return (0); - - /* Put core into reset */ + /* Put core into reset (if not already in reset) */ if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET))) return (error); - /* Clear core flags */ - if ((error = bhnd_write_ioctl(child, 0x0, UINT16_MAX))) + /* Write core flags (and clear CLK_EN/CLK_FORCE) */ + if ((error = bhnd_write_ioctl(child, ioctl, ~clkflags))) return (error); return (0); Modified: head/sys/dev/bhnd/bcma/bcma_subr.c ============================================================================== --- head/sys/dev/bhnd/bcma/bcma_subr.c Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/bcma/bcma_subr.c Mon Nov 27 22:13:30 2017 (r326292) @@ -594,8 +594,15 @@ bcma_dmp_wait_reset(device_t child, struct bcma_devinf int bcma_dmp_write_reset(device_t child, struct bcma_devinfo *dinfo, uint32_t value) { + uint32_t rst; + if (dinfo->res_agent == NULL) return (ENODEV); + + /* Already in requested reset state? */ + rst = bhnd_bus_read_4(dinfo->res_agent, BCMA_DMP_RESETCTRL); + if (rst == value) + return (0); bhnd_bus_write_4(dinfo->res_agent, BCMA_DMP_RESETCTRL, value); bhnd_bus_read_4(dinfo->res_agent, BCMA_DMP_RESETCTRL); /* read-back */ Modified: head/sys/dev/bhnd/bhnd.h ============================================================================== --- head/sys/dev/bhnd/bhnd.h Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/bhnd.h Mon Nov 27 22:13:30 2017 (r326292) @@ -818,23 +818,27 @@ bhnd_is_hw_suspended(device_t dev) } /** - * Place the bhnd(4) device's hardware into a reset state, and then bring the - * hardware out of reset with BHND_IOCTL_CLK_EN and @p ioctl flags set. + * Place the bhnd(4) device's hardware into a low-power RESET state with + * the @p reset_ioctl I/O control flags set, and then bring the hardware out of + * RESET with the @p ioctl I/O control flags set. * - * Any clock or resource PMU requests previously made by @p dev will be + * Any clock or resource PMU requests previously made by @p child will be * invalidated. * * @param dev The device to be reset. - * @param ioctl Device-specific core ioctl flags to be supplied on reset - * (see BHND_IOCTL_*). + * @param ioctl Device-specific I/O control flags to be set when bringing + * the core out of its RESET state (see BHND_IOCTL_*). + * @param reset_ioctl Device-specific I/O control flags to be set when placing + * the core into its RESET state. * * @retval 0 success * @retval non-zero error */ static inline int -bhnd_reset_hw(device_t dev, uint16_t ioctl) +bhnd_reset_hw(device_t dev, uint16_t ioctl, uint16_t reset_ioctl) { - return (BHND_BUS_RESET_HW(device_get_parent(dev), dev, ioctl)); + return (BHND_BUS_RESET_HW(device_get_parent(dev), dev, ioctl, + reset_ioctl)); } /** @@ -851,9 +855,9 @@ bhnd_reset_hw(device_t dev, uint16_t ioctl) * @retval non-zero error */ static inline int -bhnd_suspend_hw(device_t dev) +bhnd_suspend_hw(device_t dev, uint16_t ioctl) { - return (BHND_BUS_SUSPEND_HW(device_get_parent(dev), dev)); + return (BHND_BUS_SUSPEND_HW(device_get_parent(dev), dev, ioctl)); } /** Modified: head/sys/dev/bhnd/bhnd_bus_if.m ============================================================================== --- head/sys/dev/bhnd/bhnd_bus_if.m Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/bhnd_bus_if.m Mon Nov 27 22:13:30 2017 (r326292) @@ -96,7 +96,8 @@ CODE { } static int - bhnd_bus_null_reset_hw(device_t dev, device_t child, uint16_t ioctl) + bhnd_bus_null_reset_hw(device_t dev, device_t child, uint16_t ioctl, + uint16_t reset_ioctl) { panic("bhnd_bus_reset_hw unimplemented"); } @@ -624,16 +625,19 @@ METHOD bool is_hw_suspended { } DEFAULT bhnd_bus_null_is_hw_suspended; /** - * Place the bhnd(4) device's hardware into a reset state, and then bring the - * hardware out of reset with BHND_IOCTL_CLK_EN and @p ioctl flags set. + * Place the bhnd(4) device's hardware into a low-power RESET state with + * the @p reset_ioctl I/O control flags set, and then bring the hardware out of + * RESET with the @p ioctl I/O control flags set. * * Any clock or resource PMU requests previously made by @p child will be * invalidated. * * @param dev The bhnd bus parent of @p child. * @param child The device to be reset. - * @param ioctl Device-specific core ioctl flags to be supplied on reset - * (see BHND_IOCTL_*). + * @param ioctl Device-specific I/O control flags to be set when bringing + * the core out of its RESET state (see BHND_IOCTL_*). + * @param reset_ioctl Device-specific I/O control flags to be set when placing + * the core into its RESET state. * * @retval 0 success * @retval non-zero error @@ -642,18 +646,21 @@ METHOD int reset_hw { device_t dev; device_t child; uint16_t ioctl; + uint16_t reset_ioctl; } DEFAULT bhnd_bus_null_reset_hw; /** - * Suspend @p child's hardware in a low-power reset state. + * Suspend @p child's hardware in a low-power RESET state. * * Any clock or resource PMU requests previously made by @p dev will be * invalidated. * - * The hardware may be brought out of reset via bhnd_reset_hw(). + * The hardware may be brought out of RESET via bhnd_reset_hw(). * * @param dev The bhnd bus parent of @p child. * @param dev The device to be suspended. + * @param ioctl Device-specific I/O control flags to be set when placing + * the core into its RESET state (see BHND_IOCTL_*). * * @retval 0 success * @retval non-zero error @@ -661,6 +668,7 @@ METHOD int reset_hw { METHOD int suspend_hw { device_t dev; device_t child; + uint16_t ioctl; } DEFAULT bhnd_bus_null_suspend_hw; /** Modified: head/sys/dev/bhnd/cores/usb/bhnd_usb.c ============================================================================== --- head/sys/dev/bhnd/cores/usb/bhnd_usb.c Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/cores/usb/bhnd_usb.c Mon Nov 27 22:13:30 2017 (r326292) @@ -98,7 +98,7 @@ bhnd_usb_attach(device_t dev) sc = device_get_softc(dev); - bhnd_reset_hw(dev, 0); + bhnd_reset_hw(dev, 0, 0); /* * Allocate the resources which the parent bus has already Modified: head/sys/dev/bhnd/siba/siba.c ============================================================================== --- head/sys/dev/bhnd/siba/siba.c Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/siba/siba.c Mon Nov 27 22:13:30 2017 (r326292) @@ -603,8 +603,9 @@ siba_write_ioctl(device_t dev, device_t child, uint16_ ts_mask = (mask << SIBA_TML_SICF_SHIFT) & SIBA_TML_SICF_MASK; ts_low = (value << SIBA_TML_SICF_SHIFT) & ts_mask; - return (siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - ts_low, ts_mask)); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, + ts_low, ts_mask); + return (0); } static bool @@ -626,6 +627,10 @@ siba_is_hw_suspended(device_t dev, device_t child) if (ts_low & SIBA_TML_RESET) return (true); + /* Is target reject enabled? */ + if (ts_low & SIBA_TML_REJ_MASK) + return (true); + /* Is core clocked? */ ioctl = SIBA_REG_GET(ts_low, TML_SICF); if (!(ioctl & BHND_IOCTL_CLK_EN)) @@ -635,11 +640,13 @@ siba_is_hw_suspended(device_t dev, device_t child) } static int -siba_reset_hw(device_t dev, device_t child, uint16_t ioctl) +siba_reset_hw(device_t dev, device_t child, uint16_t ioctl, + uint16_t reset_ioctl) { struct siba_devinfo *dinfo; struct bhnd_resource *r; uint32_t ts_low, imstate; + uint16_t clkflags; int error; if (device_get_parent(child) != dev) @@ -651,66 +658,60 @@ siba_reset_hw(device_t dev, device_t child, uint16_t i if ((r = dinfo->cfg_res[0]) == NULL) return (ENODEV); - /* We require exclusive control over BHND_IOCTL_CLK_EN and - * BHND_IOCTL_CLK_FORCE. */ - if (ioctl & (BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE)) + /* We require exclusive control over BHND_IOCTL_CLK_(EN|FORCE) */ + clkflags = BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE; + if (ioctl & clkflags) return (EINVAL); /* Place core into known RESET state */ - if ((error = BHND_BUS_SUSPEND_HW(dev, child))) + if ((error = bhnd_suspend_hw(child, reset_ioctl))) return (error); - /* Leaving the core in reset, set the caller's IOCTL flags and - * enable the core's clocks. */ - ts_low = (ioctl | BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE) << - SIBA_TML_SICF_SHIFT; - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - ts_low, SIBA_TML_SICF_MASK); - if (error) - return (error); + /* Set RESET, clear REJ, set the caller's IOCTL flags, and + * force clocks to ensure the signal propagates throughout the + * core. */ + ts_low = SIBA_TML_RESET | + (ioctl << SIBA_TML_SICF_SHIFT) | + (BHND_IOCTL_CLK_EN << SIBA_TML_SICF_SHIFT) | + (BHND_IOCTL_CLK_FORCE << SIBA_TML_SICF_SHIFT); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, + ts_low, UINT32_MAX); + /* Clear any target errors */ if (bhnd_bus_read_4(r, SIBA_CFG0_TMSTATEHIGH) & SIBA_TMH_SERR) { - error = siba_write_target_state(child, dinfo, - SIBA_CFG0_TMSTATEHIGH, 0, SIBA_TMH_SERR); - if (error) - return (error); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATEHIGH, + 0x0, SIBA_TMH_SERR); } /* Clear any initiator errors */ imstate = bhnd_bus_read_4(r, SIBA_CFG0_IMSTATE); if (imstate & (SIBA_IM_IBE|SIBA_IM_TO)) { - error = siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, - 0, SIBA_IM_IBE|SIBA_IM_TO); - if (error) - return (error); + siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, 0x0, + SIBA_IM_IBE|SIBA_IM_TO); } /* Release from RESET while leaving clocks forced, ensuring the * signal propagates throughout the core */ - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - 0x0, SIBA_TML_RESET); - if (error) - return (error); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0, + SIBA_TML_RESET); /* The core should now be active; we can clear the BHND_IOCTL_CLK_FORCE * bit and allow the core to manage clock gating. */ - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - 0x0, (BHND_IOCTL_CLK_FORCE << SIBA_TML_SICF_SHIFT)); - if (error) - return (error); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0, + (BHND_IOCTL_CLK_FORCE << SIBA_TML_SICF_SHIFT)); return (0); } static int -siba_suspend_hw(device_t dev, device_t child) +siba_suspend_hw(device_t dev, device_t child, uint16_t ioctl) { struct siba_softc *sc; struct siba_devinfo *dinfo; struct bhnd_resource *r; - uint32_t idl, ts_low; - uint16_t ioctl; + uint32_t idl, ts_low, ts_mask; + uint16_t cflags, clkflags; int error; if (device_get_parent(child) != dev) @@ -723,30 +724,37 @@ siba_suspend_hw(device_t dev, device_t child) if ((r = dinfo->cfg_res[0]) == NULL) return (ENODEV); + /* We require exclusive control over BHND_IOCTL_CLK_(EN|FORCE) */ + clkflags = BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE; + if (ioctl & clkflags) + return (EINVAL); + /* Already in RESET? */ ts_low = bhnd_bus_read_4(r, SIBA_CFG0_TMSTATELOW); - if (ts_low & SIBA_TML_RESET) { - /* Clear IOCTL flags, ensuring the clock is disabled */ - return (siba_write_target_state(child, dinfo, - SIBA_CFG0_TMSTATELOW, 0x0, SIBA_TML_SICF_MASK)); + if (ts_low & SIBA_TML_RESET) + return (0); + /* If clocks are already disabled, we can place the core directly + * into RESET|REJ while setting the caller's IOCTL flags. */ + cflags = SIBA_REG_GET(ts_low, TML_SICF); + if (!(cflags & BHND_IOCTL_CLK_EN)) { + ts_low = SIBA_TML_RESET | SIBA_TML_REJ | + (ioctl << SIBA_TML_SICF_SHIFT); + ts_mask = SIBA_TML_RESET | SIBA_TML_REJ | SIBA_TML_SICF_MASK; + + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, + ts_low, ts_mask); return (0); } - /* If clocks are already disabled, we can put the core directly - * into RESET */ - ioctl = SIBA_REG_GET(ts_low, TML_SICF); - if (!(ioctl & BHND_IOCTL_CLK_EN)) { - /* Set RESET and clear IOCTL flags */ - return (siba_write_target_state(child, dinfo, - SIBA_CFG0_TMSTATELOW, - SIBA_TML_RESET, - SIBA_TML_RESET | SIBA_TML_SICF_MASK)); - } - - /* Reject any further target backplane transactions */ - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, + /* Reject further transactions reaching this core */ + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, SIBA_TML_REJ, SIBA_TML_REJ); + + /* Wait for transaction busy flag to clear for all transactions + * initiated by this core */ + error = siba_wait_target_state(child, dinfo, SIBA_CFG0_TMSTATEHIGH, + 0x0, SIBA_TMH_BUSY, 100000); if (error) return (error); @@ -754,44 +762,47 @@ siba_suspend_hw(device_t dev, device_t child) * transactions too. */ idl = bhnd_bus_read_4(r, SIBA_CFG0_IDLOW); if (idl & SIBA_IDL_INIT) { - error = siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, + /* Reject further initiator transactions */ + siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, SIBA_IM_RJ, SIBA_IM_RJ); + + /* Wait for initiator busy flag to clear */ + error = siba_wait_target_state(child, dinfo, SIBA_CFG0_IMSTATE, + 0x0, SIBA_IM_BY, 100000); if (error) return (error); } - /* Put the core into RESET|REJECT, forcing clocks to ensure the RESET - * signal propagates throughout the core, leaving REJECT asserted. */ - ts_low = SIBA_TML_RESET; - ts_low |= (BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE) << - SIBA_TML_SICF_SHIFT; + /* Put the core into RESET, set the caller's IOCTL flags, and + * force clocks to ensure the RESET signal propagates throughout the + * core. */ + ts_low = SIBA_TML_RESET | + (ioctl << SIBA_TML_SICF_SHIFT) | + (BHND_IOCTL_CLK_EN << SIBA_TML_SICF_SHIFT) | + (BHND_IOCTL_CLK_FORCE << SIBA_TML_SICF_SHIFT); + ts_mask = SIBA_TML_RESET | + SIBA_TML_SICF_MASK; - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - ts_low, ts_low); + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, ts_low, + ts_mask); if (error) return (error); /* Give RESET ample time */ DELAY(10); - /* Leaving core in reset, disable all clocks, clear REJ flags and - * IOCTL state */ - error = siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, - SIBA_TML_RESET, - SIBA_TML_RESET | SIBA_TML_REJ | SIBA_TML_SICF_MASK); - if (error) - return (error); - /* Clear previously asserted initiator reject */ if (idl & SIBA_IDL_INIT) { - error = siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, - 0, SIBA_IM_RJ); - if (error) - return (error); + siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, 0x0, + SIBA_IM_RJ); } + /* Disable all clocks, leaving RESET and REJ asserted */ + siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0, + (BHND_IOCTL_CLK_EN | BHND_IOCTL_CLK_FORCE) << SIBA_TML_SICF_SHIFT); + /* - * Core is now in RESET, with clocks disabled and REJ not asserted. + * Core is now in RESET. * * If the core holds any PWRCTL clock reservations, we need to release * those now. This emulates the standard bhnd(4) PMU behavior of RESET Modified: head/sys/dev/bhnd/siba/siba_subr.c ============================================================================== --- head/sys/dev/bhnd/siba/siba_subr.c Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/siba/siba_subr.c Mon Nov 27 22:13:30 2017 (r326292) @@ -624,83 +624,73 @@ siba_parse_admatch(uint32_t am, uint32_t *addr, uint32 } /** - * Write @p value to @p dev's CFG0 target/initiator state register and - * wait for completion. + * Write @p value to @p dev's CFG0 target/initiator state register, performing + * required read-back and waiting for completion. * * @param dev The siba(4) child device. - * @param reg The state register to write (e.g. SIBA_CFG0_TMSTATELOW, - * SIBA_CFG0_IMSTATE) + * @param reg The CFG0 state register to write (e.g. SIBA_CFG0_TMSTATELOW, + * SIBA_CFG0_IMSTATE) * @param value The value to write to @p reg. * @param mask The mask of bits to be included from @p value. - * - * @retval 0 success. - * @retval ENODEV if SIBA_CFG0 is not mapped by @p dinfo. - * @retval ETIMEDOUT if a timeout occurs prior to SIBA_TMH_BUSY clearing. */ -int +void siba_write_target_state(device_t dev, struct siba_devinfo *dinfo, bus_size_t reg, uint32_t value, uint32_t mask) { struct bhnd_resource *r; uint32_t rval; - /* Must have a CFG0 block */ - if ((r = dinfo->cfg_res[0]) == NULL) - return (ENODEV); + r = dinfo->cfg_res[0]; - /* Verify the register offset falls within CFG register block */ - if (reg > SIBA_CFG_SIZE-4) - return (EFAULT); + KASSERT(r != NULL, ("%s missing CFG0 mapping", + device_get_nameunit(dev))); + KASSERT(reg <= SIBA_CFG_SIZE-4, ("%s invalid CFG0 register offset %#jx", + device_get_nameunit(dev), (uintmax_t)reg)); - for (int i = 0; i < 300; i += 10) { - rval = bhnd_bus_read_4(r, reg); - rval &= ~mask; - rval |= (value & mask); + rval = bhnd_bus_read_4(r, reg); + rval &= ~mask; + rval |= (value & mask); - bhnd_bus_write_4(r, reg, rval); - bhnd_bus_read_4(r, reg); /* read-back */ - DELAY(1); - - /* If the write has completed, wait for target busy state - * to clear */ - rval = bhnd_bus_read_4(r, reg); - if ((rval & mask) == (value & mask)) - return (siba_wait_target_busy(dev, dinfo, 100000)); - - DELAY(10); - } - - return (ETIMEDOUT); + bhnd_bus_write_4(r, reg, rval); + bhnd_bus_read_4(r, reg); /* read-back */ + DELAY(1); } /** - * Spin for up to @p usec waiting for SIBA_TMH_BUSY to clear in - * @p dev's SIBA_CFG0_TMSTATEHIGH register. + * Spin for up to @p usec waiting for @p dev's CFG0 target/initiator state + * register value to be equal to @p value after applying @p mask bits to both + * values. * * @param dev The siba(4) child device to wait on. * @param dinfo The @p dev's device info + * @param reg The state register to read (e.g. SIBA_CFG0_TMSTATEHIGH, + * SIBA_CFG0_IMSTATE) + * @param value The value against which @p reg will be compared. + * @param mask The mask to be applied when comparing @p value with @p reg. + * @param usec The maximum number of microseconds to wait for completion. * * @retval 0 if SIBA_TMH_BUSY is cleared prior to the @p usec timeout. * @retval ENODEV if SIBA_CFG0 is not mapped by @p dinfo. - * @retval ETIMEDOUT if a timeout occurs prior to SIBA_TMH_BUSY clearing. + * @retval ETIMEDOUT if a timeout occurs. */ int -siba_wait_target_busy(device_t dev, struct siba_devinfo *dinfo, int usec) +siba_wait_target_state(device_t dev, struct siba_devinfo *dinfo, bus_size_t reg, + uint32_t value, uint32_t mask, u_int usec) { struct bhnd_resource *r; - uint32_t ts_high; + uint32_t rval; if ((r = dinfo->cfg_res[0]) == NULL) return (ENODEV); + value &= mask; for (int i = 0; i < usec; i += 10) { - ts_high = bhnd_bus_read_4(r, SIBA_CFG0_TMSTATEHIGH); - if (!(ts_high & SIBA_TMH_BUSY)) + rval = bhnd_bus_read_4(r, reg); + if ((rval & mask) == value) return (0); DELAY(10); } - device_printf(dev, "SIBA_TMH_BUSY wait timeout\n"); return (ETIMEDOUT); } Modified: head/sys/dev/bhnd/siba/sibavar.h ============================================================================== --- head/sys/dev/bhnd/siba/sibavar.h Mon Nov 27 21:30:49 2017 (r326291) +++ head/sys/dev/bhnd/siba/sibavar.h Mon Nov 27 22:13:30 2017 (r326292) @@ -117,11 +117,12 @@ u_int siba_admatch_offset(uint8_t addrspace); int siba_parse_admatch(uint32_t am, uint32_t *addr, uint32_t *size); -int siba_write_target_state(device_t dev, +void siba_write_target_state(device_t dev, struct siba_devinfo *dinfo, bus_size_t reg, uint32_t value, uint32_t mask); -int siba_wait_target_busy(device_t child, - struct siba_devinfo *dinfo, int usec); +int siba_wait_target_state(device_t dev, + struct siba_devinfo *dinfo, bus_size_t reg, + uint32_t value, uint32_t mask, u_int usec); /* Sonics configuration register blocks */ From owner-svn-src-head@freebsd.org Mon Nov 27 22:29:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26020DEB6B9; Mon, 27 Nov 2017 22:29:37 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA2CD67B46; Mon, 27 Nov 2017 22:29:36 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARMTajX003891; Mon, 27 Nov 2017 22:29:36 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARMTavO003890; Mon, 27 Nov 2017 22:29:36 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711272229.vARMTavO003890@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Mon, 27 Nov 2017 22:29:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326293 - head/sys/dev/bhnd X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd X-SVN-Commit-Revision: 326293 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 22:29:37 -0000 Author: landonf Date: Mon Nov 27 22:29:35 2017 New Revision: 326293 URL: https://svnweb.freebsd.org/changeset/base/326293 Log: bhnd(4): Print the core's hardware revision in bhnd(4)'s BUS_PROBE_NOMATCH(). Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/bhnd.c Modified: head/sys/dev/bhnd/bhnd.c ============================================================================== --- head/sys/dev/bhnd/bhnd.c Mon Nov 27 22:13:30 2017 (r326292) +++ head/sys/dev/bhnd/bhnd.c Mon Nov 27 22:29:35 2017 (r326293) @@ -892,8 +892,8 @@ bhnd_generic_probe_nomatch(device_t dev, device_t chil return; /* Print the non-matched device info */ - device_printf(dev, "<%s %s>", bhnd_get_vendor_name(child), - bhnd_get_device_name(child)); + device_printf(dev, "<%s %s, rev %hhu>", bhnd_get_vendor_name(child), + bhnd_get_device_name(child), bhnd_get_hwrev(child)); rl = BUS_GET_RESOURCE_LIST(dev, child); if (rl != NULL) { From owner-svn-src-head@freebsd.org Mon Nov 27 22:38:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38737DEBB55; Mon, 27 Nov 2017 22:38:46 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F28A26826C; Mon, 27 Nov 2017 22:38:45 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vARMciaP007875; Mon, 27 Nov 2017 22:38:44 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vARMcigA007874; Mon, 27 Nov 2017 22:38:44 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711272238.vARMcigA007874@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Mon, 27 Nov 2017 22:38:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326294 - head/sys/dev/bhnd/siba X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/siba X-SVN-Commit-Revision: 326294 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 22:38:46 -0000 Author: landonf Date: Mon Nov 27 22:38:44 2017 New Revision: 326294 URL: https://svnweb.freebsd.org/changeset/base/326294 Log: siba(4): fix workaround for BCM4312 D11 core backplane timeouts The SIBA_QUIRK_PCIE_D11_SB_TIMEOUT quirk should match on all BCM4312 revisions, and backplane service timeouts must also be disabled. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/siba/siba_bhndb.c Modified: head/sys/dev/bhnd/siba/siba_bhndb.c ============================================================================== --- head/sys/dev/bhnd/siba/siba_bhndb.c Mon Nov 27 22:29:35 2017 (r326293) +++ head/sys/dev/bhnd/siba/siba_bhndb.c Mon Nov 27 22:38:44 2017 (r326294) @@ -77,7 +77,7 @@ static struct bhnd_device_quirk pci_bridge_quirks[] = /* Bus-level quirks when bridged via a PCIe host bridge core */ static struct bhnd_device_quirk pcie_bridge_quirks[] = { BHND_CHIP_QUIRK (4311, HWREV_EQ(2), SIBA_QUIRK_PCIE_D11_SB_TIMEOUT), - BHND_CHIP_QUIRK (4312, HWREV_EQ(0), SIBA_QUIRK_PCIE_D11_SB_TIMEOUT), + BHND_CHIP_QUIRK (4312, HWREV_ANY, SIBA_QUIRK_PCIE_D11_SB_TIMEOUT), BHND_DEVICE_QUIRK_END }; @@ -250,7 +250,7 @@ siba_bhndb_wars_pcie_clear_d11_timeout(struct siba_bhn KASSERT(dinfo->cfg_res[0] != NULL, ("missing core config mapping")); imcfg = bhnd_bus_read_4(dinfo->cfg_res[0], SIBA_CFG0_IMCONFIGLOW); - imcfg &= ~SIBA_IMCL_RTO_MASK; + imcfg &= ~(SIBA_IMCL_RTO_MASK|SIBA_IMCL_STO_MASK); bhnd_bus_write_4(dinfo->cfg_res[0], SIBA_CFG0_IMCONFIGLOW, imcfg); From owner-svn-src-head@freebsd.org Tue Nov 28 00:12:16 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52DA7DEDE6F; Tue, 28 Nov 2017 00:12:16 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03AF66B66A; Tue, 28 Nov 2017 00:12:15 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS0CFOW051259; Tue, 28 Nov 2017 00:12:15 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS0CEjO051249; Tue, 28 Nov 2017 00:12:14 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711280012.vAS0CEjO051249@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Tue, 28 Nov 2017 00:12:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326297 - head/sys/dev/bhnd/bhndb X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/bhndb X-SVN-Commit-Revision: 326297 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 00:12:16 -0000 Author: landonf Date: Tue Nov 28 00:12:14 2017 New Revision: 326297 URL: https://svnweb.freebsd.org/changeset/base/326297 Log: bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. Very early (PCI_V0) Broadcom PCI Wi-Fi chipsets have a few quirks when compared to later PCI(e) core revisions: - The standard static BAR0 mapping of the PCI core registers is discontiguous, with siba's cfg0 register block mapped distinctly from the other core registers. - No dedicated ChipCommon register mapping is provided; instead, the single configurable register window must be used to access both ChipCommon and D11 core registers. The D11 core's operational semantics guarantee the safety of -- after disabling interrupts -- borrowing the single dynamic register window to perform the few ChipCommon operations required by a driver. To support these early PCI devices: - Allow defining multiple discontiguous BHNDB_REGWIN_T_CORE register windows that map a single port/region, and producing bridged resource allocations backed by those discontiguous windows. - Support stealing existing register window allocations to fulfill indirect bhnd(4) bus I/O requests within address ranges tagged with BHNDB_ALLOC_FULFILL_ON_OVERCOMMIT. - Fix an inverted test of bhndb_is_pcie_attached() that disabled PCI-only clock bring-up required by these devices. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/bhndb/bhndb.c head/sys/dev/bhnd/bhndb/bhndb.h head/sys/dev/bhnd/bhndb/bhndb_hwdata.c head/sys/dev/bhnd/bhndb/bhndb_pci.c head/sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c head/sys/dev/bhnd/bhndb/bhndb_pcireg.h head/sys/dev/bhnd/bhndb/bhndb_private.h head/sys/dev/bhnd/bhndb/bhndb_subr.c head/sys/dev/bhnd/bhndb/bhndbvar.h Modified: head/sys/dev/bhnd/bhndb/bhndb.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb.c Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb.c Tue Nov 28 00:12:14 2017 (r326297) @@ -115,9 +115,9 @@ static int bhndb_try_activate_resource( static inline struct bhndb_dw_alloc *bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t addr, bus_size_t size, - bus_size_t *offset); + bus_size_t *offset, bool *stolen, + bus_addr_t *restore); - /** * Default bhndb(4) implementation of DEVICE_PROBE(). * @@ -270,6 +270,9 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero for (regw = br->cfg->register_windows; regw->win_type != BHNDB_REGWIN_T_INVALID; regw++) { + const struct bhndb_port_priority *pp; + uint32_t alloc_flags; + /* Only core windows are supported */ if (regw->win_type != BHNDB_REGWIN_T_CORE) continue; @@ -295,6 +298,18 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero } /* + * Apply the register window's region offset, if any. + */ + if (regw->d.core.offset > size) { + device_printf(sc->dev, "invalid register " + "window offset %#jx for region %#jx+%#jx\n", + regw->d.core.offset, addr, size); + return (EINVAL); + } + + addr += regw->d.core.offset; + + /* * Always defer to the register window's size. * * If the port size is smaller than the window size, @@ -307,14 +322,25 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero */ size = regw->win_size; + /* Fetch allocation flags from the corresponding port + * priority entry, if any */ + pp = bhndb_hw_priorty_find_port(table, core, + regw->d.core.port_type, regw->d.core.port, + regw->d.core.region); + if (pp != NULL) { + alloc_flags = pp->alloc_flags; + } else { + alloc_flags = 0; + } + /* * Add to the bus region list. * - * The window priority for a statically mapped - * region is always HIGH. + * The window priority for a statically mapped region is + * always HIGH. */ error = bhndb_add_resource_region(br, addr, size, - BHNDB_PRIORITY_HIGH, regw); + BHNDB_PRIORITY_HIGH, 0, regw); if (error) return (error); } @@ -325,7 +351,6 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero * ports defined in the priority table */ for (u_int i = 0; i < ncores; i++) { - struct bhndb_region *region; struct bhnd_core_info *core; struct bhnd_core_match md; @@ -369,13 +394,12 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero } /* Skip ports with an existing static mapping */ - region = bhndb_find_resource_region(br, addr, size); - if (region != NULL && region->static_regwin != NULL) + if (bhndb_has_static_region_mapping(br, addr, size)) continue; /* Define a dynamic region for this port */ error = bhndb_add_resource_region(br, addr, size, - pp->priority, NULL); + pp->priority, pp->alloc_flags, NULL); if (error) return (error); @@ -416,22 +440,29 @@ bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_ero struct bhndb_region *region; const char *direct_msg, *type_msg; bhndb_priority_t prio, prio_min; + uint32_t flags; prio_min = br->min_prio; device_printf(sc->dev, "min_prio: %d\n", prio_min); STAILQ_FOREACH(region, &br->bus_regions, link) { prio = region->priority; + flags = region->alloc_flags; direct_msg = prio >= prio_min ? "direct" : "indirect"; type_msg = region->static_regwin ? "static" : "dynamic"; device_printf(sc->dev, "region 0x%llx+0x%llx priority " - "%u %s/%s\n", + "%u %s/%s", (unsigned long long) region->addr, (unsigned long long) region->size, region->priority, direct_msg, type_msg); + + if (flags & BHNDB_ALLOC_FULFILL_ON_OVERCOMMIT) + printf(" [overcommit]\n"); + else + printf("\n"); } } @@ -1605,11 +1636,12 @@ bhndb_deactivate_bhnd_resource(device_t dev, device_t * in-use region; the first matching region is returned. */ static struct bhndb_dw_alloc * -bhndb_io_resource_slow(struct bhndb_softc *sc, bus_addr_t addr, - bus_size_t size, bus_size_t *offset) +bhndb_io_resource_slow(struct bhndb_softc *sc, bus_addr_t addr, bus_size_t size, + bus_size_t *offset, bool *stolen, bus_addr_t *restore) { struct bhndb_resources *br; struct bhndb_dw_alloc *dwa; + struct bhndb_region *region; BHNDB_LOCK_ASSERT(sc, MA_OWNED); @@ -1638,10 +1670,25 @@ bhndb_io_resource_slow(struct bhndb_softc *sc, bus_add *offset = dwa->win->win_offset; *offset += addr - dwa->target; + *stolen = false; return (dwa); } - /* not found */ + /* No existing dynamic mapping found. We'll need to check for a defined + * region to determine whether we can fulfill this request by + * stealing from an existing allocated register window */ + region = bhndb_find_resource_region(br, addr, size); + if (region == NULL) + return (NULL); + + if ((region->alloc_flags & BHNDB_ALLOC_FULFILL_ON_OVERCOMMIT) == 0) + return (NULL); + + if ((dwa = bhndb_dw_steal(br, restore)) != NULL) { + *stolen = true; + return (dwa); + } + return (NULL); } @@ -1649,9 +1696,8 @@ bhndb_io_resource_slow(struct bhndb_softc *sc, bus_add * Return a borrowed reference to a bridge resource allocation record capable * of handling bus I/O requests of @p size at @p addr. * - * This will either return a reference to an existing allocation - * record mapping the requested space, or will configure and return a free - * allocation record. + * This will either return a reference to an existing allocation record mapping + * the requested space, or will configure and return a free allocation record. * * Will panic if a usable record cannot be found. * @@ -1660,10 +1706,16 @@ bhndb_io_resource_slow(struct bhndb_softc *sc, bus_add * @param size The size of the I/O operation to be performed at @p addr. * @param[out] offset The offset within the returned resource at which * to perform the I/O request. + * @param[out] stolen Set to true if the allocation record was stolen to fulfill + * this request. If a stolen allocation record is returned, + * bhndb_io_resource_restore() must be called upon completion of the bus I/O + * request. + * @param[out] restore If the allocation record was stolen, this will be set + * to the target that must be restored. */ static inline struct bhndb_dw_alloc * bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t addr, bus_size_t size, - bus_size_t *offset) + bus_size_t *offset, bool *stolen, bus_addr_t *restore) { struct bhndb_resources *br; struct bhndb_dw_alloc *dwa; @@ -1691,7 +1743,8 @@ bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t a * current operation. */ if (dwa == NULL) { - dwa = bhndb_io_resource_slow(sc, addr, size, offset); + dwa = bhndb_io_resource_slow(sc, addr, size, offset, stolen, + restore); if (dwa == NULL) { panic("register windows exhausted attempting to map " "0x%llx-0x%llx\n", @@ -1720,6 +1773,7 @@ bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t a /* Calculate the offset and return */ *offset = (addr - dwa->target) + dwa->win->win_offset; + *stolen = false; return (dwa); } @@ -1733,12 +1787,14 @@ bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t a struct bhndb_dw_alloc *dwa; \ struct resource *io_res; \ bus_size_t io_offset; \ + bus_addr_t restore; \ + bool stolen; \ \ sc = device_get_softc(dev); \ \ BHNDB_LOCK(sc); \ dwa = bhndb_io_resource(sc, rman_get_start(r->res) + \ - offset, _io_size, &io_offset); \ + offset, _io_size, &io_offset, &stolen, &restore); \ io_res = dwa->parent_res; \ \ KASSERT(!r->direct, \ @@ -1748,6 +1804,10 @@ bhndb_io_resource(struct bhndb_softc *sc, bus_addr_t a ("i/o resource is not active")); #define BHNDB_IO_COMMON_TEARDOWN() \ + if (stolen) { \ + bhndb_dw_return_stolen(sc->dev, sc->bus_res, \ + dwa, restore); \ + } \ BHNDB_UNLOCK(sc); /* Defines a bhndb_bus_read_* method implementation */ Modified: head/sys/dev/bhnd/bhndb/bhndb.h ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb.h Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb.h Tue Nov 28 00:12:14 2017 (r326297) @@ -90,6 +90,7 @@ struct bhndb_regwin { bhnd_port_type port_type; /**< mapped port type */ u_int port; /**< mapped port number */ u_int region; /**< mapped region number */ + bhnd_size_t offset; /**< mapped offset within the region */ } core; /** SPROM register window (BHNDB_REGWIN_T_SPROM). */ @@ -150,6 +151,26 @@ typedef enum { } bhndb_priority_t; /** + * bhndb resource allocation flags. + */ +enum bhndb_alloc_flags { + /** + * If resource overcommit prevents fulfilling a request for this + * resource, an in-use resource should be be borrowed to fulfill the + * request. + * + * The only known use case is to support accessing the ChipCommon core + * during Wi-Fi driver operation on early PCI Wi-Fi devices + * (PCI_V0, SSB) that do not provide a dedicated ChipCommon register + * window mapping; on such devices, device and firmware semantics + * guarantee the safety of -- after disabling interrupts -- borrowing + * the single dynamic register window that's been assigned to the D11 + * core to perform the few ChipCommon operations required by the driver. + */ + BHNDB_ALLOC_FULFILL_ON_OVERCOMMIT = (1<<0), +}; + +/** * Port resource priority descriptor. */ struct bhndb_port_priority { @@ -157,6 +178,7 @@ struct bhndb_port_priority { u_int port; /**< port */ u_int region; /**< region */ bhndb_priority_t priority; /**< port priority */ + uint32_t alloc_flags; /**< port allocation flags (@see bhndb_alloc_flags) */ }; /** Modified: head/sys/dev/bhnd/bhndb/bhndb_hwdata.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_hwdata.c Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_hwdata.c Tue Nov 28 00:12:14 2017 (r326297) @@ -76,19 +76,24 @@ __FBSDID("$FreeBSD$"); BHNDB_PORTS(__VA_ARGS__) \ } -/* Define a port priority record for the type/port/region - * triplet. */ -#define BHNDB_PORT_PRIO(_type, _port, _region, _priority) { \ +/* Define a port priority record for the type/port/region triplet, optionally + * specifying port allocation flags as the final argument */ +#define BHNDB_PORT_PRIO(_type, _port, _region, _priority, ...) \ + _BHNDB_PORT_PRIO(_type, _port, _region, _priority, ## __VA_ARGS__, 0) + +#define _BHNDB_PORT_PRIO(_type, _port, _region, _priority, _flags, ...) \ +{ \ .type = (BHND_PORT_ ## _type), \ .port = _port, \ .region = _region, \ - .priority = (BHNDB_PRIORITY_ ## _priority) \ + .priority = (BHNDB_PRIORITY_ ## _priority), \ + .alloc_flags = (_flags) \ } /* Define a port priority record for the default (_type, 0, 0) type/port/region * triplet. */ -#define BHNDB_PORT0_PRIO(_type, _priority) \ - BHNDB_PORT_PRIO(_type, 0, 0, _priority) +#define BHNDB_PORT0_PRIO(_type, _priority, ...) \ + BHNDB_PORT_PRIO(_type, 0, 0, _priority, ## __VA_ARGS__, 0) /** * Generic resource priority configuration usable with all currently supported @@ -170,10 +175,14 @@ const struct bhndb_hw_priority bhndb_siba_priority_tab * Agent ports are marked as 'NONE' on siba(4) devices, as they * will be fully mappable via register windows shared with the * device0.0 port. + * + * To support early PCI_V0 devices, we enable FULFILL_ON_OVERCOMMIT for + * ChipCommon. */ BHNDB_CLASS_PRIO(CC, LOW, /* Device Block */ - BHNDB_PORT_PRIO(DEVICE, 0, 0, LOW) + BHNDB_PORT_PRIO(DEVICE, 0, 0, LOW, + BHNDB_ALLOC_FULFILL_ON_OVERCOMMIT) ), BHNDB_CLASS_PRIO(PMU, LOW, @@ -193,4 +202,4 @@ const struct bhndb_hw_priority bhndb_siba_priority_tab ), BHNDB_HW_PRIORITY_TABLE_END -}; \ No newline at end of file +}; Modified: head/sys/dev/bhnd/bhndb/bhndb_pci.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_pci.c Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_pci.c Tue Nov 28 00:12:14 2017 (r326297) @@ -707,26 +707,28 @@ bhndb_pci_sprom_size(struct bhndb_pci_softc *sc) * Return the host resource providing a static mapping of the PCI core's * registers. * - * @param sc bhndb PCI driver state. - * @param[out] res On success, the host resource containing our PCI - * core's register window. - * @param[out] offset On success, the offset of the PCI core registers within - * @p res. + * @param sc bhndb PCI driver state. + * @param offset The required readable offset within the PCI core + * register block. + * @param size The required readable size at @p offset. + * @param[out] res On success, the host resource containing our PCI + * core's register window. + * @param[out] res_offset On success, the @p offset relative to @p res. * * @retval 0 success * @retval ENXIO if a valid static register window mapping the PCI core * registers is not available. */ static int -bhndb_pci_get_core_regs(struct bhndb_pci_softc *sc, struct resource **res, - bus_size_t *offset) +bhndb_pci_get_core_regs(struct bhndb_pci_softc *sc, bus_size_t offset, + bus_size_t size, struct resource **res, bus_size_t *res_offset) { const struct bhndb_regwin *win; struct resource *r; - /* Locate the static register window mapping the PCI core */ + /* Locate the static register window mapping the requested offset */ win = bhndb_regwin_find_core(sc->bhndb.bus_res->cfg->register_windows, - sc->pci_devclass, 0, BHND_PORT_DEVICE, 0, 0); + sc->pci_devclass, 0, BHND_PORT_DEVICE, 0, 0, offset, size); if (win == NULL) { device_printf(sc->dev, "missing PCI core register window\n"); return (ENXIO); @@ -739,8 +741,11 @@ bhndb_pci_get_core_regs(struct bhndb_pci_softc *sc, st return (ENXIO); } + KASSERT(offset >= win->d.core.offset, ("offset %#jx outside of " + "register window", (uintmax_t)offset)); + *res = r; - *offset = win->win_offset; + *res_offset = win->win_offset + (offset - win->d.core.offset); return (0); } @@ -761,18 +766,21 @@ bhndb_pci_write_core(struct bhndb_pci_softc *sc, bus_s bus_size_t r_offset; int error; - if ((error = bhndb_pci_get_core_regs(sc, &r, &r_offset))) - panic("no PCI core registers: %d", error); + error = bhndb_pci_get_core_regs(sc, offset, width, &r, &r_offset); + if (error) { + panic("no PCI register window mapping %#jx+%#x: %d", + (uintmax_t)offset, width, error); + } switch (width) { case 1: - bus_write_1(r, r_offset + offset, value); + bus_write_1(r, r_offset, value); break; case 2: - bus_write_2(r, r_offset + offset, value); + bus_write_2(r, r_offset, value); break; case 4: - bus_write_4(r, r_offset + offset, value); + bus_write_4(r, r_offset, value); break; default: panic("invalid width: %u", width); @@ -794,16 +802,19 @@ bhndb_pci_read_core(struct bhndb_pci_softc *sc, bus_si bus_size_t r_offset; int error; - if ((error = bhndb_pci_get_core_regs(sc, &r, &r_offset))) - panic("no PCI core registers: %d", error); + error = bhndb_pci_get_core_regs(sc, offset, width, &r, &r_offset); + if (error) { + panic("no PCI register window mapping %#jx+%#x: %d", + (uintmax_t)offset, width, error); + } switch (width) { case 1: - return (bus_read_1(r, r_offset + offset)); + return (bus_read_1(r, r_offset)); case 2: - return (bus_read_2(r, r_offset + offset)); + return (bus_read_2(r, r_offset)); case 4: - return (bus_read_4(r, r_offset + offset)); + return (bus_read_4(r, r_offset)); default: panic("invalid width: %u", width); } @@ -1057,7 +1068,7 @@ bhndb_enable_pci_clocks(device_t dev) pci_dev = device_get_parent(dev); /* Only supported and required on PCI devices */ - if (!bhndb_is_pcie_attached(dev)) + if (bhndb_is_pcie_attached(dev)) return (0); /* Read state of XTAL pin */ Modified: head/sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c Tue Nov 28 00:12:14 2017 (r326297) @@ -312,7 +312,13 @@ static const struct bhndb_hwcfg bhndb_pci_hwcfg_v0 = { .res = { SYS_RES_MEMORY, PCIR_BAR(0) } }, - /* bar0+0x1800: pci core registers */ + /* + * bar0+0x1800: pci core registers. + * + * Does not include the SSB CFG registers found at the end of + * the 4K core register block; these are mapped non-contigiously + * by the next entry. + */ { .win_type = BHNDB_REGWIN_T_CORE, .win_offset = BHNDB_PCI_V0_BAR0_PCIREG_OFFSET, @@ -322,10 +328,27 @@ static const struct bhndb_hwcfg bhndb_pci_hwcfg_v0 = { .unit = 0, .port = 0, .region = 0, + .port_type = BHND_PORT_DEVICE, + }, + .res = { SYS_RES_MEMORY, PCIR_BAR(0) } + }, + + /* bar0+0x1E00: pci core (SSB CFG registers) */ + { + .win_type = BHNDB_REGWIN_T_CORE, + .win_offset = BHNDB_PCI_V0_BAR0_PCISB_OFFSET , + .win_size = BHNDB_PCI_V0_BAR0_PCISB_SIZE, + .d.core = { + .class = BHND_DEVCLASS_PCI, + .unit = 0, + .port = 0, + .region = 0, + .offset = BHNDB_PCI_V0_BAR0_PCISB_COREOFF, .port_type = BHND_PORT_DEVICE }, .res = { SYS_RES_MEMORY, PCIR_BAR(0) } }, + BHNDB_REGWIN_TABLE_END }, Modified: head/sys/dev/bhnd/bhndb/bhndb_pcireg.h ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_pcireg.h Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_pcireg.h Tue Nov 28 00:12:14 2017 (r326297) @@ -40,7 +40,8 @@ * [offset+ size] type description * [0x0000+0x1000] dynamic mapped backplane address space (window 0). * [0x1000+0x0800] fixed SPROM shadow - * [0x1800+0x0800] fixed pci core registers + * [0x1800+0x0E00] fixed pci core device registers + * [0x1E00+0x0200] fixed pci core siba config registers * * == PCI_V1 == * Applies to: @@ -133,8 +134,11 @@ #define BHNDB_PCI_V0_BAR0_WIN0_SIZE 0x1000 #define BHNDB_PCI_V0_BAR0_SPROM_OFFSET 0x1000 /* bar0 + 4K accesses sprom shadow (in pci core) */ #define BHNDB_PCI_V0_BAR0_SPROM_SIZE 0x0800 -#define BHNDB_PCI_V0_BAR0_PCIREG_OFFSET 0x1800 /* bar0 + 6K accesses pci core registers */ -#define BHNDB_PCI_V0_BAR0_PCIREG_SIZE 0x0800 +#define BHNDB_PCI_V0_BAR0_PCIREG_OFFSET 0x1800 /* bar0 + 6K accesses pci core registers (not including SSB CFG registers) */ +#define BHNDB_PCI_V0_BAR0_PCIREG_SIZE 0x0E00 +#define BHNDB_PCI_V0_BAR0_PCISB_OFFSET 0x1E00 /* bar0 + 7.5K accesses pci core's SSB CFG register blocks */ +#define BHNDB_PCI_V0_BAR0_PCISB_SIZE 0x0200 +#define BHNDB_PCI_V0_BAR0_PCISB_COREOFF 0xE00 /* mapped offset relative to the core base address */ /* PCI_V1 */ #define BHNDB_PCI_V1_BAR0_WIN0_CONTROL 0x80 /* backplane address space accessed by BAR0/WIN0 */ Modified: head/sys/dev/bhnd/bhndb/bhndb_private.h ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_private.h Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_private.h Tue Nov 28 00:12:14 2017 (r326297) @@ -70,6 +70,7 @@ int bhndb_add_resource_region( struct bhndb_resources *br, bhnd_addr_t addr, bhnd_size_t size, bhndb_priority_t priority, + uint32_t alloc_flags, const struct bhndb_regwin *static_regwin); int bhndb_find_resource_limits( @@ -93,6 +94,10 @@ struct bhndb_intr_handler *bhndb_find_intr_handler( struct bhndb_resources *br, void *cookiep); +bool bhndb_has_static_region_mapping( + struct bhndb_resources *br, + bhnd_addr_t addr, bhnd_size_t size); + struct bhndb_region *bhndb_find_resource_region( struct bhndb_resources *br, bhnd_addr_t addr, bhnd_size_t size); @@ -120,11 +125,25 @@ int bhndb_dw_set_addr(device_t dev, struct bhndb_dw_alloc *dwa, bus_addr_t addr, bus_size_t size); +struct bhndb_dw_alloc *bhndb_dw_steal(struct bhndb_resources *br, + bus_addr_t *saved); + +void bhndb_dw_return_stolen(device_t dev, + struct bhndb_resources *br, + struct bhndb_dw_alloc *dwa, + bus_addr_t saved); + const struct bhndb_hw_priority *bhndb_hw_priority_find_core( const struct bhndb_hw_priority *table, struct bhnd_core_info *core); +const struct bhndb_port_priority *bhndb_hw_priorty_find_port( + const struct bhndb_hw_priority *table, + struct bhnd_core_info *core, + bhnd_port_type port_type, u_int port, + u_int region); + /** * Dynamic register window allocation reference. */ @@ -152,6 +171,7 @@ struct bhndb_region { bhnd_addr_t addr; /**< start of mapped range */ bhnd_size_t size; /**< size of mapped range */ bhndb_priority_t priority; /**< direct resource allocation priority */ + uint32_t alloc_flags; /**< resource allocation flags (@see bhndb_alloc_flags) */ const struct bhndb_regwin *static_regwin; /**< fixed mapping regwin, if any */ STAILQ_ENTRY(bhndb_region) link; @@ -185,6 +205,7 @@ struct bhndb_resources { STAILQ_HEAD(, bhndb_region) bus_regions; /**< bus region descriptors */ + struct mtx dw_steal_mtx; /**< spinlock must be held when stealing a dynamic window allocation */ struct bhndb_dw_alloc *dw_alloc; /**< dynamic window allocation records */ size_t dwa_count; /**< number of dynamic windows available. */ bitstr_t *dwa_freelist; /**< dynamic window free list */ Modified: head/sys/dev/bhnd/bhndb/bhndb_subr.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_subr.c Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndb_subr.c Tue Nov 28 00:12:14 2017 (r326297) @@ -291,7 +291,10 @@ bhndb_alloc_resources(device_t dev, device_t parent_de r->min_prio = BHNDB_PRIORITY_NONE; STAILQ_INIT(&r->bus_regions); STAILQ_INIT(&r->bus_intrs); - + + mtx_init(&r->dw_steal_mtx, device_get_nameunit(dev), + "bhndb dwa_steal lock", MTX_SPIN); + /* Initialize host address space resource manager. */ r->ht_mem_rman.rm_start = 0; r->ht_mem_rman.rm_end = ~0; @@ -492,6 +495,8 @@ failed: if (r->res != NULL) bhndb_release_host_resources(r->res); + mtx_destroy(&r->dw_steal_mtx); + free(r, M_BHND); return (NULL); @@ -626,6 +631,10 @@ bhndb_free_resources(struct bhndb_resources *br) free(br->dw_alloc, M_BHND); free(br->dwa_freelist, M_BHND); + + mtx_destroy(&br->dw_steal_mtx); + + free(br, M_BHND); } /** @@ -1054,6 +1063,7 @@ bhndb_find_resource_limits(struct bhndb_resources *br, * @param size The size of this region. * @param priority The resource priority to be assigned to allocations * made within this bus region. + * @param alloc_flags resource allocation flags (@see bhndb_alloc_flags) * @param static_regwin If available, a static register window mapping this * bus region entry. If not available, NULL. * @@ -1062,7 +1072,7 @@ bhndb_find_resource_limits(struct bhndb_resources *br, */ int bhndb_add_resource_region(struct bhndb_resources *br, bhnd_addr_t addr, - bhnd_size_t size, bhndb_priority_t priority, + bhnd_size_t size, bhndb_priority_t priority, uint32_t alloc_flags, const struct bhndb_regwin *static_regwin) { struct bhndb_region *reg; @@ -1076,6 +1086,7 @@ bhndb_add_resource_region(struct bhndb_resources *br, .addr = addr, .size = size, .priority = priority, + .alloc_flags = alloc_flags, .static_regwin = static_regwin }; @@ -1084,7 +1095,40 @@ bhndb_add_resource_region(struct bhndb_resources *br, return (0); } +/** + * Return true if a mapping of @p size bytes at @p addr is provided by either + * one contiguous bus region, or by multiple discontiguous regions. + * + * @param br The resource state to query. + * @param addr The requested starting address. + * @param size The requested size. + */ +bool +bhndb_has_static_region_mapping(struct bhndb_resources *br, + bhnd_addr_t addr, bhnd_size_t size) +{ + struct bhndb_region *region; + bhnd_addr_t r_addr; + r_addr = addr; + while ((region = bhndb_find_resource_region(br, r_addr, 1)) != NULL) { + /* Must be backed by a static register window */ + if (region->static_regwin == NULL) + return (false); + + /* Adjust the search offset */ + r_addr += region->size; + + /* Have we traversed a complete (if discontiguous) mapping? */ + if (r_addr == addr + size) + return (true); + + } + + /* No complete mapping found */ + return (false); +} + /** * Find the bus region that maps @p size bytes at @p addr. * @@ -1302,7 +1346,7 @@ bhndb_dw_set_addr(device_t dev, struct bhndb_resources rw = dwa->win; - KASSERT(bhndb_dw_is_free(br, dwa), + KASSERT(bhndb_dw_is_free(br, dwa) || mtx_owned(&br->dw_steal_mtx), ("attempting to set the target address on an in-use window")); /* Page-align the target address */ @@ -1324,6 +1368,74 @@ bhndb_dw_set_addr(device_t dev, struct bhndb_resources } /** + * Steal an in-use allocation record from @p br, returning the record's current + * target in @p saved on success. + * + * This function acquires a mutex and disables interrupts; callers should + * avoid holding a stolen window longer than required to issue an I/O + * request. + * + * A successful call to bhndb_dw_steal() must be balanced with a call to + * bhndb_dw_return_stolen(). + * + * @param br The resource state from which a window should be stolen. + * @param saved The stolen window's saved target address. + * + * @retval non-NULL success + * @retval NULL no dynamic window regions are defined. + */ +struct bhndb_dw_alloc * +bhndb_dw_steal(struct bhndb_resources *br, bus_addr_t *saved) +{ + struct bhndb_dw_alloc *dw_stolen; + + KASSERT(bhndb_dw_next_free(br) == NULL, + ("attempting to steal an in-use window while free windows remain")); + + /* Nothing to steal from? */ + if (br->dwa_count == 0) + return (NULL); + + /* + * Acquire our steal spinlock; this will be released in + * bhndb_dw_return_stolen(). + * + * Acquiring also disables interrupts, which is required when one is + * stealing an in-use existing register window. + */ + mtx_lock_spin(&br->dw_steal_mtx); + + dw_stolen = &br->dw_alloc[0]; + *saved = dw_stolen->target; + return (dw_stolen); +} + +/** + * Return an allocation record previously stolen using bhndb_dw_steal(). + * + * @param dev The device on which to issue a BHNDB_SET_WINDOW_ADDR() request. + * @param br The resource state owning @p dwa. + * @param dwa The allocation record to be returned. + * @param saved The original target address provided by bhndb_dw_steal(). + */ +void +bhndb_dw_return_stolen(device_t dev, struct bhndb_resources *br, + struct bhndb_dw_alloc *dwa, bus_addr_t saved) +{ + int error; + + mtx_assert(&br->dw_steal_mtx, MA_OWNED); + + error = bhndb_dw_set_addr(dev, br, dwa, saved, 0); + if (error) { + panic("failed to restore register window target %#jx: %d\n", + (uintmax_t)saved, error); + } + + mtx_unlock_spin(&br->dw_steal_mtx); +} + +/** * Return the count of @p type register windows in @p table. * * @param table The table to search. @@ -1380,18 +1492,24 @@ bhndb_regwin_find_type(const struct bhndb_regwin *tabl * @param port_type The required port type. * @param port The required port. * @param region The required region. + * @param offset The required readable core register block offset. + * @param min_size The required minimum readable size at @p offset. * * @retval bhndb_regwin The first matching window. * @retval NULL If no matching window was found. */ const struct bhndb_regwin * bhndb_regwin_find_core(const struct bhndb_regwin *table, bhnd_devclass_t class, - int unit, bhnd_port_type port_type, u_int port, u_int region) + int unit, bhnd_port_type port_type, u_int port, u_int region, + bus_size_t offset, bus_size_t min_size) { const struct bhndb_regwin *rw; - + for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++) { + bus_size_t rw_offset; + + /* Match on core, port, and region attributes */ if (rw->win_type != BHNDB_REGWIN_T_CORE) continue; @@ -1410,6 +1528,19 @@ bhndb_regwin_find_core(const struct bhndb_regwin *tabl if (rw->d.core.region != region) continue; + /* Verify that the requested range is mapped within + * this register window */ + if (rw->d.core.offset > offset) + continue; + + rw_offset = offset - rw->d.core.offset; + + if (rw->win_size < rw_offset) + continue; + + if (rw->win_size - rw_offset < min_size) + continue; + return (rw); } @@ -1429,7 +1560,8 @@ bhndb_regwin_find_core(const struct bhndb_regwin *tabl * @param port_type The required port type. * @param port The required port. * @param region The required region. - * @param min_size The minimum window size. + * @param offset The required readable core register block offset. + * @param min_size The required minimum readable size at @p offset. * * @retval bhndb_regwin The first matching window. * @retval NULL If no matching window was found. @@ -1437,13 +1569,13 @@ bhndb_regwin_find_core(const struct bhndb_regwin *tabl const struct bhndb_regwin * bhndb_regwin_find_best(const struct bhndb_regwin *table, bhnd_devclass_t class, int unit, bhnd_port_type port_type, u_int port, - u_int region, bus_size_t min_size) + u_int region, bus_size_t offset, bus_size_t min_size) { const struct bhndb_regwin *rw; /* Prefer a fixed core mapping */ rw = bhndb_regwin_find_core(table, class, unit, port_type, - port, region); + port, region, offset, min_size); if (rw != NULL) return (rw); @@ -1494,6 +1626,45 @@ bhndb_hw_priority_find_core(const struct bhndb_hw_prio for (hp = table; hp->ports != NULL; hp++) { if (bhnd_core_matches(core, &hp->match)) return (hp); + } + + /* not found */ + return (NULL); +} + + +/** + * Search for a port resource priority descriptor in @p table. + * + * @param table The table to search. + * @param core The core to match against @p table. + * @param port_type The required port type. + * @param port The required port. + * @param region The required region. + */ +const struct bhndb_port_priority * +bhndb_hw_priorty_find_port(const struct bhndb_hw_priority *table, + struct bhnd_core_info *core, bhnd_port_type port_type, u_int port, + u_int region) +{ + const struct bhndb_hw_priority *hp; + + if ((hp = bhndb_hw_priority_find_core(table, core)) == NULL) + return (NULL); + + for (u_int i = 0; i < hp->num_ports; i++) { + const struct bhndb_port_priority *pp = &hp->ports[i]; + + if (pp->type != port_type) + continue; + + if (pp->port != port) + continue; + + if (pp->region != region) + continue; + + return (pp); } /* not found */ Modified: head/sys/dev/bhnd/bhndb/bhndbvar.h ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndbvar.h Mon Nov 27 23:48:21 2017 (r326296) +++ head/sys/dev/bhnd/bhndb/bhndbvar.h Tue Nov 28 00:12:14 2017 (r326297) @@ -118,13 +118,15 @@ const struct bhndb_regwin *bhndb_regwin_find_core( const struct bhndb_regwin *table, bhnd_devclass_t class, int unit, bhnd_port_type port_type, u_int port, - u_int region); + u_int region, bus_size_t offset, + bus_size_t min_size); const struct bhndb_regwin *bhndb_regwin_find_best( const struct bhndb_regwin *table, bhnd_devclass_t class, int unit, bhnd_port_type port_type, u_int port, - u_int region, bus_size_t min_size); + u_int region, bus_size_t offset, + bus_size_t min_size); bool bhndb_regwin_match_core( const struct bhndb_regwin *regw, From owner-svn-src-head@freebsd.org Tue Nov 28 00:42:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6A87DEEBA3; Tue, 28 Nov 2017 00:42:45 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDD596CA9B; Tue, 28 Nov 2017 00:42:45 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS0giUe064689; Tue, 28 Nov 2017 00:42:44 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS0gidB064686; Tue, 28 Nov 2017 00:42:44 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201711280042.vAS0gidB064686@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Tue, 28 Nov 2017 00:42:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326301 - in head/sys: dev/bhnd/siba modules/bhnd/siba X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: in head/sys: dev/bhnd/siba modules/bhnd/siba X-SVN-Commit-Revision: 326301 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 00:42:46 -0000 Author: landonf Date: Tue Nov 28 00:42:44 2017 New Revision: 326301 URL: https://svnweb.freebsd.org/changeset/base/326301 Log: siba(4): Add support for devices have neither PMU nor PWRCTL support. Very early BHND Wi-Fi devices (e.g. BCM4318) do not support any form of dynamic clock control; on these devices, any PMU requests that cannot be met by the device's fixed clock state will return an appropriate error code. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/siba/siba.c head/sys/dev/bhnd/siba/sibavar.h head/sys/modules/bhnd/siba/Makefile Modified: head/sys/dev/bhnd/siba/siba.c ============================================================================== --- head/sys/dev/bhnd/siba/siba.c Tue Nov 28 00:41:17 2017 (r326300) +++ head/sys/dev/bhnd/siba/siba.c Tue Nov 28 00:42:44 2017 (r326301) @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include #include "sibareg.h" @@ -168,8 +169,9 @@ siba_read_ivar(device_t dev, device_t child, int index return (0); case SIBA_PMU_PWRCTL: - panic("bhnd_get_pmu_info() called with " - "SIBA_PMU_PWRCTL"); + case SIBA_PMU_FIXED: + panic("bhnd_get_pmu_info() called with siba PMU state " + "%d", dinfo->pmu_state); return (ENXIO); } @@ -211,8 +213,9 @@ siba_write_ivar(device_t dev, device_t child, int inde return (0); case SIBA_PMU_PWRCTL: - panic("bhnd_set_pmu_info() called with " - "SIBA_PMU_PWRCTL"); + case SIBA_PMU_FIXED: + panic("bhnd_set_pmu_info() called with siba PMU state " + "%d", dinfo->pmu_state); return (ENXIO); } @@ -237,7 +240,10 @@ siba_alloc_pmu(device_t dev, device_t child) { struct siba_softc *sc; struct siba_devinfo *dinfo; + device_t chipc; device_t pwrctl; + struct chipc_caps ccaps; + siba_pmu_state pmu_state; int error; if (device_get_parent(child) != dev) @@ -245,11 +251,20 @@ siba_alloc_pmu(device_t dev, device_t child) sc = device_get_softc(dev); dinfo = device_get_ivars(child); - pwrctl = bhnd_retain_provider(child, BHND_SERVICE_PWRCTL); + pwrctl = NULL; - /* Unless this is a legacy PWRCTL chipset, defer to bhnd(4)'s PMU - * implementation */ - if (pwrctl == NULL) { + /* Fetch ChipCommon capability flags */ + chipc = bhnd_retain_provider(child, BHND_SERVICE_CHIPC); + if (chipc != NULL) { + ccaps = *BHND_CHIPC_GET_CAPS(chipc); + bhnd_release_provider(child, chipc, BHND_SERVICE_CHIPC); + } else { + memset(&ccaps, 0, sizeof(ccaps)); + } + + /* Defer to bhnd(4)'s PMU implementation if ChipCommon exists and + * advertises PMU support */ + if (ccaps.pmu) { if ((error = bhnd_generic_alloc_pmu(dev, child))) return (error); @@ -259,8 +274,24 @@ siba_alloc_pmu(device_t dev, device_t child) return (0); } - /* This is a legacy PWRCTL chipset; we need to map all bhnd(4) bus PMU - * to PWRCTL operations ourselves.*/ + /* + * This is either a legacy PWRCTL chipset, or the device does not + * support dynamic clock control. + * + * We need to map all bhnd(4) bus PMU to PWRCTL or no-op operations. + */ + if (ccaps.pwr_ctrl) { + pmu_state = SIBA_PMU_PWRCTL; + pwrctl = bhnd_retain_provider(child, BHND_SERVICE_PWRCTL); + if (pwrctl == NULL) { + device_printf(dev, "PWRCTL not found\n"); + return (ENODEV); + } + } else { + pmu_state = SIBA_PMU_FIXED; + pwrctl = NULL; + } + SIBA_LOCK(sc); /* Per-core PMU state already allocated? */ @@ -270,8 +301,8 @@ siba_alloc_pmu(device_t dev, device_t child) } /* Update the child's PMU allocation state, and transfer ownership of - * the PWRCTL provider reference */ - dinfo->pmu_state = SIBA_PMU_PWRCTL; + * the PWRCTL provider reference (if any) */ + dinfo->pmu_state = pmu_state; dinfo->pmu.pwrctl = pwrctl; SIBA_UNLOCK(sc); @@ -324,6 +355,15 @@ siba_release_pmu(device_t dev, device_t child) /* Release the provider reference */ bhnd_release_provider(child, pwrctl, BHND_SERVICE_PWRCTL); return (0); + + case SIBA_PMU_FIXED: + /* Clean up the child's PMU state */ + KASSERT(dinfo->pmu.pwrctl == NULL, + ("PWRCTL reference with FIXED state")); + + dinfo->pmu_state = SIBA_PMU_NONE; + dinfo->pmu.pwrctl = NULL; + SIBA_UNLOCK(sc); } panic("invalid PMU state: %d", dinfo->pmu_state); @@ -363,6 +403,22 @@ siba_get_clock_latency(device_t dev, device_t child, b SIBA_UNLOCK(sc); return (error); + + case SIBA_PMU_FIXED: + SIBA_UNLOCK(sc); + + /* HT clock is always available, and incurs no transition + * delay. */ + switch (clock) { + case BHND_CLOCK_HT: + *latency = 0; + return (0); + + default: + return (ENODEV); + } + + return (ENODEV); } panic("invalid PMU state: %d", dinfo->pmu_state); @@ -401,6 +457,11 @@ siba_get_clock_freq(device_t dev, device_t child, bhnd SIBA_UNLOCK(sc); return (error); + + case SIBA_PMU_FIXED: + SIBA_UNLOCK(sc); + + return (ENODEV); } panic("invalid PMU state: %d", dinfo->pmu_state); @@ -432,6 +493,7 @@ siba_request_ext_rsrc(device_t dev, device_t child, u_ return (bhnd_generic_request_ext_rsrc(dev, child, rsrc)); case SIBA_PMU_PWRCTL: + case SIBA_PMU_FIXED: /* HW does not support per-core external resources */ SIBA_UNLOCK(sc); return (ENODEV); @@ -466,6 +528,7 @@ siba_release_ext_rsrc(device_t dev, device_t child, u_ return (bhnd_generic_release_ext_rsrc(dev, child, rsrc)); case SIBA_PMU_PWRCTL: + case SIBA_PMU_FIXED: /* HW does not support per-core external resources */ SIBA_UNLOCK(sc); return (ENODEV); @@ -506,6 +569,22 @@ siba_request_clock(device_t dev, device_t child, bhnd_ SIBA_UNLOCK(sc); return (error); + + case SIBA_PMU_FIXED: + SIBA_UNLOCK(sc); + + /* HT clock is always available, and fulfills any of the + * following clock requests */ + switch (clock) { + case BHND_CLOCK_DYN: + case BHND_CLOCK_ILP: + case BHND_CLOCK_ALP: + case BHND_CLOCK_HT: + return (0); + + default: + return (ENODEV); + } } panic("invalid PMU state: %d", dinfo->pmu_state); @@ -537,6 +616,7 @@ siba_enable_clocks(device_t dev, device_t child, uint3 return (bhnd_generic_enable_clocks(dev, child, clocks)); case SIBA_PMU_PWRCTL: + case SIBA_PMU_FIXED: SIBA_UNLOCK(sc); /* All (supported) clocks are already enabled by default */ Modified: head/sys/dev/bhnd/siba/sibavar.h ============================================================================== --- head/sys/dev/bhnd/siba/sibavar.h Tue Nov 28 00:41:17 2017 (r326300) +++ head/sys/dev/bhnd/siba/sibavar.h Tue Nov 28 00:42:44 2017 (r326301) @@ -194,6 +194,7 @@ typedef enum { SIBA_PMU_NONE, /**< If the core has not yet allocated PMU state */ SIBA_PMU_BHND, /**< If standard bhnd(4) PMU support should be used */ SIBA_PMU_PWRCTL, /**< If legacy PWRCTL PMU support should be used */ + SIBA_PMU_FIXED, /**< If legacy fixed (no-op) PMU support should be used */ } siba_pmu_state; /** Modified: head/sys/modules/bhnd/siba/Makefile ============================================================================== --- head/sys/modules/bhnd/siba/Makefile Tue Nov 28 00:41:17 2017 (r326300) +++ head/sys/modules/bhnd/siba/Makefile Tue Nov 28 00:42:44 2017 (r326301) @@ -7,7 +7,8 @@ SRCS= siba.c siba_subr.c \ siba_erom.c SRCS+= device_if.h bus_if.h -SRCS+= bhnd_bus_if.h bhnd_erom_if.h \ - bhnd_pmu_if.h bhnd_pwrctl_if.h +SRCS+= bhnd_bus_if.h bhnd_chipc_if.h \ + bhnd_erom_if.h bhnd_pmu_if.h \ + bhnd_pwrctl_if.h .include From owner-svn-src-head@freebsd.org Tue Nov 28 01:35:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DE03DF0CC5; Tue, 28 Nov 2017 01:35:30 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D9D1A6EE9E; Tue, 28 Nov 2017 01:35:29 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS1ZSW3086385; Tue, 28 Nov 2017 01:35:28 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS1ZSgA086381; Tue, 28 Nov 2017 01:35:28 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201711280135.vAS1ZSgA086381@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Tue, 28 Nov 2017 01:35:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326307 - head/contrib/libc-vis X-SVN-Group: head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: head/contrib/libc-vis X-SVN-Commit-Revision: 326307 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 01:35:30 -0000 Author: brooks Date: Tue Nov 28 01:35:28 2017 New Revision: 326307 URL: https://svnweb.freebsd.org/changeset/base/326307 Log: Update vis(3) the latest from NetBSD. This adds VIS_DQ for compatiblity with OpenBSD. Correct by an off-by-one error and a read buffer overflow detected using asan. MFC after: 1 day Modified: head/contrib/libc-vis/unvis.3 head/contrib/libc-vis/vis.3 head/contrib/libc-vis/vis.c head/contrib/libc-vis/vis.h Directory Properties: head/contrib/libc-vis/ (props changed) Modified: head/contrib/libc-vis/unvis.3 ============================================================================== --- head/contrib/libc-vis/unvis.3 Tue Nov 28 01:16:41 2017 (r326306) +++ head/contrib/libc-vis/unvis.3 Tue Nov 28 01:35:28 2017 (r326307) @@ -1,4 +1,4 @@ -.\" $NetBSD: unvis.3,v 1.27 2012/12/15 07:34:36 wiz Exp $ +.\" $NetBSD: unvis.3,v 1.29 2017/10/24 19:14:55 abhinav Exp $ .\" $FreeBSD$ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -35,7 +35,10 @@ .Os .Sh NAME .Nm unvis , -.Nm strunvis +.Nm strunvis , +.Nm strnunvis , +.Nm strunvisx , +.Nm strnunvisx .Nd decode a visual representation of characters .Sh LIBRARY .Lb libc @@ -184,7 +187,7 @@ char out; while ((ch = getchar()) != EOF) { again: - switch(unvis(\*[Am]out, ch, \*[Am]state, 0)) { + switch(unvis(&out, ch, &state, 0)) { case 0: case UNVIS_NOCHAR: break; @@ -198,7 +201,7 @@ again: errx(EXIT_FAILURE, "Bad character sequence!"); } } -if (unvis(\*[Am]out, '\e0', \*[Am]state, UNVIS_END) == UNVIS_VALID) +if (unvis(&out, '\e0', &state, UNVIS_END) == UNVIS_VALID) (void)putchar(out); .Ed .Sh ERRORS Modified: head/contrib/libc-vis/vis.3 ============================================================================== --- head/contrib/libc-vis/vis.3 Tue Nov 28 01:16:41 2017 (r326306) +++ head/contrib/libc-vis/vis.3 Tue Nov 28 01:35:28 2017 (r326307) @@ -1,4 +1,4 @@ -.\" $NetBSD: vis.3,v 1.45 2016/06/08 15:00:04 wiz Exp $ +.\" $NetBSD: vis.3,v 1.49 2017/08/05 20:22:29 wiz Exp $ .\" $FreeBSD$ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)vis.3 8.1 (Berkeley) 6/9/93 .\" -.Dd January 14, 2015 +.Dd April 22, 2017 .Dt VIS 3 .Os .Sh NAME @@ -243,6 +243,8 @@ except space, tab, and newline are encoded (see The following flags alter this: .Bl -tag -width VIS_WHITEX +.It Dv VIS_DQ +Also encode double quotes .It Dv VIS_GLOB Also encode the magic characters .Ql ( * , @@ -310,7 +312,7 @@ warning on the use of the .Dv VIS_NOSLASH flag below). .Pp -There are four forms of encoding. +There are six forms of encoding. All forms use the backslash character .Ql \e to introduce a special @@ -401,6 +403,9 @@ If .Fa nextc is an octal digit, the latter representation is used to avoid ambiguity. +.Pp +Non-printable characters without C-style +backslash sequences use the default representation. .It Dv VIS_OCTAL Use a three digit octal sequence. The form is @@ -408,6 +413,11 @@ The form is where .Em d represents an octal digit. +.It Dv VIS_CSTYLE \&| Dv VIS_OCTAL +Same as +.Dv VIS_CSTYLE +except that non-printable characters without C-style +backslash sequences use a three digit octal sequence. .It Dv VIS_HTTPSTYLE Use URI encoding as described in RFC 1738. The form is Modified: head/contrib/libc-vis/vis.c ============================================================================== --- head/contrib/libc-vis/vis.c Tue Nov 28 01:16:41 2017 (r326306) +++ head/contrib/libc-vis/vis.c Tue Nov 28 01:35:28 2017 (r326307) @@ -1,4 +1,4 @@ -/* $NetBSD: vis.c,v 1.71 2016/01/14 20:41:23 christos Exp $ */ +/* $NetBSD: vis.c,v 1.74 2017/11/27 16:37:21 christos Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -57,7 +57,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: vis.c,v 1.71 2016/01/14 20:41:23 christos Exp $"); +__RCSID("$NetBSD: vis.c,v 1.74 2017/11/27 16:37:21 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #ifdef __FBSDID __FBSDID("$FreeBSD$"); @@ -379,6 +379,7 @@ makeextralist(int flags, const char *src) if (flags & VIS_SP) *d++ = L' '; if (flags & VIS_TAB) *d++ = L'\t'; if (flags & VIS_NL) *d++ = L'\n'; + if (flags & VIS_DQ) *d++ = L'"'; if ((flags & VIS_NOSLASH) == 0) *d++ = L'\\'; *d = L'\0'; @@ -408,7 +409,15 @@ istrsenvisx(char **mbdstp, size_t *dlen, const char *m _DIAGASSERT(mbsrc != NULL || mblength == 0); _DIAGASSERT(mbextra != NULL); + mbslength = (ssize_t)mblength; /* + * When inputing a single character, must also read in the + * next character for nextc, the look-ahead character. + */ + if (mbslength == 1) + mbslength++; + + /* * Input (mbsrc) is a char string considered to be multibyte * characters. The input loop will read this string pulling * one character, possibly multiple bytes, from mbsrc and @@ -424,12 +433,12 @@ istrsenvisx(char **mbdstp, size_t *dlen, const char *m /* Allocate space for the wide char strings */ psrc = pdst = extra = NULL; mdst = NULL; - if ((psrc = calloc(mblength + 1, sizeof(*psrc))) == NULL) + if ((psrc = calloc(mbslength + 1, sizeof(*psrc))) == NULL) return -1; - if ((pdst = calloc((4 * mblength) + 1, sizeof(*pdst))) == NULL) + if ((pdst = calloc((16 * mbslength) + 1, sizeof(*pdst))) == NULL) goto out; if (*mbdstp == NULL) { - if ((mdst = calloc((4 * mblength) + 1, sizeof(*mdst))) == NULL) + if ((mdst = calloc((16 * mbslength) + 1, sizeof(*mdst))) == NULL) goto out; *mbdstp = mdst; } @@ -452,13 +461,6 @@ istrsenvisx(char **mbdstp, size_t *dlen, const char *m * stop at NULs because we may be processing a block of data * that includes NULs. */ - mbslength = (ssize_t)mblength; - /* - * When inputing a single character, must also read in the - * next character for nextc, the look-ahead character. - */ - if (mbslength == 1) - mbslength++; bzero(&mbstate, sizeof(mbstate)); while (mbslength > 0) { /* Convert one multibyte character to wchar_t. */ @@ -470,12 +472,13 @@ istrsenvisx(char **mbdstp, size_t *dlen, const char *m clen = 1; cerr = 1; } - if (clen == 0) + if (clen == 0) { /* * NUL in input gives 0 return value. process * as single NUL byte and keep going. */ clen = 1; + } /* Advance buffer character pointer. */ src++; /* Advance input pointer by number of bytes read. */ @@ -485,6 +488,7 @@ istrsenvisx(char **mbdstp, size_t *dlen, const char *m } len = src - psrc; src = psrc; + /* * In the single character input case, we will have actually * processed two characters, c and nextc. Reset len back to Modified: head/contrib/libc-vis/vis.h ============================================================================== --- head/contrib/libc-vis/vis.h Tue Nov 28 01:16:41 2017 (r326306) +++ head/contrib/libc-vis/vis.h Tue Nov 28 01:35:28 2017 (r326307) @@ -1,4 +1,4 @@ -/* $NetBSD: vis.h,v 1.24 2016/01/14 20:42:14 christos Exp $ */ +/* $NetBSD: vis.h,v 1.25 2017/04/23 01:57:36 christos Exp $ */ /* $FreeBSD$ */ /*- @@ -52,6 +52,7 @@ #define VIS_NL 0x0010 /* also encode newline */ #define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) #define VIS_SAFE 0x0020 /* only encode "unsafe" characters */ +#define VIS_DQ 0x8000 /* also encode double quotes */ /* * other From owner-svn-src-head@freebsd.org Tue Nov 28 05:39:49 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7CAADF9E7A; Tue, 28 Nov 2017 05:39:49 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1CBF76D21; Tue, 28 Nov 2017 05:39:49 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS5dm0L087508; Tue, 28 Nov 2017 05:39:48 GMT (envelope-from nwhitehorn@FreeBSD.org) Received: (from nwhitehorn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS5dm2a087507; Tue, 28 Nov 2017 05:39:48 GMT (envelope-from nwhitehorn@FreeBSD.org) Message-Id: <201711280539.vAS5dm2a087507@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nwhitehorn set sender to nwhitehorn@FreeBSD.org using -f From: Nathan Whitehorn Date: Tue, 28 Nov 2017 05:39:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326308 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: nwhitehorn X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326308 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 05:39:50 -0000 Author: nwhitehorn Date: Tue Nov 28 05:39:48 2017 New Revision: 326308 URL: https://svnweb.freebsd.org/changeset/base/326308 Log: Remove assertion that a CPU be present before returning a PCPU for it. It is up to the caller to check for a NULL return value. The assert was meant to catch buggy code that did not check the return value. Some code, however, was smart and used the return value to see if a CPU existed, which this broke. Requested by: jhb@ Modified: head/sys/kern/subr_pcpu.c Modified: head/sys/kern/subr_pcpu.c ============================================================================== --- head/sys/kern/subr_pcpu.c Tue Nov 28 01:35:28 2017 (r326307) +++ head/sys/kern/subr_pcpu.c Tue Nov 28 05:39:48 2017 (r326308) @@ -279,8 +279,6 @@ pcpu_destroy(struct pcpu *pcpu) struct pcpu * pcpu_find(u_int cpuid) { - KASSERT(cpuid_to_pcpu[cpuid] != NULL, - ("Getting uninitialized PCPU %d", cpuid)); return (cpuid_to_pcpu[cpuid]); } From owner-svn-src-head@freebsd.org Tue Nov 28 06:21:38 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85DD7DFB14E; Tue, 28 Nov 2017 06:21:38 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D096780CC; Tue, 28 Nov 2017 06:21:38 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS6Lbhp004821; Tue, 28 Nov 2017 06:21:37 GMT (envelope-from bryanv@FreeBSD.org) Received: (from bryanv@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS6LbrP004820; Tue, 28 Nov 2017 06:21:37 GMT (envelope-from bryanv@FreeBSD.org) Message-Id: <201711280621.vAS6LbrP004820@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bryanv set sender to bryanv@FreeBSD.org using -f From: Bryan Venteicher Date: Tue, 28 Nov 2017 06:21:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326309 - head/sys/dev/vmware/vmxnet3 X-SVN-Group: head X-SVN-Commit-Author: bryanv X-SVN-Commit-Paths: head/sys/dev/vmware/vmxnet3 X-SVN-Commit-Revision: 326309 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 06:21:38 -0000 Author: bryanv Date: Tue Nov 28 06:21:37 2017 New Revision: 326309 URL: https://svnweb.freebsd.org/changeset/base/326309 Log: Correctly report the vmxnet3 link down media status Reported by: lew@perftech.com MFC after: 1 week Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c ============================================================================== --- head/sys/dev/vmware/vmxnet3/if_vmx.c Tue Nov 28 05:39:48 2017 (r326308) +++ head/sys/dev/vmware/vmxnet3/if_vmx.c Tue Nov 28 06:21:37 2017 (r326309) @@ -3485,14 +3485,15 @@ vmxnet3_media_status(struct ifnet *ifp, struct ifmedia sc = ifp->if_softc; - ifmr->ifm_active = IFM_ETHER | IFM_AUTO; ifmr->ifm_status = IFM_AVALID; + ifmr->ifm_active = IFM_ETHER; VMXNET3_CORE_LOCK(sc); - if (vmxnet3_link_is_up(sc) != 0) + if (vmxnet3_link_is_up(sc) != 0) { ifmr->ifm_status |= IFM_ACTIVE; - else - ifmr->ifm_status |= IFM_NONE; + ifmr->ifm_active |= IFM_AUTO; + } else + ifmr->ifm_active |= IFM_NONE; VMXNET3_CORE_UNLOCK(sc); } From owner-svn-src-head@freebsd.org Tue Nov 28 06:31:40 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7766BDFB6A3; Tue, 28 Nov 2017 06:31:40 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4222C78813; Tue, 28 Nov 2017 06:31:40 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS6Vdat012328; Tue, 28 Nov 2017 06:31:39 GMT (envelope-from nwhitehorn@FreeBSD.org) Received: (from nwhitehorn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS6VdkV012326; Tue, 28 Nov 2017 06:31:39 GMT (envelope-from nwhitehorn@FreeBSD.org) Message-Id: <201711280631.vAS6VdkV012326@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nwhitehorn set sender to nwhitehorn@FreeBSD.org using -f From: Nathan Whitehorn Date: Tue, 28 Nov 2017 06:31:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326310 - in head/sys: dev/ofw powerpc/ofw X-SVN-Group: head X-SVN-Commit-Author: nwhitehorn X-SVN-Commit-Paths: in head/sys: dev/ofw powerpc/ofw X-SVN-Commit-Revision: 326310 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 06:31:40 -0000 Author: nwhitehorn Date: Tue Nov 28 06:31:39 2017 New Revision: 326310 URL: https://svnweb.freebsd.org/changeset/base/326310 Log: Back out OF module installation in the event of failure. PS3 firmware gives some ancient FDT version (2) that fails the init check in OFW_FDT. It is still possible to make progress, but not while the OF layer is going crazy. Modified: head/sys/dev/ofw/openfirm.c head/sys/powerpc/ofw/ofw_machdep.c Modified: head/sys/dev/ofw/openfirm.c ============================================================================== --- head/sys/dev/ofw/openfirm.c Tue Nov 28 06:21:37 2017 (r326309) +++ head/sys/dev/ofw/openfirm.c Tue Nov 28 06:31:39 2017 (r326310) @@ -201,6 +201,12 @@ OF_install(char *name, int prio) ofw_def_t *ofwp, **ofwpp; static int curr_prio = 0; + /* Allow OF layer to be uninstalled */ + if (name == NULL) { + ofw_def_impl = NULL; + return (FALSE); + } + /* * Try and locate the OFW kobj corresponding to the name. */ Modified: head/sys/powerpc/ofw/ofw_machdep.c ============================================================================== --- head/sys/powerpc/ofw/ofw_machdep.c Tue Nov 28 06:21:37 2017 (r326309) +++ head/sys/powerpc/ofw/ofw_machdep.c Tue Nov 28 06:31:39 2017 (r326310) @@ -393,6 +393,7 @@ boolean_t OF_bootstrap() { boolean_t status = FALSE; + int err = 0; #ifdef AIM if (openfirmware_entry != NULL) { @@ -409,7 +410,7 @@ OF_bootstrap() if (status != TRUE) return status; - OF_init(openfirmware); + err = OF_init(openfirmware); } else #endif if (fdt != NULL) { @@ -418,9 +419,15 @@ OF_bootstrap() if (status != TRUE) return status; - OF_init(fdt); - OF_interpret("perform-fixup", 0); + err = OF_init(fdt); + if (err == 0) + OF_interpret("perform-fixup", 0); } + + if (err != 0) { + OF_install(NULL, 0); + status = FALSE; + } return (status); } From owner-svn-src-head@freebsd.org Tue Nov 28 09:34:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F972DFF294; Tue, 28 Nov 2017 09:34:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 754927D6F6; Tue, 28 Nov 2017 09:34:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAS9YhAK087185; Tue, 28 Nov 2017 09:34:43 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAS9YhY0087183; Tue, 28 Nov 2017 09:34:43 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201711280934.vAS9YhY0087183@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Tue, 28 Nov 2017 09:34:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326311 - in head/sys: amd64/amd64 arm64/arm64 X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: in head/sys: amd64/amd64 arm64/arm64 X-SVN-Commit-Revision: 326311 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 09:34:44 -0000 Author: kib Date: Tue Nov 28 09:34:43 2017 New Revision: 326311 URL: https://svnweb.freebsd.org/changeset/base/326311 Log: Fix index calculation for the page table pages for efirt 1:1 map. Stop issuing pre-assigned number to enumerate all page table pages, the assignment is incorrect. Instead automatically calculate the next unused index. This index in fact does not serve any purpose except to be unique to satisfy vm_page_grab() interface, we do not look up the page by the index later. Reported and tested by: emaste Reviewed by: andrew Sponsored by: The FreeBSD Foundation MFC after: 2 weeks PR: 223906 Differential revision: https://reviews.freebsd.org/D13273 Modified: head/sys/amd64/amd64/efirt_machdep.c head/sys/arm64/arm64/efirt_machdep.c Modified: head/sys/amd64/amd64/efirt_machdep.c ============================================================================== --- head/sys/amd64/amd64/efirt_machdep.c Tue Nov 28 06:31:39 2017 (r326310) +++ head/sys/amd64/amd64/efirt_machdep.c Tue Nov 28 09:34:43 2017 (r326311) @@ -63,6 +63,7 @@ __FBSDID("$FreeBSD$"); static pml4_entry_t *efi_pml4; static vm_object_t obj_1t1_pt; static vm_page_t efi_pml4_page; +static vm_pindex_t efi_1t1_idx; void efi_destroy_1t1_map(void) @@ -85,10 +86,10 @@ efi_destroy_1t1_map(void) } static vm_page_t -efi_1t1_page(vm_pindex_t idx) +efi_1t1_page(void) { - return (vm_page_grab(obj_1t1_pt, idx, VM_ALLOC_NOBUSY | + return (vm_page_grab(obj_1t1_pt, efi_1t1_idx++, VM_ALLOC_NOBUSY | VM_ALLOC_WIRED | VM_ALLOC_ZERO)); } @@ -106,7 +107,7 @@ efi_1t1_pte(vm_offset_t va) pml4_idx = pmap_pml4e_index(va); pml4e = &efi_pml4[pml4_idx]; if (*pml4e == 0) { - m = efi_1t1_page(1 + pml4_idx); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *pml4e = mphys | X86_PG_RW | X86_PG_V; } else { @@ -117,7 +118,7 @@ efi_1t1_pte(vm_offset_t va) pdp_idx = pmap_pdpe_index(va); pdpe += pdp_idx; if (*pdpe == 0) { - m = efi_1t1_page(1 + NPML4EPG + (pml4_idx + 1) * (pdp_idx + 1)); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *pdpe = mphys | X86_PG_RW | X86_PG_V; } else { @@ -128,8 +129,7 @@ efi_1t1_pte(vm_offset_t va) pd_idx = pmap_pde_index(va); pde += pd_idx; if (*pde == 0) { - m = efi_1t1_page(1 + NPML4EPG + NPML4EPG * NPDPEPG + - (pml4_idx + 1) * (pdp_idx + 1) * (pd_idx + 1)); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *pde = mphys | X86_PG_RW | X86_PG_V; } else { @@ -155,8 +155,9 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, ptoa(1 + NPML4EPG + NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG), VM_PROT_ALL, 0, NULL); + efi_1t1_idx = 0; VM_OBJECT_WLOCK(obj_1t1_pt); - efi_pml4_page = efi_1t1_page(0); + efi_pml4_page = efi_1t1_page(); VM_OBJECT_WUNLOCK(obj_1t1_pt); efi_pml4 = (pml4_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(efi_pml4_page)); pmap_pinit_pml4(efi_pml4_page); Modified: head/sys/arm64/arm64/efirt_machdep.c ============================================================================== --- head/sys/arm64/arm64/efirt_machdep.c Tue Nov 28 06:31:39 2017 (r326310) +++ head/sys/arm64/arm64/efirt_machdep.c Tue Nov 28 09:34:43 2017 (r326311) @@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$"); static vm_object_t obj_1t1_pt; static vm_page_t efi_l0_page; static pd_entry_t *efi_l0; +static vm_pindex_t efi_1t1_idx; void efi_destroy_1t1_map(void) @@ -86,10 +87,10 @@ efi_destroy_1t1_map(void) } static vm_page_t -efi_1t1_page(vm_pindex_t idx) +efi_1t1_page(void) { - return (vm_page_grab(obj_1t1_pt, idx, VM_ALLOC_NOBUSY | + return (vm_page_grab(obj_1t1_pt, efi_1t1_idx++, VM_ALLOC_NOBUSY | VM_ALLOC_WIRED | VM_ALLOC_ZERO)); } @@ -105,7 +106,7 @@ efi_1t1_l3(vm_offset_t va) l0_idx = pmap_l0_index(va); l0 = &efi_l0[l0_idx]; if (*l0 == 0) { - m = efi_1t1_page(1 + l0_idx); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *l0 = mphys | L0_TABLE; } else { @@ -116,7 +117,7 @@ efi_1t1_l3(vm_offset_t va) l1_idx = pmap_l1_index(va); l1 += l1_idx; if (*l1 == 0) { - m = efi_1t1_page(1 + L0_ENTRIES + (l0_idx + 1) * (l1_idx + 1)); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *l1 = mphys | L1_TABLE; } else { @@ -127,8 +128,7 @@ efi_1t1_l3(vm_offset_t va) l2_idx = pmap_l2_index(va); l2 += l2_idx; if (*l2 == 0) { - m = efi_1t1_page(1 + L0_ENTRIES + L0_ENTRIES * Ln_ENTRIES + - (l0_idx + 1) * (l1_idx + 1) * (l2_idx + 1)); + m = efi_1t1_page(); mphys = VM_PAGE_TO_PHYS(m); *l2 = mphys | L2_TABLE; } else { @@ -160,7 +160,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int L0_ENTRIES * Ln_ENTRIES * Ln_ENTRIES * Ln_ENTRIES, VM_PROT_ALL, 0, NULL); VM_OBJECT_WLOCK(obj_1t1_pt); - efi_l0_page = efi_1t1_page(0); + efi_1t1_idx = 0; + efi_l0_page = efi_1t1_page(); VM_OBJECT_WUNLOCK(obj_1t1_pt); efi_l0 = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(efi_l0_page)); bzero(efi_l0, L0_ENTRIES * sizeof(*efi_l0)); From owner-svn-src-head@freebsd.org Tue Nov 28 11:04:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB6B2E5245C; Tue, 28 Nov 2017 11:04:48 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A86C080421; Tue, 28 Nov 2017 11:04:48 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASB4lQp024914; Tue, 28 Nov 2017 11:04:47 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASB4lTu024913; Tue, 28 Nov 2017 11:04:47 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201711281104.vASB4lTu024913@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Tue, 28 Nov 2017 11:04:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326312 - head/sys/arm64/arm64 X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/sys/arm64/arm64 X-SVN-Commit-Revision: 326312 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 11:04:49 -0000 Author: andrew Date: Tue Nov 28 11:04:47 2017 New Revision: 326312 URL: https://svnweb.freebsd.org/changeset/base/326312 Log: When we exit the kernel debugger having entered because of a breakpoint instruction we need to jump over the instruction. Without this we will execute the same instruction again and enter into the debugger again. PR: 223917 Reported by: emaste MFC after: 1 week Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/trap.c Modified: head/sys/arm64/arm64/trap.c ============================================================================== --- head/sys/arm64/arm64/trap.c Tue Nov 28 09:34:43 2017 (r326311) +++ head/sys/arm64/arm64/trap.c Tue Nov 28 11:04:47 2017 (r326312) @@ -323,7 +323,10 @@ do_el1h_sync(struct thread *td, struct trapframe *fram break; } #endif - /* FALLTHROUGH */ + kdb_trap(exception, 0, + (td->td_frame != NULL) ? td->td_frame : frame); + frame->tf_elr -= 4; + break; case EXCP_WATCHPT_EL1: case EXCP_SOFTSTP_EL1: #ifdef KDB From owner-svn-src-head@freebsd.org Tue Nov 28 12:53:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAABBE55B6B; Tue, 28 Nov 2017 12:53:56 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 977C163A46; Tue, 28 Nov 2017 12:53:56 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASCrtn2071491; Tue, 28 Nov 2017 12:53:55 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASCrtlB071488; Tue, 28 Nov 2017 12:53:55 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711281253.vASCrtlB071488@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Tue, 28 Nov 2017 12:53:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326314 - in head/sys: ddb kern sys X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: in head/sys: ddb kern sys X-SVN-Commit-Revision: 326314 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 12:53:56 -0000 Author: trasz Date: Tue Nov 28 12:53:55 2017 New Revision: 326314 URL: https://svnweb.freebsd.org/changeset/base/326314 Log: Make kdb_reenter() silent when explicitly called from db_error(). This removes the useless backtrace on various ddb(4) user errors. Reviewed by: jhb@ Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D13212 Modified: head/sys/ddb/db_command.c head/sys/kern/subr_kdb.c head/sys/sys/kdb.h Modified: head/sys/ddb/db_command.c ============================================================================== --- head/sys/ddb/db_command.c Tue Nov 28 11:06:17 2017 (r326313) +++ head/sys/ddb/db_command.c Tue Nov 28 12:53:55 2017 (r326314) @@ -556,7 +556,7 @@ db_error(const char *s) if (s) db_printf("%s", s); db_flush_lex(); - kdb_reenter(); + kdb_reenter_silent(); } static void Modified: head/sys/kern/subr_kdb.c ============================================================================== --- head/sys/kern/subr_kdb.c Tue Nov 28 11:06:17 2017 (r326313) +++ head/sys/kern/subr_kdb.c Tue Nov 28 12:53:55 2017 (r326314) @@ -509,6 +509,17 @@ kdb_reenter(void) /* NOTREACHED */ } +void +kdb_reenter_silent(void) +{ + + if (!kdb_active || kdb_jmpbufp == NULL) + return; + + longjmp(kdb_jmpbufp, 1); + /* NOTREACHED */ +} + /* * Thread related support functions. */ Modified: head/sys/sys/kdb.h ============================================================================== --- head/sys/sys/kdb.h Tue Nov 28 11:06:17 2017 (r326313) +++ head/sys/sys/kdb.h Tue Nov 28 12:53:55 2017 (r326314) @@ -80,6 +80,7 @@ void * kdb_jmpbuf(jmp_buf); void kdb_panic(const char *); void kdb_reboot(void); void kdb_reenter(void); +void kdb_reenter_silent(void); struct pcb *kdb_thr_ctx(struct thread *); struct thread *kdb_thr_first(void); struct thread *kdb_thr_from_pid(pid_t); From owner-svn-src-head@freebsd.org Tue Nov 28 15:27:21 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44FF5DB9890; Tue, 28 Nov 2017 15:27:21 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F94368C77; Tue, 28 Nov 2017 15:27:16 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id r6so119974itr.3; Tue, 28 Nov 2017 07:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=4MFD7YqzqUwG9H07YP9PbyO+a/jgfw0rKGs0LOr5FF8=; b=EYRDQzh6nnxfTPRVFj3xVWwI9xORBgaMg+zrgXHGnF5/FKAZqt2CfAmyA1qm1WBF/+ FqRn4+hGU0gIpXzYJX790BSiUmU6iNb6BlsgKF+kjq/bIV1mKEGogqTxgxXur+J8m2ae JuQ5Kck0UiIX/oZQxsqAEjip/X0XsurbFdh69dX84Tx0OdKpkYyzx/iMtD+oApDfPmX5 FS2QcGcDk264c4xKZSLRzxkmgd5TZ/gdRrRL9OEMC1KRExstfI4S2Ki3F6+xh5T5iXfa KjErD2R0qlECVxbp1Egq846Vy/P7F23UJLjlliCLiuoEf6h1cv3Tx/FF9yK3CJdD/zB9 FmZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=4MFD7YqzqUwG9H07YP9PbyO+a/jgfw0rKGs0LOr5FF8=; b=t4Zk8cz+LoD0GeLxrZqX5t3bq+Xui2gMYjU2WL5jA9pV3sbEnPYu6DJ07raMgaEbJ0 QnyXA+cYFdy2Bh55BOJ8FpnEQo9OtOlYRQZc2lmhpWbsO9aCBHiSzf0l+0EaNU6chUlC CT5Vsg29SWzDT1dZsATHCLJLIaca/Y7cy5mdrIiz9POVz5zT//a8fqwQo03YETfiILSG fgrgz9AsctwpU+7Li8jQtNMOGovtNYL9YfrPQLAv3w5EPRMUw/tzP6LrDJJIa46P4X91 a9MS7KhmGWb7NJm4f7wH3vdCN4H72M4CkuX0vrnUnxuavu/dzTdjTGop/Zmuv1kw4FK7 ZsGg== X-Gm-Message-State: AJaThX4ZwE962HPd2aEjBtFVlbOgRxhswhPfqe1lZny6Ef+plAs9DWkU xrR+ehf5HfECIK0bG5i2BIZNcDoE70s5hDcOp2A= X-Google-Smtp-Source: AGs4zMYNzCugFmlDrfawG9i0sdcOtVELYCinIMv9omyNnPAlwrQ0QxlhcP3CFvsJxCz/DzZ80UI8QD4UNP3BVmjwDSk= X-Received: by 10.36.67.141 with SMTP id s135mr3028694itb.142.1511882835577; Tue, 28 Nov 2017 07:27:15 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.78.207 with HTTP; Tue, 28 Nov 2017 07:27:14 -0800 (PST) In-Reply-To: <201711252145.vAPLjpV6051703@repo.freebsd.org> References: <201711252145.vAPLjpV6051703@repo.freebsd.org> From: Justin Hibbits Date: Tue, 28 Nov 2017 09:27:14 -0600 X-Google-Sender-Auth: iYUzt87C5BtZQ8iUT-p4MVLGWE0 Message-ID: Subject: Re: svn commit: r326203 - head/sys/conf To: Nathan Whitehorn Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 15:27:22 -0000 On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Sat Nov 25 21:45:51 2017 > New Revision: 326203 > URL: https://svnweb.freebsd.org/changeset/base/326203 > > Log: > Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for > the first instruction to be at the start of the text segment. This allows > the kernel to be booted correctly by stock kexec-lite. > > MFC after: 2 weeks > > Modified: > head/sys/conf/ldscript.powerpc64 > > Modified: head/sys/conf/ldscript.powerpc64 > ============================================================================== > --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 (r326202) > +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 (r326203) > @@ -10,7 +10,7 @@ SECTIONS > { > /* Read-only sections, merged into text segment: */ > > - . = kernbase + SIZEOF_HEADERS; > + . = kernbase; > PROVIDE (begin = . - SIZEOF_HEADERS); > > .text : > @@ -24,7 +24,10 @@ SECTIONS > _etext = .; > PROVIDE (etext = .); > > - .interp : { *(.interp) } > + /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */ > + .interpX : { *(.interp) } : NONE > + /DISCARD/ : { *(.interp) } > + > .hash : { *(.hash) } > .dynsym : { *(.dynsym) } > .dynstr : { *(.dynstr) } > This broke powerpc64 Book-E kernels. It now puts a 1MB blank space ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), meaning that now the kernel needs to be loaded by uboot 1MB earlier in memory, rather than straight on the 64MB boundary as it has been. - Justin From owner-svn-src-head@freebsd.org Tue Nov 28 16:00:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD795DBAB48; Tue, 28 Nov 2017 16:00:28 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 787176A5DE; Tue, 28 Nov 2017 16:00:28 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASG0Rbs047860; Tue, 28 Nov 2017 16:00:27 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASG0RjE047859; Tue, 28 Nov 2017 16:00:27 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201711281600.vASG0RjE047859@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Tue, 28 Nov 2017 16:00:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326315 - head/release X-SVN-Group: head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: head/release X-SVN-Commit-Revision: 326315 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:00:28 -0000 Author: gjb Date: Tue Nov 28 16:00:27 2017 New Revision: 326315 URL: https://svnweb.freebsd.org/changeset/base/326315 Log: Set DISTDIR and WRKDIRPREFIX when building ports within the chroot(8) to avoid mtime changes within the ports checkout, which can cause checksum differences. MFC after: 3 days Sponsored by: The FreeBSD Foundation Modified: head/release/release.sh Modified: head/release/release.sh ============================================================================== --- head/release/release.sh Tue Nov 28 12:53:55 2017 (r326314) +++ head/release/release.sh Tue Nov 28 16:00:27 2017 (r326315) @@ -280,6 +280,8 @@ extra_chroot_setup() { PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes" PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}" PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}" + PBUILD_FLAGS="${PBUILD_FLAGS} WRKDIRPREFIX=/tmp/ports" + PBUILD_FLAGS="${PBUILD_FLAGS} DISTDIR=/tmp/distfiles" chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \ ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \ FORCE_PKG_REGISTER=1 \ From owner-svn-src-head@freebsd.org Tue Nov 28 16:14:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEF98DBB361; Tue, 28 Nov 2017 16:14:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A9B016B6AB; Tue, 28 Nov 2017 16:14:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vASGDrA3032035 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 28 Nov 2017 08:13:54 -0800 Subject: Re: svn commit: r326203 - head/sys/conf To: Justin Hibbits Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" References: <201711252145.vAPLjpV6051703@repo.freebsd.org> From: Nathan Whitehorn Message-ID: <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> Date: Tue, 28 Nov 2017 08:13:53 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVY4qqSmZ2CPCOsAxma2I0lZzyi+RErQiVfxI6U3T2DXdj6FecRDn2XGmaJl4zBG0VhHFG/Mo6AhkboMduh2GQh1WJRU7MKAg2A= X-Sonic-ID: C;uODvIFfU5xGXiusnWtmBlw== M;IK82IVfU5xGXiusnWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:14:07 -0000 On 11/28/17 07:27, Justin Hibbits wrote: > On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn > wrote: >> Author: nwhitehorn >> Date: Sat Nov 25 21:45:51 2017 >> New Revision: 326203 >> URL: https://svnweb.freebsd.org/changeset/base/326203 >> >> Log: >> Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for >> the first instruction to be at the start of the text segment. This allows >> the kernel to be booted correctly by stock kexec-lite. >> >> MFC after: 2 weeks >> >> Modified: >> head/sys/conf/ldscript.powerpc64 >> >> Modified: head/sys/conf/ldscript.powerpc64 >> ============================================================================== >> --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 (r326202) >> +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 (r326203) >> @@ -10,7 +10,7 @@ SECTIONS >> { >> /* Read-only sections, merged into text segment: */ >> >> - . = kernbase + SIZEOF_HEADERS; >> + . = kernbase; >> PROVIDE (begin = . - SIZEOF_HEADERS); >> >> .text : >> @@ -24,7 +24,10 @@ SECTIONS >> _etext = .; >> PROVIDE (etext = .); >> >> - .interp : { *(.interp) } >> + /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */ >> + .interpX : { *(.interp) } : NONE >> + /DISCARD/ : { *(.interp) } >> + >> .hash : { *(.hash) } >> .dynsym : { *(.dynsym) } >> .dynstr : { *(.dynstr) } >> > This broke powerpc64 Book-E kernels. It now puts a 1MB blank space > ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), > meaning that now the kernel needs to be loaded by uboot 1MB earlier in > memory, rather than straight on the 64MB boundary as it has been. > > - Justin > How on Earth? It doesn't do that on my system. What binutils are you using? -Nathan From owner-svn-src-head@freebsd.org Tue Nov 28 16:23:51 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A5C0DBB7DD; Tue, 28 Nov 2017 16:23:51 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 109F36C0AF; Tue, 28 Nov 2017 16:23:51 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io0-x243.google.com with SMTP id d16so421389iob.4; Tue, 28 Nov 2017 08:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BB2R9sHa+pgu+916ErgAJO7amn+snMBztQSoYdpELaY=; b=VHCdJk/8ghWgJCxTG+J7HIA+WridqguC6owGbTwPdSD1ipVAahcbCJSDIWNXi4donK qzdwfiMTrR+V+120SBptr8a3T59J5Si2OGq6T5ksk1wSOaVaNcmiTrXNvfbq06wG9xIj V+ltJYDVw/4VDTdm6VKUlLui+vWQWMrlzz2mla0mrPD8abmxl7z5CBfJUzhHDDHk5qv4 eT6WRH2DbHOeUXesagsmSnWXFDyfx429tBdNDxSP99xmq5V1ZrRPi1j8nr5F4nypXClS xV9AaUv8FYnUNqN7xN1ebvQ7vRx7ifG7o7gVvrEdaqow33HaI3DoWLfxnnuDAffocduu lo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BB2R9sHa+pgu+916ErgAJO7amn+snMBztQSoYdpELaY=; b=BUV8EV1mC/WsJun11IpJeoCUz4cMdAhf9VffZtJLsm4+439QyeGKlTmsU06Z4WvvNV 2JqIFXelT6DwbKsBelnT6SmgNhhl8gu3tSBlftdrQRGhGzbcK0DGn+DScoNe04fBdEO6 CrfEoqmJBhoTs4s0kcQfillBwSwpU9sccpn5JNDdoPrcHWHnZjslh5bGALeSDT5+YwfA lntzL6KVt0NDT7VU9y/p3wNtmncZlgDHovsGm2DrNsH1H81QZXYr0e0KT+TTYvBKJN6+ lXeq4ZZ8sNUTFvJuJutpgXPHRqRMU5mRG+zw0YkO0pgeP7liZ99ueKtzLoVJgF7YgM2I BKqw== X-Gm-Message-State: AJaThX6ApzD2cEu8uV6GyOZAFjcD1wqSpTqoCGrYmNIbdksfb/7PlDu1 IJrDuFgqypQrRMdLPXwZp4ZySnu6unuKYCzvS2w= X-Google-Smtp-Source: AGs4zMYvX4JPZhZruyAwWdsd7lB9n3kDlAtdx6FU2mXPN0Xe2D4UbZrA+P60mxAxdwys6Hf/0XtSgE4YIFAhhr61VQU= X-Received: by 10.107.132.85 with SMTP id g82mr25724811iod.232.1511886230017; Tue, 28 Nov 2017 08:23:50 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.78.207 with HTTP; Tue, 28 Nov 2017 08:23:49 -0800 (PST) In-Reply-To: <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> References: <201711252145.vAPLjpV6051703@repo.freebsd.org> <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> From: Justin Hibbits Date: Tue, 28 Nov 2017 10:23:49 -0600 X-Google-Sender-Auth: dVYMRlBs1yIhfFLwo-uJtMJ5ywE Message-ID: Subject: Re: svn commit: r326203 - head/sys/conf To: Nathan Whitehorn Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:23:51 -0000 On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn wrote: > > > On 11/28/17 07:27, Justin Hibbits wrote: >> >> On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn >> wrote: >>> >>> Author: nwhitehorn >>> Date: Sat Nov 25 21:45:51 2017 >>> New Revision: 326203 >>> URL: https://svnweb.freebsd.org/changeset/base/326203 >>> >>> Log: >>> Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange >>> for >>> the first instruction to be at the start of the text segment. This >>> allows >>> the kernel to be booted correctly by stock kexec-lite. >>> >>> MFC after: 2 weeks >>> >>> Modified: >>> head/sys/conf/ldscript.powerpc64 >>> >>> Modified: head/sys/conf/ldscript.powerpc64 >>> >>> ============================================================================== >>> --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 >>> (r326202) >>> +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 >>> (r326203) >>> @@ -10,7 +10,7 @@ SECTIONS >>> { >>> /* Read-only sections, merged into text segment: */ >>> >>> - . = kernbase + SIZEOF_HEADERS; >>> + . = kernbase; >>> PROVIDE (begin = . - SIZEOF_HEADERS); >>> >>> .text : >>> @@ -24,7 +24,10 @@ SECTIONS >>> _etext = .; >>> PROVIDE (etext = .); >>> >>> - .interp : { *(.interp) } >>> + /* Do not emit PT_INTERP section, which confuses some loaders >>> (kexec-lite) */ >>> + .interpX : { *(.interp) } : NONE >>> + /DISCARD/ : { *(.interp) } >>> + >>> .hash : { *(.hash) } >>> .dynsym : { *(.dynsym) } >>> .dynstr : { *(.dynstr) } >>> >> This broke powerpc64 Book-E kernels. It now puts a 1MB blank space >> ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), >> meaning that now the kernel needs to be loaded by uboot 1MB earlier in >> memory, rather than straight on the 64MB boundary as it has been. >> >> - Justin >> > > How on Earth? It doesn't do that on my system. What binutils are you using? > -Nathan > This is using base binutils (2.17.50...) I don't know why it's doing this, but readelf shows that file offset 0x0000000000100000 maps to 0xc000000000000000, and it goes from there. - Justin From owner-svn-src-head@freebsd.org Tue Nov 28 16:25:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EDF9DBB8F5; Tue, 28 Nov 2017 16:25:47 +0000 (UTC) (envelope-from fsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39AD16C305; Tue, 28 Nov 2017 16:25:47 +0000 (UTC) (envelope-from fsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASGPkm4061017; Tue, 28 Nov 2017 16:25:46 GMT (envelope-from fsu@FreeBSD.org) Received: (from fsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASGPkqw061016; Tue, 28 Nov 2017 16:25:46 GMT (envelope-from fsu@FreeBSD.org) Message-Id: <201711281625.vASGPkqw061016@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fsu set sender to fsu@FreeBSD.org using -f From: Fedor Uporov Date: Tue, 28 Nov 2017 16:25:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326317 - head/lib/libsysdecode X-SVN-Group: head X-SVN-Commit-Author: fsu X-SVN-Commit-Paths: head/lib/libsysdecode X-SVN-Commit-Revision: 326317 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:25:47 -0000 Author: fsu Date: Tue Nov 28 16:25:46 2017 New Revision: 326317 URL: https://svnweb.freebsd.org/changeset/base/326317 Log: Sync bsd_to_linux_errno[] table with i386 and amd64 tables in the sys directory. Additional fix for r326282. MFC after: 1 week Approved by: pfg Modified: head/lib/libsysdecode/errno.c Modified: head/lib/libsysdecode/errno.c ============================================================================== --- head/lib/libsysdecode/errno.c Tue Nov 28 16:09:02 2017 (r326316) +++ head/lib/libsysdecode/errno.c Tue Nov 28 16:25:46 2017 (r326317) @@ -53,7 +53,7 @@ static int bsd_to_linux_errno[ELAST + 1] = { -100,-101,-102,-103,-104,-105,-106,-107,-108,-109, -110,-111, -40, -36,-112,-113, -39, -11, -87,-122, -116, -66, -6, -6, -6, -6, -6, -37, -38, -9, - -6, -6, -43, -42, -75,-125, -84, -95, -16, -74, + -6, -6, -43, -42, -75,-125, -84, -61, -16, -74, -72, -67, -71 }; #endif From owner-svn-src-head@freebsd.org Tue Nov 28 16:26:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BBB4DBB94E; Tue, 28 Nov 2017 16:26:07 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail110.syd.optusnet.com.au (mail110.syd.optusnet.com.au [211.29.132.97]) by mx1.freebsd.org (Postfix) with ESMTP id 8144A6C450; Tue, 28 Nov 2017 16:26:06 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail110.syd.optusnet.com.au (Postfix) with ESMTPS id 87926102316; Wed, 29 Nov 2017 02:56:03 +1100 (AEDT) Date: Wed, 29 Nov 2017 02:56:02 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Andrew Turner cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326312 - head/sys/arm64/arm64 In-Reply-To: <201711281104.vASB4lTu024913@repo.freebsd.org> Message-ID: <20171128234051.L1761@besplex.bde.org> References: <201711281104.vASB4lTu024913@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=cK6QihWN c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=Jb6GJt-qubM306kzQlUA:9 a=4mpojyaBOmDga0F6:21 a=EBaCygjbx1TqSPLS:21 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:26:07 -0000 On Tue, 28 Nov 2017, Andrew Turner wrote: > Log: > When we exit the kernel debugger having entered because of a breakpoint > instruction we need to jump over the instruction. Without this we will > execute the same instruction again and enter into the debugger again. > > PR: 223917 > Reported by: emaste > MFC after: 1 week > Sponsored by: DARPA, AFRL This belongs in the debugger. ddb has several macros for skipping back and forth over the breakpoint instruction, and normally returns with it skipped over. gdb presumably does the same. The macros seem to be correct for arm64. > Modified: head/sys/arm64/arm64/trap.c > ============================================================================== > --- head/sys/arm64/arm64/trap.c Tue Nov 28 09:34:43 2017 (r326311) > +++ head/sys/arm64/arm64/trap.c Tue Nov 28 11:04:47 2017 (r326312) > @@ -323,7 +323,10 @@ do_el1h_sync(struct thread *td, struct trapframe *fram > break; > } > #endif > - /* FALLTHROUGH */ > + kdb_trap(exception, 0, > + (td->td_frame != NULL) ? td->td_frame : frame); > + frame->tf_elr -= 4; This seems to have the wrong sign as well as being fundamentally wrong. Execution only decrements the pc on exotic arches, and arm64 seems to be non-exotic, since the BKPT_SKIP() instruction in db_machdep.h for skipping the pc does frame->tf_elr += BKPT_SIZE. BKPT_SKIP also does kdb_thrctx->pcb_rip += BKPT_SIZE on amd64, i386 and mips. This is missing on arm, arm64 and riscv and sparc64. BKPT_SKIP is missing on powerpc. On sparc64, BKPT_SKIP also advances a second pc by 2*BKPT_SIZE. > + break; > case EXCP_WATCHPT_EL1: > case EXCP_SOFTSTP_EL1: > #ifdef KDB Falling through was almost correct. I don't see anything wrong with BKPT_SKIP(), so the bug seems to break the usual case where ddb skips over the breakpoint. Then the above reverse the skip. Perhaps gdb is broken and advances by 8. Then the above corrects +8 to +4. Unusual cases are much more complicated and broken. Sometimes the instruction needs to be restarted or user has set the pc to an unrelated value -- then only the debugger knows what the pc should be. Old bugs in the fall-through case: - non-bug: when KDB is not configured, panic is called. This is correct, especially for the breakpoint case since the instruction stream might be corrupt in this case. - when KDB configured but no backend is attached, kdb_trap() fails and panic should be called then, as on x86, for the same reasons as when KDB is not configured. - it is a style bug to ifdef the call to kdb_trap() with KDB. When KDB is not configured, kdb_trap() fails and correct code checks for this and panics, as on x86. - non-bug: since the hardware doesn't advance the pc on arm64, the instruction stream is actually never corrupt when kdb_trap() fails - kdb_trap() can also fail when ddb is attached but the console is transiently unavailable. Then the instruction stream is corrupt in some cases, but it is wrong to turn console unavailability into a panic. This is partly fixed in my version, but fixing up the instruction stream and returning success from ddb (with the usual complications for continuing over a breakpoint). Console unavailability remains very broken as implemented -- it does little except try to give this panic but not give it in many cases. New bugs given by not falling through: - non-bug: it is missing the style bug of the KDB ifdef - it is missing the panic in the case where KDB is not configured - non-new-bug: when KDB is not configured it is missing the error check and panic as before. One case that is clearly broken now but probably worked before is when multiple CPUs hit the same breakpoint and the breakpoint is removed on one of them that is not the last one to enter ddb. Then the correct behaviour is: - enter with all pc's advanced or not over the breakpoint instruction (assume that it is a specialy instruction written into the instruction stream; this corrupts the stream and must be fixed up) - in each ddb instance, unadvance the pc if necessary to the breakpoint instruction - determine if the pc is for a breakpoint set by us. Until the breakpoint is unset by one of the ddb instances, find that it was set by us. Continue normally in this case (put back the original instruction and single-step over it. This commit seems to completely break this handling, even for a single ddb instance). Then get a single-step trap and put back the breakpoint instruction.) - there is not enough synchronization, so ddb loses control when it returns to single-step. Other ddb instances hitting the breakpoint see the original instruction while racing with the previous step. They should put it back over itself and do much the same. - eventually 1 of the ddb instances removes the breakpoint. It puts back the original instruction and continues without single-stepping. - ddb instances after this enter with a breakpoint trap but no sign of the breakpoint in the instruction stream. They must restart at where the breakpoint was. This is very broken on x86 (except in my version). I think it used to work automatically on arm64, because the hardware doesn't advance the pc. Now the software breaks it by advancing unconditionally. Here is the ddb code for fixing up the pc after a breakpoint, with my fixes applied: X bool X db_stop_at_pc(int type, int code, bool *is_breakpoint, bool *is_watchpoint) X { X db_addr_t pc; X db_breakpoint_t bkpt; X X *is_breakpoint = IS_BREAKPOINT_TRAP(type, code); X *is_watchpoint = IS_WATCHPOINT_TRAP(type, code); X pc = PC_REGS(); X if (db_pc_is_singlestep(pc)) X *is_breakpoint = false; ddb watchpoints are mostly broken and cause confusion. x86 doesn't have any, but maps x86 hardware breakpoints to ddb watchpoints. I think the latter are supposed to be in software and can be implemented using software interrupts, but x86 doesn't bother. It is unclear what they can do that breakpoint software interrupts can't do -- they can at least give a different class of breakpoints encoded by the software interrupt number. arm64 has a watchpoint exception number EXCP_WATCHPOINT_EL1. This maps to is_watchpoint = TRUE in the above. X X db_clear_single_step(); X db_clear_breakpoints(); X db_clear_watchpoints(); X X #ifdef FIXUP_PC_AFTER_BREAK X if (*is_breakpoint) { X /* X * Breakpoint trap. Fix up the PC if the X * machine requires it. X */ X FIXUP_PC_AFTER_BREAK X pc = PC_REGS(); X } X #endif FIXUP_PC_AFTER_BREAK must be defined by arches where the hardware doesn't advance the pc over breakpoint instructions in the instruction stream. On x86, it unadvances the pc by 1. On arm64, it is not defined, since the pc is already unadvanced. X X /* X * Now check for a breakpoint at this address. X */ X bkpt = db_find_breakpoint_here(pc); X if (bkpt) { X if (--bkpt->count == 0) { X bkpt->count = bkpt->init_count; X *is_breakpoint = true; X return (true); /* stop here */ X } X return (false); /* continue the countdown */ X } else if (*is_breakpoint) { X #ifdef BKPT_SKIP We unadvanced the pc to look it up in the breakpoint table. Now we must advance it over the breakpoint instruction to restart from there since it was not in our table. It should be part of the normal instruction stream. If another debugger overwrote the instruction stream and gave control to us, then that is a bug in the other debugger and we will probably crash soon. X #ifdef SMP X /* X * In the SMP case, 'bkpt' doesn't tell us if this breakpoint X * was controlled by us when we hit it, since the breakpoint X * may have been cleared during a ddb entry by another CPU X * which won the race to enter. Only skip if the breakpoint X * is still in the instruction stream. Otherwise, turn the X * breakpoint into an unknown trap except for ignoring it if X * we are continuing. X */ X BKPT_INST_TYPE memval, testval; X X memval = db_get_value(pc, BKPT_SIZE, FALSE); X testval = BKPT_SET(&testval); X if (bcmp(&memval, &testval, BKPT_SIZE) == 0) X BKPT_SKIP; X else { X *is_breakpoint = false; X if (db_run_mode == STEP_CONTINUE) X return (false); /* continue */ X } For the SMP case, the other debugger can be ddb, and this is my fix for it. X #else X BKPT_SKIP; The !SMP case is simpler. BKPT_SKIP usually just advances the pc by BKPT_SIZE, but does a contitional advance related to the current problem on mips. X #endif X #endif X } We already returned with the unadvanced pc if we are contining over a breakpoint. Advancing in the caller breaks this. Unadvancing breaks it more. X X *is_breakpoint = false; /* might be a breakpoint, but not ours */ Here we continue with the advanced pc. Again it seems to be correct on arm64, and advancing or unadvancing in the caller breaks it. Here are my fixes in the above code: X Index: db_run.c X =================================================================== X --- db_run.c (revision 325403) X +++ db_run.c (working copy) X @@ -36,6 +36,7 @@ X __FBSDID("$FreeBSD$"); X X #include X +#include X #include X #include X X @@ -129,8 +130,31 @@ X return (false); /* continue the countdown */ X } else if (*is_breakpoint) { X #ifdef BKPT_SKIP X +#ifdef SMP X + /* X + * In the SMP case, 'bkpt' doesn't tell us if this breakpoint X + * was controlled by us when we hit it, since the breakpoint X + * may have been cleared during a ddb entry by another CPU X + * which won the race to enter. Only skip if the breakpoint X + * is still in the instruction stream. Otherwise, turn the X + * breakpoint into an unknown trap except for ignoring it if X + * we are continuing. X + */ X + BKPT_INST_TYPE memval, testval; X + X + memval = db_get_value(pc, BKPT_SIZE, FALSE); X + testval = BKPT_SET(&testval); BKPT_SET() is a misimplemented macro that takes an arg which is always ignored; it is always implemented as a manifest constant (ddb macros mostly have the opposite error of looking like manifest constants but being function-like macros with no args but side effects). It is apparently meant for setting a breakpoint instruction directly in the instruction stream, but that is too hard so it is always used as above by setting a local variable and then copying that to memory using a special ddb access function. X + if (bcmp(&memval, &testval, BKPT_SIZE) == 0) X BKPT_SKIP; kib didn't like the MD'ness of this, but it is no worse than hard-coding the setting of the instruction using the accesss function because the BKPT_SET() macro is useless for applying MD settings to the instruction stream (as used, it might apply them only to a local variable)). X + else { X + *is_breakpoint = false; X + if (db_run_mode == STEP_CONTINUE) X + return (false); /* continue */ X + } X +#else X + BKPT_SKIP; X #endif X +#endif X } X X *is_breakpoint = false; /* might be a breakpoint, but not ours */ X Behaviour of various arches for advancing and unadvancing the pc after a breakpoint: - and64, i386: +-1 over 1-byte instruction. 1 is spelled as itself instead of as BKPT_SIZE in the implementation. Most implentations have bogus parentheses around literal constants. - arm: +4 and no unadvance over 4-byte instruction. 4 is spelled BKPT_SIZE and further obfuscated by spelling BKPT_SIZE as INSN_SIZE in the implementation. INSN_SIZE is defined in another header, so db_machdep.h requires more namespace pollution than it should. BKPT_INSTRUCTION is similarly obfuscated by spelling it as KERNEL_BREAKPOINT which is defined in yet another header so even more pollution is required. - arm64: like arm except without the pollution. Minor obfuscation of spelling 4 as BKPT_SIZE in the implementation. The change should use the macro if it is correct, but spells BKPT_SIZE as -4. - mips: +4 and no unadvance over 4-byte instruction. 4 is spelled BKPT_SIZE BKPT_SIZE but BKPT_SIZE is not obfuscated as on arm. BREAKPOINT_INSTRUCTION doesn't exit and shouldn't be exported as on arm*, but its literal value is more interesting. mips apparently has many software interrupts which give the same debugger exception and the instruction has to be decoded to decide which one. BKPT_SE() returns one for ddb, MIPS_BREAK_DDB, and pollution is implemented by not defining this in ddb's header file. BKPT_SKIP() is complicted to read the instruction stream much like my patch does. Although MIPS_BREAK_DDB is a single instruction, BKPT_SKIP ignores some bits in the comparision so as to skip for this and some other instructions. It makes some sense to use different software interrupts for different debuggers, but I don't see how this can fix the problem of debuggers possibly corrupting each others' instruction streams with breapoint instructions. It can help detect the problem. - powerpc: like arm64 - riscv: like arm - sparc64: like arm64, except it spells BKPT_SIZE as 4 in the implementation and has a secondary pc which it advances. amd64 and i386 are the only arches where the hardware advances over the breakpoint so that the unadvance is needed. kdb seems to be most broken for powerpc. powerpc has no advance and no unadvance. It doesn't even call kdb_reenter(). Bruce From owner-svn-src-head@freebsd.org Tue Nov 28 16:26:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66F68DBBA0F; Tue, 28 Nov 2017 16:26:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 313E96C5E8; Tue, 28 Nov 2017 16:26:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASGQudn061099; Tue, 28 Nov 2017 16:26:56 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASGQuBu061098; Tue, 28 Nov 2017 16:26:56 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201711281626.vASGQuBu061098@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Tue, 28 Nov 2017 16:26:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326318 - head/sys/arm64/arm64 X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/sys/arm64/arm64 X-SVN-Commit-Revision: 326318 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:26:57 -0000 Author: andrew Date: Tue Nov 28 16:26:56 2017 New Revision: 326318 URL: https://svnweb.freebsd.org/changeset/base/326318 Log: Fix the direction we move the instruction to retuirn to after exiting the kernel debugger. We should skip the breakpoint instruction, not execute the instruction before it. Pointy-hat to: andrew MFC after: 1 week Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/trap.c Modified: head/sys/arm64/arm64/trap.c ============================================================================== --- head/sys/arm64/arm64/trap.c Tue Nov 28 16:25:46 2017 (r326317) +++ head/sys/arm64/arm64/trap.c Tue Nov 28 16:26:56 2017 (r326318) @@ -325,7 +325,7 @@ do_el1h_sync(struct thread *td, struct trapframe *fram #endif kdb_trap(exception, 0, (td->td_frame != NULL) ? td->td_frame : frame); - frame->tf_elr -= 4; + frame->tf_elr += 4; break; case EXCP_WATCHPT_EL1: case EXCP_SOFTSTP_EL1: From owner-svn-src-head@freebsd.org Tue Nov 28 16:30:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0ABD0DBBC0C; Tue, 28 Nov 2017 16:30:33 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E0F896C9DD; Tue, 28 Nov 2017 16:30:32 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id vASGUMpv018641 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 28 Nov 2017 08:30:23 -0800 Subject: Re: svn commit: r326203 - head/sys/conf To: Justin Hibbits Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" References: <201711252145.vAPLjpV6051703@repo.freebsd.org> <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> From: Nathan Whitehorn Message-ID: Date: Tue, 28 Nov 2017 08:30:22 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVY9622+adzc0Wn61OybqCS8N9hsByTD9ZuOAcY65JVMn0hHpkKOSTUfuhLmqt+Y2dFRignM8vW2wDhzVd6L4XBZnCWXWxEtO4s= X-Sonic-ID: C;zAJgblnU5xGIxOsnWtmBlw== M;3rCublnU5xGIxOsnWtmBlw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:30:33 -0000 On 11/28/17 08:23, Justin Hibbits wrote: > On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn > wrote: >> >> On 11/28/17 07:27, Justin Hibbits wrote: >>> On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn >>> wrote: >>>> Author: nwhitehorn >>>> Date: Sat Nov 25 21:45:51 2017 >>>> New Revision: 326203 >>>> URL: https://svnweb.freebsd.org/changeset/base/326203 >>>> >>>> Log: >>>> Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange >>>> for >>>> the first instruction to be at the start of the text segment. This >>>> allows >>>> the kernel to be booted correctly by stock kexec-lite. >>>> >>>> MFC after: 2 weeks >>>> >>>> Modified: >>>> head/sys/conf/ldscript.powerpc64 >>>> >>>> Modified: head/sys/conf/ldscript.powerpc64 >>>> >>>> ============================================================================== >>>> --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 >>>> (r326202) >>>> +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 >>>> (r326203) >>>> @@ -10,7 +10,7 @@ SECTIONS >>>> { >>>> /* Read-only sections, merged into text segment: */ >>>> >>>> - . = kernbase + SIZEOF_HEADERS; >>>> + . = kernbase; >>>> PROVIDE (begin = . - SIZEOF_HEADERS); >>>> >>>> .text : >>>> @@ -24,7 +24,10 @@ SECTIONS >>>> _etext = .; >>>> PROVIDE (etext = .); >>>> >>>> - .interp : { *(.interp) } >>>> + /* Do not emit PT_INTERP section, which confuses some loaders >>>> (kexec-lite) */ >>>> + .interpX : { *(.interp) } : NONE >>>> + /DISCARD/ : { *(.interp) } >>>> + >>>> .hash : { *(.hash) } >>>> .dynsym : { *(.dynsym) } >>>> .dynstr : { *(.dynstr) } >>>> >>> This broke powerpc64 Book-E kernels. It now puts a 1MB blank space >>> ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), >>> meaning that now the kernel needs to be loaded by uboot 1MB earlier in >>> memory, rather than straight on the 64MB boundary as it has been. >>> >>> - Justin >>> >> How on Earth? It doesn't do that on my system. What binutils are you using? >> -Nathan >> > This is using base binutils (2.17.50...) I don't know why it's doing > this, but readelf shows that file offset 0x0000000000100000 maps to > 0xc000000000000000, and it goes from there. > > - Justin > Bizarre. Why don't you just revert for now (I need to run) and I can figure out what went wrong later? -Nathan From owner-svn-src-head@freebsd.org Tue Nov 28 16:34:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C7E5DBBFCD; Tue, 28 Nov 2017 16:34:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 367DA6CF85; Tue, 28 Nov 2017 16:34:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-it0-x243.google.com with SMTP id 68so401165ite.4; Tue, 28 Nov 2017 08:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CCKUIXHv1SIsN2wNddZkK9mlWMPhn52ksfL1UEyfZBQ=; b=vHIgIFqys8KBYnIkGBM/u/bkNt7fUBGj5f3os5OCEr3dGQx1fFHBfhnLIzoV/Oy8ie HxfepwSRK040eFEShgCfhfqVI1HfYdwN2CYzIfYHpR5bma8FaTx7qfr/T3TEryXNrOSv +smdgIEdWRiz0Pat7IlvojAwjSYAXBICAcBzxY2rRVOuNxz9s2323P7J0qc65sqN1ABU IX0RHw1Uc9Z3LLJFceuf9PF4Tq3JBvr3Lsl/+CxkNNvucBnYp9ubyBDGFpcLdhrwytoE vUP8Xv9rYJyB6CLDBcadDbIfrIrA8jloqU4cbtgyBxWEKEqFqAi3eRpfeWzq+E3d0h79 iFRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=CCKUIXHv1SIsN2wNddZkK9mlWMPhn52ksfL1UEyfZBQ=; b=cAAydjuSxs/uoT0WwQ2a/EtoE/W7PTUgUSKlKJDpYWMrLUwnfJPh5CGErLOKOz5EiK bUrXaqUyVHIcH4qBWvhiR+aGnWAypIG6r5Zng0CKfHulTOpAvT4Yeo7KB6uL0rY2zDhr lBm/5Ps5lqmwHAdn5QJBHFU9JJYHn68c6A8RC9gWPqERnsy9Tgkw7TANvx0a02QfKrCx 59b0Yb8JDP+HwsT420bY5z34w/zYXgqYgSBwz+Nyz2Ff1uSdmnhJn1i03gTNGTh5e8Ow UxaEP26eQCXn0r2+jAJr0o9EFTEpMjTvwg3ooDhDJMw8lWqCMWTot/QiHD60vWfNk9xR elGQ== X-Gm-Message-State: AJaThX68TT0CXebfqnyE2EL0ScpxJH6F4RI2O3lP5H8XHDVXQGAQXln+ UdEDJfn9prfLYMFR/Y6oIrx7n6i0dntiKU1N/rk= X-Google-Smtp-Source: AGs4zMa++GX5Fji+M5+FBhWTkegO8ypZ2tauEU5JEFTqEDiuVZsBFCj7ourY8Sfb86Dv27pVianjudbQ2Tb4Dq/1EPg= X-Received: by 10.36.83.137 with SMTP id n131mr3529113itb.82.1511886872266; Tue, 28 Nov 2017 08:34:32 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.78.207 with HTTP; Tue, 28 Nov 2017 08:34:31 -0800 (PST) In-Reply-To: References: <201711252145.vAPLjpV6051703@repo.freebsd.org> <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> From: Justin Hibbits Date: Tue, 28 Nov 2017 10:34:31 -0600 X-Google-Sender-Auth: mPP3kgmNrlJcdqjhdNFob7Q7Qpg Message-ID: Subject: Re: svn commit: r326203 - head/sys/conf To: Nathan Whitehorn Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:34:33 -0000 On Tue, Nov 28, 2017 at 10:30 AM, Nathan Whitehorn wrote: > > > On 11/28/17 08:23, Justin Hibbits wrote: >> >> On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn >> wrote: >>> >>> >>> On 11/28/17 07:27, Justin Hibbits wrote: >>>> >>>> On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn >>>> wrote: >>>>> >>>>> Author: nwhitehorn >>>>> Date: Sat Nov 25 21:45:51 2017 >>>>> New Revision: 326203 >>>>> URL: https://svnweb.freebsd.org/changeset/base/326203 >>>>> >>>>> Log: >>>>> Avoid emitting a PT_INTERP section for powerpc64 kernels and >>>>> arrange >>>>> for >>>>> the first instruction to be at the start of the text segment. This >>>>> allows >>>>> the kernel to be booted correctly by stock kexec-lite. >>>>> >>>>> MFC after: 2 weeks >>>>> >>>>> Modified: >>>>> head/sys/conf/ldscript.powerpc64 >>>>> >>>>> Modified: head/sys/conf/ldscript.powerpc64 >>>>> >>>>> >>>>> ============================================================================== >>>>> --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 >>>>> (r326202) >>>>> +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 >>>>> (r326203) >>>>> @@ -10,7 +10,7 @@ SECTIONS >>>>> { >>>>> /* Read-only sections, merged into text segment: */ >>>>> >>>>> - . = kernbase + SIZEOF_HEADERS; >>>>> + . = kernbase; >>>>> PROVIDE (begin = . - SIZEOF_HEADERS); >>>>> >>>>> .text : >>>>> @@ -24,7 +24,10 @@ SECTIONS >>>>> _etext = .; >>>>> PROVIDE (etext = .); >>>>> >>>>> - .interp : { *(.interp) } >>>>> + /* Do not emit PT_INTERP section, which confuses some loaders >>>>> (kexec-lite) */ >>>>> + .interpX : { *(.interp) } : NONE >>>>> + /DISCARD/ : { *(.interp) } >>>>> + >>>>> .hash : { *(.hash) } >>>>> .dynsym : { *(.dynsym) } >>>>> .dynstr : { *(.dynstr) } >>>>> >>>> This broke powerpc64 Book-E kernels. It now puts a 1MB blank space >>>> ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), >>>> meaning that now the kernel needs to be loaded by uboot 1MB earlier in >>>> memory, rather than straight on the 64MB boundary as it has been. >>>> >>>> - Justin >>>> >>> How on Earth? It doesn't do that on my system. What binutils are you >>> using? >>> -Nathan >>> >> This is using base binutils (2.17.50...) I don't know why it's doing >> this, but readelf shows that file offset 0x0000000000100000 maps to >> 0xc000000000000000, and it goes from there. >> >> - Justin >> > > Bizarre. Why don't you just revert for now (I need to run) and I can figure > out what went wrong later? > -Nathan I reverted privately already. I doubt there are many/any other users of Book-E powerpc64, so I can wait it out for now. - Justin From owner-svn-src-head@freebsd.org Tue Nov 28 17:04:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E2D0DE73FF; Tue, 28 Nov 2017 17:04:57 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 1DB966EBF0; Tue, 28 Nov 2017 17:04:56 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id CB8BD1047070; Wed, 29 Nov 2017 04:04:49 +1100 (AEDT) Date: Wed, 29 Nov 2017 04:04:49 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Edward Tomasz Napierala cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326314 - in head/sys: ddb kern sys In-Reply-To: <201711281253.vASCrtlB071488@repo.freebsd.org> Message-ID: <20171129030035.W2283@besplex.bde.org> References: <201711281253.vASCrtlB071488@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=bc8baKHB c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=kJXDIk-I7poipWL2VAoA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 17:04:57 -0000 On Tue, 28 Nov 2017, Edward Tomasz Napierala wrote: > Log: > Make kdb_reenter() silent when explicitly called from db_error(). > This removes the useless backtrace on various ddb(4) user errors. > > Reviewed by: jhb@ > Obtained from: CheriBSD > MFC after: 2 weeks > Sponsored by: DARPA, AFRL > Differential Revision: https://reviews.freebsd.org/D13212 This doesn't fix the spam for user errors that cause a trap, which are very common (for mistyping memory addresses). ddb sets up trap handlers using setjmp, and actually does this correctly in many cases, but when a trap occurs the error handling is: trap -> kdb_reenter (print spam here) -> ddb (print error message here) The second error message is useful iff the trap handler was set up correctly (longjmp then goes back to a place that knows the precise context so it is easy to print a relevant error message). I forget if this error message is printed using db_error() which would repeat the spam, but it probably is in correct cases -- ddb should return to the main loop using longjmp, but it never calls longjmp directly. Instead it goes by db_error() to kdb which does the longjmp. So the correct error handling (still badly implemented) is now: setjmp in main loop setjmp in command, perhaps for memory access that might trap trap call kdb print spam (remove this for correctness) longjmp back to command back in command after longmp call db_error print good error message call kdb_reenter print spam (remove this for correctness) longjmp back to main loop back in main loop after longjmp IIRC. the jmp_buf for kdn_reenter() is global, so this must be switched to set up context-sensitive error handling. > Modified: head/sys/kern/subr_kdb.c > ============================================================================== > --- head/sys/kern/subr_kdb.c Tue Nov 28 11:06:17 2017 (r326313) > +++ head/sys/kern/subr_kdb.c Tue Nov 28 12:53:55 2017 (r326314) > @@ -509,6 +509,17 @@ kdb_reenter(void) > /* NOTREACHED */ > } > > +void > +kdb_reenter_silent(void) > +{ > + > + if (!kdb_active || kdb_jmpbufp == NULL) > + return; > + > + longjmp(kdb_jmpbufp, 1); > + /* NOTREACHED */ This duplicates style bugs (extra blank line and lint support that even lint doesn't need) from kdb_reenter(). I use the following fix of disabling the spam in all cases (unless reenabled in all cases using ddb): X Index: subr_kdb.c X =================================================================== X --- subr_kdb.c (revision 325403) X +++ subr_kdb.c (working copy) X @@ -1,3 +1,7 @@ X +volatile int bde_ipi = 0; X + X +static volatile int bde_kdb_wantspam = 0; X + X /*- X * Copyright (c) 2004 The FreeBSD Project X * All rights reserved. X @@ -501,7 +508,9 @@ X if (!kdb_active || kdb_jmpbufp == NULL) X return; X X +if (bde_kdb_wantspam & 1) X printf("KDB: reentering\n"); X +if (bde_kdb_wantspam & 2) X kdb_backtrace(); X longjmp(kdb_jmpbufp, 1); X /* NOTREACHED */ kib is the author of the verbose messages, and he didn't like just removing them. He agreed to putting them under a sysctl (or perhaps just a variable). Later, I found a case where the verbose messages are actually useful. I forget what this was. Probably some bug that I put in ddb. ddb is broken if it doesn't set up a special trap handler using setjmp() before doing anything that might trap. So we can detect most unexpected traps by checking the jmp_buf: - remove above complications and just longjmp() to the global jmp_buf in db_error(). This global jmp_buf is owned by ddb. Only the pointer to it is owned by kdb. So it is not a layering violationg to use it directly. - in kdb_reenter(), somehow determine if the jmp_buf is the top-level one. Traps are not expected in this case, so print the spam. Otherwise, assume that ddb set up jmp_buf for handling the trap and just longjmp(). to it. The spam also affects gdb in a worse way, and the above doesn't fix it. gdb also never calls longjmp() directly. It only calls kdb_reenter() directly after receiving ^C when switching back to ddb fails. Then it prints "using longjmp, hope it works!", but actually uses kdb_reenter() which prints spam and actually uses longjmp(). The spam goes to the console which is a logically different device to the gdb device, so might be invisible if the device is physical difference or mess up the gdb device if the devices are physically the same. The error messages have the same problem. It is the case where switching back to ddb doesn't work that we prefer to see the messages about this failure on the gdb device. Bruce From owner-svn-src-head@freebsd.org Tue Nov 28 17:46:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FFB7DE893F; Tue, 28 Nov 2017 17:46:05 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 14EDE70BA1; Tue, 28 Nov 2017 17:46:04 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASHk3IE096267; Tue, 28 Nov 2017 17:46:03 GMT (envelope-from alc@FreeBSD.org) Received: (from alc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASHk3SS096266; Tue, 28 Nov 2017 17:46:03 GMT (envelope-from alc@FreeBSD.org) Message-Id: <201711281746.vASHk3SS096266@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: alc set sender to alc@FreeBSD.org using -f From: Alan Cox Date: Tue, 28 Nov 2017 17:46:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326329 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: alc X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326329 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 17:46:05 -0000 Author: alc Date: Tue Nov 28 17:46:03 2017 New Revision: 326329 URL: https://svnweb.freebsd.org/changeset/base/326329 Log: When the swap pager allocates space on disk, it requests contiguous blocks in a single call to blist_alloc(). However, when it frees that space, it previously called blist_free() on each block, one at a time. With this change, the swap pager identifies ranges of contiguous blocks to be freed, and calls blist_free() once per range. In one extreme case, that is described in the review, the time to perform an munmap(2) was reduced by 55%. Submitted by: Doug Moore Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D12397 Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c ============================================================================== --- head/sys/vm/swap_pager.c Tue Nov 28 17:33:10 2017 (r326328) +++ head/sys/vm/swap_pager.c Tue Nov 28 17:46:03 2017 (r326329) @@ -390,6 +390,7 @@ SYSCTL_INT(_vm, OID_AUTO, dmmax, CTLFLAG_RD, &nsw_clus static void swp_sizecheck(void); static void swp_pager_async_iodone(struct buf *bp); +static bool swp_pager_swblk_empty(struct swblk *sb, int start, int limit); static int swapongeom(struct vnode *); static int swaponvp(struct thread *, struct vnode *, u_long); static int swapoff_one(struct swdevt *sp, struct ucred *cred); @@ -397,7 +398,7 @@ static int swapoff_one(struct swdevt *sp, struct ucred /* * Swap bitmap functions */ -static void swp_pager_freeswapspace(daddr_t blk, int npages); +static void swp_pager_freeswapspace(daddr_t blk, daddr_t npages); static daddr_t swp_pager_getswapspace(int npages); /* @@ -768,10 +769,12 @@ swp_pager_strategy(struct buf *bp) * This routine may not sleep. */ static void -swp_pager_freeswapspace(daddr_t blk, int npages) +swp_pager_freeswapspace(daddr_t blk, daddr_t npages) { struct swdevt *sp; + if (npages == 0) + return; mtx_lock(&sw_dev_mtx); TAILQ_FOREACH(sp, &swtailq, sw_list) { if (blk >= sp->sw_first && blk < sp->sw_end) { @@ -1761,6 +1764,22 @@ next_obj: */ /* + * SWP_PAGER_SWBLK_EMPTY() - is a range of blocks free? + */ +static bool +swp_pager_swblk_empty(struct swblk *sb, int start, int limit) +{ + int i; + + MPASS(0 <= start && start <= limit && limit <= SWAP_META_PAGES); + for (i = start; i < limit; i++) { + if (sb->d[i] != SWAPBLK_NONE) + return (false); + } + return (true); +} + +/* * SWP_PAGER_META_BUILD() - add swap block to swap meta data for object * * We first convert the object to a swap object if it is a default @@ -1876,16 +1895,10 @@ allocated: /* * Free the swblk if we end up with the empty page run. */ - if (swapblk == SWAPBLK_NONE) { - for (i = 0; i < SWAP_META_PAGES; i++) { - if (sb->d[i] != SWAPBLK_NONE) - break; - } - if (i == SWAP_META_PAGES) { - SWAP_PCTRIE_REMOVE(&object->un_pager.swp.swp_blks, - rdpi); - uma_zfree(swblk_zone, sb); - } + if (swapblk == SWAPBLK_NONE && + swp_pager_swblk_empty(sb, 0, SWAP_META_PAGES)) { + SWAP_PCTRIE_REMOVE(&object->un_pager.swp.swp_blks, rdpi); + uma_zfree(swblk_zone, sb); } } @@ -1903,37 +1916,46 @@ static void swp_pager_meta_free(vm_object_t object, vm_pindex_t pindex, vm_pindex_t count) { struct swblk *sb; + daddr_t first_free, num_free; vm_pindex_t last; - int i; - bool empty; + int i, limit, start; VM_OBJECT_ASSERT_WLOCKED(object); if (object->type != OBJT_SWAP || count == 0) return; - last = pindex + count - 1; + first_free = SWAPBLK_NONE; + num_free = 0; + last = pindex + count; for (;;) { sb = SWAP_PCTRIE_LOOKUP_GE(&object->un_pager.swp.swp_blks, rounddown(pindex, SWAP_META_PAGES)); - if (sb == NULL || sb->p > last) + if (sb == NULL || sb->p >= last) break; - empty = true; - for (i = 0; i < SWAP_META_PAGES; i++) { + start = pindex > sb->p ? pindex - sb->p : 0; + limit = last - sb->p < SWAP_META_PAGES ? last - sb->p : + SWAP_META_PAGES; + for (i = start; i < limit; i++) { if (sb->d[i] == SWAPBLK_NONE) continue; - if (pindex <= sb->p + i && sb->p + i <= last) { - swp_pager_freeswapspace(sb->d[i], 1); - sb->d[i] = SWAPBLK_NONE; - } else - empty = false; + if (first_free + num_free == sb->d[i]) + num_free++; + else { + swp_pager_freeswapspace(first_free, num_free); + first_free = sb->d[i]; + num_free = 1; + } + sb->d[i] = SWAPBLK_NONE; } - pindex = sb->p + SWAP_META_PAGES; - if (empty) { + if (swp_pager_swblk_empty(sb, 0, start) && + swp_pager_swblk_empty(sb, limit, SWAP_META_PAGES)) { SWAP_PCTRIE_REMOVE(&object->un_pager.swp.swp_blks, sb->p); uma_zfree(swblk_zone, sb); } + pindex = sb->p + SWAP_META_PAGES; } + swp_pager_freeswapspace(first_free, num_free); } /* @@ -1946,6 +1968,7 @@ static void swp_pager_meta_free_all(vm_object_t object) { struct swblk *sb; + daddr_t first_free, num_free; vm_pindex_t pindex; int i; @@ -1953,16 +1976,26 @@ swp_pager_meta_free_all(vm_object_t object) if (object->type != OBJT_SWAP) return; + first_free = SWAPBLK_NONE; + num_free = 0; for (pindex = 0; (sb = SWAP_PCTRIE_LOOKUP_GE( &object->un_pager.swp.swp_blks, pindex)) != NULL;) { pindex = sb->p + SWAP_META_PAGES; for (i = 0; i < SWAP_META_PAGES; i++) { - if (sb->d[i] != SWAPBLK_NONE) - swp_pager_freeswapspace(sb->d[i], 1); + if (sb->d[i] == SWAPBLK_NONE) + continue; + if (first_free + num_free == sb->d[i]) + num_free++; + else { + swp_pager_freeswapspace(first_free, num_free); + first_free = sb->d[i]; + num_free = 1; + } } SWAP_PCTRIE_REMOVE(&object->un_pager.swp.swp_blks, sb->p); uma_zfree(swblk_zone, sb); } + swp_pager_freeswapspace(first_free, num_free); } /* @@ -1987,7 +2020,6 @@ swp_pager_meta_ctl(vm_object_t object, vm_pindex_t pin { struct swblk *sb; daddr_t r1; - int i; if ((flags & (SWM_FREE | SWM_POP)) != 0) VM_OBJECT_ASSERT_WLOCKED(object); @@ -2010,11 +2042,7 @@ swp_pager_meta_ctl(vm_object_t object, vm_pindex_t pin return (SWAPBLK_NONE); if ((flags & (SWM_FREE | SWM_POP)) != 0) { sb->d[pindex % SWAP_META_PAGES] = SWAPBLK_NONE; - for (i = 0; i < SWAP_META_PAGES; i++) { - if (sb->d[i] != SWAPBLK_NONE) - break; - } - if (i == SWAP_META_PAGES) { + if (swp_pager_swblk_empty(sb, 0, SWAP_META_PAGES)) { SWAP_PCTRIE_REMOVE(&object->un_pager.swp.swp_blks, rounddown(pindex, SWAP_META_PAGES)); uma_zfree(swblk_zone, sb); From owner-svn-src-head@freebsd.org Tue Nov 28 18:02:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCE43DE8ED3; Tue, 28 Nov 2017 18:02:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A0FA713B5; Tue, 28 Nov 2017 18:02:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id F271F10A8BC; Tue, 28 Nov 2017 13:01:55 -0500 (EST) From: John Baldwin To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern Date: Mon, 27 Nov 2017 16:00:59 -0800 Message-ID: <14058479.lc6xlYgyBM@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 28 Nov 2017 13:01:56 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 18:02:02 -0000 On Monday, November 27, 2017 02:04:59 PM Nathan Whitehorn wrote: > Unfortunately, it's unfixable on ppc64. Apologies for breaking dtrace! > Would you like me to remove the KASSERT() here? I'm happy to do that in > a few hours (unless you beat me to it first) -- although I do think that > explicitly checking for CPU_ABSENT is a much better behavior in client > code than checking the return value of pcpu_find(). It sounds like the dtrace change is actually fine as-is. At the very least fix the style of the kassert for now I guess. In general though I think our kernel basically depends on NULL faulting and in the past I recall Bruce has usually advocated for depending on the page fault from NULL rather than adding explicit assertions just for 'foo != NULL'. >From some discussion on IRC after this e-mail though it seems that NULL might not be entirely unfixable on powerpc64? -- John Baldwin From owner-svn-src-head@freebsd.org Tue Nov 28 18:02:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B504ADE8ED8; Tue, 28 Nov 2017 18:02:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 91B04713B8; Tue, 28 Nov 2017 18:02:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 39D8D10A8BE; Tue, 28 Nov 2017 13:01:57 -0500 (EST) From: John Baldwin To: Mark Johnston Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326286 - head/sys/cddl/dev/dtrace Date: Mon, 27 Nov 2017 15:58:47 -0800 Message-ID: <1636541.esPCmqdWtd@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <20171127214140.GB75832@raichu> References: <201711271842.vARIgNCk007369@repo.freebsd.org> <2717040.9stBD4iAp4@ralph.baldwin.cx> <20171127214140.GB75832@raichu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 28 Nov 2017 13:01:57 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 18:02:03 -0000 On Monday, November 27, 2017 04:41:40 PM Mark Johnston wrote: > On Mon, Nov 27, 2017 at 11:28:07AM -0800, John Baldwin wrote: > > On Monday, November 27, 2017 06:42:23 PM Mark Johnston wrote: > > > Author: markj > > > Date: Mon Nov 27 18:42:23 2017 > > > New Revision: 326286 > > > URL: https://svnweb.freebsd.org/changeset/base/326286 > > > > > > Log: > > > Don't use pcpu_find() to determine if a CPU ID is valid. > > > > > > This addresses assertion failures after r326218. > > > > I'd perhaps rather revert the assertion as per my other mail? > > I considered waiting for a resolution of that thread, but it seems to me > that using CPU_FOREACH()/CPU_ABSENT() is more idiomatic anyway? We > already use CPU_FOREACH() in a few places in dtrace.c, and > dtrace_ioctl.c is meant to be a fork of the ioctl handler from illumos, > i.e., we shouldn't make much effort to avoid diverging from upstream. Fair enough. -- John Baldwin From owner-svn-src-head@freebsd.org Tue Nov 28 18:02:59 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3295DE8FBA; Tue, 28 Nov 2017 18:02:59 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAD12716B2; Tue, 28 Nov 2017 18:02:59 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASI2w0M004270; Tue, 28 Nov 2017 18:02:58 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASI2wxv004268; Tue, 28 Nov 2017 18:02:58 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201711281802.vASI2wxv004268@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Tue, 28 Nov 2017 18:02:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326330 - in head: release share/man/man7 X-SVN-Group: head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: in head: release share/man/man7 X-SVN-Commit-Revision: 326330 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 18:03:00 -0000 Author: gjb Date: Tue Nov 28 18:02:58 2017 New Revision: 326330 URL: https://svnweb.freebsd.org/changeset/base/326330 Log: Add a comment to release/release.conf.sample documenting EMBEDDEDPORTS. [1] Remove and update stale documentation from release(7) while here. PR: 206344 [1] MFC after: 3 days Sponsored by: The FreeBSD Foundation Modified: head/release/release.conf.sample head/share/man/man7/release.7 Modified: head/release/release.conf.sample ============================================================================== --- head/release/release.conf.sample Tue Nov 28 17:46:03 2017 (r326329) +++ head/release/release.conf.sample Tue Nov 28 18:02:58 2017 (r326330) @@ -61,6 +61,20 @@ PORTBRANCH="ports/head@rHEAD" ## Set when building embedded images. #EMBEDDEDBUILD= +## Set to a list of ports required to build embedded system-on-chip +## images, such as sysutils/u-boot-rpi. +#EMBEDDEDPORTS= + +## Set to the hardware platform of the target userland. This value +## is passed to make(1) to set the TARGET (value of uname -m) to cross +## build. +#EMBEDDED_TARGET= + +## Set to the hardware platform of the target userland. This value +## is passed to make(1) to set the TARGET_ARCH (value of uname -p) to +## cross build. +#EMBEDDED_TARGET_ARCH= + ## Set to skip the chroot environment buildworld/installworld/distribution ## step if it is expected the build environment will exist via alternate ## means. Modified: head/share/man/man7/release.7 ============================================================================== --- head/share/man/man7/release.7 Tue Nov 28 17:46:03 2017 (r326329) +++ head/share/man/man7/release.7 Tue Nov 28 18:02:58 2017 (r326330) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 28, 2017 +.Dd November 28, 2017 .Dt RELEASE 7 .Os .Sh NAME @@ -314,7 +314,6 @@ variables are relevant only to release builds for embe .It Va EMBEDDEDBUILD Set to a non-null value to enable functionality for embedded device release builds. -.Pq This option is considered highly experimental. .Pp When set, .Va WITH_DVD @@ -322,15 +321,15 @@ is unset, and .Va NODOC is defined. Additionally, -.Va XDEV +.Va EMBEDDED_TARGET and -.Va XDEV_ARCH +.Va EMBEDDED_TARGET_ARCH must also be defined. When the build environment is created, .Fa release.sh runs a separate build script located in an architecture-specific directory in -.Pa src/release/${XDEV}/ . +.Pa src/release/${EMBEDDED_TARGET}/ . .It Va EMBEDDEDPORTS Set to the list of any ports that are required for the target device in the format of @@ -338,27 +337,20 @@ in the format of The .Fa devel/subversion port is built by default. -.It Va CROCHETSRC -Set to the source URL for the Crochet build tool. -.It Va CROCHETBRANCH -Set to the subversion branch from -.Va ${CROCHETSRC} -to use. -Defaults to -.Pa trunk . -.It Va UBOOTSRC -Set to the source URL of u-boot, if required. -.It Va UBOOTBRANCH -Set to the subversion branch from -.Va ${UBOOTSRC} -to use. -Defaults to -.Pa trunk . -.It Va UBOOTDIR -Set to the target directory within -.Va ${CHROOTDIR} -to check out -.Va ${UBOOTSRC}/${UBOOTBRANCH} . +.It Va EMBEDDED_TARGET +When set, its value is passed to +.Xr make 1 +to set the +.Va TARGET +.Pq value of Cm uname Fl m +to cross build the target userland. +.It Va EMBEDDED_TARGET_ARCH +When set, its value is passed to +.Xr make 1 +to set the +.Va TARGET_ARCH +.Pq value of Cm uname Fl p +to cross build the target userland. .El .Sh VIRTUAL MACHINE DISK IMAGES The following From owner-svn-src-head@freebsd.org Tue Nov 28 18:08:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF3D5DEA209; Tue, 28 Nov 2017 18:08:15 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76127719A0; Tue, 28 Nov 2017 18:08:15 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASI8EQg004491; Tue, 28 Nov 2017 18:08:14 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASI8E4c004490; Tue, 28 Nov 2017 18:08:14 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201711281808.vASI8E4c004490@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Tue, 28 Nov 2017 18:08:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326331 - head/release X-SVN-Group: head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: head/release X-SVN-Commit-Revision: 326331 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 18:08:15 -0000 Author: gjb Date: Tue Nov 28 18:08:14 2017 New Revision: 326331 URL: https://svnweb.freebsd.org/changeset/base/326331 Log: Correct a comment after r326330. MFC after: 3 days MFC with: r326330 Sponsored by: The FreeBSD Foundation Modified: head/release/release.conf.sample Modified: head/release/release.conf.sample ============================================================================== --- head/release/release.conf.sample Tue Nov 28 18:02:58 2017 (r326330) +++ head/release/release.conf.sample Tue Nov 28 18:08:14 2017 (r326331) @@ -70,9 +70,9 @@ PORTBRANCH="ports/head@rHEAD" ## build. #EMBEDDED_TARGET= -## Set to the hardware platform of the target userland. This value -## is passed to make(1) to set the TARGET_ARCH (value of uname -p) to -## cross build. +## Set to the machine processor architecture of the target userland. +## This value is passed to make(1) to set the TARGET_ARCH (value of uname -p) +## to cross build. #EMBEDDED_TARGET_ARCH= ## Set to skip the chroot environment buildworld/installworld/distribution From owner-svn-src-head@freebsd.org Tue Nov 28 18:23:18 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD286DEA8BA; Tue, 28 Nov 2017 18:23:18 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A416D7242E; Tue, 28 Nov 2017 18:23:18 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASINHuO012994; Tue, 28 Nov 2017 18:23:17 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASINH2P012987; Tue, 28 Nov 2017 18:23:17 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201711281823.vASINH2P012987@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Tue, 28 Nov 2017 18:23:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326333 - in head/sys: amd64/linux amd64/linux32 compat/freebsd32 i386/ibcs2 i386/linux kern X-SVN-Group: head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: in head/sys: amd64/linux amd64/linux32 compat/freebsd32 i386/ibcs2 i386/linux kern X-SVN-Commit-Revision: 326333 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 18:23:18 -0000 Author: brooks Date: Tue Nov 28 18:23:17 2017 New Revision: 326333 URL: https://svnweb.freebsd.org/changeset/base/326333 Log: Disable vim syntax highlighting. Vim's default pick doesn't understand that ';' is a comment character and the result looks horrible. Reviewed by: emaste Modified: head/sys/amd64/linux/syscalls.master head/sys/amd64/linux32/syscalls.master head/sys/compat/freebsd32/syscalls.master head/sys/i386/ibcs2/syscalls.master head/sys/i386/linux/syscalls.master head/sys/kern/syscalls.master Modified: head/sys/amd64/linux/syscalls.master ============================================================================== --- head/sys/amd64/linux/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/amd64/linux/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -598,3 +598,4 @@ ; please, keep this line at the end. 332 AUE_NULL UNIMPL nosys +; vim: syntax=off Modified: head/sys/amd64/linux32/syscalls.master ============================================================================== --- head/sys/amd64/linux32/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/amd64/linux32/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -690,3 +690,4 @@ ; please, keep this line at the end. 383 AUE_NULL UNIMPL nosys +; vim: syntax=off Modified: head/sys/compat/freebsd32/syscalls.master ============================================================================== --- head/sys/compat/freebsd32/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/compat/freebsd32/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -1119,3 +1119,4 @@ struct kevent32 *eventlist, \ int nevents, \ const struct timespec32 *timeout); } +; vim: syntax=off Modified: head/sys/i386/ibcs2/syscalls.master ============================================================================== --- head/sys/i386/ibcs2/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/i386/ibcs2/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -202,3 +202,4 @@ 125 AUE_NULL UNIMPL nosys 126 AUE_NULL UNIMPL nosys 127 AUE_NULL UNIMPL nosys +; vim: syntax=off Modified: head/sys/i386/linux/syscalls.master ============================================================================== --- head/sys/i386/linux/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/i386/linux/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -697,3 +697,4 @@ ; please, keep this line at the end. 383 AUE_NULL UNIMPL nosys +; vim: syntax=off Modified: head/sys/kern/syscalls.master ============================================================================== --- head/sys/kern/syscalls.master Tue Nov 28 18:18:39 2017 (r326332) +++ head/sys/kern/syscalls.master Tue Nov 28 18:23:17 2017 (r326333) @@ -1026,3 +1026,4 @@ ; Please copy any additions and changes to the following compatability tables: ; sys/compat/freebsd32/syscalls.master +; vim: syntax=off From owner-svn-src-head@freebsd.org Tue Nov 28 19:18:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3ACBCDEBE98; Tue, 28 Nov 2017 19:18:02 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07BB07447F; Tue, 28 Nov 2017 19:18:01 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASJI1IJ034161; Tue, 28 Nov 2017 19:18:01 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASJI1bb034160; Tue, 28 Nov 2017 19:18:01 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201711281918.vASJI1bb034160@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Tue, 28 Nov 2017 19:18:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326338 - head/usr.sbin/syslogd X-SVN-Group: head X-SVN-Commit-Author: glebius X-SVN-Commit-Paths: head/usr.sbin/syslogd X-SVN-Commit-Revision: 326338 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 19:18:02 -0000 Author: glebius Date: Tue Nov 28 19:18:00 2017 New Revision: 326338 URL: https://svnweb.freebsd.org/changeset/base/326338 Log: Fix obvious NULL pointer dereference from r310350. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Tue Nov 28 19:09:05 2017 (r326337) +++ head/usr.sbin/syslogd/syslogd.c Tue Nov 28 19:18:00 2017 (r326338) @@ -792,14 +792,13 @@ socklist_recv_sock(struct socklist *sl) } else { hname = cvthname(sa); unmapped(sa); - if (validate(sa, hname) == 0) - hname = NULL; + if (validate(sa, hname) == 0) { + dprintf("Message from %s was ignored.", hname); + return (-1); + } date = RemoteAddDate ? ADDDATE : 0; } - if (hname != NULL) - printline(hname, line, date); - else - dprintf("Invalid msg from %s was ignored.", hname); + printline(hname, line, date); return (0); } From owner-svn-src-head@freebsd.org Tue Nov 28 19:25:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13EAADEC149; Tue, 28 Nov 2017 19:25:03 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D3D9C74962; Tue, 28 Nov 2017 19:25:02 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASJP2W4038342; Tue, 28 Nov 2017 19:25:02 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASJP2cb038341; Tue, 28 Nov 2017 19:25:02 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201711281925.vASJP2cb038341@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Tue, 28 Nov 2017 19:25:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326339 - head/usr.sbin/syslogd X-SVN-Group: head X-SVN-Commit-Author: glebius X-SVN-Commit-Paths: head/usr.sbin/syslogd X-SVN-Commit-Revision: 326339 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 19:25:03 -0000 Author: glebius Date: Tue Nov 28 19:25:01 2017 New Revision: 326339 URL: https://svnweb.freebsd.org/changeset/base/326339 Log: Revert r325558 as it is incorrect. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Tue Nov 28 19:18:00 2017 (r326338) +++ head/usr.sbin/syslogd/syslogd.c Tue Nov 28 19:25:01 2017 (r326339) @@ -1035,7 +1035,7 @@ static void logmsg(int pri, const char *msg, const char *from, int flags) { struct filed *f; - int i, j, fac, msglen, prilev; + int i, fac, msglen, prilev; const char *timestamp; char prog[NAME_MAX+1]; char buf[MAXLINE+1]; @@ -1077,19 +1077,6 @@ logmsg(int pri, const char *msg, const char *from, int return; prilev = LOG_PRI(pri); - - /* skip hostname, see RFC 3164 */ - for (i = 0, j = 0; i < NAME_MAX; i++) { - if (isspace(msg[i])) { - j = i + 1; - } - if (msg[i] == ':') - break; - } - if (j <= msglen) { - msg += j; - msglen -= j; - } /* extract program name */ for (i = 0; i < NAME_MAX; i++) { From owner-svn-src-head@freebsd.org Tue Nov 28 20:37:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94AA0DEE1E9; Tue, 28 Nov 2017 20:37:28 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 609DE7752F; Tue, 28 Nov 2017 20:37:28 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASKbR6g068415; Tue, 28 Nov 2017 20:37:27 GMT (envelope-from arichardson@FreeBSD.org) Received: (from arichardson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASKbRIj068414; Tue, 28 Nov 2017 20:37:27 GMT (envelope-from arichardson@FreeBSD.org) Message-Id: <201711282037.vASKbRIj068414@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arichardson set sender to arichardson@FreeBSD.org using -f From: Alex Richardson Date: Tue, 28 Nov 2017 20:37:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326342 - head/lib/libc/mips/gen X-SVN-Group: head X-SVN-Commit-Author: arichardson X-SVN-Commit-Paths: head/lib/libc/mips/gen X-SVN-Commit-Revision: 326342 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 20:37:28 -0000 Author: arichardson Date: Tue Nov 28 20:37:27 2017 New Revision: 326342 URL: https://svnweb.freebsd.org/changeset/base/326342 Log: Fix fabs() for MIPS when used on -0.0 It would previously return negative zero for -0.0 since -0.0 does not compare less than 0. The issue was discovered when running the libc++ test suite on softfloat MIPS64. I have verified that both clang and GCC generate sensible code for the builtin. For soft float they clear the sign bit using integer operations and in hard float mode they use abs.d. Reviewed by: #mips, jhb, brooks, imp, emaste Approved by: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D13135 Modified: head/lib/libc/mips/gen/fabs.c Modified: head/lib/libc/mips/gen/fabs.c ============================================================================== --- head/lib/libc/mips/gen/fabs.c Tue Nov 28 19:57:16 2017 (r326341) +++ head/lib/libc/mips/gen/fabs.c Tue Nov 28 20:37:27 2017 (r326342) @@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$"); double fabs(double x) { - if (x < 0) - x = -x; - return(x); + + return (__builtin_fabs(x)); } From owner-svn-src-head@freebsd.org Tue Nov 28 20:37:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74889DEE248; Tue, 28 Nov 2017 20:37:58 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E801677677; Tue, 28 Nov 2017 20:37:57 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id t197so1315407lfe.7; Tue, 28 Nov 2017 12:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yiNZ9sLWfbEopR8ioOpk+t53mu0W1eh7DOf04syE36U=; b=CjJvsDXQQWH9ADZbB40JyMKK8PhpISan2qCBGGrLV4J6GTUv78pA+PVGfO8Xk0JLGk Rw12j3ROJ9/b2MX+FyGqxBqWqwFYEkLOJnHp4JpQHSVEZ0on+XrXIqNprFp75ZD/duAs plSaqn2t8xQ9rDwUmK64GB5oDAMQs+TbKKNU8R61iMnZAqcwVQVjhIHjUUdYLjOtVmP+ m0Q4DWZVuBx33XofiaApF9dK+z+HCsqyG7z6HX7RoevXe6aGf30detco7ylkWFlmdxpt 2rpf8ezF94qzs58RNbwgo44M1GMOBnHZcifobp3FqfmXOlN6n2Qf5NChOwFaBnh6Sftn X/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=yiNZ9sLWfbEopR8ioOpk+t53mu0W1eh7DOf04syE36U=; b=g5cWKpUOETtjA21psblMp9j3mJvlEIOcDFfnqIzYzQnVT5Qa6L+AAVt3k/UHsDa4hY KpssjpfEZFuZIpazuSYO2dEp5+amnTAY7gxpMyDWa+M++rHnVtSWV1DQbPFXF1hD9a67 aBr1dTWElaPqPiKojWMkv5SroCkOK08FaR+8Mk4pcuPuWOidkhHxBImYk4BU+KikszLT xNBiAuyMn59NtgmKmkHNpXE88ztUQ7B0zYnoyU4Qn3mv6U/HJwpuBXILEfS/9mcbi12/ l6bQsdwfn6M+bVkrTb2G0Hou2rt5+kRc8sP+B88RhS8a2AijwY7l4y4AJvbakc98zsJi 8ZEg== X-Gm-Message-State: AJaThX6msVWkZbUXDP7ehrz+FJtOCKIN4/wBpSmPPLQBu5Ha4JQ3d0BU dc1E67UYFw7Bfb9ed6ZJfXuqA8FP+UiW+vhNh78= X-Google-Smtp-Source: AGs4zMb3UdOGejonY8d801+Ck+Iedu5yj4/re1ku2e/Q1wFeA+sIk+lQQbyqy2EBUTiTB9rQluUPODngey6GFYxgagM= X-Received: by 10.25.121.10 with SMTP id u10mr151336lfc.50.1511901475709; Tue, 28 Nov 2017 12:37:55 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.179.76.19 with HTTP; Tue, 28 Nov 2017 12:37:55 -0800 (PST) In-Reply-To: <20171127064940.GA91390@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> <20171127064940.GA91390@x2.osted.lan> From: Alan Somers Date: Tue, 28 Nov 2017 13:37:55 -0700 X-Google-Sender-Auth: CqJpNXyk97sCv3OP99Cknl6B5v8 Message-ID: Subject: Re: svn commit: r326200 - head/sys/kern To: Peter Holm Cc: Mateusz Guzik , Mateusz Guzik , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 20:37:58 -0000 On Sun, Nov 26, 2017 at 11:49 PM, Peter Holm wrote: > On Sun, Nov 26, 2017 at 10:11:21PM +0100, Mateusz Guzik wrote: >> On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: >> >> > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: >> > > Author: mjg >> > > Date: Sat Nov 25 20:49:27 2017 >> > > New Revision: 326200 >> > > URL: https://svnweb.freebsd.org/changeset/base/326200 >> > > >> > > Log: >> > > Add the missing lockstat check for thread lock. >> > > >> > > Modified: >> > > head/sys/kern/kern_mutex.c >> > > >> > > Modified: head/sys/kern/kern_mutex.c >> > > ============================================================ >> > ================== >> > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 >> > (r326199) >> > >> > Hi Mateusz, >> > >> > Could this be yours? >> > >> > spin lock 0xffffffff81ddc100 (turnstile chain) held by 0xfffff80014e57000 >> > (tid 100277) too long >> > panic: spin lock held too long >> > cpuid = 20 >> > time = 1511677687 >> > KDB: stack backtrace: >> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >> > 0xfffffe104f86ea40 >> > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 >> > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 >> > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame >> > 0xfffffe104f86eba0 >> > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame >> > 0xfffffe104f86ed10 >> > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame >> > 0xfffffe104f86edb0 >> > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 >> > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 >> > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 >> > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 >> > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 >> > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 >> > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 >> > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 >> > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 >> > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 >> > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 >> > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 >> > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 >> > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 >> > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 >> > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 >> > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 >> > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 >> > >> > https://people.freebsd.org/~pho/stress/log/mateusz004.txt >> > >> > - Peter >> > >> >> Fixed in r326237. >> > > Yes, that fixed the issue reported. > After some more tests I got this one: > > 20171127 01:19:57 all (31/561): mkfifo2c.sh > spin lock 0xffffffff81edace0 (smp rendezvous) held by 0xfffff80d2ae31000 (tid 100529) too long > panic: spin lock held too long > cpuid = 14 > time = 1511742163 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe105096c0b0 > vpanic() at vpanic+0x19c/frame 0xfffffe105096c130 > panic() at panic+0x43/frame 0xfffffe105096c190 > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame 0xfffffe105096c200 > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame 0xfffffe105096c240 > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame 0xfffffe105096c2c0 > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame 0xfffffe105096c2f0 > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame 0xfffffe105096c340 > allocbuf() at allocbuf+0x107/frame 0xfffffe105096c3b0 > brelse() at brelse+0x219/frame 0xfffffe105096c400 > trunc_dependencies() at trunc_dependencies+0x745/frame 0xfffffe105096c4a0 > softdep_setup_freeblocks() at softdep_setup_freeblocks+0x7b4/frame 0xfffffe105096c510 > ffs_truncate() at ffs_truncate+0x6b8/frame 0xfffffe105096c700 > ufs_inactive() at ufs_inactive+0x1cb/frame 0xfffffe105096c740 > VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xfd/frame 0xfffffe105096c770 > vinactive() at vinactive+0xe3/frame 0xfffffe105096c7c0 > vputx() at vputx+0x31e/frame 0xfffffe105096c820 > kern_rmdirat() at kern_rmdirat+0x1c9/frame 0xfffffe105096c980 > amd64_syscall() at amd64_syscall+0x7ab/frame 0xfffffe105096cab0 > > Not so much more info here, I'm afraid: > https://people.freebsd.org/~pho/stress/log/mateusz005.txt > > -- > Peter I'm seeing a similar panic, at r326314: panic: spin lock held too long cpuid = 3 time = 1511900768 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0b58bcef00 vpanic() at vpanic+0x19c/frame 0xfffffe0b58bcef80 panic() at panic+0x43/frame 0xfffffe0b58bcefe0 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame 0xfffffe0b58bcf050 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame 0xfffffe0b58bcf090 smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame 0xfffffe0b58bcf110 smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame 0xfffffe0b58bcf140 pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame 0xfffffe0b58bcf190 vm_thread_stack_dispose() at vm_thread_stack_dispose+0x2f/frame 0xfffffe0b58bcf1e0 thread_free() at thread_free+0x39/frame 0xfffffe0b58bcf200 thread_reap() at thread_reap+0x9e/frame 0xfffffe0b58bcf220 thread_alloc() at thread_alloc+0xf/frame 0xfffffe0b58bcf240 kthread_add() at kthread_add+0x43/frame 0xfffffe0b58bcf2e0 _taskqueue_start_threads() at _taskqueue_start_threads+0xde/frame 0xfffffe0b58bcf370 taskqueue_start_threads() at taskqueue_start_threads+0x3f/frame 0xfffffe0b58bcf3d0 taskq_create_proc() at taskq_create_proc+0x92/frame 0xfffffe0b58bcf400 spa_activate() at spa_activate+0x372/frame 0xfffffe0b58bcf4a0 spa_open_common() at spa_open_common+0xd2/frame 0xfffffe0b58bcf510 spa_get_stats() at spa_get_stats+0x4f/frame 0xfffffe0b58bcf6f0 zfs_ioc_pool_stats() at zfs_ioc_pool_stats+0x25/frame 0xfffffe0b58bcf730 zfsdev_ioctl() at zfsdev_ioctl+0x766/frame 0xfffffe0b58bcf7e0 devfs_ioctl() at devfs_ioctl+0xcb/frame 0xfffffe0b58bcf830 VOP_IOCTL_APV() at VOP_IOCTL_APV+0xd9/frame 0xfffffe0b58bcf860 vn_ioctl() at vn_ioctl+0x124/frame 0xfffffe0b58bcf970 devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe0b58bcf990 kern_ioctl() at kern_ioctl+0x2c4/frame 0xfffffe0b58bcf9f0 sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe0b58bcfac0 amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0b58bcfbf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0b58bcfbf0 From owner-svn-src-head@freebsd.org Tue Nov 28 20:44:11 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2431DEE584; Tue, 28 Nov 2017 20:44:11 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F9CE77C73; Tue, 28 Nov 2017 20:44:11 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASKiArb072664; Tue, 28 Nov 2017 20:44:10 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASKiAJw072662; Tue, 28 Nov 2017 20:44:10 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711282044.vASKiAJw072662@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Tue, 28 Nov 2017 20:44:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326343 - head/etc/rc.d X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/etc/rc.d X-SVN-Commit-Revision: 326343 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 20:44:11 -0000 Author: asomers Date: Tue Nov 28 20:44:10 2017 New Revision: 326343 URL: https://svnweb.freebsd.org/changeset/base/326343 Log: Fix fetching ntp leapfile after 325256 Submitted by: Ronald Klop Reviewed by: asomers MFC after: 3 days X-MFC-With: 325256 Modified: head/etc/rc.d/ntpd Modified: head/etc/rc.d/ntpd ============================================================================== --- head/etc/rc.d/ntpd Tue Nov 28 20:37:27 2017 (r326342) +++ head/etc/rc.d/ntpd Tue Nov 28 20:44:10 2017 (r326343) @@ -20,6 +20,8 @@ fetch_cmd="ntpd_fetch_leapfile" needfetch_cmd="ntpd_needfetch_leapfile" start_precmd="ntpd_precmd" +ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list" + load_rc_config $name ntpd_precmd() @@ -92,15 +94,13 @@ ntpd_init_leapfile() { } ntpd_needfetch_leapfile() { - local ntp_tmp_leapfile rc verbose + local rc verbose if checkyesno ntp_leapfile_fetch_verbose; then verbose=echo else verbose=: fi - - ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list" ntp_ver_no_src=$(get_ntp_leapfile_ver $ntp_src_leapfile) ntp_expiry_src=$(get_ntp_leapfile_expiry $ntp_src_leapfile) From owner-svn-src-head@freebsd.org Tue Nov 28 20:52:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7E81DEEA0E; Tue, 28 Nov 2017 20:52:24 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97A627848F; Tue, 28 Nov 2017 20:52:24 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id JmrYei8yPRDG7JmraeUU0O; Tue, 28 Nov 2017 13:52:18 -0700 X-Authority-Analysis: v=2.2 cv=b+PC2pOx c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=sC3jslCIGhcA:10 a=6I5d2MoRAAAA:8 a=T8hboYP3AAAA:8 a=YxBL1-UpAAAA:8 a=Ix0BpYk2IbgdxZ2hD4QA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=3Xhr1e3L9Km7VwPPQCJS:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id EF1A9735; Tue, 28 Nov 2017 12:52:16 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id vASKq0XB048780; Tue, 28 Nov 2017 12:52:00 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id vASKq05m048772; Tue, 28 Nov 2017 12:52:00 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201711282052.vASKq05m048772@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Alan Somers cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326343 - head/etc/rc.d In-Reply-To: Message from Alan Somers of "Tue, 28 Nov 2017 20:44:10 +0000." <201711282044.vASKiAJw072662@repo.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 28 Nov 2017 12:52:00 -0800 X-CMAE-Envelope: MS4wfGgE7ATF9Lnd8NQaiP0rGuo0qM5hnmpoqS+t2mF78mTlgflODLHUKl7w9j1qm34cIujsQ0BK1A/v1fvpoy4T2q0oBrBG32Ge+5fPy1Y+R3M0mPT8L7mr rXHiNysZCET3wD9VqdwrcAmZyJoRW9YVP6cCP0YbWMwkI7CQUHWKB33/dWBT4s758E+y+VO9B2+rTO5wHMuPdQwd8HqASKElCjPcslF+Bme9vPaBofFHCj6P W/U7fUocrZNZtr6A0uSxRoXFi1DO6fcdAlI4KSNQtak+HZr8/9R+QgYt9nAGqfm6 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 20:52:25 -0000 In message <201711282044.vASKiAJw072662@repo.freebsd.org>, Alan Somers writes: > Author: asomers > Date: Tue Nov 28 20:44:10 2017 > New Revision: 326343 > URL: https://svnweb.freebsd.org/changeset/base/326343 > > Log: > Fix fetching ntp leapfile after 325256 > > Submitted by: Ronald Klop > Reviewed by: asomers > MFC after: 3 days > X-MFC-With: 325256 > > Modified: > head/etc/rc.d/ntpd > > Modified: head/etc/rc.d/ntpd > ============================================================================= > = > --- head/etc/rc.d/ntpd Tue Nov 28 20:37:27 2017 (r326342) > +++ head/etc/rc.d/ntpd Tue Nov 28 20:44:10 2017 (r326343) > @@ -20,6 +20,8 @@ fetch_cmd="ntpd_fetch_leapfile" > needfetch_cmd="ntpd_needfetch_leapfile" > start_precmd="ntpd_precmd" > > +ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list" > + > load_rc_config $name > > ntpd_precmd() > @@ -92,15 +94,13 @@ ntpd_init_leapfile() { > } > > ntpd_needfetch_leapfile() { > - local ntp_tmp_leapfile rc verbose > + local rc verbose > > if checkyesno ntp_leapfile_fetch_verbose; then > verbose=echo > else > verbose=: > fi > - > - ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list" > > ntp_ver_no_src=$(get_ntp_leapfile_ver $ntp_src_leapfile) > ntp_expiry_src=$(get_ntp_leapfile_expiry $ntp_src_leapfile) > Thanks. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-svn-src-head@freebsd.org Tue Nov 28 21:56:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 882A2DF009D; Tue, 28 Nov 2017 21:56:03 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail107.syd.optusnet.com.au (mail107.syd.optusnet.com.au [211.29.132.53]) by mx1.freebsd.org (Postfix) with ESMTP id DF84E7A5CF; Tue, 28 Nov 2017 21:56:02 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id EE9DDD46CA6; Wed, 29 Nov 2017 08:55:55 +1100 (AEDT) Date: Wed, 29 Nov 2017 08:55:55 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Alex Richardson cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326342 - head/lib/libc/mips/gen In-Reply-To: <201711282037.vASKbRIj068414@repo.freebsd.org> Message-ID: <20171129074249.B1145@besplex.bde.org> References: <201711282037.vASKbRIj068414@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=cK6QihWN c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=oa1cjdcb5Po7lzyVjUwA:9 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 21:56:03 -0000 On Tue, 28 Nov 2017, Alex Richardson wrote: > Log: > Fix fabs() for MIPS when used on -0.0 Only arm and mips have this in C in libc. arm still has the broken version, libm has better versions. Only 1 in C and none in asm, where libc has many C and asm versions with at least 1 still wrong. The version in libc is almost never used, ust like the versions in libc, since the builtin versions are usually used automatically. > It would previously return negative zero for -0.0 since -0.0 does not > compare less than 0. The issue was discovered when running the libc++ > test suite on softfloat MIPS64. Since the builtin is usually used, test programs usually don't find this bug. Presumably softfloat turns off the builtin, but how does your fix work then (see below)? For testing libm, I prevent use of builtins and even in functions in the standard library by renaming functions in a copy of the source code and testing the renamed functions. -fno-builtin should work for turning off builtins. > I have verified that both clang and GCC generate sensible code for the > builtin. For soft float they clear the sign bit using integer operations > and in hard float mode they use abs.d. Seems good enough for a single arch. Did you test O0 -fno-builtin? -O0 should be supported for debugging, but it is not so reasonable to compile libc with -fno-builtin. > Modified: head/lib/libc/mips/gen/fabs.c > ============================================================================== > --- head/lib/libc/mips/gen/fabs.c Tue Nov 28 19:57:16 2017 (r326341) > +++ head/lib/libc/mips/gen/fabs.c Tue Nov 28 20:37:27 2017 (r326342) > @@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$"); > double > fabs(double x) > { > - if (x < 0) > - x = -x; > - return(x); > + > + return (__builtin_fabs(x)); > } Why doesn't the libc++ test suite on softfloat MIPS64 hide the bug by using the builtin instead of this function? If the builtin is turned off completely, then the above either doesn't compile or generates a call to the nonexistent public function __builtin_fabs(). The builtin isn't useable in general because some compilers don't have it, and ones that have it might have a fake version which calls the non-builtin version which gives endless recursion. This normally calls the function of the same name (fabs here) instead of a function with the underscored name. libm's semi-portable implementation for all arches is: X double X fabs(double x) X { X u_int32_t high; X GET_HIGH_WORD(high,x); X SET_HIGH_WORD(x,high&0x7fffffff); X return x; X } This works on any arch with IEEE754 doubles. It works by zeroing the sign bit. Compilers should turn this into the same code as the builtin, and clang on amd64 does (clang on i386 is not so good). However, older compilers tend to pessimize by copying through 32-bit integer registers or the stack just like the code asks for. Bruce From owner-svn-src-head@freebsd.org Tue Nov 28 22:47:27 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BD06DF12BA; Tue, 28 Nov 2017 22:47:27 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qt0-x22e.google.com (mail-qt0-x22e.google.com [IPv6:2607:f8b0:400d:c0d::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C58657BEDD; Tue, 28 Nov 2017 22:47:26 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qt0-x22e.google.com with SMTP id u10so2052452qtg.2; Tue, 28 Nov 2017 14:47:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jHojvR76jx0B8FtLeA/CEIJHln5F2m7EJdooU/gQASI=; b=MCISNV1H56UOj+5E1piJy/mV404kgtQBS6HzSSV12wRVaD0Zc/faMDhk9yGfkyvy7W cI5hnCQc+zeNP+wUXKAdp5wqguKW/+HIZCU3rRCYWKpqMjeNjXqutvFsPInCKifVNrEB Bi5jm5oX/T0NUx7tbFeSotLWmw8oKZ4zUE0z4gHPchvAyhQwMYn9HdGpUvhcuDRk+9Ea J4g4Oaj4eEvRCWVIFxclG1XmUUJZxS+1WNbycFE4Xscp928D7TZ/8gN3FgIziIGiX4tU puB5p4El82FrGtA5K/EpvNx9/C85I37TAlZH9jXgDkZJMDyd+Lk4uiqxIi0lVUPRJza3 Tk7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jHojvR76jx0B8FtLeA/CEIJHln5F2m7EJdooU/gQASI=; b=hWHhgfFLumaEO+zMvZANyjoZSkwCRda9jfexEkixLC8nVmBqnvIhU0nqNwrFfi5rDS /3IxP24tl6bteP3FQL8T4vTtxhhd2gDdYO0w4t733arRiDLxuL2Ixf+N/nkVAz0+RAiu 3fMiMM3T0CpdCfxabZhZrLQo4zW/7Jby0eugMlqhsr1adbQnIYRiN0QeRRmg2kgmQaWC q96Y60uF48s8qbescQUQTDgiIv1yPMmK6EjGkFcjjk7IY/wKHalgddiIW1IqZE1aJYET iwzaXu1td6lPS1MJp3vKB0sWP5Wqz7OFSYM7e2QPYBAZYlfFJcOcmeueD/kNUZ93amN/ 98/w== X-Gm-Message-State: AJaThX4YfHlToX3EkKnjnE7WjPqItZmtsn+YmuOvF23+Eik3aBz318dt 5WFV1jwLcWxaSaBq0UDXk7sH8NrcK2/MiiEFa/Y= X-Google-Smtp-Source: AGs4zMajGLrbUG8q8UKJxln1JUS1YqpOIxAEI8ME7x2W2xp5FgwrHoSOvpLUuCPSoaaaci1k9KK2viBJXk7El78VT78= X-Received: by 10.200.39.122 with SMTP id h55mr1415362qth.56.1511909245786; Tue, 28 Nov 2017 14:47:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.29.17 with HTTP; Tue, 28 Nov 2017 14:47:25 -0800 (PST) In-Reply-To: References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> <20171127064940.GA91390@x2.osted.lan> From: Mateusz Guzik Date: Tue, 28 Nov 2017 23:47:25 +0100 Message-ID: Subject: Re: svn commit: r326200 - head/sys/kern To: Alan Somers Cc: Peter Holm , Mateusz Guzik , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 22:47:27 -0000 Sorry for top-posting. I have a reproducer. If I wont be able to fix it later today I'll revert. On Tue, Nov 28, 2017 at 9:37 PM, Alan Somers wrote: > On Sun, Nov 26, 2017 at 11:49 PM, Peter Holm wrote: > > On Sun, Nov 26, 2017 at 10:11:21PM +0100, Mateusz Guzik wrote: > >> On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > >> > >> > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > >> > > Author: mjg > >> > > Date: Sat Nov 25 20:49:27 2017 > >> > > New Revision: 326200 > >> > > URL: https://svnweb.freebsd.org/changeset/base/326200 > >> > > > >> > > Log: > >> > > Add the missing lockstat check for thread lock. > >> > > > >> > > Modified: > >> > > head/sys/kern/kern_mutex.c > >> > > > >> > > Modified: head/sys/kern/kern_mutex.c > >> > > ============================================================ > >> > ================== > >> > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > >> > (r326199) > >> > > >> > Hi Mateusz, > >> > > >> > Could this be yours? > >> > > >> > spin lock 0xffffffff81ddc100 (turnstile chain) held by > 0xfffff80014e57000 > >> > (tid 100277) too long > >> > panic: spin lock held too long > >> > cpuid = 20 > >> > time = 1511677687 > >> > KDB: stack backtrace: > >> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > >> > 0xfffffe104f86ea40 > >> > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > >> > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > >> > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > >> > 0xfffffe104f86eba0 > >> > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > >> > 0xfffffe104f86ed10 > >> > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > >> > 0xfffffe104f86edb0 > >> > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > >> > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > >> > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > >> > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > >> > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > >> > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > >> > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > >> > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > >> > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > >> > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > >> > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > >> > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > >> > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > >> > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > >> > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > >> > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > >> > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > >> > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > >> > > >> > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > >> > > >> > - Peter > >> > > >> > >> Fixed in r326237. > >> > > > > Yes, that fixed the issue reported. > > After some more tests I got this one: > > > > 20171127 01:19:57 all (31/561): mkfifo2c.sh > > spin lock 0xffffffff81edace0 (smp rendezvous) held by 0xfffff80d2ae31000 > (tid 100529) too long > > panic: spin lock held too long > > cpuid = 14 > > time = 1511742163 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe105096c0b0 > > vpanic() at vpanic+0x19c/frame 0xfffffe105096c130 > > panic() at panic+0x43/frame 0xfffffe105096c190 > > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > 0xfffffe105096c200 > > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > 0xfffffe105096c240 > > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > 0xfffffe105096c2c0 > > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > 0xfffffe105096c2f0 > > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > 0xfffffe105096c340 > > allocbuf() at allocbuf+0x107/frame 0xfffffe105096c3b0 > > brelse() at brelse+0x219/frame 0xfffffe105096c400 > > trunc_dependencies() at trunc_dependencies+0x745/frame 0xfffffe105096c4a0 > > softdep_setup_freeblocks() at softdep_setup_freeblocks+0x7b4/frame > 0xfffffe105096c510 > > ffs_truncate() at ffs_truncate+0x6b8/frame 0xfffffe105096c700 > > ufs_inactive() at ufs_inactive+0x1cb/frame 0xfffffe105096c740 > > VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xfd/frame 0xfffffe105096c770 > > vinactive() at vinactive+0xe3/frame 0xfffffe105096c7c0 > > vputx() at vputx+0x31e/frame 0xfffffe105096c820 > > kern_rmdirat() at kern_rmdirat+0x1c9/frame 0xfffffe105096c980 > > amd64_syscall() at amd64_syscall+0x7ab/frame 0xfffffe105096cab0 > > > > Not so much more info here, I'm afraid: > > https://people.freebsd.org/~pho/stress/log/mateusz005.txt > > > > -- > > Peter > > I'm seeing a similar panic, at r326314: > > panic: spin lock held too long > cpuid = 3 > time = 1511900768 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe0b58bcef00 > vpanic() at vpanic+0x19c/frame 0xfffffe0b58bcef80 > panic() at panic+0x43/frame 0xfffffe0b58bcefe0 > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > 0xfffffe0b58bcf050 > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > 0xfffffe0b58bcf090 > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > 0xfffffe0b58bcf110 > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > 0xfffffe0b58bcf140 > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > 0xfffffe0b58bcf190 > vm_thread_stack_dispose() at vm_thread_stack_dispose+0x2f/frame > 0xfffffe0b58bcf1e0 > thread_free() at thread_free+0x39/frame 0xfffffe0b58bcf200 > thread_reap() at thread_reap+0x9e/frame 0xfffffe0b58bcf220 > thread_alloc() at thread_alloc+0xf/frame 0xfffffe0b58bcf240 > kthread_add() at kthread_add+0x43/frame 0xfffffe0b58bcf2e0 > _taskqueue_start_threads() at _taskqueue_start_threads+0xde/frame > 0xfffffe0b58bcf370 > taskqueue_start_threads() at taskqueue_start_threads+0x3f/frame > 0xfffffe0b58bcf3d0 > taskq_create_proc() at taskq_create_proc+0x92/frame 0xfffffe0b58bcf400 > spa_activate() at spa_activate+0x372/frame 0xfffffe0b58bcf4a0 > spa_open_common() at spa_open_common+0xd2/frame 0xfffffe0b58bcf510 > spa_get_stats() at spa_get_stats+0x4f/frame 0xfffffe0b58bcf6f0 > zfs_ioc_pool_stats() at zfs_ioc_pool_stats+0x25/frame 0xfffffe0b58bcf730 > zfsdev_ioctl() at zfsdev_ioctl+0x766/frame 0xfffffe0b58bcf7e0 > devfs_ioctl() at devfs_ioctl+0xcb/frame 0xfffffe0b58bcf830 > VOP_IOCTL_APV() at VOP_IOCTL_APV+0xd9/frame 0xfffffe0b58bcf860 > vn_ioctl() at vn_ioctl+0x124/frame 0xfffffe0b58bcf970 > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe0b58bcf990 > kern_ioctl() at kern_ioctl+0x2c4/frame 0xfffffe0b58bcf9f0 > sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe0b58bcfac0 > amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0b58bcfbf0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0b58bcfbf0 > -- Mateusz Guzik From owner-svn-src-head@freebsd.org Tue Nov 28 23:18:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52F03DF1D83; Tue, 28 Nov 2017 23:18:37 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08E1F7D14B; Tue, 28 Nov 2017 23:18:36 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASNIal0036093; Tue, 28 Nov 2017 23:18:36 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASNIZYf036085; Tue, 28 Nov 2017 23:18:35 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201711282318.vASNIZYf036085@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Tue, 28 Nov 2017 23:18:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326346 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: jeff X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326346 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 23:18:37 -0000 Author: jeff Date: Tue Nov 28 23:18:35 2017 New Revision: 326346 URL: https://svnweb.freebsd.org/changeset/base/326346 Log: Move domain iterators into the page layer where domain selection should take place. This makes the majority of the phys layer explicitly domain specific. Reviewed by: markj, kib (some objections) Discussed with: alc Tested by: pho Sponsored by: Netflix & Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D13014 Modified: head/sys/vm/vm_domain.c head/sys/vm/vm_domain.h head/sys/vm/vm_page.c head/sys/vm/vm_page.h head/sys/vm/vm_phys.c head/sys/vm/vm_phys.h head/sys/vm/vm_reserv.c head/sys/vm/vm_reserv.h Modified: head/sys/vm/vm_domain.c ============================================================================== --- head/sys/vm/vm_domain.c Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_domain.c Tue Nov 28 23:18:35 2017 (r326346) @@ -61,6 +61,118 @@ __FBSDID("$FreeBSD$"); #include +/* + * Default to first-touch + round-robin. + */ +static struct mtx vm_default_policy_mtx; +MTX_SYSINIT(vm_default_policy, &vm_default_policy_mtx, "default policy mutex", + MTX_DEF); +#ifdef VM_NUMA_ALLOC +static struct vm_domain_policy vm_default_policy = + VM_DOMAIN_POLICY_STATIC_INITIALISER(VM_POLICY_FIRST_TOUCH_ROUND_ROBIN, 0); +#else +/* Use round-robin so the domain policy code will only try once per allocation */ +static struct vm_domain_policy vm_default_policy = + VM_DOMAIN_POLICY_STATIC_INITIALISER(VM_POLICY_ROUND_ROBIN, 0); +#endif + +static int +sysctl_vm_default_policy(SYSCTL_HANDLER_ARGS) +{ + char policy_name[32]; + int error; + + mtx_lock(&vm_default_policy_mtx); + + /* Map policy to output string */ + switch (vm_default_policy.p.policy) { + case VM_POLICY_FIRST_TOUCH: + strcpy(policy_name, "first-touch"); + break; + case VM_POLICY_FIRST_TOUCH_ROUND_ROBIN: + strcpy(policy_name, "first-touch-rr"); + break; + case VM_POLICY_ROUND_ROBIN: + default: + strcpy(policy_name, "rr"); + break; + } + mtx_unlock(&vm_default_policy_mtx); + + error = sysctl_handle_string(oidp, &policy_name[0], + sizeof(policy_name), req); + if (error != 0 || req->newptr == NULL) + return (error); + + mtx_lock(&vm_default_policy_mtx); + /* Set: match on the subset of policies that make sense as a default */ + if (strcmp("first-touch-rr", policy_name) == 0) { + vm_domain_policy_set(&vm_default_policy, + VM_POLICY_FIRST_TOUCH_ROUND_ROBIN, 0); + } else if (strcmp("first-touch", policy_name) == 0) { + vm_domain_policy_set(&vm_default_policy, + VM_POLICY_FIRST_TOUCH, 0); + } else if (strcmp("rr", policy_name) == 0) { + vm_domain_policy_set(&vm_default_policy, + VM_POLICY_ROUND_ROBIN, 0); + } else { + error = EINVAL; + goto finish; + } + + error = 0; +finish: + mtx_unlock(&vm_default_policy_mtx); + return (error); +} + +SYSCTL_PROC(_vm, OID_AUTO, default_policy, CTLTYPE_STRING | CTLFLAG_RW, + 0, 0, sysctl_vm_default_policy, "A", + "Default policy (rr, first-touch, first-touch-rr"); + +/* + * Initialise a VM domain iterator. + * + * Check the thread policy, then the proc policy, + * then default to the system policy. + */ +void +vm_policy_iterator_init(struct vm_domain_iterator *vi) +{ +#ifdef VM_NUMA_ALLOC + struct vm_domain_policy lcl; +#endif + + vm_domain_iterator_init(vi); + +#ifdef VM_NUMA_ALLOC + /* Copy out the thread policy */ + vm_domain_policy_localcopy(&lcl, &curthread->td_vm_dom_policy); + if (lcl.p.policy != VM_POLICY_NONE) { + /* Thread policy is present; use it */ + vm_domain_iterator_set_policy(vi, &lcl); + return; + } + + vm_domain_policy_localcopy(&lcl, + &curthread->td_proc->p_vm_dom_policy); + if (lcl.p.policy != VM_POLICY_NONE) { + /* Process policy is present; use it */ + vm_domain_iterator_set_policy(vi, &lcl); + return; + } +#endif + /* Use system default policy */ + vm_domain_iterator_set_policy(vi, &vm_default_policy); +} + +void +vm_policy_iterator_finish(struct vm_domain_iterator *vi) +{ + + vm_domain_iterator_cleanup(vi); +} + #ifdef VM_NUMA_ALLOC static __inline int vm_domain_rr_selectdomain(int skip_domain) Modified: head/sys/vm/vm_domain.h ============================================================================== --- head/sys/vm/vm_domain.h Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_domain.h Tue Nov 28 23:18:35 2017 (r326346) @@ -63,4 +63,7 @@ extern int vm_domain_iterator_run(struct vm_domain_ite extern int vm_domain_iterator_isdone(struct vm_domain_iterator *vi); extern int vm_domain_iterator_cleanup(struct vm_domain_iterator *vi); +extern void vm_policy_iterator_init(struct vm_domain_iterator *vi); +extern void vm_policy_iterator_finish(struct vm_domain_iterator *vi); + #endif /* __VM_DOMAIN_H__ */ Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_page.c Tue Nov 28 23:18:35 2017 (r326346) @@ -109,6 +109,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -1603,6 +1604,16 @@ vm_page_alloc(vm_object_t object, vm_pindex_t pindex, vm_radix_lookup_le(&object->rtree, pindex) : NULL)); } +vm_page_t +vm_page_alloc_domain(vm_object_t object, vm_pindex_t pindex, int domain, + int req) +{ + + return (vm_page_alloc_domain_after(object, pindex, domain, req, + object != NULL ? vm_radix_lookup_le(&object->rtree, pindex) : + NULL)); +} + /* * Allocate a page in the specified object with the given page index. To * optimize insertion of the page into the object, the caller must also specifiy @@ -1610,10 +1621,35 @@ vm_page_alloc(vm_object_t object, vm_pindex_t pindex, * page index, or NULL if no such page exists. */ vm_page_t -vm_page_alloc_after(vm_object_t object, vm_pindex_t pindex, int req, - vm_page_t mpred) +vm_page_alloc_after(vm_object_t object, vm_pindex_t pindex, + int req, vm_page_t mpred) { + struct vm_domain_iterator vi; vm_page_t m; + int domain, wait; + + m = NULL; + vm_policy_iterator_init(&vi); + wait = req & (VM_ALLOC_WAITFAIL | VM_ALLOC_WAITOK); + req &= ~wait; + while (vm_domain_iterator_run(&vi, &domain) == 0) { + if (vm_domain_iterator_isdone(&vi)) + req |= wait; + m = vm_page_alloc_domain_after(object, pindex, domain, req, + mpred); + if (m != NULL) + break; + } + vm_policy_iterator_finish(&vi); + + return (m); +} + +vm_page_t +vm_page_alloc_domain_after(vm_object_t object, vm_pindex_t pindex, int domain, + int req, vm_page_t mpred) +{ + vm_page_t m; int flags, req_class; u_int free_count; @@ -1643,6 +1679,7 @@ vm_page_alloc_after(vm_object_t object, vm_pindex_t pi * for the request class. */ again: + m = NULL; mtx_lock(&vm_page_queue_free_mtx); if (vm_cnt.v_free_count > vm_cnt.v_free_reserved || (req_class == VM_ALLOC_SYSTEM && @@ -1655,23 +1692,26 @@ again: #if VM_NRESERVLEVEL > 0 if (object == NULL || (object->flags & (OBJ_COLORED | OBJ_FICTITIOUS)) != OBJ_COLORED || (m = - vm_reserv_alloc_page(object, pindex, mpred)) == NULL) + vm_reserv_alloc_page(object, pindex, domain, + mpred)) == NULL) #endif { /* * If not, allocate it from the free page queues. */ - m = vm_phys_alloc_pages(object != NULL ? + m = vm_phys_alloc_pages(domain, object != NULL ? VM_FREEPOOL_DEFAULT : VM_FREEPOOL_DIRECT, 0); #if VM_NRESERVLEVEL > 0 - if (m == NULL && vm_reserv_reclaim_inactive()) { - m = vm_phys_alloc_pages(object != NULL ? + if (m == NULL && vm_reserv_reclaim_inactive(domain)) { + m = vm_phys_alloc_pages(domain, + object != NULL ? VM_FREEPOOL_DEFAULT : VM_FREEPOOL_DIRECT, 0); } #endif } - } else { + } + if (m == NULL) { /* * Not allocatable, give up. */ @@ -1799,6 +1839,32 @@ vm_page_alloc_contig(vm_object_t object, vm_pindex_t p u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr) { + struct vm_domain_iterator vi; + vm_page_t m; + int domain, wait; + + m = NULL; + vm_policy_iterator_init(&vi); + wait = req & (VM_ALLOC_WAITFAIL | VM_ALLOC_WAITOK); + req &= ~wait; + while (vm_domain_iterator_run(&vi, &domain) == 0) { + if (vm_domain_iterator_isdone(&vi)) + req |= wait; + m = vm_page_alloc_contig_domain(object, pindex, domain, req, + npages, low, high, alignment, boundary, memattr); + if (m != NULL) + break; + } + vm_policy_iterator_finish(&vi); + + return (m); +} + +vm_page_t +vm_page_alloc_contig_domain(vm_object_t object, vm_pindex_t pindex, int domain, + int req, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, + vm_paddr_t boundary, vm_memattr_t memattr) +{ vm_page_t m, m_ret, mpred; u_int busy_lock, flags, oflags; int req_class; @@ -1838,6 +1904,7 @@ vm_page_alloc_contig(vm_object_t object, vm_pindex_t p * below the lower bound for the allocation class? */ again: + m_ret = NULL; mtx_lock(&vm_page_queue_free_mtx); if (vm_cnt.v_free_count >= npages + vm_cnt.v_free_reserved || (req_class == VM_ALLOC_SYSTEM && @@ -1850,31 +1917,27 @@ again: #if VM_NRESERVLEVEL > 0 retry: if (object == NULL || (object->flags & OBJ_COLORED) == 0 || - (m_ret = vm_reserv_alloc_contig(object, pindex, npages, - low, high, alignment, boundary, mpred)) == NULL) + (m_ret = vm_reserv_alloc_contig(object, pindex, domain, + npages, low, high, alignment, boundary, mpred)) == NULL) #endif /* * If not, allocate them from the free page queues. */ - m_ret = vm_phys_alloc_contig(npages, low, high, + m_ret = vm_phys_alloc_contig(domain, npages, low, high, alignment, boundary); - } else { - if (vm_page_alloc_fail(object, req)) - goto again; - return (NULL); - } - if (m_ret != NULL) - vm_phys_freecnt_adj(m_ret, -npages); - else { #if VM_NRESERVLEVEL > 0 - if (vm_reserv_reclaim_contig(npages, low, high, alignment, - boundary)) + if (m_ret == NULL && vm_reserv_reclaim_contig( + domain, npages, low, high, alignment, boundary)) goto retry; #endif } - mtx_unlock(&vm_page_queue_free_mtx); - if (m_ret == NULL) + if (m_ret == NULL) { + if (vm_page_alloc_fail(object, req)) + goto again; return (NULL); + } + vm_phys_freecnt_adj(m_ret, -npages); + mtx_unlock(&vm_page_queue_free_mtx); for (m = m_ret; m < &m_ret[npages]; m++) vm_page_alloc_check(m); @@ -1988,7 +2051,30 @@ vm_page_alloc_check(vm_page_t m) vm_page_t vm_page_alloc_freelist(int flind, int req) { + struct vm_domain_iterator vi; vm_page_t m; + int domain, wait; + + m = NULL; + vm_policy_iterator_init(&vi); + wait = req & (VM_ALLOC_WAITFAIL | VM_ALLOC_WAITOK); + req &= ~wait; + while (vm_domain_iterator_run(&vi, &domain) == 0) { + if (vm_domain_iterator_isdone(&vi)) + req |= wait; + m = vm_page_alloc_freelist_domain(domain, flind, req); + if (m != NULL) + break; + } + vm_policy_iterator_finish(&vi); + + return (m); +} + +vm_page_t +vm_page_alloc_freelist_domain(int domain, int flind, int req) +{ + vm_page_t m; u_int flags, free_count; int req_class; @@ -2009,15 +2095,12 @@ again: (req_class == VM_ALLOC_SYSTEM && vm_cnt.v_free_count > vm_cnt.v_interrupt_free_min) || (req_class == VM_ALLOC_INTERRUPT && - vm_cnt.v_free_count > 0)) { - m = vm_phys_alloc_freelist_pages(flind, VM_FREEPOOL_DIRECT, 0); - } else { + vm_cnt.v_free_count > 0)) + m = vm_phys_alloc_freelist_pages(domain, flind, + VM_FREEPOOL_DIRECT, 0); + if (m == NULL) { if (vm_page_alloc_fail(NULL, req)) goto again; - return (NULL); - } - if (m == NULL) { - mtx_unlock(&vm_page_queue_free_mtx); return (NULL); } free_count = vm_phys_freecnt_adj(m, -1); Modified: head/sys/vm/vm_page.h ============================================================================== --- head/sys/vm/vm_page.h Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_page.h Tue Nov 28 23:18:35 2017 (r326346) @@ -476,16 +476,24 @@ void vm_page_free_zero(vm_page_t m); void vm_page_activate (vm_page_t); void vm_page_advise(vm_page_t m, int advice); vm_page_t vm_page_alloc(vm_object_t, vm_pindex_t, int); +vm_page_t vm_page_alloc_domain(vm_object_t, vm_pindex_t, int, int); vm_page_t vm_page_alloc_after(vm_object_t, vm_pindex_t, int, vm_page_t); +vm_page_t vm_page_alloc_domain_after(vm_object_t, vm_pindex_t, int, int, + vm_page_t); vm_page_t vm_page_alloc_contig(vm_object_t object, vm_pindex_t pindex, int req, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr); +vm_page_t vm_page_alloc_contig_domain(vm_object_t object, + vm_pindex_t pindex, int domain, int req, u_long npages, vm_paddr_t low, + vm_paddr_t high, u_long alignment, vm_paddr_t boundary, + vm_memattr_t memattr); vm_page_t vm_page_alloc_freelist(int, int); +vm_page_t vm_page_alloc_freelist_domain(int, int, int); void vm_page_change_lock(vm_page_t m, struct mtx **mtx); vm_page_t vm_page_grab (vm_object_t, vm_pindex_t, int); int vm_page_grab_pages(vm_object_t object, vm_pindex_t pindex, int allocflags, vm_page_t *ma, int count); -void vm_page_deactivate (vm_page_t); +void vm_page_deactivate(vm_page_t); void vm_page_deactivate_noreuse(vm_page_t); void vm_page_dequeue(vm_page_t m); void vm_page_dequeue_locked(vm_page_t m); @@ -506,6 +514,8 @@ void vm_page_putfake(vm_page_t m); void vm_page_readahead_finish(vm_page_t m); bool vm_page_reclaim_contig(int req, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary); +bool vm_page_reclaim_contig_domain(int req, u_long npages, int domain, + vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary); void vm_page_reference(vm_page_t m); void vm_page_remove (vm_page_t); int vm_page_rename (vm_page_t, vm_object_t, vm_pindex_t); Modified: head/sys/vm/vm_phys.c ============================================================================== --- head/sys/vm/vm_phys.c Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_phys.c Tue Nov 28 23:18:35 2017 (r326346) @@ -151,23 +151,6 @@ SYSCTL_OID(_vm, OID_AUTO, phys_locality, CTLTYPE_STRIN SYSCTL_INT(_vm, OID_AUTO, ndomains, CTLFLAG_RD, &vm_ndomains, 0, "Number of physical memory domains available."); -/* - * Default to first-touch + round-robin. - */ -static struct mtx vm_default_policy_mtx; -MTX_SYSINIT(vm_default_policy, &vm_default_policy_mtx, "default policy mutex", - MTX_DEF); -#ifdef VM_NUMA_ALLOC -static struct vm_domain_policy vm_default_policy = - VM_DOMAIN_POLICY_STATIC_INITIALISER(VM_POLICY_FIRST_TOUCH_ROUND_ROBIN, 0); -#else -/* Use round-robin so the domain policy code will only try once per allocation */ -static struct vm_domain_policy vm_default_policy = - VM_DOMAIN_POLICY_STATIC_INITIALISER(VM_POLICY_ROUND_ROBIN, 0); -#endif - -static vm_page_t vm_phys_alloc_domain_pages(int domain, int flind, int pool, - int order); static vm_page_t vm_phys_alloc_seg_contig(struct vm_phys_seg *seg, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary); @@ -176,60 +159,6 @@ static void vm_phys_create_seg(vm_paddr_t start, vm_pa static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order); -static int -sysctl_vm_default_policy(SYSCTL_HANDLER_ARGS) -{ - char policy_name[32]; - int error; - - mtx_lock(&vm_default_policy_mtx); - - /* Map policy to output string */ - switch (vm_default_policy.p.policy) { - case VM_POLICY_FIRST_TOUCH: - strcpy(policy_name, "first-touch"); - break; - case VM_POLICY_FIRST_TOUCH_ROUND_ROBIN: - strcpy(policy_name, "first-touch-rr"); - break; - case VM_POLICY_ROUND_ROBIN: - default: - strcpy(policy_name, "rr"); - break; - } - mtx_unlock(&vm_default_policy_mtx); - - error = sysctl_handle_string(oidp, &policy_name[0], - sizeof(policy_name), req); - if (error != 0 || req->newptr == NULL) - return (error); - - mtx_lock(&vm_default_policy_mtx); - /* Set: match on the subset of policies that make sense as a default */ - if (strcmp("first-touch-rr", policy_name) == 0) { - vm_domain_policy_set(&vm_default_policy, - VM_POLICY_FIRST_TOUCH_ROUND_ROBIN, 0); - } else if (strcmp("first-touch", policy_name) == 0) { - vm_domain_policy_set(&vm_default_policy, - VM_POLICY_FIRST_TOUCH, 0); - } else if (strcmp("rr", policy_name) == 0) { - vm_domain_policy_set(&vm_default_policy, - VM_POLICY_ROUND_ROBIN, 0); - } else { - error = EINVAL; - goto finish; - } - - error = 0; -finish: - mtx_unlock(&vm_default_policy_mtx); - return (error); -} - -SYSCTL_PROC(_vm, OID_AUTO, default_policy, CTLTYPE_STRING | CTLFLAG_RW, - 0, 0, sysctl_vm_default_policy, "A", - "Default policy (rr, first-touch, first-touch-rr"); - /* * Red-black tree helpers for vm fictitious range management. */ @@ -271,71 +200,6 @@ vm_phys_fictitious_cmp(struct vm_phys_fictitious_seg * (uintmax_t)p1->end, (uintmax_t)p2->start, (uintmax_t)p2->end); } -#ifdef notyet -static __inline int -vm_rr_selectdomain(void) -{ -#ifdef VM_NUMA_ALLOC - struct thread *td; - - td = curthread; - - td->td_dom_rr_idx++; - td->td_dom_rr_idx %= vm_ndomains; - return (td->td_dom_rr_idx); -#else - return (0); -#endif -} -#endif /* notyet */ - -/* - * Initialise a VM domain iterator. - * - * Check the thread policy, then the proc policy, - * then default to the system policy. - * - * Later on the various layers will have this logic - * plumbed into them and the phys code will be explicitly - * handed a VM domain policy to use. - */ -static void -vm_policy_iterator_init(struct vm_domain_iterator *vi) -{ -#ifdef VM_NUMA_ALLOC - struct vm_domain_policy lcl; -#endif - - vm_domain_iterator_init(vi); - -#ifdef VM_NUMA_ALLOC - /* Copy out the thread policy */ - vm_domain_policy_localcopy(&lcl, &curthread->td_vm_dom_policy); - if (lcl.p.policy != VM_POLICY_NONE) { - /* Thread policy is present; use it */ - vm_domain_iterator_set_policy(vi, &lcl); - return; - } - - vm_domain_policy_localcopy(&lcl, - &curthread->td_proc->p_vm_dom_policy); - if (lcl.p.policy != VM_POLICY_NONE) { - /* Process policy is present; use it */ - vm_domain_iterator_set_policy(vi, &lcl); - return; - } -#endif - /* Use system default policy */ - vm_domain_iterator_set_policy(vi, &vm_default_policy); -} - -static void -vm_policy_iterator_finish(struct vm_domain_iterator *vi) -{ - - vm_domain_iterator_cleanup(vi); -} - boolean_t vm_phys_domain_intersects(long mask, vm_paddr_t low, vm_paddr_t high) { @@ -504,7 +368,7 @@ _vm_phys_create_seg(vm_paddr_t start, vm_paddr_t end, KASSERT(vm_phys_nsegs < VM_PHYSSEG_MAX, ("vm_phys_create_seg: increase VM_PHYSSEG_MAX")); - KASSERT(domain < vm_ndomains, + KASSERT(domain >= 0 && domain < vm_ndomains, ("vm_phys_create_seg: invalid domain provided")); seg = &vm_phys_segs[vm_phys_nsegs++]; while (seg > vm_phys_segs && (seg - 1)->start >= end) { @@ -736,29 +600,16 @@ vm_phys_split_pages(vm_page_t m, int oind, struct vm_f * The free page queues must be locked. */ vm_page_t -vm_phys_alloc_pages(int pool, int order) +vm_phys_alloc_pages(int domain, int pool, int order) { vm_page_t m; - int domain, flind; - struct vm_domain_iterator vi; + int flind; - KASSERT(pool < VM_NFREEPOOL, - ("vm_phys_alloc_pages: pool %d is out of range", pool)); - KASSERT(order < VM_NFREEORDER, - ("vm_phys_alloc_pages: order %d is out of range", order)); - - vm_policy_iterator_init(&vi); - - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { - for (flind = 0; flind < vm_nfreelists; flind++) { - m = vm_phys_alloc_domain_pages(domain, flind, pool, - order); - if (m != NULL) - return (m); - } + for (flind = 0; flind < vm_nfreelists; flind++) { + m = vm_phys_alloc_freelist_pages(domain, flind, pool, order); + if (m != NULL) + return (m); } - - vm_policy_iterator_finish(&vi); return (NULL); } @@ -770,41 +621,23 @@ vm_phys_alloc_pages(int pool, int order) * The free page queues must be locked. */ vm_page_t -vm_phys_alloc_freelist_pages(int freelist, int pool, int order) +vm_phys_alloc_freelist_pages(int domain, int flind, int pool, int order) { + struct vm_freelist *alt, *fl; vm_page_t m; - struct vm_domain_iterator vi; - int domain; + int oind, pind; - KASSERT(freelist < VM_NFREELIST, + KASSERT(domain >= 0 && domain < vm_ndomains, + ("vm_phys_alloc_freelist_pages: domain %d is out of range", + domain)); + KASSERT(flind < VM_NFREELIST, ("vm_phys_alloc_freelist_pages: freelist %d is out of range", - freelist)); + flind)); KASSERT(pool < VM_NFREEPOOL, ("vm_phys_alloc_freelist_pages: pool %d is out of range", pool)); KASSERT(order < VM_NFREEORDER, ("vm_phys_alloc_freelist_pages: order %d is out of range", order)); - vm_policy_iterator_init(&vi); - - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { - m = vm_phys_alloc_domain_pages(domain, - vm_freelist_to_flind[freelist], pool, order); - if (m != NULL) - return (m); - } - - vm_policy_iterator_finish(&vi); - return (NULL); -} - -static vm_page_t -vm_phys_alloc_domain_pages(int domain, int flind, int pool, int order) -{ - struct vm_freelist *fl; - struct vm_freelist *alt; - int oind, pind; - vm_page_t m; - mtx_assert(&vm_page_queue_free_mtx, MA_OWNED); fl = &vm_phys_free_queues[domain][flind][pool][0]; for (oind = order; oind < VM_NFREEORDER; oind++) { @@ -1261,14 +1094,13 @@ vm_phys_unfree_page(vm_page_t m) * "alignment" and "boundary" must be a power of two. */ vm_page_t -vm_phys_alloc_contig(u_long npages, vm_paddr_t low, vm_paddr_t high, +vm_phys_alloc_contig(int domain, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary) { vm_paddr_t pa_end, pa_start; vm_page_t m_run; - struct vm_domain_iterator vi; struct vm_phys_seg *seg; - int domain, segind; + int segind; KASSERT(npages > 0, ("npages is 0")); KASSERT(powerof2(alignment), ("alignment is not a power of 2")); @@ -1276,12 +1108,6 @@ vm_phys_alloc_contig(u_long npages, vm_paddr_t low, vm mtx_assert(&vm_page_queue_free_mtx, MA_OWNED); if (low >= high) return (NULL); - vm_policy_iterator_init(&vi); -restartdom: - if (vm_domain_iterator_run(&vi, &domain) != 0) { - vm_policy_iterator_finish(&vi); - return (NULL); - } m_run = NULL; for (segind = vm_phys_nsegs - 1; segind >= 0; segind--) { seg = &vm_phys_segs[segind]; @@ -1304,9 +1130,6 @@ restartdom: if (m_run != NULL) break; } - if (m_run == NULL && !vm_domain_iterator_isdone(&vi)) - goto restartdom; - vm_policy_iterator_finish(&vi); return (m_run); } Modified: head/sys/vm/vm_phys.h ============================================================================== --- head/sys/vm/vm_phys.h Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_phys.h Tue Nov 28 23:18:35 2017 (r326346) @@ -72,10 +72,11 @@ extern int vm_phys_nsegs; * The following functions are only to be used by the virtual memory system. */ void vm_phys_add_seg(vm_paddr_t start, vm_paddr_t end); -vm_page_t vm_phys_alloc_contig(u_long npages, vm_paddr_t low, vm_paddr_t high, - u_long alignment, vm_paddr_t boundary); -vm_page_t vm_phys_alloc_freelist_pages(int freelist, int pool, int order); -vm_page_t vm_phys_alloc_pages(int pool, int order); +vm_page_t vm_phys_alloc_contig(int domain, u_long npages, vm_paddr_t low, + vm_paddr_t high, u_long alignment, vm_paddr_t boundary); +vm_page_t vm_phys_alloc_freelist_pages(int domain, int freelist, int pool, + int order); +vm_page_t vm_phys_alloc_pages(int domain, int pool, int order); boolean_t vm_phys_domain_intersects(long mask, vm_paddr_t low, vm_paddr_t high); int vm_phys_fictitious_reg_range(vm_paddr_t start, vm_paddr_t end, vm_memattr_t memattr); @@ -92,12 +93,13 @@ boolean_t vm_phys_unfree_page(vm_page_t m); int vm_phys_mem_affinity(int f, int t); /* - * vm_phys_domain: * - * Return the memory domain the page belongs to. + * vm_phys_domidx: + * + * Return the index of the domain the page belongs to. */ -static inline struct vm_domain * -vm_phys_domain(vm_page_t m) +static inline int +vm_phys_domidx(vm_page_t m) { #ifdef VM_NUMA_ALLOC int domn, segind; @@ -107,10 +109,22 @@ vm_phys_domain(vm_page_t m) KASSERT(segind < vm_phys_nsegs, ("segind %d m %p", segind, m)); domn = vm_phys_segs[segind].domain; KASSERT(domn < vm_ndomains, ("domain %d m %p", domn, m)); - return (&vm_dom[domn]); + return (domn); #else - return (&vm_dom[0]); + return (0); #endif +} + +/* + * vm_phys_domain: + * + * Return the memory domain the page belongs to. + */ +static inline struct vm_domain * +vm_phys_domain(vm_page_t m) +{ + + return (&vm_dom[vm_phys_domidx(m)]); } static inline u_int Modified: head/sys/vm/vm_reserv.c ============================================================================== --- head/sys/vm/vm_reserv.c Tue Nov 28 22:57:13 2017 (r326345) +++ head/sys/vm/vm_reserv.c Tue Nov 28 23:18:35 2017 (r326346) @@ -170,6 +170,7 @@ struct vm_reserv { vm_object_t object; /* containing object */ vm_pindex_t pindex; /* offset within object */ vm_page_t pages; /* first page of a superpage */ + int domain; /* NUMA domain */ int popcnt; /* # of pages in use */ char inpartpopq; popmap_t popmap[NPOPMAP]; /* bit vector of used pages */ @@ -207,8 +208,7 @@ static vm_reserv_t vm_reserv_array; * * Access to this queue is synchronized by the free page queue lock. */ -static TAILQ_HEAD(, vm_reserv) vm_rvq_partpop = - TAILQ_HEAD_INITIALIZER(vm_rvq_partpop); +static TAILQ_HEAD(, vm_reserv) vm_rvq_partpop[MAXMEMDOM]; static SYSCTL_NODE(_vm, OID_AUTO, reserv, CTLFLAG_RD, 0, "Reservation Info"); @@ -277,24 +277,27 @@ sysctl_vm_reserv_partpopq(SYSCTL_HANDLER_ARGS) { struct sbuf sbuf; vm_reserv_t rv; - int counter, error, level, unused_pages; + int counter, error, domain, level, unused_pages; error = sysctl_wire_old_buffer(req, 0); if (error != 0) return (error); sbuf_new_for_sysctl(&sbuf, NULL, 128, req); - sbuf_printf(&sbuf, "\nLEVEL SIZE NUMBER\n\n"); - for (level = -1; level <= VM_NRESERVLEVEL - 2; level++) { - counter = 0; - unused_pages = 0; - mtx_lock(&vm_page_queue_free_mtx); - TAILQ_FOREACH(rv, &vm_rvq_partpop/*[level]*/, partpopq) { - counter++; - unused_pages += VM_LEVEL_0_NPAGES - rv->popcnt; + sbuf_printf(&sbuf, "\nDOMAIN LEVEL SIZE NUMBER\n\n"); + for (domain = 0; domain < vm_ndomains; domain++) { + for (level = -1; level <= VM_NRESERVLEVEL - 2; level++) { + counter = 0; + unused_pages = 0; + mtx_lock(&vm_page_queue_free_mtx); + TAILQ_FOREACH(rv, &vm_rvq_partpop[domain], partpopq) { + counter++; + unused_pages += VM_LEVEL_0_NPAGES - rv->popcnt; + } + mtx_unlock(&vm_page_queue_free_mtx); + sbuf_printf(&sbuf, "%6d, %7d, %6dK, %6d\n", + domain, level, + unused_pages * ((int)PAGE_SIZE / 1024), counter); } - mtx_unlock(&vm_page_queue_free_mtx); - sbuf_printf(&sbuf, "%5d: %6dK, %6d\n", level, - unused_pages * ((int)PAGE_SIZE / 1024), counter); } error = sbuf_finish(&sbuf); sbuf_delete(&sbuf); @@ -321,8 +324,11 @@ vm_reserv_depopulate(vm_reserv_t rv, int index) index)); KASSERT(rv->popcnt > 0, ("vm_reserv_depopulate: reserv %p's popcnt is corrupted", rv)); + KASSERT(rv->domain >= 0 && rv->domain < vm_ndomains, + ("vm_reserv_depopulate: reserv %p's domain is corrupted %d", + rv, rv->domain)); if (rv->inpartpopq) { - TAILQ_REMOVE(&vm_rvq_partpop, rv, partpopq); + TAILQ_REMOVE(&vm_rvq_partpop[rv->domain], rv, partpopq); rv->inpartpopq = FALSE; } else { KASSERT(rv->pages->psind == 1, @@ -335,11 +341,12 @@ vm_reserv_depopulate(vm_reserv_t rv, int index) if (rv->popcnt == 0) { LIST_REMOVE(rv, objq); rv->object = NULL; + rv->domain = -1; vm_phys_free_pages(rv->pages, VM_LEVEL_0_ORDER); vm_reserv_freed++; } else { rv->inpartpopq = TRUE; - TAILQ_INSERT_TAIL(&vm_rvq_partpop, rv, partpopq); + TAILQ_INSERT_TAIL(&vm_rvq_partpop[rv->domain], rv, partpopq); } } @@ -384,15 +391,18 @@ vm_reserv_populate(vm_reserv_t rv, int index) ("vm_reserv_populate: reserv %p is already full", rv)); KASSERT(rv->pages->psind == 0, ("vm_reserv_populate: reserv %p is already promoted", rv)); + KASSERT(rv->domain >= 0 && rv->domain < vm_ndomains, + ("vm_reserv_populate: reserv %p's domain is corrupted %d", + rv, rv->domain)); if (rv->inpartpopq) { - TAILQ_REMOVE(&vm_rvq_partpop, rv, partpopq); + TAILQ_REMOVE(&vm_rvq_partpop[rv->domain], rv, partpopq); rv->inpartpopq = FALSE; } popmap_set(rv->popmap, index); rv->popcnt++; if (rv->popcnt < VM_LEVEL_0_NPAGES) { rv->inpartpopq = TRUE; - TAILQ_INSERT_TAIL(&vm_rvq_partpop, rv, partpopq); + TAILQ_INSERT_TAIL(&vm_rvq_partpop[rv->domain], rv, partpopq); } else rv->pages->psind = 1; } @@ -413,9 +423,9 @@ vm_reserv_populate(vm_reserv_t rv, int index) * The object and free page queue must be locked. */ vm_page_t -vm_reserv_alloc_contig(vm_object_t object, vm_pindex_t pindex, u_long npages, - vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, - vm_page_t mpred) +vm_reserv_alloc_contig(vm_object_t object, vm_pindex_t pindex, int domain, + u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, + vm_paddr_t boundary, vm_page_t mpred) { vm_paddr_t pa, size; vm_page_t m, m_ret, msucc; @@ -535,7 +545,7 @@ vm_reserv_alloc_contig(vm_object_t object, vm_pindex_t * specified index may not be the first page within the first new * reservation. */ - m = vm_phys_alloc_contig(allocpages, low, high, ulmax(alignment, + m = vm_phys_alloc_contig(domain, allocpages, low, high, ulmax(alignment, VM_LEVEL_0_SIZE), boundary > VM_LEVEL_0_SIZE ? boundary : 0); if (m == NULL) return (NULL); @@ -558,6 +568,7 @@ vm_reserv_alloc_contig(vm_object_t object, vm_pindex_t LIST_INSERT_HEAD(&object->rvq, rv, objq); rv->object = object; rv->pindex = first; + rv->domain = vm_phys_domidx(m); KASSERT(rv->popcnt == 0, ("vm_reserv_alloc_contig: reserv %p's popcnt is corrupted", rv)); @@ -613,7 +624,8 @@ found: * The object and free page queue must be locked. */ vm_page_t -vm_reserv_alloc_page(vm_object_t object, vm_pindex_t pindex, vm_page_t mpred) +vm_reserv_alloc_page(vm_object_t object, vm_pindex_t pindex, int domain, + vm_page_t mpred) { vm_page_t m, msucc; vm_pindex_t first, leftcap, rightcap; @@ -692,7 +704,7 @@ vm_reserv_alloc_page(vm_object_t object, vm_pindex_t p /* * Allocate and populate the new reservation. */ - m = vm_phys_alloc_pages(VM_FREEPOOL_DEFAULT, VM_LEVEL_0_ORDER); + m = vm_phys_alloc_pages(domain, VM_FREEPOOL_DEFAULT, VM_LEVEL_0_ORDER); if (m == NULL) return (NULL); rv = vm_reserv_from_page(m); @@ -703,6 +715,7 @@ vm_reserv_alloc_page(vm_object_t object, vm_pindex_t p LIST_INSERT_HEAD(&object->rvq, rv, objq); rv->object = object; rv->pindex = first; + rv->domain = vm_phys_domidx(m); KASSERT(rv->popcnt == 0, ("vm_reserv_alloc_page: reserv %p's popcnt is corrupted", rv)); KASSERT(!rv->inpartpopq, @@ -749,6 +762,7 @@ vm_reserv_break(vm_reserv_t rv, vm_page_t m) ("vm_reserv_break: reserv %p's inpartpopq is TRUE", rv)); LIST_REMOVE(rv, objq); rv->object = NULL; + rv->domain = -1; if (m != NULL) { /* * Since the reservation is being broken, there is no harm in @@ -818,7 +832,7 @@ vm_reserv_break_all(vm_object_t object) KASSERT(rv->object == object, ("vm_reserv_break_all: reserv %p is corrupted", rv)); if (rv->inpartpopq) { - TAILQ_REMOVE(&vm_rvq_partpop, rv, partpopq); + TAILQ_REMOVE(&vm_rvq_partpop[rv->domain], rv, partpopq); rv->inpartpopq = FALSE; } vm_reserv_break(rv, NULL); @@ -856,7 +870,7 @@ vm_reserv_init(void) { vm_paddr_t paddr; struct vm_phys_seg *seg; - int segind; + int i, segind; /* * Initialize the reservation array. Specifically, initialize the @@ -871,6 +885,8 @@ vm_reserv_init(void) paddr += VM_LEVEL_0_SIZE; } } + for (i = 0; i < MAXMEMDOM; i++) + TAILQ_INIT(&vm_rvq_partpop[i]); } /* @@ -928,7 +944,10 @@ vm_reserv_reclaim(vm_reserv_t rv) mtx_assert(&vm_page_queue_free_mtx, MA_OWNED); KASSERT(rv->inpartpopq, ("vm_reserv_reclaim: reserv %p's inpartpopq is FALSE", rv)); - TAILQ_REMOVE(&vm_rvq_partpop, rv, partpopq); + KASSERT(rv->domain >= 0 && rv->domain < vm_ndomains, + ("vm_reserv_reclaim: reserv %p's domain is corrupted %d", + rv, rv->domain)); + TAILQ_REMOVE(&vm_rvq_partpop[rv->domain], rv, partpopq); rv->inpartpopq = FALSE; vm_reserv_break(rv, NULL); vm_reserv_reclaimed++; @@ -942,12 +961,12 @@ vm_reserv_reclaim(vm_reserv_t rv) * The free page queue lock must be held. */ boolean_t -vm_reserv_reclaim_inactive(void) +vm_reserv_reclaim_inactive(int domain) { vm_reserv_t rv; mtx_assert(&vm_page_queue_free_mtx, MA_OWNED); - if ((rv = TAILQ_FIRST(&vm_rvq_partpop)) != NULL) { + if ((rv = TAILQ_FIRST(&vm_rvq_partpop[domain])) != NULL) { vm_reserv_reclaim(rv); return (TRUE); } @@ -963,8 +982,8 @@ vm_reserv_reclaim_inactive(void) * The free page queue lock must be held. */ boolean_t -vm_reserv_reclaim_contig(u_long npages, vm_paddr_t low, vm_paddr_t high, - u_long alignment, vm_paddr_t boundary) +vm_reserv_reclaim_contig(int domain, u_long npages, vm_paddr_t low, + vm_paddr_t high, u_long alignment, vm_paddr_t boundary) { vm_paddr_t pa, size; *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Tue Nov 28 23:40:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B008DF2886; Tue, 28 Nov 2017 23:40:57 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED39B7DEE9; Tue, 28 Nov 2017 23:40:56 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASNeuJB044394; Tue, 28 Nov 2017 23:40:56 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASNetfP044382; Tue, 28 Nov 2017 23:40:55 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201711282340.vASNetfP044382@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Tue, 28 Nov 2017 23:40:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326347 - in head/sys: kern sys vm X-SVN-Group: head X-SVN-Commit-Author: jeff X-SVN-Commit-Paths: in head/sys: kern sys vm X-SVN-Commit-Revision: 326347 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 23:40:57 -0000 Author: jeff Date: Tue Nov 28 23:40:54 2017 New Revision: 326347 URL: https://svnweb.freebsd.org/changeset/base/326347 Log: Eliminate kmem_arena and kmem_object in preparation for further NUMA commits. The arena argument to kmem_*() is now only used in an assert. A follow-up commit will remove the argument altogether before we freeze the API for the next release. This replaces the hard limit on kmem size with a soft limit imposed by UMA. When the soft limit is exceeded we periodically wakeup the UMA reclaim thread to attempt to shrink KVA. On 32bit architectures this should behave much more gracefully as we exhaust KVA. On 64bit the limits are likely never hit. Reviewed by: markj, kib (some objections) Discussed with: alc Tested by: pho Sponsored by: Netflix / Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D13187 Modified: head/sys/kern/kern_malloc.c head/sys/kern/subr_vmem.c head/sys/sys/vmem.h head/sys/vm/memguard.c head/sys/vm/uma.h head/sys/vm/uma_core.c head/sys/vm/uma_int.h head/sys/vm/vm_kern.c head/sys/vm/vm_map.c head/sys/vm/vm_object.c head/sys/vm/vm_object.h Modified: head/sys/kern/kern_malloc.c ============================================================================== --- head/sys/kern/kern_malloc.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/kern/kern_malloc.c Tue Nov 28 23:40:54 2017 (r326347) @@ -239,16 +239,22 @@ sysctl_kmem_map_size(SYSCTL_HANDLER_ARGS) { u_long size; - size = vmem_size(kmem_arena, VMEM_ALLOC); + size = uma_size(); return (sysctl_handle_long(oidp, &size, 0, req)); } static int sysctl_kmem_map_free(SYSCTL_HANDLER_ARGS) { - u_long size; + u_long size, limit; - size = vmem_size(kmem_arena, VMEM_FREE); + /* The sysctl is unsigned, implement as a saturation value. */ + size = uma_size(); + limit = uma_limit(); + if (size > limit) + size = 0; + else + size = limit - size; return (sysctl_handle_long(oidp, &size, 0, req)); } @@ -669,19 +675,6 @@ reallocf(void *addr, unsigned long size, struct malloc return (mem); } -/* - * Wake the uma reclamation pagedaemon thread when we exhaust KVA. It - * will call the lowmem handler and uma_reclaim() callbacks in a - * context that is safe. - */ -static void -kmem_reclaim(vmem_t *vm, int flags) -{ - - uma_reclaim_wakeup(); - pagedaemon_wakeup(); -} - #ifndef __sparc64__ CTASSERT(VM_KMEM_SIZE_SCALE >= 1); #endif @@ -759,9 +752,7 @@ kmeminit(void) #else tmp = vm_kmem_size; #endif - vmem_init(kmem_arena, "kmem arena", kva_alloc(tmp), tmp, PAGE_SIZE, - 0, 0); - vmem_set_reclaim(kmem_arena, kmem_reclaim); + uma_set_limit(tmp); #ifdef DEBUG_MEMGUARD /* @@ -769,7 +760,7 @@ kmeminit(void) * replacement allocator used for detecting tamper-after-free * scenarios as they occur. It is only used for debugging. */ - memguard_init(kmem_arena); + memguard_init(kernel_arena); #endif } Modified: head/sys/kern/subr_vmem.c ============================================================================== --- head/sys/kern/subr_vmem.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/kern/subr_vmem.c Tue Nov 28 23:40:54 2017 (r326347) @@ -137,6 +137,7 @@ struct vmem { int vm_nbusytag; vmem_size_t vm_inuse; vmem_size_t vm_size; + vmem_size_t vm_limit; /* Used on import. */ vmem_import_t *vm_importfn; @@ -228,11 +229,11 @@ static uma_zone_t vmem_bt_zone; /* boot time arena storage. */ static struct vmem kernel_arena_storage; -static struct vmem kmem_arena_storage; static struct vmem buffer_arena_storage; static struct vmem transient_arena_storage; +/* kernel and kmem arenas are aliased for backwards KPI compat. */ vmem_t *kernel_arena = &kernel_arena_storage; -vmem_t *kmem_arena = &kmem_arena_storage; +vmem_t *kmem_arena = &kernel_arena_storage; vmem_t *buffer_arena = &buffer_arena_storage; vmem_t *transient_arena = &transient_arena_storage; @@ -254,11 +255,11 @@ bt_fill(vmem_t *vm, int flags) VMEM_ASSERT_LOCKED(vm); /* - * Only allow the kmem arena to dip into reserve tags. It is the + * Only allow the kernel arena to dip into reserve tags. It is the * vmem where new tags come from. */ flags &= BT_FLAGS; - if (vm != kmem_arena) + if (vm != kernel_arena) flags &= ~M_USE_RESERVE; /* @@ -615,22 +616,22 @@ vmem_bt_alloc(uma_zone_t zone, vm_size_t bytes, uint8_ { vmem_addr_t addr; - *pflag = UMA_SLAB_KMEM; + *pflag = UMA_SLAB_KERNEL; /* * Single thread boundary tag allocation so that the address space * and memory are added in one atomic operation. */ mtx_lock(&vmem_bt_lock); - if (vmem_xalloc(kmem_arena, bytes, 0, 0, 0, VMEM_ADDR_MIN, + if (vmem_xalloc(kernel_arena, bytes, 0, 0, 0, VMEM_ADDR_MIN, VMEM_ADDR_MAX, M_NOWAIT | M_NOVM | M_USE_RESERVE | M_BESTFIT, &addr) == 0) { - if (kmem_back(kmem_object, addr, bytes, + if (kmem_back(kernel_object, addr, bytes, M_NOWAIT | M_USE_RESERVE) == 0) { mtx_unlock(&vmem_bt_lock); return ((void *)addr); } - vmem_xfree(kmem_arena, addr, bytes); + vmem_xfree(kernel_arena, addr, bytes); mtx_unlock(&vmem_bt_lock); /* * Out of memory, not address space. This may not even be @@ -835,7 +836,7 @@ vmem_import(vmem_t *vm, vmem_size_t size, vmem_size_t int error; if (vm->vm_importfn == NULL) - return EINVAL; + return (EINVAL); /* * To make sure we get a span that meets the alignment we double it @@ -845,6 +846,9 @@ vmem_import(vmem_t *vm, vmem_size_t size, vmem_size_t size = (align * 2) + size; size = roundup(size, vm->vm_import_quantum); + if (vm->vm_limit != 0 && vm->vm_limit < vm->vm_size + size) + return (ENOMEM); + /* * Hide MAXALLOC tags so we're guaranteed to be able to add this * span and the tag we want to allocate from it. @@ -856,7 +860,7 @@ vmem_import(vmem_t *vm, vmem_size_t size, vmem_size_t VMEM_LOCK(vm); vm->vm_nfreetags += BT_MAXALLOC; if (error) - return ENOMEM; + return (ENOMEM); vmem_add1(vm, addr, size, BT_TYPE_SPAN); @@ -978,6 +982,15 @@ vmem_set_import(vmem_t *vm, vmem_import_t *importfn, } void +vmem_set_limit(vmem_t *vm, vmem_size_t limit) +{ + + VMEM_LOCK(vm); + vm->vm_limit = limit; + VMEM_UNLOCK(vm); +} + +void vmem_set_reclaim(vmem_t *vm, vmem_reclaim_t *reclaimfn) { @@ -1009,6 +1022,7 @@ vmem_init(vmem_t *vm, const char *name, vmem_addr_t ba vm->vm_quantum_shift = flsl(quantum) - 1; vm->vm_nbusytag = 0; vm->vm_size = 0; + vm->vm_limit = 0; vm->vm_inuse = 0; qc_init(vm, qcache_max); Modified: head/sys/sys/vmem.h ============================================================================== --- head/sys/sys/vmem.h Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/sys/vmem.h Tue Nov 28 23:40:54 2017 (r326347) @@ -76,6 +76,12 @@ void vmem_set_import(vmem_t *vm, vmem_import_t *import vmem_release_t *releasefn, void *arg, vmem_size_t import_quantum); /* + * Set a limit on the total size of a vmem. + */ + +void vmem_set_limit(vmem_t *vm, vmem_size_t limit); + +/* * Set a callback for reclaiming memory when space is exhausted: */ void vmem_set_reclaim(vmem_t *vm, vmem_reclaim_t *reclaimfn); Modified: head/sys/vm/memguard.c ============================================================================== --- head/sys/vm/memguard.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/memguard.c Tue Nov 28 23:40:54 2017 (r326347) @@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$"); static SYSCTL_NODE(_vm, OID_AUTO, memguard, CTLFLAG_RW, NULL, "MemGuard data"); /* - * The vm_memguard_divisor variable controls how much of kmem_map should be + * The vm_memguard_divisor variable controls how much of kernel_arena should be * reserved for MemGuard. */ static u_int vm_memguard_divisor; @@ -157,7 +157,7 @@ SYSCTL_ULONG(_vm_memguard, OID_AUTO, frequency_hits, C /* * Return a fudged value to be used for vm_kmem_size for allocating - * the kmem_map. The memguard memory will be a submap. + * the kernel_arena. The memguard memory will be a submap. */ unsigned long memguard_fudge(unsigned long km_size, const struct vm_map *parent_map) @@ -348,7 +348,7 @@ memguard_alloc(unsigned long req_size, int flags) addr = origaddr; if (do_guard) addr += PAGE_SIZE; - rv = kmem_back(kmem_object, addr, size_p, flags); + rv = kmem_back(kernel_object, addr, size_p, flags); if (rv != KERN_SUCCESS) { vmem_xfree(memguard_arena, origaddr, size_v); memguard_fail_pgs++; @@ -418,7 +418,7 @@ memguard_free(void *ptr) * vm_map lock to serialize updates to memguard_wasted, since * we had the lock at increment. */ - kmem_unback(kmem_object, addr, size); + kmem_unback(kernel_object, addr, size); if (sizev > size) addr -= PAGE_SIZE; vmem_xfree(memguard_arena, addr, sizev); Modified: head/sys/vm/uma.h ============================================================================== --- head/sys/vm/uma.h Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/uma.h Tue Nov 28 23:40:54 2017 (r326347) @@ -609,12 +609,11 @@ void uma_zone_set_freef(uma_zone_t zone, uma_free free * These flags are setable in the allocf and visible in the freef. */ #define UMA_SLAB_BOOT 0x01 /* Slab alloced from boot pages */ -#define UMA_SLAB_KMEM 0x02 /* Slab alloced from kmem_map */ #define UMA_SLAB_KERNEL 0x04 /* Slab alloced from kernel_map */ #define UMA_SLAB_PRIV 0x08 /* Slab alloced from priv allocator */ #define UMA_SLAB_OFFP 0x10 /* Slab is managed separately */ #define UMA_SLAB_MALLOC 0x20 /* Slab is a large malloc slab */ -/* 0x40 and 0x80 are available */ +/* 0x02, 0x40 and 0x80 are available */ /* * Used to pre-fill a zone with some number of items Modified: head/sys/vm/uma_core.c ============================================================================== --- head/sys/vm/uma_core.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/uma_core.c Tue Nov 28 23:40:54 2017 (r326347) @@ -147,6 +147,10 @@ static struct mtx uma_boot_pages_mtx; static struct sx uma_drain_lock; +/* kmem soft limit. */ +static unsigned long uma_kmem_limit; +static volatile unsigned long uma_kmem_total; + /* Is the VM done starting up? */ static int booted = 0; #define UMA_STARTUP 1 @@ -285,6 +289,22 @@ static int zone_warnings = 1; SYSCTL_INT(_vm, OID_AUTO, zone_warnings, CTLFLAG_RWTUN, &zone_warnings, 0, "Warn when UMA zones becomes full"); +/* Adjust bytes under management by UMA. */ +static inline void +uma_total_dec(unsigned long size) +{ + + atomic_subtract_long(&uma_kmem_total, size); +} + +static inline void +uma_total_inc(unsigned long size) +{ + + if (atomic_fetchadd_long(&uma_kmem_total, size) > uma_kmem_limit) + uma_reclaim_wakeup(); +} + /* * This routine checks to see whether or not it's safe to enable buckets. */ @@ -831,6 +851,7 @@ keg_free_slab(uma_keg_t keg, uma_slab_t slab, int star if (keg->uk_flags & UMA_ZONE_OFFPAGE) zone_free_item(keg->uk_slabzone, slab, NULL, SKIP_NONE); keg->uk_freef(mem, PAGE_SIZE * keg->uk_ppera, flags); + uma_total_dec(PAGE_SIZE * keg->uk_ppera); } /* @@ -935,6 +956,7 @@ keg_alloc_slab(uma_keg_t keg, uma_zone_t zone, int wai { uma_alloc allocf; uma_slab_t slab; + unsigned long size; uint8_t *mem; uint8_t flags; int i; @@ -945,6 +967,7 @@ keg_alloc_slab(uma_keg_t keg, uma_zone_t zone, int wai allocf = keg->uk_allocf; KEG_UNLOCK(keg); + size = keg->uk_ppera * PAGE_SIZE; if (keg->uk_flags & UMA_ZONE_OFFPAGE) { slab = zone_alloc_item(keg->uk_slabzone, NULL, wait); @@ -968,13 +991,14 @@ keg_alloc_slab(uma_keg_t keg, uma_zone_t zone, int wai wait |= M_NODUMP; /* zone is passed for legacy reasons. */ - mem = allocf(zone, keg->uk_ppera * PAGE_SIZE, &flags, wait); + mem = allocf(zone, size, &flags, wait); if (mem == NULL) { if (keg->uk_flags & UMA_ZONE_OFFPAGE) zone_free_item(keg->uk_slabzone, slab, NULL, SKIP_NONE); slab = NULL; goto out; } + uma_total_inc(size); /* Point the slab into the allocated memory */ if (!(keg->uk_flags & UMA_ZONE_OFFPAGE)) @@ -1079,8 +1103,8 @@ page_alloc(uma_zone_t zone, vm_size_t bytes, uint8_t * { void *p; /* Returned page */ - *pflag = UMA_SLAB_KMEM; - p = (void *) kmem_malloc(kmem_arena, bytes, wait); + *pflag = UMA_SLAB_KERNEL; + p = (void *) kmem_malloc(kernel_arena, bytes, wait); return (p); } @@ -1161,9 +1185,7 @@ page_free(void *mem, vm_size_t size, uint8_t flags) { struct vmem *vmem; - if (flags & UMA_SLAB_KMEM) - vmem = kmem_arena; - else if (flags & UMA_SLAB_KERNEL) + if (flags & UMA_SLAB_KERNEL) vmem = kernel_arena; else panic("UMA: page_free used with invalid flags %x", flags); @@ -3132,31 +3154,33 @@ uma_reclaim(void) sx_xunlock(&uma_drain_lock); } -static int uma_reclaim_needed; +static volatile int uma_reclaim_needed; void uma_reclaim_wakeup(void) { - uma_reclaim_needed = 1; - wakeup(&uma_reclaim_needed); + if (atomic_fetchadd_int(&uma_reclaim_needed, 1) == 0) + wakeup(uma_reclaim); } void uma_reclaim_worker(void *arg __unused) { - sx_xlock(&uma_drain_lock); for (;;) { - sx_sleep(&uma_reclaim_needed, &uma_drain_lock, PVM, - "umarcl", 0); - if (uma_reclaim_needed) { - uma_reclaim_needed = 0; - sx_xunlock(&uma_drain_lock); - EVENTHANDLER_INVOKE(vm_lowmem, VM_LOW_KMEM); - sx_xlock(&uma_drain_lock); - uma_reclaim_locked(true); - } + sx_xlock(&uma_drain_lock); + while (uma_reclaim_needed == 0) + sx_sleep(uma_reclaim, &uma_drain_lock, PVM, "umarcl", + hz); + sx_xunlock(&uma_drain_lock); + EVENTHANDLER_INVOKE(vm_lowmem, VM_LOW_KMEM); + sx_xlock(&uma_drain_lock); + uma_reclaim_locked(true); + atomic_set_int(&uma_reclaim_needed, 0); + sx_xunlock(&uma_drain_lock); + /* Don't fire more than once per-second. */ + pause("umarclslp", hz); } } @@ -3194,6 +3218,7 @@ uma_large_malloc(vm_size_t size, int wait) slab->us_data = mem; slab->us_flags = flags | UMA_SLAB_MALLOC; slab->us_size = size; + uma_total_inc(size); } else { zone_free_item(slabzone, slab, NULL, SKIP_NONE); } @@ -3206,6 +3231,7 @@ uma_large_free(uma_slab_t slab) { page_free(slab->us_data, slab->us_size, slab->us_flags); + uma_total_dec(slab->us_size); zone_free_item(slabzone, slab, NULL, SKIP_NONE); } @@ -3219,6 +3245,27 @@ uma_zero_item(void *item, uma_zone_t zone) bzero(zpcpu_get_cpu(item, i), zone->uz_size); } else bzero(item, zone->uz_size); +} + +unsigned long +uma_limit(void) +{ + + return (uma_kmem_limit); +} + +void +uma_set_limit(unsigned long limit) +{ + + uma_kmem_limit = limit; +} + +unsigned long +uma_size(void) +{ + + return uma_kmem_total; } void Modified: head/sys/vm/uma_int.h ============================================================================== --- head/sys/vm/uma_int.h Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/uma_int.h Tue Nov 28 23:40:54 2017 (r326347) @@ -425,6 +425,13 @@ vsetslab(vm_offset_t va, uma_slab_t slab) void *uma_small_alloc(uma_zone_t zone, vm_size_t bytes, uint8_t *pflag, int wait); void uma_small_free(void *mem, vm_size_t size, uint8_t flags); + +/* Set a global soft limit on UMA managed memory. */ +void uma_set_limit(unsigned long limit); +unsigned long uma_limit(void); + +/* Return the amount of memory managed by UMA. */ +unsigned long uma_size(void); #endif /* _KERNEL */ #endif /* VM_UMA_INT_H */ Modified: head/sys/vm/vm_kern.c ============================================================================== --- head/sys/vm/vm_kern.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/vm_kern.c Tue Nov 28 23:40:54 2017 (r326347) @@ -164,11 +164,13 @@ vm_offset_t kmem_alloc_attr(vmem_t *vmem, vm_size_t size, int flags, vm_paddr_t low, vm_paddr_t high, vm_memattr_t memattr) { - vm_object_t object = vmem == kmem_arena ? kmem_object : kernel_object; + vm_object_t object = kernel_object; vm_offset_t addr, i, offset; vm_page_t m; int pflags, tries; + KASSERT(vmem == kernel_arena, + ("kmem_alloc_attr: Only kernel_arena is supported.")); size = round_page(size); if (vmem_alloc(vmem, size, M_BESTFIT | flags, &addr)) return (0); @@ -220,12 +222,14 @@ kmem_alloc_contig(struct vmem *vmem, vm_size_t size, i vm_paddr_t high, u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr) { - vm_object_t object = vmem == kmem_arena ? kmem_object : kernel_object; + vm_object_t object = kernel_object; vm_offset_t addr, offset, tmp; vm_page_t end_m, m; u_long npages; int pflags, tries; + KASSERT(vmem == kernel_arena, + ("kmem_alloc_contig: Only kernel_arena is supported.")); size = round_page(size); if (vmem_alloc(vmem, size, flags | M_BESTFIT, &addr)) return (0); @@ -314,12 +318,13 @@ kmem_malloc(struct vmem *vmem, vm_size_t size, int fla vm_offset_t addr; int rv; + KASSERT(vmem == kernel_arena, + ("kmem_malloc: Only kernel_arena is supported.")); size = round_page(size); if (vmem_alloc(vmem, size, flags | M_BESTFIT, &addr)) return (0); - rv = kmem_back((vmem == kmem_arena) ? kmem_object : kernel_object, - addr, size, flags); + rv = kmem_back(kernel_object, addr, size, flags); if (rv != KERN_SUCCESS) { vmem_free(vmem, addr, size); return (0); @@ -339,8 +344,8 @@ kmem_back(vm_object_t object, vm_offset_t addr, vm_siz vm_page_t m, mpred; int pflags; - KASSERT(object == kmem_object || object == kernel_object, - ("kmem_back: only supports kernel objects.")); + KASSERT(object == kernel_object, + ("kmem_back: only supports kernel object.")); offset = addr - VM_MIN_KERNEL_ADDRESS; pflags = malloc2vm_flags(flags) | VM_ALLOC_NOBUSY | VM_ALLOC_WIRED; @@ -396,8 +401,8 @@ kmem_unback(vm_object_t object, vm_offset_t addr, vm_s vm_page_t m, next; vm_offset_t end, offset; - KASSERT(object == kmem_object || object == kernel_object, - ("kmem_unback: only supports kernel objects.")); + KASSERT(object == kernel_object, + ("kmem_unback: only supports kernel object.")); pmap_remove(kernel_pmap, addr, addr + size); offset = addr - VM_MIN_KERNEL_ADDRESS; @@ -422,9 +427,10 @@ void kmem_free(struct vmem *vmem, vm_offset_t addr, vm_size_t size) { + KASSERT(vmem == kernel_arena, + ("kmem_free: Only kernel_arena is supported.")); size = round_page(size); - kmem_unback((vmem == kmem_arena) ? kmem_object : kernel_object, - addr, size); + kmem_unback(kernel_object, addr, size); vmem_free(vmem, addr, size); } Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/vm_map.c Tue Nov 28 23:40:54 2017 (r326347) @@ -1189,9 +1189,9 @@ vm_map_insert(vm_map_t map, vm_object_t object, vm_oof vm_inherit_t inheritance; VM_MAP_ASSERT_LOCKED(map); - KASSERT((object != kmem_object && object != kernel_object) || + KASSERT(object != kernel_object || (cow & MAP_COPY_ON_WRITE) == 0, - ("vm_map_insert: kmem or kernel object and COW")); + ("vm_map_insert: kernel object and COW")); KASSERT(object == NULL || (cow & MAP_NOFAULT) == 0, ("vm_map_insert: paradoxical MAP_NOFAULT request")); KASSERT((prot & ~max) == 0, @@ -2990,7 +2990,7 @@ vm_map_entry_delete(vm_map_t map, vm_map_entry_t entry VM_OBJECT_WLOCK(object); if (object->ref_count != 1 && ((object->flags & (OBJ_NOSPLIT | OBJ_ONEMAPPING)) == OBJ_ONEMAPPING || - object == kernel_object || object == kmem_object)) { + object == kernel_object)) { vm_object_collapse(object); /* Modified: head/sys/vm/vm_object.c ============================================================================== --- head/sys/vm/vm_object.c Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/vm_object.c Tue Nov 28 23:40:54 2017 (r326347) @@ -144,7 +144,6 @@ struct object_q vm_object_list; struct mtx vm_object_list_mtx; /* lock for object list and count */ struct vm_object kernel_object_store; -struct vm_object kmem_object_store; static SYSCTL_NODE(_vm_stats, OID_AUTO, object, CTLFLAG_RD, 0, "VM object stats"); @@ -292,14 +291,6 @@ vm_object_init(void) #if VM_NRESERVLEVEL > 0 kernel_object->flags |= OBJ_COLORED; kernel_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS); -#endif - - rw_init(&kmem_object->lock, "kmem vm object"); - _vm_object_allocate(OBJT_PHYS, atop(VM_MAX_KERNEL_ADDRESS - - VM_MIN_KERNEL_ADDRESS), kmem_object); -#if VM_NRESERVLEVEL > 0 - kmem_object->flags |= OBJ_COLORED; - kmem_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS); #endif /* Modified: head/sys/vm/vm_object.h ============================================================================== --- head/sys/vm/vm_object.h Tue Nov 28 23:18:35 2017 (r326346) +++ head/sys/vm/vm_object.h Tue Nov 28 23:40:54 2017 (r326347) @@ -227,10 +227,10 @@ extern struct object_q vm_object_list; /* list of allo extern struct mtx vm_object_list_mtx; /* lock for object list and count */ extern struct vm_object kernel_object_store; -extern struct vm_object kmem_object_store; +/* kernel and kmem are aliased for backwards KPI compat. */ #define kernel_object (&kernel_object_store) -#define kmem_object (&kmem_object_store) +#define kmem_object (&kernel_object_store) #define VM_OBJECT_ASSERT_LOCKED(object) \ rw_assert(&(object)->lock, RA_LOCKED) From owner-svn-src-head@freebsd.org Wed Nov 29 00:46:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD4BADF4968; Wed, 29 Nov 2017 00:46:37 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AAA148063E; Wed, 29 Nov 2017 00:46:37 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAT0kaAe074000; Wed, 29 Nov 2017 00:46:36 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAT0ka2q073999; Wed, 29 Nov 2017 00:46:36 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201711290046.vAT0ka2q073999@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Wed, 29 Nov 2017 00:46:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326353 - head/contrib/lua X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/contrib/lua X-SVN-Commit-Revision: 326353 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 00:46:38 -0000 Author: imp Date: Wed Nov 29 00:46:36 2017 New Revision: 326353 URL: https://svnweb.freebsd.org/changeset/base/326353 Log: Import lua 5.3.4 to contrib Added: head/contrib/lua/ - copied from r326352, vendor/lua/dist/ From owner-svn-src-head@freebsd.org Wed Nov 29 01:26:08 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A486CDF5490; Wed, 29 Nov 2017 01:26:08 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 716FF81874; Wed, 29 Nov 2017 01:26:08 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAT1Q7BX090574; Wed, 29 Nov 2017 01:26:07 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAT1Q77g090573; Wed, 29 Nov 2017 01:26:07 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201711290126.vAT1Q77g090573@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Wed, 29 Nov 2017 01:26:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326354 - head/sys/powerpc/booke X-SVN-Group: head X-SVN-Commit-Author: jhibbits X-SVN-Commit-Paths: head/sys/powerpc/booke X-SVN-Commit-Revision: 326354 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 01:26:08 -0000 Author: jhibbits Date: Wed Nov 29 01:26:07 2017 New Revision: 326354 URL: https://svnweb.freebsd.org/changeset/base/326354 Log: Only check the page tables if within the KVA. Devices aren't mapped within the KVA, and with the way 64-bit hashes the addresses pte_vatopa() may not return a 0 physical address for a device. MFC after: 1 week Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Wed Nov 29 00:46:36 2017 (r326353) +++ head/sys/powerpc/booke/pmap.c Wed Nov 29 01:26:07 2017 (r326354) @@ -2091,10 +2091,11 @@ static vm_paddr_t mmu_booke_kextract(mmu_t mmu, vm_offset_t va) { tlb_entry_t e; - vm_paddr_t p; + vm_paddr_t p = 0; int i; - p = pte_vatopa(mmu, kernel_pmap, va); + if (va >= VM_MIN_KERNEL_ADDRESS && va <= VM_MAX_KERNEL_ADDRESS) + p = pte_vatopa(mmu, kernel_pmap, va); if (p == 0) { /* Check TLB1 mappings */ From owner-svn-src-head@freebsd.org Wed Nov 29 05:07:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C2EFDF86A9; Wed, 29 Nov 2017 05:07:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34E636529B; Wed, 29 Nov 2017 05:07:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAT57snK083666; Wed, 29 Nov 2017 05:07:54 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAT57sNX083665; Wed, 29 Nov 2017 05:07:54 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201711290507.vAT57sNX083665@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Wed, 29 Nov 2017 05:07:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326356 - head/usr.bin/truss X-SVN-Group: head X-SVN-Commit-Author: jhb X-SVN-Commit-Paths: head/usr.bin/truss X-SVN-Commit-Revision: 326356 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 05:07:55 -0000 Author: jhb Date: Wed Nov 29 05:07:54 2017 New Revision: 326356 URL: https://svnweb.freebsd.org/changeset/base/326356 Log: Replace a reference to a license in another file with the license text. The relevant file was recently renamed, so the reference was stale. In addition, explicit licenses are more typical in our sources. Modified: head/usr.bin/truss/syscall.h Modified: head/usr.bin/truss/syscall.h ============================================================================== --- head/usr.bin/truss/syscall.h Wed Nov 29 03:52:10 2017 (r326355) +++ head/usr.bin/truss/syscall.h Wed Nov 29 05:07:54 2017 (r326356) @@ -1,6 +1,39 @@ -/* - * See i386-fbsd.c for copyright and license terms. +/*- + * SPDX-License-Identifier: BSD-4-Clause * + * Copyright 1997 Sean Eric Fagan + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Sean Eric Fagan + * 4. Neither the name of the author may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +/* * System call arguments come in several flavours: * Hex -- values that should be printed in hex (addresses) * Octal -- Same as above, but octal @@ -34,9 +67,6 @@ * In addition, the pointer types (String, Ptr) may have OUT masked in -- * this means that the data is set on *return* from the system call -- or * IN (meaning that the data is passed *into* the system call). - */ -/* - * $FreeBSD$ */ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Stat11, Ioctl, From owner-svn-src-head@freebsd.org Wed Nov 29 06:57:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91F98DFB263; Wed, 29 Nov 2017 06:57:02 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70956689ED; Wed, 29 Nov 2017 06:57:02 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id B0414CFE6; Wed, 29 Nov 2017 06:57:01 +0000 (UTC) Date: Wed, 29 Nov 2017 06:57:01 +0000 From: Alexey Dokuchaev To: Bruce Evans Cc: Edward Tomasz Napierala , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r326314 - in head/sys: ddb kern sys Message-ID: <20171129065701.GB71839@FreeBSD.org> References: <201711281253.vASCrtlB071488@repo.freebsd.org> <20171129030035.W2283@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20171129030035.W2283@besplex.bde.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 06:57:02 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 29, 2017 at 04:04:49AM +1100, Bruce Evans wrote: > On Tue, 28 Nov 2017, Edward Tomasz Napierala wrote: > > Log: > > Make kdb_reenter() silent when explicitly called from db_error(). > > This removes the useless backtrace on various ddb(4) user errors. > > > > Reviewed by: jhb@ > > Obtained from: CheriBSD > > MFC after: 2 weeks > > Sponsored by: DARPA, AFRL > > Differential Revision: https://reviews.freebsd.org/D13212 > > This doesn't fix the spam for user errors that cause a trap, which are > very common (for mistyping memory addresses). ddb sets up trap handlers > using setjmp, and actually does this correctly in many cases, but when > a trap occurs the error handling is: [...] > > I use the following fix of disabling the spam in all cases (unless reenabled > in all cases using ddb): [...] Since someone is hacking on subr_kdb.c, may I ask them to commit attached small patch? I want to do some work in that area, and these style issues bug me. ./danfe --OXfL5xGRrasGEqWY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="subr_kdb.c.diff" Index: kern/subr_kdb.c =================================================================== --- kern/subr_kdb.c (revision 326310) +++ kern/subr_kdb.c (working copy) @@ -224,7 +224,7 @@ return (0); } -void +static void kdb_panic(const char *msg) { @@ -232,7 +232,7 @@ panic("%s", msg); } -void +static void kdb_reboot(void) { @@ -362,7 +362,6 @@ * is selected or the current debugger does not support backtraces, this * function silently returns. */ - void kdb_backtrace(void) { @@ -410,7 +409,6 @@ /* * Set/change the current backend. */ - int kdb_dbbe_select(const char *name) { @@ -450,7 +448,6 @@ /* * Initialize the kernel debugger interface. */ - void kdb_init(void) { @@ -485,7 +482,6 @@ /* * Handle contexts. */ - void * kdb_jmpbuf(jmp_buf new) { @@ -510,9 +506,8 @@ } /* - * Thread related support functions. + * Thread-related support functions. */ - struct pcb * kdb_thr_ctx(struct thread *thr) { @@ -606,7 +601,6 @@ /* * Enter the debugger due to a trap. */ - int kdb_trap(int type, int code, struct trapframe *tf) { --OXfL5xGRrasGEqWY-- From owner-svn-src-head@freebsd.org Wed Nov 29 09:18:25 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFF18DFE615; Wed, 29 Nov 2017 09:18:25 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CC7C6C67D; Wed, 29 Nov 2017 09:18:25 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAT9IOsY087893; Wed, 29 Nov 2017 09:18:24 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAT9IO40087892; Wed, 29 Nov 2017 09:18:24 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201711290918.vAT9IO40087892@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Wed, 29 Nov 2017 09:18:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326361 - head/usr.bin/ipcs X-SVN-Group: head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: head/usr.bin/ipcs X-SVN-Commit-Revision: 326361 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 09:18:25 -0000 Author: delphij Date: Wed Nov 29 09:18:24 2017 New Revision: 326361 URL: https://svnweb.freebsd.org/changeset/base/326361 Log: Remove unused include. MFC after: 2 weeks Modified: head/usr.bin/ipcs/ipc.c Modified: head/usr.bin/ipcs/ipc.c ============================================================================== --- head/usr.bin/ipcs/ipc.c Wed Nov 29 07:41:39 2017 (r326360) +++ head/usr.bin/ipcs/ipc.c Wed Nov 29 09:18:24 2017 (r326361) @@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include "ipc.h" From owner-svn-src-head@freebsd.org Wed Nov 29 09:40:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AC0CDFE9B3; Wed, 29 Nov 2017 09:40:13 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D71246CE80; Wed, 29 Nov 2017 09:40:12 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAT9eCiv096250; Wed, 29 Nov 2017 09:40:12 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAT9eBWV096246; Wed, 29 Nov 2017 09:40:11 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201711290940.vAT9eBWV096246@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Wed, 29 Nov 2017 09:40:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326362 - in head: share/man/man4 sys/net X-SVN-Group: head X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: in head: share/man/man4 sys/net X-SVN-Commit-Revision: 326362 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 09:40:13 -0000 Author: hselasky Date: Wed Nov 29 09:40:11 2017 New Revision: 326362 URL: https://svnweb.freebsd.org/changeset/base/326362 Log: Disallow TUN and TAP character device IOCTLs to modify the network device type to any value. This can cause page faults and panics due to accessing uninitialized fields in the "struct ifnet" which are specific to the network device type. MFC after: 1 week Found by: jau@iki.fi PR: 223767 Sponsored by: Mellanox Technologies Modified: head/share/man/man4/tap.4 head/share/man/man4/tun.4 head/sys/net/if_tap.c head/sys/net/if_tun.c Modified: head/share/man/man4/tap.4 ============================================================================== --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 09:40:11 2017 (r326362) @@ -1,7 +1,7 @@ .\" $FreeBSD$ .\" Based on PR#2411 .\" -.Dd April 10, 2015 +.Dd November 29, 2017 .Dt TAP 4 .Os .Sh NAME @@ -171,7 +171,14 @@ calls are supported .In net/if_tap.h ) : .Bl -tag -width VMIO_SIOCSETMACADDR .It Dv TAPSIFINFO -Set network interface information (line speed, MTU and type). +Set network interface information (line speed and MTU). +The type must be the same as returned by +.Dv TAPGIFINFO +or set to +.Dv IFT_ETHER +else the +.Xr ioctl 2 +call will fail. The argument should be a pointer to a .Va struct tapinfo . .It Dv TAPGIFINFO Modified: head/share/man/man4/tun.4 ============================================================================== --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 09:40:11 2017 (r326362) @@ -2,7 +2,7 @@ .\" $FreeBSD$ .\" Based on PR#2411 .\" -.Dd November 30, 2014 +.Dd November 29, 2017 .Dt TUN 4 .Os .Sh NAME @@ -208,8 +208,15 @@ this stores the internal debugging variable's value in .It Dv TUNSIFINFO The argument should be a pointer to an .Vt struct tuninfo -and allows setting the MTU, the type, and the baudrate of the tunnel +and allows setting the MTU and the baudrate of the tunnel device. +The type must be the same as returned by +.Dv TUNGIFINFO +or set to +.Dv IFT_PPP +else the +.Xr ioctl 2 +call will fail. The .Vt struct tuninfo is declared in Modified: head/sys/net/if_tap.c ============================================================================== --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev *dev, u_long cmd, caddr_t data, i switch (cmd) { case TAPSIFINFO: tapp = (struct tapinfo *)data; + if (ifp->if_type != tapp->type) + return (EPROTOTYPE); mtx_lock(&tp->tap_mtx); ifp->if_mtu = tapp->mtu; - ifp->if_type = tapp->type; ifp->if_baudrate = tapp->baudrate; mtx_unlock(&tp->tap_mtx); break; Modified: head/sys/net/if_tun.c ============================================================================== --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev *dev, u_long cmd, caddr_t data, i if (error) return (error); } + if (TUN2IFP(tp)->if_type != tunp->type) + return (EPROTOTYPE); mtx_lock(&tp->tun_mtx); TUN2IFP(tp)->if_mtu = tunp->mtu; - TUN2IFP(tp)->if_type = tunp->type; TUN2IFP(tp)->if_baudrate = tunp->baudrate; mtx_unlock(&tp->tun_mtx); break; From owner-svn-src-head@freebsd.org Wed Nov 29 09:52:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 363A0DFED09; Wed, 29 Nov 2017 09:52:07 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail107.syd.optusnet.com.au (mail107.syd.optusnet.com.au [211.29.132.53]) by mx1.freebsd.org (Postfix) with ESMTP id EC1906D580; Wed, 29 Nov 2017 09:52:06 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id 932A0D480C9; Wed, 29 Nov 2017 20:52:04 +1100 (AEDT) Date: Wed, 29 Nov 2017 20:52:04 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Alexey Dokuchaev cc: Edward Tomasz Napierala , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r326314 - in head/sys: ddb kern sys In-Reply-To: <20171129065701.GB71839@FreeBSD.org> Message-ID: <20171129200224.A930@besplex.bde.org> References: <201711281253.vASCrtlB071488@repo.freebsd.org> <20171129030035.W2283@besplex.bde.org> <20171129065701.GB71839@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=KeqiiUQD c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=8q-Vw9gMTgeYB0UvPNYA:9 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 09:52:07 -0000 On Wed, 29 Nov 2017, Alexey Dokuchaev wrote: > On Wed, Nov 29, 2017 at 04:04:49AM +1100, Bruce Evans wrote: >> I use the following fix of disabling the spam in all cases (unless reenabled >> in all cases using ddb): [...] > > Since someone is hacking on subr_kdb.c, may I ask them to commit attached > small patch? I want to do some work in that area, and these style issues Mergeing external diffs is actually harder for me since I have too many local changes that aren't quite ready to commit. X Index: kern/subr_kdb.c X =================================================================== X --- kern/subr_kdb.c (revision 326310) X +++ kern/subr_kdb.c (working copy) X @@ -224,7 +224,7 @@ X return (0); X } X X -void X +static void X kdb_panic(const char *msg) X { X X @@ -232,7 +232,7 @@ X panic("%s", msg); X } X X -void X +static void X kdb_reboot(void) X { X These changes are problematic. They don't compile, since the functions are still declared as implicit-extern in . More seriously, if these functions can be static because they are only called from kdb_alternate_break_internal(), then all calls to them are broken since "alternate" "break"s are broken (more broken than their name). They are done from interrupt handlers where it is invalid to call almost any function for the "fast" interrupt handler case (serial console drivers) and invalid to call most functions in the normal interrupt handler case (syscons and vt). Calling kdb_reboot() from an interrupt handler is most invalid. It calls shutdown_nice(), which needs normal thread context. In the usual case where initproc != NULL, shutdown_nice() begins with PROC_LOCK(initproc). This deadlocks if the lock is already held, which is possible iff the interrupt handler is "fast". Normal interrupt handlers might work since ithreads have close enough to normal context. However, they might hold an unrelated spinlock so acquiring a sleep lock might cause a LOR and a warning for this, and should cause a warning even if no LOR. Calling kdb_panic() from an interrupt handler has a chance of working since panic() ignores locking. Races might occur instead. Console input on the device handling the interrupt might be broken during panic. It is required to work in ddb, but this requires delicate locking and special methods while kdb is active and is not done for panics. Panicing from within ddb is similarly broken. "alternate" "break"s also open some minor security holes in syscons keyboard enables. X @@ -362,7 +362,6 @@ X * is selected or the current debugger does not support backtraces, this X * function silently returns. X */ X - X void X kdb_backtrace(void) X { X ... The style fixes are correct. Bruce From owner-svn-src-head@freebsd.org Wed Nov 29 10:04:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70248DFF11C; Wed, 29 Nov 2017 10:04:13 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 306556DB6D; Wed, 29 Nov 2017 10:04:13 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATA4CdQ008369; Wed, 29 Nov 2017 10:04:12 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATA4BBu008365; Wed, 29 Nov 2017 10:04:11 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201711291004.vATA4BBu008365@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Wed, 29 Nov 2017 10:04:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326363 - in head/sys/dev/mlx5: . mlx5_en X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: in head/sys/dev/mlx5: . mlx5_en X-SVN-Commit-Revision: 326363 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 10:04:13 -0000 Author: kib Date: Wed Nov 29 10:04:11 2017 New Revision: 326363 URL: https://svnweb.freebsd.org/changeset/base/326363 Log: Implement hardware mlx5(4) rx timestamps. Driver support is only provided for ConnectX4/5. System-time timestamp is calculated based on the free-running counter timestamp provided by hardware. Driver periodically samples the counter to calibrate it against the system clock and uses linear interpolation to convert. Stability of the crystal which drives the clock is +-50 ppm at the operational temperature, which makes the algorithm good enough. The calculation is somewhat delicate because all values are 64bit and overflow the naive formula for linear interpolation. The calculation drops the least significant bits in advance, see the PREC shift in mlx5_mbuf_tstmp(). Hardware stamps can be turned off by 'ifconfig mceN -hwrxtsmp'. Buggy firmware might result in small but visible errors in the reported timestamps, detectable e.g. by nonsensical (negative) RTT values for LAN pings. Reviewed by: gallatin, hselasky Sponsored by: Mellanox Technologies Differential revision: https://reviews.freebsd.org/D12638 Modified: head/sys/dev/mlx5/device.h head/sys/dev/mlx5/mlx5_en/en.h head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c Modified: head/sys/dev/mlx5/device.h ============================================================================== --- head/sys/dev/mlx5/device.h Wed Nov 29 09:40:11 2017 (r326362) +++ head/sys/dev/mlx5/device.h Wed Nov 29 10:04:11 2017 (r326363) @@ -619,6 +619,8 @@ struct mlx5_cqe64 { u8 op_own; }; +#define MLX5_CQE_TSTMP_PTP (1ULL << 63) + static inline bool get_cqe_lro_timestamp_valid(struct mlx5_cqe64 *cqe) { return (cqe->lro_tcppsh_abort_dupack >> 7) & 1; Modified: head/sys/dev/mlx5/mlx5_en/en.h ============================================================================== --- head/sys/dev/mlx5/mlx5_en/en.h Wed Nov 29 09:40:11 2017 (r326362) +++ head/sys/dev/mlx5/mlx5_en/en.h Wed Nov 29 10:04:11 2017 (r326363) @@ -650,6 +650,16 @@ struct mlx5e_flow_tables { struct mlx5e_flow_table inner_rss; }; +#define MLX5E_TSTMP_PREC 10 + +struct mlx5e_clbr_point { + uint64_t base_curr; + uint64_t base_prev; + uint64_t clbr_hw_prev; + uint64_t clbr_hw_curr; + u_int clbr_gen; +}; + struct mlx5e_priv { /* priv data path fields - start */ int order_base_2_num_channels; @@ -704,6 +714,12 @@ struct mlx5e_priv { int media_active_last; struct callout watchdog; + + struct callout tstmp_clbr; + int clbr_done; + int clbr_curr; + struct mlx5e_clbr_point clbr_points[2]; + u_int clbr_gen; }; #define MLX5E_NET_IP_ALIGN 2 Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c ============================================================================== --- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Nov 29 09:40:11 2017 (r326362) +++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Nov 29 10:04:11 2017 (r326363) @@ -154,6 +154,8 @@ static const struct { MALLOC_DEFINE(M_MLX5EN, "MLX5EN", "MLX5 Ethernet"); +static SYSCTL_NODE(_hw, OID_AUTO, mlx5, CTLFLAG_RW, 0, "MLX5 driver parameters"); + static void mlx5e_update_carrier(struct mlx5e_priv *priv) { @@ -637,6 +639,109 @@ mlx5e_disable_async_events(struct mlx5e_priv *priv) mtx_unlock(&priv->async_events_mtx); } +static void mlx5e_calibration_callout(void *arg); +static int mlx5e_calibration_duration = 20; +static int mlx5e_fast_calibration = 1; +static int mlx5e_normal_calibration = 30; + +static SYSCTL_NODE(_hw_mlx5, OID_AUTO, calibr, CTLFLAG_RW, 0, + "MLX5 timestamp calibration parameteres"); + +SYSCTL_INT(_hw_mlx5_calibr, OID_AUTO, duration, CTLFLAG_RWTUN, + &mlx5e_calibration_duration, 0, + "Duration of initial calibration"); +SYSCTL_INT(_hw_mlx5_calibr, OID_AUTO, fast, CTLFLAG_RWTUN, + &mlx5e_fast_calibration, 0, + "Recalibration interval during initial calibration"); +SYSCTL_INT(_hw_mlx5_calibr, OID_AUTO, normal, CTLFLAG_RWTUN, + &mlx5e_normal_calibration, 0, + "Recalibration interval during normal operations"); + +/* + * Ignites the calibration process. + */ +static void +mlx5e_reset_calibration_callout(struct mlx5e_priv *priv) +{ + + if (priv->clbr_done == 0) + mlx5e_calibration_callout(priv); + else + callout_reset_curcpu(&priv->tstmp_clbr, (priv->clbr_done < + mlx5e_calibration_duration ? mlx5e_fast_calibration : + mlx5e_normal_calibration) * hz, mlx5e_calibration_callout, + priv); +} + +static uint64_t +mlx5e_timespec2usec(const struct timespec *ts) +{ + + return ((uint64_t)ts->tv_sec * 1000000000 + ts->tv_nsec); +} + +static uint64_t +mlx5e_hw_clock(struct mlx5e_priv *priv) +{ + struct mlx5_init_seg *iseg; + uint32_t hw_h, hw_h1, hw_l; + + iseg = priv->mdev->iseg; + do { + hw_h = ioread32be(&iseg->internal_timer_h); + hw_l = ioread32be(&iseg->internal_timer_l); + hw_h1 = ioread32be(&iseg->internal_timer_h); + } while (hw_h1 != hw_h); + return (((uint64_t)hw_h << 32) | hw_l); +} + +/* + * The calibration callout, it runs either in the context of the + * thread which enables calibration, or in callout. It takes the + * snapshot of system and adapter clocks, then advances the pointers to + * the calibration point to allow rx path to read the consistent data + * lockless. + */ +static void +mlx5e_calibration_callout(void *arg) +{ + struct mlx5e_priv *priv; + struct mlx5e_clbr_point *next, *curr; + struct timespec ts; + int clbr_curr_next; + + priv = arg; + curr = &priv->clbr_points[priv->clbr_curr]; + clbr_curr_next = priv->clbr_curr + 1; + if (clbr_curr_next >= nitems(priv->clbr_points)) + clbr_curr_next = 0; + next = &priv->clbr_points[clbr_curr_next]; + + next->base_prev = curr->base_curr; + next->clbr_hw_prev = curr->clbr_hw_curr; + + next->clbr_hw_curr = mlx5e_hw_clock(priv); + if (((next->clbr_hw_curr - curr->clbr_hw_prev) >> MLX5E_TSTMP_PREC) == + 0) { + if_printf(priv->ifp, "HW failed tstmp frozen %#jx %#jx," + "disabling\n", next->clbr_hw_curr, curr->clbr_hw_prev); + priv->clbr_done = 0; + return; + } + + nanouptime(&ts); + next->base_curr = mlx5e_timespec2usec(&ts); + + curr->clbr_gen = 0; + atomic_thread_fence_rel(); + priv->clbr_curr = clbr_curr_next; + atomic_store_rel_int(&next->clbr_gen, ++(priv->clbr_gen)); + + if (priv->clbr_done < mlx5e_calibration_duration) + priv->clbr_done++; + mlx5e_reset_calibration_callout(priv); +} + static const char *mlx5e_rq_stats_desc[] = { MLX5E_RQ_STATS(MLX5E_STATS_DESC) }; @@ -2693,6 +2798,16 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t mlx5e_open_locked(ifp); } } + if (mask & IFCAP_HWRXTSTMP) { + ifp->if_capenable ^= IFCAP_HWRXTSTMP; + if (ifp->if_capenable & IFCAP_HWRXTSTMP) { + if (priv->clbr_done == 0) + mlx5e_reset_calibration_callout(priv); + } else { + callout_drain(&priv->tstmp_clbr); + priv->clbr_done = 0; + } + } out: PRIV_UNLOCK(priv); break; @@ -3198,7 +3313,7 @@ mlx5e_create_ifp(struct mlx5_core_dev *mdev) ifp->if_capabilities |= IFCAP_LINKSTATE | IFCAP_JUMBO_MTU; ifp->if_capabilities |= IFCAP_LRO; ifp->if_capabilities |= IFCAP_TSO | IFCAP_VLAN_HWTSO; - ifp->if_capabilities |= IFCAP_HWSTATS; + ifp->if_capabilities |= IFCAP_HWSTATS | IFCAP_HWRXTSTMP; /* set TSO limits so that we don't have to drop TX packets */ ifp->if_hw_tsomax = MLX5E_MAX_TX_PAYLOAD_SIZE - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); @@ -3347,6 +3462,13 @@ mlx5e_create_ifp(struct mlx5_core_dev *mdev) mlx5e_update_stats(priv); mtx_unlock(&priv->async_events_mtx); + SYSCTL_ADD_INT(&priv->sysctl_ctx, SYSCTL_CHILDREN(priv->sysctl_ifnet), + OID_AUTO, "rx_clbr_done", CTLFLAG_RD, + &priv->clbr_done, 0, + "RX timestamps calibration state"); + callout_init(&priv->tstmp_clbr, CALLOUT_DIRECT); + mlx5e_reset_calibration_callout(priv); + return (priv); err_dealloc_transport_domain: @@ -3390,6 +3512,8 @@ mlx5e_destroy_ifp(struct mlx5_core_dev *mdev, void *vp /* stop watchdog timer */ callout_drain(&priv->watchdog); + + callout_drain(&priv->tstmp_clbr); if (priv->vlan_attach != NULL) EVENTHANDLER_DEREGISTER(vlan_config, priv->vlan_attach); Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c ============================================================================== --- head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c Wed Nov 29 09:40:11 2017 (r326362) +++ head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c Wed Nov 29 10:04:11 2017 (r326363) @@ -179,13 +179,43 @@ mlx5e_lro_update_hdr(struct mbuf *mb, struct mlx5_cqe6 /* TODO: handle tcp checksum */ } +static uint64_t +mlx5e_mbuf_tstmp(struct mlx5e_priv *priv, uint64_t hw_tstmp) +{ + struct mlx5e_clbr_point *cp; + uint64_t a1, a2, res; + u_int gen; + + do { + cp = &priv->clbr_points[priv->clbr_curr]; + gen = atomic_load_acq_int(&cp->clbr_gen); + a1 = (hw_tstmp - cp->clbr_hw_prev) >> MLX5E_TSTMP_PREC; + a2 = (cp->base_curr - cp->base_prev) >> MLX5E_TSTMP_PREC; + res = (a1 * a2) << MLX5E_TSTMP_PREC; + + /* + * Divisor cannot be zero because calibration callback + * checks for the condition and disables timestamping + * if clock halted. + */ + res /= (cp->clbr_hw_curr - cp->clbr_hw_prev) >> + MLX5E_TSTMP_PREC; + + res += cp->base_prev; + atomic_thread_fence_acq(); + } while (gen == 0 || gen != cp->clbr_gen); + return (res); +} + static inline void mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq, struct mbuf *mb, u32 cqe_bcnt) { struct ifnet *ifp = rq->ifp; + struct mlx5e_channel *c; int lro_num_seg; /* HW LRO session aggregated packets counter */ + uint64_t tstmp; lro_num_seg = be32_to_cpu(cqe->srqn) >> 24; if (lro_num_seg > 1) { @@ -249,6 +279,21 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, if (cqe_has_vlan(cqe)) { mb->m_pkthdr.ether_vtag = be16_to_cpu(cqe->vlan_info); mb->m_flags |= M_VLANTAG; + } + + c = container_of(rq, struct mlx5e_channel, rq); + if (c->priv->clbr_done >= 2) { + tstmp = mlx5e_mbuf_tstmp(c->priv, be64_to_cpu(cqe->timestamp)); + if ((tstmp & MLX5_CQE_TSTMP_PTP) != 0) { + /* + * Timestamp was taken on the packet entrance, + * instead of the cqe generation. + */ + tstmp &= ~MLX5_CQE_TSTMP_PTP; + mb->m_flags |= M_TSTMP_HPREC; + } + mb->m_pkthdr.rcv_tstmp = tstmp; + mb->m_flags |= M_TSTMP; } } From owner-svn-src-head@freebsd.org Wed Nov 29 10:06:04 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F924DFF19B; Wed, 29 Nov 2017 10:06:04 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FBDD6DCFC; Wed, 29 Nov 2017 10:06:04 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 4E217EF02; Wed, 29 Nov 2017 10:06:03 +0000 (UTC) Date: Wed, 29 Nov 2017 10:06:03 +0000 From: Alexey Dokuchaev To: Bruce Evans Cc: Edward Tomasz Napierala , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r326314 - in head/sys: ddb kern sys Message-ID: <20171129100603.GA30636@FreeBSD.org> References: <201711281253.vASCrtlB071488@repo.freebsd.org> <20171129030035.W2283@besplex.bde.org> <20171129065701.GB71839@FreeBSD.org> <20171129200224.A930@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171129200224.A930@besplex.bde.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 10:06:04 -0000 On Wed, Nov 29, 2017 at 08:52:04PM +1100, Bruce Evans wrote: > On Wed, 29 Nov 2017, Alexey Dokuchaev wrote: > ... > X Index: kern/subr_kdb.c > X =================================================================== > X --- kern/subr_kdb.c (revision 326310) > X +++ kern/subr_kdb.c (working copy) > X @@ -224,7 +224,7 @@ > X return (0); > X } > X > X -void > X +static void > X kdb_panic(const char *msg) > X { > X > X @@ -232,7 +232,7 @@ > X panic("%s", msg); > X } > X > X -void > X +static void > X kdb_reboot(void) > X { > > These changes are problematic. They don't compile, since the functions > are still declared as implicit-extern in . More seriously, > if these functions can be static because they are only called from > kdb_alternate_break_internal(), then all calls to them are broken since > "alternate" "break"s are broken (more broken than their name). They > are done from interrupt handlers where it is invalid to call almost any > function for the "fast" interrupt handler case (serial console drivers) > and invalid to call most functions in the normal interrupt handler case > (syscons and vt). [...] Yes, I was already told that they are part of public KPI and thus cannot be easily removed. This issue is to be discussed separately. > The style fixes are correct. Thanks; I've already got approval from bapt@ for those and intend to commit them shortly. ./danfe From owner-svn-src-head@freebsd.org Wed Nov 29 10:51:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38444DFFD2F; Wed, 29 Nov 2017 10:51:46 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD3A66F278; Wed, 29 Nov 2017 10:51:45 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M9fLX-1ePGsb2GCN-00D2OM; Wed, 29 Nov 2017 11:51:42 +0100 Date: Wed, 29 Nov 2017 11:51:31 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net Message-ID: <20171129115125.24dd4aa0@hermann> In-Reply-To: <201711290940.vAT9eBWV096246@repo.freebsd.org> References: <201711290940.vAT9eBWV096246@repo.freebsd.org> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:c+F/nrtVeltbTZqygBgk0z25WE2MOBv4Z7foiwbEaTS1alUlLoh W+I17Vzenz+q/CXcf+12u4wIw4MS4RpVRHfez99PTdMdWy1rg9Be//kErkEcAx3CQG1HgXf /rF+V0t1CuM7ppKiOfVrie5G5L7rdG+i7++DwaPj2ttTOsDwUuaVDiIqlNlMXVctYNado7n IdfmBmttAFn8mKCjWm3Jg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JxYsDd82wmE=:BDEQAWDYQKgMGHb+RNTBox S11UUJePIy1iAJXUr5L371pe7xMaVKzadwjgKmglKLDcfBAuz9Utm+Q1il0q8sR7dWRJbUb1S cLLRr+cdRQa4xib9mNh7EIFHJrC0lQM3e2dMjEFAdnfyADf2rDh4trsq/A4eSmemJq5u200JP 1U5S9I51lVZX77cL5rfPbWBCkzl7W0rju8imqDevTc/TclRojjfwc7MTsQs4Yglh3M2I3Hh/s 3/cQnXjeTY0K/Bms41BN2tEO6B9xfmtRlMXEVMp9iUWVTNZNYWGa59X7NO++DSxIOs5/LLcUN mXJDLqvtktZ152UA3QTIQLZBUkgD0bI5I34tlAEq5dn1tLQDtt1pD3435ZwpsXPjKO+Nv5A5Q NDXTneswjkqwhazUB3m5s7CUoR3lnZuBsgWPHQIqDzsDo+HSJvNUBq03LD0o8iq824vobQwp0 sznLgFW1P72/uZfETS/LuRHNkLYptJkMTk6pHw+a4wHMcSvgzSonMkTt4V3m/SuwkMmNmiKNh RPcDwevL29PW+tLa5M794/84Anw7WWH1xd9AiJt09pxTJzPCHbbTUEjus4JiEAqelPnn9KnOJ f+bB5CU2gaxPHsMqA1TFcWpTcbbfMj8rUzqNUlvMsfMzh8Wp2YYpweSN+yQoBponLFqKdALlZ 2lcBHv3ChaW9ioX1oyfxqThEjw+l/psAbD53qnmHHnoBWXJzU8rV3uaaNKf0XFSJkvi0lq4nG GjiC3HBKp+J0daxGf+ohmFSesGw6jonjWH/BEZJpB1OEL2uwizzqfV+y1XIlJuKeX+zYYJIaU 0ld2vKqEGsBkSmoml5K4g/x3Vm4iqHrrRjewI/r/HvrF0CtX7Y= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 10:51:46 -0000 On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Nov 29 09:40:11 2017 > New Revision: 326362 > URL: https://svnweb.freebsd.org/changeset/base/326362 > > Log: > Disallow TUN and TAP character device IOCTLs to modify the network > device type to any value. This can cause page faults and panics due > to accessing uninitialized fields in the "struct ifnet" which are > specific to the network device type. > > MFC after: 1 week > Found by: jau@iki.fi > PR: 223767 > Sponsored by: Mellanox Technologies > > Modified: > head/share/man/man4/tap.4 > head/share/man/man4/tun.4 > head/sys/net/if_tap.c > head/sys/net/if_tun.c > > Modified: head/share/man/man4/tap.4 > ============================================================================== > --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 > (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 09:40:11 > 2017 (r326362) @@ -1,7 +1,7 @@ > .\" $FreeBSD$ > .\" Based on PR#2411 > .\" > -.Dd April 10, 2015 > +.Dd November 29, 2017 > .Dt TAP 4 > .Os > .Sh NAME > @@ -171,7 +171,14 @@ calls are supported > .In net/if_tap.h ) : > .Bl -tag -width VMIO_SIOCSETMACADDR > .It Dv TAPSIFINFO > -Set network interface information (line speed, MTU and type). > +Set network interface information (line speed and MTU). > +The type must be the same as returned by > +.Dv TAPGIFINFO > +or set to > +.Dv IFT_ETHER > +else the > +.Xr ioctl 2 > +call will fail. > The argument should be a pointer to a > .Va struct tapinfo . > .It Dv TAPGIFINFO > > Modified: head/share/man/man4/tun.4 > ============================================================================== > --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 > (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 09:40:11 > 2017 (r326362) @@ -2,7 +2,7 @@ > .\" $FreeBSD$ > .\" Based on PR#2411 > .\" > -.Dd November 30, 2014 > +.Dd November 29, 2017 > .Dt TUN 4 > .Os > .Sh NAME > @@ -208,8 +208,15 @@ this stores the internal debugging variable's > value in .It Dv TUNSIFINFO > The argument should be a pointer to an > .Vt struct tuninfo > -and allows setting the MTU, the type, and the baudrate of the tunnel > +and allows setting the MTU and the baudrate of the tunnel > device. > +The type must be the same as returned by > +.Dv TUNGIFINFO > +or set to > +.Dv IFT_PPP > +else the > +.Xr ioctl 2 > +call will fail. > The > .Vt struct tuninfo > is declared in > > Modified: head/sys/net/if_tap.c > ============================================================================== > --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 > (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 > 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev *dev, > u_long cmd, caddr_t data, i switch (cmd) { > case TAPSIFINFO: > tapp = (struct tapinfo *)data; > + if (ifp->if_type != tapp->type) > + return (EPROTOTYPE); > mtx_lock(&tp->tap_mtx); > ifp->if_mtu = tapp->mtu; > - ifp->if_type = tapp->type; > ifp->if_baudrate = tapp->baudrate; > mtx_unlock(&tp->tap_mtx); > break; > > Modified: head/sys/net/if_tun.c > ============================================================================== > --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 > (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 > 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev *dev, > u_long cmd, caddr_t data, i if (error) > return (error); > } > + if (TUN2IFP(tp)->if_type != tunp->type) > + return (EPROTOTYPE); > mtx_lock(&tp->tun_mtx); > TUN2IFP(tp)->if_mtu = tunp->mtu; > - TUN2IFP(tp)->if_type = tunp->type; > TUN2IFP(tp)->if_baudrate = tunp->baudrate; > mtx_unlock(&tp->tun_mtx); > break; > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" after updating from r325893 to r326362, FreeBSD CURRENT crashes while booting the kernel. I'm sorry having no further informations, it happens on a laptop with reduced space. At the moment, it seems that a lot of boxes running most recent CURRENT tend to crash spontanously. In a more severe case, after upgrading to r326347, the kernel doesn't boot further - i gets stuck after printing attached USB devices and then remains frozen forver. USB keyboard works. I tried to boot the old kernel, but its the same bahaviour. The last few changes within the vm system tend to crash FreeBSD also while installing world. If someone, like me, is sometimes sloppy and lazy and doing installkernel installworld from multiuser, which worked for a long time and is, I know, not recommended, will be highly the victim of a crash while installing! I do not know wether this is worth a warning (again, within the summertime of this year we had a similkar saituation). oh From owner-svn-src-head@freebsd.org Wed Nov 29 11:40:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EAEC8E4FBD1; Wed, 29 Nov 2017 11:40:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3EC970737; Wed, 29 Nov 2017 11:40:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.avinity.tv (unknown [77.95.97.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D625037046; Wed, 29 Nov 2017 12:40:48 +0100 (CET) From: Dimitry Andric Message-Id: <744C69EF-C0A5-46DC-9D65-EEE78BD32BAF@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_86AB4C81-AB14-4E44-8570-8930BCECEE51"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r326343 - head/etc/rc.d Date: Wed, 29 Nov 2017 12:40:47 +0100 In-Reply-To: <201711282044.vASKiAJw072662@repo.freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org To: Alan Somers References: <201711282044.vASKiAJw072662@repo.freebsd.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 11:40:58 -0000 --Apple-Mail=_86AB4C81-AB14-4E44-8570-8930BCECEE51 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 28 Nov 2017, at 21:44, Alan Somers wrote: > > Author: asomers > Date: Tue Nov 28 20:44:10 2017 > New Revision: 326343 > URL: https://svnweb.freebsd.org/changeset/base/326343 > > Log: > Fix fetching ntp leapfile after 325256 > > Submitted by: Ronald Klop > Reviewed by: asomers Reviewed by yourself? :) -Dimitry --Apple-Mail=_86AB4C81-AB14-4E44-8570-8930BCECEE51 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWh6cvwAKCRCwXqMKLiCW oyJHAJwLapz/5fUqGFpT/rO2GAFfA40ACACggscNIP7AMj9Oo/LCkNK8kucnVUs= =YUbY -----END PGP SIGNATURE----- --Apple-Mail=_86AB4C81-AB14-4E44-8570-8930BCECEE51-- From owner-svn-src-head@freebsd.org Wed Nov 29 11:52:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB7B6E51118; Wed, 29 Nov 2017 11:52:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84F8F70E09; Wed, 29 Nov 2017 11:52:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9206D260072; Wed, 29 Nov 2017 12:52:03 +0100 (CET) Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net To: "Hartmann, O." Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711290940.vAT9eBWV096246@repo.freebsd.org> <20171129115125.24dd4aa0@hermann> From: Hans Petter Selasky Message-ID: Date: Wed, 29 Nov 2017 12:49:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171129115125.24dd4aa0@hermann> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 11:52:08 -0000 On 11/29/17 11:51, Hartmann, O. wrote: > On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) > Hans Petter Selasky wrote: > >> Author: hselasky >> Date: Wed Nov 29 09:40:11 2017 >> New Revision: 326362 >> URL: https://svnweb.freebsd.org/changeset/base/326362 >> >> Log: >> Disallow TUN and TAP character device IOCTLs to modify the network >> device type to any value. This can cause page faults and panics due >> to accessing uninitialized fields in the "struct ifnet" which are >> specific to the network device type. >> >> MFC after: 1 week >> Found by: jau@iki.fi >> PR: 223767 >> Sponsored by: Mellanox Technologies >> >> Modified: >> head/share/man/man4/tap.4 >> head/share/man/man4/tun.4 >> head/sys/net/if_tap.c >> head/sys/net/if_tun.c >> >> Modified: head/share/man/man4/tap.4 >> ============================================================================== >> --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 >> (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 09:40:11 >> 2017 (r326362) @@ -1,7 +1,7 @@ >> .\" $FreeBSD$ >> .\" Based on PR#2411 >> .\" >> -.Dd April 10, 2015 >> +.Dd November 29, 2017 >> .Dt TAP 4 >> .Os >> .Sh NAME >> @@ -171,7 +171,14 @@ calls are supported >> .In net/if_tap.h ) : >> .Bl -tag -width VMIO_SIOCSETMACADDR >> .It Dv TAPSIFINFO >> -Set network interface information (line speed, MTU and type). >> +Set network interface information (line speed and MTU). >> +The type must be the same as returned by >> +.Dv TAPGIFINFO >> +or set to >> +.Dv IFT_ETHER >> +else the >> +.Xr ioctl 2 >> +call will fail. >> The argument should be a pointer to a >> .Va struct tapinfo . >> .It Dv TAPGIFINFO >> >> Modified: head/share/man/man4/tun.4 >> ============================================================================== >> --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 >> (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 09:40:11 >> 2017 (r326362) @@ -2,7 +2,7 @@ >> .\" $FreeBSD$ >> .\" Based on PR#2411 >> .\" >> -.Dd November 30, 2014 >> +.Dd November 29, 2017 >> .Dt TUN 4 >> .Os >> .Sh NAME >> @@ -208,8 +208,15 @@ this stores the internal debugging variable's >> value in .It Dv TUNSIFINFO >> The argument should be a pointer to an >> .Vt struct tuninfo >> -and allows setting the MTU, the type, and the baudrate of the tunnel >> +and allows setting the MTU and the baudrate of the tunnel >> device. >> +The type must be the same as returned by >> +.Dv TUNGIFINFO >> +or set to >> +.Dv IFT_PPP >> +else the >> +.Xr ioctl 2 >> +call will fail. >> The >> .Vt struct tuninfo >> is declared in >> >> Modified: head/sys/net/if_tap.c >> ============================================================================== >> --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 >> (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 >> 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev *dev, >> u_long cmd, caddr_t data, i switch (cmd) { >> case TAPSIFINFO: >> tapp = (struct tapinfo *)data; >> + if (ifp->if_type != tapp->type) >> + return (EPROTOTYPE); >> mtx_lock(&tp->tap_mtx); >> ifp->if_mtu = tapp->mtu; >> - ifp->if_type = tapp->type; >> ifp->if_baudrate = tapp->baudrate; >> mtx_unlock(&tp->tap_mtx); >> break; >> >> Modified: head/sys/net/if_tun.c >> ============================================================================== >> --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 >> (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 >> 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev *dev, >> u_long cmd, caddr_t data, i if (error) >> return (error); >> } >> + if (TUN2IFP(tp)->if_type != tunp->type) >> + return (EPROTOTYPE); >> mtx_lock(&tp->tun_mtx); >> TUN2IFP(tp)->if_mtu = tunp->mtu; >> - TUN2IFP(tp)->if_type = tunp->type; >> TUN2IFP(tp)->if_baudrate = tunp->baudrate; >> mtx_unlock(&tp->tun_mtx); >> break; >> _______________________________________________ >> svn-src-head@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/svn-src-head >> To unsubscribe, send any mail to >> "svn-src-head-unsubscribe@freebsd.org" > > after updating from r325893 to r326362, FreeBSD CURRENT crashes while > booting the kernel. I'm sorry having no further informations, it > happens on a laptop with reduced space. > > At the moment, it seems that a lot of boxes running most recent CURRENT > tend to crash spontanously. > Hi, And you built the kernel from scratch and made sure your source tree does not contain any .o files nor /usr/obj/* . --HPS From owner-svn-src-head@freebsd.org Wed Nov 29 12:16:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DA8CE5254E; Wed, 29 Nov 2017 12:16:07 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DDDB71C18; Wed, 29 Nov 2017 12:16:06 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQih7-1ehQnX02gv-00U0pv; Wed, 29 Nov 2017 13:16:02 +0100 Date: Wed, 29 Nov 2017 13:16:00 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: "Hartmann, O." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net Message-ID: <20171129131556.2247c97c@hermann> In-Reply-To: References: <201711290940.vAT9eBWV096246@repo.freebsd.org> <20171129115125.24dd4aa0@hermann> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:spfdgGKBeRO21cG8/Cna9FhHBPkYbMKOWPdMmOZBNbO5cAXBiYB cM36Eu3iP8d0/sxXOe+ktP8dXEmYCWuqH7NUAOUlpjOz11EMLfjQtI7xXqw+DCRBsI47JtV pXaIbK2+d7gU5XMiUvnr9Iub8Bw1qIOMecNV3HRy5bzzDzibx1ZFBhZEsgl5zQvePw6bVwa HiZ9l0i/Dd3ys+N64VftA== X-UI-Out-Filterresults: notjunk:1;V01:K0:WByoBd/3oAc=:TEJ79XdLz/wTD8GCcTlJ4N iR+QXCSJMsbquJdVQcO4z/6HaBLf2eVMD+68LDaQspR5Fc9aRz20VS0QbF0r8rPrytQU0gPWI FRRwheD+g45WeEG8xqk+AXx/J95rMQU7P9NrWvkr5iy1qcFQSuwiinmK2rqVivS+fTm6PDEJH eeDmNOngARxlHIKayeBq+NdMvzmwg0wf+g8t1/umvJTTrg0yynAMkM+oNjk9UkFWfKIQ60Ofu SJDwmh+S4KbEcu70FiAu4zpuFIaTE0YsLgGwUze/9kU7xkOx4r+fa+ijFmWuCKZ7+5AJfzqf6 EZdoXae74P75Tf5xbCVuDcFdREF+2Pngb1WROxRHaxsRBJQepPED0oHlT5+4TdS4AJsI/8Bzn +0rK439vunfpkO+vm+ny2/u5bVQ/7FbjzbHuWHUjdtmwD8L+YZ+7DlCmptAx0wx1j1tHE+g+B 7+yQQv7nvHM7g0LiDioFppqdWRPsKJdSJHgHE6IUdq4aFRAgWtlz3qIdzzPUHH3fYMRKUxgT3 Dw+F3bpYJI0IkxQN2zaL9xHnDsF7FfqCq/c4zpmFVgBoKWO8CVSoOflFjF7o0jWApL2hCCGjU Cu8UOqTA6YOg0vQydjkuzZ83RB4nGYwFIV8YZNLmaahUzUtkgX/sO/zGWUYgpP3zlggN/rPRr HFmIGfrbQk0FgrNcsln6QBv/J5umlu6z8MLwvJEpNnRia2BfpOq8TXBKgBj2WoKExrKO8xC5W CKNC271K5n3jZv6wMl1Xyph8WdQHSLaQVr+z3mjTjBKpQYPrk5haEj1ozw/nSLsNXGrOUIsPE bO8IjvdlDQF+OD1hMnx7tIzg3WVGHEWOUzSKb1/X753+szaeBY= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 12:16:07 -0000 On Wed, 29 Nov 2017 12:49:19 +0100 Hans Petter Selasky wrote: > On 11/29/17 11:51, Hartmann, O. wrote: > > On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) > > Hans Petter Selasky wrote: > > > >> Author: hselasky > >> Date: Wed Nov 29 09:40:11 2017 > >> New Revision: 326362 > >> URL: https://svnweb.freebsd.org/changeset/base/326362 > >> > >> Log: > >> Disallow TUN and TAP character device IOCTLs to modify the > >> network device type to any value. This can cause page faults and > >> panics due to accessing uninitialized fields in the "struct ifnet" > >> which are specific to the network device type. > >> > >> MFC after: 1 week > >> Found by: jau@iki.fi > >> PR: 223767 > >> Sponsored by: Mellanox Technologies > >> > >> Modified: > >> head/share/man/man4/tap.4 > >> head/share/man/man4/tun.4 > >> head/sys/net/if_tap.c > >> head/sys/net/if_tun.c > >> > >> Modified: head/share/man/man4/tap.4 > >> ============================================================================== > >> --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 > >> (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 09:40:11 > >> 2017 (r326362) @@ -1,7 +1,7 @@ > >> .\" $FreeBSD$ > >> .\" Based on PR#2411 > >> .\" > >> -.Dd April 10, 2015 > >> +.Dd November 29, 2017 > >> .Dt TAP 4 > >> .Os > >> .Sh NAME > >> @@ -171,7 +171,14 @@ calls are supported > >> .In net/if_tap.h ) : > >> .Bl -tag -width VMIO_SIOCSETMACADDR > >> .It Dv TAPSIFINFO > >> -Set network interface information (line speed, MTU and type). > >> +Set network interface information (line speed and MTU). > >> +The type must be the same as returned by > >> +.Dv TAPGIFINFO > >> +or set to > >> +.Dv IFT_ETHER > >> +else the > >> +.Xr ioctl 2 > >> +call will fail. > >> The argument should be a pointer to a > >> .Va struct tapinfo . > >> .It Dv TAPGIFINFO > >> > >> Modified: head/share/man/man4/tun.4 > >> ============================================================================== > >> --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 > >> (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 09:40:11 > >> 2017 (r326362) @@ -2,7 +2,7 @@ > >> .\" $FreeBSD$ > >> .\" Based on PR#2411 > >> .\" > >> -.Dd November 30, 2014 > >> +.Dd November 29, 2017 > >> .Dt TUN 4 > >> .Os > >> .Sh NAME > >> @@ -208,8 +208,15 @@ this stores the internal debugging variable's > >> value in .It Dv TUNSIFINFO > >> The argument should be a pointer to an > >> .Vt struct tuninfo > >> -and allows setting the MTU, the type, and the baudrate of the > >> tunnel +and allows setting the MTU and the baudrate of the tunnel > >> device. > >> +The type must be the same as returned by > >> +.Dv TUNGIFINFO > >> +or set to > >> +.Dv IFT_PPP > >> +else the > >> +.Xr ioctl 2 > >> +call will fail. > >> The > >> .Vt struct tuninfo > >> is declared in > >> > >> Modified: head/sys/net/if_tap.c > >> ============================================================================== > >> --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 > >> (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 > >> 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev > >> *dev, u_long cmd, caddr_t data, i switch (cmd) { > >> case TAPSIFINFO: > >> tapp = (struct tapinfo *)data; > >> + if (ifp->if_type != tapp->type) > >> + return (EPROTOTYPE); > >> mtx_lock(&tp->tap_mtx); > >> ifp->if_mtu = tapp->mtu; > >> - ifp->if_type = tapp->type; > >> ifp->if_baudrate = tapp->baudrate; > >> mtx_unlock(&tp->tap_mtx); > >> break; > >> > >> Modified: head/sys/net/if_tun.c > >> ============================================================================== > >> --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 > >> (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 > >> 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev > >> *dev, u_long cmd, caddr_t data, i if (error) > >> return (error); > >> } > >> + if (TUN2IFP(tp)->if_type != tunp->type) > >> + return (EPROTOTYPE); > >> mtx_lock(&tp->tun_mtx); > >> TUN2IFP(tp)->if_mtu = tunp->mtu; > >> - TUN2IFP(tp)->if_type = tunp->type; > >> TUN2IFP(tp)->if_baudrate = tunp->baudrate; > >> mtx_unlock(&tp->tun_mtx); > >> break; > >> _______________________________________________ > >> svn-src-head@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/svn-src-head > >> To unsubscribe, send any mail to > >> "svn-src-head-unsubscribe@freebsd.org" > > > > after updating from r325893 to r326362, FreeBSD CURRENT crashes > > while booting the kernel. I'm sorry having no further informations, > > it happens on a laptop with reduced space. > > > > At the moment, it seems that a lot of boxes running most recent > > CURRENT tend to crash spontanously. > > > > Hi, > > And you built the kernel from scratch and made sure your source tree > does not contain any .o files nor /usr/obj/* . > > --HPS Last time I did the make cleandir was when the OFED driver problem occured, that was some days ago. Useually, I build world and kernel with WITH_META_MODE set. Sinverely oh From owner-svn-src-head@freebsd.org Wed Nov 29 12:19:17 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD5B7E52612; Wed, 29 Nov 2017 12:19:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 81AC971DAD; Wed, 29 Nov 2017 12:19:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D59A7260072; Wed, 29 Nov 2017 13:19:12 +0100 (CET) Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net To: "Hartmann, O." Cc: "Hartmann, O." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org References: <201711290940.vAT9eBWV096246@repo.freebsd.org> <20171129115125.24dd4aa0@hermann> <20171129131556.2247c97c@hermann> From: Hans Petter Selasky Message-ID: Date: Wed, 29 Nov 2017 13:16:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171129131556.2247c97c@hermann> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 12:19:17 -0000 On 11/29/17 13:16, Hartmann, O. wrote: > On Wed, 29 Nov 2017 12:49:19 +0100 > Hans Petter Selasky wrote: > >> On 11/29/17 11:51, Hartmann, O. wrote: >>> On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) >>> Hans Petter Selasky wrote: >>> >>>> Author: hselasky >>>> Date: Wed Nov 29 09:40:11 2017 >>>> New Revision: 326362 >>>> URL: https://svnweb.freebsd.org/changeset/base/326362 >>>> >>>> Log: >>>> Disallow TUN and TAP character device IOCTLs to modify the >>>> network device type to any value. This can cause page faults and >>>> panics due to accessing uninitialized fields in the "struct ifnet" >>>> which are specific to the network device type. >>>> >>>> MFC after: 1 week >>>> Found by: jau@iki.fi >>>> PR: 223767 >>>> Sponsored by: Mellanox Technologies >>>> >>>> Modified: >>>> head/share/man/man4/tap.4 >>>> head/share/man/man4/tun.4 >>>> head/sys/net/if_tap.c >>>> head/sys/net/if_tun.c >>>> >>>> Modified: head/share/man/man4/tap.4 >>>> ============================================================================== >>>> --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 >>>> (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 09:40:11 >>>> 2017 (r326362) @@ -1,7 +1,7 @@ >>>> .\" $FreeBSD$ >>>> .\" Based on PR#2411 >>>> .\" >>>> -.Dd April 10, 2015 >>>> +.Dd November 29, 2017 >>>> .Dt TAP 4 >>>> .Os >>>> .Sh NAME >>>> @@ -171,7 +171,14 @@ calls are supported >>>> .In net/if_tap.h ) : >>>> .Bl -tag -width VMIO_SIOCSETMACADDR >>>> .It Dv TAPSIFINFO >>>> -Set network interface information (line speed, MTU and type). >>>> +Set network interface information (line speed and MTU). >>>> +The type must be the same as returned by >>>> +.Dv TAPGIFINFO >>>> +or set to >>>> +.Dv IFT_ETHER >>>> +else the >>>> +.Xr ioctl 2 >>>> +call will fail. >>>> The argument should be a pointer to a >>>> .Va struct tapinfo . >>>> .It Dv TAPGIFINFO >>>> >>>> Modified: head/share/man/man4/tun.4 >>>> ============================================================================== >>>> --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 >>>> (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 09:40:11 >>>> 2017 (r326362) @@ -2,7 +2,7 @@ >>>> .\" $FreeBSD$ >>>> .\" Based on PR#2411 >>>> .\" >>>> -.Dd November 30, 2014 >>>> +.Dd November 29, 2017 >>>> .Dt TUN 4 >>>> .Os >>>> .Sh NAME >>>> @@ -208,8 +208,15 @@ this stores the internal debugging variable's >>>> value in .It Dv TUNSIFINFO >>>> The argument should be a pointer to an >>>> .Vt struct tuninfo >>>> -and allows setting the MTU, the type, and the baudrate of the >>>> tunnel +and allows setting the MTU and the baudrate of the tunnel >>>> device. >>>> +The type must be the same as returned by >>>> +.Dv TUNGIFINFO >>>> +or set to >>>> +.Dv IFT_PPP >>>> +else the >>>> +.Xr ioctl 2 >>>> +call will fail. >>>> The >>>> .Vt struct tuninfo >>>> is declared in >>>> >>>> Modified: head/sys/net/if_tap.c >>>> ============================================================================== >>>> --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 >>>> (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 >>>> 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev >>>> *dev, u_long cmd, caddr_t data, i switch (cmd) { >>>> case TAPSIFINFO: >>>> tapp = (struct tapinfo *)data; >>>> + if (ifp->if_type != tapp->type) >>>> + return (EPROTOTYPE); >>>> mtx_lock(&tp->tap_mtx); >>>> ifp->if_mtu = tapp->mtu; >>>> - ifp->if_type = tapp->type; >>>> ifp->if_baudrate = tapp->baudrate; >>>> mtx_unlock(&tp->tap_mtx); >>>> break; >>>> >>>> Modified: head/sys/net/if_tun.c >>>> ============================================================================== >>>> --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 >>>> (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 >>>> 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev >>>> *dev, u_long cmd, caddr_t data, i if (error) >>>> return (error); >>>> } >>>> + if (TUN2IFP(tp)->if_type != tunp->type) >>>> + return (EPROTOTYPE); >>>> mtx_lock(&tp->tun_mtx); >>>> TUN2IFP(tp)->if_mtu = tunp->mtu; >>>> - TUN2IFP(tp)->if_type = tunp->type; >>>> TUN2IFP(tp)->if_baudrate = tunp->baudrate; >>>> mtx_unlock(&tp->tun_mtx); >>>> break; >>>> _______________________________________________ >>>> svn-src-head@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/svn-src-head >>>> To unsubscribe, send any mail to >>>> "svn-src-head-unsubscribe@freebsd.org" >>> >>> after updating from r325893 to r326362, FreeBSD CURRENT crashes >>> while booting the kernel. I'm sorry having no further informations, >>> it happens on a laptop with reduced space. >>> >>> At the moment, it seems that a lot of boxes running most recent >>> CURRENT tend to crash spontanously. >>> >> >> Hi, >> >> And you built the kernel from scratch and made sure your source tree >> does not contain any .o files nor /usr/obj/* . >> >> --HPS > > Last time I did the make cleandir was when the OFED driver problem > occured, that was some days ago. Useually, I build world and kernel > with WITH_META_MODE set. > Hi, Try to do a clean build w/o META mode. rm -rf /usr/obj/* And check: find /usr/src -name "*.o" --HPS From owner-svn-src-head@freebsd.org Wed Nov 29 12:42:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2572E531F5; Wed, 29 Nov 2017 12:42:48 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F31B72D05; Wed, 29 Nov 2017 12:42:47 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lxgnf-1fCeOu2zCl-017Dnn; Wed, 29 Nov 2017 13:42:43 +0100 Date: Wed, 29 Nov 2017 13:42:42 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, "Hartmann, O." Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net Message-ID: <20171129134228.4c7bcefe@hermann> In-Reply-To: References: <201711290940.vAT9eBWV096246@repo.freebsd.org> <20171129115125.24dd4aa0@hermann> <20171129131556.2247c97c@hermann> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Z7qP7NNlbwWBRpvoIv3M0oAHOiH56T6hhUqRJt8NEse2dcBy3KG YJgXA+VuQfocvhmQvJh5ZcbnNWAxW7hW4swi9YFESQpbaiJcJl/EYH4FDhThpodQZGFCJ3j JNjElbpnXvJA+eWWYcLFWHDj643pgjpnf3oVbjd8d/rJQsL0pFhWZ7TFI0SYUVnpoA1fmhO 1a6mBtuwCS8VxvHvgdqFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:uuLTo60x+RI=:b4jqrH/cZXjzPsdQHIBle6 e7QCUmMOKT6XPBdF0f3DTlAcf5ZCOX5xPZR4x0hR7IQhxRCIiDPl7L8mkID4ei3PNpcqphXKl 12GlJFKl9iKYbbq4wEaV3fO+L9p15z6h1TSgn+AHf7wnoiWFAZItyoRVyg0qVBMXtLdqdGFD8 wpTXtsOoZKArsLzn2sP25POJW89K9xspXIcxfZubtw6izbE8Pb4KOKOKISwo6gaaKBSFzaDxV mMpB/d+K8e8cgJKvHdTHQ+a8ngrVhoJyWY7MU0qxX+6FzkbRQDxS2LSFDhgI+9dttVZYNyO7r 9XTYCiZuxjJmMm4z6S1Hke8hS1YYvPFe7bE639jsE2v2pyz3Rejk4QARJrH6wyAelJAQIhXsd x5ykGJg+b7OMv8/HZ4iDgNRzv72+9E/fKrKyHRvUGdvZeAGLmN833vJOadb3SiNoteyj5FeEW j3Y+gXJLjEjZO9ubKTiBuwnv51WW0gRvj0nF96kcqu+5Hnks0mNMk+evA13Ez3N0zq/HetL+L HUQDU21o0tdILGPAuq2GhtJYpdSR2FASadqlRZU133yuEnWZhMwPTjFZZMGWL+3/fAxxjSQjR HIAwIYnPBHtKor4Iy4v8hBtfwLyyeQd4VuoBH8WEY2qOrhwNB8gOznXCWw/JLTZBe2PQY1FAX snUEeU1UtqYX3BpnGU/boOxyw/LBjuTi3NvVbbDRcGSuY87rl4/dMbxG/YvFfYFBLd27atTLv J/GIA5NeSweDDE3eHg7ShglrsvkAaNZF0XRg3SM8K5CpNFHpZers67Hw8VZEtgBQR5Zr/sDoq gpW3bkoECCj4Q/iojT1WXIJtRGhqmmKpD3Nli04I6S/HnEuvM8= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 12:42:48 -0000 On Wed, 29 Nov 2017 13:16:28 +0100 Hans Petter Selasky wrote: > On 11/29/17 13:16, Hartmann, O. wrote: > > On Wed, 29 Nov 2017 12:49:19 +0100 > > Hans Petter Selasky wrote: > > > >> On 11/29/17 11:51, Hartmann, O. wrote: > >>> On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) > >>> Hans Petter Selasky wrote: > >>> > >>>> Author: hselasky > >>>> Date: Wed Nov 29 09:40:11 2017 > >>>> New Revision: 326362 > >>>> URL: https://svnweb.freebsd.org/changeset/base/326362 > >>>> > >>>> Log: > >>>> Disallow TUN and TAP character device IOCTLs to modify the > >>>> network device type to any value. This can cause page faults and > >>>> panics due to accessing uninitialized fields in the "struct > >>>> ifnet" which are specific to the network device type. > >>>> > >>>> MFC after: 1 week > >>>> Found by: jau@iki.fi > >>>> PR: 223767 > >>>> Sponsored by: Mellanox Technologies > >>>> > >>>> Modified: > >>>> head/share/man/man4/tap.4 > >>>> head/share/man/man4/tun.4 > >>>> head/sys/net/if_tap.c > >>>> head/sys/net/if_tun.c > >>>> > >>>> Modified: head/share/man/man4/tap.4 > >>>> ============================================================================== > >>>> --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 > >>>> 09:40:11 2017 (r326362) @@ -1,7 +1,7 @@ > >>>> .\" $FreeBSD$ > >>>> .\" Based on PR#2411 > >>>> .\" > >>>> -.Dd April 10, 2015 > >>>> +.Dd November 29, 2017 > >>>> .Dt TAP 4 > >>>> .Os > >>>> .Sh NAME > >>>> @@ -171,7 +171,14 @@ calls are supported > >>>> .In net/if_tap.h ) : > >>>> .Bl -tag -width VMIO_SIOCSETMACADDR > >>>> .It Dv TAPSIFINFO > >>>> -Set network interface information (line speed, MTU and type). > >>>> +Set network interface information (line speed and MTU). > >>>> +The type must be the same as returned by > >>>> +.Dv TAPGIFINFO > >>>> +or set to > >>>> +.Dv IFT_ETHER > >>>> +else the > >>>> +.Xr ioctl 2 > >>>> +call will fail. > >>>> The argument should be a pointer to a > >>>> .Va struct tapinfo . > >>>> .It Dv TAPGIFINFO > >>>> > >>>> Modified: head/share/man/man4/tun.4 > >>>> ============================================================================== > >>>> --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 > >>>> 09:40:11 2017 (r326362) @@ -2,7 +2,7 @@ > >>>> .\" $FreeBSD$ > >>>> .\" Based on PR#2411 > >>>> .\" > >>>> -.Dd November 30, 2014 > >>>> +.Dd November 29, 2017 > >>>> .Dt TUN 4 > >>>> .Os > >>>> .Sh NAME > >>>> @@ -208,8 +208,15 @@ this stores the internal debugging > >>>> variable's value in .It Dv TUNSIFINFO > >>>> The argument should be a pointer to an > >>>> .Vt struct tuninfo > >>>> -and allows setting the MTU, the type, and the baudrate of the > >>>> tunnel +and allows setting the MTU and the baudrate of the tunnel > >>>> device. > >>>> +The type must be the same as returned by > >>>> +.Dv TUNGIFINFO > >>>> +or set to > >>>> +.Dv IFT_PPP > >>>> +else the > >>>> +.Xr ioctl 2 > >>>> +call will fail. > >>>> The > >>>> .Vt struct tuninfo > >>>> is declared in > >>>> > >>>> Modified: head/sys/net/if_tap.c > >>>> ============================================================================== > >>>> --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 > >>>> 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev > >>>> *dev, u_long cmd, caddr_t data, i switch (cmd) { > >>>> case TAPSIFINFO: > >>>> tapp = (struct tapinfo *)data; > >>>> + if (ifp->if_type != tapp->type) > >>>> + return (EPROTOTYPE); > >>>> mtx_lock(&tp->tap_mtx); > >>>> ifp->if_mtu = tapp->mtu; > >>>> - ifp->if_type = tapp->type; > >>>> ifp->if_baudrate = tapp->baudrate; > >>>> mtx_unlock(&tp->tap_mtx); > >>>> break; > >>>> > >>>> Modified: head/sys/net/if_tun.c > >>>> ============================================================================== > >>>> --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 > >>>> 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev > >>>> *dev, u_long cmd, caddr_t data, i if (error) > >>>> return (error); > >>>> } > >>>> + if (TUN2IFP(tp)->if_type != tunp->type) > >>>> + return (EPROTOTYPE); > >>>> mtx_lock(&tp->tun_mtx); > >>>> TUN2IFP(tp)->if_mtu = tunp->mtu; > >>>> - TUN2IFP(tp)->if_type = tunp->type; > >>>> TUN2IFP(tp)->if_baudrate = tunp->baudrate; > >>>> mtx_unlock(&tp->tun_mtx); > >>>> break; > >>>> _______________________________________________ > >>>> svn-src-head@freebsd.org mailing list > >>>> https://lists.freebsd.org/mailman/listinfo/svn-src-head > >>>> To unsubscribe, send any mail to > >>>> "svn-src-head-unsubscribe@freebsd.org" > >>> > >>> after updating from r325893 to r326362, FreeBSD CURRENT crashes > >>> while booting the kernel. I'm sorry having no further > >>> informations, it happens on a laptop with reduced space. > >>> > >>> At the moment, it seems that a lot of boxes running most recent > >>> CURRENT tend to crash spontanously. > >>> > >> > >> Hi, > >> > >> And you built the kernel from scratch and made sure your source > >> tree does not contain any .o files nor /usr/obj/* . > >> > >> --HPS > > > > Last time I did the make cleandir was when the OFED driver problem > > occured, that was some days ago. Useually, I build world and kernel > > with WITH_META_MODE set. > > > > Hi, > > Try to do a clean build w/o META mode. > > rm -rf /usr/obj/* > > And check: > > find /usr/src -name "*.o" > > --HPS I just started a while ago after "make cleanworld" - which seems to kill all subsequent folders in /usr/obj or whatever MAKEOBJDIRPREFIX path is set. I hope this suffice for thew moment, my hardware is not the fastest. Sincerely oh From owner-svn-src-head@freebsd.org Wed Nov 29 12:49:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E049EE533C5; Wed, 29 Nov 2017 12:49:23 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A92A2730B3; Wed, 29 Nov 2017 12:49:23 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATCnM1I075504; Wed, 29 Nov 2017 12:49:22 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATCnMaF075503; Wed, 29 Nov 2017 12:49:22 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201711291249.vATCnMaF075503@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Wed, 29 Nov 2017 12:49:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326364 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326364 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 12:49:24 -0000 Author: danfe (ports committer) Date: Wed Nov 29 12:49:22 2017 New Revision: 326364 URL: https://svnweb.freebsd.org/changeset/base/326364 Log: Fix several noticed style issues. Reviewed by: bde Approved by: bapt Modified: head/sys/kern/subr_kdb.c Modified: head/sys/kern/subr_kdb.c ============================================================================== --- head/sys/kern/subr_kdb.c Wed Nov 29 10:04:11 2017 (r326363) +++ head/sys/kern/subr_kdb.c Wed Nov 29 12:49:22 2017 (r326364) @@ -250,7 +250,6 @@ kdb_reboot(void) * its arguments. Its up to the caller to ensure that the state variable is * consistent. */ - #define KEY_CR 13 /* CR '\r' */ #define KEY_TILDE 126 /* ~ */ #define KEY_CRTLB 2 /* ^B */ @@ -362,7 +361,6 @@ kdb_alt_break_gdb(int key, int *state) * is selected or the current debugger does not support backtraces, this * function silently returns. */ - void kdb_backtrace(void) { @@ -410,7 +408,6 @@ kdb_backtrace_thread(struct thread *td) /* * Set/change the current backend. */ - int kdb_dbbe_select(const char *name) { @@ -450,7 +447,6 @@ kdb_enter(const char *why, const char *msg) /* * Initialize the kernel debugger interface. */ - void kdb_init(void) { @@ -485,7 +481,6 @@ kdb_init(void) /* * Handle contexts. */ - void * kdb_jmpbuf(jmp_buf new) { @@ -521,9 +516,8 @@ kdb_reenter_silent(void) } /* - * Thread related support functions. + * Thread-related support functions. */ - struct pcb * kdb_thr_ctx(struct thread *thr) { @@ -617,7 +611,6 @@ kdb_thr_select(struct thread *thr) /* * Enter the debugger due to a trap. */ - int kdb_trap(int type, int code, struct trapframe *tf) { From owner-svn-src-head@freebsd.org Wed Nov 29 13:14:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F62FE53B3C; Wed, 29 Nov 2017 13:14:10 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C0A573D38; Wed, 29 Nov 2017 13:14:09 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MY75A-1eg3Bf0aem-00Ur4v; Wed, 29 Nov 2017 14:14:07 +0100 Date: Wed, 29 Nov 2017 14:14:05 +0100 From: "Hartmann, O." To: Alexey Dokuchaev Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326364 - head/sys/kern Message-ID: <20171129141343.1d6331f8@hermann> In-Reply-To: <201711291249.vATCnMaF075503@repo.freebsd.org> References: <201711291249.vATCnMaF075503@repo.freebsd.org> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:1esxQ22w6tLZS3651TjybwEm5L6WHNj+Qr+skUcVvg6QfNU8nRT sZB8zNBOE5HZSXtYAfpaXLyXxWlV9JON2aJL7+MKwEBRBiHE+VIxECUcPj74TLG7kyEgPGz BrqzYy6mJC1w8Fj4obrGGGg1zeiVYtxqxFMqNn8nVkten96VhdiPi9FYArGz0Kfyrxn4I8g xG1hxztyBGO5Easym01AQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:xOCHddtohMg=:oUfdYGSCMMMyTFwzrFWb3y QvV9ETLfhvItx3gPyZiBfOqWU4VyFtV/DhKALld1GeWuAc4mZV4U9X7k0l6A+lZZtn4n1b3P3 vWUB8j9yTh86TDdiqi/BcsLI1ZI6R5O/T8VmAcuaLV5ZSleq/u9cXJOvTSED0e+hiYIPPuLh7 Ueagf0g24aut0Wa3W7fQq5dCEV6nhmj4KV/wRjT8WZFzfr21GyYybFGDMX0Vy3Gb0AcVUeEOg 4Qe1i+x4DJ4BrH5Drn3xluz/hQnJS9uhCxwYyUVkzRPIUUvxbMnM0YtcpQHMvR09C4dX/ceb9 oWKMzr2wPOqb93vyQ7W8yYRMZbzcbDw3kNy8Z2SUveNtWIANl26FZnqrbvxUukRwfbDH++nmX nN+YbAXGt9fZsQEXcSuZ5xA2nCdHo5L7vQOLxmz5Yt9jzD7OJwroCP8w4GQor32IDXpre8E43 Ip3v5mwLyvOGm26Fz6ScMqYP9SznRdR/IeRmkI5ym0FFiARNE/L8LsIYfO9qiRy5CZs1GEv+K SvvEK+IsCUK9W39hv1uSJJiSZF8I4mfwxx8p77vewOEfAc3jCQkmcJme/fIOrP2c86VVfrCtM U/t1Gc7cqspIftQRlhVh/D5ceMpIpOreZArfOTgMkYGT+/py5M8g8AyQOnMWQ6NK5ZcMIKniP ca+hcQz/5MZ03LUW3GIOhUkLXnO9guay0WZUtgU8fCFAyZggvskpM0Vvia4SS77rVTazuBmP7 ZAqbIaXz5Qeif15t0hjOYzXKLXtWBaLGvS4PTU6YbNSofyy5htuQiIURwDoyTax/qi3JsxcPx CRYL4wM3xvWjsf00Ens2mI/2HxV8mXhTrVof+eaj6AQXyCXghM= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 13:14:10 -0000 On Wed, 29 Nov 2017 12:49:22 +0000 (UTC) Alexey Dokuchaev wrote: > Author: danfe (ports committer) > Date: Wed Nov 29 12:49:22 2017 > New Revision: 326364 > URL: https://svnweb.freebsd.org/changeset/base/326364 > > Log: > Fix several noticed style issues. > > Reviewed by: bde > Approved by: bapt > > Modified: > head/sys/kern/subr_kdb.c > > Modified: head/sys/kern/subr_kdb.c > ============================================================================== > --- head/sys/kern/subr_kdb.c Wed Nov 29 10:04:11 2017 > (r326363) +++ head/sys/kern/subr_kdb.c Wed Nov 29 12:49:22 > 2017 (r326364) @@ -250,7 +250,6 @@ kdb_reboot(void) > * its arguments. Its up to the caller to ensure that the state > variable is > * consistent. > */ > - > #define KEY_CR 13 /* CR '\r' */ > #define KEY_TILDE 126 /* ~ */ > #define KEY_CRTLB 2 /* ^B */ > @@ -362,7 +361,6 @@ kdb_alt_break_gdb(int key, int *state) > * is selected or the current debugger does not support backtraces, > this > * function silently returns. > */ > - > void > kdb_backtrace(void) > { > @@ -410,7 +408,6 @@ kdb_backtrace_thread(struct thread *td) > /* > * Set/change the current backend. > */ > - > int > kdb_dbbe_select(const char *name) > { > @@ -450,7 +447,6 @@ kdb_enter(const char *why, const char *msg) > /* > * Initialize the kernel debugger interface. > */ > - > void > kdb_init(void) > { > @@ -485,7 +481,6 @@ kdb_init(void) > /* > * Handle contexts. > */ > - > void * > kdb_jmpbuf(jmp_buf new) > { > @@ -521,9 +516,8 @@ kdb_reenter_silent(void) > } > > /* > - * Thread related support functions. > + * Thread-related support functions. > */ > - > struct pcb * > kdb_thr_ctx(struct thread *thr) > { > @@ -617,7 +611,6 @@ kdb_thr_select(struct thread *thr) > /* > * Enter the debugger due to a trap. > */ > - > int > kdb_trap(int type, int code, struct trapframe *tf) > { > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" r326363 produces a panic while performing installworld. This happens even with the recommended procedure in singleuser mode with booted kerenl r326363. While installing manpages, the system went down reporting a "spinlock held too long". As a great result of that, booting the box results in a fancy screen with register dumps from BTX loader and BTX halted. This leaves me now with the second box completely crashed within two days with the same serious bug! Well done. As an emergency recovery I tried to replace /bin, /sbin, /libexec /lib with binaries from another system of the same architecture (Ivybridge XEON), from 27th of November (it is a system compiled around 21 h local German time, I have no access to those systems anymore as I try to explain). In one case this rescue did not work - neither the old nor the new kernel boot, they get stuck. Since all systems do have a "clean from scratch build" of CURRENT world, this infrastructure is not accessible anymore sinde the rediculous reduced images of FreebSD is useless for system recovery via installworld/installkernel since any necessary compiler infrastructure is now erased. What to do? How can I fix this? I need at least one box working again to repair the others. Thanks in advance and thank you very much. oh From owner-svn-src-head@freebsd.org Wed Nov 29 13:26:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65875E53E7E; Wed, 29 Nov 2017 13:26:33 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4594D7432B; Wed, 29 Nov 2017 13:26:33 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 78C5711B17; Wed, 29 Nov 2017 13:26:32 +0000 (UTC) Date: Wed, 29 Nov 2017 13:26:32 +0000 From: Alexey Dokuchaev To: "Hartmann, O." Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326364 - head/sys/kern Message-ID: <20171129132632.GA42677@FreeBSD.org> References: <201711291249.vATCnMaF075503@repo.freebsd.org> <20171129141343.1d6331f8@hermann> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171129141343.1d6331f8@hermann> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 13:26:33 -0000 On Wed, Nov 29, 2017 at 02:14:05PM +0100, Hartmann, O. wrote: > On Wed, 29 Nov 2017 12:49:22 +0000 (UTC) > Alexey Dokuchaev wrote: > > Author: danfe (ports committer) > > Date: Wed Nov 29 12:49:22 2017 > > New Revision: 326364 > > URL: https://svnweb.freebsd.org/changeset/base/326364 > > > > Log: > > Fix several noticed style issues. > > r326363 produces a panic while performing installworld. This happens > even with the recommended procedure in singleuser mode with booted > kerenl r326363. While installing manpages, the system went down > reporting a "spinlock held too long". Oh, I'm sorry to hear that. However, this r326364 does not bring any changes, code-wise. I've only decided to step in since the code was stirred anyway, and I plan to work on it as well (style bugs were just too annoying). ./danfe From owner-svn-src-head@freebsd.org Wed Nov 29 13:26:28 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF1DEE53E6A; Wed, 29 Nov 2017 13:26:28 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D10674321; Wed, 29 Nov 2017 13:26:27 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIMyZ-1eGT551mYR-004CYg; Wed, 29 Nov 2017 14:26:24 +0100 Date: Wed, 29 Nov 2017 14:26:23 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: "Hartmann, O." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r326362 - in head: share/man/man4 sys/net Message-ID: <20171129142619.4525628d@hermann> In-Reply-To: References: <201711290940.vAT9eBWV096246@repo.freebsd.org> <20171129115125.24dd4aa0@hermann> <20171129131556.2247c97c@hermann> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:sDn09nX69Qt8wETp9uPMTojW9PaOyYk+Cjhjcyxbfzi30oiJJiF 1UCZkGh+HsLP8Klie5FCq42zYTNE5hF5vi8uXYb3dhZ8fLXvedJmcwnZ91FXqqEef/Bdy8/ Lt6vovNUuTg+s6dy9dyzgFIv2dMxgqsiT4P3pM0pwa0ObhYROYJDrjtSArWU7It6eYNuJT+ DiLmvd0CD2txc+nuoduvQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:2QKcRT+xp7w=:/qao9y1KCcbrLUaucf9HiH P8fXtaQGuQiLK+9hGhkJ5aTvOBtey9ww5FYjnaEJYndP4Whusen9Q9G69xQml9MFsvDhPfj49 /sHcMNWViU3fjJNlQc3erbwij+jLgdNaJCpe7VZnAq9by9CvBgPbfpux5IC4f14+V0sluSMnn dJFcO8TFJl0nPqmyPBf/qKoresaWwMO26ub5VjHNRhMHlSUtsVo2mhZzkIHI5GylFQC5ycxpn RAT1ILCbfk98oj68HfyJkTwlgQfmvJo3ymMSOEWzS5PAcSdU35DjESR/wc+OC4YWF62uHDm9a NTyfpdEfZXMK9XKqqMdriBFm5P4C1nhX6BK5R+MzKuOD8UmC+nnD5kE6WaNaX+qf8GBMzs6ks wPFQT4fjpViNhvHRM12zqbuNAxJBf2GgDsXsZ+RBmnUISn7c4xy21uaazxhio1oPmAn6EYKKI Om/juE/FCM5TsJMgxDhqwiB3KPo7nSqhtTIfsj66TVq2hJopXvfDM0vLt04eXyIyjPifEIXZ1 SWX5cW3XmTFQMQRT5nsQm/JtLVTHCTLt3Xg+ATB3/XXGkqh/ekZDZxX7YUGW+/1PFupkBEdpo EW8NG+SeBp58LTaZmgMdKjZeydyZFm/+fAa5zsGSuTJrIhb1uB4jGbLJzJ/UY6Xw1zO35Lt8C /SQZWvzcrMzDLgM+5LrpE6MaQwK9ujLJXZifE8vXzApvlqYQLjaHtg6f02YfqoIItoRWN+eWU oBbMDox8XgUCTX8dL3Lt3ji+b6VeGgQnfmeScVB1jSkwiJ1Tpif7Vr1riTqQYii1WqgvQXoEb BD2BXHYqX/FvtnvyxuuIwsJ4gf6DD5Z5X6MCRlH8YtaHaA13DE= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 13:26:29 -0000 On Wed, 29 Nov 2017 13:16:28 +0100 Hans Petter Selasky wrote: > On 11/29/17 13:16, Hartmann, O. wrote: > > On Wed, 29 Nov 2017 12:49:19 +0100 > > Hans Petter Selasky wrote: > > > >> On 11/29/17 11:51, Hartmann, O. wrote: > >>> On Wed, 29 Nov 2017 09:40:11 +0000 (UTC) > >>> Hans Petter Selasky wrote: > >>> > >>>> Author: hselasky > >>>> Date: Wed Nov 29 09:40:11 2017 > >>>> New Revision: 326362 > >>>> URL: https://svnweb.freebsd.org/changeset/base/326362 > >>>> > >>>> Log: > >>>> Disallow TUN and TAP character device IOCTLs to modify the > >>>> network device type to any value. This can cause page faults and > >>>> panics due to accessing uninitialized fields in the "struct > >>>> ifnet" which are specific to the network device type. > >>>> > >>>> MFC after: 1 week > >>>> Found by: jau@iki.fi > >>>> PR: 223767 > >>>> Sponsored by: Mellanox Technologies > >>>> > >>>> Modified: > >>>> head/share/man/man4/tap.4 > >>>> head/share/man/man4/tun.4 > >>>> head/sys/net/if_tap.c > >>>> head/sys/net/if_tun.c > >>>> > >>>> Modified: head/share/man/man4/tap.4 > >>>> ============================================================================== > >>>> --- head/share/man/man4/tap.4 Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/share/man/man4/tap.4 Wed Nov 29 > >>>> 09:40:11 2017 (r326362) @@ -1,7 +1,7 @@ > >>>> .\" $FreeBSD$ > >>>> .\" Based on PR#2411 > >>>> .\" > >>>> -.Dd April 10, 2015 > >>>> +.Dd November 29, 2017 > >>>> .Dt TAP 4 > >>>> .Os > >>>> .Sh NAME > >>>> @@ -171,7 +171,14 @@ calls are supported > >>>> .In net/if_tap.h ) : > >>>> .Bl -tag -width VMIO_SIOCSETMACADDR > >>>> .It Dv TAPSIFINFO > >>>> -Set network interface information (line speed, MTU and type). > >>>> +Set network interface information (line speed and MTU). > >>>> +The type must be the same as returned by > >>>> +.Dv TAPGIFINFO > >>>> +or set to > >>>> +.Dv IFT_ETHER > >>>> +else the > >>>> +.Xr ioctl 2 > >>>> +call will fail. > >>>> The argument should be a pointer to a > >>>> .Va struct tapinfo . > >>>> .It Dv TAPGIFINFO > >>>> > >>>> Modified: head/share/man/man4/tun.4 > >>>> ============================================================================== > >>>> --- head/share/man/man4/tun.4 Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/share/man/man4/tun.4 Wed Nov 29 > >>>> 09:40:11 2017 (r326362) @@ -2,7 +2,7 @@ > >>>> .\" $FreeBSD$ > >>>> .\" Based on PR#2411 > >>>> .\" > >>>> -.Dd November 30, 2014 > >>>> +.Dd November 29, 2017 > >>>> .Dt TUN 4 > >>>> .Os > >>>> .Sh NAME > >>>> @@ -208,8 +208,15 @@ this stores the internal debugging > >>>> variable's value in .It Dv TUNSIFINFO > >>>> The argument should be a pointer to an > >>>> .Vt struct tuninfo > >>>> -and allows setting the MTU, the type, and the baudrate of the > >>>> tunnel +and allows setting the MTU and the baudrate of the tunnel > >>>> device. > >>>> +The type must be the same as returned by > >>>> +.Dv TUNGIFINFO > >>>> +or set to > >>>> +.Dv IFT_PPP > >>>> +else the > >>>> +.Xr ioctl 2 > >>>> +call will fail. > >>>> The > >>>> .Vt struct tuninfo > >>>> is declared in > >>>> > >>>> Modified: head/sys/net/if_tap.c > >>>> ============================================================================== > >>>> --- head/sys/net/if_tap.c Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/sys/net/if_tap.c Wed Nov 29 09:40:11 > >>>> 2017 (r326362) @@ -737,9 +737,10 @@ tapioctl(struct cdev > >>>> *dev, u_long cmd, caddr_t data, i switch (cmd) { > >>>> case TAPSIFINFO: > >>>> tapp = (struct tapinfo *)data; > >>>> + if (ifp->if_type != tapp->type) > >>>> + return (EPROTOTYPE); > >>>> mtx_lock(&tp->tap_mtx); > >>>> ifp->if_mtu = tapp->mtu; > >>>> - ifp->if_type = tapp->type; > >>>> ifp->if_baudrate = tapp->baudrate; > >>>> mtx_unlock(&tp->tap_mtx); > >>>> break; > >>>> > >>>> Modified: head/sys/net/if_tun.c > >>>> ============================================================================== > >>>> --- head/sys/net/if_tun.c Wed Nov 29 09:18:24 2017 > >>>> (r326361) +++ head/sys/net/if_tun.c Wed Nov 29 09:40:11 > >>>> 2017 (r326362) @@ -676,9 +676,10 @@ tunioctl(struct cdev > >>>> *dev, u_long cmd, caddr_t data, i if (error) > >>>> return (error); > >>>> } > >>>> + if (TUN2IFP(tp)->if_type != tunp->type) > >>>> + return (EPROTOTYPE); > >>>> mtx_lock(&tp->tun_mtx); > >>>> TUN2IFP(tp)->if_mtu = tunp->mtu; > >>>> - TUN2IFP(tp)->if_type = tunp->type; > >>>> TUN2IFP(tp)->if_baudrate = tunp->baudrate; > >>>> mtx_unlock(&tp->tun_mtx); > >>>> break; > >>>> _______________________________________________ > >>>> svn-src-head@freebsd.org mailing list > >>>> https://lists.freebsd.org/mailman/listinfo/svn-src-head > >>>> To unsubscribe, send any mail to > >>>> "svn-src-head-unsubscribe@freebsd.org" > >>> > >>> after updating from r325893 to r326362, FreeBSD CURRENT crashes > >>> while booting the kernel. I'm sorry having no further > >>> informations, it happens on a laptop with reduced space. > >>> > >>> At the moment, it seems that a lot of boxes running most recent > >>> CURRENT tend to crash spontanously. > >>> > >> > >> Hi, > >> > >> And you built the kernel from scratch and made sure your source > >> tree does not contain any .o files nor /usr/obj/* . > >> > >> --HPS > > > > Last time I did the make cleandir was when the OFED driver problem > > occured, that was some days ago. Useually, I build world and kernel > > with WITH_META_MODE set. > > > > Hi, > > Try to do a clean build w/o META mode. > > rm -rf /usr/obj/* > > And check: > > find /usr/src -name "*.o" > > --HPS > The last remaining system I had finished building a clean world. The box is now wrecked, too. As the others. After booting the box in single user mode, performing an installkernel and rebooting the r326363 kernel in single user mode and performing installworld, the box quit service via crashing with an obscure message like "spinlock held too long" and died. Now this last remaining server of mine is also out of service - with the very same message two others died yesterday and this morning. The boxes boot and then I get immediately a dump of CPU registeres from BTX and systems quit service with "BTX halted". In one case I tried to "repair" by copy manually binaries to /sbin, /libexec, /lib and /bin via pax -rw -pe to get rid of the problem, but this also ended in a catastrophy - the kernel, whichever, new one or the old, do not boot anymore, they get stuck at a certain point (probably when they load binary images like init, but I have no clue when this happens in the vein of processes). Thank you very much in advance for some tips. oh From owner-svn-src-head@freebsd.org Wed Nov 29 13:46:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC319E5498F; Wed, 29 Nov 2017 13:46:46 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F37C74FF4; Wed, 29 Nov 2017 13:46:45 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3yn1zR1JzqzbT4; Wed, 29 Nov 2017 14:46:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=mail; t=1511963200; x=1513777601; bh=4q7G999BMI0pdr dcrnFa80VRk5ilcIPrcv3oAQ3/Yj8=; b=YXB9cb0MEMptzSqJynBN8zbJZvRNF0 3wcw1uT+lc5Z934g+/e3l5tQcedWSd7e2LNS6btU1tJ7/MHH4vZdmtlt7ofYQ+jV Wa9onX/0UuLJGDhY5YQTiivK/YSTXVmnyZ+iOdtgsliXUCuNgzC/bToNpLW8J+jG czx3E4XXD/140= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id A2EHWK0kPn5O; Wed, 29 Nov 2017 14:46:40 +0100 (CET) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.madpilot.net (Postfix) with ESMTPSA; Wed, 29 Nov 2017 14:46:40 +0100 (CET) Subject: Re: svn commit: r326364 - head/sys/kern To: "Hartmann, O." , Alexey Dokuchaev Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org References: <201711291249.vATCnMaF075503@repo.freebsd.org> <20171129141343.1d6331f8@hermann> From: Guido Falsi Message-ID: <70c6fc56-0c43-c185-2363-95e312b10c93@madpilot.net> Date: Wed, 29 Nov 2017 14:46:40 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171129141343.1d6331f8@hermann> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 13:46:46 -0000 On 11/29/2017 14:14, Hartmann, O. wrote: > On Wed, 29 Nov 2017 12:49:22 +0000 (UTC) > Alexey Dokuchaev wrote: > >> Author: danfe (ports committer) >> Date: Wed Nov 29 12:49:22 2017 >> New Revision: 326364 >> URL: https://svnweb.freebsd.org/changeset/base/326364 >> >> Log: >> Fix several noticed style issues. >> >> Reviewed by: bde >> Approved by: bapt >> >> Modified: >> head/sys/kern/subr_kdb.c >> >> Modified: head/sys/kern/subr_kdb.c >> ============================================================================== >> --- head/sys/kern/subr_kdb.c Wed Nov 29 10:04:11 2017 >> (r326363) +++ head/sys/kern/subr_kdb.c Wed Nov 29 12:49:22 >> 2017 (r326364) @@ -250,7 +250,6 @@ kdb_reboot(void) >> * its arguments. Its up to the caller to ensure that the state >> variable is >> * consistent. >> */ >> - >> #define KEY_CR 13 /* CR '\r' */ >> #define KEY_TILDE 126 /* ~ */ >> #define KEY_CRTLB 2 /* ^B */ >> @@ -362,7 +361,6 @@ kdb_alt_break_gdb(int key, int *state) >> * is selected or the current debugger does not support backtraces, >> this >> * function silently returns. >> */ >> - >> void >> kdb_backtrace(void) >> { >> @@ -410,7 +408,6 @@ kdb_backtrace_thread(struct thread *td) >> /* >> * Set/change the current backend. >> */ >> - >> int >> kdb_dbbe_select(const char *name) >> { >> @@ -450,7 +447,6 @@ kdb_enter(const char *why, const char *msg) >> /* >> * Initialize the kernel debugger interface. >> */ >> - >> void >> kdb_init(void) >> { >> @@ -485,7 +481,6 @@ kdb_init(void) >> /* >> * Handle contexts. >> */ >> - >> void * >> kdb_jmpbuf(jmp_buf new) >> { >> @@ -521,9 +516,8 @@ kdb_reenter_silent(void) >> } >> >> /* >> - * Thread related support functions. >> + * Thread-related support functions. >> */ >> - >> struct pcb * >> kdb_thr_ctx(struct thread *thr) >> { >> @@ -617,7 +611,6 @@ kdb_thr_select(struct thread *thr) >> /* >> * Enter the debugger due to a trap. >> */ >> - >> int >> kdb_trap(int type, int code, struct trapframe *tf) >> { >> _______________________________________________ >> svn-src-head@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/svn-src-head >> To unsubscribe, send any mail to >> "svn-src-head-unsubscribe@freebsd.org" > > r326363 produces a panic while performing installworld. This happens > even with the recommended procedure in singleuser mode with booted > kerenl r326363. While installing manpages, the system went down > reporting a "spinlock held too long". > I'm having a similar problem, looks like it's related to r326200. I've locally reverted that(and it's followup r326237) and testing again. -- Guido Falsi From owner-svn-src-head@freebsd.org Wed Nov 29 14:34:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0457E55709; Wed, 29 Nov 2017 14:34:06 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A2E77695F; Wed, 29 Nov 2017 14:34:06 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATEY50n021409; Wed, 29 Nov 2017 14:34:05 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATEY5MJ021408; Wed, 29 Nov 2017 14:34:05 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711291434.vATEY5MJ021408@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Wed, 29 Nov 2017 14:34:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326367 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326367 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 14:34:06 -0000 Author: markj Date: Wed Nov 29 14:34:05 2017 New Revision: 326367 URL: https://svnweb.freebsd.org/changeset/base/326367 Log: Remove some comments that became incorrect with r325530. Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Wed Nov 29 14:25:17 2017 (r326366) +++ head/sys/vm/vm_page.c Wed Nov 29 14:34:05 2017 (r326367) @@ -1593,8 +1593,6 @@ vm_page_rename(vm_page_t m, vm_object_t new_object, vm * VM_ALLOC_SBUSY shared busy the allocated page * VM_ALLOC_WIRED wire the allocated page * VM_ALLOC_ZERO prefer a zeroed page - * - * This routine may not sleep. */ vm_page_t vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req) @@ -1831,8 +1829,6 @@ again: * VM_ALLOC_SBUSY shared busy the allocated page * VM_ALLOC_WIRED wire the allocated page * VM_ALLOC_ZERO prefer a zeroed page - * - * This routine may not sleep. */ vm_page_t vm_page_alloc_contig(vm_object_t object, vm_pindex_t pindex, int req, @@ -2045,8 +2041,6 @@ vm_page_alloc_check(vm_page_t m) * intends to allocate * VM_ALLOC_WIRED wire the allocated page * VM_ALLOC_ZERO prefer a zeroed page - * - * This routine may not sleep. */ vm_page_t vm_page_alloc_freelist(int flind, int req) From owner-svn-src-head@freebsd.org Wed Nov 29 15:26:38 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0ED6E56B40; Wed, 29 Nov 2017 15:26:38 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 245E17887E; Wed, 29 Nov 2017 15:26:38 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lf0-x236.google.com with SMTP id r143so4295017lfe.13; Wed, 29 Nov 2017 07:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Gvpac1Sq5wlpSsQcih8SpvxpUr6xaSchqT2g58sjs/0=; b=kF8WP1VGvTZ6v9/mxsOmfxH+jZCiQ/Lw6fKIE2dX8TEqtvbv+fZnBwBouVm0QVdbvj uNpE2TG78R1Mhp9NqwQQEZ6luhXyT56skKiAnoy1Ui6uJCBXAGj65uoAi2D8uKWdFm9z GGFgAITYTeT0fVvI9eAhE4yRQ0djKYZXZrnyMi5a9z+gdG5RAk77CuwIMZeON6E1nHWO glMky8RJXhnHaQqV5GkqnVim2Uixjba22piwRhB7fDppiDG0F5GXy+/MEzx+rK/2i2vv 0aENgUTVclQ73wyWBV1YDslBTHq7pTD96UM/EKpnne++bsTmRGPnuFRahc59g+29pOBb tYLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Gvpac1Sq5wlpSsQcih8SpvxpUr6xaSchqT2g58sjs/0=; b=Izg0xnqPMFgdUv+ig7aStBq/cQEJIv/d/0rgHOcxGYJbK26a4FoDB12xsNnnIzW1QQ R83MMyT9YcHJKE52Gb1kGDo/ELfYC+U3Z+cp7VAMfKLGNdoKSMxbouvkIgjZ+C+mRqTU kITX1GBBAM4Gdv9bBaLhXg4YBpoOPMDYdiwUfLzWDZ2Sx1Vq8HRg2H9rNn+HX7C8VdiL hgLpM+IjQk4GVodk/SMsMOzRHaSN/IdEGq6h7vAdgfjappD+/0OXGB4APC6ESe03Orfb Ele6y0XbFk/0eG2jdSGMkPx+ITuJ2+k+3XidXrMuA2cTDaVD+9BMGVkR4grE4+R+1d/e cCqw== X-Gm-Message-State: AJaThX7xDTUHPoHA7RF5/MS3NiJP1GRf5KNQNmVlHviYLaCSPWqiqH1e EL9+LGmVhihgyJ7JVF2a2mgZw0+lp11xuXInAi4= X-Google-Smtp-Source: AGs4zMY/zh5Wab/ySqH1bFNZm2iXfLlIithS4vPkdRVe0gGd2kAS98XOxszVtejltWXzI4NWFk+hvsmyiEG4I3n/xvw= X-Received: by 10.46.88.77 with SMTP id x13mr1656051ljd.80.1511969196086; Wed, 29 Nov 2017 07:26:36 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.179.76.19 with HTTP; Wed, 29 Nov 2017 07:26:35 -0800 (PST) In-Reply-To: <744C69EF-C0A5-46DC-9D65-EEE78BD32BAF@FreeBSD.org> References: <201711282044.vASKiAJw072662@repo.freebsd.org> <744C69EF-C0A5-46DC-9D65-EEE78BD32BAF@FreeBSD.org> From: Alan Somers Date: Wed, 29 Nov 2017 08:26:35 -0700 X-Google-Sender-Auth: k49xTo0YqItKYpxH7T_RvSJ4rFs Message-ID: Subject: Re: svn commit: r326343 - head/etc/rc.d To: Dimitry Andric Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 15:26:38 -0000 On Wed, Nov 29, 2017 at 4:40 AM, Dimitry Andric wrote: > On 28 Nov 2017, at 21:44, Alan Somers wrote: >> >> Author: asomers >> Date: Tue Nov 28 20:44:10 2017 >> New Revision: 326343 >> URL: https://svnweb.freebsd.org/changeset/base/326343 >> >> Log: >> Fix fetching ntp leapfile after 325256 >> >> Submitted by: Ronald Klop >> Reviewed by: asomers > > Reviewed by yourself? :) > > -Dimitry > Yep. Written by Ronald Klop, and reviewed by me. From owner-svn-src-head@freebsd.org Wed Nov 29 15:36:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9EB4E56DFA; Wed, 29 Nov 2017 15:36:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A7F9B78DBD; Wed, 29 Nov 2017 15:36:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2BA4D260072; Wed, 29 Nov 2017 16:36:35 +0100 (CET) Subject: Re: svn commit: r326218 - head/sys/kern To: John Baldwin , Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, Konstantin Belousov , "O. Hartmann" , KrishnamRaju ErapaRaju References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> From: Hans Petter Selasky Message-ID: <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> Date: Wed, 29 Nov 2017 16:33:50 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <14058479.lc6xlYgyBM@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 15:36:47 -0000 Hi Nathan, The chunk below causes sched_pin() to stop working and should be removed from your commit ??!! It probably explains the hangs seen recently reported by various brave people running 12-current :-) Specifically I see threads migrating between CPUs when td->td_pinned > 0 using the LinuxKPI RCU API, which in turn leads to a hang when trying to synchronize RCU. --HPS diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 5c8bae5afa1..bd4b505f6c3 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -2453,7 +2453,7 @@ sched_add(struct thread *td, int flags) * Pick the destination cpu and if it isn't ours transfer to the * target cpu. */ - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ +// td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ cpu = sched_pickcpu(td, flags); tdq = sched_setcpu(td, cpu, flags); tdq_add(tdq, td, flags); From owner-svn-src-head@freebsd.org Wed Nov 29 15:45:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11438E570AC; Wed, 29 Nov 2017 15:45:23 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E304F792C8; Wed, 29 Nov 2017 15:45:22 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 21CF114194; Wed, 29 Nov 2017 15:45:22 +0000 (UTC) Date: Wed, 29 Nov 2017 15:45:22 +0000 From: Alexey Dokuchaev To: Alan Somers Cc: Dimitry Andric , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Subject: Re: svn commit: r326343 - head/etc/rc.d Message-ID: <20171129154522.GA35070@FreeBSD.org> References: <201711282044.vASKiAJw072662@repo.freebsd.org> <744C69EF-C0A5-46DC-9D65-EEE78BD32BAF@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 15:45:23 -0000 On Wed, Nov 29, 2017 at 08:26:35AM -0700, Alan Somers wrote: > On Wed, Nov 29, 2017 at 4:40 AM, Dimitry Andric wrote: > > On 28 Nov 2017, at 21:44, Alan Somers wrote: > >> New Revision: 326343 > >> URL: https://svnweb.freebsd.org/changeset/base/326343 > >> > >> Log: > >> Fix fetching ntp leapfile after 325256 > >> > >> Submitted by: Ronald Klop > >> Reviewed by: asomers > > > > Reviewed by yourself? :) > > Yep. Written by Ronald Klop, and reviewed by me. It's assumed by default that whoever committed the patch had reviewed and tested it; explicit "Reviewed by" is typically placed when there were other people who also did the review. ./danfe From owner-svn-src-head@freebsd.org Wed Nov 29 16:14:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E19DE57F84; Wed, 29 Nov 2017 16:14:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA2ED7A775; Wed, 29 Nov 2017 16:14:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id vATGDueb022766 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Nov 2017 18:13:56 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua vATGDueb022766 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id vATGDus9022765; Wed, 29 Nov 2017 18:13:56 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 29 Nov 2017 18:13:56 +0200 From: Konstantin Belousov To: Hans Petter Selasky Cc: John Baldwin , Nathan Whitehorn , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, Konstantin Belousov , "O. Hartmann" , KrishnamRaju ErapaRaju Subject: Re: svn commit: r326218 - head/sys/kern Message-ID: <20171129161356.GA2272@kib.kiev.ua> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 16:14:02 -0000 On Wed, Nov 29, 2017 at 04:33:50PM +0100, Hans Petter Selasky wrote: > Hi Nathan, > > The chunk below causes sched_pin() to stop working and should be removed > from your commit ??!! > > It probably explains the hangs seen recently reported by various brave > people running 12-current :-) > > Specifically I see threads migrating between CPUs when td->td_pinned > 0 > using the LinuxKPI RCU API, which in turn leads to a hang when trying to > synchronize RCU. > > --HPS > > diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c > index 5c8bae5afa1..bd4b505f6c3 100644 > --- a/sys/kern/sched_ule.c > +++ b/sys/kern/sched_ule.c > @@ -2453,7 +2453,7 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to the > * target cpu. > */ > - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to > start */ > +// td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to > start */ > cpu = sched_pickcpu(td, flags); > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); To clarify. It seems that this change breaks sched_bind(). It might be that LinuxKPI does use sched_pin() in somewhat questionable way. Namely, the code puts the thread off the CPU (e.g. by taking a lock). Then, is it guaranteed that the pinned thread returns to the same cpu after sched_add() ? I think that the second behaviour is not guaranteed, but it might happens by the way the things are arranged. If guaranteed, then the sched_pin() breakage is same as for sched_bind(). From owner-svn-src-head@freebsd.org Wed Nov 29 16:59:35 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97D86E5DB62; Wed, 29 Nov 2017 16:59:35 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-it0-x241.google.com (mail-it0-x241.google.com [IPv6:2607:f8b0:4001:c0b::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6388C7BCBA; Wed, 29 Nov 2017 16:59:35 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-it0-x241.google.com with SMTP id d16so4948823itj.1; Wed, 29 Nov 2017 08:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Og1mbLFppyTW07t02QgexPOLQmWA25fSM/E3PZoBh4A=; b=AtOaxpV8iC2ufpdtBMZlb62+oRsZk22mjZnAITxQz1SIdxuDaIQgXSTC2d2yHuPTy0 fOGjoIG0ZTghqf0BbxPaIm8rx0sliuQAuxfb9Yx3pLDJFeIlrr2Y5Er8SVmah4meR7dd xBjcloHy5N3iwFFeVLrk5CV0o6UltK+PIHNqM3sa8htN2VpvlLWVex2qluRNLuDfKK2m e/aR6pshEuO8+xnsQ0olGaqdp9UpP8V3F25gyYUz0YvJi/K33oWuXtsl2H9XOr/JuRpr n4/Kv9ZkWhX9OI3D15YGXTvdhuw+mo5bcvkFo2Kg59D5VrEUD0NkAtAP4AVQJjIhbgUf 5mSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Og1mbLFppyTW07t02QgexPOLQmWA25fSM/E3PZoBh4A=; b=leUxbpOaoOmq9JxvgGgyFjFH7mKlVWfSfOfxD7qRKdakt/WJnj5vNU1a3mHbq8NhqH AIlzkmFNVdy8an19VU1JBAiXBM+GGKaMv2mF8h8feNxvKhwFs9fK27NB1n/M5Y+ja3cQ Hyag8Atmjd9tSX6vZoKZY2q3cogklHg+EElJDLaiTmowCob8MBuWI6F6OmiKTSaal2wO hKZgvRMeIGAqOYelRqEqumqLf3yYDd388s+qY0Lxs7e98UlYINqNsChq2wYRRYjyFdb6 fzGZxWIVYQPTs0GuJ/V7rKbm1x3YJlLsLNRkYvlpQkX/3XxaXm+ypCkIm4ZExBtlDrIo P1qw== X-Gm-Message-State: AJaThX736tBmOGqfcWHOLhzD/ax7pR6yPRN0qi1nad7O2RpktMQ7yz2y i3ygThA+oQC7elLopR0yLG2DKGBMpR4oQ2uZ+kY= X-Google-Smtp-Source: AGs4zMaV7MafvqkG1XkinQlLtK9c7jqZJsrVTHpzAct/QC9vIjd1ezXFTJ7O0jCaQhh3i0vfj7DaxTFm27p2rUg6od0= X-Received: by 10.36.245.200 with SMTP id k191mr8049256ith.20.1511974774563; Wed, 29 Nov 2017 08:59:34 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.78.207 with HTTP; Wed, 29 Nov 2017 08:59:34 -0800 (PST) In-Reply-To: <20171129161356.GA2272@kib.kiev.ua> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> <20171129161356.GA2272@kib.kiev.ua> From: Justin Hibbits Date: Wed, 29 Nov 2017 10:59:34 -0600 X-Google-Sender-Auth: GjREahYCMJB1jhZEcmdezfMzWB8 Message-ID: Subject: Re: svn commit: r326218 - head/sys/kern To: Konstantin Belousov Cc: Hans Petter Selasky , John Baldwin , Nathan Whitehorn , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Konstantin Belousov , "O. Hartmann" , KrishnamRaju ErapaRaju Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Wed, 29 Nov 2017 17:11:43 +0000 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 16:59:35 -0000 On Wed, Nov 29, 2017 at 10:13 AM, Konstantin Belousov wrote: > On Wed, Nov 29, 2017 at 04:33:50PM +0100, Hans Petter Selasky wrote: >> Hi Nathan, >> >> The chunk below causes sched_pin() to stop working and should be removed >> from your commit ??!! >> >> It probably explains the hangs seen recently reported by various brave >> people running 12-current :-) >> >> Specifically I see threads migrating between CPUs when td->td_pinned > 0 >> using the LinuxKPI RCU API, which in turn leads to a hang when trying to >> synchronize RCU. >> >> --HPS >> >> diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c >> index 5c8bae5afa1..bd4b505f6c3 100644 >> --- a/sys/kern/sched_ule.c >> +++ b/sys/kern/sched_ule.c >> @@ -2453,7 +2453,7 @@ sched_add(struct thread *td, int flags) >> * Pick the destination cpu and if it isn't ours transfer to the >> * target cpu. >> */ >> - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to >> start */ >> +// td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to >> start */ >> cpu = sched_pickcpu(td, flags); >> tdq = sched_setcpu(td, cpu, flags); >> tdq_add(tdq, td, flags); > > To clarify. It seems that this change breaks sched_bind(). > > It might be that LinuxKPI does use sched_pin() in somewhat questionable > way. Namely, the code puts the thread off the CPU (e.g. by taking a > lock). Then, is it guaranteed that the pinned thread returns to the same > cpu after sched_add() ? > > I think that the second behaviour is not guaranteed, but it might > happens by the way the things are arranged. If guaranteed, then the > sched_pin() breakage is same as for sched_bind(). > I see the same breakage on PowerPC with the dtsec(4) driver, which pins interrupts to CPUs, now causing interrupts to migrate to cores without the matching portal mapping. - Justin From owner-svn-src-head@freebsd.org Wed Nov 29 18:14:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65C97E5FC37; Wed, 29 Nov 2017 18:14:58 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3081C7F2A1; Wed, 29 Nov 2017 18:14:58 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATIEvlw015599; Wed, 29 Nov 2017 18:14:57 GMT (envelope-from shurd@FreeBSD.org) Received: (from shurd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATIEv0T015598; Wed, 29 Nov 2017 18:14:57 GMT (envelope-from shurd@FreeBSD.org) Message-Id: <201711291814.vATIEv0T015598@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: shurd set sender to shurd@FreeBSD.org using -f From: Stephen Hurd Date: Wed, 29 Nov 2017 18:14:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326369 - head/sys/net X-SVN-Group: head X-SVN-Commit-Author: shurd X-SVN-Commit-Paths: head/sys/net X-SVN-Commit-Revision: 326369 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 18:14:58 -0000 Author: shurd Date: Wed Nov 29 18:14:57 2017 New Revision: 326369 URL: https://svnweb.freebsd.org/changeset/base/326369 Log: Ensure that ctx->ifc_cpus is always initialized If a device didn't support MSI-X, ctx->ifc_cpus would not be initialized, but the IRQ allocation routines still uses the value. Move the initialization to common code. Sponsored by: Limelight Networks Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c ============================================================================== --- head/sys/net/iflib.c Wed Nov 29 14:45:28 2017 (r326368) +++ head/sys/net/iflib.c Wed Nov 29 18:14:57 2017 (r326369) @@ -4259,6 +4259,14 @@ iflib_device_register(device_t dev, void *sc, if_share GROUPTASK_INIT(&ctx->ifc_admin_task, 0, _task_fn_admin, ctx); /* XXX format name */ taskqgroup_attach(qgroup_if_config_tqg, &ctx->ifc_admin_task, ctx, -1, "admin"); + + /* Set up cpu set. If it fails, zero out the set. */ + if (bus_get_cpus(dev, INTR_CPUS, sizeof(ctx->ifc_cpus), &ctx->ifc_cpus) != 0) { + device_printf(dev, "Unable to fetch CPU list\n"); + CPU_COPY(&all_cpus, &ctx->ifc_cpus); + } + MPASS(CPU_COUNT(&ctx->ifc_cpus) > 0); + /* ** Now setup MSI or MSI/X, should ** return us the number of supported @@ -4984,7 +4992,7 @@ find_nth(if_ctx_t ctx, cpuset_t *cpus, int qid) int i, cpuid, eqid, count; CPU_COPY(&ctx->ifc_cpus, cpus); - count = CPU_COUNT(&ctx->ifc_cpus); + count = CPU_COUNT(cpus); eqid = qid % count; /* clear up to the qid'th bit */ for (i = 0; i < eqid; i++) { @@ -5391,20 +5399,14 @@ iflib_msix_init(if_ctx_t ctx) #else queuemsgs = msgs - admincnt; #endif - if (bus_get_cpus(dev, INTR_CPUS, sizeof(ctx->ifc_cpus), &ctx->ifc_cpus) == 0) { #ifdef RSS - queues = imin(queuemsgs, rss_getnumbuckets()); + queues = imin(queuemsgs, rss_getnumbuckets()); #else - queues = queuemsgs; + queues = queuemsgs; #endif - queues = imin(CPU_COUNT(&ctx->ifc_cpus), queues); - device_printf(dev, "pxm cpus: %d queue msgs: %d admincnt: %d\n", - CPU_COUNT(&ctx->ifc_cpus), queuemsgs, admincnt); - } else { - device_printf(dev, "Unable to fetch CPU list\n"); - /* Figure out a reasonable auto config value */ - queues = min(queuemsgs, mp_ncpus); - } + queues = imin(CPU_COUNT(&ctx->ifc_cpus), queues); + device_printf(dev, "pxm cpus: %d queue msgs: %d admincnt: %d\n", + CPU_COUNT(&ctx->ifc_cpus), queuemsgs, admincnt); #ifdef RSS /* If we're doing RSS, clamp at the number of RSS buckets */ if (queues > rss_getnumbuckets()) From owner-svn-src-head@freebsd.org Wed Nov 29 18:21:18 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6DD7E5FDEE; Wed, 29 Nov 2017 18:21:18 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 917037F5C2; Wed, 29 Nov 2017 18:21:18 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATILHjB018244; Wed, 29 Nov 2017 18:21:17 GMT (envelope-from shurd@FreeBSD.org) Received: (from shurd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATILHPD018243; Wed, 29 Nov 2017 18:21:17 GMT (envelope-from shurd@FreeBSD.org) Message-Id: <201711291821.vATILHPD018243@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: shurd set sender to shurd@FreeBSD.org using -f From: Stephen Hurd Date: Wed, 29 Nov 2017 18:21:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326370 - head/sys/net X-SVN-Group: head X-SVN-Commit-Author: shurd X-SVN-Commit-Paths: head/sys/net X-SVN-Commit-Revision: 326370 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 18:21:18 -0000 Author: shurd Date: Wed Nov 29 18:21:17 2017 New Revision: 326370 URL: https://svnweb.freebsd.org/changeset/base/326370 Log: Fix comment introduced in r326369 The code uses the set of all CPUs, it doesn't zero out the set. Sponsored by: Limelight Networks Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c ============================================================================== --- head/sys/net/iflib.c Wed Nov 29 18:14:57 2017 (r326369) +++ head/sys/net/iflib.c Wed Nov 29 18:21:17 2017 (r326370) @@ -4260,7 +4260,7 @@ iflib_device_register(device_t dev, void *sc, if_share /* XXX format name */ taskqgroup_attach(qgroup_if_config_tqg, &ctx->ifc_admin_task, ctx, -1, "admin"); - /* Set up cpu set. If it fails, zero out the set. */ + /* Set up cpu set. If it fails, use the set of all CPUs. */ if (bus_get_cpus(dev, INTR_CPUS, sizeof(ctx->ifc_cpus), &ctx->ifc_cpus) != 0) { device_printf(dev, "Unable to fetch CPU list\n"); CPU_COPY(&all_cpus, &ctx->ifc_cpus); From owner-svn-src-head@freebsd.org Wed Nov 29 18:59:34 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55FFEE65E3E; Wed, 29 Nov 2017 18:59:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E61F80F4F; Wed, 29 Nov 2017 18:59:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E63F22602F2; Wed, 29 Nov 2017 19:59:31 +0100 (CET) Subject: Re: svn commit: r326218 - head/sys/kern To: "Hartmann, O." Cc: src-committers , "svn-src-all@freebsd.org" , Konstantin Belousov , "svn-src-head@freebsd.org" References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> <20171129161356.GA2272@kib.kiev.ua> <20171129193647.77859f62@hermann> From: Hans Petter Selasky Message-ID: <28766f0d-0811-cbc8-59f4-779cbb6f2538@selasky.org> Date: Wed, 29 Nov 2017 19:56:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171129193647.77859f62@hermann> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 18:59:34 -0000 On 11/29/17 19:36, Hartmann, O. wrote: > I can not understand why this untested patch isn't reverted already. Hi, Setting: kern.smp.disabled=1 In the loader or /boot/loader.conf should get your system up and running again, so that you can build a new kernel or revert the broken diff. Hope that helps until Nathan has properly fixed this issue. Thank you! --HPS From owner-svn-src-head@freebsd.org Wed Nov 29 18:37:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E646E6548D; Wed, 29 Nov 2017 18:37:15 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F8997FF60; Wed, 29 Nov 2017 18:37:14 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from hermann ([78.52.117.12]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MePcd-1eTdjR1P03-00QBDt; Wed, 29 Nov 2017 19:36:58 +0100 Date: Wed, 29 Nov 2017 19:36:52 +0100 From: "Hartmann, O." To: Justin Hibbits Cc: Konstantin Belousov , Hans Petter Selasky , src-committers , John Baldwin , "svn-src-all@freebsd.org" , KrishnamRaju ErapaRaju , Konstantin Belousov , Nathan Whitehorn , "svn-src-head@freebsd.org" , "O. Hartmann" Subject: Re: svn commit: r326218 - head/sys/kern Message-ID: <20171129193647.77859f62@hermann> In-Reply-To: References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> <20171129161356.GA2272@kib.kiev.ua> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:J5ivfFK6aKP4S2InQoAR6D9Iymq1XYLkDu+tICdvwJYqxADaNQj h+eU6gCGdYqr+KkvLLS89Uf90GqCTC5SUsAK5OzGuMooQoG6KDsaTkR7FPwQ5EDwUX9JHGT /iv9+mLQgdS3V22mCmbyzAAGaphZjL0KHLIr8l/YX4ALnuXlAbyKvo6WtThnsGhvg01Iszb oGEYlE/AsjnGJ+WsAtf7A== X-UI-Out-Filterresults: notjunk:1;V01:K0:rqILWROsx8g=:XTT4bTKXQc/j01y+ViFxuR bYZF6x+qNZz65E+Y0ZnmOt09lD/MRzL3Iid9WVz++HEtmUM9iFVvlsj3x/b1XGD0sZKVFzgBR s6RlLDYBPz4HT7F9RFYWoHsfAafah8yuaAknoxpn0nTVQMJIRmNUnUGZmjFd4u6VWOXvPV5oN zmGDXOn+pGd/D0Be9jCj5XfSDDPub9K2okCtxmsEvNMPoX939YVoY08QXRzLe3RI7hN6Cn0Of o7z9O6rAv+Lup12LQSrHsp8TZglHbAz7eUO7GB32MkEe5cTZShw2C7vJTYhMfYsoSI6a2t19+ kMGXgYvWJ98K+gR0WZkMbB+Rv5bW6my9kWfi57djqulNweqSZSA2vfoMu9mLvwU3RcFFrwXfv IAmVZyNdlFn+d6cw5LD7yO10+ea9W0C5KhPlzYJ9vmQl3h8MWuEYGm7R7hfDz43bIJfLiGaRW +rdzjiBss8PUd4oGDHHPsB0mO7/ohBR6Fq7cN0yt+f0rsgYDYsii8tLUB52dVhyU0Q7lBg6Yb 5+t4rJOipa8nL2sAWu55QuFrFkoeMVxczCdQ5jBw3y8w6fI2k62CYIswwaIHGm+v94Lzov3s6 5wjwPg7cqJmzVkOikuNyxSiruFX3OXFmg36dUO5zcu49eiiqD9y6mZ19e1f31y+yepqhyjxka aN3xgZsyVb0Ud1Bp81j4vS6nfYHfMraLjBvD2AMpONyaqU/ajmtlzr9hNNTzavahIhnlKeCWZ hay8n0KpOQx5Myp36JB/m7lhvQ3J9YkU0/zHCz4WCsfJjrNM51MzgM6fem7j647dXkotd4Gko /kOZbstYK1KVHC7T35M1pFY/SIJg2jJDLlICC/2jEKw/oKw/ew= X-Mailman-Approved-At: Wed, 29 Nov 2017 19:00:58 +0000 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 18:37:15 -0000 On Wed, 29 Nov 2017 10:59:34 -0600 Justin Hibbits wrote: > On Wed, Nov 29, 2017 at 10:13 AM, Konstantin Belousov > wrote: > > On Wed, Nov 29, 2017 at 04:33:50PM +0100, Hans Petter Selasky > > wrote: > >> Hi Nathan, > >> > >> The chunk below causes sched_pin() to stop working and should be > >> removed from your commit ??!! > >> > >> It probably explains the hangs seen recently reported by various > >> brave people running 12-current :-) > >> > >> Specifically I see threads migrating between CPUs when > >> td->td_pinned > 0 using the LinuxKPI RCU API, which in turn leads > >> to a hang when trying to synchronize RCU. > >> > >> --HPS > >> > >> diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c > >> index 5c8bae5afa1..bd4b505f6c3 100644 > >> --- a/sys/kern/sched_ule.c > >> +++ b/sys/kern/sched_ule.c > >> @@ -2453,7 +2453,7 @@ sched_add(struct thread *td, int flags) > >> * Pick the destination cpu and if it isn't ours transfer > >> to the > >> * target cpu. > >> */ > >> - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid > >> to start */ > >> +// td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid > >> to start */ > >> cpu = sched_pickcpu(td, flags); > >> tdq = sched_setcpu(td, cpu, flags); > >> tdq_add(tdq, td, flags); > > > > To clarify. It seems that this change breaks sched_bind(). > > > > It might be that LinuxKPI does use sched_pin() in somewhat > > questionable way. Namely, the code puts the thread off the CPU > > (e.g. by taking a lock). Then, is it guaranteed that the pinned > > thread returns to the same cpu after sched_add() ? > > > > I think that the second behaviour is not guaranteed, but it might > > happens by the way the things are arranged. If guaranteed, then the > > sched_pin() breakage is same as for sched_bind(). > > > > I see the same breakage on PowerPC with the dtsec(4) driver, which > pins interrupts to CPUs, now causing interrupts to migrate to cores > without the matching portal mapping. > > - Justin > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" I can not understand why this untested patch isn't reverted already. It brings down any system I have at hand within short time and if someone is stupid enough - like me - performing an installworld while new kernel already has been installed, the old binaries, one day old, seem to be incompatible and BTX immediately bails out. I brought down the fourth box - by intention and the problem is serious and can be reproduced easily. From owner-svn-src-head@freebsd.org Wed Nov 29 18:45:00 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37EACE65817; Wed, 29 Nov 2017 18:45:00 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C13D8803DE; Wed, 29 Nov 2017 18:44:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F292F2602F2; Wed, 29 Nov 2017 19:44:55 +0100 (CET) Subject: Re: svn commit: r326218 - head/sys/kern To: Justin Hibbits , Konstantin Belousov Cc: John Baldwin , Nathan Whitehorn , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Konstantin Belousov , "O. Hartmann" , KrishnamRaju ErapaRaju References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> <14322447.103fKFTi3y@ralph.baldwin.cx> <3fc45d5f-22b9-0562-278b-c515e36f48e7@freebsd.org> <14058479.lc6xlYgyBM@ralph.baldwin.cx> <2e752d6a-d34a-dde0-acea-fdbf8bebea51@selasky.org> <20171129161356.GA2272@kib.kiev.ua> From: Hans Petter Selasky Message-ID: <0baa25c3-f235-78c5-5c72-9eab5dab89c6@selasky.org> Date: Wed, 29 Nov 2017 19:42:10 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 29 Nov 2017 19:00:58 +0000 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 18:45:00 -0000 On 11/29/17 17:59, Justin Hibbits wrote: > On Wed, Nov 29, 2017 at 10:13 AM, Konstantin Belousov > wrote: >> On Wed, Nov 29, 2017 at 04:33:50PM +0100, Hans Petter Selasky wrote: >>> Hi Nathan, >>> >>> The chunk below causes sched_pin() to stop working and should be removed >>> from your commit ??!! >>> >>> It probably explains the hangs seen recently reported by various brave >>> people running 12-current :-) >>> >>> Specifically I see threads migrating between CPUs when td->td_pinned > 0 >>> using the LinuxKPI RCU API, which in turn leads to a hang when trying to >>> synchronize RCU. >>> >>> --HPS >>> >>> diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c >>> index 5c8bae5afa1..bd4b505f6c3 100644 >>> --- a/sys/kern/sched_ule.c >>> +++ b/sys/kern/sched_ule.c >>> @@ -2453,7 +2453,7 @@ sched_add(struct thread *td, int flags) >>> * Pick the destination cpu and if it isn't ours transfer to the >>> * target cpu. >>> */ >>> - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to >>> start */ >>> +// td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to >>> start */ >>> cpu = sched_pickcpu(td, flags); >>> tdq = sched_setcpu(td, cpu, flags); >>> tdq_add(tdq, td, flags); >> >> To clarify. It seems that this change breaks sched_bind(). >> >> It might be that LinuxKPI does use sched_pin() in somewhat questionable >> way. Namely, the code puts the thread off the CPU (e.g. by taking a >> lock). Then, is it guaranteed that the pinned thread returns to the same >> cpu after sched_add() ? >> >> I think that the second behaviour is not guaranteed, but it might >> happens by the way the things are arranged. If guaranteed, then the >> sched_pin() breakage is same as for sched_bind(). >> > > I see the same breakage on PowerPC with the dtsec(4) driver, which > pins interrupts to CPUs, now causing interrupts to migrate to cores > without the matching portal mapping. > > - Justin Hi Nathan, Looking at your patch I think what you wanted to do is something like shown below. I'm not sure if sched_setup() is run early enough to catch all created threads in the registered eventhandler hook. I'll leave the final solution and analysis up to you. --HPS > diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c > index 5c8bae5afa1..42ccf58ea0c 100644 > --- a/sys/kern/sched_ule.c > +++ b/sys/kern/sched_ule.c > @@ -1387,6 +1387,13 @@ sched_setup_smp(void) > } > #endif > > +static void > +sched_thread_ctor(void *arg __unused, struct thread *td) > +{ > + /* Pick a valid initial CPU number */ > + td_get_sched(td)->ts_cpu = curcpu; > +} > + > /* > * Setup the thread queues and initialize the topology based on MD > * information. > @@ -1396,6 +1403,9 @@ sched_setup(void *dummy) > { > struct tdq *tdq; > > + (void) EVENTHANDLER_REGISTER(thread_ctor, > + sched_thread_ctor, NULL, EVENTHANDLER_PRI_ANY); > + > tdq = TDQ_SELF(); > #ifdef SMP > sched_setup_smp(); > @@ -2453,7 +2463,6 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to the > * target cpu. > */ > - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > cpu = sched_pickcpu(td, flags); > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); From owner-svn-src-head@freebsd.org Wed Nov 29 19:47:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEBB2DBA06D; Wed, 29 Nov 2017 19:47:10 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC14F29F8; Wed, 29 Nov 2017 19:47:10 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATJl99K053390; Wed, 29 Nov 2017 19:47:09 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATJl9fI053389; Wed, 29 Nov 2017 19:47:09 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711291947.vATJl9fI053389@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Wed, 29 Nov 2017 19:47:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326371 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326371 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 19:47:11 -0000 Author: markj Date: Wed Nov 29 19:47:09 2017 New Revision: 326371 URL: https://svnweb.freebsd.org/changeset/base/326371 Log: Verify the object/vnode association after vget() in vm_pageout_clean(). It's theoretically possible for the vnode and object to be disassociated while locks are dropped around the vget() call, in which case we shouldn't proceed with laundering. Noted and reviewed by: kib MFC after: 1 week Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Wed Nov 29 18:21:17 2017 (r326370) +++ head/sys/vm/vm_pageout.c Wed Nov 29 19:47:09 2017 (r326371) @@ -647,7 +647,17 @@ vm_pageout_clean(vm_page_t m, int *numpagedout) goto unlock_mp; } VM_OBJECT_WLOCK(object); + + /* + * Ensure that the object and vnode were not disassociated + * while locks were dropped. + */ + if (vp->v_object != object) { + error = ENOENT; + goto unlock_all; + } vm_page_lock(m); + /* * While the object and page were unlocked, the page * may have been: From owner-svn-src-head@freebsd.org Wed Nov 29 21:16:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 995A3DEA0D7; Wed, 29 Nov 2017 21:16:15 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62BD765062; Wed, 29 Nov 2017 21:16:15 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATLGEk6091743; Wed, 29 Nov 2017 21:16:14 GMT (envelope-from arichardson@FreeBSD.org) Received: (from arichardson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATLGEB2091742; Wed, 29 Nov 2017 21:16:14 GMT (envelope-from arichardson@FreeBSD.org) Message-Id: <201711292116.vATLGEB2091742@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arichardson set sender to arichardson@FreeBSD.org using -f From: Alex Richardson Date: Wed, 29 Nov 2017 21:16:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326375 - head/share/mk X-SVN-Group: head X-SVN-Commit-Author: arichardson X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 326375 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 21:16:15 -0000 Author: arichardson Date: Wed Nov 29 21:16:14 2017 New Revision: 326375 URL: https://svnweb.freebsd.org/changeset/base/326375 Log: Don't fail the build due to clang integer constant range warnings This warning checks whether a constant is out of range of the integer type. An example is `comparison of 'u_int' > 4294967295 is always false` and in this case the warning makes sense. However, when the type is a typedef that can be either 64 or 32 bits the if condition is only tautological in some configurations so this should not be a warning that fails the build. Reviewed by: dim Approved by: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D12912 Modified: head/share/mk/bsd.sys.mk Modified: head/share/mk/bsd.sys.mk ============================================================================== --- head/share/mk/bsd.sys.mk Wed Nov 29 20:44:40 2017 (r326374) +++ head/share/mk/bsd.sys.mk Wed Nov 29 21:16:14 2017 (r326375) @@ -81,6 +81,9 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000 CWARNFLAGS.clang+= -Wno-address-of-packed-member .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000 +CWARNFLAGS.clang+= -Wno-error=tautological-constant-compare +.endif .endif # WARNS <= 3 .if ${WARNS} <= 2 CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter From owner-svn-src-head@freebsd.org Wed Nov 29 23:11:36 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B431DEC7C2; Wed, 29 Nov 2017 23:11:36 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0217068904; Wed, 29 Nov 2017 23:11:35 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id vATNBSIX049085 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Nov 2017 15:11:29 -0800 (PST) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id vATNBSe6049084; Wed, 29 Nov 2017 15:11:28 -0800 (PST) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 29 Nov 2017 15:11:28 -0800 From: Gleb Smirnoff To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern Message-ID: <20171129231128.GO1063@FreeBSD.org> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201711252341.vAPNf5Qx001464@repo.freebsd.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 23:11:36 -0000 Hi Nathan, On Sat, Nov 25, 2017 at 11:41:05PM +0000, Nathan Whitehorn wrote: N> Author: nwhitehorn N> Date: Sat Nov 25 23:41:05 2017 N> New Revision: 326218 N> URL: https://svnweb.freebsd.org/changeset/base/326218 N> N> Log: N> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs N> are numbered densely from there to n_cpus. I got experimental branch, where counter(9) can be used at very early stages of startup, e.g. at VM initialization. I suspect it would be broken once I merge in your changes. Basically, what I need is that CPU_FOREACH() works before AP startup, with one iteration - the BSP. Now I achieve that with this hack: https://github.com/glebius/FreeBSD/commit/834b857464972b45e659f99fa2dd91e987b17dc9 Can you please suggest a better way to do that? -- Gleb Smirnoff From owner-svn-src-head@freebsd.org Wed Nov 29 23:28:41 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8CB1DECC07; Wed, 29 Nov 2017 23:28:41 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8332069076; Wed, 29 Nov 2017 23:28:41 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATNSeCw046519; Wed, 29 Nov 2017 23:28:40 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATNSeOM046518; Wed, 29 Nov 2017 23:28:40 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201711292328.vATNSeOM046518@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Wed, 29 Nov 2017 23:28:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326376 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326376 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 23:28:41 -0000 Author: hselasky Date: Wed Nov 29 23:28:40 2017 New Revision: 326376 URL: https://svnweb.freebsd.org/changeset/base/326376 Log: The sched_add() function is not only used when the thread is initially started, but also by the turnstiles to mark a thread as runnable for all locks, for instance sleepqueues do: setrunnable()->sched_wakeup()->sched_add() In r326218 code was added to allow booting from non-zero CPU numbers by setting the ts_cpu field inside the ULE scheduler's sched_add() function. This had an undesired side-effect that prior sched_pin() and sched_bind() calls got disregarded. This patch fixes the initialization of the ts_cpu field for the ULE scheduler to only happen once when the initial thread is constructed during system init. Forking will then later on ensure that a valid ts_cpu value gets copied to all children. Reviewed by: jhb, kib Discussed with: nwhitehorn MFC after: 1 month Differential revision: https://reviews.freebsd.org/D13298 Sponsored by: Mellanox Technologies Modified: head/sys/kern/sched_ule.c Modified: head/sys/kern/sched_ule.c ============================================================================== --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 (r326375) +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 2017 (r326376) @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) /* Add thread0's load since it's running. */ TDQ_LOCK(tdq); - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */ thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); tdq_load_add(tdq, &thread0); tdq->tdq_lowpri = thread0.td_priority; @@ -1642,6 +1641,7 @@ schedinit(void) ts0->ts_ltick = ticks; ts0->ts_ftick = ticks; ts0->ts_slice = 0; + ts0->ts_cpu = curcpu; /* set valid CPU number */ } /* @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) * Pick the destination cpu and if it isn't ours transfer to the * target cpu. */ - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ cpu = sched_pickcpu(td, flags); tdq = sched_setcpu(td, cpu, flags); tdq_add(tdq, td, flags); From owner-svn-src-head@freebsd.org Wed Nov 29 23:41:52 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29F1BDECF95; Wed, 29 Nov 2017 23:41:52 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 009A969813; Wed, 29 Nov 2017 23:41:51 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATNfoAs054615; Wed, 29 Nov 2017 23:41:50 GMT (envelope-from scottl@FreeBSD.org) Received: (from scottl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATNfoSS054606; Wed, 29 Nov 2017 23:41:50 GMT (envelope-from scottl@FreeBSD.org) Message-Id: <201711292341.vATNfoSS054606@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: scottl set sender to scottl@FreeBSD.org using -f From: Scott Long Date: Wed, 29 Nov 2017 23:41:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326377 - in head/sys: amd64/conf arm/conf i386/conf mips/conf modules/aic7xxx/ahc modules/aic7xxx/ahd powerpc/conf sparc64/conf X-SVN-Group: head X-SVN-Commit-Author: scottl X-SVN-Commit-Paths: in head/sys: amd64/conf arm/conf i386/conf mips/conf modules/aic7xxx/ahc modules/aic7xxx/ahd powerpc/conf sparc64/conf X-SVN-Commit-Revision: 326377 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 23:41:52 -0000 Author: scottl Date: Wed Nov 29 23:41:49 2017 New Revision: 326377 URL: https://svnweb.freebsd.org/changeset/base/326377 Log: It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from the standard kernels. They are still available as custom compile options. Modified: head/sys/amd64/conf/GENERIC head/sys/arm/conf/CRB head/sys/i386/conf/GENERIC head/sys/mips/conf/OCTEON1 head/sys/modules/aic7xxx/ahc/Makefile head/sys/modules/aic7xxx/ahd/Makefile head/sys/powerpc/conf/GENERIC head/sys/powerpc/conf/GENERIC64 head/sys/sparc64/conf/GENERIC Modified: head/sys/amd64/conf/GENERIC ============================================================================== --- head/sys/amd64/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/amd64/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) @@ -123,11 +123,7 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. device ahd # AHA39320/29320 and onboard AIC79xx devices -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~215k to driver. device esp # AMD Am53C974 (Tekram DC-390(T)) device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family Modified: head/sys/arm/conf/CRB ============================================================================== --- head/sys/arm/conf/CRB Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/arm/conf/CRB Wed Nov 29 23:41:49 2017 (r326377) @@ -84,11 +84,6 @@ device "7seg" # SCSI Controllers -#options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. -#options AHD_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~215k to driver. - options XSCALE_CACHE_READ_WRITE_ALLOCATE device md device random # Entropy device Modified: head/sys/i386/conf/GENERIC ============================================================================== --- head/sys/i386/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/i386/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) @@ -120,11 +120,6 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. -device ahd # AHA39320/29320 and onboard AIC79xx devices -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~215k to driver. device esp # AMD Am53C974 (Tekram DC-390(T)) device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family Modified: head/sys/mips/conf/OCTEON1 ============================================================================== --- head/sys/mips/conf/OCTEON1 Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/mips/conf/OCTEON1 Wed Nov 29 23:41:49 2017 (r326377) @@ -118,11 +118,7 @@ options ROOTDEVNAME=\"ufs:cf0s2a\" # Default root fil # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. device ahd # AHA39320/29320 and onboard AIC79xx devices -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~215k to driver. device esp # AMD Am53C974 (Tekram DC-390(T)) device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family Modified: head/sys/modules/aic7xxx/ahc/Makefile ============================================================================== --- head/sys/modules/aic7xxx/ahc/Makefile Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/modules/aic7xxx/ahc/Makefile Wed Nov 29 23:41:49 2017 (r326377) @@ -9,7 +9,7 @@ KMOD= ahc SUBDIR+= ahc_isa ahc_pci GENSRCS= aic7xxx_seq.h aic7xxx_reg.h -AHC_REG_PRETTY_PRINT=1 +# AHC_REG_PRETTY_PRINT=1 REG_PRINT_OPT= .ifdef AHC_REG_PRETTY_PRINT GENSRCS+= aic7xxx_reg_print.c Modified: head/sys/modules/aic7xxx/ahd/Makefile ============================================================================== --- head/sys/modules/aic7xxx/ahd/Makefile Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/modules/aic7xxx/ahd/Makefile Wed Nov 29 23:41:49 2017 (r326377) @@ -6,7 +6,7 @@ KMOD= ahd GENSRCS= aic79xx_seq.h aic79xx_reg.h REG_PRINT_OPT= -AHD_REG_PRETTY_PRINT=1 +# AHD_REG_PRETTY_PRINT=1 .ifdef AHD_REG_PRETTY_PRINT GENSRCS += aic79xx_reg_print.c CFLAGS+= -DAHD_REG_PRETTY_PRINT=1 Modified: head/sys/powerpc/conf/GENERIC ============================================================================== --- head/sys/powerpc/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/powerpc/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) @@ -118,8 +118,6 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 S # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters device mpt # LSI-Logic MPT-Fusion Modified: head/sys/powerpc/conf/GENERIC64 ============================================================================== --- head/sys/powerpc/conf/GENERIC64 Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/powerpc/conf/GENERIC64 Wed Nov 29 23:41:49 2017 (r326377) @@ -114,8 +114,6 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 S # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters device mpt # LSI-Logic MPT-Fusion Modified: head/sys/sparc64/conf/GENERIC ============================================================================== --- head/sys/sparc64/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) +++ head/sys/sparc64/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) @@ -112,8 +112,6 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 S # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug - # output. Adds ~128k to driver. device esp # AMD Am53C974, Sun ESP and FAS families device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters From owner-svn-src-head@freebsd.org Wed Nov 29 23:52:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18834DED3AE; Wed, 29 Nov 2017 23:52:33 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0F3E69E63; Wed, 29 Nov 2017 23:52:32 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATNqVCh058852; Wed, 29 Nov 2017 23:52:31 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATNqVKc058851; Wed, 29 Nov 2017 23:52:31 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201711292352.vATNqVKc058851@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 29 Nov 2017 23:52:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326378 - head/sys/x86/cpufreq X-SVN-Group: head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/sys/x86/cpufreq X-SVN-Commit-Revision: 326378 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 23:52:33 -0000 Author: jkim Date: Wed Nov 29 23:52:31 2017 New Revision: 326378 URL: https://svnweb.freebsd.org/changeset/base/326378 Log: Fix style(9). Modified: head/sys/x86/cpufreq/hwpstate.c Modified: head/sys/x86/cpufreq/hwpstate.c ============================================================================== --- head/sys/x86/cpufreq/hwpstate.c Wed Nov 29 23:41:49 2017 (r326377) +++ head/sys/x86/cpufreq/hwpstate.c Wed Nov 29 23:52:31 2017 (r326378) @@ -90,10 +90,10 @@ __FBSDID("$FreeBSD$"); #define AMD_17H_CUR_FID(msr) ((msr) & 0xFF) #define HWPSTATE_DEBUG(dev, msg...) \ - do{ \ - if(hwpstate_verbose) \ + do { \ + if (hwpstate_verbose) \ device_printf(dev, msg); \ - }while(0) + } while (0) struct hwpstate_setting { int freq; /* CPU clock in Mhz or 100ths of a percent. */ @@ -125,7 +125,7 @@ static int hwpstate_goto_pstate(device_t dev, int psta static int hwpstate_verbose = 0; SYSCTL_INT(_debug, OID_AUTO, hwpstate_verbose, CTLFLAG_RWTUN, - &hwpstate_verbose, 0, "Debug hwpstate"); + &hwpstate_verbose, 0, "Debug hwpstate"); static device_method_t hwpstate_methods[] = { /* Device interface */ @@ -169,7 +169,7 @@ hwpstate_goto_pstate(device_t dev, int pstate) int limit; int id = pstate; int error; - + /* get the current pstate limit */ msr = rdmsr(MSR_AMD_10H_11H_LIMIT); limit = AMD_10H_11H_GET_PSTATE_LIMIT(msr); @@ -197,7 +197,7 @@ hwpstate_goto_pstate(device_t dev, int pstate) sched_bind(curthread, i); thread_unlock(curthread); /* wait loop (100*100 usec is enough ?) */ - for (j = 0; j < 100; j++){ + for (j = 0; j < 100; j++) { /* get the result. not assure msr=id */ msr = rdmsr(MSR_AMD_10H_11H_STATUS); if (msr == id) @@ -250,7 +250,7 @@ hwpstate_get(device_t dev, struct cf_setting *cf) if (cf == NULL) return (EINVAL); msr = rdmsr(MSR_AMD_10H_11H_STATUS); - if(msr >= sc->cfnum) + if (msr >= sc->cfnum) return (EINVAL); set = sc->hwpstate_settings[msr]; @@ -425,7 +425,7 @@ hwpstate_get_info_from_msr(device_t dev) fid = AMD_10H_11H_CUR_FID(msr); /* Convert fid/did to frequency. */ - switch(family) { + switch (family) { case 0x11: hwpstate_set[i].freq = (100 * (fid + 0x08)) >> did; break; From owner-svn-src-head@freebsd.org Thu Nov 30 00:47:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D10A5DEF0EF; Thu, 30 Nov 2017 00:47:45 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail108.syd.optusnet.com.au (mail108.syd.optusnet.com.au [211.29.132.59]) by mx1.freebsd.org (Postfix) with ESMTP id 20F8D6C0D6; Thu, 30 Nov 2017 00:47:45 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 036D91A63D9; Thu, 30 Nov 2017 11:46:20 +1100 (AEDT) Date: Thu, 30 Nov 2017 11:46:20 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Alex Richardson cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326375 - head/share/mk In-Reply-To: <201711292116.vATLGEB2091742@repo.freebsd.org> Message-ID: <20171130110747.B1188@besplex.bde.org> References: <201711292116.vATLGEB2091742@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=KeqiiUQD c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=HgAegpf116_E81IoGS0A:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 00:47:45 -0000 On Wed, 29 Nov 2017, Alex Richardson wrote: > Log: > Don't fail the build due to clang integer constant range warnings > > This warning checks whether a constant is out of range of the integer > type. An example is `comparison of 'u_int' > 4294967295 is always false` > and in this case the warning makes sense. > However, when the type is a typedef that can be either 64 or 32 bits the > if condition is only tautological in some configurations so this should > not be a warning that fails the build. Even when the type is not a typedef, its limits are MD (except POSIX specifies precise limits for unsigned char and signed char). > Reviewed by: dim > Approved by: jhb (mentor) > Differential Revision: https://reviews.freebsd.org/D12912 > > Modified: > head/share/mk/bsd.sys.mk > > Modified: head/share/mk/bsd.sys.mk > ============================================================================== > --- head/share/mk/bsd.sys.mk Wed Nov 29 20:44:40 2017 (r326374) > +++ head/share/mk/bsd.sys.mk Wed Nov 29 21:16:14 2017 (r326375) > @@ -81,6 +81,9 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef > .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000 > CWARNFLAGS.clang+= -Wno-address-of-packed-member > .endif > +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000 > +CWARNFLAGS.clang+= -Wno-error=tautological-constant-compare > +.endif > .endif # WARNS <= 3 > .if ${WARNS} <= 2 > CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter But this breaks the warning in all cases. There are related problems for signedness, especially for typedefed types and plain char. Robust code must not assume any particular signedness unless the type is documented as unsigned integral, so it checks for < 0. Then if compilers warn about tautological comparisons with 0, the warnings are usually "fixed" by removing the checks. Then if the type or typedef is changed to signed, the code breaks. It is better to break the warning as above. Bruce From owner-svn-src-head@freebsd.org Thu Nov 30 01:22:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BDCBDEFCFF; Thu, 30 Nov 2017 01:22:19 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail108.syd.optusnet.com.au (mail108.syd.optusnet.com.au [211.29.132.59]) by mx1.freebsd.org (Postfix) with ESMTP id 628126D23B; Thu, 30 Nov 2017 01:22:18 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.102] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 313B71A6DAE; Thu, 30 Nov 2017 12:19:19 +1100 (AEDT) Date: Thu, 30 Nov 2017 12:19:18 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Scott Long cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326377 - in head/sys: amd64/conf arm/conf i386/conf mips/conf modules/aic7xxx/ahc modules/aic7xxx/ahd powerpc/conf sparc64/conf In-Reply-To: <201711292341.vATNfoSS054606@repo.freebsd.org> Message-ID: <20171130115317.X1349@besplex.bde.org> References: <201711292341.vATNfoSS054606@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=cK6QihWN c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=6Qs8Of_ElRUx6x6vf64A:9 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 01:22:19 -0000 On Wed, 29 Nov 2017, Scott Long wrote: > Log: > It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from > the standard kernels. They are still available as custom compile > options. MI NOTES still gives MI sizes for these options. It seems unlikely that these sizes are still correct even for 1 arch where they were measured on. > Modified: head/sys/amd64/conf/GENERIC > ============================================================================== > --- head/sys/amd64/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) > +++ head/sys/amd64/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) > @@ -123,11 +123,7 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 > > # SCSI Controllers > device ahc # AHA2940 and onboard AIC7xxx devices > -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug > - # output. Adds ~128k to driver. > device ahd # AHA39320/29320 and onboard AIC79xx devices > -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug > - # output. Adds ~215k to driver. k is a bogus unit for memory sizes. NOTES has the same bug. > Modified: head/sys/i386/conf/GENERIC > ============================================================================== > --- head/sys/i386/conf/GENERIC Wed Nov 29 23:28:40 2017 (r326376) > +++ head/sys/i386/conf/GENERIC Wed Nov 29 23:41:49 2017 (r326377) > @@ -120,11 +120,6 @@ device siis # SiliconImage SiI3124/SiI3132/SiI3531 > > # SCSI Controllers > device ahc # AHA2940 and onboard AIC7xxx devices > -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug > - # output. Adds ~128k to driver. > -device ahd # AHA39320/29320 and onboard AIC79xx devices > -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug > - # output. Adds ~215k to driver. > device esp # AMD Am53C974 (Tekram DC-390(T)) > device hptiop # Highpoint RocketRaid 3xxx series > device isp # Qlogic family > This also removes ahd. This bug is only new on i386/GENERIC. Other arches except amd64 never had ahd. arm/conf/CRB was most broken -- it had 2 PRETTY options but neither ahc or ahd. Perhaps these old drivers don't belong in any GENERIC. Bruce From owner-svn-src-head@freebsd.org Thu Nov 30 01:40:08 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45A0FDF05ED; Thu, 30 Nov 2017 01:40:08 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FAF46DD43; Thu, 30 Nov 2017 01:40:08 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU1e7ec001293; Thu, 30 Nov 2017 01:40:07 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU1e7dC001292; Thu, 30 Nov 2017 01:40:07 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201711300140.vAU1e7dC001292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Thu, 30 Nov 2017 01:40:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326383 - head/sys/x86/cpufreq X-SVN-Group: head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/sys/x86/cpufreq X-SVN-Commit-Revision: 326383 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 01:40:08 -0000 Author: jkim Date: Thu Nov 30 01:40:07 2017 New Revision: 326383 URL: https://svnweb.freebsd.org/changeset/base/326383 Log: Add a tunable "debug.hwpstate_verify" to check P-state after changing it and turn it off by default. It is very inefficient to verify current P-state of each core, especially for CPUs with many cores. When multiple commands are requested to the same power domain before completion of pending transitions, the last command is executed according to the manual. Because requests are serialized by the caller, all cores will receive the same command for each call. Do not call sched_bind() and sched_unbind(). It is redundant because the caller does it anyway. Modified: head/sys/x86/cpufreq/hwpstate.c Modified: head/sys/x86/cpufreq/hwpstate.c ============================================================================== --- head/sys/x86/cpufreq/hwpstate.c Thu Nov 30 00:27:49 2017 (r326382) +++ head/sys/x86/cpufreq/hwpstate.c Thu Nov 30 01:40:07 2017 (r326383) @@ -123,10 +123,14 @@ static int hwpstate_get_info_from_acpi_perf(device_t d static int hwpstate_get_info_from_msr(device_t dev); static int hwpstate_goto_pstate(device_t dev, int pstate_id); -static int hwpstate_verbose = 0; +static int hwpstate_verbose; SYSCTL_INT(_debug, OID_AUTO, hwpstate_verbose, CTLFLAG_RWTUN, &hwpstate_verbose, 0, "Debug hwpstate"); +static int hwpstate_verify; +SYSCTL_INT(_debug, OID_AUTO, hwpstate_verify, CTLFLAG_RWTUN, + &hwpstate_verify, 0, "Verify P-state after setting"); + static device_method_t hwpstate_methods[] = { /* Device interface */ DEVMETHOD(device_identify, hwpstate_identify), @@ -160,15 +164,13 @@ DRIVER_MODULE(hwpstate, cpu, hwpstate_driver, hwpstate * Go to Px-state on all cpus considering the limit. */ static int -hwpstate_goto_pstate(device_t dev, int pstate) +hwpstate_goto_pstate(device_t dev, int id) { sbintime_t sbt; int i; uint64_t msr; int j; int limit; - int id = pstate; - int error; /* get the current pstate limit */ msr = rdmsr(MSR_AMD_10H_11H_LIMIT); @@ -176,47 +178,57 @@ hwpstate_goto_pstate(device_t dev, int pstate) if (limit > id) id = limit; + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, + PCPU_GET(cpuid)); + /* Go To Px-state */ + wrmsr(MSR_AMD_10H_11H_CONTROL, id); + /* * We are going to the same Px-state on all cpus. * Probably should take _PSD into account. */ - error = 0; CPU_FOREACH(i) { + if (i == PCPU_GET(cpuid)) + continue; + /* Bind to each cpu. */ thread_lock(curthread); sched_bind(curthread, i); thread_unlock(curthread); - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", - id, PCPU_GET(cpuid)); + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, i); /* Go To Px-state */ wrmsr(MSR_AMD_10H_11H_CONTROL, id); } - CPU_FOREACH(i) { - /* Bind to each cpu. */ - thread_lock(curthread); - sched_bind(curthread, i); - thread_unlock(curthread); - /* wait loop (100*100 usec is enough ?) */ - for (j = 0; j < 100; j++) { - /* get the result. not assure msr=id */ - msr = rdmsr(MSR_AMD_10H_11H_STATUS); - if (msr == id) - break; - sbt = SBT_1MS / 10; - tsleep_sbt(dev, PZERO, "pstate_goto", sbt, - sbt >> tc_precexp, 0); + + /* + * Verify whether each core is in the requested P-state. + */ + if (hwpstate_verify) { + CPU_FOREACH(i) { + thread_lock(curthread); + sched_bind(curthread, i); + thread_unlock(curthread); + /* wait loop (100*100 usec is enough ?) */ + for (j = 0; j < 100; j++) { + /* get the result. not assure msr=id */ + msr = rdmsr(MSR_AMD_10H_11H_STATUS); + if (msr == id) + break; + sbt = SBT_1MS / 10; + tsleep_sbt(dev, PZERO, "pstate_goto", sbt, + sbt >> tc_precexp, 0); + } + HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", + (int)msr, i); + if (msr != id) { + HWPSTATE_DEBUG(dev, + "error: loop is not enough.\n"); + return (ENXIO); + } } - HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", - (int)msr, PCPU_GET(cpuid)); - if (msr != id) { - HWPSTATE_DEBUG(dev, "error: loop is not enough.\n"); - error = ENXIO; - } } - thread_lock(curthread); - sched_unbind(curthread); - thread_unlock(curthread); - return (error); + + return (0); } static int From owner-svn-src-head@freebsd.org Thu Nov 30 03:02:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1403DDF3E43; Thu, 30 Nov 2017 03:02:47 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B840C71002; Thu, 30 Nov 2017 03:02:46 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id KF7Ver3DVRDG7KF7WeZf1L; Wed, 29 Nov 2017 20:02:40 -0700 X-Authority-Analysis: v=2.2 cv=b+PC2pOx c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=sC3jslCIGhcA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=GeZk732AS-P6FUiDfOsA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id B1432413; Wed, 29 Nov 2017 19:02:36 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id vAU32aGw002438; Wed, 29 Nov 2017 19:02:36 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id vAU1tJfe070900; Wed, 29 Nov 2017 17:56:55 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201711300156.vAU1tJfe070900@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Hans Petter Selasky cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326376 - head/sys/kern In-Reply-To: Message from Hans Petter Selasky of "Wed, 29 Nov 2017 23:28:40 +0000." <201711292328.vATNSeOM046518@repo.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Nov 2017 17:55:19 -0800 X-CMAE-Envelope: MS4wfOOsIBcqqwXMVhMly9c7pdXzu7GOl8YR37egqm9S5luI/Qj/ohkx3PYlJJtAGuPQlFXk/33v6d6r12dCPpjKERBOWXGtgbs5mFTf1gC3t9i0LFwtGPUe PRk5QuZ80/yYQOB9o6z/WZpIMiGsuNUuJhfPkGpYYVc1hRswLhVBSdDTO78g+A6fF2u9bjhsg9Q8+esfowD2exvxqVAMxHWEtTHt3WX2gaX2lyjwfayPbrKZ EEZUKl35Nw1ST/Ha1oSNPJa4UpRgBo5kMyRWPJZwsvmKkPEUxhIlWCgW2PR3RsNR X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 03:02:47 -0000 In message <201711292328.vATNSeOM046518@repo.freebsd.org>, Hans Petter Selasky writes: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 > > Log: > The sched_add() function is not only used when the thread is initially > started, but also by the turnstiles to mark a thread as runnable for > all locks, for instance sleepqueues do: > setrunnable()->sched_wakeup()->sched_add() > > In r326218 code was added to allow booting from non-zero CPU numbers > by setting the ts_cpu field inside the ULE scheduler's sched_add() > function. This had an undesired side-effect that prior sched_pin() and > sched_bind() calls got disregarded. This patch fixes the > initialization of the ts_cpu field for the ULE scheduler to only > happen once when the initial thread is constructed during system > init. Forking will then later on ensure that a valid ts_cpu value gets > copied to all children. > > Reviewed by: jhb, kib > Discussed with: nwhitehorn > MFC after: 1 month > Differential revision: https://reviews.freebsd.org/D13298 > Sponsored by: Mellanox Technologies > > Modified: > head/sys/kern/sched_ule.c > > Modified: head/sys/kern/sched_ule.c > ============================================================================= > = > --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 (r326375) > +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 2017 (r326376) > @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) > > /* Add thread0's load since it's running. */ > TDQ_LOCK(tdq); > - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */ > thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); > tdq_load_add(tdq, &thread0); > tdq->tdq_lowpri = thread0.td_priority; > @@ -1642,6 +1641,7 @@ schedinit(void) > ts0->ts_ltick = ticks; > ts0->ts_ftick = ticks; > ts0->ts_slice = 0; > + ts0->ts_cpu = curcpu; /* set valid CPU number */ > } > > /* > @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to the > * target cpu. > */ > - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > cpu = sched_pickcpu(td, flags); > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); > Thank you. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-svn-src-head@freebsd.org Thu Nov 30 04:06:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6E12DF572C; Thu, 30 Nov 2017 04:06:47 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E1D5729F5; Thu, 30 Nov 2017 04:06:47 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id KG7XezdG9GvLHKG7YeRVR1; Wed, 29 Nov 2017 21:06:45 -0700 X-Authority-Analysis: v=2.2 cv=a9pAzQaF c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=sC3jslCIGhcA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=78CjFdp1RPxrEkepkUMA:9 a=VPwzsgBRkA50Rqjy:21 a=hH7XQIo0ZUhc2Vji:21 a=NRzsi8a8g4lbl3px:21 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id CCB76582; Wed, 29 Nov 2017 20:06:42 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id vAU46g8Q012714; Wed, 29 Nov 2017 20:06:42 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id vAU46gCX012711; Wed, 29 Nov 2017 20:06:42 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201711300406.vAU46gCX012711@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Hans Petter Selasky cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326376 - head/sys/kern In-Reply-To: Message from Hans Petter Selasky of "Wed, 29 Nov 2017 23:28:40 +0000." <201711292328.vATNSeOM046518@repo.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Nov 2017 20:06:42 -0800 X-CMAE-Envelope: MS4wfBo7+ckhybYttgz9j68s7+TF3NcPR/3VAI+Z8O/49Cbxw/LwcmM7Xjs1rFim6THkFuFjv4izzyyUjABhy0u6180g93YHyzad6Aaijy7NMuviLLZBmM61 npx6sikvvyiPx1oKNMYljZsAj3C8NRSq9cIETo+Jvlwf53gNFxUfO1Bv1LYg8Byp5u6X+8CvLw3H+OgIb3ysyiRhOIwoaN9tgr9BGg+Vmsq5jqbBOGuhamJt +DBIy1BLpaNWg7GFPK45c+8YZCTsiXRfxkrOzf4f/hn/XgiUp16lUq5IbKThsd+K X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 04:06:47 -0000 In message <201711292328.vATNSeOM046518@repo.freebsd.org>, Hans Petter Selasky writes: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 > > Log: > The sched_add() function is not only used when the thread is initially > started, but also by the turnstiles to mark a thread as runnable for > all locks, for instance sleepqueues do: > setrunnable()->sched_wakeup()->sched_add() > > In r326218 code was added to allow booting from non-zero CPU numbers > by setting the ts_cpu field inside the ULE scheduler's sched_add() > function. This had an undesired side-effect that prior sched_pin() and > sched_bind() calls got disregarded. This patch fixes the > initialization of the ts_cpu field for the ULE scheduler to only > happen once when the initial thread is constructed during system > init. Forking will then later on ensure that a valid ts_cpu value gets > copied to all children. > > Reviewed by: jhb, kib > Discussed with: nwhitehorn > MFC after: 1 month > Differential revision: https://reviews.freebsd.org/D13298 > Sponsored by: Mellanox Technologies > > Modified: > head/sys/kern/sched_ule.c > > Modified: head/sys/kern/sched_ule.c > ============================================================================= > = > --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 (r326375) > +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 2017 (r326376) > @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) > > /* Add thread0's load since it's running. */ > TDQ_LOCK(tdq); > - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */ > thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); > tdq_load_add(tdq, &thread0); > tdq->tdq_lowpri = thread0.td_priority; > @@ -1642,6 +1641,7 @@ schedinit(void) > ts0->ts_ltick = ticks; > ts0->ts_ftick = ticks; > ts0->ts_slice = 0; > + ts0->ts_cpu = curcpu; /* set valid CPU number */ > } > > /* > @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to the > * target cpu. > */ > - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > cpu = sched_pickcpu(td, flags); > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); > Hi Hans, Sorry I didn't get to this sooner: $JOB (and I have a change window in an hour). I sent you a couple of photos from my laptop however I've been able to reproduce this on my testbed. It boots okay without INVARIANTS and and WITNESS however with them it gets a double fault. Type '?' for a list of commands, 'help' for more detailed help. OK include /boot/testbed/amd64-current-t / testbed/amd64-current-t (12.0-CURRENT) loader file selected / unload complete vfs.zfs.arc_max set to 1024M vm.kmem_size set to 1536M vm.kmem_size_max set to 1536M currdev set to disk1s3f: /boot/kernel/kernel text=0xc3262c data=0xc5288+0x3a5048 syms=[0x8+0x116508+0x8+0x11285a] /boot/kernel/if_sk.ko size 0x17cd0 at 0x16c6000 /boot/kernel/if_nfe.ko size 0x1a710 at 0x16de000 /boot/kernel/opensolaris.ko size 0xd6e0 at 0x16f9000 /boot/kernel/zfs.ko size 0x4ef290 at 0x1707000 /boot/kernel/amdtemp.ko size 0x53d0 at 0x1bf7000 loading required module 'amdsmn' /boot/kernel/amdsmn.ko size 0x2d78 at 0x1bfd000 /boot/kernel/cpufreq.ko size 0x168c0 at 0x1c00000 /boot/kernel/tmpfs.ko size 0x203b0 at 0x1c17000 /boot/kernel/fdescfs.ko size 0x9d98 at 0x1c38000 /boot/kernel/nullfs.ko size 0xd308 at 0x1c42000 - new kernel has been loaded OK boot Booting... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r326382M: Wed Nov 29 19:44:24 PST 2017 root@bob:/export/obj/opt/src/svn-current/amd64.amd64/sys/BREAK4 amd64 FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn) WARNING: WITNESS option enabled, expect reduced performance. VT(vga): text 80x25 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2612.09-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x60fb2 Family=0xf Model=0x6b Stepping=2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f SVM: NAsids=64 real memory = 5368709120 (5120 MB) avail memory = 5134057472 (4896 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) arc4random: no preloaded entropy cache Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aEventBlock: 32/8 (20171110/tbfadt-748) Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aControlBlock: 16/8 (20171110/tbfadt-748) Firmware Warning (ACPI): 32/64X length mismatch in FADT/PmTimerBlock: 32/8 (20171110/tbfadt-748) Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 64/8 (20171110/tbfadt-748) Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe1Block: 128/8 (20171110/tbfadt-748) Firmware Warning (ACPI): Invalid length for FADT/Pm1aEventBlock: 8, using default 32 (20171110/tbfadt-850) Firmware Warning (ACPI): Invalid length for FADT/Pm1aControlBlock: 8, using default 16 (20171110/tbfadt-850) Firmware Warning (ACPI): Invalid length for FADT/PmTimerBlock: 8, using default 32 (20171110/tbfadt-850) ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard random: entropy device external interface module_register_init: MOD_LOAD (vesa, 0xffffffff80cad0f0, 0) error 19 nexus0 vtvga0: on motherboard cryptosoft0: on motherboard acpi0: on motherboard ACPI Error: Could not find/resolve named package element: \_PR_.CPU0 (20171110/dspkginit-513) acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 attimer0: port 0x40-0x43 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: iomem 0xfefff000-0xfefff3ff irq 0,8 on acpi0 Timecounter "HPET" frequency 25000000 Hz quality 950 atrtc0: port 0x70-0x73 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 2.0 on pci0 usbus0 on ohci0 ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 2.1 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 4.0 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xf700-0xf70f mem 0xfe02d000-0xfe02dfff irq 23 at device 5.0 on pci0 ata2: at channel 0 on atapci1 ata3: at channel 1 on atapci1 atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xf200-0xf20f mem 0xfe02c000-0xfe02cfff irq 20 at device 5.1 on pci0 ata4: at channel 0 on atapci2 ata5: at channel 1 on atapci2 atapci3: port 0xf100-0xf107,0xf000-0xf003,0xef00-0xef07,0xee00-0xee03,0xed00-0xed0f mem 0xfe02b000-0xfe02bfff irq 21 at device 5.2 on pci0 ata6: at channel 0 on atapci3 ata7: at channel 1 on atapci3 pcib1: at device 6.0 on pci0 pci1: on pcib1 pci1: at device 6.0 (no driver attached) skc0: port 0xd800-0xd8ff mem 0xfdef8000-0xfdefbfff irq 17 at device 7.0 on pci1 skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x1) sk0: on skc0 sk0: Ethernet address: 00:13:46:73:0c:0d miibus0: on sk0 e1000phy0: PHY 0 on miibus0 e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto pci0: at device 6.1 (no driver attached) nfe0: port 0xec00-0xec07 mem 0xfe02a000-0xfe02afff,0xfe029000-0xfe0290ff,0xfe028000-0xfe02800f irq 23 at device 8.0 on pci0 miibus1: on nfe0 e1000phy1: PHY 1 on miibus1 e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow nfe0: Using defaults for TSO: 65518/35/2048 nfe0: Ethernet address: 00:18:f3:a0:dc:a4 pcib2: at device 15.0 on pci0 pci2: on pcib2 vgapci0: mem 0xe8000000-0xefffffff,0xfddfe000-0xfdd fffff irq 16 at device 0.0 on pci2 vgapci0: Boot video device amdtemp0: on hostb3 acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: console (9600,n,8,1) orm0: at iomem 0xc0000-0xcc7ff on isa0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] powernow0: on cpu0 powernow1: on cpu1 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 uhub0: 10 ports with 10 removable, self powered uhub1: 10 ports with 10 removable, self powered ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 device ada0: Serial Number S00JJ20X889726 ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada0: 76351MB (156368016 512 byte sectors) ada1 at ata0 bus 0 scbus0 target 1 lun 0 ada1: ATA-7 device ada1: Serial Number Y327ZJ1E ada1: 133.000MB/s transfers (UDMA6, PIO 8192bytes) ada1: 117246MB (240121728 512 byte sectors) ada2 at ata2 bus 0 scbus2 target 0 lun 0 ada2: ATA8-ACS SATA 3.x device ada2: Serial Number 6VMRAGM7 ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada2: 476940MB (976773168 512 byte sectors) ada3 at ata3 bus 0 scbus3 target 0 lun 0 ada3: ATA-7 SATA 2.x device ada3: Serial Number 9QFA0729 ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada3: 305245MB (625142448 512 byte sectors) SMP: AP CPU #1 Launched! random: unblocking device. WARNING: WITNESS option enabled, expect reduced performance. arc4random: no preloaded entropy cache arc4random: no preloaded entropy cache Trying to mount root from ufs:/dev/ada0s3f [rw]... sysctl: kern.ipc.nmbclusters=32768 at line 28: Invalid argument Setting hostuuid: 3428e43e-d455-9478-f48e-14a3b4bb94dd. Setting hostid: 0x448c33e0. Fatal double fault rip 0xffffffff80793105 rsp 0xfffffe0036358fe0 rbp 0xfffffe0036359150 rax 0 rdx 0xfffffe00363590f8 rbx 0x2 rcx 0x1 rsi 0x2 rdi 0 r8 0xfffffe00363592f0 r9 0xfffffe0036359350 r10 0 r11 0 r12 0x60 r13 0xfffffe003635b200 r14 0xfffffe0036359d30 r15 0x60 rflags 0x10002 cs 0x20 ss 0x28 ds 0x3b es 0x3b fs 0x13 gs 0x1b fsbase 0x80063f8b0 gsbase 0xffffffff8142be80 kgsbase 0 cpuid = 1; apic id = 01 panic: double fault cpuid = 1 time = 1511985616 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame 0xfffffe00003fdb40 kdb_backtrace() at kdb_backtrace+0x53/frame 0xfffffe00003fdc10 vpanic() at vpanic+0x268/frame 0xfffffe00003fdce0 kproc_shutdown() at kproc_shutdown/frame 0xfffffe00003fdd40 dblfault_handler() at dblfault_handler+0x387/frame 0xfffffe00003fdf30 Xdblfault() at Xdblfault+0xac/frame 0xfffffe00003fdf30 --- trap 0x17, rip = 0xffffffff80793105, rsp = 0xfffffe0036358fe0, rbp = 0xfffffe0036359150 --- cpu_search_lowest() at cpu_search_lowest+0x1b5/frame 0xfffffe0036359150 cpu_search_lowest() at cpu_search_lowest+0x35e/frame 0xfffffe00363592d0 sched_lowest() at sched_lowest+0x66/frame 0xfffffe0036359340 sched_pickcpu() at sched_pickcpu+0x5af/frame 0xfffffe0036359470 sched_add() at sched_add+0x111/frame 0xfffffe00363594e0 sched_wakeup() at sched_wakeup+0x10a/frame 0xfffffe0036359530 setrunnable() at setrunnable+0x1c8/frame 0xfffffe0036359580 sleepq_resume_thread() at sleepq_resume_thread+0x634/frame 0xfffffe0036359600 sleepq_remove_matching() at sleepq_remove_matching+0xa9/frame 0xfffffe0036359660 sleepq_broadcast() at sleepq_broadcast+0x142/frame 0xfffffe00363596a0 wakeup() at wakeup+0x29/frame 0xfffffe00363596d0 g_io_request() at g_io_request+0x739/frame 0xfffffe0036359750 vdev_geom_io_start() at vdev_geom_io_start+0x582/frame 0xfffffe0036359800 zio_vdev_io_start() at zio_vdev_io_start+0x962/frame 0xfffffe0036359950 zio_execute() at zio_execute+0x28a/frame 0xfffffe00363599b0 zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359a00 vdev_cache_read() at vdev_cache_read+0x47c/frame 0xfffffe0036359b20 zio_vdev_io_start() at zio_vdev_io_start+0x82a/frame 0xfffffe0036359c70 zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359cd0 zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359d20 vdev_mirror_io_start() at vdev_mirror_io_start+0x28a/frame 0xfffffe0036359dc0 zio_vdev_io_start() at zio_vdev_io_start+0x11f/frame 0xfffffe0036359f10 zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359f70 zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359fc0 arc_read() at arc_read+0x1e8f/frame 0xfffffe003635a380 traverse_prefetch_metadata() at traverse_prefetch_metadata+0x21b/frame 0xfffffe003635a3f0 traverse_visitbp() at traverse_visitbp+0x831/frame 0xfffffe003635a600 traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635a810 traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635aa20 traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ac30 traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ae40 traverse_dnode() at traverse_dnode+0x176/frame 0xfffffe003635aee0 traverse_visitbp() at traverse_visitbp+0xde8/frame 0xfffffe003635b0f0 traverse_impl() at traverse_impl+0x73a/frame 0xfffffe003635b320 traverse_dataset_resume() at traverse_dataset_resume+0x92/frame 0xfffffe003635b390 traverse_dataset() at traverse_dataset+0x43/frame 0xfffffe003635b3d0 traverse_pool() at traverse_pool+0x1da/frame 0xfffffe003635b4d0 spa_load_verify() at spa_load_verify+0x15e/frame 0xfffffe003635b580 spa_load_impl() at spa_load_impl+0x2241/frame 0xfffffe003635ba30 spa_load() at spa_load+0x301/frame 0xfffffe003635baf0 spa_load_impl() at spa_load_impl+0x1445/frame 0xfffffe003635bfa0 spa_load() at spa_load+0x301/frame 0xfffffe003635c060 spa_load_best() at spa_load_best+0xbd/frame 0xfffffe003635c100 spa_open_common() at spa_open_common+0x228/frame 0xfffffe003635c1f0 spa_open() at spa_open+0x35/frame 0xfffffe003635c220 pool_status_check() at pool_status_check+0x8e/frame 0xfffffe003635c280 zfsdev_ioctl() at zfsdev_ioctl+0xb9d/frame 0xfffffe003635c540 devfs_ioctl() at devfs_ioctl+0x187/frame 0xfffffe003635c5e0 VOP_IOCTL_APV() at VOP_IOCTL_APV+0x227/frame 0xfffffe003635c660 VOP_IOCTL() at VOP_IOCTL+0x6e/frame 0xfffffe003635c6e0 vn_ioctl() at vn_ioctl+0x1cc/frame 0xfffffe003635c820 devfs_ioctl_f() at devfs_ioctl_f+0x62/frame 0xfffffe003635c870 fo_ioctl() at fo_ioctl+0x4c/frame 0xfffffe003635c8b0 kern_ioctl() at kern_ioctl+0x361/frame 0xfffffe003635c980 sys_ioctl() at sys_ioctl+0x2af/frame 0xfffffe003635ca60 syscallenter() at syscallenter+0x4e4/frame 0xfffffe003635cb30 amd64_syscall() at amd64_syscall+0x1b/frame 0xfffffe003635cbf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe003635cbf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80143b5aa, rsp = 0x7fffffffcf78, rbp = 0x7fffffffcff0 --- KDB: enter: panic [ thread pid 44 tid 100102 ] Stopped at breakpoint+0x5: popq %rbp db> The type of CPU doesn't matter. The testbed (above) is an AMD X2 5000+ The laptop is a core i3. I'll poke around at it after tonight's change window, before bed. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-svn-src-head@freebsd.org Thu Nov 30 05:01:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B1BDDF72C4; Thu, 30 Nov 2017 05:01:57 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 685C17447B; Thu, 30 Nov 2017 05:01:57 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU51uYY095957; Thu, 30 Nov 2017 05:01:56 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU51uH1095955; Thu, 30 Nov 2017 05:01:56 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201711300501.vAU51uH1095955@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 30 Nov 2017 05:01:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326384 - head/stand/powerpc/kboot X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/powerpc/kboot X-SVN-Commit-Revision: 326384 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 05:01:57 -0000 Author: imp Date: Thu Nov 30 05:01:56 2017 New Revision: 326384 URL: https://svnweb.freebsd.org/changeset/base/326384 Log: Use const pointers to avoid casting away constness. The host_open interface was a legitimate mismatch to the userboot function, while the other pointers didn't need to be non-const. This makes the powerpc warning free again. Sponsored by: Netflix Modified: head/stand/powerpc/kboot/host_syscall.h head/stand/powerpc/kboot/kbootfdt.c Modified: head/stand/powerpc/kboot/host_syscall.h ============================================================================== --- head/stand/powerpc/kboot/host_syscall.h Thu Nov 30 01:40:07 2017 (r326383) +++ head/stand/powerpc/kboot/host_syscall.h Thu Nov 30 05:01:56 2017 (r326384) @@ -33,7 +33,7 @@ ssize_t host_read(int fd, void *buf, size_t nbyte); ssize_t host_write(int fd, const void *buf, size_t nbyte); ssize_t host_seek(int fd, int64_t offset, int whence); -int host_open(char *path, int flags, int mode); +int host_open(const char *path, int flags, int mode); int host_close(int fd); void *host_mmap(void *addr, size_t len, int prot, int flags, int fd, int); #define host_getmem(size) host_mmap(0, size, 3 /* RW */, 0x22 /* ANON */, -1, 0); Modified: head/stand/powerpc/kboot/kbootfdt.c ============================================================================== --- head/stand/powerpc/kboot/kbootfdt.c Thu Nov 30 01:40:07 2017 (r326383) +++ head/stand/powerpc/kboot/kbootfdt.c Thu Nov 30 05:01:56 2017 (r326384) @@ -119,7 +119,7 @@ fdt_linux_fixups(void *fdtp) offset = fdt_path_offset(fdtp, "/ibm,opal"); if (offset > 0) { - uint64_t *base, *size; + const uint64_t *base, *size; base = fdt_getprop(fdtp, offset, "opal-base-address", &len); size = fdt_getprop(fdtp, offset, "opal-runtime-size", @@ -130,7 +130,7 @@ fdt_linux_fixups(void *fdtp) } offset = fdt_path_offset(fdtp, "/rtas"); if (offset > 0) { - uint32_t *base, *size; + const uint32_t *base, *size; base = fdt_getprop(fdtp, offset, "linux,rtas-base", &len); size = fdt_getprop(fdtp, offset, "rtas-size", &len); if (base != NULL && size != NULL) From owner-svn-src-head@freebsd.org Thu Nov 30 05:13:27 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36009DF75CD; Thu, 30 Nov 2017 05:13:27 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (unknown [IPv6:2602:304:b010:ef20::f2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.catspoiler.org", Issuer "gw.catspoiler.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C2EAD749B4; Thu, 30 Nov 2017 05:13:26 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTPS id vAU5DMSn076605 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Nov 2017 21:13:23 -0800 (PST) (envelope-from truckman@FreeBSD.org) Date: Wed, 29 Nov 2017 21:13:17 -0800 (PST) From: Don Lewis Subject: Re: svn commit: r326376 - head/sys/kern To: Cy Schubert cc: Hans Petter Selasky , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org In-Reply-To: <201711300406.vAU46gCX012711@slippy.cwsent.com> Message-ID: References: Message from Hans Petter Selasky of "Wed, 29 Nov 2017 23:28:40 +0000." <201711292328.vATNSeOM046518@repo.freebsd.org> <201711300406.vAU46gCX012711@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 05:13:27 -0000 On 29 Nov, Cy Schubert wrote: > In message <201711292328.vATNSeOM046518@repo.freebsd.org>, Hans Petter > Selasky > writes: >> Author: hselasky >> Date: Wed Nov 29 23:28:40 2017 >> New Revision: 326376 >> URL: https://svnweb.freebsd.org/changeset/base/326376 >> >> Log: >> The sched_add() function is not only used when the thread is initially >> started, but also by the turnstiles to mark a thread as runnable for >> all locks, for instance sleepqueues do: >> setrunnable()->sched_wakeup()->sched_add() >> >> In r326218 code was added to allow booting from non-zero CPU numbers >> by setting the ts_cpu field inside the ULE scheduler's sched_add() >> function. This had an undesired side-effect that prior sched_pin() and >> sched_bind() calls got disregarded. This patch fixes the >> initialization of the ts_cpu field for the ULE scheduler to only >> happen once when the initial thread is constructed during system >> init. Forking will then later on ensure that a valid ts_cpu value gets >> copied to all children. >> >> Reviewed by: jhb, kib >> Discussed with: nwhitehorn >> MFC after: 1 month >> Differential revision: https://reviews.freebsd.org/D13298 >> Sponsored by: Mellanox Technologies >> >> Modified: >> head/sys/kern/sched_ule.c >> >> Modified: head/sys/kern/sched_ule.c >> ============================================================================= >> = >> --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 (r326375) >> +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 2017 (r326376) >> @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) >> >> /* Add thread0's load since it's running. */ >> TDQ_LOCK(tdq); >> - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */ >> thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); >> tdq_load_add(tdq, &thread0); >> tdq->tdq_lowpri = thread0.td_priority; >> @@ -1642,6 +1641,7 @@ schedinit(void) >> ts0->ts_ltick = ticks; >> ts0->ts_ftick = ticks; >> ts0->ts_slice = 0; >> + ts0->ts_cpu = curcpu; /* set valid CPU number */ >> } >> >> /* >> @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) >> * Pick the destination cpu and if it isn't ours transfer to the >> * target cpu. >> */ >> - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ >> cpu = sched_pickcpu(td, flags); >> tdq = sched_setcpu(td, cpu, flags); >> tdq_add(tdq, td, flags); >> > > Hi Hans, > > Sorry I didn't get to this sooner: $JOB (and I have a change window in an > hour). > > I sent you a couple of photos from my laptop however I've been able to > reproduce this on my testbed. > > It boots okay without INVARIANTS and and WITNESS however with them it gets > a double fault. > > Type '?' for a list of commands, 'help' for more detailed help. > OK include /boot/testbed/amd64-current-t > / > > testbed/amd64-current-t (12.0-CURRENT) loader file selected > / > unload complete > vfs.zfs.arc_max set to 1024M > vm.kmem_size set to 1536M > vm.kmem_size_max set to 1536M > currdev set to disk1s3f: > > /boot/kernel/kernel text=0xc3262c data=0xc5288+0x3a5048 > syms=[0x8+0x116508+0x8+0x11285a] > /boot/kernel/if_sk.ko size 0x17cd0 at 0x16c6000 > /boot/kernel/if_nfe.ko size 0x1a710 at 0x16de000 > /boot/kernel/opensolaris.ko size 0xd6e0 at 0x16f9000 > /boot/kernel/zfs.ko size 0x4ef290 at 0x1707000 > /boot/kernel/amdtemp.ko size 0x53d0 at 0x1bf7000 > loading required module 'amdsmn' > /boot/kernel/amdsmn.ko size 0x2d78 at 0x1bfd000 > /boot/kernel/cpufreq.ko size 0x168c0 at 0x1c00000 > /boot/kernel/tmpfs.ko size 0x203b0 at 0x1c17000 > /boot/kernel/fdescfs.ko size 0x9d98 at 0x1c38000 > /boot/kernel/nullfs.ko size 0xd308 at 0x1c42000 > - > new kernel has been loaded > > OK boot > Booting... > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2017 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 12.0-CURRENT #0 r326382M: Wed Nov 29 19:44:24 PST 2017 > root@bob:/export/obj/opt/src/svn-current/amd64.amd64/sys/BREAK4 amd64 > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM > 5.0.0svn) > WARNING: WITNESS option enabled, expect reduced performance. > VT(vga): text 80x25 > CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2612.09-MHz K8-class > CPU) > Origin="AuthenticAMD" Id=0x60fb2 Family=0xf Model=0x6b Stepping=2 > Features=0x178bfbff CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > Features2=0x2001 > AMD Features=0xea500800 > AMD Features2=0x11f > SVM: NAsids=64 > real memory = 5368709120 (5120 MB) > avail memory = 5134057472 (4896 MB) > Event timer "LAPIC" quality 100 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > arc4random: no preloaded entropy cache > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aEventBlock: > 32/8 (20171110/tbfadt-748) > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aControlBlock: > 16/8 (20171110/tbfadt-748) > Firmware Warning (ACPI): 32/64X length mismatch in FADT/PmTimerBlock: 32/8 > (20171110/tbfadt-748) > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 64/8 > (20171110/tbfadt-748) > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe1Block: 128/8 > (20171110/tbfadt-748) > Firmware Warning (ACPI): Invalid length for FADT/Pm1aEventBlock: 8, using > default 32 (20171110/tbfadt-850) > Firmware Warning (ACPI): Invalid length for FADT/Pm1aControlBlock: 8, using > default 16 (20171110/tbfadt-850) > Firmware Warning (ACPI): Invalid length for FADT/PmTimerBlock: 8, using > default 32 (20171110/tbfadt-850) > ioapic0: Changing APIC ID to 4 > ioapic0 irqs 0-23 on motherboard > random: entropy device external interface > module_register_init: MOD_LOAD (vesa, 0xffffffff80cad0f0, 0) error 19 > nexus0 > vtvga0: on motherboard > cryptosoft0: on motherboard > acpi0: on motherboard > ACPI Error: Could not find/resolve named package element: \_PR_.CPU0 > (20171110/dspkginit-513) > acpi0: Power Button (fixed) > cpu0: on acpi0 > cpu1: on acpi0 > attimer0: port 0x40-0x43 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > hpet0: iomem 0xfefff000-0xfefff3ff irq 0,8 on > acpi0 > Timecounter "HPET" frequency 25000000 Hz quality 950 > atrtc0: port 0x70-0x73 on acpi0 > atrtc0: registered as a time-of-day clock, resolution 1.000000s > Event timer "RTC" frequency 32768 Hz quality 0 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pci0: at device 0.0 (no driver attached) > isab0: at device 1.0 on pci0 > isa0: on isab0 > ohci0: mem 0xfe02f000-0xfe02ffff irq > 21 at device 2.0 on pci0 > usbus0 on ohci0 > ehci0: mem 0xfe02e000-0xfe02e0ff > irq 22 at device 2.1 on pci0 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 4.0 on pci0 > ata0: at channel 0 on atapci0 > ata1: at channel 1 on atapci0 > atapci1: port > 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xf700-0xf70f mem > 0xfe02d000-0xfe02dfff irq 23 at device 5.0 on pci0 > ata2: at channel 0 on atapci1 > ata3: at channel 1 on atapci1 > atapci2: port > 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xf200-0xf20f mem > 0xfe02c000-0xfe02cfff irq 20 at device 5.1 on pci0 > ata4: at channel 0 on atapci2 > ata5: at channel 1 on atapci2 > atapci3: port > 0xf100-0xf107,0xf000-0xf003,0xef00-0xef07,0xee00-0xee03,0xed00-0xed0f mem > 0xfe02b000-0xfe02bfff irq 21 at device 5.2 on pci0 > ata6: at channel 0 on atapci3 > ata7: at channel 1 on atapci3 > pcib1: at device 6.0 on pci0 > pci1: on pcib1 > pci1: at device 6.0 (no driver attached) > skc0: port 0xd800-0xd8ff mem > 0xfdef8000-0xfdefbfff irq 17 at device 7.0 on pci1 > skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x1) > sk0: on skc0 > sk0: Ethernet address: 00:13:46:73:0c:0d > miibus0: on sk0 > e1000phy0: PHY 0 on miibus0 > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > pci0: at device 6.1 (no driver attached) > nfe0: port 0xec00-0xec07 mem > 0xfe02a000-0xfe02afff,0xfe029000-0xfe0290ff,0xfe028000-0xfe02800f irq 23 at > device 8.0 on pci0 > miibus1: on nfe0 > e1000phy1: PHY 1 on miibus1 > e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, > auto-flow > nfe0: Using defaults for TSO: 65518/35/2048 > nfe0: Ethernet address: 00:18:f3:a0:dc:a4 > pcib2: at device 15.0 on pci0 > pci2: on pcib2 > vgapci0: mem 0xe8000000-0xefffffff,0xfddfe000-0xfdd > fffff irq 16 at device 0.0 on pci2 > vgapci0: Boot video device > amdtemp0: on hostb3 > acpi_tz0: on acpi0 > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart0: console (9600,n,8,1) > orm0: at iomem 0xc0000-0xcc7ff on isa0 > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > powernow0: on cpu0 > powernow1: on cpu1 > ZFS filesystem version: 5 > ZFS storage pool version: features support (5000) > Timecounters tick every 1.000 msec > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > uhub0: 10 ports with 10 removable, self powered > uhub1: 10 ports with 10 removable, self powered > ada0 at ata0 bus 0 scbus0 target 0 lun 0 > ada0: ATA-7 device > ada0: Serial Number S00JJ20X889726 > ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) > ada0: 76351MB (156368016 512 byte sectors) > ada1 at ata0 bus 0 scbus0 target 1 lun 0 > ada1: ATA-7 device > ada1: Serial Number Y327ZJ1E > ada1: 133.000MB/s transfers (UDMA6, PIO 8192bytes) > ada1: 117246MB (240121728 512 byte sectors) > ada2 at ata2 bus 0 scbus2 target 0 lun 0 > ada2: ATA8-ACS SATA 3.x device > ada2: Serial Number 6VMRAGM7 > ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada2: 476940MB (976773168 512 byte sectors) > ada3 at ata3 bus 0 scbus3 target 0 lun 0 > ada3: ATA-7 SATA 2.x device > ada3: Serial Number 9QFA0729 > ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada3: 305245MB (625142448 512 byte sectors) > SMP: AP CPU #1 Launched! > random: unblocking device. > WARNING: WITNESS option enabled, expect reduced performance. > arc4random: no preloaded entropy cache > arc4random: no preloaded entropy cache > Trying to mount root from ufs:/dev/ada0s3f [rw]... > sysctl: kern.ipc.nmbclusters=32768 at line 28: Invalid argument > Setting hostuuid: 3428e43e-d455-9478-f48e-14a3b4bb94dd. > Setting hostid: 0x448c33e0. > > Fatal double fault > rip 0xffffffff80793105 rsp 0xfffffe0036358fe0 rbp 0xfffffe0036359150 > rax 0 rdx 0xfffffe00363590f8 rbx 0x2 > rcx 0x1 rsi 0x2 rdi 0 > r8 0xfffffe00363592f0 r9 0xfffffe0036359350 r10 0 > r11 0 r12 0x60 r13 0xfffffe003635b200 > r14 0xfffffe0036359d30 r15 0x60 rflags 0x10002 > cs 0x20 ss 0x28 ds 0x3b es 0x3b fs 0x13 gs 0x1b > fsbase 0x80063f8b0 gsbase 0xffffffff8142be80 kgsbase 0 > cpuid = 1; apic id = 01 > panic: double fault > cpuid = 1 > time = 1511985616 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame > 0xfffffe00003fdb40 > kdb_backtrace() at kdb_backtrace+0x53/frame 0xfffffe00003fdc10 > vpanic() at vpanic+0x268/frame 0xfffffe00003fdce0 > kproc_shutdown() at kproc_shutdown/frame 0xfffffe00003fdd40 > dblfault_handler() at dblfault_handler+0x387/frame 0xfffffe00003fdf30 > Xdblfault() at Xdblfault+0xac/frame 0xfffffe00003fdf30 > --- trap 0x17, rip = 0xffffffff80793105, rsp = 0xfffffe0036358fe0, rbp = > 0xfffffe0036359150 --- > cpu_search_lowest() at cpu_search_lowest+0x1b5/frame 0xfffffe0036359150 > cpu_search_lowest() at cpu_search_lowest+0x35e/frame 0xfffffe00363592d0 > sched_lowest() at sched_lowest+0x66/frame 0xfffffe0036359340 > sched_pickcpu() at sched_pickcpu+0x5af/frame 0xfffffe0036359470 > sched_add() at sched_add+0x111/frame 0xfffffe00363594e0 > sched_wakeup() at sched_wakeup+0x10a/frame 0xfffffe0036359530 > setrunnable() at setrunnable+0x1c8/frame 0xfffffe0036359580 > sleepq_resume_thread() at sleepq_resume_thread+0x634/frame > 0xfffffe0036359600 > sleepq_remove_matching() at sleepq_remove_matching+0xa9/frame > 0xfffffe0036359660 > sleepq_broadcast() at sleepq_broadcast+0x142/frame 0xfffffe00363596a0 > wakeup() at wakeup+0x29/frame 0xfffffe00363596d0 > g_io_request() at g_io_request+0x739/frame 0xfffffe0036359750 > vdev_geom_io_start() at vdev_geom_io_start+0x582/frame 0xfffffe0036359800 > zio_vdev_io_start() at zio_vdev_io_start+0x962/frame 0xfffffe0036359950 > zio_execute() at zio_execute+0x28a/frame 0xfffffe00363599b0 > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359a00 > vdev_cache_read() at vdev_cache_read+0x47c/frame 0xfffffe0036359b20 > zio_vdev_io_start() at zio_vdev_io_start+0x82a/frame 0xfffffe0036359c70 > zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359cd0 > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359d20 > vdev_mirror_io_start() at vdev_mirror_io_start+0x28a/frame > 0xfffffe0036359dc0 > zio_vdev_io_start() at zio_vdev_io_start+0x11f/frame 0xfffffe0036359f10 > zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359f70 > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359fc0 > arc_read() at arc_read+0x1e8f/frame 0xfffffe003635a380 > traverse_prefetch_metadata() at traverse_prefetch_metadata+0x21b/frame > 0xfffffe003635a3f0 > traverse_visitbp() at traverse_visitbp+0x831/frame 0xfffffe003635a600 > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635a810 > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635aa20 > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ac30 > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ae40 > traverse_dnode() at traverse_dnode+0x176/frame 0xfffffe003635aee0 > traverse_visitbp() at traverse_visitbp+0xde8/frame 0xfffffe003635b0f0 > traverse_impl() at traverse_impl+0x73a/frame 0xfffffe003635b320 > traverse_dataset_resume() at traverse_dataset_resume+0x92/frame > 0xfffffe003635b390 > traverse_dataset() at traverse_dataset+0x43/frame 0xfffffe003635b3d0 > traverse_pool() at traverse_pool+0x1da/frame 0xfffffe003635b4d0 > spa_load_verify() at spa_load_verify+0x15e/frame 0xfffffe003635b580 > spa_load_impl() at spa_load_impl+0x2241/frame 0xfffffe003635ba30 > spa_load() at spa_load+0x301/frame 0xfffffe003635baf0 > spa_load_impl() at spa_load_impl+0x1445/frame 0xfffffe003635bfa0 > spa_load() at spa_load+0x301/frame 0xfffffe003635c060 > spa_load_best() at spa_load_best+0xbd/frame 0xfffffe003635c100 > spa_open_common() at spa_open_common+0x228/frame 0xfffffe003635c1f0 > spa_open() at spa_open+0x35/frame 0xfffffe003635c220 > pool_status_check() at pool_status_check+0x8e/frame 0xfffffe003635c280 > zfsdev_ioctl() at zfsdev_ioctl+0xb9d/frame 0xfffffe003635c540 > devfs_ioctl() at devfs_ioctl+0x187/frame 0xfffffe003635c5e0 > VOP_IOCTL_APV() at VOP_IOCTL_APV+0x227/frame 0xfffffe003635c660 > VOP_IOCTL() at VOP_IOCTL+0x6e/frame 0xfffffe003635c6e0 > vn_ioctl() at vn_ioctl+0x1cc/frame 0xfffffe003635c820 > devfs_ioctl_f() at devfs_ioctl_f+0x62/frame 0xfffffe003635c870 > fo_ioctl() at fo_ioctl+0x4c/frame 0xfffffe003635c8b0 > kern_ioctl() at kern_ioctl+0x361/frame 0xfffffe003635c980 > sys_ioctl() at sys_ioctl+0x2af/frame 0xfffffe003635ca60 > syscallenter() at syscallenter+0x4e4/frame 0xfffffe003635cb30 > amd64_syscall() at amd64_syscall+0x1b/frame 0xfffffe003635cbf0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe003635cbf0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80143b5aa, rsp = > 0x7fffffffcf78, rbp = 0x7fffffffcff0 --- > KDB: enter: panic > [ thread pid 44 tid 100102 ] > Stopped at breakpoint+0x5: popq %rbp > db> Looks like a kernel stack overflow. That's a pretty deep call stack. Try setting kern.kstack_pages to a larger value (> 4) in the loader. From owner-svn-src-head@freebsd.org Thu Nov 30 05:18:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33A24DF78C3; Thu, 30 Nov 2017 05:18:56 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6CAE74C06; Thu, 30 Nov 2017 05:18:55 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk0-x22f.google.com with SMTP id j207so7409848qke.10; Wed, 29 Nov 2017 21:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ioiFQLH2FfQSP0EC3WzBDH5UOpoBMbcmK5Nam+XtNtE=; b=AkrzwxXdJiUBG0dxsQAjyRBrcZcdq50f6SEp7FXUGwZZzQIqWIS7oNeDD0J+uZ8X2x QQSrkgdRMOUj/qTNAhUGICVsgFk6S1wD4kMGKih225p9/HH9ZzBH7QibTAqk8jc75umc 7/bGK5LFUmP/DTJe5eur+duju8cL0rERVZxU2YiL28j4u2vgK32w/PjVSNfQttq+cYI2 cyeMHYir0cn+RKY/OWHebJf5PZkEvboHY1guttTAac8YcM7B6jAFmYVRDzYIEH94tBBX FJZ9eJHyRVhqAmoMh9VRp63AFin6WUXNHK+92NAw61zNOBbay1fYCYjJJgLnnJWTT93F +uaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ioiFQLH2FfQSP0EC3WzBDH5UOpoBMbcmK5Nam+XtNtE=; b=J5bI7kpvyY+uBfGFbavIxDIgjZC70wMlv7ezY8XmjzvY0aJsxzbB+Z5Fbk2DI0OoBe hBStVZUaAzaORijzqi8vnzKjsq8Y9QeM7S0WJrfHclsoziPRE0gJMBtO06JTzvSG+LwZ Ar1LBNI6qRsJ9NPr0feRMHpjUqeVBMke+L2QH2OkEcJRpjQZzZXvaarcBbcDB6LPyUPa 898T0yL8NWGASTAC67m9BojcdVZgEL623ZpvG2hcag11QepDEzOWmv3D4yG1Z63gNDTE 4yAXE/Xs2wIwutEPC2Av+VjfYRdU+OclomK5tIXA9DMq9BloASdcHkNr4jpFGbvhwbY+ 4pGA== X-Gm-Message-State: AKGB3mL0/f3CEGZllCwYVs+M/DlCUvvWnGind9w8T01hOM5ulN9U5WEb F2tuabsLiXmRmuo4SXPD23VjmlnKLBwqSmRRq4q5SQ== X-Google-Smtp-Source: AGs4zMZnBLJvu39KGbCE5pDuSJT2Vsr1guJ+/nxi/MIz+RE/d/VldbFQuYaybgDnKPDHbCpJC/tO7xQw8ztq/qVaSXM= X-Received: by 10.55.19.19 with SMTP id d19mr1002599qkh.189.1512019134517; Wed, 29 Nov 2017 21:18:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.44.214 with HTTP; Wed, 29 Nov 2017 21:18:54 -0800 (PST) In-Reply-To: References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> <20171127064940.GA91390@x2.osted.lan> From: Mateusz Guzik Date: Thu, 30 Nov 2017 06:18:54 +0100 Message-ID: Subject: Re: svn commit: r326200 - head/sys/kern To: Alan Somers Cc: Peter Holm , Mateusz Guzik , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 05:18:56 -0000 So this is not my bug after all, it just had unfortunate timing with scheduler changes. I can't reproduce anything with r326376. On Tue, Nov 28, 2017 at 9:37 PM, Alan Somers wrote: > On Sun, Nov 26, 2017 at 11:49 PM, Peter Holm wrote: > > On Sun, Nov 26, 2017 at 10:11:21PM +0100, Mateusz Guzik wrote: > >> On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > >> > >> > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > >> > > Author: mjg > >> > > Date: Sat Nov 25 20:49:27 2017 > >> > > New Revision: 326200 > >> > > URL: https://svnweb.freebsd.org/changeset/base/326200 > >> > > > >> > > Log: > >> > > Add the missing lockstat check for thread lock. > >> > > > >> > > Modified: > >> > > head/sys/kern/kern_mutex.c > >> > > > >> > > Modified: head/sys/kern/kern_mutex.c > >> > > ============================================================ > >> > ================== > >> > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > >> > (r326199) > >> > > >> > Hi Mateusz, > >> > > >> > Could this be yours? > >> > > >> > spin lock 0xffffffff81ddc100 (turnstile chain) held by > 0xfffff80014e57000 > >> > (tid 100277) too long > >> > panic: spin lock held too long > >> > cpuid = 20 > >> > time = 1511677687 > >> > KDB: stack backtrace: > >> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > >> > 0xfffffe104f86ea40 > >> > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > >> > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > >> > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > >> > 0xfffffe104f86eba0 > >> > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > >> > 0xfffffe104f86ed10 > >> > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > >> > 0xfffffe104f86edb0 > >> > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > >> > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > >> > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > >> > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > >> > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > >> > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > >> > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > >> > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > >> > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > >> > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > >> > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > >> > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > >> > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > >> > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > >> > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > >> > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > >> > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > >> > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > >> > > >> > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > >> > > >> > - Peter > >> > > >> > >> Fixed in r326237. > >> > > > > Yes, that fixed the issue reported. > > After some more tests I got this one: > > > > 20171127 01:19:57 all (31/561): mkfifo2c.sh > > spin lock 0xffffffff81edace0 (smp rendezvous) held by 0xfffff80d2ae31000 > (tid 100529) too long > > panic: spin lock held too long > > cpuid = 14 > > time = 1511742163 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe105096c0b0 > > vpanic() at vpanic+0x19c/frame 0xfffffe105096c130 > > panic() at panic+0x43/frame 0xfffffe105096c190 > > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > 0xfffffe105096c200 > > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > 0xfffffe105096c240 > > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > 0xfffffe105096c2c0 > > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > 0xfffffe105096c2f0 > > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > 0xfffffe105096c340 > > allocbuf() at allocbuf+0x107/frame 0xfffffe105096c3b0 > > brelse() at brelse+0x219/frame 0xfffffe105096c400 > > trunc_dependencies() at trunc_dependencies+0x745/frame 0xfffffe105096c4a0 > > softdep_setup_freeblocks() at softdep_setup_freeblocks+0x7b4/frame > 0xfffffe105096c510 > > ffs_truncate() at ffs_truncate+0x6b8/frame 0xfffffe105096c700 > > ufs_inactive() at ufs_inactive+0x1cb/frame 0xfffffe105096c740 > > VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xfd/frame 0xfffffe105096c770 > > vinactive() at vinactive+0xe3/frame 0xfffffe105096c7c0 > > vputx() at vputx+0x31e/frame 0xfffffe105096c820 > > kern_rmdirat() at kern_rmdirat+0x1c9/frame 0xfffffe105096c980 > > amd64_syscall() at amd64_syscall+0x7ab/frame 0xfffffe105096cab0 > > > > Not so much more info here, I'm afraid: > > https://people.freebsd.org/~pho/stress/log/mateusz005.txt > > > > -- > > Peter > > I'm seeing a similar panic, at r326314: > > panic: spin lock held too long > cpuid = 3 > time = 1511900768 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe0b58bcef00 > vpanic() at vpanic+0x19c/frame 0xfffffe0b58bcef80 > panic() at panic+0x43/frame 0xfffffe0b58bcefe0 > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > 0xfffffe0b58bcf050 > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > 0xfffffe0b58bcf090 > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > 0xfffffe0b58bcf110 > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > 0xfffffe0b58bcf140 > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > 0xfffffe0b58bcf190 > vm_thread_stack_dispose() at vm_thread_stack_dispose+0x2f/frame > 0xfffffe0b58bcf1e0 > thread_free() at thread_free+0x39/frame 0xfffffe0b58bcf200 > thread_reap() at thread_reap+0x9e/frame 0xfffffe0b58bcf220 > thread_alloc() at thread_alloc+0xf/frame 0xfffffe0b58bcf240 > kthread_add() at kthread_add+0x43/frame 0xfffffe0b58bcf2e0 > _taskqueue_start_threads() at _taskqueue_start_threads+0xde/frame > 0xfffffe0b58bcf370 > taskqueue_start_threads() at taskqueue_start_threads+0x3f/frame > 0xfffffe0b58bcf3d0 > taskq_create_proc() at taskq_create_proc+0x92/frame 0xfffffe0b58bcf400 > spa_activate() at spa_activate+0x372/frame 0xfffffe0b58bcf4a0 > spa_open_common() at spa_open_common+0xd2/frame 0xfffffe0b58bcf510 > spa_get_stats() at spa_get_stats+0x4f/frame 0xfffffe0b58bcf6f0 > zfs_ioc_pool_stats() at zfs_ioc_pool_stats+0x25/frame 0xfffffe0b58bcf730 > zfsdev_ioctl() at zfsdev_ioctl+0x766/frame 0xfffffe0b58bcf7e0 > devfs_ioctl() at devfs_ioctl+0xcb/frame 0xfffffe0b58bcf830 > VOP_IOCTL_APV() at VOP_IOCTL_APV+0xd9/frame 0xfffffe0b58bcf860 > vn_ioctl() at vn_ioctl+0x124/frame 0xfffffe0b58bcf970 > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe0b58bcf990 > kern_ioctl() at kern_ioctl+0x2c4/frame 0xfffffe0b58bcf9f0 > sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe0b58bcfac0 > amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0b58bcfbf0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0b58bcfbf0 > -- Mateusz Guzik From owner-svn-src-head@freebsd.org Thu Nov 30 06:03:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF611DF9591; Thu, 30 Nov 2017 06:03:13 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6B779765DE; Thu, 30 Nov 2017 06:03:12 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id KHw7eSI8Oss4TKHw9eXK2i; Wed, 29 Nov 2017 23:03:06 -0700 X-Authority-Analysis: v=2.2 cv=JuuBlIwC c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=sC3jslCIGhcA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=knX8lsZhYKQ9mOk2PLYA:9 a=k2ETrr8GBex8efOi:21 a=kM0Jw4yGHRywIaKM:21 a=NRzsi8a8g4lbl3px:21 a=CjuIK1q_8ugA:10 a=xsL0faLc8PcA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 9C3D08C2; Wed, 29 Nov 2017 22:03:03 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id vAU633SG000577; Wed, 29 Nov 2017 22:03:03 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id vAU633IK000574; Wed, 29 Nov 2017 22:03:03 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201711300603.vAU633IK000574@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Don Lewis cc: Cy Schubert , Hans Petter Selasky , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326376 - head/sys/kern In-Reply-To: Message from Don Lewis of "Wed, 29 Nov 2017 21:13:17 -0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Nov 2017 22:03:03 -0800 X-CMAE-Envelope: MS4wfAjIrR27aXlpzUWnCNCAXH3FXo6cel5KjUp6+6u6OFDFdRKSrUeb5SJtVLwKaEG/ZLO2mybkXlukSaAgnLOoHIhjiT4pnR+V3FTRt5oeN0RVYAG1+GN3 gTCwDdgXe6NRV3MVDLKtYz08BwGlFdb1A6HTxdxb19bPBZAZU+RX7yUEjmMezUl1fx5sdH37NriWjFsqVK62b2kLWqtG+AEdDrWXSkoMLMhfLfjt18bEKSZj VvZa1LD7DqK3XdJ6lOX0aLa6R3qstQciBjspKXnlUutJ0uvXJ1qoHAGH7LcI2r3evZRQ0lb1GfD8bZFnsXfcJQ== X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 06:03:13 -0000 In message , Don Lewis writes: > On 29 Nov, Cy Schubert wrote: > > In message <201711292328.vATNSeOM046518@repo.freebsd.org>, Hans Petter > > Selasky > > writes: > >> Author: hselasky > >> Date: Wed Nov 29 23:28:40 2017 > >> New Revision: 326376 > >> URL: https://svnweb.freebsd.org/changeset/base/326376 > >> > >> Log: > >> The sched_add() function is not only used when the thread is initially > >> started, but also by the turnstiles to mark a thread as runnable for > >> all locks, for instance sleepqueues do: > >> setrunnable()->sched_wakeup()->sched_add() > >> > >> In r326218 code was added to allow booting from non-zero CPU numbers > >> by setting the ts_cpu field inside the ULE scheduler's sched_add() > >> function. This had an undesired side-effect that prior sched_pin() and > >> sched_bind() calls got disregarded. This patch fixes the > >> initialization of the ts_cpu field for the ULE scheduler to only > >> happen once when the initial thread is constructed during system > >> init. Forking will then later on ensure that a valid ts_cpu value gets > >> copied to all children. > >> > >> Reviewed by: jhb, kib > >> Discussed with: nwhitehorn > >> MFC after: 1 month > >> Differential revision: https://reviews.freebsd.org/D13298 > >> Sponsored by: Mellanox Technologies > >> > >> Modified: > >> head/sys/kern/sched_ule.c > >> > >> Modified: head/sys/kern/sched_ule.c > >> ========================================================================== > === > >> = > >> --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 (r32637 > 5) > >> +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 2017 (r32637 > 6) > >> @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) > >> > >> /* Add thread0's load since it's running. */ > >> TDQ_LOCK(tdq); > >> - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */ > >> thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); > >> tdq_load_add(tdq, &thread0); > >> tdq->tdq_lowpri = thread0.td_priority; > >> @@ -1642,6 +1641,7 @@ schedinit(void) > >> ts0->ts_ltick = ticks; > >> ts0->ts_ftick = ticks; > >> ts0->ts_slice = 0; > >> + ts0->ts_cpu = curcpu; /* set valid CPU number */ > >> } > >> > >> /* > >> @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) > >> * Pick the destination cpu and if it isn't ours transfer to the > >> * target cpu. > >> */ > >> - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */ > >> cpu = sched_pickcpu(td, flags); > >> tdq = sched_setcpu(td, cpu, flags); > >> tdq_add(tdq, td, flags); > >> > > > > Hi Hans, > > > > Sorry I didn't get to this sooner: $JOB (and I have a change window in an > > hour). > > > > I sent you a couple of photos from my laptop however I've been able to > > reproduce this on my testbed. > > > > It boots okay without INVARIANTS and and WITNESS however with them it gets > > a double fault. > > > > Type '?' for a list of commands, 'help' for more detailed help. > > OK include /boot/testbed/amd64-current-t > > / > > > > testbed/amd64-current-t (12.0-CURRENT) loader file selected > > / > > unload complete > > vfs.zfs.arc_max set to 1024M > > vm.kmem_size set to 1536M > > vm.kmem_size_max set to 1536M > > currdev set to disk1s3f: > > > > /boot/kernel/kernel text=0xc3262c data=0xc5288+0x3a5048 > > syms=[0x8+0x116508+0x8+0x11285a] > > /boot/kernel/if_sk.ko size 0x17cd0 at 0x16c6000 > > /boot/kernel/if_nfe.ko size 0x1a710 at 0x16de000 > > /boot/kernel/opensolaris.ko size 0xd6e0 at 0x16f9000 > > /boot/kernel/zfs.ko size 0x4ef290 at 0x1707000 > > /boot/kernel/amdtemp.ko size 0x53d0 at 0x1bf7000 > > loading required module 'amdsmn' > > /boot/kernel/amdsmn.ko size 0x2d78 at 0x1bfd000 > > /boot/kernel/cpufreq.ko size 0x168c0 at 0x1c00000 > > /boot/kernel/tmpfs.ko size 0x203b0 at 0x1c17000 > > /boot/kernel/fdescfs.ko size 0x9d98 at 0x1c38000 > > /boot/kernel/nullfs.ko size 0xd308 at 0x1c42000 > > - > > new kernel has been loaded > > > > OK boot > > Booting... > > GDB: no debug ports present > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Copyright (c) 1992-2017 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 12.0-CURRENT #0 r326382M: Wed Nov 29 19:44:24 PST 2017 > > root@bob:/export/obj/opt/src/svn-current/amd64.amd64/sys/BREAK4 amd64 > > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM > > 5.0.0svn) > > WARNING: WITNESS option enabled, expect reduced performance. > > VT(vga): text 80x25 > > CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2612.09-MHz K8-class > > CPU) > > Origin="AuthenticAMD" Id=0x60fb2 Family=0xf Model=0x6b Stepping=2 > > Features=0x178bfbff M > > CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > > Features2=0x2001 > > AMD Features=0xea500800 > > AMD Features2=0x11f > > SVM: NAsids=64 > > real memory = 5368709120 (5120 MB) > > avail memory = 5134057472 (4896 MB) > > Event timer "LAPIC" quality 100 > > ACPI APIC Table: > > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > > FreeBSD/SMP: 1 package(s) x 2 core(s) > > arc4random: no preloaded entropy cache > > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aEventBlock: > > 32/8 (20171110/tbfadt-748) > > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aControlBlock: > > 16/8 (20171110/tbfadt-748) > > Firmware Warning (ACPI): 32/64X length mismatch in FADT/PmTimerBlock: 32/8 > > (20171110/tbfadt-748) > > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 64/8 > > (20171110/tbfadt-748) > > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe1Block: 128/8 > > (20171110/tbfadt-748) > > Firmware Warning (ACPI): Invalid length for FADT/Pm1aEventBlock: 8, using > > default 32 (20171110/tbfadt-850) > > Firmware Warning (ACPI): Invalid length for FADT/Pm1aControlBlock: 8, using > > > default 16 (20171110/tbfadt-850) > > Firmware Warning (ACPI): Invalid length for FADT/PmTimerBlock: 8, using > > default 32 (20171110/tbfadt-850) > > ioapic0: Changing APIC ID to 4 > > ioapic0 irqs 0-23 on motherboard > > random: entropy device external interface > > module_register_init: MOD_LOAD (vesa, 0xffffffff80cad0f0, 0) error 19 > > nexus0 > > vtvga0: on motherboard > > cryptosoft0: on motherboard > > acpi0: on motherboard > > ACPI Error: Could not find/resolve named package element: \_PR_.CPU0 > > (20171110/dspkginit-513) > > acpi0: Power Button (fixed) > > cpu0: on acpi0 > > cpu1: on acpi0 > > attimer0: port 0x40-0x43 on acpi0 > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > Event timer "i8254" frequency 1193182 Hz quality 100 > > hpet0: iomem 0xfefff000-0xfefff3ff irq 0,8 on > > acpi0 > > Timecounter "HPET" frequency 25000000 Hz quality 950 > > atrtc0: port 0x70-0x73 on acpi0 > > atrtc0: registered as a time-of-day clock, resolution 1.000000s > > Event timer "RTC" frequency 32768 Hz quality 0 > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > > acpi_button0: on acpi0 > > pcib0: port 0xcf8-0xcff on acpi0 > > pci0: on pcib0 > > pci0: at device 0.0 (no driver attached) > > isab0: at device 1.0 on pci0 > > isa0: on isab0 > > ohci0: mem 0xfe02f000-0xfe02ffff irq > > 21 at device 2.0 on pci0 > > usbus0 on ohci0 > > ehci0: mem 0xfe02e000-0xfe02e0ff > > irq 22 at device 2.1 on pci0 > > usbus1: EHCI version 1.0 > > usbus1 on ehci0 > > atapci0: port > > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 4.0 on pci0 > > ata0: at channel 0 on atapci0 > > ata1: at channel 1 on atapci0 > > atapci1: port > > 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xf700-0xf70f mem > > 0xfe02d000-0xfe02dfff irq 23 at device 5.0 on pci0 > > ata2: at channel 0 on atapci1 > > ata3: at channel 1 on atapci1 > > atapci2: port > > 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xf200-0xf20f mem > > 0xfe02c000-0xfe02cfff irq 20 at device 5.1 on pci0 > > ata4: at channel 0 on atapci2 > > ata5: at channel 1 on atapci2 > > atapci3: port > > 0xf100-0xf107,0xf000-0xf003,0xef00-0xef07,0xee00-0xee03,0xed00-0xed0f mem > > 0xfe02b000-0xfe02bfff irq 21 at device 5.2 on pci0 > > ata6: at channel 0 on atapci3 > > ata7: at channel 1 on atapci3 > > pcib1: at device 6.0 on pci0 > > pci1: on pcib1 > > pci1: at device 6.0 (no driver attached) > > skc0: port 0xd800-0xd8ff mem > > 0xfdef8000-0xfdefbfff irq 17 at device 7.0 on pci1 > > skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x1) > > sk0: on skc0 > > sk0: Ethernet address: 00:13:46:73:0c:0d > > miibus0: on sk0 > > e1000phy0: PHY 0 on miibus0 > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > > pci0: at device 6.1 (no driver attached) > > nfe0: port 0xec00-0xec07 mem > > 0xfe02a000-0xfe02afff,0xfe029000-0xfe0290ff,0xfe028000-0xfe02800f irq 23 at > > > device 8.0 on pci0 > > miibus1: on nfe0 > > e1000phy1: PHY 1 on miibus1 > > e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, > > auto-flow > > nfe0: Using defaults for TSO: 65518/35/2048 > > nfe0: Ethernet address: 00:18:f3:a0:dc:a4 > > pcib2: at device 15.0 on pci0 > > pci2: on pcib2 > > vgapci0: mem 0xe8000000-0xefffffff,0xfddfe000-0xfd > d > > fffff irq 16 at device 0.0 on pci2 > > vgapci0: Boot video device > > amdtemp0: on hostb3 > > acpi_tz0: on acpi0 > > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > > uart0: console (9600,n,8,1) > > orm0: at iomem 0xc0000-0xcc7ff on isa0 > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > > atkbdc0: at port 0x60,0x64 on isa0 > > atkbd0: irq 1 on atkbdc0 > > kbd0 at atkbd0 > > atkbd0: [GIANT-LOCKED] > > powernow0: on cpu0 > > powernow1: on cpu1 > > ZFS filesystem version: 5 > > ZFS storage pool version: features support (5000) > > Timecounters tick every 1.000 msec > > usbus0: 12Mbps Full Speed USB v1.0 > > usbus1: 480Mbps High Speed USB v2.0 > > ugen0.1: at usbus0 > > uhub0: on usbus0 > > ugen1.1: at usbus1 > > uhub1: on usbus1 > > uhub0: 10 ports with 10 removable, self powered > > uhub1: 10 ports with 10 removable, self powered > > ada0 at ata0 bus 0 scbus0 target 0 lun 0 > > ada0: ATA-7 device > > ada0: Serial Number S00JJ20X889726 > > ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) > > ada0: 76351MB (156368016 512 byte sectors) > > ada1 at ata0 bus 0 scbus0 target 1 lun 0 > > ada1: ATA-7 device > > ada1: Serial Number Y327ZJ1E > > ada1: 133.000MB/s transfers (UDMA6, PIO 8192bytes) > > ada1: 117246MB (240121728 512 byte sectors) > > ada2 at ata2 bus 0 scbus2 target 0 lun 0 > > ada2: ATA8-ACS SATA 3.x device > > ada2: Serial Number 6VMRAGM7 > > ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > > ada2: 476940MB (976773168 512 byte sectors) > > ada3 at ata3 bus 0 scbus3 target 0 lun 0 > > ada3: ATA-7 SATA 2.x device > > ada3: Serial Number 9QFA0729 > > ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > > ada3: 305245MB (625142448 512 byte sectors) > > SMP: AP CPU #1 Launched! > > random: unblocking device. > > WARNING: WITNESS option enabled, expect reduced performance. > > arc4random: no preloaded entropy cache > > arc4random: no preloaded entropy cache > > Trying to mount root from ufs:/dev/ada0s3f [rw]... > > sysctl: kern.ipc.nmbclusters=32768 at line 28: Invalid argument > > Setting hostuuid: 3428e43e-d455-9478-f48e-14a3b4bb94dd. > > Setting hostid: 0x448c33e0. > > > > Fatal double fault > > rip 0xffffffff80793105 rsp 0xfffffe0036358fe0 rbp 0xfffffe0036359150 > > rax 0 rdx 0xfffffe00363590f8 rbx 0x2 > > rcx 0x1 rsi 0x2 rdi 0 > > r8 0xfffffe00363592f0 r9 0xfffffe0036359350 r10 0 > > r11 0 r12 0x60 r13 0xfffffe003635b200 > > r14 0xfffffe0036359d30 r15 0x60 rflags 0x10002 > > cs 0x20 ss 0x28 ds 0x3b es 0x3b fs 0x13 gs 0x1b > > fsbase 0x80063f8b0 gsbase 0xffffffff8142be80 kgsbase 0 > > cpuid = 1; apic id = 01 > > panic: double fault > > cpuid = 1 > > time = 1511985616 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame > > 0xfffffe00003fdb40 > > kdb_backtrace() at kdb_backtrace+0x53/frame 0xfffffe00003fdc10 > > vpanic() at vpanic+0x268/frame 0xfffffe00003fdce0 > > kproc_shutdown() at kproc_shutdown/frame 0xfffffe00003fdd40 > > dblfault_handler() at dblfault_handler+0x387/frame 0xfffffe00003fdf30 > > Xdblfault() at Xdblfault+0xac/frame 0xfffffe00003fdf30 > > --- trap 0x17, rip = 0xffffffff80793105, rsp = 0xfffffe0036358fe0, rbp = > > 0xfffffe0036359150 --- > > cpu_search_lowest() at cpu_search_lowest+0x1b5/frame 0xfffffe0036359150 > > cpu_search_lowest() at cpu_search_lowest+0x35e/frame 0xfffffe00363592d0 > > sched_lowest() at sched_lowest+0x66/frame 0xfffffe0036359340 > > sched_pickcpu() at sched_pickcpu+0x5af/frame 0xfffffe0036359470 > > sched_add() at sched_add+0x111/frame 0xfffffe00363594e0 > > sched_wakeup() at sched_wakeup+0x10a/frame 0xfffffe0036359530 > > setrunnable() at setrunnable+0x1c8/frame 0xfffffe0036359580 > > sleepq_resume_thread() at sleepq_resume_thread+0x634/frame > > 0xfffffe0036359600 > > sleepq_remove_matching() at sleepq_remove_matching+0xa9/frame > > 0xfffffe0036359660 > > sleepq_broadcast() at sleepq_broadcast+0x142/frame 0xfffffe00363596a0 > > wakeup() at wakeup+0x29/frame 0xfffffe00363596d0 > > g_io_request() at g_io_request+0x739/frame 0xfffffe0036359750 > > vdev_geom_io_start() at vdev_geom_io_start+0x582/frame 0xfffffe0036359800 > > zio_vdev_io_start() at zio_vdev_io_start+0x962/frame 0xfffffe0036359950 > > zio_execute() at zio_execute+0x28a/frame 0xfffffe00363599b0 > > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359a00 > > vdev_cache_read() at vdev_cache_read+0x47c/frame 0xfffffe0036359b20 > > zio_vdev_io_start() at zio_vdev_io_start+0x82a/frame 0xfffffe0036359c70 > > zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359cd0 > > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359d20 > > vdev_mirror_io_start() at vdev_mirror_io_start+0x28a/frame > > 0xfffffe0036359dc0 > > zio_vdev_io_start() at zio_vdev_io_start+0x11f/frame 0xfffffe0036359f10 > > zio_execute() at zio_execute+0x28a/frame 0xfffffe0036359f70 > > zio_nowait() at zio_nowait+0x129/frame 0xfffffe0036359fc0 > > arc_read() at arc_read+0x1e8f/frame 0xfffffe003635a380 > > traverse_prefetch_metadata() at traverse_prefetch_metadata+0x21b/frame > > 0xfffffe003635a3f0 > > traverse_visitbp() at traverse_visitbp+0x831/frame 0xfffffe003635a600 > > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635a810 > > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635aa20 > > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ac30 > > traverse_visitbp() at traverse_visitbp+0x8d6/frame 0xfffffe003635ae40 > > traverse_dnode() at traverse_dnode+0x176/frame 0xfffffe003635aee0 > > traverse_visitbp() at traverse_visitbp+0xde8/frame 0xfffffe003635b0f0 > > traverse_impl() at traverse_impl+0x73a/frame 0xfffffe003635b320 > > traverse_dataset_resume() at traverse_dataset_resume+0x92/frame > > 0xfffffe003635b390 > > traverse_dataset() at traverse_dataset+0x43/frame 0xfffffe003635b3d0 > > traverse_pool() at traverse_pool+0x1da/frame 0xfffffe003635b4d0 > > spa_load_verify() at spa_load_verify+0x15e/frame 0xfffffe003635b580 > > spa_load_impl() at spa_load_impl+0x2241/frame 0xfffffe003635ba30 > > spa_load() at spa_load+0x301/frame 0xfffffe003635baf0 > > spa_load_impl() at spa_load_impl+0x1445/frame 0xfffffe003635bfa0 > > spa_load() at spa_load+0x301/frame 0xfffffe003635c060 > > spa_load_best() at spa_load_best+0xbd/frame 0xfffffe003635c100 > > spa_open_common() at spa_open_common+0x228/frame 0xfffffe003635c1f0 > > spa_open() at spa_open+0x35/frame 0xfffffe003635c220 > > pool_status_check() at pool_status_check+0x8e/frame 0xfffffe003635c280 > > zfsdev_ioctl() at zfsdev_ioctl+0xb9d/frame 0xfffffe003635c540 > > devfs_ioctl() at devfs_ioctl+0x187/frame 0xfffffe003635c5e0 > > VOP_IOCTL_APV() at VOP_IOCTL_APV+0x227/frame 0xfffffe003635c660 > > VOP_IOCTL() at VOP_IOCTL+0x6e/frame 0xfffffe003635c6e0 > > vn_ioctl() at vn_ioctl+0x1cc/frame 0xfffffe003635c820 > > devfs_ioctl_f() at devfs_ioctl_f+0x62/frame 0xfffffe003635c870 > > fo_ioctl() at fo_ioctl+0x4c/frame 0xfffffe003635c8b0 > > kern_ioctl() at kern_ioctl+0x361/frame 0xfffffe003635c980 > > sys_ioctl() at sys_ioctl+0x2af/frame 0xfffffe003635ca60 > > syscallenter() at syscallenter+0x4e4/frame 0xfffffe003635cb30 > > amd64_syscall() at amd64_syscall+0x1b/frame 0xfffffe003635cbf0 > > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe003635cbf0 > > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80143b5aa, rsp = > > 0x7fffffffcf78, rbp = 0x7fffffffcff0 --- > > KDB: enter: panic > > [ thread pid 44 tid 100102 ] > > Stopped at breakpoint+0x5: popq %rbp > > db> > > Looks like a kernel stack overflow. That's a pretty deep call stack. > Try setting kern.kstack_pages to a larger value (> 4) in the loader. > Yes. That fixed it. Interestingly without WITNESS and INVARIANTS it booted but with, a stack overflow. We should probably consider increasing default kern.kstack_pages to 6. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-svn-src-head@freebsd.org Thu Nov 30 06:41:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4418DFA2D9; Thu, 30 Nov 2017 06:41:47 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B0E1776D1; Thu, 30 Nov 2017 06:41:46 +0000 (UTC) (envelope-from pho@holm.cc) Received: from x2.osted.lan (87-58-223-204-dynamic.dk.customer.tdc.net [87.58.223.204]) by relay01.pair.com (Postfix) with ESMTP id BBD94D0037A; Thu, 30 Nov 2017 01:41:39 -0500 (EST) Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.9/8.14.9) with ESMTP id vAU6fbwG088127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Nov 2017 07:41:37 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.9/8.14.9/Submit) id vAU6fbY9088126; Thu, 30 Nov 2017 07:41:37 +0100 (CET) (envelope-from pho) Date: Thu, 30 Nov 2017 07:41:37 +0100 From: Peter Holm To: Mateusz Guzik Cc: Alan Somers , Mateusz Guzik , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Subject: Re: svn commit: r326200 - head/sys/kern Message-ID: <20171130064137.GA88002@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> <20171127064940.GA91390@x2.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 06:41:47 -0000 On Thu, Nov 30, 2017 at 06:18:54AM +0100, Mateusz Guzik wrote: > So this is not my bug after all, it just had unfortunate timing with > scheduler changes. > > I can't reproduce anything with r326376. > Thank you for investigating. - Peter > On Tue, Nov 28, 2017 at 9:37 PM, Alan Somers wrote: > > > On Sun, Nov 26, 2017 at 11:49 PM, Peter Holm wrote: > > > On Sun, Nov 26, 2017 at 10:11:21PM +0100, Mateusz Guzik wrote: > > >> On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > > >> > > >> > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > > >> > > Author: mjg > > >> > > Date: Sat Nov 25 20:49:27 2017 > > >> > > New Revision: 326200 > > >> > > URL: https://svnweb.freebsd.org/changeset/base/326200 > > >> > > > > >> > > Log: > > >> > > Add the missing lockstat check for thread lock. > > >> > > > > >> > > Modified: > > >> > > head/sys/kern/kern_mutex.c > > >> > > > > >> > > Modified: head/sys/kern/kern_mutex.c > > >> > > ============================================================ > > >> > ================== > > >> > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > > >> > (r326199) > > >> > > > >> > Hi Mateusz, > > >> > > > >> > Could this be yours? > > >> > > > >> > spin lock 0xffffffff81ddc100 (turnstile chain) held by > > 0xfffff80014e57000 > > >> > (tid 100277) too long > > >> > panic: spin lock held too long > > >> > cpuid = 20 > > >> > time = 1511677687 > > >> > KDB: stack backtrace: > > >> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > >> > 0xfffffe104f86ea40 > > >> > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > > >> > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > > >> > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > > >> > 0xfffffe104f86eba0 > > >> > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > > >> > 0xfffffe104f86ed10 > > >> > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > > >> > 0xfffffe104f86edb0 > > >> > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > > >> > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > > >> > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > > >> > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > > >> > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > > >> > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > > >> > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > > >> > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > > >> > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > > >> > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > > >> > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > > >> > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > > >> > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > > >> > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > > >> > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > > >> > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > > >> > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > > >> > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > > >> > > > >> > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > > >> > > > >> > - Peter > > >> > > > >> > > >> Fixed in r326237. > > >> > > > > > > Yes, that fixed the issue reported. > > > After some more tests I got this one: > > > > > > 20171127 01:19:57 all (31/561): mkfifo2c.sh > > > spin lock 0xffffffff81edace0 (smp rendezvous) held by 0xfffff80d2ae31000 > > (tid 100529) too long > > > panic: spin lock held too long > > > cpuid = 14 > > > time = 1511742163 > > > KDB: stack backtrace: > > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > 0xfffffe105096c0b0 > > > vpanic() at vpanic+0x19c/frame 0xfffffe105096c130 > > > panic() at panic+0x43/frame 0xfffffe105096c190 > > > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > > 0xfffffe105096c200 > > > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > > 0xfffffe105096c240 > > > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > > 0xfffffe105096c2c0 > > > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > > 0xfffffe105096c2f0 > > > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > > 0xfffffe105096c340 > > > allocbuf() at allocbuf+0x107/frame 0xfffffe105096c3b0 > > > brelse() at brelse+0x219/frame 0xfffffe105096c400 > > > trunc_dependencies() at trunc_dependencies+0x745/frame 0xfffffe105096c4a0 > > > softdep_setup_freeblocks() at softdep_setup_freeblocks+0x7b4/frame > > 0xfffffe105096c510 > > > ffs_truncate() at ffs_truncate+0x6b8/frame 0xfffffe105096c700 > > > ufs_inactive() at ufs_inactive+0x1cb/frame 0xfffffe105096c740 > > > VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xfd/frame 0xfffffe105096c770 > > > vinactive() at vinactive+0xe3/frame 0xfffffe105096c7c0 > > > vputx() at vputx+0x31e/frame 0xfffffe105096c820 > > > kern_rmdirat() at kern_rmdirat+0x1c9/frame 0xfffffe105096c980 > > > amd64_syscall() at amd64_syscall+0x7ab/frame 0xfffffe105096cab0 > > > > > > Not so much more info here, I'm afraid: > > > https://people.freebsd.org/~pho/stress/log/mateusz005.txt > > > > > > -- > > > Peter > > > > I'm seeing a similar panic, at r326314: > > > > panic: spin lock held too long > > cpuid = 3 > > time = 1511900768 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > 0xfffffe0b58bcef00 > > vpanic() at vpanic+0x19c/frame 0xfffffe0b58bcef80 > > panic() at panic+0x43/frame 0xfffffe0b58bcefe0 > > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x352/frame > > 0xfffffe0b58bcf050 > > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0xd8/frame > > 0xfffffe0b58bcf090 > > smp_targeted_tlb_shootdown() at smp_targeted_tlb_shootdown+0xd7/frame > > 0xfffffe0b58bcf110 > > smp_masked_invlpg_range() at smp_masked_invlpg_range+0x50/frame > > 0xfffffe0b58bcf140 > > pmap_invalidate_range() at pmap_invalidate_range+0x1f4/frame > > 0xfffffe0b58bcf190 > > vm_thread_stack_dispose() at vm_thread_stack_dispose+0x2f/frame > > 0xfffffe0b58bcf1e0 > > thread_free() at thread_free+0x39/frame 0xfffffe0b58bcf200 > > thread_reap() at thread_reap+0x9e/frame 0xfffffe0b58bcf220 > > thread_alloc() at thread_alloc+0xf/frame 0xfffffe0b58bcf240 > > kthread_add() at kthread_add+0x43/frame 0xfffffe0b58bcf2e0 > > _taskqueue_start_threads() at _taskqueue_start_threads+0xde/frame > > 0xfffffe0b58bcf370 > > taskqueue_start_threads() at taskqueue_start_threads+0x3f/frame > > 0xfffffe0b58bcf3d0 > > taskq_create_proc() at taskq_create_proc+0x92/frame 0xfffffe0b58bcf400 > > spa_activate() at spa_activate+0x372/frame 0xfffffe0b58bcf4a0 > > spa_open_common() at spa_open_common+0xd2/frame 0xfffffe0b58bcf510 > > spa_get_stats() at spa_get_stats+0x4f/frame 0xfffffe0b58bcf6f0 > > zfs_ioc_pool_stats() at zfs_ioc_pool_stats+0x25/frame 0xfffffe0b58bcf730 > > zfsdev_ioctl() at zfsdev_ioctl+0x766/frame 0xfffffe0b58bcf7e0 > > devfs_ioctl() at devfs_ioctl+0xcb/frame 0xfffffe0b58bcf830 > > VOP_IOCTL_APV() at VOP_IOCTL_APV+0xd9/frame 0xfffffe0b58bcf860 > > vn_ioctl() at vn_ioctl+0x124/frame 0xfffffe0b58bcf970 > > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe0b58bcf990 > > kern_ioctl() at kern_ioctl+0x2c4/frame 0xfffffe0b58bcf9f0 > > sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe0b58bcfac0 > > amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0b58bcfbf0 > > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0b58bcfbf0 > > > > > > -- > Mateusz Guzik From owner-svn-src-head@freebsd.org Thu Nov 30 07:03:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0115BDFAB99; Thu, 30 Nov 2017 07:03:44 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C4AB87869E; Thu, 30 Nov 2017 07:03:43 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BFB7220C8B; Thu, 30 Nov 2017 02:03:41 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 30 Nov 2017 02:03:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsco.org; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=N3LjB9rNng6MHNkNLcWu7N3TAy/JD aIDplBzYKdAuWI=; b=CGQLxvJR0cxBFclScL4SPpQm+FJE36ApBW3YDYaEq+6i1 P6hu6y+4DZlJ69xKwjXA4lnEZ5QcbG022WkqyAJDb6yKGBj1fDHxNyHocd+Zl3Dd EqcxcMmJW0UYOPiZbfEFMvbH+QJysImw/f90AHggheRMnrueEQdkRT9kTpFDPsyl lXDllJUifytMKSTRBwHAl9SdAiVFyb+ibw+/RS+eUEsRVfBWG9FVYLVvz55WN8ma VUlMlGgOpO6y+vwVGGWs2fabe/l7k33IwIWF49EreEsPudinveNZ4JTd2ov+ZLq7 hyEsjNm8qmkZTQ3ZXWU83UHCI+mQPwz3vQtLC8ISQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=N3LjB9 rNng6MHNkNLcWu7N3TAy/JDaIDplBzYKdAuWI=; b=UoFb1VwIf1f066N5SPXQ5P gZJWTVxtp/pNfHsiNQ4TcKdjDIClieS1vAcwDvv60u+TgM4HforLXu12qhLmrGXI zENHQuIcgHS7kVye2Q+7lTRhfwllHc56li+P+/0WG07KCFsQ9lOOab/nd+xWHuvF Il1wbiRYwosH96p3tTlrKzZmE+mQvSP4u/GHS+hRP5RACbc5KpR6V1Bqyb9JB7VD JphYBTZWgZzn5Ta5xbmOIdXqnv63jh2lvkiO2KEYKhZERerHm3d2tiYXyuVKSK6I J21BJqg05lVv7wvrjLvaQa7JLutEcYkl7B81+6xVM34UIlqT6SM8e3ekobZm6u5Q == X-ME-Sender: Received: from [192.168.0.109] (unknown [161.97.249.191]) by mail.messagingengine.com (Postfix) with ESMTPA id 2431D243F9; Thu, 30 Nov 2017 02:03:41 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: svn commit: r326377 - in head/sys: amd64/conf arm/conf i386/conf mips/conf modules/aic7xxx/ahc modules/aic7xxx/ahd powerpc/conf sparc64/conf From: Scott Long In-Reply-To: <20171130115317.X1349@besplex.bde.org> Date: Thu, 30 Nov 2017 00:03:38 -0700 Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <201711292341.vATNfoSS054606@repo.freebsd.org> <20171130115317.X1349@besplex.bde.org> To: Bruce Evans X-Mailer: Apple Mail (2.3445.4.7) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 07:03:44 -0000 > On Nov 29, 2017, at 6:19 PM, Bruce Evans wrote: >=20 > On Wed, 29 Nov 2017, Scott Long wrote: >=20 >> Log: >> It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT = from >> the standard kernels. They are still available as custom compile >> options. >=20 > MI NOTES still gives MI sizes for these options. It seems unlikely > that these sizes are still correct even for 1 arch where they were = measured > on. >=20 Today, I measured a savings of ~130KiB when both options were removed. = I also did the original size measurements back in 2000-whatever. I=E2=80=99= m guessing that the difference is due to improvements in compiler technology. >> Modified: head/sys/amd64/conf/GENERIC >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> --- head/sys/amd64/conf/GENERIC Wed Nov 29 23:28:40 2017 = (r326376) >> +++ head/sys/amd64/conf/GENERIC Wed Nov 29 23:41:49 2017 = (r326377) >> @@ -123,11 +123,7 @@ device siis # = SiliconImage SiI3124/SiI3132/SiI3531 >>=20 >> # SCSI Controllers >> device ahc # AHA2940 and onboard = AIC7xxx devices >> -options AHC_REG_PRETTY_PRINT # Print register bitfields in = debug >> - # output. Adds ~128k to driver. >> device ahd # AHA39320/29320 and = onboard AIC79xx devices >> -options AHD_REG_PRETTY_PRINT # Print register bitfields in = debug >> - # output. Adds ~215k to driver. >=20 > k is a bogus unit for memory sizes. NOTES has the same bug. >=20 >> Modified: head/sys/i386/conf/GENERIC >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> --- head/sys/i386/conf/GENERIC Wed Nov 29 23:28:40 2017 = (r326376) >> +++ head/sys/i386/conf/GENERIC Wed Nov 29 23:41:49 2017 = (r326377) >> @@ -120,11 +120,6 @@ device siis # = SiliconImage SiI3124/SiI3132/SiI3531 >>=20 >> # SCSI Controllers >> device ahc # AHA2940 and onboard = AIC7xxx devices >> -options AHC_REG_PRETTY_PRINT # Print register bitfields in = debug >> - # output. Adds ~128k to driver. >> -device ahd # AHA39320/29320 and = onboard AIC79xx devices >> -options AHD_REG_PRETTY_PRINT # Print register bitfields in = debug >> - # output. Adds ~215k to driver. >> device esp # AMD Am53C974 (Tekram = DC-390(T)) >> device hptiop # Highpoint RocketRaid = 3xxx series >> device isp # Qlogic family >>=20 >=20 > This also removes ahd. This bug is only new on i386/GENERIC. Oops! > Other arches > except amd64 never had ahd. arm/conf/CRB was most broken -- it had 2 = PRETTY > options but neither ahc or ahd. Perhaps these old drivers don't = belong in > any GENERIC. There=E2=80=99s a good argument to be made for doing a house-cleaning of = GENERIC between now and when FreeBSD 12.0 is released. Scott From owner-svn-src-head@freebsd.org Thu Nov 30 07:08:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D760DFAD50; Thu, 30 Nov 2017 07:08:47 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45F937889B; Thu, 30 Nov 2017 07:08:47 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU78kLu051241; Thu, 30 Nov 2017 07:08:46 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU78kD8051237; Thu, 30 Nov 2017 07:08:46 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201711300708.vAU78kD8051237@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Thu, 30 Nov 2017 07:08:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326385 - head/usr.bin/pr X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/usr.bin/pr X-SVN-Commit-Revision: 326385 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 07:08:47 -0000 Author: eadler Date: Thu Nov 30 07:08:45 2017 New Revision: 326385 URL: https://svnweb.freebsd.org/changeset/base/326385 Log: Remove advertising clause from pr(1) Permitted by https://www.freebsd.org/copyright/license.html Renumber 4->3 to be consistent with other files Modified: head/usr.bin/pr/egetopt.c head/usr.bin/pr/extern.h head/usr.bin/pr/pr.c head/usr.bin/pr/pr.h Modified: head/usr.bin/pr/egetopt.c ============================================================================== --- head/usr.bin/pr/egetopt.c Thu Nov 30 05:01:56 2017 (r326384) +++ head/usr.bin/pr/egetopt.c Thu Nov 30 07:08:45 2017 (r326385) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,11 +16,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/extern.h ============================================================================== --- head/usr.bin/pr/extern.h Thu Nov 30 05:01:56 2017 (r326384) +++ head/usr.bin/pr/extern.h Thu Nov 30 07:08:45 2017 (r326385) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,11 +16,8 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/pr.c ============================================================================== --- head/usr.bin/pr/pr.c Thu Nov 30 05:01:56 2017 (r326384) +++ head/usr.bin/pr/pr.c Thu Nov 30 07:08:45 2017 (r326385) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,11 +16,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/pr.h ============================================================================== --- head/usr.bin/pr/pr.h Thu Nov 30 05:01:56 2017 (r326384) +++ head/usr.bin/pr/pr.h Thu Nov 30 07:08:45 2017 (r326385) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,11 +16,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * From owner-svn-src-head@freebsd.org Thu Nov 30 07:15:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A161CDFB056; Thu, 30 Nov 2017 07:15:33 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6CBA478DB1; Thu, 30 Nov 2017 07:15:33 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU7FWDx055458; Thu, 30 Nov 2017 07:15:32 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU7FWkZ055457; Thu, 30 Nov 2017 07:15:32 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201711300715.vAU7FWkZ055457@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Thu, 30 Nov 2017 07:15:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326386 - head/share/man/man3 X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/share/man/man3 X-SVN-Commit-Revision: 326386 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 07:15:33 -0000 Author: eadler Date: Thu Nov 30 07:15:32 2017 New Revision: 326386 URL: https://svnweb.freebsd.org/changeset/base/326386 Log: Fix pthread_condattr(3) type Reported by: Sascha Wildner Reviewed by: mjg Modified: head/share/man/man3/pthread_condattr.3 Modified: head/share/man/man3/pthread_condattr.3 ============================================================================== --- head/share/man/man3/pthread_condattr.3 Thu Nov 30 07:08:45 2017 (r326385) +++ head/share/man/man3/pthread_condattr.3 Thu Nov 30 07:15:32 2017 (r326386) @@ -46,9 +46,9 @@ .Ft int .Fn pthread_condattr_destroy "pthread_condattr_t *attr" .Ft int -.Fn pthread_condattr_getclock "pthread_condattr_t * restrict attr" "clock_t * restrict clock_id" +.Fn pthread_condattr_getclock "pthread_condattr_t * restrict attr" "clockid_t * restrict clock_id" .Ft int -.Fn pthread_condattr_setclock "pthread_condattr_t *attr" "clock_t clock_id" +.Fn pthread_condattr_setclock "pthread_condattr_t *attr" "clockid_t clock_id" .Ft int .Fn pthread_condattr_getpshared "pthread_condattr_t * restrict attr" "int * restrict pshared" .Ft int From owner-svn-src-head@freebsd.org Thu Nov 30 07:24:34 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5AD2DFB323; Thu, 30 Nov 2017 07:24:34 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6D567922F; Thu, 30 Nov 2017 07:24:34 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU7OXEl059416; Thu, 30 Nov 2017 07:24:33 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU7OXOE059415; Thu, 30 Nov 2017 07:24:33 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201711300724.vAU7OXOE059415@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Thu, 30 Nov 2017 07:24:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326387 - head/sys/dev/ata/chipsets X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/sys/dev/ata/chipsets X-SVN-Commit-Revision: 326387 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 07:24:35 -0000 Author: eadler Date: Thu Nov 30 07:24:33 2017 New Revision: 326387 URL: https://svnweb.freebsd.org/changeset/base/326387 Log: Fix typo Reported by: mjg, zrj@dragonflybsd.org Modified: head/sys/dev/ata/chipsets/ata-micron.c Modified: head/sys/dev/ata/chipsets/ata-micron.c ============================================================================== --- head/sys/dev/ata/chipsets/ata-micron.c Thu Nov 30 07:15:32 2017 (r326386) +++ head/sys/dev/ata/chipsets/ata-micron.c Thu Nov 30 07:24:33 2017 (r326387) @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #include /* - * Cenatek chipset support functions + * Micron chipset support functions */ static int ata_micron_probe(device_t dev) From owner-svn-src-head@freebsd.org Thu Nov 30 08:23:41 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1923DFCA74; Thu, 30 Nov 2017 08:23:41 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 662B67B1F2; Thu, 30 Nov 2017 08:23:41 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU8NeTs084720; Thu, 30 Nov 2017 08:23:40 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU8NeUc084719; Thu, 30 Nov 2017 08:23:40 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201711300823.vAU8NeUc084719@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Thu, 30 Nov 2017 08:23:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326389 - head/usr.bin/pr X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/usr.bin/pr X-SVN-Commit-Revision: 326389 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 08:23:41 -0000 Author: eadler Date: Thu Nov 30 08:23:40 2017 New Revision: 326389 URL: https://svnweb.freebsd.org/changeset/base/326389 Log: Finish cleaning up license :\ Modified: head/usr.bin/pr/extern.h Modified: head/usr.bin/pr/extern.h ============================================================================== --- head/usr.bin/pr/extern.h Thu Nov 30 07:42:56 2017 (r326388) +++ head/usr.bin/pr/extern.h Thu Nov 30 08:23:40 2017 (r326389) @@ -16,7 +16,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * California, Berkeley and its contributors. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. From owner-svn-src-head@freebsd.org Thu Nov 30 08:28:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0F7CDFCB9B; Thu, 30 Nov 2017 08:28:05 +0000 (UTC) (envelope-from fabient@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B853C7B477; Thu, 30 Nov 2017 08:28:05 +0000 (UTC) (envelope-from fabient@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU8S4oh085015; Thu, 30 Nov 2017 08:28:04 GMT (envelope-from fabient@FreeBSD.org) Received: (from fabient@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU8S4XM085014; Thu, 30 Nov 2017 08:28:04 GMT (envelope-from fabient@FreeBSD.org) Message-Id: <201711300828.vAU8S4XM085014@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fabient set sender to fabient@FreeBSD.org using -f From: Fabien Thomas Date: Thu, 30 Nov 2017 08:28:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326390 - head/share/man/man9 X-SVN-Group: head X-SVN-Commit-Author: fabient X-SVN-Commit-Paths: head/share/man/man9 X-SVN-Commit-Revision: 326390 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 08:28:06 -0000 Author: fabient Date: Thu Nov 30 08:28:04 2017 New Revision: 326390 URL: https://svnweb.freebsd.org/changeset/base/326390 Log: Update man page for r325354. Reported by: bjk Modified: head/share/man/man9/crypto.9 Modified: head/share/man/man9/crypto.9 ============================================================================== --- head/share/man/man9/crypto.9 Thu Nov 30 08:23:40 2017 (r326389) +++ head/share/man/man9/crypto.9 Thu Nov 30 08:28:04 2017 (r326390) @@ -17,7 +17,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 10, 2015 +.Dd November 6, 2017 .Dt CRYPTO 9 .Os .Sh NAME @@ -333,9 +333,10 @@ specified the flag). .It Dv CRYPTO_F_ASYNC Try to do the crypto operation in a pool of workers -if the operation is synchronous (that the driver specified the +if the operation is synchronous (that is, if the driver specified the .Dv CRYPTOCAP_F_SYNC -flag). It aims to speed up processing by dispatching crypto operations +flag). +It aims to speed up processing by dispatching crypto operations on different processors. .It Dv CRYPTO_F_ASYNC_KEEPORDER Dispatch callbacks in the same order they are posted. From owner-svn-src-head@freebsd.org Thu Nov 30 08:28:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77EAADFCBE0; Thu, 30 Nov 2017 08:28:19 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EC4B7B5AB; Thu, 30 Nov 2017 08:28:19 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAU8SH2X085066; Thu, 30 Nov 2017 08:28:17 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAU8SHRb085065; Thu, 30 Nov 2017 08:28:17 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201711300828.vAU8SHRb085065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Thu, 30 Nov 2017 08:28:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326391 - head/sbin/fsck_msdosfs X-SVN-Group: head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: head/sbin/fsck_msdosfs X-SVN-Commit-Revision: 326391 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 08:28:19 -0000 Author: delphij Date: Thu Nov 30 08:28:17 2017 New Revision: 326391 URL: https://svnweb.freebsd.org/changeset/base/326391 Log: Prevent OOB access on corrupted msdos directories. Submitted by: Veo Zhang MFC after: 2 weeks Modified: head/sbin/fsck_msdosfs/dir.c Modified: head/sbin/fsck_msdosfs/dir.c ============================================================================== --- head/sbin/fsck_msdosfs/dir.c Thu Nov 30 08:28:04 2017 (r326390) +++ head/sbin/fsck_msdosfs/dir.c Thu Nov 30 08:28:17 2017 (r326391) @@ -621,7 +621,7 @@ readDosDirSection(int f, struct bootblock *boot, struc dirent.name[8] = '\0'; for (k = 7; k >= 0 && dirent.name[k] == ' '; k--) dirent.name[k] = '\0'; - if (dirent.name[k] != '\0') + if (k < 0 || dirent.name[k] != '\0') k++; if (dirent.name[0] == SLOT_E5) dirent.name[0] = 0xe5; From owner-svn-src-head@freebsd.org Thu Nov 30 10:44:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 876E7DFF375 for ; Thu, 30 Nov 2017 10:44:47 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4CA7F6F9 for ; Thu, 30 Nov 2017 10:44:47 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yb0-x236.google.com with SMTP id p128so2525095yba.7 for ; Thu, 30 Nov 2017 02:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UlpxPaD4Fvs2tiVZLrvvE63i5V8FhzP4Cjb/pyHAslI=; b=XkjTXIMziXfzmUUiKGXaLsfu2iDqdlI60AGIqhCu19hS+EvIat0dvwJ1ZyaAbstSWe hlQWwXg/YfLaSyJSTLYOLmtYvMdlvdoLmvxGW71X6WI0+DzznS/4f5eJQpeWzOvA6hsh /U951cuFVDEC7Yf/yM+oJNJ8AM5ZTcZV+TAuB1JyG3G1UaKMpl23FB6pmnh57BY738za fMFNawXNbsaBUXuzEsLvF1VW+5ztRP0vzKRK8jRK50/zcfg3MFxrbOmSiGltlKTGKcYD 8OlLtYb/S7BtgTSFNQ8RZPWcgl2Xv79GhIphDlFu5U37aba54D0b1ji2anW4NfX6E+Gk w0Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UlpxPaD4Fvs2tiVZLrvvE63i5V8FhzP4Cjb/pyHAslI=; b=NSVY5KbtFTWEdl8oMsA6fsbU6nITTHnzbxzLJJTxSK7T60CLspU2PJcJEQO0Xyc45N mlVOxhOCVbc7m9f6sP5e4ii0m4hriJ9IJwaJo2iMDGQPgiYWbYRjchw1OBVnWP5i5HNy okQD+ac5dNEIk6eJBKsqZ73xrWMnhB0NarmUF/vCr9f9Lb6atXDNb0d4DCOgLuAZw7dd FHTxCebVHxEE3MudytunckuXcYW9NhWhlhQ6DPVbmdAwBZOgEI2tCH965gvr5X3d65fK 2ccQU1naSOUcoOVBTWJWFf48yQ2bkfJBHoSIpVqrNgI/Ac5ypmGHRSlLRvlv5ioRRILt YgWQ== X-Gm-Message-State: AJaThX6uHFkp4TIlNL7oJhPkR2cAv9ntnO0ALPlmO604X+urfuITdSBY keRWwbA+uoP3HG3L/LgAbPoE4fcVQL4gi9oBSSM9cw== X-Google-Smtp-Source: AGs4zMaOfCWIQWKxfT78tUVjzJGbfIReA38gb9fDrfMjpT7+/9HgdkfuyYNq1czRzJu2fj7aRVjBPBN/B8HKiDCl8g4= X-Received: by 10.37.94.69 with SMTP id s66mr1115717ybb.491.1512038686294; Thu, 30 Nov 2017 02:44:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.85.17 with HTTP; Thu, 30 Nov 2017 02:44:15 -0800 (PST) In-Reply-To: <201711300708.vAU78kD8051237@repo.freebsd.org> References: <201711300708.vAU78kD8051237@repo.freebsd.org> From: Ed Schouten Date: Thu, 30 Nov 2017 11:44:15 +0100 Message-ID: Subject: Re: svn commit: r326385 - head/usr.bin/pr To: Eitan Adler Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 10:44:47 -0000 2017-11-30 8:08 GMT+01:00 Eitan Adler : > Permitted by https://www.freebsd.org/copyright/license.html > [...] > * Copyright (c) 1991 Keith Muller. Isn't it the case that this only allows us to remove this clause from code that has the university as the sole copyright holder? In this case we should also ask Keith Muller, right...? -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands From owner-svn-src-head@freebsd.org Thu Nov 30 11:35:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B50CEE53325; Thu, 30 Nov 2017 11:35:23 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F3401100; Thu, 30 Nov 2017 11:35:23 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUBZMq1066065; Thu, 30 Nov 2017 11:35:22 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUBZM7K066064; Thu, 30 Nov 2017 11:35:22 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201711301135.vAUBZM7K066064@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Thu, 30 Nov 2017 11:35:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326392 - head/sys/net X-SVN-Group: head X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: head/sys/net X-SVN-Commit-Revision: 326392 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 11:35:23 -0000 Author: hselasky Date: Thu Nov 30 11:35:22 2017 New Revision: 326392 URL: https://svnweb.freebsd.org/changeset/base/326392 Log: Properly define the VLAN_XXX() function macros to avoid miscompilation when used inside "if" statements comparing with another value. Detailed explanation: "if (a ? b : c != 0)" is not the same like "if ((a ? b : c) != 0)" which is the expected behaviour of a function macro. Affects: toecore, linuxkpi and ibcore. Reviewed by: kib MFC after: 3 days Sponsored by: Mellanox Technologies Modified: head/sys/net/if_vlan_var.h Modified: head/sys/net/if_vlan_var.h ============================================================================== --- head/sys/net/if_vlan_var.h Thu Nov 30 08:28:17 2017 (r326391) +++ head/sys/net/if_vlan_var.h Thu Nov 30 11:35:22 2017 (r326392) @@ -143,16 +143,16 @@ struct vlanreq { } while (0) #define VLAN_TRUNKDEV(_ifp) \ - (_ifp)->if_type == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL + ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL) #define VLAN_TAG(_ifp, _vid) \ - (_ifp)->if_type == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL + ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL) #define VLAN_COOKIE(_ifp) \ - (_ifp)->if_type == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL + ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL) #define VLAN_SETCOOKIE(_ifp, _cookie) \ - (_ifp)->if_type == IFT_L2VLAN ? \ - (*vlan_setcookie_p)((_ifp), (_cookie)) : EINVAL + ((_ifp)->if_type == IFT_L2VLAN ? \ + (*vlan_setcookie_p)((_ifp), (_cookie)) : EINVAL) #define VLAN_DEVAT(_ifp, _vid) \ - (_ifp)->if_vlantrunk != NULL ? (*vlan_devat_p)((_ifp), (_vid)) : NULL + ((_ifp)->if_vlantrunk != NULL ? (*vlan_devat_p)((_ifp), (_vid)) : NULL) extern void (*vlan_trunk_cap_p)(struct ifnet *); extern struct ifnet *(*vlan_trunkdev_p)(struct ifnet *); From owner-svn-src-head@freebsd.org Thu Nov 30 12:16:52 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DC73E54C5C; Thu, 30 Nov 2017 12:16:52 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-vk0-x244.google.com (mail-vk0-x244.google.com [IPv6:2607:f8b0:400c:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C68582A1F; Thu, 30 Nov 2017 12:16:51 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-vk0-x244.google.com with SMTP id f73so3265880vki.3; Thu, 30 Nov 2017 04:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=SO+pTzDkENXlmp1LdFZc8+YX3TC3E279XS2SacQF++8=; b=jmbxIgCTi0qgx6alvXVpnUdGMYHd+piwz9Gc1mVozPSoU5lul45EQBpQURgXcxQSR7 Z+nH+Ojmb/K90HvuzO6RfqotdjrVeooEUKKQxPKQrU1Cd47Y11xl382aI3JBINt0qnzU HRHSyaO+v8WxzMC9kE8/NV0DwOQCCZps3WVBZiMN2hquP4JvcXKHNhDNXG2xwmcUHbZz S7Yy2EOvkyW0wnofF0wTEDdL2h/wUYceJIAqxc3zmvIyvqCSTxESfHxL6vwqP6idjJLk SsL4O3AZ28n1FsMzfIu3woKfwR1Ch2q1KtFxZMcbQb1EOvM7tXwbnp54hOx/HiQE/VWo MBbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=SO+pTzDkENXlmp1LdFZc8+YX3TC3E279XS2SacQF++8=; b=pLZwFPNRRl3ajAK/CrP4zQjlBQlGeHat+TFivPTkuh1IPyFt184b0uB/RUh9ntgQO6 7SaCeQbtpo6DxKX22vaL1WamYxef4cH91t+06fo96SdS4IzWV6u4ZPZe4c2tMMpjQAuK 5oF1XH5PGppbgY17zkDqxCn6Jjm7Q5P0Tuhbb/QnwO2CSDFf4yiQcUp9ejxjjG0T5pZD TpNlBwPQpgrgOnqdSXkGRaPzlIQ66YTDtPjfylj7mUdGsZyqWqGdlcknyU6ccIfMDH78 HFAp9s1X4fgTss+HEuSuwB6tUv6GVbEEct3avp4O5E4j0g7UydiVq28Wifkfjz8Xv1Dc KNPQ== X-Gm-Message-State: AKGB3mLczrNbmd1XBczh8Iq7dpq4w4bWbJI1g0tIItHMIhp/AXYZjAoq hW7ZTVeXgfdHprC1qb2Z3fDfG9tg3h4649Q3+JE= X-Google-Smtp-Source: AGs4zMY2QUHIRbq6NOM6y6D0kTUGI/peMKW3LgEfS9m5eOLknCBCDgDwokq8jR+LaaSLVPUcDFS+JSf/oaHuiAtIAbo= X-Received: by 10.31.205.131 with SMTP id d125mr1628191vkg.198.1512044210887; Thu, 30 Nov 2017 04:16:50 -0800 (PST) MIME-Version: 1.0 Sender: etnapierala@gmail.com Received: by 10.176.17.211 with HTTP; Thu, 30 Nov 2017 04:16:50 -0800 (PST) In-Reply-To: <20171129030035.W2283@besplex.bde.org> References: <201711281253.vASCrtlB071488@repo.freebsd.org> <20171129030035.W2283@besplex.bde.org> From: Edward Napierala Date: Thu, 30 Nov 2017 12:16:50 +0000 X-Google-Sender-Auth: zl3iv-ICMRnIMx8kAiK972LAef0 Message-ID: Subject: Re: svn commit: r326314 - in head/sys: ddb kern sys To: Bruce Evans Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 12:16:52 -0000 2017-11-28 17:04 GMT+00:00 Bruce Evans : > On Tue, 28 Nov 2017, Edward Tomasz Napierala wrote: > > Log: >> Make kdb_reenter() silent when explicitly called from db_error(). >> This removes the useless backtrace on various ddb(4) user errors. >> >> Reviewed by: jhb@ >> Obtained from: CheriBSD >> MFC after: 2 weeks >> Sponsored by: DARPA, AFRL >> Differential Revision: https://reviews.freebsd.org/D13212 >> > > This doesn't fix the spam for user errors that cause a trap, which are > very common (for mistyping memory addresses). ddb sets up trap handlers > using setjmp, and actually does this correctly in many cases, but when > a trap occurs the error handling is: > > trap -> kdb_reenter (print spam here) -> ddb (print error message here) > Indeed. But, as you said later in that email, some of those messages actually are (or might be) useful. The intent of that change was only to silence down those that certainly are not. Also, differently from silencing them down with a sysctl, this change makes them silent out of the box. Agreed about the style problems; I might (can't promise, though) fix that later. From owner-svn-src-head@freebsd.org Thu Nov 30 12:22:17 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B5FCE55164; Thu, 30 Nov 2017 12:22:17 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03E302F2B; Thu, 30 Nov 2017 12:22:16 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUCMGga086160; Thu, 30 Nov 2017 12:22:16 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUCMGsG086159; Thu, 30 Nov 2017 12:22:16 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201711301222.vAUCMGsG086159@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 30 Nov 2017 12:22:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326393 - head/sys/ddb X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/sys/ddb X-SVN-Commit-Revision: 326393 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 12:22:17 -0000 Author: trasz Date: Thu Nov 30 12:22:15 2017 New Revision: 326393 URL: https://svnweb.freebsd.org/changeset/base/326393 Log: Make the ddb(4) "set" command list variables when called without parameters. Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/ddb/db_variables.c Modified: head/sys/ddb/db_variables.c ============================================================================== --- head/sys/ddb/db_variables.c Thu Nov 30 11:35:22 2017 (r326392) +++ head/sys/ddb/db_variables.c Thu Nov 30 12:22:15 2017 (r326393) @@ -134,6 +134,17 @@ db_set_cmd(db_expr_t dummy1, bool dummy2, db_expr_t du int t; t = db_read_token(); + if (t == tEOL) { + for (vp = db_vars; vp < db_evars; vp++) { + if (!db_read_variable(vp, &value)) { + db_printf("$%s\n", vp->name); + continue; + } + db_printf("$%-8s = %ld\n", + vp->name, (unsigned long)value); + } + return; + } if (t != tDOLLAR) { db_error("Unknown variable\n"); return; From owner-svn-src-head@freebsd.org Thu Nov 30 12:38:43 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89979E55562; Thu, 30 Nov 2017 12:38:43 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53EBF34FC; Thu, 30 Nov 2017 12:38:43 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUCcgO8091397; Thu, 30 Nov 2017 12:38:42 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUCcgrC091396; Thu, 30 Nov 2017 12:38:42 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201711301238.vAUCcgrC091396@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Thu, 30 Nov 2017 12:38:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326394 - head/sys/fs/devfs X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: head/sys/fs/devfs X-SVN-Commit-Revision: 326394 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 12:38:43 -0000 Author: manu Date: Thu Nov 30 12:38:42 2017 New Revision: 326394 URL: https://svnweb.freebsd.org/changeset/base/326394 Log: devfs: Avoid a malloc/free if we just need to increment the refcount MFC after: 1 week Sponsored by: Gandi.net Modified: head/sys/fs/devfs/devfs_dir.c Modified: head/sys/fs/devfs/devfs_dir.c ============================================================================== --- head/sys/fs/devfs/devfs_dir.c Thu Nov 30 12:22:15 2017 (r326393) +++ head/sys/fs/devfs/devfs_dir.c Thu Nov 30 12:38:42 2017 (r326394) @@ -98,19 +98,18 @@ devfs_dir_ref(const char *dir) if (*dir == '\0') return; - dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); - dle_new->dir = strdup(dir, M_DEVFS4); - dle_new->refcnt = 1; - mtx_lock(&dirlist_mtx); dle = devfs_dir_findent_locked(dir); if (dle != NULL) { dle->refcnt++; mtx_unlock(&dirlist_mtx); - free(dle_new->dir, M_DEVFS4); - free(dle_new, M_DEVFS4); return; } + + dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); + dle_new->dir = strdup(dir, M_DEVFS4); + dle_new->refcnt = 1; + LIST_INSERT_HEAD(&devfs_dirlist, dle_new, link); mtx_unlock(&dirlist_mtx); } From owner-svn-src-head@freebsd.org Thu Nov 30 14:06:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02D78E5745A; Thu, 30 Nov 2017 14:06:56 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C4A0D652E3; Thu, 30 Nov 2017 14:06:55 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUE6sB4029223; Thu, 30 Nov 2017 14:06:54 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUE6sWi029222; Thu, 30 Nov 2017 14:06:54 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201711301406.vAUE6sWi029222@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Thu, 30 Nov 2017 14:06:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326395 - head/sys/fs/devfs X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: head/sys/fs/devfs X-SVN-Commit-Revision: 326395 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 14:06:56 -0000 Author: manu Date: Thu Nov 30 14:06:54 2017 New Revision: 326395 URL: https://svnweb.freebsd.org/changeset/base/326395 Log: r326394 is calling malloc with M_WAITOK under a lock, revert for now Reported by: andrew Modified: head/sys/fs/devfs/devfs_dir.c Modified: head/sys/fs/devfs/devfs_dir.c ============================================================================== --- head/sys/fs/devfs/devfs_dir.c Thu Nov 30 12:38:42 2017 (r326394) +++ head/sys/fs/devfs/devfs_dir.c Thu Nov 30 14:06:54 2017 (r326395) @@ -98,18 +98,19 @@ devfs_dir_ref(const char *dir) if (*dir == '\0') return; + dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); + dle_new->dir = strdup(dir, M_DEVFS4); + dle_new->refcnt = 1; + mtx_lock(&dirlist_mtx); dle = devfs_dir_findent_locked(dir); if (dle != NULL) { dle->refcnt++; mtx_unlock(&dirlist_mtx); + free(dle_new->dir, M_DEVFS4); + free(dle_new, M_DEVFS4); return; } - - dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); - dle_new->dir = strdup(dir, M_DEVFS4); - dle_new->refcnt = 1; - LIST_INSERT_HEAD(&devfs_dirlist, dle_new, link); mtx_unlock(&dirlist_mtx); } From owner-svn-src-head@freebsd.org Thu Nov 30 14:40:04 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9810E5D03B; Thu, 30 Nov 2017 14:40:04 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 345E66659B; Thu, 30 Nov 2017 14:40:03 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from hermann ([85.182.2.234]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lqn7e-1eyglV3CMc-00eMTz; Thu, 30 Nov 2017 15:39:55 +0100 Date: Thu, 30 Nov 2017 15:39:51 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326376 - head/sys/kern Message-ID: <20171130153946.0288b55f@hermann> In-Reply-To: <201711292328.vATNSeOM046518@repo.freebsd.org> References: <201711292328.vATNSeOM046518@repo.freebsd.org> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:pVJvg19BtTNWQxq5b7ihf1eHJr56AY+tQrCQv4Xk5heTzU0lJ+2 alnFMypmF03J8YtWYLVdlFoQ678Kw5N+PhktGk2SZraL67Hu+0WaQLDRs9WGnR3tsmGcG7Y CD5kV50w7bbyeBGXXEIxzpdmPMiYqc+nPiMP5xVdTJ8mB00ddGRp6t9Mr5wn6m7rMcQYDai hLpg6sEerVU2gYEDXk/EA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ouz9tjgZBo8=:rn2PtBkj95014nvGg2Cl3Y DsGsfDRtP94Zz8UU7jhB1jlqmosoZpDexIJBJqkaQ/CTnMlSQoA0rv3s3BEsalniu9UJNFDP+ gdtTE0yEEPziUsqZQT+iCKhYffGKTylWXmNIqhG8DgoAfG8l8n2K30iqUY39wM6A1pLC1z+67 Hi4YhjRxQZO/wcLEMnplmLvDlQKZHKOQUSvGgLocw24hhKTpmxzJiEQp/KBeec1eIuSszDcYe hEAaSUnZDRDg/lwxqucYFXVH+QE1OvSPWzf2H9ciZvqbvRbFXvjhAhHdsXFcrBSYvbzrLvAc+ QGfC109K9OUhDlPQWcb0nmQa0ImLqJ06yc2BQi9XSvE7HXJfz9Lx81mJ6f8nXlX0XIf44FS8j gmZ2LphBZadwIA+qb0o/fpP+8O+e4MH7H2eCKlH3pJyn9QPK7qJ2zOU09I1Qw+A3KT9ZYX4RH LZdU9J+nl34mIimnUFayQc17TuJ1kpyUKRTY5gEi1VzX4l7V497V8ZK437BNgX2h/gOhfufTr 05WnXKh1OOX4UnYxtL41tTL39KcwRnGIbnRgiDmWMMtiPQ/vaVU39kiy4fjFaZQp2ult2lCLB FhX29woENa0YkD6ZDwTQN1tOzvs8iGyAFr+WxLs/K1X5NzIXZKad8LvpSIDn2m0SDB9BH0SLv yC8SJm4KEVq35+4wEUtgwXNn4QcCoCvvu7xTIZ4pnCLNrvl6ta9KxgZ/ofSKmnMCsED6rZqsR nFP5L125JQQJF9U7cCpmOl3DIjwVSGyy1jTTC6ffqk80/vJnvQfiIBf8WII3wpFDhwBpGHkAP iIDlJiK3EtHjb84Wz6v/Pd65d99YfvN4k7hnS58ZHKE4ZnfX8c= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 14:40:04 -0000 On Wed, 29 Nov 2017 23:28:40 +0000 (UTC) Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 >=20 > Log: > The sched_add() function is not only used when the thread is > initially started, but also by the turnstiles to mark a thread as > runnable for all locks, for instance sleepqueues do: > setrunnable()->sched_wakeup()->sched_add() > =20 > In r326218 code was added to allow booting from non-zero CPU numbers > by setting the ts_cpu field inside the ULE scheduler's sched_add() > function. This had an undesired side-effect that prior sched_pin() > and sched_bind() calls got disregarded. This patch fixes the > initialization of the ts_cpu field for the ULE scheduler to only > happen once when the initial thread is constructed during system > init. Forking will then later on ensure that a valid ts_cpu value > gets copied to all children. > =20 > Reviewed by: jhb, kib > Discussed with: nwhitehorn > MFC after: 1 month > Differential revision: https://reviews.freebsd.org/D13298 > Sponsored by: Mellanox Technologies >=20 > Modified: > head/sys/kern/sched_ule.c >=20 > Modified: head/sys/kern/sched_ule.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 > (r326375) +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 > 2017 (r326376) @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) > =20 > /* Add thread0's load since it's running. */ > TDQ_LOCK(tdq); > - td_get_sched(&thread0)->ts_cpu =3D curcpu; /* Something valid > to start */ thread0.td_lock =3D TDQ_LOCKPTR(TDQ_SELF()); > tdq_load_add(tdq, &thread0); > tdq->tdq_lowpri =3D thread0.td_priority; > @@ -1642,6 +1641,7 @@ schedinit(void) > ts0->ts_ltick =3D ticks; > ts0->ts_ftick =3D ticks; > ts0->ts_slice =3D 0; > + ts0->ts_cpu =3D curcpu; /* set valid CPU number */ > } > =20 > /* > @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to > the > * target cpu. > */ > - td_get_sched(td)->ts_cpu =3D curcpu; /* Pick something valid > to start */ cpu =3D sched_pickcpu(td, flags); > tdq =3D sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" With that patch commited, I was able to boot at least a single user kernel (r326394). The kernel immedaitely crashes when trying to start X11 (the laptop is a Intel haswell i5 4200M type CPU, Lenovo E540, the Optimus nVidia GPU is not used, i915kms.ko loaded). The binary world is now r326394, the kernel successfuly running is r325893. Anything > r326218 is failing! And it is even worse for me. On the three crashed servers I'm unable to boot any(!) kernel. All three system boot off Samsung SSD, two 850 Pro (256GB), on server is with an older Samsung 830 Pro, 128 GB. Any kernel on those boxes booting off after they have been corrupted,=20 r326394 GENERIC and the custom kernels adjusted to each machine, is booting and then getting stuck at a certain point after initializing USB. Forever. They seem active a kind of, since pluggin/unpluggin devices is reported. A weird thing is, I have installed different kernels from a packages built on the remaining machine, droped at /boot/kernel.SOMENAME. The loader doesn't give me those additional kernels: when exting the loader menu with option 3 and typing: load /boot/kernel.GENERIC/kernel at the loader prompt (OK ), I get something like no filename provided or similar. Huh? What the ... is this meaning? When investigating the filesystem with this minimalistic Current from 21.11.2017 (USB flash image), the folger boot/kernel.GENERIC/ is well populated and the GENERIC kernel is also there and seem well. What happened here? =46rom another post I got the idea that the "patch" N. Whitehorn corrupted or destroyed SSDs - so how can this be fixed or: how can I check whether the SSD system has been destroyed? For the record: after a after-the-book update of r32635X (single user booted new kernel), a kernel crash occured while installing world. After that, I was presented a halted BTX loader screen on all those SSD driven systems. On two of the systems I have on ZFS volumes a complete /usr/obj. With the CURRENT images provided I can not even installworld/installkernel this world nor rebuild it with the proper fixes. Please advice how to perform a installworld/installkernel. Somewhere FreeBSD must have some desaster recovery image not crippled and evacuated of the compiler suite. Kind regards and thanks in advance, oh=20 From owner-svn-src-head@freebsd.org Thu Nov 30 15:10:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29840E5DEC7; Thu, 30 Nov 2017 15:10:13 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01F6E67875; Thu, 30 Nov 2017 15:10:12 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFACsD054511; Thu, 30 Nov 2017 15:10:12 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFAB2A054502; Thu, 30 Nov 2017 15:10:11 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711301510.vAUFAB2A054502@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 15:10:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch X-SVN-Commit-Revision: 326398 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:10:13 -0000 Author: pfg Date: Thu Nov 30 15:10:11 2017 New Revision: 326398 URL: https://svnweb.freebsd.org/changeset/base/326398 Log: SPDX: Fix some cases wrongly attributed to MIT. In the cases of BSD-style license variants without clauses, use 0BSD for the time being in lack of a better description. Modified: head/sys/netpfil/pf/if_pfsync.c head/sys/sparc64/pci/sbbc.c head/sys/sys/gpio.h head/sys/sys/msg.h head/sys/sys/snoop.h head/sys/x86/isa/isa.c head/usr.bin/gencat/gencat.c head/usr.sbin/ppp/arp.c head/usr.sbin/watch/watch.c Modified: head/sys/netpfil/pf/if_pfsync.c ============================================================================== --- head/sys/netpfil/pf/if_pfsync.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/netpfil/pf/if_pfsync.c Thu Nov 30 15:10:11 2017 (r326398) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) * * Copyright (c) 2002 Michael Shalayeff * Copyright (c) 2012 Gleb Smirnoff Modified: head/sys/sparc64/pci/sbbc.c ============================================================================== --- head/sys/sparc64/pci/sbbc.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/sparc64/pci/sbbc.c Thu Nov 30 15:10:11 2017 (r326398) @@ -1,6 +1,6 @@ /* $OpenBSD: sbbc.c,v 1.7 2009/11/09 17:53:39 nicm Exp $ */ /*- - * SPDX-License-Identifier: MIT AND BSD-2-Clause-FreeBSD + * SPDX-License-Identifier: (ISC AND BSD-2-Clause-FreeBSD) * * Copyright (c) 2008 Mark Kettenis * Modified: head/sys/sys/gpio.h ============================================================================== --- head/sys/sys/gpio.h Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/sys/gpio.h Thu Nov 30 15:10:11 2017 (r326398) @@ -1,7 +1,7 @@ /* $NetBSD: gpio.h,v 1.7 2009/09/25 20:27:50 mbalmer Exp $ */ /* $OpenBSD: gpio.h,v 1.7 2008/11/26 14:51:20 mbalmer Exp $ */ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) * * Copyright (c) 2009, Oleksandr Tymoshenko * All rights reserved. Modified: head/sys/sys/msg.h ============================================================================== --- head/sys/sys/msg.h Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/sys/msg.h Thu Nov 30 15:10:11 2017 (r326398) @@ -4,7 +4,7 @@ /*- * SVID compatible msg.h file * - * SPDX-License-Identifier: MIT + * SPDX-License-Identifier: 0BSD * * Author: Daniel Boulet * Modified: head/sys/sys/snoop.h ============================================================================== --- head/sys/sys/snoop.h Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/sys/snoop.h Thu Nov 30 15:10:11 2017 (r326398) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: MIT + * SPDX-License-Identifier: 0BSD * * Copyright (c) 1995 Ugen J.S.Antsilevich * Modified: head/sys/x86/isa/isa.c ============================================================================== --- head/sys/x86/isa/isa.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/sys/x86/isa/isa.c Thu Nov 30 15:10:11 2017 (r326398) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) * * Copyright (c) 1998 Doug Rabson * All rights reserved. Modified: head/usr.bin/gencat/gencat.c ============================================================================== --- head/usr.bin/gencat/gencat.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/usr.bin/gencat/gencat.c Thu Nov 30 15:10:11 2017 (r326398) @@ -4,7 +4,7 @@ /* $NetBSD: gencat.c,v 1.18 2003/10/27 00:12:43 lukem Exp $ */ /*- - * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND MIT + * SPDX-License-Identifier: (BSD-2-Clause-NetBSD AND ISC) * * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. Modified: head/usr.sbin/ppp/arp.c ============================================================================== --- head/usr.sbin/ppp/arp.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/usr.sbin/ppp/arp.c Thu Nov 30 15:10:11 2017 (r326398) @@ -2,7 +2,7 @@ * sys-bsd.c - System-dependent procedures for setting up * PPP interfaces on bsd-4.4-ish systems (including 386BSD, NetBSD, etc.) * - * SPDX-License-Identifier: MIT + * SPDX-License-Identifier: 0BSD * * Copyright (c) 1989 Carnegie Mellon University. * All rights reserved. Modified: head/usr.sbin/watch/watch.c ============================================================================== --- head/usr.sbin/watch/watch.c Thu Nov 30 14:38:07 2017 (r326397) +++ head/usr.sbin/watch/watch.c Thu Nov 30 15:10:11 2017 (r326398) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: MIT + * SPDX-License-Identifier: 0BSD * * Copyright (c) 1995 Ugen J.S.Antsilevich * From owner-svn-src-head@freebsd.org Thu Nov 30 15:28:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E55D8E5E723; Thu, 30 Nov 2017 15:28:30 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9832E6814A; Thu, 30 Nov 2017 15:28:30 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFST5H062942; Thu, 30 Nov 2017 15:28:29 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFSTO3062941; Thu, 30 Nov 2017 15:28:29 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711301528.vAUFSTO3062941@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Thu, 30 Nov 2017 15:28:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326399 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Commit-Revision: 326399 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:28:31 -0000 Author: asomers Date: Thu Nov 30 15:28:29 2017 New Revision: 326399 URL: https://svnweb.freebsd.org/changeset/base/326399 Log: Fix assertion when ZFS fails to open certain devices "panic: vdev_geom_close_locked: cp->private is NULL" This panic will result if ZFS fails to open a device due to either of the following reasons: 1) The device's sector size is greater than 8KB. 2) ZFS wants to open the device RW, but it can't be opened for writing. The solution is to change the initialization order to ensure that the assertion will be satisfied. PR: 221066 Reported by: David NewHamlet Reviewed by: avg MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13278 Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:10:11 2017 (r326398) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:28:29 2017 (r326399) @@ -2398,7 +2398,7 @@ vdev_raidz_io_done(zio_t *zio) */ if (parity_errors + parity_untried < rm->rm_firstdatacol || - (zio->io_flags & ZIO_FLAG_RESILVER)) { + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { n = raidz_parity_verify(zio, rm); unexpected_errors += n; ASSERT(parity_errors + n <= @@ -2450,7 +2450,7 @@ vdev_raidz_io_done(zio_t *zio) * out to failed devices later. */ if (parity_errors < rm->rm_firstdatacol - n || - (zio->io_flags & ZIO_FLAG_RESILVER)) { + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { n = raidz_parity_verify(zio, rm); unexpected_errors += n; ASSERT(parity_errors + n <= @@ -2552,7 +2552,8 @@ done: zio_checksum_verified(zio); if (zio->io_error == 0 && spa_writeable(zio->io_spa) && - (unexpected_errors || (zio->io_flags & ZIO_FLAG_RESILVER))) { + (unexpected_errors || + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB)))) { /* * Use the good data we have in hand to repair damaged children. */ From owner-svn-src-head@freebsd.org Thu Nov 30 15:29:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E62B1E5E7A0 for ; Thu, 30 Nov 2017 15:29:48 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A9F9682E1 for ; Thu, 30 Nov 2017 15:29:48 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lf0-x241.google.com with SMTP id x20so8364484lff.1 for ; Thu, 30 Nov 2017 07:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc; bh=YlWYE5uOiI8qcypKGBS6y0by61X6+5pdPb0DYcRkjoI=; b=N72KBcXy6lkl3CM1PYHgDF0OKVRDBRL9c8WuLDAeoh3CrQTKkvcIeKFbnEKi/YBMre rRinL9qGrdsB7F7rY7bN6Vmk7rwNB6IlJWdLJVol36HbKwDSVBgAnGWJQME7OYRgMATP GciUbw4EmOvogJT3a+wrbqQBV48kxCm5RVwlWNBXomV5tAsMPA2dvUU6bU3Ai+Yp1ou4 3NyDOtDDwISuh6jX7XNqT5GOGICaqeKKVqfWWcmFNZ/v3ebvFNf1e9Xey4Siih6chj16 Pfgg1Mur7LtWcHnuBBiY95pRVZ/vqhCikLLxu6Xld+OUVGUQIw5chXHszrqYcdpqs+w9 w/Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:cc; bh=YlWYE5uOiI8qcypKGBS6y0by61X6+5pdPb0DYcRkjoI=; b=HWsWKFQbP3cd7WqBLflHKRvGJ3e9ZNgEjU14hkuQOxOx9HT2O3MKLGC/ZUC+n1kwkV SNvEcmcGfh3tFRM6SLyvlJqFzIt+J8s7G9igk65F+/8CwhhG/YfhqGP+P8ALcZ6LRvTt zg59xFEVXDCbaXeXN5RE5ECYkWPiYVmCXn5k3VZDUKlkEO6BZ9hzrLPdt0Q7kUbewuXm N28k4kiJvSUw3nYPSJPGjRn1FHGJRXIi7pyNs6FhKjoL7lD08QlcBVZdNFTC0CkR88u9 mWMZn8u48dmuVwN3s1gk3XpCl65i3XyqxhS9Aqk+LQqM+B+WEhWcsgVzBBYrc3skUQdY BpoQ== X-Gm-Message-State: AJaThX69ZEaZ3mPiJCTf6gxqKlWDtxqUhfJ/01PG33YpFelRkDBdBnza thcf4ZETs2vCmLeamxs6qL+YORfBlUOMeRVXOSQ= X-Received: by 10.46.31.18 with SMTP id f18mt3621832ljf.123.1512055786248; Thu, 30 Nov 2017 07:29:46 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.179.76.19 with HTTP; Thu, 30 Nov 2017 07:29:45 -0800 (PST) In-Reply-To: <201711301528.vAUFSTO3062941@repo.freebsd.org> References: <201711301528.vAUFSTO3062941@repo.freebsd.org> From: Alan Somers Date: Thu, 30 Nov 2017 08:29:45 -0700 X-Google-Sender-Auth: sKFLCGvIftp6cFywxoyVune9V7Y Message-ID: Subject: Re: svn commit: r326399 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:29:49 -0000 Crap. Committed the wrong file. Fix coming shortly. On Thu, Nov 30, 2017 at 8:28 AM, Alan Somers wrote: > Author: asomers > Date: Thu Nov 30 15:28:29 2017 > New Revision: 326399 > URL: https://svnweb.freebsd.org/changeset/base/326399 > > Log: > Fix assertion when ZFS fails to open certain devices > > "panic: vdev_geom_close_locked: cp->private is NULL" > This panic will result if ZFS fails to open a device due to either of the > following reasons: > > 1) The device's sector size is greater than 8KB. > 2) ZFS wants to open the device RW, but it can't be opened for writing. > > The solution is to change the initialization order to ensure that the > assertion will be satisfied. > > PR: 221066 > Reported by: David NewHamlet > Reviewed by: avg > MFC after: 3 weeks > Sponsored by: Spectra Logic Corp > Differential Revision: https://reviews.freebsd.org/D13278 > > Modified: > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c > > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c > ============================================================================== > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:10:11 2017 (r326398) > +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:28:29 2017 (r326399) > @@ -2398,7 +2398,7 @@ vdev_raidz_io_done(zio_t *zio) > */ > if (parity_errors + parity_untried < > rm->rm_firstdatacol || > - (zio->io_flags & ZIO_FLAG_RESILVER)) { > + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { > n = raidz_parity_verify(zio, rm); > unexpected_errors += n; > ASSERT(parity_errors + n <= > @@ -2450,7 +2450,7 @@ vdev_raidz_io_done(zio_t *zio) > * out to failed devices later. > */ > if (parity_errors < rm->rm_firstdatacol - n || > - (zio->io_flags & ZIO_FLAG_RESILVER)) { > + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { > n = raidz_parity_verify(zio, rm); > unexpected_errors += n; > ASSERT(parity_errors + n <= > @@ -2552,7 +2552,8 @@ done: > zio_checksum_verified(zio); > > if (zio->io_error == 0 && spa_writeable(zio->io_spa) && > - (unexpected_errors || (zio->io_flags & ZIO_FLAG_RESILVER))) { > + (unexpected_errors || > + (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB)))) { > /* > * Use the good data we have in hand to repair damaged children. > */ > From owner-svn-src-head@freebsd.org Thu Nov 30 15:34:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8064E5EB3E; Thu, 30 Nov 2017 15:34:56 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 844C968B77; Thu, 30 Nov 2017 15:34:56 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFYtuZ067257; Thu, 30 Nov 2017 15:34:55 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFYtPr067256; Thu, 30 Nov 2017 15:34:55 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711301534.vAUFYtPr067256@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Thu, 30 Nov 2017 15:34:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326400 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Commit-Revision: 326400 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:34:56 -0000 Author: asomers Date: Thu Nov 30 15:34:55 2017 New Revision: 326400 URL: https://svnweb.freebsd.org/changeset/base/326400 Log: Revert r326399 Accidentally committed wrong file Pointy hat to: asomers Sponsored by: Spectra Logic Corp Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:28:29 2017 (r326399) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c Thu Nov 30 15:34:55 2017 (r326400) @@ -2398,7 +2398,7 @@ vdev_raidz_io_done(zio_t *zio) */ if (parity_errors + parity_untried < rm->rm_firstdatacol || - (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { + (zio->io_flags & ZIO_FLAG_RESILVER)) { n = raidz_parity_verify(zio, rm); unexpected_errors += n; ASSERT(parity_errors + n <= @@ -2450,7 +2450,7 @@ vdev_raidz_io_done(zio_t *zio) * out to failed devices later. */ if (parity_errors < rm->rm_firstdatacol - n || - (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB))) { + (zio->io_flags & ZIO_FLAG_RESILVER)) { n = raidz_parity_verify(zio, rm); unexpected_errors += n; ASSERT(parity_errors + n <= @@ -2552,8 +2552,7 @@ done: zio_checksum_verified(zio); if (zio->io_error == 0 && spa_writeable(zio->io_spa) && - (unexpected_errors || - (zio->io_flags & (ZIO_FLAG_RESILVER | ZIO_FLAG_SCRUB)))) { + (unexpected_errors || (zio->io_flags & ZIO_FLAG_RESILVER))) { /* * Use the good data we have in hand to repair damaged children. */ From owner-svn-src-head@freebsd.org Thu Nov 30 15:36:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2750E5EC1E; Thu, 30 Nov 2017 15:36:07 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC51A68DE0; Thu, 30 Nov 2017 15:36:07 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFa6eX067485; Thu, 30 Nov 2017 15:36:06 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFa6gr067484; Thu, 30 Nov 2017 15:36:06 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201711301536.vAUFa6gr067484@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Thu, 30 Nov 2017 15:36:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326401 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Commit-Revision: 326401 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:36:07 -0000 Author: asomers Date: Thu Nov 30 15:36:06 2017 New Revision: 326401 URL: https://svnweb.freebsd.org/changeset/base/326401 Log: Fix assertion when ZFS fails to open certain devices "panic: vdev_geom_close_locked: cp->private is NULL" This panic will result if ZFS fails to open a device due to either of the following reasons: 1) The device's sector size is greater than 8KB. 2) ZFS wants to open the device RW, but it can't be opened for writing. The solution is to change the initialization order to ensure that the assertion will be satisfied. PR: 221066 Reported by: David NewHamlet Reviewed by: avg MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13278 Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Thu Nov 30 15:34:55 2017 (r326400) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Thu Nov 30 15:36:06 2017 (r326401) @@ -851,35 +851,10 @@ vdev_geom_open(vdev_t *vd, uint64_t *psize, uint64_t * if (cp == NULL) { ZFS_LOG(1, "Vdev %s not found.", vd->vdev_path); error = ENOENT; - } else if (cp->provider->sectorsize > VDEV_PAD_SIZE || - !ISP2(cp->provider->sectorsize)) { - ZFS_LOG(1, "Provider %s has unsupported sectorsize.", - cp->provider->name); - - vdev_geom_close_locked(vd); - error = EINVAL; - cp = NULL; - } else if (cp->acw == 0 && (spa_mode(vd->vdev_spa) & FWRITE) != 0) { - int i; - - for (i = 0; i < 5; i++) { - error = g_access(cp, 0, 1, 0); - if (error == 0) - break; - g_topology_unlock(); - tsleep(vd, 0, "vdev", hz / 2); - g_topology_lock(); - } - if (error != 0) { - printf("ZFS WARNING: Unable to open %s for writing (error=%d).\n", - cp->provider->name, error); - vdev_geom_close_locked(vd); - cp = NULL; - } - } - if (cp != NULL) { + } else { struct consumer_priv_t *priv; struct consumer_vdev_elem *elem; + int spamode; priv = (struct consumer_priv_t*)&cp->private; if (cp->private == NULL) @@ -887,6 +862,34 @@ vdev_geom_open(vdev_t *vd, uint64_t *psize, uint64_t * elem = g_malloc(sizeof(*elem), M_WAITOK|M_ZERO); elem->vd = vd; SLIST_INSERT_HEAD(priv, elem, elems); + + spamode = spa_mode(vd->vdev_spa); + if (cp->provider->sectorsize > VDEV_PAD_SIZE || + !ISP2(cp->provider->sectorsize)) { + ZFS_LOG(1, "Provider %s has unsupported sectorsize.", + cp->provider->name); + + vdev_geom_close_locked(vd); + error = EINVAL; + cp = NULL; + } else if (cp->acw == 0 && (spamode & FWRITE) != 0) { + int i; + + for (i = 0; i < 5; i++) { + error = g_access(cp, 0, 1, 0); + if (error == 0) + break; + g_topology_unlock(); + tsleep(vd, 0, "vdev", hz / 2); + g_topology_lock(); + } + if (error != 0) { + printf("ZFS WARNING: Unable to open %s for writing (error=%d).\n", + cp->provider->name, error); + vdev_geom_close_locked(vd); + cp = NULL; + } + } } /* Fetch initial physical path information for this device. */ From owner-svn-src-head@freebsd.org Thu Nov 30 15:39:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D1FFE5ED4A for ; Thu, 30 Nov 2017 15:39:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B06F6908D for ; Thu, 30 Nov 2017 15:39:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22a.google.com with SMTP id t196so7978946iof.0 for ; Thu, 30 Nov 2017 07:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=mzC4GMxD5wd3koLjZG1Bkt63VPzxj+deBGtMueXpPfc=; b=eNR8ZMD5L99iIXdRg0is2ZKbW0tB/Er5xHWBJ9cIrhqS0NMuNace1ATBAOrgeYWVwL P02xnWotBjDisWNuuCTuZHZiojeJQaWoAOO7m53CrHcp19U2gT+5HIiWiW/CuzdqkrmS UziiT5JRLR/aE2y4Yqg6r1Q94FOR7K6W7f0md86Chu+aFHawLTVWCE/cOdvOmIP1GLKW TmXkOzxygEGeI+FO20B2coSd0aIevg/kTdmk/S8pRRS8ARh4G2Pm0ST8iR1alsWXpO7k WBa2/P/TJoNKK6yi4RL9EGZGzzBtc3hyrsz6JpBIk+pYGefKX1iBys7y0TOBX1olyGWS EuAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=mzC4GMxD5wd3koLjZG1Bkt63VPzxj+deBGtMueXpPfc=; b=DgIIIo1jauKbawspxi8aN81BBIpzp4unEoLPIoVPRFxlXp1vOXr29SbYerJ6d7oeH9 /i4vUZd0TfjQQ74hAl0NOdeBZu8k/d2sy+WC/M0mVBn9Wd7sHiDrjcOYEF0MifyCspsF 9HYieWXQp/+YogN7yabPrcMQx0TwkyZWQ8EcNOHaEZQQ0uNUVikq/E3LRcKdZBDe8ZFs cU02PLSTe4fpL5XP/7tZ255heovXGsF5gRKHSPjphupmVRCbukFfAXgE5uC2y+tOTY1F 5KNruSRro5WYvT4aoSid1esRjTIWE+5VFN8KgzjsCO/iG7HQ6+KRLon5/eCilgBGSEAB /nuQ== X-Gm-Message-State: AJaThX71YbSLdCAobaGyVCRSu8UP+lPtsbog1d424k4CD5SSGb3HCkEC t/9ep4q58TIbyX8tKovC5+pTnetDEsPSMJbGpP74UQ== X-Google-Smtp-Source: AGs4zMYc4hKYUsivhwEYl1AS8N2Ooll9lG7ITmq5rt1wbczTYQ46cIGHi5gucPIQLXfFHwekwG0MqqIM4ZJbd7vC5Pw= X-Received: by 10.107.30.81 with SMTP id e78mr8029696ioe.130.1512056345643; Thu, 30 Nov 2017 07:39:05 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Thu, 30 Nov 2017 07:39:04 -0800 (PST) X-Originating-IP: [65.151.16.248] In-Reply-To: References: <201711300708.vAU78kD8051237@repo.freebsd.org> From: Warner Losh Date: Thu, 30 Nov 2017 08:39:04 -0700 X-Google-Sender-Auth: A7ocWSw8nEulw-qM1QpYzGxgU2U Message-ID: Subject: Re: svn commit: r326385 - head/usr.bin/pr To: Ed Schouten Cc: Eitan Adler , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:39:06 -0000 On Thu, Nov 30, 2017 at 3:44 AM, Ed Schouten wrote: > 2017-11-30 8:08 GMT+01:00 Eitan Adler : > > Permitted by https://www.freebsd.org/copyright/license.html > > [...] > > * Copyright (c) 1991 Keith Muller. > > Isn't it the case that this only allows us to remove this clause from > code that has the university as the sole copyright holder? In this > case we should also ask Keith Muller, right...? > Unless he's got permission from Keith Muller, this should be reverted ASAP! Warner From owner-svn-src-head@freebsd.org Thu Nov 30 15:45:43 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8946E5F008; Thu, 30 Nov 2017 15:45:43 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B668169535; Thu, 30 Nov 2017 15:45:43 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFjg1F071812; Thu, 30 Nov 2017 15:45:42 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFjgPn071811; Thu, 30 Nov 2017 15:45:42 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711301545.vAUFjgPn071811@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 15:45:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326402 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326402 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:45:44 -0000 Author: pfg Date: Thu Nov 30 15:45:42 2017 New Revision: 326402 URL: https://svnweb.freebsd.org/changeset/base/326402 Log: SPDX: wrong license. Modified: head/sys/vm/default_pager.c Modified: head/sys/vm/default_pager.c ============================================================================== --- head/sys/vm/default_pager.c Thu Nov 30 15:36:06 2017 (r326401) +++ head/sys/vm/default_pager.c Thu Nov 30 15:45:42 2017 (r326402) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1995, David Greenman * All rights reserved. From owner-svn-src-head@freebsd.org Thu Nov 30 15:48:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8C9CE5F189; Thu, 30 Nov 2017 15:48:42 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CC0A69832; Thu, 30 Nov 2017 15:48:42 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFmf6U072168; Thu, 30 Nov 2017 15:48:41 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFmaGu072114; Thu, 30 Nov 2017 15:48:36 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711301548.vAUFmaGu072114@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 15:48:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm X-SVN-Commit-Revision: 326403 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:48:42 -0000 Author: pfg Date: Thu Nov 30 15:48:35 2017 New Revision: 326403 URL: https://svnweb.freebsd.org/changeset/base/326403 Log: SPDX: Consider code from Carnegie-Mellon University. Interesting cases, most likely from CMU Mach sources. Modified: head/sys/arm64/include/profile.h head/sys/ddb/db_access.c head/sys/ddb/db_access.h head/sys/ddb/db_break.c head/sys/ddb/db_break.h head/sys/ddb/db_capture.c head/sys/ddb/db_command.c head/sys/ddb/db_command.h head/sys/ddb/db_examine.c head/sys/ddb/db_expr.c head/sys/ddb/db_input.c head/sys/ddb/db_lex.c head/sys/ddb/db_lex.h head/sys/ddb/db_main.c head/sys/ddb/db_output.c head/sys/ddb/db_output.h head/sys/ddb/db_print.c head/sys/ddb/db_run.c head/sys/ddb/db_sym.c head/sys/ddb/db_sym.h head/sys/ddb/db_variables.c head/sys/ddb/db_variables.h head/sys/ddb/db_watch.c head/sys/ddb/db_watch.h head/sys/ddb/db_write_cmd.c head/sys/dev/fb/gfb.h head/sys/dev/mc146818/mc146818reg.h head/sys/mips/include/cdefs.h head/sys/mips/include/setjmp.h head/sys/powerpc/include/profile.h head/sys/powerpc/powerpc/vm_machdep.c head/sys/riscv/include/profile.h head/sys/sparc64/include/profile.h head/sys/vm/vm.h head/sys/vm/vm_domain.c head/sys/vm/vm_domain.h head/sys/vm/vm_fault.c head/sys/vm/vm_glue.c head/sys/vm/vm_init.c head/sys/vm/vm_kern.c head/sys/vm/vm_kern.h head/sys/vm/vm_map.c head/sys/vm/vm_map.h head/sys/vm/vm_object.c head/sys/vm/vm_object.h head/sys/vm/vm_page.c head/sys/vm/vm_page.h head/sys/vm/vm_pageout.c head/sys/vm/vm_pageout.h head/sys/vm/vm_pager.c head/sys/vm/vm_param.h head/sys/vm/vm_swapout.c head/sys/vm/vm_swapout_dummy.c Modified: head/sys/arm64/include/profile.h ============================================================================== --- head/sys/arm64/include/profile.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/arm64/include/profile.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/ddb/db_access.c ============================================================================== --- head/sys/ddb/db_access.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_access.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_access.h ============================================================================== --- head/sys/ddb/db_access.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_access.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_break.c ============================================================================== --- head/sys/ddb/db_break.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_break.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_break.h ============================================================================== --- head/sys/ddb/db_break.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_break.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_capture.c ============================================================================== --- head/sys/ddb/db_capture.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_capture.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2007 Robert N. M. Watson Modified: head/sys/ddb/db_command.c ============================================================================== --- head/sys/ddb/db_command.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_command.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_command.h ============================================================================== --- head/sys/ddb/db_command.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_command.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_examine.c ============================================================================== --- head/sys/ddb/db_examine.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_examine.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_expr.c ============================================================================== --- head/sys/ddb/db_expr.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_expr.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_input.c ============================================================================== --- head/sys/ddb/db_input.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_input.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_lex.c ============================================================================== --- head/sys/ddb/db_lex.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_lex.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_lex.h ============================================================================== --- head/sys/ddb/db_lex.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_lex.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_main.c ============================================================================== --- head/sys/ddb/db_main.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_main.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_output.c ============================================================================== --- head/sys/ddb/db_output.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_output.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_output.h ============================================================================== --- head/sys/ddb/db_output.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_output.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_print.c ============================================================================== --- head/sys/ddb/db_print.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_print.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_run.c ============================================================================== --- head/sys/ddb/db_run.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_run.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_sym.c ============================================================================== --- head/sys/ddb/db_sym.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_sym.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_sym.h ============================================================================== --- head/sys/ddb/db_sym.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_sym.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_variables.c ============================================================================== --- head/sys/ddb/db_variables.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_variables.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_variables.h ============================================================================== --- head/sys/ddb/db_variables.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_variables.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_watch.c ============================================================================== --- head/sys/ddb/db_watch.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_watch.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_watch.h ============================================================================== --- head/sys/ddb/db_watch.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_watch.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/ddb/db_write_cmd.c ============================================================================== --- head/sys/ddb/db_write_cmd.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/ddb/db_write_cmd.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. Modified: head/sys/dev/fb/gfb.h ============================================================================== --- head/sys/dev/fb/gfb.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/dev/fb/gfb.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1995, 1996 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/dev/mc146818/mc146818reg.h ============================================================================== --- head/sys/dev/mc146818/mc146818reg.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/dev/mc146818/mc146818reg.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/mips/include/cdefs.h ============================================================================== --- head/sys/mips/include/cdefs.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/mips/include/cdefs.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,6 +1,8 @@ /* $NetBSD: cdefs.h,v 1.12 2006/08/27 19:04:30 matt Exp $ */ -/* +/*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/mips/include/setjmp.h ============================================================================== --- head/sys/mips/include/setjmp.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/mips/include/setjmp.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,6 +1,8 @@ /* From: NetBSD: setjmp.h,v 1.2 1997/04/06 08:47:41 cgd Exp */ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1994, 1995 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/powerpc/include/profile.h ============================================================================== --- head/sys/powerpc/include/profile.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/powerpc/include/profile.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/powerpc/powerpc/vm_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/vm_machdep.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/powerpc/powerpc/vm_machdep.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) * * Copyright (c) 1982, 1986 The Regents of the University of California. * Copyright (c) 1989, 1990 William Jolitz Modified: head/sys/riscv/include/profile.h ============================================================================== --- head/sys/riscv/include/profile.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/riscv/include/profile.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/sparc64/include/profile.h ============================================================================== --- head/sys/sparc64/include/profile.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/sparc64/include/profile.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. * All rights reserved. * Modified: head/sys/vm/vm.h ============================================================================== --- head/sys/vm/vm.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_domain.c ============================================================================== --- head/sys/vm/vm_domain.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_domain.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2015 Adrian Chadd . * All rights reserved. * Modified: head/sys/vm/vm_domain.h ============================================================================== --- head/sys/vm/vm_domain.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_domain.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2015 Adrian Chadd . * All rights reserved. * Modified: head/sys/vm/vm_fault.c ============================================================================== --- head/sys/vm/vm_fault.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_fault.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_glue.c ============================================================================== --- head/sys/vm/vm_glue.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_glue.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_init.c ============================================================================== --- head/sys/vm/vm_init.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_init.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_kern.c ============================================================================== --- head/sys/vm/vm_kern.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_kern.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_kern.h ============================================================================== --- head/sys/vm/vm_kern.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_kern.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_map.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_map.h ============================================================================== --- head/sys/vm/vm_map.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_map.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_object.c ============================================================================== --- head/sys/vm/vm_object.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_object.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_object.h ============================================================================== --- head/sys/vm/vm_object.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_object.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_page.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991 Regents of the University of California. * All rights reserved. Modified: head/sys/vm/vm_page.h ============================================================================== --- head/sys/vm/vm_page.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_page.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_pageout.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-4-Clause + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) * * Copyright (c) 1991 Regents of the University of California. * All rights reserved. Modified: head/sys/vm/vm_pageout.h ============================================================================== --- head/sys/vm/vm_pageout.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_pageout.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_pager.c ============================================================================== --- head/sys/vm/vm_pager.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_pager.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_param.h ============================================================================== --- head/sys/vm/vm_param.h Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_param.h Thu Nov 30 15:48:35 2017 (r326403) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. Modified: head/sys/vm/vm_swapout.c ============================================================================== --- head/sys/vm/vm_swapout.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_swapout.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) + * * Copyright (c) 1991 Regents of the University of California. * All rights reserved. * Copyright (c) 1994 John S. Dyson Modified: head/sys/vm/vm_swapout_dummy.c ============================================================================== --- head/sys/vm/vm_swapout_dummy.c Thu Nov 30 15:45:42 2017 (r326402) +++ head/sys/vm/vm_swapout_dummy.c Thu Nov 30 15:48:35 2017 (r326403) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) + * * Copyright (c) 1991 Regents of the University of California. * All rights reserved. * Copyright (c) 1994 John S. Dyson From owner-svn-src-head@freebsd.org Thu Nov 30 15:58:39 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B873E5F63B; Thu, 30 Nov 2017 15:58:39 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 190A46A043; Thu, 30 Nov 2017 15:58:39 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUFwcFS005656; Thu, 30 Nov 2017 15:58:38 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUFwcBp005655; Thu, 30 Nov 2017 15:58:38 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711301558.vAUFwcBp005655@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 15:58:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326405 - head/sys/ddb X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/ddb X-SVN-Commit-Revision: 326405 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 15:58:39 -0000 Author: pfg Date: Thu Nov 30 15:58:38 2017 New Revision: 326405 URL: https://svnweb.freebsd.org/changeset/base/326405 Log: SPDX: oops .. not from CMU. Modified: head/sys/ddb/db_capture.c Modified: head/sys/ddb/db_capture.c ============================================================================== --- head/sys/ddb/db_capture.c Thu Nov 30 15:54:14 2017 (r326404) +++ head/sys/ddb/db_capture.c Thu Nov 30 15:58:38 2017 (r326405) @@ -1,6 +1,4 @@ /*- - * SPDX-License-Identifier: MIT-CMU - * * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2007 Robert N. M. Watson From owner-svn-src-head@freebsd.org Thu Nov 30 17:36:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2181E666F7; Thu, 30 Nov 2017 17:36:10 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B28F86D3A4; Thu, 30 Nov 2017 17:36:09 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vAUHa6DS024662; Thu, 30 Nov 2017 09:36:07 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vAUHa6dL024661; Thu, 30 Nov 2017 09:36:06 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201711301736.vAUHa6dL024661@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch In-Reply-To: <201711301510.vAUFAB2A054502@repo.freebsd.org> To: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 09:36:06 -0800 (PST) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 17:36:11 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: pfg > Date: Thu Nov 30 15:10:11 2017 > New Revision: 326398 > URL: https://svnweb.freebsd.org/changeset/base/326398 > > Log: > SPDX: Fix some cases wrongly attributed to MIT. > > In the cases of BSD-style license variants without clauses, use 0BSD for > the time being in lack of a better description. If there is not an accurate description in the SPDX list then would it not be best to have NO SPDX tag at all rather than one that is used "in the time being", and possibly incorrect? Or even make one up, SPDX-UNKNOWN? > Modified: > head/sys/netpfil/pf/if_pfsync.c > head/sys/sparc64/pci/sbbc.c > head/sys/sys/gpio.h > head/sys/sys/msg.h > head/sys/sys/snoop.h > head/sys/x86/isa/isa.c > head/usr.bin/gencat/gencat.c > head/usr.sbin/ppp/arp.c > head/usr.sbin/watch/watch.c > > Modified: head/sys/netpfil/pf/if_pfsync.c > ============================================================================== > --- head/sys/netpfil/pf/if_pfsync.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/netpfil/pf/if_pfsync.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,5 +1,5 @@ > /*- > - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT > + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) > * > * Copyright (c) 2002 Michael Shalayeff > * Copyright (c) 2012 Gleb Smirnoff > > Modified: head/sys/sparc64/pci/sbbc.c > ============================================================================== > --- head/sys/sparc64/pci/sbbc.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/sparc64/pci/sbbc.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,6 +1,6 @@ > /* $OpenBSD: sbbc.c,v 1.7 2009/11/09 17:53:39 nicm Exp $ */ > /*- > - * SPDX-License-Identifier: MIT AND BSD-2-Clause-FreeBSD > + * SPDX-License-Identifier: (ISC AND BSD-2-Clause-FreeBSD) > * > * Copyright (c) 2008 Mark Kettenis > * > > Modified: head/sys/sys/gpio.h > ============================================================================== > --- head/sys/sys/gpio.h Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/sys/gpio.h Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,7 +1,7 @@ > /* $NetBSD: gpio.h,v 1.7 2009/09/25 20:27:50 mbalmer Exp $ */ > /* $OpenBSD: gpio.h,v 1.7 2008/11/26 14:51:20 mbalmer Exp $ */ > /*- > - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT > + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) > * > * Copyright (c) 2009, Oleksandr Tymoshenko > * All rights reserved. > > Modified: head/sys/sys/msg.h > ============================================================================== > --- head/sys/sys/msg.h Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/sys/msg.h Thu Nov 30 15:10:11 2017 (r326398) > @@ -4,7 +4,7 @@ > /*- > * SVID compatible msg.h file > * > - * SPDX-License-Identifier: MIT > + * SPDX-License-Identifier: 0BSD > * > * Author: Daniel Boulet > * > > Modified: head/sys/sys/snoop.h > ============================================================================== > --- head/sys/sys/snoop.h Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/sys/snoop.h Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,5 +1,5 @@ > /*- > - * SPDX-License-Identifier: MIT > + * SPDX-License-Identifier: 0BSD > * > * Copyright (c) 1995 Ugen J.S.Antsilevich > * > > Modified: head/sys/x86/isa/isa.c > ============================================================================== > --- head/sys/x86/isa/isa.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/sys/x86/isa/isa.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,5 +1,5 @@ > /*- > - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND MIT > + * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND ISC) > * > * Copyright (c) 1998 Doug Rabson > * All rights reserved. > > Modified: head/usr.bin/gencat/gencat.c > ============================================================================== > --- head/usr.bin/gencat/gencat.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/usr.bin/gencat/gencat.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -4,7 +4,7 @@ > /* $NetBSD: gencat.c,v 1.18 2003/10/27 00:12:43 lukem Exp $ */ > > /*- > - * SPDX-License-Identifier: BSD-2-Clause-NetBSD AND MIT > + * SPDX-License-Identifier: (BSD-2-Clause-NetBSD AND ISC) > * > * Copyright (c) 1996 The NetBSD Foundation, Inc. > * All rights reserved. > > Modified: head/usr.sbin/ppp/arp.c > ============================================================================== > --- head/usr.sbin/ppp/arp.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/usr.sbin/ppp/arp.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -2,7 +2,7 @@ > * sys-bsd.c - System-dependent procedures for setting up > * PPP interfaces on bsd-4.4-ish systems (including 386BSD, NetBSD, etc.) > * > - * SPDX-License-Identifier: MIT > + * SPDX-License-Identifier: 0BSD > * > * Copyright (c) 1989 Carnegie Mellon University. > * All rights reserved. > > Modified: head/usr.sbin/watch/watch.c > ============================================================================== > --- head/usr.sbin/watch/watch.c Thu Nov 30 14:38:07 2017 (r326397) > +++ head/usr.sbin/watch/watch.c Thu Nov 30 15:10:11 2017 (r326398) > @@ -1,5 +1,5 @@ > /*- > - * SPDX-License-Identifier: MIT > + * SPDX-License-Identifier: 0BSD > * > * Copyright (c) 1995 Ugen J.S.Antsilevich > * > > -- Rod Grimes rgrimes@freebsd.org From owner-svn-src-head@freebsd.org Thu Nov 30 17:44:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 344BCE669F0; Thu, 30 Nov 2017 17:44:05 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D7C76D927; Thu, 30 Nov 2017 17:44:04 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vAUHi32w024694; Thu, 30 Nov 2017 09:44:03 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vAUHi3c1024693; Thu, 30 Nov 2017 09:44:03 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201711301744.vAUHi3c1024693@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm In-Reply-To: <201711301548.vAUFmaGu072114@repo.freebsd.org> To: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 09:44:03 -0800 (PST) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 17:44:05 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: pfg > Date: Thu Nov 30 15:48:35 2017 > New Revision: 326403 > URL: https://svnweb.freebsd.org/changeset/base/326403 > > Log: > SPDX: Consider code from Carnegie-Mellon University. > > Interesting cases, most likely from CMU Mach sources. I can confirm that infact most of this code did infact come from the Mach project, as that is where ddb and the vm system came from in the later UCB BSD releases. Then it appears files got copied into the other archs when those ports occured. > Modified: > head/sys/arm64/include/profile.h ... > + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) > + * > * Copyright (c) 1991 Regents of the University of California. > * All rights reserved. > * Copyright (c) 1994 John S. Dyson HUmmmm.. Just noticed this as I was deleting the body of the original mail, shouldnt this get a different identifier? I suspect many of those files have either Dyson or Greenman or both on them as copyrights. -- Rod Grimes rgrimes@freebsd.org From owner-svn-src-head@freebsd.org Thu Nov 30 17:58:50 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8761CE67088; Thu, 30 Nov 2017 17:58:50 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60EFE6E1B3; Thu, 30 Nov 2017 17:58:50 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUHwnKt055640; Thu, 30 Nov 2017 17:58:49 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUHwne0055636; Thu, 30 Nov 2017 17:58:49 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201711301758.vAUHwne0055636@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Thu, 30 Nov 2017 17:58:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326406 - in head: share/man/man4 sys/arm64/cloudabi32 sys/conf sys/modules X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: in head: share/man/man4 sys/arm64/cloudabi32 sys/conf sys/modules X-SVN-Commit-Revision: 326406 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 17:58:50 -0000 Author: ed Date: Thu Nov 30 17:58:48 2017 New Revision: 326406 URL: https://svnweb.freebsd.org/changeset/base/326406 Log: Port cloudabi32.ko to FreeBSD/arm64. This change adds an implementation of a sysent for running CloudABI armv6 and armv7 binaries on FreeBSD/arm64. It is a somewhat literal copy of the armv6 version, except that it's been patched up to use the proper registers. Just like for cloudabi32.ko on FreeBSD/amd64, we make use of a vDSO that automatically pads system call parameters to 64-bit value. These are stored in a buffer on the stack, meaning we need to use copyin() and copyout() unconditionally. Added: head/sys/arm64/cloudabi32/ - copied from r326229, head/sys/arm/cloudabi32/ Modified: head/share/man/man4/cloudabi.4 head/sys/arm64/cloudabi32/cloudabi32_sysvec.c head/sys/conf/files.arm64 head/sys/modules/Makefile Modified: head/share/man/man4/cloudabi.4 ============================================================================== --- head/share/man/man4/cloudabi.4 Thu Nov 30 15:58:38 2017 (r326405) +++ head/share/man/man4/cloudabi.4 Thu Nov 30 17:58:48 2017 (r326406) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/ +.\" Copyright (c) 2015-2017 Nuxi, https://nuxi.nl/ .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -22,7 +22,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd September 22, 2016 +.Dd November 30, 2017 .Dt CLOUDABI 4 .Os .Sh NAME @@ -84,7 +84,7 @@ module can be loaded on any architecture supported by .Fx , the .Nm cloudabi32 -module is only available on amd64, armv6 and i386. +module is only available on amd64, arm64, armv6, armv7 and i386. The same holds for the .Nm cloudabi64 module, Modified: head/sys/arm64/cloudabi32/cloudabi32_sysvec.c ============================================================================== --- head/sys/arm/cloudabi32/cloudabi32_sysvec.c Sun Nov 26 14:53:56 2017 (r326229) +++ head/sys/arm64/cloudabi32/cloudabi32_sysvec.c Thu Nov 30 17:58:48 2017 (r326406) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/ + * Copyright (c) 2015-2017 Nuxi, https://nuxi.nl/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -53,16 +53,13 @@ cloudabi32_proc_setregs(struct thread *td, struct imag { struct trapframe *regs; - exec_setregs(td, imgp, stack); - - /* - * The stack now contains a pointer to the TCB and the auxiliary - * vector. Let r0 point to the auxiliary vector, and set - * tpidrurw to the TCB. - */ regs = td->td_frame; - regs->tf_r0 = + memset(regs, 0, sizeof(*regs)); + regs->tf_x[0] = stack + roundup(sizeof(cloudabi32_tcb_t), sizeof(register_t)); + regs->tf_x[13] = STACKALIGN(stack); + regs->tf_elr = imgp->entry_addr; + regs->tf_spsr |= PSR_AARCH32; (void)cpu_set_user_tls(td, TO_PTR(stack)); } @@ -77,27 +74,30 @@ cloudabi32_fetch_syscall_args(struct thread *td) sa = &td->td_sa; /* Obtain system call number. */ - sa->code = frame->tf_r12; + sa->code = frame->tf_x[0]; if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL) return (ENOSYS); sa->callp = &cloudabi32_sysent[sa->code]; sa->narg = sa->callp->sy_narg; - /* Fetch system call arguments from registers and the stack. */ - sa->args[0] = frame->tf_r0; - sa->args[1] = frame->tf_r1; - sa->args[2] = frame->tf_r2; - sa->args[3] = frame->tf_r3; - if (sa->narg > 4) { - error = copyin((void *)td->td_frame->tf_usr_sp, &sa->args[4], - (sa->narg - 4) * sizeof(register_t)); - if (error != 0) - return (error); - } + /* + * Fetch system call arguments. + * + * The vDSO has already made sure that the arguments are + * eight-byte aligned. Pointers and size_t parameters are + * zero-extended. This makes it possible to copy in the + * arguments directly. As long as the call doesn't use 32-bit + * data structures, we can just invoke the same system call + * implementation used by 64-bit processes. + */ + error = copyin((void *)frame->tf_x[2], sa->args, + sa->narg * sizeof(sa->args[0])); + if (error != 0) + return (error); /* Default system call return values. */ td->td_retval[0] = 0; - td->td_retval[1] = frame->tf_r1; + td->td_retval[1] = 0; return (0); } @@ -108,20 +108,32 @@ cloudabi32_set_syscall_retval(struct thread *td, int e switch (error) { case 0: - /* System call succeeded. */ - frame->tf_r0 = td->td_retval[0]; - frame->tf_r1 = td->td_retval[1]; - frame->tf_spsr &= ~PSR_C; + /* + * System call succeeded. + * + * Simply copy out the 64-bit return values into the + * same buffer provided for system call arguments. The + * vDSO will copy them to the right spot, truncating + * pointers and size_t values to 32 bits. + */ + if (copyout(td->td_retval, (void *)frame->tf_x[2], + sizeof(td->td_retval)) == 0) { + frame->tf_x[0] = 0; + frame->tf_spsr &= ~PSR_C; + } else { + frame->tf_x[0] = CLOUDABI_EFAULT; + frame->tf_spsr |= PSR_C; + } break; case ERESTART: /* Restart system call. */ - frame->tf_pc -= 4; + frame->tf_elr -= 4; break; case EJUSTRETURN: break; default: /* System call returned an error. */ - frame->tf_r0 = cloudabi_convert_errno(error); + frame->tf_x[0] = cloudabi_convert_errno(error); frame->tf_spsr |= PSR_C; break; } @@ -131,16 +143,15 @@ static void cloudabi32_schedtail(struct thread *td) { struct trapframe *frame = td->td_frame; + register_t retval[2]; - /* - * Initial register values for processes returning from fork. - * Make sure that we only set these values when forking, not - * when creating a new thread. - */ + /* Return values for processes returning from fork. */ if ((td->td_pflags & TDP_FORKING) != 0) { - frame->tf_r0 = CLOUDABI_PROCESS_CHILD; - frame->tf_r1 = td->td_tid; + retval[0] = CLOUDABI_PROCESS_CHILD; + retval[1] = td->td_tid; + copyout(retval, (void *)frame->tf_x[2], sizeof(retval)); } + frame->tf_spsr |= PSR_AARCH32; } int @@ -148,21 +159,18 @@ cloudabi32_thread_setregs(struct thread *td, const cloudabi32_threadattr_t *attr, uint32_t tcb) { struct trapframe *frame; - stack_t stack; - /* Perform standard register initialization. */ - stack.ss_sp = TO_PTR(attr->stack); - stack.ss_size = attr->stack_len; - cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); - /* * Pass in the thread ID of the new thread and the argument * pointer provided by the parent thread in as arguments to the * entry point. */ frame = td->td_frame; - frame->tf_r0 = td->td_tid; - frame->tf_r1 = attr->argument; + memset(frame, 0, sizeof(*frame)); + frame->tf_x[0] = td->td_tid; + frame->tf_x[1] = attr->argument; + frame->tf_x[13] = STACKALIGN(attr->stack + attr->stack_len); + frame->tf_elr = attr->entry_point; /* Set up TLS. */ return (cpu_set_user_tls(td, TO_PTR(tcb))); @@ -176,7 +184,7 @@ static struct sysentvec cloudabi32_elf_sysvec = { .sv_coredump = elf32_coredump, .sv_pagesize = PAGE_SIZE, .sv_minuser = VM_MIN_ADDRESS, - .sv_maxuser = VM_MAXUSER_ADDRESS, + .sv_maxuser = (uintmax_t)1 << 32, .sv_stackprot = VM_PROT_READ | VM_PROT_WRITE, .sv_copyout_strings = cloudabi32_copyout_strings, .sv_setregs = cloudabi32_proc_setregs, Modified: head/sys/conf/files.arm64 ============================================================================== --- head/sys/conf/files.arm64 Thu Nov 30 15:58:38 2017 (r326405) +++ head/sys/conf/files.arm64 Thu Nov 30 17:58:48 2017 (r326406) @@ -1,4 +1,16 @@ # $FreeBSD$ +cloudabi32_vdso.o optional compat_cloudabi32 \ + dependency "$S/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S" \ + compile-with "${CC} -x assembler-with-cpp -m32 -shared -nostdinc -nostdlib -Wl,-T$S/compat/cloudabi/cloudabi_vdso.lds $S/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o ${.TARGET}" \ + no-obj no-implicit-rule \ + clean "cloudabi32_vdso.o" +# +cloudabi32_vdso_blob.o optional compat_cloudabi32 \ + dependency "cloudabi32_vdso.o" \ + compile-with "${OBJCOPY} --input-target binary --output-target elf64-littleaarch64 --binary-architecture aarch64 cloudabi32_vdso.o ${.TARGET}" \ + no-implicit-rule \ + clean "cloudabi32_vdso_blob.o" +# cloudabi64_vdso.o optional compat_cloudabi64 \ dependency "$S/contrib/cloudabi/cloudabi_vdso_aarch64.S" \ compile-with "${CC} -x assembler-with-cpp -shared -nostdinc -nostdlib -Wl,-T$S/compat/cloudabi/cloudabi_vdso.lds $S/contrib/cloudabi/cloudabi_vdso_aarch64.S -o ${.TARGET}" \ @@ -130,6 +142,7 @@ arm64/cavium/thunder_pcie_fdt.c optional soc_cavm_thu arm64/cavium/thunder_pcie_pem.c optional soc_cavm_thunderx pci arm64/cavium/thunder_pcie_pem_fdt.c optional soc_cavm_thunderx pci fdt arm64/cavium/thunder_pcie_common.c optional soc_cavm_thunderx pci +arm64/cloudabi32/cloudabi32_sysvec.c optional compat_cloudabi32 arm64/cloudabi64/cloudabi64_sysvec.c optional compat_cloudabi64 contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" Modified: head/sys/modules/Makefile ============================================================================== --- head/sys/modules/Makefile Thu Nov 30 15:58:38 2017 (r326405) +++ head/sys/modules/Makefile Thu Nov 30 17:58:48 2017 (r326406) @@ -796,8 +796,8 @@ _em= em _epic= epic .endif -.if (${MACHINE_CPUARCH} == "amd64" || ${MACHINE_ARCH:Marmv[67]*} != "" || \ - ${MACHINE_CPUARCH} == "i386") +.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386") _cloudabi32= cloudabi32 .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" From owner-svn-src-head@freebsd.org Thu Nov 30 17:59:25 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9DE1E67348 for ; Thu, 30 Nov 2017 17:59:25 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic301-46.consmr.mail.ne1.yahoo.com (sonic301-46.consmr.mail.ne1.yahoo.com [66.163.184.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A775E6E39C for ; Thu, 30 Nov 2017 17:59:25 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512064763; bh=UwPr6/mjZDHMjlDgMwPiXLCeA4mV7uX9JD7fvah5sfE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=Ihj2fCaP+V/QaZg0fOVk5tt0b+Och9OcTLJQJ1AM6YM2e6coNQq61HeIQfPkzUfi/vYEuRl45Y478KU7qfv2n599fpconmuc820b/kJ7TclFEQOI5tZ8BlxNsvKm9Rabp1iQLmbSLKB81iGHNZ4IYnMH/vTKCz9AxHrB5TW7UTgjDZQB7NvQrSsB8NDgFZt40r4sOK7osVV2dwK1KaTEr72MCu3FINEhCk9KPhtBHm7Vc7ejNxszlYIYU8/p4xxX6KD+l83znm41kTxMV2gy6RYRFDC+gtiyqe9L3UwqLmQ+QYX+0j5kPZ5lryVICNeaK1bVYdUOOH7wrcowjP9stA== X-YMail-OSG: T0yqN5YVM1nba98nEmIYivagvc452RMLcyBYh4pmHVadW1YnjGMsMZ.HNH9Or4M AaORgA5UD3KR6PQe4qLm6ILpuz8b7WgZR63evqQsOxdlJT_Y1AdoMlM9bKoyzgJL.Tzu2jjX9rkE nFOU79HnEz4EiymhhEQw7NMvv88a7dzOoemsFqNCMSty9fBFL3lF1s_mQGARcye2ySLemt8ByQNs k3_auqLurIRVTLwsp_8Krf5fn8WbxHD_P0JNfWM9FE5LCk8wpZt27z6XP044tpPg7TunCnViXn4i goIC8wCmKXIQYj2kSG4741ezTdLtxzgg6iwm4Vi.g67wcSW4UeH1VpVdvfQKg6HmOdCXJI2F9URH XUr7xEWk1yecPCRSUMBKlm5BDAcyJszrtN7tH9_drOK98fbg93RHY9XmRGswqNGlXYcOSd3AYpzX 91POF62JAk2rzSpf85Jpm4KO5NIsg20.avRSjGdsYBGKUYCw02Fp2VQcfBbRz2AT0fEMLws1Y Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 30 Nov 2017 17:59:23 +0000 Received: from smtpgate104.mail.ne1.yahoo.com (EHLO [192.168.0.3]) ([216.155.193.161]) by smtp413.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 340419479; Thu, 30 Nov 2017 17:59:22 +0000 (UTC) Subject: Re: svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm To: rgrimes@freebsd.org Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711301744.vAUHi3c1024693@pdx.rh.CN85.dnsmgr.net> From: Pedro Giffuni Organization: FreeBSD Project Message-ID: <8d49e830-2ae8-6cae-5d98-8507289f4f87@FreeBSD.org> Date: Thu, 30 Nov 2017 12:59:22 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <201711301744.vAUHi3c1024693@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 17:59:26 -0000 ... On 30/11/2017 12:44, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] >> Author: pfg >> Date: Thu Nov 30 15:48:35 2017 >> New Revision: 326403 >> URL: https://svnweb.freebsd.org/changeset/base/326403 >> >> Log: >> SPDX: Consider code from Carnegie-Mellon University. >> >> Interesting cases, most likely from CMU Mach sources. > I can confirm that infact most of this code did infact come from > the Mach project, as that is where ddb and the vm system came > from in the later UCB BSD releases. > > Then it appears files got copied into the other archs > when those ports occured. > >> Modified: >> head/sys/arm64/include/profile.h > ... > >> + * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) >> + * >> * Copyright (c) 1991 Regents of the University of California. >> * All rights reserved. >> * Copyright (c) 1994 John S. Dyson > HUmmmm.. Just noticed this as I was deleting the body of the > original mail, shouldnt this get a different identifier? I > suspect many of those files have either Dyson or Greenman or > both on them as copyrights. > The license identifier is generally  about license types, not about copyright. Pedro. From owner-svn-src-head@freebsd.org Thu Nov 30 18:06:32 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93E73E67C1D for ; Thu, 30 Nov 2017 18:06:32 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic301-46.consmr.mail.ne1.yahoo.com (sonic301-46.consmr.mail.ne1.yahoo.com [66.163.184.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6753F6EB51 for ; Thu, 30 Nov 2017 18:06:32 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512065191; bh=BGZY9isbnExWuMhxlMDC1sqQd55VBaFmdKrPJl0/lck=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=oEomSj6nxaGRJj5wCKFvnuOZbL4RN5jBHXdWeWHv7j93U1p3vD2XVJgbB1t3X/WYPtU+rofhQgqjRUo+fK01BKN4ioTN16vLNK4CfBB6ndz/Sz5xicZlusw3uKILX6daNI0Kk65875iGO07PNz+teYRtJ3ur3VIUBzkw9ToKg6hkxm4yAodo2u8KI0NsWyATP5NRzREl9lGiG+oQDRIovvZqJN9p6AjyiqUMQeIJNL/PHp3L7+eVORcxFwqDby93B1cDR0UfYMT6Jw9xtEIamlnkriNSFmGNCXdzCsOmgMHMZxu0cvsqkI5rmQQLerdqPhjXObDen9u0ZXL705uqxQ== X-YMail-OSG: Bl1dmKEVM1mo0RCcxBUsxx0Q4g1_H4eWR83P7FUz0.FykrWNFw4yO5rZ_MiHk2T Jc3NG7U7zNW2MFROfIu9EsIs7lCgPPrM0MYAW6gV3WvSnayNsCx4OuY_ZhaaI1TJvMNon3evPHQF X.aOIqBaTAbWxmreWrDl3Z35Wge_09wqh4oRnCKr8o.WlkIINvDNU635AM7_7Bkc_s4QTWM5OIzG t3wr_HPr8bp99cFi1EThIB.zXNXiEFHSr0P7QGM__U4mdwDUIJJDahctM07Sx9CzPQJw4izzUv.L da.jG5qAG6u2rW7EW3xZ6m2mFwvdfOaBWfEWdtmJqoArER3K0YK0DRDibL5PfcBda_zancKpwmJU 3XAsEL4OXSbGAYwryz7rzZ64LZuFKiz4tlZFJMAEUmMPo88qd0k9UJId0WMvevhLeg3k4IyBWgdS 0HmbGw.fNQ5IXmka6OQISOuBmzCxm_X33ApMpS.TjwD0DCA1tcnlLlcbgq69mrw_dOv5Y1phQ Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 30 Nov 2017 18:06:31 +0000 Received: from smtp228.mail.ne1.yahoo.com (EHLO [192.168.0.3]) ([10.218.253.213]) by smtp402.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 1897963811; Thu, 30 Nov 2017 17:56:23 +0000 (UTC) Subject: Re: svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch To: rgrimes@freebsd.org Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711301736.vAUHa6dL024661@pdx.rh.CN85.dnsmgr.net> From: Pedro Giffuni Organization: FreeBSD Project Message-ID: Date: Thu, 30 Nov 2017 12:56:23 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <201711301736.vAUHa6dL024661@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 18:06:32 -0000 On 30/11/2017 12:36, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] >> Author: pfg >> Date: Thu Nov 30 15:10:11 2017 >> New Revision: 326398 >> URL: https://svnweb.freebsd.org/changeset/base/326398 >> >> Log: >> SPDX: Fix some cases wrongly attributed to MIT. >> >> In the cases of BSD-style license variants without clauses, use 0BSD for >> the time being in lack of a better description. > If there is not an accurate description in the SPDX list then would it > not be best to have NO SPDX tag at all rather than one that is used > "in the time being", and possibly incorrect? TBH, I am not sure ... this is something I have to consult with the SPDX guys. > Or even make one up, SPDX-UNKNOWN? No, there is a way to submit new licenses in their website. Pedro. From owner-svn-src-head@freebsd.org Thu Nov 30 18:37:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2365EE6856A; Thu, 30 Nov 2017 18:37:10 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCF486F8F9; Thu, 30 Nov 2017 18:37:09 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f50.google.com with SMTP id r6so9557489itr.3; Thu, 30 Nov 2017 10:37:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=4EXEh7mSYO83pPNoEdccDZBFcLJ/DOHfZodKvKJFf5Q=; b=hTtD6BKlzxn0qtl5Qaq3UU0C9UtR/HegWRkIw/49nqW51IBaOpXWVLiWCn6MrizGtj 8ucg1nNJIX9j0PdTAkgQ0YqdzLr2FKqSLwm103/do7JH/jsLaRpXNp1HsayJLA+utT77 wWSLLl82+h0p2TdU8x48CHSONmWqQALmFS8WEDEy/Qmfxd17iXtt72oQjRb/qhJ+M4hb Wied0NK1XEDHZhpEQIpC7kSwH+zLkA8wOlKshvUrNGZIAz0inBpDqN44QzWwaW7lo47k zJEUU8+FgSZh2n7YO56prBovFARibGkw1A/D/wj+/x8JtkWqDFUvHyKSkyvZE42CzT71 Rlfw== X-Gm-Message-State: AJaThX4h3fSfwKcuvAkNqIJ05rlz7rIJte0WdQxDcgJpNDcZRD+KFqqC sOxmSvE1Rff6ox93EQ9DP4nMqJWm X-Google-Smtp-Source: AGs4zMauSbM5hwqQN+Yw08GYbE4Xq6B1IVI8z0mpSFH42lv4R4e+1pNTkgTK9IeCDvjLkWBaDP23+g== X-Received: by 10.36.3.65 with SMTP id e62mr4045170ite.99.1512066710451; Thu, 30 Nov 2017 10:31:50 -0800 (PST) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com. [209.85.214.48]) by smtp.gmail.com with ESMTPSA id f10sm2553346itb.13.2017.11.30.10.31.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 10:31:49 -0800 (PST) Received: by mail-it0-f48.google.com with SMTP id t1so9436369ite.5; Thu, 30 Nov 2017 10:31:49 -0800 (PST) X-Received: by 10.36.192.2 with SMTP id u2mr4348910itf.119.1512066709485; Thu, 30 Nov 2017 10:31:49 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.165.150 with HTTP; Thu, 30 Nov 2017 10:31:49 -0800 (PST) In-Reply-To: <201711301238.vAUCcgrC091396@repo.freebsd.org> References: <201711301238.vAUCcgrC091396@repo.freebsd.org> From: Conrad Meyer Date: Thu, 30 Nov 2017 10:31:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r326394 - head/sys/fs/devfs To: Emmanuel Vadot Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 18:37:10 -0000 This moves the M_WAITOK (sleepable) memory allocation under dirlist_mtx, which is an ordinary mutex. If you run this under WITNESS, it will (rightfully) complain. Please revert this change. One possible way to accomplish the goal you have in mind is a fallback path if the devfs_dir_findent_locked misses. E.g.: =====================================8<================================== --- a/sys/fs/devfs/devfs_dir.c +++ b/sys/fs/devfs/devfs_dir.c @@ -96,19 +96,27 @@ devfs_dir_ref(const char *dir) if (*dir == '\0') return; - dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); - dle_new->dir = strdup(dir, M_DEVFS4); - dle_new->refcnt = 1; + dle_new = NULL; +again: mtx_lock(&dirlist_mtx); dle = devfs_dir_findent_locked(dir); if (dle != NULL) { dle->refcnt++; mtx_unlock(&dirlist_mtx); - free(dle_new->dir, M_DEVFS4); - free(dle_new, M_DEVFS4); + if (dle_new != NULL) { + free(dle_new->dir, M_DEVFS4); + free(dle_new, M_DEVFS4); + } return; } + if (dle_new == NULL) { + mtx_unlock(&dirlist_mtx); + dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); + dle_new->dir = strdup(dir, M_DEVFS4); + dle_new->refcnt = 1; + goto again; + } LIST_INSERT_HEAD(&devfs_dirlist, dle_new, link); mtx_unlock(&dirlist_mtx); } =====================================8<================================== The downside of this method is we potentially have to take the dirlist mutex twice. An even more "optimized" approach would be to M_NOWAIT the allocations inside the lock and fallback if those fail. But that introduces even more code complexity. Best, Conrad On Thu, Nov 30, 2017 at 4:38 AM, Emmanuel Vadot wrote: > Author: manu > Date: Thu Nov 30 12:38:42 2017 > New Revision: 326394 > URL: https://svnweb.freebsd.org/changeset/base/326394 > > Log: > devfs: Avoid a malloc/free if we just need to increment the refcount > > MFC after: 1 week > Sponsored by: Gandi.net > > Modified: > head/sys/fs/devfs/devfs_dir.c > > Modified: head/sys/fs/devfs/devfs_dir.c > ============================================================================== > --- head/sys/fs/devfs/devfs_dir.c Thu Nov 30 12:22:15 2017 (r326393) > +++ head/sys/fs/devfs/devfs_dir.c Thu Nov 30 12:38:42 2017 (r326394) > @@ -98,19 +98,18 @@ devfs_dir_ref(const char *dir) > if (*dir == '\0') > return; > > - dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); > - dle_new->dir = strdup(dir, M_DEVFS4); > - dle_new->refcnt = 1; > - > mtx_lock(&dirlist_mtx); > dle = devfs_dir_findent_locked(dir); > if (dle != NULL) { > dle->refcnt++; > mtx_unlock(&dirlist_mtx); > - free(dle_new->dir, M_DEVFS4); > - free(dle_new, M_DEVFS4); > return; > } > + > + dle_new = malloc(sizeof(*dle), M_DEVFS4, M_WAITOK); > + dle_new->dir = strdup(dir, M_DEVFS4); > + dle_new->refcnt = 1; > + > LIST_INSERT_HEAD(&devfs_dirlist, dle_new, link); > mtx_unlock(&dirlist_mtx); > } > From owner-svn-src-head@freebsd.org Thu Nov 30 19:04:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D57F0E68FF0; Thu, 30 Nov 2017 19:04:58 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f49.google.com (mail-it0-f49.google.com [209.85.214.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A34A4708B9; Thu, 30 Nov 2017 19:04:58 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f49.google.com with SMTP id p139so9600404itb.1; Thu, 30 Nov 2017 11:04:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=Sli61XDq4CeCpWKo6GsOWN8+HOY6e5wVhFg86fvfcyA=; b=QWmVW3xi3vJDw6fI71ex7wBSPlGMHC33SMelAXJedpDRC0wjLb+f018nZpAfM2g81L 3XLKCLV1wwpK7xr09NRRj+DrMOnMbVwYBRABjpxJmZ5p1qT+DxKTEpUSOk4ffZQyMKyg oI1XikQyYMd/nZAEvU8vCHMl1ek2qZXj/h4i6udttj96Sb6X8R+babDqGgJksxrvDR5k gSg2hE/bSI2jihlB7yHAQxTpZGneIaJtrNZOBOTPgyRbyx6bVFtfgnLN8MZZGgUA52Wj rgpHGbAedlxsX448lI5j0aLcP6Ai9w4pd+UjPLNSd2HU3agDN6tWmjeZK2NMXBUP/rIQ u8lg== X-Gm-Message-State: AJaThX49SWd42pBB+cLCM/hphR0QFg1LL7z5hGels3JFFjEK0XTIv/k1 Uviu+K2Bx3vHpdD5B5P+4T6Y6kPi X-Google-Smtp-Source: AGs4zMZqgAcyQmLTfqc0QUHFq1aQcDbrRnyG7GpD/rlpGu4yjtiB4jbwp5cUivpdv2pfBySRcekc0g== X-Received: by 10.36.125.75 with SMTP id b72mr4727555itc.16.1512068230314; Thu, 30 Nov 2017 10:57:10 -0800 (PST) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com. [209.85.214.51]) by smtp.gmail.com with ESMTPSA id w133sm2577850itc.44.2017.11.30.10.57.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 10:57:09 -0800 (PST) Received: by mail-it0-f51.google.com with SMTP id z6so9514460iti.4; Thu, 30 Nov 2017 10:57:09 -0800 (PST) X-Received: by 10.36.228.68 with SMTP id o65mr4736862ith.128.1512068229765; Thu, 30 Nov 2017 10:57:09 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.165.150 with HTTP; Thu, 30 Nov 2017 10:57:09 -0800 (PST) In-Reply-To: <201711300140.vAU1e7dC001292@repo.freebsd.org> References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Conrad Meyer Date: Thu, 30 Nov 2017 10:57:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: Jung-uk Kim Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 19:04:58 -0000 Hi Jung-uk, I have some questions about this change. On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote: > Author: jkim > Date: Thu Nov 30 01:40:07 2017 > New Revision: 326383 > URL: https://svnweb.freebsd.org/changeset/base/326383 > > Log: > Add a tunable "debug.hwpstate_verify" to check P-state after changing it and > turn it off by default. It is very inefficient to verify current P-state of > each core, especially for CPUs with many cores. When multiple commands are > requested to the same power domain before completion of pending transitions, > the last command is executed according to the manual. Because requests are > serialized by the caller, all cores will receive the same command for each > call. Do not call sched_bind() and sched_unbind(). It is redundant because > the caller does it anyway. > ... > @@ -176,47 +178,57 @@ hwpstate_goto_pstate(device_t dev, int pstate) > if (limit > id) > id = limit; > Should we bind the thread and record PCPU_GET() here? > + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, > + PCPU_GET(cpuid)); > + /* Go To Px-state */ > + wrmsr(MSR_AMD_10H_11H_CONTROL, id); > + > /* > * We are going to the same Px-state on all cpus. > * Probably should take _PSD into account. > */ > - error = 0; > CPU_FOREACH(i) { > + if (i == PCPU_GET(cpuid)) It seems like this check could evaluate to a different CPU every time? When really we are trying to avoid setting on the CPU we set on initially above? > + continue; > + > /* Bind to each cpu. */ > thread_lock(curthread); > sched_bind(curthread, i); > thread_unlock(curthread); > - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", > - id, PCPU_GET(cpuid)); > + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, i); > /* Go To Px-state */ > wrmsr(MSR_AMD_10H_11H_CONTROL, id); > } > - CPU_FOREACH(i) { > - /* Bind to each cpu. */ > - thread_lock(curthread); > - sched_bind(curthread, i); > - thread_unlock(curthread); > - /* wait loop (100*100 usec is enough ?) */ > - for (j = 0; j < 100; j++) { > - /* get the result. not assure msr=id */ > - msr = rdmsr(MSR_AMD_10H_11H_STATUS); > - if (msr == id) > - break; > - sbt = SBT_1MS / 10; > - tsleep_sbt(dev, PZERO, "pstate_goto", sbt, > - sbt >> tc_precexp, 0); > + > + /* > + * Verify whether each core is in the requested P-state. > + */ > + if (hwpstate_verify) { > + CPU_FOREACH(i) { > + thread_lock(curthread); > + sched_bind(curthread, i); > + thread_unlock(curthread); > + /* wait loop (100*100 usec is enough ?) */ > + for (j = 0; j < 100; j++) { > + /* get the result. not assure msr=id */ > + msr = rdmsr(MSR_AMD_10H_11H_STATUS); > + if (msr == id) > + break; > + sbt = SBT_1MS / 10; > + tsleep_sbt(dev, PZERO, "pstate_goto", sbt, > + sbt >> tc_precexp, 0); > + } > + HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", > + (int)msr, i); > + if (msr != id) { > + HWPSTATE_DEBUG(dev, > + "error: loop is not enough.\n"); In this error return, should the current thread be unbinded? The old code did this by setting error and falling through to the ordinary exit path. We could use 'goto out;' to avoid looping through the rest of the CPUs. > + return (ENXIO); > + } > } > - HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", > - (int)msr, PCPU_GET(cpuid)); > - if (msr != id) { > - HWPSTATE_DEBUG(dev, "error: loop is not enough.\n"); > - error = ENXIO; > - } > } > - thread_lock(curthread); > - sched_unbind(curthread); > - thread_unlock(curthread); > - return (error); > + > + return (0); > } > > static int > Best, Conrad From owner-svn-src-head@freebsd.org Thu Nov 30 19:21:40 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89173E69776; Thu, 30 Nov 2017 19:21:40 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id B5704710DF; Thu, 30 Nov 2017 19:21:39 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Jung-uk Kim Message-ID: Date: Thu, 30 Nov 2017 14:21:34 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uNDKpI0H5TJeWUu4mGoBxApilSIaXqd4O" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 19:21:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uNDKpI0H5TJeWUu4mGoBxApilSIaXqd4O Content-Type: multipart/mixed; boundary="QQQmE4AGqIXsSaAu0KRvDTkpHD31nvbjk"; protected-headers="v1" From: Jung-uk Kim To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq References: <201711300140.vAU1e7dC001292@repo.freebsd.org> In-Reply-To: --QQQmE4AGqIXsSaAu0KRvDTkpHD31nvbjk Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 11/30/2017 13:57, Conrad Meyer wrote: > Hi Jung-uk, >=20 > I have some questions about this change. >=20 > On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote: >> Author: jkim >> Date: Thu Nov 30 01:40:07 2017 >> New Revision: 326383 >> URL: https://svnweb.freebsd.org/changeset/base/326383 >> >> Log: >> Add a tunable "debug.hwpstate_verify" to check P-state after changin= g it and >> turn it off by default. It is very inefficient to verify current P-= state of >> each core, especially for CPUs with many cores. When multiple comma= nds are >> requested to the same power domain before completion of pending tran= sitions, >> the last command is executed according to the manual. Because reque= sts are >> serialized by the caller, all cores will receive the same command fo= r each >> call. Do not call sched_bind() and sched_unbind(). It is redundant= because >> the caller does it anyway. >> ... >> @@ -176,47 +178,57 @@ hwpstate_goto_pstate(device_t dev, int pstate) >> if (limit > id) >> id =3D limit; >> >=20 > Should we bind the thread and record PCPU_GET() here? >=20 >> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, >> + PCPU_GET(cpuid)); >> + /* Go To Px-state */ >> + wrmsr(MSR_AMD_10H_11H_CONTROL, id); >> + >> /* >> * We are going to the same Px-state on all cpus. >> * Probably should take _PSD into account. >> */ >> - error =3D 0; >> CPU_FOREACH(i) { >> + if (i =3D=3D PCPU_GET(cpuid)) >=20 > It seems like this check could evaluate to a different CPU every time? > When really we are trying to avoid setting on the CPU we set on > initially above? >=20 >> + continue; >> + >> /* Bind to each cpu. */ >> thread_lock(curthread); >> sched_bind(curthread, i); >> thread_unlock(curthread); >> - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", >> - id, PCPU_GET(cpuid)); >> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id= , i); >> /* Go To Px-state */ >> wrmsr(MSR_AMD_10H_11H_CONTROL, id); >> } >> - CPU_FOREACH(i) { >> - /* Bind to each cpu. */ >> - thread_lock(curthread); >> - sched_bind(curthread, i); >> - thread_unlock(curthread); >> - /* wait loop (100*100 usec is enough ?) */ >> - for (j =3D 0; j < 100; j++) { >> - /* get the result. not assure msr=3Did */ >> - msr =3D rdmsr(MSR_AMD_10H_11H_STATUS); >> - if (msr =3D=3D id) >> - break; >> - sbt =3D SBT_1MS / 10; >> - tsleep_sbt(dev, PZERO, "pstate_goto", sbt, >> - sbt >> tc_precexp, 0); >> + >> + /* >> + * Verify whether each core is in the requested P-state. >> + */ >> + if (hwpstate_verify) { >> + CPU_FOREACH(i) { >> + thread_lock(curthread); >> + sched_bind(curthread, i); >> + thread_unlock(curthread); >> + /* wait loop (100*100 usec is enough ?) */ >> + for (j =3D 0; j < 100; j++) { >> + /* get the result. not assure msr=3Did= */ >> + msr =3D rdmsr(MSR_AMD_10H_11H_STATUS);= >> + if (msr =3D=3D id) >> + break; >> + sbt =3D SBT_1MS / 10; >> + tsleep_sbt(dev, PZERO, "pstate_goto", = sbt, >> + sbt >> tc_precexp, 0); >> + } >> + HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%= d\n", >> + (int)msr, i); >> + if (msr !=3D id) { >> + HWPSTATE_DEBUG(dev, >> + "error: loop is not enough.\n"); >=20 > In this error return, should the current thread be unbinded? The old > code did this by setting error and falling through to the ordinary > exit path. We could use 'goto out;' to avoid looping through the rest > of the CPUs. >=20 >> + return (ENXIO); >> + } >> } >> - HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", >> - (int)msr, PCPU_GET(cpuid)); >> - if (msr !=3D id) { >> - HWPSTATE_DEBUG(dev, "error: loop is not enough= =2E\n"); >> - error =3D ENXIO; >> - } >> } >> - thread_lock(curthread); >> - sched_unbind(curthread); >> - thread_unlock(curthread); >> - return (error); >> + >> + return (0); >> } >> >> static int >> This driver is only called via cpufreq(4) (i.e., sys/kern/kern_cpu.c), and sched_bind()/sched_unbind() is done from cf_set_method() for cpu0. If you want to see the sequence, try "sysctl debug.cpufreq.verbose=3D1" and "sysctl debug.hwpstate_verbose=3D1". Jung-uk Kim --QQQmE4AGqIXsSaAu0KRvDTkpHD31nvbjk-- --uNDKpI0H5TJeWUu4mGoBxApilSIaXqd4O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlogWkMACgkQfJ+WJvzb 8UZsGwf9FZhjwSxr7g0Bljp1g2Lj/qEGfZZ+zjVDwT5daKsrGIgfQ9Z6vdwO8mM0 9NCTZkX8R4V9gvjR36wRCmYSC3iMm22aB3TBsQJlqEwMqPbJmaa/Blp3xuFOogEw kKoeZ3XD8KHlcmbVkdBxqkvW3Tyg9AgB5lWbEjbPXuc8dcFFs9r8h3CiY5Q0FUlw yDGB1Y6BrY0O8v+veAi2Btv39tWJ8FVqQ+R6gRAaSKsiNuJC1ogzWwfPd26uY5// E1OWSdAd+IG5WWbb2EXJk+O9gvXZ2v+6EiBuOIGlMP0bnS3lCnF+KyRp8JlKf4h7 zu3L1nEI8SO47PR7G2UeTDLpyjhkoQ== =+7U0 -----END PGP SIGNATURE----- --uNDKpI0H5TJeWUu4mGoBxApilSIaXqd4O-- From owner-svn-src-head@freebsd.org Thu Nov 30 19:38:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 880A8E69DD1; Thu, 30 Nov 2017 19:38:55 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5829171B10; Thu, 30 Nov 2017 19:38:55 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f47.google.com with SMTP id m11so2135983iti.1; Thu, 30 Nov 2017 11:38:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=EChsBkOPtY1DLJH7Ew+dJv/5ZH07d1UZKOKCcxNGMO8=; b=OI9l9rjor7s+XxDKL96z5svIfZ6IC7gSSVk26OsAfPuAVx4LXT4Rudncv7rAxBUYxT fCKvt1Grs2L/jPaKDdUUKbTFX9dmmHvhqWjEpPVj07qKYxji5atdafB2Gn8fyeIdBiax 8GWmWF34MKWC4AR1No1pLXUTciezCda+RWbBmLYj7tfCOzL7mnhMHcDrQnvkjMnskEeb RJLPTIbZYvsEYt1fvzr79s3oYAup0qNk+J1lbNwgf9jo8CKaSyjMZ5eTAwDigmCmg5f3 U2q58Ks/0Ckk6paouV0pJqY8H15eT9Ay6uCZuRw6sA6XAHzuOAk4tzqug6etK59shEmS SyiQ== X-Gm-Message-State: AJaThX5KxeanTjqeW+LCLKiS4AZ+/cs6J284IHMUCEsbzNKbiuOrPoji /SYxNZy8V2ebCeXicbZyTc11GXi5 X-Google-Smtp-Source: AGs4zMbXo3M4rXiF4Y8DKBDWA5pVqW0vWZeZQwYBlN29HvuUwW0jGuKOnjIHppQLrEZhhAhp1UMZHg== X-Received: by 10.36.135.5 with SMTP id f5mr4778086ite.85.1512070350049; Thu, 30 Nov 2017 11:32:30 -0800 (PST) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com. [209.85.223.179]) by smtp.gmail.com with ESMTPSA id s67sm2209427iod.85.2017.11.30.11.32.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 11:32:29 -0800 (PST) Received: by mail-io0-f179.google.com with SMTP id d16so8744713iob.4; Thu, 30 Nov 2017 11:32:29 -0800 (PST) X-Received: by 10.107.181.147 with SMTP id e141mr3255414iof.117.1512070349509; Thu, 30 Nov 2017 11:32:29 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.165.150 with HTTP; Thu, 30 Nov 2017 11:32:29 -0800 (PST) In-Reply-To: References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Conrad Meyer Date: Thu, 30 Nov 2017 11:32:29 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: Jung-uk Kim Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 19:38:55 -0000 Hi, I don't think this answers the second question about the conditional. It seems like PCPU_GET() for the initial CPU should be pulled out of the loop, which binds the thread to a different CPU every iteration. Also, as a side effect of disabling verification, you have fixed PR 221621, 219213, and probably 218262. Best, Conrad On Thu, Nov 30, 2017 at 11:21 AM, Jung-uk Kim wrote: > On 11/30/2017 13:57, Conrad Meyer wrote: >> Hi Jung-uk, >> >> I have some questions about this change. >> >> On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote: >>> Author: jkim >>> Date: Thu Nov 30 01:40:07 2017 >>> New Revision: 326383 >>> URL: https://svnweb.freebsd.org/changeset/base/326383 >>> >>> Log: >>> Add a tunable "debug.hwpstate_verify" to check P-state after changing it and >>> turn it off by default. It is very inefficient to verify current P-state of >>> each core, especially for CPUs with many cores. When multiple commands are >>> requested to the same power domain before completion of pending transitions, >>> the last command is executed according to the manual. Because requests are >>> serialized by the caller, all cores will receive the same command for each >>> call. Do not call sched_bind() and sched_unbind(). It is redundant because >>> the caller does it anyway. >>> ... >>> @@ -176,47 +178,57 @@ hwpstate_goto_pstate(device_t dev, int pstate) >>> if (limit > id) >>> id = limit; >>> >> >> Should we bind the thread and record PCPU_GET() here? >> >>> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, >>> + PCPU_GET(cpuid)); >>> + /* Go To Px-state */ >>> + wrmsr(MSR_AMD_10H_11H_CONTROL, id); >>> + >>> /* >>> * We are going to the same Px-state on all cpus. >>> * Probably should take _PSD into account. >>> */ >>> - error = 0; >>> CPU_FOREACH(i) { >>> + if (i == PCPU_GET(cpuid)) >> >> It seems like this check could evaluate to a different CPU every time? >> When really we are trying to avoid setting on the CPU we set on >> initially above? >> >>> + continue; >>> + >>> /* Bind to each cpu. */ >>> thread_lock(curthread); >>> sched_bind(curthread, i); >>> thread_unlock(curthread); >>> - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", >>> - id, PCPU_GET(cpuid)); >>> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, i); >>> /* Go To Px-state */ >>> wrmsr(MSR_AMD_10H_11H_CONTROL, id); >>> } >>> - CPU_FOREACH(i) { >>> - /* Bind to each cpu. */ >>> - thread_lock(curthread); >>> - sched_bind(curthread, i); >>> - thread_unlock(curthread); >>> - /* wait loop (100*100 usec is enough ?) */ >>> - for (j = 0; j < 100; j++) { >>> - /* get the result. not assure msr=id */ >>> - msr = rdmsr(MSR_AMD_10H_11H_STATUS); >>> - if (msr == id) >>> - break; >>> - sbt = SBT_1MS / 10; >>> - tsleep_sbt(dev, PZERO, "pstate_goto", sbt, >>> - sbt >> tc_precexp, 0); >>> + >>> + /* >>> + * Verify whether each core is in the requested P-state. >>> + */ >>> + if (hwpstate_verify) { >>> + CPU_FOREACH(i) { >>> + thread_lock(curthread); >>> + sched_bind(curthread, i); >>> + thread_unlock(curthread); >>> + /* wait loop (100*100 usec is enough ?) */ >>> + for (j = 0; j < 100; j++) { >>> + /* get the result. not assure msr=id */ >>> + msr = rdmsr(MSR_AMD_10H_11H_STATUS); >>> + if (msr == id) >>> + break; >>> + sbt = SBT_1MS / 10; >>> + tsleep_sbt(dev, PZERO, "pstate_goto", sbt, >>> + sbt >> tc_precexp, 0); >>> + } >>> + HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", >>> + (int)msr, i); >>> + if (msr != id) { >>> + HWPSTATE_DEBUG(dev, >>> + "error: loop is not enough.\n"); >> >> In this error return, should the current thread be unbinded? The old >> code did this by setting error and falling through to the ordinary >> exit path. We could use 'goto out;' to avoid looping through the rest >> of the CPUs. >> >>> + return (ENXIO); >>> + } >>> } >>> - HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", >>> - (int)msr, PCPU_GET(cpuid)); >>> - if (msr != id) { >>> - HWPSTATE_DEBUG(dev, "error: loop is not enough.\n"); >>> - error = ENXIO; >>> - } >>> } >>> - thread_lock(curthread); >>> - sched_unbind(curthread); >>> - thread_unlock(curthread); >>> - return (error); >>> + >>> + return (0); >>> } >>> >>> static int >>> > > This driver is only called via cpufreq(4) (i.e., sys/kern/kern_cpu.c), > and sched_bind()/sched_unbind() is done from cf_set_method() for cpu0. > If you want to see the sequence, try "sysctl debug.cpufreq.verbose=1" > and "sysctl debug.hwpstate_verbose=1". > > Jung-uk Kim > From owner-svn-src-head@freebsd.org Thu Nov 30 20:08:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42933E6A706; Thu, 30 Nov 2017 20:08:57 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id BB79172814; Thu, 30 Nov 2017 20:08:56 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Jung-uk Kim Message-ID: Date: Thu, 30 Nov 2017 15:08:49 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bVc1ritjhQ9b93OelUSwCTM7HNNNrDC1F" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:08:57 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bVc1ritjhQ9b93OelUSwCTM7HNNNrDC1F Content-Type: multipart/mixed; boundary="C9XaTPafNFwuxQ00RkxowFWtUO9F9IsQ3"; protected-headers="v1" From: Jung-uk Kim To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq References: <201711300140.vAU1e7dC001292@repo.freebsd.org> In-Reply-To: --C9XaTPafNFwuxQ00RkxowFWtUO9F9IsQ3 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 11/30/2017 14:32, Conrad Meyer wrote: > Hi, >=20 > I don't think this answers the second question about the conditional. > It seems like PCPU_GET() for the initial CPU should be pulled out of > the loop, which binds the thread to a different CPU every iteration. Ah, good catch. I'll fix it soon. Sorry. > Also, as a side effect of disabling verification, you have fixed PR > 221621, 219213, and probably 218262. Probably. However, I am just trying to fix my FX-8350 and A10-6800 and I don't have Zen processors to verify the MSRs are actually working on those CPUs. Jung-uk Kim > On Thu, Nov 30, 2017 at 11:21 AM, Jung-uk Kim wrote:= >> On 11/30/2017 13:57, Conrad Meyer wrote: >>> Hi Jung-uk, >>> >>> I have some questions about this change. >>> >>> On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote= : >>>> Author: jkim >>>> Date: Thu Nov 30 01:40:07 2017 >>>> New Revision: 326383 >>>> URL: https://svnweb.freebsd.org/changeset/base/326383 >>>> >>>> Log: >>>> Add a tunable "debug.hwpstate_verify" to check P-state after chang= ing it and >>>> turn it off by default. It is very inefficient to verify current = P-state of >>>> each core, especially for CPUs with many cores. When multiple com= mands are >>>> requested to the same power domain before completion of pending tr= ansitions, >>>> the last command is executed according to the manual. Because req= uests are >>>> serialized by the caller, all cores will receive the same command = for each >>>> call. Do not call sched_bind() and sched_unbind(). It is redunda= nt because >>>> the caller does it anyway. >>>> ... >>>> @@ -176,47 +178,57 @@ hwpstate_goto_pstate(device_t dev, int pstate)= >>>> if (limit > id) >>>> id =3D limit; >>>> >>> >>> Should we bind the thread and record PCPU_GET() here? >>> >>>> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, >>>> + PCPU_GET(cpuid)); >>>> + /* Go To Px-state */ >>>> + wrmsr(MSR_AMD_10H_11H_CONTROL, id); >>>> + >>>> /* >>>> * We are going to the same Px-state on all cpus. >>>> * Probably should take _PSD into account. >>>> */ >>>> - error =3D 0; >>>> CPU_FOREACH(i) { >>>> + if (i =3D=3D PCPU_GET(cpuid)) >>> >>> It seems like this check could evaluate to a different CPU every time= ? >>> When really we are trying to avoid setting on the CPU we set on >>> initially above? >>> >>>> + continue; >>>> + >>>> /* Bind to each cpu. */ >>>> thread_lock(curthread); >>>> sched_bind(curthread, i); >>>> thread_unlock(curthread); >>>> - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", >>>> - id, PCPU_GET(cpuid)); >>>> + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", = id, i); >>>> /* Go To Px-state */ >>>> wrmsr(MSR_AMD_10H_11H_CONTROL, id); >>>> } >>>> - CPU_FOREACH(i) { >>>> - /* Bind to each cpu. */ >>>> - thread_lock(curthread); >>>> - sched_bind(curthread, i); >>>> - thread_unlock(curthread); >>>> - /* wait loop (100*100 usec is enough ?) */ >>>> - for (j =3D 0; j < 100; j++) { >>>> - /* get the result. not assure msr=3Did */ >>>> - msr =3D rdmsr(MSR_AMD_10H_11H_STATUS); >>>> - if (msr =3D=3D id) >>>> - break; >>>> - sbt =3D SBT_1MS / 10; >>>> - tsleep_sbt(dev, PZERO, "pstate_goto", sbt, >>>> - sbt >> tc_precexp, 0); >>>> + >>>> + /* >>>> + * Verify whether each core is in the requested P-state. >>>> + */ >>>> + if (hwpstate_verify) { >>>> + CPU_FOREACH(i) { >>>> + thread_lock(curthread); >>>> + sched_bind(curthread, i); >>>> + thread_unlock(curthread); >>>> + /* wait loop (100*100 usec is enough ?) */ >>>> + for (j =3D 0; j < 100; j++) { >>>> + /* get the result. not assure msr=3D= id */ >>>> + msr =3D rdmsr(MSR_AMD_10H_11H_STATUS= ); >>>> + if (msr =3D=3D id) >>>> + break; >>>> + sbt =3D SBT_1MS / 10; >>>> + tsleep_sbt(dev, PZERO, "pstate_goto"= , sbt, >>>> + sbt >> tc_precexp, 0); >>>> + } >>>> + HWPSTATE_DEBUG(dev, "result: P%d-state on cp= u%d\n", >>>> + (int)msr, i); >>>> + if (msr !=3D id) { >>>> + HWPSTATE_DEBUG(dev, >>>> + "error: loop is not enough.\n");= >>> >>> In this error return, should the current thread be unbinded? The old= >>> code did this by setting error and falling through to the ordinary >>> exit path. We could use 'goto out;' to avoid looping through the res= t >>> of the CPUs. >>> >>>> + return (ENXIO); >>>> + } >>>> } >>>> - HWPSTATE_DEBUG(dev, "result: P%d-state on cpu%d\n", >>>> - (int)msr, PCPU_GET(cpuid)); >>>> - if (msr !=3D id) { >>>> - HWPSTATE_DEBUG(dev, "error: loop is not enou= gh.\n"); >>>> - error =3D ENXIO; >>>> - } >>>> } >>>> - thread_lock(curthread); >>>> - sched_unbind(curthread); >>>> - thread_unlock(curthread); >>>> - return (error); >>>> + >>>> + return (0); >>>> } >>>> >>>> static int >>>> >> >> This driver is only called via cpufreq(4) (i.e., sys/kern/kern_cpu.c),= >> and sched_bind()/sched_unbind() is done from cf_set_method() for cpu0.= >> If you want to see the sequence, try "sysctl debug.cpufreq.verbose=3D1= " >> and "sysctl debug.hwpstate_verbose=3D1". --C9XaTPafNFwuxQ00RkxowFWtUO9F9IsQ3-- --bVc1ritjhQ9b93OelUSwCTM7HNNNrDC1F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlogZVEACgkQfJ+WJvzb 8UbsLQf/WFyvC0lzNc6gLFVbmkGB92c+M6edhKzzygKNph1XPjxmNh2656EUyxXe nTlEyEZDZCqAWH32FgcmnnEHGAKi7ejn95OTFP4zt13ShyhJxYDgMig+KIiA1mmt l3MPpyqpaELlftmuwctnPJyEj+Mb8iwRMFpzTPWW9L0o7ILZAM0zX71DKh29ABrf f3KKWWocuWFT+e3vKXWxn/qBEOHm22PBg4EY9awOfzfh8EO9lQ4e9oDKe0Xf3FDE StmOmY7dbCRr5b2SnBYmLtQ+x6eGD5dXfdOuF9s/waMd1/QAHdmrccg/CBSEzXjL REHvMcJFLjQTHxG09VhnSjNSh47wzw== =9KZH -----END PGP SIGNATURE----- --bVc1ritjhQ9b93OelUSwCTM7HNNNrDC1F-- From owner-svn-src-head@freebsd.org Thu Nov 30 20:21:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18FACE6AB2D; Thu, 30 Nov 2017 20:21:44 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D94E872FBD; Thu, 30 Nov 2017 20:21:43 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKLgKr016747; Thu, 30 Nov 2017 20:21:42 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKLgNg016746; Thu, 30 Nov 2017 20:21:42 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201711302021.vAUKLgNg016746@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Thu, 30 Nov 2017 20:21:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326407 - head/sys/x86/cpufreq X-SVN-Group: head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/sys/x86/cpufreq X-SVN-Commit-Revision: 326407 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:21:44 -0000 Author: jkim Date: Thu Nov 30 20:21:42 2017 New Revision: 326407 URL: https://svnweb.freebsd.org/changeset/base/326407 Log: Properly skip the first CPU. It only accidentally worked because the CPU_FOREACH() loop always starts from BSP (cpu0) and the if condition is always false for APs. Reported by: cem Modified: head/sys/x86/cpufreq/hwpstate.c Modified: head/sys/x86/cpufreq/hwpstate.c ============================================================================== --- head/sys/x86/cpufreq/hwpstate.c Thu Nov 30 17:58:48 2017 (r326406) +++ head/sys/x86/cpufreq/hwpstate.c Thu Nov 30 20:21:42 2017 (r326407) @@ -167,10 +167,8 @@ static int hwpstate_goto_pstate(device_t dev, int id) { sbintime_t sbt; - int i; uint64_t msr; - int j; - int limit; + int cpu, i, j, limit; /* get the current pstate limit */ msr = rdmsr(MSR_AMD_10H_11H_LIMIT); @@ -178,8 +176,8 @@ hwpstate_goto_pstate(device_t dev, int id) if (limit > id) id = limit; - HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, - PCPU_GET(cpuid)); + cpu = curcpu; + HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, cpu); /* Go To Px-state */ wrmsr(MSR_AMD_10H_11H_CONTROL, id); @@ -188,7 +186,7 @@ hwpstate_goto_pstate(device_t dev, int id) * Probably should take _PSD into account. */ CPU_FOREACH(i) { - if (i == PCPU_GET(cpuid)) + if (i == cpu) continue; /* Bind to each cpu. */ From owner-svn-src-head@freebsd.org Thu Nov 30 20:31:14 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA8D9DB928B; Thu, 30 Nov 2017 20:31:13 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A678573867; Thu, 30 Nov 2017 20:31:13 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io0-f174.google.com with SMTP id s37so8892771ioe.10; Thu, 30 Nov 2017 12:31:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=JtQXvPtrrH/hAPkBJVXSfhJIXQObKsx9iUZMcJxFjTU=; b=qtDfr+sL6xzKeFcQfLq1GgxH5qEVNDSI1C4HxVOOqxNbrVtHS0yWGMISJMOrB4ayPP DsY4d7XjpfNHmAXvxjk0BlFMDTEGgE5uR4QAnXMokQvZ8E/c/tjepPEHyabekDg6xVGF AzwxwTrnoZRPmE7rJuAKL4c7FTcStZStQia+YcUkTLoxNEP/cKZGiizzH8lb9qOLNNYB lpx5BN9KAIJRGn6mrUg3hffu676oHNMNl9WdxXmhuCQQhHV0UwTXCeUNAT30Yqq87jsW 8b9i2FF7Cz4XyDYv7kFUEQxwAh0D2DckJ9T3kIiWOa+AAYxYqIKa9ipmKUiD6hx+CwoC rrVw== X-Gm-Message-State: AJaThX78kroxIOXQbRm4TqqUPbq6UiZhwmsZP2RMtNUn327TGm1z1ZTq aYsqIzu1v5Kp+Exy9RrsWaOwhK0r X-Google-Smtp-Source: AGs4zMaPQIXgIOSLqrdxFPUMgGfoYvb/3uGoODFg2hdqCp/TTB8mNCEmFUSiJ5/SVnO9D1MC5aLDXg== X-Received: by 10.107.222.20 with SMTP id v20mr9932587iog.48.1512073867536; Thu, 30 Nov 2017 12:31:07 -0800 (PST) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com. [209.85.223.180]) by smtp.gmail.com with ESMTPSA id h140sm2224272iof.81.2017.11.30.12.31.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 12:31:07 -0800 (PST) Received: by mail-io0-f180.google.com with SMTP id d21so8916618ioe.7; Thu, 30 Nov 2017 12:31:07 -0800 (PST) X-Received: by 10.107.181.147 with SMTP id e141mr3464052iof.117.1512073867242; Thu, 30 Nov 2017 12:31:07 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.165.150 with HTTP; Thu, 30 Nov 2017 12:31:06 -0800 (PST) In-Reply-To: References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Conrad Meyer Date: Thu, 30 Nov 2017 12:31:06 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: Jung-uk Kim Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:31:14 -0000 On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote: > On 11/30/2017 14:32, Conrad Meyer wrote: >> Hi, >> >> I don't think this answers the second question about the conditional. >> It seems like PCPU_GET() for the initial CPU should be pulled out of >> the loop, which binds the thread to a different CPU every iteration. > > Ah, good catch. I'll fix it soon. Sorry. Thanks! :-) >> Also, as a side effect of disabling verification, you have fixed PR >> 221621, 219213, and probably 218262. > > Probably. However, I am just trying to fix my FX-8350 and A10-6800 and > I don't have Zen processors to verify the MSRs are actually working on > those CPUs. I have one, I can verify if needed (although the change looks good to me). On some Zen systems (including mine) it seems that the hardware can successfully set a P-state, but will fail to read it back. For me it is P1 but other users have reported P0. That's the root issue of all of those PRs. If reading back isn't required, maybe that's a solution to the issue. Best, Conrad From owner-svn-src-head@freebsd.org Thu Nov 30 20:33:53 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 739F1DB9584; Thu, 30 Nov 2017 20:33:53 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FB4773DFB; Thu, 30 Nov 2017 20:33:49 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKXm26022544; Thu, 30 Nov 2017 20:33:48 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKXju7022512; Thu, 30 Nov 2017 20:33:45 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201711302033.vAUKXju7022512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 30 Nov 2017 20:33:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x86... X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x86/include tools/tools/kern... X-SVN-Commit-Revision: 326408 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:33:53 -0000 Author: pfg Date: Thu Nov 30 20:33:45 2017 New Revision: 326408 URL: https://svnweb.freebsd.org/changeset/base/326408 Log: SPDX: use the Beerware identifier. Modified: head/lib/libfetch/ftp.c head/sbin/recoverdisk/recoverdisk.c head/share/examples/BSD_daemon/beastie.fig head/share/examples/libusb20/bulk.c head/share/examples/libusb20/control.c head/sys/dev/led/led.c head/sys/dev/md/md.c head/sys/dev/mn/if_mn.c head/sys/dev/ppbus/pps.c head/sys/i386/i386/elan-mmcr.c head/sys/i386/i386/mp_clock.c head/sys/kern/imgact_gzip.c head/sys/kern/inflate.c head/sys/kern/kern_tc.c head/sys/kern/subr_disk.c head/sys/sys/disk.h head/sys/sys/smp.h head/sys/sys/timepps.h head/sys/x86/include/x86_smp.h head/tools/tools/kernxref/kernxref.sh head/usr.bin/ministat/ministat.c head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c head/usr.sbin/ctm/ctm/ctm.c head/usr.sbin/ctm/ctm/ctm_ed.c head/usr.sbin/ctm/ctm/ctm_input.c head/usr.sbin/ctm/ctm/ctm_pass1.c head/usr.sbin/ctm/ctm/ctm_pass2.c head/usr.sbin/ctm/ctm/ctm_pass3.c head/usr.sbin/ctm/ctm/ctm_passb.c head/usr.sbin/ctm/ctm/ctm_syntax.c head/usr.sbin/fdwrite/fdwrite.c Modified: head/lib/libfetch/ftp.c ============================================================================== --- head/lib/libfetch/ftp.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/lib/libfetch/ftp.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: (BSD-3-Clause AND Beerware) * * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. Modified: head/sbin/recoverdisk/recoverdisk.c ============================================================================== --- head/sbin/recoverdisk/recoverdisk.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sbin/recoverdisk/recoverdisk.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/share/examples/BSD_daemon/beastie.fig ============================================================================== --- head/share/examples/BSD_daemon/beastie.fig Thu Nov 30 20:21:42 2017 (r326407) +++ head/share/examples/BSD_daemon/beastie.fig Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ #FIG 3.2 +# SPDX-License-Identifier: Beerware +# # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # wrote this file. As long as you retain this notice you Modified: head/share/examples/libusb20/bulk.c ============================================================================== --- head/share/examples/libusb20/bulk.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/share/examples/libusb20/bulk.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,7 @@ -/* ---------------------------------------------------------------------------- +/*- + * SPDX-License-Identifier: Beerware + * + * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42) (by Poul-Henning Kamp): * wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think Modified: head/share/examples/libusb20/control.c ============================================================================== --- head/share/examples/libusb20/control.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/share/examples/libusb20/control.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,7 @@ -/* ---------------------------------------------------------------------------- +/*- + * SPDX-License-Identifier: Beerware + * + * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42) (by Poul-Henning Kamp): * wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think Modified: head/sys/dev/led/led.c ============================================================================== --- head/sys/dev/led/led.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/dev/led/led.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/dev/md/md.c ============================================================================== --- head/sys/dev/md/md.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/dev/md/md.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: (Beerware AND BSD-3-Clause) + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you @@ -11,8 +13,6 @@ */ /*- - * SPDX-License-Identifier: BSD-3-Clause - * * The following functions are based in the vn(4) driver: mdstart_swap(), * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(), * and as such under the following copyright: Modified: head/sys/dev/mn/if_mn.c ============================================================================== --- head/sys/dev/mn/if_mn.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/dev/mn/if_mn.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/dev/ppbus/pps.c ============================================================================== --- head/sys/dev/ppbus/pps.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/dev/ppbus/pps.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/i386/i386/elan-mmcr.c ============================================================================== --- head/sys/i386/i386/elan-mmcr.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/i386/i386/elan-mmcr.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/i386/i386/mp_clock.c ============================================================================== --- head/sys/i386/i386/mp_clock.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/i386/i386/mp_clock.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/kern/imgact_gzip.c ============================================================================== --- head/sys/kern/imgact_gzip.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/kern/imgact_gzip.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/kern/inflate.c ============================================================================== --- head/sys/kern/inflate.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/kern/inflate.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,5 +1,7 @@ -/* +/*- * Most parts of this file are not covered by: + * + * SPDX-License-Identifier: Beerware * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/kern/kern_tc.c ============================================================================== --- head/sys/kern/kern_tc.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/kern/kern_tc.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/kern/subr_disk.c ============================================================================== --- head/sys/kern/subr_disk.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/kern/subr_disk.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/sys/disk.h ============================================================================== --- head/sys/sys/disk.h Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/sys/disk.h Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/sys/smp.h ============================================================================== --- head/sys/sys/smp.h Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/sys/smp.h Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/sys/timepps.h ============================================================================== --- head/sys/sys/timepps.h Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/sys/timepps.h Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/sys/x86/include/x86_smp.h ============================================================================== --- head/sys/x86/include/x86_smp.h Thu Nov 30 20:21:42 2017 (r326407) +++ head/sys/x86/include/x86_smp.h Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/tools/tools/kernxref/kernxref.sh ============================================================================== --- head/tools/tools/kernxref/kernxref.sh Thu Nov 30 20:21:42 2017 (r326407) +++ head/tools/tools/kernxref/kernxref.sh Thu Nov 30 20:33:45 2017 (r326408) @@ -1,5 +1,7 @@ : # +# SPDX-License-Identifier: Beerware +# # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # wrote this file. As long as you retain this notice you Modified: head/usr.bin/ministat/ministat.c ============================================================================== --- head/usr.bin/ministat/ministat.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.bin/ministat/ministat.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c ============================================================================== --- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: (BSD-2-Clause AND Beerware) + * * Copyright (c) 2005-2006 The FreeBSD Project * All rights reserved. * Modified: head/usr.sbin/ctm/ctm/ctm.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_ed.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_ed.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_ed.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_input.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_input.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_input.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_pass1.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_pass1.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_pass1.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_pass2.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_pass2.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_pass2.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_pass3.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_pass3.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_pass3.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_passb.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_passb.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_passb.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/ctm/ctm/ctm_syntax.c ============================================================================== --- head/usr.sbin/ctm/ctm/ctm_syntax.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/ctm/ctm/ctm_syntax.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you Modified: head/usr.sbin/fdwrite/fdwrite.c ============================================================================== --- head/usr.sbin/fdwrite/fdwrite.c Thu Nov 30 20:21:42 2017 (r326407) +++ head/usr.sbin/fdwrite/fdwrite.c Thu Nov 30 20:33:45 2017 (r326408) @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: Beerware + * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice you From owner-svn-src-head@freebsd.org Thu Nov 30 20:36:31 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34B03DB968A; Thu, 30 Nov 2017 20:36:31 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F0D8773F8B; Thu, 30 Nov 2017 20:36:30 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKaU6f022679; Thu, 30 Nov 2017 20:36:30 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKaT0Q022677; Thu, 30 Nov 2017 20:36:29 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711302036.vAUKaT0Q022677@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Thu, 30 Nov 2017 20:36:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326409 - head/sys/geom/mirror X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/geom/mirror X-SVN-Commit-Revision: 326409 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:36:31 -0000 Author: markj Date: Thu Nov 30 20:36:29 2017 New Revision: 326409 URL: https://svnweb.freebsd.org/changeset/base/326409 Log: Update gmirror metadata less frequently when synchronizing. We periodically record synchronization progress in the metadata block of the disk being synchronized; this allows an interrupted synchronization to be resumed. However, the frequency of these updates heavily pessimized synchronization time on some media. This change modifies gmirror to update metadata based on a time period, and adds a sysctl to control that period. The default value results in a much lower update frequency and increases the completion time for an interrupted rebuild only marginally. Reported by: Andre Albsmeier MFC after: 3 weeks Modified: head/sys/geom/mirror/g_mirror.c head/sys/geom/mirror/g_mirror.h Modified: head/sys/geom/mirror/g_mirror.c ============================================================================== --- head/sys/geom/mirror/g_mirror.c Thu Nov 30 20:33:45 2017 (r326408) +++ head/sys/geom/mirror/g_mirror.c Thu Nov 30 20:36:29 2017 (r326409) @@ -71,6 +71,10 @@ SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, disconnect_on static u_int g_mirror_syncreqs = 2; SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, sync_requests, CTLFLAG_RDTUN, &g_mirror_syncreqs, 0, "Parallel synchronization I/O requests."); +static u_int g_mirror_sync_period = 5; +SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, sync_update_period, CTLFLAG_RWTUN, + &g_mirror_sync_period, 0, + "Metadata update period during synchroniztion, in seconds"); #define MSLEEP(ident, mtx, priority, wmesg, timeout) do { \ G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, (ident)); \ @@ -465,6 +469,7 @@ g_mirror_init_disk(struct g_mirror_softc *sc, struct g disk->d_sync.ds_consumer = NULL; disk->d_sync.ds_offset = md->md_sync_offset; disk->d_sync.ds_offset_done = md->md_sync_offset; + disk->d_sync.ds_update_ts = time_uptime; disk->d_genid = md->md_genid; disk->d_sync.ds_syncid = md->md_syncid; if (errorp != NULL) @@ -1459,10 +1464,11 @@ g_mirror_sync_request(struct bio *bp) if (bp != NULL && bp->bio_offset < offset) offset = bp->bio_offset; } - if (sync->ds_offset_done + (MAXPHYS * 100) < offset) { - /* Update offset_done on every 100 blocks. */ + if (g_mirror_sync_period > 0 && + time_uptime - sync->ds_update_ts > g_mirror_sync_period) { sync->ds_offset_done = offset; g_mirror_update_metadata(disk); + sync->ds_update_ts = time_uptime; } return; } Modified: head/sys/geom/mirror/g_mirror.h ============================================================================== --- head/sys/geom/mirror/g_mirror.h Thu Nov 30 20:33:45 2017 (r326408) +++ head/sys/geom/mirror/g_mirror.h Thu Nov 30 20:36:29 2017 (r326409) @@ -110,6 +110,7 @@ struct g_mirror_disk_sync { off_t ds_offset; /* Offset of next request to send. */ off_t ds_offset_done; /* Offset of already synchronized region. */ + time_t ds_update_ts; /* Time of last metadata update. */ u_int ds_syncid; /* Disk's synchronization ID. */ u_int ds_inflight; /* Number of in-flight sync requests. */ struct bio **ds_bios; /* BIOs for synchronization I/O. */ From owner-svn-src-head@freebsd.org Thu Nov 30 20:37:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A346EDB9763; Thu, 30 Nov 2017 20:37:13 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B3BC741DC; Thu, 30 Nov 2017 20:37:13 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKbCXG022933; Thu, 30 Nov 2017 20:37:12 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKbCtV022932; Thu, 30 Nov 2017 20:37:12 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201711302037.vAUKbCtV022932@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Thu, 30 Nov 2017 20:37:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326410 - head/sbin/geom/class/mirror X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sbin/geom/class/mirror X-SVN-Commit-Revision: 326410 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:37:13 -0000 Author: markj Date: Thu Nov 30 20:37:12 2017 New Revision: 326410 URL: https://svnweb.freebsd.org/changeset/base/326410 Log: Document gmirror sysctls. MFC after: 2 weeks Modified: head/sbin/geom/class/mirror/gmirror.8 Modified: head/sbin/geom/class/mirror/gmirror.8 ============================================================================== --- head/sbin/geom/class/mirror/gmirror.8 Thu Nov 30 20:36:29 2017 (r326409) +++ head/sbin/geom/class/mirror/gmirror.8 Thu Nov 30 20:37:12 2017 (r326410) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 27, 2016 +.Dd November 30, 2017 .Dt GMIRROR 8 .Os .Sh NAME @@ -179,7 +179,7 @@ Defaults to 4096 bytes. Clear metadata on the given providers. .It Cm create Similar to -.Cm label, +.Cm label , but creates mirror without storing on-disk metadata in last sector. This special "manual" operation mode assumes some external control to manage mirror detection after reboot, device hot-plug and other external events. @@ -337,6 +337,45 @@ gmirror deactivate data da1 dd if=/dev/da1 of=/backup/data.img bs=1m gmirror activate data da1 .Ed +.Sh SYSCTL VARIABLES +The following +.Xr sysctl 8 +variables can be used to configure behavior for all mirrors. +.Bl -tag -width indent +.It Va kern.geom.mirror.debug +Control the verbosity of kernel logging related to mirrors. +A value larger than 0 will enable debug logging. +.It Va kern.geom.mirror.timeout +The amount of time, in seconds, to wait for all copies of a mirror to +appear before starting the mirror. +Disks that appear after the mirror has been started are not automatically +added to the mirror. +.It Va kern.geom.mirror.idletime +The amount of time, in seconds, which must elapse after the last write to +a mirror before that mirror is marked clean. +Clean mirrors do not need to be synchronized after a power failure or +system crash. +A small value may result in frequent overwrites of the disks' metadata +sectors, and thus may reduce the longevity of the disks. +.It Va kern.geom.mirror.disconnect_on_failure +Determine whether a disk is automatically removed from its mirror when an +I/O request to that disk fails. +.It Va kern.geom.mirror.sync_requests +The number of parallel I/O requests used while synchronizing a mirror. +This parameter may only be configured as a +.Xr loader.conf 5 +tunable. +.It Va kern.geom.mirror.sync_update_period +The period, in seconds, at which a synchronizing mirror's metadata is +updated. +Periodic updates are used to record a synchronization's progress so that +an interrupted synchronization may be resumed starting at the recorded +offset, rather than at the beginning. +A smaller value results in more accurate progress tracking, but also +increases the number of non-sequential writes to the disk being synchronized. +If the sysctl value is 0, no updates are performed until the synchronization +is complete. +.El .Sh NOTES Doing kernel dumps to .Nm @@ -382,6 +421,7 @@ there. .Xr mount 8 , .Xr newfs 8 , .Xr savecore 8 , +.Xr sysctl 8 , .Xr umount 8 .Sh HISTORY The @@ -394,7 +434,3 @@ utility appeared in There should be a way to change a component's priority inside a running mirror. .Pp There should be a section with an implementation description. -.Pp -Documentation for sysctls -.Va kern.geom.mirror.* -is missing. From owner-svn-src-head@freebsd.org Thu Nov 30 20:47:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40D19DB9D75; Thu, 30 Nov 2017 20:47:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id ADD7F749C6; Thu, 30 Nov 2017 20:47:29 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711300140.vAU1e7dC001292@repo.freebsd.org> From: Jung-uk Kim Message-ID: <31ee136d-164e-bb9b-3a90-71bb7f55595a@FreeBSD.org> Date: Thu, 30 Nov 2017 15:47:24 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mjM0GTAu8uddWmuwoHR3JvW1kOfGtFD3N" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:47:30 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mjM0GTAu8uddWmuwoHR3JvW1kOfGtFD3N Content-Type: multipart/mixed; boundary="EPKt3dBLGuuwoOdQabVxqOen535SjfDbL"; protected-headers="v1" From: Jung-uk Kim To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <31ee136d-164e-bb9b-3a90-71bb7f55595a@FreeBSD.org> Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq References: <201711300140.vAU1e7dC001292@repo.freebsd.org> In-Reply-To: --EPKt3dBLGuuwoOdQabVxqOen535SjfDbL Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 11/30/2017 15:31, Conrad Meyer wrote: > On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote:= >> On 11/30/2017 14:32, Conrad Meyer wrote: >>> Hi, >>> >>> I don't think this answers the second question about the conditional.= >>> It seems like PCPU_GET() for the initial CPU should be pulled out of >>> the loop, which binds the thread to a different CPU every iteration. >> >> Ah, good catch. I'll fix it soon. Sorry. >=20 > Thanks! :-) >=20 >>> Also, as a side effect of disabling verification, you have fixed PR >>> 221621, 219213, and probably 218262. >> >> Probably. However, I am just trying to fix my FX-8350 and A10-6800 an= d >> I don't have Zen processors to verify the MSRs are actually working on= >> those CPUs. >=20 > I have one, I can verify if needed (although the change looks good to > me). On some Zen systems (including mine) it seems that the hardware > can successfully set a P-state, but will fail to read it back. For me > it is P1 but other users have reported P0. That's the root issue of > all of those PRs. If reading back isn't required, maybe that's a > solution to the issue. Reading back was not really necessary (aka "fire-and-forget"). However, we wanted to make sure all cores are in the same P-state before returning to the caller. Back in the days, it wasn't a big deal because we only had few cores to deal with and never expected to see complex topologies such as the Threadripper, I guess. :-/ Jung-uk Kim --EPKt3dBLGuuwoOdQabVxqOen535SjfDbL-- --mjM0GTAu8uddWmuwoHR3JvW1kOfGtFD3N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlogblwACgkQfJ+WJvzb 8UYgEgf/a8TAc1wVVJqD5RL9i6cRCnRkSm/yQZ3yE+hllhv2zMm3aauw9WuLlEa/ 028sNj4AOEemT9/9fb5z6LfWWLo9o5pMuFd8Z2nv7ROQ67ymwPlOzn1TAYWHqXsx SW4z3IL/KodAMMB1x61MFXFrGcZAiBU8VJcmQipgPHDBjPodLD60cwXGLj/ESipu 9GxOaYx3ajm4Lp6ua6UeuMatEDUcAkvoVSzXNBg4oSzDXeimeaHmnzr/olvI95l8 gNjy44GT4m3r4x3WoKrbuRyXI1GFAyWpZbuM7+8B57vECFsb+6w29tZr7xhsZiDA waixoyUWvrC08GDFnxapg9RjBGxhRQ== =M9xj -----END PGP SIGNATURE----- --mjM0GTAu8uddWmuwoHR3JvW1kOfGtFD3N-- From owner-svn-src-head@freebsd.org Thu Nov 30 20:52:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32A54DBA0ED; Thu, 30 Nov 2017 20:52:03 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F3AC374F2B; Thu, 30 Nov 2017 20:52:02 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKq1OF028975; Thu, 30 Nov 2017 20:52:01 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKq1qt028974; Thu, 30 Nov 2017 20:52:01 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201711302052.vAUKq1qt028974@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Thu, 30 Nov 2017 20:52:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326411 - head/release/tools X-SVN-Group: head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: head/release/tools X-SVN-Commit-Revision: 326411 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:52:03 -0000 Author: gjb Date: Thu Nov 30 20:52:01 2017 New Revision: 326411 URL: https://svnweb.freebsd.org/changeset/base/326411 Log: Fix an indentation nit. Sponsored by: The FreeBSD Foundation Modified: head/release/tools/vmimage.subr Modified: head/release/tools/vmimage.subr ============================================================================== --- head/release/tools/vmimage.subr Thu Nov 30 20:37:12 2017 (r326410) +++ head/release/tools/vmimage.subr Thu Nov 30 20:52:01 2017 (r326411) @@ -15,8 +15,8 @@ write_partition_layout() { fi BOOTFILES="$(env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ - WITH_UNIFIED_OBJDIR=yes \ - make -C ${WORLDDIR}/stand -V .OBJDIR)" + WITH_UNIFIED_OBJDIR=yes \ + make -C ${WORLDDIR}/stand -V .OBJDIR)" BOOTFILES="$(realpath ${BOOTFILES})" case "${TARGET}:${TARGET_ARCH}" in From owner-svn-src-head@freebsd.org Thu Nov 30 20:53:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B9CEDBA1B8; Thu, 30 Nov 2017 20:53:58 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1858975119; Thu, 30 Nov 2017 20:53:58 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUKrvac031427; Thu, 30 Nov 2017 20:53:57 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUKrvAb031426; Thu, 30 Nov 2017 20:53:57 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201711302053.vAUKrvAb031426@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Thu, 30 Nov 2017 20:53:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326412 - head/release X-SVN-Group: head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: head/release X-SVN-Commit-Revision: 326412 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 20:53:58 -0000 Author: gjb Date: Thu Nov 30 20:53:57 2017 New Revision: 326412 URL: https://svnweb.freebsd.org/changeset/base/326412 Log: Fix port build flags passed to make(1) after r326315, where it was missed for embedded image builds. MFC after: 3 days MFC with: r326315 Sponsored by: The FreeBSD Foundation Modified: head/release/release.sh Modified: head/release/release.sh ============================================================================== --- head/release/release.sh Thu Nov 30 20:52:01 2017 (r326411) +++ head/release/release.sh Thu Nov 30 20:53:57 2017 (r326412) @@ -282,8 +282,9 @@ extra_chroot_setup() { PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}" PBUILD_FLAGS="${PBUILD_FLAGS} WRKDIRPREFIX=/tmp/ports" PBUILD_FLAGS="${PBUILD_FLAGS} DISTDIR=/tmp/distfiles" - chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \ - ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \ + chroot ${CHROOTDIR} env ${PBUILD_FLAGS} make -C \ + /usr/ports/textproc/docproj \ + OPTIONS_UNSET="FOP IGOR" \ FORCE_PKG_REGISTER=1 \ install clean distclean fi @@ -296,9 +297,12 @@ extra_chroot_setup() { PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes" PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}" PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}" + PBUILD_FLAGS="${PBUILD_FLAGS} WRKDIRPREFIX=/tmp/ports" + PBUILD_FLAGS="${PBUILD_FLAGS} DISTDIR=/tmp/distfiles" for _PORT in ${EMBEDDEDPORTS}; do - eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \ - FORCE_PKG_REGISTER=1 ${PBUILD_FLAGS} install clean distclean + eval chroot ${CHROOTDIR} env ${PBUILD_FLAGS} make -C \ + /usr/ports/${_PORT} \ + FORCE_PKG_REGISTER=1 install clean distclean done fi From owner-svn-src-head@freebsd.org Thu Nov 30 21:21:36 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61E00DBB1F9; Thu, 30 Nov 2017 21:21:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBA0C76A54; Thu, 30 Nov 2017 21:21:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id vAULLUm8075290 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Nov 2017 23:21:30 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua vAULLUm8075290 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id vAULLUT3075289; Thu, 30 Nov 2017 23:21:30 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 30 Nov 2017 23:21:30 +0200 From: Konstantin Belousov To: "Pedro F. Giffuni" Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x86... Message-ID: <20171130212130.GI2272@kib.kiev.ua> References: <201711302033.vAUKXju7022512@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201711302033.vAUKXju7022512@repo.freebsd.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 21:21:36 -0000 On Thu, Nov 30, 2017 at 08:33:45PM +0000, Pedro F. Giffuni wrote: > head/usr.sbin/ctm/ctm/ctm.c > head/usr.sbin/ctm/ctm/ctm_ed.c > head/usr.sbin/ctm/ctm/ctm_input.c > head/usr.sbin/ctm/ctm/ctm_pass1.c > head/usr.sbin/ctm/ctm/ctm_pass2.c > head/usr.sbin/ctm/ctm/ctm_pass3.c > head/usr.sbin/ctm/ctm/ctm_passb.c > head/usr.sbin/ctm/ctm/ctm_syntax.c Does ctm in base serve any purpose ? README file in the usr.sbin/ctm seems to claim that ctm is generic-purpose tree diff and apply tool. But also, near the end, the same text claims that cvsup has replaced the ctm, hmm. Does anybody use ctm for any purpose, not necessary keeping up FreeBSD source tree ? From owner-svn-src-head@freebsd.org Thu Nov 30 21:38:44 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74F39DBBA6E; Thu, 30 Nov 2017 21:38:44 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01161776CB; Thu, 30 Nov 2017 21:38:43 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f42.google.com with SMTP id f18so9516495lfg.8; Thu, 30 Nov 2017 13:38:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ckx82LY2hKLvfMFQAeFjJaVZofK/w8ksQFc0jfEFt/4=; b=l/QHShdVSgxN6q1w7pzSNhurTXlY2TUyK3QB8zn+hbgU5QCCE7wAsZWxGZ5d0+yEhK nVsMWtSvB0dG+WJB2vCkUQcOPjvql0iuaf9spHPOjrEYXbZRpRXm7NWcE0rPBbfjex+F /rkHNcmdPslvauhzVHMhLb7cb6Ou9TXyxHtGiFPJQH8Ua/43rK3IdYQ9aetf0CMl/2Ze tMfRDbPbJcGZBidc3yJRq17Dq4T+SFwudGW5+9s0QmVEZw7xPqf87NJarrnoafpLwyAr xvmRDLR6yaiMnrXd8fgO9j2YmAyMBaZnl8S2lUcRAS0tm34K6v4Vtvl1YeXL+N6YkPRO x1hg== X-Gm-Message-State: AJaThX42EwudKYT9mQcLrt5VkTD8e9dqVa4tt4iiZI/Uz3zOYf5fEnYH xzNDIFhuP/mvkfcWk2z/ol5WjFoo0Iw= X-Google-Smtp-Source: AGs4zMYWdbkgrH83W9P4PCGrM8PrWGZnGznpaZpk4/s0HdaPwu0smsvg2jlYmxGFLaczn9g8aneeVA== X-Received: by 10.46.82.132 with SMTP id n4mr3914311lje.31.1512077525597; Thu, 30 Nov 2017 13:32:05 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id n67sm1018319lja.44.2017.11.30.13.32.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 13:32:04 -0800 (PST) Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: Jung-uk Kim , cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201711300140.vAU1e7dC001292@repo.freebsd.org> <31ee136d-164e-bb9b-3a90-71bb7f55595a@FreeBSD.org> From: Andriy Gapon Message-ID: <520347e8-1539-6a11-b93c-4934d825a272@FreeBSD.org> Date: Thu, 30 Nov 2017 23:32:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <31ee136d-164e-bb9b-3a90-71bb7f55595a@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 21:38:44 -0000 On 30/11/2017 22:47, Jung-uk Kim wrote: > On 11/30/2017 15:31, Conrad Meyer wrote: >> On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote: >>> On 11/30/2017 14:32, Conrad Meyer wrote: >>>> Hi, >>>> >>>> I don't think this answers the second question about the conditional. >>>> It seems like PCPU_GET() for the initial CPU should be pulled out of >>>> the loop, which binds the thread to a different CPU every iteration. >>> >>> Ah, good catch. I'll fix it soon. Sorry. >> >> Thanks! :-) >> >>>> Also, as a side effect of disabling verification, you have fixed PR >>>> 221621, 219213, and probably 218262. >>> >>> Probably. However, I am just trying to fix my FX-8350 and A10-6800 and >>> I don't have Zen processors to verify the MSRs are actually working on >>> those CPUs. >> >> I have one, I can verify if needed (although the change looks good to >> me). On some Zen systems (including mine) it seems that the hardware >> can successfully set a P-state, but will fail to read it back. For me >> it is P1 but other users have reported P0. That's the root issue of >> all of those PRs. If reading back isn't required, maybe that's a >> solution to the issue. > > Reading back was not really necessary (aka "fire-and-forget"). However, > we wanted to make sure all cores are in the same P-state before > returning to the caller. Back in the days, it wasn't a big deal because > we only had few cores to deal with and never expected to see complex > topologies such as the Threadripper, I guess. :-/ I have not revisited cpufreq in a long time, so I can say something silly. But I think that we need to finally start being aware of power state dependencies (ACPI _PSD). I have an impression that a good share of the problems was (perhaps still is) because we completely ignored that stuff. I mean that if a platform tells us that CPUs in a given domain would transition to a certain state only after we instruct all of them to go to that state, then it is wrong of us to expect that after instructing just one CPU it would transition to that state. -- Andriy Gapon From owner-svn-src-head@freebsd.org Thu Nov 30 21:45:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BEC4DEA0E2 for ; Thu, 30 Nov 2017 21:45:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0C3E77CCF for ; Thu, 30 Nov 2017 21:45:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x233.google.com with SMTP id x28so225442ita.0 for ; Thu, 30 Nov 2017 13:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UUEnpLVXBymiK+msU2X8lASpLdIp2xa3ZlPdjNJegYc=; b=xIN9mcfM/yZ6Ijllca+LmsInoH6hMYOh3lq1XmUDfFlXW+vMLptA47nET/9JaT5mT4 wJxIxKjJgqKIbhmUd1OvWNK07TLswxtFk9Pt6dpf34EnwzJNBs55ZOmPK1JZwkXwfdVv 0w/HQ7UugE3y1GpBkWT/CluaR+YB7ungI38pb+bR8fkNkRx0nX/omWSnNXsED6Y+xq6+ IwWRtVDKXRkk1V2CEMz4qPIxlb8CdbWiuUqIulwJ1v3XXEdLy9Hkw/hhl/w6PUETCGXk 3B2b6js/b5WZSWYFOd5va7LwVGbwCETsCtHrzo7oM7t2uMVMxfpXEzqKHkNZ51oX3I+0 UPzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UUEnpLVXBymiK+msU2X8lASpLdIp2xa3ZlPdjNJegYc=; b=WHVyF0Pj1WwWSkNq5/8VDr7jAQAQkRg7QqIngMUkTr+Rytu8V7U0xgmSmOcQwq/zaq OgqBjepGj8tiff1KRfbY/WymR+cAfwbD77FCVdW7jUdGF8oLlPFOY8ECRl/fIWpzPAHD 1JphqXJOZwNgrXb0TIA7Ii/AcGUMav7pZv55V2oo4WjOh30XaV+tYtKyHxbPGAPkoSxQ zOUu+BoYpgv6uY9tdz3sWxzGWqmXq/4geYFxqWUxaRANei5LefkOBDXn1APfcPGBmnlb IapXCYSKxTP1kKRr8euFJIXkTDzYFSvQX6hLzSyzrcITv2g4zYpRuOXWfwB8jvOkwXgS PNYw== X-Gm-Message-State: AJaThX5q0PFxbbKNkQrm3J0MXhSPjX2rsi1XHc1fbGpaXrJaqfc75nkc cFxV8hU//Z2WwHM1vdYGcJPaEsBJFwa6whUTXiyaqQ== X-Google-Smtp-Source: AGs4zMZOGuesUJTA4LLfeoYzJZxR+96L4xAAKGyAskV9MEjqPjWdX2G7BbPieXW82l5xFNjCjbTn0wI2OgdRrMkO/Gs= X-Received: by 10.36.147.193 with SMTP id y184mr4874364itd.64.1512078332265; Thu, 30 Nov 2017 13:45:32 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Thu, 30 Nov 2017 13:45:31 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <20171130212130.GI2272@kib.kiev.ua> References: <201711302033.vAUKXju7022512@repo.freebsd.org> <20171130212130.GI2272@kib.kiev.ua> From: Warner Losh Date: Thu, 30 Nov 2017 14:45:31 -0700 X-Google-Sender-Auth: 2u5y7wUM0UayDw1TOX9qGirTduo Message-ID: Subject: Re: svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x86... To: Konstantin Belousov Cc: "Pedro F. Giffuni" , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 21:45:33 -0000 On Thu, Nov 30, 2017 at 2:21 PM, Konstantin Belousov wrote: > On Thu, Nov 30, 2017 at 08:33:45PM +0000, Pedro F. Giffuni wrote: > > head/usr.sbin/ctm/ctm/ctm.c > > head/usr.sbin/ctm/ctm/ctm_ed.c > > head/usr.sbin/ctm/ctm/ctm_input.c > > head/usr.sbin/ctm/ctm/ctm_pass1.c > > head/usr.sbin/ctm/ctm/ctm_pass2.c > > head/usr.sbin/ctm/ctm/ctm_pass3.c > > head/usr.sbin/ctm/ctm/ctm_passb.c > > head/usr.sbin/ctm/ctm/ctm_syntax.c > > Does ctm in base serve any purpose ? > > README file in the usr.sbin/ctm seems to claim that ctm is generic-purpose > tree diff and apply tool. But also, near the end, the same text claims > that cvsup has replaced the ctm, hmm. Does anybody use ctm for any purpose, > not necessary keeping up FreeBSD source tree ? > Apparently, it's still a thing: ftp://ctm.berklix.org/pub/FreeBSD/development/CTM/ with occasional email on the ctm-announce mailing list. The latest dump is from yesterday. Having said that, this seems to be a prime candidate for 'make it a port' if I've ever seen one. Warner From owner-svn-src-head@freebsd.org Thu Nov 30 22:16:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03F2ADEACA4; Thu, 30 Nov 2017 22:16:42 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7AE8379060; Thu, 30 Nov 2017 22:16:40 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from hermann ([92.227.90.189]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LuP5z-1f4QGF1cM3-011hRW; Thu, 30 Nov 2017 23:16:32 +0100 Date: Thu, 30 Nov 2017 23:16:31 +0100 From: "Hartmann, O." To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326376 - head/sys/kern Message-ID: <20171130231627.2eecc273@hermann> In-Reply-To: <201711292328.vATNSeOM046518@repo.freebsd.org> References: <201711292328.vATNSeOM046518@repo.freebsd.org> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:wQ7fpRQOztV8ZPyilQbmyBfQM41e/z56Vti/l7hZT3KgoMsmugE CABIixUPLIHeul1WYd0gN/2j6LSWjrYoD4WgaKDrIM5WviMdc/StuSCOi75aeIPNRWFgTqj WIxnNeFT03S4+QGt5PiH6R4pV8/+NN+vmjZAy4NH+uPzB8jZtmEpV5s0hBmnw01MBWxjhkZ EXYKSGmcmbXy1vKcS7XOA== X-UI-Out-Filterresults: notjunk:1;V01:K0:UqX2EzMJJcs=:m1NeRFQyqNSD4wUme6YMiH zxb2fBY/EfqyPlhRXF6ArzG6RRgakXqO2o5WTpDR7Pvq30QFdGeQFMT5MedGbb8uoW7IyNJXh NjG4NS7WjJbynsMlqZcTQq/JC3DKJ8Vtbz/xNbCXHP41R3eve9kxbR4Du/mTZOUxWhAtzPQRs jX9o4VA5yQ1/uKkeJ1CztySfBBOfihhiwwXILNpkUTxi1sw1kQoU7F1tRq+altGzGBtFa5wx1 UkVX8bpY+h4y/6hoIJ+q+o0GH/z2lS2c+ncKw8Z+HvolVNag2Mj3SpmDK6vxjGTybxmLKNOx2 kfkiobxFcvZJeviknW6NGpU7JDCPq+4QXlodz3SkpiRMo62NgcK3ZMa5UfWRtZZdixaQVuPm8 6tDnwVrpzXTpWjrGUzlC9pYzKLTHIAn2d4id5iTyo/9U+3z/fwslC2Ltf8+m8IKrNx4SgxUNB SM3ASUMwFyV2us7wqVYORiQyvM85igPObYlYpNS7cprD0oxg6U0V5ImpNpfFB4cghAdFK4kJq 3C1iyU2mxnuFxZ3+vwqTfJsoESukROQ29nPS7Ho1KxvgYnd2HHz+BaSIYq8nLC4DMXZ6Y0dmH ZzpRQisxj9BKt5/PgYlIGVVrtgdslXYchoBgG4O1C3BNGrp+JiisbxNhEZi+O5s8S54x0rmWI mPORwPcqQVljnj5w4fRTLeLOQ3pCK+7qM199G8V6yH2cDWBvS5hd/JdG/07t25BdBYWOSsEXV fhf/OG4c3tesA6fHlcswO4Z2hzLftuR1MNlzD+D4OUdgwQPhchAZM/Hjc76FZA+49OuC/qSS+ WdZsYzL8AOwzdrz/6L6A7lrD+tz1NbfIh9RfWK3EWX+2YqBnFE= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 22:16:42 -0000 On Wed, 29 Nov 2017 23:28:40 +0000 (UTC) Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 > > Log: > The sched_add() function is not only used when the thread is > initially started, but also by the turnstiles to mark a thread as > runnable for all locks, for instance sleepqueues do: > setrunnable()->sched_wakeup()->sched_add() > > In r326218 code was added to allow booting from non-zero CPU numbers > by setting the ts_cpu field inside the ULE scheduler's sched_add() > function. This had an undesired side-effect that prior sched_pin() > and sched_bind() calls got disregarded. This patch fixes the > initialization of the ts_cpu field for the ULE scheduler to only > happen once when the initial thread is constructed during system > init. Forking will then later on ensure that a valid ts_cpu value > gets copied to all children. > > Reviewed by: jhb, kib > Discussed with: nwhitehorn > MFC after: 1 month > Differential revision: https://reviews.freebsd.org/D13298 > Sponsored by: Mellanox Technologies > > Modified: > head/sys/kern/sched_ule.c > > Modified: head/sys/kern/sched_ule.c > ============================================================================== > --- head/sys/kern/sched_ule.c Wed Nov 29 21:16:14 2017 > (r326375) +++ head/sys/kern/sched_ule.c Wed Nov 29 23:28:40 > 2017 (r326376) @@ -1405,7 +1405,6 @@ sched_setup(void *dummy) > > /* Add thread0's load since it's running. */ > TDQ_LOCK(tdq); > - td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid > to start */ thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); > tdq_load_add(tdq, &thread0); > tdq->tdq_lowpri = thread0.td_priority; > @@ -1642,6 +1641,7 @@ schedinit(void) > ts0->ts_ltick = ticks; > ts0->ts_ftick = ticks; > ts0->ts_slice = 0; > + ts0->ts_cpu = curcpu; /* set valid CPU number */ > } > > /* > @@ -2453,7 +2453,6 @@ sched_add(struct thread *td, int flags) > * Pick the destination cpu and if it isn't ours transfer to > the > * target cpu. > */ > - td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid > to start */ cpu = sched_pickcpu(td, flags); > tdq = sched_setcpu(td, cpu, flags); > tdq_add(tdq, td, flags); > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" The patch doesn't solve problems for me when either tmpfs is used as a loaded kernel module or compiled into the kernel and the filesystem contains mount points comprised from tempfs, like /tmp or /var/run. Any kernel with tmpfs compiled in seems to crash, any kernel, including GENERIC, seems also to crash when any tempfs is involved. After nearly two days I managed to boot one box again, figuring that tempfs triggers a kernel panic. oh From owner-svn-src-head@freebsd.org Fri Dec 1 03:22:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3013ADF25F2; Fri, 1 Dec 2017 03:22:42 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E45611C96; Fri, 1 Dec 2017 03:22:41 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB13MfBH097621; Fri, 1 Dec 2017 03:22:41 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB13Meq8097617; Fri, 1 Dec 2017 03:22:40 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712010322.vB13Meq8097617@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Fri, 1 Dec 2017 03:22:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326419 - head/usr.bin/pr X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/usr.bin/pr X-SVN-Commit-Revision: 326419 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 03:22:42 -0000 Author: eadler Date: Fri Dec 1 03:22:40 2017 New Revision: 326419 URL: https://svnweb.freebsd.org/changeset/base/326419 Log: Revert license change. This isn't identical to the one permitted by UCB since it is copyright multiple people. Modified: head/usr.bin/pr/egetopt.c head/usr.bin/pr/extern.h head/usr.bin/pr/pr.c head/usr.bin/pr/pr.h Modified: head/usr.bin/pr/egetopt.c ============================================================================== --- head/usr.bin/pr/egetopt.c Fri Dec 1 01:51:32 2017 (r326418) +++ head/usr.bin/pr/egetopt.c Fri Dec 1 03:22:40 2017 (r326419) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,7 +16,11 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/extern.h ============================================================================== --- head/usr.bin/pr/extern.h Fri Dec 1 01:51:32 2017 (r326418) +++ head/usr.bin/pr/extern.h Fri Dec 1 03:22:40 2017 (r326419) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,7 +16,11 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/pr.c ============================================================================== --- head/usr.bin/pr/pr.c Fri Dec 1 01:51:32 2017 (r326418) +++ head/usr.bin/pr/pr.c Fri Dec 1 03:22:40 2017 (r326419) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,7 +16,11 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * Modified: head/usr.bin/pr/pr.h ============================================================================== --- head/usr.bin/pr/pr.h Fri Dec 1 01:51:32 2017 (r326418) +++ head/usr.bin/pr/pr.h Fri Dec 1 03:22:40 2017 (r326419) @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1991 Keith Muller. * Copyright (c) 1993 @@ -16,7 +16,11 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * From owner-svn-src-head@freebsd.org Fri Dec 1 03:24:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1466BDF2726 for ; Fri, 1 Dec 2017 03:24:15 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yb0-x235.google.com (mail-yb0-x235.google.com [IPv6:2607:f8b0:4002:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF3991E26 for ; Fri, 1 Dec 2017 03:24:14 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yb0-x235.google.com with SMTP id 5so3546642ybp.4 for ; Thu, 30 Nov 2017 19:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Puua6wtFbGEX5NluP/QRcdifqyXFv/GTJHaW2CSyfP4=; b=TI1zui03dJH8feeWC/FEjAJzsq/lkhNw81UMC7ikXFpGmqCCAYd1ilCRcbD87r3xrJ Ci/7JvxefY9iSX/ZwnSrOJcjucre4Mg22T9vFN/a9Vx7EaoMGIutWS+5HDqhYBtqmTl8 WnKYkaG3wbuJ7dqL6VZk6ngdDHfrqFiLutej4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Puua6wtFbGEX5NluP/QRcdifqyXFv/GTJHaW2CSyfP4=; b=NFLivylPuXPyUe9yyMMkLOTCCotrnoiZDZk9S8gMcY7BR1RQYHiz7fDWLDEUL6FCeG sDRXmatLyWHr9a5UolodUq6ciFvA3CWfRlqjgd+ztIjUrAXpmDyI9gtqiiwOhFniWP4v 4drNmMlIHaYm+8OKRf6Kogp01pwzbKFyAG2RcfR/R7dpB5sLNy5XXVrp+ck1ugiF5EyQ KZ/pGAw7RNpOCK/dAHmZnjcBEV3/UHWFcJMCV7Ev7li0GysgwBvVH60FTTfLFlKlRJcZ qirwccm/t0GgEpizZG6phACq2vyTnt7vG4IOxYeIs7f7cc9kP7YNTM/RIuYKCBBipwMD jrcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Puua6wtFbGEX5NluP/QRcdifqyXFv/GTJHaW2CSyfP4=; b=H8kmNdLaxMGEeYyY/clJIvp5sU9DmZsEsoqP5B+l63TfcRxzM89pdpUQawuTcYtOJj SXc3vc/c96EnTclcj+h+eWMRp1JgtFIXovz5YodIKcgr4Rzuf5nY/qG+vrXSMMbUrJsi tL/NW7ktRMQIFH2fOQtttHOtw3cf2WDgsPvJH4pOAVRP55XMi0Gkp3bGQuyKTtG2Ockk oaBWdC1lENUpCmhxuAWB1pYZCpatFa9hLIlcICag0lI7WNgoNMJYgjpMC1Bc3ch6L3gP X5sU6HdqHnvnIjCOHglbEndHt0QpT9YqbZKO0yHAliTAK/3p1Mcml3Z+QE2DevznI/bj HzDw== X-Gm-Message-State: AJaThX4fHjMyhqW7yK9H7Ox+EuXErwf9Ou8uZgjX1DPk+JDHe3XZW/KV ytzjM/2//DZUvttF/B1iPuud0SqDwXFO+1ywCouuEw== X-Google-Smtp-Source: AGs4zMb3DkZg/9W1j86Isn/vXNp4wVEe85/lokA3BYH+1kHdefzdlPAjjDM2HlU1U3UJE5O4h0rcDgDsUdoWblU/pqI= X-Received: by 10.37.173.164 with SMTP id z36mr2787388ybi.97.1512098653859; Thu, 30 Nov 2017 19:24:13 -0800 (PST) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.37.15.66 with HTTP; Thu, 30 Nov 2017 19:23:43 -0800 (PST) In-Reply-To: References: <201711300708.vAU78kD8051237@repo.freebsd.org> From: Eitan Adler Date: Thu, 30 Nov 2017 19:23:43 -0800 X-Google-Sender-Auth: KDM1Jr4uCGT_tc8RqZN8zq3wSEA Message-ID: Subject: Re: svn commit: r326385 - head/usr.bin/pr To: Warner Losh Cc: Ed Schouten , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 03:24:15 -0000 On 30 November 2017 at 07:39, Warner Losh wrote: > > > On Thu, Nov 30, 2017 at 3:44 AM, Ed Schouten wrote: >> >> 2017-11-30 8:08 GMT+01:00 Eitan Adler : >> > Permitted by https://www.freebsd.org/copyright/license.html >> > [...] >> > * Copyright (c) 1991 Keith Muller. >> >> Isn't it the case that this only allows us to remove this clause from >> code that has the university as the sole copyright holder? In this >> case we should also ask Keith Muller, right...? > > > Unless he's got permission from Keith Muller, this should be reverted ASAP! Reverted. Sorry about that. -- Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams From owner-svn-src-head@freebsd.org Fri Dec 1 05:57:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5D82DFF660; Fri, 1 Dec 2017 05:57:06 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92EF5716CD; Fri, 1 Dec 2017 05:57:06 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB15v5mg059826; Fri, 1 Dec 2017 05:57:05 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB15v53E059825; Fri, 1 Dec 2017 05:57:05 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201712010557.vB15v53E059825@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Fri, 1 Dec 2017 05:57:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326420 - head/share/man/man4 X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: head/share/man/man4 X-SVN-Commit-Revision: 326420 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 05:57:06 -0000 Author: ed Date: Fri Dec 1 05:57:05 2017 New Revision: 326420 URL: https://svnweb.freebsd.org/changeset/base/326420 Log: Add an mlink for cloudabi32(4). We already provide this for cloudabi64(4), so not adding it for cloudabi32(4) is fairly inconsistent. MFC after: 1 week Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Makefile ============================================================================== --- head/share/man/man4/Makefile Fri Dec 1 03:22:40 2017 (r326419) +++ head/share/man/man4/Makefile Fri Dec 1 05:57:05 2017 (r326420) @@ -605,7 +605,8 @@ MLINKS+=${_bxe.4} ${_if_bxe.4} MLINKS+=cas.4 if_cas.4 MLINKS+=cdce.4 if_cdce.4 MLINKS+=cfi.4 cfid.4 -MLINKS+=cloudabi.4 cloudabi64.4 +MLINKS+=cloudabi.4 cloudabi32.4 \ + cloudabi.4 cloudabi64.4 MLINKS+=crypto.4 cryptodev.4 MLINKS+=cue.4 if_cue.4 MLINKS+=cxgb.4 if_cxgb.4 From owner-svn-src-head@freebsd.org Fri Dec 1 06:37:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5C37E5F223; Fri, 1 Dec 2017 06:37:13 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8065372A87; Fri, 1 Dec 2017 06:37:13 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB16bCw8076540; Fri, 1 Dec 2017 06:37:12 GMT (envelope-from tsoome@FreeBSD.org) Received: (from tsoome@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB16bCfD076539; Fri, 1 Dec 2017 06:37:12 GMT (envelope-from tsoome@FreeBSD.org) Message-Id: <201712010637.vB16bCfD076539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tsoome set sender to tsoome@FreeBSD.org using -f From: Toomas Soome Date: Fri, 1 Dec 2017 06:37:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326421 - head/stand/efi/libefi X-SVN-Group: head X-SVN-Commit-Author: tsoome X-SVN-Commit-Paths: head/stand/efi/libefi X-SVN-Commit-Revision: 326421 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 06:37:13 -0000 Author: tsoome Date: Fri Dec 1 06:37:12 2017 New Revision: 326421 URL: https://svnweb.freebsd.org/changeset/base/326421 Log: loader.efi: efipart should exclude iPXE stub block protocol iPXE does insert stub BLOCK IO protocol handle to rework other issues, this handle is not usable as it does not provide actual implementation. We can detect this situation by checking and validating the BlockSize property, so this update does make sure we have BlockSize at least 512B and its value is power of 2. PR: 223969 Reported by: Jeff Pieper Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D13297 Modified: head/stand/efi/libefi/efipart.c Modified: head/stand/efi/libefi/efipart.c ============================================================================== --- head/stand/efi/libefi/efipart.c Fri Dec 1 05:57:05 2017 (r326420) +++ head/stand/efi/libefi/efipart.c Fri Dec 1 06:37:12 2017 (r326421) @@ -257,6 +257,14 @@ efipart_hdd(EFI_DEVICE_PATH *dp) !blkio->Media->MediaPresent) { return (false); } + + /* + * We assume the block size 512 or greater power of 2. + */ + if (blkio->Media->BlockSize < 512 || + !powerof2(blkio->Media->BlockSize)) { + return (false); + } } return (true); } From owner-svn-src-head@freebsd.org Fri Dec 1 09:59:43 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92105DFA683; Fri, 1 Dec 2017 09:59:43 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F51E7931F; Fri, 1 Dec 2017 09:59:43 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB19xgmG061090; Fri, 1 Dec 2017 09:59:42 GMT (envelope-from ae@FreeBSD.org) Received: (from ae@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB19xgtL061089; Fri, 1 Dec 2017 09:59:42 GMT (envelope-from ae@FreeBSD.org) Message-Id: <201712010959.vB19xgtL061089@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ae set sender to ae@FreeBSD.org using -f From: "Andrey V. Elsukov" Date: Fri, 1 Dec 2017 09:59:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326422 - head/sys/netipsec X-SVN-Group: head X-SVN-Commit-Author: ae X-SVN-Commit-Paths: head/sys/netipsec X-SVN-Commit-Revision: 326422 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 09:59:43 -0000 Author: ae Date: Fri Dec 1 09:59:42 2017 New Revision: 326422 URL: https://svnweb.freebsd.org/changeset/base/326422 Log: Do better cleaning in key_destroy() for VIMAGE case. SPDB was cleaned using TAILQ_CONCAT() instead of calling key_unlink() for each SP, thus we need to properly clean lists in each bucket of V_sphashtbl to avoid panic in hashdestroy() when INVARIANTS is enabled. Do the same for V_acqaddrhashtbl and V_acqseqhashtbl. When we are called in DEFAULT_VNET, destroy also all global locks and drain key_timer callout. Reported by: kp Tested by: kp MFC after: 1 week Modified: head/sys/netipsec/key.c Modified: head/sys/netipsec/key.c ============================================================================== --- head/sys/netipsec/key.c Fri Dec 1 06:37:12 2017 (r326421) +++ head/sys/netipsec/key.c Fri Dec 1 09:59:42 2017 (r326422) @@ -8147,7 +8147,10 @@ key_destroy(void) TAILQ_CONCAT(&drainq, &V_sptree[i], chain); TAILQ_CONCAT(&drainq, &V_sptree_ifnet[i], chain); } + for (i = 0; i < V_sphash_mask + 1; i++) + LIST_INIT(&V_sphashtbl[i]); SPTREE_WUNLOCK(); + sp = TAILQ_FIRST(&drainq); while (sp != NULL) { nextsp = TAILQ_NEXT(sp, chain); @@ -8198,6 +8201,10 @@ key_destroy(void) free(acq, M_IPSEC_SAQ); acq = nextacq; } + for (i = 0; i < V_acqaddrhash_mask + 1; i++) + LIST_INIT(&V_acqaddrhashtbl[i]); + for (i = 0; i < V_acqseqhash_mask + 1; i++) + LIST_INIT(&V_acqseqhashtbl[i]); ACQ_UNLOCK(); SPACQ_LOCK(); @@ -8213,6 +8220,18 @@ key_destroy(void) hashdestroy(V_acqaddrhashtbl, M_IPSEC_SAQ, V_acqaddrhash_mask); hashdestroy(V_acqseqhashtbl, M_IPSEC_SAQ, V_acqseqhash_mask); uma_zdestroy(V_key_lft_zone); + + if (!IS_DEFAULT_VNET(curvnet)) + return; +#ifndef IPSEC_DEBUG2 + callout_drain(&key_timer); +#endif + XFORMS_LOCK_DESTROY(); + SPTREE_LOCK_DESTROY(); + REGTREE_LOCK_DESTROY(); + SAHTREE_LOCK_DESTROY(); + ACQ_LOCK_DESTROY(); + SPACQ_LOCK_DESTROY(); } #endif From owner-svn-src-head@freebsd.org Fri Dec 1 10:25:53 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C63FCDFB0B2; Fri, 1 Dec 2017 10:25:53 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9377E7A21E; Fri, 1 Dec 2017 10:25:53 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1APqLt073529; Fri, 1 Dec 2017 10:25:52 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1APq5f073528; Fri, 1 Dec 2017 10:25:52 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201712011025.vB1APq5f073528@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Fri, 1 Dec 2017 10:25:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326423 - head/lib/libproc/tests X-SVN-Group: head X-SVN-Commit-Author: ed X-SVN-Commit-Paths: head/lib/libproc/tests X-SVN-Commit-Revision: 326423 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 10:25:53 -0000 Author: ed Date: Fri Dec 1 10:25:52 2017 New Revision: 326423 URL: https://svnweb.freebsd.org/changeset/base/326423 Log: Eliminate the last user of basename_r() in the base system. In this case it's fairly easy to make use of basename(). Modified: head/lib/libproc/tests/proc_test.c Modified: head/lib/libproc/tests/proc_test.c ============================================================================== --- head/lib/libproc/tests/proc_test.c Fri Dec 1 09:59:42 2017 (r326422) +++ head/lib/libproc/tests/proc_test.c Fri Dec 1 10:25:52 2017 (r326423) @@ -105,7 +105,7 @@ static void verify_bkpt(struct proc_handle *phdl, GElf_Sym *sym, const char *symname, const char *mapname) { - char mapbname[MAXPATHLEN], *name; + char *name, *mapname_copy, *mapbname; GElf_Sym tsym; prmap_t *map; size_t namesz; @@ -147,9 +147,11 @@ verify_bkpt(struct proc_handle *phdl, GElf_Sym *sym, c map = proc_addr2map(phdl, addr); ATF_REQUIRE_MSG(map != NULL, "failed to look up map for address 0x%lx", addr); - basename_r(map->pr_mapname, mapbname); + mapname_copy = strdup(map->pr_mapname); + mapbname = basename(mapname_copy); ATF_REQUIRE_EQ_MSG(strcmp(mapname, mapbname), 0, "expected map name '%s' doesn't match '%s'", mapname, mapbname); + free(mapname_copy); } ATF_TC(map_alias_name2map); From owner-svn-src-head@freebsd.org Fri Dec 1 10:53:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08AF4DFBB02; Fri, 1 Dec 2017 10:53:10 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C72A07B13A; Fri, 1 Dec 2017 10:53:09 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1Ar8W5085737; Fri, 1 Dec 2017 10:53:08 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1Ar8av085736; Fri, 1 Dec 2017 10:53:08 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201712011053.vB1Ar8av085736@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 1 Dec 2017 10:53:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326424 - head/sys/vm X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: head/sys/vm X-SVN-Commit-Revision: 326424 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 10:53:10 -0000 Author: kib Date: Fri Dec 1 10:53:08 2017 New Revision: 326424 URL: https://svnweb.freebsd.org/changeset/base/326424 Log: Add comment for vm_map_find_min(). Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 3 days X-Differential revision: https://reviews.freebsd.org/D13155 Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Fri Dec 1 10:25:52 2017 (r326423) +++ head/sys/vm/vm_map.c Fri Dec 1 10:53:08 2017 (r326424) @@ -1558,6 +1558,18 @@ again: return (result); } +/* + * vm_map_find_min() is a variant of vm_map_find() that takes an + * additional parameter (min_addr) and treats the given address + * (*addr) differently. Specifically, it treats *addr as a hint + * and not as the minimum address where the mapping is created. + * + * This function works in two phases. First, it tries to + * allocate above the hint. If that fails and the hint is + * greater than min_addr, it performs a second pass, replacing + * the hint with min_addr as the minimum address for the + * allocation. + */ int vm_map_find_min(vm_map_t map, vm_object_t object, vm_ooffset_t offset, vm_offset_t *addr, vm_size_t length, vm_offset_t min_addr, From owner-svn-src-head@freebsd.org Fri Dec 1 11:18:20 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB407DFC8CB; Fri, 1 Dec 2017 11:18:20 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 779FA7CD2A; Fri, 1 Dec 2017 11:18:20 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1BIJ0S096047; Fri, 1 Dec 2017 11:18:19 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1BIJwH096046; Fri, 1 Dec 2017 11:18:19 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201712011118.vB1BIJwH096046@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 1 Dec 2017 11:18:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326429 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326429 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 11:18:20 -0000 Author: kib Date: Fri Dec 1 11:18:19 2017 New Revision: 326429 URL: https://svnweb.freebsd.org/changeset/base/326429 Log: Destroy seltd st_mtx and st_wait in seltdfini(). A correct destruction is important for WITNESS(4) and LOCK_PROFILING(9). Submitted by: Sebastian Huber MFC after: 1 week Modified: head/sys/kern/sys_generic.c Modified: head/sys/kern/sys_generic.c ============================================================================== --- head/sys/kern/sys_generic.c Fri Dec 1 11:14:13 2017 (r326428) +++ head/sys/kern/sys_generic.c Fri Dec 1 11:18:19 2017 (r326429) @@ -1884,6 +1884,8 @@ seltdfini(struct thread *td) if (stp->st_free2) uma_zfree(selfd_zone, stp->st_free2); td->td_sel = NULL; + cv_destroy(&stp->st_wait); + mtx_destroy(&stp->st_mtx); free(stp, M_SELECT); } From owner-svn-src-head@freebsd.org Fri Dec 1 11:32:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83976DFD160; Fri, 1 Dec 2017 11:32:06 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50E1A7D985; Fri, 1 Dec 2017 11:32:06 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1BW5S6002698; Fri, 1 Dec 2017 11:32:05 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1BW5ID002696; Fri, 1 Dec 2017 11:32:05 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201712011132.vB1BW5ID002696@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Fri, 1 Dec 2017 11:32:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326430 - head/bin/ps X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/bin/ps X-SVN-Commit-Revision: 326430 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 11:32:06 -0000 Author: trasz Date: Fri Dec 1 11:32:05 2017 New Revision: 326430 URL: https://svnweb.freebsd.org/changeset/base/326430 Log: Add "vmaddr" ps(1) keyword. Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/bin/ps/keyword.c head/bin/ps/ps.1 Modified: head/bin/ps/keyword.c ============================================================================== --- head/bin/ps/keyword.c Fri Dec 1 11:18:19 2017 (r326429) +++ head/bin/ps/keyword.c Fri Dec 1 11:32:05 2017 (r326430) @@ -225,6 +225,8 @@ static VAR var[] = { {"usertime", "USERTIME", NULL, "user-time", USER, usertime, 0, CHAR, NULL, 0}, {"usrpri", "", "upr", NULL, 0, NULL, 0, CHAR, NULL, 0}, + {"vmaddr", "VMADDR", NULL, "vmspace-address", 0, kvar, KOFF(ki_vmspace), + KPTR, "lx", 0}, {"vsize", "", "vsz", NULL, 0, NULL, 0, CHAR, NULL, 0}, {"vsz", "VSZ", NULL, "virtual-size", 0, vsize, 0, CHAR, NULL, 0}, {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL, Modified: head/bin/ps/ps.1 ============================================================================== --- head/bin/ps/ps.1 Fri Dec 1 11:18:19 2017 (r326429) +++ head/bin/ps/ps.1 Fri Dec 1 11:32:05 2017 (r326430) @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd October 9, 2017 +.Dd December 1, 2017 .Dt PS 1 .Os .Sh NAME @@ -710,6 +710,8 @@ process pointer user name (from UID) .It Cm usertime accumulated user CPU time +.It Cm vmaddr +vmspace pointer .It Cm vsz virtual size in Kbytes (alias .Cm vsize ) From owner-svn-src-head@freebsd.org Fri Dec 1 17:58:21 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A959FE666A0; Fri, 1 Dec 2017 17:58:21 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7449A6A5EE; Fri, 1 Dec 2017 17:58:21 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1HwKPo078124; Fri, 1 Dec 2017 17:58:20 GMT (envelope-from shurd@FreeBSD.org) Received: (from shurd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1HwKIA078123; Fri, 1 Dec 2017 17:58:20 GMT (envelope-from shurd@FreeBSD.org) Message-Id: <201712011758.vB1HwKIA078123@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: shurd set sender to shurd@FreeBSD.org using -f From: Stephen Hurd Date: Fri, 1 Dec 2017 17:58:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326432 - head/sys/net X-SVN-Group: head X-SVN-Commit-Author: shurd X-SVN-Commit-Paths: head/sys/net X-SVN-Commit-Revision: 326432 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 17:58:21 -0000 Author: shurd Date: Fri Dec 1 17:58:20 2017 New Revision: 326432 URL: https://svnweb.freebsd.org/changeset/base/326432 Log: Add support for SIOCGIFXMEDIA to iflib SIOCGIFXMEDIA is required for extended ethernet media types, but iflib did not support it. Reported by: Bhargava Chenna Marreddy Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D13312 Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c ============================================================================== --- head/sys/net/iflib.c Fri Dec 1 17:15:13 2017 (r326431) +++ head/sys/net/iflib.c Fri Dec 1 17:58:20 2017 (r326432) @@ -3912,6 +3912,7 @@ iflib_if_ioctl(if_t ifp, u_long command, caddr_t data) CTX_UNLOCK(ctx); /* falls thru */ case SIOCGIFMEDIA: + case SIOCGIFXMEDIA: err = ifmedia_ioctl(ifp, ifr, &ctx->ifc_media, command); break; case SIOCGI2C: From owner-svn-src-head@freebsd.org Fri Dec 1 20:51:09 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C436CE6A8CF; Fri, 1 Dec 2017 20:51:09 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE2B706F7; Fri, 1 Dec 2017 20:51:09 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1Kp80I049160; Fri, 1 Dec 2017 20:51:08 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1Kp8Gn049159; Fri, 1 Dec 2017 20:51:08 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201712012051.vB1Kp8Gn049159@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Fri, 1 Dec 2017 20:51:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326433 - head/sys/arm/allwinner X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/sys/arm/allwinner X-SVN-Commit-Revision: 326433 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 20:51:09 -0000 Author: kevans Date: Fri Dec 1 20:51:08 2017 New Revision: 326433 URL: https://svnweb.freebsd.org/changeset/base/326433 Log: a10_gpio: Add support for more modern pin configuration a10_gpio previously accepted only {allwinner,}drive and {allwinner,}pull for drive/bias setting, while newer DTS is using drive-strength and bias-{disable,pull-up,pull-down} properties. Accept these properties as well. Additionally make bias and drive strength optional rather than required; not setting them should just indicate that we do not need to configure these properties. Tested on: BananaPi-M3 (a83t) Reviewed by: manu Approved by: emaste (implicit) Obtained from: NetBSD (partially) Differential Revision: https://reviews.freebsd.org/D13284 Modified: head/sys/arm/allwinner/a10_gpio.c Modified: head/sys/arm/allwinner/a10_gpio.c ============================================================================== --- head/sys/arm/allwinner/a10_gpio.c Fri Dec 1 17:58:20 2017 (r326432) +++ head/sys/arm/allwinner/a10_gpio.c Fri Dec 1 20:51:08 2017 (r326433) @@ -203,6 +203,11 @@ struct a10_gpio_softc { #define A10_GPIO_GP_INT_STA 0x214 #define A10_GPIO_GP_INT_DEB 0x218 +static char *a10_gpio_parse_function(phandle_t node); +static const char **a10_gpio_parse_pins(phandle_t node, int *pins_nb); +static uint32_t a10_gpio_parse_bias(phandle_t node); +static int a10_gpio_parse_drive_strength(phandle_t node, uint32_t *drive); + static int a10_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value); static int a10_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); static int a10_gpio_pin_get_locked(struct a10_gpio_softc *sc, uint32_t pin, unsigned int *value); @@ -278,6 +283,9 @@ a10_gpio_set_pud(struct a10_gpio_softc *sc, uint32_t p { uint32_t bank, offset, val; + if (a10_gpio_get_pud(sc, pin) == state) + return; + /* Must be called with lock held. */ A10_GPIO_LOCK_ASSERT(sc); @@ -313,6 +321,9 @@ a10_gpio_set_drv(struct a10_gpio_softc *sc, uint32_t p { uint32_t bank, offset, val; + if (a10_gpio_get_drv(sc, pin) == drive) + return; + /* Must be called with lock held. */ A10_GPIO_LOCK_ASSERT(sc); @@ -541,7 +552,76 @@ a10_gpio_pin_get_locked(struct a10_gpio_softc *sc,uint return (0); } +static char * +a10_gpio_parse_function(phandle_t node) +{ + char *function; + + if (OF_getprop_alloc(node, "function", sizeof(*function), + (void **)&function) != -1) + return (function); + if (OF_getprop_alloc(node, "allwinner,function", sizeof(*function), + (void **)&function) != -1) + return (function); + + return (NULL); +} + +static const char ** +a10_gpio_parse_pins(phandle_t node, int *pins_nb) +{ + const char **pinlist; + + *pins_nb = ofw_bus_string_list_to_array(node, "pins", &pinlist); + if (*pins_nb > 0) + return (pinlist); + + *pins_nb = ofw_bus_string_list_to_array(node, "allwinner,pins", + &pinlist); + if (*pins_nb > 0) + return (pinlist); + + return (NULL); +} + +static uint32_t +a10_gpio_parse_bias(phandle_t node) +{ + uint32_t bias; + + if (OF_getencprop(node, "pull", &bias, sizeof(bias)) != -1) + return (bias); + if (OF_getencprop(node, "allwinner,pull", &bias, sizeof(bias)) != -1) + return (bias); + if (OF_hasprop(node, "bias-disable")) + return (A10_GPIO_NONE); + if (OF_hasprop(node, "bias-pull-up")) + return (A10_GPIO_PULLUP); + if (OF_hasprop(node, "bias-pull-down")) + return (A10_GPIO_PULLDOWN); + + return (A10_GPIO_NONE); +} + static int +a10_gpio_parse_drive_strength(phandle_t node, uint32_t *drive) +{ + uint32_t drive_str; + + if (OF_getencprop(node, "drive", drive, sizeof(*drive)) != -1) + return (0); + if (OF_getencprop(node, "allwinner,drive", drive, sizeof(*drive)) != -1) + return (0); + if (OF_getencprop(node, "drive-strength", &drive_str, + sizeof(drive_str)) != -1) { + *drive = (drive_str / 10) - 1; + return (0); + } + + return (1); +} + +static int a10_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) { struct a10_gpio_softc *sc; @@ -682,46 +762,29 @@ aw_fdt_configure_pins(device_t dev, phandle_t cfgxref) char *pin_function = NULL; uint32_t pin_drive, pin_pull; int pins_nb, pin_num, pin_func, i, ret; + bool set_drive; sc = device_get_softc(dev); node = OF_node_from_xref(cfgxref); ret = 0; + set_drive = false; /* Getting all prop for configuring pins */ - pins_nb = ofw_bus_string_list_to_array(node, "pins", &pinlist); - if (pins_nb <= 0) { - pins_nb = ofw_bus_string_list_to_array(node, "allwinner,pins", - &pinlist); - if (pins_nb <= 0) - return (ENOENT); + pinlist = a10_gpio_parse_pins(node, &pins_nb); + if (pinlist == NULL) + return (ENOENT); + + pin_function = a10_gpio_parse_function(node); + if (pin_function == NULL) { + ret = ENOENT; + goto out; } - if (OF_getprop_alloc(node, "function", - sizeof(*pin_function), - (void **)&pin_function) == -1) { - if (OF_getprop_alloc(node, "allwinner,function", - sizeof(*pin_function), - (void **)&pin_function) == -1) { - ret = ENOENT; - goto out; - } - } - if (OF_getencprop(node, "drive", - &pin_drive, sizeof(pin_drive)) == -1) { - if (OF_getencprop(node, "allwinner,drive", - &pin_drive, sizeof(pin_drive)) == -1) { - ret = ENOENT; - goto out; - } - } - if (OF_getencprop(node, "pull", - &pin_pull, sizeof(pin_pull)) == -1) { - if (OF_getencprop(node, "allwinner,pull", - &pin_pull, sizeof(pin_pull)) == -1) { - ret = ENOENT; - goto out; - } - } + if (a10_gpio_parse_drive_strength(node, &pin_drive) == 0) + set_drive = true; + + pin_pull = a10_gpio_parse_bias(node); + /* Configure each pin to the correct function, drive and pull */ for (i = 0; i < pins_nb; i++) { pin_num = aw_find_pinnum_by_name(sc, pinlist[i]); @@ -739,12 +802,11 @@ aw_fdt_configure_pins(device_t dev, phandle_t cfgxref) if (a10_gpio_get_function(sc, pin_num) != pin_func) a10_gpio_set_function(sc, pin_num, pin_func); - if (a10_gpio_get_drv(sc, pin_num) != pin_drive) + if (set_drive) a10_gpio_set_drv(sc, pin_num, pin_drive); - if (a10_gpio_get_pud(sc, pin_num) != pin_pull && - (pin_pull == A10_GPIO_PULLUP || - pin_pull == A10_GPIO_PULLDOWN)) + if (pin_pull != A10_GPIO_NONE) a10_gpio_set_pud(sc, pin_num, pin_pull); + A10_GPIO_UNLOCK(sc); } From owner-svn-src-head@freebsd.org Fri Dec 1 21:44:25 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4316FE6BC8B; Fri, 1 Dec 2017 21:44:25 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C92C7231D; Fri, 1 Dec 2017 21:44:24 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1LiOnd074154; Fri, 1 Dec 2017 21:44:24 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1LiNrQ074153; Fri, 1 Dec 2017 21:44:23 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712012144.vB1LiNrQ074153@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Fri, 1 Dec 2017 21:44:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326434 - head/usr.bin/fmt X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/usr.bin/fmt X-SVN-Commit-Revision: 326434 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 21:44:25 -0000 Author: eadler Date: Fri Dec 1 21:44:23 2017 New Revision: 326434 URL: https://svnweb.freebsd.org/changeset/base/326434 Log: fmt(1): Fix usage of Nm macro Modified: head/usr.bin/fmt/fmt.1 Modified: head/usr.bin/fmt/fmt.1 ============================================================================== --- head/usr.bin/fmt/fmt.1 Fri Dec 1 20:51:08 2017 (r326433) +++ head/usr.bin/fmt/fmt.1 Fri Dec 1 21:44:23 2017 (r326434) @@ -30,14 +30,14 @@ .\" .\" Modified by Gareth McCaughan to describe the new version of `fmt' .\" rather than the old one. -.Dd August 2, 2004 +.Dd December 1, 2017 .Dt FMT 1 .Os .Sh NAME .Nm fmt .Nd simple text formatter .Sh SYNOPSIS -.Nm fmt +.Nm .Op Fl cmnps .Op Fl d Ar chars .Op Fl l Ar num From owner-svn-src-head@freebsd.org Fri Dec 1 22:26:39 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49424E6CC24; Fri, 1 Dec 2017 22:26:39 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22FAA73FAB; Fri, 1 Dec 2017 22:26:39 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1MQc0f091404; Fri, 1 Dec 2017 22:26:38 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1MQaTs091388; Fri, 1 Dec 2017 22:26:36 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712012226.vB1MQaTs091388@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 1 Dec 2017 22:26:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326435 - head/lib/libc/sys X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/lib/libc/sys X-SVN-Commit-Revision: 326435 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 22:26:39 -0000 Author: imp Date: Fri Dec 1 22:26:36 2017 New Revision: 326435 URL: https://svnweb.freebsd.org/changeset/base/326435 Log: Mark all the system calls that were in 1st Edition Unix as such in the HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Modified: head/lib/libc/sys/chdir.2 head/lib/libc/sys/chmod.2 head/lib/libc/sys/chown.2 head/lib/libc/sys/close.2 head/lib/libc/sys/fork.2 head/lib/libc/sys/getuid.2 head/lib/libc/sys/link.2 head/lib/libc/sys/mkdir.2 head/lib/libc/sys/mount.2 head/lib/libc/sys/open.2 head/lib/libc/sys/read.2 head/lib/libc/sys/setuid.2 head/lib/libc/sys/stat.2 head/lib/libc/sys/unlink.2 head/lib/libc/sys/wait.2 head/lib/libc/sys/write.2 Modified: head/lib/libc/sys/chdir.2 ============================================================================== --- head/lib/libc/sys/chdir.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/chdir.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)chdir.2 8.2 (Berkeley) 12/11/93 .\" $FreeBSD$ .\" -.Dd December 11, 1993 +.Dd December 1, 2017 .Dt CHDIR 2 .Os .Sh NAME @@ -125,7 +125,7 @@ system call is expected to conform to The .Fn chdir system call appeared in -.At v7 . +.At v1 . The .Fn fchdir system call appeared in Modified: head/lib/libc/sys/chmod.2 ============================================================================== --- head/lib/libc/sys/chmod.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/chmod.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 1, 2013 +.Dd December 1, 2017 .Dt CHMOD 2 .Os .Sh NAME @@ -312,7 +312,7 @@ system call is expected to conform to The .Fn chmod function appeared in -.At v7 . +.At v1 . The .Fn fchmod system call appeared in Modified: head/lib/libc/sys/chown.2 ============================================================================== --- head/lib/libc/sys/chown.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/chown.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)chown.2 8.4 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd April 10, 2008 +.Dd December 1, 2017 .Dt CHOWN 2 .Os .Sh NAME @@ -246,7 +246,7 @@ system call follows The Open Group Extended API Set 2 The .Fn chown function appeared in -.At v7 . +.At v1 . The .Fn fchown system call appeared in Modified: head/lib/libc/sys/close.2 ============================================================================== --- head/lib/libc/sys/close.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/close.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)close.2 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd September 11, 2013 +.Dd December 1, 2017 .Dt CLOSE 2 .Os .Sh NAME @@ -141,4 +141,4 @@ system call is expected to conform to The .Fn close function appeared in -.At v7 . +.At v1 . Modified: head/lib/libc/sys/fork.2 ============================================================================== --- head/lib/libc/sys/fork.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/fork.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)fork.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd May 1, 2015 +.Dd December 1, 2017 .Dt FORK 2 .Os .Sh NAME @@ -145,4 +145,4 @@ There is insufficient swap space for the new process. The .Fn fork function appeared in -.At v6 . +.At v1 . Modified: head/lib/libc/sys/getuid.2 ============================================================================== --- head/lib/libc/sys/getuid.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/getuid.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)getuid.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 15, 2015 +.Dd December 1, 2017 .Dt GETUID 2 .Os .Sh NAME @@ -83,7 +83,9 @@ system calls are expected to conform to .Sh HISTORY The .Fn getuid -and +function appeared in +.At v1 . +The .Fn geteuid -functions appeared in +function appeared in .At v7 . Modified: head/lib/libc/sys/link.2 ============================================================================== --- head/lib/libc/sys/link.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/link.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)link.2 8.3 (Berkeley) 1/12/94 .\" $FreeBSD$ .\" -.Dd April 10, 2008 +.Dd December 1, 2017 .Dt LINK 2 .Os .Sh NAME @@ -275,7 +275,7 @@ system call follows The Open Group Extended API Set 2 The .Fn link function appeared in -.At v7 . +.At v1 . The .Fn linkat system call appeared in Modified: head/lib/libc/sys/mkdir.2 ============================================================================== --- head/lib/libc/sys/mkdir.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/mkdir.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -174,3 +174,7 @@ The .Fn mkdirat system call appeared in .Fx 8.0 . +The +.Fn mkdir +system call appeared in +.At v1 . Modified: head/lib/libc/sys/mount.2 ============================================================================== --- head/lib/libc/sys/mount.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/mount.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)mount.2 8.3 (Berkeley) 5/24/95 .\" $FreeBSD$ .\" -.Dd April 13, 2015 +.Dd December 1, 2017 .Dt MOUNT 2 .Os .Sh NAME @@ -362,7 +362,7 @@ The and .Fn unmount functions appeared in -.At v6 . +.At v1 . The .Fn nmount system call first appeared in Modified: head/lib/libc/sys/open.2 ============================================================================== --- head/lib/libc/sys/open.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/open.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" $FreeBSD$ .\" -.Dd September 15, 2017 +.Dd December 1, 2017 .Dt OPEN 2 .Os .Sh NAME @@ -526,7 +526,7 @@ in one of its non-final components. The .Fn open function appeared in -.At v6 . +.At v1 . The .Fn openat function was introduced in Modified: head/lib/libc/sys/read.2 ============================================================================== --- head/lib/libc/sys/read.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/read.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" $FreeBSD$ .\" -.Dd December 15, 2015 +.Dd December 1, 2017 .Dt READ 2 .Os .Sh NAME @@ -281,4 +281,4 @@ system call appeared in The .Fn read function appeared in -.At v6 . +.At v1 . Modified: head/lib/libc/sys/setuid.2 ============================================================================== --- head/lib/libc/sys/setuid.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/setuid.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -153,9 +153,11 @@ and have been proposed for a future revision of the st .Sh HISTORY The .Fn setuid -and +function appeared in +.At v1 . +The .Fn setgid -functions appeared in +function appeared in .At v7 . .Sh SECURITY CONSIDERATIONS Read and write permissions to files are determined upon a call to Modified: head/lib/libc/sys/stat.2 ============================================================================== --- head/lib/libc/sys/stat.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/stat.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)stat.2 8.4 (Berkeley) 5/1/95 .\" $FreeBSD$ .\" -.Dd June 23, 2017 +.Dd December 1, 2017 .Dt STAT 2 .Os .Sh NAME @@ -423,7 +423,7 @@ The and .Fn fstat system calls appeared in -.At v7 . +.At v1 . The .Fn lstat system call appeared in Modified: head/lib/libc/sys/unlink.2 ============================================================================== --- head/lib/libc/sys/unlink.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/unlink.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)unlink.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd July 28, 2015 +.Dd December 1, 2017 .Dt UNLINK 2 .Os .Sh NAME @@ -215,7 +215,7 @@ system call follows The Open Group Extended API Set 2 The .Fn unlink function appeared in -.At v6 . +.At v1 . The .Fn unlinkat system call appeared in Modified: head/lib/libc/sys/wait.2 ============================================================================== --- head/lib/libc/sys/wait.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/wait.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)wait.2 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd June 17, 2017 +.Dd December 1, 2017 .Dt WAIT 2 .Os .Sh NAME @@ -675,4 +675,4 @@ only permits this flag with The .Fn wait function appeared in -.At v6 . +.At v1 . Modified: head/lib/libc/sys/write.2 ============================================================================== --- head/lib/libc/sys/write.2 Fri Dec 1 21:44:23 2017 (r326434) +++ head/lib/libc/sys/write.2 Fri Dec 1 22:26:36 2017 (r326435) @@ -28,7 +28,7 @@ .\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" $FreeBSD$ .\" -.Dd October 16, 2017 +.Dd December 1, 2017 .Dt WRITE 2 .Os .Sh NAME @@ -287,4 +287,4 @@ system call appeared in The .Fn write function appeared in -.At v6 . +.At v1 . From owner-svn-src-head@freebsd.org Fri Dec 1 22:38:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42C51DB93A3; Fri, 1 Dec 2017 22:38:30 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0671749A7; Fri, 1 Dec 2017 22:38:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1McToD095492; Fri, 1 Dec 2017 22:38:29 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1McSAx095490; Fri, 1 Dec 2017 22:38:28 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201712012238.vB1McSAx095490@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 1 Dec 2017 22:38:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326436 - head/usr.bin/vmstat X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: head/usr.bin/vmstat X-SVN-Commit-Revision: 326436 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 22:38:30 -0000 Author: kib Date: Fri Dec 1 22:38:28 2017 New Revision: 326436 URL: https://svnweb.freebsd.org/changeset/base/326436 Log: vmstat: fix style(9) violations and bump WARNS. Based on the patch by: Pawel Biernacki Sponsored by: Mysterious Code Ltd. (Pawel), The FreeBSD Foundation (me) MFC after: 1 week Differential revision: https://reviews.freebsd.org/D13228 Modified: head/usr.bin/vmstat/Makefile head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/Makefile ============================================================================== --- head/usr.bin/vmstat/Makefile Fri Dec 1 22:26:36 2017 (r326435) +++ head/usr.bin/vmstat/Makefile Fri Dec 1 22:38:28 2017 (r326436) @@ -5,6 +5,6 @@ PROG= vmstat MAN= vmstat.8 LIBADD= devstat kvm memstat xo util -WARNS?= 1 +WARNS?= 6 .include Modified: head/usr.bin/vmstat/vmstat.c ============================================================================== --- head/usr.bin/vmstat/vmstat.c Fri Dec 1 22:26:36 2017 (r326435) +++ head/usr.bin/vmstat/vmstat.c Fri Dec 1 22:38:28 2017 (r326436) @@ -85,50 +85,38 @@ __FBSDID("$FreeBSD$"); static char da[] = "da"; +enum x_stats { X_SUM, X_HZ, X_STATHZ, X_NCHSTATS, X_INTRNAMES, X_SINTRNAMES, + X_INTRCNT, X_SINTRCNT, X_DEFICIT, X_REC, X_PGIN, X_XSTATS }; + static struct nlist namelist[] = { -#define X_SUM 0 - { "_vm_cnt" }, -#define X_HZ 1 - { "_hz" }, -#define X_STATHZ 2 - { "_stathz" }, -#define X_NCHSTATS 3 - { "_nchstats" }, -#define X_INTRNAMES 4 - { "_intrnames" }, -#define X_SINTRNAMES 5 - { "_sintrnames" }, -#define X_INTRCNT 6 - { "_intrcnt" }, -#define X_SINTRCNT 7 - { "_sintrcnt" }, + [X_SUM] = { .n_name = "_vm_cnt", }, + [X_HZ] = { .n_name = "_hz", }, + [X_STATHZ] = { .n_name = "_stathz", }, + [X_NCHSTATS] = { .n_name = "_nchstats", }, + [X_INTRNAMES] = { .n_name = "_intrnames", }, + [X_SINTRNAMES] = { .n_name = "_sintrnames", }, + [X_INTRCNT] = { .n_name = "_intrcnt", }, + [X_SINTRCNT] = { .n_name = "_sintrcnt", }, #ifdef notyet -#define X_DEFICIT XXX - { "_deficit" }, -#define X_REC XXX - { "_rectime" }, -#define X_PGIN XXX - { "_pgintime" }, -#define X_XSTATS XXX - { "_xstats" }, -#define X_END XXX -#else -#define X_END 8 + [X_DEFICIT] = { .n_name = "_deficit", }, + [X_REC] = { .n_name = "_rectime", }, + [X_PGIN] = { .n_name = "_pgintime", }, + [X_XSTATS] = { .n_name = "_xstats", }, #endif - { "" }, + { .n_name = NULL, }, }; -static struct statinfo cur, last; -static int num_devices, maxshowdevs; -static long generation; -static struct device_selection *dev_select; -static int num_selected; static struct devstat_match *matches; -static int num_matches = 0; -static int num_devices_specified, num_selections; -static long select_generation; -static char **specified_devices; +static struct device_selection *dev_select; +static struct statinfo cur, last; static devstat_select_mode select_mode; +static size_t size_cp_times; +static long *cur_cp_times, *last_cp_times; +static long generation, select_generation; +static int hz, hdrcnt, maxshowdevs; +static int num_devices, num_devices_specified; +static int num_matches, num_selected, num_selections; +static char **specified_devices; static struct __vmmeter { uint64_t v_swtch; @@ -183,7 +171,7 @@ static struct __vmmeter { } sum, osum; #define VMSTAT_DEFAULT_LINES 20 /* Default number of `winlines'. */ -volatile sig_atomic_t wresized; /* Tty resized, when non-zero. */ +static volatile sig_atomic_t wresized; /* Tty resized when non-zero. */ static int winlines = VMSTAT_DEFAULT_LINES; /* Current number of tty rows. */ static int aflag; @@ -191,7 +179,7 @@ static int nflag; static int Pflag; static int hflag; -static kvm_t *kd; +static kvm_t *kd; #define FORKSTAT 0x01 #define INTRSTAT 0x02 @@ -199,11 +187,11 @@ static kvm_t *kd; #define SUMSTAT 0x08 #define TIMESTAT 0x10 #define VMSTAT 0x20 -#define ZMEMSTAT 0x40 +#define ZMEMSTAT 0x40 #define OBJSTAT 0x80 static void cpustats(void); -static void pcpustats(int, u_long, int); +static void pcpustats(u_long, int); static void devstats(void); static void doforkst(void); static void dointr(unsigned int, int); @@ -214,7 +202,6 @@ static void domemstat_malloc(void); static void domemstat_zone(void); static void kread(int, void *, size_t); static void kreado(int, void *, size_t, size_t); -static char *kgetstr(const char *); static void needhdr(int); static void needresize(int); static void doresize(void); @@ -224,16 +211,15 @@ static void usage(void); static long pct(long, long); static long long getuptime(void); -static char **getdrivedata(char **); +static char **getdrivedata(char **); int main(int argc, char *argv[]) { - int c, todo; - unsigned int interval; + char *bp, *buf, *memf, *nlistf; float f; - int reps; - char *memf, *nlistf; + int bufsize, c, len, reps, todo; + unsigned int interval; char errbuf[_POSIX2_LINE_MAX]; memf = nlistf = NULL; @@ -243,7 +229,7 @@ main(int argc, char *argv[]) argc = xo_parse_args(argc, argv); if (argc < 0) - return argc; + return (argc); while ((c = getopt(argc, argv, "ac:fhHiM:mN:n:oPp:stw:z")) != -1) { switch (c) { @@ -282,13 +268,14 @@ main(int argc, char *argv[]) maxshowdevs = atoi(optarg); if (maxshowdevs < 0) xo_errx(1, "number of devices %d is < 0", - maxshowdevs); + maxshowdevs); break; case 'o': todo |= OBJSTAT; break; case 'p': - if (devstat_buildmatch(optarg, &matches, &num_matches) != 0) + if (devstat_buildmatch(optarg, &matches, &num_matches) + != 0) xo_errx(1, "%s", devstat_errbuf); break; case 's': @@ -298,7 +285,8 @@ main(int argc, char *argv[]) #ifdef notyet todo |= TIMESTAT; #else - xo_errx(EX_USAGE, "sorry, -t is not (re)implemented yet"); + xo_errx(EX_USAGE, + "sorry, -t is not (re)implemented yet"); #endif break; case 'w': @@ -330,10 +318,10 @@ main(int argc, char *argv[]) retry_nlist: if (kd != NULL && (c = kvm_nlist(kd, namelist)) != 0) { if (c > 0) { - int bufsize = 0, len = 0; - char *buf, *bp; + bufsize = 0, len = 0; + /* - * 'cnt' was renamed to 'vm_cnt'. If 'vm_cnt' is not + * 'cnt' was renamed to 'vm_cnt'. If 'vm_cnt' is not * found try looking up older 'cnt' symbol. * */ if (namelist[X_SUM].n_type == 0 && @@ -341,9 +329,11 @@ retry_nlist: namelist[X_SUM].n_name = "_cnt"; goto retry_nlist; } + for (c = 0; c < (int)(nitems(namelist)); c++) if (namelist[c].n_type == 0) - bufsize += strlen(namelist[c].n_name) + 1; + bufsize += strlen(namelist[c].n_name) + + 1; bufsize += len + 1; buf = bp = alloca(bufsize); @@ -428,6 +418,7 @@ mysysctl(const char *name, void *oldp, size_t *oldlenp static char ** getdrivedata(char **argv) { + if ((num_devices = devstat_getnumdevs(NULL)) < 0) xo_errx(1, "%s", devstat_errbuf); @@ -440,20 +431,19 @@ getdrivedata(char **argv) num_devices = cur.dinfo->numdevs; generation = cur.dinfo->generation; - specified_devices = (char **)malloc(sizeof(char *)); + specified_devices = malloc(sizeof(char *)); for (num_devices_specified = 0; *argv; ++argv) { if (isdigit(**argv)) break; num_devices_specified++; - specified_devices = (char **)realloc(specified_devices, - sizeof(char *) * - num_devices_specified); + specified_devices = realloc(specified_devices, + sizeof(char *) * num_devices_specified); specified_devices[num_devices_specified - 1] = *argv; } dev_select = NULL; if (nflag == 0 && maxshowdevs < num_devices_specified) - maxshowdevs = num_devices_specified; + maxshowdevs = num_devices_specified; /* * People are generally only interested in disk statistics when @@ -468,7 +458,6 @@ getdrivedata(char **argv) if ((num_devices_specified == 0) && (num_matches == 0)) { if (devstat_buildmatch(da, &matches, &num_matches) != 0) xo_errx(1, "%s", devstat_errbuf); - select_mode = DS_SELECT_ADD; } else select_mode = DS_SELECT_ONLY; @@ -479,10 +468,10 @@ getdrivedata(char **argv) * or 1. If we get back -1, though, there is an error. */ if (devstat_selectdevs(&dev_select, &num_selected, &num_selections, - &select_generation, generation, cur.dinfo->devices, - num_devices, matches, num_matches, specified_devices, - num_devices_specified, select_mode, - maxshowdevs, 0) == -1) + &select_generation, generation, cur.dinfo->devices, + num_devices, matches, num_matches, specified_devices, + num_devices_specified, select_mode, + maxshowdevs, 0) == -1) xo_errx(1, "%s", devstat_errbuf); return(argv); @@ -495,19 +484,16 @@ getuptime(void) struct timespec sp; (void)clock_gettime(CLOCK_UPTIME, &sp); - return((long long)sp.tv_sec * 1000000000LL + sp.tv_nsec); } static void fill_vmmeter(struct __vmmeter *vmmp) { - struct pcpu **pcpu; - int maxcpu, i; + struct vmmeter vm_cnt; + size_t size; if (kd != NULL) { - struct vmmeter vm_cnt; - kread(X_SUM, &vm_cnt, sizeof(vm_cnt)); #define GET_COUNTER(name) \ vmmp->name = kvm_counter_u64_fetch(kd, (u_long)vm_cnt.name) @@ -542,8 +528,6 @@ fill_vmmeter(struct __vmmeter *vmmp) GET_COUNTER(v_kthreadpages); #undef GET_COUNTER } else { - size_t size; - #define GET_VM_STATS(cat, name) do { \ size = sizeof(vmmp->name); \ mysysctl("vm.stats." #cat "." #name, &vmmp->name, &size); \ @@ -607,11 +591,13 @@ fill_vmmeter(struct __vmmeter *vmmp) static void fill_vmtotal(struct vmtotal *vmtp) { + size_t size; + if (kd != NULL) { /* XXX fill vmtp */ xo_errx(1, "not implemented"); } else { - size_t size = sizeof(*vmtp); + size = sizeof(*vmtp); mysysctl("vm.vmtotal", vmtp, &size); if (size != sizeof(*vmtp)) xo_errx(1, "vm.total size mismatch"); @@ -622,14 +608,10 @@ fill_vmtotal(struct vmtotal *vmtp) static int getcpuinfo(u_long *maskp, int *maxidp) { - int maxcpu; - int maxid; - int ncpus; - int i, j; - int empty; - size_t size; long *times; u_long mask; + size_t size; + int empty, i, j, maxcpu, maxid, ncpus; if (kd != NULL) xo_errx(1, "not implemented"); @@ -667,8 +649,8 @@ getcpuinfo(u_long *maskp, int *maxidp) static void prthuman(const char *name, uint64_t val, int size) { - char buf[10]; int flags; + char buf[10]; char fmt[128]; snprintf(fmt, sizeof(fmt), "{:%s/%%*s}", name); @@ -681,28 +663,23 @@ prthuman(const char *name, uint64_t val, int size) xo_emit(fmt, size, buf); } -static int hz, hdrcnt; - -static long *cur_cp_times; -static long *last_cp_times; -static size_t size_cp_times; - static void dovmstat(unsigned int interval, int reps) { + struct clockinfo clockrate; struct vmtotal total; - time_t uptime, halfuptime; struct devinfo *tmp_dinfo; - size_t size; - int ncpus, maxid; u_long cpumask; - int rate_adj; + size_t size; + time_t uptime, halfuptime; + int ncpus, maxid, rate_adj, retval; uptime = getuptime() / 1000000000LL; halfuptime = uptime / 2; rate_adj = 1; ncpus = 1; maxid = 0; + cpumask = 0; /* * If the user stops the program (control-Z) and then resumes it, @@ -731,8 +708,6 @@ dovmstat(unsigned int interval, int reps) if (!hz) kread(X_HZ, &hz, sizeof(hz)); } else { - struct clockinfo clockrate; - size = sizeof(clockrate); mysysctl("kern.clockrate", &clockrate, &size); if (size != sizeof(clockrate)) @@ -781,19 +756,17 @@ dovmstat(unsigned int interval, int reps) case -1: xo_errx(1, "%s", devstat_errbuf); break; - case 1: { - int retval; - + case 1: num_devices = cur.dinfo->numdevs; generation = cur.dinfo->generation; retval = devstat_selectdevs(&dev_select, &num_selected, - &num_selections, &select_generation, - generation, cur.dinfo->devices, - num_devices, matches, num_matches, - specified_devices, - num_devices_specified, select_mode, - maxshowdevs, 0); + &num_selections, &select_generation, + generation, cur.dinfo->devices, + num_devices, matches, num_matches, + specified_devices, + num_devices_specified, select_mode, + maxshowdevs, 0); switch (retval) { case -1: xo_errx(1, "%s", devstat_errbuf); @@ -804,7 +777,7 @@ dovmstat(unsigned int interval, int reps) default: break; } - } + break; default: break; } @@ -813,8 +786,8 @@ dovmstat(unsigned int interval, int reps) fill_vmtotal(&total); xo_open_container("processes"); xo_emit("{:runnable/%1d} {:waiting/%ld} " - "{:swapped-out/%ld}", - total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw); + "{:swapped-out/%ld}", total.t_rq - 1, total.t_dw + + total.t_pw, total.t_sw); xo_close_container("processes"); xo_open_container("memory"); #define vmstat_pgtok(a) ((uintmax_t)(a) * (sum.v_page_size >> 10)) @@ -822,28 +795,29 @@ dovmstat(unsigned int interval, int reps) if (hflag) { xo_emit(""); prthuman("available-memory", - total.t_avm * (uint64_t)sum.v_page_size, 5); + total.t_avm * (uint64_t)sum.v_page_size, 5); xo_emit(" "); prthuman("free-memory", - total.t_free * (uint64_t)sum.v_page_size, 5); + total.t_free * (uint64_t)sum.v_page_size, 5); xo_emit(" "); } else { xo_emit(" "); xo_emit("{:available-memory/%7ju}", - vmstat_pgtok(total.t_avm)); + vmstat_pgtok(total.t_avm)); xo_emit(" "); xo_emit("{:free-memory/%7ju}", - vmstat_pgtok(total.t_free)); + vmstat_pgtok(total.t_free)); xo_emit(" "); } xo_emit("{:total-page-faults/%5lu} ", - (unsigned long)rate(sum.v_vm_faults - - osum.v_vm_faults)); + (unsigned long)rate(sum.v_vm_faults - + osum.v_vm_faults)); xo_close_container("memory"); xo_open_container("paging-rates"); xo_emit("{:page-reactivated/%3lu} ", - (unsigned long)rate(sum.v_reactivated - osum.v_reactivated)); + (unsigned long)rate(sum.v_reactivated - + osum.v_reactivated)); xo_emit("{:paged-in/%3lu} ", (unsigned long)rate(sum.v_swapin + sum.v_vnodein - (osum.v_swapin + osum.v_vnodein))); @@ -859,13 +833,13 @@ dovmstat(unsigned int interval, int reps) devstats(); xo_open_container("fault-rates"); xo_emit("{:interrupts/%4lu} {:system-calls/%5lu} " - "{:context-switches/%5u}", + "{:context-switches/%5lu}", (unsigned long)rate(sum.v_intr - osum.v_intr), (unsigned long)rate(sum.v_syscall - osum.v_syscall), (unsigned long)rate(sum.v_swtch - osum.v_swtch)); xo_close_container("fault-rates"); if (Pflag) - pcpustats(ncpus, cpumask, maxid); + pcpustats(cpumask, maxid); else cpustats(); xo_emit("\n"); @@ -893,13 +867,12 @@ printhdr(int maxid, u_long cpumask) int i, num_shown; num_shown = MIN(num_selected, maxshowdevs); - if (hflag) { + if (hflag) xo_emit("{T:procs} {T:memory} {T:/page%*s}", 19, ""); - } else { + else xo_emit("{T:procs} {T:memory} {T:/page%*s}", 19, ""); - } if (num_shown > 1) - xo_emit(" {T:/disks %*s}", num_shown * 4 - 7, ""); + xo_emit(" {T:/disks %*s}", num_shown * 4 - 7, ""); else if (num_shown == 1) xo_emit(" {T:disks}"); xo_emit(" {T:faults} "); @@ -912,16 +885,18 @@ printhdr(int maxid, u_long cpumask) } else xo_emit(" {T:cpu}\n"); if (hflag) { - xo_emit("{T:r} {T:b} {T:w} {T:avm} {T:fre} {T:flt} {T:re} {T:pi} {T:po} {T:fr} {T:sr} "); + xo_emit("{T:r} {T:b} {T:w} {T:avm} {T:fre} {T:flt} {T:re}" + " {T:pi} {T:po} {T:fr} {T:sr} "); } else { - xo_emit("{T:r} {T:b} {T:w} {T:avm} {T:fre} {T:flt} {T:re} {T:pi} {T:po} {T:fr} {T:sr} "); + xo_emit("{T:r} {T:b} {T:w} {T:avm} {T:fre} {T:flt} " + "{T:re} {T:pi} {T:po} {T:fr} {T:sr} "); } for (i = 0; i < num_devices; i++) - if ((dev_select[i].selected) - && (dev_select[i].selected <= maxshowdevs)) + if ((dev_select[i].selected) && + (dev_select[i].selected <= maxshowdevs)) xo_emit("{T:/%c%c%d} ", dev_select[i].device_name[0], - dev_select[i].device_name[1], - dev_select[i].unit_number); + dev_select[i].device_name[1], + dev_select[i].unit_number); xo_emit(" {T:in} {T:sy} {T:cs}"); if (Pflag) { for (i = 0; i <= maxid; i++) { @@ -952,7 +927,7 @@ needhdr(int dummy __unused) * prepended to the next output. */ void -needresize(int signo) +needresize(int signo __unused) { wresized = 1; @@ -965,8 +940,8 @@ needresize(int signo) void doresize(void) { - int status; struct winsize w; + int status; for (;;) { status = ioctl(fileno(stdout), TIOCGWINSZ, &w); @@ -997,13 +972,13 @@ dotimes(void) kread(X_PGIN, &pgintime, sizeof(pgintime)); kread(X_SUM, &sum, sizeof(sum)); xo_emit("{:page-reclaims/%u} {N:reclaims}, " - "{:reclaim-time/%u} {N:total time (usec)}\n", + "{:reclaim-time/%u} {N:total time (usec)}\n", sum.v_pgrec, rectime); xo_emit("{L:average}: {:reclaim-average/%u} {N:usec \\/ reclaim}\n", - rectime / sum.v_pgrec); + rectime / sum.v_pgrec); xo_emit("\n"); xo_emit("{:page-ins/%u} {N:page ins}, " - "{:page-in-time/%u} {N:total time (msec)}\n", + "{:page-in-time/%u} {N:total time (msec)}\n", sum.v_pgin, pgintime / 10); xo_emit("{L:average}: {:average/%8.1f} {N:msec \\/ page in}\n", pgintime / (sum.v_pgin * 10.0)); @@ -1027,93 +1002,94 @@ static void dosum(void) { struct nchstats lnchstats; + size_t size; long nchtotal; fill_vmmeter(&sum); xo_open_container("summary-statistics"); xo_emit("{:context-switches/%9u} {N:cpu context switches}\n", - sum.v_swtch); + sum.v_swtch); xo_emit("{:interrupts/%9u} {N:device interrupts}\n", - sum.v_intr); + sum.v_intr); xo_emit("{:software-interrupts/%9u} {N:software interrupts}\n", - sum.v_soft); + sum.v_soft); xo_emit("{:traps/%9u} {N:traps}\n", sum.v_trap); xo_emit("{:system-calls/%9u} {N:system calls}\n", - sum.v_syscall); + sum.v_syscall); xo_emit("{:kernel-threads/%9u} {N:kernel threads created}\n", - sum.v_kthreads); + sum.v_kthreads); xo_emit("{:forks/%9u} {N: fork() calls}\n", sum.v_forks); xo_emit("{:vforks/%9u} {N:vfork() calls}\n", - sum.v_vforks); + sum.v_vforks); xo_emit("{:rforks/%9u} {N:rfork() calls}\n", - sum.v_rforks); + sum.v_rforks); xo_emit("{:swap-ins/%9u} {N:swap pager pageins}\n", - sum.v_swapin); + sum.v_swapin); xo_emit("{:swap-in-pages/%9u} {N:swap pager pages paged in}\n", - sum.v_swappgsin); + sum.v_swappgsin); xo_emit("{:swap-outs/%9u} {N:swap pager pageouts}\n", - sum.v_swapout); + sum.v_swapout); xo_emit("{:swap-out-pages/%9u} {N:swap pager pages paged out}\n", - sum.v_swappgsout); + sum.v_swappgsout); xo_emit("{:vnode-page-ins/%9u} {N:vnode pager pageins}\n", - sum.v_vnodein); + sum.v_vnodein); xo_emit("{:vnode-page-in-pages/%9u} {N:vnode pager pages paged in}\n", - sum.v_vnodepgsin); + sum.v_vnodepgsin); xo_emit("{:vnode-page-outs/%9u} {N:vnode pager pageouts}\n", - sum.v_vnodeout); + sum.v_vnodeout); xo_emit("{:vnode-page-out-pages/%9u} {N:vnode pager pages paged out}\n", - sum.v_vnodepgsout); + sum.v_vnodepgsout); xo_emit("{:page-daemon-wakeups/%9u} {N:page daemon wakeups}\n", - sum.v_pdwakeups); - xo_emit("{:page-daemon-pages/%9u} {N:pages examined by the page daemon}\n", - sum.v_pdpages); - xo_emit("{:page-reclamation-shortfalls/%9u} {N:clean page reclamation shortfalls}\n", - sum.v_pdshortfalls); + sum.v_pdwakeups); + xo_emit("{:page-daemon-pages/%9u} {N:pages examined by the page" + "daemon}\n", sum.v_pdpages); + xo_emit("{:page-reclamation-shortfalls/%9u} {N:clean page reclamation" + "shortfalls}\n", sum.v_pdshortfalls); xo_emit("{:reactivated/%9u} {N:pages reactivated by the page daemon}\n", - sum.v_reactivated); + sum.v_reactivated); xo_emit("{:copy-on-write-faults/%9u} {N:copy-on-write faults}\n", - sum.v_cow_faults); - xo_emit("{:copy-on-write-optimized-faults/%9u} {N:copy-on-write optimized faults}\n", - sum.v_cow_optim); + sum.v_cow_faults); + xo_emit("{:copy-on-write-optimized-faults/%9u} {N:copy-on-write" + "optimized faults}\n", sum.v_cow_optim); xo_emit("{:zero-fill-pages/%9u} {N:zero fill pages zeroed}\n", - sum.v_zfod); + sum.v_zfod); xo_emit("{:zero-fill-prezeroed/%9u} {N:zero fill pages prezeroed}\n", - sum.v_ozfod); + sum.v_ozfod); xo_emit("{:intransit-blocking/%9u} {N:intransit blocking page faults}\n", - sum.v_intrans); + sum.v_intrans); xo_emit("{:total-faults/%9u} {N:total VM faults taken}\n", - sum.v_vm_faults); + sum.v_vm_faults); xo_emit("{:faults-requiring-io/%9u} {N:page faults requiring I\\/O}\n", - sum.v_io_faults); - xo_emit("{:faults-from-thread-creation/%9u} {N:pages affected by kernel thread creation}\n", - sum.v_kthreadpages); + sum.v_io_faults); + xo_emit("{:faults-from-thread-creation/%9u} {N:pages affected by" + "kernel thread creation}\n", sum.v_kthreadpages); xo_emit("{:faults-from-fork/%9u} {N:pages affected by fork}()\n", - sum.v_forkpages); + sum.v_forkpages); xo_emit("{:faults-from-vfork/%9u} {N:pages affected by vfork}()\n", - sum.v_vforkpages); + sum.v_vforkpages); xo_emit("{:pages-rfork/%9u} {N:pages affected by rfork}()\n", - sum.v_rforkpages); + sum.v_rforkpages); xo_emit("{:pages-freed/%9u} {N:pages freed}\n", - sum.v_tfree); + sum.v_tfree); xo_emit("{:pages-freed-by-daemon/%9u} {N:pages freed by daemon}\n", - sum.v_dfree); + sum.v_dfree); xo_emit("{:pages-freed-on-exit/%9u} {N:pages freed by exiting processes}\n", - sum.v_pfree); + sum.v_pfree); xo_emit("{:active-pages/%9u} {N:pages active}\n", - sum.v_active_count); + sum.v_active_count); xo_emit("{:inactive-pages/%9u} {N:pages inactive}\n", - sum.v_inactive_count); + sum.v_inactive_count); xo_emit("{:laundry-pages/%9u} {N:pages in the laundry queue}\n", - sum.v_laundry_count); + sum.v_laundry_count); xo_emit("{:wired-pages/%9u} {N:pages wired down}\n", - sum.v_wire_count); + sum.v_wire_count); xo_emit("{:free-pages/%9u} {N:pages free}\n", - sum.v_free_count); + sum.v_free_count); xo_emit("{:bytes-per-page/%9u} {N:bytes per page}\n", sum.v_page_size); if (kd != NULL) { kread(X_NCHSTATS, &lnchstats, sizeof(lnchstats)); } else { - size_t size = sizeof(lnchstats); + size = sizeof(lnchstats); mysysctl("vfs.cache.nchstats", &lnchstats, &size); if (size != sizeof(lnchstats)) xo_errx(1, "vfs.cache.nchstats size mismatch"); @@ -1122,17 +1098,17 @@ dosum(void) lnchstats.ncs_badhits + lnchstats.ncs_falsehits + lnchstats.ncs_miss + lnchstats.ncs_long; xo_emit("{:total-name-lookups/%9ld} {N:total name lookups}\n", - nchtotal); + nchtotal); xo_emit("{P:/%9s} {N:cache hits} " - "({:positive-cache-hits/%ld}% pos + " - "{:negative-cache-hits/%ld}% {N:neg}) " - "system {:cache-hit-percent/%ld}% per-directory\n", + "({:positive-cache-hits/%ld}% pos + " + "{:negative-cache-hits/%ld}% {N:neg}) " + "system {:cache-hit-percent/%ld}% per-directory\n", "", PCT(lnchstats.ncs_goodhits, nchtotal), PCT(lnchstats.ncs_neghits, nchtotal), PCT(lnchstats.ncs_pass2, nchtotal)); xo_emit("{P:/%9s} {L:deletions} {:deletions/%ld}%, " - "{L:falsehits} {:false-hits/%ld}%, " - "{L:toolong} {:too-long/%ld}%\n", "", + "{L:falsehits} {:false-hits/%ld}%, " + "{L:toolong} {:too-long/%ld}%\n", "", PCT(lnchstats.ncs_badhits, nchtotal), PCT(lnchstats.ncs_falsehits, nchtotal), PCT(lnchstats.ncs_long, nchtotal)); @@ -1142,20 +1118,21 @@ dosum(void) static void doforkst(void) { + fill_vmmeter(&sum); xo_open_container("fork-statistics"); xo_emit("{:fork/%u} {N:forks}, {:fork-pages/%u} {N:pages}, " - "{L:average} {:fork-average/%.2f}\n", + "{L:average} {:fork-average/%.2f}\n", sum.v_forks, sum.v_forkpages, sum.v_forks == 0 ? 0.0 : (double)sum.v_forkpages / sum.v_forks); xo_emit("{:vfork/%u} {N:vforks}, {:vfork-pages/%u} {N:pages}, " - "{L:average} {:vfork-average/%.2f}\n", + "{L:average} {:vfork-average/%.2f}\n", sum.v_vforks, sum.v_vforkpages, sum.v_vforks == 0 ? 0.0 : (double)sum.v_vforkpages / sum.v_vforks); xo_emit("{:rfork/%u} {N:rforks}, {:rfork-pages/%u} {N:pages}, " - "{L:average} {:rfork-average/%.2f}\n", + "{L:average} {:rfork-average/%.2f}\n", sum.v_rforks, sum.v_rforkpages, sum.v_rforks == 0 ? 0.0 : (double)sum.v_rforkpages / sum.v_rforks); @@ -1165,10 +1142,9 @@ doforkst(void) static void devstats(void) { - int dn, state; - long double transfers_per_second; - long double busy_seconds; + long double busy_seconds, transfers_per_second; long tmp; + int di, dn, state; for (state = 0; state < CPUSTATES; ++state) { tmp = cur.cp_time[state]; @@ -1180,10 +1156,8 @@ devstats(void) xo_open_list("device"); for (dn = 0; dn < num_devices; dn++) { - int di; - - if ((dev_select[dn].selected == 0) - || (dev_select[dn].selected > maxshowdevs)) + if (dev_select[dn].selected == 0 || + dev_select[dn].selected > maxshowdevs) continue; di = dev_select[dn].position; @@ -1196,24 +1170,24 @@ devstats(void) xo_open_instance("device"); xo_emit("{ekq:name/%c%c%d}{:transfers/%3.0Lf} ", - dev_select[dn].device_name[0], - dev_select[dn].device_name[1], - dev_select[dn].unit_number, - transfers_per_second); + dev_select[dn].device_name[0], + dev_select[dn].device_name[1], + dev_select[dn].unit_number, + transfers_per_second); xo_close_instance("device"); } xo_close_list("device"); } static void -percent(const char *name, double pct, int *over) +percent(const char *name, double pctv, int *over) { + int l; char buf[10]; char fmt[128]; - int l; snprintf(fmt, sizeof(fmt), " {:%s/%%*s}", name); - l = snprintf(buf, sizeof(buf), "%.0f", pct); + l = snprintf(buf, sizeof(buf), "%.0f", pctv); if (l == 1 && *over) { xo_emit(fmt, 1, buf); (*over)--; @@ -1226,8 +1200,8 @@ percent(const char *name, double pct, int *over) static void cpustats(void) { - int state, over; double lpct, total; + int state, over; total = 0; for (state = 0; state < CPUSTATES; ++state) @@ -1238,19 +1212,20 @@ cpustats(void) lpct = 0.0; over = 0; xo_open_container("cpu-statistics"); - percent("user", (cur.cp_time[CP_USER] + cur.cp_time[CP_NICE]) * lpct, &over); - percent("system", (cur.cp_time[CP_SYS] + cur.cp_time[CP_INTR]) * lpct, &over); + percent("user", (cur.cp_time[CP_USER] + cur.cp_time[CP_NICE]) * lpct, + &over); + percent("system", (cur.cp_time[CP_SYS] + cur.cp_time[CP_INTR]) * lpct, + &over); percent("idle", cur.cp_time[CP_IDLE] * lpct, &over); xo_close_container("cpu-statistics"); } static void -pcpustats(int ncpus, u_long cpumask, int maxid) +pcpustats(u_long cpumask, int maxid) { - int state, i; double lpct, total; long tmp; - int over; + int i, over, state; /* devstats does this for cp_time */ for (i = 0; i <= maxid; i++) { @@ -1279,11 +1254,11 @@ pcpustats(int ncpus, u_long cpumask, int maxid) else lpct = 0.0; percent("user", (cur_cp_times[i * CPUSTATES + CP_USER] + - cur_cp_times[i * CPUSTATES + CP_NICE]) * lpct, &over); + cur_cp_times[i * CPUSTATES + CP_NICE]) * lpct, &over); percent("system", (cur_cp_times[i * CPUSTATES + CP_SYS] + - cur_cp_times[i * CPUSTATES + CP_INTR]) * lpct, &over); + cur_cp_times[i * CPUSTATES + CP_INTR]) * lpct, &over); percent("idle", cur_cp_times[i * CPUSTATES + CP_IDLE] * lpct, - &over); + &over); xo_close_instance("cpu"); } xo_close_list("cpu"); @@ -1314,12 +1289,12 @@ read_intrcnts(unsigned long **intrcnts) static void print_intrcnts(unsigned long *intrcnts, unsigned long *old_intrcnts, - char *intrnames, unsigned int nintr, - size_t istrnamlen, long long period_ms) + char *intrnames, unsigned int nintr, size_t istrnamlen, long long period_ms) { unsigned long *intrcnt, *old_intrcnt; + char *intrname; uint64_t inttotal, old_inttotal, total_count, total_rate; - char* intrname; + unsigned long count, rate; unsigned int i; inttotal = 0; @@ -1328,15 +1303,12 @@ print_intrcnts(unsigned long *intrcnts, unsigned long xo_open_list("interrupt"); for (i = 0, intrcnt=intrcnts, old_intrcnt=old_intrcnts; i < nintr; i++) { if (intrname[0] != '\0' && (*intrcnt != 0 || aflag)) { - unsigned long count, rate; - count = *intrcnt - *old_intrcnt; rate = (count * 1000 + period_ms / 2) / period_ms; xo_open_instance("interrupt"); xo_emit("{d:name/%-*s}{ket:name/%s} " "{:total/%20lu} {:rate/%10lu}\n", - (int)istrnamlen, intrname, - intrname, count, rate); + (int)istrnamlen, intrname, intrname, count, rate); xo_close_instance("interrupt"); } intrname += strlen(intrname) + 1; @@ -1346,20 +1318,21 @@ print_intrcnts(unsigned long *intrcnts, unsigned long total_count = inttotal - old_inttotal; total_rate = (total_count * 1000 + period_ms / 2) / period_ms; xo_close_list("interrupt"); - xo_emit("{L:/%-*s} {:total-interrupts/%20" PRIu64 "} " - "{:total-rate/%10" PRIu64 "}\n", (int)istrnamlen, - "Total", total_count, total_rate); + xo_emit("{L:/%-*s} {:total-interrupts/%20ju} " + "{:total-rate/%10ju}\n", (int)istrnamlen, + "Total", (uintmax_t)total_count, (uintmax_t)total_rate); } static void dointr(unsigned int interval, int reps) { - unsigned long *intrcnts; - long long uptime, period_ms; - unsigned long *old_intrcnts = NULL; + unsigned long *intrcnts, *old_intrcnts; + char *intrname, *intrnames; + long long period_ms, old_uptime, uptime; size_t clen, inamlen, istrnamlen; - char *intrnames, *intrname; + unsigned int nintr; + old_intrcnts = NULL; uptime = getuptime(); /* Get the names of each interrupt source */ @@ -1387,7 +1360,7 @@ dointr(unsigned int interval, int reps) intrname += strlen(intrname) + 1; } xo_emit("{T:/%-*s} {T:/%20s} {T:/%10s}\n", - (int)istrnamlen, "interrupt", "total", "rate"); + (int)istrnamlen, "interrupt", "total", "rate"); /* * Loop reps times printing differential interrupt counts. If reps is @@ -1397,9 +1370,6 @@ dointr(unsigned int interval, int reps) period_ms = uptime / 1000000; while(1) { - unsigned int nintr; - long long old_uptime; - nintr = read_intrcnts(&intrcnts); /* * Initialize old_intrcnts to 0 for the first pass, so @@ -1459,7 +1429,7 @@ domemstat_malloc(void) } xo_open_container("malloc-statistics"); xo_emit("{T:/%13s} {T:/%5s} {T:/%6s} {T:/%7s} {T:/%8s} {T:Size(s)}\n", - "Type", "InUse", "MemUse", "HighUse", "Requests"); + "Type", "InUse", "MemUse", "HighUse", "Requests"); xo_open_list("memory"); for (mtp = memstat_mtl_first(mtlp); mtp != NULL; mtp = memstat_mtl_next(mtp)) { @@ -1467,12 +1437,12 @@ domemstat_malloc(void) memstat_get_count(mtp) == 0) continue; xo_open_instance("memory"); - xo_emit("{k:type/%13s/%s} {:in-use/%5" PRIu64 "} " - "{:memory-use/%5" PRIu64 "}{U:K} {:high-use/%7s} " - "{:requests/%8" PRIu64 "} ", - memstat_get_name(mtp), memstat_get_count(mtp), - (memstat_get_bytes(mtp) + 1023) / 1024, "-", - memstat_get_numallocs(mtp)); + xo_emit("{k:type/%13s/%s} {:in-use/%5ju} " + "{:memory-use/%5ju}{U:K} {:high-use/%7s} " + "{:requests/%8ju} ", + memstat_get_name(mtp), (uintmax_t)memstat_get_count(mtp), + ((uintmax_t)memstat_get_bytes(mtp) + 1023) / 1024, "-", + (uintmax_t)memstat_get_numallocs(mtp)); first = 1; xo_open_list("size"); for (i = 0; i < 32; i++) { @@ -1497,8 +1467,8 @@ domemstat_zone(void) { struct memory_type_list *mtlp; struct memory_type *mtp; - char name[MEMTYPE_MAXNAME + 1]; int error; + char name[MEMTYPE_MAXNAME + 1]; mtlp = memstat_mtl_alloc(); if (mtlp == NULL) { @@ -1524,23 +1494,26 @@ domemstat_zone(void) } xo_open_container("memory-zone-statistics"); xo_emit("{T:/%-20s} {T:/%6s} {T:/%6s} {T:/%8s} {T:/%8s} {T:/%8s} " - "{T:/%4s} {T:/%4s}\n\n", "ITEM", "SIZE", - "LIMIT", "USED", "FREE", "REQ", "FAIL", "SLEEP"); + "{T:/%4s} {T:/%4s}\n\n", "ITEM", "SIZE", + "LIMIT", "USED", "FREE", "REQ", "FAIL", "SLEEP"); xo_open_list("zone"); for (mtp = memstat_mtl_first(mtlp); mtp != NULL; mtp = memstat_mtl_next(mtp)) { strlcpy(name, memstat_get_name(mtp), MEMTYPE_MAXNAME); strcat(name, ":"); xo_open_instance("zone"); - xo_emit("{d:name/%-20s}{ke:name/%s} {:size/%6" PRIu64 "}, " - "{:limit/%6" PRIu64 "},{:used/%8" PRIu64 "}," - "{:free/%8" PRIu64 "},{:requests/%8" PRIu64 "}," - "{:fail/%4" PRIu64 "},{:sleep/%4" PRIu64 "}\n", name, - memstat_get_name(mtp), - memstat_get_size(mtp), memstat_get_countlimit(mtp), - memstat_get_count(mtp), memstat_get_free(mtp), - memstat_get_numallocs(mtp), memstat_get_failures(mtp), - memstat_get_sleeps(mtp)); *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Fri Dec 1 22:48:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15E5FDB97E4; Fri, 1 Dec 2017 22:48:23 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB1CD75077; Fri, 1 Dec 2017 22:48:22 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1MmL7h099637; Fri, 1 Dec 2017 22:48:21 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1MmLWu099627; Fri, 1 Dec 2017 22:48:21 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712012248.vB1MmLWu099627@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 1 Dec 2017 22:48:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326437 - in head/lib/libc: gen sys X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/lib/libc: gen sys X-SVN-Commit-Revision: 326437 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 22:48:23 -0000 Author: imp Date: Fri Dec 1 22:48:20 2017 New Revision: 326437 URL: https://svnweb.freebsd.org/changeset/base/326437 Log: Correct history for Unix 2nd Edition through 6th Edition for the system calls. Man pages are missing for v2 and v5, so any entries for those versions were inferred by new implementations of these functions in libc. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl Modified: head/lib/libc/gen/signal.3 head/lib/libc/sys/dup.2 head/lib/libc/sys/getuid.2 head/lib/libc/sys/kill.2 head/lib/libc/sys/mknod.2 head/lib/libc/sys/pipe.2 head/lib/libc/sys/profil.2 head/lib/libc/sys/ptrace.2 head/lib/libc/sys/setuid.2 head/lib/libc/sys/sync.2 Modified: head/lib/libc/gen/signal.3 ============================================================================== --- head/lib/libc/gen/signal.3 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/gen/signal.3 Fri Dec 1 22:48:20 2017 (r326437) @@ -28,7 +28,7 @@ .\" @(#)signal.3 8.3 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd June 7, 2004 +.Dd December 1, 2017 .Dt SIGNAL 3 .Os .Sh NAME @@ -263,6 +263,10 @@ or .Xr tty 4 .Sh HISTORY The +.Fn signal +function appeared in +.At v4 . +The current .Nm facility appeared in .Bx 4.0 . Modified: head/lib/libc/sys/dup.2 ============================================================================== --- head/lib/libc/sys/dup.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/dup.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -28,7 +28,7 @@ .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 1, 2013 +.Dd December 1, 2017 .Dt DUP 2 .Os .Sh NAME @@ -163,7 +163,9 @@ system calls are expected to conform to .Sh HISTORY The .Fn dup -and +function appeared in +.At v3 . +The .Fn dup2 -functions appeared in +function appeared in .At v7 . Modified: head/lib/libc/sys/getuid.2 ============================================================================== --- head/lib/libc/sys/getuid.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/getuid.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -88,4 +88,4 @@ function appeared in The .Fn geteuid function appeared in -.At v7 . +.At v4 . Modified: head/lib/libc/sys/kill.2 ============================================================================== --- head/lib/libc/sys/kill.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/kill.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -28,7 +28,7 @@ .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd March 15, 2012 +.Dd December 1, 2017 .Dt KILL 2 .Os .Sh NAME @@ -150,7 +150,11 @@ The system call is expected to conform to .St -p1003.1-90 . .Sh HISTORY -The +A version of the .Fn kill function appeared in -.At v7 . +.At v3 . +The signal number was added to the +.Fn kill +function in +.At v4 . Modified: head/lib/libc/sys/mknod.2 ============================================================================== --- head/lib/libc/sys/mknod.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/mknod.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -175,7 +175,7 @@ system call follows The Open Group Extended API Set 2 The .Fn mknod function appeared in -.At v6 . +.At v4 . The .Fn mknodat system call appeared in Modified: head/lib/libc/sys/pipe.2 ============================================================================== --- head/lib/libc/sys/pipe.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/pipe.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -28,7 +28,7 @@ .\" @(#)pipe.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd July 20, 2016 +.Dd December 1, 2017 .Dt PIPE 2 .Os .Sh NAME Modified: head/lib/libc/sys/profil.2 ============================================================================== --- head/lib/libc/sys/profil.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/profil.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -31,7 +31,7 @@ .\" @(#)profil.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd December 1, 2017 .Dt PROFIL 2 .Os .Sh NAME @@ -109,7 +109,7 @@ contains an invalid address. The .Fn profil function appeared in -.At v7 . +.At v6 . .Sh BUGS This routine should be named .Fn profile . Modified: head/lib/libc/sys/ptrace.2 ============================================================================== --- head/lib/libc/sys/ptrace.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/ptrace.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd September 14, 2017 +.Dd December 1, 2017 .Dt PTRACE 2 .Os .Sh NAME @@ -1105,4 +1105,4 @@ holds the minimum buffer size required on return. The .Fn ptrace function appeared in -.At v7 . +.At v6 . Modified: head/lib/libc/sys/setuid.2 ============================================================================== --- head/lib/libc/sys/setuid.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/setuid.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -158,7 +158,7 @@ function appeared in The .Fn setgid function appeared in -.At v7 . +.At v4 . .Sh SECURITY CONSIDERATIONS Read and write permissions to files are determined upon a call to .Xr open 2 . Modified: head/lib/libc/sys/sync.2 ============================================================================== --- head/lib/libc/sys/sync.2 Fri Dec 1 22:38:28 2017 (r326436) +++ head/lib/libc/sys/sync.2 Fri Dec 1 22:48:20 2017 (r326437) @@ -28,7 +28,7 @@ .\" @(#)sync.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd December 1, 2017 .Dt SYNC 2 .Os .Sh NAME @@ -69,7 +69,7 @@ attributes. The .Fn sync function appeared in -.At v6 . +.At v3 . .Sh BUGS The .Fn sync From owner-svn-src-head@freebsd.org Fri Dec 1 22:51:04 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 045EFDB998A; Fri, 1 Dec 2017 22:51:04 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5A0775352; Fri, 1 Dec 2017 22:51:03 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1Mp27H000753; Fri, 1 Dec 2017 22:51:02 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1Mp2UK000752; Fri, 1 Dec 2017 22:51:02 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201712012251.vB1Mp2UK000752@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Fri, 1 Dec 2017 22:51:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326438 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 326438 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 22:51:04 -0000 Author: markj Date: Fri Dec 1 22:51:02 2017 New Revision: 326438 URL: https://svnweb.freebsd.org/changeset/base/326438 Log: Plug a name cache lock leak. Reviewed by: mjg MFC after: 1 week Sponsored by: Dell EMC Isilon Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ============================================================================== --- head/sys/kern/vfs_cache.c Fri Dec 1 22:48:20 2017 (r326437) +++ head/sys/kern/vfs_cache.c Fri Dec 1 22:51:02 2017 (r326438) @@ -1162,6 +1162,8 @@ retry_dotdot: SDT_PROBE3(vfs, namecache, lookup, miss, dvp, "..", NULL); mtx_unlock(dvlp); + if (dvlp2 != NULL) + mtx_unlock(dvlp2); return (0); } if ((ncp->nc_flag & NCF_ISDOTDOT) != 0) { From owner-svn-src-head@freebsd.org Fri Dec 1 22:52:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D530DB9BE6; Fri, 1 Dec 2017 22:52:46 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27F6A7579C; Fri, 1 Dec 2017 22:52:46 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1MqjlK004276; Fri, 1 Dec 2017 22:52:45 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1MqjTQ004275; Fri, 1 Dec 2017 22:52:45 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712012252.vB1MqjTQ004275@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 1 Dec 2017 22:52:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326439 - head/lib/libc/sys X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/lib/libc/sys X-SVN-Commit-Revision: 326439 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 22:52:46 -0000 Author: imp Date: Fri Dec 1 22:52:45 2017 New Revision: 326439 URL: https://svnweb.freebsd.org/changeset/base/326439 Log: Fix missing .Dd bump Modified: head/lib/libc/sys/mknod.2 Modified: head/lib/libc/sys/mknod.2 ============================================================================== --- head/lib/libc/sys/mknod.2 Fri Dec 1 22:51:02 2017 (r326438) +++ head/lib/libc/sys/mknod.2 Fri Dec 1 22:52:45 2017 (r326439) @@ -28,7 +28,7 @@ .\" @(#)mknod.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd January 16, 2011 +.Dd December 1, 2017 .Dt MKNOD 2 .Os .Sh NAME From owner-svn-src-head@freebsd.org Sat Dec 2 00:06:53 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9F0EDBB132; Sat, 2 Dec 2017 00:06:53 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9610277732; Sat, 2 Dec 2017 00:06:53 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB206qi0033473; Sat, 2 Dec 2017 00:06:52 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB206qlK033468; Sat, 2 Dec 2017 00:06:52 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020006.vB206qlK033468@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:06:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326440 - in head/stand: efi/boot1 i386/gptboot powerpc/boot1.chrp sparc64/boot1 X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/stand: efi/boot1 i386/gptboot powerpc/boot1.chrp sparc64/boot1 X-SVN-Commit-Revision: 326440 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:06:53 -0000 Author: imp Date: Sat Dec 2 00:06:52 2017 New Revision: 326440 URL: https://svnweb.freebsd.org/changeset/base/326440 Log: Remove stale dependency on ufsread.c Remove the now-useless dependency on ufsread.c. In some cases, it was on the wrong file. But in all cases, we now automatically generate .depend files, so we don't need it explicitly. Sponsored by: Netflix Modified: head/stand/efi/boot1/Makefile head/stand/i386/gptboot/Makefile head/stand/powerpc/boot1.chrp/Makefile head/stand/sparc64/boot1/Makefile Modified: head/stand/efi/boot1/Makefile ============================================================================== --- head/stand/efi/boot1/Makefile Fri Dec 1 22:52:45 2017 (r326439) +++ head/stand/efi/boot1/Makefile Sat Dec 2 00:06:52 2017 (r326440) @@ -106,8 +106,6 @@ boot1.efi: ${PROG} -j .rela.dyn -j .reloc -j .eh_frame \ --output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET} -boot1.o: ${SASRC}/ufsread.c - # The following inserts our objects into a template FAT file system # created by generate-fat.sh Modified: head/stand/i386/gptboot/Makefile ============================================================================== --- head/stand/i386/gptboot/Makefile Fri Dec 1 22:52:45 2017 (r326439) +++ head/stand/i386/gptboot/Makefile Sat Dec 2 00:06:52 2017 (r326440) @@ -67,8 +67,6 @@ gptboot.bin: gptboot.out gptboot.out: ${BTXCRT} gptboot.o sio.o crc32.o drv.o cons.o ${OPENCRYPTO_XTS} ${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC} ${LIBGELIBOOT} ${LIBSA32} -gptboot.o: ${SASRC}/ufsread.c - .include # XXX: clang integrated-as doesn't grok .codeNN directives yet Modified: head/stand/powerpc/boot1.chrp/Makefile ============================================================================== --- head/stand/powerpc/boot1.chrp/Makefile Fri Dec 1 22:52:45 2017 (r326439) +++ head/stand/powerpc/boot1.chrp/Makefile Sat Dec 2 00:06:52 2017 (r326440) @@ -34,7 +34,5 @@ boot1.hfs: boot1.elf bootinfo.txt CLEANFILES+= boot1.hfs -boot1.o: ${SASRC}/ufsread.c - .include Modified: head/stand/sparc64/boot1/Makefile ============================================================================== --- head/stand/sparc64/boot1/Makefile Fri Dec 1 22:52:45 2017 (r326439) +++ head/stand/sparc64/boot1/Makefile Sat Dec 2 00:06:52 2017 (r326440) @@ -27,6 +27,4 @@ ${FILES}: boot1.aout boot1.aout: boot1.elf elf2aout -o ${.TARGET} ${.ALLSRC} -boot1.o: ${SASRC}/ufsread.c - .include From owner-svn-src-head@freebsd.org Sat Dec 2 00:06:59 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C2B5DBB15B; Sat, 2 Dec 2017 00:06:59 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76C6077759; Sat, 2 Dec 2017 00:06:59 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB206wHi033553; Sat, 2 Dec 2017 00:06:58 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB206wUE033547; Sat, 2 Dec 2017 00:06:58 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020006.vB206wUE033547@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:06:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326441 - in head/stand: . libsa mips/beri/boot2 X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/stand: . libsa mips/beri/boot2 X-SVN-Commit-Revision: 326441 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:06:59 -0000 Author: imp Date: Sat Dec 2 00:06:58 2017 New Revision: 326441 URL: https://svnweb.freebsd.org/changeset/base/326441 Log: Minor flags cleanup Move kernel includes and libsa includes together at the top of defs.mk Move all machine specific defines from Makefile.inc to their friends in defs.mk. Add comments and remove now useless junk after the move. Sponsored by: Netflix Modified: head/stand/Makefile.inc head/stand/defs.mk head/stand/libsa/Makefile head/stand/mips/beri/boot2/Makefile Modified: head/stand/Makefile.inc ============================================================================== --- head/stand/Makefile.inc Sat Dec 2 00:06:52 2017 (r326440) +++ head/stand/Makefile.inc Sat Dec 2 00:06:58 2017 (r326441) @@ -1,53 +1,3 @@ # $FreeBSD$ .include "defs.mk" - -.if !defined(__BOOT_MAKEFILE_INC__) -__BOOT_MAKEFILE_INC__=${MFILE} - -CFLAGS+=-I${SASRC} - -SSP_CFLAGS= - -# Add in the no float / no SIMD stuff and announce we're freestanding -# aarch64 and riscv don't have -msoft-float, but all others do. riscv -# currently has no /boot/loader, but may soon. -CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} -.if ${MACHINE_CPUARCH} == "aarch64" -CFLAGS+= -mgeneral-regs-only -.elif ${MACHINE_CPUARCH} != "riscv" -CFLAGS+= -msoft-float -.endif - -.if ${MACHINE_CPUARCH} == "i386" || (${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1) -CFLAGS+= -march=i386 -CFLAGS.gcc+= -mpreferred-stack-boundary=2 -.endif - - -.if ${MACHINE_CPUARCH} == "arm" -# Do not generate movt/movw, because the relocation fixup for them does not -# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). -# Also, the fpu is not available in a standalone environment. -.if ${COMPILER_VERSION} < 30800 -CFLAGS.clang+= -mllvm -arm-use-movt=0 -.else -CFLAGS.clang+= -mno-movt -.endif -CFLAGS.clang+= -mfpu=none -.endif - -# The boot loader build uses dd status=none, where possible, for reproducible -# build output (since performance varies from run to run). Trouble is that -# option was recently (10.3) added to FreeBSD and is non-standard. Only use it -# when this test succeeds rather than require dd to be a bootstrap tool. -DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true -DD=dd ${DD_NOSTATUS} - -.if ${MK_LOADER_FORCE_LE} != "no" -.if ${MACHINE_ARCH} == "powerpc64" -CFLAGS+= -mlittle-endian -.endif -.endif - -.endif Modified: head/stand/defs.mk ============================================================================== --- head/stand/defs.mk Sat Dec 2 00:06:52 2017 (r326440) +++ head/stand/defs.mk Sat Dec 2 00:06:58 2017 (r326441) @@ -39,6 +39,8 @@ LIBSA32= ${BOOTOBJ}/libsa32/libsa32.a .endif # Standard options: +CFLAGS+= -I${SASRC} +CFLAGS+= -I${SYSDIR} # Filesystem support .if ${LOADER_CD9660_SUPPORT:Uno} == "yes" @@ -104,7 +106,7 @@ LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a .endif .endif -CFLAGS+= -I${SYSDIR} +# Machine specific flags for all builds here # All PowerPC builds are 32 bit. We have no 64-bit loaders on powerpc # or powerpc64. @@ -120,6 +122,49 @@ CFLAGS+= -m32 -mcpu=i386 # LD_FLAGS is passed directly to ${LD}, not via ${CC}: LD_FLAGS+= -m elf_i386_fbsd AFLAGS+= --32 +.endif + +SSP_CFLAGS= + +# Add in the no float / no SIMD stuff and announce we're freestanding +# aarch64 and riscv don't have -msoft-float, but all others do. riscv +# currently has no /boot/loader, but may soon. +CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} +.if ${MACHINE_CPUARCH} == "aarch64" +CFLAGS+= -mgeneral-regs-only +.elif ${MACHINE_CPUARCH} != "riscv" +CFLAGS+= -msoft-float +.endif + +.if ${MACHINE_CPUARCH} == "i386" || (${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1) +CFLAGS+= -march=i386 +CFLAGS.gcc+= -mpreferred-stack-boundary=2 +.endif + + +.if ${MACHINE_CPUARCH} == "arm" +# Do not generate movt/movw, because the relocation fixup for them does not +# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). +# Also, the fpu is not available in a standalone environment. +.if ${COMPILER_VERSION} < 30800 +CFLAGS.clang+= -mllvm -arm-use-movt=0 +.else +CFLAGS.clang+= -mno-movt +.endif +CFLAGS.clang+= -mfpu=none +.endif + +# The boot loader build uses dd status=none, where possible, for reproducible +# build output (since performance varies from run to run). Trouble is that +# option was recently (10.3) added to FreeBSD and is non-standard. Only use it +# when this test succeeds rather than require dd to be a bootstrap tool. +DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true +DD=dd ${DD_NOSTATUS} + +.if ${MK_LOADER_FORCE_LE} != "no" +.if ${MACHINE_ARCH} == "powerpc64" +CFLAGS+= -mlittle-endian +.endif .endif # Make sure we use the machine link we're about to create Modified: head/stand/libsa/Makefile ============================================================================== --- head/stand/libsa/Makefile Sat Dec 2 00:06:52 2017 (r326440) +++ head/stand/libsa/Makefile Sat Dec 2 00:06:58 2017 (r326441) @@ -19,8 +19,6 @@ LIB?= sa NO_PIC= WARNS?= 0 -CFLAGS+= -I${SASRC} - # standalone components and stuff we have modified locally SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c environment.c getopt.c gets.c \ globals.c pager.c panic.c printf.c strdup.c strerror.c strtol.c strtoul.c \ Modified: head/stand/mips/beri/boot2/Makefile ============================================================================== --- head/stand/mips/beri/boot2/Makefile Sat Dec 2 00:06:52 2017 (r326440) +++ head/stand/mips/beri/boot2/Makefile Sat Dec 2 00:06:58 2017 (r326441) @@ -48,7 +48,6 @@ MAN= AFLAGS= -G0 CFLAGS+= -I${.CURDIR} \ - -I${SASRC} \ -I${LDRSRC} \ -D_KERNEL \ -Wall \ From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:06 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC774DBB193; Sat, 2 Dec 2017 00:07:06 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 917B177875; Sat, 2 Dec 2017 00:07:06 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2074vs033639; Sat, 2 Dec 2017 00:07:04 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2074ke033637; Sat, 2 Dec 2017 00:07:04 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB2074ke033637@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326442 - in head/stand: . powerpc/boot1.chrp X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/stand: . powerpc/boot1.chrp X-SVN-Commit-Revision: 326442 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:07 -0000 Author: imp Date: Sat Dec 2 00:07:04 2017 New Revision: 326442 URL: https://svnweb.freebsd.org/changeset/base/326442 Log: Cleanup CFALGS usage here Only define the CFLAGS we need. SSP_CFLAGS is now defined globally, no need to define it here. Define -D_STANDALONE globally for src/stand builds. Sponsored by: Netflix Modified: head/stand/defs.mk head/stand/powerpc/boot1.chrp/Makefile Modified: head/stand/defs.mk ============================================================================== --- head/stand/defs.mk Sat Dec 2 00:06:58 2017 (r326441) +++ head/stand/defs.mk Sat Dec 2 00:07:04 2017 (r326442) @@ -39,7 +39,7 @@ LIBSA32= ${BOOTOBJ}/libsa32/libsa32.a .endif # Standard options: -CFLAGS+= -I${SASRC} +CFLAGS+= -I${SASRC} -D_STANDALONE CFLAGS+= -I${SYSDIR} # Filesystem support Modified: head/stand/powerpc/boot1.chrp/Makefile ============================================================================== --- head/stand/powerpc/boot1.chrp/Makefile Sat Dec 2 00:06:58 2017 (r326441) +++ head/stand/powerpc/boot1.chrp/Makefile Sat Dec 2 00:07:04 2017 (r326442) @@ -2,8 +2,6 @@ .include -SSP_CFLAGS= - PROG= boot1.elf NEWVERSWHAT= "Open Firmware boot block" ${MACHINE_ARCH} INSTALLFLAGS= -b @@ -13,7 +11,7 @@ SRCS= boot1.c ashldi3.c syncicache.c MAN= -CFLAGS= -I${LDRSRC} -I${SYSDIR} -I${SASRC} -D_STANDALONE +CFLAGS+=-I${LDRSRC} LDFLAGS=-nostdlib -static -Wl,-N .PATH: ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR} From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63BE6DBB1CE; Sat, 2 Dec 2017 00:07:13 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9EE7377940; Sat, 2 Dec 2017 00:07:11 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207AgZ033721; Sat, 2 Dec 2017 00:07:10 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2079IB033717; Sat, 2 Dec 2017 00:07:09 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB2079IB033717@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326443 - in head: stand/geli sys/geom/eli sys/opencrypto sys/sys X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head: stand/geli sys/geom/eli sys/opencrypto sys/sys X-SVN-Commit-Revision: 326443 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:13 -0000 Author: imp Date: Sat Dec 2 00:07:09 2017 New Revision: 326443 URL: https://svnweb.freebsd.org/changeset/base/326443 Log: We don't need both _STAND and _STANDALONE. There's more places that use _STANDALONE, so change the former to the latter. Sponsored by: Netflix Modified: head/stand/geli/Makefile head/sys/geom/eli/pkcs5v2.c head/sys/opencrypto/xform_userland.h head/sys/sys/errno.h Modified: head/stand/geli/Makefile ============================================================================== --- head/stand/geli/Makefile Sat Dec 2 00:07:04 2017 (r326442) +++ head/stand/geli/Makefile Sat Dec 2 00:07:09 2017 (r326443) @@ -45,7 +45,6 @@ SRCS+= rijndael-alg-fst.c rijndael-api-fst.c rijndael # local GELI Implementation .PATH: ${SYSDIR}/geom/eli -CFLAGS+= -D_STAND SRCS+= geliboot_crypto.c g_eli_hmac.c g_eli_key.c g_eli_key_cache.c pkcs5v2.c # aes Modified: head/sys/geom/eli/pkcs5v2.c ============================================================================== --- head/sys/geom/eli/pkcs5v2.c Sat Dec 2 00:07:04 2017 (r326442) +++ head/sys/geom/eli/pkcs5v2.c Sat Dec 2 00:07:09 2017 (r326443) @@ -89,7 +89,7 @@ pkcs5v2_genkey(uint8_t *key, unsigned keylen, const ui } #ifndef _KERNEL -#ifndef _STAND +#ifndef _STANDALONE /* * Return the number of microseconds needed for 'interations' iterations. */ @@ -127,5 +127,5 @@ pkcs5v2_calculate(int usecs) } return (((intmax_t)iterations * (intmax_t)usecs) / v); } -#endif /* !_STAND */ +#endif /* !_STANDALONE */ #endif /* !_KERNEL */ Modified: head/sys/opencrypto/xform_userland.h ============================================================================== --- head/sys/opencrypto/xform_userland.h Sat Dec 2 00:07:04 2017 (r326442) +++ head/sys/opencrypto/xform_userland.h Sat Dec 2 00:07:09 2017 (r326443) @@ -34,7 +34,7 @@ #define KMALLOC(size, type, flags) malloc(size, type, flags) #define KFREE(ptr, type) free(ptr, type) #else /* not _KERNEL */ -#ifdef _STAND +#ifdef _STANDALONE #include #else /* !_STAND */ #include Modified: head/sys/sys/errno.h ============================================================================== --- head/sys/sys/errno.h Sat Dec 2 00:07:04 2017 (r326442) +++ head/sys/sys/errno.h Sat Dec 2 00:07:09 2017 (r326443) @@ -40,7 +40,7 @@ #ifndef _SYS_ERRNO_H_ #define _SYS_ERRNO_H_ -#if !defined(_KERNEL) && !defined(_STAND) +#if !defined(_KERNEL) && !defined(_STANDALONE) #include __BEGIN_DECLS int * __error(void); From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:16 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11DD8DBB212; Sat, 2 Dec 2017 00:07:16 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0D12779D3; Sat, 2 Dec 2017 00:07:15 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207EKY033794; Sat, 2 Dec 2017 00:07:14 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB207EGL033793; Sat, 2 Dec 2017 00:07:14 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB207EGL033793@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326444 - head/stand/geli X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/geli X-SVN-Commit-Revision: 326444 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:16 -0000 Author: imp Date: Sat Dec 2 00:07:14 2017 New Revision: 326444 URL: https://svnweb.freebsd.org/changeset/base/326444 Log: Move geli to common DO32 stuff define DO32 since this is only build in amd64/i386 Remove files not needed. Sponsored by: Netflix Modified: head/stand/geli/Makefile Modified: head/stand/geli/Makefile ============================================================================== --- head/stand/geli/Makefile Sat Dec 2 00:07:09 2017 (r326443) +++ head/stand/geli/Makefile Sat Dec 2 00:07:14 2017 (r326444) @@ -2,6 +2,7 @@ # libgeliboot MAN= +DO32=1 .include MK_SSP= no @@ -11,18 +12,7 @@ INTERNALLIB= MK_PROFILE= no NO_PIC= -.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" -CFLAGS+= -march=i386 -.endif -.if ${MACHINE_ARCH} == "amd64" -CFLAGS+= -m32 -.endif - WARNS?= 0 - -# string functions from libc -.PATH: ${SRCTOP}/lib/libc/string -SRCS+= bcmp.c bcopy.c bzero.c # Our password input method SRCS+= pwgets.c From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB2B2DBB262; Sat, 2 Dec 2017 00:07:23 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFBE777AE6; Sat, 2 Dec 2017 00:07:21 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207KIF033864; Sat, 2 Dec 2017 00:07:20 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB207KTY033860; Sat, 2 Dec 2017 00:07:20 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB207KTY033860@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326445 - head/stand/libsa X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/libsa X-SVN-Commit-Revision: 326445 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:23 -0000 Author: imp Date: Sat Dec 2 00:07:19 2017 New Revision: 326445 URL: https://svnweb.freebsd.org/changeset/base/326445 Log: Fix random() and srandom() prototypes to match the standard. These prototypes were needlessly different from the standard. Fix them to be the same, and fix the surrounding code after the changes. Sponsored by: Netflix Modified: head/stand/libsa/libstand.3 head/stand/libsa/random.c head/stand/libsa/stand.h Modified: head/stand/libsa/libstand.3 ============================================================================== --- head/stand/libsa/libstand.3 Sat Dec 2 00:07:14 2017 (r326444) +++ head/stand/libsa/libstand.3 Sat Dec 2 00:07:19 2017 (r326445) @@ -169,10 +169,10 @@ may be used to prevent a variable being unset. .Xc .It Xo .Ft void -.Fn srandom "unsigned long seed" +.Fn srandom "unsigned int seed" .Xc .It Xo -.Ft "unsigned long" +.Ft "long" .Fn random void .Xc .It Xo Modified: head/stand/libsa/random.c ============================================================================== --- head/stand/libsa/random.c Sat Dec 2 00:07:14 2017 (r326444) +++ head/stand/libsa/random.c Sat Dec 2 00:07:19 2017 (r326445) @@ -34,12 +34,12 @@ __FBSDID("$FreeBSD$"); #include -static u_long randseed = 1; +static long randseed = 1; void -srandom(seed) - u_long seed; +srandom(unsigned int seed) { + randseed = seed; } @@ -48,8 +48,8 @@ srandom(seed) * and whatever else we might use it for. The result is uniform on * [0, 2^31 - 1]. */ -u_long -random() +long +random(void) { long x, hi, lo, t; Modified: head/stand/libsa/stand.h ============================================================================== --- head/stand/libsa/stand.h Sat Dec 2 00:07:14 2017 (r326444) +++ head/stand/libsa/stand.h Sat Dec 2 00:07:19 2017 (r326445) @@ -281,7 +281,7 @@ extern ssize_t read(int, void *, size_t); extern ssize_t write(int, void *, size_t); extern struct dirent *readdirfd(int); -extern void srandom(u_long seed); +extern void srandom(unsigned int); extern u_long random(void); /* imports from stdlib, locally modified */ From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:27 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB817DBB2B8; Sat, 2 Dec 2017 00:07:27 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EAC3A77BC8; Sat, 2 Dec 2017 00:07:26 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207PT5033931; Sat, 2 Dec 2017 00:07:25 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB207PKl033930; Sat, 2 Dec 2017 00:07:25 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB207PKl033930@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326446 - head/stand/userboot/test X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/userboot/test X-SVN-Commit-Revision: 326446 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:28 -0000 Author: imp Date: Sat Dec 2 00:07:25 2017 New Revision: 326446 URL: https://svnweb.freebsd.org/changeset/base/326446 Log: Undefine _STANDALONE since this is test code. This is unsastifying, but since we sadly only have one test, put this in as a stopgap. Sponsored by: Netflix Modified: head/stand/userboot/test/Makefile Modified: head/stand/userboot/test/Makefile ============================================================================== --- head/stand/userboot/test/Makefile Sat Dec 2 00:07:19 2017 (r326445) +++ head/stand/userboot/test/Makefile Sat Dec 2 00:07:25 2017 (r326446) @@ -9,6 +9,6 @@ MK_SSP= no PROG= test INTERNALPROG= -CFLAGS+= -I${BOOTSRC}/userboot +CFLAGS+= -I${BOOTSRC}/userboot -U_STANDALONE .include From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:35 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DAABEDBB321; Sat, 2 Dec 2017 00:07:35 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4514377CFF; Sat, 2 Dec 2017 00:07:32 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207V77033998; Sat, 2 Dec 2017 00:07:31 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB207VQ6033991; Sat, 2 Dec 2017 00:07:31 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB207VQ6033991@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326447 - in head/stand/mips/beri: boot2 common loader X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/stand/mips/beri: boot2 common loader X-SVN-Commit-Revision: 326447 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:36 -0000 Author: imp Date: Sat Dec 2 00:07:31 2017 New Revision: 326447 URL: https://svnweb.freebsd.org/changeset/base/326447 Log: Tweaks to the beri boot loader so that it builds w/o warnings. Sponsored by: Netflix Modified: head/stand/mips/beri/boot2/Makefile head/stand/mips/beri/boot2/boot2.c head/stand/mips/beri/common/altera_jtag_uart.c head/stand/mips/beri/loader/Makefile head/stand/mips/beri/loader/devicename.c head/stand/mips/beri/loader/exec.c head/stand/mips/beri/loader/loader.h Modified: head/stand/mips/beri/boot2/Makefile ============================================================================== --- head/stand/mips/beri/boot2/Makefile Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/boot2/Makefile Sat Dec 2 00:07:31 2017 (r326447) @@ -47,9 +47,7 @@ MAN= AFLAGS= -G0 -CFLAGS+= -I${.CURDIR} \ - -I${LDRSRC} \ - -D_KERNEL \ +CFLAGS+= -I${LDRSRC} \ -Wall \ -G0 \ -fno-pic -mno-abicalls \ Modified: head/stand/mips/beri/boot2/boot2.c ============================================================================== --- head/stand/mips/beri/boot2/boot2.c Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/boot2/boot2.c Sat Dec 2 00:07:31 2017 (r326447) @@ -500,7 +500,7 @@ parse() */ unit = q[len-1]; if (unit < '0' || unit > '9') { - printf("Invalid device: invalid unit\n", q, + printf("Invalid device: invalid unit %c\n", unit); return (-1); } Modified: head/stand/mips/beri/common/altera_jtag_uart.c ============================================================================== --- head/stand/mips/beri/common/altera_jtag_uart.c Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/common/altera_jtag_uart.c Sat Dec 2 00:07:31 2017 (r326447) @@ -131,13 +131,6 @@ uart_control_write(uint32_t v) } static int -uart_writable(void) -{ - - return ((uart_control_read() & ALTERA_JTAG_UART_CONTROL_WSPACE) != 0); -} - -static int uart_readable(void) { uint32_t v; Modified: head/stand/mips/beri/loader/Makefile ============================================================================== --- head/stand/mips/beri/loader/Makefile Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/loader/Makefile Sat Dec 2 00:07:31 2017 (r326447) @@ -67,7 +67,7 @@ SRCS+= altera_jtag_uart.c \ # Since we don't have a backward compatibility issue, default to this on BERI. CFLAGS+= -DBOOT_PROMPT_123 -HELP_FILES+= help.mips +HELP_FILES+= ${.CURDIR}/help.mips # Always add MI sources .include "${BOOTSRC}/loader.mk" Modified: head/stand/mips/beri/loader/devicename.c ============================================================================== --- head/stand/mips/beri/loader/devicename.c Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/loader/devicename.c Sat Dec 2 00:07:31 2017 (r326447) @@ -88,7 +88,7 @@ beri_arch_parsedev(struct disk_devdesc **dev, const ch struct disk_devdesc *idev; struct devsw *dv; int i, unit, err; - const char *cp; + char *cp; const char *np; /* minimum length check */ @@ -130,8 +130,10 @@ beri_arch_parsedev(struct disk_devdesc **dev, const ch goto fail; } } else { - cp = np; + err = EUNIT; + goto fail; } + if (*cp && (*cp != ':')) { err = EINVAL; goto fail; Modified: head/stand/mips/beri/loader/exec.c ============================================================================== --- head/stand/mips/beri/loader/exec.c Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/loader/exec.c Sat Dec 2 00:07:31 2017 (r326447) @@ -119,7 +119,7 @@ beri_elf64_exec(struct preloaded_file *fp) * least bootinfop. */ (*entry)(boot2_argc, (register_t)boot2_argv, (register_t)boot2_envv, - &bootinfo); + (register_t)&bootinfo); panic("exec returned"); } Modified: head/stand/mips/beri/loader/loader.h ============================================================================== --- head/stand/mips/beri/loader/loader.h Sat Dec 2 00:07:25 2017 (r326446) +++ head/stand/mips/beri/loader/loader.h Sat Dec 2 00:07:31 2017 (r326447) @@ -41,6 +41,7 @@ extern struct devsw beri_cfi_disk; extern struct devsw beri_sdcard_disk; /* devicename.c */ +struct env_var; int beri_arch_setcurrdev(struct env_var *, int, const void *); char *beri_arch_fmtdev(void *); int beri_arch_getdev(void **, const char *, const char **); From owner-svn-src-head@freebsd.org Sat Dec 2 00:07:41 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D49C7DBB36E; Sat, 2 Dec 2017 00:07:41 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A658A77E1F; Sat, 2 Dec 2017 00:07:39 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB207c1g034060; Sat, 2 Dec 2017 00:07:38 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB207bVF034051; Sat, 2 Dec 2017 00:07:37 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020007.vB207bVF034051@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 00:07:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326448 - in head: stand stand/geli stand/i386/gptboot stand/i386/libi386 stand/i386/zfsboot stand/libsa stand/zfs sys/cddl/boot/zfs X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head: stand stand/geli stand/i386/gptboot stand/i386/libi386 stand/i386/zfsboot stand/libsa stand/zfs sys/cddl/boot/zfs X-SVN-Commit-Revision: 326448 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:07:42 -0000 Author: imp Date: Sat Dec 2 00:07:37 2017 New Revision: 326448 URL: https://svnweb.freebsd.org/changeset/base/326448 Log: Fix all warnings related to geli and ZFS support on x86. Default WARNS to 0 still, since there's still some warnings on other architectures. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D13301 Modified: head/stand/defs.mk head/stand/geli/Makefile head/stand/geli/geliboot.c head/stand/i386/gptboot/gptboot.c head/stand/i386/libi386/biosdisk.c head/stand/i386/zfsboot/zfsboot.c head/stand/libsa/Makefile head/stand/zfs/zfsimpl.c head/sys/cddl/boot/zfs/zfssubr.c Modified: head/stand/defs.mk ============================================================================== --- head/stand/defs.mk Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/defs.mk Sat Dec 2 00:07:37 2017 (r326448) @@ -2,6 +2,8 @@ .include +WARNS?=0 + .if !defined(__BOOT_DEFS_MK__) __BOOT_DEFS_MK__=${MFILE} Modified: head/stand/geli/Makefile ============================================================================== --- head/stand/geli/Makefile Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/geli/Makefile Sat Dec 2 00:07:37 2017 (r326448) @@ -12,8 +12,6 @@ INTERNALLIB= MK_PROFILE= no NO_PIC= -WARNS?= 0 - # Our password input method SRCS+= pwgets.c Modified: head/stand/geli/geliboot.c ============================================================================== --- head/stand/geli/geliboot.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/geli/geliboot.c Sat Dec 2 00:07:37 2017 (r326448) @@ -222,7 +222,7 @@ geli_taste(int read_func(void *vdev, void *priv, off_t */ static int geli_attach(struct geli_entry *ge, struct dsk *dskp, const char *passphrase, - const u_char *mkeyp) + u_char *mkeyp) { u_char key[G_ELI_USERKEYLEN], mkey[G_ELI_DATAIVKEYLEN], *mkp; u_int keynum; @@ -248,7 +248,7 @@ geli_attach(struct geli_entry *ge, struct dsk *dskp, c } else if (geli_e->md.md_iterations == 0) { g_eli_crypto_hmac_update(&ctx, geli_e->md.md_salt, sizeof(geli_e->md.md_salt)); - g_eli_crypto_hmac_update(&ctx, passphrase, + g_eli_crypto_hmac_update(&ctx, (const uint8_t *)passphrase, strlen(passphrase)); } else if (geli_e->md.md_iterations > 0) { printf("Calculating GELI Decryption Key disk%dp%d @ %d" @@ -294,7 +294,7 @@ found_key: /* * The encryption key is: ekey = HMAC_SHA512(Data-Key, 0x10) */ - g_eli_crypto_hmac(mkp, G_ELI_MAXKEYLEN, "\x10", 1, + g_eli_crypto_hmac(mkp, G_ELI_MAXKEYLEN, (const uint8_t *)"\x10", 1, geli_e->sc.sc_ekey, 0); } explicit_bzero(mkey, sizeof(mkey)); Modified: head/stand/i386/gptboot/gptboot.c ============================================================================== --- head/stand/i386/gptboot/gptboot.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/i386/gptboot/gptboot.c Sat Dec 2 00:07:37 2017 (r326448) @@ -32,6 +32,10 @@ __FBSDID("$FreeBSD$"); #include +/* Forward declared to avoid warnings -- these shouldn't be needed */ +int strcasecmp(const char *s1, const char *s2); +void explicit_bzero(void *b, size_t len); + #include "bootargs.h" #include "lib.h" #include "rbx.h" @@ -254,7 +258,7 @@ gptinit(void) #ifdef LOADER_GELI_SUPPORT if (geli_taste(vdev_read, &dsk, (gpttable[curent].ent_lba_end - gpttable[curent].ent_lba_start)) == 0) { - if (geli_havekey(&dsk) != 0 && geli_passphrase(&gelipw, + if (geli_havekey(&dsk) != 0 && geli_passphrase(gelipw, dsk.unit, 'p', curent + 1, &dsk) != 0) { printf("%s: unable to decrypt GELI key\n", BOOTPROG); return (-1); @@ -265,6 +269,8 @@ gptinit(void) dsk_meta = 0; return (0); } + +int main(void); int main(void) Modified: head/stand/i386/libi386/biosdisk.c ============================================================================== --- head/stand/i386/libi386/biosdisk.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/i386/libi386/biosdisk.c Sat Dec 2 00:07:37 2017 (r326448) @@ -146,8 +146,7 @@ enum isgeli { }; static enum isgeli geli_status[MAXBDDEV][MAXTBLENTS]; -int bios_read(void *vdev __unused, struct dsk *priv, off_t off, char *buf, - size_t bytes); +int bios_read(void *, void *, off_t off, void *buf, size_t bytes); #endif /* LOADER_GELI_SUPPORT */ struct devsw biosdisk = { @@ -482,10 +481,10 @@ bd_open(struct open_file *f, ...) /* Use the cached passphrase */ bcopy(passphrase, &gelipw, GELI_PW_MAXLEN); } - if (geli_passphrase(&gelipw, dskp.unit, 'p', + if (geli_passphrase(gelipw, dskp.unit, 'p', (dskp.slice > 0 ? dskp.slice : dskp.part), &dskp) == 0) { - setenv("kern.geom.eli.passphrase", &gelipw, 1); + setenv("kern.geom.eli.passphrase", gelipw, 1); bzero(gelipw, sizeof(gelipw)); geli_status[dev->d_unit][dskp.slice] = ISGELI_YES; geli_part++; @@ -882,7 +881,7 @@ bd_read(struct disk_devdesc *dev, daddr_t dblk, int bl /* GELI needs the offset relative to the partition start */ p_off = alignlba - dskp.start; - err = geli_read(&dskp, p_off * BD(dev).bd_sectorsize, tmpbuf, + err = geli_read(&dskp, p_off * BD(dev).bd_sectorsize, (u_char *)tmpbuf, alignblks * BD(dev).bd_sectorsize); if (err) return (err); @@ -992,9 +991,10 @@ bd_getdev(struct i386_devdesc *d) #ifdef LOADER_GELI_SUPPORT int -bios_read(void *vdev __unused, struct dsk *priv, off_t off, char *buf, size_t bytes) +bios_read(void *vdev __unused, void *xpriv, off_t off, void *buf, size_t bytes) { struct disk_devdesc dev; + struct dsk *priv = xpriv; dev.d_dev = &biosdisk; dev.d_type = priv->type; Modified: head/stand/i386/zfsboot/zfsboot.c ============================================================================== --- head/stand/i386/zfsboot/zfsboot.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/i386/zfsboot/zfsboot.c Sat Dec 2 00:07:37 2017 (r326448) @@ -36,6 +36,10 @@ __FBSDID("$FreeBSD$"); #include +/* Forward declared to avoid warnings -- these shouldn't be needed */ +int strcasecmp(const char *s1, const char *s2); +void explicit_bzero(void *b, size_t len); + #include "lib.h" #include "rbx.h" #include "drv.h" @@ -96,7 +100,6 @@ static int comspeed = SIOSPD; static struct bootinfo bootinfo; static uint32_t bootdev; static struct zfs_boot_args zfsargs; -static struct zfsmount zfsmount; vm_offset_t high_heap_base; uint32_t bios_basemem, bios_extmem, high_heap_size; @@ -200,7 +203,7 @@ static vdev_t *primary_vdev; * buffer pointer crosses a 64k boundary. */ static int -vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) +vdev_read(void *xvdev, void *priv, off_t off, void *buf, size_t bytes) { char *p; daddr_t lba, alignlba; @@ -262,7 +265,14 @@ vdev_read(vdev_t *vdev, void *priv, off_t off, void *b return 0; } +/* Match the signature exactly due to signature madness */ +static int +vdev_read2(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) +{ + return vdev_read(vdev, priv, off, buf, bytes); +} + static int vdev_write(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) { @@ -557,7 +567,7 @@ probe_drive(struct dsk *dsk) /* * If we find a vdev on the whole disk, stop here. */ - if (vdev_probe(vdev_read, dsk, NULL) == 0) + if (vdev_probe(vdev_read2, dsk, NULL) == 0) return; #ifdef LOADER_GELI_SUPPORT @@ -572,9 +582,9 @@ probe_drive(struct dsk *dsk) elba--; } if (geli_taste(vdev_read, dsk, elba) == 0) { - if (geli_havekey(dsk) == 0 || geli_passphrase(&gelipw, dsk->unit, + if (geli_havekey(dsk) == 0 || geli_passphrase(gelipw, dsk->unit, ':', 0, dsk) == 0) { - if (vdev_probe(vdev_read, dsk, NULL) == 0) { + if (vdev_probe(vdev_read2, dsk, NULL) == 0) { return; } } @@ -621,7 +631,7 @@ probe_drive(struct dsk *dsk) dsk->size = ent->ent_lba_end - ent->ent_lba_start + 1; dsk->slice = part + 1; dsk->part = 255; - if (vdev_probe(vdev_read, dsk, NULL) == 0) { + if (vdev_probe(vdev_read2, dsk, NULL) == 0) { /* * This slice had a vdev. We need a new dsk * structure now since the vdev now owns this one. @@ -631,12 +641,12 @@ probe_drive(struct dsk *dsk) #ifdef LOADER_GELI_SUPPORT else if (geli_taste(vdev_read, dsk, ent->ent_lba_end - ent->ent_lba_start) == 0) { - if (geli_havekey(dsk) == 0 || geli_passphrase(&gelipw, + if (geli_havekey(dsk) == 0 || geli_passphrase(gelipw, dsk->unit, 'p', dsk->slice, dsk) == 0) { /* * This slice has GELI, check it for ZFS. */ - if (vdev_probe(vdev_read, dsk, NULL) == 0) { + if (vdev_probe(vdev_read2, dsk, NULL) == 0) { /* * This slice had a vdev. We need a new dsk * structure now since the vdev now owns this one. @@ -665,18 +675,18 @@ trymbr: dsk->start = dp[i].dp_start; dsk->size = dp[i].dp_size; dsk->slice = i + 1; - if (vdev_probe(vdev_read, dsk, NULL) == 0) { + if (vdev_probe(vdev_read2, dsk, NULL) == 0) { dsk = copy_dsk(dsk); } #ifdef LOADER_GELI_SUPPORT else if (geli_taste(vdev_read, dsk, dp[i].dp_size - dp[i].dp_start) == 0) { - if (geli_havekey(dsk) == 0 || geli_passphrase(&gelipw, dsk->unit, + if (geli_havekey(dsk) == 0 || geli_passphrase(gelipw, dsk->unit, 's', i, dsk) == 0) { /* * This slice has GELI, check it for ZFS. */ - if (vdev_probe(vdev_read, dsk, NULL) == 0) { + if (vdev_probe(vdev_read2, dsk, NULL) == 0) { /* * This slice had a vdev. We need a new dsk * structure now since the vdev now owns this one. Modified: head/stand/libsa/Makefile ============================================================================== --- head/stand/libsa/Makefile Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/libsa/Makefile Sat Dec 2 00:07:37 2017 (r326448) @@ -17,7 +17,6 @@ LIBC_SRC= ${SRCTOP}/lib/libc LIB?= sa NO_PIC= -WARNS?= 0 # standalone components and stuff we have modified locally SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c environment.c getopt.c gets.c \ Modified: head/stand/zfs/zfsimpl.c ============================================================================== --- head/stand/zfs/zfsimpl.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/stand/zfs/zfsimpl.c Sat Dec 2 00:07:37 2017 (r326448) @@ -43,6 +43,7 @@ struct zfsmount { objset_phys_t objset; uint64_t rootobj; }; +static struct zfsmount zfsmount; /* * List of all vdevs, chained through v_alllink. @@ -913,7 +914,7 @@ spa_all_status(void) return (ret); } -uint64_t +static uint64_t vdev_label_offset(uint64_t psize, int l, uint64_t offset) { uint64_t label_offset; Modified: head/sys/cddl/boot/zfs/zfssubr.c ============================================================================== --- head/sys/cddl/boot/zfs/zfssubr.c Sat Dec 2 00:07:31 2017 (r326447) +++ head/sys/cddl/boot/zfs/zfssubr.c Sat Dec 2 00:07:37 2017 (r326448) @@ -250,7 +250,7 @@ zio_checksum_template_init(enum zio_checksum checksum, * all of the checksum context templates and deallocates any that were * initialized using the algorithm-specific template init function. */ -void +static void zio_checksum_templates_free(spa_t *spa) { for (enum zio_checksum checksum = 0; From owner-svn-src-head@freebsd.org Sat Dec 2 00:09:59 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5EA8DBB5D1; Sat, 2 Dec 2017 00:09:59 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82C58784EF; Sat, 2 Dec 2017 00:09:59 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB209wJI034166; Sat, 2 Dec 2017 00:09:58 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB209wtP034165; Sat, 2 Dec 2017 00:09:58 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201712020009.vB209wtP034165@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Sat, 2 Dec 2017 00:09:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326449 - head/sys/dev/bhnd/bhndb X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/bhndb X-SVN-Commit-Revision: 326449 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:09:59 -0000 Author: landonf Date: Sat Dec 2 00:09:58 2017 New Revision: 326449 URL: https://svnweb.freebsd.org/changeset/base/326449 Log: bhndb(4): Fix incorrect assertion in bhndb_deregister_intr_handler(). When deregistered, a handler should be in an 'active' state. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/bhndb/bhndb_subr.c Modified: head/sys/dev/bhnd/bhndb/bhndb_subr.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_subr.c Sat Dec 2 00:07:37 2017 (r326448) +++ head/sys/dev/bhnd/bhndb/bhndb_subr.c Sat Dec 2 00:09:58 2017 (r326449) @@ -957,7 +957,7 @@ void bhndb_deregister_intr_handler(struct bhndb_resources *br, struct bhndb_intr_handler *ih) { - KASSERT(!ih->ih_active, ("duplicate deregistration of interrupt " + KASSERT(ih->ih_active, ("duplicate deregistration of interrupt " "handler %p", ih->ih_cookiep)); KASSERT(bhndb_find_intr_handler(br, ih) == ih, From owner-svn-src-head@freebsd.org Sat Dec 2 00:53:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D77FDEB9B2; Sat, 2 Dec 2017 00:53:01 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBEE679D79; Sat, 2 Dec 2017 00:53:00 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB20qx1u054981; Sat, 2 Dec 2017 00:52:59 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB20qxrf054980; Sat, 2 Dec 2017 00:52:59 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201712020052.vB20qxrf054980@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Sat, 2 Dec 2017 00:52:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326450 - head/sys/dev/bhnd/cores/chipc X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/cores/chipc X-SVN-Commit-Revision: 326450 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 00:53:01 -0000 Author: landonf Date: Sat Dec 2 00:52:59 2017 New Revision: 326450 URL: https://svnweb.freebsd.org/changeset/base/326450 Log: bhnd_chipc(4): Break cyclic references to the ChipCommon device bhnd_chipc's children may hold strong provider references to their parent; we must detach any children before attempting to deregister the bhnd_chipc device as a bus service provider. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/cores/chipc/chipc.c Modified: head/sys/dev/bhnd/cores/chipc/chipc.c ============================================================================== --- head/sys/dev/bhnd/cores/chipc/chipc.c Sat Dec 2 00:09:58 2017 (r326449) +++ head/sys/dev/bhnd/cores/chipc/chipc.c Sat Dec 2 00:52:59 2017 (r326450) @@ -245,10 +245,10 @@ chipc_detach(device_t dev) sc = device_get_softc(dev); - if ((error = bhnd_deregister_provider(dev, BHND_SERVICE_ANY))) + if ((error = bus_generic_detach(dev))) return (error); - if ((error = bus_generic_detach(dev))) + if ((error = bhnd_deregister_provider(dev, BHND_SERVICE_ANY))) return (error); chipc_release_region(sc, sc->core_region, RF_ALLOCATED|RF_ACTIVE); From owner-svn-src-head@freebsd.org Sat Dec 2 01:07:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 949AADEBDC3; Sat, 2 Dec 2017 01:07:42 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5EC767A445; Sat, 2 Dec 2017 01:07:42 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB217fJB059070; Sat, 2 Dec 2017 01:07:41 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB217fOB059068; Sat, 2 Dec 2017 01:07:41 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201712020107.vB217fOB059068@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Sat, 2 Dec 2017 01:07:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326451 - head/sys/dev/bhnd/bhndb X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/bhndb X-SVN-Commit-Revision: 326451 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 01:07:42 -0000 Author: landonf Date: Sat Dec 2 01:07:41 2017 New Revision: 326451 URL: https://svnweb.freebsd.org/changeset/base/326451 Log: bhndb(4): Fix leak of child devices and MSI vectors. - Add missing call to device_delete_children() in bhndb_detach(), without which we're left with stale child devices on module unload. - Pass the parent PCI device to pci_release_msi(), not the bhndb_pci(4) child. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/bhndb/bhndb.c head/sys/dev/bhnd/bhndb/bhndb_pci.c Modified: head/sys/dev/bhnd/bhndb/bhndb.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb.c Sat Dec 2 00:52:59 2017 (r326450) +++ head/sys/dev/bhnd/bhndb/bhndb.c Sat Dec 2 01:07:41 2017 (r326451) @@ -639,6 +639,10 @@ bhndb_generic_detach(device_t dev) if ((error = bus_generic_detach(dev))) return (error); + /* Delete children */ + if ((error = device_delete_children(dev))) + return (error); + /* Clean up our service registry */ if ((error = bhnd_service_registry_fini(&sc->services))) return (error); Modified: head/sys/dev/bhnd/bhndb/bhndb_pci.c ============================================================================== --- head/sys/dev/bhnd/bhndb/bhndb_pci.c Sat Dec 2 00:52:59 2017 (r326450) +++ head/sys/dev/bhnd/bhndb/bhndb_pci.c Sat Dec 2 01:07:41 2017 (r326451) @@ -303,8 +303,10 @@ bhndb_pci_alloc_msi(struct bhndb_pci_softc *sc, int *m return (error); } - if (count < BHNDB_PCI_MSI_COUNT) + if (count < BHNDB_PCI_MSI_COUNT) { + pci_release_msi(sc->parent); return (ENXIO); + } *msi_count = count; return (0); @@ -412,7 +414,7 @@ cleanup: bhndb_free_intr_isrc(sc->isrc); if (sc->msi_count > 0) - pci_release_msi(dev); + pci_release_msi(sc->parent); if (cores != NULL) free(cores, M_BHND); @@ -449,7 +451,7 @@ bhndb_pci_detach(device_t dev) /* Release MSI interrupts */ if (sc->msi_count > 0) - pci_release_msi(dev); + pci_release_msi(sc->parent); /* Disable PCI bus mastering */ pci_disable_busmaster(sc->parent); From owner-svn-src-head@freebsd.org Sat Dec 2 01:10:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97A99DEBED0; Sat, 2 Dec 2017 01:10:46 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F51A7A71A; Sat, 2 Dec 2017 01:10:46 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB21AjME059962; Sat, 2 Dec 2017 01:10:45 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB21Ajw5059961; Sat, 2 Dec 2017 01:10:45 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201712020110.vB21Ajw5059961@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Sat, 2 Dec 2017 01:10:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326452 - head/sys/dev/bhnd/cores/pmu X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: head/sys/dev/bhnd/cores/pmu X-SVN-Commit-Revision: 326452 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 01:10:46 -0000 Author: landonf Date: Sat Dec 2 01:10:45 2017 New Revision: 326452 URL: https://svnweb.freebsd.org/changeset/base/326452 Log: bhnd_pmu(4): Do not leak our chipc provider reference or clkctl state in failure paths of bhnd_pmu_attach() Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bhnd/cores/pmu/bhnd_pmu.c Modified: head/sys/dev/bhnd/cores/pmu/bhnd_pmu.c ============================================================================== --- head/sys/dev/bhnd/cores/pmu/bhnd_pmu.c Sat Dec 2 01:07:41 2017 (r326451) +++ head/sys/dev/bhnd/cores/pmu/bhnd_pmu.c Sat Dec 2 01:10:45 2017 (r326452) @@ -133,33 +133,14 @@ bhnd_pmu_attach(device_t dev, struct bhnd_resource *re return (ENXIO); } - /* Allocate our own core clkctl state directly; we use this to wait on - * PMU state transitions, avoiding a cyclic dependency between bhnd(4)'s - * clkctl handling and registration of this device as a PMU */ - sc->clkctl = bhnd_alloc_core_clkctl(core, dev, sc->res, BHND_CLK_CTL_ST, - BHND_PMU_MAX_TRANSITION_DLY); - if (sc->clkctl == NULL) { - device_printf(sc->dev, "failed to allocate clkctl for %s\n", - device_get_nameunit(core)); - return (ENOMEM); - } - /* Fetch chip and board info */ sc->cid = *bhnd_get_chipid(core); - if ((error = bhnd_read_board_info(core, &sc->board))) { device_printf(sc->dev, "error fetching board info: %d\n", error); return (ENXIO); } - /* Locate ChipCommon device */ - sc->chipc_dev = bhnd_retain_provider(dev, BHND_SERVICE_CHIPC); - if (sc->chipc_dev == NULL) { - device_printf(sc->dev, "chipcommon device not found\n"); - return (ENXIO); - } - /* Initialize query state */ error = bhnd_pmu_query_init(&sc->query, dev, sc->cid, &bhnd_pmu_res_io, sc); @@ -170,6 +151,26 @@ bhnd_pmu_attach(device_t dev, struct bhnd_resource *re BPMU_LOCK_INIT(sc); + /* Allocate our own core clkctl state directly; we use this to wait on + * PMU state transitions, avoiding a cyclic dependency between bhnd(4)'s + * clkctl handling and registration of this device as a PMU */ + sc->clkctl = bhnd_alloc_core_clkctl(core, dev, sc->res, BHND_CLK_CTL_ST, + BHND_PMU_MAX_TRANSITION_DLY); + if (sc->clkctl == NULL) { + device_printf(sc->dev, "failed to allocate clkctl for %s\n", + device_get_nameunit(core)); + error = ENOMEM; + goto failed; + } + + /* Locate ChipCommon device */ + sc->chipc_dev = bhnd_retain_provider(dev, BHND_SERVICE_CHIPC); + if (sc->chipc_dev == NULL) { + device_printf(sc->dev, "chipcommon device not found\n"); + error = ENXIO; + goto failed; + } + /* Initialize PMU */ if ((error = bhnd_pmu_init(sc))) { device_printf(sc->dev, "PMU init failed: %d\n", error); @@ -204,8 +205,14 @@ bhnd_pmu_attach(device_t dev, struct bhnd_resource *re failed: BPMU_LOCK_DESTROY(sc); bhnd_pmu_query_fini(&sc->query); - bhnd_free_core_clkctl(sc->clkctl); - bhnd_release_provider(sc->dev, sc->chipc_dev, BHND_SERVICE_CHIPC); + + if (sc->clkctl != NULL) + bhnd_free_core_clkctl(sc->clkctl); + + if (sc->chipc_dev != NULL) { + bhnd_release_provider(sc->dev, sc->chipc_dev, + BHND_SERVICE_CHIPC); + } return (error); } From owner-svn-src-head@freebsd.org Sat Dec 2 01:42:08 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 874BEDECD62; Sat, 2 Dec 2017 01:42:08 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BC407B720; Sat, 2 Dec 2017 01:42:08 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB21g7Ju074396; Sat, 2 Dec 2017 01:42:07 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB21g795074395; Sat, 2 Dec 2017 01:42:07 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201712020142.vB21g795074395@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Sat, 2 Dec 2017 01:42:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326453 - head/sys/powerpc/mpc85xx X-SVN-Group: head X-SVN-Commit-Author: jhibbits X-SVN-Commit-Paths: head/sys/powerpc/mpc85xx X-SVN-Commit-Revision: 326453 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 01:42:08 -0000 Author: jhibbits Date: Sat Dec 2 01:42:07 2017 New Revision: 326453 URL: https://svnweb.freebsd.org/changeset/base/326453 Log: Override memattr for mmap on the Freescale DIU driver The Display Interface Unit (DIU) uses main memory for the framebuffer, which is already mapped as cache coherent physical memory. Prevent mmap() from using its own attributes which may otherwise conflict. Modified: head/sys/powerpc/mpc85xx/fsl_diu.c Modified: head/sys/powerpc/mpc85xx/fsl_diu.c ============================================================================== --- head/sys/powerpc/mpc85xx/fsl_diu.c Sat Dec 2 01:10:45 2017 (r326452) +++ head/sys/powerpc/mpc85xx/fsl_diu.c Sat Dec 2 01:42:07 2017 (r326453) @@ -414,6 +414,8 @@ diu_attach(device_t dev) sc->sc_info.fb_vbase = (intptr_t)contigmalloc(sc->sc_info.fb_size, M_DEVBUF, M_ZERO, 0, BUS_SPACE_MAXADDR_32BIT, PAGE_SIZE, 0); sc->sc_info.fb_pbase = (intptr_t)vtophys(sc->sc_info.fb_vbase); + sc->sc_info.fb_flags = FB_FLAG_MEMATTR; + sc->sc_info.fb_memattr = VM_MEMATTR_DEFAULT; /* Gamma table is 3 consecutive segments of 256 bytes. */ sc->sc_gamma = contigmalloc(3 * 256, M_DEVBUF, 0, 0, From owner-svn-src-head@freebsd.org Sat Dec 2 02:21:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D8B5DEE2C6; Sat, 2 Dec 2017 02:21:30 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CEC137CBD0; Sat, 2 Dec 2017 02:21:29 +0000 (UTC) (envelope-from landonf@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB22LSkV088683; Sat, 2 Dec 2017 02:21:28 GMT (envelope-from landonf@FreeBSD.org) Received: (from landonf@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB22LRHZ088670; Sat, 2 Dec 2017 02:21:27 GMT (envelope-from landonf@FreeBSD.org) Message-Id: <201712020221.vB22LRHZ088670@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: landonf set sender to landonf@FreeBSD.org using -f From: "Landon J. Fuller" Date: Sat, 2 Dec 2017 02:21:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326454 - in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci X-SVN-Group: head X-SVN-Commit-Author: landonf X-SVN-Commit-Paths: in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci X-SVN-Commit-Revision: 326454 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 02:21:30 -0000 Author: landonf Date: Sat Dec 2 02:21:27 2017 New Revision: 326454 URL: https://svnweb.freebsd.org/changeset/base/326454 Log: Introduce bwn(4) support for the bhnd(4) bus. Currently, bwn(4) relies on the siba_bwn(4) bus driver to provide support for the on-chip SSB interconnect found in Broadcom's older PCI(e) Wi-Fi adapters. Non-PCI Wi-Fi adapters, as well as the newer BCMA interconnect found in post-2009 Broadcom Wi-Fi hardware, are not supported by siba_bwn(4). The bhnd(4) bus driver (also used by the FreeBSD/MIPS Broadcom port) provides a unified kernel interface to a superset of the hardware supported by siba_bwn; by attaching bwn(4) via bhnd(4), we can support both modern PCI(e) Wi-Fi devices based on the BCMA backplane interconnect, as well as Broadcom MIPS WiSoCs that include a D11 MAC core directly attached to their SSB or BCMA backplane. This diff introduces opt-in bwn(4) support for bhnd(4) by providing: - A small bwn(4) driver subclass, if_bwn_bhnd, that attaches via bhnd(4) instead of siba_bwn(4). - A bhndb(4)-based PCI host bridge driver, if_bwn_pci, that optionally probes at a higher priority than the siba_bwn(4) PCI driver. - A set of compatibility shims that perform translation of bwn(4)'s siba_bwn function calls into their bhnd(9) API equivalents when bwn(4) is attached via a bhnd(4) bus parent. When bwn(4) is attached via siba_bwn(4), all siba_bwn function calls are simply passed through to their original implementations. To test bwn(4) with bhnd(4), place the following lines in loader.conf(5): hw.bwn_pci.preferred="1" if_bwn_pci_load="YES bwn_v4_ucode_load="YES" bwn_v4_lp_ucode_load="YES" To verify that bwn(4) is using bhnd(4), you can check dmesg: bwn0: ... on bhnd0 ... or devinfo(8): pcib2 pci2 bwn_pci0 bhndb0 bhnd0 bwn0 ... bwn(4)/bhnd(4) has been tested for regressions with most chipsets currently supported by bwn(4), including: - BCM4312 - BCM4318 - BCM4321 With minimal changes to the DMA code (not included in this commit), I was also able to test support for newer BCMA devices by bringing up basic working Wi-Fi on two previously unsupported, BCMA-based N-PHY chipsets: - BCM43224 - BCM43225 Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation & Plausible Labs Differential Revision: https://reviews.freebsd.org/D13041 Added: head/sys/dev/bwn/if_bwn_bhnd.c (contents, props changed) head/sys/dev/bwn/if_bwn_siba.c (contents, props changed) head/sys/dev/bwn/if_bwn_siba.h (contents, props changed) head/sys/dev/bwn/if_bwn_siba_compat.c (contents, props changed) head/sys/dev/bwn/if_bwn_siba_compat.h (contents, props changed) Deleted: head/sys/dev/bwn/bwn_mac.c Modified: head/sys/conf/files head/sys/conf/options head/sys/dev/bwn/if_bwn.c head/sys/dev/bwn/if_bwn_pci.c head/sys/dev/bwn/if_bwn_pcivar.h head/sys/dev/bwn/if_bwn_phy_common.c head/sys/dev/bwn/if_bwn_phy_g.c head/sys/dev/bwn/if_bwn_phy_lp.c head/sys/dev/bwn/if_bwn_phy_n.c head/sys/dev/bwn/if_bwn_util.c head/sys/dev/bwn/if_bwnvar.h head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_ppr.c head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_tables.c head/sys/gnu/dev/bwn/phy_n/if_bwn_radio_2055.c head/sys/gnu/dev/bwn/phy_n/if_bwn_radio_2056.c head/sys/gnu/dev/bwn/phy_n/if_bwn_radio_2057.c head/sys/modules/bwn/Makefile head/sys/modules/bwn_pci/Makefile Modified: head/sys/conf/files ============================================================================== --- head/sys/conf/files Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/conf/files Sat Dec 2 02:21:27 2017 (r326454) @@ -1312,15 +1312,17 @@ dev/bwi/if_bwi_pci.c optional bwi pci # XXX Work around clang warnings, until maintainer approves fix. dev/bwn/if_bwn.c optional bwn siba_bwn \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}" -dev/bwn/if_bwn_pci.c optional bwn pci bhnd +dev/bwn/if_bwn_bhnd.c optional bwn bhnd +dev/bwn/if_bwn_pci.c optional bwn pci bhnd bhndb dev/bwn/if_bwn_phy_common.c optional bwn siba_bwn dev/bwn/if_bwn_phy_g.c optional bwn siba_bwn \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED} ${NO_WCONSTANT_CONVERSION}" dev/bwn/if_bwn_phy_lp.c optional bwn siba_bwn \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}" dev/bwn/if_bwn_phy_n.c optional bwn siba_bwn +dev/bwn/if_bwn_siba.c optional bwn siba_bwn +dev/bwn/if_bwn_siba_compat.c optional bwn bhnd !bwn_use_siba dev/bwn/if_bwn_util.c optional bwn siba_bwn -dev/bwn/bwn_mac.c optional bwn bhnd dev/cardbus/cardbus.c optional cardbus dev/cardbus/cardbus_cis.c optional cardbus dev/cardbus/cardbus_device.c optional cardbus Modified: head/sys/conf/options ============================================================================== --- head/sys/conf/options Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/conf/options Sat Dec 2 02:21:27 2017 (r326454) @@ -850,6 +850,7 @@ BWI_DEBUG_VERBOSE opt_bwi.h # options for the Brodacom BCM43xx driver (bwn) BWN_DEBUG opt_bwn.h BWN_GPL_PHY opt_bwn.h +BWN_USE_SIBA opt_bwn.h # Options for the SIBA driver SIBA_DEBUG opt_siba.h Modified: head/sys/dev/bwn/if_bwn.c ============================================================================== --- head/sys/dev/bwn/if_bwn.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn.c Sat Dec 2 02:21:27 2017 (r326454) @@ -67,9 +67,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include #include #include @@ -77,6 +74,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include + #include #include @@ -498,11 +497,31 @@ static const struct siba_devid bwn_devs[] = { SIBA_DEV(BROADCOM, 80211, 16, "Revision 16") }; +static const struct bwn_bus_ops * +bwn_get_bus_ops(device_t dev) +{ +#if BWN_USE_SIBA + return (NULL); +#else + devclass_t bus_cls; + + bus_cls = device_get_devclass(device_get_parent(dev)); + if (bus_cls == devclass_find("bhnd")) + return (&bwn_bhnd_bus_ops); + else + return (&bwn_siba_bus_ops); +#endif +} + static int bwn_probe(device_t dev) { - int i; + struct bwn_softc *sc; + int i; + sc = device_get_softc(dev); + sc->sc_bus_ops = bwn_get_bus_ops(dev); + for (i = 0; i < nitems(bwn_devs); i++) { if (siba_get_vendor(dev) == bwn_devs[i].sd_vendor && siba_get_device(dev) == bwn_devs[i].sd_device && @@ -513,7 +532,7 @@ bwn_probe(device_t dev) return (ENXIO); } -static int +int bwn_attach(device_t dev) { struct bwn_mac *mac; @@ -525,6 +544,13 @@ bwn_attach(device_t dev) sc->sc_debug = bwn_debug; #endif + sc->sc_bus_ops = bwn_get_bus_ops(dev); + if ((error = BWN_BUS_OPS_ATTACH(dev))) { + device_printf(sc->sc_dev, + "bus-specific initialization failed (%d)\n", error); + return (error); + } + if ((sc->sc_flags & BWN_FLAG_ATTACHED) == 0) { bwn_attach_pre(sc); bwn_sprom_bugfixes(dev); @@ -631,6 +657,7 @@ fail1: if (msic == BWN_MSI_MESSAGES && bwn_msi_disable == 0) pci_release_msi(dev); fail0: + BWN_BUS_OPS_DETACH(dev); free(mac, M_DEVBUF); return (error); } @@ -716,7 +743,7 @@ bwn_phy_detach(struct bwn_mac *mac) mac->mac_phy.detach(mac); } -static int +int bwn_detach(device_t dev) { struct bwn_softc *sc = device_get_softc(dev); @@ -756,6 +783,7 @@ bwn_detach(device_t dev) mbufq_drain(&sc->sc_snd); bwn_release_firmware(mac); BWN_LOCK_DESTROY(sc); + BWN_BUS_OPS_DETACH(dev); return (0); } @@ -1153,36 +1181,30 @@ bwn_attach_core(struct bwn_mac *mac) { struct bwn_softc *sc = mac->mac_sc; int error, have_bg = 0, have_a = 0; + uint32_t high; KASSERT(siba_get_revid(sc->sc_dev) >= 5, ("unsupported revision %d", siba_get_revid(sc->sc_dev))); - if (bwn_is_bus_siba(mac)) { - uint32_t high; + siba_powerup(sc->sc_dev, 0); + high = siba_read_4(sc->sc_dev, SIBA_TGSHIGH); + have_a = (high & BWN_TGSHIGH_HAVE_5GHZ) ? 1 : 0; + have_bg = (high & BWN_TGSHIGH_HAVE_2GHZ) ? 1 : 0; + if (high & BWN_TGSHIGH_DUALPHY) { + have_bg = 1; + have_a = 1; + } - siba_powerup(sc->sc_dev, 0); - high = siba_read_4(sc->sc_dev, SIBA_TGSHIGH); - have_a = (high & BWN_TGSHIGH_HAVE_5GHZ) ? 1 : 0; - have_bg = (high & BWN_TGSHIGH_HAVE_2GHZ) ? 1 : 0; - if (high & BWN_TGSHIGH_DUALPHY) { - have_bg = 1; - have_a = 1; - } #if 0 - device_printf(sc->sc_dev, "%s: high=0x%08x, have_a=%d, have_bg=%d," - " deviceid=0x%04x, siba_deviceid=0x%04x\n", - __func__, - high, - have_a, - have_bg, - siba_get_pci_device(sc->sc_dev), - siba_get_chipid(sc->sc_dev)); + device_printf(sc->sc_dev, "%s: high=0x%08x, have_a=%d, have_bg=%d," + " deviceid=0x%04x, siba_deviceid=0x%04x\n", + __func__, + high, + have_a, + have_bg, + siba_get_pci_device(sc->sc_dev), + siba_get_chipid(sc->sc_dev)); #endif - } else { - device_printf(sc->sc_dev, "%s: not siba; bailing\n", __func__); - error = ENXIO; - goto fail; - } /* * Guess at whether it has A-PHY or G-PHY. @@ -1339,8 +1361,6 @@ fail: /* * Reset - SIBA. - * - * XXX TODO: implement BCMA version! */ void bwn_reset_core(struct bwn_mac *mac, int g_mode) @@ -2267,7 +2287,6 @@ bwn_chip_init(struct bwn_mac *mac) bwn_mac_phy_clock_set(mac, true); /* SIBA powerup */ - /* XXX TODO: BCMA powerup */ BWN_WRITE_2(mac, BWN_POWERUP_DELAY, siba_get_cc_powerdelay(sc->sc_dev)); return (error); } @@ -4717,10 +4736,10 @@ bwn_rf_turnoff(struct bwn_mac *mac) } /* - * SSB PHY reset. + * PHY reset. */ static void -bwn_phy_reset_siba(struct bwn_mac *mac) +bwn_phy_reset(struct bwn_mac *mac) { struct bwn_softc *sc = mac->mac_sc; @@ -4733,17 +4752,6 @@ bwn_phy_reset_siba(struct bwn_mac *mac) DELAY(1000); } -static void -bwn_phy_reset(struct bwn_mac *mac) -{ - - if (bwn_is_bus_siba(mac)) { - bwn_phy_reset_siba(mac); - } else { - BWN_ERRPRINTF(mac->mac_sc, "%s: unknown bus!\n", __func__); - } -} - static int bwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) { @@ -7471,7 +7479,7 @@ static device_method_t bwn_methods[] = { DEVMETHOD(device_resume, bwn_resume), DEVMETHOD_END }; -static driver_t bwn_driver = { +driver_t bwn_driver = { "bwn", bwn_methods, sizeof(struct bwn_softc) @@ -7479,6 +7487,7 @@ static driver_t bwn_driver = { static devclass_t bwn_devclass; DRIVER_MODULE(bwn, siba_bwn, bwn_driver, bwn_devclass, 0, 0); MODULE_DEPEND(bwn, siba_bwn, 1, 1, 1); +MODULE_DEPEND(bwn, gpiobus, 1, 1, 1); MODULE_DEPEND(bwn, wlan, 1, 1, 1); /* 802.11 media layer */ MODULE_DEPEND(bwn, firmware, 1, 1, 1); /* firmware support */ MODULE_DEPEND(bwn, wlan_amrr, 1, 1, 1); Added: head/sys/dev/bwn/if_bwn_bhnd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/bwn/if_bwn_bhnd.c Sat Dec 2 02:21:27 2017 (r326454) @@ -0,0 +1,107 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2016 Landon Fuller + * Copyright (c) 2017 The FreeBSD Foundation + * All rights reserved. + * + * Portions of this software were developed by Landon Fuller + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include "opt_bwn.h" +#include "opt_wlan.h" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include + +#include "if_bwnvar.h" + +/* Supported device identifiers */ +static const struct bhnd_device bwn_devices[] = { + {{ + BHND_MATCH_CORE (BHND_MFGID_BCM, BHND_COREID_D11), + BHND_MATCH_CORE_REV (HWREV_RANGE(5, 16)) + }}, + + BHND_DEVICE_END +}; + +static int +bwn_bhnd_probe(device_t dev) +{ + const struct bhnd_device *id; + + id = bhnd_device_lookup(dev, bwn_devices, sizeof(bwn_devices[0])); + if (id == NULL) + return (ENXIO); + + bhnd_set_default_core_desc(dev); + return (BUS_PROBE_DEFAULT); +} + +static device_method_t bwn_bhnd_methods[] = { + /* Device interface */ + DEVMETHOD(device_probe, bwn_bhnd_probe), + + DEVMETHOD_END +}; + +static devclass_t bwn_devclass; + +DEFINE_CLASS_1(bwn, bwn_bhnd_driver, bwn_bhnd_methods, sizeof(struct bwn_softc), + bwn_driver); + +DRIVER_MODULE(bwn_bhnd, bhnd, bwn_bhnd_driver, bwn_devclass, 0, 0); +MODULE_DEPEND(bwn_bhnd, bhnd, 1, 1, 1); +MODULE_VERSION(bwn_bhnd, 1); Modified: head/sys/dev/bwn/if_bwn_pci.c ============================================================================== --- head/sys/dev/bwn/if_bwn_pci.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_pci.c Sat Dec 2 02:21:27 2017 (r326454) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2015-2016 Landon Fuller * All rights reserved. * @@ -6,25 +8,22 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * without modification. - * 2. Redistributions in binary form must reproduce at minimum a disclaimer - * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any - * redistribution must be conditioned upon including a substantially - * similar Disclaimer requirement for further binary redistribution. + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * - * NO WARRANTY - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY - * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, - * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF - * THE POSSIBILITY OF SUCH DAMAGES. + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. */ #include @@ -61,17 +60,8 @@ TUNABLE_INT("hw.bwn_pci.preferred", &prefer_new_driver /* SIBA Devices */ static const struct bwn_pci_device siba_devices[] = { - BWN_BCM_DEV(BCM4301, "BCM4301 802.11b", - BWN_QUIRK_ENET_HW_UNPOPULATED), - - BWN_BCM_DEV(BCM4306, "BCM4306 802.11b/g", 0), - BWN_BCM_DEV(BCM4306_D11G, "BCM4306 802.11g", 0), BWN_BCM_DEV(BCM4306_D11A, "BCM4306 802.11a", BWN_QUIRK_WLAN_DUALCORE), - BWN_BCM_DEV(BCM4306_D11DUAL, "BCM4306 802.11a/b", - BWN_QUIRK_WLAN_DUALCORE), - BWN_BCM_DEV(BCM4306_D11G_ID2, "BCM4306 802.11g", 0), - BWN_BCM_DEV(BCM4307, "BCM4307 802.11b", 0), BWN_BCM_DEV(BCM4311_D11G, "BCM4311 802.11b/g", 0), @@ -88,7 +78,7 @@ static const struct bwn_pci_device siba_devices[] = { BWN_QUIRK_USBH_UNPOPULATED), BWN_BCM_DEV(BCM4321_D11N2G, "BCM4321 802.11n 2GHz", BWN_QUIRK_USBH_UNPOPULATED), - BWN_BCM_DEV(BCM4321_D11N2G, "BCM4321 802.11n 5GHz", + BWN_BCM_DEV(BCM4321_D11N5G, "BCM4321 802.11n 5GHz", BWN_QUIRK_UNTESTED|BWN_QUIRK_USBH_UNPOPULATED), BWN_BCM_DEV(BCM4322_D11N, "BCM4322 802.11n Dual-Band", 0), @@ -107,6 +97,7 @@ static const struct bwn_pci_device bcma_devices[] = { BWN_BCM_DEV(BCM4331_D11N, "BCM4331 802.11n Dual-Band", 0), BWN_BCM_DEV(BCM4331_D11N2G, "BCM4331 802.11n 2GHz", 0), BWN_BCM_DEV(BCM4331_D11N5G, "BCM4331 802.11n 5GHz", 0), + BWN_BCM_DEV(BCM43224_D11N, "BCM43224 802.11n Dual-Band", 0), BWN_BCM_DEV(BCM43225_D11N2G, "BCM43225 802.11n 2GHz", 0), { 0, 0, NULL, 0} @@ -210,7 +201,12 @@ bwn_pci_attach(device_t dev) static int bwn_pci_detach(device_t dev) { - return (bus_generic_detach(dev)); + int error; + + if ((error = bus_generic_detach(dev))) + return (error); + + return (device_delete_children(dev)); } static void @@ -297,11 +293,14 @@ static device_method_t bwn_pci_methods[] = { static devclass_t bwn_pci_devclass; -DEFINE_CLASS_0(bwn_pci, bwn_pci_driver, bwn_pci_methods, sizeof(struct bwn_pci_softc)); -DRIVER_MODULE(bwn_pci, pci, bwn_pci_driver, bwn_pci_devclass, NULL, NULL); +DEFINE_CLASS_0(bwn_pci, bwn_pci_driver, bwn_pci_methods, + sizeof(struct bwn_pci_softc)); +DRIVER_MODULE_ORDERED(bwn_pci, pci, bwn_pci_driver, bwn_pci_devclass, NULL, + NULL, SI_ORDER_ANY); DRIVER_MODULE(bhndb, bwn_pci, bhndb_pci_driver, bhndb_devclass, NULL, NULL); MODULE_DEPEND(bwn_pci, bwn, 1, 1, 1); +MODULE_DEPEND(bwn_pci, bhnd, 1, 1, 1); MODULE_DEPEND(bwn_pci, bhndb, 1, 1, 1); MODULE_DEPEND(bwn_pci, bhndb_pci, 1, 1, 1); MODULE_DEPEND(bwn_pci, bcma_bhndb, 1, 1, 1); Modified: head/sys/dev/bwn/if_bwn_pcivar.h ============================================================================== --- head/sys/dev/bwn/if_bwn_pcivar.h Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_pcivar.h Sat Dec 2 02:21:27 2017 (r326454) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2015-2016 Landon Fuller * All rights reserved. * @@ -6,25 +8,22 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * without modification. - * 2. Redistributions in binary form must reproduce at minimum a disclaimer - * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any - * redistribution must be conditioned upon including a substantially - * similar Disclaimer requirement for further binary redistribution. + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * - * NO WARRANTY - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY - * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, - * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF - * THE POSSIBILITY OF SUCH DAMAGES. + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * * $FreeBSD$ */ Modified: head/sys/dev/bwn/if_bwn_phy_common.c ============================================================================== --- head/sys/dev/bwn/if_bwn_phy_common.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_phy_common.c Sat Dec 2 02:21:27 2017 (r326454) @@ -66,9 +66,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include #include #include @@ -76,6 +73,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include + #include #include @@ -149,17 +148,12 @@ bwn_phy_force_clock(struct bwn_mac *mac, int force) /* XXX Only for N, HT and AC PHYs */ - /* XXX bhnd bus */ - if (bwn_is_bus_siba(mac)) { - tmp = siba_read_4(sc->sc_dev, SIBA_TGSLOW); - if (force) - tmp |= SIBA_TGSLOW_FGC; - else - tmp &= ~SIBA_TGSLOW_FGC; - siba_write_4(sc->sc_dev, SIBA_TGSLOW, tmp); - } else { - BWN_ERRPRINTF(sc, "%s: unknown bus!\n", __func__); - } + tmp = siba_read_4(sc->sc_dev, SIBA_TGSLOW); + if (force) + tmp |= SIBA_TGSLOW_FGC; + else + tmp &= ~SIBA_TGSLOW_FGC; + siba_write_4(sc->sc_dev, SIBA_TGSLOW, tmp); } int @@ -184,17 +178,12 @@ bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled struct bwn_softc *sc = mac->mac_sc; uint32_t val; - /* XXX bhnd bus */ - if (bwn_is_bus_siba(mac)) { - val = siba_read_4(sc->sc_dev, SIBA_TGSLOW); - if (enabled) - val |= BWN_TGSLOW_MACPHYCLKEN; - else - val &= ~BWN_TGSLOW_MACPHYCLKEN; - siba_write_4(sc->sc_dev, SIBA_TGSLOW, val); - } else { - BWN_ERRPRINTF(sc, "%s: unknown bus!\n", __func__); - } + val = siba_read_4(sc->sc_dev, SIBA_TGSLOW); + if (enabled) + val |= BWN_TGSLOW_MACPHYCLKEN; + else + val &= ~BWN_TGSLOW_MACPHYCLKEN; + siba_write_4(sc->sc_dev, SIBA_TGSLOW, val); } /* http://bcm-v4.sipsolutions.net/802.11/PHY/BmacCorePllReset */ @@ -203,13 +192,8 @@ bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac) { struct bwn_softc *sc = mac->mac_sc; - /* XXX bhnd bus */ - if (bwn_is_bus_siba(mac)) { - siba_cc_write32(sc->sc_dev, SIBA_CC_CHIPCTL_ADDR, 0); - siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); - siba_cc_set32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, 0x4); - siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); - } else { - BWN_ERRPRINTF(sc, "%s: unknown bus!\n", __func__); - } + siba_cc_write32(sc->sc_dev, SIBA_CC_CHIPCTL_ADDR, 0); + siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); + siba_cc_set32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, 0x4); + siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); } Modified: head/sys/dev/bwn/if_bwn_phy_g.c ============================================================================== --- head/sys/dev/bwn/if_bwn_phy_g.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_phy_g.c Sat Dec 2 02:21:27 2017 (r326454) @@ -65,15 +65,14 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include #include #include #include #include #include + +#include #include #include Modified: head/sys/dev/bwn/if_bwn_phy_lp.c ============================================================================== --- head/sys/dev/bwn/if_bwn_phy_lp.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_phy_lp.c Sat Dec 2 02:21:27 2017 (r326454) @@ -65,15 +65,14 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include #include #include #include #include #include + +#include #include #include Modified: head/sys/dev/bwn/if_bwn_phy_n.c ============================================================================== --- head/sys/dev/bwn/if_bwn_phy_n.c Sat Dec 2 01:42:07 2017 (r326453) +++ head/sys/dev/bwn/if_bwn_phy_n.c Sat Dec 2 02:21:27 2017 (r326454) @@ -65,15 +65,14 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include #include #include #include #include #include + +#include #include #include Added: head/sys/dev/bwn/if_bwn_siba.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/bwn/if_bwn_siba.c Sat Dec 2 02:21:27 2017 (r326454) @@ -0,0 +1,171 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2016 Landon Fuller + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include + +#include +#include +#include + +#include +#include + +#define BWN_USE_SIBA 1 +#include "if_bwn_siba.h" + +/** Legacy siba(4) bus operations */ + +static int +bwn_siba_bus_ops_init(device_t dev) +{ + return (0); +} + +static void +bwn_siba_bus_ops_fini(device_t dev) +{ +} + +const struct bwn_bus_ops bwn_siba_bus_ops = { + .init = bwn_siba_bus_ops_init, + .fini = bwn_siba_bus_ops_fini, + .pci_find_cap = pci_find_cap, + .pci_alloc_msi = pci_alloc_msi, + .pci_release_msi = pci_release_msi, + .pci_msi_count = pci_msi_count, + .get_vendor = siba_get_vendor, + .get_device = siba_get_device, + .get_revid = siba_get_revid, + .get_pci_vendor = siba_get_pci_vendor, + .get_pci_device = siba_get_pci_device, + .get_pci_subvendor = siba_get_pci_subvendor, + .get_pci_subdevice = siba_get_pci_subdevice, + .get_pci_revid = siba_get_pci_revid, + .get_chipid = siba_get_chipid, + .get_chiprev = siba_get_chiprev, + .get_chippkg = siba_get_chippkg, + .get_type = siba_get_type, + .get_cc_pmufreq = siba_get_cc_pmufreq, + .get_cc_caps = siba_get_cc_caps, + .get_cc_powerdelay = siba_get_cc_powerdelay, + .get_pcicore_revid = siba_get_pcicore_revid, + .sprom_get_rev = siba_sprom_get_rev, + .sprom_get_mac_80211bg = siba_sprom_get_mac_80211bg, + .sprom_get_mac_80211a = siba_sprom_get_mac_80211a, + .sprom_get_brev = siba_sprom_get_brev, + .sprom_get_ccode = siba_sprom_get_ccode, + .sprom_get_ant_a = siba_sprom_get_ant_a, + .sprom_get_ant_bg = siba_sprom_get_ant_bg, + .sprom_get_pa0b0 = siba_sprom_get_pa0b0, + .sprom_get_pa0b1 = siba_sprom_get_pa0b1, + .sprom_get_pa0b2 = siba_sprom_get_pa0b2, + .sprom_get_gpio0 = siba_sprom_get_gpio0, + .sprom_get_gpio1 = siba_sprom_get_gpio1, + .sprom_get_gpio2 = siba_sprom_get_gpio2, + .sprom_get_gpio3 = siba_sprom_get_gpio3, + .sprom_get_maxpwr_bg = siba_sprom_get_maxpwr_bg, + .sprom_set_maxpwr_bg = siba_sprom_set_maxpwr_bg, + .sprom_get_rxpo2g = siba_sprom_get_rxpo2g, + .sprom_get_rxpo5g = siba_sprom_get_rxpo5g, + .sprom_get_tssi_bg = siba_sprom_get_tssi_bg, + .sprom_get_tri2g = siba_sprom_get_tri2g, + .sprom_get_tri5gl = siba_sprom_get_tri5gl, + .sprom_get_tri5g = siba_sprom_get_tri5g, + .sprom_get_tri5gh = siba_sprom_get_tri5gh, + .sprom_get_rssisav2g = siba_sprom_get_rssisav2g, + .sprom_get_rssismc2g = siba_sprom_get_rssismc2g, + .sprom_get_rssismf2g = siba_sprom_get_rssismf2g, + .sprom_get_bxa2g = siba_sprom_get_bxa2g, + .sprom_get_rssisav5g = siba_sprom_get_rssisav5g, + .sprom_get_rssismc5g = siba_sprom_get_rssismc5g, + .sprom_get_rssismf5g = siba_sprom_get_rssismf5g, + .sprom_get_bxa5g = siba_sprom_get_bxa5g, + .sprom_get_cck2gpo = siba_sprom_get_cck2gpo, + .sprom_get_ofdm2gpo = siba_sprom_get_ofdm2gpo, + .sprom_get_ofdm5glpo = siba_sprom_get_ofdm5glpo, + .sprom_get_ofdm5gpo = siba_sprom_get_ofdm5gpo, + .sprom_get_ofdm5ghpo = siba_sprom_get_ofdm5ghpo, + .sprom_get_bf_lo = siba_sprom_get_bf_lo, + .sprom_set_bf_lo = siba_sprom_set_bf_lo, + .sprom_get_bf_hi = siba_sprom_get_bf_hi, + .sprom_get_bf2_lo = siba_sprom_get_bf2_lo, + .sprom_get_bf2_hi = siba_sprom_get_bf2_hi, + .sprom_get_fem_2ghz_tssipos = siba_sprom_get_fem_2ghz_tssipos, + .sprom_get_fem_2ghz_extpa_gain = siba_sprom_get_fem_2ghz_extpa_gain, + .sprom_get_fem_2ghz_pdet_range = siba_sprom_get_fem_2ghz_pdet_range, + .sprom_get_fem_2ghz_tr_iso = siba_sprom_get_fem_2ghz_tr_iso, + .sprom_get_fem_2ghz_antswlut = siba_sprom_get_fem_2ghz_antswlut, + .sprom_get_fem_5ghz_extpa_gain = siba_sprom_get_fem_5ghz_extpa_gain, + .sprom_get_fem_5ghz_pdet_range = siba_sprom_get_fem_5ghz_pdet_range, + .sprom_get_fem_5ghz_antswlut = siba_sprom_get_fem_5ghz_antswlut, + .sprom_get_txpid_2g_0 = siba_sprom_get_txpid_2g_0, + .sprom_get_txpid_2g_1 = siba_sprom_get_txpid_2g_1, + .sprom_get_txpid_5gl_0 = siba_sprom_get_txpid_5gl_0, + .sprom_get_txpid_5gl_1 = siba_sprom_get_txpid_5gl_1, + .sprom_get_txpid_5g_0 = siba_sprom_get_txpid_5g_0, + .sprom_get_txpid_5g_1 = siba_sprom_get_txpid_5g_1, + .sprom_get_txpid_5gh_0 = siba_sprom_get_txpid_5gh_0, + .sprom_get_txpid_5gh_1 = siba_sprom_get_txpid_5gh_1, + .sprom_get_stbcpo = siba_sprom_get_stbcpo, + .sprom_get_cddpo = siba_sprom_get_cddpo, + .powerup = siba_powerup, + .powerdown = siba_powerdown, + .read_2 = siba_read_2, + .write_2 = siba_write_2, + .read_4 = siba_read_4, + .write_4 = siba_write_4, + .dev_up = siba_dev_up, + .dev_down = siba_dev_down, + .dev_isup = siba_dev_isup, + .pcicore_intr = siba_pcicore_intr, + .dma_translation = siba_dma_translation, + .read_multi_2 = siba_read_multi_2, + .read_multi_4 = siba_read_multi_4, + .write_multi_2 = siba_write_multi_2, + .write_multi_4 = siba_write_multi_4, + .barrier = siba_barrier, + .cc_pmu_set_ldovolt = siba_cc_pmu_set_ldovolt, + .cc_pmu_set_ldoparef = siba_cc_pmu_set_ldoparef, + .gpio_set = siba_gpio_set, + .gpio_get = siba_gpio_get, + .fix_imcfglobug = siba_fix_imcfglobug, + .sprom_get_core_power_info = siba_sprom_get_core_power_info, + .sprom_get_mcs2gpo = siba_sprom_get_mcs2gpo, + .sprom_get_mcs5glpo = siba_sprom_get_mcs5glpo, + .sprom_get_mcs5gpo = siba_sprom_get_mcs5gpo, + .sprom_get_mcs5ghpo = siba_sprom_get_mcs5ghpo, + .pmu_spuravoid_pllupdate = siba_pmu_spuravoid_pllupdate, + .cc_set32 = siba_cc_set32, + .cc_mask32 = siba_cc_mask32, + .cc_write32 = siba_cc_write32, +}; Added: head/sys/dev/bwn/if_bwn_siba.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/bwn/if_bwn_siba.h Sat Dec 2 02:21:27 2017 (r326454) @@ -0,0 +1,491 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2016 Landon J. Fuller . + * Copyright (c) 2007 Bruce M. Simpson. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _IF_BWN_SIBA_H_ +#define _IF_BWN_SIBA_H_ + +/** If true, expose legacy siba_pci headers directly. Otherwise, + * we expose our siba/bhnd compatibility shims. */ +#ifndef BWN_USE_SIBA +#define BWN_USE_SIBA 0 +#endif + +struct bwn_softc; +struct siba_sprom_core_pwr_info; + +/* + * Legacy siba(4) bus API compatibility shims. + */ +struct bwn_bus_ops { + /* bus-specific initialization/finalization */ + int (*init)(device_t); + void (*fini)(device_t); + + /* compatibility shims */ + int (*pci_find_cap)(device_t, int, int *); + int (*pci_alloc_msi)(device_t, int *); + int (*pci_release_msi)(device_t); + int (*pci_msi_count)(device_t); + uint16_t (*get_vendor)(device_t); + uint16_t (*get_device)(device_t); + uint8_t (*get_revid)(device_t); + uint16_t (*get_pci_vendor)(device_t); + uint16_t (*get_pci_device)(device_t); + uint16_t (*get_pci_subvendor)(device_t); + uint16_t (*get_pci_subdevice)(device_t); + uint8_t (*get_pci_revid)(device_t); + uint16_t (*get_chipid)(device_t); + uint16_t (*get_chiprev)(device_t); + uint8_t (*get_chippkg)(device_t); + enum siba_type (*get_type)(device_t); + uint32_t (*get_cc_pmufreq)(device_t); + uint32_t (*get_cc_caps)(device_t); + uint16_t (*get_cc_powerdelay)(device_t); + uint8_t (*get_pcicore_revid)(device_t); + uint8_t (*sprom_get_rev)(device_t); + uint8_t *(*sprom_get_mac_80211bg)(device_t); + uint8_t *(*sprom_get_mac_80211a)(device_t); + uint8_t (*sprom_get_brev)(device_t); + uint8_t (*sprom_get_ccode)(device_t); + uint8_t (*sprom_get_ant_a)(device_t); + uint8_t (*sprom_get_ant_bg)(device_t); + uint16_t (*sprom_get_pa0b0)(device_t); + uint16_t (*sprom_get_pa0b1)(device_t); + uint16_t (*sprom_get_pa0b2)(device_t); + uint8_t (*sprom_get_gpio0)(device_t); + uint8_t (*sprom_get_gpio1)(device_t); + uint8_t (*sprom_get_gpio2)(device_t); + uint8_t (*sprom_get_gpio3)(device_t); + uint16_t (*sprom_get_maxpwr_bg)(device_t); + void (*sprom_set_maxpwr_bg)(device_t, uint16_t); + uint8_t (*sprom_get_rxpo2g)(device_t); + uint8_t (*sprom_get_rxpo5g)(device_t); + uint8_t (*sprom_get_tssi_bg)(device_t); + uint8_t (*sprom_get_tri2g)(device_t); + uint8_t (*sprom_get_tri5gl)(device_t); + uint8_t (*sprom_get_tri5g)(device_t); + uint8_t (*sprom_get_tri5gh)(device_t); + uint8_t (*sprom_get_rssisav2g)(device_t); + uint8_t (*sprom_get_rssismc2g)(device_t); + uint8_t (*sprom_get_rssismf2g)(device_t); + uint8_t (*sprom_get_bxa2g)(device_t); + uint8_t (*sprom_get_rssisav5g)(device_t); + uint8_t (*sprom_get_rssismc5g)(device_t); + uint8_t (*sprom_get_rssismf5g)(device_t); + uint8_t (*sprom_get_bxa5g)(device_t); + uint16_t (*sprom_get_cck2gpo)(device_t); + uint32_t (*sprom_get_ofdm2gpo)(device_t); + uint32_t (*sprom_get_ofdm5glpo)(device_t); + uint32_t (*sprom_get_ofdm5gpo)(device_t); + uint32_t (*sprom_get_ofdm5ghpo)(device_t); + uint16_t (*sprom_get_bf_lo)(device_t); + void (*sprom_set_bf_lo)(device_t, uint16_t); + uint16_t (*sprom_get_bf_hi)(device_t); + uint16_t (*sprom_get_bf2_lo)(device_t); + uint16_t (*sprom_get_bf2_hi)(device_t); + uint8_t (*sprom_get_fem_2ghz_tssipos)(device_t); + uint8_t (*sprom_get_fem_2ghz_extpa_gain)(device_t); + uint8_t (*sprom_get_fem_2ghz_pdet_range)(device_t); + uint8_t (*sprom_get_fem_2ghz_tr_iso)(device_t); + uint8_t (*sprom_get_fem_2ghz_antswlut)(device_t); + uint8_t (*sprom_get_fem_5ghz_extpa_gain)(device_t); + uint8_t (*sprom_get_fem_5ghz_pdet_range)(device_t); + uint8_t (*sprom_get_fem_5ghz_antswlut)(device_t); + uint8_t (*sprom_get_txpid_2g_0)(device_t); + uint8_t (*sprom_get_txpid_2g_1)(device_t); + uint8_t (*sprom_get_txpid_5gl_0)(device_t); + uint8_t (*sprom_get_txpid_5gl_1)(device_t); + uint8_t (*sprom_get_txpid_5g_0)(device_t); + uint8_t (*sprom_get_txpid_5g_1)(device_t); + uint8_t (*sprom_get_txpid_5gh_0)(device_t); + uint8_t (*sprom_get_txpid_5gh_1)(device_t); + uint16_t (*sprom_get_stbcpo)(device_t); + uint16_t (*sprom_get_cddpo)(device_t); + void (*powerup)(device_t, int); + int (*powerdown)(device_t); + uint16_t (*read_2)(device_t, uint16_t); + void (*write_2)(device_t, uint16_t, uint16_t); + uint32_t (*read_4)(device_t, uint16_t); + void (*write_4)(device_t, uint16_t, uint32_t); + void (*dev_up)(device_t, uint32_t); + void (*dev_down)(device_t, uint32_t); + int (*dev_isup)(device_t); + void (*pcicore_intr)(device_t); + uint32_t (*dma_translation)(device_t); + void (*read_multi_2)(device_t, void *, size_t, uint16_t); + void (*read_multi_4)(device_t, void *, size_t, uint16_t); + void (*write_multi_2)(device_t, const void *, size_t, uint16_t); + void (*write_multi_4)(device_t, const void *, size_t, uint16_t); + void (*barrier)(device_t, int); *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-head@freebsd.org Sat Dec 2 06:05:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C01BDF4A83; Sat, 2 Dec 2017 06:05:05 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED1713094; Sat, 2 Dec 2017 06:05:04 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2654dF081795; Sat, 2 Dec 2017 06:05:04 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB26542Z081794; Sat, 2 Dec 2017 06:05:04 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201712020605.vB26542Z081794@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Sat, 2 Dec 2017 06:05:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326455 - head/usr.bin/dc X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/usr.bin/dc X-SVN-Commit-Revision: 326455 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 06:05:05 -0000 Author: asomers Date: Sat Dec 2 06:05:03 2017 New Revision: 326455 URL: https://svnweb.freebsd.org/changeset/base/326455 Log: Reap dead code usr.bin/dc/inout.c Reap some dead code that was killed back in 2003 in OpenBSD, in version 1.8 of this file. MFC after: 3 weeks Modified: head/usr.bin/dc/inout.c Modified: head/usr.bin/dc/inout.c ============================================================================== --- head/usr.bin/dc/inout.c Sat Dec 2 02:21:27 2017 (r326454) +++ head/usr.bin/dc/inout.c Sat Dec 2 06:05:03 2017 (r326455) @@ -216,12 +216,7 @@ readnumber(struct source *src, u_int base) n->scale++; bn_check(BN_mul_word(n->number, base)); - -#if 0 - /* work around a bug in BN_add_word: 0 += 0 is buggy.... */ - if (v > 0) -#endif - bn_check(BN_add_word(n->number, v)); + bn_check(BN_add_word(n->number, v)); } if (base != 10) { scale_number(n->number, n->scale); From owner-svn-src-head@freebsd.org Sat Dec 2 06:23:03 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4404DF5136; Sat, 2 Dec 2017 06:23:03 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 818D4384B; Sat, 2 Dec 2017 06:23:03 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB26N2Me089820; Sat, 2 Dec 2017 06:23:02 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB26N2v2089819; Sat, 2 Dec 2017 06:23:02 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712020623.vB26N2v2089819@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sat, 2 Dec 2017 06:23:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326456 - head/etc X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/etc X-SVN-Commit-Revision: 326456 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 06:23:03 -0000 Author: eadler Date: Sat Dec 2 06:23:02 2017 New Revision: 326456 URL: https://svnweb.freebsd.org/changeset/base/326456 Log: pf.os: Add OpenBSD:6.1 Obtained From: OpenBSD Modified: head/etc/pf.os Modified: head/etc/pf.os ============================================================================== --- head/etc/pf.os Sat Dec 2 06:05:03 2017 (r326455) +++ head/etc/pf.os Sat Dec 2 06:23:02 2017 (r326456) @@ -1,5 +1,5 @@ # $FreeBSD$ -# $OpenBSD: pf.os,v 1.26 2012/08/03 12:25:16 jsg Exp $ +# $OpenBSD: pf.os,v 1.27 2016/09/03 17:08:57 sthen Exp $ # passive OS fingerprinting # ------------------------- # @@ -314,6 +314,9 @@ S22:64:1:52:M*,N,N,S,N,W0: Linux:2.2:ts:Linux 2.2 w/o 16384:64:1:64:M*,N,N,S,N,W3,N,N,T: OpenBSD:4.9::OpenBSD 4.9 16384:64:0:64:M*,N,N,S,N,W3,N,N,T: OpenBSD:4.9:no-df:OpenBSD 4.9 (scrub no-df) + +16384:64:1:64:M*,N,N,S,N,W6,N,N,T: OpenBSD:6.1::OpenBSD 6.1 +16384:64:0:64:M*,N,N,S,N,W6,N,N,T: OpenBSD:6.1:no-df:OpenBSD 6.1 (scrub no-df) # ----------------- DragonFly BSD ----------------- From owner-svn-src-head@freebsd.org Sat Dec 2 06:27:42 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38961DF51DE; Sat, 2 Dec 2017 06:27:42 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 069B339F6; Sat, 2 Dec 2017 06:27:41 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-it0-f45.google.com with SMTP id m11so6127078iti.1; Fri, 01 Dec 2017 22:27:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nYReWcUl4Rc5OHOZmU4AYfU4ouMWOouhV5GlLp5gKnQ=; b=FCPJIJZUfpmns4srOEc7ua6jXFa/b2GYv0e93bI3cDPwrWUmLV2vByV/etNIsH9b5f 0ttG66jeMaqTWb2rqP6UmDGRRuq/xBLXk46EUILzVlTy1GqBO2WDC2iZ3ms9KuvqyIBS wKt4krUxYa0LCGxOcWrRx4LPJTrLIlR0JQpS4o34WVHLLkgYp1WKAa7aNpbX4vYCo35Y C61Qk7/DTHKGpuHvS+SCRgipV1AJzM+1yFJRf1f0gkfSyUhSJismMsq1IX0BSi5crviu bph5CUbv212d/DMfYv3wTYzCJeJ/LMBV6eme34552F3PKjiO2YqKvBaw21GzxrO3JU/R fBtQ== X-Gm-Message-State: AJaThX74WPAnTy9VpVIEDbVnDwjcx8swamYPCBkIvAyO/OiOZfFVSktp Nh0SMdBcqIZq3viA5z9RpcBPnMGW X-Google-Smtp-Source: AGs4zMZ632obdQuatsjDc1V9K/WN/OGl0vf3f5I9bksNVg0JUhxkP9+0Q6FRaKa3+nrkP3yTFUY1Dg== X-Received: by 10.36.77.143 with SMTP id l137mr5106442itb.50.1512195675694; Fri, 01 Dec 2017 22:21:15 -0800 (PST) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com. [209.85.214.51]) by smtp.gmail.com with ESMTPSA id 139sm1648718itm.2.2017.12.01.22.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2017 22:21:15 -0800 (PST) Received: by mail-it0-f51.google.com with SMTP id t1so4843151ite.5; Fri, 01 Dec 2017 22:21:15 -0800 (PST) X-Received: by 10.36.222.68 with SMTP id d65mr5437357itg.67.1512195674733; Fri, 01 Dec 2017 22:21:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.33.141 with HTTP; Fri, 1 Dec 2017 22:21:14 -0800 (PST) Received: by 10.107.33.141 with HTTP; Fri, 1 Dec 2017 22:21:14 -0800 (PST) In-Reply-To: <201712020221.vB22LRHZ088670@repo.freebsd.org> References: <201712020221.vB22LRHZ088670@repo.freebsd.org> From: Kyle Evans Date: Sat, 2 Dec 2017 00:21:14 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r326454 - in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci To: "Landon J. Fuller" Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 06:27:42 -0000 On Dec 1, 2017 8:21 PM, "Landon J. Fuller" wrote: Author: landonf Date: Sat Dec 2 02:21:27 2017 New Revision: 326454 URL: https://svnweb.freebsd.org/changeset/base/326454 Log: Introduce bwn(4) support for the bhnd(4) bus. Currently, bwn(4) relies on the siba_bwn(4) bus driver to provide support for the on-chip SSB interconnect found in Broadcom's older PCI(e) Wi-Fi adapters. Non-PCI Wi-Fi adapters, as well as the newer BCMA interconnect found in post-2009 Broadcom Wi-Fi hardware, are not supported by siba_bwn(4). The bhnd(4) bus driver (also used by the FreeBSD/MIPS Broadcom port) provides a unified kernel interface to a superset of the hardware supported by siba_bwn; by attaching bwn(4) via bhnd(4), we can support both modern PCI(e) Wi-Fi devices based on the BCMA backplane interconnect, as well as Broadcom MIPS WiSoCs that include a D11 MAC core directly attached to their SSB or BCMA backplane. This diff introduces opt-in bwn(4) support for bhnd(4) by providing: - A small bwn(4) driver subclass, if_bwn_bhnd, that attaches via bhnd(4) instead of siba_bwn(4). - A bhndb(4)-based PCI host bridge driver, if_bwn_pci, that optionally probes at a higher priority than the siba_bwn(4) PCI driver. - A set of compatibility shims that perform translation of bwn(4)'s siba_bwn function calls into their bhnd(9) API equivalents when bwn(4) is attached via a bhnd(4) bus parent. When bwn(4) is attached via siba_bwn(4), all siba_bwn function calls are simply passed through to their original implementations. To test bwn(4) with bhnd(4), place the following lines in loader.conf(5): hw.bwn_pci.preferred="1" if_bwn_pci_load="YES bwn_v4_ucode_load="YES" bwn_v4_lp_ucode_load="YES" To verify that bwn(4) is using bhnd(4), you can check dmesg: bwn0: ... on bhnd0 ... or devinfo(8): pcib2 pci2 bwn_pci0 bhndb0 bhnd0 bwn0 ... bwn(4)/bhnd(4) has been tested for regressions with most chipsets currently supported by bwn(4), including: - BCM4312 - BCM4318 - BCM4321 With minimal changes to the DMA code (not included in this commit), I was also able to test support for newer BCMA devices by bringing up basic working Wi-Fi on two previously unsupported, BCMA-based N-PHY chipsets: - BCM43224 - BCM43225 Hi, I'm pretty sure we've discussed this, but I don't recall to what detail that was- I recall that the 4313 is BCMA, but does it have one of the PHYs that we support already? If so, I'll happily test there. Thanks, Kyle Evans From owner-svn-src-head@freebsd.org Sat Dec 2 07:29:08 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2202DF66AB; Sat, 2 Dec 2017 07:29:08 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71AC7648C9; Sat, 2 Dec 2017 07:29:08 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB27T7Pc015040; Sat, 2 Dec 2017 07:29:07 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB27T7qQ015039; Sat, 2 Dec 2017 07:29:07 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020729.vB27T7qQ015039@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 07:29:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326457 - head/usr.sbin/efidp X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/usr.sbin/efidp X-SVN-Commit-Revision: 326457 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 07:29:08 -0000 Author: imp Date: Sat Dec 2 07:29:07 2017 New Revision: 326457 URL: https://svnweb.freebsd.org/changeset/base/326457 Log: Read multiple lines when parsing the data. Allow multiple device paths to be read when formatting device paths. Set the upper limit to 64k (most of these paths are < 64 bytes). Sponsored by: Netflix Modified: head/usr.sbin/efidp/efidp.c Modified: head/usr.sbin/efidp/efidp.c ============================================================================== --- head/usr.sbin/efidp/efidp.c Sat Dec 2 06:23:02 2017 (r326456) +++ head/usr.sbin/efidp/efidp.c Sat Dec 2 07:29:07 2017 (r326457) @@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$"); #include #include +#define MAXSIZE 65536 /* Everyting will be smaller than this, most 1000x smaller */ + /* options descriptor */ static struct option longopts[] = { { "format", no_argument, NULL, 'f' }, @@ -63,18 +65,16 @@ read_file(int fd, void **rv) off_t off; ssize_t red; - len = 4096; + len = MAXSIZE; off = 0; retval = malloc(len); do { red = read(fd, retval + off, len - off); + if (red == 0) + break; off += red; - if (red < (ssize_t)(len - off)) + if (off == (off_t)len) break; - len *= 2; - retval = reallocf(retval, len); - if (retval == NULL) - return -1; } while (1); *rv = retval; @@ -112,44 +112,62 @@ parse_args(int argc, char **argv) } } +static char * +trim(char *s) +{ + char *t; + + while (isspace(*s)) + s++; + t = s + strlen(s) - 1; + while (t > s && isspace(*t)) + *t-- = '\0'; + return s; +} + int main(int argc, char **argv) { - void *data; - ssize_t len; + char buffer[MAXSIZE]; parse_args(argc, argv); - len = read_file(STDIN_FILENO, &data); - if (len == -1) - err(1, "read"); if (flag_format) { - char buffer[4096]; ssize_t fmtlen; + ssize_t len; + void *data; + size_t dplen; + const_efidp dp; - fmtlen = efidp_format_device_path(buffer, sizeof(buffer), - (const_efidp)data, len); - if (fmtlen > 0) - printf("%s\n", buffer); + len = read_file(STDIN_FILENO, &data); + if (len == -1) + err(1, "read"); + dp = (const_efidp)data; + while (len > 0) { + dplen = efidp_size(dp); + fmtlen = efidp_format_device_path(buffer, sizeof(buffer), + dp, dplen); + if (fmtlen > 0) + printf("%s\n", buffer); + len -= dplen; + dp = (const_efidp)((const char *)dp + dplen); + } free(data); } else if (flag_parse) { efidp dp; ssize_t dplen; - char *str, *walker; + char *walker; - dplen = 8192; + dplen = MAXSIZE; dp = malloc(dplen); - str = realloc(data, len + 1); - if (str == NULL || dp == NULL) + if (dp == NULL) errx(1, "Can't allocate memory."); - str[len] = '\0'; - walker = str; - while (isspace(*walker)) - walker++; - dplen = efidp_parse_device_path(walker, dp, dplen); - if (dplen == -1) - errx(1, "Can't parse %s", walker); - write(STDOUT_FILENO, dp, dplen); + while (fgets(buffer, sizeof(buffer), stdin)) { + walker= trim(buffer); + dplen = efidp_parse_device_path(walker, dp, dplen); + if (dplen == -1) + errx(1, "Can't parse %s", walker); + write(STDOUT_FILENO, dp, dplen); + } free(dp); - free(str); } } From owner-svn-src-head@freebsd.org Sat Dec 2 07:29:21 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0EE25DF66DB; Sat, 2 Dec 2017 07:29:21 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97902649FB; Sat, 2 Dec 2017 07:29:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB27TJvg015097; Sat, 2 Dec 2017 07:29:19 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB27TJTE015093; Sat, 2 Dec 2017 07:29:19 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020729.vB27TJTE015093@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 07:29:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326458 - head/lib/libefivar X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/lib/libefivar X-SVN-Commit-Revision: 326458 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 07:29:21 -0000 Author: imp Date: Sat Dec 2 07:29:19 2017 New Revision: 326458 URL: https://svnweb.freebsd.org/changeset/base/326458 Log: Create a function to translate UEFI paths to unix paths efivar_device_path_to_unix_path translates from UEFI to Unix efivar_unix_path_to_device_path translates from Unix to UEFI At present, only HD() device types are supported (both GPT and MBR). CdRom and floppy devices aren't supported. ZFS isn't supported because there's no way in the UEFI standard to specify a ZFS datastore. Network devices aren't supported either. Three forms of Unix path are accepted: /path/to/file (for a mounted filesystem), //path/to/file (uses the EFI partition on the same disk as /), and dev:/path/to/file (for unmounted filesystem). Two forms are produced (the first and last). Sponsored by: Netflix Added: head/lib/libefivar/efivar-dp-xlate.c (contents, props changed) Modified: head/lib/libefivar/Makefile head/lib/libefivar/efivar-dp-format.c head/lib/libefivar/efivar-dp.h Modified: head/lib/libefivar/Makefile ============================================================================== --- head/lib/libefivar/Makefile Sat Dec 2 07:29:07 2017 (r326457) +++ head/lib/libefivar/Makefile Sat Dec 2 07:29:19 2017 (r326458) @@ -35,6 +35,7 @@ PACKAGE=lib${LIB} LIB= efivar SRCS= efivar.c efichar.c efivar-dp-format.c \ efivar-dp-parse.c \ + efivar-dp-xlate.c \ uefi-guid.c uefi-dputil.c INCS= efivar.h efivar-dp.h SHLIB_MAJOR= 1 Modified: head/lib/libefivar/efivar-dp-format.c ============================================================================== --- head/lib/libefivar/efivar-dp-format.c Sat Dec 2 07:29:07 2017 (r326457) +++ head/lib/libefivar/efivar-dp-format.c Sat Dec 2 07:29:19 2017 (r326458) @@ -2432,7 +2432,7 @@ efidp_format_device_path(char *buf, size_t len, const_ } ssize_t -efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, ssize_t max) +efidp_format_device_path_node(char *buf, size_t len, const_efidp dp) { char *str; ssize_t retval; @@ -2453,4 +2453,15 @@ efidp_size(const_efidp dp) { return GetDevicePathSize(__DECONST(EFI_DEVICE_PATH_PROTOCOL *, dp)); +} + +char * +efidp_extract_file_path(const_efidp dp) +{ + const FILEPATH_DEVICE_PATH *fp; + char *name = NULL; + + fp = (const void *)dp; + ucs2_to_utf8(fp->PathName, &name); + return name; } Added: head/lib/libefivar/efivar-dp-xlate.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libefivar/efivar-dp-xlate.c Sat Dec 2 07:29:19 2017 (r326458) @@ -0,0 +1,715 @@ +/*- + * Copyright (c) 2017 Netflix, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer + * in this position and unchanged. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include + +#undef MAX +#undef MIN + +#include +#include +#include +#include +#include +#include +#include + +#include "efichar.h" + +#include "efi-osdep.h" +#include "efivar-dp.h" + +#include "uefi-dplib.h" + +#define MAX_DP_SANITY 4096 /* Biggest device path in bytes */ +#define MAX_DP_TEXT_LEN 4096 /* Longest string rep of dp */ + +#define G_PART "PART" +#define G_LABEL "LABEL" +#define G_DISK "DISK" + +static const char * +geom_pp_attr(struct gmesh *mesh, struct gprovider *pp, const char *attr) +{ + struct gconfig *conf; + + LIST_FOREACH(conf, &pp->lg_config, lg_config) { + if (strcmp(conf->lg_name, attr) != 0) + continue; + return (conf->lg_val); + } + return (NULL); +} + +static struct gprovider * +find_provider_by_efimedia(struct gmesh *mesh, const char *efimedia) +{ + struct gclass *classp; + struct ggeom *gp; + struct gprovider *pp; + const char *val; + + /* + * Find the partition class so we can search it... + */ + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { + if (strcasecmp(classp->lg_name, G_PART) == 0) + break; + } + if (classp == NULL) + return (NULL); + + /* + * Each geom will have a number of providers, search each + * one of them for the efimedia that matches. + */ + /* XXX just used gpart class since I know it's the only one, but maybe I should search all classes */ + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { + val = geom_pp_attr(mesh, pp, "efimedia"); + if (val == NULL) + continue; + if (strcasecmp(efimedia, val) == 0) + return (pp); + } + } + + return (NULL); +} + +static struct gprovider * +find_provider_by_name(struct gmesh *mesh, const char *name) +{ + struct gclass *classp; + struct ggeom *gp; + struct gprovider *pp; + + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { + if (strcmp(pp->lg_name, name) == 0) + return (pp); + } + } + } + + return (NULL); +} + + +static int +efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **relpath, char **abspath) +{ + int rv = 0, n, i; + const_efidp media, file, walker; + size_t len, mntlen; + char buf[MAX_DP_TEXT_LEN]; + char *pwalk; + struct gprovider *pp, *provider; + struct gconsumer *cp; + struct statfs *mnt; + + walker = media = dp; + + /* + * Now, we can either have a filepath node next, or the end. + * Otherwise, it's an error. + */ + walker = (const_efidp)NextDevicePathNode(walker); + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) + return (EINVAL); + if (DevicePathType(walker) == MEDIA_DEVICE_PATH && + DevicePathSubType(walker) == MEDIA_FILEPATH_DP) + file = walker; + else if (DevicePathType(walker) == MEDIA_DEVICE_PATH && + DevicePathType(walker) == END_DEVICE_PATH_TYPE) + file = NULL; + else + return (EINVAL); + + /* + * Format this node. We're going to look for it as a efimedia + * attribute of some geom node. Once we find that node, we use it + * as the device it comes from, at least provisionally. + */ + len = efidp_format_device_path_node(buf, sizeof(buf), media); + if (len > sizeof(buf)) + return (EINVAL); + + pp = find_provider_by_efimedia(mesh, buf); + if (pp == NULL) { + rv = ENOENT; + goto errout; + } + + *dev = strdup(pp->lg_name); + if (*dev == NULL) { + rv = ENOMEM; + goto errout; + } + + /* + * No file specified, just return the device. Don't even look + * for a mountpoint. XXX Sane? + */ + if (file == NULL) + goto errout; + + /* + * Now extract the relative path. The next node in the device path should + * be a filesystem node. If not, we have issues. + */ + *relpath = efidp_extract_file_path(file); + if (*relpath == NULL) { + rv = ENOMEM; + goto errout; + } + for (pwalk = *relpath; *pwalk; pwalk++) + if (*pwalk == '\\') + *pwalk = '/'; + + /* + * To find the absolute path, we have to look for where we're mounted. + * We only look a little hard, since looking too hard can come up with + * false positives (imagine a graid, one of whose devices is *dev). + */ + n = getfsstat(NULL, 0, MNT_NOWAIT) + 1; + if (n < 0) { + rv = errno; + goto errout; + } + mntlen = sizeof(struct statfs) * n; + mnt = malloc(mntlen); + n = getfsstat(mnt, mntlen, MNT_NOWAIT); + if (n < 0) { + rv = errno; + goto errout; + } + provider = pp; + for (i = 0; i < n; i++) { + /* + * Skip all pseudo filesystems. This also skips the real filesytsem + * of ZFS. There's no EFI designator for ZFS in the standard, so + * we'll need to invent one, but its decoding will be handled in + * a separate function. + */ + if (mnt[i].f_mntfromname[0] != '/') + continue; + + /* + * First see if it is directly attached + */ + if (strcmp(provider->lg_name, mnt[i].f_mntfromname + 5) == 0) + break; + + /* + * Next see if it is attached via one of the physical disk's + * labels. + */ + LIST_FOREACH(cp, &provider->lg_consumers, lg_consumer) { + pp = cp->lg_provider; + if (strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) != 0) + continue; + if (strcmp(g_device_path(pp->lg_name), mnt[i].f_mntfromname) == 0) + goto break2; + } + /* Not the one, try the next mount point */ + } +break2: + + /* + * No mountpoint found, no absolute path possible + */ + if (i >= n) + goto errout; + + /* + * Construct absolute path and we're finally done. + */ + if (strcmp(mnt[i].f_mntonname, "/") == 0) + asprintf(abspath, "/%s", *relpath); + else + asprintf(abspath, "%s/%s", mnt[i].f_mntonname, *relpath); + +errout: + if (rv != 0) { + free(*dev); + *dev = NULL; + free(*relpath); + *relpath = NULL; + } + return (rv); +} + +/* + * Translate the passed in device_path to a unix path via the following + * algorithm. + * + * If dp, dev or path NULL, return EDOOFUS. XXX wise? + * + * Set *path = NULL; *dev = NULL; + * + * Walk through the device_path until we find either a media device path. + * Return EINVAL if not found. Return EINVAL if walking dp would + * land us more than sanity size away from the start (4k). + * + * If we find a media descriptor, we search through the geom mesh to see if we + * can find a matching node. If no match is found in the mesh that matches, + * return ENXIO. + * + * Once we find a matching node, we search to see if there is a filesystem + * mounted on it. If we find nothing, then search each of the devices that are + * mounted to see if we can work up the geom tree to find the matching node. if + * we still can't find anything, *dev = sprintf("/dev/%s", provider_name + * of the original node we found), but return ENOTBLK. + * + * Record the dev of the mountpoint in *dev. + * + * Once we find something, check to see if the next node in the device path is + * the end of list. If so, return the mountpoint. + * + * If the next node isn't a File path node, return EFTYPE. + * + * Extract the path from the File path node(s). translate any \ file separators + * to /. Append the result to the mount point. Copy the resulting path into + * *path. Stat that path. If it is not found, return the errorr from stat. + * + * Finally, check to make sure the resulting path is still on the same + * device. If not, return ENODEV. + * + * Otherwise return 0. + * + * The dev or full path that's returned is malloced, so needs to be freed when + * the caller is done about it. Unlike many other functions, we can return data + * with an error code, so pay attention. + */ +int +efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **relpath, char **abspath) +{ + const_efidp walker; + struct gmesh mesh; + int rv = 0; + + /* + * Sanity check args, fail early + */ + if (dp == NULL || dev == NULL || relpath == NULL || abspath == NULL) + return (EDOOFUS); + + *dev = NULL; + *relpath = NULL; + *abspath = NULL; + + /* + * Find the first media device path we can. If we go too far, + * assume the passed in device path is bogus. If we hit the end + * then we didn't find a media device path, so signal that error. + */ + walker = dp; + while (DevicePathType(walker) != MEDIA_DEVICE_PATH && + DevicePathType(walker) != END_DEVICE_PATH_TYPE) { + walker = (const_efidp)NextDevicePathNode(walker); + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) + return (EINVAL); + } + if (DevicePathType(walker) != MEDIA_DEVICE_PATH) + return (EINVAL); + + /* + * There's several types of media paths. We're only interested in the + * hard disk path, as it's really the only relevant one to booting. The + * CD path just might also be relevant, and would be easy to add, but + * isn't supported. A file path too is relevant, but at this stage, it's + * premature because we're trying to translate a specification for a device + * and path on that device into a unix path, or at the very least, a + * geom device : path-on-device. + * + * Also, ZFS throws a bit of a monkey wrench in here since it doesn't have + * a device path type (it creates a new virtual device out of one or more + * storage devices). + * + * For all of them, we'll need to know the geoms, so allocate / free the + * geom mesh here since it's safer than doing it in each sub-function + * which may have many error exits. + */ + if (geom_gettree(&mesh)) + return (ENOMEM); + + rv = EINVAL; + if (DevicePathSubType(walker) == MEDIA_HARDDRIVE_DP) + rv = efi_hd_to_unix(&mesh, walker, dev, relpath, abspath); +#ifdef notyet + else if (is_cdrom_device(walker)) + rv = efi_cdrom_to_unix(&mesh, walker, dev, relpath, abspath); + else if (is_floppy_device(walker)) + rv = efi_floppy_to_unix(&mesh, walker, dev, relpath, abspath); + else if (is_zpool_device(walker)) + rv = efi_zpool_to_unix(&mesh, walker, dev, relpath, abspath); +#endif + geom_deletetree(&mesh); + + return (rv); +} + +/* + * Construct the EFI path to a current unix path as follows. + * + * The path may be of one of three forms: + * 1) /path/to/file -- full path to a file. The file need not be present, + * but /path/to must be. It must reside on a local filesystem + * mounted on a GPT or MBR partition. + * 2) //path/to/file -- Shorthand for 'On the EFI partition, \path\to\file' + * where 'The EFI Partition' is a partiton that's type is 'efi' + * on the same disk that / is mounted from. If there are multiple + * or no 'efi' parittions on that disk, or / isn't on a disk that + * we can trace back to a physical device, an error will result + * 3) [/dev/]geom-name:/path/to/file -- Use the specified partition + * (and it must be a GPT or MBR partition) with the specified + * path. The latter is not authenticated. + * all path forms translate any \ characters to / before further processing. + * When a file path node is created, all / characters are translated back + * to \. + * + * For paths of the first form: + * find where the filesystem is mount (either the file directly, or + * its parent directory). + * translate any logical device name (eg lable) to a physical one + * If not possible, return ENXIO + * If the physical path is unsupported (Eg not on a GPT or MBR disk), + * return ENXIO + * Create a media device path node. + * append the relative path from the mountpoint to the media device node + * as a file path. + * + * For paths matching the second form: + * find the EFI partition corresponding to the root fileystem. + * If none found, return ENXIO + * Create a media device path node for the found partition + * Append a File Path to the end for the rest of the file. + * + * For paths of the third form + * Translate the geom-name passed in into a physical partition + * name. + * Return ENXIO if the translation fails + * Make a media device path for it + * append the part after the : as a File path node. + */ + +static char * +path_to_file_dp(const char *relpath) +{ + char *rv; + + asprintf(&rv, "File(%s)", relpath); + return rv; +} + +static char * +find_geom_efi_on_root(struct gmesh *mesh) +{ + struct statfs buf; + const char *dev; + struct gprovider *pp; +// struct ggeom *disk; + struct gconsumer *cp; + + /* + * Find /'s geom. Assume it's mounted on /dev/ and filter out all the + * filesystems that aren't. + */ + if (statfs("/", &buf) != 0) + return (NULL); + dev = buf.f_mntfromname; + if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) + return (NULL); + dev += sizeof(_PATH_DEV) -1; + pp = find_provider_by_name(mesh, dev); + if (pp == NULL) + return (NULL); + + /* + * If the provider is a LABEL, find it's outer PART class, if any. We + * only operate on partitions. + */ + if (strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) == 0) { + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { + if (strcmp(cp->lg_provider->lg_geom->lg_class->lg_name, G_PART) == 0) { + pp = cp->lg_provider; + break; + } + } + } + if (strcmp(pp->lg_geom->lg_class->lg_name, G_PART) != 0) + return (NULL); + +#if 0 + /* This doesn't work because we can't get the data to walk UP the tree it seems */ + + /* + * Now that we've found the PART that we have mounted as root, find the + * first efi typed partition that's a peer, if any. + */ + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { + if (strcmp(cp->lg_provider->lg_geom->lg_class->lg_name, G_DISK) == 0) { + disk = cp->lg_provider->lg_geom; + break; + } + } + if (disk == NULL) /* This is very bad -- old nested partitions -- no support ? */ + return (NULL); +#endif + +#if 0 + /* This doesn't work because we can't get the data to walk UP the tree it seems */ + + /* + * With the disk provider, we can look for its consumers to see if any are the proper type. + */ + LIST_FOREACH(pp, &disk->lg_consumer, lg_consumer) { + type = geom_pp_attr(mesh, pp, "type"); + if (type == NULL) + continue; + if (strcmp(type, "efi") != 0) + continue; + efimedia = geom_pp_attr(mesh, pp, "efimedia"); + if (efimedia == NULL) + return (NULL); + return strdup(efimedia); + } +#endif + return (NULL); +} + + +static char * +find_geom_efimedia(struct gmesh *mesh, const char *dev) +{ + struct gprovider *pp; + const char *efimedia; + + pp = find_provider_by_name(mesh, dev); + if (pp == NULL) + return (NULL); + efimedia = geom_pp_attr(mesh, pp, "efimedia"); + if (efimedia == NULL) + return (NULL); + return strdup(efimedia); +} + +static int +build_dp(const char *efimedia, const char *relpath, efidp *dp) +{ + char *fp, *dptxt = NULL; + int rv = 0; + efidp out; + size_t len; + + fp = path_to_file_dp(relpath); + if (fp == NULL) { + rv = ENOMEM; + goto errout; + } + + asprintf(&dptxt, "%s/%s", efimedia, fp); + out = malloc(8192); + len = efidp_parse_device_path(dptxt, out, 8192); + if (len > 8192) { + rv = ENOMEM; + goto errout; + } + if (len == 0) { + rv = EINVAL; + goto errout; + } + + *dp = out; +errout: + if (rv) { + free(out); + } + free(dptxt); + free(fp); + + return rv; +} + +/* Handles //path/to/file */ +/* + * Which means: find the disk that has /. Then look for a EFI partition + * and use that for the efimedia and /path/to/file as relative to that. + * Not sure how ZFS will work here since we can't easily make the leap + * to the geom from the zpool. + */ +static int +efipart_to_dp(struct gmesh *mesh, char *path, efidp *dp) +{ + char *efimedia = NULL; + int rv; + + efimedia = find_geom_efi_on_root(mesh); +#ifdef notyet + if (efimedia == NULL) + efimedia = find_efi_on_zfsroot(dev); +#endif + if (efimedia == NULL) { + rv = ENOENT; + goto errout; + } + + rv = build_dp(efimedia, path + 1, dp); +errout: + free(efimedia); + + return rv; +} + +/* Handles [/dev/]geom:[/]path/to/file */ +/* Handles zfs-dataset:[/]path/to/file (this may include / ) */ +static int +dev_path_to_dp(struct gmesh *mesh, char *path, efidp *dp) +{ + char *relpath, *dev, *efimedia = NULL; + int rv = 0; + + relpath = strchr(path, ':'); + assert(relpath != NULL); + *relpath++ = '\0'; + + dev = path; + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) + dev += sizeof(_PATH_DEV) -1; + + efimedia = find_geom_efimedia(mesh, dev); +#ifdef notyet + if (efimedia == NULL) + find_zfs_efi_media(dev); +#endif + if (efimedia == NULL) { + rv = ENOENT; + goto errout; + } + rv = build_dp(efimedia, relpath, dp); +errout: + free(efimedia); + + return rv; +} + +/* Handles /path/to/file */ +static int +path_to_dp(struct gmesh *mesh, char *path, efidp *dp) +{ + struct statfs buf; + char *rp = NULL, *ep, *dev, *efimedia = NULL; + int rv = 0; + + rp = realpath(path, NULL); + if (rp == NULL) { + rv = errno; + goto errout; + } + + if (statfs(rp, &buf) != 0) { + rv = errno; + goto errout; + } + + dev = buf.f_mntfromname; + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) + dev += sizeof(_PATH_DEV) -1; + ep = rp + strlen(buf.f_mntonname); + + efimedia = find_geom_efimedia(mesh, dev); +#ifdef notyet + if (efimedia == NULL) + find_zfs_efi_media(dev); +#endif + if (efimedia == NULL) { + rv = ENOENT; + goto errout; + } + + rv = build_dp(efimedia, ep, dp); +errout: + free(efimedia); + free(rp); + if (rv != 0) { + free(*dp); + } + return (rv); +} + +int +efivar_unix_path_to_device_path(const char *path, efidp *dp) +{ + char *modpath = NULL, *cp; + int rv = ENOMEM; + struct gmesh mesh; + + /* + * Fail early for clearly bogus things + */ + if (path == NULL || dp == NULL) + return (EDOOFUS); + + /* + * We'll need the goem mesh to grovel through it to find the + * efimedia attribute for any devices we find. Grab it here + * and release it to simplify the error paths out of the + * subordinate functions + */ + if (geom_gettree(&mesh)) + return (errno); + + /* + * Convert all \ to /. We'll convert them back again when + * we encode the file. Boot loaders are expected to cope. + */ + modpath = strdup(path); + if (modpath == NULL) + goto out; + for (cp = modpath; *cp; cp++) + if (*cp == '\\') + *cp = '/'; + + if (modpath[0] == '/' && modpath[1] == '/') /* Handle //foo/bar/baz */ + rv = efipart_to_dp(&mesh, modpath, dp); + else if (strchr(modpath, ':')) /* Handle dev:/bar/baz */ + rv = dev_path_to_dp(&mesh, modpath, dp); + else /* Handle /a/b/c */ + rv = path_to_dp(&mesh, modpath, dp); + +out: + geom_deletetree(&mesh); + free(modpath); + + return (rv); +} Modified: head/lib/libefivar/efivar-dp.h ============================================================================== --- head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:07 2017 (r326457) +++ head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:19 2017 (r326458) @@ -60,10 +60,13 @@ typedef const efidp_data *const_efidp; */ ssize_t efidp_format_device_path(char *buf, size_t len, const_efidp dp, ssize_t max); -ssize_t efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, - ssize_t max); +ssize_t efidp_format_device_path_node(char *buf, size_t len, const_efidp dp); ssize_t efidp_parse_device_path(char *path, efidp out, size_t max); +char * efidp_extract_file_path(const_efidp dp); size_t efidp_size(const_efidp); + +int efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **relpath, char **abspath); +int efivar_unix_path_to_device_path(const char *path, efidp *dp); #endif /* _EFIVAR_DP_H_ */ From owner-svn-src-head@freebsd.org Sat Dec 2 07:29:26 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44A4BDF6713; Sat, 2 Dec 2017 07:29:26 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1EF7464A18; Sat, 2 Dec 2017 07:29:26 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB27TPA4015155; Sat, 2 Dec 2017 07:29:25 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB27TPSv015152; Sat, 2 Dec 2017 07:29:25 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712020729.vB27TPSv015152@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 07:29:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326459 - head/usr.sbin/efidp X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/usr.sbin/efidp X-SVN-Commit-Revision: 326459 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 07:29:26 -0000 Author: imp Date: Sat Dec 2 07:29:24 2017 New Revision: 326459 URL: https://svnweb.freebsd.org/changeset/base/326459 Log: Add -u (--to-unix) and -e (--to-efi) to convert unix or efi paths to the other. Sponsored by: Netflix Modified: head/usr.sbin/efidp/Makefile head/usr.sbin/efidp/efidp.8 head/usr.sbin/efidp/efidp.c Modified: head/usr.sbin/efidp/Makefile ============================================================================== --- head/usr.sbin/efidp/Makefile Sat Dec 2 07:29:19 2017 (r326458) +++ head/usr.sbin/efidp/Makefile Sat Dec 2 07:29:24 2017 (r326459) @@ -3,6 +3,6 @@ PROG= efidp MAN= efidp.8 -LIBADD= efivar +LIBADD= efivar geom .include Modified: head/usr.sbin/efidp/efidp.8 ============================================================================== --- head/usr.sbin/efidp/efidp.8 Sat Dec 2 07:29:19 2017 (r326458) +++ head/usr.sbin/efidp/efidp.8 Sat Dec 2 07:29:24 2017 (r326459) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 21, 2017 +.Dd December 1, 2017 .Dt EFIDP 8 .Os .Sh NAME @@ -46,15 +46,24 @@ Specification. .Bl -tag -width 20m .It Fl f Fl -format Formats a binary UEFI Device Path into its canonical UTF-8 textual form. -A binary Device Path can be no longer than 8192 bytes. -The textual form must fit into 4096 bytes. +A binary Device Path can be no longer than 65536 bytes. +The textual form must fit into 65536 bytes. +Multiple binary device paths may be specified. .It Fl p Fl -parse Parses a UEFI Device Path UTF-8 specification and outputs the binary Device Path form. Only one device path is parsed, even if there are multiple present in the input. Leading white space is ignored. -The resulting binary Device Path can be no longer than 8192 bytes. +The resulting binary Device Path can be no longer than 65536 bytes. +Multiple lines may be specified. +Each one will be translated. +.It Fl e Fl --to-efi +Translate a Unix file path to an EFI Device Path. +The output is the textual representation of the EFI Device Path. +.It Fl u Fl --to-unix +Translate an EFI device path to a Unix file path. +The input is the textual representation of the EFI Device Path. .El .Sh SEE ALSO Appendix A of the UEFI specification has the format for GUIDs. Modified: head/usr.sbin/efidp/efidp.c ============================================================================== --- head/usr.sbin/efidp/efidp.c Sat Dec 2 07:29:19 2017 (r326458) +++ head/usr.sbin/efidp/efidp.c Sat Dec 2 07:29:24 2017 (r326459) @@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -42,19 +43,21 @@ __FBSDID("$FreeBSD$"); /* options descriptor */ static struct option longopts[] = { + { "to-unix", no_argument, NULL, 'u' }, + { "to-efi", no_argument, NULL, 'e' }, { "format", no_argument, NULL, 'f' }, { "parse", no_argument, NULL, 'p' }, { NULL, 0, NULL, 0 } }; -static int flag_format, flag_parse; +static int flag_format, flag_parse, flag_unix, flag_efi; static void usage(void) { - errx(1, "efidp [-fp]"); + errx(1, "efidp [-efpu]"); } static ssize_t @@ -86,15 +89,21 @@ parse_args(int argc, char **argv) { int ch; - while ((ch = getopt_long(argc, argv, "fp", + while ((ch = getopt_long(argc, argv, "efpu", longopts, NULL)) != -1) { switch (ch) { + case 'e': + flag_efi++; + break; case 'f': flag_format++; break; case 'p': flag_parse++; break; + case 'u': + flag_unix++; + break; default: usage(); } @@ -105,7 +114,7 @@ parse_args(int argc, char **argv) if (argc >= 1) usage(); - if (flag_parse + flag_format != 1) { + if (flag_parse + flag_format + flag_efi + flag_unix != 1) { warnx("Can only use one of -p (--parse), " "and -f (--format)"); usage(); @@ -125,49 +134,115 @@ trim(char *s) return s; } -int -main(int argc, char **argv) +static void +unix_to_efi(void) { char buffer[MAXSIZE]; + char efi[MAXSIZE]; + efidp dp; + char *walker; + int rv; - parse_args(argc, argv); - if (flag_format) { - ssize_t fmtlen; - ssize_t len; - void *data; - size_t dplen; - const_efidp dp; - - len = read_file(STDIN_FILENO, &data); - if (len == -1) - err(1, "read"); - dp = (const_efidp)data; - while (len > 0) { - dplen = efidp_size(dp); - fmtlen = efidp_format_device_path(buffer, sizeof(buffer), - dp, dplen); - if (fmtlen > 0) - printf("%s\n", buffer); - len -= dplen; - dp = (const_efidp)((const char *)dp + dplen); + while (fgets(buffer, sizeof(buffer), stdin)) { + walker= trim(buffer); + rv = efivar_unix_path_to_device_path(walker, &dp); + if (rv != 0) { + errno = rv; + warn("Can't convert '%s' to efi", walker); + continue; } - free(data); - } else if (flag_parse) { - efidp dp; - ssize_t dplen; - char *walker; + if (efidp_format_device_path(efi, sizeof(efi), + dp, efidp_size(dp)) < 0) { + warnx("Can't format dp for '%s'", walker); + continue; + } + printf("%s\n", efi); + } +} - dplen = MAXSIZE; - dp = malloc(dplen); - if (dp == NULL) - errx(1, "Can't allocate memory."); - while (fgets(buffer, sizeof(buffer), stdin)) { - walker= trim(buffer); - dplen = efidp_parse_device_path(walker, dp, dplen); - if (dplen == -1) - errx(1, "Can't parse %s", walker); - write(STDOUT_FILENO, dp, dplen); +static void +efi_to_unix(void) +{ + char buffer[MAXSIZE]; + char dpbuf[MAXSIZE]; + efidp dp; + size_t dplen; + char *walker, *dev, *relpath, *abspath; + int rv; + + dp = (efidp)dpbuf; + while (fgets(buffer, sizeof(buffer), stdin)) { + walker= trim(buffer); + dplen = efidp_parse_device_path(walker, dp, sizeof(dpbuf)); + rv = efivar_device_path_to_unix_path(dp, &dev, &relpath, &abspath); + if (rv == 0) + printf("%s:%s %s\n", dev, relpath, abspath); + else { + errno = rv; + warn("Can't convert '%s' to unix", walker); } - free(dp); } +} + +static void +format(void) +{ + char buffer[MAXSIZE]; + ssize_t fmtlen; + ssize_t len; + void *data; + size_t dplen; + const_efidp dp; + + len = read_file(STDIN_FILENO, &data); + if (len == -1) + err(1, "read"); + dp = (const_efidp)data; + while (len > 0) { + dplen = efidp_size(dp); + fmtlen = efidp_format_device_path(buffer, sizeof(buffer), + dp, dplen); + if (fmtlen > 0) + printf("%s\n", buffer); + len -= dplen; + dp = (const_efidp)((const char *)dp + dplen); + } + free(data); +} + +static void +parse(void) +{ + char buffer[MAXSIZE]; + efidp dp; + ssize_t dplen; + char *walker; + + dplen = MAXSIZE; + dp = malloc(dplen); + if (dp == NULL) + errx(1, "Can't allocate memory."); + while (fgets(buffer, sizeof(buffer), stdin)) { + walker= trim(buffer); + dplen = efidp_parse_device_path(walker, dp, dplen); + if (dplen == -1) + errx(1, "Can't parse %s", walker); + write(STDOUT_FILENO, dp, dplen); + } + free(dp); +} + +int +main(int argc, char **argv) +{ + + parse_args(argc, argv); + if (flag_unix) + efi_to_unix(); + else if (flag_efi) + unix_to_efi(); + else if (flag_format) + format(); + else if (flag_parse) + parse(); } From owner-svn-src-head@freebsd.org Sat Dec 2 11:22:40 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94485DFB68A; Sat, 2 Dec 2017 11:22:40 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4F726AADC; Sat, 2 Dec 2017 11:22:39 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([77.180.127.235]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lfjxq-1erRsL1RUI-00pPix; Sat, 02 Dec 2017 12:22:31 +0100 Date: Sat, 2 Dec 2017 12:22:17 +0100 From: "O. Hartmann" To: Warner Losh Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326458 - head/lib/libefivar Message-ID: <20171202122217.4e40a80f@thor.intern.walstatt.dynvpn.de> In-Reply-To: <201712020729.vB27TJTE015093@repo.freebsd.org> References: <201712020729.vB27TJTE015093@repo.freebsd.org> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/AveLuR8PmdXW5NE4YkT/Zgu"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:viG0boBbHFssV7loOM48obJyI4GFDvJrGkxbMgez5CZsMpT9IiQ L07AlVdm0HC2BXxqHtZK6/1oX9+kQh+vrXFWae2l2hdhfuuBZmYJFoQi4qJHqz2gXWZ/u+n CTXWhUZImatEhR4cP2PwbeRgeWjIeIBxa5svR9aTDGpMqP+dmT/v+2MwCFaX62VRNx/CVpk xQuobw2m2a90I2O5wWu6Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:Q5M0w+1TJxI=:oIgz6tinE3492GlkFWgfQ3 BIIVqQJZEMVxoVqXRtR5CWKLLrG9BOblr95J1PGXrDTJqbh8d1fJ+4A2h4A/AWKC6qQL4SGc7 WcgiZF2mqfKfASu8BiYKt1QLPnRt2REoKwAmyRm9YkSMBQSM1Fv0N4AIVzacr3ufbj2tHDAD+ ZZ0tUr7GKUZoF+jvJiC67xU5JUjf05cB/a34Vfl1cSvxsnLgfSL/+M+W1eoGqxP/d2tFqWpGz JGtoEZYQqXAdiyWMjdeHaFhtE4jLhJdSIoyrtBYJsCyt9VbdNM2YQ3Yw2zo2Azy2ZySW5jLx/ k/UK1jBqqkLtSw6vxXOlw7kqnzKjuJjafXkrjbYMnOwk70ASAylriuZXKabAcBJ7D2daBjiq7 eyk86ZmXb+7ZwZh7sBzs1DPF7r2xfb1CK7Fa8xKpTVzNEcANF8NHVEGHNaxKRHM9QkZJBqs/7 oPQeyCoupCtakPdQbdtzRJcM4cjijlMf81TyyNjlu804tYG6PWCmBJrkLVNoAVVMK61EROtt2 PxZ2TCbSIr4rB51j+c2Vbh4cAahAWEb8aIjTCwsT4U1ipBrogFoV5M9xe1Lc9mg5n1bRmw5wK eXOL4+FgmEghvYtjPpr1fs9ztNX5OKUbmUbJJQkIHS4O8lJfD47OUG38bD4h9CM4Lyrsbv8z3 hVf1XLfrsgGnyIjrscYg17XLzjO+TtjuoPMXyL/PH5QGdVajWqBubvW3GQ9Iv4Je1gqI3V9pk +AUgsPFgfhfu/YupRRB4RUWnZKYtKo+DdoL5SFCaqQh0n5Nz/lDfZmFMdMdOZlUdMdTyz9qh6 1yBYbL/WeBlBCpEWjfGGmxtoxOI7VYMV43QNWAxx2UAzrslmx4= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 11:22:40 -0000 --Sig_/AveLuR8PmdXW5NE4YkT/Zgu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Sat, 2 Dec 2017 07:29:19 +0000 (UTC) Warner Losh schrieb: > Author: imp > Date: Sat Dec 2 07:29:19 2017 > New Revision: 326458 > URL: https://svnweb.freebsd.org/changeset/base/326458 >=20 > Log: > Create a function to translate UEFI paths to unix paths > =20 > efivar_device_path_to_unix_path translates from UEFI to Unix > efivar_unix_path_to_device_path translates from Unix to UEFI > =20 > At present, only HD() device types are supported (both GPT and > MBR). CdRom and floppy devices aren't supported. ZFS isn't supported > because there's no way in the UEFI standard to specify a ZFS datastore. > Network devices aren't supported either. > =20 > Three forms of Unix path are accepted: /path/to/file (for a mounted > filesystem), //path/to/file (uses the EFI partition on the same disk > as /), and dev:/path/to/file (for unmounted filesystem). Two forms are > produced (the first and last). > =20 > Sponsored by: Netflix >=20 > Added: > head/lib/libefivar/efivar-dp-xlate.c (contents, props changed) > Modified: > head/lib/libefivar/Makefile > head/lib/libefivar/efivar-dp-format.c > head/lib/libefivar/efivar-dp.h >=20 > Modified: head/lib/libefivar/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libefivar/Makefile Sat Dec 2 07:29:07 2017 (r326457) > +++ head/lib/libefivar/Makefile Sat Dec 2 07:29:19 2017 (r326458) > @@ -35,6 +35,7 @@ PACKAGE=3Dlib${LIB} > LIB=3D efivar > SRCS=3D efivar.c efichar.c efivar-dp-format.c \ > efivar-dp-parse.c \ > + efivar-dp-xlate.c \ > uefi-guid.c uefi-dputil.c > INCS=3D efivar.h efivar-dp.h > SHLIB_MAJOR=3D 1 >=20 > Modified: head/lib/libefivar/efivar-dp-format.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libefivar/efivar-dp-format.c Sat Dec 2 07:29:07 2017 > (r326457) +++ head/lib/libefivar/efivar-dp-format.c Sat Dec 2 07:29:19 > 2017 (r326458) @@ -2432,7 +2432,7 @@ efidp_format_device_path(char *buf, = size_t > len, const_ } > =20 > ssize_t > -efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, ssi= ze_t max) > +efidp_format_device_path_node(char *buf, size_t len, const_efidp dp) > { > char *str; > ssize_t retval; > @@ -2453,4 +2453,15 @@ efidp_size(const_efidp dp) > { > =20 > return GetDevicePathSize(__DECONST(EFI_DEVICE_PATH_PROTOCOL *, dp)); > +} > + > +char * > +efidp_extract_file_path(const_efidp dp) > +{ > + const FILEPATH_DEVICE_PATH *fp; > + char *name =3D NULL; > + > + fp =3D (const void *)dp; > + ucs2_to_utf8(fp->PathName, &name); > + return name; > } >=20 > Added: head/lib/libefivar/efivar-dp-xlate.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/lib/libefivar/efivar-dp-xlate.c Sat Dec 2 07:29:19 2017 > (r326458) @@ -0,0 +1,715 @@ > +/*- > + * Copyright (c) 2017 Netflix, Inc. > + * All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer > + * in this position and unchanged. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distributio= n. > + * > + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR > + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRAN= TIES > + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIME= D. > + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, > + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, = BUT > + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF = USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE= OF > + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ > + > +#include > +__FBSDID("$FreeBSD$"); > + > +#include > +#include > +#include > + > +#undef MAX > +#undef MIN > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include "efichar.h" > + > +#include "efi-osdep.h" > +#include "efivar-dp.h" > + > +#include "uefi-dplib.h" > + > +#define MAX_DP_SANITY 4096 /* Biggest device path in bytes */ > +#define MAX_DP_TEXT_LEN 4096 /* Longest string rep of dp */ > + > +#define G_PART "PART" > +#define G_LABEL "LABEL" > +#define G_DISK "DISK" > + > +static const char * > +geom_pp_attr(struct gmesh *mesh, struct gprovider *pp, const char *attr) > +{ > + struct gconfig *conf; > + > + LIST_FOREACH(conf, &pp->lg_config, lg_config) { > + if (strcmp(conf->lg_name, attr) !=3D 0) > + continue; > + return (conf->lg_val); > + } > + return (NULL); > +} > + > +static struct gprovider * > +find_provider_by_efimedia(struct gmesh *mesh, const char *efimedia) > +{ > + struct gclass *classp; > + struct ggeom *gp; > + struct gprovider *pp; > + const char *val; > + > + /* > + * Find the partition class so we can search it... > + */ > + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { > + if (strcasecmp(classp->lg_name, G_PART) =3D=3D 0) > + break; > + } > + if (classp =3D=3D NULL) > + return (NULL); > + > + /* > + * Each geom will have a number of providers, search each > + * one of them for the efimedia that matches. > + */ > + /* XXX just used gpart class since I know it's the only one, but maybe I > should search all classes */ > + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { > + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { > + val =3D geom_pp_attr(mesh, pp, "efimedia"); > + if (val =3D=3D NULL) > + continue; > + if (strcasecmp(efimedia, val) =3D=3D 0) > + return (pp); > + } > + } > + > + return (NULL); > +} > + > +static struct gprovider * > +find_provider_by_name(struct gmesh *mesh, const char *name) > +{ > + struct gclass *classp; > + struct ggeom *gp; > + struct gprovider *pp; > + > + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { > + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { > + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { > + if (strcmp(pp->lg_name, name) =3D=3D 0) > + return (pp); > + } > + } > + } > + > + return (NULL); > +} > + > + > +static int > +efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **re= lpath, char > **abspath) +{ > + int rv =3D 0, n, i; > + const_efidp media, file, walker; > + size_t len, mntlen; > + char buf[MAX_DP_TEXT_LEN]; > + char *pwalk; > + struct gprovider *pp, *provider; > + struct gconsumer *cp; > + struct statfs *mnt; > + > + walker =3D media =3D dp; > + > + /* > + * Now, we can either have a filepath node next, or the end. > + * Otherwise, it's an error. > + */ > + walker =3D (const_efidp)NextDevicePathNode(walker); > + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) > + return (EINVAL); > + if (DevicePathType(walker) =3D=3D MEDIA_DEVICE_PATH && > + DevicePathSubType(walker) =3D=3D MEDIA_FILEPATH_DP) > + file =3D walker; > + else if (DevicePathType(walker) =3D=3D MEDIA_DEVICE_PATH && > + DevicePathType(walker) =3D=3D END_DEVICE_PATH_TYPE) > + file =3D NULL; > + else > + return (EINVAL); > + > + /* > + * Format this node. We're going to look for it as a efimedia > + * attribute of some geom node. Once we find that node, we use it > + * as the device it comes from, at least provisionally. > + */ > + len =3D efidp_format_device_path_node(buf, sizeof(buf), media); > + if (len > sizeof(buf)) > + return (EINVAL); > + > + pp =3D find_provider_by_efimedia(mesh, buf); > + if (pp =3D=3D NULL) { > + rv =3D ENOENT; > + goto errout; > + } > + > + *dev =3D strdup(pp->lg_name); > + if (*dev =3D=3D NULL) { > + rv =3D ENOMEM; > + goto errout; > + } > + > + /* > + * No file specified, just return the device. Don't even look > + * for a mountpoint. XXX Sane? > + */ > + if (file =3D=3D NULL) > + goto errout; > + > + /* > + * Now extract the relative path. The next node in the device path shou= ld > + * be a filesystem node. If not, we have issues. > + */ > + *relpath =3D efidp_extract_file_path(file); > + if (*relpath =3D=3D NULL) { > + rv =3D ENOMEM; > + goto errout; > + } > + for (pwalk =3D *relpath; *pwalk; pwalk++) > + if (*pwalk =3D=3D '\\') > + *pwalk =3D '/'; > + > + /* > + * To find the absolute path, we have to look for where we're mounted. > + * We only look a little hard, since looking too hard can come up with > + * false positives (imagine a graid, one of whose devices is *dev). > + */ > + n =3D getfsstat(NULL, 0, MNT_NOWAIT) + 1; > + if (n < 0) { > + rv =3D errno; > + goto errout; > + } > + mntlen =3D sizeof(struct statfs) * n; > + mnt =3D malloc(mntlen); > + n =3D getfsstat(mnt, mntlen, MNT_NOWAIT); > + if (n < 0) { > + rv =3D errno; > + goto errout; > + } > + provider =3D pp; > + for (i =3D 0; i < n; i++) { > + /* > + * Skip all pseudo filesystems. This also skips the real filesytsem > + * of ZFS. There's no EFI designator for ZFS in the standard, so > + * we'll need to invent one, but its decoding will be handled in > + * a separate function. > + */ > + if (mnt[i].f_mntfromname[0] !=3D '/') > + continue; > + > + /* > + * First see if it is directly attached > + */ > + if (strcmp(provider->lg_name, mnt[i].f_mntfromname + 5) =3D=3D 0) > + break; > + > + /* > + * Next see if it is attached via one of the physical disk's > + * labels. > + */ > + LIST_FOREACH(cp, &provider->lg_consumers, lg_consumer) { > + pp =3D cp->lg_provider; > + if (strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) !=3D 0) > + continue; > + if (strcmp(g_device_path(pp->lg_name), mnt[i].f_mntfromname) > =3D=3D 0) > + goto break2; > + } > + /* Not the one, try the next mount point */ > + } > +break2: > + > + /* > + * No mountpoint found, no absolute path possible > + */ > + if (i >=3D n) > + goto errout; > + > + /* > + * Construct absolute path and we're finally done. > + */ > + if (strcmp(mnt[i].f_mntonname, "/") =3D=3D 0) > + asprintf(abspath, "/%s", *relpath); > + else > + asprintf(abspath, "%s/%s", mnt[i].f_mntonname, *relpath); > + > +errout: > + if (rv !=3D 0) { > + free(*dev); > + *dev =3D NULL; > + free(*relpath); > + *relpath =3D NULL; > + } > + return (rv); > +} > + > +/* > + * Translate the passed in device_path to a unix path via the following > + * algorithm. > + * > + * If dp, dev or path NULL, return EDOOFUS. XXX wise? > + * > + * Set *path =3D NULL; *dev =3D NULL; > + * > + * Walk through the device_path until we find either a media device path. > + * Return EINVAL if not found. Return EINVAL if walking dp would > + * land us more than sanity size away from the start (4k). > + * > + * If we find a media descriptor, we search through the geom mesh to see= if we > + * can find a matching node. If no match is found in the mesh that match= es, > + * return ENXIO. > + * > + * Once we find a matching node, we search to see if there is a filesyst= em > + * mounted on it. If we find nothing, then search each of the devices th= at are > + * mounted to see if we can work up the geom tree to find the matching n= ode. if > + * we still can't find anything, *dev =3D sprintf("/dev/%s", provider_na= me > + * of the original node we found), but return ENOTBLK. > + * > + * Record the dev of the mountpoint in *dev. > + * > + * Once we find something, check to see if the next node in the device p= ath is > + * the end of list. If so, return the mountpoint. > + * > + * If the next node isn't a File path node, return EFTYPE. > + * > + * Extract the path from the File path node(s). translate any \ file sep= arators > + * to /. Append the result to the mount point. Copy the resulting path i= nto > + * *path. Stat that path. If it is not found, return the errorr from st= at. > + * > + * Finally, check to make sure the resulting path is still on the same > + * device. If not, return ENODEV. > + * > + * Otherwise return 0. > + * > + * The dev or full path that's returned is malloced, so needs to be free= d when > + * the caller is done about it. Unlike many other functions, we can retu= rn data > + * with an error code, so pay attention. > + */ > +int > +efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **relpa= th, char > **abspath) +{ > + const_efidp walker; > + struct gmesh mesh; > + int rv =3D 0; > + > + /* > + * Sanity check args, fail early > + */ > + if (dp =3D=3D NULL || dev =3D=3D NULL || relpath =3D=3D NULL || abspath= =3D=3D NULL) > + return (EDOOFUS); > + > + *dev =3D NULL; > + *relpath =3D NULL; > + *abspath =3D NULL; > + > + /* > + * Find the first media device path we can. If we go too far, > + * assume the passed in device path is bogus. If we hit the end > + * then we didn't find a media device path, so signal that error. > + */ > + walker =3D dp; > + while (DevicePathType(walker) !=3D MEDIA_DEVICE_PATH && > + DevicePathType(walker) !=3D END_DEVICE_PATH_TYPE) { > + walker =3D (const_efidp)NextDevicePathNode(walker); > + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) > + return (EINVAL); > + } > + if (DevicePathType(walker) !=3D MEDIA_DEVICE_PATH) > + return (EINVAL); > + > + /* > + * There's several types of media paths. We're only interested in the > + * hard disk path, as it's really the only relevant one to booting. The > + * CD path just might also be relevant, and would be easy to add, but > + * isn't supported. A file path too is relevant, but at this stage, it's > + * premature because we're trying to translate a specification for a de= vice > + * and path on that device into a unix path, or at the very least, a > + * geom device : path-on-device. > + * > + * Also, ZFS throws a bit of a monkey wrench in here since it doesn't h= ave > + * a device path type (it creates a new virtual device out of one or mo= re > + * storage devices). > + * > + * For all of them, we'll need to know the geoms, so allocate / free the > + * geom mesh here since it's safer than doing it in each sub-function > + * which may have many error exits. > + */ > + if (geom_gettree(&mesh)) > + return (ENOMEM); > + > + rv =3D EINVAL; > + if (DevicePathSubType(walker) =3D=3D MEDIA_HARDDRIVE_DP) > + rv =3D efi_hd_to_unix(&mesh, walker, dev, relpath, abspath); > +#ifdef notyet > + else if (is_cdrom_device(walker)) > + rv =3D efi_cdrom_to_unix(&mesh, walker, dev, relpath, abspath); > + else if (is_floppy_device(walker)) > + rv =3D efi_floppy_to_unix(&mesh, walker, dev, relpath, abspath); > + else if (is_zpool_device(walker)) > + rv =3D efi_zpool_to_unix(&mesh, walker, dev, relpath, abspath); > +#endif > + geom_deletetree(&mesh); > + > + return (rv); > +} > + > +/* > + * Construct the EFI path to a current unix path as follows. > + * > + * The path may be of one of three forms: > + * 1) /path/to/file -- full path to a file. The file need not be present, > + * but /path/to must be. It must reside on a local filesystem > + * mounted on a GPT or MBR partition. > + * 2) //path/to/file -- Shorthand for 'On the EFI partition, \path\to\fi= le' > + * where 'The EFI Partition' is a partiton that's type is 'efi' > + * on the same disk that / is mounted from. If there are multiple > + * or no 'efi' parittions on that disk, or / isn't on a disk that > + * we can trace back to a physical device, an error will result > + * 3) [/dev/]geom-name:/path/to/file -- Use the specified partition > + * (and it must be a GPT or MBR partition) with the specified > + * path. The latter is not authenticated. > + * all path forms translate any \ characters to / before further process= ing. > + * When a file path node is created, all / characters are translated back > + * to \. > + * > + * For paths of the first form: > + * find where the filesystem is mount (either the file directly, or > + * its parent directory). > + * translate any logical device name (eg lable) to a physical one > + * If not possible, return ENXIO > + * If the physical path is unsupported (Eg not on a GPT or MBR disk), > + * return ENXIO > + * Create a media device path node. > + * append the relative path from the mountpoint to the media device node > + * as a file path. > + * > + * For paths matching the second form: > + * find the EFI partition corresponding to the root fileystem. > + * If none found, return ENXIO > + * Create a media device path node for the found partition > + * Append a File Path to the end for the rest of the file. > + * > + * For paths of the third form > + * Translate the geom-name passed in into a physical partition > + * name. > + * Return ENXIO if the translation fails > + * Make a media device path for it > + * append the part after the : as a File path node. > + */ > + > +static char * > +path_to_file_dp(const char *relpath) > +{ > + char *rv; > + > + asprintf(&rv, "File(%s)", relpath); > + return rv; > +} > + > +static char * > +find_geom_efi_on_root(struct gmesh *mesh) > +{ > + struct statfs buf; > + const char *dev; > + struct gprovider *pp; > +// struct ggeom *disk; > + struct gconsumer *cp; > + > + /* > + * Find /'s geom. Assume it's mounted on /dev/ and filter out all the > + * filesystems that aren't. > + */ > + if (statfs("/", &buf) !=3D 0) > + return (NULL); > + dev =3D buf.f_mntfromname; > + if (*dev !=3D '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != =3D 0) > + return (NULL); > + dev +=3D sizeof(_PATH_DEV) -1; > + pp =3D find_provider_by_name(mesh, dev); > + if (pp =3D=3D NULL) > + return (NULL); > + > + /* > + * If the provider is a LABEL, find it's outer PART class, if any. We > + * only operate on partitions. > + */ > + if (strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) =3D=3D 0) { > + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { > + if (strcmp(cp->lg_provider->lg_geom->lg_class->lg_name, > G_PART) =3D=3D 0) { > + pp =3D cp->lg_provider; > + break; > + } > + } > + } > + if (strcmp(pp->lg_geom->lg_class->lg_name, G_PART) !=3D 0) > + return (NULL); > + > +#if 0 > + /* This doesn't work because we can't get the data to walk UP the tree = it > seems */ + > + /* > + * Now that we've found the PART that we have mounted as root, find the > + * first efi typed partition that's a peer, if any. > + */ > + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { > + if (strcmp(cp->lg_provider->lg_geom->lg_class->lg_name, G_DISK) =3D=3D= 0) { > + disk =3D cp->lg_provider->lg_geom; > + break; > + } > + } > + if (disk =3D=3D NULL) /* This is very bad -- old nested partitions -- no > support ? */ > + return (NULL); > +#endif > + > +#if 0 > + /* This doesn't work because we can't get the data to walk UP the tree = it > seems */ + > + /* > + * With the disk provider, we can look for its consumers to see if any = are the > proper type. > + */ > + LIST_FOREACH(pp, &disk->lg_consumer, lg_consumer) { > + type =3D geom_pp_attr(mesh, pp, "type"); > + if (type =3D=3D NULL) > + continue; > + if (strcmp(type, "efi") !=3D 0) > + continue; > + efimedia =3D geom_pp_attr(mesh, pp, "efimedia"); > + if (efimedia =3D=3D NULL) > + return (NULL); > + return strdup(efimedia); > + } > +#endif > + return (NULL); > +} > + > + > +static char * > +find_geom_efimedia(struct gmesh *mesh, const char *dev) > +{ > + struct gprovider *pp; > + const char *efimedia; > + > + pp =3D find_provider_by_name(mesh, dev); > + if (pp =3D=3D NULL) > + return (NULL); > + efimedia =3D geom_pp_attr(mesh, pp, "efimedia"); > + if (efimedia =3D=3D NULL) > + return (NULL); > + return strdup(efimedia); > +} > + > +static int > +build_dp(const char *efimedia, const char *relpath, efidp *dp) > +{ > + char *fp, *dptxt =3D NULL; > + int rv =3D 0; > + efidp out; > + size_t len; > + > + fp =3D path_to_file_dp(relpath); > + if (fp =3D=3D NULL) { > + rv =3D ENOMEM; > + goto errout; > + } > + > + asprintf(&dptxt, "%s/%s", efimedia, fp); > + out =3D malloc(8192); > + len =3D efidp_parse_device_path(dptxt, out, 8192); > + if (len > 8192) { > + rv =3D ENOMEM; > + goto errout; > + } > + if (len =3D=3D 0) { > + rv =3D EINVAL; > + goto errout; > + } > + > + *dp =3D out; > +errout: > + if (rv) { > + free(out); > + } > + free(dptxt); > + free(fp); > + > + return rv; > +} > + > +/* Handles //path/to/file */ > +/* > + * Which means: find the disk that has /. Then look for a EFI partition > + * and use that for the efimedia and /path/to/file as relative to that. > + * Not sure how ZFS will work here since we can't easily make the leap > + * to the geom from the zpool. > + */ > +static int > +efipart_to_dp(struct gmesh *mesh, char *path, efidp *dp) > +{ > + char *efimedia =3D NULL; > + int rv; > + > + efimedia =3D find_geom_efi_on_root(mesh); > +#ifdef notyet > + if (efimedia =3D=3D NULL) > + efimedia =3D find_efi_on_zfsroot(dev); > +#endif > + if (efimedia =3D=3D NULL) { > + rv =3D ENOENT; > + goto errout; > + } > + > + rv =3D build_dp(efimedia, path + 1, dp); > +errout: > + free(efimedia); > + > + return rv; > +} > + > +/* Handles [/dev/]geom:[/]path/to/file */ > +/* Handles zfs-dataset:[/]path/to/file (this may include / ) */ > +static int > +dev_path_to_dp(struct gmesh *mesh, char *path, efidp *dp) > +{ > + char *relpath, *dev, *efimedia =3D NULL; > + int rv =3D 0; > + > + relpath =3D strchr(path, ':'); > + assert(relpath !=3D NULL); > + *relpath++ =3D '\0'; > + > + dev =3D path; > + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) =3D=3D 0) > + dev +=3D sizeof(_PATH_DEV) -1; > + > + efimedia =3D find_geom_efimedia(mesh, dev); > +#ifdef notyet > + if (efimedia =3D=3D NULL) > + find_zfs_efi_media(dev); > +#endif > + if (efimedia =3D=3D NULL) { > + rv =3D ENOENT; > + goto errout; > + } > + rv =3D build_dp(efimedia, relpath, dp); > +errout: > + free(efimedia); > + > + return rv; > +} > + > +/* Handles /path/to/file */ > +static int > +path_to_dp(struct gmesh *mesh, char *path, efidp *dp) > +{ > + struct statfs buf; > + char *rp =3D NULL, *ep, *dev, *efimedia =3D NULL; > + int rv =3D 0; > + > + rp =3D realpath(path, NULL); > + if (rp =3D=3D NULL) { > + rv =3D errno; > + goto errout; > + } > + > + if (statfs(rp, &buf) !=3D 0) { > + rv =3D errno; > + goto errout; > + } > + > + dev =3D buf.f_mntfromname; > + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) =3D=3D 0) > + dev +=3D sizeof(_PATH_DEV) -1; > + ep =3D rp + strlen(buf.f_mntonname); > + > + efimedia =3D find_geom_efimedia(mesh, dev); > +#ifdef notyet > + if (efimedia =3D=3D NULL) > + find_zfs_efi_media(dev); > +#endif > + if (efimedia =3D=3D NULL) { > + rv =3D ENOENT; > + goto errout; > + } > + > + rv =3D build_dp(efimedia, ep, dp); > +errout: > + free(efimedia); > + free(rp); > + if (rv !=3D 0) { > + free(*dp); > + } > + return (rv); > +} > + > +int > +efivar_unix_path_to_device_path(const char *path, efidp *dp) > +{ > + char *modpath =3D NULL, *cp; > + int rv =3D ENOMEM; > + struct gmesh mesh; > + > + /* > + * Fail early for clearly bogus things > + */ > + if (path =3D=3D NULL || dp =3D=3D NULL) > + return (EDOOFUS); > + > + /* > + * We'll need the goem mesh to grovel through it to find the > + * efimedia attribute for any devices we find. Grab it here > + * and release it to simplify the error paths out of the > + * subordinate functions > + */ > + if (geom_gettree(&mesh)) > + return (errno); > + > + /* > + * Convert all \ to /. We'll convert them back again when > + * we encode the file. Boot loaders are expected to cope. > + */ > + modpath =3D strdup(path); > + if (modpath =3D=3D NULL) > + goto out; > + for (cp =3D modpath; *cp; cp++) > + if (*cp =3D=3D '\\') > + *cp =3D '/'; > + > + if (modpath[0] =3D=3D '/' && modpath[1] =3D=3D '/') /* Handle //foo/bar= /baz */ > + rv =3D efipart_to_dp(&mesh, modpath, dp); > + else if (strchr(modpath, ':')) /* Handle dev:/bar/baz */ > + rv =3D dev_path_to_dp(&mesh, modpath, dp); > + else /* Handle /a/b/c */ > + rv =3D path_to_dp(&mesh, modpath, dp); > + > +out: > + geom_deletetree(&mesh); > + free(modpath); > + > + return (rv); > +} >=20 > Modified: head/lib/libefivar/efivar-dp.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:07 2017 (r326457) > +++ head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:19 2017 (r326458) > @@ -60,10 +60,13 @@ typedef const efidp_data *const_efidp; > */ > ssize_t efidp_format_device_path(char *buf, size_t len, const_efidp dp, > ssize_t max); > -ssize_t efidp_format_device_path_node(char *buf, size_t len, const_efidp= dp, > - ssize_t max); > +ssize_t efidp_format_device_path_node(char *buf, size_t len, const_efidp= dp); > ssize_t efidp_parse_device_path(char *path, efidp out, size_t max); > +char * efidp_extract_file_path(const_efidp dp); > =20 > size_t efidp_size(const_efidp); > + > +int efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **r= elpath, char > **abspath); +int efivar_unix_path_to_device_path(const char *path, efidp = *dp); > =20 > #endif /* _EFIVAR_DP_H_ */ > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" It seems this broke buildworld, as my attempt to build fails with this erro= r on r326459: [...] Building /usr/obj/usr/src/amd64.amd64/usr.sbin/bsnmpd/modules/snmp_pf/pf_sn= mp.pico --- all_subdir_usr.sbin/efivar --- --- efivar --- /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libefivar.so: undefined reference = to `geom_deletetree' /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libefivar.so: un= defined reference to `g_device_path' /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libef= ivar.so: undefined reference to `geom_gettree' cc: error: linker command failed with= exit code 1 (use -v to see invocation) *** [efivar] Error code 1 make[4]: stopped in /usr/src/usr.sbin/efivar .ERROR_TARGET=3D'efivar' regards, Oliver --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/AveLuR8PmdXW5NE4YkT/Zgu Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWiKM6QAKCRDS528fyFhY lMQkAf9Na3V+e26DGH9GU7lArdaqltXbtYh08PEE4gCZ95ZCmBzNmPzPJcZUbRkz nrHpC7n4OjsuLEktxZiYGgXxcgg/Af0e5F3o3v8uc7jhPlJYpYKWSaXWDzaEq+ih SJz5qD11YUuQVqmXv1YOSho98yxwvX4xGTo6dhFuMF+uT8BI8dDl =Egq9 -----END PGP SIGNATURE----- --Sig_/AveLuR8PmdXW5NE4YkT/Zgu-- From owner-svn-src-head@freebsd.org Sat Dec 2 13:12:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 150C4DFEEC4; Sat, 2 Dec 2017 13:12:02 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D326C6F67B; Sat, 2 Dec 2017 13:12:01 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2DC1Ps063450; Sat, 2 Dec 2017 13:12:01 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2DC147063449; Sat, 2 Dec 2017 13:12:01 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201712021312.vB2DC147063449@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sat, 2 Dec 2017 13:12:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326471 - head/share/man/man5 X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/share/man/man5 X-SVN-Commit-Revision: 326471 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 13:12:02 -0000 Author: trasz Date: Sat Dec 2 13:12:00 2017 New Revision: 326471 URL: https://svnweb.freebsd.org/changeset/base/326471 Log: Document autofs(6) sysctl variables. PR: 219414 MFC after: 2 weeks Modified: head/share/man/man5/autofs.5 Modified: head/share/man/man5/autofs.5 ============================================================================== --- head/share/man/man5/autofs.5 Sat Dec 2 12:47:34 2017 (r326470) +++ head/share/man/man5/autofs.5 Sat Dec 2 13:12:00 2017 (r326471) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 3, 2014 +.Dd December 2, 2017 .Dt AUTOFS 5 .Os .Sh NAME @@ -67,6 +67,45 @@ file systems: Mount options for all filesystems specified in the map entry. .It Cm master_prefix Filesystem mountpoint prefix. +.El +.Sh SYSCTL VARIABLES +The following variables are available as both +.Xr sysctl 8 +variables and +.Xr loader 8 +tunables: +.Bl -tag -width indent +.It Va vfs.autofs.debug +Verbosity level for log messages from the +.Nm +driver. +Set to 0 to disable logging or 1 to warn about potential problems. +Larger values enable debugging output. +Defaults to 1. +.It Va vfs.autofs.interruptible +Set to 1 to allow mount requests to be interrupted by signal. +Defaults to 1. +.It Va vfs.autofs.retry_delay +Number of seconds before retrying mount requests. +Defaults to 1. +.It Va vfs.autofs.retry_attempts +Number of attempts before failing mount. +Defaults to 3. +.It Va vfs.autofs.cache +Number of seconds to wait before reinvoking +.Xr automountd 8 +for any given file or directory. +Defaults to 600. +.It Va vfs.autofs.timeout +Number of seconds to wait for +.Xr automountd 8 +to handle the mount request. +Defaults to 30. +.It Va vfs.autofs.mount_on_stat +Set to 1 to trigger mount on +.Xr stat 2 +on mountpoint. +Defaults to 0. .El .Sh EXAMPLES To unmount all mounted From owner-svn-src-head@freebsd.org Sat Dec 2 15:25:47 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10932E5D106; Sat, 2 Dec 2017 15:25:47 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1EC9739FB; Sat, 2 Dec 2017 15:25:46 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2FPj7g019121; Sat, 2 Dec 2017 15:25:45 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2FPjqH019120; Sat, 2 Dec 2017 15:25:45 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712021525.vB2FPjqH019120@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Sat, 2 Dec 2017 15:25:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326472 - head/usr.sbin/efivar X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/usr.sbin/efivar X-SVN-Commit-Revision: 326472 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 15:25:47 -0000 Author: imp Date: Sat Dec 2 15:25:45 2017 New Revision: 326472 URL: https://svnweb.freebsd.org/changeset/base/326472 Log: Add forgotten libgeom. Sponsored by: Netflix Modified: head/usr.sbin/efivar/Makefile Modified: head/usr.sbin/efivar/Makefile ============================================================================== --- head/usr.sbin/efivar/Makefile Sat Dec 2 13:12:00 2017 (r326471) +++ head/usr.sbin/efivar/Makefile Sat Dec 2 15:25:45 2017 (r326472) @@ -3,7 +3,7 @@ PROG= efivar MAN= efivar.8 -LIBADD= efivar +LIBADD= efivar geom SRCS= efivar.c efiutil.c From owner-svn-src-head@freebsd.org Sat Dec 2 15:35:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73CA4E5D3B2; Sat, 2 Dec 2017 15:35:24 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D0CD973E76; Sat, 2 Dec 2017 15:35:23 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([77.180.127.235]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LeBPM-1etAJb26NY-00pwZo; Sat, 02 Dec 2017 16:35:15 +0100 Date: Sat, 2 Dec 2017 16:34:42 +0100 From: "O. Hartmann" To: Warner Losh Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326472 - head/usr.sbin/efivar Message-ID: <20171202163442.589ce432@thor.intern.walstatt.dynvpn.de> In-Reply-To: <201712021525.vB2FPjqH019120@repo.freebsd.org> References: <201712021525.vB2FPjqH019120@repo.freebsd.org> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/Yw7eWn.n1OkzWjZlBo=x2py"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:qEgE4Mtc0BtAfj1IDYlfJSAnGTJD3imi2wGEOQpMiHSPZL0zM5S BmfJCMcRMfkGL2/mImcdALzQ8dFjRf50Tv6HZ5AUFHT158dAQJEKRDDKZDnQbCwWh7eu+HS 5VN88pvcXnqOmjtI9b0S2t6bhkjJrJojT9jybdXAXsvMARAr2NIjhzsrx4RJhfp1dqH85j2 8qRzlJ1KHVUwVMmbCDO2Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:1E7Gjgwlizc=:0yvP/vAlwDERk67JQk0DVz F1gmN9xGnG+hr/d3PVNZ03/kUyCaYGVQSQTgQ2oNEzIpCjClhYhuAXBrP2J5JeA2F8GZ4Hzys 1IIi2ArlBOErPNO0kCA9QMKBACDHf9e16+hxUgbkPMWUZN5ox4JT47RIP9jdmCIEfZNQUVwjN ah/uaxX32y+Hm7NyAf4uKnxVcDSTNou7F0adWlNeCBbEA2H0K52sV6utQNN9j5W7qSLIMIPon EQQVbL5qfoSHNFxmp0B27kUDGcoMp/yNIYSSr1qIpQM4dlAzmgfIHlng7lncvtj5ZzBmwa/u0 nN4ZX6JqXE8gf9wBj9X/nnqD2kTCt7i9p1RmXjRbMkWdqwWVrJlW17qa3CqGyUOEUULhL+75J YoYWjQ2mnLQGNSejcrF+AEyLHfBLLYz2AO2GJ8YVuqqey/9SfrcIQKbkiJjd77lLho1tyQzsM 53+nkq+twiIMDSXaPkq2/Dps12kbGec+gEIZNH9v9YXYnaXL59Ne6CDP4JtcfOU2fWIjLpeP1 8ActhNTOsWnCSYQKvMDe5LQ6AKZ67EmuAuXqPqx/tKlKby5Y6wB+BBe49H3l5EEr9JzwqYayy SIZZSzpPLB3iOtHkOlvytu/UYd2lGQowgeB5cj/CfLuit50uK7ykGXyDGOLiC1+fTRHW6O2rD Reaxt0wW0Mrl0TQKvwbtOqjZcWQ9yt8NrcqgE1TZff6ysb7+IR8iMN6cwJr+/DIvKz+N784+0 0qOvMRkT6GbA1LUzk6NmFWHHgDdtdPhUoXkXKHI79OzDpS7a4ytyorpwuOso3bSTdyj2kH4j2 shQN6JKz/HJqiUwIbKc2yETzXFzmU1Sbw4o58CqannoWONdxn4= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 15:35:24 -0000 --Sig_/Yw7eWn.n1OkzWjZlBo=x2py Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Sat, 2 Dec 2017 15:25:45 +0000 (UTC) Warner Losh schrieb: > Author: imp > Date: Sat Dec 2 15:25:45 2017 > New Revision: 326472 > URL: https://svnweb.freebsd.org/changeset/base/326472 >=20 > Log: > Add forgotten libgeom. > =20 > Sponsored by: Netflix >=20 > Modified: > head/usr.sbin/efivar/Makefile >=20 > Modified: head/usr.sbin/efivar/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/usr.sbin/efivar/Makefile Sat Dec 2 13:12:00 2017 (r326471) > +++ head/usr.sbin/efivar/Makefile Sat Dec 2 15:25:45 2017 (r326472) > @@ -3,7 +3,7 @@ > PROG=3D efivar > MAN=3D efivar.8 > =20 > -LIBADD=3D efivar > +LIBADD=3D efivar geom > =20 > SRCS=3D efivar.c efiutil.c > =20 > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" Thank you very much. Kind regards, oh --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/Yw7eWn.n1OkzWjZlBo=x2py Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWiLIEgAKCRDS528fyFhY lBBXAf9pbtynPYcWJb/Tu1hIupCE0axq2Xa92Ddg86u87xoVy+bk+/GBu9YcOu7z ygW3ytlqWw4i9IPyG0VBlcqBydZBAgCcOXoRkW6j5nIbmwf5XVkwbFZ6k77X83vi Sl3ViTwiTNNhYza7zaAMLq/JusJ0szq9oSvlD5Q1mxeKIWtTKbJ1 =3u7X -----END PGP SIGNATURE----- --Sig_/Yw7eWn.n1OkzWjZlBo=x2py-- From owner-svn-src-head@freebsd.org Sat Dec 2 15:38:20 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51015E5D4CB for ; Sat, 2 Dec 2017 15:38:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B14B7400F for ; Sat, 2 Dec 2017 15:38:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22e.google.com with SMTP id h12so14318267iof.6 for ; Sat, 02 Dec 2017 07:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=HxvoZEHOeP2UtZ4Y9szu3EMCOkN+DHDZskO7TF/cFy8=; b=aGsXFYWTMrChREQyEg1EDN66yte5FM8T2roF64jWr83X/pzfbAGethkaci3D9BuM6R K+TPe6O9DMpgkMaivsE1mrMoVvMjP+QG1HEuHw5k0mKlgQFmFbJvmrfaVw9GfS7yu+KI dHYTK0S1BOwawBONLdEApJ0sOrDu9O3anJUVVI9BaOY9ZR0P7XaVfByKLM8+a4tna1dX YOMoCIdV0ropEM3YX5JPnGR0ZzXigx5VmvUVPg1woaVxFhKZPyIDvcByr6FfjJasLRY7 bglmXpFNBw4mHQAZCCre7TGrUQh1NrqHlw4MONneq/R7ti3OMhLYZCJo05LOKq0qgqr0 2k1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=HxvoZEHOeP2UtZ4Y9szu3EMCOkN+DHDZskO7TF/cFy8=; b=jaCVbsPRuD08BxlE0wT920B3+yWv8wzp0q3fKJP3OO1gfOylXnRvblNv3xgTXIkiOH JLnTy/wWr+JZzhbIm6Yd95MsYSa8wrP4Ho8aJheq2fGinWSg5JwwqM/Ydy51mz7NxLeN oSTPt5hmwCfiJO8ZEomBOj4JuisoSnQURQEQiKBtwSftbwWR6BjhbA/CgOaWVE8mDNjk AR9k2vySNqf35F/f5/uBKUuXhVeI9sWcPh8DV+lGmY4zBMKZBhgTf0haJQDHD6Mj2PIr SgaSbSh9LUjsx4TsFjjfdiZohDUCWVT+tka1qX/1XpL7Iv2QludWPxKPUC8puu4OmRZs rZMg== X-Gm-Message-State: AJaThX4XXeL/EP12/CobqvWqyAN3Cx2S1hIb4tPh2LPwUDA/SE0Rxiiw MXM9ROxOcYAK9jwMVtaOBq9q5RbHwGFMUQuhLnbU5A== X-Google-Smtp-Source: AGs4zMatU6TfO89N+YytUKQ34Wf30c61NxxxCw+6acyNq3UWrVYdgjW8XII0Pr2RtsMblS0r1C4qx/OQCBe9fTlqL7E= X-Received: by 10.107.104.18 with SMTP id d18mr15803225ioc.136.1512229098978; Sat, 02 Dec 2017 07:38:18 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Sat, 2 Dec 2017 07:38:17 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <20171202122217.4e40a80f@thor.intern.walstatt.dynvpn.de> References: <201712020729.vB27TJTE015093@repo.freebsd.org> <20171202122217.4e40a80f@thor.intern.walstatt.dynvpn.de> From: Warner Losh Date: Sat, 2 Dec 2017 08:38:17 -0700 X-Google-Sender-Auth: RT7F3iCBPhzITltyPAEei9tmSrc Message-ID: Subject: Re: svn commit: r326458 - head/lib/libefivar To: "O. Hartmann" Cc: Warner Losh , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 15:38:20 -0000 On Sat, Dec 2, 2017 at 4:22 AM, O. Hartmann wrote: > Am Sat, 2 Dec 2017 07:29:19 +0000 (UTC) > Warner Losh schrieb: > > > Author: imp > > Date: Sat Dec 2 07:29:19 2017 > > New Revision: 326458 > > URL: https://svnweb.freebsd.org/changeset/base/326458 > > > > Log: > > Create a function to translate UEFI paths to unix paths > > > > efivar_device_path_to_unix_path translates from UEFI to Unix > > efivar_unix_path_to_device_path translates from Unix to UEFI > > > > At present, only HD() device types are supported (both GPT and > > MBR). CdRom and floppy devices aren't supported. ZFS isn't supported > > because there's no way in the UEFI standard to specify a ZFS datastore. > > Network devices aren't supported either. > > > > Three forms of Unix path are accepted: /path/to/file (for a mounted > > filesystem), //path/to/file (uses the EFI partition on the same disk > > as /), and dev:/path/to/file (for unmounted filesystem). Two forms are > > produced (the first and last). > > > > Sponsored by: Netflix > > > > Added: > > head/lib/libefivar/efivar-dp-xlate.c (contents, props changed) > > Modified: > > head/lib/libefivar/Makefile > > head/lib/libefivar/efivar-dp-format.c > > head/lib/libefivar/efivar-dp.h > > > > Modified: head/lib/libefivar/Makefile > > ============================================================ > ================== > > --- head/lib/libefivar/Makefile Sat Dec 2 07:29:07 2017 > (r326457) > > +++ head/lib/libefivar/Makefile Sat Dec 2 07:29:19 2017 > (r326458) > > @@ -35,6 +35,7 @@ PACKAGE=lib${LIB} > > LIB= efivar > > SRCS= efivar.c efichar.c efivar-dp-format.c \ > > efivar-dp-parse.c \ > > + efivar-dp-xlate.c \ > > uefi-guid.c uefi-dputil.c > > INCS= efivar.h efivar-dp.h > > SHLIB_MAJOR= 1 > > > > Modified: head/lib/libefivar/efivar-dp-format.c > > ============================================================ > ================== > > --- head/lib/libefivar/efivar-dp-format.c Sat Dec 2 07:29:07 2017 > > (r326457) +++ head/lib/libefivar/efivar-dp-format.c Sat Dec 2 > 07:29:19 > > 2017 (r326458) @@ -2432,7 +2432,7 @@ efidp_format_device_path(char > *buf, size_t > > len, const_ } > > > > ssize_t > > -efidp_format_device_path_node(char *buf, size_t len, const_efidp dp, > ssize_t max) > > +efidp_format_device_path_node(char *buf, size_t len, const_efidp dp) > > { > > char *str; > > ssize_t retval; > > @@ -2453,4 +2453,15 @@ efidp_size(const_efidp dp) > > { > > > > return GetDevicePathSize(__DECONST(EFI_DEVICE_PATH_PROTOCOL *, > dp)); > > +} > > + > > +char * > > +efidp_extract_file_path(const_efidp dp) > > +{ > > + const FILEPATH_DEVICE_PATH *fp; > > + char *name = NULL; > > + > > + fp = (const void *)dp; > > + ucs2_to_utf8(fp->PathName, &name); > > + return name; > > } > > > > Added: head/lib/libefivar/efivar-dp-xlate.c > > ============================================================ > ================== > > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > > +++ head/lib/libefivar/efivar-dp-xlate.c Sat Dec 2 07:29:19 2017 > > (r326458) @@ -0,0 +1,715 @@ > > +/*- > > + * Copyright (c) 2017 Netflix, Inc. > > + * All rights reserved. > > + * > > + * Redistribution and use in source and binary forms, with or without > > + * modification, are permitted provided that the following conditions > > + * are met: > > + * 1. Redistributions of source code must retain the above copyright > > + * notice, this list of conditions and the following disclaimer > > + * in this position and unchanged. > > + * 2. Redistributions in binary form must reproduce the above copyright > > + * notice, this list of conditions and the following disclaimer in > the > > + * documentation and/or other materials provided with the > distribution. > > + * > > + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR > > + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED > WARRANTIES > > + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE > DISCLAIMED. > > + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, > > + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, > BUT > > + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF > USE, > > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > USE OF > > + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > + */ > > + > > +#include > > +__FBSDID("$FreeBSD$"); > > + > > +#include > > +#include > > +#include > > + > > +#undef MAX > > +#undef MIN > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "efichar.h" > > + > > +#include "efi-osdep.h" > > +#include "efivar-dp.h" > > + > > +#include "uefi-dplib.h" > > + > > +#define MAX_DP_SANITY 4096 /* Biggest device path in > bytes */ > > +#define MAX_DP_TEXT_LEN 4096 /* Longest string rep of > dp */ > > + > > +#define G_PART "PART" > > +#define G_LABEL "LABEL" > > +#define G_DISK "DISK" > > + > > +static const char * > > +geom_pp_attr(struct gmesh *mesh, struct gprovider *pp, const char *attr) > > +{ > > + struct gconfig *conf; > > + > > + LIST_FOREACH(conf, &pp->lg_config, lg_config) { > > + if (strcmp(conf->lg_name, attr) != 0) > > + continue; > > + return (conf->lg_val); > > + } > > + return (NULL); > > +} > > + > > +static struct gprovider * > > +find_provider_by_efimedia(struct gmesh *mesh, const char *efimedia) > > +{ > > + struct gclass *classp; > > + struct ggeom *gp; > > + struct gprovider *pp; > > + const char *val; > > + > > + /* > > + * Find the partition class so we can search it... > > + */ > > + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { > > + if (strcasecmp(classp->lg_name, G_PART) == 0) > > + break; > > + } > > + if (classp == NULL) > > + return (NULL); > > + > > + /* > > + * Each geom will have a number of providers, search each > > + * one of them for the efimedia that matches. > > + */ > > + /* XXX just used gpart class since I know it's the only one, but > maybe I > > should search all classes */ > > + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { > > + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { > > + val = geom_pp_attr(mesh, pp, "efimedia"); > > + if (val == NULL) > > + continue; > > + if (strcasecmp(efimedia, val) == 0) > > + return (pp); > > + } > > + } > > + > > + return (NULL); > > +} > > + > > +static struct gprovider * > > +find_provider_by_name(struct gmesh *mesh, const char *name) > > +{ > > + struct gclass *classp; > > + struct ggeom *gp; > > + struct gprovider *pp; > > + > > + LIST_FOREACH(classp, &mesh->lg_class, lg_class) { > > + LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { > > + LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { > > + if (strcmp(pp->lg_name, name) == 0) > > + return (pp); > > + } > > + } > > + } > > + > > + return (NULL); > > +} > > + > > + > > +static int > > +efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char > **relpath, char > > **abspath) +{ > > + int rv = 0, n, i; > > + const_efidp media, file, walker; > > + size_t len, mntlen; > > + char buf[MAX_DP_TEXT_LEN]; > > + char *pwalk; > > + struct gprovider *pp, *provider; > > + struct gconsumer *cp; > > + struct statfs *mnt; > > + > > + walker = media = dp; > > + > > + /* > > + * Now, we can either have a filepath node next, or the end. > > + * Otherwise, it's an error. > > + */ > > + walker = (const_efidp)NextDevicePathNode(walker); > > + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) > > + return (EINVAL); > > + if (DevicePathType(walker) == MEDIA_DEVICE_PATH && > > + DevicePathSubType(walker) == MEDIA_FILEPATH_DP) > > + file = walker; > > + else if (DevicePathType(walker) == MEDIA_DEVICE_PATH && > > + DevicePathType(walker) == END_DEVICE_PATH_TYPE) > > + file = NULL; > > + else > > + return (EINVAL); > > + > > + /* > > + * Format this node. We're going to look for it as a efimedia > > + * attribute of some geom node. Once we find that node, we use it > > + * as the device it comes from, at least provisionally. > > + */ > > + len = efidp_format_device_path_node(buf, sizeof(buf), media); > > + if (len > sizeof(buf)) > > + return (EINVAL); > > + > > + pp = find_provider_by_efimedia(mesh, buf); > > + if (pp == NULL) { > > + rv = ENOENT; > > + goto errout; > > + } > > + > > + *dev = strdup(pp->lg_name); > > + if (*dev == NULL) { > > + rv = ENOMEM; > > + goto errout; > > + } > > + > > + /* > > + * No file specified, just return the device. Don't even look > > + * for a mountpoint. XXX Sane? > > + */ > > + if (file == NULL) > > + goto errout; > > + > > + /* > > + * Now extract the relative path. The next node in the device path > should > > + * be a filesystem node. If not, we have issues. > > + */ > > + *relpath = efidp_extract_file_path(file); > > + if (*relpath == NULL) { > > + rv = ENOMEM; > > + goto errout; > > + } > > + for (pwalk = *relpath; *pwalk; pwalk++) > > + if (*pwalk == '\\') > > + *pwalk = '/'; > > + > > + /* > > + * To find the absolute path, we have to look for where we're > mounted. > > + * We only look a little hard, since looking too hard can come up > with > > + * false positives (imagine a graid, one of whose devices is *dev). > > + */ > > + n = getfsstat(NULL, 0, MNT_NOWAIT) + 1; > > + if (n < 0) { > > + rv = errno; > > + goto errout; > > + } > > + mntlen = sizeof(struct statfs) * n; > > + mnt = malloc(mntlen); > > + n = getfsstat(mnt, mntlen, MNT_NOWAIT); > > + if (n < 0) { > > + rv = errno; > > + goto errout; > > + } > > + provider = pp; > > + for (i = 0; i < n; i++) { > > + /* > > + * Skip all pseudo filesystems. This also skips the real > filesytsem > > + * of ZFS. There's no EFI designator for ZFS in the > standard, so > > + * we'll need to invent one, but its decoding will be > handled in > > + * a separate function. > > + */ > > + if (mnt[i].f_mntfromname[0] != '/') > > + continue; > > + > > + /* > > + * First see if it is directly attached > > + */ > > + if (strcmp(provider->lg_name, mnt[i].f_mntfromname + 5) == > 0) > > + break; > > + > > + /* > > + * Next see if it is attached via one of the physical > disk's > > + * labels. > > + */ > > + LIST_FOREACH(cp, &provider->lg_consumers, lg_consumer) { > > + pp = cp->lg_provider; > > + if (strcmp(pp->lg_geom->lg_class->lg_name, > G_LABEL) != 0) > > + continue; > > + if (strcmp(g_device_path(pp->lg_name), > mnt[i].f_mntfromname) > > == 0) > > + goto break2; > > + } > > + /* Not the one, try the next mount point */ > > + } > > +break2: > > + > > + /* > > + * No mountpoint found, no absolute path possible > > + */ > > + if (i >= n) > > + goto errout; > > + > > + /* > > + * Construct absolute path and we're finally done. > > + */ > > + if (strcmp(mnt[i].f_mntonname, "/") == 0) > > + asprintf(abspath, "/%s", *relpath); > > + else > > + asprintf(abspath, "%s/%s", mnt[i].f_mntonname, *relpath); > > + > > +errout: > > + if (rv != 0) { > > + free(*dev); > > + *dev = NULL; > > + free(*relpath); > > + *relpath = NULL; > > + } > > + return (rv); > > +} > > + > > +/* > > + * Translate the passed in device_path to a unix path via the following > > + * algorithm. > > + * > > + * If dp, dev or path NULL, return EDOOFUS. XXX wise? > > + * > > + * Set *path = NULL; *dev = NULL; > > + * > > + * Walk through the device_path until we find either a media device > path. > > + * Return EINVAL if not found. Return EINVAL if walking dp would > > + * land us more than sanity size away from the start (4k). > > + * > > + * If we find a media descriptor, we search through the geom mesh to > see if we > > + * can find a matching node. If no match is found in the mesh that > matches, > > + * return ENXIO. > > + * > > + * Once we find a matching node, we search to see if there is a > filesystem > > + * mounted on it. If we find nothing, then search each of the devices > that are > > + * mounted to see if we can work up the geom tree to find the matching > node. if > > + * we still can't find anything, *dev = sprintf("/dev/%s", provider_name > > + * of the original node we found), but return ENOTBLK. > > + * > > + * Record the dev of the mountpoint in *dev. > > + * > > + * Once we find something, check to see if the next node in the device > path is > > + * the end of list. If so, return the mountpoint. > > + * > > + * If the next node isn't a File path node, return EFTYPE. > > + * > > + * Extract the path from the File path node(s). translate any \ file > separators > > + * to /. Append the result to the mount point. Copy the resulting path > into > > + * *path. Stat that path. If it is not found, return the errorr from > stat. > > + * > > + * Finally, check to make sure the resulting path is still on the same > > + * device. If not, return ENODEV. > > + * > > + * Otherwise return 0. > > + * > > + * The dev or full path that's returned is malloced, so needs to be > freed when > > + * the caller is done about it. Unlike many other functions, we can > return data > > + * with an error code, so pay attention. > > + */ > > +int > > +efivar_device_path_to_unix_path(const_efidp dp, char **dev, char > **relpath, char > > **abspath) +{ > > + const_efidp walker; > > + struct gmesh mesh; > > + int rv = 0; > > + > > + /* > > + * Sanity check args, fail early > > + */ > > + if (dp == NULL || dev == NULL || relpath == NULL || abspath == > NULL) > > + return (EDOOFUS); > > + > > + *dev = NULL; > > + *relpath = NULL; > > + *abspath = NULL; > > + > > + /* > > + * Find the first media device path we can. If we go too far, > > + * assume the passed in device path is bogus. If we hit the end > > + * then we didn't find a media device path, so signal that error. > > + */ > > + walker = dp; > > + while (DevicePathType(walker) != MEDIA_DEVICE_PATH && > > + DevicePathType(walker) != END_DEVICE_PATH_TYPE) { > > + walker = (const_efidp)NextDevicePathNode(walker); > > + if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) > > + return (EINVAL); > > + } > > + if (DevicePathType(walker) != MEDIA_DEVICE_PATH) > > + return (EINVAL); > > + > > + /* > > + * There's several types of media paths. We're only interested in > the > > + * hard disk path, as it's really the only relevant one to > booting. The > > + * CD path just might also be relevant, and would be easy to add, > but > > + * isn't supported. A file path too is relevant, but at this > stage, it's > > + * premature because we're trying to translate a specification for > a device > > + * and path on that device into a unix path, or at the very least, > a > > + * geom device : path-on-device. > > + * > > + * Also, ZFS throws a bit of a monkey wrench in here since it > doesn't have > > + * a device path type (it creates a new virtual device out of one > or more > > + * storage devices). > > + * > > + * For all of them, we'll need to know the geoms, so allocate / > free the > > + * geom mesh here since it's safer than doing it in each > sub-function > > + * which may have many error exits. > > + */ > > + if (geom_gettree(&mesh)) > > + return (ENOMEM); > > + > > + rv = EINVAL; > > + if (DevicePathSubType(walker) == MEDIA_HARDDRIVE_DP) > > + rv = efi_hd_to_unix(&mesh, walker, dev, relpath, abspath); > > +#ifdef notyet > > + else if (is_cdrom_device(walker)) > > + rv = efi_cdrom_to_unix(&mesh, walker, dev, relpath, > abspath); > > + else if (is_floppy_device(walker)) > > + rv = efi_floppy_to_unix(&mesh, walker, dev, relpath, > abspath); > > + else if (is_zpool_device(walker)) > > + rv = efi_zpool_to_unix(&mesh, walker, dev, relpath, > abspath); > > +#endif > > + geom_deletetree(&mesh); > > + > > + return (rv); > > +} > > + > > +/* > > + * Construct the EFI path to a current unix path as follows. > > + * > > + * The path may be of one of three forms: > > + * 1) /path/to/file -- full path to a file. The file need not be > present, > > + * but /path/to must be. It must reside on a local filesystem > > + * mounted on a GPT or MBR partition. > > + * 2) //path/to/file -- Shorthand for 'On the EFI partition, > \path\to\file' > > + * where 'The EFI Partition' is a partiton that's type is > 'efi' > > + * on the same disk that / is mounted from. If there are > multiple > > + * or no 'efi' parittions on that disk, or / isn't on a disk > that > > + * we can trace back to a physical device, an error will > result > > + * 3) [/dev/]geom-name:/path/to/file -- Use the specified partition > > + * (and it must be a GPT or MBR partition) with the specified > > + * path. The latter is not authenticated. > > + * all path forms translate any \ characters to / before further > processing. > > + * When a file path node is created, all / characters are translated > back > > + * to \. > > + * > > + * For paths of the first form: > > + * find where the filesystem is mount (either the file directly, or > > + * its parent directory). > > + * translate any logical device name (eg lable) to a physical one > > + * If not possible, return ENXIO > > + * If the physical path is unsupported (Eg not on a GPT or MBR disk), > > + * return ENXIO > > + * Create a media device path node. > > + * append the relative path from the mountpoint to the media device > node > > + * as a file path. > > + * > > + * For paths matching the second form: > > + * find the EFI partition corresponding to the root fileystem. > > + * If none found, return ENXIO > > + * Create a media device path node for the found partition > > + * Append a File Path to the end for the rest of the file. > > + * > > + * For paths of the third form > > + * Translate the geom-name passed in into a physical partition > > + * name. > > + * Return ENXIO if the translation fails > > + * Make a media device path for it > > + * append the part after the : as a File path node. > > + */ > > + > > +static char * > > +path_to_file_dp(const char *relpath) > > +{ > > + char *rv; > > + > > + asprintf(&rv, "File(%s)", relpath); > > + return rv; > > +} > > + > > +static char * > > +find_geom_efi_on_root(struct gmesh *mesh) > > +{ > > + struct statfs buf; > > + const char *dev; > > + struct gprovider *pp; > > +// struct ggeom *disk; > > + struct gconsumer *cp; > > + > > + /* > > + * Find /'s geom. Assume it's mounted on /dev/ and filter out all > the > > + * filesystems that aren't. > > + */ > > + if (statfs("/", &buf) != 0) > > + return (NULL); > > + dev = buf.f_mntfromname; > > + if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) > != 0) > > + return (NULL); > > + dev += sizeof(_PATH_DEV) -1; > > + pp = find_provider_by_name(mesh, dev); > > + if (pp == NULL) > > + return (NULL); > > + > > + /* > > + * If the provider is a LABEL, find it's outer PART class, if any. > We > > + * only operate on partitions. > > + */ > > + if (strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) == 0) { > > + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { > > + if (strcmp(cp->lg_provider->lg_ > geom->lg_class->lg_name, > > G_PART) == 0) { > > + pp = cp->lg_provider; > > + break; > > + } > > + } > > + } > > + if (strcmp(pp->lg_geom->lg_class->lg_name, G_PART) != 0) > > + return (NULL); > > + > > +#if 0 > > + /* This doesn't work because we can't get the data to walk UP the > tree it > > seems */ + > > + /* > > + * Now that we've found the PART that we have mounted as root, > find the > > + * first efi typed partition that's a peer, if any. > > + */ > > + LIST_FOREACH(cp, &pp->lg_consumers, lg_consumer) { > > + if (strcmp(cp->lg_provider->lg_geom->lg_class->lg_name, > G_DISK) == 0) { > > + disk = cp->lg_provider->lg_geom; > > + break; > > + } > > + } > > + if (disk == NULL) /* This is very bad -- old nested > partitions -- no > > support ? */ > > + return (NULL); > > +#endif > > + > > +#if 0 > > + /* This doesn't work because we can't get the data to walk UP the > tree it > > seems */ + > > + /* > > + * With the disk provider, we can look for its consumers to see if > any are the > > proper type. > > + */ > > + LIST_FOREACH(pp, &disk->lg_consumer, lg_consumer) { > > + type = geom_pp_attr(mesh, pp, "type"); > > + if (type == NULL) > > + continue; > > + if (strcmp(type, "efi") != 0) > > + continue; > > + efimedia = geom_pp_attr(mesh, pp, "efimedia"); > > + if (efimedia == NULL) > > + return (NULL); > > + return strdup(efimedia); > > + } > > +#endif > > + return (NULL); > > +} > > + > > + > > +static char * > > +find_geom_efimedia(struct gmesh *mesh, const char *dev) > > +{ > > + struct gprovider *pp; > > + const char *efimedia; > > + > > + pp = find_provider_by_name(mesh, dev); > > + if (pp == NULL) > > + return (NULL); > > + efimedia = geom_pp_attr(mesh, pp, "efimedia"); > > + if (efimedia == NULL) > > + return (NULL); > > + return strdup(efimedia); > > +} > > + > > +static int > > +build_dp(const char *efimedia, const char *relpath, efidp *dp) > > +{ > > + char *fp, *dptxt = NULL; > > + int rv = 0; > > + efidp out; > > + size_t len; > > + > > + fp = path_to_file_dp(relpath); > > + if (fp == NULL) { > > + rv = ENOMEM; > > + goto errout; > > + } > > + > > + asprintf(&dptxt, "%s/%s", efimedia, fp); > > + out = malloc(8192); > > + len = efidp_parse_device_path(dptxt, out, 8192); > > + if (len > 8192) { > > + rv = ENOMEM; > > + goto errout; > > + } > > + if (len == 0) { > > + rv = EINVAL; > > + goto errout; > > + } > > + > > + *dp = out; > > +errout: > > + if (rv) { > > + free(out); > > + } > > + free(dptxt); > > + free(fp); > > + > > + return rv; > > +} > > + > > +/* Handles //path/to/file */ > > +/* > > + * Which means: find the disk that has /. Then look for a EFI partition > > + * and use that for the efimedia and /path/to/file as relative to that. > > + * Not sure how ZFS will work here since we can't easily make the leap > > + * to the geom from the zpool. > > + */ > > +static int > > +efipart_to_dp(struct gmesh *mesh, char *path, efidp *dp) > > +{ > > + char *efimedia = NULL; > > + int rv; > > + > > + efimedia = find_geom_efi_on_root(mesh); > > +#ifdef notyet > > + if (efimedia == NULL) > > + efimedia = find_efi_on_zfsroot(dev); > > +#endif > > + if (efimedia == NULL) { > > + rv = ENOENT; > > + goto errout; > > + } > > + > > + rv = build_dp(efimedia, path + 1, dp); > > +errout: > > + free(efimedia); > > + > > + return rv; > > +} > > + > > +/* Handles [/dev/]geom:[/]path/to/file */ > > +/* Handles zfs-dataset:[/]path/to/file (this may include / ) */ > > +static int > > +dev_path_to_dp(struct gmesh *mesh, char *path, efidp *dp) > > +{ > > + char *relpath, *dev, *efimedia = NULL; > > + int rv = 0; > > + > > + relpath = strchr(path, ':'); > > + assert(relpath != NULL); > > + *relpath++ = '\0'; > > + > > + dev = path; > > + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) > > + dev += sizeof(_PATH_DEV) -1; > > + > > + efimedia = find_geom_efimedia(mesh, dev); > > +#ifdef notyet > > + if (efimedia == NULL) > > + find_zfs_efi_media(dev); > > +#endif > > + if (efimedia == NULL) { > > + rv = ENOENT; > > + goto errout; > > + } > > + rv = build_dp(efimedia, relpath, dp); > > +errout: > > + free(efimedia); > > + > > + return rv; > > +} > > + > > +/* Handles /path/to/file */ > > +static int > > +path_to_dp(struct gmesh *mesh, char *path, efidp *dp) > > +{ > > + struct statfs buf; > > + char *rp = NULL, *ep, *dev, *efimedia = NULL; > > + int rv = 0; > > + > > + rp = realpath(path, NULL); > > + if (rp == NULL) { > > + rv = errno; > > + goto errout; > > + } > > + > > + if (statfs(rp, &buf) != 0) { > > + rv = errno; > > + goto errout; > > + } > > + > > + dev = buf.f_mntfromname; > > + if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) > > + dev += sizeof(_PATH_DEV) -1; > > + ep = rp + strlen(buf.f_mntonname); > > + > > + efimedia = find_geom_efimedia(mesh, dev); > > +#ifdef notyet > > + if (efimedia == NULL) > > + find_zfs_efi_media(dev); > > +#endif > > + if (efimedia == NULL) { > > + rv = ENOENT; > > + goto errout; > > + } > > + > > + rv = build_dp(efimedia, ep, dp); > > +errout: > > + free(efimedia); > > + free(rp); > > + if (rv != 0) { > > + free(*dp); > > + } > > + return (rv); > > +} > > + > > +int > > +efivar_unix_path_to_device_path(const char *path, efidp *dp) > > +{ > > + char *modpath = NULL, *cp; > > + int rv = ENOMEM; > > + struct gmesh mesh; > > + > > + /* > > + * Fail early for clearly bogus things > > + */ > > + if (path == NULL || dp == NULL) > > + return (EDOOFUS); > > + > > + /* > > + * We'll need the goem mesh to grovel through it to find the > > + * efimedia attribute for any devices we find. Grab it here > > + * and release it to simplify the error paths out of the > > + * subordinate functions > > + */ > > + if (geom_gettree(&mesh)) > > + return (errno); > > + > > + /* > > + * Convert all \ to /. We'll convert them back again when > > + * we encode the file. Boot loaders are expected to cope. > > + */ > > + modpath = strdup(path); > > + if (modpath == NULL) > > + goto out; > > + for (cp = modpath; *cp; cp++) > > + if (*cp == '\\') > > + *cp = '/'; > > + > > + if (modpath[0] == '/' && modpath[1] == '/') /* Handle > //foo/bar/baz */ > > + rv = efipart_to_dp(&mesh, modpath, dp); > > + else if (strchr(modpath, ':')) /* Handle > dev:/bar/baz */ > > + rv = dev_path_to_dp(&mesh, modpath, dp); > > + else /* Handle /a/b/c */ > > + rv = path_to_dp(&mesh, modpath, dp); > > + > > +out: > > + geom_deletetree(&mesh); > > + free(modpath); > > + > > + return (rv); > > +} > > > > Modified: head/lib/libefivar/efivar-dp.h > > ============================================================ > ================== > > --- head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:07 2017 > (r326457) > > +++ head/lib/libefivar/efivar-dp.h Sat Dec 2 07:29:19 2017 > (r326458) > > @@ -60,10 +60,13 @@ typedef const efidp_data *const_efidp; > > */ > > ssize_t efidp_format_device_path(char *buf, size_t len, const_efidp dp, > > ssize_t max); > > -ssize_t efidp_format_device_path_node(char *buf, size_t len, > const_efidp dp, > > - ssize_t max); > > +ssize_t efidp_format_device_path_node(char *buf, size_t len, > const_efidp dp); > > ssize_t efidp_parse_device_path(char *path, efidp out, size_t max); > > +char * efidp_extract_file_path(const_efidp dp); > > > > size_t efidp_size(const_efidp); > > + > > +int efivar_device_path_to_unix_path(const_efidp dp, char **dev, char > **relpath, char > > **abspath); +int efivar_unix_path_to_device_path(const char *path, > efidp *dp); > > > > #endif /* _EFIVAR_DP_H_ */ > > _______________________________________________ > > svn-src-head@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/svn-src-head > > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" > > It seems this broke buildworld, as my attempt to build fails with this > error on r326459: > > [...] > Building /usr/obj/usr/src/amd64.amd64/usr.sbin/bsnmpd/modules/snmp_ > pf/pf_snmp.pico > --- all_subdir_usr.sbin/efivar --- > --- efivar --- > /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libefivar.so: undefined > reference to > `geom_deletetree' /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libefivar.so: > undefined > reference to `g_device_path' /usr/obj/usr/src/amd64.amd64/ > tmp/usr/lib/libefivar.so: > undefined reference to `geom_gettree' cc: error: linker command failed > with exit code 1 > (use -v to see invocation) *** [efivar] Error code 1 > > make[4]: stopped in /usr/src/usr.sbin/efivar > .ERROR_TARGET='efivar' > Yea, I added a libgeom dependency for libefivar and simply forgot about this program. Warrner From owner-svn-src-head@freebsd.org Sat Dec 2 16:09:12 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCC79E5E331; Sat, 2 Dec 2017 16:09:12 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B1AE74F7E; Sat, 2 Dec 2017 16:09:12 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id E5801176E5; Sat, 2 Dec 2017 16:09:11 +0000 (UTC) Date: Sat, 2 Dec 2017 16:09:11 +0000 From: Alexey Dokuchaev To: Warner Losh Cc: "O. Hartmann" , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , src-committers , Warner Losh Subject: Re: svn commit: r326458 - head/lib/libefivar Message-ID: <20171202160911.GA24768@FreeBSD.org> References: <201712020729.vB27TJTE015093@repo.freebsd.org> <20171202122217.4e40a80f@thor.intern.walstatt.dynvpn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 16:09:12 -0000 On Sat, Dec 02, 2017 at 08:38:17AM -0700, Warner Losh wrote: > On Sat, Dec 2, 2017 at 4:22 AM, O. Hartmann wrote: > > Am Sat, 2 Dec 2017 07:29:19 +0000 (UTC) > > Warner Losh schrieb: > > > Author: imp > > > Date: Sat Dec 2 07:29:19 2017 > > > New Revision: 326458 > > > URL: https://svnweb.freebsd.org/changeset/base/326458 > > > ... > > > > It seems this broke buildworld, as my attempt to build fails with this > > error on r326459: [...] > > > > make[4]: stopped in /usr/src/usr.sbin/efivar > > .ERROR_TARGET='efivar' > > Yea, I added a libgeom dependency for libefivar and simply forgot about > this program. Now, guys, please remember that the Internet is still delivered via punched cards for some of us, and trim your replies down to actual relevant context. Thank you, ./danfe From owner-svn-src-head@freebsd.org Sat Dec 2 17:10:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D666E5F8C4; Sat, 2 Dec 2017 17:10:15 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07BEC767EE; Sat, 2 Dec 2017 17:10:14 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2HAEUV060389; Sat, 2 Dec 2017 17:10:14 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2HAEdL060388; Sat, 2 Dec 2017 17:10:14 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712021710.vB2HAEdL060388@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sat, 2 Dec 2017 17:10:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326473 - in head/tools/diag: . httpd-error X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: in head/tools/diag: . httpd-error X-SVN-Commit-Revision: 326473 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 17:10:15 -0000 Author: eadler Date: Sat Dec 2 17:10:13 2017 New Revision: 326473 URL: https://svnweb.freebsd.org/changeset/base/326473 Log: diag/httpd-error: remove This is a script for a web server in a specific configuration. Current web servers don't produce similar log files and it isn't FreeBSD's goal to produce a log file analyzer. Deleted: head/tools/diag/httpd-error/ Modified: head/tools/diag/README Modified: head/tools/diag/README ============================================================================== --- head/tools/diag/README Sat Dec 2 15:25:45 2017 (r326472) +++ head/tools/diag/README Sat Dec 2 17:10:13 2017 (r326473) @@ -10,6 +10,5 @@ Please make a subdir per program, and add a brief desc dumpvfscache program that can be used to examine the contents of the vfs name cache. -httpd-error check for Web files which does not exists on your host localeck check for invalid/incomplete locales From owner-svn-src-head@freebsd.org Sat Dec 2 17:22:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82F20E5FDCF; Sat, 2 Dec 2017 17:22:57 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A7E476E9F; Sat, 2 Dec 2017 17:22:57 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2HMupP068105; Sat, 2 Dec 2017 17:22:56 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2HMtNC068099; Sat, 2 Dec 2017 17:22:55 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201712021722.vB2HMtNC068099@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Sat, 2 Dec 2017 17:22:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326474 - head/sys/fs/ext2fs X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: head/sys/fs/ext2fs X-SVN-Commit-Revision: 326474 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 17:22:57 -0000 Author: pfg Date: Sat Dec 2 17:22:55 2017 New Revision: 326474 URL: https://svnweb.freebsd.org/changeset/base/326474 Log: SPDX: Complete license IDs for ext2fs. Modified: head/sys/fs/ext2fs/ext2_acl.c head/sys/fs/ext2fs/ext2_acl.h head/sys/fs/ext2fs/ext2_csum.c head/sys/fs/ext2fs/ext2_extattr.c head/sys/fs/ext2fs/ext2_extattr.h head/sys/fs/ext2fs/ext2_inode_cnv.c Modified: head/sys/fs/ext2fs/ext2_acl.c ============================================================================== --- head/sys/fs/ext2fs/ext2_acl.c Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_acl.c Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017, Fedor Uporov * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_acl.h ============================================================================== --- head/sys/fs/ext2fs/ext2_acl.h Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_acl.h Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017, Fedor Uporov * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_csum.c ============================================================================== --- head/sys/fs/ext2fs/ext2_csum.c Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_csum.c Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017, Fedor Uporov * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_extattr.c ============================================================================== --- head/sys/fs/ext2fs/ext2_extattr.c Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_extattr.c Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017, Fedor Uporov * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_extattr.h ============================================================================== --- head/sys/fs/ext2fs/ext2_extattr.h Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_extattr.h Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2017, Fedor Uporov * All rights reserved. * Modified: head/sys/fs/ext2fs/ext2_inode_cnv.c ============================================================================== --- head/sys/fs/ext2fs/ext2_inode_cnv.c Sat Dec 2 17:10:13 2017 (r326473) +++ head/sys/fs/ext2fs/ext2_inode_cnv.c Sat Dec 2 17:22:55 2017 (r326474) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: MIT-CMU + * * Copyright (c) 1995 The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * All rights reserved. From owner-svn-src-head@freebsd.org Sat Dec 2 17:39:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 973F0E65309; Sat, 2 Dec 2017 17:39:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 56FB7775AF; Sat, 2 Dec 2017 17:39:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2Hd41p072619; Sat, 2 Dec 2017 17:39:04 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2Hd4or072618; Sat, 2 Dec 2017 17:39:04 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201712021739.vB2Hd4or072618@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sat, 2 Dec 2017 17:39:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326475 - head/lib/libclang_rt X-SVN-Group: head X-SVN-Commit-Author: dim X-SVN-Commit-Paths: head/lib/libclang_rt X-SVN-Commit-Revision: 326475 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 17:39:05 -0000 Author: dim Date: Sat Dec 2 17:39:04 2017 New Revision: 326475 URL: https://svnweb.freebsd.org/changeset/base/326475 Log: Make the assignment of CRTARCH conditional, even in the armhf case, and slightly rework the .if statement. While here, fix a minor typo. Modified: head/lib/libclang_rt/Makefile.inc Modified: head/lib/libclang_rt/Makefile.inc ============================================================================== --- head/lib/libclang_rt/Makefile.inc Sat Dec 2 17:22:55 2017 (r326474) +++ head/lib/libclang_rt/Makefile.inc Sat Dec 2 17:39:04 2017 (r326475) @@ -3,12 +3,13 @@ .include # armv[67] is a bit special since we allow a soft-floating version via -# CPUTYPE matching *soft*. This variant is may not actually work though. +# CPUTYPE matching *soft*. This variant may not actually work though. .if ${MACHINE_ARCH:Marmv[67]*} != "" && \ (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") -CRTARCH= armhf -.endif +CRTARCH?= armhf +.else CRTARCH?= ${MACHINE_CPUARCH:C/amd64/x86_64/} +.endif CRTSRC= ${SRCTOP}/contrib/compiler-rt .PATH: ${CRTSRC}/lib From owner-svn-src-head@freebsd.org Sat Dec 2 19:10:53 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A7C3E6748E; Sat, 2 Dec 2017 19:10:53 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 452A77A158; Sat, 2 Dec 2017 19:10:53 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2JAqha010814; Sat, 2 Dec 2017 19:10:52 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2JAqNI010813; Sat, 2 Dec 2017 19:10:52 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712021910.vB2JAqNI010813@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sat, 2 Dec 2017 19:10:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326478 - head/share/man/man3 X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/share/man/man3 X-SVN-Commit-Revision: 326478 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 19:10:53 -0000 Author: eadler Date: Sat Dec 2 19:10:52 2017 New Revision: 326478 URL: https://svnweb.freebsd.org/changeset/base/326478 Log: Add missing word Reported by: swildner@dragonflybsd.org Modified: head/share/man/man3/pthread_join.3 Modified: head/share/man/man3/pthread_join.3 ============================================================================== --- head/share/man/man3/pthread_join.3 Sat Dec 2 18:41:01 2017 (r326477) +++ head/share/man/man3/pthread_join.3 Sat Dec 2 19:10:52 2017 (r326478) @@ -134,7 +134,7 @@ function conforms to .St -p1003.1-96 . The .Fn pthread_timedjoin_np -is a +function is a .Fx extension which first appeared in .Fx 6.1 . From owner-svn-src-head@freebsd.org Sat Dec 2 19:42:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19542E67FA0; Sat, 2 Dec 2017 19:42:10 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAE117B122; Sat, 2 Dec 2017 19:42:09 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2Jg9VH024016; Sat, 2 Dec 2017 19:42:09 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2Jg9o0024015; Sat, 2 Dec 2017 19:42:09 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712021942.vB2Jg9o0024015@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sat, 2 Dec 2017 19:42:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326479 - head/lib/libc/include X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/lib/libc/include X-SVN-Commit-Revision: 326479 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 19:42:10 -0000 Author: eadler Date: Sat Dec 2 19:42:08 2017 New Revision: 326479 URL: https://svnweb.freebsd.org/changeset/base/326479 Log: Add include guard to fpmath.h Submitted by: kargl Modified: head/lib/libc/include/fpmath.h Modified: head/lib/libc/include/fpmath.h ============================================================================== --- head/lib/libc/include/fpmath.h Sat Dec 2 19:10:52 2017 (r326478) +++ head/lib/libc/include/fpmath.h Sat Dec 2 19:42:08 2017 (r326479) @@ -29,6 +29,9 @@ * $FreeBSD$ */ +#ifndef _FPMATH_H_ +#define _FPMATH_H_ + #include #include "_fpmath.h" @@ -75,3 +78,5 @@ union IEEEd2bits { #endif } bits; }; + +#endif /* !_FPMATH_H */ From owner-svn-src-head@freebsd.org Sat Dec 2 20:53:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0576E69C21; Sat, 2 Dec 2017 20:53:56 +0000 (UTC) (envelope-from landon@landonf.org) Received: from smtp.office.plausible.coop (static-108-51-93-21.washdc.fios.verizon.net [108.51.93.21]) by mx1.freebsd.org (Postfix) with ESMTP id 90DE67D905; Sat, 2 Dec 2017 20:53:55 +0000 (UTC) (envelope-from landon@landonf.org) Received: from [172.16.51.6] (unknown [172.16.51.6]) by smtp.office.plausible.coop (Postfix) with ESMTPSA id 0236250801E; Sat, 2 Dec 2017 12:45:04 -0800 (PST) Date: Sat, 02 Dec 2017 13:45:00 -0700 From: Landon J Fuller Subject: Re: svn commit: r326454 - in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci To: Kyle Evans Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-Id: <1512247500.33365.2@smtp.office.plausible.coop> In-Reply-To: References: <201712020221.vB22LRHZ088670@repo.freebsd.org> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 20:53:56 -0000 On Fri, Dec 1, 2017 at 11:21 PM, Kyle Evans wrote: > > On Dec 1, 2017 8:21 PM, "Landon J. Fuller" > wrote: >> >> Log: >> Introduce bwn(4) support for the bhnd(4) bus. > > Hi, > > I'm pretty sure we've discussed this, but I don't recall to what > detail that was- I recall that the 4313 is BCMA, but does it have one > of the PHYs that we support already? If so, I'll happily test there. The BCM4313 uses an LCN PHY; we're probably going to have to bring over Broadcom's ISC-licensed LCN-PHY support from their Linux brcmsmac driver before we can bring up the 4313. Cheers, Landon From owner-svn-src-head@freebsd.org Sat Dec 2 22:04:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA0BDE6AFFC; Sat, 2 Dec 2017 22:04:01 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C450A7F264; Sat, 2 Dec 2017 22:04:01 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2M40Es085044; Sat, 2 Dec 2017 22:04:00 GMT (envelope-from bryanv@FreeBSD.org) Received: (from bryanv@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB2M403K085043; Sat, 2 Dec 2017 22:04:00 GMT (envelope-from bryanv@FreeBSD.org) Message-Id: <201712022204.vB2M403K085043@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bryanv set sender to bryanv@FreeBSD.org using -f From: Bryan Venteicher Date: Sat, 2 Dec 2017 22:04:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326480 - head/sys/net X-SVN-Group: head X-SVN-Commit-Author: bryanv X-SVN-Commit-Paths: head/sys/net X-SVN-Commit-Revision: 326480 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 22:04:02 -0000 Author: bryanv Date: Sat Dec 2 22:04:00 2017 New Revision: 326480 URL: https://svnweb.freebsd.org/changeset/base/326480 Log: Add if media and link status events to vxlan PR: 214359 MFC after: 2 weeks Modified: head/sys/net/if_vxlan.c Modified: head/sys/net/if_vxlan.c ============================================================================== --- head/sys/net/if_vxlan.c Sat Dec 2 19:42:08 2017 (r326479) +++ head/sys/net/if_vxlan.c Sat Dec 2 22:04:00 2017 (r326480) @@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -177,6 +178,7 @@ struct vxlan_softc { uint8_t vxl_hwaddr[ETHER_ADDR_LEN]; int vxl_mc_ifindex; struct ifnet *vxl_mc_ifp; + struct ifmedia vxl_media; char vxl_mc_ifname[IFNAMSIZ]; LIST_ENTRY(vxlan_softc) vxl_entry; LIST_ENTRY(vxlan_softc) vxl_ifdetach_list; @@ -342,6 +344,8 @@ static void vxlan_clone_destroy(struct ifnet *); static uint32_t vxlan_mac_hash(struct vxlan_softc *, const uint8_t *); static void vxlan_fakeaddr(struct vxlan_softc *); +static int vxlan_media_change(struct ifnet *); +static void vxlan_media_status(struct ifnet *, struct ifmediareq *); static int vxlan_sockaddr_cmp(const union vxlan_sockaddr *, const struct sockaddr *); @@ -1655,6 +1659,7 @@ vxlan_init(void *xsc) vxlan_timer, sc); VXLAN_WUNLOCK(sc); + if_link_state_change(ifp, LINK_STATE_UP); out: vxlan_init_complete(sc); } @@ -1710,6 +1715,7 @@ vxlan_teardown_locked(struct vxlan_softc *sc) sc->vxl_sock = NULL; VXLAN_WUNLOCK(sc); + if_link_state_change(ifp, LINK_STATE_DOWN); if (vso != NULL) { vxlan_socket_remove_softc(vso, sc); @@ -2219,6 +2225,12 @@ vxlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t dat case SIOCSIFFLAGS: error = vxlan_ioctl_ifflags(sc); break; + + case SIOCSIFMEDIA: + case SIOCGIFMEDIA: + error = ifmedia_ioctl(ifp, ifr, &sc->vxl_media, cmd); + break; + default: error = ether_ioctl(ifp, cmd, data); break; @@ -2685,6 +2697,10 @@ vxlan_clone_create(struct if_clone *ifc, int unit, cad ifp->if_transmit = vxlan_transmit; ifp->if_qflush = vxlan_qflush; + ifmedia_init(&sc->vxl_media, 0, vxlan_media_change, vxlan_media_status); + ifmedia_add(&sc->vxl_media, IFM_ETHER | IFM_AUTO, 0, NULL); + ifmedia_set(&sc->vxl_media, IFM_ETHER | IFM_AUTO); + vxlan_fakeaddr(sc); ether_ifattach(ifp, sc->vxl_hwaddr); @@ -2711,6 +2727,7 @@ vxlan_clone_destroy(struct ifnet *ifp) ether_ifdetach(ifp); if_free(ifp); + ifmedia_removeall(&sc->vxl_media); vxlan_ftable_fini(sc); @@ -2768,6 +2785,22 @@ vxlan_fakeaddr(struct vxlan_softc *sc) arc4rand(sc->vxl_hwaddr, ETHER_ADDR_LEN, 1); sc->vxl_hwaddr[0] &= ~1; sc->vxl_hwaddr[0] |= 2; +} + +static int +vxlan_media_change(struct ifnet *ifp) +{ + + /* Ignore. */ + return (0); +} + +static void +vxlan_media_status(struct ifnet *ifp, struct ifmediareq *ifmr) +{ + + ifmr->ifm_status = IFM_ACTIVE | IFM_AVALID; + ifmr->ifm_active = IFM_ETHER | IFM_FDX; } static int