Commit Graph

649425 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
91bda24fc8 Revert "USB: core: only clean up what we allocated"
commit cf4df407e0 upstream.

This reverts commit 32fd87b3bb.

Alan wrote a better fix for this...

Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: stable <stable@vger.kernel.org>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-29 11:45:32 +09:00
Hanjie Lin
81f9f4946c RAVENPLAT-252: Kernel components USB - CVE-2017-17558[1/1]
PD#SWPL-15901

Problem:
In usb_destroy_configuration of config.c, there is a possible
out of bounds write due to a missing bounds check. This could
lead to local escalation of privilege with no additional execution
privileges needed. User interaction is not needed for exploitation.

Solution:
The fix is designed to make sure the driver only frees as many
configurations and interfaces as it could have allocated.

Platform:
Raven

Verify:
Raven

Change-Id: I4a3d2ad27d09e606d4e363a75ce09a2e2fcf0070
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2020-06-29 11:45:32 +09:00
he.he
09ba5865c8 usb: xHCI host not responding to stop endpoint command [1/1]
PD#SWPL-14053

Problem:
Read and write simultaneously on two disks on a hub,
and then the XHCI controller would halted.

Solution:
Set the GUCTL1 BIT 17 to 1 for disable park mode.

Verify:
test pass on u200, ODROID-N2

Change-Id: I007804fa6b97a103da4a05be12c1193b9dd422cb
Signed-off-by: he.he <he.he@amlogic.com>
2020-06-29 11:45:32 +09:00
Yue Wang
7a662b734e usb: usb warning [1/1]
PD#SWPL-7031

Problem:
usb warning.

Solution:
delete usb warning.

Verify:
TM2

Change-Id: I70cf1f71bfaed0e7b9b53118259e86806933281f
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2020-06-29 11:45:32 +09:00
Mathias Payer
370c6a76ff RAVENPLAT 2390:OSS vulnerability found in [boot.img]:[linux_kernel] (CVE-2018-20169) Risk:[] [1/1]
PD#OTT-5679

[Problem]

[Solution]
USB: check usb_get_extra_descriptor for proper size

When reading an extra descriptor, we need to properly check the minimum
and maximum size allowed, to prevent from invalid data being sent by a
device.

Change-Id: Ie3dbdb24bebc0f2813b0bedd2261f8246ddd71d3
Reported-by: Hui Peng <benquike@gmail.com>
Reported-by: Mathias Payer <mathias.payer@nebelwelt.net>
Co-developed-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Hui Peng <benquike@gmail.com>
Signed-off-by: Mathias Payer <mathias.payer@nebelwelt.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2020-06-29 11:45:32 +09:00
he.he
7c71ad46f9 usb: CtsVerifier.apk usb device test failed [1/1]
PD#SWPL-13498

Problem:
The printing may delay the usb_disconnect processing, result to
USB transfer error during reconnecting.

Solution:
Moving the print in proc_setconfig of devio.c .

Verify:
test pass on sm1

Change-Id: I5c45abb2d5d640e2e02dc3e0c08b10ca7a294eeb
Signed-off-by: he.he <he.he@amlogic.com>
2020-06-29 11:45:32 +09:00
Yue Wang
7684acd7ee usb: dma-mapping: prevent writeback deadlock in CMA allocator [1/1]
PD#SWPL-11362

Problem:
A deadlock happens when a task initiates a CMA allocation that triggers
a page migration *AND* the tasks holding the subsequent pages have to
writeback their pages using CMA allocations.

In such a situation, the task that has triggered the page migration
holds a mutex that prevents other tasks from migrating their pages using
that same CMA allocator. This leads to a deadlock.

Solution:
The CMA is incapable of honoring the NOIO flags in some scenario, thus
cannot be used for writeback. The fix allows the code that chooses which
allocator to use in the ARM platform to avoid the CMA case for that
scenario.

