Alexander Potapenko [Tue, 6 Feb 2018 23:36:20 +0000 (15:36 -0800)]
[RAMEN9610-14440] UPSTREAM: kasan: add functions for unpoisoning stack variables
As a code-size optimization, LLVM builds since r279383 may bulk-manipulate
the shadow region when (un)poisoning large memory blocks. This requires
new callbacks that simply do an uninstrumented memset().
This fixes linking the Clang-built kernel when using KASAN.
[arnd@arndb.de: add declarations for internal functions]
Link: http://lkml.kernel.org/r/20180105094112.2690475-1-arnd@arndb.de
[fengguang.wu@intel.com: __asan_set_shadow_00 can be static]
Link: http://lkml.kernel.org/r/20171223125943.GA74341@lkp-ib03
[ghackmann@google.com: fix memset() parameters, and tweak commit message to describe new callbacks]
Link: http://lkml.kernel.org/r/20171204191735.132544-6-paullawrence@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(Cherry-picked from
d321599cf6b861beefe92327476b617435c7fc4a)
Change-Id: I001286850420109547c7d6defefe2fbd6915170d
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Paul Lawrence [Tue, 6 Feb 2018 23:36:16 +0000 (15:36 -0800)]
[RAMEN9610-14440] UPSTREAM: kasan: add tests for alloca poisoning
Link: http://lkml.kernel.org/r/20171204191735.132544-5-paullawrence@google.com
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(Cherry-picked from
00a14294bb33af533f7ac002fb20623fdd8ea0d7)
Change-Id: Ibefa500b2f3d7eca9cdbb3ea58b65743700f19ab
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Paul Lawrence [Tue, 6 Feb 2018 23:36:11 +0000 (15:36 -0800)]
[RAMEN9610-14440] UPSTREAM: kasan: support alloca() poisoning
clang's AddressSanitizer implementation adds redzones on either side of
alloca()ed buffers. These redzones are 32-byte aligned and at least 32
bytes long.
__asan_alloca_poison() is passed the size and address of the allocated
buffer, *excluding* the redzones on either side. The left redzone will
always be to the immediate left of this buffer; but AddressSanitizer may
need to add padding between the end of the buffer and the right redzone.
If there are any 8-byte chunks inside this padding, we should poison
those too.
__asan_allocas_unpoison() is just passed the top and bottom of the dynamic
stack area, so unpoisoning is simpler.
Link: http://lkml.kernel.org/r/20171204191735.132544-4-paullawrence@google.com
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(Cherry-picked from
342061ee4ef3d80001d1ae494378f3979c861dba)
Change-Id: I3da748cd5aa5190b2b40deab9d32da0030f4d465
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Andrey Ryabinin [Tue, 6 Feb 2018 23:36:08 +0000 (15:36 -0800)]
[RAMEN9610-14440] UPSTREAM: kasan/Makefile: support LLVM style asan parameters
LLVM doesn't understand GCC-style paramters ("--param asan-foo=bar"), thus
we currently we don't use inline/globals/stack instrumentation when
building the kernel with clang.
Add support for LLVM-style parameters ("-mllvm -asan-foo=bar") to enable
all KASAN features.
Link: http://lkml.kernel.org/r/20171204191735.132544-3-paullawrence@google.com
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Greg Hackmann <ghackmann@google.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(Cherry-picked from
1a69e7ce8391a8bc808baf04e06d88ab4024ca47)
Change-Id: I6cf05bf35de7caff85a2f46b9f8581468ba9703e
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Paul Lawrence [Tue, 6 Feb 2018 23:36:03 +0000 (15:36 -0800)]
[RAMEN9610-14440] BACKPORT: kasan: add compiler support for clang
Patch series "kasan: support alloca, LLVM", v4.
This patch (of 5):
For now we can hard-code ASAN ABI level 5, since historical clang builds
can't build the kernel anyway. We also need to emulate gcc's
__SANITIZE_ADDRESS__ flag, or memset() calls won't be instrumented.
Link: http://lkml.kernel.org/r/20171204191735.132544-2-paullawrence@google.com
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(Cherry-picked from
53a98ed73b848432a51631346b02049bb7fa039d)
Change-Id: I76b74e70633abadfe430f5cdc397b77abcaab382
Signed-off-by: Paul Lawrence <paullawrence@google.com>
ShinHyung [Mon, 15 Apr 2019 06:02:04 +0000 (15:02 +0900)]
[RAMEN9610-14414][9610] dtsi: added audio extra binary
Change-Id: I251c098cd2fb845e644daff16a1f41cb13324502
Signed-off-by: ShinHyung <s47.kang@samsung.com>
Yunsu Kim [Thu, 11 Apr 2019 06:00:26 +0000 (15:00 +0900)]
[RAMEN9610-14365][9610] media: radio: Add register r/w for debugging
Change-Id: I401e3b3e824adbfd73d88caeafc76e7ecea17b70
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
mingliang.lv [Tue, 9 Apr 2019 06:44:52 +0000 (14:44 +0800)]
[RAMEN9610-14284][COMMON][Bug Fix]s2mcs02 wrong probe
Change-Id: I9649ab2663858dd7e9eb33a829f1488a34a1ee26
major.chen [Tue, 26 Mar 2019 01:38:44 +0000 (09:38 +0800)]
[RAMEN9610-13839] [COMMON]initialize partner before first used
one kernel panic issue found in product_show , due to
dwc3_otg_init() use uninitialized local variable partner to call typec_register_partner,
it result in partner->identity is setted with unexpected value.
reproduce steps: adb shell cat /sys/class/typec/port0-partner/identity/product
Change-Id: Id0e2d04c20b510563b8b0a0ef786ba4e89d6a50c
Yunsu Kim [Tue, 19 Mar 2019 09:53:13 +0000 (18:53 +0900)]
[ERD][RAMEN9610-13779] arm64: dts: remove fm elna
Change-Id: Ife31d8e44fa37e4ecbea0d9381e66ae7decd360e
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
JaeHun Jung [Thu, 11 Apr 2019 08:20:15 +0000 (17:20 +0900)]
[RAMEN9610-14378][COMMON] scsi: ufs: Revert "single ton pointer"
Change-Id: Ic171ca4f8809c70cdccb41aba2c7248ddf148b79
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Junhan Bae [Fri, 22 Mar 2019 12:14:31 +0000 (21:14 +0900)]
[RAMEN9610-14333][COMMON][9610] drivers : fix typec role swap
Change-Id: Iee22d39b30a81864c77fee2b555eee0cef11b634
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Jaewoong, Han [Wed, 10 Apr 2019 05:38:57 +0000 (14:38 +0900)]
[RAMEN9610-14324] [9610] gpu: tHEx: r16p0: fix the prevent defect
Change-Id: I557043dffbb9c1d9c03475248e96081851a845bc
Signed-off-by: Jaewoong, Han <ssm20.han@samsung.com>
JaeHun Jung [Wed, 10 Apr 2019 06:34:36 +0000 (15:34 +0900)]
[RAMEN9610-14313] [COMMON] scsi: ufs: Prevent bug fix.
Change-Id: I3d6ac23bdaef1123ac82f9b6cbb22428c917a606
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
JaeHun Jung [Thu, 4 Apr 2019 12:20:24 +0000 (21:20 +0900)]
[RAMEN9610-14257] [COMMON] scsi: ufs: Disable UFS UIC interrupt when UIC error.
Sometimes UFS interrupts storm was occur when UIC error.
So, Disable interrupts for recovery.
Change-Id: I8639995be9e2a537c05b809c73af89578dc00ba2
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
JaeHun Jung [Thu, 4 Apr 2019 10:51:09 +0000 (19:51 +0900)]
[RAMEN9610-14257] [COMMON] scsi: ufs: Move SFR dump to workqueue from ISR.
Too many prints in the ISR when UFS error case.
So, Move to workqueue for system.
Change-Id: I213f265c0024b75220ce594c271f68a43c28e4dd
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Daehwan Jung [Mon, 11 Mar 2019 07:50:03 +0000 (16:50 +0900)]
[RAMEN9610-14252] [9610] usb: phy: add iounmap and NULL check of ioremap
Change-Id: Ieb62e64bfd9ff925740b02197cdbe8b0d0928899
Signed-off-by: Daehwan Jung <dh10.jung@samsung.com>
Keunho Hwang [Mon, 8 Apr 2019 02:14:56 +0000 (11:14 +0900)]
[RAMEN9610-14249][9610] drivers: battery: update pre-processor for small charger
Change-Id: Ie83dd4460dc8efc87abbf666f3ce699d06f6e181
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
ShinHyung [Mon, 8 Apr 2019 02:40:58 +0000 (11:40 +0900)]
[RAMEN9610-14248] [9610] extcon: madera: Changed the order of the jack detection event reporting.
-Problem: Disconnecting the headset during music playback causes noise.
-Reason: The problem is caused by the difference between the Audio Codec jack detection reporting
and the implementation of the Android wiredaccessary manager.
-Solution: Changed the order of the jack detection event reporting.
Change-Id: Ifc1cbfdac3abe199f2740135d31669cbc6241a18
Signed-off-by: ShinHyung <s47.kang@samsung.com>
ShinHyung [Thu, 7 Mar 2019 02:01:04 +0000 (11:01 +0900)]
[RAMEN9610-14248][9610] extcon: madera: modified the impedence of LINE OUT
Change-Id: I30038c65cceac7bb338f250d0cadd0de637d7b5c
Signed-off-by: ShinHyung <s47.kang@samsung.com>
Satish Kumar Reddy [Sat, 23 Feb 2019 04:06:21 +0000 (13:06 +0900)]
[RAMEN9610-14248] extcon: line out support
Change-Id: Ic5ea097aa97305a093076ce5ebc5e36ad926fabb
Signed-off-by: Satish Kumar Reddy <palli.satish@samsung.com>
Satish Kumar Reddy [Sat, 23 Feb 2019 04:08:02 +0000 (13:08 +0900)]
[RAMEN9610-14248] abox: lineout device added in sound type
Change-Id: Iaf4bf28ed0ff8d5d824e5cac2f5484739181e458
Signed-off-by: Satish Kumar Reddy <palli.satish@samsung.com>
Junhan Bae [Mon, 8 Apr 2019 03:38:59 +0000 (12:38 +0900)]
[RAMEN9610-14247] [COMMON][9610] drivers : fix sink vbus from 4.5v to 3.5v
Change-Id: I3103b616d0abc7b98a2f3b0ecc642fd3d2bfd3da
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Sukmin Kang [Tue, 26 Mar 2019 04:46:08 +0000 (13:46 +0900)]
[ERD][APR-103] [COMMON]Modify DT for multi-os
Change-Id: Id23c028336dea47d4026172f1b757d9d3838f2c4
Boojin Kim [Fri, 22 Feb 2019 13:59:55 +0000 (22:59 +0900)]
[ERD][APR-103] [COMMON]chub: fix sendCmd error
This patch fix sendCmd error by wakelock timeout
Change-Id: I32679e13dbee9446cb4b5d124ca2713f28a1f008
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Tue, 12 Feb 2019 07:38:06 +0000 (16:38 +0900)]
[ERD][APR-103] [COMMON]chub: fix kernel panic by runtime error
Change-Id: Iec832588624a88bebbfb2231c3f2988c6ebe0dd9
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Thu, 7 Feb 2019 13:15:34 +0000 (22:15 +0900)]
[ERD][APR-103] [COMMON]chub: ipc: fix ipc loss issue with ipc_read timeout
Change-Id: I713acad026f9dbc1af401c24603ea9c74099ff84
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Mon, 28 Jan 2019 01:50:28 +0000 (10:50 +0900)]
[ERD][APR-103] [COMMON]chub: ipc: change irq allocation scheme from round robin to scan
Change-Id: I5f66c936aa7bf482dd6b58e1fdfd73a131b7f365
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Sukwon Ryoo [Mon, 28 Jan 2019 09:24:16 +0000 (18:24 +0900)]
[ERD][APR-103] [COMMON]prevent copying ack signal into event packet
Change-Id: I04a9b94b1cd7e934e0d13a739753eca1236f65db
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
Boojin Kim [Thu, 17 Jan 2019 15:20:22 +0000 (00:20 +0900)]
[ERD][APR-103] [COMMON]chub: runtimelog supports newline
Change-Id: I89bd8cf65e36c3cc3786b840c4dd6e9e77f968d3
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Sun, 6 Jan 2019 06:52:44 +0000 (15:52 +0900)]
[ERD][APR-103] [COMMON]chub: sensorlist fail fix
Change-Id: Ie7dc50179b1fe53fca82adcfb31ed77cd4e8db4c
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Fri, 28 Dec 2018 06:12:28 +0000 (15:12 +0900)]
[ERD][APR-103] [COMMON]chub: update runtimelog
Change-Id: If46dc6e92bfc6504d77eddf3052260354499a43e
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Thu, 27 Dec 2018 08:34:08 +0000 (17:34 +0900)]
[ERD][APR-103] [COMMON]chub: ipc: don't use printf before logbuf setup
Change-Id: I28bd553b93dee0f4a8a5927bb8210ed18889f68d
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Thu, 20 Dec 2018 04:14:38 +0000 (13:14 +0900)]
[ERD][APR-103] [COMMON]chub: support runtimelog
Change-Id: I4f67cdc83e86f9994e233dceb517ae00161343f0
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Sukwon Ryoo [Wed, 19 Dec 2018 04:41:12 +0000 (13:41 +0900)]
[ERD][APR-103] [COMMON]CHUB: skip os select after 1st boot
add character driver
get os number and modify os_name
if os_name is 0th or invalid, go to os select
Change-Id: If19182f1f2c1bd9a8ea022b6aee9263d240fb77a
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
Boojin Kim [Wed, 12 Dec 2018 01:37:50 +0000 (10:37 +0900)]
[ERD][APR-103] [COMMON]chub: enable force reset by sensor driver request
Change-Id: Id7c3d4f764281b3a025dba08be3882dc521f7f12
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Wed, 19 Dec 2018 05:24:40 +0000 (14:24 +0900)]
[ERD][APR-103] [COMMON]chub: synchronize the nanohub_open and chub poweron
Change-Id: I7e80c3ca80de63d4eccb690b146c483269ad6df0
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Tue, 11 Dec 2018 03:44:52 +0000 (12:44 +0900)]
[ERD][APR-103] [COMMON]chub: add ipc magic
Change-Id: I577b4e3d2e9cfcda3cfd30e3ded150b4d0b16a53
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boyoung [Mon, 10 Dec 2018 23:07:20 +0000 (08:07 +0900)]
[ERD][APR-103] [COMMON]chub: add slient reset for chub error
Change-Id: I18bdbc2ee03bde8cd7992e50c367db4652971fa1
Signed-off-by: Boyoung <eric.by.kim@samsung.com>
Boojin Kim [Thu, 6 Dec 2018 04:17:56 +0000 (13:17 +0900)]
[ERD][APR-103] [COMMON]chub: change name of kernel log flag to wake flag
Change-Id: I6f5e1e936e8ea451695a7750c522d925669019b3
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
Boyoung [Thu, 6 Dec 2018 14:32:26 +0000 (23:32 +0900)]
[ERD][APR-103] chub: support active sensor
Change-Id: I87143d7dcd7685061e60f4989192e34f6e5eb2eb
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Wed, 28 Nov 2018 00:34:41 +0000 (09:34 +0900)]
[ERD][APR-103] [COMMON]chub: ipc: add error handling
Change-Id: Ic5dbf550e72d937386bd8884b811a6cb8f13582f
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boyoung [Fri, 7 Dec 2018 12:58:07 +0000 (21:58 +0900)]
[ERD][APR-103] [COMMON]chub: use chrehal io
Change-Id: Ia99e73a31d98d4739efeac143a1cea34ae9a7f69
Signed-off-by: Boyoung <eric.by.kim@samsung.com>
Boyoung [Fri, 7 Dec 2018 11:08:22 +0000 (20:08 +0900)]
[ERD][APR-103] [COMMON]chub: increase chub fw error threshold
chub sensor driver detects invalid error
if chub fw booting is delaied with multi-os booting
Change-Id: Ie3712367ad39b6b25062d605380b222017ce76b5
Signed-off-by: Boyoung <eric.by.kim@samsung.com>
Boojin Kim [Tue, 20 Nov 2018 05:15:37 +0000 (14:15 +0900)]
[ERD][APR-103] [COMMON]chub: ipc: add to check irq pending
Change-Id: Iaf4561cd3d0ed789f480b59ab4fdf39bc6345900
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Fri, 16 Nov 2018 08:09:46 +0000 (17:09 +0900)]
[ERD][APR-103] [COMMON]chub: stop send message to AP in suspend mode
Change-Id: I4ce8006221e7ffe4c9db6f4a074d0609f185b1e4
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
Boojin Kim [Mon, 12 Nov 2018 09:35:12 +0000 (18:35 +0900)]
[ERD][APR-103] [COMMON]chub: suppport dump on reset
chub driver requests to dump to sensor hal
Change-Id: I97650a22c686ae72e932311d2db973c09c4b9167
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Wed, 21 Nov 2018 01:53:51 +0000 (10:53 +0900)]
[ERD][APR-103] [COMMON]chub: fix wrong confict fix
This patch recoveries '[9610] chub: ipc: version 181024' patch
that is removed by 'chub : support multi-os for various sensors' patch confict.
Change-Id: I5ae5f6ad21c2af3ddf75382ca5576e05518b5ea2
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boyoung [Tue, 23 Oct 2018 10:54:46 +0000 (19:54 +0900)]
[ERD][APR-103] [COMMON]chub : support multi-os for various sensors
Change-Id: I0768a2ba0d87fed58ce7e18877e60d5583f53529
Signed-off-by: Boyoung <eric.by.kim@samsung.com>
Junhan Bae [Mon, 15 Apr 2019 00:23:49 +0000 (09:23 +0900)]
[RAMEN9610-14413] [COMMON][9610] drivers : fix ccic opmode for otg connection
Change-Id: I8fc4d77715e92c7a12be01592ba4151f54ff513f
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Srishti Piplani [Tue, 26 Feb 2019 05:07:11 +0000 (10:37 +0530)]
[RAMEN9610-14331][9610] wlbt: Read FW TxGood, RxGood, TxBad counters
Read the TxGood, RxGood and TxBad counters from the
firmware and fill the peer->sinfo structure.
Change-Id: I9ccb9e9a8d4fa34b68217f1760896cf2ce26d53e
SCSC-Bug-Id: SSB-49754
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
Hyunwoong Kim [Fri, 5 Apr 2019 08:48:18 +0000 (17:48 +0900)]
[RAMEN9610-14220] asoc: samsung: add checking for SYSMMU status in suspend
Change-Id: Ibe0e27bd882f4d31607a291f3915f6c95bcd7404
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
Donghyeok Choe [Mon, 18 Mar 2019 04:08:49 +0000 (13:08 +0900)]
[RAMEN9610-14210][COMMON][9610] arm64: dts: dump sfr of gic for debugging
Change-Id: I5f92e40db398d5ba3768c8bee936d405042d358c
Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
Donghyeok Choe [Mon, 18 Mar 2019 04:04:38 +0000 (13:04 +0900)]
[RAMEN9610-14210][COMMON] soc: samsung: re-engineering for exynos_err_parse
Change-Id: Iafe6c1f2cf6ab92c3ac9086839ae10e7da04bc24
Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
Donghyeok Choe [Mon, 18 Mar 2019 02:27:27 +0000 (11:27 +0900)]
[RAMEN9610-14210][COMMON] samsung: handler: introduce exynos-handler functions
This patch adds new feature of exynos-hanlder. It can include
several specific interrupt handler for debugging.
Change-Id: I23f1a9775ea7ea44ec07d9b1979666f621a9d047
Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
Donghyeok Choe [Mon, 18 Mar 2019 02:26:05 +0000 (11:26 +0900)]
[RAMEN9610-14210][COMMON][9610] arm64: dts: add ECC error interrupts for exynos-handler
Change-Id: I579139f664c38cf5ad59062c9c7d20b5f80072bc
Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
JaeHun Jung [Thu, 4 Apr 2019 13:12:59 +0000 (22:12 +0900)]
[RAMEN9610-14207][COMMON] scsi: ufs: UFS power recovery when probe fail.
Check GPIO when UFS probe error case. And if gpio has abnormal state.
I will be retry.
Change-Id: I5d4028493d1e907d7b3ebd399fb8c7696675f3c8
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
JaeHun Jung [Thu, 4 Apr 2019 13:09:00 +0000 (22:09 +0900)]
[RAMEN9610-14207][COMMON] arm64: dts: Add UFS power gpio.
For device power control.
Change-Id: I886c46070fd8023f018fdb9e086dcf087b7f4579
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Keunho Hwang [Tue, 2 Apr 2019 09:21:48 +0000 (18:21 +0900)]
[RAMEN9610-14126][9610] drivers: battery: fix rp current level using condition
Change-Id: I9959be3d5ad9c2c9cbe0943bc86bcd37e5487035
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
Youngsoo [Wed, 3 Apr 2019 07:13:15 +0000 (16:13 +0900)]
[RAMEN9610-14114][common][9610] wlbt: fix defconfig for user binary
Change-Id: I6cc1c7c6c655ae55b5b39e2e33f5bde2dd5654bc
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
Purnendu Kapadia [Thu, 28 Mar 2019 11:36:31 +0000 (11:36 +0000)]
[RAMEN9610-14114] [9610] wlbt: fix completion when ignoring SABLE request in wlbtd
When we get rapid requests for SABLE generation, to serialise while processing current request,
we ignore requests other than "fw_panic" in wlbtd and send a msg "ignoring" back to kernel.
We must complete in this case as well.
We must complete one completion upon message from wlbtdi, which has
waiter(s). completion_done() API does the check without modifying
the completion in anyway and returns false if there are waiters and
true otherwise
SCSC-Bug-Id: ssb-51156
Change-Id: Ieabcd8377a3040bdcfe51e4310eb55d84c693446
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
Sangkyu Kim [Tue, 2 Apr 2019 04:23:12 +0000 (13:23 +0900)]
[RAMEN9610-14121][COMMON] sched: cpufreq_schedutil: add irq_work_sync to wait completion
Change-Id: I3e60ee16bebeecc7e0731c87a3ca23058f20fa71
Signed-off-by: Sangkyu Kim <skwith.kim@samsung.com>
Kim Taejeong [Tue, 2 Apr 2019 01:10:17 +0000 (10:10 +0900)]
[RAMEN9610-14113] [9610] usb: support usb panel
Change-Id: Ic4c9862bdaf21fa906f583ca061fa5fa3f77f99f
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
JaeHun Jung [Tue, 2 Apr 2019 13:12:12 +0000 (22:12 +0900)]
[RAMEN9610-14123] [COMMON] ANDROID: mnt: Propagate remount correctly
This switches over to propagation_next to respect
namepsace semantics.
Test: Remounting to change the options of a fs with mount based
options should propagate to all shared copies of that mount,
and the slaves/indirect slaves of those.
Bug:
122428178
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Change-Id: Ieee91e3f0e5012dffa7b8a84de300ab9e6c460a9
JaeHun Jung [Mon, 1 Apr 2019 08:42:43 +0000 (17:42 +0900)]
[RAMEN9610-14079] [COMMON] ANDROID: mnt: Fix next_descendent
next_descendent did not properly handle the case
where the initial mount had no slaves. In this case,
we would look for the next slave, but since don't
have a master, the check for wrapping around to the
start of the list will always fail. Instead, we check
for this case, and ensure that we end the iteration
when we come back to the root.
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug:
62094374
Change-Id: I43dfcee041aa3730cb4b9a1161418974ef84812e
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Jungtae Kim [Fri, 29 Mar 2019 03:54:44 +0000 (12:54 +0900)]
[RAMEN9610-14032] gud: add force recovery for TEE crash
In case of TEE crash at boot time, device cannot start correctly because
some android services depends on TEE cannot run. So, to recover this
situation, this patch added forced panic() to restart device and
to recorver TEE.
Change-Id: I50e67ef6e865227ff28d4b31c7eee3cdd1244276
Signed-off-by: Jungtae Kim <jt1217.kim@samsung.com>
Youngsoo [Fri, 29 Mar 2019 12:04:07 +0000 (21:04 +0900)]
[RAMEN9610-14018][common][9610] wlbt : hip4_sampler enable when we enable SCSC_WLAN_HIP4_PROFILING
Change-Id: I036f72902d646bcd41561c6b6966ccbe9adb3e7d
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
dukhyun kwon [Thu, 19 Jul 2018 04:07:01 +0000 (13:07 +0900)]
[RAMEN9610-13999][COMMON] mmc: dw_mmc: set the drto timer only if drto does not occur
In the SOC where drto(Data response timeout)does not occur,
the corresponding function can be set separately.
Change-Id: I4b4bb53006fc4ca2932cb47b71fd2cbcc9da8ded
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
Kim Taejeong [Fri, 29 Mar 2019 01:54:43 +0000 (10:54 +0900)]
[RAMEN9610-13997][COMMON] drivers: usb/usbpd: support role swap
Change-Id: I9d6ec02ed07bf81b1104324f2dfd2a0d62c3ed54
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
Youngsoo Kim [Thu, 28 Mar 2019 05:09:40 +0000 (14:09 +0900)]
[RAMEN9610-13942][common] Revert "[RAMEN9610-13676][Common][9610][7885][7872][7570] wlbt : Mac Randomization will not be performed during Scheduled Scan."
This reverts commit
8b860d72a37035015d9d59dba3c418a76eaee3ea.
Change-Id: I645d58d2d6653f92c7e12bb1b2232f1b92c2af38
JaeHun Jung [Thu, 21 Mar 2019 06:09:27 +0000 (15:09 +0900)]
[RAMEN9610-13893][COMMON] arm64: dts: Add UFS INT min lock.
Set UFS int min lock to L1(533MHz clock) at working.
For stability.
Change-Id: I6add28900e8ac9b6cbd4e2e4b4e86fb56a7287bb
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
JaeHun Jung [Thu, 21 Mar 2019 04:24:59 +0000 (13:24 +0900)]
[RAMEN9610-13893][COMMON] scsi: ufs: fix exception event handling
The device can set the exception event bit in one of the response UPIU,
for example to notify the need for urgent BKOPs operation. In such a
case, the host driver calls ufshcd_exception_event_handler to handle
this notification. When trying to check the exception event status (for
finding the cause for the exception event), the device may be busy with
additional SCSI commands handling and may not respond within the 100ms
timeout.
To prevent that, we need to block SCSI commands during handling of
exception events and allow retransmissions of the query requests, in
case of timeout.
Change-Id: I428c7c98e5ac90aba528404d4c63e684b18180a7
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Keunho Hwang [Tue, 26 Mar 2019 03:58:09 +0000 (12:58 +0900)]
[RAMEN9610-13853][COMMON] drivers: charger: Add log for input OCP register
Change-Id: Ie1d36f13729e83d16bd2a835e226854b7951c78f
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
ChiHun Won [Tue, 26 Mar 2019 01:47:13 +0000 (10:47 +0900)]
[RAMEN9610-13838][9610] fbdev: dpu: fixed prevent issue
CID: 261450 Uninitialized scalar variable
Change-Id: Ie5964517a13f948da2dc7c82c94971d70e556c8c
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 11:13:36 +0000 (20:13 +0900)]
[RAMEN9610-13834] [COMMON] soc: samsung: Added wakeup source logging on exynos-pm.
Change-Id: Ic21c8669565c21b380afde9bb8d369a1ac4a90ef
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 11:12:58 +0000 (20:12 +0900)]
[RAMEN9610-13834] [9610] arm64: dts: Added ws-name on exynos-pm.
Change-Id: I21d455a6f446980100f78d2ae92e12df8664e276
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 08:14:51 +0000 (17:14 +0900)]
[RAMEN9610-13834] ANDROID: power: wakeup_reason: Added log_wakeup_reason_name.
Change-Id: Ia58f79b5c31136d0d1715ffd8489895627b7e71c
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 08:50:24 +0000 (17:50 +0900)]
[RAMEN9610-13834] [COMMON] soc: samsung: Added wakeup_stats property on exynos-pm.
Change-Id: Ia567974c453b39d7ffd69768ef33643822843392
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 08:49:52 +0000 (17:49 +0900)]
[RAMEN9610-13834] [9610] soc: samsung: Added wakeup_stats property on exynos-pm.
Change-Id: I95d94af858dac49863d80a1bd5b2e91c37bb8c46
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
Jeonghoon Jang [Mon, 25 Mar 2019 08:19:38 +0000 (17:19 +0900)]
[RAMEN9610-13834] Revert "[RAMEN9610-11554][9610] soc: samsung: cal-if: Added cal_print_wakeup_reason."
This reverts commit
17f55953d5f4226b8ccae46009455c8ada078f44.
Change-Id: Id4f6333957949c70b9c550cdb539df5b14dcc86f
Yunsu Kim [Tue, 19 Mar 2019 10:05:16 +0000 (19:05 +0900)]
[RAMEN9610-13804][COMMON] media: radio: Fix 'Missing autoscan 87.5Mhz'
Change-Id: Ia2f1ed7b30a4c5a45bb622c817d44a7206cc2976
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
Youngsoo [Mon, 25 Mar 2019 05:46:10 +0000 (14:46 +0900)]
[RAMEN9610-13798][common]Revert "[9610] wlbt: Read FW TxGood, RxGood, TxBad counters"
This reverts commit
59028f6be4b1a957511e740ff8812aee47f0f013.
Change-Id: I05879f2fb680ee6acc6099f06d95ce977c00bf40
jinchul kim [Wed, 12 Sep 2018 07:08:26 +0000 (16:08 +0900)]
[ERD][RAMEN9610-13615] IFPMIC: S2MU00X: current control for thermal action
Change-Id: Ib6fe1fb23c3126c383c137e4cf503912f90f8a05
Signed-off-by: jinchul kim <jinchul7.kim@samsung.com>
dan huh [Fri, 14 Sep 2018 03:21:44 +0000 (12:21 +0900)]
[ERD][RAMEN9610-13615] fimc-is2: Enable a change to sensor fps use by sysfs
Change-Id: I302e4e6ee6c81d668066488d7c2d712a8f5ffd2c
Signed-off-by: dan huh <dan.huh@samsung.com>
Hyeonseong Gil [Wed, 5 Sep 2018 04:45:46 +0000 (13:45 +0900)]
[ERD][RAMEN9610-13615] arm64: configs: Enable NTC_THERMISTOR
Change-Id: I45dd831a09e42503edf810ddf6edb6634f662aaa
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Wed, 8 Aug 2018 23:55:54 +0000 (08:55 +0900)]
[ERD][RAMEN9610-13615] [9610] arm64: dts: Enable Thermistor node
Change-Id: I9ead9c45fe7c4f1a464c91e69bdb25a1d812557f
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Signed-off-by: Hanjun Shin <hanjun.shin@samsung.com>
Hyeonseong Gil [Wed, 5 Sep 2018 04:34:48 +0000 (13:34 +0900)]
[ERD][RAMEN9610-13615] hwmon: ntc_thermistor: Add condition of iio convert
From mainline, ntc_thermistor uses iio_convert_raw_to_processed()
for microvolt conversion.
But, if adc driver does not support scaling, the API just pass raw
values as processed. Then, the driver misunderstands the values as microvolt.
So, we added iio_convert_support property from device-tree.
In our BSP, not supprot iio_convert, microvolt will be convert
by using pullup_uv.
Change-Id: Idcc2fe11835d7c0ca69c4b06e40129bafb756df4
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Wed, 5 Sep 2018 04:00:32 +0000 (13:00 +0900)]
[ERD][RAMEN9610-13615] [COMMON] hwmon: ntc_thermistor: Use pdev->name for register
Change-Id: Idf68d4be62a666bbd75ab83a6392ee1e5af3b8e8
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
hwangjae lee [Thu, 13 Sep 2018 11:37:38 +0000 (20:37 +0900)]
[ERD][RAMEN9610-13615] fbdev: dpu20: panel: max_brightness constraints is added for thermal solution
Change-Id: I48ef05fea81b348fe753584cff5f385243a1750c
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
Signed-off-by: Hanjun Shin <hanjun.shin@samsung.com>
Kim Taejeong [Sat, 23 Mar 2019 05:37:09 +0000 (14:37 +0900)]
[RAMEN9610-13766][COMMON] drivers: muic: support unstable usb connection
Change-Id: I89085baf6c58b5bdba84d6af58f558bf696bdf28
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
hayoung78.joo [Fri, 22 Mar 2019 08:39:09 +0000 (17:39 +0900)]
[RAMEN9610-13756] asoc: abox: add delay to ensure that ABOX core is suspended
Change-Id: I4d9bf28e20973231fa3d4086fe6dd2c39bb29554
Signed-off-by: hayoung78.joo <hayoung78.joo@samsung.com>
Yuseok Kim [Fri, 22 Mar 2019 17:26:21 +0000 (02:26 +0900)]
[RAMEN9610-13741][Common][9610] fix to avoid invalid scan channel
When channel scan was triggered for ACS, invalid channel was shwon.
This patch add protection code to avoid kernel panic.
Change-Id: Ic84aaddb8f145ffbb4d37c46d1a9a0d8d08b1ea0
Boojin Kim [Fri, 22 Mar 2019 04:49:15 +0000 (13:49 +0900)]
[RAMEN9610-13690] fmp: add invalid pointer check
Change-Id: I331b878539a60c86b65c98196b2630963e4d1eb2
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Mohit Ghuley [Thu, 21 Mar 2019 13:02:48 +0000 (18:32 +0530)]
[RAMEN9610-13676][Common][9610][7885][7872][7570] wlbt : Mac Randomization will not be performed during Scheduled Scan.
Mac Randomization will not be performed during Scheduled Scan.
Change-Id: Ia65a2f2c10228d2ac78f3db6e73b00a93de53329
SCSC-Bug-Id: SSB-50850
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
lakkyung.jung [Wed, 20 Mar 2019 08:56:19 +0000 (17:56 +0900)]
[RAMEN9610-13673][9610] soc: samsung: cal-if: Add to clear cpu sequencer when cpu up.
Change-Id: Ie88223a5ebb6323293f5dbab8c4388634a898d1f
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
Yunsu Kim [Fri, 22 Mar 2019 05:33:18 +0000 (14:33 +0900)]
[RAMEN9610-13671][COMMON] media: radio: Optimize seek time
Change-Id: I1047b8a5f19f8309c29b4b56478b96a0d6d8633d
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
Ivan Priest [Wed, 20 Mar 2019 15:03:55 +0000 (15:03 +0000)]
[RAMEN9610-13665][common] Wlbt: FM request API should signal active mxman
Signal FM requests to the "active" mxman context,
so that requests can be consumed during WLBT recovery,
instead of querying via the service structure that
could be NULL during the recovery phase.
Remove the service driver API for FM LDO control.
Change-Id: Icd3dadb0105ab3266639f2b83d81c353a89cc0b0
SCSC-Bug-Id: SSB-50826
Signed-off-by: Ivan Priest <i.priest@samsung.com>
Youngsoo [Thu, 21 Mar 2019 10:54:38 +0000 (19:54 +0900)]
[RAMEN9610-13636][common][prevent][9610] wlbt: fix CID261400
CID 261400 (#1 of 1): Resource leak (RESOURCE_LEAK)
8. leaked_storage: Variable firm going out of scope leaks the storage it points to.
func should return after free resources.
Change-Id: I9dcb8ff93c05785e6da10bab24660bb4f97a2db6
Debabrata Purohit [Wed, 20 Mar 2019 16:20:33 +0000 (16:20 +0000)]
[RAMEN9610-13634][common][9610] wlbt: NAPI: prevent issues in hip4.c
Resolve Prevent reported issues in hip4.c
Change-Id: I5f57e53c546242b3f789b8f8921f0e710fe77916
SCSC-Bug-Id: SSB-50793
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
Srishti Piplani [Wed, 20 Mar 2019 11:09:05 +0000 (16:39 +0530)]
[RAMEN9610-13634][common][7570][7872][7885][9610] wlbt: Prevent issues in nl80211_vendor.c and cfg80211_ops.c
Changes done to fix prevent issues in nl80211_vendor.c
and cfg80211_ops.c files.
Change-Id: Icffd273de1c0a0dde1e201b73fc3709df0e5e1d4
SCSC-Bug-Id: SSB-50792
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>