• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

RTL8125, Is there a way to enable this option?

General pfSense Questions
3
8
2.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    rtlques
    last edited by Sep 10, 2022, 6:40 AM

    gigabit lite option is also disabled by default in Windows.
    Is there any way to enable this option in pfsense?
    alt text

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Sep 10, 2022, 3:07 PM

      Not that I've ever seen. Also I have no idea why you would ever want to. It seems to be some 500Mb mode. I would assume both ends have to support it. Seems like something non-standard.

      What are you trying to use it for?

      Steve

      J 1 Reply Last reply Sep 10, 2022, 5:47 PM Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Sep 10, 2022, 3:28 PM

        Mmm, interesting:

        Giga Lite (500M) mode allows two link partners that both support 1000Base-T and Giga Lite mode to transmit at 500Mbps data rate if only two pairs (AB pairs) can be detected in the CAT.5 UTP cable. This feature is a Realtek proprietary feature and it conforms to the 802.3az-2010(EEE) specification.
        

        But, no I've never seen anything use it or any mention of it in a driver.

        Steve

        1 Reply Last reply Reply Quote 1
        • J
          JKnott @stephenw10
          last edited by Sep 10, 2022, 5:47 PM

          @stephenw10 said in RTL8125, Is there a way to enable this option?:

          Also I have no idea why you would ever want to.

          Fewer calories? 😉

          Actually, I really don't see the need for this either? If only 2 pairs are usable, then you have a defective cable, which should be replaced. I suppose it's someone's solution for a problem that doesn't exist.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Sep 10, 2022, 5:52 PM

            Mmm, now I see what it does I guess I can see how it would be useful if you do have only 2 pairs for whatever reason. 5x better than 100M 😉
            But it should only ever be a fallback option and both ends need to support it. I wouldn't expect it to make any difference except in that very specific circumstance.

            Steve

            R 1 Reply Last reply Sep 10, 2022, 6:49 PM Reply Quote 0
            • R
              rtlques @stephenw10
              last edited by Sep 10, 2022, 6:49 PM

              @stephenw10
              One direction of upper line is already set, just need to set up pfsense
              (installed latest version 1.9.7 RTL driver with pfsense ce 2.6)
              "if_re.c" file contains keywords for "giga lite" in RTL official freebsd driver "rtl_bsd_drv_v197.00.tgz"
              i don't know how to do it, but hope there is a way to enable

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Sep 10, 2022, 8:07 PM

                So you are trying to use a 4 wire link? And currently only seeing 100M?

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Sep 10, 2022, 8:35 PM

                  It looks like it's mentioned in two places. One where it's disabled for a list of MAC types:

                          if (sc->re_type == MACFG_68 || sc->re_type == MACFG_69 ||
                              sc->re_type == MACFG_70 || sc->re_type == MACFG_71 ||
                              sc->re_type == MACFG_72 || sc->re_type == MACFG_73 ||
                              sc->re_type == MACFG_74) {
                                  //Disable Giga Lite
                                  MP_WritePhyUshort(sc, 0x1F, 0x0A42);
                                  ClearEthPhyBit(sc, 0x14, BIT_9);
                  

                  And the other where it's disabled unconditionally in the setup function for the 8125:

                  static int re_ifmedia_upd_8125(struct ifnet *ifp)
                  {
                          struct re_softc	*sc = ifp->if_softc;
                          struct ifmedia	*ifm = &sc->media;
                          int anar;
                          int gbcr;
                          int cr2500 = 0;
                  
                          if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER)
                                  return(EINVAL);
                  
                          //Disable Giga Lite
                          ClearEthPhyOcpBit(sc, 0xA428, BIT_9);
                          ClearEthPhyOcpBit(sc, 0xA5EA, BIT_0);
                  
                          cr2500 = MP_RealReadPhyOcpRegWord(sc, 0xA5D4);
                          cr2500 &= ~RTK_ADVERTISE_2500FULL;
                  

                  Neither has any sort of external config dependency so it doesn't look like you can choose.
                  And it looks like it's always disabled in the 8125.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.