PD#SWPL-222902
Problem:
dsp need to reset when dsp hang
Solution:
add reset function when dsp panic
Verify:
a5
Change-Id: I3203af2530026098d929c32558abafcf328a17d5
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
PD#SWPL-221289
Problem:
In host driver, DSP can not send mailbox message to
ARM successfully, because the mailbox data structure
in the host driver callback is not right
Solution:
Correct the mailbox data structure in the host
driver callback
Verify:
S6/SC2
Change-Id: I67d3a78f3adee1da7db13704915aa31afeb96524
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
PD#SWPL-208510
Problem:
Google do not need wake up screen when ffv wake up, then
host driver would not exit early suspend mode. When katniss
do not record again, dsp side should start VWE but dsp would
not enter suspend mode.
Solution:
When katniss do not record again, audio hal would send mbox
to notice dsp, and then start VWE, if arm state is already
early_suspend, then check it dsp wakeup_flag is 1, then set
dsp to suspend state.
Verify:
s6 sc2
Change-Id: I962916e9d53a1ad0f7bb940d865a5ef1f93991f7
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
PD#SWPL-211590
Problem:
supports direct compilation using tools/bazel
Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.
Verify:
local
Test:
PB
Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-208157
Problem:
use kernel build ddk_module_headers
Solution:
use kernel build ddk_module_headers
Verify:
local
Test:
local
Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-208253
Problem:
can't patch to kernel for google
Solution:
modify in common_drivers
Verify:
SC2
Test:
boot and play video
Change-Id: If7adf4b52c10ec259f6ce4549f31b215895c828e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-206272
Problem:
fix cfi check failed when ffv enabled and VAD wakeup.
sched_yield is called when system waked up by mbox irq
during cpu idle, which would cause null yield_task to
schedule.
Solution:
fix cfi check failed when ffv enabled and VAD wakeup.
start work queue in mbox irq and send uevent after irq.
Verify:
local & PB
Change-Id: I07735c7ec8c97c6f51467c73b73e84347113c214
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
PD#SWPL-206767
Problem:
when used dsp_util load dsp firmware, it copy dsp firmware name to
fname0,but A5 start dsp from sram, it load firmware use fname1, so
A5 cannot load dsp firmware
Solution:
when dsp start from DDR, copy dsp firmware name to fname0, start from
SRAM copy dsp firmware name to fname1
Verify:
A5
Change-Id: I58ac9bdb619ea27d558b5bf4237817b120c66ec0
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
PD#SWPL-206164
Problem:
ddk_module cannot find Kconfig and Makefile in sub package
Solution:
add Kconfig and Makefile srcs to common kernel srcs
Verify:
local
Test:
local
Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-203492
Problem:
g12a/sm1 not have dsp and not malloc host_dsp struct,
but used host_dsp struct in probe, so caused kernel panic
Solution:
not use host_dsp in g12a/sm1
Verify:
g12a
Change-Id: I9a4856de8fbb0c00d9fe6d4832e17645fae31137
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
PD#SWPL-195997
Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.
Solution:
add BUILD.bazel and modify build script
Verify:
sc2
Test:
PB
Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-201509
Problem:
s6 dsp kernel6.12 bringup and some cl is missing compared to kernel5.15
CL number:
497805:SC2 ffv dsp flow modification
496874: object already free
509562: add shutdown function
469071: kernel support DSP suspend resume with ffv
513144: optimize DSP ffv to enter dsp power down in early suspend
510711: optimize DSP ffv to send uevent to audio hal
Solution:
kernel6.12 code matches it with kernel5.15 and synchronizes the CL
missing from kernel6.12
Verify:
s6
Change-Id: I16f853fe250545aa165df022802d0337280354f4
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
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>
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>
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>
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>
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>
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>
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>