Commit Graph

75442 Commits

Author SHA1 Message Date
jmc
9411ed143e Can't depend on shell scripts being executable from CVS. Preface mkimg.sh with
${HOST_SH}
2005-03-17 16:45:50 +00:00
bsh
a5d9dab3e0 Switch kernels for Lubbock and TwinTail to use pmap_devmap to map
I/O registers that are used in early start-up stage.  Also stop using
special bootstrap-time-only bus_space_map function in {lubbock,g42xxeb}_machdep.c.

This makes initarm() for them a bit simpler, and gives us smaller diffs
to other evbarm platforms.
2005-03-17 16:22:56 +00:00
rafal
08bbc8e180 Fix typo in HW checksum code -- check for TCP & UDP HW checksumming being
enabled rather than TCP twice.
2005-03-17 15:51:28 +00:00
bouyer
9af95b6ee2 Protect various IRQ and event allocation/deallocations with splhigh().
Print the IRQ used for debug and misdirect events.
2005-03-17 15:32:38 +00:00
bouyer
b3b63c9707 print the IRQ used by the domain controller. 2005-03-17 15:31:17 +00:00
bouyer
3307398997 When handling a defered event, unmasking it isn't enouth, we also need to check
if the corresponding bit needs to be set in evtchn_pending_sel, and eventually
force an upcall (if we got a second event when this one what being handled).
For now to this by calling hypervisor_enable_irq(), this could be rewritten
in inline assembly by someone knowing enouth about i386 assembly :)
2005-03-17 15:30:45 +00:00
bouyer
02e969d512 Avoid loosing upcalls in stipending() by checking evtchn_upcall_pending
with upcalls unmasked.
2005-03-17 15:26:06 +00:00
yamt
0c03ee5404 vlan_input: add a missing EVL_VLANOFTAG in the case of hw offloading. 2005-03-17 10:33:28 +00:00
jmc
335ffe57a0 Kernel dump to 3.99.1 2005-03-17 00:22:34 +00:00
briggs
344246d697 Changes to match xxCICADA 8201B found in a VT6122.
Match at > 1 (10) to ensure we get ciphy instead of ukphy.
Use aprint(9) on attach.
Minor stylistic changes.
All from Tomokazu HARADA in PR kern/29705.
2005-03-16 17:25:32 +00:00
briggs
90cf94f285 regen for xxCICADA 8201B 2005-03-16 17:22:11 +00:00
briggs
a55f55e73a Add new/alternate OUI for CICADA that's been spotted in a VIA VT6122.
Submitted in PR 29705 from Tomokazu HARADA.
2005-03-16 17:20:28 +00:00
erh
d99a4ce8bf Fix PR#24302. Clear PCI abort and parity errors to give the card a chance at
working.  Patch provided by Jean-Luc Wasmer, based on the FreeBSD driver.
2005-03-16 17:11:17 +00:00
bouyer
a982855f7e Sync with i386/locore.S 1.33:
Check the passed in address as well as determining the maximum length
using VM_MAXUSER_ADDRESS in copyinstr and copyoutstr.

Problem originally fixed in OpenBSD/i386.
This fix suggested by Charles Hannum (mycroft at netbsd dot org).
2005-03-16 14:52:29 +00:00
bouyer
c0c525e11b Fix stack offset to account for an extra register pushl compared to the i386
version.
Thanks to fvdl@ for confirming I was right on this.
2005-03-16 11:25:03 +00:00
xtraeme
c4e4a95536 regen 2005-03-16 07:01:07 +00:00
xtraeme
8446f07229 Add VIATECH KT880 CPU to PCI Bridges. 2005-03-16 06:58:56 +00:00
bsh
4c5c06097c Switch SMDK2410 and SMDK2800 kernels to use pmap_devmap_bootstrap() to map
I/O registers that are used in early start-up stage.  This replaces the
special bootstrap-time-only bus_space_map function in smdk{2410,2800}_machdep.c.

This makes SMDK{2410,2800}'s initarm() a bit simpler, and gives us smaller diffs
to other evbarm platforms.

An another good thing for SMDK2800 is that now we have all built-in peripheral
registers mapped in 2 segments.  We may expect less TLB miss on I/O access
(very slightly).
2005-03-16 05:02:12 +00:00
uwe
d1f5c07c7e Regen for ATI Radeon 9100 IGP chipset. 2005-03-16 03:08:44 +00:00
uwe
4e930ba6e9 ATI Radeon 9100 IGP chipset. 2005-03-16 03:07:44 +00:00
yamt
df05ca7085 simplify data receiver side sack processing.
- introduce t_segqlen, the number of segments in segq/timeq.
  the name is from freebsd.
- rather than maintaining a copy of sack blocks (rcv_sack_block[]),
  build it directly from the segment list when needed.
2005-03-16 00:39:56 +00:00
yamt
0446b7c3e3 - use full sized segments unless we actually have SACKs to send.
- avoid TSO duplicate D-SACK.
- send SACKs regardless of TF_ACKNOW.
- don't clear rcv_sack_num when transmitting.

discussed on tech-net@.
2005-03-16 00:38:27 +00:00
bouyer
407770d89d Add more DIAGNOSTIC checks
fix test of xbdback_map_shm() return value.
2005-03-15 23:39:18 +00:00
bouyer
c3b1622d19 Add some DIAGNOSTIC checks
Protect more stuff with splvm().
2005-03-15 23:37:58 +00:00
bouyer
e97ceab999 Fix off-by-one bug which would cause a region at the end of the extent
to be alloctated multiple times:
- we're allocating region of size 1
- there are holes in the extent, but all of size larger than 1
- there are 2 contigous allocations at the end of the extent, the last one
  being of size 1.
