Commit Graph

23 Commits

Author SHA1 Message Date
Yu Tu 280f30d952 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Ie513da1b53a560bf4474e9077dbba82af5a5edf8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-30 22:53:48 -07:00
Yu Tu 75d44dfe97 pcie: sc2 pcie bringup kernel6.12 [1/1]
PD#SWPL-188391

Problem:
sc2 pcie bringup kernel6.12

Solution:
sc2 pcie bringup kernel6.12

Verify:
sc2_ah212

Change-Id: Ie220eb341e98bf27f51b7311afa0c06eaa9b00ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-16 04:58:46 -07:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Wanwei Jiang 73604c9f07 bringup: porting basic modules [1/1]
PD#SWPL-183292

Problem:
porting basic modules

Solution:
1. porting basic modules(build pass)
2. porting common patches

Verify:
local

Change-Id: I2941231c1c3a4225adea7133d9a7d0eb8f438a73
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-11 15:17:02 +08:00
Yu Tu 2d6840b2fa pcie: port pci driver for 6.6 [1/1]
PD#SWPL-150072

Problem:
need support pcie drivers

Solution:
add pcie compatibility for this version

Verify:
sc2

Change-Id: I5ca62249643ca2570d896e0feed6adfbf5a77f40
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-12-29 14:35:00 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
Yu Tu 49d6c9d77a pcie: s5 pcie with W2 run GNE1 crash when resume [1/1]
PD#SWPL-147874

Problem:
s5 pcie with W2 run GNE1 crash when resume

Solution:
add delay so wait for phy and host work well when resume

Verify:
s5

Change-Id: Id528a9875f968cddadcbe1ca6e5406d4db1cafbf
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-11-30 16:07:34 -07:00
Yu Tu 23a3a7bd83 pcie: add not msi interrupt judge logic [1/1]
PD#SWPL-144384

Problem:
pcie wifi interrupt too many lead to system crash

Solution:
add not msi interrupt judge logic

Verify:
S5

Change-Id: I1d6e420ce48e2e74d787349ff31dc632d18c94bb
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-11-03 02:47:21 -07:00
Yu Tu bbd42b3933 pcie: resume lost msi lead to wifi not work [1/1]
PD#SWPL-143010

Problem:
common code lose patch [815953dc2011ad7a34de]

Solution:
pcie host workround

Verify:
sc2

Change-Id: Ie115ae9f8565816b52d9b77f8a588114e45fdb02
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-10-19 23:53:55 -07:00
Yu Tu 416fda1440 pcie: add workround port for some quirks pcie device [1/1]
PD#SWPL-141074

Problem:
Some pcie devices are not designed according to the conventional pcie
specifications, which is weird. So need provide port for workround.

Solution:
add workround port

Verify:
s5 and sc2

Change-Id: I236be95d2a9a879bf9ea85e22344501e60e68dac
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-10-12 20:53:46 -07:00
Yu Tu 8bc712d38a pci: clean coverity error [1/1]
PD#SWPL-134414

Problem:
need clean pci driver coverity error

Solution:
add check return value

Verify:
compile is ok

Change-Id: Icc95d13c4171746729636829ed371eee1e76def7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-08-15 08:09:07 -07:00
Yu Tu e727c8dec3 pci: pcie with ssd suspend and resume cause crash [1/1]
PD#SWPL-132654

Problem:
pcie with ssd suspend and resume cause crash

Solution:
modified suspend and resume process

Verify:
t7c

Change-Id: Iffd7db7038aba4b1f6574e4759436ec19345f246
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-07-24 05:08:30 -07:00
Yu Tu 445d46ef13 pcie: pcie suspend some scene failed [1/1]
PD#SWPL-129047

Problem:
pcie suspend some scene failed

Solution:
modified suspend condition judgment

Verify:
t3x

Change-Id: I3618f273420a5593da5b6af4c5b8b9694f95087c
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-06-24 21:24:25 -07:00
Yu Tu 88b89de0d1 pcie: configure pcie phy for temperature compensation [1/1]
PD#SWPL-124477

Problem:
The pcie of a high or low temperature cooker causes the system
to crash

Solution:
configure pcie phy for temperature compensation

Verify:
s5

Change-Id: I78299d0eae03cb179cec2559053612033786d074
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-05-23 03:14:14 -07:00
Yu Tu 5c8bc47b80 pcie: bringup t3x pcie [1/1]
PD#SWPL-117209

Problem:
t3x need to support pcie

Solution:
add pcie driver

Verify:
t3x_bc309

Change-Id: I626241fc5f266e929e59a7bceb6e4ebeaf7d35e6
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-05-18 21:08:39 +08:00
Yu Tu 77b03370e5 pcie: pcie module name not match [1/1]
PD#SWPL-115979

Problem:
pcie module name not match

Solution:
modified to init name

Verify:
t7

Change-Id: I873fbc2215de21ed5d64f2ba26ae82e7ec26ff46
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:04 +08:00
Yu Tu b5343fb7c2 pcie: s5 pcie suspend/resume linkup timeout error [1/1]
PD#SWPL-114280

Problem:
s5 pcie suspend/resume linkup timeout error

Solution:
modified linkup suspend check

Verify:
s5_s928x_ax208

Change-Id: I4b1a7dc2b18cb8bfb66932d4022b104d92bcfc50
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:04 +08:00
Yu Tu 908927c13e pcie: add pcie driver for s5 [1/1]
PD#SWPL-108762

Problem:
need bringup s5 pcie

Solution:
add s5 pcie driver

Verify:
s5_208

Change-Id: Ifc3430a5b01486faab24ef4222fb74ccaa3fd0ec
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:03 +08:00
Yu Tu 6602140f32 pcie: pcie devices use fake smmu protect [1/1]
PD#SWPL-107543

Problem:
pcie devices need tee memory protect

Solution:
add pcie devices use fake smmu protect

Verify:
t7

Change-Id: I396ea32fa42902dd7f0231f9d13df592b6ca94dd
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-01-06 08:17:00 -08:00
Yu Tu 64f06cb58a pcie: add pcie devices tee memory protect [1/1]
PD#SWPL-104320

Problem:
need add pcie devices tee memory protect

Solution:
add pcie devices tee memory protect

Verify:
t7,sc2

Change-Id: I7a20a51c2b27456f6739b931d57963806da8e1a9
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2022-12-07 04:10:19 -07:00
Yu Tu ff1edbaeee pcie: t3: add pcie driver support [1/1]
PD#SWPL-97879

Problem:
need support pcie for t3 chip

Solution:
add support pcie driver

Verify:
T982

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: Ifb5ea0d54ee66474d4ab12f7549cdeff386d2816
2022-12-02 14:04:54 +08:00
wanwei.jiang 087c5c79c2 gki: modify select to depends on [1/1]
PD#SWPL-88872

Problem:
modify select to depends on

Solution:
modify select to depends on

Verify:
SC2

Change-Id: I9e295d17f5c03a6c49b001c18129fc1bc0eaee69
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:42 +08:00
Yu Tu d4e08c3c15 pcie: add pcie driver [1/1]
PD#SWPL-83304

Problem:
need pcie driver for sc2

Solution:
add pcie driver

Verify:
sc2

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: Ie2b31847791904ce03e81af8992b0ddcd77b1042
2022-09-07 20:06:42 +08:00