PD#153120: mm: close debug print of cma alloc
These print message may print a lot when video playback
And cause it not smooth.
Change-Id: If1f18d5e8a0234f1daca2c6e803a23ba90354414
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#158373: mm: check pfn overflow for low memory platform
On ARM64 platform, when vmemmap_populate is called for reserve
memory for struct page, it reserved based 1GB a loop. And 16MB
memory will be reserved at least. This caused memory waste if
total RAM is less than 1GB.
Basically reserve memory size for struct page is calculated by:
reserve size = sizeof(struct page) * number of pages.
For example, currently struct page is 64 bytes on ARM64. A page
is 4KB. So reserve size table can be:
Memory | page count | reserve size(bytes)
-------------------------------------------------
128MB | 32768 | 2097152(2MB)
256MB | 65536 | 4194304(4MB)
512MB | 131072 | 8388608(8MB)
Note, This reserve is aligned at 2MB.
Change-Id: I912ab01252d68fd065eb94fa2c5556cefa59a256
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#157314: di: add protection for no mirror function
1) disable mirror function, set keep frame to 0 avoid post process
buffer
2) modify for keep function, avoid crash caused by calling de post
in blankout mode
3) move mutex operation out of tasklet
4) remove framereset in hw disable function
Change-Id: I6166a855a7fe6ad38a21c570e9ad0a6f9a204424
Signed-off-by: kele bai <kele.bai@amlogic.com>
PD#157881: disabled a debug msg info.
this msg is not a bug.
Change-Id: I043c57955646bcff92ee2dd9dbe41b8485e7c136
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
PD#154836: di: move enable pre mif before frame reset avoid timeout
1) enable pre mif before&after frame reset for
mc mif will be clear by pre frame reset
Change-Id: Ied15c337c4b28a62a873bd36361357b8fecdaf32
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
PD#156898: add the polling method of sd card_detect,
because gpio irq remove raising & falling trigger method.
Change-Id: If270d27619d2686e74fe5e6d02748242faec4ce8
Signed-off-by: Nan Li <nan.li@amlogic.com>
PD#157965: pinctrl: define the pinmux with the same format.
there are two different pin controllers in Meson Soc Series, one of
them uses continuous 4-bit register to select function for each pin
(Eg: AXG and next), the other use indefinite bits that maybe from
different registers (Eg: Before AXG and GXLX)
previously, the driver use two different format to define the pinmux,
as follows:
[1] Before AXG and GXLX:
mux {
groups = "uart_ao_tx_a", "uart_ao_rx_a";
function = "uart_ao_a";
}
[2] AXG and next
mux {
pins = "GPIOAO_0", "GPIOAO_1";
function = "uart_ao_a";
}
which is a little confusing,and in this patch define the pinmux with
one format[1].
Change-Id: I04fb256294e1b664224c50a1baa622eb3a50b1c1
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#157965: pinctrl: separate soc drivers
When meson pinctrl is enabled, all meson platforms pinctrl drivers are
built in the kernel, with a significant amount of data.
This leads to situation where pinctrl drivers targeting an architecture
are also compiled and shipped on another one (ex: meson8 - ARM - compiled
and shipped on ARM64 builds). This is a waste of memory we can easily
avoid.
This change makes 3 pinctrl drivers (1 per SoC) out the original single
driver, allowing to compile and ship only the ones required.
porting from the upstream v4.15-rc2, commits as follows:
commit 277d14eb81
Change-Id: I68832eaf4a86233f89b8c32c44aaaab3593711d7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#157965: pinctrl: get rid of unneeded domain structures
porting from the upstream v4.15-rc2, commits as follows:
commit db80f0e158
Change-Id: I7c65b6844159378b7ef766569cb373fb78997d51
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#151900: irqchip: replace the gpio IRQ driver with upstream v4.15-rc2
1) separate the driver from the pinctrl driver
2) add support for GPIOAO* of M8B as interrupt source
3) irq lines of GPIOAO* maximum up to eight
4) remove the GPIO IRQ Controller in AO domain
note that the driver does not support for detecting the double-edge signal
through the pin,if you have related needs, please consider using polling.
test pass on axg_skt, p212
Change-Id: Iaa8da8a0cbfa0fe90d26fc8c2b775e045c8768f2
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#157955: fix first 256MB lost problem
1. add Makefile.boot for define of ZRELADDR/
PARAMS_PHYS/INITRD_PHYS
2. remove config of ARM_PATCH_PHYS_VIRT/AUTO_ZRELADDR
to avoid boot panic when first 256MB memory enabled
Change-Id: I0495803f22bcfaa550437169a345adc988b40ef7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#158049: dts: add dts for r311 with memory 1G
1. add pinmux definition of lcd in dts for r311
2. disable hdmitx for r311
Change-Id: I827f2a4ce1b2408166983d41b75b4b0b1ea9651b
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#157797: audio: meson: fixed kenerl panic and no sound card issue
1. fixed kernel panic for txlx codec when reboot
2. solve pinmux conflicted for dmic
3. fix i2s mpll of dts config
3. fix tv sound card name of dts config
Change-Id: I88537ac7a3ee9e949cb89c5cd047b9bd9f4ef169
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
PD#157223: lcd_extern: add st7701 driver for CES
Change-Id: I49d6930c4a4358a8a97a73cbe0194a77f39f55e3
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
PD#154260: lcd: add txlx support
Add panel dtsi for txlx r311.
Also add backlight local dimming driver.
Change-Id: I8d6cbc0a2099c17de1adc4087a3f58e1c34264ae
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
PD#156150: dts: add p241 partition table for cts
cts require data partition at least 4G
1. change system to 1024M
2. change cache to 600M
Change-Id: I9a7e32fc863d58c5fd0b17e28aa7d35193c1dffb
Signed-off-by: WenCai You <wencai.you@amlogic.com>
PD#157417: mmext: fix panic caused by page trace
stackframe.graph is not init if CONFIG_FUNCTION_GRAPH_TRACER
is opened.
Change-Id: Iea270dadd4579e71a778d0da764c4da27323938e
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#154260: hdmitx: update hdmitx driver
1. using pr_info or pr_debug instead of printk.
2. remove unuse code.
3. change modulepara to sysfs.
4. use iomap api for read and write reg
Change-Id: I523329d7b26cd7c6675bdae55cda76a6a11c533e
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>