Revanth Kumar Uppala
de95a4c5bb
r8126: Fix PCIe completion timeouts
...
During PTP operation, abnormal interrupt handling could stall internal
transactions, leading to delayed BAR register reads and PCIe completion
timeout errors.
This patch adjusts the PTP interrupt mechanism to
eliminate the stall and reduce latency.
Bug 4755448
Change-Id: Id7fa3fbcac33ba89b3635d86a15932ac95f7e4bd
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3446115
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-09-05 08:26:18 -07:00
Shobek Attupurath
5447cfe01c
rtl8852ce: Add Nvidia changes to driver v261-10
...
- Reduce log level
- Remove unwanted prints
- Add Nvidia sourcetree path
Bug 5440351
Bug 5442104
Change-Id: Ie6655f1570731b1c51ef1aede2973ff4a2604d2b
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3426790
(cherry picked from commit 8657f0db30 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3428767
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
2025-08-12 14:06:00 -07:00
Shobek Attupurath
cd7b169ce8
rtl8852ce: Add v126-10 to fix disconnect with new channel
...
Issue - When WiFi operating channel is switched, at times the wifi
role index and role bitmap show that there is already a role
assigned for the channel context and this causes a failure in association. Kernel warning is shown when this occurs.
Fix - Update driver to v126-10 that fixes this issue.
[ 57.590860] Call trace:
[ 57.590861] rtw_phl_chanctx_add+0x528/0x8f4 [rtl8852ce]
[ 57.590947] rtw_clear_is_accepted_status+0x4a4/0xbb8 [rtl8852ce]
[ 57.591033] cur_req_hdl+0x3c/0x4c [rtl8852ce]
[ 57.591118] msg_dispatch+0x2dc/0x3f8 [rtl8852ce]
[ 57.591204] dispr_thread_loop_hdl+0x270/0x2dc [rtl8852ce]
[ 57.591289] dispr_share_thread_loop_hdl+0x10/0x1c [rtl8852ce]
[ 57.591374] share_thread_hdl+0xb8/0x1a0 [rtl8852ce]
[ 57.591459] kthread+0x110/0x124
[ 57.591466] ret_from_fork+0x10/0x20
Bug 5440351
Bug 5442104
Change-Id: Ie78c70c1ea7a789351a2ba4ad445c4d0062281da
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3426784
(cherry picked from commit c9aa3b2f1b )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3428714
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
2025-08-12 14:05:25 -07:00
Revanth Kumar Uppala
2c3145ecbe
r8126: Modify configs similar to earlier r8126 version
...
Modified below configs of r8126
CONFIG_SOC_LAN
ENABLE_MULTIPLE_TX_QUEUE
ENABLE_PTP_SUPPORT
ENABLE_RSS_SUPPORT
Bug 5312842
Change-Id: Ief05d33514aed51522488c6c7a801f078c943e30
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3417996
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-08-04 09:57:27 -07:00
Revanth Kumar Uppala
009a4a8f5d
ethernet: Add dummy driver for r8126
...
Add dummy driver when real driver is not available to make
packaging success.
Bug 5312842
Change-Id: I9f0e531f0b9d3353c6f98a3872a4c0dd5cb27934
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3415213
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-08-04 09:57:23 -07:00
Revanth Kumar Uppala
914b98c3ac
r8126: Add r8126 driver version 10.016.00
...
Add support for r8126 ethernet driverversion 10.016.00
which adds support till K6.15
Bug 5312842
Change-Id: I5987fd9a885fef7be6e1448674fc2e5c61820d1a
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3415199
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-08-04 09:57:18 -07:00
Revanth Kumar Uppala
97c57036d7
r8126: Disable LTR_EN in PCIe DevCtl2 register during probe
...
Problem:
- When a Downstream Port Containment (DPC) software trigger is issued, the LTR_EN bit in the Root Port (RP) is cleared as per PCIe spec.
- However, LTR_EN bit of RTL8126 endpoint (EP) which is being expected to reset is still active and sends Latency Tolerance Reports (LTR) to RP.
- This behavior violates the PCIe spec, as LTR_EN is a non-sticky bit and should be cleared automatically on reset.
- As the RP has LTR disabled but the EP still sends LTR messages, it results in Unsupported Request (UR) errors on the RP.
- These UR errors trigger AER (Advanced Error Reporting) recovery, which includes a Secondary Bus Reset (SBR).
- The SBR causes the PCIe link to go down and come back up, but the EP again starts sending LTRs, leading to a infinite error-recovery loop.
Workaround:
- As a temporary fix, disable the LTR_EN bit in the RTL8126 EP during its probe.
- This prevents the EP from sending LTR messages, thereby avoiding UR errors and breaking the loop of AER recovery.
Impact:
- Disabling LTR prevents the EP from entering the L1.2 low power state.
- However, ASPM is currently not enabled in the system, so this workaround has no impact.
Bug 4869463
Change-Id: Ibf7effaeb0f22e952645ef7bf6a18287264e1463
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3420019
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-08-01 09:57:47 -07:00
Rakibul Hassan
f374450381
coe: Add Camera Over Ethernet cababilities
...
The following change is a squash change that aims to reintroduce
Camera Over Ethernet (CoE) functionality to kernel.
Bug 5401884
Bug 5419655
Change-Id: Id2fc0263c43ed8566241dbf712aa603a3b3a76f4
Signed-off-by: Rakibul Hassan <rakibulh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3419627
Reviewed-by: Anubhav Rai <arai@nvidia.com >
Reviewed-by: Narendra Kondapalli <nkondapalli@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Igor Mitsyanko <imitsyanko@nvidia.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
2025-07-30 07:15:10 -07:00
Shobek Attupurath
a7fae6153a
rtl8852ce: Add Nvidia changes to driver version 261-1
...
- Reduce log level
- Remove unwanted prints
- Add Nvidia sourcetree path
Bug 5207091
Change-Id: I1fa512ea04ef703d2f17608658abf2e258c38db3
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3415008
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
2025-07-29 17:42:23 -07:00
Shobek Attupurath
9146af2407
rtl8852ce: Add driver v126-1 to fix kernel panic
...
Fix kernel panic observed in rtl8852ce driver
[ 179.040508] Call trace:
[ 179.040512] rtw_fsm_stop+0x138/0x174 [rtl8852ce]
[ 179.040592] rtw_fsm_notify_disconnect+0x50/0x60 [rtl8852ce][ 179.040672] rtw_free_assoc_resources+0x128/0x330 [rtl8852ce]
[ 179.040751] rtw_indicate_disconnect+0x4cc/0x984 [rtl8852ce]
[ 179.040831] rtw_indicate_disconnect+0x978/0x984 [rtl8852ce]
[ 179.040910] cur_req_hdl+0x3c/0x4c [rtl8852ce]
[ 179.040988] msg_dispatch+0x2dc/0x3f8 [rtl8852ce][ 179.041067] dispr_thread_loop_hdl+0x270/0x2dc [rtl8852ce]
[ 179.041146] dispr_share_thread_loop_hdl+0x10/0x1c [rtl8852ce]
[ 179.041225] share_thread_hdl+0xb8/0x1a0 [rtl8852ce]
[ 179.041305] kthread+0x110/0x124
[ 179.041325] ret_from_fork+0x10/0x20[ 179.041348] Code: f9400273 eb16027f 540000c0 b4ffff15 (f9402e60)
[ 179.041353] ---[ end trace 0000000000000000 ]---
Bug 5207091
Change-Id: I22d153c0ef970efad888fcce668d0d19e95f4e17
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3415007
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
2025-07-29 17:42:18 -07:00
Igor Mitsyanko
27970204aa
disable MACSEC interrupts
...
Change-Id: I4c76c6807717527582c96cec51617aa73a4c211a
2025-07-24 10:20:36 +00:00
Revanth Kumar Uppala
15c7804551
nvethernet: Add support for RX EQ SW ovrd flag
...
Add flag to protect RQ EQ SW override logic in OSI from executing for
other platforms except jedha
Bug 5277708
Bug 5017313
Change-Id: I826523cfbae67017a48576b4f802b7a3eeebfaf9
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
(cherry picked from commit b2df171faa368e93b1331e58d3b31cee753c0607)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3383665
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
2025-07-24 10:20:35 +00:00
Jian-Min Liu
d9679931aa
nvethernet: use -mno-outline-atomics for android kernel
...
Previously, this option was disabled because the clang version
used was too old (clang-r370808, clang 10). This option has been
supported since clang-r416183b, clang 12. In order to avoid potential
build errors, this option is re-enabled.
Bug 5289423
Change-Id: I1d0fd5a3dfdff06e95eeca13f85a263922c6ecaf
Signed-off-by: Jian-Min Liu <jianminl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3371014
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:20:35 +00:00
Narayan Reddy
38227b2177
nvethernet: add SIOCGHWTSTAMP support
...
issue: facing an unsupported ioctl error while
launching the ptp4l, since get timestamp configuration
support is not there.
fix: add get timestamp configuration ioctl support
Bug 5274698
Bug 5287071
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: I9254b041d4d3b9dc2cddebc14dc6100ed1b76807
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3366858
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:20:35 +00:00
Narayan Reddy
29ee31019b
nvethernet: remove ETHER_PRV_TS_IOCTL support
...
remove ETHER_PRV_TS_IOCTL since it is not longer used.
Bug 5265084
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: If3fd6d82b67812e25c9146569d2ff2f0e8dab5f4
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3367197
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:20:35 +00:00
Zhongjie Wang
1d5c9f1143
nvethernet: Add capability checks for ioctls
...
Issue description:
- Some privileged ioctl commands lack capability checks,
so a malicious user can configure ethernet HW with those
ioctl commands.
Fix description:
- Revisited all ioctl commands in nvethernet and added
missing capability checks for privileged ioctl commands.
Jira NET-2865
Signed-off-by: Zhongjie Wang <zhowang@nvidia.com >
Change-Id: Idae1d72f205ca24a02693274668cdff58f4d12e9
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3337486
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:20:35 +00:00
Narayan Reddy
ebfb82a4c1
nvethernet: correct return val check of get_avb_perf
...
issue: return value of get_avb_perf of avb_perf command
is checked against non zero value which is incorrect
fix: get_avb_perf always return non zero value based on
avarage bits per second, so modified the check accordingly
Bug 4778785
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: I142445491cc617773d5659067690426a98843a33
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3350515
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:19 +00:00
Bhadram Varka
90d4d4e1c4
nvethernet: Fix IRQ type mismatch warning for common IRQ
...
Issue:
Kernel logs reported an IRQ type mismatch warning for
the Common IRQ, as it was assigned to the Ethernet server.
Fix:
Skip reading and requesting the Common IRQ when virtualization
is enabled.
Bug 5248491
Bug 5091879
Change-Id: I54d145b2f1c1dfbc42a0e0d2f686f1bb085119c4
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3341674
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com >
2025-07-24 10:19:19 +00:00
Sanath Kumar Gampa
efd43d9c76
nvethernet:split macsec_sa_state_lut 2 sysfs nodes
...
Issue: Observed KSAN bug when using both Tx and Rx sa_state luts in a
single sysfs Entry as the data is not within the PAGE_SIZE
Fix: Split the sa_state_lut to 2 entries different for Tx and Rx
Bug 5178711
Change-Id: Id6929abae263622b02c00cef459e974661b5f1bc
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3334987
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: Nan Zhang <nazhang@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
2025-07-24 10:19:19 +00:00
Sanath Kumar Gampa
7fec719a7c
nvethernet:Move blocking MACSec in PHY to server
...
Removed the below functionality from Linux OSD as we moved
the same to ethernet server to avoid implementation in QNX OSD
- Restrict enabling MACSec in PHY
Bug 5221921
Change-Id: I0cbdeccfe91a67060a4609b9b8bc2bf842547b99
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3341020
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:18 +00:00
Mahesh Patil
659e731f28
r8125: Enabling realtek ethernet driver support
...
Bug 5091558
Change-Id: Idb013a451e81ad1e7a664d85f024eebb17f92b77
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3316987
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:18 +00:00
Mahesh Patil
b9b6d2df39
r8125: Realtek ethernet driver version 9.014.01
...
Adding Realtek ethernet driver version 9.014.01 drop
Bug 5091558
Change-Id: I678c9a6da836945f356479f20deca0d4467362e3
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3316982
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:18 +00:00
Bhadram Varka
ebee392608
nvethernet: pass MDC CR from DT
...
o Add nvidia,mdc-cr property reading
o Set the default values if property is not present
EQOS = 6
MGBE = 5
o Remove CMD MDC CONFIG which is not required.
Bug 5147775
Change-Id: I84c382745b862f73ffecb3a4ea15fe56b79d63e4
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3336145
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:18 +00:00
Sanath Kumar Gampa
5a5cf6254f
nvethernet: handling new CERT errors
...
CERT INT08-C
CERT STR07-C
Jira NET-2907
Change-Id: If331caf9838840073792de5ac722f268920c4a87
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3328902
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:18 +00:00
Narayan Reddy
d3cdce84ec
nvethernet: IOCTL handling of HSIs
...
1) Add IOCTL support for below HSIs
T264-EQOS_HSIv2-30
T264-EQOS_HSIv2-9
T264-MGBE_HSIv2-8
T264-MGBE_HSIv2-7
T264-MGBE_HSIv2-6
2) Add support for T26x Err Injection
JIRA NET-1946
JIRA NET-1948
Bug 4778785
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: Idd479983c39a7f15c875dac93c86d5bf4fd5e04c
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3258754
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:18 +00:00
Narayan Reddy
abd6b1a506
nvethernet: update dereferring of ioctl_data
...
structure variables inside ioctl_data structure has been
grouped to union, so updated the dereferring of ioctl_data
Bug 5129765
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: I8732a1e86985643bb88f58de2b0b11a0d02ffe2b
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3323781
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
2025-07-24 10:19:18 +00:00
Jon Hunter
a59a10dfeb
drivers: Update timer APIs for Linux v6.15
...
In Linux v6.15, the timer APIs hrtimer_init() and del_timer() have been
removed. The hrtimer_setup() was added in Linux v6.13 to replace
hrtimer_init() and hrtimer_init() have finally been removed. The
functions del_timer()/del_timer_sync() were renamed to
timer_delete()/timer_delete_sync() in Linux v6.15. Use conftest to
detect these changes and update the drivers as necessary.
JIRA LINQPJ14-47
Change-Id: Id3994900384aad4b91155507cda91e04898ab12c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3336168
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:18 +00:00
Bhadram Varka
11843f9878
nvethernet: fix Tx-ring full issue
...
Issue: Below issue observed while running TCP_TX perf test
for longer duration.
nvethernet a808a10000.ethernet: [validate_ctx][1082][type:0x2][loga-0x84d2] dma_txrx: Invalid frame len
nvethernet a808a10000.ethernet mgbe0_0: Tx ring[0] is full
nvethernet a808a10000.ethernet mgbe0_0: Tx ring[0] is full
nvethernet a808910000.ethernet eqos_0: Tx ring[0] is full
This is a regression due to the below change -
https://git-master.nvidia.com/r/c/linux-nv-oot/+/3258684
The issue is that TSO packet is being treated as Non-TSO packet.
pskb_expand_head return code is returned directly where it can
return zero for TSO packet.
Fix:
Removed pskb_expand_head since headers are not getting updated in SW.
HW takes care performing the TSO handling. Also optimized the checks
in TSO path code.
Bug 5175569
Change-Id: I7f48ed32898fec51581bf034b953f0ef7a9913f0
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3322354
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:19:17 +00:00
Bhadram Varka
76c28404c5
ethtool: Fix ring size configuration for Thor
...
Fix several potential issues in ethtool ring parameter handling:
- Add bounds checking for osi_dma->mac array access
- Add NULL pointer validation for ndev, pdata and osi_dma
- Make ring size arrays static const
- Add proper error handling for network device stop
Bug 5158977
Change-Id: Ia592c14d9ff1b81bee7d3382ef171443dd30e4b2
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3317305
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:17 +00:00
Jon Hunter
8cb3f30c12
net: nvethernet: Fix build for Linux v6.15
...
In Linux v6,15, a 'speed' argument was added to the phy_loopback()
function. Add a conftest test to detect this change and update the
nvethernet driver accordingly. Note that if 'speed' is set to 0 when
calling phy_loopback(), then phy_loopback() behaves the same way as it
did before this argument was added. So by default set speed to 0 for the
nvethernet driver.
JIRA LINQPJ14-47
Change-Id: I55f775e672bfa1a00c9ccbd825c82be1868b0b52
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3330685
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
2025-07-24 10:19:17 +00:00
Sanath Kumar Gampa
376365d92f
ethernet:Update ethtool logic to read macsec stats
...
Read macsec stats only if macsec is enabled in DT
Bug 5130525
Change-Id: I72de446954513ec6332566ae0647aec323178146
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313063
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:17 +00:00
Bhadram Varka
1960558372
nvethernet: suspend/resume time profiling
...
Add suspend/resume time to the debugfs so that
tests can be written to monitor the SC7 KPI
Bug 4202840
Change-Id: I92531277ab7149269186f8c61237931de99a3368
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300390
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:19:16 +00:00
Bhadram Varka
b5a64188d3
nvethernet: don't free/alloc descriptors in SC7
...
- dma_alloc_coharent is taking more time while
allocating the descriptors in resume path.
- This change will not free the DMA descriptor
- It only free DMA buffers in the Rx ring while suspend
and re-allocate the DMA bufeers in the Rx ring during
resume.
Bug 5094704
Change-Id: If52471d11dd300c324a9c9bc1723fcb3d3e51bf7
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313272
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:19:16 +00:00
Bhadram Varka
3edc4ff927
nvethernet: Add nvidia,use-random-mac-addr DT property
...
Adding support for generating the random MAC address
if nvidia,use-random-mac-addr is set with value 1.
Below property should be there insider ethernet DT nodes -
nvidia,use-random-mac-addr = <1>;
Recommendation is to use only for MODS setup.
This should not be enabled in the production DT.
Bug 5142789
Change-Id: I87db90685bb9769358eda4edc226b929ccdce67f
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3317020
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: Lovie Wang <loview@nvidia.com >
2025-07-24 10:19:16 +00:00
Sushil Kumar Singh
d3e47da5a4
nvethernet: disable HSI error reporting if EPL is disabled.
...
Issue:
During iperf test on pegasus board on customer observed below error periodically
nvethernet 6810000.ethernet: Failed to report error: reporter ID: 0x0, Error code: 0x1002, return: -19
Fix:
Disable HSI error reporting from hsi work queue function
for L4T platforms if safety component EPL is not supported.
Bug 4090612
Change-Id: Ifc51dd93fb16c1dbf7e42c648ca14443bb40550b
Signed-off-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
(cherry picked from commit 983ddcae450c36cde9ec79433e16a4ed5aa89319)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313872
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3318856
Tested-by: Wayne Wang (SW-TEGRA) <waywang@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Mohan Thadikamalla
a40f3c81dc
nvethernet: icd: Add MACsec netlink events
...
- Added support for MACsec Netlink
message commands.
- Integrated Doxygen comments for
NvEthernetLinux documentation.
Jira NET-2816
Change-Id: I340be3451a92d8ae4e0164a2caf61da1650a2939
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3312567
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
2025-07-24 10:19:16 +00:00
Sanath Kumar Gampa
5193e86207
kernel-nvidia-oot: Restrict enabling MACSec in PHY
...
Restrict enabling MACSec support in below PHYs via MDIO
- MV-Q3244
- 88Q2221M
Jira NET-2795
Change-Id: I2cf767ad89762a5daa8ac29e753365af2e5d24fb
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3308513
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Sanath Kumar Gampa
247613d6ce
nvethernet: fix top-25 issues
...
Fixed below issues
-FORWARD_NULL
-CERT STR07-C
-CERT INT32-C
-CERT INT30-C
-CERT INT08-C
-CERT EXP39-C
-CERT EXP34-C
JIRA NET-2044
Change-Id: I839bd5aedff30c7e9679f513a2cf7a1fbe3b2b8a
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3258684
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Mohan Thadikamalla
524e20def3
nvethernet: Add NvEthernetLinux ICD support
...
Add NvEthernetLinux Doxygen comments support
by documenting platform_driver,
net_device_ops, and ioctl command data.
Jira NET-2168
Change-Id: Ia8140290e4f01c00b6a5d310d8d64a8e0eb3b29c
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291517
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:16 +00:00
Shobek Attupurath
2bec5892d2
rtl8852ce: Add Nvidia changes to driver v126
...
- Update paths for sourcetree
- Reduce log level
- Update roam parameters
Bug 5023692
Bug 4957055
Change-Id: I9b6eed09790bc94d6976d4d680a2aa080085130a
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3246722
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-07-24 10:19:14 +00:00
Shobek Attupurath
4383fee5c2
rtl8852ce: Update driver to version v1.19.16_nv-126
...
Update driver version to v1.19.16_nv-126-g455ab52c9.20241107_Certified_Module
to enable roaming and fix issues with roaming
Bug 5023692
Bug 4957055
Change-Id: I7d021f599c6483e15828a564a016e4037b238c90
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3246715
Tested-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
2025-07-24 10:19:14 +00:00
harsukhwinde
1a3fed7006
nvethernet:change osd_usleep_range with osd_usleep
...
osd_usleep function using fsleep internally instead of usleep.
usleep has backward compatibility issue with andriod in gvs
Bug 4921002
Change-Id: Id3a1b5593decf9efbe175ed4490c851072437e71
Signed-off-by: Harsukhwinder Singh <harsukhwinde@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268621
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:19:13 +00:00
Rakesh Goyal
84e2727119
nvethernet: support high pps
...
Issue: Ask for support PPS cmd feature for fast TSC-PTP lock
Fix: Extended the possible values for more pulse per sec
Bug 4585654
Bug 5042311
Change-Id: I8a2066cd39fdbacee3e8543712b449694aad9f6b
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3215592
Tested-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00
Sanath Kumar Gampa
e0de3a4c56
NvEthernet: Add T26x EQoS XPCS separate lib
...
Add T26x EQoS XPCS h/w specific lib to compile nvethernet
Bug 4997903
Change-Id: Ib8171425e65fc167bf5f14ad1b1d104891f7e444
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268504
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:13 +00:00
Revanth Kumar Uppala
e01250d7c8
R8168: Configure Root Port MPS and MRRS in r8168 driver
...
This patch ensures that the Maximum Payload Size (MPS) and Maximum Read Request Size (MRRS) settings of the root port associated with r8168 ethernet endpoint are properly configured after overwritten by kernel when pcie_bus_perf is enabled.
Bug 4607316
Change-Id: I7f7b83f74e4ac2104345bd568d9d2e7c03a1441e
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3273562
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
2025-07-24 10:19:13 +00:00
Bibhay Ranjan
7d73a73146
nvethernet:set phy oldlink status correctly
...
Issue: on resume the mac set speed is not called due
to which the data transmissions are not happening in
alternate suspend resume cycles.
This is because the oldlink status is not set to 1 during
the successful resume, in set_speed_work_func retries
Fix: set oldlink to 1 once setspeed is successful in
function set_speed_work_func, so that next time
ether_adjust_link will call the set speed after resume
Bug 4891730
Change-Id: Iadb426f2cada99387ce180dfa2d0c9ee57e7ccd5
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260342
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-07-24 10:19:13 +00:00
Sanath Kumar Gampa
c5aa651596
kernel:nvidia-oot:Support for multiple MACSec SCs
...
Add support to accept multiple supplicant launch on same VF so that DUT
can have multiple MACSEC links with different ethernet peers
Pass Peer MACID to OSI such that the same is added to SCI LUT
Bug 4754899
Change-Id: Iaf56eb4d7ebc3266a0d3ceb3dbc76a1547ed608c
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3237500
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:11 +00:00
Jon Hunter
ff48ee63b1
drivers: Fix MODULE_IMPORT_NS for Linux v6.13
...
In Linux v6.13, commit cdd30ebb1b9f ("module: Convert symbol namespace
to string literal") updated the MODULE_IMPORT_NS macro to take a string
literal as an argument in Linux v6.13. Use conftest to detect if
MODULE_IMPORT_NS takes a string literal as an argument and update the
various drivers accordingly.
Bug 4991705
Change-Id: I8f34860648965dc2334e2916d5404522510778ff
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3263798
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:11 +00:00
Shobek Attupurath
ca13555cc5
rtl8852ce: Disable driver logging
...
Default logging is set to INFO, move this to NONE to reduce the
logs shown in kernel logs
Bug 4995363
Change-Id: Ib386a0bc8ba82d45dd0ba333733e4b14e9970b8d
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3262102
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-07-24 10:19:11 +00:00
Narayan Reddy
442dd0068f
nvethernet: deregister fixed link in remove
...
issue: PHY ID allocation is failing during the
stress test of insmod and rmmod of nvethernet
module, since PHYIDs were exhausing during the
module insertion.
fix: deregister fixed link in remove for
freeing up the PHYIDs which were allocated during
probe.
Bug 4754744
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Change-Id: I6e71c684d4fcc5bb99a971c7d4d41726998cd8ec
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3245742
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com >
2025-07-24 10:19:10 +00:00