Commit Graph

2163 Commits

Author SHA1 Message Date
nyan
c8ade3d534 MFi386: revision 1.397 (cosmetic changes) 2004-01-30 13:15:42 +00:00
nyan
8095cc725d MFi386: revision 1.1122 (typos and cosmetic changes) 2004-01-30 13:06:57 +00:00
nyan
d3eb5709de The ataraid device is not needed for pc98. 2004-01-27 15:39:32 +00:00
jeff
87bacd3193 - Recruit some new ULE users by making it the default scheduler in GENERIC.
ULE will be in a probationary period to determine whether it will be left
   as the default in 5.3 which would likely mean the rest of the 5.x series.
2004-01-24 21:38:52 +00:00
nectar
a58ea33556 Add PFIL_HOOKS to the GENERIC kernel configuration, primarily so
that one can load the IPFilter module (which requires PFIL_HOOKS).

Requested by:	Many, for over a year
2004-01-24 14:59:51 +00:00
nyan
6faa305fec MFi386: revisions from 1.1116 to 1.1119.
Remove NEWCARD related devices.
2004-01-21 16:28:19 +00:00
nyan
bfb36a1d62 Merged from sys/dev/sio/sio.c revision 1.418. 2004-01-21 16:12:29 +00:00
nyan
f74a6b84fc MFi386: revision 1.1114. 2004-01-12 03:43:05 +00:00
nyan
5ad748cd87 MFi386: revision 1.583. 2004-01-11 09:18:33 +00:00
jhb
eae13340e8 Remove the AUTO_EOI_2 option for PC-98 as it has never done anything anyway
and was even commented out in NOTES.
2004-01-06 18:51:14 +00:00
davidxu
62545ad42b Make sigaltstack as per-threaded, because per-process sigaltstack state
is useless for threaded programs, multiple threads can not share same
stack.
The alternative signal stack is private for thread, no lock is needed,
the orignal P_ALTSTACK is now moved into td_pflags and renamed to
TDP_ALTSTACK.
For single thread or Linux clone() based threaded program, there is no
semantic changed, because those programs only have one kernel thread
in every process.

Reviewed by: deischen, dfr
2004-01-03 02:02:26 +00:00
bde
d3b0791d2f Garbage-collected CLK_USE_TSC_CALIBRATION.
i386/conf/NOTES, pc98/conf/NOTES:
Fixed the descriptions of the other CLK_* options.
2003-12-30 07:28:54 +00:00
nyan
e3b6113cd7 Add detach method. 2003-12-28 12:25:49 +00:00
bde
3c85afb51e Merged from sys/dev/sio/sio.c revision 1.417. 2003-12-26 03:06:11 +00:00
imp
1c4373b0f3 The dgb driver is redundant with the digi driver in the tree. It uses
lots of old interfaces, and digi now supports all cards that dgb
supported.  The author of the driver says that this is no longer
necessary.

Approved by: babkin@
2003-12-07 04:18:52 +00:00
imp
d9069e3708 There is no such thing as a pc98 machine with ISA expansion slots, nor
is there a C-BUS Cronyx Sigma board.  Remove it from pc98 files and lint.

Approved by: re <scottl>
2003-12-03 21:44:44 +00:00
bde
43766bfd43 Merged from sys/dev/sio/sio.c revisions 1.415 and 1.416.
Approved by:	nyan
(Blanket approval for simple changes in sio.)
2003-11-17 23:13:08 +00:00
nyan
33630f901f opt_apic.h is not needed. 2003-11-15 12:37:15 +00:00
nyan
0b68caf049 MFi386: revisions from 1.1102 to 1.1105. 2003-11-15 12:33:39 +00:00
marcel
799c3c36bc Change the clear_ret argument of get_mcontext() to be a flags argument.
Since all callers either passed 0 or 1 for clear_ret, define bit 0 in
the flags for use as clear_ret. Reserve bits 1, 2 and 3 for use by MI
code for possible (but unlikely) future use. The remaining bits are for
use by MD code.

