]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoo Do nothing in show_nat() for a test mode (-n). This prevents
maxim [Tue, 14 Oct 2008 17:53:26 +0000 (17:53 +0000)]
o Do nothing in show_nat() for a test mode (-n).  This prevents
show_nat() from endless loop and makes work ipfw -n nat <...>.

PR: bin/128064
Submitted by: sem
MFC after: 1 month

15 years agoRewrite Synaptics touchpads support with the following goals in mind:
dumbbell [Tue, 14 Oct 2008 17:48:36 +0000 (17:48 +0000)]
Rewrite Synaptics touchpads support with the following goals in mind:
    o  better quality of the movement smoothing
    o  more features such as tap-hold and virtual scrolling

Support must still be enabled with this line in your /boot/loader.conf:
    hw.psm.synaptics_support="1"

The following sysctls were removed:
    hw.psm.synaptics.low_speed_threshold
    hw.psm.synaptics.min_movement
    hw.psm.synaptics.squelch_level

An overview of this new driver and a short documentation about the added
sysctls is available on the wiki:
http://wiki.freebsd.org/SynapticsTouchpad

15 years agoo Remove unnecessary parentheses and restore identation.
maxim [Tue, 14 Oct 2008 17:47:29 +0000 (17:47 +0000)]
o Remove unnecessary parentheses and restore identation.

Prodded by: mlaier

15 years agocorrect sizeof calculation
sam [Tue, 14 Oct 2008 16:27:52 +0000 (16:27 +0000)]
correct sizeof calculation

PR: arm/128095
Submitted by: Henning Petersen
MFC after: 1 week

15 years agoCorrect the name of the device.
n_hibma [Tue, 14 Oct 2008 15:30:17 +0000 (15:30 +0000)]
Correct the name of the device.

15 years agoAdd back in the (incorrect) entry for the MC950D, as requested by Andrew
n_hibma [Tue, 14 Oct 2008 15:19:02 +0000 (15:19 +0000)]
Add back in the (incorrect) entry for the MC950D, as requested by Andrew
Thompson. They should not be removed in support of 3rd party software.

15 years agoConvert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This
nwhitehorn [Tue, 14 Oct 2008 14:54:14 +0000 (14:54 +0000)]
Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This
simplifies certain device attachments (Kauai ATA, for instance), and makes
possible others on new hardware.

On G5 systems, there are several otherwise standard PCI devices
(Serverworks SATA) that will not allow their interrupt properties to be
written, so this information must be supplied directly from Open Firmware.

Obtained from: sparc64

15 years agoo Reformat ipfw nat get|setsockopt code to look it more
maxim [Tue, 14 Oct 2008 12:26:55 +0000 (12:26 +0000)]
o Reformat ipfw nat get|setsockopt code to look it  more
style(9) compliant.  No functional changes.

15 years agoInitial support of loader(8) for ARM machines running U-Boot.
raj [Tue, 14 Oct 2008 10:11:14 +0000 (10:11 +0000)]
Initial support of loader(8) for ARM machines running U-Boot.

This uses the common U-Boot support lib (sys/boot/uboot, already used on
FreeBSD/powerpc), and assumes the underlying firmware has the modern API for
stand-alone apps enabled in the config (CONFIG_API).

Only netbooting is supported at the moment.

Obtained from: Marvell, Semihalf

15 years agoLet libstand(3) build on ARM.
raj [Tue, 14 Oct 2008 09:53:47 +0000 (09:53 +0000)]
Let libstand(3) build on ARM.

This is a pre-requisite for loader(8) + U-Boot support library on this arch.

15 years agoMove all the hacks for the Huawei, Novatel and Qualcomm cards into a stub
n_hibma [Tue, 14 Oct 2008 08:41:54 +0000 (08:41 +0000)]
Move all the hacks for the Huawei, Novatel and Qualcomm cards into a stub
driver.

This stub also hides the devices until they are ready to be used to avoid
confusion (commented out for now).

15 years agoAdd kernel config files for Marvell development boards.
raj [Tue, 14 Oct 2008 08:18:27 +0000 (08:18 +0000)]
Add kernel config files for Marvell development boards.

FreeBSD 8-CURRENT was tested and run successfully on the following eval
boards and devices :

  * DB-88F5182, DB-88F5281 (Orion based)

  * DB-88F6281, RD-88F6281 (Kirkwood based)

  * DB-78100 (Discovery based)

For more detailed info on build instructions and other examples please refer
to http://wiki.freebsd.org/FreeBSDMarvell

Obtained from: Marvell, Semihalf

15 years agoMake robust futexes work on linux32/amd64. Use PTRIN to read
kib [Tue, 14 Oct 2008 07:59:23 +0000 (07:59 +0000)]
Make robust futexes work on linux32/amd64. Use PTRIN to read
user-mode pointers. Change types used in the structures definitions to
properly-sized architecture-specific types.

