Commit Graph

641371 Commits

Author SHA1 Message Date
Eric Dumazet
3347f3d676 tcp/dccp: drop SYN packets if accept queue is full
PD#152538: tcp/dccp: drop SYN packets if accept queue is full

tcp/dccp: drop SYN packets if accept queue is full

Per listen(fd, backlog) rules, there is really no point accepting a SYN,
sending a SYNACK, and dropping the following ACK packet if accept queue
is full, because application is not draining accept queue fast enough.

This behavior is fooling TCP clients that believe they established a
flow, while there is nothing at server side. They might then send about
10 MSS (if using IW10) that will be dropped anyway while server is under
stress.

Change-Id: I674728eac69b418255522afc8d345995b8891a7e
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2017-10-31 01:04:32 -07:00
kele bai
d76db689ad di: modify for true bypass case
PD#152280: di: fix 4k clip crash

1) merge true bypass logic from 143783
2) replace bypass direct with di_debug_flag

Change-Id: I3ba7c1a6281d381028904409b101b414b044be90
Signed-off-by: kele bai <kele.bai@amlogic.com>
2017-10-30 23:01:25 -07:00
Pengcheng Chen
7206d62f62 osd_drm: fix osd drm blank function not work
PD#152825: fix osd drm blank function not work

Change-Id: I3a0b337a79f7530ccecd3d762a5441b8e27b6759
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2017-10-31 10:26:10 +08:00
Yueguie He
c38178c6bb dts: add s400emmc dts
PD#151896: dts: add s400emmc dts

    1. axg_s400emmc.dts
    2. axg_s400emmc_v03.dts

Change-Id: I33231482d7cb1e588f694087d53a1956359ff637
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
2017-10-30 05:52:58 -07:00
Yao.Liu
d0075941ca ionvideo: init input_queue and output_queue in vidioc_open
PD#152800: dont cleaning buffer queue when codec_reset, omx handle it

Change-Id: I0c6ff9ccc729d55da8c601c4fef8210c6fbe0b42
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
2017-10-30 04:44:11 -07:00
Yalong Liu
5ab46dc70c drm: add fbdev emulate implement
PD#152825: add amlogic emulate fbdev implement
it just support software renderring mode

Change-Id: Iffb3b83bbfcc831608e46d9c176fc6c8da8e3ff4
Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
2017-10-30 02:06:26 -07:00
Zhi Zhou
72b7250455 ion: enarge ion buffer for some apk.
PD#153238:
	for youtube cast&vr/playmovies

Change-Id: I3857d732056ccf5a9f10cfeefbd7a467631ed08f
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
2017-10-29 19:17:13 -07:00
tao zeng
635d6a79b2 mm: disable page trace by default
PD#153090: mm: disable page trace by default

Change-Id: I25cd5b1e8e475993f25e5455a411f0c9cc079493
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-10-28 19:48:15 +08:00
Xing Wang
1495dd0efa audio: fix loopback channel swap, adjust channel map to pdm Dmic array
PD#150757: audio: loopback: fix loopback channel swap and map issue
1) fix loopback audio in disorder
2) adjust channel map to pdm Dmic array

Change-Id: Ia3a4e94687815496ca8fcc57bb97797b2bf37adb
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2017-10-27 07:51:55 -07:00
sky zhou
93c8398efc drm: add amlogic KMS implement
PD#152825: add bypass implement based on amlogic internal driver.

We need reuse the existing driver to implement drm, but not
fully re-write all the drm driver.

Change-Id: Ie6492d8eb978059b9822b98cb7e34a643bdd2c6e
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2017-10-27 14:20:48 +08:00
tao zeng
df67f6cb1a mm: fix pages delete bug by pagetrace
PD#153090: mm: fix page delete bug by pagetrace

This change fix another bug when page del many times.

Change-Id: I5fe2cc9d688c2e19e2a7d6c6960229e23f8b133c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-10-26 19:17:03 -07:00
Renjun Xu
14fb1b4ec1 aloop: open sound card aloop driver
PD#153105: open sound card aloop driver

