The NetBSD Project

CVS log for src/sys/dev/mii/ipgphy.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:22:01 2026 UTC (11 days, 9 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -3 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jul 4 17:39:42 2026 UTC (4 months, 1 week ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
fix few typos in comments and error message.

Revision 1.10.24.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 22:11:29 2023 UTC (3 years, 4 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, 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
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #208):

	sys/dev/mii/ciphy.c: revision 1.42
	sys/dev/mii/brgphy.c: revision 1.91
	sys/dev/mii/mii_physubr.c: revision 1.102
	sys/dev/mii/ipgphy.c: revision 1.11
	sys/dev/mii/tlphy.c: revision 1.72
	sys/dev/mii/jmphy.c: revision 1.5
	sys/dev/mii/urlphy.c: revision 1.40
	sys/dev/mii/atphy.c: revision 1.31

Retry autonegotiation every mii_anegticks seconds instead of mii_anegticks+1.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Feb 22 08:09:09 2023 UTC (3 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11
Branch point for: perseant-exfatfs
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Retry autonegotiation every mii_anegticks seconds instead of mii_anegticks+1.

Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:24 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.1: +395 -0 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.10.4.1
Sun Mar 15 23:04:50 2020 UTC (6 years, 8 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.10: +0 -395 lines
file ipgphy.c was added on branch phil-wifi on 2020-04-13 08:04:24 +0000

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Mar 15 23:04:50 2020 UTC (6 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: phil-wifi, netbsd-10
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +14 -2 lines
Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
  access to media-related structures / hardware regsiters.  Converted
  drivers use the new ifmedia_init_with_lock() function for this.  The
  new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
  a compatibility lock to be used instead.  Several media-related entry
  points must be aware of this compatibility lock, and are able to acquire
  it recursively a limited number of times, if needed.  This is a SPIN
  mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
  MII-related data structures.

The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.

The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.

USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.

Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.

mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex.  The mcx driver still needs to be fully converted to
NET_MPSAFE.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:31 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +22 -14 lines
Sync with head.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 14 09:49:26 2020 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +22 -14 lines
No functional change:

- Move some definitions from if_stgereg.h to if_stge.c again because those are
  not chip (registers or descriptors) definitions.
- Use proplib to pass information that loading DSP code is required when
  PHY reset.

Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 27 11:19:46 2019 UTC (6 years, 11 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.6.2.2: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.2: +4 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #490):

	sys/dev/mii/ipgphy.c: revision 1.7

Print dmesg correctly.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Nov 27 10:19:20 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -5 lines
- Simplify sc->mii_anegticks setting. Same as FreeBSD.

   Don't set the default value not in the attach function. Instead, set the
  default value (MII_ANEGTICKS) first in the beginning of the
  mii_phy_add_media(). The function already has the code to change the value to
  MII_ANEGTICKS_GIGE if it's gigabit capable.

- Remove extra pmf_device_register() call. It's done in mii_phy_add_media().

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Nov 27 08:53:32 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -2 lines
 Print dmesg correctly.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 25 16:44:31 2019 UTC (6 years, 11 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.6.2.1: preferred, colored
Changes since revision 1.6.2.1: +377 -0 lines
Pull up following revision(s) (requested by msaitoh in ticket #476):

	sys/dev/pci/if_stgereg.h: revision 1.6
	sys/arch/amd64/conf/ALL: revision 1.124
	sys/dev/mii/files.mii: revision 1.51
	share/man/man4/vge.4: revision 1.8
	share/man/man4/vge.4: revision 1.9
	distrib/sets/lists/man/mi: revision 1.1656
	sys/arch/i386/conf/ALL: revision 1.471
	share/man/man4/mii.4: revision 1.28
	sys/dev/pci/if_stge.c: revision 1.71
	sys/dev/mii/ipgphy.c: revision 1.1
	sys/dev/mii/ipgphy.c: revision 1.2
	share/man/man4/Makefile: revision 1.684
	sys/dev/mii/ipgphy.c: revision 1.3
	sys/dev/mii/ipgphyreg.h: revision 1.1
	sys/dev/mii/ipgphy.c: revision 1.4
	sys/dev/mii/ipgphyreg.h: revision 1.2
	sys/dev/mii/ipgphy.c: revision 1.5
	sys/dev/mii/ipgphyreg.h: revision 1.3
	sys/dev/DEVNAMES: revision 1.322
	sys/arch/i386/conf/GENERIC: revision 1.1211
	sys/arch/amd64/conf/GENERIC: revision 1.537
	share/man/man4/ipgphy.4: revision 1.1
	share/man/man4/ipgphy.4: revision 1.2

 Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by

Tomokazu HARADA and patch provided by Andrius V.

New sentence, new line.
Fix date. Add RCS Id.

 KNF. No functional change.

 STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status()
for IP1000A device.

- Use auto-negotiation when forcing 1000BASE-T.
- Add XXX comment for strange pause setting code. I suspect this is wrong.
- On my environments, 1000BASE-T half duplex doesn't work, so we might remove
  IFM_1000T_HDX from this device in future.
- Define IPGPHY_SCR's address.
- Whitespace fix.

 Add missing NetBSD RCS Id. Reported by Andrius V.

Revision 1.6.2.1
Thu Nov 21 09:48:57 2019 UTC (6 years, 11 months ago) by martin
Branches: netbsd-9
FILE REMOVED
Changes since revision 1.6: +0 -377 lines
file ipgphy.c was added on branch netbsd-9 on 2019-11-25 16:44:31 +0000

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 21 09:48:57 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Branch point for: netbsd-9
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
 Whitespace.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Nov 21 03:04:21 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
 Add missing NetBSD RCS Id. Reported by Andrius V.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Nov 14 09:06:21 2019 UTC (7 years ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +26 -33 lines
- Use auto-negotiation when forcing 1000BASE-T.
- Add XXX comment for strange pause setting code. I suspect this is wrong.
- On my environments, 1000BASE-T half duplex doesn't work, so we might remove
  IFM_1000T_HDX from this device in future.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Nov 14 09:00:23 2019 UTC (7 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +26 -46 lines
 STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status()
for IP1000A device.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Nov 14 08:52:34 2019 UTC (7 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -22 lines
 KNF. No functional change.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Oct 7 11:53:40 2019 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
 Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by
Tomokazu HARADA and patch provided by Andrius V.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>