summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixes to newer tftp code in libstand:rodrigc2011-06-241-51/+132
| | | | | | | | | | | | | | | | | | (1) Coding style changes. (2) If the server does not acknowledge any blocksize option, revert to the default blocksize of 512 bytes. (3) Send ACK if the first packet happens to be the last packet. (4) Do not accept blocksize greater than what was requested. (5) Drop any unwanted OACK received if a tftp transfer is already in progress. (6) Terminate incomplete transfers with a special no-error ERROR packet. Otherwise we rely on the tftp server to time out, which it does eventually, after re-sending the last packet several times and spamming the system log about it every time. This idea is borrowed from the PXE client, which does exactly that. Submitted by: Alexander Kabaev <kan@FreeBSD.org> Reviewed and Tested by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
* Bring back synchnet() implementation from olderrodrigc2011-06-241-3/+30
| | | | | | | | | | | | | | | | | tftp implementation. The synchnet() function was converted to a no-op when the new TFTP implementation was committed to FreeBSD. However, this function, as it was in the older code, is needed in order to synchronize between the tftpd server and tftp clients, which may be buggy. Specifically, we had a buggy TFTP client which would send TFTP ACK packets for non-TFTP packets, which would cause the count of packets to get out of whack, causing transfers to fail with the new TFTPD implementation. Obtained from: Juniper Networks Submitted by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-2445-61/+623
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64)nwhitehorn2011-06-2316-71/+82
| | | | | | | | | | | | | | | instead of a PCPU field for curthread. This averts a race on SMP systems with a high interrupt rate where the thread looking up the value of curthread could be preempted and migrated between obtaining the PCPU pointer and reading the value of pc_curthread, resulting in curthread being observed to be the current thread on the thread's original CPU. This played merry havoc with the system, in particular with mutexes. Many thanks to jhb for helping me work this one out. Note that Book-E is in principle susceptible to the same problem, but has not been modified yet due to lack of Book-E hardware. MFC after: 2 weeks
* Make GNU as recognize the ARM 'rrx' mnemonic, which can be generated bydim2011-06-231-0/+10
| | | | | | clang for certain expressions. Code taken from Apple cctools (GPLv2). Submitted by: damjan.marion@gmail.com
* Fix make buildworld -DMODULES_WITH_WORLDuqs2011-06-233-7/+10
| | | | Sort opt_ srcs
* Put back the global for rx processing due to popular demand.jfv2011-06-231-1/+5
|
* Clear any outstanding atomic reservations when traps are taken. This fixesnwhitehorn2011-06-232-0/+4
| | | | | | some interesting bugs (mostly on SMP systems) with atomic operations silently failing in interrupt heavy situations, especially when using overflow pages.
* Unblock the outgoing thread after we performed pmap_switch() tomarcel2011-06-231-2/+2
| | | | | | | | | switch the region registers. pmap_switch() returns the pmap for which the region register are currently programmed, which needs to be re-programmed on the CPU the ougoing thread gets switched in. This change does not noticibly change anything or fix known bugs, but does give me a warm fuzzy feeling by being more correct.
* The recent change to increase the zfsboot size to 64k made a few BIOSesjhb2011-06-231-62/+63
| | | | | | | | | | | | | | | | | | | | | | unhappy (probably they don't handle crossing the 64k boundary, etc.). Fix this by changing zfsldr to use a loop reading from the disk one sector at a time. To avoid trashing the saved copy of the MBR which is used for disk I/O, read zfsboot2 at address 0x9000. This has the advantage that BTX no longer needs to be relocated as it is read into the correct location. However, the loop to relocate zfsboot2.bin can now cross a 64k boundary, so change it to use relative segments instead. (This will need further work if zfsboot2.bin ever exceeds 64k.) While here, stop storing a relocated copy of zfsldr at 0x700. This was only used by the xread hack which has recently been removed (and even that use was dubious). Also, include the BIOS error code as hex when reporting read errors to aid in debugging. Much thanks to Henri Hennebert for patiently testing various iterations of the patch as well as fixing the zfsboot2.bin relocation to use relative segments. MFC after: 1 week
* Fix ATAPI breakage introduced by r223443. It made SCSI commands to ATAPImav2011-06-231-1/+2
| | | | device to never complete, that caused probe process (system boot) stuck.
* add missing #define for the non-debug case.adrian2011-06-231-0/+1
|
* Document that autoSrcAddr isn't re-enabled on NGM_SHUTDOWN.glebius2011-06-231-2/+1
| | | | Submitted by: Vadim Goncharov <vadim_nuclight mail.ru>
* - Add some comments about the origin of some USB descriptors.hselasky2011-06-233-1/+10
| | | | MFC after: 7 days
* Fix merge typo.andreast2011-06-231-1/+1
|
* Add leading zeros when printing the stackframe on __powerpc64__.andreast2011-06-231-1/+1
|
* Be consistent with r160968: keep autoSrcAddr flag untouched whenglebius2011-06-231-1/+0
| | | | | | node receives NGM_SHUTDOWN. Submitted by: pluknet
* - Add more USB templates for various USB device classeshselasky2011-06-2312-13/+1182
| | | | | | | - Add basic template support for USB 3.0 - Export definition of template sysctl numbers through usb_ioctl.h MFC after: 7 days
* Re-introduce a global ath_hal_debug again for now, whilst I figure out whatadrian2011-06-2313-24/+43
| | | | | | | | | | | | to do about the few cases where the HAL state isn't available (regdomain) or isn't yet setup (probe/attach.) The global ath_hal_debug now affects all instances of the HAL. This also restores the ability for probe/attach debugging to work; as the sysctl tree may not be attached at that point. Users can just set the global "hw.ath.hal.debug" to a suitable value to enable probe/attach related debugging.
* Fix indenting issues introduced by the previous commit.adrian2011-06-232-4/+4
|
* Revert to using the page queues lock in vm_page_clear_dirty_mask() onalc2011-06-232-4/+2
| | | | | MIPS. (At present, although atomic_clear_char() is defined by atomic.h on MIPS, it is not actually implemented by support.S.)
* Use atomic operations to mask and unmask IRQs. This prevents a problemnwhitehorn2011-06-231-8/+8
| | | | | | (obvious in retrospect) in which interrupts on one CPU that are temporarily masked can end up permanently masked when a handler on another CPU clobbers the interrupt mask register with an old copy.
* Use 4 KB pages for storage bus devices, which seems to be what the HV usesnwhitehorn2011-06-231-2/+6
| | | | internally.
* Rework the PS3 disk driver to support NCQ and do its DMA a littlenwhitehorn2011-06-231-388/+189
| | | | differently.
* Add hypervisor call error codes.nwhitehorn2011-06-232-0/+56
|
* Break out most of the HAL related tweaks into a per-HAL instance,adrian2011-06-2315-55/+77
| | | | | | | | | | | | | | | | | rather than global variables. This specifically allows for debugging to be enabled per-NIC, rather than globally. Since the ath driver doesn't know about AH_DEBUG, and to keep the ABI consistent regardless of whether AH_DEBUG is enabled or not, enable the debug parameter always but only conditionally compile in the debug methods if needed. The ALQ support is currently still global pending some brainstorming. Submitted by: ssgriffonuser@gmail.com Reviewed by: adrian, bschmidt
* Bump &release.manpath.*;.hrs2011-06-231-2/+2
|
* Remove links to mirrorlist.FreeBSD.org.hrs2011-06-231-2/+1
| | | | | Submitted by: ryusuke Reported by: gavin, brucec
* Update references to RFC's that the newer TFTP implementation supports.rodrigc2011-06-221-0/+34
|
* Update references to RFC's that the newer TFTP implementation supports.rodrigc2011-06-221-3/+25
|
* Fix build on ia64 after r223426.jkim2011-06-221-0/+2
|
* Return CAM_REQ_INVALID if the SCSI XPT receives an unsupported operationwill2011-06-221-3/+4
| | | | | | via the XPT_DEV_ADVINFO CCB. Reviewed by: ken
* Bump date.rodrigc2011-06-221-1/+49
| | | | | Document the following commands which were added in the new TFTP implementation: blocksize, blocksize2, packetdrop, options, rollover
* Use USB_VENDOR_OVISLINK define rather than the vendor ID.gavin2011-06-221-1/+1
| | | | | | PR: usb/158142 Submitted by: Robert Millan <rmh debian.org> MFC after: 1 week
* Fix typo.rodrigc2011-06-221-1/+1
| | | | Reported by: Nick Mann <njm at njm dot me dot uk>
* Clarify tftpd's -d flag in the new TFTP implementation.rodrigc2011-06-221-3/+21
| | | | Bump date.
* Plumb support for the device advanced information CCB in the ATA XPT.will2011-06-221-0/+33
| | | | | | | | | | This was previously done only for SCSI XPT in r223081, on which the change in r223089 depended in order to respond to serial number requests. As a result of r223089, da(4) and ada(4) devices register a d_getattr for geom to use to obtain the information. Reported by: ache Reviewed by: ken
* Plug an mbuf leak in the new NFS client that occurred when armacklem2011-06-221-0/+2
| | | | | | | | server replied NFS3ERR_JUKEBOX/NFS4ERR_DELAY to an rpc. This affected both NFSv3 and NFSv4. Found during testing at the recent NFSv4 interoperability Bakeathon. MFC after: 2 weeks
* Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h tojhb2011-06-229-545/+105
| | | | | the x86 tree. The $PIR code is still only enabled on i386 and not amd64. While here, make the qpi(4) driver on conditional on 'device pci'.
* Export AddLink() function from libalias. It can be used when customae2011-06-224-39/+127
| | | | | | | | | | | alias address needs to be specified. Add inbound handler to the alias_ftp module. It helps handle active FTP transfer mode for the case with external clients and FTP server behind NAT. Fix passive FTP transfer case for server behind NAT using redirect with external IP address different from NAT ip address. PR: kern/157957 Submitted by: Alexander V. Chernikov
* Fix the new NFSv4 client so that it uses the same uid asrmacklem2011-06-221-0/+14
| | | | | | | | | was used for doing a mount when performing system operations on AUTH_SYS mounts. This resolved an issue when mounting a Linux server. Found during testing at the recent NFSv4 interoperability Bakeathon. MFC after: 2 weeks
* Add LOGIN_SETCPUMASK and LOGIN_SETLOGINCLASS to the setusercontext(3)trasz2011-06-221-6/+5
| | | | calls in ftpd(8).
* Oops, missed these in 223424.jhb2011-06-222-0/+2
| | | | Reported by: jkim
* Advertise growfs(8) a little better.trasz2011-06-222-2/+4
|
* Cosmetic fixes; mostly s/file system/filesystem/g and removing weird indenttrasz2011-06-222-46/+46
| | | | from messages.
* Use uintXX_t instead of u_intXX_t.jhb2011-06-222-8/+8
|
* Set negative quality to TSC timecounter when C3 state is enabled for Inteljkim2011-06-224-0/+17
| | | | | | | | | | | | | | | processors unless the invariant TSC bit of CPUID is set. Intel processors may stop incrementing TSC when DPSLP# pin is asserted, according to Intel processor manuals, i. e., TSC timecounter is useless if the processor can enter deep sleep state (C3/C4). This problem was accidentally uncovered by r222869, which increased timecounter quality of P-state invariant TSC, e.g., for Core2 Duo T5870 (Family 6, Model f) and Atom N270 (Family 6, Model 1c). Reported by: Fabian Keil (freebsd-listen at fabiankeil dot de) Ian FREISLICH (ianf at clue dot co dot za) Tested by: Fabian Keil (freebsd-listen at fabiankeil dot de) - Core2 Duo T5870 (C3 state available/enabled) jkim - Xeon X5150 (C3 state unavailable)
* Add a helper routine to conditionally modify the start address of ajhb2011-06-223-66/+68
| | | | | | | | | | | | | | | | resource allocation from an x86 Host-PCI bridge driver so that it can be reused by the ACPI Host-PCI bridge driver (and eventually the MPTable Host-PCI bridge driver) instead of duplicating the same logic. Note that this means that hw.acpi.host_mem_start is now replaced with the hw.pci.host_mem_start tunable that was already used in the non-ACPI case. This also removes hw.acpi.host_mem_start on ia64 where it was not applicable (the implementation was very x86-specific). While here, adjust the logic to apply the new start address on any "wildcard" allocation even if that allocation comes from a subset of the allowable address range. Reviewed by: imp (1)
* Document PKT_ALIAS_SKIP_GLOBAL option.ae2011-06-221-1/+11
| | | | Submitted by: Alexander V. Chernikov
* One more braino from me.glebius2011-06-221-3/+6
| | | | | Pointy hat to: glebius Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>
OpenPOWER on IntegriCloud