The NetBSD Project

CVS log for src/sys/dev/pci/if_msk.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.119 / (download) - annotate - [select for diffs], Sat Sep 24 18:12:42 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.118: +2 -3 lines
Diff to previous 1.118 (colored) to selected 1.33.2.2 (colored)

Remove unnecessary include of <sys/malloc.h>.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Sep 20 11:27:30 2021 UTC (2 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.117: +6 -5 lines
Diff to previous 1.117 (colored) to selected 1.33.2.2 (colored)

Use coherent DMA mappings when possible.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:14 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.116: +4 -4 lines
Diff to previous 1.116 (colored) to selected 1.33.2.2 (colored)

Merge thorpej-cfargs2.

Revision 1.116.6.1 / (download) - annotate - [select for diffs], Wed Aug 4 21:27:00 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.116: +4 -4 lines
Diff to previous 1.116 (colored) next main 1.117 (colored) to selected 1.33.2.2 (colored)

Adapt to CFARGS().

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:31 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.115: +90 -62 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 8 00:27:02 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.115: +90 -62 lines
Diff to previous 1.115 (colored) to selected 1.33.2.2 (colored)

Use pci_compatible_match().

Revision 1.115 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:57 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-i2c-spi-conf
Changes since 1.114: +4 -4 lines
Diff to previous 1.114 (colored) to selected 1.33.2.2 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:13 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.114: +4 -4 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.33.2.2 (colored)

Give config_found() the same variadic arguments treatment as
config_search().  This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls.  Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Oct 4 16:23:04 2020 UTC (3 years, 6 months ago) by jakllsch
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored) to selected 1.33.2.2 (colored)

device_printf() instead of aprint_error_dev() where appropriate

Revision 1.113 / (download) - annotate - [select for diffs], Mon May 11 23:47:45 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.112: +8 -3 lines
Diff to previous 1.112 (colored) to selected 1.33.2.2 (colored)

msk(4): ack Status BMU IRQ only if we're (apparently) caught up with it

Possibility for acking an unprocessed Status BMU IRQ still exists, and
remains handled by the watchdog.  Nevertheless this should reduce the
likelyhood that path is taken.

Revision 1.112 / (download) - annotate - [select for diffs], Mon May 11 19:17:46 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.111: +3 -5 lines
Diff to previous 1.111 (colored) to selected 1.33.2.2 (colored)

msk(4): simplify interrupt return value creation

This also corrects a problem where we would not claim we handled an
interrupt that was ours.

Revision 1.111 / (download) - annotate - [select for diffs], Mon May 11 18:49:04 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.33.2.2 (colored)

msk(4): moderate no interrupts globally

The global interrupt moderator on mskc(4) is mostly redundant with the Status Unit's tx and rx interrupt coalescing for our purpouses

Revisits interrupt moderation change in 1.108.

Revision 1.110 / (download) - annotate - [select for diffs], Fri May 8 14:56:49 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.109: +4 -2 lines
Diff to previous 1.109 (colored) to selected 1.33.2.2 (colored)

Use sysctl_teardown() upon detach of mskc(4).

Revision 1.109 / (download) - annotate - [select for diffs], Fri May 8 14:35:19 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.108: +16 -26 lines
Diff to previous 1.108 (colored) to selected 1.33.2.2 (colored)

msk(4): Simplify setting the first List Element owner-bit last.

We don't actually need to do this, as the BMU won't proceed to the new
descriptor until we advance the ring-end pointer on the chip, but perhaps
it has value as paranoia.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Apr 30 14:04:54 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.107: +3 -4 lines
Diff to previous 1.107 (colored) to selected 1.33.2.2 (colored)

msk(4): actually moderate interrupts from the Yukon 2 Status BMU

Previously the interrupt moderation enable register was being programmed
with sk(4)-style enable bits, none of which matched the significant
interrupt sources of the Yukon 2 we enable.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 30 13:51:43 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored) to selected 1.33.2.2 (colored)

msk(4): during attach print intrstr only once

Revision 1.106 / (download) - annotate - [select for diffs], Thu Apr 30 01:52:08 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.105: +127 -41 lines
Diff to previous 1.105 (colored) to selected 1.33.2.2 (colored)

msk(4): rework rx descriptor loading to support multiple segments

This paves the way to replace the driver-internal jumbo frame rx buffer
with other recieve buffers (for example MCLGET/MEXTMALLOC) in the future.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Apr 29 20:03:52 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.104: +21 -38 lines
Diff to previous 1.104 (colored) to selected 1.33.2.2 (colored)

msk(4): Simply keep a ring of (tx) dmamaps, rather than a linked list

Revision 1.104 / (download) - annotate - [select for diffs], Wed Apr 29 18:52:03 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.103: +4 -14 lines
Diff to previous 1.103 (colored) to selected 1.33.2.2 (colored)

msk(4): don't keep array of pointers to each ring descriptor

With 512 descriptors each in 2 rings this saves 4KiB (LP32) or 8KiB (LP64)
per interface.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Apr 28 17:26:01 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.33.2.2 (colored)

Use correct-semantic byteorder(9) functions to provide letoh*() in msk(4)

Revision 1.102 / (download) - annotate - [select for diffs], Tue Apr 28 17:15:48 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.101: +2 -3 lines
Diff to previous 1.101 (colored) to selected 1.33.2.2 (colored)

Remove unused cargo cult include of <dev/mii/brgphyreg.h> in if_msk.c.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Apr 26 16:14:14 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.100: +4 -14 lines
Diff to previous 1.100 (colored) to selected 1.33.2.2 (colored)

Remove written-only sk_next member of struct (m)sk_chain.

Revision 1.98.4.2 / (download) - annotate - [select for diffs], Sat Apr 25 11:23:59 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.98.4.1: +4 -2 lines
Diff to previous 1.98.4.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.33.2.2 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.100 / (download) - annotate - [select for diffs], Wed Apr 22 14:26:27 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: bouyer-xenpvh-base2
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) to selected 1.33.2.2 (colored)

show the 'interrupting at ...' info on boot