Change-Id: I2ddc97f48a229b1e2b4415210d9fa23d7c6dbac4
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2017-10-26 17:26:56 +08:00
tao zeng
241dcdb6d5 mm: fix vmemmap pages free bug by pagetrace
PD#153090: mm: fix vmemmap pages free bug by pagetrace

A page in vmemap will be freed when pagetrace is enabled.
This caused page information wrong and may cause unexpected
panic issue.

Change-Id: I486c62af592a98c22bd1ab071b3a224c3298986d
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-10-25 21:05:30 -07:00
Rongjun Chen
2010889cdf wifi: delete the dhd_static_buf print
PD#146292: delete the dhd_static_buf print

Change-Id: I01daa03d8e38c1738d74f51d1db33c1ed9b61d1e
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2017-10-25 20:01:43 -07:00
Yueguie He
f9a914edb0 dts: change system size to 280M
PD#153008: dts: change system size to 280M

Change-Id: Ic1102bae634be539e9825f48eaac3d46c7aa40dd
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
2017-10-24 18:56:25 -07:00
Guosong Zhou
220ba55b24 picdec: initial add the driver
PD#149244: initial add the driver

1.Add amlogic picture decoder driver;
2.device tree of picdec for p212/p230/p231/q200/skt;
3.related Makefiles/Kconfig/Headfiles update;

Change-Id: Ida1d223ac0f976d601d912bc3dce6473d9d3bf86
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2017-10-24 18:11:19 +08:00
Jiyu Yang
0e98ac3ae9 Revert "osd: fixed smem_start error [3/3]"
This cause Android can't work, revert it firstly
This reverts commit 474cffeae2.

Change-Id: I6b3b86a6a88fe734900bd9e688bd0683a3008a43
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
2017-10-23 21:01:51 -07:00
Xing Wang
87b2ed649b audio: fix pdm Asynchronous FIFO for channel shift issue
PD#152798: audio: fix pdm channel shift issue

Change-Id: I1ed76602041625eba2bd6f9691b3d0b8138eac31
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2017-10-23 20:29:13 -07:00
Pengcheng Chen
474cffeae2 osd: fixed smem_start error [3/3]
PD#152220: fixed smem_start error

Change-Id: I8beac687d912d8ffd642d05a9e4c2bee7df02649
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2017-10-23 03:53:12 -07:00
Jiyu Yang
86aa35db2e dts: update gpu freq tbl for buildroot[2/3]
PD#152220: update gpu freq tbl for buildroot

Change-Id: I5f0409285aa350cd2f87e15b25497229245d28f4
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
2017-10-23 03:21:52 -07:00
Jiyu Yang
fcbaeafc5e clk: update gpu clk node [1/3]
PD#152220: update gpu clk node

Change-Id: I77796b9db66a24466211380432700bbaf50ac1d7
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
2017-10-23 03:19:13 -07:00
tao zeng
a998ca2c01 mm: add pagetrace function
PD#151104: mm: add pagetrace function

1. implement pagetrace as a driver; you can get information
  of how many pages allocated by each function by read:

  cat /proc/pagetrace

2. fix wrong statistics of free memory of each migrate type.

Change-Id: Ib2dff4bb5b3dd288ee188007352fc7b353eda100
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-10-23 00:11:33 -07:00
Jianxin Pan
8c990449e2 Merge "mtd: report all bad block as 1" into amlogic-4.9-dev 2017-10-23 00:11:17 -07:00
Yonghui Yu
3f92c04ffe mtd: report all bad block as 1
PD#145359: mtd: report factory bad block as used bad one to mtd.

nandwrite in mtd utilies identify bad blocks by checking whether
return value of mtd_block_isbad is 1;
Our host driver need to distinguish used(1)/factory(FACTORY_BAD_BLOCK_ERROR)
bad block because partition table caculation cares factory bad ones only.

As mtd->_block_isbad is called by inside usage, so we normalize all the bad
block return value in mtd_block_isbad.

Change-Id: I19b0f25ce93ce527b6e02d59330b2edaf61020d4
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
2017-10-22 23:49:48 -07:00
tao zeng
ee76ce9ce0 mm: fix cma allocate fail problem
PD#152454: mm: fix cma allocate fail problem

boost work shoud return right value of __alloc_contig_migrate_range