While there fix a DIAGNOSTIC check: to check that a region is inside the extent
we need to check start and end, not only start.
2005-03-15 18:22:24 +00:00
peter
851064ccf9 Fix a GCC warning when compiling on evbppc.
From FUKAUMI Naoki in PR #29669.
2005-03-15 18:08:59 +00:00
xtraeme
6b34c93b70 regen 2005-03-15 17:54:17 +00:00
xtraeme
8223efec1b Add entry for "SAMSUNG Mighty drive" provided by Thilo Manske in PR
kern/29550.
2005-03-15 17:52:18 +00:00
xtraeme
b07d856bff regen 2005-03-15 16:18:34 +00:00
xtraeme
45194ed1bc Add entries for VIA Apollo KM400 chipsets, provided by
Thilo Manske in PR kern/29549.
2005-03-15 16:16:59 +00:00
xtraeme
97e59b19a6 regen 2005-03-15 16:08:33 +00:00
xtraeme
0d88d55d8d Add entry for "S3 Prosavage KM133", provided by Nicolas Joly in PR
kern/20572.
2005-03-15 16:06:38 +00:00
simonb
38c9d4c236 Remove unused header file. 2005-03-15 13:19:41 +00:00
uwe
0b007a7843 Regen for ENE CB710, CB720 CardBus controllers. 2005-03-15 00:14:13 +00:00
uwe
fe56de2b46 Fix product ids of ENE CB710 and CB720 CardBus controllers. 2005-03-15 00:13:16 +00:00
fvdl
486492d83a Check the passed in address as well as determining the maximum length
using VM_MAXUSER_ADDRESS in copyinstr and copyoutstr.

Problem originally fixed in OpenBSD/i386.
This fix suggested by Charles Hannum (mycroft at netbsd dot org).
2005-03-14 21:50:59 +00:00
tsutsui
99e1f5f2d1 Include "ioconf.h" for struct cfdriver *_cd decls. 2005-03-14 12:50:33 +00:00
martin
7839bf7dd6 KNF 2005-03-14 11:50:17 +00:00
yamt
42f5578ac9 move the code to drop packets in the previous version
from re_encap to re_start so that other rtk_tx_free checks are
also covered.
2005-03-14 10:08:17 +00:00
bsh
2145d5199e change a printf to aprint_normal. 2005-03-13 16:53:08 +00:00
skrll
41889bdcaa Remove an item - uhidev(4) now exists.
OK'd by Lennart.
2005-03-13 08:21:50 +00:00
christos
f048688c46 PR/29683: M. B. Buchanan: mcd driver has printf formatting compile issue
and sets the wrong field to the number of ports.
2005-03-12 22:54:48 +00:00
christos
d232675d86 PR/29679: Gunnar.Ritter: fstat() blksize on the write side of the pipe returns
0. Fix it by returning the peer's block size.
XXX: This is the minimal fix. Probably the buffer size should be initialized
somewhere else, but probably this would need some more code changes.
2005-03-12 18:43:42 +00:00
dsl
4f6d146592 KNF 2005-03-12 16:39:41 +00:00
dsl
37840e8766 Fix time calculation when:
p->p_rtime.tv_usec + tv.tv_usec < spc->spc_runtime.tv_usec
2005-03-12 16:33:45 +00:00
dsl
94015fc9d6 Fix convertion of seconds to nanoseconds.
Add the usec to the secs before subtracting the usec offset - otherwise
I suspect the value can do horribly wrong!
Change all T_SVR4_GETHRESTIME to return sec + nanoseconds (I've not sure
this is correct, but I doubt the 32bit emulation in a 64bit kernel should
act differently to a 32bit kernel!)
Untested - I don't even have a sparc compile setup at the moment.
2005-03-12 16:29:59 +00:00
dsl
604ef02ccf You need to multply seconds by 10^9 to get nanoseconds! (not 10^6).
Remove some possible aliasing issues.
I actually suspect this code is returned a word-swapped 64bit value though!
2005-03-12 16:02:02 +00:00
dsl
1c1e4144e2 Use an archive library for libkern if we don't support LKMs.
Enough to get INSTALL_TINY small enough again.
Someone else can fix it next time...
2005-03-12 14:39:12 +00:00
darcy
3b06c2c797 Add to XXX comment for future reference. 2005-03-12 10:35:29 +00:00
yamt
5ef6b21b78 re(4) driver:
- TSO support.
- fix some error handling.
- remove mysterious RTK_NTXSEGS and use more appropriate values
  for bus_dmamap_create.
- if we need more than all of our tx descriptors in order to transmit a packet,
  just drop it rather than retrying infinitely.
2005-03-12 08:01:51 +00:00
yamt
9482bc7356 don't try to use TSO to transmit a single segment.
- there's no benefit.
- rtl8169 seems to be stuck with it.
2005-03-12 07:53:08 +00:00
kent
7b29b8d545 Fix a problem that the resultant stream contains many garbage data at
stereo->mono conversion.
PR#29664
2005-03-12 03:55:45 +00:00
kent
52c4317717 make this compile with AURATECONV_DEBUG 2005-03-12 03:42:03 +00:00
nathanw
fcb8b1675d Add a final newline. 2005-03-11 23:41:02 +00:00
mycroft
487f02d9cd Three changes:
1) After setting an input or output channel to pause, watch for DCH (DMA
   halted) to be set before resetting the registers.  The manual says this is
   required.  This *may* fix random auich lockups.
2) Add auich_{trigger,intr,halt}_pipe(), which can operate on any of the
   input and output channels.  This reduces code duplication quite a bit.
   While I'm at it, fill in the mic interrupt handling.
3) The mic in interrupt is MINT, not MIINT.  (The latter is modem input.)
2005-03-11 22:29:16 +00:00
bouyer
d8ac66d8b5 Move Xen kernel config files to arch/i386, so that they can be added to
the i386 release process. Make them include archi/i386/conf/GENERIC.local,
like other i386 GENERIC and INSTALL files.
2005-03-11 20:48:24 +00:00
bouyer
b3de8f0978 Define xen devices in i386/conf/majors.i386. This makes sure there won't
be conflics with regular i386 kernels.
2005-03-11 20:44:37 +00:00
bouyer
153285b0bd Properly define NISA and NPCI; cleanup use of NISA and NPCI. 2005-03-11 20:39:39 +00:00
mycroft
e63d9a6eae Restructure interrupt handling a little:
* Only futz with the done list in the soft interrupt handler.  In the hard
  interrupt handler, do nothing except mask WDH and queue the soft interrupt.
  This simplifies a bunch of code, removes two O(n^2) queue manipulations,
  and gets rid of some really sketchy stuff around the queue head access.