The ARM DMA layer checks for allow blocking flag (_GFP_BDEV) to decide
whether to go for CMA or not. That test is not sufficient to cover the
case of writeback (GFP_NOIO).

The fix consists in adding a gfp_allow_writeback helper that tests for
the __GFP_IO flag. Then, the DMA layer uses it to decide not to go for
CMA in case of writeback.

Verify:
TL1

Change-Id: I175eb94de588234d3de2dc7f65dafe980e2636af
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2020-06-29 11:45:32 +09:00
Hanjie Lin
f05e89c411 perf_event: fix pmu deadlock issue [1/1]
PD#SWPL-3088

Problem:
smp_call_function_single() may cause deadlock.

Solution:
modify

Verify:
u200 w400

Change-Id: I86e9f67ed292245c5fe649e6750a6a406261552f
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2020-06-29 11:45:32 +09:00
Bichao Zheng
44de0a9996 pwm: meson: add relative_duty interface in pwm sysfs [1/1]
PD#SWPL-4225

Problem:
This interface is added to facilitate debugging the voltage-
table in pwm regulator, which can output different percentages
of waveforms in a fixed pwm cycle.
example:
echo 50 100 > sys/class/pwm/pwmchipx/pwmx/relative_duty
output 50% duty pwm

Solution:
add relative_duty interface in pwm sysfs

Verify:
test pass on tl1_X301_v1 tl1_skt_v1

Change-Id: Icd01e681694b81f3790f7cce8c326db02674a48c
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2020-06-29 11:45:32 +09:00
Shunzhou Jiang
c045252a9d bl40: g12a/sm1: add m4 bringup path [1/3]
PD#SWPL-12964

Problem:
bring up m4

Solution:
add kernel driver

Verify:
U209+S905D3

Change-Id: Iaa57f24c919af013581b8e3faffb0b57f5af10ed
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2020-06-29 11:45:32 +09:00
Tao Zeng
5e1ec0d89d bandwidth: add min bandwidth read in usage_stat [1/1]
PD#SWPL-7960

Problem:
There is no min ddr bandwidth data

Solution:
Add this value in sysfs

Verify:
p212

Change-Id: I9d90476d30c0ca7789046d8d205f0802de2b4acf
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:31 +09:00
Ville Syrjälä
0899d02319 drm/atomic: Make private objs proper objects
Make the atomic private object stuff less special by introducing proper
base classes for the object and its state. Drivers can embed these in
their own appropriate objects, after which these things will work
exactly like the plane/crtc/connector states during atomic operations.

v2: Reorder to not depend on drm_dynarray (Daniel)

Change-Id: I475f3c46440934b8d6f461935b6413624b7d34c7
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
Signed-off-by: Ville Syrj?l? <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712155102.26276-3-ville.syrjala@linux.intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2020-06-29 11:45:31 +09:00
Keith Packard
0fd3ffc68f drm: Reorganize drm_pending_event to support future event types [v2]
PD#SWPL-4863

Place drm_event_vblank in a new union that includes that and a bare
drm_event structure. This will allow new members of that union to be
added in the future without changing code related to the existing vbl
event type.

Assignments to the crtc_id field are now done when the event is
allocated, rather than when delievered. This way, delivery doesn't
need to have the crtc ID available.

v2:
 * Remove 'dev' argument from create_vblank_event

	It wasn't being used anyways, and if we need it in the future,
	we can always get it from crtc->dev.

 * Check for MODESETTING before looking for crtc in queue_vblank_event

	UMS drivers will oops if we try to get a crtc, so make sure
	we're modesetting before we try to find a crtc_id to fill into
	the event.

(cherry picked from commit dc695b85fde88eca3ef3b03fcd82f15b6bc6e462)

Change-Id: I6f0feabcba9373fcc434b148752d9cd28bea67e6
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2020-06-29 11:45:31 +09:00
Ao Xu
5a1002d132 drm: Pass CRTC ID in userspace vblank events
PD#SWPL-4863

