Shobek Attupurath
0313251d13
rtl8822ce: Initialize spinlock before usage
...
Issue: Kernel warning print observed from rtl8822ce module
2024-04-23 21:04:14,547: [ 42.507680] Call trace:
2024-04-23 21:04:14,547: [ 42.510201] dump_backtrace+0xe0/0x140
2024-04-23 21:04:14,547: [ 42.514079] show_stack+0x1c/0x30
2024-04-23 21:04:14,547: [ 42.517502] dump_stack_lvl+0x64/0x84
2024-04-23 21:04:14,648: [ 42.521290] dump_stack+0x14/0x34
2024-04-23 21:04:14,648: [ 42.524703] spin_dump+0x98/0xb0
2024-04-23 21:04:14,648: [ 42.528030] do_raw_spin_lock+0x110/0x130
2024-04-23 21:04:14,648: [ 42.532165] _raw_spin_lock_irqsave+0x34/0xb0
2024-04-23 21:04:14,648: [ 42.536666] rtl8822ce_reset_bd+0x50/0x334 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.542087] rtw_hal_irp_reset+0x20/0x28 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.547290] rtw_halmac_rx_agg_switch+0x728/0x9a8 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.553272] rtw_halmac_dlfw+0x90/0xc0 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.558281] rtl8822c_fw_dl+0x4c/0x17c [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.563302] rtw_hal_fw_dl+0x20/0x34 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.568136] hal_read_mac_hidden_rpt+0x10c/0x32c [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.574063] rtl8822c_read_efuse+0x86c/0x1438 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.579726] rtl8822ce_aspm_config_l1off+0x40c/0x998 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.586009] rtw_hal_read_chip_info+0xc4/0xec [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.591668] rtw_pci_primary_adapter_init+0x13c/0xd4c0 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.598134] rtw_pci_primary_adapter_init+0xd30/0xd4c0 [rtl8822ce]
2024-04-23 21:04:14,648: [ 42.604598] local_pci_probe+0x44/0xd0
2024-04-23 21:04:14,648: [ 42.608500] pci_device_probe+0xb0/0x270
Fix: Initialize the lock before using it
Bug 3414392
Change-Id: I82b6f00b4a3599665b1a7194b5785a785d11501a
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3123003
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-04-24 08:54:32 -07:00
Revanth Kumar Uppala
8b529ece8f
rtl8822ce: Remove pr_debug redefinition
...
Issue: pr_debug is redfined to printk causing unwanted
log prints in dmesg
Fix: Remove pr_debug redefintion in rtl8822ce driver
Bug 3844473
Change-Id: I4177f8c3fa245a881cd35c206f8d3caa4b811b32
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3121450
(cherry picked from commit 564ce2a709 )
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3121447
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-04-24 08:54:27 -07:00
Shobek Attupurath
4e544f3b3a
rtl8822ce: Add Nvidia changes on v5.14.0.4-217
...
1. Add custom roam parameters
2. Add path for power file
3. Add source tree path for Makefile
4. Add section in Makefile for TEGRA platform
5. Update permissions from 0755 to 0644 for files
6. Move roaming debug prints to RTW_INFO
Bug 4320751
Bug 4556940
Bug 4568390
Change-Id: I842f150781652b3b54949aef8f982903c8d7991e
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3108666
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
2024-04-18 09:24:33 -07:00
Revanth Kumar Uppala
ed30eb40ff
rtl8822ce: Fix TLP/EAPOL/TXFIFO issues
...
Issue: Observing the EAPOL packet after a second in 1/10 roams
Observing TLP Malform packets on SC7
Observing TXFIFO error when connected to serving AP
Compilation errors for K6.x
Fix: Add exact base driver released by realtek with EAPOL/TLP/TXFIFO
fixes and also resolve some compilation errors.
DRIVERVERSION v5.14.0.4-217-g7a0377e61.20240410_COEX20240327-2727_beta
BTCOEXVERSION COEX20240327-2727
Bug 4320751
Bug 4556940
Bug 4568390
Change-Id: Ib02056ea388300dab2364b2bd6ceaf0a2096d3f4
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3115032
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Tested-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
2024-04-18 09:24:27 -07:00
Shobek Attupurath
9efa10a1d7
rtl8822ce: Move continuous prints to log INFO
...
Issue: As part of roaming, some debug prints are being continuously
spewed on kernel logs
Fix: Move roaming debug prints RTW_INFO
Bug 4563642
Change-Id: I7ef8c78241fd6e6c9caf96357a6fb9a6c4b4a555
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3097074
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2024-03-15 11:54:20 -07:00
Shobek Attupurath
4a31d7ed61
rtl8822ce: Add Nvidia changes
...
1. Add custom roam parameters
2. Add path for power file
3. Add source tree path for Makefile
4. Add section in Makefile for TEGRA platform
5. Update permissions from 0755 to 0644 for files
Bug 4213654
Change-Id: Ib160d11285c093efe04fc5cb932b770585ad6bb3
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3079869
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-03-09 03:40:00 -08:00
Shobek Attupurath
e3673f6890
rtl8822ce: Add driver with roaming support
...
Issue: RTL8822CE driver doesn't have active roaming
support and has issues with current roaming
algorithm
Fix: Add driver with active roaming enabled and fixes
issue with 5GHz and BT coex
DRIVERVERSION -
"v5.14.0.4-203-g4a9c85a0f.20240219_COEX20240125-2727_beta"
BTCOEXVERSION -
"COEX20240125-2727"
Bug 4213654
Change-Id: Icff3ece063518575fbcca3d8ea5be0b6314a567f
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3079863
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2024-03-09 03:39:54 -08:00
Jon Hunter
069d6bb3eb
drivers: Enable -Wmissing-prototypes
...
The compiler option -Wmissing-prototypes is being enabled globally in
the upstream Linux kernel and this causes build failures for various
drivers. The build failures occur because either the driver is missing
an include file which has the prototype or because the function is not
declared statically when it should be (ie. there are no external users).
Fix the various build failures and enable -Wmissing-prototypes to
prevent any new instances from occurring. Note that the only driver that
is not fixed at the moment is rtl8822ce due to large number of failures
and so build this with '-Wno-missing-prototypes' for now, which is not
different to how it was being compiled prior to this change.
Bug 4404965
Change-Id: Ie5572d23659e0346fa035d645d9043b0a6da5fdc
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3027488
(cherry picked from commit d5391a25ab )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3034644
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-12-18 09:11:10 -08:00
Shobek Attupurath
ee4493d7bf
rtl8822ce: Remove pr_debug redefinition
...
Issue: pr_debug is redfined to printk causing unwanted
log prints in dmesg
Fix: Remove pr_debug redefintion in rtl8822ce driver
Bug 3844473
Bug 4392253
Change-Id: I3aed85b8d61a764a74c59c2eef5f1f3dd60dd14a
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2813193
(cherry picked from commit 83a4b1f131209e357f80015fba386286f2888423)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2827187
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3024490
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-29 20:39:17 -08:00
Shobek Attupurath
4ae0f1a759
rtl8822ce: Remove unwanted prints
...
Issue: Realtek driver has unwanted kernel prints being dumped in
kernel logs
Fix: Remove unwanted kernel prints and move necesary prints to
debug
Bug 4273483
Change-Id: I0a7b0d15e9456f6bcf296cd24fe758950cc64888
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2977367
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2023-09-19 21:09:43 -07:00
Jian-Min Liu
719d3fa024
nvidia-oot: use TEGRA_SYSTEM_TYPE_ACK as ack macro
...
Use config TEGRA_SYSTEM_TYPE_ACK to control kernel builds only
base on the system type which also aliged to Makefile use.
Bug 4223187
Change-Id: I276208d180d1b3459eccb80d8fdb818f4507d3df
Signed-off-by: Jian-Min Liu <jianminl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2966713
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-08-24 23:32:04 -07:00
Jon Hunter
fa591a862a
net: wireless: realtek: Fix warnings
...
Building the realtek wireless driver generates various warnings due to
incorrect indentation or missing curly braces. For example, the
following warnings are seen ...
drivers/net/wireless/realtek/rtl8822ce/core/rtw_mlme.c: In function
‘rtw_drv_scan_by_self’:
drivers/net/wireless/realtek/rtl8822ce/core/rtw_mlme.c:3167:17:
warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
3167 | else
| ^~~~
drivers/net/wireless/realtek/rtl8822ce/core/rtw_mlme.c:3170:25:
note: ...this statement, but the latter is misleadingly indented as if
it were guarded by the ‘else’
3170 | goto exit;
| ^~~~
drivers/net/wireless/realtek/rtl8822ce/core/efuse/rtw_efuse.c:917:17:
warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
917 | if (i % 16 == 0)
| ^~
Fix the indentation and add the necessary curly braces to resolve these
warnings.
Bug 4190030
Change-Id: Ic13f1470043190ffd8401581cb97c908070c2940
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934697
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-07-14 20:21:42 -07:00
Laxman Dewangan
0ea187142e
Makefile: Add missing license files
...
Add lincese and copyright information on Makefile
where it is missing.
Bug 4078035
Change-Id: I4d44143c186a30aabacb706b7db6549131c6e4d6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2924242
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-22 23:39:23 -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
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
Revanth Kumar Uppala
59a116a6f8
rtl8822ce: Integrate driver with nvidia tree
...
Bug 3750163
Change-Id: I4378d6c2e105fa2d7f2d969866e9c3557ae1ff29
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2814817
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-29 04:12:33 -08:00
Shobek Attupurath
37d1d67c60
rtl8822ce: Update to _v5.9.0.3e_nv for k-5.15
...
Update driver to _v5.9.0.3e_nv for k-5.15
Version: v5.9.0.3e_nv-16-g319d9877b.20221101_COEX20200103-0000
Bug 3750163
Change-Id: Ic6b689c100b7e14215793be26943fa46964fc89b
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2814784
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2022-11-29 04:12:28 -08:00
Revanth Kumar Uppala
599d993c3d
rtl8822ce: Porting Base driver from K5.10
...
Porting Base K5.10 driver to K5.15
Version: v5.9.0.3e_nv-1-gdafe03f15.20220505_COEX20200103-1717
Bug 3750163
Change-Id: I5c46db2976addff08a73bd31dafd84c093702545
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2814761
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Sushil Kumar Singh <sushilkumars@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2022-11-29 04:12:23 -08:00