Revision 1.67.2.4 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:16 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.67.2.3: +28 -26 lines
Diff to previous 1.67.2.3 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:04 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.98: +30 -28 lines
Diff to previous 1.98 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.99 / (download) - annotate - [select for diffs], Sat Apr 18 17:31:52 2020 UTC (3 years, 11 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base1
Changes since 1.98: +30 -28 lines
Diff to previous 1.98 (colored) to selected 1.33.2.2 (colored)

msk(4): Avoid bus_dmamap_destroy() in msk_stop()

bus_dmamap_destroy() can not be executed in soft interrupt context,
and msk_stop() can be called in soft interrupt context.

As such, move creation and destruction of tx dmamaps to attach() and
detach() functions.

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:26 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.67.2.2: +58 -25 lines
Diff to previous 1.67.2.2 (colored) to branchpoint 1.67 (colored) to selected 1.33.2.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:09 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.67.2.1: +85 -85 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) to selected 1.33.2.2 (colored)

Merge changes from current as of 20200406

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:10 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.96: +8 -8 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Feb 4 05:44:14 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.97: +5 -5 lines
Diff to previous 1.97 (colored) to selected 1.33.2.2 (colored)

Use ifmedia_fini().

Revision 1.97 / (download) - annotate - [select for diffs], Thu Jan 30 05:42:00 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.96: +5 -5 lines
Diff to previous 1.96 (colored) to selected 1.33.2.2 (colored)

Adopt <net/if_stats.h>.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 1 12:47:10 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored) to selected 1.33.2.2 (colored)

minor adjustments, to avoid warnings on debug builds

Revision 1.95 / (download) - annotate - [select for diffs], Thu Nov 28 17:09:10 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
Changes since 1.94: +76 -76 lines
Diff to previous 1.94 (colored) to selected 1.33.2.2 (colored)

localify

Revision 1.91.2.2 / (download) - annotate - [select for diffs], Tue Nov 19 13:07:37 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.91.2.1: +49 -15 lines
Diff to previous 1.91.2.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #450):

	sys/dev/pci/if_msk.c: revision 1.94
	sys/dev/pci/if_skreg.h: revision 1.27

 Make Yukon EX, FE+, SUPR stable. The code is mainly taken from FreeBSD.

 At least, this change made my own Yukon EX machine (HP ProBook 4501s) much
stable than before.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Nov 15 12:38:09 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.93: +49 -15 lines
Diff to previous 1.93 (colored) to selected 1.33.2.2 (colored)

 Make Yukon EX, FE+, SUPR stable. The code is mainly taken from FreeBSD.

 At least, this change made my own Yukon EX machine (HP ProBook 4501s) much
stable than before.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:36 2019 UTC (4 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.92: +3 -9 lines
Diff to previous 1.92 (colored) to selected 1.33.2.2 (colored)

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Thu Oct 24 16:19:23 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.91: +12 -7 lines
Diff to previous 1.91 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #374):

	sys/dev/pci/if_msk.c: revision 1.92

Fix order of m_freem(). Found by kASan. OK'd by jdolecek and mrg.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Oct 17 05:55:18 2019 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.91: +12 -7 lines
Diff to previous 1.91 (colored) to selected 1.33.2.2 (colored)

 Fix order of m_freem(). Found by kASan. OK'd by jdolecek and mrg.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:16 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.67: +556 -403 lines
Diff to previous 1.67 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jun 3 05:22:57 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.90: +2 -4 lines
Diff to previous 1.90 (colored) to selected 1.33.2.2 (colored)

 I think it's not required to call msk_init_yukon() in msk_attach().
Fixes PR kern/54261 reported by David shao.

Revision 1.90 / (download) - annotate - [select for diffs], Tue May 28 07:41:49 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.89: +5 -2 lines
Diff to previous 1.89 (colored) to selected 1.33.2.2 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.89 / (download) - annotate - [select for diffs], Thu May 23 13:10:52 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.88: +11 -11 lines
Diff to previous 1.88 (colored) to selected 1.33.2.2 (colored)

 Whitespace fix (mainly tabify).

Revision 1.88 / (download) - annotate - [select for diffs], Thu May 23 10:51:39 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.87: +61 -62 lines
Diff to previous 1.87 (colored) to selected 1.33.2.2 (colored)

No functional change:
 - Simplify MII structure initialization and reference.
 - u_int*_t -> uint*_t.
 - KNF

Revision 1.54.8.2 / (download) - annotate - [select for diffs], Mon May 13 12:40:13 2019 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.54.8.1: +3 -3 lines
Diff to previous 1.54.8.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.33.2.2 (colored)

Pull up the following, via patch, requested by msaitoh in ticket #1263:

	sys/dev/mii/brgphy.c				1.84
	sys/dev/mii/ciphy.c				1.33 via patch
	sys/dev/mii/rgephy.c				1.53
	sys/arch/arm/imx/if_enet.c			1.18
	sys/arch/mips/adm5120/dev/if_admsw.c		1.19-1.20
	sys/dev/pci/if_bge.c				1.329
	sys/dev/pci/if_bnx.c				1.81
	sys/dev/pci/if_et.c				1.21
	sys/dev/pci/if_lii.c				1.22
	sys/dev/pci/if_msk.c				1.87
	sys/dev/pci/if_nfe.c				1.68
	sys/dev/pci/if_sk.c				1.95
	sys/dev/pci/if_ti.c				1.107
	sys/dev/pci/if_txp.c				1.52
	sys/dev/pci/if_vge.c				1.69
	sys/dev/usb/if_axen.c				1.38
	sys/dev/usb/if_aue.c				1.149

Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Apr 11 08:50:59 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) to selected 1.33.2.2 (colored)

 Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:27 2019 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.85: +5 -2 lines
Diff to previous 1.85 (colored) to selected 1.33.2.2 (colored)

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.85 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:42 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored) to selected 1.33.2.2 (colored)

Merge the [pgoyette-compat] branch