With the atomic API, it is possible that a single commit affects
multiple crtcs. If the user requests an event with that commit, one
event will be sent for each CRTC, but it is not possible to distinguish
which crtc an event is for in user space. To solve this, the reserved
field in struct drm_vblank_event is repurposed to include the crtc_id
which the event is for.

The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if
the crtc field will be set properly.

[daniels: Rebased, using Maarten's forward-port.]

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170404165221.28240-2-daniels@collabora.com

Change-Id: Ide7657bdc38563d2de91edc2d649b53262002c39
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2020-06-29 11:45:31 +09:00
Maarten Lankhorst
98c268c8ed drm/vblank: Pass crtc_id to page_flip_ioctl.
PD#SWPL-4863

We added crtc_id to the atomic ioctl, but forgot to add it for vblank
and page flip events. Commit bd386e5180 ("drm: Reorganize
drm_pending_event to support future event types [v2]") added it to
the vblank event, but page flip event was still missing.

Correct this and add a test for making sure we always set crtc_id correctly.

Change-Id: Idd1070005d88529500a8be868f714c8bb345ddee
Fixes: bd386e5180 ("drm: Reorganize drm_pending_event to support future event types [v2]")
Fixes: 5db06a8a98 ("drm: Pass CRTC ID in userspace vblank events")
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.12+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #irc
Testcase: igt/kms_vblank/crtc_id
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123103737.47138-1-maarten.lankhorst@linux.intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2020-06-29 11:45:31 +09:00
Luke Go
8d89b3c1eb Partial revert: emmc: gp0 is not closed when suspend [1/1]
- Sync to old g12 status.

Change-Id: Ia73840915cbcb4c391b3bffd2f0d7d1430595187
2020-06-29 11:45:31 +09:00
Tao Zeng
c38a56afe1 bandwidth: add min bandwidth read in usage_stat [1/1]
PD#SWPL-7960

Problem:
There is no min ddr bandwidth data

Solution:
Add this value in sysfs

Verify:
p212

Change-Id: I9d90476d30c0ca7789046d8d205f0802de2b4acf
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:31 +09:00
Tao Zeng
11dc130420 ddr: enable bandwidth and dmc monitor for tm2 [1/1]
PD#SWPL-7728

Problem:
bandwidth measure on tm2 is not enabled

Solution:
Adding port description of ddr controller for tm2
Also enable dmc monitor function for tm2

Verify:
AB301

Change-Id: I0127ac04fe29723669525f6ff1161e2fa35d69ca
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:31 +09:00
Tao Zeng
5d01e5160a dmc: add function to set up dmc from bootargs [1/1]
PD#TV-8696

Problem:
DMC can't set up from bootargs. For easy debug, we need
set a monitor from bootargs.

Solution:
Add a funciton for this feature. You can using following patten
to set up a DMC monitor:

	dmc_montiro=[start_addr],[end_addr],[mask]

Example:
	setenv initargs $initargs dmc_monitor=0x0,0x20000000,0xff58
	This command set up monitor for following device on GXL:
	RANGE:0 - 20000000
	MONITOR DEVICE:
	    HDCP
	    HEVC
	    USB3.0
	    VPU READ1
	    VPU READ2
	    VPU READ3
	    VPU WRITE1
	    VPU WRITE2
	    VDEC
	    HCODEC
	    GE2DV

Verify:
P212

Change-Id: I864ff97325981fe62f18a4a4a24700b6b6ea7482
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:31 +09:00
Tao Zeng
1c6bee9686 dmc: adding a data to identify violation stauts [1/1]
PD#TV-5802

Problem:
irq of dmc violation happens very qiuckly, which may
have some wrong report if violation print in workqueu.

Solution:
Add a data to identify it. If data is null, then it's a
fake violation

Verify:
txhd

Change-Id: I402763fa2d20cfae3dc2d9647f7b2c2fb29ce966
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:31 +09:00
Lei Qian
1965a80ac2 ddr: fix compile error [1/1]
PD#SWPL-6865

Problem:
sm1 cause compile error

Solution:
add SM1 chip id

Verify:
marconi

Change-Id: Ic3932b6f746c6eb03ab35b6c5a7ea4802457ab46
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:31 +09:00
Lei Qian
392e43a794 ddr: fix compile error [1/1]
PD#SWPL-6865

Problem:
sm1 cause compile error

Solution:
delete SM1 chip id

Verify:
marconi

Change-Id: Ieb3980db41772ffb1db05ab9ac7df0e05f4ec74c
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:31 +09:00
Tao Zeng
dc59ba248b ddr: bring up bandwidth support for sm1 [1/1]
PD#SWPL-6865

Problem:
ddr bandwidth measure is not supported on sm1

Solution:
1. Add port description and support for it
2. Record max/average bandwidth support;
3. Support up to 60 continue bandwidth sample
4. Fix bit mismatch of dmc monitor for sm1/tl1.

Verify:
sm1

Change-Id: I0b42db8214099b9cd6d1c3f00174dc65eebfc030
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:30 +09:00
Tao Zeng
52d4640db5 dmc: fix panic problem when show memory in highmem [1/1]
PD#SWPL-2767

Problem:
If DMC violation address is in highmem, then it will panic
when show memory using page_address();

Solution:
map violation address for highmem

Verify:
p212

Change-Id: Ib6213eaab42b129c8c0a381511a0b3376b0d3e66
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
3d29868fd0 mtd: nand: support new slc nand [2/2]
PD#SWPL-14719

Problem:
4Gb SLC nand MT29F4G08ABAFAWP,MX30LF4G28AD requsted by Market

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG-S400

Change-Id: If2bd3cc90585b2a3cbcd500a9354cde4c65bc355
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
3f85e1fc88 mtd: nand: support new slc nand [2/2]
PD#SWPL-10125

Problem:
2Gb SLC Nand GD9FU2G8F2AMGI requested by Marketing

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG_S400

Change-Id: I0ebaa8322d471af7c01857ed2b39046917aad7ab
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
Yi Zeng
6769943d9c mtd: nand: support new slc nand [1/1]
PD#SWPL-4511

Problem:
1Gb SLC Nand ZDND1G08U3D-IA requested by Marketing
aka ZDND1G08U3D-xx module number in code

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG_S400

Change-Id: I4e221497b801239aa62f62f844ff247fa05925d0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
b42dd660bb MTD: slc-nand: fix signed integer overflow in erase_bootloader [1/1]
PD#SWPL-11771

Problem:
Hackers can use signed integer erase_boot_num to cause systems crash

Solution:
replace signed variable with unsigned variables

Verify:
AXG-S400

Change-Id: I9cc8d8f43c199f48e7d7bff2664bca740681d274
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
7638c27a6b MTD: slc-nand: fix boot system failed due to pointer out-bounds operating [1/1]
PD#SWPL-15894

Problem:
The audio 113D platform + TC58NVG2S0HTA00 boot system failed due
to pointer out-bounds operating

Solution:
reduce oobavail value to avoid pointer access overbounds

Verify:
AXG-S400

Change-Id: I737d16b937b39b0b03c9248e6688c1158face3b5
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
9379602caf MTD: reset some important buf before free the buf [1/1]
PD#SWPL-11772

Problem:
Inadequate clearing of keys/dtbs/env buf in memory

Solution:
clear the corresponding buf before free the buf

Verify:
AXG-S400

Change-Id: I61971c11a41c7062270a3863ae711c856d66f332
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
ab13c34734 Mtd: fix check return value for copy_from_user in uboot_write method [1/1]
PD#SWPL-11776

Problem:
missing return value check for copy_from_user in uboot_write method

Solution:
checking return value after call copy_from_user/copy_to_user

Verify:
AXG-S420

Change-Id: I087a341cbf0b603b2898e81773dc266d8e3debe1
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
2c1b501094 MTD: Coverity defect cleanup: MTD [1/1]
PD#SWPL-13991

Problem:
Out-of-bounds read in get_free_node

Solution:
fix the issue

Verify:
AXG400

Change-Id: I6e41caf3b3118d524218d6023fb51df692865cba
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
Liang Yang
6e0b454867 nand: adjust nand info page for ddr parameter function [1/1]
PD#SWPL-7804

Problem:
OTA upgrade would fail because nand info page no consisent

Solution:
Keep nand info page consisent between bl2/bl33/kernel

Verify:
s420

Change-Id: Icef5f720ba80e5f639b4ee7d1f1201833d5a5656
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2020-06-29 11:45:30 +09:00
xianjun.liu
93aa1ac99a MTD: spin_lock stuck problem about marking bad block for mtd driver [1/1]
PD#SWPL-5613

Problem:
boot fail because of the UBI write error

Solution:
fixed nested-calls spin-lock when update bbt

Verify:
AXG-S420

Change-Id: I56b603ebffa5557ab7949ead2fddd41323346d09
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2020-06-29 11:45:30 +09:00
Rongjun Chen
f4a1fa707a wifi: chang the static buf to support ap6356 [2/2]
PD#SWPL-12561

Problem:
ap6356 open fail

Solution:
update static buf to fix it

Verify:
ampere

Change-Id: Iec415b0dcf46b3e5574bcb3673d5129b4f35c802
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2020-06-29 11:45:29 +09:00
qiu.zeng
a2d893177b BT: bt mac write [1/3]
PD#OTT-1590

Problem:
bt mac write

Solution:
Accept the MAC address from uboot and create nodes

Verify:
Verifying on Public Edition P212

Change-Id: I77ff3543aff937adc07bf3a0933a350c27e9dd20
Signed-off-by: Qiu Zeng <qiu.zeng@amlogic.com>
2020-06-29 11:45:29 +09:00
Yan Wang
f00819eb22 dolbyfw: axg: update for sonos dolby fw [1/1]
PD#SH-561

Problem:
sonos dolby fw request

Solution:
update critical data interface for dolby fw request;
compatible with trunk dolby fw.

Verify:
S400

Change-Id: Id20d9c9867f3e5de4ea5ca9bb260cbac152a99df
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2020-06-29 11:45:29 +09:00
Zhongfu Luo
e002c5fbce unifykey: support operate efusekey for 32bit [1/1]
PD#TV-7131

Problem:
unifykey: can operate efusekey under 32bit

Solution:
unifykey: add operate efusekey support for 32bit

Verify:
TL1 skt board verify pass

Change-Id: I0e0175554e180bb70da01e751ec5bcde4771c7a6
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2020-06-29 11:45:29 +09:00
Yan Wang
19c12e7f88 pixel_probe: tl1 add pixel probe control for debug [1/1]
PD#SWPL-9137

Problem:
tl1 add APIs to control pixel probe for debug

Solution:
tl1 add APIs to control pixel probe for debug

Verify:
X301

this commit MUST not be merged into trunk!!!

Change-Id: I3a538ff3afdd80ef5669fac63a3ab5f43b8e1055
Signed-off-by: Yan Wang <yan.wang@amlogic.com>

Conflicts:
	arch/arm/configs/meson64_a32_defconfig
	arch/arm64/configs/meson64_defconfig
	drivers/amlogic/Kconfig
2020-06-29 11:45:29 +09:00
Jiamin Ma
04fedcc7e8 debug: add more strict checking for show_regs [2/2]
PD#SWPL-7711

Problem:
Executing echo l > /proc/sysrq-trigger each 5 seconds for about
15 minius will trigger hardlockup

Solution:
Add more strict checking for show_regs to filter out addresses
in secure monitor region and ioremap region, deferencing which
triggers external abort on none-linefetch, and finally leading
to hardlockup

Verify:
Locally pass on U200

Change-Id: I6bd219e7dc3ad29904e6bd1b7d2f4cfb3928d8ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2020-06-29 11:45:29 +09:00
Jianxin Pan
27b4db3b95 debug: save irqflag locally when ftrace_ramoops io [1/1]
PD#SWPL-6028

Problem:
save irqflag locally when ftrace_ramoops io

Solution:
save irqflag locally when ftrace_ramoops io

Verify:
TL1 x301

Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2020-06-29 11:45:29 +09:00
Jianxiong Pan
1d7f8c0b11 paddr16: add paddr16 to get register values for 16-bits aligned address. [1/1]
PD#SWPL-6718

Problem:
paddr just can get register and memory values for 32-bits aligned address.

Solution:
add paddr16 to get register or memory values for 16-bits aligned address.

Verify:
g12b w400_a

Change-Id: Ic7f32dcc6c2a24d0ac1e8c3ed60acc27e81887e0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2020-06-29 11:45:29 +09:00
shaochan.liu
6ba4a9a0a3 lcd: add driver for pmu data check [2/2]
PD#TV-6928

Problem:
CS602 need pmu data check

Solution:
add i2c_CS602 driver with pmu data check

Verify:
t962x3_ab301

Change-Id: I1d1f33cbb63cb4f3b3fc308d610411091cb2a65d
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2020-06-29 11:45:29 +09:00
zhiqiang liang
6e3a7df6c9 soc: add mailbox interface for dsp sec reg ops [3/3]
PD#SWPL-6583

Problem:
tm2 dsp bring up

Solution:
add the mbox interface

Verify:
AB311

Change-Id: Ifddb9bb0b22c651c5a0e02c2200874dcaa6dc2ce
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2020-06-29 11:45:29 +09:00
Shunzhou Jiang
63979402f2 mbox: g12a: add m4 mbox driver [1/3]
PD#SWPL-12873

Problem:
add m4 mailbox driver

Solution:
add m4 mailbox driver

Verify:
test pass on sm1 skt

Change-Id: Ied77949482179014d9e695ffc606f2ac939c82ca
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2020-06-29 11:45:29 +09:00
Lei Qian
655609aed1 mailbox: merge from mainline
PD#SWPL-15312

Change-Id: I5dc77c20de33045f76bd41078684271da2257ff5
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:29 +09:00
Yi Zeng
cd4cf3b28c mtd: nand: support new slc nand [1/1]
PD#SWPL-3542

Problem:
2Gb SLC Nand ZDND2G08U3D-IA requested by Marketing
aka ZDND2GXXXXX module number

Solution:
add the nand id and MFR id into amlogic id table
adapt it's bad block identification

Verify:
AXG_S400

Change-Id: I6f0e2caf424e09c1f186beb42a146d92b675f161
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2020-06-29 11:45:28 +09:00
Lei Qian
ea62328656 pcie: merge from mainline
PD#SWPL-15312

Change-Id: I221aab43279c9fbac22c039a9c0ba186c356e73c
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:28 +09:00
Qianggui Song
e4597355b5 irqchip: fix WARNNING of lockdep [1/1]
PD#SWPL-14700

Problem:
When open lockdep there is a warnning:
WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

Solution:
use hardirq-safe lock to protect critical sections

Verify:
g12a

Change-Id: Icd7550efcdefb5589d248b862b77919db8581484
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:28 +09:00
Qianggui Song
8ef52279a4 irqchip: tm2 irqchip support [1/1]
PD#SWPL-5651

Problem:
tm2 has 2 extra pins than tl1, should use new param data

Solution:
add tm2 param data

Verify:
T962e2_ab319

Change-Id: I77aaaead7b10024cd5f12354ba6b47db74ba96f5
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:28 +09:00