Commit Graph

14 Commits

Author SHA1 Message Date
Liming Xue 7483c429d0 host driver: synchronize fixed code from kernel5.15 [1/1]
PD#SWPL-192261

Problem:
need synchronize fixed code from kernel5.15 to kernel6.12

Solution:
fixed

Verify:
sc2

Change-Id: I9247afced7ae103ca84cda95a962622c5511dfd6
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-11 22:06:32 -08: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
Liming Xue f22a30471b host: fix misc device driver data issue [1/1]
PD#SWPL-175244

Problem:
misc device store in device's drv data
host driver rewrite this data

Solution:
Not rewrite this data

Verify:
sc2

Change-Id: Ice5f14dba78330e36d707f39866d482711a0a620
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-06-28 11:29:49 +08:00
Liming Xue 7fab25a8db android U: kernel6.6 sc2 autotest failed [1/1]
PD#SWPL-170698

Problem:
sc2 not have dsp,resources have been released,but also register misc,
so When sc2 autostart,it accesses the /dev/hifi4dsp0 node,
so causing a panic in load firmware

Solution:
when board not have dsp,resources have been released,then return
negative value

Verify:
sc2

Change-Id: I0c453f2a17cf2772ebf0af643c3a3ccb2880aa4e
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-06-27 12:12:57 +00:00
Liming Xue 79d8639707 dsp: kernel6.6 bringup branch modify smc Parameters [1/1]
PD#SWPL-169092

Problem:
dsp start/suspend/remap smc uses different cmd
but there are dsp functions, so need to use the same cmd together

Solution:
dsp start/suspend/remap smc cmd uses the same

Verify:
sc2

Change-Id: I737343bf87a82d42a1a545fca15e77a0ce216bdf
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-06-27 12:12:23 +00:00
Liming Xue 9f46374afc dsp: sc2 bringup [1/1]
PD#SWPL-160403

Problem:
sc2 kernel6.6 dsp bringup

Solution:
sc2 kernel6.6 dsp bringup

Verify:
sc2

Change-Id: I8b31abb5094fbb463fd259b81ac8af11d5a4638f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-06-27 07:42:34 +00:00
shuai.liu db0b494c66 host: dsp driver support shm for sram [1/1]
PD#SWPL-171248

Problem:
arm cannot access sram address space.

Solution:
1. add host driver support for sram.
2. remove sram related cache operations.

Verify:
A113X2 AV400 Board.

Change-Id: Ief95ab9071c9aee230492a098a041c25b7ba4203
Signed-off-by: shuai.liu <shuai.liu@amlogic.com>
2024-05-29 01:59:46 -07:00
Liming Xue 727938a93e dsp: kernel6.6 modify smc Parameters [1/1]
PD#SWPL-169092

Problem:
dsp start/suspend/remap smc uses different cmd
but there are dsp functions, so need to use the same cmd together

Solution:
dsp start/suspend/remap smc cmd uses the same

Verify:
a5/sc2

Change-Id: I5efae086e3105445c37edece5b56d3ccb58e4090
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-05-15 18:51:01 -07:00
Wanwei Jiang c73f5afdef module: disable module_param [1/1]
PD#SWPL-151470

Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.

Solution:
disabled all module parameters

Verify:
a4 a5

Test:
none

Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-09 19:58:31 +08:00
Liming Xue 6930aef5a5 dsp: A5 kernel6.6 bringup [1/1]
PD#SWPL-149460

Problem:
A5 kernel6.6 dsp bringup

Solution:
A5 kernel6.6 dsp bringup

Verify:
A5

Change-Id: Ibeabe4507f715a82c58c8f32068b04bf4ee8ad59
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-01-04 23:47:02 -07:00
Liming Xue 61924ba6ba dsp: resolve dsp reconfiguration bugs [1/1]
PD#SWPL-142319

Problem:
1.a1 suspend dsp power off
2.The dsp bin name is arbitrary, when dsp_util is used,
forward incompatibility

Solution:
1.Fix device init  wakeup
2.The dsp bin name is arbitrary, when dsp_util is used

Verify:
a1/t7/t7c

Change-Id: I80001e2166a5fae8c72f5ff30b45ea1d319bbcac
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-10-23 02:29:13 -07:00
Liming Xue 1620ec39d0 dsp: add wfi [1/1]
PD#SWPL-99041

Problem:
dsp stop can not access wfi

Solution:
add wfi

Verify:
c1/c2/sc2

Change-Id: I10f6089501a005adf10bbe5c92ad3e95c2fb811a
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-09-28 05:59:05 -07:00
Liming Xue d70741d666 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-09-25 00:13:42 -07:00