Revision 1.55.2.8 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:07 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.55.2.7: +22 -19 lines
Diff to previous 1.55.2.7 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:27 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.83: +22 -19 lines
Diff to previous 1.83 (colored) to selected 1.33.2.2 (colored)

 Change MII PHY read/write API from:

	int (*mii_readreg_t)(device_t, int, int);
	void (*mii_writereg_t)(device_t, int, int, int);
to:

	int (*mii_readreg_t)(device_t, int, int, uint16_t *);
	int (*mii_writereg_t)(device_t, int, int, uint16_t);

Now we can test if a read/write operation failed or not by the return value.

 In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.

 Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:

	arm/at91/at91emac.c
	arm/ep93xx/epe.c
	arm/omap/omapl1x_emac.c
	mips/ralink/ralink_eth.c
	arch/powerpc/booke/dev/pq3etsec.c(read)
	dev/cadence/if_cemac.c <- hkenken
	dev/ic/lan9118.c


Tested with the following device:

	axe+ukphy
	axe+rgephy
	axen+rgephy	(tested by Andrius V)
	wm+atphy
	wm+ukphy
	wm+igphy
	wm+ihphy
	wm+makphy
	sk+makphy
	sk+brgphy
	sk+gentbi
	msk+makphy
	sip+icsphy
	sip+ukphy
	re+rgephy
	bge+brgphy
	bnx+brgphy
	gsip+gphyter
	rtk+rlphy
	fxp+inphy	(tested by Andrius V)
	tlp+acphy
	ex+exphy
	epic+qsphy
	vge+ciphy	(tested by Andrius V)
	vr+ukphy	(tested by Andrius V)
	vte+ukphy	(tested by Andrius V)

Not tested (MAC):
	arm:at91emac
	arm:cemac
	arm:epe
	arm:geminigmac
	arm:enet
	arm:cpsw
	arm:emac(omac)
	arm:emac(sunxi)
	arm:npe
	evbppc:temac
	macppc:bm
	macppc:gm
	mips:aumac
	mips:ae
	mips:cnmac
	mips:reth
	mips:sbmac
	playstation2:smap
	powerpc:tsec
	powerpc:emac(ibm4xx)
	sgimips:mec
	sparc:be
	sf
	ne(ax88190, dl10019)
	awge
	ep
	gem
	hme
	smsh
	mtd
	sm
	age
	alc
	ale
	bce
	cas
	et
	jme
	lii
	nfe
	pcn
	ste
	stge
	tl
	xi
	aue
	mue
	smsc
	udav
	url

Not tested (PHY):
	amhphy
	bmtphy
	dmphy
	etphy
	glxtphy
	ikphy
	iophy
	lxtphy
	nsphyter
	pnaphy
	rdcphy
	sqphy
	tlphy
	tqphy
	urlphy

