PD#RSP-6352
Problem:
Need to optimize code
Solution:
Modify code
Verify:
Android U + S7
Change-Id: I18d32e1a922479761766c9ca0f9e078898db0115
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
PD#RSP-6352
Problem:
Need to simplify code
Solution:
Update code
Verify:
Android U + S7
Change-Id: I0116e5e3044899f111c63951fa6ddda4c63a9fb3
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
PD#RSP-6350
Problem:
Multiple threads updating the same global variable causes data error
Solution:
Lock global variables
Verify:
Android U + S7
Change-Id: Id65a397c4bcb6566b6f35c143f4391913b9ba996
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
PD#SWPL-100275
Problem:
Dynamic SHM will be enabled after TDK3.18, but some platform
not support TDK3.18, so compatible different platform.
Solution:
Compatible Dynamic SHM for different platform
Verify:
AndroidU + S7
Change-Id: I57a7f6a557ecf11e085027e0c6338767b0ee5ce0
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
PD#RSP-5982
PD#SWPL-101942
Problem:
logger and shm will be reused if logger contained in shm
Solution:
carve out logger memory if logger is contained in shm
Verify:
AndroidU + sc2
Change-Id: I8d6e9ea837f5e664bc5a41024bb1260a72017a0f
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
PD#SWPL-189562
Problem:
Memory allocated by devm_kmalloc does not set the space to 0.
Solution:
Use devm_kzalloc instead of devm_kmalloc.
Verify:
S6/BL201
Change-Id: I7bc9d5a62596c2a25b45cdd3066afb1fd48aedc0
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-189562
Problem:
PDD needs to be enabled by default and print a line
of log to the serial port when triggered.
Solution:
Added pdd_monitor driver, which mainly implements
the following functions:
1. Print log to the serial port when triggered.
2. Provide a simple interface for user space.
Verify:
S6/BL201 T6D/BR301
Change-Id: I2b02847049994ab7bb02c1d24126949df23b30e1
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-177668
Problem:
If the interval between two sampling points is more than 100 milliseconds,
the sampling value may not change with the actual voltage.
Solution:
A workaround is to enable ADC_EN before sampling and disable it after
sampling is completed.
Verify:
S6/BL201 S7D/BM201
Change-Id: I71477e446afc584acdf98bfa137c02116bf121c6
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-172971
Problem:
Preparing for S6.
Solution:
Put the register initialization value into DT.
Verify:
S7D/BM201
Change-Id: I83d525b8509527439122ae415df38fddc2de9a09
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-171477
Problem:
Share the same driver with S7D.
Solution:
Enable the new power down detection driver.
Verify:
S7/BH201
Change-Id: Ifa08c2d87a410732a9f67fbde9b1699a8b1410d4
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-169074
Problem:
Add a new power down detection driver.
Solution:
1. A new amlogic_saradc_common driver has been added for register mapping.
2. A new independent power-down detection driver has been added.
Verify:
S7D/BM201
Change-Id: I2b72e24da9e7dc288e6df7351c65a50980df3748
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-164728
Problem:
Optimize driver.
Solution:
1. Use interrupts to wait for sampling to complete.
2. Follow upstream advice and remove use of mlock.
3. Key parameters are configured on DTS.
4. Add self-test interface.
5. Add average sampling interface.
6. Add sampling voltage interface.
Verify:
S7D/BM201
Change-Id: I81f7f8bc8e45c6ca9ec365c5af8ed09544d5cf4b
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-152407
Problem:
S7 Silicon Bringup.
Solution:
Modify the calibration method to be bound to the specific SoC.
Next, the S7 will use different calibration methods.
Verify:
S7/BH201
Change-Id: Ica4bbc55bd0a755f166aee94d56a96da8264551b
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-152407
Problem:
Channel 7 is no longer fixed as a test channel, so some
variables need to be renamed.
(S7 Silicon Bringup)
Solution:
Some variables have been renamed in the following format:
- chan7_mux -> test_input
- chan7_vol -> test_vol
- set_ch7_mux -> set_test_input
Verify:
S7/BH201
Change-Id: Ia9141b9e16d42c60b520a8a6b32cdbb22f29db41
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-185599
Problem:
use vendor hook install of kprobe.
Solution:
use vendor hook install of kprobe.
Verify:
sc2.
Change-Id: I5bd5379cae56d4ad3976027571bb129790b24f1b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-193143
Problem:
The regulator dts is not configured.
Solution:
1.Add the corresponding changes to the dts.
2.config A5/SC2/SM1
Verify:
SC2
Change-Id: Idcec2705a5e51e801c85831479e95a65ab3ebdb6
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
PD#SWPL-192783
Problem:
insmod rtc will reads alarm and converts it to standard time.
UBSAN detects that the alarm is converted to the standard time and
a data overflow warning is generated
Solution:
fix code
Verify:
sc2
Change-Id: Ia9aacddfa97d15e2019d927cc54747fee539675b
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
PD#SWPL-192838
Problem:
kernel 6.12 not support lowram 4k build
Solution:
add init dts for lowram 4k build
Verify:
local test ok
Change-Id: I8437f0857dcc343312bea3d82d9a75ab52f4897f
Signed-off-by: feng.zhang <feng.zhang@amlogic.com>
PD#SWPL-175745
Problem:
add build gki version info in cpu info
Solution:
add build gki version info in cpu info
Verify:
local
Change-Id: Ia690f43867e3b1aaff1c1e59c4634eba71cfc448
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-152938
Problem:
When the button is pressed, the LED will flash.
Solution:
New function.
Verify:
SC2/AH212
Change-Id: I4c4ff83b4b23a138b503647b20b5af09a6fb4336
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-189563
Problem:
When the kernel is configured to feed the watchdog
in user space, and if the watchdog is enabled
in U-Boot, the driver probe will disable the watchdog.
Solution:
Synchronize register status to driver.
Verify:
T6D/BR301
Change-Id: I3e06113bf468a8b461e1c3f76b5c0d14a6df83d9
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-184668
Problem:
Adjusting the watchdog coverage.
Solution:
Put the watchdog's suspend, resume, and shutdown functions
into syscore to cover a wider time period.
Verify:
T5M/AY301
Change-Id: If3d40b8a73d44e5e76d94c1d4b1aa90a6b19ef47
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-145758
Problem:
Need to support hibernate mode.
Solution:
Save registers during freeze and restore these
registers after waking up.
Verify:
S5/AX208 T7/AN400
Change-Id: Ief3192aaec70aceef31cff28904c728d6f376cfc
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
PD#SWPL-191769
Problem:
NULL pointer dereference
Solution:
Deadlock may happen and cause getting pointer
with error, so return it again.
Verify:
sc2
Test:
DRM-OSD-81
Change-Id: Icd61e67542410f072d91f2279c82593137d65ea2
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
PD#SWPL-191832
Problem:
Not cleaning clusterdata[i].cpus resulted in the initial value of this
cpus being a random value, which triggered a null pointer when
cpufreq_online occurred.
Solution:
Clear clusterdata[i].cpus during initialization.
Verify:
sc2_ah212
Change-Id: If33cf84071a93377a22227964d12522f983032b2
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>