| History log of /src/sys/dev/mii/ipgphy.c |
| Revision | | Date | Author | Comments |
| 1.11 |
| 22-Feb-2023 |
msaitoh | Retry autonegotiation every mii_anegticks seconds instead of mii_anegticks+1.
|
| 1.10 |
| 15-Mar-2020 |
thorpej | branches: 1.10.4; 1.10.24; 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.
|
| 1.9 |
| 14-Jan-2020 |
msaitoh | 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.
|
| 1.8 |
| 27-Nov-2019 |
msaitoh | branches: 1.8.2; - 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().
|
| 1.7 |
| 27-Nov-2019 |
msaitoh | Print dmesg correctly.
|
| 1.6 |
| 21-Nov-2019 |
msaitoh | branches: 1.6.2; Whitespace.
|
| 1.5 |
| 21-Nov-2019 |
msaitoh | Add missing NetBSD RCS Id. Reported by Andrius V.
|
| 1.4 |
| 14-Nov-2019 |
msaitoh | - 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.
|
| 1.3 |
| 14-Nov-2019 |
msaitoh | STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status() for IP1000A device.
|
| 1.2 |
| 14-Nov-2019 |
msaitoh | KNF. No functional change.
|
| 1.1 |
| 07-Oct-2019 |
msaitoh | Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by Tomokazu HARADA and patch provided by Andrius V.
|
| 1.6.2.3 |
| 27-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #490):
sys/dev/mii/ipgphy.c: revision 1.7
Print dmesg correctly.
|
| 1.6.2.2 |
| 25-Nov-2019 |
martin | 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.
|
| 1.6.2.1 |
| 21-Nov-2019 |
martin | file ipgphy.c was added on branch netbsd-9 on 2019-11-25 16:44:31 +0000
|
| 1.8.2.1 |
| 17-Jan-2020 |
ad | Sync with head.
|
| 1.10.24.1 |
| 21-Jun-2023 |
martin | 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.
|
| 1.10.4.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.10.4.1 |
| 15-Mar-2020 |
martin | file ipgphy.c was added on branch phil-wifi on 2020-04-13 08:04:24 +0000
|