Revision 1.55.2.7 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:27 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.6: +57 -48 lines
Diff to previous 1.55.2.6 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Synch with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jan 8 06:29:35 2019 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190118
Changes since 1.82: +52 -45 lines
Diff to previous 1.82 (colored) to selected 1.33.2.2 (colored)

 KNF. No functional change.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Dec 27 08:13:50 2018 UTC (5 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.81: +7 -5 lines
Diff to previous 1.81 (colored) to selected 1.33.2.2 (colored)

- initialise sk_rx_hiaddr and sk_tx_hiaddr
- use MSK_ADDR_LO() and MSK_ADDR_HI()
- expand a debug message
- remove unused softc members

Revision 1.55.2.6 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:50 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.5: +9 -7 lines
Diff to previous 1.55.2.5 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.81 / (download) - annotate - [select for diffs], Sat Dec 8 13:31:31 2018 UTC (5 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.80: +9 -7 lines
Diff to previous 1.80 (colored) to selected 1.33.2.2 (colored)

Don't try to handle interrupts for a detached device. Should fix
panic on shutdown reported by Stefan Hertenberger on current-users.

Revision 1.55.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:32 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.4: +11 -7 lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.80 / (download) - annotate - [select for diffs], Tue Nov 13 19:39:04 2018 UTC (5 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored) to selected 1.33.2.2 (colored)

whitespace fix, NFC

Revision 1.79 / (download) - annotate - [select for diffs], Sun Oct 21 00:51:12 2018 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.78: +10 -6 lines
Diff to previous 1.78 (colored) to selected 1.33.2.2 (colored)

Enable MSI support where available.

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:50 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.3: +168 -60 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Ssync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 14 18:46:47 2018 UTC (5 years, 7 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.77: +163 -56 lines
Diff to previous 1.77 (colored) to selected 1.33.2.2 (colored)

msk(4): add 64-bit DMA support

portions of this change set provided by mrg@

Revision 1.77 / (download) - annotate - [select for diffs], Wed Sep 12 13:52:36 2018 UTC (5 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.76: +7 -6 lines
Diff to previous 1.76 (colored) to selected 1.33.2.2 (colored)

if_msk: detach/reattach fixes

 - Fill in sc->sk_bsize upon pci_mapreg_map() so that we'll correctly
   bus_space_unmap() on detach.
 - Clear sc->sk_intrhand after interrupt disestablish, to prevent
   disestablishing unestablished interrupt.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:51 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.2: +4 -3 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.76 / (download) - annotate - [select for diffs], Thu Aug 23 11:53:15 2018 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0906, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.75: +4 -3 lines
Diff to previous 1.75 (colored) to selected 1.33.2.2 (colored)

Fix buffer overflow, detected by kASan.

[    1.044878] kASan: Unauthorized Access In 0xffffffff804ec7e2: Addr 0xffffffff818a51e4 [2 bytes, read]
[    1.044878] #0 0xffffffff804ec7e2 in mskc_probe <netbsd>
[    1.044878] #1 0xffffffff80e92a77 in mapply <netbsd>
[    1.044878] #2 0xffffffff80e92e5f in config_search_loc <netbsd>
[    1.044878] #3 0xffffffff80e93fb5 in config_found_sm_loc <netbsd>
[    1.044878] #4 0xffffffff802ca9ea in pci_probe_device <netbsd>
[    1.044878] #5 0xffffffff802cad97 in pci_enumerate_bus <netbsd>
[    1.044878] #6 0xffffffff802caf00 in pcirescan <netbsd>
[    1.044878] #7 0xffffffff802cb1ee in pciattach <netbsd>
[    1.044878] #8 0xffffffff80e93e5b in config_attach_loc <netbsd>
[    1.044878] #9 0xffffffff80e93fce in config_found_sm_loc <netbsd>
[    1.044878] #10 0xffffffff80271212 in mp_pci_scan <netbsd>
[    1.044878] #11 0xffffffff8022d9ee in mainbus_attach <netbsd>
[    1.044878] #12 0xffffffff80e93e5b in config_attach_loc <netbsd>
[    1.044878] #13 0xffffffff8021e38b in cpu_configure <netbsd>
[    1.044878] #14 0xffffffff814a7068 in main <netbsd>

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:46 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55.2.1: +258 -235 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jul 10 20:48:54 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.74: +11 -18 lines
Diff to previous 1.74 (colored) to selected 1.33.2.2 (colored)

replace code using SK_WA_4109 workaround flag by explicit conditional
on affected type ids and revisions, so it's properly applied whenever
new types are added; taken with FreeBSD

contrary to FreeBSD, keep the IWM workaround for all XL revs - my XL rev. A3
seems to consistently have slightly (~2%) better Rx performance with the 0x04
value

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jul 10 18:43:20 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.73: +11 -9 lines
Diff to previous 1.73 (colored) to selected 1.33.2.2 (colored)

minor fix for earlier sync with OpenBSD if_msk.c; remove duplicit
COMA handling, add also workaround code for Yukon EC Ultra and EX, and
remove a write-only assignment

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jul 10 18:34:42 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.33.2.2 (colored)

fix comment typo

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jul 10 18:32:25 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.71: +63 -58 lines
Diff to previous 1.71 (colored) to selected 1.33.2.2 (colored)

add callout for re-filling RX ring - it's invoked when the RX refill
code can't get enough buffers; fixes possible stall when the RXSTAT
interrupt arrives while no buffers are available

idea from OpenBSD if_msk.c rev. 1.131

as part of this remove the confusingly commented re-fill code from
msk_jfree() and instead just invoke the callout if needed; also
refill in msk_intr() only when running low instead of every RX intr;
this simplifies the code, and gives small RX performance boost on
my hardware (6%: ~38 MB/s -> ~40 MB/s)

tested on SK-9E22 (Yukon-2 XL rev. A3) by me, and 88E8071 (Yukon-2
Extreme rev. B0) by Jogn Halfpenny; unfortunately still doesn't
resolve the PR kern/53301 stall

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jul 4 19:26:09 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored) to selected 1.33.2.2 (colored)

use pci_intr_establish_xname()

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jul 3 19:56:01 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.69: +31 -14 lines
Diff to previous 1.69 (colored) to selected 1.33.2.2 (colored)

fix detach code and do it on shutdown

Revision 1.69 / (download) - annotate - [select for diffs], Tue Jul 3 18:07:36 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.68: +9 -5 lines
Diff to previous 1.68 (colored) to selected 1.33.2.2 (colored)

attach the rnd source only once even with dual-port adapters

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jul 2 06:03:13 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.67: +149 -148 lines
Diff to previous 1.67 (colored) to selected 1.33.2.2 (colored)

sync OpenBSD if_msk.c revs 1.66-1.79 skipping framework changes and already
present changes:
- Make Yukon-2 FE+ (88E8040, 88E8042) work
- 88E8057 is a Yukon 2 Ultra 2, and this might make it work on a little
  shiny green box in Japan
- Prevent null pointer dereference that could happen when we process an RX
  interrupt that was queued while stopping the interface.
- Remove holdover XMAC II writes/reads inherited from sk as
  they aren't required and cause problems like the 88E8072
  hard locking a system when enabling macsec bypass.
- Bypass macsec on extreme/supreme based chips.
  Makes my 88E8072 work.
- Add detach support to a few more drivers, and in others do the neccessary
  operations in the detach function in the right order.

towards resolution of PR kern/53301 but will need more work

tested by John Halfpenny on another 8040/Yukon-2 FE+ and reported
improving behaviour (system hang to stall) so committing as stopgap; also
tested on my SK-9E22 (Yukon-2 XL), there works without any issues both before
and after

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:01 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base
Branch point for: phil-wifi
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.33.2.2 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:52 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.55: +319 -141 lines
Diff to previous 1.55 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jun 21 09:09:50 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.65: +6 -7 lines
Diff to previous 1.65 (colored) to selected 1.33.2.2 (colored)

 Simplify & white space fix. No functional change.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 14 09:29:55 2018 UTC (5 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.64: +6 -6 lines
Diff to previous 1.64 (colored) to selected 1.33.2.2 (colored)

 Remove extra tabs. No functional change.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 13 20:18:54 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.33.2.2 (colored)

fix device name in printf when not matched

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jun 13 19:37:23 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.62: +125 -61 lines
Diff to previous 1.62 (colored) to selected 1.33.2.2 (colored)

sync and adapt with OpenBSD if_msk.c rev. 1.43-1.65 (modulo some
cosmetics, stuff we already had, or stuff which does not apply due
to different frameworks):

- Add support for fiber on 88E8021/22
- Avoid unnecessary resets.  This should make fiber 88E8021/22 work completely
- Only probe phy's at address 0; gets rid of bogus phy's on the
  Marvell Yukon 88E8036
- Remove an unused function msk_setfilt() which was copied from sk(4)
- Make msk(4) detachable
- Simplify the combination use of pci_mapreg_type()/pci_mapreg_map()

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 13 19:28:18 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.61: +3 -7 lines
Diff to previous 1.61 (colored) to selected 1.33.2.2 (colored)

revert rev. 1.29 'Only tick mii if the phy had a status change', as neither
OpenBSD nor FreeBSD drivers have this conditional

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 12 21:36:34 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +3 -5 lines
Diff to previous 1.60 (colored) to selected 1.33.2.2 (colored)

move SK_HASH_BITS to if_skreg.h and reuse in if_msk.c (from OpenBSD)

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jun 12 20:27:54 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +26 -4 lines
Diff to previous 1.59 (colored) to selected 1.33.2.2 (colored)

match three more variants - DGE550T_B1, 8040T, 8042

sync more sk_type conditionals from OpenBSD

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jun 12 19:35:00 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.58: +26 -26 lines
Diff to previous 1.58 (colored) to selected 1.33.2.2 (colored)

fix whitespace

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jun 11 19:40:05 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) to selected 1.33.2.2 (colored)

Factual correction: actually old code also used number of octents, but set
sc_if->sk_tx_ramend to invalid value, and assumed 128k buffer when
SK_EPROM0 read returned zero

(no code change)

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 11 19:13:38 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.56: +17 -33 lines
Diff to previous 1.56 (colored) to selected 1.33.2.2 (colored)

adopt tx/rx buffer size computation from OpenBSD rev. 1.51 to fix
"random" msk failures

the crucial fix is that the start/end adresses are computed and
written to hw registers in number of octets (i.e. size /
sizeof(u_int64_t)), as that is actually what the hardware expects

fixes PR kern/36454 (which had fix which highlighted the trouble),
and seems likely to also fix kern/35711 and port-i386/42514

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jun 9 18:53:16 2018 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.55: +129 -14 lines
Diff to previous 1.55 (colored) to selected 1.33.2.2 (colored)

port basic match support for several more Yukon variants from OpenBSD, together
with some basic conditionals I've found in that driver; only compile-tested, so
very likely needs further work to actually work

adresses also PR kern/43507

Revision 1.54.8.1 / (download) - annotate - [select for diffs], Thu Mar 8 14:31:18 2018 UTC (6 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #616):
	sys/dev/pci/if_msk.c: revision 1.55
	sys/dev/pci/pcidevs: revision 1.1299
update entry for Marvel Yukon 8058, and fix URL for pci ids (Rocky Hotas)

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.42.2.2: +55 -27 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.33.2.2 (colored)

update from HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 20 12:01:43 2017 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.33.2.2 (colored)

update entry for Marvel Yukon 8058, and fix URL for pci ids (Rocky Hotas)

Revision 1.47.2.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:29 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47.2.4: +7 -10 lines
Diff to previous 1.47.2.4 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.51: +46 -25 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.54 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:05 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.53: +2 -6 lines
Diff to previous 1.53 (colored) to selected 1.33.2.2 (colored)

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

Revision 1.53 / (download) - annotate - [select for diffs], Thu Dec 8 01:12:01 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.52: +7 -6 lines
Diff to previous 1.52 (colored) to selected 1.33.2.2 (colored)

Apply deferred if_start framework

if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.

Revision 1.47.2.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:02 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47.2.3: +41 -17 lines
Diff to previous 1.47.2.3 (colored) to branchpoint 1.47 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Sun Nov 6 21:51:31 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.51: +41 -17 lines
Diff to previous 1.51 (colored) to selected 1.33.2.2 (colored)

msk_init is too heavyweight and loses link. Provide a specialized way to
enter and exit promiscuous mode so that we don't lose seconds of traffic
each time we run tcpdump.

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:04 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47.2.2: +8 -3 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:14 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.33.2.2 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jun 1 03:37:35 2016 UTC (7 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.49: +7 -2 lines
Diff to previous 1.49 (colored) to selected 1.33.2.2 (colored)

Commit patch from t-hash in PR kern/48309

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:10 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.47.2.1: +3 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:11 2016 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.33.2.2 (colored)

Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:09 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:25 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.33.2.2 (colored)

Convert sys/dev to use <sys/rndsource.h>.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 10 14:23:06 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored) to selected 1.33.2.2 (colored)

PR/49270: Hauke Fath: Samsung NC10 Marvell Yukon ethernet not supported

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:42 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.42.2.1: +3 -8 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.33.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.33.2.2 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:25 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.38.4.2: +20 -25 lines
Diff to previous 1.38.4.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.33.2.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:40 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.43: +4 -9 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:33 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.33.2.2 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 29 19:28:25 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.44: +4 -3 lines
Diff to previous 1.44 (colored) to selected 1.33.2.2 (colored)

make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:10 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.43: +2 -8 lines
Diff to previous 1.43 (colored) to selected 1.33.2.2 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:18 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.42: +18 -18 lines
Diff to previous 1.42 (colored) to selected 1.33.2.2 (colored)

resync from head

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 30 03:21:06 2013 UTC (11 years ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.42: +18 -18 lines
Diff to previous 1.42 (colored) to selected 1.33.2.2 (colored)

remove trailing whitespace

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:30 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.38.4.1: +10 -8 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Sun Aug 12 18:58:28 2012 UTC (11 years, 8 months ago) by martin
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by riastradh in ticket #480):
	sys/dev/pci/if_msk.c: revision 1.42
Fix null pointer dereference in msk_rxeof.
This triggers when processing an RX interrupt that was queued while
stopping the interface, which caused my machine to panic last night.
In this case, just drop the packet.
From OpenBSD's if_msk.c rev. 1.71.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Aug 4 03:46:30 2012 UTC (11 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.41: +5 -3 lines
Diff to previous 1.41 (colored) to selected 1.33.2.2 (colored)

Fix null pointer dereference in msk_rxeof.

This triggers when processing an RX interrupt that was queued while
stopping the interface, which caused my machine to panic last night.
In this case, just drop the packet.

From OpenBSD's if_msk.c rev. 1.71.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jul 22 14:33:02 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored) to selected 1.33.2.2 (colored)

Fix mii_statchg to take a 'struct ifnet *' instead of device_t.  This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:44 2012 UTC (11 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.33.2.2 (colored)

Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:47 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.38: +3 -12 lines
Diff to previous 1.38 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:40 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.38: +3 -12 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.33.2.2 (colored)

merge to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:05 2012 UTC (12 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6
Changes since 1.38: +3 -12 lines
Diff to previous 1.38 (colored) to selected 1.33.2.2 (colored)

Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:14 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.35: +7 -4 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:40 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.2.2: +1 -2 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

sync with head

Revision 1.38 / (download) - annotate - [select for diffs], Sun Apr 24 18:53:02 2011 UTC (12 years, 11 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.37: +3 -4 lines
Diff to previous 1.37 (colored) to selected 1.33.2.2 (colored)

use static inline for msk_rxvalid(), it is not referenced elsewhere

(avoids C99 vs GNU semantics for external inline functions)

Revision 1.33.2.2 / (download) - annotate - [selected], Thu Apr 21 01:41:51 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.2.1: +6 -2 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Sat Apr 16 14:03:28 2011 UTC (13 years ago) by jakllsch
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.33.2.2 (colored)

Make previous compile.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 16 13:47:20 2011 UTC (13 years ago) by jakllsch
Branch: MAIN
Changes since 1.35: +6 -2 lines
Diff to previous 1.35 (colored) to selected 1.33.2.2 (colored)

Ensure PCI_COMMAND_MASTER_ENABLE.

Revision 1.18.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:47 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.4.4: +5 -7 lines
Diff to previous 1.18.4.4 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:34 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +5 -7 lines
Diff to previous 1.33 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:36 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.32: +10 -12 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Apr 5 07:20:26 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.34: +4 -6 lines
Diff to previous 1.34 (colored) to selected 1.33.2.2 (colored)

Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 30 14:38:27 2010 UTC (14 years ago) by tnn
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.33.2.2 (colored)

yinterrupt -> interrupt

Revision 1.18.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:47 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.4.3: +55 -53 lines
Diff to previous 1.18.4.3 (colored) to branchpoint 1.18 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:00 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored) to selected 1.33.2.2 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:01 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.31: +4 -11 lines
Diff to previous 1.31 (colored) to selected 1.33.2.2 (colored)

Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:51 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored) to selected 1.33.2.2 (colored)

Expand PMF_FN_* macros.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 24 18:27:31 2009 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.29: +40 -37 lines
Diff to previous 1.29 (colored) to selected 1.33.2.2 (colored)

- split the sk_dev
- don't program the interrupt mitigation to 0, only to set it to 1000 later.
- don't be verbose when setting the interrupt mitigation during reset, it
  messes up the attach line and does not convey useful information.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 14 00:52:04 2009 UTC (14 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.28: +10 -4 lines
Diff to previous 1.28 (colored) to selected 1.33.2.2 (colored)

Only tick mii if the phy had a status change.

Revision 1.21.6.1.4.1 / (download) - annotate - [select for diffs], Mon Nov 9 10:11:47 2009 UTC (14 years, 5 months ago) by cliff
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15
Changes since 1.21.6.1: +10 -4 lines
Diff to previous 1.21.6.1 (colored) next main 1.22 (colored) to selected 1.33.2.2 (colored)

- in msk_tick, only call mii_tick() if status has changed

Revision 1.18.4.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:51 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.4.2: +5 -5 lines
Diff to previous 1.18.4.2 (colored) to branchpoint 1.18 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 5 14:09:55 2009 UTC (14 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) to selected 1.33.2.2 (colored)

Invert logic around nested pmf(9) registrations for readability.

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:35 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.4.1: +22 -24 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:26 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.22: +27 -29 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.27 / (download) - annotate - [select for diffs], Tue May 12 08:23:00 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (colored) to selected 1.33.2.2 (colored)

use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 6 10:34:32 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.25: +16 -18 lines
Diff to previous 1.25 (colored) to selected 1.33.2.2 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.25 / (download) - annotate - [select for diffs], Wed May 6 09:25:15 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored) to selected 1.33.2.2 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:57 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18: +90 -43 lines
Diff to previous 1.18 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.21.4.1: +7 -7 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:19 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored) to selected 1.33.2.2 (colored)

bzero -> memset

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:30 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.33.2.2 (colored)

bcmp -> memcmp

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.21: +26 -2 lines
Diff to previous 1.21 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.16.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:00 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.6.3: +24 -0 lines
Diff to previous 1.16.6.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:35 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.21: +26 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.33.2.2 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Thu Nov 20 03:12:08 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.21: +26 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by chris in ticket #84):
	sys/dev/pci/if_skreg.h: revision 1.13
	sys/dev/pci/if_msk.c: revision 1.22
Fix Yukon EC Ultra cold power up issue.
For the EC Ultra it is necessary to update some extra registers during
reset.  Without doing so causes the system to hang at boot.  The only
workaround I found was to PXE boot before booting into NetBSD.
This change is based on the code from FreeBSD's if_msk.c.  Specifically the
msk_phy_power function.
Also add an splnet/splx across mii_tick.  This matches most other network
drivers.
Change posted for review on 3rd Oct 2008 to tech-net.  No feedback
received.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 18 09:30:43 2008 UTC (15 years, 5 months ago) by chris
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.21: +26 -2 lines
Diff to previous 1.21 (colored) to selected 1.33.2.2 (colored)

Fix Yukon EC Ultra cold power up issue.

For the EC Ultra it is necessary to update some extra registers during
reset.  Without doing so causes the system to hang at boot.  The only
workaround I found was to PXE boot before booting into NetBSD.

This change is based on the code from FreeBSD's if_msk.c.  Specifically the
msk_phy_power function.

Also add an splnet/splx across mii_tick.  This matches most other network
drivers.

Change posted for review on 3rd Oct 2008 to tech-net.  No feedback
received.

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:09 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.6.2: +11 -5 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:22 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.20: +13 -7 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:11 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.18: +61 -38 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.33.2.2 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 20 16:45:13 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.20: +13 -7 lines
Diff to previous 1.20 (colored) to selected 1.33.2.2 (colored)

Apply a similar patch as what was just applied to sk(4):

> Use a mutex instead of splvm() to protect the list of jubo-ready mbufs, as
> done with nfe(4) a while ago.
>
> Issue reported by Gary Duzan, who kindly fixed the patch I had sent him.

Lars Nordlund noted that such a change made things a lot better with his
msk(4).

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:14 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.18: +50 -33 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:39 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.6.1: +68 -55 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 28 16:20:17 2008 UTC (15 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.19: +37 -8 lines
Diff to previous 1.19 (colored) to selected 1.33.2.2 (colored)

Add PMF hooks. Fixes PR 38675.

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 27 20:14:28 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.18: +15 -27 lines
Diff to previous 1.18 (colored) to selected 1.33.2.2 (colored)

For all controllers but type SK_YUKON_FE, set the jumbo frames
capability, ETHERCAP_JUMBO_MTU.  Rely on ether_ioctl() to enforce
the MTU range implied by the ethernet capabilities.  Should fix
kern/38748.

While I'm here, use some standard ethernet constants instead of
msk-specific constants.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:37 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.17: +22 -26 lines
Diff to previous 1.17 (colored) to selected 1.33.2.2 (colored)

use aprint_*_dev and device_xname

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:50 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.16: +45 -26 lines
Diff to previous 1.16 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 28 08:46:01 2008 UTC (16 years ago) by kiyohara
Branch: MAIN
Changes since 1.16: +45 -26 lines
Diff to previous 1.16 (colored) to selected 1.33.2.2 (colored)

The status buffer must synchronize.  If your CPU is cache writeback,
synchronous processing is necessary.  However, the size of a status
buffer will overwrite the memory while synchronously processing it
because it is very small.  We clear the flag SK_Y2_STOPC_OWN at more
late.

Revision 1.10.6.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:47 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.10.6.3: +11 -43 lines
Diff to previous 1.10.6.3 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.33.2.2 (colored)

sync with HEAD

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.2: +11 -43 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.3.6.8 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:38 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.7: +4 -3 lines
Diff to previous 1.3.6.7 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 7 01:21:56 2008 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored) to selected 1.33.2.2 (colored)

Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.

Revision 1.3.6.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:57 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.6: +9 -41 lines
Diff to previous 1.3.6.6 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.13.6.2 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:37 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.13.6.1: +7 -40 lines
Diff to previous 1.13.6.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 19 22:10:18 2008 UTC (16 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.14: +9 -42 lines
Diff to previous 1.14 (colored) to selected 1.33.2.2 (colored)

Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.

Revision 1.10.6.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:48 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.10.6.2: +3 -2 lines
Diff to previous 1.10.6.2 (colored) to branchpoint 1.10 (colored) to selected 1.33.2.2 (colored)

sync with HEAD

Revision 1.3.8.2 / (download) - annotate - [select for diffs], Sun Jan 6 05:01:06 2008 UTC (16 years, 3 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.3.8.1: +2 -1 lines
Diff to previous 1.3.8.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.33.2.2 (colored)

Catch up to netbsd-4.0 release.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:17 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.1: +2 -1 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:53 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:49 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:09 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 11 11:25:51 2007 UTC (16 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) to selected 1.33.2.2 (colored)

use __KERNEL_RCSID()

Revision 1.10.4.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:55:30 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.10.4.2: +2 -2 lines
Diff to previous 1.10.4.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:10 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.10.10.3 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:34 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10.10.2: +1 -1 lines
Diff to previous 1.10.10.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.3.6.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:21 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.5: +3 -3 lines
Diff to previous 1.3.6.5 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Thu Nov 15 10:28:24 2007 UTC (16 years, 5 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.3.4.3: +1 -1 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.33.2.2 (colored)

Backout accidental commit to the release branch.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Nov 15 04:33:50 2007 UTC (16 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, bouyer-xeni386
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.33.2.2 (colored)

It's 88C055, not 88CO55.

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Thu Nov 15 04:19:29 2007 UTC (16 years, 5 months ago) by manu
Branch: netbsd-4
Changes since 1.3.4.2: +2 -2 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

It's not 88CO55, it's 88C055

Revision 1.10.10.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:18 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10.10.1: +1 -1 lines
Diff to previous 1.10.10.1 (colored) to branchpoint 1.10 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:40 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.10.4.1: +2 -2 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:54 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.10.6.1: +2 -2 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) to selected 1.33.2.2 (colored)

sync with -HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:18 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.33.2.2 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:02 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.33.2.2 (colored)

sync with HEAD

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Sun Nov 4 01:11:48 2007 UTC (16 years, 5 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.3.4.1: +1 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by manu in ticket #954):
	sys/dev/pci/pcidevs_data.h: patch
	sys/dev/pci/pcidevs.h: patch
	sys/dev/pci/if_msk.c: revision 1.11
	sys/dev/pci/pcidevs: revision 1.907

Add support for Marvell 88CO55. Newer iMacs come with that chip.

Revision 1.3.6.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:32:56 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.4: +2 -1 lines
Diff to previous 1.3.6.4 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:14 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.10.10.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:02 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 22 14:59:39 2007 UTC (16 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.33.2.2 (colored)

Add support for Marvell 88CO55. Newer iMacs come with that chip.

Revision 1.3.6.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:59 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.3: +18 -15 lines
Diff to previous 1.3.6.3 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:31 2007 UTC (16 years, 7 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.3: +299 -187 lines
Diff to previous 1.3 (colored) to selected 1.33.2.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sat Sep 1 12:56:45 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.8.2.2: +2 -2 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.33.2.2 (colored)

Update for pool_cache API changes.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Sun Aug 26 12:01:20 2007 UTC (16 years, 7 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1
Changes since 1.3: +299 -187 lines
Diff to previous 1.3 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by riz in ticket #816):
	sys/dev/pci/if_skreg.h: revision 1.10
	sys/dev/pci/if_skreg.h: revision 1.11
	sys/dev/pci/pcidevs: revision 1.866
	sys/dev/pci/if_skreg.h: revision 1.9
	sys/dev/pci/if_sk.c: revision 1.36
	sys/dev/pci/if_msk.c: revision 1.4
	sys/dev/pci/if_msk.c: revision 1.5
	sys/dev/pci/if_msk.c: revision 1.6
	sys/dev/pci/if_msk.c: revision 1.7
	sys/dev/pci/if_mskvar.h: revision 1.2
	sys/dev/pci/if_mskvar.h: revision 1.3
Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"
Original commit message:
 > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 > continuing when busy flag set.

add some msk devices

sync with OpenBSD-current (many bugfixes, add some devices)
if_msk.c: rev. 1.42
if_mskvar.h rev. 1.3
if_skreg.h rev. 1.41

sync with if_skreg.h rev. 1.41
need more work?

apply some patches from FreeBSD
 o fix device timeout
 o add some workaround
 o TX underrun bug (grr...)
 o and some bugs

fix bit definitions for the RX FIFO Flush mode

Apply OpenBSD's rev. 1.14 via patch:
 > remove another Yukon Lite workaround.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Aug 20 18:37:13 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.8.2.1: +3 -1 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:32 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.10.12.2 / (download) - annotate - [select for diffs], Thu Jul 19 22:04:23 2007 UTC (16 years, 9 months ago) by dsl
Branch: matt-mips64
Changes since 1.10.12.1: +2407 -0 lines
Diff to previous 1.10.12.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.33.2.2 (colored)

include sys/cdefs.h

Revision 1.10.12.1, Thu Jul 19 22:04:22 2007 UTC (16 years, 9 months ago) by dsl
Branch: matt-mips64
Changes since 1.10: +0 -2407 lines
FILE REMOVED

file if_msk.c was added on branch matt-mips64 on 2007-07-19 22:04:23 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 19 22:04:22 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored) to selected 1.33.2.2 (colored)

include sys/cdefs.h

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:38 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:54 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.33.2.2 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:09 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.33.2.2 (colored)

Adapt to callout API change.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:55:19 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.7: +15 -14 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:21 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.7: +15 -14 lines
Diff to previous 1.7 (colored) to selected 1.33.2.2 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.3.6.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:27 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.2: +299 -187 lines
Diff to previous 1.3.6.2 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:22 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.3.2.3: +298 -186 lines
Diff to previous 1.3.2.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 31 09:57:45 2007 UTC (17 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.6: +3 -7 lines
Diff to previous 1.6 (colored) to selected 1.33.2.2 (colored)

Apply OpenBSD's rev. 1.14 via patch:
 > remove another Yukon Lite workaround.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 30 11:58:10 2007 UTC (17 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.5: +136 -53 lines
Diff to previous 1.5 (colored) to selected 1.33.2.2 (colored)

apply some patches from FreeBSD

 o fix device timeout
 o add some workaround
 o TX underrun bug (grr...)
 o and some bugs

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 30 11:34:38 2007 UTC (17 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.4: +171 -138 lines
Diff to previous 1.4 (colored) to selected 1.33.2.2 (colored)

sync with OpenBSD-current (many bugfixes, add some devices)

if_msk.c: rev. 1.42
if_mskvar.h rev. 1.3
if_skreg.h rev. 1.41

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:41 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.3.2.2: +2 -2 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 5 09:23:41 2007 UTC (17 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.33.2.2 (colored)

Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"

Original commit message:
 > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 > continuing when busy flag set.

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:45 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.6.1: +2292 -0 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:44 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1.6.1: +8 -8 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:30 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.3.2.1: +2292 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) to selected 1.33.2.2 (colored)

Sync with head.

Revision 1.3.6.1, Thu Nov 16 01:33:09 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +0 -2292 lines
FILE REMOVED

file if_msk.c was added on branch yamt-lazymbuf on 2006-12-30 20:48:45 +0000

Revision 1.3.2.1, Thu Nov 16 01:33:09 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.3: +0 -2292 lines
FILE REMOVED

file if_msk.c was added on branch newlock2 on 2006-11-18 21:34:30 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: yamt-lazymbuf, wrstuden-fixsa, newlock2, netbsd-4
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored) to selected 1.33.2.2 (colored)

__unused removal on arguments; approved by core.

Revision 1.1.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:17 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1: +10 -8 lines
Diff to previous 1.1 (colored) to selected 1.33.2.2 (colored)

sync with head

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:30 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.1: +10 -8 lines
Diff to previous 1.1 (colored) to selected 1.33.2.2 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Fri Sep 15 11:55:40 2006 UTC (17 years, 7 months ago) by tron
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored) to selected 1.33.2.2 (colored)

Pull up following revision(s) (requested by riz in ticket #153):
	sys/dev/pci/if_skreg.h: revision 1.8
	sys/dev/pci/if_msk.c: revision 1.1
	sys/dev/pci/files.pci: revision 1.268
	sys/dev/pci/if_mskvar.h: revision 1.1
Add msk(4), a driver for Marvell Yukon 2 gigabit ethernet chips,
from Mark Kettenis of OpenBSD.  There are still some outstanding
issues with this driver, namely:
 - Checksum offload is unsupported
 - There is a significant amount of code duplication from sk(4)
 - There remain some 'magic numbers'
 - Performance is not heavily tested, and likely to be lower than
   the chip is capable of in some cases.  Syncing some of the
   aforementioned 'magic numbers' with the Marvell FreeBSD driver
   should help here.
Tested on a motherboard with Marvell 88E8053 ethernet, under NetBSD/i386
and NetBSD/amd64.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:33 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.1: +2290 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.33.2.2 (colored)

sync with head.

Revision 1.1.2.1, Sat Sep 9 16:17:50 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1: +0 -2290 lines
FILE REMOVED

file if_msk.c was added on branch yamt-pdpolicy on 2006-09-14 12:31:33 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 9 16:17:50 2006 UTC (17 years, 7 months ago) by riz
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl, yamt-pdpolicy
Diff to selected 1.33.2.2 (colored)

Add msk(4), a driver for Marvell Yukon 2 gigabit ethernet chips,
from Mark Kettenis of OpenBSD.  There are still some outstanding
issues with this driver, namely:

 - Checksum offload is unsupported
 - There is a significant amount of code duplication from sk(4)
 - There remain some 'magic numbers'
 - Performance is not heavily tested, and likely to be lower than
   the chip is capable of in some cases.  Syncing some of the
   aforementioned 'magic numbers' with the Marvell FreeBSD driver
   should help here.

Tested on a motherboard with Marvell 88E8053 ethernet, under NetBSD/i386
and NetBSD/amd64.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>