Ankita Garg
7c81eb1b54
nvethernet: Fix build error when !OSI_STRIPPED_LIB
...
ioctl_data and osi_core are defined only when !OSI_STRIPPED_LIB. Fix
error in the code that accesses these variables outside the #ifndef
Bug 3974840
Change-Id: Ib0219dd0f7d9517bee2bec00ee7c546fd6e210e5
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2917512
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-14 22:56:06 -07:00
Ankita Garg
42aca030bf
nvethernet: Fix build error with clang
...
When building module with clang, -mno-outline-atomics compiler option
is not recognized
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
Change-Id: Ia46702ec3be8552f830c91f53da63a99bd749af2
(cherry picked from commit 43e30d3a3d80d1455a9020490f5e164f3bd77a2b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2891855
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Jian-Min Liu <jianminl@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Jian-Min Liu <jianminl@nvidia.com >
2023-06-13 00:18:02 -07:00
Jon Hunter
6475ddcf3d
net: nvethernet: Allow driver to be built without NVPPS
...
The nvethernet driver has a dependency on the NVPPS driver which in
turn has a dependency on the GTE driver. The GTE driver is being
transitioned to the new upstream HTE driver and while this transition is
on-going, allow the nvethernet driver to be distributed and built
without NVPPS and GTE.
Note that by default the dependency on the NVPPS driver is enabled by
setting CONFIG_TEGRA_NVPPS to 'y'. Only if the user sets
CONFIG_TEGRA_NVPPS to 'n' will it be disabled.
Bug 3918941
Bug 3961133
Change-Id: I019e5ebfddfcb158b0a684d2eacc404231577166
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913273
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:06:16 -07:00
Jon Hunter
de1bf0e728
net: nvethernet: Remove ivc_ext.h
...
The ivc_ext.h is not needed by the nvethernet driver and so remove this
header so that we do not need to distribute this header for building
nvethernet.
Bug 3918941
Change-Id: Ic95d6cdc8afebaa3f8e2bdf85ca63e636c05d86c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913272
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:06:11 -07:00
Ankita Garg
c74e091fc8
rtl8822ce: Disable driver in android
...
Disable wireless driver rtl8822ce in android to avoid build error
when building Android Common Kernel (ACK) using clang
Bug 3974840
Change-Id: If7d11a9812e017178335de5fcd501db8e09de423
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
(cherry picked from commit 3391f471559a3e9e0cb68b502a29ff2f637e7b31)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910050
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:16:47 -07:00
Akshay Tigga
75ac42b84c
WAR: Add "VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver"
...
Android common kernel prevents the use of symbols exported from the
fs subsystem in other modules. As a WAR we need to explicity import
"VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver"
until the migration is complete to remove the use of such symbols.
Bug 3974840
Change-Id: Icb47eba34d069ec287e5ad5bd2e046b0f96f401c
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901632
(cherry picked from commit bfd7dc903f050f778f105af07e4ddfbde8497881)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910053
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
2023-05-29 03:55:46 -07:00
brucex
1ce0ed3f5b
tegra_hv_net: Fix wrong var type
...
mac_address is defined wrongly and it does not
match the return type of function of_get_mac_address.
Bug 3974840
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Change-Id: I582c3755b0e2121b2e937dc77b3f9af8694e4357
(cherry picked from commit 8f8de48950266048eaf142cbdec66b1b7ccf0737)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859221
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-29 03:55:37 -07:00
Revanth Kumar Uppala
0a8365166e
nvethernet:Fix compilation errors in Linux safety
...
Issue:
Observed below compilation issues
on the nvethernet driver for DRIVE Linux safety
builds as some macros/functions are defined with
"OSI_STRIPPED_LIB" protection but they are used
directly without any protection.
1./automotive-dev-main-20230516T005516255/out/embedded-linux-generic-release-safety/nvidia/kernel-rt_patches-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/sysfs.c:2641:33: error: ‘OSI_INSTANCE_ID_EQOS’ undeclared (first use in this function)
2641 | if (osi_core->instance_id == OSI_INSTANCE_ID_EQOS)
| ^~~~~~~~~~~~~~~~~~~~
2./automotive-dev-main-20230516T005516255/out/embedded-linux-generic-release-safety/nvidia/kernel-rt_patches-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/sysfs.c:2733:3: error: ‘dev_attr_hsi_enable’ undeclared here (not in a function)
2733 | &dev_attr_hsi_enable.attr,
| ^~~~~~~~~~~~~~~~~~~
Fix:
Add OSI_STRIPPED_LIB macro protection
for required functions.
Bug 3959085
Change-Id: Ifef1c72b5ddedc4d550280eace305bbade290bbf
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905357
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:46:40 -07:00
Revanth Kumar Uppala
98b2b3ff4f
nvethernet: Skip the device resume via mdio bus
...
Enable "phydev->mac_managed_pm" so that device
won't be resumed for second time via mdio bus
Bug 4071996
Change-Id: Ib35bc1459bd882a2b940d4f28bd9d2c76719bfc7
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901540
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:41:10 -07:00
Revanth Kumar Uppala
b23abb0c87
nvethernet: Resolve compilation warnings on kernels 5.17+
...
dev_addr present in struct net_device is made const
from K5.17. So, typecasting it to "nveu8_t * const" while
passing it to the osi_macsec_init().
Bug 4076818
Change-Id: I4b2ac2b1a033bc41af5174da29ff9867fe4df89f
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2900162
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-10 13:53:44 -07:00
Revanth Kumar Uppala
8229868ec8
nvethernet: Address dev_addr warnings in K5.17
...
dev_addr present in struct net_device is made const
from K5.17.So, modifying the local pointer also
to const.
Bug 4076818
Change-Id: I7f2f0a5fab033a13145a0d5a60f2847d239cedb4
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2898041
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-04 11:49:49 -07:00
Revanth Kumar Uppala
2c2e1dfb9e
nvethernet: Correct the if-else condition to copy mac address
...
Address setting helpers are used to copy mac address from K5.17
as netdev->dev_addr is constant from K5.17.Adding an else condition
now so that memcpy will be used for Kernel versions below K5.17
Bug 4076818
Change-Id: I1542a82710aa2bdf12bfc93fdaedf31d34df91b2
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897883
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:49:06 -07:00
Narayan Reddy
d1f735fe0d
nvethernet: remove explicit addition of vlan prio
...
Issue: skb_vlan_tag_get gives only the VLAN_ID for
the earlier kernel versions (K4.9) and hence added
a logic to take care of adding the VLAN priority
explicitly and hence the VLAN priority getting
modified in a newer kernel version where VLAN PRIO is
already included
Fix: remove the logic of explicit adding of VLAN
priority.
Bug 3788862
Bug 4088361
Change-Id: I0ac9ebfe21d3e696ac1b0f6ba540c010928f775f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2806468
(cherry picked from commit 799b17fc35f3bc3ec75ea93452c03bd52ed28527)
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895043
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:36:02 -07:00
Om Prakash Singh
4d63a3e291
nvethernet: avoid enabling HSI from sysfs
...
avoid enabling HSI from sysfs when virtualization is enabled.
HSI feature is enabled from ethernet-server.
Bug 3590939
Bug 4088361
Change-Id: Icd572efb24379fc8d2fc10ab1faaf0a764ee9679
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2784216
(cherry picked from commit e0754b34892b27b2577bc81ec06dd76efe81b378)
Signed-off-by: Om Prakash Singh <omp@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897229
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-04 11:35:52 -07:00
Mahesh Patil
448ee57dbc
nvethernet: Clean up UPDATED_PAD_CAL macro
...
Bug 2831220
Bug 3500401
Bug 4088361
Change-Id: I2d805d5f16be91c2d213298fc3a5353f6fde001d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2847060
(cherry picked from commit b06ce7098a503ac1f0aed586089c9e2c4e0235b8)
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897235
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:35:47 -07:00
Bibhay Ranjan
11cf87fd65
nvethernet: remove OSI controlled CFLAGS
...
All the common cflags will be controlled by OSI
Bug 3759976
Bug 4088361
Change-Id: I97945270c034e00f2ca160697824cdedb8402f54
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2808843
(cherry picked from commit dea31bfcefa03ab3989bd2a3b25aee804eab559c)
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897234
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-04 11:35:37 -07:00
Rakesh Goyal
158ea57641
nvethernet: Protect Tx timestamp list
...
add_skb_node() added to delete the old entries from the list
but this can concurrently create the issue with ether_get_tx_ts()
either from the workqueue or direct call from tx done routine.
Protect the concurrent access of Tx timestamp list from add_skb_node()
and ether_get_tx_ts().
Bug 3927990
Bug 4088361
Change-Id: Ifae84a072d7d16b259178f2a8e79c2065ce837d8
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2842411
(cherry picked from commit 8509d3060cc697cf43c3194521575f859de53e39)
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895045
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:35:32 -07:00
Mohan Thadikamalla
756347cd7f
nvethernet: Fix invalid KWT fail on NDAS
...
Issue:
KWT test is getting failed on
NDAS build due nvethernet
driver warnings.
Fix:
Remove unrelated nvethernet
driver warnings
Bug 3935448
Bug 4088361
Change-Id: Ic76a42b2aab2f95ae8b9f89c7823693d58c37f33
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2854306
(cherry picked from commit bb1910bfd1a5305dee9302b2d8fde081e391c516)
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897233
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:35:22 -07:00
Sushil Singh
a397076302
nvethernet: Add NULL check for phydev in eee init
...
Issue:
During eth0 down case, the link change gets called twice,
1. due to ndo close
2. due to interrupt generated by phy.
The ether_adjust_link callback also configures the EEE settings
and calls phy_init_eee (a phy framework API) for the same.
Here a race condition occur, when ether_close sets phydev to NULL
before the phy_init_eee gets called (from ether_conf_eee) which tries
to deference the phydev causing kernel panic.
[35779.541305] Call trace:
[35779.544018] phy_init_eee+0x24/0x290
[35779.547455] ether_conf_eee+0x110/0x1310 [nvethernet]
[35779.552525] ether_conf_eee+0x4e0/0x1310 [nvethernet]
[35779.557840] phy_link_change+0x40/0x90
[35779.561603] phy_state_machine+0x190/0x240
[35779.565643] process_one_work+0x1c4/0x4d0
[35779.569396] worker_thread+0x54/0x430
[35779.573072] kthread+0x148/0x180
[35779.576586] ret_from_fork+0x10/0x34
[35779.580069] Code: a90153f3 d5384113 a9025bf5 12001c36 (f941b801)
[35779.586195] ---[ end trace 2ea5b6492f36b0cb ]---
[35779.590737] Kernel panic - not syncing: Oops: Fatal exception
Fix:
Add a NULL check and return -ENODEVICE in EEE configuration
Bug 3877272
Bug 3920560
Bug 3865666
Bug 4088361
Change-Id: I2b26c6eeabb7a109b9d14b3bd2a035f5c3b3c6fa
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2854404
(cherry picked from commit 40606dc247eacf2a8987687777874575d9037058)
Signed-off-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2855237
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:35:12 -07:00
Narayan Reddy
90ec9bc532
nvethernet: turnoff carrier in link down
...
Issue: ethtool status shows link detected as
yes even though the link is down
Fix: turnoff the carrier when link down is received
so that ethtool status shows the current status
of link.
Bug 3806700
Bug 4088361
Change-Id: I9a68867280690c22a7b4daa225059d576ae5bb7b
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2828301
(cherry picked from commit be8d9423b4ed30e75ac9e5cff87add1d492d152e)
Signed-off-by: Narayan Reddy <narayanr@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895044
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-04 11:35:02 -07:00
Rakesh Goyal
f9f6447c30
nvethernet: remove EQOS_GET_CONNECTED_SPEED from export ioctl
...
Remove EQOS_GET_CONNECTED_SPEED from export IOCTL.
Reference application can use it ethtool for speed
Bug 3812806
Bug 4088361
Change-Id: I56b47eaef9da3adc03ad9269dde26f520419b2b0
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2828652
(cherry picked from commit 4859987708858e1cb048ab4f6c784d2057131511)
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897232
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-04 11:34:57 -07:00
Mahesh Patil
44419231b0
nvethernet: eqos pad calibration reg offsets
...
Make eqos pad calibration reg ETHER_QOS_AUTO_CAL_CONFIG_0 offsets
AUTO_CAL_PD_OFFSET and AUTO_CAL_PU_OFFSET configurable as per
customer boards tuning
Bug 3846183
Bug 4088361
Change-Id: I77521f83cac56650c6a6d1a2dd8b8c7cbdc3f3fc
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2806180
(cherry picked from commit 8eea133d313ba3b1b4ced9f58a65ecf870a2b0e6)
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897231
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-04 11:34:52 -07:00
Laxman Dewangan
c69d77a04a
nvethernet: Rename srctree.nvidia to srctree.nvidia-oot
...
Replacing the env variable srctree.nvidia with
srctree.nvidia-oot as everything needed for this
driver is in the nvidia-oot source.
Bug 4087103
Change-Id: Iad960d101a91e74d14f4889f1ec745ff21ff337f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2894616
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-27 08:15:06 -07:00
Mohan Thadikamalla
6129bcc538
nvethernet: Clear VLAN tag stripping
...
Issue:
Observed VLAN ping failure on Linux safety builds.
Fix:
Clear VLAN tag stripping on nvethernet drivers.
Bug 4081795
Change-Id: I08936e2afa1fe1111570cf0cea6aa0cbe463e157
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2891932
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-27 08:00:55 -07:00
Sanath Kumar Gampa
d07b3d604c
nvethernet:MACSEC, add byp lut with VF MAC
...
Issue: If the supplicant is killed for some reason Data would flow
plain on that interface, this needs to be avoided
Fix: Update bypass LUT such that if the frames from the VF(on which
supplicant is launched) is received on MACSEC either authenticate the
same or drop. Along with this handles below items as well. All the VFs MACIDs
are obtained in OSI to update the bypass LUTs to decide on which VF frames
to be authenticated and which VF frames needs to be bypassed.
1. Remove osi_macsec_en API and have single API to init and deinit
2. Remove explicit command from supplicant to set control port and
set protected frames. Handle the same in osi_macsec_init
Bug 3984665
Change-Id: I8bc8aa95d1e21e99e992b471fb70ed58073163f7
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2878515
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-21 11:35:13 -07:00
Jon Hunter
11cff41889
net: nvethernet: Fix build for Linux v6.3
...
Upstream commit 99d5fe9c7f3d ("net: mdio: Remove support for building C45
muxed addresses") removed the definition MII_ADDR_C45 breaking the build
for the nvethernet driver for Linux v6.3. Update the driver to use the
OSI_MII_ADDR_C45 instead.
Bug 4014315
Bug 4075345
Change-Id: I98f8d10ce1a093d458d293b286a4e5a544d48d04
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889876
Reviewed-by: Rohit Khanna <rokhanna@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-19 10:57:57 -07:00
Laxman Dewangan
846435a74c
drivers: Remove Kconfig files
...
The kconfig files from nvidia-oot will not get
parsed as the drivers in nvidia-oot are out tree and
does not support any config variable.
Bug 4074863
Change-Id: I6825a94c56404a6860dea9f2afd1ca3bc68e10a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889266
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-19 10:54:28 -07:00
Sheetal Tigadoli
7a3a094915
drivers:net:oak: Add module_device_table entry
...
Add module_device_table entry to support
autoloading of the driver
Bug 3882239
Change-Id: I6b33bea9f63bea031dadc8e40d153c9f2478ac51
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2883183
(cherry picked from commit eb3c7ffa28dfec24786041bf59d947fee23e9e0c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2887730
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-16 12:55:09 -07:00
Revanth Kumar Uppala
580358e6a2
nvethernet: macsec: Fix crash during suspend
...
Issue: MACSEC is not enabled in DT for eqos_1 and mgbe2_1
interfaces which makes macsec_pdata pointer to NULL.
During suspend/resume macsec_pdata pointer accessed without
NULL check which resulted in crash.
Fix:
o Add NULL pointer checks for macsec_pdata in suspend and resume.
o Remove unnecessary checks for macsec in suspend and resume.
Bug 4060718
Change-Id: I00e042d979e115c088696a8964496ed0054360e5
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2888289
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-14 23:36:47 -07:00
Manish Bhardwaj
364ae3ed23
mttcan: wait to flush CAN messages
...
Using this patch we are waiting for CAN messages
to get flushed before going to suspend during
sc7 cycle
JIRA ESLC-7354
Change-Id: Ie368fd9e6b119df71646bf5fddbd89ae2f7c5697
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2881872
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-06 10:16:08 -07:00
Sushil Kumar Singh
a986d91aa3
nvethernet: Kernel panic when set jumbo frame
...
Issue:
Macsec data is NULL for Xavier platforms as no DT macsec
entry is available. This NULL pointer is accessed when
changing MTU, causing kernel panic.
[ 110.247070] Unable to handle kernel NULL pointer dereference at virtual address 000000000000015c
[ 110.247292] Mem abort info:
[ 110.247355] ESR = 0x96000004
[ 110.247423] EC = 0x25: DABT (current EL), IL = 32 bits
[ 110.247534] SET = 0, FnV = 0
[ 110.247616] EA = 0, S1PTW = 0
[ 110.247682] Data abort info:
[ 110.247743] ISV = 0, ISS = 0x00000004
[ 110.247823] CM = 0, WnR = 0
[ 110.247889] user pgtable: 4k pages, 48-bit VAs, pgdp=000000010a201000
[ 110.248031] [000000000000015c] pgd=0000000000000000, p4d=0000000000000000
[ 110.248176] Internal error: Oops: 96000004 [#1 ] PREEMPT SMP
[ 110.248295] Modules linked in:
[ 110.248379] CPU: 2 PID: 1423 Comm: ifconfig Not tainted 5.10.120-tegra #11
[ 110.248525] Hardware name: Unknown Jetson-AGX/Jetson-AGX, BIOS 0.0-ff9214ce 12/20/2022
[ 110.248690] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 110.249074] pc : ether_change_mtu+0x144/0x220
[ 110.249381] lr : ether_change_mtu+0x140/0x220
[ 110.250528] sp : ffff800014b1b470
[ 110.253853] x29: ffff800014b1b470 x28: ffff0318c9632d00
[ 110.259366] x27: ffffb376aafb0978 x26: ffffb376aafb0948
[ 110.264636] x25: ffffb376ab3b3aa0 x24: ffffb376abf7edd8
[ 110.269870] x23: ffff0318c9632d00 x22: ffffb376abeb97d8
[ 110.275569] x21: ffff0318c5dc0940 x20: 0000000000002328
[ 110.280806] x19: ffff0318c5dc0000 x18: 0000000000000010
[ 110.286401] x17: 0000000000000000 x16: ffffb376aa327910
[ 110.291581] x15: ffff0318c9633270 x14: ffffffffffffffff
[ 110.297166] x13: ffff800094b1b167 x12: ffff800014b1b16f
[ 110.302500] x11: 0000000000000020 x10: ffffb376abbb0aa0
[ 110.307770] x9 : ffffb376a9ccba7c x8 : 0000000000000001
[ 110.313439] x7 : 0000000000017fe8 x6 : c0000000ffffefff
[ 110.318605] x5 : ffff031c3fd60958 x4 : 0000000000000000
[ 110.324305] x3 : 0000000000000001 x2 : 0000000000000000
[ 110.329369] x1 : 0000000000000000 x0 : 0000000000000000
[ 110.334706] Call trace:
[ 110.337416] ether_change_mtu+0x144/0x220
[ 110.341187] dev_set_mtu_ext+0xe8/0x1d0
[ 110.345121] dev_set_mtu+0x44/0xb0
[ 110.348616] dev_ifsioc+0x254/0x4d0
[ 110.352115] dev_ioctl+0x128/0x380
[ 110.355270] sock_do_ioctl+0xd4/0x240
[ 110.359027] sock_ioctl+0x27c/0x510
[ 110.362530] __arm64_sys_ioctl+0xb8/0x100
[ 110.366731] el0_svc_common.constprop.0+0x80/0x1f0
[ 110.371540] do_el0_svc+0x2c/0x90
[ 110.374522] el0_svc+0x20/0x40
[ 110.377943] el0_sync_handler+0xc0/0xd0
[ 110.381689] el0_sync+0x184/0x1c0
[ 110.384931] Code: b900e714 5281ef42 941a98a4 f94312a0 (b9415c00)
[ 110.390801] ---[ end trace cbec9c44e214f14b ]---
[ 110.395602] Kernel panic - not syncing: Oops: Fatal exception
[ 110.400962] SMP: stopping secondary CPUs
[ 110.404718] Kernel Offset: 0x337699bb0000 from 0xffff800010000000
[ 110.410752] PHYS_OFFSET: 0xfffffce840000000
[ 110.414945] CPU features: 0x18240002,03802a30
[ 110.419490] Memory Limit: none
[ 110.422645] ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---
Fix:
Add NULL check for macsec data. Macsec is set to NULL if it is not
supported in DT from macsec probe.
Bug 3952134
Change-Id: I0b292e39f3ec8f8fed0fb3fef5cd9f52f5c0e2a9
Signed-off-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2846676
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2878453
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-05 06:01:49 -07:00
Revanth Kumar Uppala
80336d6c96
nvethernet: Fix compilation warnings
...
1.There is a switch-case where one case is falling to the
next case. This is creating the compilation warning.
Make this fall through as intentional by adding
compiler attribute as "fallthrough".
2.Remove redefinition of macro MII_ADDR_C45
Bug 4055275
Change-Id: I99193b225e97c414588bb306cb48e472ae079f9f
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2882027
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-04 21:57:46 -07:00
Mohan Thadikamalla
01d8319aae
nvethernet: Add Linux safety support
...
Issue:
Observed compilation issues
on the nvethernet driver
for DRIVE Linux safety builds.
Fix:
Add OSI_STRIPPED_LIB support
on nvethernet driver.
Bug 3939603
Change-Id: Id4213c1cf33dc0e925df3e627072b727ae44fa71
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2842470
(cherry picked from commit ece0eb57a89396ea8bdc412beeaa7dfabbda49b1)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2879701
Tested-by: Deepak Nibade <dnibade@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-04 21:49:37 -07:00
Laxman Dewangan
1d719d1580
can: mttcan: Fix fall through warning
...
There is switch-case where one case is falling to the
next case. This is creating the compilation warning.
Make this fall through as intentional by adding
compiler attribute as "fallthrough".
Bug 4052299
Change-Id: Ie1fd5a056bd7b6a79f12b73a23a5b0083f08ab55
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2880033
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-01 10:55:02 -07:00
Mohan Thadikamalla
8bb99f5a5d
nvethernet: Remove hsierrrptinj callback on probe
...
Don't register hsierrrptinj callbacks
on probe, only register from
sysfs inputs.
Bug 4050215
Change-Id: Ic8f8971552f5e96b8d10aa25603191206d3d317d
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2830534
(cherry picked from commit 1b053c26a00bab026285a8733b3abe1884494489)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2879714
Tested-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-31 10:11:55 -07:00
Nagarjuna Kristam
72fa62af01
NET: tvnet: Fix Coverity issues
...
Initialize ctrl_msg to 0 before passing to function.
Bug 3956683
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: I540d7d8bcc20003da5c5faea2d0d081da25527bd
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2876299
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-31 04:17:31 -07:00
Revanth Kumar Uppala
6e2e6973cd
nvethernet: Avoid using mdiobus_c45_addr().
...
Avoid using mdiobus_c45_addr() as it is
obsolete from K6.3.
Instead use its definition directly.
Bug 4014315
Change-Id: Ic407f407b03e465eea97bb530e86360ef81eb1e6
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2873724
Tested-by: Jonathan Hunter <jonathanh@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-26 17:35:58 -07:00
Manish Bhardwaj
183b86a656
Revert "drivers: Disable broken drivers for Linux v6.3"
...
Bug 4014315
This reverts commit 877b293bd79071028709ea47deb8fc87d5d65f6c.
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: Ic043c3d18f095a056fa82182664a8b2bf0a52847
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2868424
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-25 02:41:40 -07:00
Jon Hunter
b5ec750ebb
marvell: oak: Fix build for Linux v5.14
...
The functions eth_hw_addr_set() and dev_addr_mod() do not exist for
Linux v5.14 and so compiling the marvell oak driver fails for Linux
v5.14. Fix this by calling memcpy() instead of eth_hw_addr_set() and
dev_addr_mod() for Linux v5.14. Note that both eth_hw_addr_set() and
dev_addr_mod() internally call memcpy() and so this is equivalent.
Bug 3820317
Change-Id: I4b49e031383adf62a55f1d01e8de2fcc0ad47862
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2875022
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-24 17:20:19 -07:00
Jon Hunter
fee7e399b9
drivers: Disable broken drivers for Linux v6.3
...
Several drivers fail to build with Linux v6.3 due to upstream changes in
the Linux kernel. Disable this drivers until a fix is in place.
Bug 4014315
Change-Id: Iddd2c1e552c92311a982ff91837cef6377a947d6
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867129
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Rohit Khanna <rokhanna@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-22 03:25:09 -07:00
Revanth Kumar Uppala
1d36e57bf2
nvethernet: use address setting helpers
...
Use address setting helpers as netdev->dev_addr
is constant from K5.17
Bug 3978991
Change-Id: I75520ecf695cbf370ef8233d12c250996ebc2abd
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2872952
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:38:07 -07:00
Manish Bhardwaj
72cf7c99c3
mttcan: fix kernel compilation issue
...
fix compilation issue when building mttcan driver
with 6.3-rc1 upstream kernel.
Bug 4014315
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: I33c15af15fa8db1ac0cbb1c619db5429a6495a80
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2868425
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:35:01 -07:00
Manish Bhardwaj
2884fc0a73
nvidia-oot: add support for recovery kernel
...
Stop compilation for marvel driver in nvidia-oot
repo, since PCI support in core kernel is missing
in recovery kernel.
Bug 3863448
Change-Id: Ic74ed237ebd15425b8d07e1187b0123769fd5855
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2871454
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Vipin Kumar <vipink@nvidia.com >
Tested-by: Sheetal Tigadoli <stigadoli@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:27:33 -07:00
Sheetal Tigadoli
be8bd94e28
ethernet:marvell:Fix compilation errors in K5.15
...
Fix compilation errors in K5.15
1. signature of netif_napi_add has changed,
use netif_napi_add_weight instead
2. addr issues arising due to constifying
*dev_addr varable defined in net_device struct
Jira ESDP-16549
Bug 3882239
Change-Id: Id644925d2e1cee71d7fc8f97e9c1982897a744ef
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2858625
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:27:29 -07:00
praveen
4abc0b9d03
Marvell: oak: Nvidia changes on oak pci drv
...
List of changes squashed in this
* From previous commits
- Marvell: oak: Assign random MAC address
- Clear filters to support port mirroring
* New changes to be reviewed
- Terminate pci_device_id table
Jira ESDP-14058
Bug 200702607
Bug 3604084
Change-Id: Ice076a0c8d897292b098ac841f5636b5251db40d
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856989
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:27:24 -07:00
Sheetal Tigadoli
748fa9c699
marvell:Add compilation support to driver
...
- Renamed the directory to oak
- Updated the make files to compile the source
- Removed unused script
ESDP-16549
Bug 3882239
Bug 3824037
Change-Id: I1dee5def85b6e25f88dff999f1051bfe62d5613b
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856988
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:27:20 -07:00
Sheetal Tigadoli
afd05b80bd
ethernet:marvell:Add pci driver for spruce/oak
...
This patch adds latest Marvell ethernet PCI GPL driver
(v3.01.0000) for spruce/oak i.e for 88Q6113/88Q5072.
Jira ESDP-16549
Bug 3882239
Change-Id: I15c6fab1d21cd3fa24a3cee76bdce42b27778445
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856987
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2023-03-21 02:27:15 -07:00
Rakesh Goyal
dd7632c195
nvethernet: fix syntax error in fpe ioctl
...
Issue: Due to syntax error, only 1 byte getting
copied from user space to kernel space.
Fix: Fix syntax error. Add error logs
Bug 3991771
Change-Id: Iff96d0f51605fab2954c1c9a423ad9a6781c1e21
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866442
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-07 22:52:15 -08:00
Manish Bhardwaj
e04d8c343f
nvidia-oot: fix sparse errors in mttcan driver.
...
Using this patch we are fixing below sparse
errors :-
1. drivers/net/can/mttcan/native/m_ttcan_linux.c:627:66:
warning: Using plain integer as NULL pointer
2. drivers/net/can/mttcan/native/m_ttcan_linux.c:658:56:
warning: Using plain integer as NULL pointer
Bug 3954363
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: I1dcf51b0a765ee47ee3fae06c1ed31f0d5e84230
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863100
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-01 10:27:26 -08:00
Manish Bhardwaj
bc5669d198
nvidia-oot: remove support of tegra hvnet driver
...
Using this patch we are removing the support for
tegra hvnet driver since this is not needed any longer
becasue L+L support has been deprecated.
1. drivers/net/tegra_hv_net.c:361:1: warning: symbol
'tegra_hv_net_get_stats64' was not declared.
Should it be static?
2. drivers/net/tegra_hv_net.c:704:19: warning: assignment
to ‘const void *’ from ‘int’ makes pointer from integer
without a cast [-Wint-conversion]
3. drivers/net/tegra_hv_net.c:704:26: warning: incorrect
type in assignment (different base types)
Bug 3954363
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: I73e7071c1ec4c64072b409e46948aa2e75364be6
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863099
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-01 10:27:21 -08:00