summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move the uart_class definitions and fdt compat data into the individualian2015-03-0717-53/+98
| | | | | | | uart implementations, and export them using the new linker-set mechanism. Differential Revision: https://reviews.freebsd.org/D1993 Submitted by: Michal Meloun
* Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering fullian2015-03-074-22/+126
| | | | | | | | | | | | (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART class only. This paves the way for declaring uart_class data and ofw/fdt compat data with a uart implementation, rather than needing a big global table of compat data and weak-symbol declarations of every existing implementation. Differential Revision: https://reviews.freebsd.org/D1992 Submitted by: Michal Meloun
* env: Fix testsuite for additional variables set by sh.jilles2015-03-071-3/+3
| | | | MFC after: 1 week
* Add support for walltimestamp to DTrace on ARM.gnn2015-03-071-3/+4
|
* Correct a typo in vm_object_backing_scan() that originated in r254141.alc2015-03-071-1/+1
| | | | | | | Specifically, change a lock acquire into a lock release. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* forgot to bump date, and replace contraction (igor)...jmg2015-03-071-2/+2
|
* Bump .Dd to current date (which I should have done as part of initialloos2015-03-072-1/+2
| | | | | | commit). Connect ds3231.4 to the build.
* make things a bit more clear.. we worked together on language..jmg2015-03-061-0/+2
| | | | Submitted by: Justin Cormack
* compat_passwd(): yet another uninitialized access to stayopen.pfg2015-03-061-1/+1
| | | | CID: 1018731
* MFV of 279704,tzdata{2015a}edwin2015-03-069-59/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release 2015a - 2015-01-29 Changes affecting future time stamps The Mexican state of Quintana Roo, represented by America/Cancun, will shift from Central Time with DST to Eastern Time without DST on 2015-02-01 at 02:00. (Thanks to Steffen Thorsen and Gwillim Law.) Chile will not change clocks in April or thereafter; its new standard time will be its old daylight saving time. This affects America/Santiago, Pacific/Easter, and Antarctica/Palmer. (Thanks to Juan Correa.) New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49. (Thanks to Tim Parenti.) Changes affecting past time stamps Iceland observed DST in 1919 and 1921, and its 1939 fallback transition was Oct. 29, not Nov. 29. Remove incorrect data from Shanks about time in Iceland between 1837 and 1908. Some more zones have been turned into links, when they differed from existing zones only for older time stamps. As usual, these changes affect UTC offsets in pre-1970 time stamps only. Their old contents have been moved to the 'backzone' file. The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait, and Asia/Muscat.
* Fix a typo.jhb2015-03-061-1/+1
|
* Update a comment that had drifted out of date with the last changes.ian2015-03-061-1/+1
|
* cxgbe(4): experimental rx packet sink for netmap queues. This is notnp2015-03-061-9/+42
| | | | | | intended for general use. MFC after: 1 month
* cxgbe(4): knobs to experiment with the interrupt coalescing timer fornp2015-03-061-9/+24
| | | | | | | | | netmap rx queues, and the "batchiness" of rx updates sent to the chip. These knobs will probably become per-rxq in the near future and will be documented only after their final form is decided. MFC after: 1 month
* Only schedule interrupts on a single hyperthread of a modern Intel CPU corejhb2015-03-062-4/+4
| | | | | | | by default. Previously we used a single hyperthread on Pentium4-era cores but used both hyperthreads on more recent CPUs. MFC after: 2 weeks
* Update the ELFOSABI_* constants.ed2015-03-061-0/+2
| | | | | | Two new operating systems have been added in the meantime. ELFOSABI_FENIXOS that uses value 16 (published in the latest draft) and ELFOSABI_CLOUDABI that uses value 17 (to be published in the next draft).
* Fix style.br2015-03-061-4/+4
|
* This setting of stop_at_shutdown should have been removed with r279253slm2015-03-061-13/+0
| | | | | Approved by: ken MFC after: 1 week
* Set a dependancy on fbt module for ARM.br2015-03-061-1/+1
|
* cxgbe(4): provide the correct size of freelists associated with netmapnp2015-03-061-1/+1
| | | | | | | rx queues to the chip. This will fix many problems with native netmap rx on ncxl/ncxgbe interfaces. MFC after: 1 week
* - In vnode_pager_generic_getpages() use different free counters forglebius2015-03-063-4/+16
| | | | | | | | | | | | synchronous and asynchronous requests. The latter can saturate the I/O and we do not want them to affect regular paging. - Allocate the pbuf at the very beginning of the function, so that if we are low on certain kind of pbufs don't even proceed to BMAP, but sleep. Reviewed by: kib Sponsored by: Nginx, Inc. Sponsored by: Netflix
* tcp6_ctlinput() doesn't pass MTU value to in6_pcbnotify().ae2015-03-061-1/+1
| | | | | | | | Check cmdarg isn't NULL before dereference, this check was in the ip6_notify_pmtu() before r279588. Reported by: Florian Smeets MFC after: 1 week
* When ICW1 is issued the edge sense circuit is reset which means thattychon2015-03-061-0/+1
| | | | | | | following an initialization a low-to-high transistion is necesary to generate an interrupt. Reviewed by: neel
* Add sysctls to control PS-PL level shifters and FCLK settings.gonzo2015-03-053-10/+503
| | | | | | | | | | | | | | | PL (programmable logic) uses FCLK0..FCLK3 as a clock sources. Normally they're configured by first stage boot loader (FSBL) and normal user never has to touch them. These sysctls may come useful for hardware developers hw.fpga.fclk.N.source: clock source (IO, DDR, ARM) hw.fpga.fclk.N.freq: requested frequency in Hz hw.fpga.fclk.N.actual_freq: actual frequency in Hz (R/O) hw.fgpa.level_shifters: 0/1 to enable/disable PS-PL level shifters, normally they're enabled either by FSBL or after programming FPGA through devcfg(4)
* - Implement loopback probing state in enhanced DAD algorithm.hrs2015-03-056-12/+73
| | | | | | - Add no_dad and ignoreloop per-IF knob. no_dad disables DAD completely, and ignoreloop is to prevent infinite loop in loopback probing state when loopback is permanently expected.
* Add variable initialization missed by me and clang.mav2015-03-051-0/+1
| | | | | Reported by: grehan MFC after: 2 weeks
* Fix error translation broken in r279658.mav2015-03-051-6/+5
| | | | | Reported by: grehan MFC after: 2 weeks
* rlogin(1): initialize term variable.pfg2015-03-051-1/+1
| | | | | CID: 1011522 Obtained from: NetBSD (CVS 1.18, partial)
* dtrace_cas32 and dtrace_casptr should retrn the data loaded from targetandrew2015-03-051-5/+3
| | | | | | not the new value. Sponsored by: ABT Systems Ltd
* Add the MD parts of dtrace needed to use fbt on ARM. For this we need toandrew2015-03-056-17/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | emulate the instructions used in function entry and exit. For function entry ARM will use a push instruction to push up to 16 registers to the stack. While we don't expect all 16 to be used we need to handle any combination the compiler may generate, even if it doesn't make sense (e.g. pushing the program counter). On function return we will either have a pop or branch instruction. The former is similar to the push instruction, but with care to make sure we update the stack pointer and program counter correctly in the cases they are either in the list of registers or not. For branch we need to take the 24-bit offset, sign-extend it, and add that number of 4-byte words to the program counter. Care needs to be taken as, due to historical reasons, the address the branch is relative to is not the current instruction, but 8 bytes later. This allows us to use the following probes on ARM boards: dtrace -n 'fbt::malloc:entry { stack() }' and dtrace -n 'fbt::free:return { stack() }' Differential Revision: https://reviews.freebsd.org/D2007 Reviewed by: gnn, rpaulo Sponsored by: ABT Systems Ltd
* qsort(3): small style(9) cleanups.pfg2015-03-051-10/+10
| | | | | Basically spaces vs. tabs. No functional change.
* Fix build after unifying DAR/DEAR storage in trap frame.nwhitehorn2015-03-051-1/+1
|
* qsort(3): enhance to handle 32-bit aligned data on 64-bit systemspfg2015-03-051-12/+21
| | | | | | | | | | | | | | Implement a small enhancement to the original qsort implementation: If the data is 32 bit aligned we can side-step the long type version and use int instead. The change brings a modest but significant improvement in 32 bit workloads. Relnotes: yes PR: 135718 Taken from: ache
* Implement cache flush for ahci-hd and for virtio-blk over device.mav2015-03-052-3/+18
| | | | MFC after: 2 weeks
* Add check for absent stripe size to r279652.mav2015-03-051-1/+1
| | | | MFC after: 2 weeks
* Report logical/physical sector sizes for virtual SATA disk.mav2015-03-053-3/+36
| | | | MFC after: 2 weeks
* Add support for TOPOLOGY feature of virtio block device.mav2015-03-051-12/+32
| | | | | | | Passing through physical block size/offset from underlying storage allows guest to manage proper data and I/O alignment to improve performance. MFC after: 2 weeks
* Size of opt_io_size field is 32 bit.mav2015-03-051-1/+1
| | | | MFC after: 2 weeks
* Reenable VIRTIO_BLK_F_TOPOLOGY feature.mav2015-03-051-0/+1
| | | | MFC after: 2 weeks
* Don't all DTrace's FBT on ARM to instrument undefinedinstruction(), asrwatson2015-03-051-0/+7
| | | | | | this would lead to DTrace reentrance. Sponsored by: DARPA, AFRL
* sysrc(8): Add `key-=remove' and improve `key+=append' syntaxdteske2015-03-052-26/+186
| | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9
* Move IVOR setup from assembler to C, decreasing required assumptions aboutnwhitehorn2015-03-052-36/+45
| | | | address formats for trap handlers.
* Use the child device name here is lame because at the point that thisloos2015-03-053-8/+6
| | | | happens, the child device is not yet specified.
* Change ofw_gpiobus_destroy_devinfo() to unmap the GPIO pins and thenloos2015-03-051-15/+24
| | | | | | | | rework the code a little bit to use this function consistently to cleanup all the changes made as part of the probe phase. This fixes an issue where a FDT child node without a matching driver could leave the GPIO pins mapped and prevent the further use of them.
* Add a bus_probe_nomatch() method for gpiobus/ofw_gpiobus.loos2015-03-051-0/+16
| | | | | | | This prints a warning when your system have a hinted child or a FDT child node for which you don't have a matching driver: gpiobus0: <unknown device> at pin(s) 24 irq 24
* r* commands are not precious anymorebapt2015-03-043-3/+0
|
* The AIM DAR (data access fault address register) and Book-E DEAR registersnwhitehorn2015-03-047-35/+19
| | | | | | have the same meaning and occupy the same memory address in the trapframe courtesy of union. Avoid some pointless #ifdef by spelling them both 'DAR' in the trapframe.
* drm: Allow parallel builds of drivers and firmwaresdumbbell2015-03-042-0/+4
| | | | | Submitted by: hps@ MFC after: 2 weeks
* drm: Import Linux commit b7ea85a4fed37835eec78a7be3039c8dc22b8178dumbbell2015-03-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Huacai Chen <chenhc@lemote.com> Date: Tue May 21 06:23:43 2013 +0000 drm: fix a use-after-free when GPU acceleration disabled When GPU acceleration is disabled, drm_vblank_cleanup() will free the vblank-related data, such as vblank_refcount, vblank_inmodeset, etc. But we found that drm_vblank_post_modeset() may be called after the cleanup, which use vblank_refcount and vblank_inmodeset. And this will cause a kernel panic. Fix this by return immediately if dev->num_crtcs is zero. This is the same thing that drm_vblank_pre_modeset() does. Call trace of a drm_vblank_post_modeset() after drm_vblank_cleanup(): [ 62.628906] [<ffffffff804868d0>] drm_vblank_post_modeset+0x34/0xb4 [ 62.628906] [<ffffffff804c7008>] atombios_crtc_dpms+0xb4/0x174 [ 62.628906] [<ffffffff804c70e0>] atombios_crtc_commit+0x18/0x38 [ 62.628906] [<ffffffff8047f038>] drm_crtc_helper_set_mode+0x304/0x3cc [ 62.628906] [<ffffffff8047f92c>] drm_crtc_helper_set_config+0x6d8/0x988 [ 62.628906] [<ffffffff8047dd40>] drm_fb_helper_set_par+0x94/0x104 [ 62.628906] [<ffffffff80439d14>] fbcon_init+0x424/0x57c [ 62.628906] [<ffffffff8046a638>] visual_init+0xb8/0x118 [ 62.628906] [<ffffffff8046b9f8>] take_over_console+0x238/0x384 [ 62.628906] [<ffffffff80436df8>] fbcon_takeover+0x7c/0xdc [ 62.628906] [<ffffffff8024fa20>] notifier_call_chain+0x44/0x94 [ 62.628906] [<ffffffff8024fcbc>] __blocking_notifier_call_chain+0x48/0x68 [ 62.628906] [<ffffffff8042d990>] register_framebuffer+0x228/0x260 [ 62.628906] [<ffffffff8047e010>] drm_fb_helper_single_fb_probe+0x260/0x314 [ 62.628906] [<ffffffff8047e2c4>] drm_fb_helper_initial_config+0x200/0x234 [ 62.628906] [<ffffffff804e5560>] radeon_fbdev_init+0xd4/0xf4 [ 62.628906] [<ffffffff804e0e08>] radeon_modeset_init+0x9bc/0xa18 [ 62.628906] [<ffffffff804bfc14>] radeon_driver_load_kms+0xdc/0x12c [ 62.628906] [<ffffffff8048b548>] drm_get_pci_dev+0x148/0x238 [ 62.628906] [<ffffffff80423564>] local_pci_probe+0x5c/0xd0 [ 62.628906] [<ffffffff80241ac4>] work_for_cpu_fn+0x1c/0x30 [ 62.628906] [<ffffffff802427c8>] process_one_work+0x274/0x3bc [ 62.628906] [<ffffffff80242934>] process_scheduled_works+0x24/0x44 [ 62.628906] [<ffffffff8024515c>] worker_thread+0x31c/0x3f4 [ 62.628906] [<ffffffff802497a8>] kthread+0x88/0x90 [ 62.628906] [<ffffffff80206794>] kernel_thread_helper+0x10/0x18 Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Binbin Zhou <zhoubb@lemote.com> Cc: <stable@vger.kernel.org> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Dave Airlie <airlied@gmail.com> Reported by: J.R. Oldroyd <fbsd@opal.com> MFC after: 2 weeks
* When compiling boot2 with gcc on i386 and pc98, only use the custom flagdim2015-03-042-2/+6
| | | | | | | | | | -mno-align-long-strings when compiling with base gcc. This is checked by comparing the version number against 4.2.1, which is not exactly right, but good enough. (There is no other way to check whether we are using the non-standard gcc in base, as far as I know.) Reported by: rodrigc MFC after: 3 days
OpenPOWER on IntegriCloud