* Use the auto-masking code at the end of the interrupt handler for both WDH
  and RHSC interrupts.  Again, this reduces the code a little, and avoids
  multiple writebacks to the chip registers.
2005-03-11 19:25:22 +00:00
matt
7dfa1d8cf7 Set ip_len to 0 in the wm driver when TSO is being used. 2005-03-11 17:07:51 +00:00
matt
bffeda4273 Add cpu* at mainbus0 2005-03-11 16:44:31 +00:00
matt
9423d4f429 Make this compile in the absence of any scsibuses. 2005-03-11 16:37:24 +00:00
matt
1a573d5c6a Make this build again (add atabus). 2005-03-11 16:26:47 +00:00
matt
153ebc7689 Just like wdc.c, if the bus_space implementation doesn't support stream
method, make them equivalent to the non-stream methods.
2005-03-11 16:17:57 +00:00
matt
63c819e89c Add missing stream methods (for wdc_pcmcia.c) 2005-03-11 16:16:06 +00:00
bouyer
45f2a74300 Print the irq used. 2005-03-11 15:51:25 +00:00
bouyer
9375b9c69f Wrap some ISA stuff in DOM0OPS, so that DOMU kernels build again. 2005-03-11 15:50:25 +00:00
bouyer
111fb1ed01 increment couters at the right place, so that deffered interrupts are
accounted too.
2005-03-11 15:48:40 +00:00
bouyer
a4dee0e2b9 The extent allocation was off by one, causing us to use unallocated
kernel VA, and overflow the _xen_shm_vaddr2ma[] array.
2005-03-11 15:47:27 +00:00
bouyer
5ce7842238 Add missing STI() from i386/i386/vector.S 1.15.
This seems to fix the network hang issues I noticed with NetBSD guests
on heavy network I/O.
2005-03-11 15:45:54 +00:00
bsh
513d8a771b move a few definitions to smdk2800var.h to share them between smdk2800_machdep.c and smdk2800_start.S 2005-03-11 14:28:52 +00:00
tron
e561507a1f Add support for changing the MTU to stf(4). 2005-03-11 13:28:25 +00:00
bouyer
fb78ac6542 Properly track connected/disconnected state, and set IFF_RUNNING only when
in connected state. Avoid a panic when the interface is configured
before being in connected state (e.g. when configured automatically by xend
when a domain is created).
2005-03-11 11:34:32 +00:00
matt
124866f5f5 Don't compare scalars against NULL, use 0. 2005-03-11 07:08:33 +00:00
matt
18e3cd8d07 Increase SYMTAB_SPACE 2005-03-11 07:07:50 +00:00
matt
3beedd2b53 Don't compare scalars against NULL, use 0 2005-03-11 07:06:54 +00:00
matt
e5e8c8e489 Adapt to new dm_maxsegsz semantics. 2005-03-11 07:01:55 +00:00
matt
6196dae15e Fix typo. 2005-03-11 06:58:11 +00:00
matt
b72e03a76a rside is really a wdc. So make it a wdc.
XXX rside should be renamed to wdc_rsbus
2005-03-11 06:51:48 +00:00
matt
371a3b7135 Constify a structure. 2005-03-11 06:50:33 +00:00
atatat
5b8a6c916d Revert the change that made kern.file2 and net.*.*.pcblist into nodes
instead of structs.  It had other deleterious side-effects that are
rather nasty.  Another solution must be found.
2005-03-11 06:16:15 +00:00
christos
37e322ddf6 revert part of previous commit (the block size type and the pad renumbering).
tron says it breaks compat mode.
2005-03-10 23:39:27 +00:00
bouyer
145cc1138c Clean up ISA attachement, and do not try to attach it at hypervisor if
it has already been attached at pcib.
2005-03-10 22:10:11 +00:00
bouyer
f7dcd8b304 Report which IRQ is used. 2005-03-10 21:44:31 +00:00
bouyer
bdb48992d1 Bump blkif_pdev_t from 16 to 32 bits, to fix the dev_t problem on NetBSD.
Remove the padding bits from blkif_extent_t, so that the message size doesn't
change. You'll need xentools20-2.0.3nb1 if you upgrade your kernel
(the old tools didn't zero out the padding bits, and a new kernel will
interpret them as part of the device number).
2005-03-10 19:47:08 +00:00
matt
b6fca37cf6 Adapt to new dm_maxsegsz semantics. 2005-03-10 18:16:01 +00:00
bouyer
82981f9fda - Don't reallocate transmit pages from xennetback_get_xmit_page(), as the
previously-allocated pages may not have been loaned to the remote domain
  yet. Let the called deal with this.
- clean up the TX and RX loops to use less MASK_NETIF_xX_IDX() calls
- When we're done with the queued TX requests, try again in case some new
  ones are available
- avoid leaking a xmit page if we queued NB_XMIT_PAGES_BATCH requests.
- remove dead code.
2005-03-10 17:12:12 +00:00
bouyer
94d162a5c1 Use the same type as xen in the request descriptor.
Change the logic in the request processing loop so that we don't
think the ring is empty when is has BLKIF_RING_SIZE requests.
2005-03-10 17:05:38 +00:00
bouyer
577e77f21d Add some DIAGNOSTIC cheks
Protect the callback queue with splvm()
XXX some debug printf about the callback stuff is left here. This is because
    I've not been able to trigger this condition yet, so I've left them
    until we sure the code works as intended.
2005-03-10 17:02:20 +00:00
christos
47e40fce3a Add nanosecond handling on the stat and stat64 code for the i386. 2005-03-10 14:12:27 +00:00
thorpej
3901f760df In ip_fragment():
- Use the correct IP header length variable for other-than-first packets.
- Remove redundant setting of the original IP header length in the first
  packet's csum_data.  (It's already set before ip_fragment() is called
  in 1.147.)
