Skip to content

Commit

Permalink
Merge pull request #20 from dominicx/9.008.00-1
Browse files Browse the repository at this point in the history
Update version to 9.008.00-1
  • Loading branch information
awesometic authored Mar 20, 2022
2 parents 2ba825a + 8e94a4a commit cbe5aba
Show file tree
Hide file tree
Showing 22 changed files with 392 additions and 153 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sudo dpkg -i realtek-r8125-dkms*.deb
> If multiple files selected by the wild card, you should type the specific version of the file.
>
> ```bash
> sudo dpkg -i realtek-r8125-dkms_9.007.01-2_amd64.deb
> sudo dpkg -i realtek-r8125-dkms_9.008.00-1_amd64.deb
> ```
If dependency error occurs, try to fix that with `apt` command.
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
realtek-r8125-dkms (9.008.00-1) stable; urgency=medium

* Update Realtek r8125 driver to 9.008.00

-- Deokgyu Yang <[email protected]> Fri, 18 Mar 2022 13:03:33 +0100

realtek-r8125-dkms (9.007.01-2) stable; urgency=medium

* dkms.conf: Pass KVER value to make clean target
Expand Down
2 changes: 1 addition & 1 deletion debian/prerm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

NAME=realtek-r8125
VERSION=9.007.01
VERSION=9.008.00

set -e

Expand Down
2 changes: 1 addition & 1 deletion dkms-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

DRV_DIR="$(pwd)"
DRV_NAME=r8125
DRV_VERSION=9.007.01
DRV_VERSION=9.008.00

cp -r ${DRV_DIR} /usr/src/${DRV_NAME}-${DRV_VERSION}

Expand Down
2 changes: 1 addition & 1 deletion dkms-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

DRV_DIR="$(pwd)"
DRV_NAME=r8125
DRV_VERSION=9.007.01
DRV_VERSION=9.008.00