Submitted by: dchagin
MFC after: 1 week

15 years agoFix a comment.
n_hibma [Tue, 14 Oct 2008 07:52:47 +0000 (07:52 +0000)]
Fix a comment.

Submitted by: Nick Mann

15 years ago- Fix the naming of the MC950D device.
n_hibma [Tue, 14 Oct 2008 07:45:11 +0000 (07:45 +0000)]
- Fix the naming of the MC950D device.
- Remove the (unimplemented) U3GFL_EJECT quirk as this won't be implemented in
  the u3g driver anyway (most probably as an entry in devd.conf)

15 years agoMarvell Gigabit Ethernet controller driver.
raj [Tue, 14 Oct 2008 07:24:18 +0000 (07:24 +0000)]
Marvell Gigabit Ethernet controller driver.

This supports 1Gbps Ethernet engine found on ARM-based SOCs (Orion, Kirkwood,
Discovery), as well as on system controllers for PowerPC processors (MV64430,
MV6446x).

The following advanced features are supported:

  - multicast
  - VLAN tagging
  - IP/TCP/UDP checksum calculation offloading
  - polling
  - interrupt coalescing

Obtained from: Marvell, Semihalf

15 years agoMbus attachment for USB EHCI integrated controller on Marvell chips.
raj [Tue, 14 Oct 2008 07:05:20 +0000 (07:05 +0000)]
Mbus attachment for USB EHCI integrated controller on Marvell chips.

This includes workarounds required for the ehci(4) to handle some non-standard
behaviour of these devices.

Obtained from: Marvell, Semihalf

15 years agoupdate the manual on how to import and MFV new tzdata releases
edwin [Tue, 14 Oct 2008 04:09:33 +0000 (04:09 +0000)]
update the manual on how to import and MFV new tzdata releases

15 years agoMFV of r183861:
edwin [Tue, 14 Oct 2008 03:38:02 +0000 (03:38 +0000)]
MFV of r183861:
Vendor import of tzdata2008h