Change-Id: I8275a8541cd263f5ea5574fba1c053a30e3cbc80
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-10-22 23:32:31 -07:00
jintao xu
deca8a9c70 ion_dev: add codec_mm heap for omx. [3/3]
PD#152137: add codec_mm heap for omx
           codec_mm_cma 308M;
           ion_dev_dma 92M;

Change-Id: I804d16c19e6133ec41bd51a7b2c328339a8d0fd7
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2017-10-22 21:09:46 -07:00
Jiamin Ma
79bb659f90 unifykey: fix arbitrary memory access in unifykeys ioctl
PD#152036: arbitrary memory access in unifykeys ioctl

Change-Id: Ic7aa0fce291af7bd5810b4815137ca26b37110f8
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-10-20 03:01:46 -07:00
Rongrong Zhou
28f7e2859d media: add ioctl video layer1 on/off state in amvideo.[2/1]
PD#152453: add ioctl for OMX to get current video layer1 on/off state
for DRM TVP resource release.

Change-Id: I8a45869f63259500cbe8be7bc146793e6d7eb266
Signed-off-by: Rongrong Zhou <rongrong.zhou@amlogic.com>
2017-10-20 02:37:30 -07:00
Jiamin Ma
a3d748ca70 Revert "unifykey: fix arbitrary memory access in unifykeys ioctl"
This reverts commit 54f617de7f.

Change-Id: Ibdd0cb5c073513bb529e5c39f6f963906391a870
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-10-20 02:29:48 -07:00
Jiamin Ma
54f617de7f unifykey: fix arbitrary memory access in unifykeys ioctl
PD#152036: arbitrary  memory access in unifykeys ioctl

Change-Id: I2e76906bef8f417909d97c8a04289ce38baa6087
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-10-20 16:25:15 +08:00
Qi Duan
b0a002341c USB: get RESET1_REGISTER address from dts.[1/1]
PD#152591: USB: get RESET_REGISTER address from dts.
Before we get this address by offset of cbus.
From txlx,this address is not the same because memory map modifty.
Now usb module get this address from dts.

Change-Id: I2ed7d3a19f52c80edab33dec2569ed3ccd375438
Signed-off-by: Qi Duan <qi.duan@amlogic.com>
2017-10-19 21:32:58 -07:00
hong.guo
7bde3afb56 Power: add wakeup interface in shutdown
PD#150222: shutdown: add interface for alarm wakeup

1.add interface for alarm wakeup.
2.set alarm to wakeup system in shutdown.

Change-Id: I21adaecd15b0bc28c6c363835820c9e0291b87af
Signed-off-by: hong.guo <hong.guo@amlogic.com>
2017-10-19 18:46:23 -07:00
Yueguie He
233f9f77d5 dts: sync s420 & s420_128m
PD#150185: dts: sync s420 & s420_128m

Change-Id: I2e11bdffb760ee51d57aeb7aaf6d0f833a15c9ec
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
2017-10-19 00:00:15 -07:00
Bencheng Jing
e0b8b01a72 vdin: clean up dead code and bad compare
PD#151225: driver defect clean up:
#228
#262
#354
#407
#442
#445
#461
#576
#580
#598
#599
#615
#616
#671
#756
#760
#874

Change-Id: I1bc47c3e30ecfa1ca44e53f91201aa4e09ff19f5
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2017-10-18 22:19:51 -07:00
Victor Wan
fa1a711427 Merge branch 'android-4.9' into amlogic-4.9-dev 2017-10-19 08:43:31 +08:00
Yi Zhou
e447a4bccb hdmitx: clean up deadcode
PD#151236: driver defect clean up:
#252
#270~283

Change-Id: I009c06dcb14bd3fb686c46a155418093bc7f7514
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2017-10-18 04:51:49 -07:00
Yao.Liu
a09f71110c ionvideo: modify ionvideo print info to pass the vts test
PD#151634: modify ionvideo print info to pass the vts test

Change-Id: I32e6bba500f7dc3cc0c987c65187e1354efc424e
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
2017-10-16 03:06:06 -07:00
Ao Xu
a7ed492099 defconfig: disable CONFIG_ANDROID_LOGGER
PD#149771: disable CONFIG_ANDROID_LOGGER