This change is triggered by a need on ia64 to have another knob for
get_mcontext().
2003-11-09 20:31:04 +00:00
tanimura
6906857f32 - Implement selwakeuppri() which allows raising the priority of a
thread being waken up.  The thread waken up can run at a priority as
  high as after tsleep().

- Replace selwakeup()s with selwakeuppri()s and pass appropriate
  priorities.

- Add cv_broadcastpri() which raises the priority of the broadcast
  threads.  Used by selwakeuppri() if collision occurs.

Not objected in:	-arch, -current
2003-11-09 09:17:26 +00:00
nyan
bc568ba69c Include machine/asmacros.h instead of machine/asm.h.
Submitted by:	bde
2003-11-05 17:01:51 +00:00
bde
e71cd1fc78 Removed reference to the garbage (and soon to be deleted) option
DPT_ALLOW_MEMIO.
2003-11-05 14:34:36 +00:00
nyan
66958184e3 'options APIC_IO' is replaced by 'device apic'. 2003-11-04 13:52:09 +00:00
nyan
3b507e0811 'options APIC_IO' is replaced by 'device apic'. 2003-11-04 13:31:44 +00:00
nyan
abc2d660ef MFi386: revision 1.206 2003-11-04 13:15:12 +00:00
nyan
2e1dbc4f02 MFi386: revision 1.580 2003-11-04 13:14:14 +00:00
nyan
b9cd1904c7 Split pc98 support into pc98/pc98/nmi.c. 2003-11-04 13:01:41 +00:00
nyan
d690bc780f MFi386: revision 1.579. 2003-10-31 14:54:33 +00:00
nyan
501cbe26a0 Merged from sys/isa/syscons_isa.c revision 1.24. 2003-10-31 13:48:24 +00:00
nyan
112b6a42c5 MFi386: revision 1.578. 2003-10-31 13:47:43 +00:00
nyan
41ef1427bf MFi386: revision 1.577. 2003-10-19 11:35:44 +00:00
phk
dc78804986 Eliminate use bio_blkno. 2003-10-18 17:51:26 +00:00
phk
802a2d9757 Discontinue bio_blkno usage. 2003-10-18 17:45:45 +00:00
nyan
d5ce3bcbe1 MFi386: revision 1.576. 2003-10-11 09:24:58 +00:00
nyan
edae4e5184 Merged from sys/dev/sio/sio.c revisions from 1.405 to 1.414. 2003-10-05 11:55:14 +00:00
nyan
cfea170f34 MFi386: revisions 1.572, 1.573 and 1.574. 2003-10-05 09:05:45 +00:00
nyan
219e77d739 MFi386: revision 1.205 2003-10-05 08:56:49 +00:00
phk
db4a3852ff OK, I messed up /dev/console with what I had hoped would be compat
code.  Convert remaining console drivers and hope for the best.
2003-09-26 19:35:50 +00:00
phk
89e467605a Typo in last commit: missing ')' 2003-09-26 12:13:35 +00:00
phk
2c8fae6970 Change fb_attach() and fb_detach() to take a integer unit number rather
than a dev_t.

