The use of kmap() is being deprecated in favor of kmap_local_page()
where it is feasible. With kmap_local_page(), the mapping is per
thread, CPU local and not globally visible.
binder_alloc_clear_buf() is a function where the use of kmap_local_page()
in place of kmap() is correctly suited because the mapping is local to the
thread.
Therefore, use kmap_local_page() / kunmap_local() but, instead of open
coding these two functions and adding a memset() of the virtual address
of the mapping, prefer memset_page().
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220425175754.8180-2-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 368205746
Bug: 365876437
(cherry picked from commit 26eff2d66a)
Change-Id: I7bc041db662ee1e8758c173861b2229d6ad8eb1e
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
The use of kmap() is being deprecated in favor of kmap_local_page()
where it is feasible. With kmap_local_page(), the mapping is per
thread, CPU local and not globally visible.
binder_alloc_copy_user_to_buffer() is a function where the use of
kmap_local_page() in place of kmap() is correctly suited because
the mapping is local to the thread.
Therefore, use kmap_local_page() / kunmap_local().
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220425175754.8180-3-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 365876437
Bug: 367895677
(cherry picked from commit 1d625960e4)
Change-Id: I49739365cf5dcf584be1aab0c93848aa9ce886a8
Signed-off-by: Carlos Llamas <cmllamas@google.com>
PD#SWPL-169224
Problem:
ntfs3 fs_umode_to_dtype not in abi list
Solution:
ntfs3 fs_umode_to_dtype not in abi list
Verify:
local
Change-Id: Ibf190585f7606539b5df98151e8dd617ad66c9da
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-170009
Problem:
Synchronous run queues cause eMMC performance degradation.
Solution:
Asynchronous Run work queue.
Verify:
T3
Change-Id: I214f2d813373b46fd5fc64f050e00a395dd35828
Signed-off-by: Long <long.yu@amlogic.com>
PD#SWPL-153208
PD#SWPL-131346
Problem:
1.When the memory is in short supply, if the
order is too large, the memory will not be
allocated at one time, which will increase
the allocation time.
2.Modify in vb2 did not following gki2.0
Solution:
1.According to the degree of memory shortage,
adjust the size of the order, so as to allocate
memory in small amounts and multiple times to
improve efficiency.
2.The modify in vb2 only for versions prior to
androidT and do not need to follow gki2.0. Now
use the new config to pass gki check.
Verify:
ohm
Change-Id: I4be66b8b06f9870041afefe9506d1e9f480c0bdd
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
PD#SWPL-150301
Problem:
Fdtoverlay cann't support remove unnecessary dts node.
Solution:
Add __removenode__ key work to support the function.
Verify:
local
Change-Id: I3819a82663a90ae7a4da1d9c30c990af2d3a5fa0
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
This reverts commit 3a94958894.
It conflicts with scheduler changes going into 6.3-rc1 so it must be
removed. If it is still needed it can be brought back after 6.3-rc1 is
merged into android-mainline.
Bug: 157906395
Cc: J. Avila <elavila@google.com>
Cc: Stephen Dickey <quic_dickey@quicinc.com>
Cc: Lee Jones <joneslee@google.com>
Change-Id: I9870034226407bc811db9c36802f0446289f13f0
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
PD#SWPL-106598
Problem:
Support making dtb-deb.
Solution:
Support making dtb-deb.
Verify:
local
Change-Id: I3cb8e8d5666f073468e55e4a4e8862f12e60b15f
Signed-off-by: yi.liu <yi.liu@amlogic.com>
PD#SWPL-130061
Problem:
Need to support trusted key for FBE.
Solution:
Hook trusted key to fscrypt
Verify:
1. fscryptctl(add_key)
2. on SC2(ah212)
Change-Id: Ie40df4ec2506f4fc4d6f7c2a52863db6e3bc661c
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
PD#SWPL-135783
Problem:
1. need use regulator to delay dvfs voltage set;
2. for boot to kernel vddcpu/vddee voltage
change to max problem;
Solution:
1. add dvfs delay time at s7 pxp;
2. add init voltage at txhd2 trunk;
Verify:
build pass
Change-Id: I877e9affaced264b57c887c05f4545ad22816789
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
PD#SWPL-119703
PD#SWPL-160981
Problem:
1.support CQE-v1
2.support CQE-v2
The CQE v1 does not support placing tasks in memory
and does not support data encryption.
Solution:
support CQE-v1 and v2
Verify:
T5m
Change-Id: Ifa79b3365259d4423f526fef902f3dc60eeed62f
Signed-off-by: Long <long.yu@amlogic.com>
PD#SWPL-119162
Problem:
APU should not be seen except audio
Solution:
add APU support
Verify:
t5m
Change-Id: I03828c60962a16cdf801c8ddabeb7e05b4a4f232
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-128975 SWPL-118242
Problem:
1.rdk kernel 5.15 bt not support deep sleep wake-up
2.rdk kernel 5.15 need user confirm
Solution:
support it
Verify:
T5W T3X
Change-Id: Id900189d0a1b66b4c42cf0ca2eb6a9e479b9440c
Signed-off-by: lei.chen <lei.chen@amlogic.com>
PD#SWPL-120491
PD#SWPL-129754
PD#SWPL-155674
PD#SWPL-183416
Problem:
1.wrong select onfi mode
2.erase flash error during OTA upgrade
3.strncmp can't match full id 01h,DCh,00h,05h,04h(S34ML04G300BHI00)
and 01h,DCh,00h,1Ah,00h(S34ML04G300TFI000)
4.mtd_device_parse_register panic when parse_mtd_partitions return -EPROBE_DEFER
Solution:
1.get onfi mode from id table
2.change the check way of badblock
3.use memcmp to compare ID memory instead strncmp
4.nvmem_unregister otp_user_nvmem/otp_factory_nvmem if them existing
Verify:
1-2:s4
3:AT301_T962D4-K35E(1.5G) #256
4:BR309-T950D5_SOCKET #48
Change-Id: Ie747ceb95f1045c2acaaf2afb6862c9b05d36d8b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-114902
Problem:
1. AudioBridge module needs to be added to kernel 5.15.
Solution:
1. Adjust the uac related files that AudioBridge depends on.
Verify:
A113L AD403 Board
Change-Id: Ibd32c020c4feea085c65fb6c781467ff87c83b67
Signed-off-by: wenlong.zhu <wenlong.zhu@amlogic.com>
PD#SWPL-116004
PD#SWPL-157951
PD#SWPL-168212
PD#SWPL-169271
Problem:
1.squashfs don't handle bad block
2.partition size returned from mtdblock
is incorrect
3.mtdblock io performance
4.mtdblock report partition size wrong when meet bad block
5.wrong poniter reference is used in container_of()
Solution:
1.mtdblock handle bad block
2.fix mtdblock size
3.mtd disk block size set to mtd writesize
4.correct the decrease size when meet bad block
5.fix the wrong poniter reference
Verify:
s4_aq2432
AT301_962D4-K35(1.5G) #256
C3_C308L_AW419_SOCKET_V01_R05
s1a_bg201
Change-Id: Icbaec2b6679727ebe0d12fd92bf4d21cc4d5f3fe
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
PD#SWPL-181881
Problem:
S6 need to support multi2
Solution:
Add api for multi2
Verify:
Verified on bl201
Change-Id: I132e295efd808eed0c360ae2362dfddcdd70f56a
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
PD#SWPL-177903
Problem:
Demux driver needs to manage secure es data with dma buffer
Solution:
Update demux driver to support dma buffer
Verify:
Verified on bl201
Change-Id: I9e721bb33fc4ea08598e62fe124e8af4ca2074f0
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
PD#SWPL-156400
PD#TV-109289
Problem:
SET_FRONTEND fail when use SYS_DVBC_ANNEX_B.
Solution:
add support SYS_DVBC_ANNEX_B and C in dvbv3.
Verify:
T5D.
Change-Id: I48f5901d37c05b1cc9eaa43e63af7e49361e93b5
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
PD#SWPL-169716
Problem:
provide ioctl to clear dmx cache
Solution:
provide ioctl to clear dmx cache
Verify:
verified at T5W
Change-Id: I3968204db100248664c2944ed893c959bef4618a
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
PD#SWPL-110726
Problem:
high level need know es status
Solution:
notify the info to high level
Verify:
not verified
Change-Id: I60c9873d75fd2c8dc6399fdc79dcbcc073f7c63f
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
PD#SWPL-100942
Problem:
should separate adapter from dvb-extern
Solution:
add adapter in dvb-core module
Verify:
verified by T + ohm
Change-Id: I305329f8d97d1a6429f2bb6600b2129ac149d90d
Signed-off-by: min.yang <min.yang@amlogic.com>
PD#SWPL-98901
Problem:
cant not modify uapi/linux/dvb header file.
Solution:
move the modification of uapi/linux/dvb to the new header file.
Verify:
no verify.
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
Change-Id: I392437e009fa19e6faff0eb389bf0c3c127fbc69
PD#SWPL-89132
Problem:
use dvb-core to ko
Solution:
put aml modification to dvb-core
Verify:
not verified, compile pass
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: I8e63da3d2b7a89538aef180b6e20f40c898445c6
PD#SWPL-141158
Problem:
network IP address loss after resume
Solution:
optimize eth suspend/resume process to resolve network IP address loss
after resume
Verify:
T963D4-AY301-K8E#097
Change-Id: I919e845bba29885b62bbae40db2a662861ab85ab
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
PD#SWPL-141159
Problem:
network IP address loss after resume
Solution:
add delay and re-enable MAC RX/TX after PHY restart auto-negotiation
Verify:
T950S-BE311-X5-X8-REF#020
Change-Id: I93328d774fb51379070e8a826ad530d537b0221c
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
PD#SWPL-139055
Problem:
device_init_wakeup will cause NETLINK
Solution:
not switch wol status anymore
Verify:
QA_verify with T7C
Change-Id: Ic873b4846c8fe9558b38a14b5a954f1591fa7f78
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-138314
Problem:
restart network will involve too much
problem, remove this flow, left only for txhd2
Solution:
remove network restart when resume
only txhd2 will use this function
Verify:
BE311
Change-Id: Ib8773adf20f0176b053fc22802426725d83d2ccc
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-138487
Problem:
add new flow for txhd2
Solution:
add new flow for txhd2
Verify:
BE311
Change-Id: Id8a839b8fdb53b58d2cbcb7651b58156ecb14d92
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-128836
Problem:
txhd2 resume eth0 down
Solution:
txhd2 use new pll
Verify:
be311
Change-Id: Iaf079569e3d25006aaa3dcd824658be383d35b9f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-117003
Problem:
skip the new flow in common14
Solution:
common14 add new flow for ethernet,
which our phy not support yet.
Verify:
verify with T3
Change-Id: I297f6b83523d95410f3333c3e216d9dbadc644bb
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-114869
Problem:
wol may not work normally in some special case.
Solution:
complete 2 wol patch
1.come from https://scgit.amlogic.com/#/c/293893/
2.hold sometimes after resume
Verify:
QA_verify with oppen
PD#SWPL-114869
Change-Id: I7557b4946e8b3ac455f2c28e88a6c1563a0cb4ae
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-114869
Problem:
phy not work atfer resume sometimes
Solution:
restart ethernet after resume
Verify:
QA_verify with oppen
Change-Id: I88bac8f0c24f0e2890b24a1508e05e74ed667b5c
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-106998
Problem:
c3 mini defconfig built error
Solution:
Fixed c3 mini defconfig built error
Verify:
C3 aw402
Change-Id: Idbbe53d8775f82bfff880ac3ce65b57574cf15da
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
PD#SWPL-110094
Problem:
eth interface has not closed during shutdown
Solution:
add shutdown function
Verify:
T963D4-AY309#custom verify
Change-Id: I235bac19eb7771b9a92eaa143986bdf47d19bbcd
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>