2005-03-10 06:03:00 +00:00
atatat
d945605f5b Make this build without INET6 xor INET (hah!) again. 2005-03-10 05:49:14 +00:00
atatat
ca63da437a Change types of kern.file2 and net.*.*.pcblist to NODE 2005-03-10 05:43:25 +00:00
atatat
d5340d73e0 Forgot to remove ki_ocomm from kinfo_file2 before adding it. Sorry. 2005-03-10 05:41:19 +00:00
xtraeme
840f589aad Add missing #ifdef DDB for db_max_line() 2005-03-10 00:31:48 +00:00
kleink
6fe0a614b5 Add pollts() prototype to <poll.h>, and update manual page synopsis for
pollts() header use.
2005-03-10 00:29:37 +00:00
kleink
184b9fccec For pselect(), pull in <sys/sigtypes.h> instead of <signal.h>; provides
what the standard requires but pollutes less.
2005-03-10 00:25:45 +00:00
matt
290234fa8a Update to new bus_dma semantics. 2005-03-10 00:20:54 +00:00
xtraeme
d2088067fe Add missing #ifdef DDB, ok'ed by bouyer@. 2005-03-09 23:40:08 +00:00
xtraeme
3c451cf142 Now that GENERIC* kernels are removed, remove references. 2005-03-09 23:24:50 +00:00
bouyer
e9666f30ad Merge the bouyer-xen2 branch. This add supports for the Xen 2.0 virtual
machine kernel (both privileged and non-privileged domains), and remove support
for the old xen 1.2.
2005-03-09 22:39:19 +00:00
perseant
8e578e185f Be more careful about handling of flags to lfs_flush, to ensure that
the lfs_writing mutex is respected.
2005-03-09 22:12:15 +00:00
joff
b9ac414499 Use special spaces for ISA that don't assert USER CS# 2005-03-09 21:19:59 +00:00
matt
d86d0ac991 Add TCP Segment Offload support. 2005-03-09 19:06:19 +00:00
matt
a6db24a485 Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
2005-03-09 19:04:43 +00:00
tron
0b156a5946 Solve problem invented in revision 1.73 differently:
Use "__uint64_t" etc. instead of pulling in "sys/socket.h" to avoid
namespace pollution. Based on comments made by Klaus Klein on the
current-users mailing list.
2005-03-09 19:02:22 +00:00
tron
58cbcf0dd1 Include "sys/types.h" to get definition of "uint64_t". This is necessary
because socket(2) lists only "sys/socket.h" as a requirement. And besides
that it fixes build errors in our "libc".
2005-03-09 18:53:57 +00:00
itojun
b64c75b041 correct mistake reported by VANHULLEBUS Yvan 2005-03-09 14:17:13 +00:00
atatat
7c62c74d09 Add the following nodes to the sysctl tree:
net.local.stream.pcblist
	net.local.dgram.pcblist
	net.inet.tcp.pcblist
	net.inet.udp.pcblist
	net.inet.raw.pcblist
	net.inet6.tcp6.pcblist
	net.inet6.udp6.pcblist
	net.inet6.raw6.pcblist

which allow retrieval of the pcbs in use for those protocols.  The
struct involved is 32/64 bit clean and incorporates parts of struct
inpcb, struct unpcb, a bit of struct tcpcb, and two socket addresses.
2005-03-09 05:07:19 +00:00
atatat
529b14ddf5 Add kern.file2. As kern.proc2 is to kern.proc, so is kern.file2 to
kern.file, namely a 32/64 bit clean sysctl interface to the same data.
It also borrows a few things from struct vnode (if applicable) and
from struct proc, just to tie things together a bit more.

