PD#154260: script: amlogic: add new build script
Add new kernel build script.
mkimage_32.sh for arm
mkimage_64.sh for arm64
Usage: mkimage_xx.sh [-k def] [-d dts | -p chip] [-f rootfs] [-c] [-h]
Examples:
# build kernel using default meson32_defconfig
mkimage_32.sh
# build kernel using default meson64_defconfig
mkimage_64.sh
# build kernel using defconfig specified by the option -k
# with full name.
mkimage_64.sh -k meson64_defconfig
# build all dtb for the board with prefix or suffix <p320>
# specified by the option -d
mkimage_64.sh -d p320
# build all dtb for the chip with prefix <txl>
# specified by the option -p
mkimage_64.sh -p txl
# make distclean and build kernel and dtb
mkimage_64.sh -k meson64_defconfig -d p320 -c
# make distclean
mkimage_64.sh -c
# print help
mkimage_64.sh -h
Change-Id: I617a2546a40ab74e741706f4625afb924421953a
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
PD#149771: add module version support
A module compiled for one kernel won't load if
you boot a different kernel. If you're having
trouble loading the modules because of versioning
errors, compile a kernel with modversioning turned off.
Change-Id: Id00f10af84426a8f26a3439796d2de56e28fb9c6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
PD#157069: skip SUBLEVEL and crc when ver check durning insmod
When CONFIG_MODVERSIONS enabled, vermagic and crc are checked
durning insmod.
Change-Id: I6eb7bdda5b771afa754f7b783a7bbfe1be7cedd1
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
PD#157133: USB: add mass storage function
1. add udisk partition to s400 emmc dts
2. add mass storage config
Change-Id: I8e90403c2803e216b7f11a420c5087b3ef859746
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
PD#156770: config: disable nfs client option
this attempt to make android 8.1 compatible
Change-Id: I47d84695df00a9ab83a203565f3dd3cfd1a0159a
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
PD#156770: config: enable BFP option
this attempt to make android 8.1 compatible
Change-Id: I2b0b91fe33902fc5680ffec62f2dc205c0b7c5f3
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
PD#157034: enable hw random generator for meson AXG
Change-Id: I0012465da1e7d22fc04a61de374277b2d6af32fd
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
PD#156335: nand: add a error handler in aml_nand_add_partition
add a error handler in aml_nand_add_partition to avoid the endless
loop, when dts config a over size partition.
Change-Id: I8375990283bc6b36a09e09a37d041ebd929990d6
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#157034: enable hw random generator for meson AXG
Change-Id: Ie72368b25a1d028627d4212d31b49da33be3185f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
PD#155696: if have reserved used reserved first
so we can init&play fast.
Change-Id: Id3c5319acef88d373ac1bf76bbb26163ab0c12d5
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
PD#154862: nand: add three new slc-nand support
According to new customer demand, we need add this three new nand into
our code:
1. GD 9FU1G8F2AMGI
2. Winbond W29N04GVSIAA
3. Samsung k9f2g08u0d
Change-Id: Ibb098fa79edca50613bbafb3ebcd706a86c46c3e
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#155696:
1. if no res & have cma_res, may crashed on
codec_mm alloc.
2. if cma res is not set the has_res, some module may alloc failed
on no res.
3. scatter memory fast wait used complete.
Change-Id: I2104ec948762ca587d0c90f221c811de6bc4d3c4
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
PD#152261: clk: update clk total number
add bt656 clk, but total number not update
Change-Id: I24f2f17e4e773a883bab3f564144a49768fc16d5
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
This reverts commit fe912ab314899e3add2993c630c15d28638a3348.
This reverts part commit of ARM and reserved original commit in upstread.
Change-Id: I4e0f39bee86342cd89aa2fb8f10c81f92e4b1985
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
PD#154595: fixed multi ch pcm out to IEC raw out mute issue
Change-Id: I2a6643975bea0970e9fecbd59cc6282886eacdbb
Signed-off-by: LianLian Zhu <lianlian.zhu@amlogic.com>
PD#156236: mm: correct page stat API
Using mod_zone_page_state instead of __mod_zone_page_state to
avoid SMP warning of __this_cpu_preempt_check
Change-Id: I3f95768beabf5d330d13189d189b32aef39448cd
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#154260: mm: show more informations when catch user fault
1. show pfn for all registers;
2. show memory around all registers;
3. show vma maps around pc/lr.
Change-Id: Ibc92f3aea2727c749c3e865495ca7a4920d4e7a0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#156236: mm: fix deadlock due to too_many_isolated
When CMA allocating, allocation task may be dead lock
in following backtrace. So add a count for CMA isolated
to avoid this case.
[<0000000000000000>] __switch_to+0x98/0xac
[<0000000000000000>] congestion_wait+0xa0/0x188
[<0000000000000000>] shrink_inactive_list+0x4a0/0x528
[<0000000000000000>] shrink_node_memcg.isra.71+0x684/0x714
[<0000000000000000>] shrink_node+0x74/0x1e0
[<0000000000000000>] try_to_free_pages+0x1bc/0x4c0
[<0000000000000000>] __alloc_pages_nodemask+0x57c/0xcf4
[<0000000000000000>] alloc_migrate_target+0x2c/0x34
[<0000000000000000>] migrate_pages+0xe0/0x890
[<0000000000000000>] __alloc_contig_migrate_range+0x94/0x1a4
[<0000000000000000>] cma_boost_work_func+0xd0/0x168
[<0000000000000000>] process_one_work+0x140/0x418
[<0000000000000000>] worker_thread+0x154/0x480
[<0000000000000000>] kthread+0x10c/0x120
[<0000000000000000>] ret_from_fork+0x10/0x50
Change-Id: Ib1c5d8f25ac966170292ed6b6f078e8b447e99a8
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#152848: fix the system crash
When box authenticate with TV under hdcp 2.2, the hdcp 2.2 must
be reset in syspend function.
Change-Id: I0c85070893b7a2e17606b05c2df068a8ceb8f774
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
PD#153134:to solve dEQP-EGL.functional.get_frame_timestamps issues
sync_file_ioctl_fence_info has a race between filling the status
of the underlying fences and the overall status of the sync_file.
If fence transitions in the time frame between its sync_fill_fence_info
and the later dma_fence_is_signaled for the sync_file, the returned
information is inconsistent showing non-signaled underlying fences but
an overall signaled state.
This patch changes sync_file_ioctl_fence_info to track what has been
encoded and using that as the overall sync_file status.
Change-Id: I8d785bb04510be99e250dbd017eef883faca147b
Tested-by: Vamsidhar Reddy Gaddam <vamsidhar.gaddam@arm.com>
Signed-off-by: John Einar Reitan <john.reitan@arm.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009134936.27219-1-john.reitan@arm.com
PD#155205: storage: fix the source of register base
The register base get from dts now,no longer from macro.
Change-Id: Ic763db5a9380396cfbfde0333d85ffb08c601713
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#155588: hdmitx: fix a series of ddc issues
1. 149535 issue sw i2c transaction to take advantage of SDA recovery logic
2. 150784/152582 add I2C HW REACTIVE when RX serves as master
3. 151088 using only scdc.tmds.configuration
4. 152584 reduce ddc activities and add mutex to sequence ddc
Change-Id: I3f69a0fbd04ce54c4f794271fce38753f63f3b5f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
PD#152306: dont display frames which are dropped by apk
PD#152104: video layer keep last frame
Change-Id: I271ee268b8d768fe42cd60b57d1f10b12fac7fa6
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
PD#153294: hdmitx: add the hdmi change mode op
add switch when changing display mode
if the display mode is NULL, the switch can't be opened.
Change-Id: I2a0bdbda6950c401ad3a7b29d810976436558c14
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
PD#154679: watchdog: meson-wdt: fix reboot notify to stop reset
In some cases, the watchdog reboot notify will not disable
watchdog. The watchdog reset workqueue will continue work
in the first cpu that invokes panic(oops). So the hardware
watchdog will not reboot.
Cancel the delayed workqueue to stop reset the watchdog in
reboot notify.
And move the print message to the right location.
Change-Id: I7d85d49f2f5d780f7c5f2612e64494e77957dfff
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
PD#153134: some dEQP cases should always use direct render
Change-Id: I3d65b7c34e948e5a1f6d5d745713c2caa3eb89d5
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>