aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for the integrated wifi for the QCA953x base config andAdrian Chadd2015-11-293-4/+6
| | | | | | | | | | | AP143. Tested: * AP143 reference design board Notes: svn path=/head/; revision=291438
* Add initial support for the QCA953x SoC (honeybee) wifi.Adrian Chadd2015-11-298-41/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a 2x2 2GHz 802.11n part. It works enough at the moment to bring up, scan and associate. I haven't started using this as a day to day AP. The specifics: * add honeybee initvals * add in changes; a mix from the QCA HAL and ath9k; * fix a bug in AR_SREV_AR9580_10_OR_LATER(), which is only used for one capability check and we don't even implement it - so it's a big no-op. Shady things: * ath9k has the "platform data" define the 25/40MHz clock. This HAL .. doesn't. Honeybee gets hard-coded to 25MHz which it likely shouldn't be. I'll have to go and identify/fix those. Tested: * Qualcomm Atheros AP143 reference design board. Obtained from: Qualcomm Atheros; Linux ath9k Notes: svn path=/head/; revision=291437
* sfxge: add prefast annotation to common code return typesAndrew Rybchenko2015-11-2943-1476/+1491
| | | | | | | | | | | | | | | | Using a typedef for common code return types (rather than "int") allows the Prefast static analyser to understand when a function has been successful (and thus when its postconditions must hold). This greatly reduces then number of false positives reported by prefast for error paths in common code functions. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291436
* u32 -> uint32_t.Adrian Chadd2015-11-291-3/+3
| | | | Notes: svn path=/head/; revision=291435
* sfxge: cleanup: fix prefast annotations on mac stats updatesAndrew Rybchenko2015-11-291-7/+7
| | | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days X-MFC with: r291397 Notes: svn path=/head/; revision=291434
* [ath_hal] add AR9461 (jupiter) 2.1 support.Adrian Chadd2015-11-294-9/+1583
| | | | | | | Obtained from: Linux ath9k Notes: svn path=/head/; revision=291433
* sfxge: modify nvram update functions for uio platform to support ↵Andrew Rybchenko2015-11-293-81/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFID-selectable presets Dynamic config partitions on boards that support RFID are divided into a number of segments, each formatted like a partition, with header, trailer and end tags. The first segment is the current active configuration. The segments are initialised by manftest and each contain a different configuration e.g. firmware variant. The firmware can be instructed via RFID to copy a segment over the first segment, hence changing the active configuration. This allows ops to change the configuration of a board prior to shipment using RFID. Changes to the dynamic config may need to be written to all segments (in particular firmware versions written by manftest) or just the first segment (changes to the active configuration). See SF-111324-SW. If only the first segment is written the code still needs to be aware of the possible presence of subsequent segments as writing to a segment may cause its size to increase, which would overwrite the subsequent segments and invalidate them. Boards that do not support RFID will only have one segment in their dynamic config partition. Submitted by: Paul Fox <pfox at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4302 Notes: svn path=/head/; revision=291432
* drm/i915: Reduce diff with Linux 3.8Jean-Sébastien Pédron2015-11-281-130/+130
| | | | | | | | | | There is no functional change. The goal is to ease the future update to Linux 3.8's i915 driver. MFC after: 2 months Notes: svn path=/head/; revision=291431
* drm/i915: Further reduce the diff in i915_dma.cJean-Sébastien Pédron2015-11-281-4/+4
| | | | | | | MFC after: 2 months Notes: svn path=/head/; revision=291430
* drm/i915: Reduce diff with Linux 3.8Jean-Sébastien Pédron2015-11-281-56/+34
| | | | | | | | | | There is no functional change. The goal is to ease the future update to Linux 3.8's i915 driver. MFC after: 2 months Notes: svn path=/head/; revision=291428
* AHCI: Use bus_dmamap_sync(9) when accessing DMA buffers.Michal Meloun2015-11-281-3/+8
| | | | | | | | | Reviewed by: mav Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D4240 Notes: svn path=/head/; revision=291427
* ARM: Implement atomic_swap_int(9). It's used in DRM2 code.Michal Meloun2015-11-283-0/+27
| | | | | | | Approved by: kib (mentor) Notes: svn path=/head/; revision=291426
* ARM: Add support for new KRAIT 300 CPU revision.Michal Meloun2015-11-283-3/+8
| | | | | | | Approved by: kib (mentor) Notes: svn path=/head/; revision=291425
* ARM: Cumulative fixes for GICMichal Meloun2015-11-281-13/+29
| | | | | | | | | | | | | | - fix detection of interrupt root controller - allow (but warn) unsupported configuration bits - dont send EOI for spurious interrupts - print more informations for spurious interrupts - use device_printf() where appropriate Reviewed by: ian (earlier version) Approved by: kib (mentor) Notes: svn path=/head/; revision=291424
* Remove sv_prepsyscall, sv_sigsize and sv_sigtbl members of the structKonstantin Belousov2015-11-2818-68/+0
| | | | | | | | | | | | | | | | | | | sysent. sv_prepsyscall is unused. sv_sigsize and sv_sigtbl translate signal number from the FreeBSD namespace into the ABI domain. It is only utilized on i386 for iBCS2 binaries. The issue with this approach is that signals for iBCS2 were delivered with the FreeBSD signal frame layout, which does not follow iBCS2. The same note is true for any other potential user if sv_sigtbl. In other words, if ABI needs signal number translation, it really needs custom sv_sendsig method instead. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291420
* Disconnect iBCS2 emulator from the build. The ibcs2 option, the buildKonstantin Belousov2015-11-283-3/+3
| | | | | | | | | | glue and the sources are not removed for now. Discussed with: emaste Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291419
* [ath_hal] use the correct revision information for QCA953x.Adrian Chadd2015-11-282-4/+2
| | | | | | | | | | | | This probe/attaches correctly in my local branch and now displays a useful message: ath0: <Qualcomm Atheros QCA953x> at mem 0x18100000-0x1811ffff irq 0 on nexus0 ... ath0: AR9530 mac 1280.0 RF5110 phy 0.0 Notes: svn path=/head/; revision=291418
* Add AR9530 (honeybee) config option.Adrian Chadd2015-11-281-0/+1
| | | | Notes: svn path=/head/; revision=291416
* Regen src.conf.5 for recent option changes.Hajimu UMEMOTO2015-11-281-12/+6
| | | | Notes: svn path=/head/; revision=291415
* Fix breakage by recent collation change.Hajimu UMEMOTO2015-11-281-1/+1
| | | | | | | LC_ALL has to be exported. Notes: svn path=/head/; revision=291414
* * Add device string for QCA955x (scorpion);Adrian Chadd2015-11-282-0/+7
| | | | | | | * Add device ID and device string for QCA953x (honeybee). Notes: svn path=/head/; revision=291413
* wrap in ATH_DEBUG.Adrian Chadd2015-11-281-2/+2
| | | | | | | Thanks sparc64 build! Notes: svn path=/head/; revision=291412
* [ath] conditionally print out the rate series information if ATH_DEBUG_XMIT ↵Adrian Chadd2015-11-271-3/+4
| | | | | | | is set. Notes: svn path=/head/; revision=291411
* Take also the send queue and sent queue into account when triggeringMichael Tuexen2015-11-271-4/+8
| | | | | | | | | the sending of outgoing stream reset requests. MFC after: 3 days Notes: svn path=/head/; revision=291410
* kbdmap: include filename when reporting fopen() failureEd Maste2015-11-271-1/+1
| | | | | | | | | | Previously only one of two cases reported the file name. Use the same error string in both cases. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291409
* In vm_pageout_grow_cache(), do not re-try the inactive queue whenKonstantin Belousov2015-11-271-5/+6
| | | | | | | | | | | | | | | | active queue scan initiated write. Re-trying from the inactive queue when doing active scan makes the loop never end if number of domains is greater than 1 and inactive or active scan cannot reach the target. Reported and tested by: Andrew Gallatin <gallatin@netflix.com> Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=291408
* Add helper to catch single step debug event and distinguish it from bkptZbigniew Bodek2015-11-271-7/+17
| | | | | | | | | | | | | | | | | | Some architectures (including ARMv6/v7) do not have separate single step events and cannot see difference between breakpoint and single step. Add db_pc_is_singlestep() to avoid skipping instruction we stepped on to trigger debug event. This commit does not change the existing functionality but adds possibility to implement custom db_pc_is_singlestep(). Reviewed by: imp Submitted by: Zbigniew Bodek <zbb@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4036 Notes: svn path=/head/; revision=291407
* Add support to libkvm for reading vmcores from other architectures.John Baldwin2015-11-2742-1598/+2381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a kvaddr_type to represent kernel virtual addresses instead of unsigned long. - Add a struct kvm_nlist which is a stripped down version of struct nlist that uses kvaddr_t for n_value. - Add a kvm_native() routine that returns true if an open kvm descriptor is for a native kernel and memory image. - Add a kvm_open2() function similar to kvm_openfiles(). It drops the unused 'swapfile' argument and adds a new function pointer argument for a symbol resolving function. Native kernels still use _fdnlist() from libc to resolve symbols if a resolver function is not supplied, but cross kernels require a resolver. - Add a kvm_nlist2() function similar to kvm_nlist() except that it uses struct kvm_nlist instead of struct nlist. - Add a kvm_read2() function similar to kvm_read() except that it uses kvaddr_t instead of unsigned long for the kernel virtual address. - Add a new kvm_arch switch of routines needed by a vmcore backend. Each backend is responsible for implementing kvm_read2() for a given vmcore format. - Use libelf to read headers from ELF kernels and cores (except for powerpc cores). - Add internal helper routines for the common page offset hash table used by the minidump backends. - Port all of the existing kvm backends to implement a kvm_arch switch and to be cross-friendly by using private constants instead of ones that vary by platform (e.g. PAGE_SIZE). Static assertions are present when a given backend is compiled natively to ensure the private constants match the real ones. - Enable all of the existing vmcore backends on all platforms. This means that libkvm on any platform should be able to perform KVA translation and read data from a vmcore of any platform. Tested on: amd64, i386, sparc64 (marius) Differential Revision: https://reviews.freebsd.org/D3341 Notes: svn path=/head/; revision=291406
* Add support for exynos5_ehci in loaderZbigniew Bodek2015-11-277-4/+258
| | | | | | | | | | | | | Create new driver which initializes Arndale PHY and calls ehci_init Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4192 Notes: svn path=/head/; revision=291405
* Increase malloc area in loader/usbZbigniew Bodek2015-11-271-1/+4
| | | | | | | | | | | | | Previous value was not enough on Arndale platform. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4145 Notes: svn path=/head/; revision=291404
* Run callouts during infinite waiting inside cv_waitZbigniew Bodek2015-11-271-0/+9
| | | | | | | | | | | | | | During cv_wait we may be waiting for an event triggered by callout. Run callbacks here to avoid code blocking. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4144 Notes: svn path=/head/; revision=291403
* Implement simple ops for umass_diskZbigniew Bodek2015-11-273-1/+72
| | | | | | | | | | | | | | | The initial IOCTL implementation supports reading disk physical geometry. Two additional functions were added. They allow reading/writing raw data to the disk (default partition). Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4143 Notes: svn path=/head/; revision=291402
* Do not zero memory in umass_detachZbigniew Bodek2015-11-271-0/+3
| | | | | | | | | | | | | | The detach function is called very often, for example from get_capacity function. We don't want to loose any pointers here, so disable detaching for umass driver. Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4141 Notes: svn path=/head/; revision=291401
* Implement missing bus_space_subregion in kshimZbigniew Bodek2015-11-272-0/+11
| | | | | | | | | | | | | Add missing function, used by exynos5_ehci driver. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4141 Notes: svn path=/head/; revision=291400
* Use properly aligned buffer in usb_allocZbigniew Bodek2015-11-271-1/+1
| | | | | | | | | | | | | | The PA adress must be gathered from an aligned VA, not the RAW pointer to the memory space. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4140 Notes: svn path=/head/; revision=291399
* sfxge: cleanup: report error on failure path in efx_vpd_hunk_verifyAndrew Rybchenko2015-11-271-1/+3
| | | | | | | | | | | | | | | If the VPD is corrupt and contains an 'RV' keyword before the END tag, then this function could return without setting the return code to report the error. Found by prefast. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291398
* sfxge: cleanup: fix prefast annotations on mac stats updatesAndrew Rybchenko2015-11-276-6/+6
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291397
* sfxge: fix prefast warning in falconsiena_tx_qcreateAndrew Rybchenko2015-11-271-0/+2
| | | | | | | | | | | | | Keep prefast happy by returning the initial queue index from falconsiena_tx_qcreate(). No change in behaviour, as etxo_qcreate already zeros *addedp before the call. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291396
* sfxge: cleanup: fix prefast annotations for stats buffersAndrew Rybchenko2015-11-2711-15/+15
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291395
* sfxge: unlink PIO buffers from VIs in WC mapping in hunt_nic_fini()Andrew Rybchenko2015-11-271-1/+13
| | | | | | | | | | | PIO is not yet supported in the FreeBSD driver. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291394
* sfxge: infer external port numbering for PaviaAndrew Rybchenko2015-11-271-3/+11
| | | | | | | | | | | | | | Adjust external port mapping table to distinguish Pavia from Monza. Now the presence of any 40G mode implies at least 2 outputs per external port. So Pavia 4x10G ports are now mapped to 1,2,3,4; Monza 4x10G ports map to 1,1,2,2 as before. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291393
* sfxge: cleanup: fix prefast annotationAndrew Rybchenko2015-11-271-1/+1
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291392
* sfxge: do not use unnamed union in siena_mc_combo_rom_hdr_tAndrew Rybchenko2015-11-271-1/+1
| | | | | | | | | | | | GCC 4.2.1 used on FreeBSD 8 and 9 branches does not like unnamed union member in the structure. It is not strictly required in head, but nice to have to minimize difference with out-of-tree driver. Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291391
* sfxge: cleanup: error probe correctionAndrew Rybchenko2015-11-271-1/+1
| | | | | | | | | Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=291390
* Use netbsd usage() implementation in newfs_msdosEd Maste2015-11-271-27/+14
| | | | | | | | | | In r289629 newfs_msdos option descriptions are available in mkfs_msdos.h. Obtained from: NetBSD Notes: svn path=/head/; revision=291385
* Fix panic when trying to sort unsupported command in OOA queue.Alexander Motin2015-11-271-0/+2
| | | | | | | Handle unsupported commands as not conflicting/blocking. Notes: svn path=/head/; revision=291383
* mkfs_msdos: sync with NetBSDEd Maste2015-11-271-3/+8
| | | | | | | | | Add a sanity test and clean up whitespace. Obtained from: NetBSD Notes: svn path=/head/; revision=291382
* Remove VI_AGE vnode iflag, it is unused.Konstantin Belousov2015-11-272-14/+4
| | | | | | | | Noted by: bde Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291380
* Move the comment about resident pages preventing vnode from leavingKonstantin Belousov2015-11-271-5/+11
| | | | | | | | | | | | | active list, into the header comment for vdrop(), which is the function that decides whether to leave the vnode on the list. Note that dirty page write-out in vinactive() is asynchronous. Discussed with: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=291379
* vidfont: with vt(4) omit size from vidcontrol -fEd Maste2015-11-271-5/+13
| | | | | | | | | | | | | | When using syscons, vidfont extracts the font size from the filename passes it to vidcontrol -f. In vt(4) mode the size argument is not required, and some of the fonts in /usr/share/vt/fonts do not have the size in the filename, which caused vidfont to fail. Thus, just omit the size argument in vt(4) mode. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291377