You can walk this list "by file" or "by pid".  The former method is
similar to kern.file but omits the filehead, and the latter can give
you duplicates if multiple processes have the same struct file open,
but tells you which process it is.
2005-03-09 05:02:17 +00:00
atatat
76a9013c25 gc the tcp_sysctl() prototype since it's completely vestigial 2005-03-09 04:51:56 +00:00
simonb
e491fee6a5 s/quence/quench/. 2005-03-09 04:24:12 +00:00
simonb
3792275475 Add an extra `i' to notifes/notifed. 2005-03-09 04:23:33 +00:00
matt
47df382bfe Move all the hardware-assisted checksum/segment offload code together. 2005-03-09 03:39:27 +00:00
matt
ea3d151322 For AF_INET, always set m->m_pkthdr.csum_data. Don't or TSOv4, just set it. 2005-03-09 03:38:33 +00:00
uwe
1fc105ea83 db_stackcheck_cmd: catch up with proc => lwp changes.
This is just a quick fix to make KSTACK_DEBUG kernels compilable.
Formatting needs improvment (group lwps from one process together, etc).
PR port-sh3/29621
2005-03-08 22:04:22 +00:00
uwe
b6c480ab6a KNF: use "continue" as explicit empty loop body. 2005-03-08 21:05:47 +00:00
uwe
933cf58cd8 Use uint<N>_t instead of u_int<N>_t. 2005-03-08 20:54:58 +00:00
wrstuden
a758abc39e Adjust error case handling. If the VOP_LOOKUP() call unlocked the
parent directory node, remember that.

Addresses locking/lookup issues seen in:

http://mail-index.NetBSD.org/tech-kern/2004/06/20/0019.html
http://mail-index.netbsd.org/tech-kern/2005/01/08/0000.html
2005-03-08 17:29:29 +00:00
bsh
a7d17de7d6 delete unused stuff. 2005-03-08 16:51:44 +00:00
christos
b4e68c8648 PR/29630: Takehiko NOZAKI: undefined symbols 'linux_ioctl_mtio'
in /usr/lkm/compat_linux.o
2005-03-08 15:26:23 +00:00
yamt
a0f802e2ac tcp_sack_option: handle the case that the right-most sack'ed block is expanded.
a fix from Noritoshi Demizu (FreeBSD PR/78226) via Kentaro A. Kurahone.
2005-03-08 11:27:14 +00:00
dsl
e3f3e5cc51 Change the wa ythe KB_xxx and KB_ENCTAB are defined so we have all the
data for a single keyboard on one line - including the long name and
default modifiers that sysinst needs.
2005-03-08 08:06:26 +00:00
kleink
76b2b4f5ac Fix a (harmless) typo in the definition of PF_RTIP;
from usa@garbagecollect.jp in PR kern/29624.
2005-03-08 07:43:14 +00:00
simonb
52c470b886 Tab Police. 2005-03-08 04:49:35 +00:00
perseant
eefd94b8e2 Straighten out the maze of ifdefs. Instead, consolidate all the debugging
stuff under '#ifdef DEBUG', and use sysctl knobs to turn on/off particular
parts of the debugging reporting (if DEBUG is enabled).  Re-enable the LFS
statistics in sysctl, while I'm there.  A bit of a rototill.
2005-03-08 00:18:19 +00:00
martin
28b1934cb5 Make it compile for 32bit kernels. XXX - does OF realy return pointers to
64 bit entities here?
2005-03-07 22:10:14 +00:00
martin
672539b839 Make it compile for 32bit sparc kernels (bus_addr_t is larger than void*
there)
2005-03-07 21:45:24 +00:00
uwe
6a24c49df3 options SPACE TAB 2005-03-07 18:25:22 +00:00
hannken
4e0e09fd14 frpr_udpcommon() failed to handle fragmented packets. Packets with less than
8 bytes of data were dropped.

- If the packet is a fragment, return. There is no UDP header in this case.
- Don't set the FI_SHORT flag. Already tested in `frpr_short()'.
- Remove unneeded test `!fin->fin_off'.

Approved by: Christos Zoulas <christos@netbsd.org>
2005-03-07 13:59:30 +00:00
yamt
e55b9169d1 tcp_sack_option: fix the cases that some sack blocks go into a hole. 2005-03-07 10:27:39 +00:00
yamt
ff614e1114 tcp_sack_option: fix a typo(?), which can cause to ignore valid blocks. 2005-03-07 09:40:35 +00:00
yamt
ed8b840f26 tcp_sack_option: the max number of sack blocks in a packet is 4, not 3. 2005-03-07 09:32:51 +00:00
christos
17c0b722c8 Regen 2005-03-07 02:28:11 +00:00
christos
5af7360b1c PR/29614: Andrzej Kukula: Missing PCI IDs of ATI IXP 300 and 400 ATA controller 2005-03-07 02:27:17 +00:00
yamt
e16a97f90b - unwrap short lines.
- remove unneeded parenthesis.
- whitespace.
2005-03-06 23:06:40 +00:00
yamt
fd5005e8d7 don't assume alignment of sack options. 2005-03-06 23:05:56 +00:00
yamt
1152380a6b wrap long lines. 2005-03-06 23:05:20 +00:00
tsutsui
3f9745a76c Add two options to change the default keymap:
- options MKBD_LAYOUT="KB_xx"
    allow user to override the default keymap
- options MKBD_SWAPCTRLCAPS
    allow user to specify swapctrlcaps with the default (probed) keymap
2005-03-06 14:52:49 +00:00
yamt
2dc19239d5 update SYSCTL_DESCR; sack is implemented. 2005-03-06 10:15:30 +00:00
thorpej
1f89264732 Add a /*CONSTCOND*/ to last. 2005-03-06 03:41:36 +00:00
matt
c24b749deb Fix typo. Opposite of >= is <, not ==. 2005-03-06 00:52:25 +00:00
matt
9337b701be Replace some gotos with a do while (0) and breaks. No functional change. 2005-03-06 00:48:52 +00:00
matt
8e04817c50 Add IPv4/TCP hooks for TCP Segment Offload on transmit. 2005-03-06 00:35:07 +00:00
matt
4acc1b7c25 Add beginning of TCP Segment Offload support. 2005-03-06 00:08:30 +00:00
thorpej
04c00a86d4 - Set IFCS on every data descriptor (hint from Linux driver).
- Make sure IDE is set on context descriptors.
2005-03-05 21:37:07 +00:00
kleink
1c7e2b47c4 Provide select() and pselect() prototypes in <sys/select.h>, per
1003.1-2001, and leave the select() prototype in <unistd.h> for
compatibility.  To allow for transition, reorganization of this is
deferred until netbsd-3 gets branched.
2005-03-05 19:48:38 +00:00
heas
37ea29ba5a Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be.  This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN).  This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
Also, clear csum_flags when we want a s/w checksum, since we may have started
down the h/w checksum path and determined that it was not usable.

While here, clean-up a few WS nits and ifdef INET the hardware checksum code.
2005-03-05 18:36:23 +00:00
heas
e7144a2c1a Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be.  This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN).  This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
2005-03-05 18:32:59 +00:00
christos
7254715c73 add file locking. 2005-03-05 17:47:38 +00:00
christos
44f6417295 - someone must have been confused about how to use the stackgap.
- remove extra caddr_t
- cleanup unneeded syscalls.
- add locking.
2005-03-05 17:47:06 +00:00
chs
a6d3ad34e1 use attach args instead of dv_unit, just like cf_unit. 2005-03-05 17:40:56 +00:00
chs
805f942254 remove some more __P that I missed before. 2005-03-05 17:34:06 +00:00
jdolecek
07ad370ac0 const sptab[] 2005-03-05 17:31:07 +00:00
christos
cfa16776df cleanup and fix locking. 2005-03-05 17:16:17 +00:00
jdolecek
5c1a928111 g/c debugging printf 2005-03-05 14:51:21 +00:00
jdolecek
f4707bed18 modify vge_m_defrag() to support > MCLBYTES chains, by allocating appropriate
number of mbuf clusters; also don't free the original mbuf chain

simplify vge_encap() and make error reporting more consistent

normalize vge_start() (including use of IFQ_* macros), and handle the case
when the input mbuf chain is defragmented

JUMBO packets seem to work fine now
2005-03-05 14:37:15 +00:00
thorpej
d72073667c txpullup event counters are no longer needed. 2005-03-05 05:05:43 +00:00
briggs
6fe1c07527 Fix checksum offload for fragmented packets. From John Heasley
on gnats-bugs in PR kern/29544.
Tested with an NFS client using default rwsize on an NFS server
with wm(4) interface configured IP4CSUM,TCP4CSUM,UDP4CSUM.
Prior revision required the server to have checksum offload disabled.
2005-03-05 02:46:38 +00:00
nathanw
ec956cbe3a Don't enable interrupts while calling trap() if the trapping frame
didn't have them enabled either.

Addresses PR port-macppc/29559.
2005-03-04 22:40:32 +00:00
perseant
8de99480fa Move "ifile is too large for your NBUFS/BUFPAGES" messages into a function.
Use log(9) to warn the user instead of printf(9).  Since the theory is that
the Ifile is "always in cache", but the greater performance risk is
when the inode entries can't be held in cache, note these two cases
separately, at different log levels (notice and warning, respectively).
2005-03-04 22:19:05 +00:00
scw
51315622ae Undo revision 1.175 (hi jason!) to prevent a buzz-loop in
bus_dmamap_load_mbuf(). This implementation already dealt
with zero length mbufs.

Addresses port-sparc64/29473
2005-03-04 22:04:51 +00:00
christos
cac7cf0758 PR/26823: Michael L. Hitch: Endianness flag were not preserved in the compat
superblock read routine.
2005-03-04 21:45:29 +00:00
tacha
357eb4e7e6 Disestablish powerhook while detaching atabus. 2005-03-04 11:00:54 +00:00
mycroft
8d0711abed Preload the referenced and modified bits when entering a page due to a fault. 2005-03-04 06:26:58 +00:00
mycroft
7d64f202fc Copyright maintenance. 2005-03-04 06:01:52 +00:00
mycroft
2fcca2a309 Minor cleanup in ksiginfo setup code. 2005-03-04 06:01:21 +00:00
mycroft
5640dcbb4a Re-add callout_active(), in a way compatible with the FreeBSD version, and use
it in the TCP stack to test which of the REXMT or PERSIST timer is in use.
This fixes a race condition that could cause "panic: tcp_output REXMT".  See
tech-net for details.
2005-03-04 05:51:41 +00:00
mycroft
26fac798eb Not used any more. 2005-03-04 05:22:52 +00:00
mycroft
5c336d800d Regen. 2005-03-04 05:03:42 +00:00
mycroft
3839e0db1b Separate out vendors from the product table, to reduce string duplication.
Saves ~10K.
2005-03-04 05:03:19 +00:00
briggs
6ae9462824 Fix from Nozomu Ando to ensure that read interrupts are acknowledged.
May address PR port-macppc/28870.
2005-03-04 04:18:30 +00:00
tron
a179b1e8b6 Backout last commit because an entry for atu(4) already existed.
Problem noted by FUKAUMI Naoki on current-users mailing list.
2005-03-03 23:02:01 +00:00
martin
585285c6fe Fix a conditional: sparc's will use the raster ops via RASTERCONSOL 2005-03-03 16:01:37 +00:00
martin
b402d19851 Make it (at least) compile w/o wsdisplay @ cgsix.
Pointed out by Juergen Hannken-Illjes.
2005-03-03 12:11:49 +00:00
itojun
a02091146b atu on OQO model 01 is confirmed to be working under basestation/no-WEP.
(WEP is not supported yet, it is an different issue)
2005-03-03 09:23:24 +00:00
itojun
8a4d93018c OQO wifi interface needs quirks
(not confirmed if it works or not, so commented out)
2005-03-03 08:10:35 +00:00
itojun
4bb7e85761 OQO ether port confirmed to be working 2005-03-03 08:10:01 +00:00
yamt
f81c9770f3 bufq_priocscan_get: don't update state in the case of !remove. fix BUFQ_PEEK. 2005-03-03 05:00:22 +00:00
christos
8eb274055a Some ibcs2 binaries need executable stacks. Thanks to J Chapman Flack
for determining this and coming up with a fix.
2005-03-03 04:39:37 +00:00
perseant
871beffabf Put the ISSPACE() check where it belongs. This allows rewriting a file
on a full filesystem while still returning ENOSPC on an attempt to allocate
new blocks.
2005-03-02 21:16:09 +00:00
mycroft
1d50f417b8 Copyright maintenance. 2005-03-02 12:25:27 +00:00
mycroft
902a7e92fe Copyright maintenance. 2005-03-02 12:00:25 +00:00
mycroft
9aa6105e69 Copyright maintenance. 2005-03-02 11:48:03 +00:00
mycroft
2d562a01e2 Copyright maintenance. 2005-03-02 11:37:27 +00:00
itojun
99b78187d5 OQO device still unstable on attach/whatever, so comment those entries out 2005-03-02 11:35:07 +00:00
mycroft
b9c71ccc7a Copyright maintenance. 2005-03-02 11:05:34 +00:00
mycroft
c9f058f65e Copyright maintenance. 2005-03-02 10:20:18 +00:00
chs
111117ce57 fix two bugs with wiring:
(1) in pmap_enter_pv(), we would always mark the header entry wired, even if
     the new entry wasn't put there.  noticed by Juergen Hannken-Illjes.
 (2) in pmap_unwire(), we would never examine the header entry.
     noticed by me.

while I'm here, move the counter increment in the pmap_enter() path to be
next to the corresponding PV_WIRE() call so it's more obvious they match.
2005-03-02 09:02:42 +00:00
chs
bd2d26b450 getitesp() can return NULL, so check for that in iteopen().
pointed out by Michael Hitch.
2005-03-02 08:14:26 +00:00
dyoung
8125cd1769 Misc. changes to improve ad hoc mode and to enable hostap mode:
Fix the work-around for the NIC bug where it skips to rx
  descriptor 0.  The driver used to skip to rx descriptor 1.
  Hopefully this stops the out-of-order packet reception that
  Charles Hannum saw.
                                                                                  When debugging is enabled, print rx-descriptor status flags
  before printing the rx bit rate.

  Add a debug message for when a beacon tx buffer reclamation.

  Reset IFF_OACTIVE when we reset the transmitter.

  Pass the consolidated LED state, a struct rtw_led_state,
  to rtw_led_attach.

  Choose the bit-rate for management frames (1Mb/s) at the
  same place we choose for all other frames.

  Do not use the NIC's short preamble or RTS options for
  management frames.  Label beacons for the NIC.

  Following a Linux driver, take care not to zero arbitrary
  bits in the TPPOLL register.

  Use the new idiom for IBSS merges: disable transmitter,
  kick the state machine.
                                                                                  Add a second descriptor to the beacon ring.  The NIC seems
  to like this much better.
2005-03-02 05:20:43 +00:00
dyoung
23ec02085c Write tab-separated records to 'tags' file. A popular vi-alike,
vim, expects for the columns in tags files to be tab-separated,
but these makefiles created space-separated records for the assembly
sources.
2005-03-02 04:49:59 +00:00
matt
038bc7aa3a Add disasm support for amd64 (x86-64).
From Cliff Neighbors.
2005-03-01 18:08:42 +00:00
christos
2a8316cc91 Add a change lost in the transition from 4.1.3->4.1.6. Don't block packets
for which we cannot add state. Explanation in the code. Fixes PR/29560.
2005-03-01 13:41:43 +00:00
christos
bb48399e9b Remove bogus len setting noted by J. Chapman Flack. 2005-03-01 04:39:59 +00:00
sekiya
8f1c003137 Set mips_sdcache_forceinv to 1 for r5k processors.
We now support secondary cache operation on r5ksc out-of-the-box.
2005-03-01 04:25:00 +00:00
sekiya
02889050a3 Add a hint variable (mips_sdcache_forceinv, explicitly initialized to zero)
that tells pmap_zero_page() and pmap_copy_page() to unconditionally invalidate
pages for r5k-class CPUs with secondary cache.

This behavior must be explicitly enabled by setting mips_sdcache_forceinv to 1.

This is the last bit of a patch that has been kicked around since 2000 between
rafal@, tsutsui@, and myself.
2005-03-01 04:23:44 +00:00
briggs
802400546d * Remove aif_get_mailboxstatus() from the aac_interface structure. Replace
with aif_get_mailbox().  Make it return uint32_t instead of 'int'.
* Add an AAC_GET_MAILBOX() macro and change AAC_GET_MAILBOXSTATUS() to use
  that.
* Update the Dell PERC 2QC quirk code to use AAC_GET_MAILBOX instead of the
  StrongARM-specific code.  While StrongARM access is correct for that card,
  it's a bad example of how to access the mailbox registers.
* Add the GETINFO command and use it to get and display the card's
  supported options at a verbose level during attachment.
2005-03-01 03:31:45 +00:00
itojun
039684b142 regen 2005-03-01 03:19:17 +00:00
itojun
3ea088e9f4 add OQO model 01 devices 2005-03-01 03:18:52 +00:00
sekiya
5d33b368ef Update TODO list. 2005-03-01 03:17:40 +00:00
itojun
6f1be686fe due to size constraint, comment atu out 2005-03-01 02:33:51 +00:00
itojun
c711664533 add atu ether driver on usb 2005-03-01 02:31:25 +00:00
perry
5153a936fe revert the whitespace kill -- these are binaries. 2005-03-01 01:10:43 +00:00
sekiya
e6a83e3a96 Replace elf2ecoff with objcopy for ECOFF bootloader creation. Fix a comment
typo while we're here.
2005-03-01 00:20:09 +00:00
sekiya
6c76898b70 Use objcopy instead of (broken) elf2ecoff to create ECOFF kernel. Suggested
by tsutsui@ on port-mips.
2005-02-28 23:44:58 +00:00
soren
999e530258 Remove a bit of old cruft. 2005-02-28 22:56:15 +00:00
soren
18d6a3043f Emulate basic mtio ioctls. 2005-02-28 22:11:31 +00:00
soren
4f02ad16c6 Remove duplicate statement. 2005-02-28 22:10:46 +00:00
jonathan
fba9c4c1b9 Increase default value for IFQ_MAXLEN from 50 to 256.
The value of 50 dates back to 4.3BSD and 10Mbit interfaces.
Gigabit interfaces are 100x faster, and by observation, when heavy
interrupt mitigation is enabled, gigabit interfaces can enqueue 40 packets
or more in a single hardware interrupt.  So IFQ_MAXLEN of 256 is adequate
for at least four gigabit interfaces.

Increasing IFQ_MAXLEN discussed and approved, in priniciple, circa Apr 2004.
The value is sysctl'able, so the default is no longer so critical,
but (imho) best to tune for high-performane systems by default.
2005-02-28 18:44:45 +00:00
uwe
6c46d7f51c Propagate WSDISPLAYIO_PARAM_BACKLIGHT to config hooks. 2005-02-28 18:04:54 +00:00
jonathan
f00865a2d9 Repair references to nonexistent structs in sys/netipsec/key.c after
NAT-T changes. Matches changes to reference non-nonexistent structs in
sys/netkey.

I have no clue if this is correct, but it matches the style in
sys/netkey, and (unlike the previous two revisions) it actually compiles...
2005-02-28 17:47:50 +00:00
uwe
0d9ce410fa Remove another unused #include. 2005-02-28 16:57:56 +00:00
uwe
d5308158a4 Remove unused #include. 2005-02-28 16:55:58 +00:00
chs
6e3fb7b0d2 add back rev. 1.29 of vm/vm_map.c, which was apparently lost in the UVM merge:
msync(MS_INVALIDATE) should fail if any part of the region is wired.
2005-02-28 16:55:54 +00:00
jonathan
4ae1f36dc9 Commit TCP SACK patches from Kentaro A. Karahone's patch at:
http://www.sigusr1.org/~kurahone/tcp-sack-netbsd-02152005.diff.gz

Fixes in that patch for pre-existing TCP pcb initializations were already
committed to NetBSD-current, so are not included in this commit.

The SACK patch has been observed to correctly negotiate and respond,
to SACKs in wide-area traffic.

There are two indepenently-observed, as-yet-unresolved anomalies:
First, seeing unexplained delays between in fast retransmission
(potentially explainable by an 0.2sec RTT between adjacent
ethernet/wifi NICs); and second, peculiar and unepxlained TCP
retransmits observed over an ath0 card.

After discussion with several interested developers, I'm committing
this now, as-is, for more eyes to use and look over.  Current hypothesis
is that the anomalies above may in fact be due to link/level (hardware,
driver, HAL, firmware) abberations in the test setup, affecting  both
Kentaro's  wired-Ethernet NIC and in my two (different) WiFi NICs.
2005-02-28 16:20:59 +00:00
uwe
31e1313c29 Whitespace police. 2005-02-28 16:16:19 +00:00
chs
64d6a08278 use TRUE and FALSE instead of 1 and 0 for boolean_t. 2005-02-28 15:33:04 +00:00
chs
81a6b7303b add some locking assertions. 2005-02-28 15:31:04 +00:00
itojun
015b260743 make ip6_getpmtu back to static 2005-02-28 09:27:07 +00:00
itojun
57eaa97695 with IPv6 intermediate host will not perform PMTUD. ip6_getpmtu() is for
end node cases, so do not use it.
2005-02-28 09:26:36 +00:00
sekiya
0baf5763ca Attempt to verify presence of haltwo hardware, rather than just blithely
believing that all hpc3 have a haltwo.  This should help Challenge-S owners.
2005-02-28 07:42:53 +00:00
jdolecek
224bdb2d8e le_mca_intredge(): g/c error semicolon, found by Simon Burge 2005-02-28 07:36:48 +00:00
sekiya
d671c9b8d3 De-__P() 2005-02-28 07:24:51 +00:00
sekiya
b9e63b2210 0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
2005-02-28 06:44:55 +00:00
simonb
0467cc278e Add a missing return after an "if" that checks for something then
did nothing.
2005-02-28 05:05:02 +00:00
joff
a446f7ac7a Misc changes from code review from someone who doesn't understand USB or
802.11 but wants this driver to work nonetheless...
 o Support WEP encryption, hopefully fix PR kern/29324 from Andreas Gustafsson
 o Correct ENETRESET reconfig while iface is already running
 o Correct bpfilter usage
 o Avoid leaking mbufs on failed TX
 o Reset ieee80211 state to INIT and stop atu_task() on atu_stop()
 o Don't stop interface on USB tx errs, just drop packet
 o use IFQ_IS_EMPTY rather than check if_snd for NULL head
2005-02-27 23:49:05 +00:00
christos
04bab5e379 Provide information for all the cpus not just the first one. This is
important because sysctl(_SC_NPROCESSORS_CONF) depends on it to get
the number of processors in the system.
2005-02-27 22:33:20 +00:00
christos
1a63592a9b Give more space for cpu info and allocate it dynamically. 2005-02-27 22:29:50 +00:00
uwe
5e3aaf765f All Jornada 7xx machines have the framebuffer at the same address, so
just use a single wildcard entry for them.  Should fix the bug, that
7xx machines could be booted only using "Japanese" entry (b/c it was
the only one with the framebuffer info).
2005-02-27 18:35:08 +00:00
tsutsui
58bc3dfe63 Fall back to comconsole when vga or pccons console cnprobe/cnattach fails
even if options COMCONSOLE is not specified.
2005-02-27 18:29:43 +00:00
uwe
2ddba96151 Take DST into account when computing bi.timezone offset. 2005-02-27 18:25:02 +00:00
tsutsui
f05862169e cnattach functions should return zero on success, non-zero on failure. 2005-02-27 18:24:49 +00:00
perry
0cce50f2c9 do not leave spaces at the end of stripped RCS Ids 2005-02-27 15:37:33 +00:00
perry
4910249674 regen 2005-02-27 15:34:22 +00:00
perry
3bdad9eec5 do not leave spaces at the end of stripped RCS Ids 2005-02-27 15:33:58 +00:00
perry
48b2bd6932 regen 2005-02-27 15:32:15 +00:00
perry
73125c5ec0 don't leave spaces at the end of stripped RCS Ids 2005-02-27 15:31:01 +00:00
perry
c576ebdacb regen 2005-02-27 15:29:37 +00:00
perry
e25e66db2d don't leave spaces at the end of stripped RCS Ids 2005-02-27 15:29:09 +00:00
perry
cb2e3c4e50 regen 2005-02-27 15:19:25 +00:00
perry
7680ac9ca7 don't leave whitespace at the end of $ stripped RCS Ids
don't put unneeded tabs at the end of a line
2005-02-27 15:19:13 +00:00
perry
e99b3aba69 regen 2005-02-27 14:29:44 +00:00
perry
e153a1758d Don't leave blanks at the end of the "generated from:"
Also, don't print a space after "},"s at the end of line in one of the
files.
2005-02-27 14:29:18 +00:00
dsl
b3675ff77c Enable FFS_NO_SNAPSHOT in the INSTALL kernel so that it fits into 2 floppies 2005-02-27 12:38:42 +00:00
tsutsui
93dd53ae14 LANCE chip actually requires PA of shared mem rather than VA.
Fortunately, lower bytes of PA and VA for intio devices were identical
on -current pmap, but the problem appears on new yamt-km which has differnt
address layout. Ummmmm.
2005-02-27 09:27:31 +00:00
tsutsui
81e257d906 TAB/space cosmetics in the previous. 2005-02-27 08:02:43 +00:00
tsutsui
f765242e76 Disable temporary %tt0 register mapping (for yamt-km branch). 2005-02-27 07:59:18 +00:00
tsutsui
01caf37ca6 - Rename ctrl_led in locore.s to ctrl_led_phys since it has
PA of CTRL_LED port.
- Restore ctrl_led in machdep.c and store VA of CTRL_LED port to it.
2005-02-27 07:57:29 +00:00
perry
226c71cf67 regen 2005-02-27 05:40:06 +00:00