dkms remove ${DRV_NAME}/${DRV_VERSION} --all
rm -rf /usr/src/${DRV_NAME}-${DRV_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="realtek-r8125"
PACKAGE_VERSION="9.007.01"
PACKAGE_VERSION="9.008.00"
PROCS_NUM=`nproc`
[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16
MAKE="'make' -j$PROCS_NUM KVER=${kernelver} BSRC=/lib/modules/${kernelver} modules"
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile_linux24x
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
42 changes: 28 additions & 14 deletions src/r8125.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down Expand Up @@ -363,12 +363,12 @@ do { \
#define RSS_SUFFIX ""
#endif

#define RTL8125_VERSION "9.007.01" NAPI_SUFFIX DASH_SUFFIX REALWOW_SUFFIX PTP_SUFFIX RSS_SUFFIX
#define RTL8125_VERSION "9.008.00" NAPI_SUFFIX DASH_SUFFIX REALWOW_SUFFIX PTP_SUFFIX RSS_SUFFIX
#define MODULENAME "r8125"
#define PFX MODULENAME ": "

#define GPL_CLAIM "\
r8125 Copyright (C) 2021 Realtek NIC software team <[email protected]> \n \
r8125 Copyright (C) 2022 Realtek NIC software team <[email protected]> \n \
This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>. \n \
This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>. \n"

Expand Down Expand Up @@ -413,7 +413,7 @@ This is free software, and you are welcome to redistribute it under certain cond
#endif

#define Reserved2_data 7
#define RX_DMA_BURST 7 /* Maximum PCI burst, '6' is 1024 */
#define RX_DMA_BURST 7 /* Maximum PCI burst, '7' is unlimited */
#define TX_DMA_BURST_unlimited 7
#define TX_DMA_BURST_1024 6
#define TX_DMA_BURST_512 5
Expand Down Expand Up @@ -456,12 +456,17 @@ This is free software, and you are welcome to redistribute it under certain cond
#define RTL8125_LINK_TIMEOUT (1 * HZ)
#define RTL8125_ESD_TIMEOUT (2 * HZ)

#define NUM_TX_DESC 1024 /* Number of Tx descriptor registers */
#define NUM_RX_DESC 1024 /* Number of Rx descriptor registers */
#define MAX_NUM_TX_DESC 1024 /* Maximum number of Tx descriptor registers */
#define MAX_NUM_RX_DESC 1024 /* Maximum number of Rx descriptor registers */

#define MIN_NUM_TX_DESC 256 /* Minimum number of Tx descriptor registers */
#define MIN_NUM_RX_DESC 256 /* Minimum number of Rx descriptor registers */

#define NUM_TX_DESC MAX_NUM_TX_DESC /* Number of Tx descriptor registers */
#define NUM_RX_DESC MAX_NUM_RX_DESC /* Number of Rx descriptor registers */

#define RX_BUF_SIZE 0x05F3 /* 0x05F3 = 1522bye + 1 */
#define R8125_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
#define R8125_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))

#define R8125_MAX_TX_QUEUES (2)
#define R8125_MAX_RX_QUEUES (4)
#define R8125_MAX_QUEUES R8125_MAX_RX_QUEUES
Expand Down Expand Up @@ -545,6 +550,9 @@ This is free software, and you are welcome to redistribute it under certain cond
#define RTK_LPA_ADVERTISE_5000FULL 0x40
#define RTK_LPA_ADVERTISE_10000FULL 0x800

#define RTK_EEE_ADVERTISE_2500FULL 0x01
#define RTK_LPA_EEE_ADVERTISE_2500FULL 0x01

/* Tx NO CLOSE */
#define MAX_TX_NO_CLOSE_DESC_PTR_V2 0x10000
#define TX_NO_CLOSE_SW_PTR_MASK_V2 0x1FFFF
Expand Down Expand Up @@ -1745,9 +1753,10 @@ struct rtl8125_tx_ring {
u32 index;
u32 cur_tx; /* Index into the Tx descriptor buffer of next Rx pkt. */
u32 dirty_tx;
u32 num_tx_desc; /* Number of Tx descriptor registers */
struct TxDesc *TxDescArray; /* 256-aligned Tx descriptor ring */
dma_addr_t TxPhyAddr;
struct ring_info tx_skb[NUM_TX_DESC]; /* Tx data buffers */
struct ring_info tx_skb[MAX_NUM_TX_DESC]; /* Tx data buffers */

u32 NextHwDesCloPtr;
u32 BeginHwDesCloPtr;
Expand All @@ -1763,10 +1772,11 @@ struct rtl8125_rx_ring {
u32 index;
u32 cur_rx; /* Index into the Rx descriptor buffer of next Rx pkt. */
u32 dirty_rx;
u32 num_rx_desc; /* Number of Rx descriptor registers */
struct RxDesc *RxDescArray; /* 256-aligned Rx descriptor ring */
u64 RxDescPhyAddr[NUM_RX_DESC]; /* Rx desc physical address*/
u64 RxDescPhyAddr[MAX_NUM_RX_DESC]; /* Rx desc physical address*/
dma_addr_t RxPhyAddr;
struct sk_buff *Rx_skbuff[NUM_RX_DESC]; /* Rx data buffers */
struct sk_buff *Rx_skbuff[MAX_NUM_RX_DESC]; /* Rx data buffers */

u16 rdsar_reg; /* Receive Descriptor Start Address */
};
Expand Down Expand Up @@ -2031,8 +2041,8 @@ struct rtl8125_private {
//struct RxDesc *RxDescArray; /* 256-aligned Rx descriptor ring */
//dma_addr_t TxPhyAddr;
//dma_addr_t RxPhyAddr;
//struct sk_buff *Rx_skbuff[NUM_RX_DESC]; /* Rx data buffers */
//struct ring_info tx_skb[NUM_TX_DESC]; /* Tx data buffers */
//struct sk_buff *Rx_skbuff[MAX_NUM_RX_DESC]; /* Rx data buffers */
//struct ring_info tx_skb[MAX_NUM_TX_DESC]; /* Tx data buffers */
unsigned rx_buf_sz;
u16 HwSuppNumTxQueues;
u16 HwSuppNumRxQueues;
Expand Down Expand Up @@ -2118,12 +2128,17 @@ struct rtl8125_private {
u16 sw_ram_code_ver;
u16 hw_ram_code_ver;

u8 RequireRduNonStopPatch;

u8 rtk_enable_diag;

u8 ShortPacketSwChecksum;

u8 UseSwPaddingShortPkt;

void *ShortPacketEmptyBuffer;
dma_addr_t ShortPacketEmptyBufferPhy;

u8 RequireAdcBiasPatch;
u16 AdcBiasPatchIoffset;

Expand Down Expand Up @@ -2278,7 +2293,6 @@ struct rtl8125_private {
#endif
u8 InitRxDescType;
u16 RxDescLength; //V1 16 Byte V2 32 Bytes
u32 RxDescRingLength;

u8 HwSuppPtpVer;
u8 EnablePtp;
Expand Down
2 changes: 1 addition & 1 deletion src/r8125_dash.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
2 changes: 1 addition & 1 deletion src/r8125_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# r8168 is the Linux device driver released for Realtek Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
2 changes: 1 addition & 1 deletion src/r8125_firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
# Copyright(c) 2022 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
Loading

0 comments on commit cbe5aba

Please sign in to comment.