- Minor update for Mauritius (which I don't understand)
- Syria goes to DST at 1 November instead of 1 October.
- Niue is now located at the right side of the equator.

15 years agoAdd a simple HFS boot block implementation for booting PowerPC macs. It creates
nwhitehorn [Tue, 14 Oct 2008 03:32:41 +0000 (03:32 +0000)]
Add a simple HFS boot block implementation for booting PowerPC macs. It creates
a small HFS filesystem with a CHRP boot script and an early-stage bootloader
derived from the sparc64 boot block.

Obtained from:  sparc64

15 years agoThe thought of making more than one DVD image for a release really
kensmith [Tue, 14 Oct 2008 02:13:12 +0000 (02:13 +0000)]
The thought of making more than one DVD image for a release really
freaks me out.  But it turns out we might be able to generalize
a few of the other things RE uses to assemble the package trees
for releases if the DVDs use a naming theme close to what is used
for the CDROMS (disc1, disc2, etc).  So change the name to dvd1.
Hopefully this way src/release/scripts/{package-split.py,package-trees.sh}
can be generalized instead of copied-and-hacked.

MFC after: 5 days

15 years agoMake sure to read the last byte of EEPROM descriptor. Previously
yongari [Tue, 14 Oct 2008 00:54:15 +0000 (00:54 +0000)]
Make sure to read the last byte of EEPROM descriptor. Previously
the last byte of the ethernet address was not read which in turn
resulted in getting 5 out of the 6 bytes of ethernet address and
always returned ENOENT. I did not notice the bug on FPGA version
because of additional configuration data in EEPROM.

Pointed out by: bouyer at NetBSD

15 years agoANSIfy, plus constify interfaces where possible.
delphij [Mon, 13 Oct 2008 23:10:19 +0000 (23:10 +0000)]
ANSIfy, plus constify interfaces where possible.

15 years agoUse strlcpy() instead of strncpy() when we want the string to be
delphij [Mon, 13 Oct 2008 22:50:38 +0000 (22:50 +0000)]
Use strlcpy() instead of strncpy() when we want the string to be
NUL-terminated.

15 years agoCheck the result of copyin and in a case of error
rdivacky [Mon, 13 Oct 2008 21:04:52 +0000 (21:04 +0000)]
Check the result of copyin and in a case of error
return one. This prevents setting wrong priority
or (more likely) returning EINVAL.

Approved by: kib (mentor)

15 years agoMention iwn(4) and malo(4).
brueffer [Mon, 13 Oct 2008 21:02:19 +0000 (21:02 +0000)]
Mention iwn(4) and malo(4).

Note that the malo entry doesn't suck in the hardware adapter list from the
manpage yet, as man2hwnotes.pl doesn't grok the table format.

15 years agoUpdate the man pages with the moved/added support for devices. The SD card slot
n_hibma [Mon, 13 Oct 2008 20:43:08 +0000 (20:43 +0000)]
Update the man pages with the moved/added support for devices. The SD card slot
of the Huawei mobile card is supported by the (generic) umass driver.

15 years ago- Add better support for Huawei cards, by attaching as an interface driver.
n_hibma [Mon, 13 Oct 2008 20:41:11 +0000 (20:41 +0000)]
- Add better support for Huawei cards, by attaching as an interface driver.
- Be bold and add Novatel cards to the list of supported devices. One person
  reported success with the Novatal U950D.

15 years ago- Only refuse to attach to the first interface on the Huawei cards as for
n_hibma [Mon, 13 Oct 2008 20:38:33 +0000 (20:38 +0000)]
- Only refuse to attach to the first interface on the Huawei cards as for
  example the Huawei Mobile has an SD card slot on the second interface.
- Do not attach to Qualcomm and Novatel cards. If ignored these cards will
  switch to modem mode automatically it seems.
- Reduce the priority on generic attachment to the appropriate level.

Note: A better solution is to send an eject command straightaway, but that can
be left till later.

15 years agoThis code has no copyright. It is fairly obvious to me that we're a
imp [Mon, 13 Oct 2008 20:24:03 +0000 (20:24 +0000)]
This code has no copyright.  It is fairly obvious to me that we're a
derivitive of NetBSD's mips_reloc.c, so pull in the copyright notice
from there.

Also, a minor tweak to load/store pointers.  Other changes from NetBSD
likely would be useful too...

Obtained from: NetBSD

15 years agoIntroduce basic support for Marvell families of system-on-chip ARM devices:
raj [Mon, 13 Oct 2008 20:07:13 +0000 (20:07 +0000)]
Introduce basic support for Marvell families of system-on-chip ARM devices:

  *  Orion
     - 88F5181
     - 88F5182
     - 88F5281

  * Kirkwood
     - 88F6281

  * Discovery
     - MV78100

The above families of SOCs are built around CPU cores compliant with ARMv5TE
instruction set architecture definition. They share a number of integrated
peripherals. This commit brings support for the following basic elements:

  * GPIO
  * Interrupt controller
  * L1, L2 cache
  * Timers, watchdog, RTC
  * TWSI (I2C)
  * UART

Other peripherals drivers will be introduced separately.

Reviewed by: imp, marcel, stass (Thanks guys!)
Obtained from: Marvell, Semihalf

15 years agoOne more L2 cache synchronization call that didn't make the previous commit.
raj [Mon, 13 Oct 2008 19:14:14 +0000 (19:14 +0000)]
One more L2 cache synchronization call that didn't make the previous commit.

15 years agoProvide L2 cache synchronization (write back + invalidation) on ARM.
raj [Mon, 13 Oct 2008 18:59:59 +0000 (18:59 +0000)]
Provide L2 cache synchronization (write back + invalidation) on ARM.

Note the cpu_l2cache_wbinv_* routines are no-ops on systems not populated with
L2 caches.

Obtained from: Marvell, Semihalf

15 years agoDo not use cached page for temporary mapping in pmap_zero_page_generic()
raj [Mon, 13 Oct 2008 18:42:25 +0000 (18:42 +0000)]
Do not use cached page for temporary mapping in pmap_zero_page_generic()

The physical page which we clear is accessed via additional temp kernel
mapping for the period of zeroing operation. However in systems with virtual
d-cache (most ARMs) when write-allocate feature is enabled, we can have
modified but unflushed content pertaining to this physical page still in the
d-cache due to its primary (pre-existing) mapping. In such scenario that
cached content upon flush is likely to overwrite [portions of] the physical
page we want to zero here..

This is a general problem with multiple virtual mappings covering the same
physical page with write-allocate and virtual d-cache: there is inherent
potential for corruptions of this kind, which are not easily resolved; it is
best policy that such multiple mappings be not allowed.

Obtained from: Marvell, Semihalf

15 years agoIntroduce low-level support for new Marvell core CPUs: 88FR131, 88FR571.
raj [Mon, 13 Oct 2008 18:16:54 +0000 (18:16 +0000)]
Introduce low-level support for new Marvell core CPUs: 88FR131, 88FR571.

They are compliant with ARMv5TE and integrated on 88F6281 (Kirkwood) and
MV78100 (Discovery) system-on-chip families.

Obtained from: Marvell, Semihalf

15 years agoCorrect memory leak of info->rects. Previously we would free info, but
rnoland [Mon, 13 Oct 2008 18:06:33 +0000 (18:06 +0000)]
Correct memory leak of info->rects.  Previously we would free info, but
but abandon info->rects.

Approved by: jhb (mentor)

15 years agoRework memory allocation to allocate memory with different type names. This
rnoland [Mon, 13 Oct 2008 18:03:27 +0000 (18:03 +0000)]
Rework memory allocation to allocate memory with different type names.  This
will ease the identification of memory leaks as the OS will be able to track
allocations for us by malloc type.  vmstat -m will show all of the
allocations.

Convert the calls to drm_alloc() and friends, which are used in shared code
to static __inline__ while we are here.

Approved by: jhb (mentor)

15 years agoThe linux list compat code had an error which prevented list_for_each_safe()
rnoland [Mon, 13 Oct 2008 17:52:41 +0000 (17:52 +0000)]
The linux list compat code had an error which prevented list_for_each_safe()
from operating on a list with a single item.  This code is used much more by
the i915 driver with xorg-7.4.  Correct it to match the actual linux
implementation.

Approved by: jhb (mentor)

15 years agoCorrect the interrupt handling in the Intel i915 driver.
rnoland [Mon, 13 Oct 2008 17:47:13 +0000 (17:47 +0000)]
Correct the interrupt handling in the Intel i915 driver.

Approved by: jhb (mentor)

15 years agoSeveral of the newer radeon cards have moved around the registers for enabling
rnoland [Mon, 13 Oct 2008 17:43:39 +0000 (17:43 +0000)]
Several of the newer radeon cards have moved around the registers for enabling
busmastering support.  This also adds register definitions for MSI support,
which we will be using shortly.

Approved by: jhb (mentor)
Obtained from: drm git master

15 years agoFix minor typo.
kensmith [Mon, 13 Oct 2008 17:42:21 +0000 (17:42 +0000)]
Fix minor typo.

15 years agoAdd support for Radeon rs740 (HD 2100)
rnoland [Mon, 13 Oct 2008 17:38:04 +0000 (17:38 +0000)]
Add support for Radeon rs740 (HD 2100)

Approved by: jhb (mentor)
Obtained from: drm git master

15 years agoChange the way we enable the BMAC cell in macio. Instead of calling the
nwhitehorn [Mon, 13 Oct 2008 17:33:55 +0000 (17:33 +0000)]
Change the way we enable the BMAC cell in macio. Instead of calling the
macio's enable-enet word, which apparently does nothing on some machines,
open an OF instance of the ethernet controller. This fixes cold booting
from disk on my Blue & White G3.

MFC after: 3 days

15 years agoDon't close OF disk devices on PowerPC. This fixes loader when booting from
nwhitehorn [Mon, 13 Oct 2008 17:14:29 +0000 (17:14 +0000)]
Don't close OF disk devices on PowerPC. This fixes loader when booting from
disk on my Blue & White G3 system.

15 years agoSync up summary information for cylinder groups while data is already
kib [Mon, 13 Oct 2008 14:05:01 +0000 (14:05 +0000)]
Sync up summary information for cylinder groups while data is already
in memory during snapshot creation. This improves the results of the
background fsck.

Submitted by: tegge
MFC after: 1 week

15 years agoBackground fsck applies twice some summary totals changes. The next
kib [Mon, 13 Oct 2008 14:01:05 +0000 (14:01 +0000)]
Background fsck applies twice some summary totals changes. The next
background fsck on the same file system might then print negative
numbers for reclaimed directories/files/fragments.

Address the issue in a limited degree, by using old summary data for
cg when bgfsck is performed.

Submitted by: tegge
MFC after: 1 week

15 years agocheck_maps() in /usr/src/sbin/fsck_ffs/pass5.c seems to be limited to file
kib [Mon, 13 Oct 2008 13:56:23 +0000 (13:56 +0000)]
check_maps() in /usr/src/sbin/fsck_ffs/pass5.c seems to be limited to file
systems less than 1 TB, due to using 32-bits integers for file system block
numbers. This also causes incorrect error reporting for foreground fsck.

Convert it to use ufs2_daddr_t for block numbers.

PR: kern/127951
Submitted by: tegge
MFC after: 1 week

15 years agoRevert r179409; it breaks all OX16PCI954-based cards except the SIIG 4.
des [Mon, 13 Oct 2008 12:28:33 +0000 (12:28 +0000)]
Revert r179409; it breaks all OX16PCI954-based cards except the SIIG 4.

MFC after: 3 days

15 years agoPoint this config at the required linker script.
bms [Mon, 13 Oct 2008 06:25:28 +0000 (06:25 +0000)]
Point this config at the required linker script.

15 years agoFix the CFE ldscript after the cutover to tradmips.
bms [Mon, 13 Oct 2008 06:07:58 +0000 (06:07 +0000)]
Fix the CFE ldscript after the cutover to tradmips.
Diff minimization against ldscript.mips.

Note: CFE will not load PT_DYNAMIC segments, therefore the dynamic
sections have been placed in a PT_LOAD segment for now. This is not
too efficient in terms of memory use, they should probably get
placed in the text segment.

15 years agoRead PCI device id instead of PCI revision id. Also checks the read
yongari [Mon, 13 Oct 2008 01:11:28 +0000 (01:11 +0000)]
Read PCI device id instead of PCI revision id. Also checks the read
device id is JMC260 family. Previously it just verified the deivce
is JMC260 Rev A0. This will make it easy for newer JMC2xx support.

Pointed out by: bouyer at NetBSD

15 years agoBump driver revision after the previous commit.
mav [Sun, 12 Oct 2008 21:46:11 +0000 (21:46 +0000)]
Bump driver revision after the previous commit.

15 years agoFix bug in a second call of the channel allocation function.
mav [Sun, 12 Oct 2008 21:42:21 +0000 (21:42 +0000)]
Fix bug in a second call of the channel allocation function.
This should fix crash on systems where two audio codecs connected
to the same HDA bus.

15 years agoTurn XXX's for unlocked writes of NFS server statistics to simple notes,
rwatson [Sun, 12 Oct 2008 20:06:59 +0000 (20:06 +0000)]
Turn XXX's for unlocked writes of NFS server statistics to simple notes,
as we consider it a feature to exchange performance for consistency.

MFC after: 3 days

15 years agoDowngrade XXX to a Note for fgetsock() and fputsock().
rwatson [Sun, 12 Oct 2008 20:03:17 +0000 (20:03 +0000)]
Downgrade XXX to a Note for fgetsock() and fputsock().

MFC after: 3 days

15 years agoWhen disconnecting a UDPv6 socket, acquire the socket lock around the
rwatson [Sun, 12 Oct 2008 20:01:32 +0000 (20:01 +0000)]
When disconnecting a UDPv6 socket, acquire the socket lock around the
changing of the so_state field, as is done in UDPv4.  Remove XXX
locking comment.

MFC after: 3 days

15 years agoThe locking in portalfs's socket connect code is no less correct than
rwatson [Sun, 12 Oct 2008 19:23:02 +0000 (19:23 +0000)]
The locking in portalfs's socket connect code is no less correct than
identical code in connect(2), so remove XXX that it might be incorrect.

MFC after: 3 days

15 years agoUse GB suffix only from 10GB instead of 1GB.
mav [Sun, 12 Oct 2008 19:19:26 +0000 (19:19 +0000)]
Use GB suffix only from 10GB instead of 1GB.
There are lot of cards with uneven sizes and too strong rounding
will lead to very significant rounding errors.

Reviewed by: imp@

15 years agoncr(4) is not supported on sparc64.
simon [Sun, 12 Oct 2008 08:22:53 +0000 (08:22 +0000)]
ncr(4) is not supported on sparc64.

See also: r183762

15 years agostyle(9): spaces around operators.
imp [Sun, 12 Oct 2008 07:30:05 +0000 (07:30 +0000)]
style(9): spaces around operators.

15 years agoPrint the cards natural size.
imp [Sun, 12 Oct 2008 07:24:31 +0000 (07:24 +0000)]
Print the cards natural size.
Move nested tertiary operator expressions into their own function.
Remove extra blank line.
cache sd->disk in 'd' to make the code easier to read.

15 years agoAdd entries for uart based serial ports. All the serial ports on mips
imp [Sun, 12 Oct 2008 06:58:03 +0000 (06:58 +0000)]
Add entries for uart based serial ports.  All the serial ports on mips
so far are uart subclasses.  Also, turn uart0 on by default.

15 years agoAdd a build knob MAKE_DVD to control on a per-architecture basis whether
kensmith [Sun, 12 Oct 2008 02:52:56 +0000 (02:52 +0000)]
Add a build knob MAKE_DVD to control on a per-architecture basis whether
or not to build a tree used for the creation of a DVD image.  If that is
enabled set up a DVD tree by installing everything we normally install
to the individual CDROM trees into the one DVD tree.  The result is one
image with all the install bits, livefs bits, and doc bits suitable for
burning to a DVD instead of CDROM.

Enable building the DVD for amd64 and i386.

MFC after: 1 week

15 years agoopt_msgbuf.h is needed for MSGBUF_SIZE overrides, if any.
imp [Sun, 12 Oct 2008 02:31:09 +0000 (02:31 +0000)]
opt_msgbuf.h is needed for MSGBUF_SIZE overrides, if any.

Submitted by: alc@

15 years agoReduce code duplication: use calloc instead of allocing and memset
delphij [Sun, 12 Oct 2008 00:44:27 +0000 (00:44 +0000)]
Reduce code duplication: use calloc instead of allocing and memset
afterward.

Approved by: bushman

15 years agoSELECT_CARD command with zero RCA deselects all cards and so has no reply.
mav [Sat, 11 Oct 2008 17:30:02 +0000 (17:30 +0000)]
SELECT_CARD command with zero RCA deselects all cards and so has no reply.

15 years agoRemove stale comment: while uipc_connect2() was, until recently, not
rwatson [Sat, 11 Oct 2008 17:28:22 +0000 (17:28 +0000)]
Remove stale comment: while uipc_connect2() was, until recently, not
static so it could be used by fifofs (actually portalfs), it is now
static.

Submitted by: kensmith

15 years agoGive mmcsd driver a bit more information about card. It allows to reorganize
mav [Sat, 11 Oct 2008 13:05:13 +0000 (13:05 +0000)]
Give mmcsd driver a bit more information about card. It allows to reorganize
log message in a way a bit more common for disk devices. Also it will allow
mmcsd driver to use MMC/SD specific commands when needed.

15 years agoEnable mpt(4) as some later models have on-board Fusion-MPT
marius [Sat, 11 Oct 2008 12:10:23 +0000 (12:10 +0000)]
Enable mpt(4) as some later models have on-board Fusion-MPT
controllers and it seems to work just fine with at least an
add-on SAS3080X. While at it, remove the commented out ncr(4)
as it doesn't even use bus_dma(9), which isn't worth fixing
though as sym(4) already supports a superset of the controllers
driven by ncr(4).

15 years agoMove Qualcomm ZTE CDMA from ubsa(4) to u3g(4).
rpaulo [Sat, 11 Oct 2008 10:47:18 +0000 (10:47 +0000)]
Move Qualcomm ZTE CDMA from ubsa(4) to u3g(4).

Reviewed by: n_hibma

15 years agoRemoving startup banner.
bushman [Fri, 10 Oct 2008 22:40:05 +0000 (22:40 +0000)]
Removing startup banner.

15 years agoRemove the struct thread unuseful argument from bufobj interface.
attilio [Fri, 10 Oct 2008 21:23:50 +0000 (21:23 +0000)]
Remove the struct thread unuseful argument from bufobj interface.
In particular following functions KPI results modified:
- bufobj_invalbuf()
- bufsync()

and BO_SYNC() "virtual method" of the buffer objects set.
Main consumers of bufobj functions are affected by this change too and,
in particular, functions which changed their KPI are:
- vinvalbuf()
- g_vfs_close()

Due to the KPI breakage, __FreeBSD_version will be bumped in a later
commit.

As a side note, please consider just temporary the 'curthread' argument
passing to VOP_SYNC() (in bufsync()) as it will be axed out ASAP

Reviewed by: kib
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

15 years agoTypo.
n_hibma [Fri, 10 Oct 2008 20:05:15 +0000 (20:05 +0000)]
Typo.

15 years agoClose, but not eliminate, a race condition. It is one that properly
imp [Fri, 10 Oct 2008 17:49:47 +0000 (17:49 +0000)]
Close, but not eliminate, a race condition.  It is one that properly
designed drivers would never hit, but was exposed in diving into
another problem...

When expanding the devclass array, free the old memory after updating
the pointer to the new memory.  For the following single race case,
this helps:

allocate new memory
copy to new memory
free old memory
<interrupt> read pointer to freed memory
update pointer to new memory

Now we do
allocate new memory
copy to new memory
update pointer to new memory
free old memory

Which closes this problem, but doesn't even begin to address the
multicpu races, which all should be covered by Giant at the moment,
but likely aren't completely.

Note: reviewers were ok with this fix, but suggested the use case
wasn't one we wanted to encourage.

Reviewed by: jhb, scottl.

15 years agoFix content and spelling of comment on _ipfw_insn.len -- a count of
rwatson [Fri, 10 Oct 2008 14:33:47 +0000 (14:33 +0000)]
Fix content and spelling of comment on _ipfw_insn.len -- a count of
32-bit words, not 32-byte words.

MFC after: 3 days

15 years agoTypo in ifdef.
n_hibma [Fri, 10 Oct 2008 07:16:44 +0000 (07:16 +0000)]
Typo in ifdef.

Submitted by: Andrew Thompson

15 years agoAdd an entry about the split up of usb into usb+*hci modules.
n_hibma [Fri, 10 Oct 2008 06:37:51 +0000 (06:37 +0000)]
Add an entry about the split up of usb into usb+*hci modules.

Submitted by: Andrew Thompson

15 years agoWrong FBSD version number in HISTORY section.
n_hibma [Fri, 10 Oct 2008 06:26:37 +0000 (06:26 +0000)]
Wrong FBSD version number in HISTORY section.

Submitted by: pluknet

15 years agoMFp4: Fix a bug in the mips relocation code that prevents shared images
imp [Fri, 10 Oct 2008 05:10:10 +0000 (05:10 +0000)]
MFp4: Fix a bug in the mips relocation code that prevents shared images
from working.

From p4 filelog of the upstream file in p4

//depot/projects/mips2-jnpr/src/libexec/rtld-elf/mips/reloc.c
... #6 change 140737 edit on 2008/04/27 by gonzo@gonzo_jeeves (text+ko)

        o Looks like handler for R_MIPS_REL32 brought by CS 137942
            is broken for tradmips. Code from NetBSD's
            libexec/ld.elf_so/arch/mips/mips_reloc.c works just fine.

... #3 change 137942 edit on 2008/03/17 by rrs@rrs-mips2-jnpr (text+ko)

        Any relocation symbol lookup if its 0. It looks like
               this is the way the compiler indicates you need to
               look in another shared library. When we hit these
               as we relocate a object we will do the symbol
               lookups and setup the relocation table with the
               right value.

Submitted by: rrs@, gonzo@

15 years agoMention the libpmc/hwpmc ABI change introduced in SVN r183725.
jkoshy [Fri, 10 Oct 2008 04:23:40 +0000 (04:23 +0000)]
Mention the libpmc/hwpmc ABI change introduced in SVN r183725.

15 years agoAllow strong symbols to override weak ones for lookups done through
kan [Fri, 10 Oct 2008 00:16:32 +0000 (00:16 +0000)]
Allow strong symbols to override weak ones for lookups done through
dlsym with RTLD_NEXT/RTLD_SELF handles.

Allow symbols from ld-elf.so to be located this way too.

Based on report and original patch from sobomax@.

15 years agoata module additions now nest ata modules one deeper than any prior module.
imp [Thu, 9 Oct 2008 22:01:27 +0000 (22:01 +0000)]
ata module additions now nest ata modules one deeper than any prior module.
Increase heuristic used to find them by one.

15 years agoSay hello to the u3g driver, implementing support for 3G modems.
n_hibma [Thu, 9 Oct 2008 21:25:01 +0000 (21:25 +0000)]
Say hello to the u3g driver, implementing support for 3G modems.

This was located in the ubsa driver, but should be moved into a separate
driver:

- 3G modems provide multiple serial ports to allow AT commands while the PPP
  connection is up.
- 3G modems do not provide baud rate or other serial port settings.
- Huawei cards need specific initialisation.
- ubsa is for Belkin adapters, an Linuxy choice for another device like 3G.

Speeds achieved here with a weak signal at best is ~40kb/s (UMTS). No spooky
STALLED messages as well.

Next: Move over all entries for Sierra and Novatel cards once I have found
testers, and implemented serial port enumeration for Sierra (or rather have
Andrea Guzzo do it). They list all endpoints in 1 iface instead of 4 ifaces.

Submitted by: aguzzo@anywi.com
MFC after: 3 weeks

15 years agouark/ucom: Minor code cleanup.
n_hibma [Thu, 9 Oct 2008 20:51:25 +0000 (20:51 +0000)]
uark/ucom: Minor code cleanup.
umass; Remove duplicated code.
ukbd: Fill in the arg parameter on the through call.

15 years agoPrefix the static shl function with '__' like its parent function __qdivrem to
thompsa [Thu, 9 Oct 2008 20:43:42 +0000 (20:43 +0000)]
Prefix the static shl function with '__' like its parent function __qdivrem to
avoid being picked up by the DTrace fbt provider.

This is called by __udivdi3() for doing 64bit division on a 32bit arch and may
be called from within the dtrace context causing a double fault.

15 years agoAdd high capacity MMC cards support.
mav [Thu, 9 Oct 2008 20:09:56 +0000 (20:09 +0000)]
Add high capacity MMC cards support.

15 years agoObfuscated by other diffs while committing r183728:
n_hibma [Thu, 9 Oct 2008 20:00:17 +0000 (20:00 +0000)]
Obfuscated by other diffs while committing r183728:

Remove the files for the HCI interfaces from the usb module.

15 years agoo Use seprate routines to decode cid and csd for sd and mmc cards. All they
imp [Thu, 9 Oct 2008 19:47:28 +0000 (19:47 +0000)]
o Use seprate routines to decode cid and csd for sd and mmc cards.  All they
  have in common right now is a memset.  This saves a parameter to
  these routines, as well as a level of indentation.
o Make mmc_get_bits a little clearer...  It really only works on 128-bit
  registers right now.

15 years agoAdd modules for the HCI part of USB. This is convenient when having a UHCI
n_hibma [Thu, 9 Oct 2008 19:22:00 +0000 (19:22 +0000)]
Add modules for the HCI part of USB. This is convenient when having a UHCI
controller in your laptop but inserting a (OHCI-based) Option Cardbus card.

15 years agoAvoid failing if the directory already exists (when restarting at customize).
n_hibma [Thu, 9 Oct 2008 18:06:28 +0000 (18:06 +0000)]
Avoid failing if the directory already exists (when restarting at customize).

MFC after: 2 days

15 years ago- Sparsely number enumerations 'pmc_cputype' and 'pmc_event' in order to
jkoshy [Thu, 9 Oct 2008 14:55:45 +0000 (14:55 +0000)]
- Sparsely number enumerations 'pmc_cputype' and 'pmc_event' in order to
  reduce ABI disruptions when new cpu types and new PMC events are added
  in the future.
- Support alternate spellings for PMC events.  Derive the canonical
  spelling of an event name from its enumeration name in 'enum pmc_event'.
- Provide a way for users to disambiguate between identically named events
  supported by multiple classes of PMCs in a CPU.
- Change libpmc's machine-dependent event specifier parsing code to
  better support CPUs containing two or more classes of PMC resources.

15 years agoThis is the roumored ATA modulerisation works, and it needs a little explanation.
sos [Thu, 9 Oct 2008 12:56:57 +0000 (12:56 +0000)]
This is the roumored ATA modulerisation works, and it needs a little explanation.

If you just config KERNEL as usual there should be no apparent changes, you'll get all chipset support code compiled in.

However there is now a way to only compile in code for chipsets needed on a pr vendor basis. ATA now has the following "device" entries:

atacore: ATA core functionality, always needed for any ATA setup

atacard: CARDBUS support
atacbus: PC98 cbus support
ataisa: ISA bus support
atapci: PCI bus support only generic chipset support.

ataahci: AHCI support, also pulled in by some vendor modules.

ataacard, ataacerlabs, ataadaptec, ataamd, ataati, atacenatek, atacypress, atacyrix, atahighpoint, ataintel, ataite, atajmicron, atamarvell, atamicron, atanational, atanetcell, atanvidia, atapromise, ataserverworks, atasiliconimage, atasis, atavia; Vendor support, ie atavia for VIA chipsets

atadisk: ATA disk driver
ataraid: ATA softraid driver

atapicd: ATAPI cd/dvd driver
atapifd: ATAPI floppy/flashdisk driver
atapist: ATAPI tape driver

atausb: ATA<>USB bridge
atapicam: ATA<>CAM bridge

This makes it possible to config a kernel with just VIA chipset support by having the following ATA lines in the kernel config file:

device          atacore
device          atapci
device          atavia

And then you need the atadisk, atapicd etc lines in there just as usual.

If you use ATA as modules loaded at boot there is few changes except the rename of the "ata" module to "atacore", things looks just as usual.
However under atapci you now have a whole bunch of vendor specific drivers, that you can kldload individually depending on you needs. Drivers have the same names as used in the kernel config explained above.

15 years agoAdd some examples to demostrate gpart(8).
delphij [Thu, 9 Oct 2008 06:23:04 +0000 (06:23 +0000)]
Add some examples to demostrate gpart(8).
--此行及以下内容将会被忽略--
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    gpart.8

15 years agoRework pmc-dependent flag handling.
jkoshy [Thu, 9 Oct 2008 06:19:42 +0000 (06:19 +0000)]
Rework pmc-dependent flag handling.

15 years agoClean out some empty mergeinfo records, presumably by people doing local
peter [Thu, 9 Oct 2008 02:25:18 +0000 (02:25 +0000)]
Clean out some empty mergeinfo records, presumably by people doing local
cp/mv operations.  The full repo-relative URL should be specified for the
source in these cases.

15 years agoOnly voltage bits should be zero in send_op_cond argument to ignore busy.
mav [Wed, 8 Oct 2008 21:10:55 +0000 (21:10 +0000)]
Only voltage bits should be zero in send_op_cond argument to ignore busy.

15 years agoGeneric SD Host Controller driver going to be named sdhci.
mav [Wed, 8 Oct 2008 20:00:51 +0000 (20:00 +0000)]
Generic SD Host Controller driver going to be named sdhci.

15 years agoAnother good day for historical quotes, Oliver Wendell Holmes brought to
phk [Wed, 8 Oct 2008 19:39:22 +0000 (19:39 +0000)]
Another good day for historical quotes, Oliver Wendell Holmes brought to
you by Thomas L. Friedman.

 (http://www.nytimes.com/2008/10/08/opinion/08friedman.html?ref=opinion)

15 years agoRemove stale BUGS.
mav [Wed, 8 Oct 2008 18:27:54 +0000 (18:27 +0000)]
Remove stale BUGS.

15 years agoFix bit offset in mmc_sd_switch().
mav [Wed, 8 Oct 2008 18:13:14 +0000 (18:13 +0000)]
Fix bit offset in mmc_sd_switch().