No need CONFIG_ANDROID_LOGGER from Android L.
Android uses a service called logd to provide the
same function as the driver did.

Change-Id: I89c9d3bdb3dc3786e817c5f4055856f41babfc5a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2017-10-16 03:04:25 -07:00
Yi Zeng
b04de58cb3 nand: add slc nand support:F59L1G81LA (2Y),F59L1G81MA (2Y)
PD#151128: nand: add slc nand support:F59L1G81LA (2Y),F59L1G81MA (2Y)

Change-Id: I695e222c305aa4a7c9ca33d6e17c20d57bcf0191
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2017-10-16 02:10:33 -07:00
Yan Wang
cbfe6c2ec4 unifykey: check secure check secure storage valid before SMC call ATF.
PD#150482: unifykey: check secure storage valid before SMC call ATF.

  same as PD#150483.

    ATF use CONFIG to enable/disable secure storage.
    If ATF disable secure storage, secure storage code will be
    compiled out. Kernel should check if secure stroage exists before
    SMC call ATF.

Change-Id: Ifd5e3c42a181bb814dcedad13bebb4596ae95e27
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2017-10-12 23:13:31 -07:00
Qi Duan
53160bf7b0 USB: gadget: add wake lock when gadget connect.[1/1]
PD#151886: usb: gadget: add wake lock when gadget connect
       this case,not real suspend.

Change-Id: I0c371ad2c051b3f4fc64b96f8372fdc3be795145
Signed-off-by: Qi Duan <qi.duan@amlogic.com>
2017-10-12 01:50:12 -07:00
Qi Duan
ce4ac9bd2d UART: add spinlock for tx protect in interrupt. [1/1]
PD#151632: UART: add spinlock for tx protect in interrupt.

Change-Id: Ie2c7e6d3003d8b4248f05a72acd6c5242d45441f
Signed-off-by: Qi Duan <qi.duan@amlogic.com>
2017-10-12 01:30:10 -07:00
Pengcheng Chen
ef7a3d0d29 osd: null pointer risk protect
PD#151241: null pointer risk protect

driver defect clean up:
#284

Change-Id: I05ffb3df451b0f62de0ef00a688edc6bc33b1964
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2017-10-11 19:17:34 -07:00
MingLiang Dong
0a19c008ff amvecm: fix hdr no effect
PD#151008: fix hdr no effect

Change-Id: I9edc076cb74783d26e1f16ebeaceb48dbb7e6bfe
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2017-10-10 22:10:37 -07:00
Jiamin Ma
0385280d28 uart: fix NULL pointer deferencing in suspend/resume
PD#151229: driver defect clean up
#235
#236

Change-Id: I59acc448a4ece1f385d0b6d602721d34ce60e02c
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-10-10 19:47:08 -07:00
Jiamin Ma
cc619fdedb clocksource: fix NULL pointer deferencing issue
PD#151226: driver defect clean up
#229

Change-Id: Ie37dc17d5036813958180415d2b9b4405a44c793
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-10-10 19:43:02 -07:00
wenfeng.guo
07d62d0088 amvecm: incorrect free pointer event
PD#150076: incorrect free pointer event

driver defect clean up:
#4
#7

Change-Id: Iec9d38a5fd71d26c36115eefe98326b909f85527
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
2017-10-10 19:13:21 -07:00
Yvonne Chen
190a64cb3a tee: open tee loading under optee
PD#151855: open tee loading under optee

Change-Id: Id18ff381bedadb724ace5f22cc820ef64f4666f6
Signed-off-by: Yvonne Chen <yvonne.chen@amlogic.com>
2017-10-09 01:29:59 -07:00
Victor Wan
ff27e33bf8 Merge branch 'android-4.9' into amlogic-4.9-dev 2017-10-09 15:30:18 +08:00
KeLe Bai
ccfeb711a7 di: driver defect clean up
PD#151224: driver defect clean up:

#227
#238~239
#249
#257~258
#285~287
#384
#466~467
#472~474
#585
#655
#659~660

Change-Id: I241d863318a8754c0e7c5fa1155247d99a21eb9e
Signed-off-by: KeLe Bai <kele.bai@amlogic.com>
2017-10-08 22:44:58 -07:00