Srinivas Ramachandran
1e8dfafa84
osi: Use osd_usleep vs osd_udelay appropriately
...
Issue: osd_udelay is used irrespective of the
duration of the delay/sleep. In certain
environments like HVRTOS, udelay is a
busy loop and it starves other tasks on the CPU.
Fix: Use udelay only for small tight checks, and use
usleep for larger delays.
Bug 4676601
Change-Id: I59d9a403f34d46c6e2d17ca6f7e8a277d5283db5
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3176350
(cherry picked from commit c2abe16a34af853f86fcaa4bb91b7036e2a8eb79)
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3250083
Reviewed-by: Hareesh Kesireddy <hkesireddy@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: Hareesh Kesireddy <hkesireddy@nvidia.com >
2024-12-04 08:06:03 -08:00
Aniruddha Paul
22a75ac576
osi: Remove duplicate macros
...
The below macros were duplicated in the respective
components of osi/core and osi/dma.
1. MGBE_DMA_CHX_MAX_PBL
2. MGBE_DMA_CHX_PBL_16
3. MGBE_DMA_CHX_PBL_8
4. MGBE_DMA_CHX_PBL_4
5. MGBE_DMA_CHX_PBL_1
6. osi_valid_pbl_value()
7. osi_memset()
Move these common macros and APIs which are used by both
osi/core and osi/dma to include/osi_common.h
This also statically assigns TxPBL=16 for Orin.
Bug 4569357
Change-Id: I390e0ad9c0bfda47a1a7f9dd94cf5f7f45d96b9c
Signed-off-by: Aniruddha Paul <anpaul@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3211481
Reviewed-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2024-11-20 21:52:52 -08:00
Mahesh Patil
8ebeeaafe3
osi: Add osi dma/core release functions
...
- Adding osi dma and osi core release function to release resources
Bug 4791340
Change-Id: I031d11ca34a31d2f7c5c8460251509714cba5509
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3214558
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2024-10-16 19:47:53 -07:00
Mahesh Patil
c479ba1650
osi: T26x EQOS changes
...
1) Added T26X EQOS bring up changes
2) Fixes added during bring up
Bug 4639097
Change-Id: I0036a12ad08d690bb62a655df6f4efd26a0bf585
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3152936
Tested-by: Seema Khowala <seemaj@nvidia.com >
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2024-06-18 11:37:38 -07:00
Mahesh Patil
b236911c75
osi: T26x CAR changes
...
Ported from -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/3126091
Bug 4228185
Change-Id: Ia9a7eede0230e25366a37dc8ce7f1a4635bd11cf
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Michael Hsu <mhsu@nvidia.com >
2024-06-06 00:37:38 +00:00
Mahesh Patil
13e42ef1d2
osi: update T264 mgbe perf configs
...
Update MGBE perf configs as per IAS recomendations
Ported from -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/2984047
Bug 4228205
Change-Id: I76f55f2f613417728def92a997957a2f6d18099b
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Michael Hsu <mhsu@nvidia.com >
2024-06-06 00:37:38 +00:00
Mahesh Patil
f8df147841
osi: T264 Ethernet NET07 bring up
...
- Update the mac version
- Program PDMA receive enable
- Program DDS bit of DPCSEL register as XDCS is removed for T26x
Ported from -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/2969471
Bug 4266891
Change-Id: Icf7e9df4033a9ea6af3c8d5759694717c0cf1145
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Michael Hsu <mhsu@nvidia.com >
2024-06-05 12:01:50 +00:00
Mahesh Patil
992e66178b
osi: T264 VDMA 20 channel support
...
Enable VDMA 20 channels and interrupts
Ported from -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/2940792
Bug 4043836
Change-Id: I4c22c7006c8813d9b39fe54d872b28ca7c123c74
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Michael Hsu <mhsu@nvidia.com >
2024-06-05 12:01:50 +00:00
Mahesh Patil
8c7f7328e8
osi: T264 VDMA feature and bring up changes
...
Bug 4043836
Ported from the change -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/2896005
Change-Id: Iabbbde0d2733f04bba5d7128e7b8ac5956605424
Signed-off-by: Mahesh Patil <maheshp@nvidia.com >
Signed-off-by: Michael Hsu <mhsu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3149288
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: Bhadram Varka <vbhadram@nvidia.com >
Tested-by: Seema Khowala <seemaj@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
2024-06-05 02:51:04 -07:00
Sanath Kumar Gampa
52c1d70334
osi: core: Removal of dead code
...
As a part of unit testing cleaned up the
dead code and the redundunt checks
Bug 4284096
Change-Id: Ic0a8f68468b437e45d277cca5296da5232d4a5a7
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3069601
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2024-02-21 16:32:07 +05:30
Bhadram Varka
9a2f67acf6
osi: core: cleanup the code
...
Removed unneeded code as a part of clean up
Bug 4284096
Change-Id: I72d2315bd641f4a46c7f78029214c23599c9b831
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3063333
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: Ashutosh Jha <ajha@nvidia.com >
Tested-by: Narayan Reddy <narayanr@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-02-21 16:32:07 +05:30