All of the dev_t's passed were bogusly created with makedev()
2003-09-26 10:41:44 +00:00
nyan
3306aedb3e Implement the bus_space_map() function to allocate resources and initialize
a bus_handle, but currently it does only initializing a bus_handle.
2003-09-23 08:22:34 +00:00
nyan
769d5ac9c9 Merged from sys/isa/fd.c revisions 1.259 and 1.260. 2003-09-18 09:49:08 +00:00
nyan
db43025198 Merged from sys/isa/fd.c revision 1.258. 2003-09-13 12:56:05 +00:00
nyan
4f60ce0fbd MFi386 revisions 1.570 and 1.571. 2003-09-11 14:07:02 +00:00
nyan
86c004009f MFi386: revision 1.204. 2003-09-11 14:05:06 +00:00
nyan
5893af02e6 MFi386: revision 1.1093. 2003-09-11 13:44:48 +00:00
nyan
b86a9046ed Merged from sys/isa/fd.c revisions 1.252, 1.253, 1.254, 1.255 and 1.257. 2003-09-11 13:35:35 +00:00
obrien
fe073621b1 Sort 'bge' correctly. 2003-09-10 18:54:59 +00:00
wpaul
5e79307cb8 Take the support for the 8139C+/8169/8169S/8110S chips out of the
rl(4) driver and put it in a new re(4) driver. The re(4) driver shares
the if_rlreg.h file with rl(4) but is a separate module. (Ultimately
I may change this. For now, it's convenient.)

rl(4) has been modified so that it will never attach to an 8139C+
chip, leaving it to re(4) instead. Only re(4) has the PCI IDs to
match the 8169/8169S/8110S gigE chips. if_re.c contains the same
basic code that was originally bolted onto if_rl.c, with the
following updates:

- Added support for jumbo frames. Currently, there seems to be
  a limit of approximately 6200 bytes for jumbo frames on transmit.
  (This was determined via experimentation.) The 8169S/8110S chips
  apparently are limited to 7.5K frames on transmit. This may require
  some more work, though the framework to handle jumbo frames on RX
  is in place: the re_rxeof() routine will gather up frames than span
  multiple 2K clusters into a single mbuf list.

- Fixed bug in re_txeof(): if we reap some of the TX buffers,
  but there are still some pending, re-arm the timer before exiting
  re_txeof() so that another timeout interrupt will be generated, just
  in case re_start() doesn't do it for us.

- Handle the 'link state changed' interrupt

- Fix a detach bug. If re(4) is loaded as a module, and you do
  tcpdump -i re0, then you do 'kldunload if_re,' the system will
  panic after a few seconds. This happens because ether_ifdetach()
  ends up calling the BPF detach code, which notices the interface
  is in promiscuous mode and tries to switch promisc mode off while
  detaching the BPF listner. This ultimately results in a call
  to re_ioctl() (due to SIOCSIFFLAGS), which in turn calls re_init()
  to handle the IFF_PROMISC flag change. Unfortunately, calling re_init()
  here turns the chip back on and restarts the 1-second timeout loop
  that drives re_tick(). By the time the timeout fires, if_re.ko
  has been unloaded, which results in a call to invalid code and
  blows up the system.

  To fix this, I cleared the IFF_UP flag before calling ether_ifdetach(),
  which stops the ioctl routine from trying to reset the chip.

- Modified comments in re_rxeof() relating to the difference in
  RX descriptor status bit layout between the 8139C+ and the gigE
  chips. The layout is different because the frame length field
  was expanded from 12 bits to 13, and they got rid of one of the
  status bits to make room.

- Add diagnostic code (re_diag()) to test for the case where a user
  has installed a broken 32-bit 8169 PCI NIC in a 64-bit slot. Some
  NICs have the REQ64# and ACK64# lines connected even though the
  board is 32-bit only (in this case, they should be pulled high).
  This fools the chip into doing 64-bit DMA transfers even though
  there is no 64-bit data path. To detect this, re_diag() puts the
  chip into digital loopback mode and sets the receiver to promiscuous
  mode, then initiates a single 64-byte packet transmission. The
  frame is echoed back to the host, and if the frame contents are
  intact, we know DMA is working correctly, otherwise we complain
  loudly on the console and abort the device attach. (At the moment,
  I don't know of any way to work around the problem other than
  physically modifying the board, so until/unless I can think of a
  software workaround, this will have do to.)

- Created re(4) man page

- Modified rlphy.c to allow re(4) to attach as well as rl(4).

Note that this code works for the sample 8169/Marvell 88E1000 NIC
that I have, but probably won't work for the 8169S/8110S chips.
RealTek has sent me some sample NICs, but they haven't arrived yet.
I will probably need to add an rlgphy driver to handle the on-board
PHY in the 8169S/8110S (it needs special DSP initialization).
2003-09-08 02:11:25 +00:00