GitHub/LineageOS/android_kernel_motorola_exynos9610.git
5 months ago[RAMEN9610-13049][common][9610][7885][7872][7570] wlbt: Update P2P GO Channel in...
Mohit Ghuley [Fri, 8 Mar 2019 07:29:04 +0000 (12:59 +0530)]
[RAMEN9610-13049][common][9610][7885][7872][7570] wlbt: Update P2P GO Channel in Driver, on receiving Channel Switched Indication from Firmware.

Update P2P GO Channel in Driver, on receiving
Channel Switched Indication from Firmware.

Change-Id: Idb9f3076231d915d62f61acc73cf34f2f28bf99c
SCSC-Bug-Id: SSB-50359
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 months ago[RAMEN9610-13030][9610] drivers: battery: Add C type Rp current setting
Keunho Hwang [Thu, 7 Mar 2019 13:08:54 +0000 (22:08 +0900)]
[RAMEN9610-13030][9610] drivers: battery: Add C type Rp current setting

Change-Id: I9525b6c4b70600d97283aefecb848ab0bfe38a9a
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-13030][9610] drivers : add ccic rp current level check fucntion
Junhan Bae [Thu, 7 Mar 2019 12:52:55 +0000 (21:52 +0900)]
[RAMEN9610-13030][9610] drivers : add ccic rp current level check fucntion

Change-Id: I6e300c7e3f8b1024370d2a424d2c6e6ced5dc348
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
5 months ago[RAMEN9610-13018][COMMON] iommu/exynos: check return value and retry if PTW fault
Janghyuck Kim [Fri, 8 Mar 2019 02:19:54 +0000 (11:19 +0900)]
[RAMEN9610-13018][COMMON] iommu/exynos: check return value and retry if PTW fault

Change-Id: Ic6eabb2d13a22f629fe8aa7384e96fe01228ce8a
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
5 months ago[RAMEN9610-12969][COMMON] iommu/exynos: retry when PTW fault occur
Janghyuck Kim [Tue, 5 Mar 2019 06:53:32 +0000 (15:53 +0900)]
[RAMEN9610-12969][COMMON] iommu/exynos: retry when PTW fault occur

Change-Id: I3e425c2e611d65c6b619b3e21c46fce7de7fde18
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
5 months ago[RAMEN9610-12937][COMMON] media: radio: fix FM open fail
Yunsu Kim [Wed, 6 Mar 2019 04:53:17 +0000 (13:53 +0900)]
[RAMEN9610-12937][COMMON] media: radio: fix FM open fail

Add polling for wlbt shared ldo stable

Change-Id: Ic3f80ca8a419238b2ad37028c1b2595855777d79
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 months ago[RAMEN9610-12909][COMMON] muic: irq init sequnece change
Kim Taejeong [Tue, 5 Mar 2019 05:27:35 +0000 (14:27 +0900)]
[RAMEN9610-12909][COMMON] muic: irq init sequnece change

Problem: Kernel panic
Cause: Before work queue init, the work is called in ISR
Solution: Sequence is modified that the order on work queue and irq init
is reversed.

Change-Id: I99dfac1f36d01bb1c608e71cb88a95ad190aa34f
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 months ago[RAMEN9610-12817][COMMON][9610] driver : fix vsafe voltage and vbus check fail log
Junhan Bae [Thu, 28 Feb 2019 06:44:41 +0000 (15:44 +0900)]
[RAMEN9610-12817][COMMON][9610] driver : fix vsafe voltage and vbus check fail log

Change-Id: I0639d7149460b43dc02b2c7b94f870ec7fc5c158
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
5 months ago[RAMEN9610-12700][Common] Revert "fix not releasing hip4_wake_lock"
Youngsoo Kim [Thu, 28 Feb 2019 04:01:32 +0000 (13:01 +0900)]
[RAMEN9610-12700][Common] Revert "fix not releasing hip4_wake_lock"

This reverts commit d8ed961c7594adba0beb962ac76546c48ef3cbc4.

Change-Id: I1eb2fff62589620b2783c96382c3b3a4f1701683

5 months ago[RAMEN9610-12705][Mptool]:Porting factory mode function.
yan0414.chen [Thu, 28 Feb 2019 02:10:02 +0000 (10:10 +0800)]
[RAMEN9610-12705][Mptool]:Porting factory mode function.

Change-Id: I94b6a98c28ce9841af90ed01274cb99621a559b5
Signed-off-by: yan0414.chen <yan0414.chen@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: Mac Randomization Fixes
Kavitha Velayutham [Tue, 22 Jan 2019 12:55:47 +0000 (18:25 +0530)]
[RAMEN9610-12700][Common] wlbt: Mac Randomization Fixes

Mac randomization Fixes and optimization

Change-Id: I26d6dea2162c202cd962abcc6fadb3b54b6950a1
SCSC-Bug-Id: SSB-48540
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: NAPI: fix wakelocks
Debabrata Purohit [Mon, 25 Feb 2019 19:16:11 +0000 (19:16 +0000)]
[RAMEN9610-12700][Common] wlbt: NAPI: fix wakelocks

Fix broken HIP wakelocks for NAPI config.

Change-Id: I1ca71171a9c8084a8050facbaa431139c53e93f9
SCSC-Bug-Id: SSB-49805
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: Fix interrupt leakage
Albert Cano [Fri, 22 Feb 2019 13:35:17 +0000 (13:35 +0000)]
[RAMEN9610-12700][Common] wlbt: Fix interrupt leakage

SSB-49603 has introduced a regression where intr_tohost interrupt is not
getting freed on hip4_deinit. If BT remains on, and WIFI runs few on-off
cycles we will see that allocation will eventually fail.

Change-Id: I3419b3f47ad7fc75970d30e870efe607469c3a27
SCSC-Bug-Id: SSB-49808
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: Enhance kernel logs.
Himani Gupta [Mon, 18 Feb 2019 07:03:15 +0000 (12:33 +0530)]
[RAMEN9610-12700][Common] wlbt: Enhance kernel logs.

Enhance kernel logs and decouple driver changes from enhance
logging in rx_event_log_indication path.
Parse result code in connect_ind and pass it to above.

Change-Id: I0ed613754d8396621f733b8da78c784eadc30235
SCSC-Bug-Id: SSB-49329
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: remove needless inlining in scsc_log_collector.c
Ivan Priest [Thu, 21 Feb 2019 11:14:38 +0000 (11:14 +0000)]
[RAMEN9610-12700][Common] wlbt: remove needless inlining in scsc_log_collector.c

Some functions are needlessly static inline.

Change-Id: I1da206bfef24687717f95fbe9cae46cb700454e8
SCSC-Bug-Id: SSB-49743
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 months ago[RAMEN9610-12700][Common] wlbt: remove redundant free of static A-Box buffer
Ivan Priest [Tue, 19 Feb 2019 11:47:09 +0000 (11:47 +0000)]
[RAMEN9610-12700][Common] wlbt: remove redundant free of static A-Box buffer

Since the BT/A-Box ringbuffer moved to static memory, the
attempt to free it from the pool returns an error. Remove
the superfluous free.

Change-Id: I8dd2a5274e1503ff72452d41b4ec8c8e34bae9e9
SCSC-Bug-Id: SSB-48965
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 months ago[RAMEN9610-12695][COMMON][MODAP-20423] fix L2TP cfi_check_fail issue
Jiyoung Jeong [Thu, 28 Feb 2019 01:06:44 +0000 (10:06 +0900)]
[RAMEN9610-12695][COMMON][MODAP-20423] fix L2TP cfi_check_fail issue

Change-Id: I9b517321289235d60d44f6f814a7a6c96235836e
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-12679][Common] driver: fuelgauge: power off 3.25V using SW off.
Keunho Hwang [Tue, 26 Feb 2019 13:11:25 +0000 (22:11 +0900)]
[RAMEN9610-12679][Common] driver: fuelgauge: power off 3.25V using SW off.

Change-Id: Ibc537b96c8dea8ffee6e1352bdd2cb3b421fe8d2
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12679][Common] driver: fuelgauge: Force power off 3.25V.
Keunho Hwang [Thu, 21 Feb 2019 10:17:24 +0000 (19:17 +0900)]
[RAMEN9610-12679][Common] driver: fuelgauge: Force power off 3.25V.

Change-Id: I9cf62abdc8bfaceb279c32dac8c229672db14f6b
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12677][Common] wlbt: Scheduled Scan Results will not be reported to CFG...
Mohit Ghuley [Wed, 27 Feb 2019 10:38:51 +0000 (16:08 +0530)]
[RAMEN9610-12677][Common] wlbt: Scheduled Scan Results will not be reported to CFG, in case of 0 Scan Results.

Scheduled Scan Results will not be reported
to CFG, in case of 0 Scan Results.

Change-Id: I4d52dfe5546ba921e6ceca52de98fb9d9d6ae444
SCSC-Bug-Id: CBR-242
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 months ago[RAMEN9610-12641][COMMON][9610] ccic : fix ccic for turbo charger
Kim Taejeong [Wed, 27 Feb 2019 06:09:04 +0000 (15:09 +0900)]
[RAMEN9610-12641][COMMON][9610] ccic : fix ccic for turbo charger

Cause :
The VBUS Short check function was removed for usbpd compliance,
and ID_TA notification that was sent to MUIC after vbus short check
was completed does not come anymore ,
The flag that was checked before the muic TURBO TA HVDCP recognition was proceeded was not set.

CounterMeasure :
Send ID_TA to muic when SINK attach.

Change-Id: I150e15a9ee9b46fc16fb0487f39a98775225da05
Signed-off-by: Junhan Bae <junan84.bae@samsung.com>
5 months ago[RAMEN9610-12631][COMMON] s2mcs02: delete unnecessary alloc
Keunho Hwang [Wed, 27 Feb 2019 06:06:28 +0000 (15:06 +0900)]
[RAMEN9610-12631][COMMON] s2mcs02: delete unnecessary alloc

Change-Id: I8b96b1a480c1ccdf3b3366e63c8520a03c6d87a0
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12620][COMMON] power_supply: update power_supply_sysfs
Keunho Hwang [Wed, 27 Feb 2019 04:04:33 +0000 (13:04 +0900)]
[RAMEN9610-12620][COMMON] power_supply: update power_supply_sysfs

Change-Id: I9b572678f1327cf30416ec173a6290be3960df29
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12618][COMMON] media: radio: Add 512k trf
Yunsu Kim [Tue, 26 Feb 2019 12:02:06 +0000 (21:02 +0900)]
[RAMEN9610-12618][COMMON] media: radio: Add 512k trf

Change-Id: If31b41ece32e959642d98923826ed2ba4493a69a
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 months ago[RAMEN9610-12615][Common] wlbt: Sable firmware SCSC_LOG_FW_PANIC collection must...
Ivan Priest [Thu, 21 Feb 2019 10:23:26 +0000 (10:23 +0000)]
[RAMEN9610-12615][Common] wlbt: Sable firmware SCSC_LOG_FW_PANIC collection must be synchronous

The mxman_failure_work must wait for wlbtd to collect and archive moredump
before allowing recovery to proceed. The scsc_log_collector_schedule_collection()
must block until it is done.

Change-Id: Ic89b1a0df532782f99ed261306b6a82e1f77db44
SCSC-Bug-Id: SSB-49743
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 months ago[RAMEN9610-12615][Common][9610] wlbt : STATIC_INTERFACE disabled
Yuseok Kim [Tue, 26 Feb 2019 23:49:22 +0000 (08:49 +0900)]
[RAMEN9610-12615][Common][9610] wlbt : STATIC_INTERFACE disabled

Static interface is for STA/AP concurrency mode.
It causes kernel panic about data abort during MHS on/off test.

Change-Id: I5a6a541724bd1f6239d89ee7118539b2c4ff7743

5 months ago[RAMEN9610-12508] ion: avoid accumulation of memory of page pool
hyesoo.yu [Wed, 23 Jan 2019 06:48:26 +0000 (15:48 +0900)]
[RAMEN9610-12508] ion: avoid accumulation of memory of page pool

Cached buffer allocated from cached pool and
noncached buffer allocated from uncached pool.

However there is an exception for sync_force flag.
If the sync_force is present, it is allocated to
uncached pool regardless of buffer cachable attribute
without unnecessary cache flush.

It makes accumulation of page pool because cached buffer
with sync force flag allocates from uncached pool and
it releases to cached pool.

If uncached pool exhausts, uncached pool get pages
from buddy, but it release to cached pool.
It makes accumulation of cached pool.

To avoid this situation, the page of exception case
with cachable and sync force flags returns the uncachable
page pool after cache flush.

Change-Id: Iacba9b8f536c3e480cbdc738dc139f5c8bd4b28c
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12602][COMMON][MODAP-18802] The default value of gro_flush_time is set 0
Jiyoung Jeong [Tue, 26 Feb 2019 06:04:29 +0000 (15:04 +0900)]
[RAMEN9610-12602][COMMON][MODAP-18802] The default value of gro_flush_time is set 0

Change-Id: I60d6fe73468791e7f877688fa83c5e699d32bda5
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-12589][COMMON] arm64: dts: Disabling erase at SD card.
JaeHun Jung [Tue, 26 Feb 2019 00:18:46 +0000 (09:18 +0900)]
[RAMEN9610-12589][COMMON] arm64: dts: Disabling erase at SD card.

Android StorageManagerService has timeout(180 sec) for format.
But, Some devices are over the timeout. (Because, Spend time for erase.)
Disable on ERD9610.

Change-Id: I752bc5586643280b8c46211165e4b4452bb8f7ae
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 months ago[RAMEN9610-12589][COMMON] mmc: dw_mmc: Disable mmc erase(discard) for slow device...
JaeHun Jung [Sat, 23 Feb 2019 10:19:15 +0000 (19:19 +0900)]
[RAMEN9610-12589][COMMON] mmc: dw_mmc: Disable mmc erase(discard) for slow device format.

Android StorageManagerService has timeout(180 sec) for format.
But, Some devices are over the timeout. (Because, Spend time for erase.)

Change-Id: If5d38642d28b3937dceeca80048bc3813b27f41d
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 months ago[RAMEN9610-12449][COMMON] muic: skip vdnmon low when plug out
Kim Taejeong [Fri, 22 Feb 2019 06:26:59 +0000 (15:26 +0900)]
[RAMEN9610-12449][COMMON] muic: skip vdnmon low when plug out

Change-Id: Iaf6af296eee9cc6cb274f22b25f00c963bb5b3e8
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 months ago[RAMEN9610-12442][COMMON] muic: TA noti for sleep test
Kim Taejeong [Thu, 21 Feb 2019 02:15:42 +0000 (11:15 +0900)]
[RAMEN9610-12442][COMMON] muic: TA noti for sleep test

Change-Id: I09b9098ebdcdd71753bb24814d464ca4948ef032
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 months ago[RAMEN9610-12462][9610] fix not releasing hip4_wake_lock
dujeonglee [Fri, 22 Feb 2019 11:57:31 +0000 (20:57 +0900)]
[RAMEN9610-12462][9610] fix not releasing hip4_wake_lock

Signed-off-by: dujeonglee <dujeong.lee@samsung.com>
Disable napi

Change-Id: I64e16669943c2f9eb82ade188ac96c0e39f61c4c

5 months ago[RAMEN9610-12413][COMMON][9610] usbpd : update s2mu106 drivers for usbpd compliance
Junhan Bae [Thu, 21 Feb 2019 09:10:01 +0000 (18:10 +0900)]
[RAMEN9610-12413][COMMON][9610] usbpd : update s2mu106 drivers for usbpd compliance

Change-Id: I88bfa9de57153f0d802d689c81f97ce452e5848e
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
5 months ago[RAMEN9610-12413][kernel] modified turbo charge max charging current to 3A
hq_zhixueyin_tmp [Fri, 15 Feb 2019 01:42:02 +0000 (09:42 +0800)]
[RAMEN9610-12413][kernel] modified turbo charge max charging current to 3A

modified turbo charger max charging current to 3A

Change-Id: I2286b059e7524db6512627c3f731b0a59a457425

5 months ago[RAMEN9610-12421][COMMON][MODAP-19520] Add skb free when skb is empty
Jiyoung Jeong [Thu, 21 Feb 2019 10:06:19 +0000 (19:06 +0900)]
[RAMEN9610-12421][COMMON][MODAP-19520] Add skb free when skb is empty

Change-Id: Idfbc4f1b507855d94c35e503b32640f5b0fd6a62
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-12417][COMMON] media:radio: align register value shared by FM/WLBT
Yunsu Kim [Thu, 21 Feb 2019 09:48:12 +0000 (18:48 +0900)]
[RAMEN9610-12417][COMMON] media:radio: align register value shared by FM/WLBT

Change-Id: I1983cdc9b820681a08acc5b5840ae6885f5af6e0
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 months ago[RAMEN9610-12398] [common][9610] wlbt: host 6.63.1 release
Youngsoo [Thu, 21 Feb 2019 02:42:56 +0000 (11:42 +0900)]
[RAMEN9610-12398] [common][9610] wlbt: host 6.63.1 release

1. wlbt: Enabling GSCAN in SLSI Wifi Driver.
2. wlbt: Dwell time handling for WPS
3. wlbt: Add some missing compilation gates
4. wlbt: Send DNS request on VO AC
5. wlbt: MHS doesn't start in 5GHz for IN
6. wlbt: kstrtoint fixup

Change-Id: I2258bf9708669d83276a28c11d5bc95814ea9be5

5 months ago[RAMEN9610-12373] fbdev: dpu20: added dqe software reset
ChiHun Won [Tue, 19 Feb 2019 11:15:55 +0000 (20:15 +0900)]
[RAMEN9610-12373] fbdev: dpu20: added dqe software reset

Change-Id: I26a5e551d8fdbbec2109e1304de90c4ec5d6e5ec
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-12373] fbdev: dpu20: added dqe sfr dump
ChiHun Won [Fri, 15 Feb 2019 08:10:27 +0000 (17:10 +0900)]
[RAMEN9610-12373] fbdev: dpu20: added dqe sfr dump

Change-Id: Ic86eafb0bb8022f59047e34ea177120494b8848f
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-12350][COMMON] clocksource: arm_arch_timer: apply ARM ERRATA 858921
Hosung Kim [Thu, 14 Feb 2019 06:43:19 +0000 (15:43 +0900)]
[RAMEN9610-12350][COMMON] clocksource: arm_arch_timer: apply ARM ERRATA 858921

Change-Id: I8fcb5a9ed6ff49b333988d59aff7e60795a5798e
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
5 months ago[RAMEN9610-12339][9610] wlbt: separate completion for fw_panic
Purnendu Kapadia [Tue, 19 Feb 2019 17:54:50 +0000 (17:54 +0000)]
[RAMEN9610-12339][9610] wlbt: separate completion for fw_panic

use separate completion for fw_panic than other triggers.

for other triggers complete *ONLY ONCE* when we have written .sbl file and
ignore the second message with tar completion time

SCSC-Bug-Id: ssb-49322
Change-Id: Ia6ec5064bb795858f82a6c358c4a0517fa4b29bb
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
5 months ago[RAMEN9610-12328][9610] vipx: change DRAM address for cacheable configuration and...
Sanghwa Park [Tue, 19 Feb 2019 07:59:05 +0000 (16:59 +0900)]
[RAMEN9610-12328][9610] vipx: change DRAM address for cacheable configuration and add debugging methods

Change-Id: I8c11914bc28bff84fb19884c38c00009e8eedd67
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
5 months ago[RAMEN9610-12322][COMMON] media: radio: Fix CE FCC FM Test fail (EN303345)
Yunsu Kim [Tue, 19 Feb 2019 10:26:04 +0000 (19:26 +0900)]
[RAMEN9610-12322][COMMON] media: radio: Fix CE FCC FM Test fail (EN303345)

Change-Id: I87a88557fe1afa23bb43a02debb2e21f325d357f
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 months ago[RAMEN9610-12321][9610] driver: charger: bat OCP level 7A increase
Suji Lee [Tue, 19 Feb 2019 08:15:26 +0000 (17:15 +0900)]
[RAMEN9610-12321][9610] driver: charger: bat OCP level 7A increase

Change-Id: Ifc1b470bb1fbc15d621cee53ddcce387f81c116d
Signed-off-by: Suji Lee <suji0908.lee@samsung.com>
5 months ago[RAMEN9610-12313][COMMON] fbdev: dpu: Added esd_thread problem defence code
hwangjae lee [Tue, 19 Feb 2019 06:17:06 +0000 (15:17 +0900)]
[RAMEN9610-12313][COMMON] fbdev: dpu: Added esd_thread problem defence code

Change-Id: I688025c7a114c1db35d2b1c22b7f23e8e1a1f680
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
5 months ago[RAMEN9610-12309][9610] drivers: fuelgauge: update mode change condition
Keunho Hwang [Mon, 28 Jan 2019 04:24:38 +0000 (13:24 +0900)]
[RAMEN9610-12309][9610] drivers: fuelgauge: update mode change condition

Change-Id: Icc0d89673678ca3bd679c0a7dd042907538421fa
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12309][9610] drivers: fuelgauge: change Low voltage W/A threshold
Keunho Hwang [Tue, 19 Feb 2019 07:37:09 +0000 (16:37 +0900)]
[RAMEN9610-12309][9610] drivers: fuelgauge: change Low voltage W/A threshold

Change Low voltage W/A threshold voltage 3.45V to 3.4V

Change-Id: Ib139e80f32a61e38c1ce4370e28876d3e382964c
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12309][9610] dts: battery: Update battery parameter, 0% at 3.4V
Keunho Hwang [Tue, 19 Feb 2019 07:34:25 +0000 (16:34 +0900)]
[RAMEN9610-12309][9610] dts: battery: Update battery parameter, 0% at 3.4V

Change-Id: I250b4b4c6161f032188c0c56d454c21cd92e44f9
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-12302][common][9610] wlbt: support HIP version 3 in NAPI enabled config
Debabrata Purohit [Mon, 18 Feb 2019 18:16:32 +0000 (18:16 +0000)]
[RAMEN9610-12302][common][9610] wlbt: support HIP version 3 in NAPI enabled config

NAPI is supported for HIP config version 4 onwards.

But if in kernel config NAPI is enabled, and the
firmware is HIP config version 3, then it causes a
fatal kernel panic.

Resoultion: add support for both config version 3 and
config version 4 when NAPI is enabled in kernel config.

Change-Id: I08e7769db73ba3decbc2d4c6a1843b10a7b7f96a
SCSC-Bug-Id: SSB-49603
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
5 months ago[RAMEN9610-12296][Common][9610] wlbt: Sanitise ACL connection handle in credit checks
Mathias Sass Michno [Tue, 21 Aug 2018 06:42:32 +0000 (08:42 +0200)]
[RAMEN9610-12296][Common][9610] wlbt: Sanitise ACL connection handle in credit checks

Only the first 12 of the 16 bits in the ACL connection handles
identifies a given connection, the remaining 4 bits should therefore be
masked when used to identify the connection.

Change-Id: Ieb771952274cb036dae49db9e1229385466acbc2
SCSC-Bug-Id: SSB-42734
Signed-off-by: Mathias Sass Michno <m.michno@samsung.com>
5 months ago[RAMEN9610-12270] media: vb2: fix for wrong GFP mask to sg_alloc_table_from_pages
Janghyuck Kim [Fri, 15 Feb 2019 08:03:41 +0000 (17:03 +0900)]
[RAMEN9610-12270] media: vb2: fix for wrong GFP mask to sg_alloc_table_from_pages

sg_alloc_table_from_pages() would be failed if free memory is not
enough. GFP mask is changed to GFP_KERNEL to reclaim memory in this
situation.

Change-Id: I654975ce7903f1545e10ac1bc2f905f1caff8268
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
5 months ago[RAMEN9610-12270] media: smfc: force unshareable for HWFC buffer
Cho KyongHo [Mon, 18 Feb 2019 04:19:34 +0000 (13:19 +0900)]
[RAMEN9610-12270] media: smfc: force unshareable for HWFC buffer

Camera driver has no chance to maintain its destination buffer before
reading the buffer by SMFC if HWFC is enabled because SMFC starts
reading the buffer before MSCS finishes writing to the buffer.
Therefore, we should make SMFC read the buffer with the unshareable
attribute.

Change-Id: I9e9e326ecaa742fba1995a1bfc3f2ff60e68ef37
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270] media/vb2-dma-sg: add IOMMU_UNCACHED memops flag
Cho KyongHo [Mon, 18 Feb 2019 04:10:45 +0000 (13:10 +0900)]
[RAMEN9610-12270] media/vb2-dma-sg: add IOMMU_UNCACHED memops flag

VB2_DMA_SG_MEMFLAG_IOMMU_UNCACHED is introduced to prevent configuring
IOMMU_CACHE to iovmm_map() and ion_iovmm_map() which force shareable
mapping to the page table of the client device.
It is required by some shareable devices(devices with I/O Cache
coherency) which does not want to create shareable mappings for some
buffers.

Change-Id: Ic0c380a35cb6044d8d92500716081d45535965fe
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270] media: vb2: deliver alloc/map context to memops
Cho KyongHo [Mon, 18 Feb 2019 03:57:02 +0000 (12:57 +0900)]
[RAMEN9610-12270] media: vb2: deliver alloc/map context to memops

vb2 memops never know about the context in which it is working because
vb2 does not deliver information about the current working context.
However, vb2 memops sometimes needs to know the current context to
improve the performance or manage memory access correctly. Instead of
passing such information from vb2-core, it had better generated from
the client drivers because the information might be driver-specific
or memops-specific.
Let's deliver the information with flags. The flags should be memops-
specific and the client drivers can configure the flags in a callback,
memops.mem_flags(). It is called before .alloc() for mmap,
.get_userptr() for userptr and .map_dmabuf() for dmabuf.
The flags are defined by and specific to memops implementations.

Change-Id: I0b68df4bed659fb99e94755bf9333594b68c0b3b
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270] android: ion: do not force IOMMU_CACHE
Cho KyongHo [Mon, 18 Feb 2019 02:32:11 +0000 (11:32 +0900)]
[RAMEN9610-12270] android: ion: do not force IOMMU_CACHE

Some I/O coherent DMA may not want to force IOMMU_CACHE. Let's leave
its decision to the clients.

Change-Id: I574e55cfbf79a17b55ea71ba8753cfe799f7b5db
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270] iommu/exynos: do not force IOMMU_CACHE
Cho KyongHo [Mon, 18 Feb 2019 02:28:45 +0000 (11:28 +0900)]
[RAMEN9610-12270] iommu/exynos: do not force IOMMU_CACHE

IOMMU_CACHE of Exynos IOMMU means shareable in the page tables of IOMMU.
Forcing shareable to all I/O coherent DMAs may obstruct changes to
shareability property of DMAs of the client drivers.

Change-Id: Ibb5e0f5f5a0e0ef6942b2d7901014e6b94e430b1
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270] g2d: add missing IOMMU_CACHE to iommu mapping
Cho KyongHo [Mon, 18 Feb 2019 02:24:59 +0000 (11:24 +0900)]
[RAMEN9610-12270] g2d: add missing IOMMU_CACHE to iommu mapping

IOMMU_CACHE should be specified to iovmm_map() if G2D supports IO Cache
Coherency but it was missing because ION and IOMMU drivers adds
IOMMU_CACHE if their clients has DMA attributes of IO cache coherency.
But it is not correct to delegate configuration to IOMMU_CACHE to ION
and IOMMU drivers because G2D driver does not have any room to change
such configurations.

Change-Id: I6c20727c913af52781230669621bf8cf12faafdc
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12270][COMMON] media: vb2: modify to support offset in dmabuf
Seungchul Kim [Thu, 27 Sep 2018 05:03:43 +0000 (14:03 +0900)]
[RAMEN9610-12270][COMMON] media: vb2: modify to support offset in dmabuf

The offset was added to v4l2_buffer,
but vb2 does not support offset.
So vb2 is modified to support offset calculation.

Change-Id: Iee6e4b1146043eae00450556ba4686ba412aec0d
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
5 months ago[RAMEN9610-12270] media: vb2: avoid accessing buffer from dmabuf_container
hyesoo.yu [Mon, 13 Aug 2018 09:42:52 +0000 (18:42 +0900)]
[RAMEN9610-12270] media: vb2: avoid accessing buffer from dmabuf_container

dmabuf_container is a dmabuf but it just has metadata of buffers that
it is containing. Trying to access buffer information through the
result of dma_buf_map_attachment() should be avoided.

Change-Id: I55c2e9a11ce4932d98cc0e72ab25e85f27a9f670
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12270] videobuf2: sync the buffer with as much as payload
hyesoo.yu [Fri, 31 Aug 2018 01:19:55 +0000 (10:19 +0900)]
[RAMEN9610-12270] videobuf2: sync the buffer with as much as payload

Change-Id: Ibda4b01e19a26e3ad771ee45bfa688ec394c55fe
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12266][MODAP-18597[9610] wlbt: do not unmap A-Box memory from MMU when...
Ivan Priest [Fri, 15 Feb 2019 11:22:54 +0000 (11:22 +0000)]
[RAMEN9610-12266][MODAP-18597[9610] wlbt: do not unmap A-Box memory from MMU when BT restarts

The A-Box memory was being unmapped from the MMU when BT restarted,
this caused a kernel panic if A-Box was still using the memory.
Once the A-Box memory is mapped, do not unmap it.

Change-Id: I1bcd78aa1adbac12e87b8c8ad3c4afe1b2fd9314
SCSC-Bug-Id: SSB-49425
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 months ago[RAMEN9610-12262][COMMON] usb: add __nocfi to avoid cfi checking
Kisang Lee [Mon, 18 Feb 2019 04:45:18 +0000 (13:45 +0900)]
[RAMEN9610-12262][COMMON] usb: add __nocfi to avoid cfi checking

Change-Id: I8795e8c2f8828bb71d85a1b48516f037d77bdfaf
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 months ago[RAMEN9610-12260][COMMON] fbdev: dpu: PHY status check code is added
hwangjae lee [Mon, 18 Feb 2019 04:15:47 +0000 (13:15 +0900)]
[RAMEN9610-12260][COMMON] fbdev: dpu: PHY status check code is added

Change-Id: Iab233973f1822972e5632a4c3e39acaf3b4b491f
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
5 months ago[RAMEN9610-12257][COMMON][MODAP-18889] Change alloc type GFP_KERNEL -> GFP_ATOMIC
Jiyoung Jeong [Mon, 18 Feb 2019 04:23:06 +0000 (13:23 +0900)]
[RAMEN9610-12257][COMMON][MODAP-18889] Change alloc type GFP_KERNEL -> GFP_ATOMIC

Change-Id: I7ff09d8a728c02e5687c448f380302d073d41538
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-12196] crypto: check the validation of crypto pointer
Boojin Kim [Fri, 15 Feb 2019 04:51:42 +0000 (13:51 +0900)]
[RAMEN9610-12196] crypto: check the validation of crypto pointer

This patch checkes the validation of crypto pointer before puting it.

Change-Id: If016ae6108cb59d3cdf9c010340f022845a744a0
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
5 months ago[RAMEN9610-12194][9610] thermal: exynos_tmu: Add cpu max frequency limit control...
Chungwoo Park [Mon, 21 Jan 2019 10:18:39 +0000 (19:18 +0900)]
[RAMEN9610-12194][9610] thermal: exynos_tmu: Add cpu max frequency limit control code.

This patch added thermal driver control to cpu max freqency through temperature.
First if ect has limited_frequency value, exynos-tmu operate limit max frequency to pm qos.
If temperature higher than limited_threshold, driver set max qos to limited_frequency.
And if temperature is lower than limited_threshold_release,
driver release max qos value.

Change-Id: Iaccd295818eeceae035631a6dc7eebdd38044e40
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: include <slub.h>
Cho KyongHo [Fri, 26 Oct 2018 06:27:37 +0000 (15:27 +0900)]
[RAMEN9610-12171] android: ion: include <slub.h>

<linux/slub.h> is needed by kmalloc_array().

Change-Id: I7237cd0a3ddd53fa8419f265c459e6afc3c3c487
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] dma-buf: add dma_buf_[un]map_attacment_area
hyesoo.yu [Fri, 31 Aug 2018 01:15:20 +0000 (10:15 +0900)]
[RAMEN9610-12171] dma-buf: add dma_buf_[un]map_attacment_area

dma-buf supports the dma_buf_[un]map_attachment_area
to inform exporter of the payload area to use
buffer synchronization or mapping for DMA.

Change-Id: I690a6f9695df77a650eadceb38a8280b1a569408
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] dma-buf: fix gcc build error due to type
hyesoo.yu [Wed, 5 Sep 2018 00:31:06 +0000 (09:31 +0900)]
[RAMEN9610-12171] dma-buf: fix gcc build error due to type

Change-Id: I33c7cf960b02c9d1c43a438671fb038da59076a7
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] mm/hpa: fix possible inifinite page isolation
Cho KyongHo [Thu, 7 Feb 2019 07:52:12 +0000 (16:52 +0900)]
[RAMEN9610-12171] mm/hpa: fix possible inifinite page isolation

If HPA starts isolating pages in a page block that is currently
isolated in another thread, the page block possibly remains isolated
infinitely because HPA decides the target migratetype of the page block
from the current migratetype of it. Once it gets migratetype of a page
block as MT_ISOLATE and passes it to alloc_contig_range(), the final
migratetype of the page block becomes MT_ISOLATE which is not expected.

See the following race condition described by Jaewon Kim.
CPU0                              CPU1

get_pageblock_migratetype
 -> get MT_NON_ISOLATE as previous MT
alloc_contig_range_fast
 __alloc_contig_range
  start_isolate_page_range
   -> set to MT_ISOALTE
                                  get_pageblock_migratetype
                                   -> get MT_ISOLATE as previous MT
                                   alloc_contig_range_fast
                                    __alloc_contig_range
                                     start_isolate_page_range
                                      -> set to MT_ISOALTE
  undo_isolate_page_range to the
   -> recover to MT_NON_ISOLATE
                                     undo_isolate_page_range
                                      -> recover to MT_ISOLATE

He observed a page block is remained isolated for a log time.

Change-Id: I933b5c1a281ee32f400d63913c52301bb01cb550
Reported-by: Jaewon Kim <jaewon31.kim@samsung.com>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] arm64: dts: limit HPA of Exynos9610 to lower 4GB
Cho KyongHo [Mon, 31 Dec 2018 04:30:35 +0000 (13:30 +0900)]
[RAMEN9610-12171] arm64: dts: limit HPA of Exynos9610 to lower 4GB

PPMPU of Exynos9610 is capable of protecting 4GB.

Change-Id: If2ffa0d3f4fb52da1fe9f3b7a42ddbee30c9689b
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: remove trailing whitespaces
Cho KyongHo [Thu, 25 Oct 2018 07:51:50 +0000 (16:51 +0900)]
[RAMEN9610-12171] android: ion: remove trailing whitespaces

Since 'commit 739bf5308f1d ("ion: remove recursive lock")', the list
of devices which have mapping of a buffer in the list of buffers shown
by /sys/kernel/debug/ion/buffers and oom killer notifier is removed
because it causes deadlock. But the title of the removed display item
and the trailing whitespaces at each line are still alive.

Change-Id: Ib6cb01306b97849ac6eea7198f0f6c725faa415b
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: cacheflush on entire proteted area
Cho KyongHo [Tue, 15 Jan 2019 12:28:21 +0000 (21:28 +0900)]
[RAMEN9610-12171] android: ion: cacheflush on entire proteted area

Pages from the CMA heap tends to be cached in the CPU caches with dirty
state since they are served as anon and page cache pages for the
userspace.
Flushing caches on buffer allocation is intended for prenventing
corruption from writing back to DRAM from the dirth cache lines while
updating the buffer from DMA. However, cache flush should be performed
on the entire allocated area if the buffer is to be protected from
non-secure access to prevent the dirty write-back to the protected area.
It is also applied to the carveout heap because allocation from a
carveout heap by an anonymous user is not prohibited.

Change-Id: Ieb1ae2efacefe1d23f03a4cc72615d45b4309eb7
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] ion: fix stack-out-of-bounds
hyesoo.yu [Tue, 11 Dec 2018 08:53:54 +0000 (17:53 +0900)]
[RAMEN9610-12171] ion: fix stack-out-of-bounds

The align variable is 4bytes but casted with 8bytes,
so it makes stack-out-of-bounds problem.

Change-Id: I458b42cc953c18a6f28bdba20c262fe5eaeb5a60
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: fix assigning long to int
Cho KyongHo [Fri, 23 Nov 2018 08:29:38 +0000 (17:29 +0900)]
[RAMEN9610-12171] android: ion: fix assigning long to int

This fixes SEC_INVALID_ASSIGNMENT_WITH_UNSIGNED_VALUES

Change-Id: I87124a4421b76cfb0e4060bb33c273f3cc879398
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: fix assigning shifted int to size_t
Cho KyongHo [Fri, 23 Nov 2018 08:21:22 +0000 (17:21 +0900)]
[RAMEN9610-12171] android: ion: fix assigning shifted int to size_t

This fixes SEC_BITSHIFT_MIGHT_OVERFLOW.

Change-Id: If39bb9e4da6c9c6acdba25ec817933204c0a6801
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: fix missing mutex_unlock()
Cho KyongHo [Fri, 23 Nov 2018 08:10:07 +0000 (17:10 +0900)]
[RAMEN9610-12171] android: ion: fix missing mutex_unlock()

mutex_unlock() is missing in exceptional case in __ion_iovmm_unmap().

Change-Id: Ic3379cacd396e867e44127d85b12040c7817c4e3
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] ion: add ion_iovmm_[un]map_attr
hyesoo.yu [Wed, 7 Nov 2018 09:45:31 +0000 (18:45 +0900)]
[RAMEN9610-12171] ion: add ion_iovmm_[un]map_attr

ion_iovmm_[un]map supports to map the device virtual
address depending the attribute of the buffer such as
secure. On the other hand, ion_iovmm_[un]map_attr supports
to map using the requested attribute by parameter
rather than attribute of buffer.

Change-Id: I022089fcfc7d1a8e1a9893fe5972bbf1c190c35b
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] mm: hpa: change allocate logic from buddy
hyesoo.yu [Wed, 11 Oct 2017 06:56:23 +0000 (15:56 +0900)]
[RAMEN9610-12171] mm: hpa: change allocate logic from buddy

The search order is from smallest order with the same
migrate type for reducing the memory fragment and allocate
only 64KB from buddylist and then expand the buddy pages
if the allocated page's order is bigger than requested
order to avoid allocation failure.

Change-Id: If1b224a7034830615dd59f1c92e603bab1158590
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: never free pages if unprotect fails
Cho KyongHo [Tue, 30 Oct 2018 07:37:49 +0000 (16:37 +0900)]
[RAMEN9610-12171] android: ion: never free pages if unprotect fails

If releasing H/W protection to a buffer fails, the buffer might not
be unusable in Linux forever becuase we do not have an idea to
determine if the buffer is accessible in Linux. So, we should mark
that buffer unusable with holding allocated buffer.

Change-Id: I7443506d3092adfd5538383faed7fc80f3bef8df
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: do not free secure addr on smc error
Cho KyongHo [Tue, 30 Oct 2018 07:31:54 +0000 (16:31 +0900)]
[RAMEN9610-12171] android: ion: do not free secure addr on smc error

ion_secure_unprotect() first calls smc to release any protection to
the given buffer and frees secure address for H/Ws that needs to access
that buffer. However, if releasing protection fails, the given buffer
may not be usable in Linux forever because the buffer might be
protected by H/W.

Change-Id: I91fb007e3df9330240d8900b5dc2da88e9564f8b
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: make ion_secure_iova_free() static
Cho KyongHo [Tue, 30 Oct 2018 07:23:10 +0000 (16:23 +0900)]
[RAMEN9610-12171] android: ion: make ion_secure_iova_free() static

ion_secure_iova_free() is never used outside of ion_buffer_protect.c.

Change-Id: I0d2fa1797c7bc7a93c151182e1ca782a8d149fbb
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] ion: remove unnecessary lock
hyesoo.yu [Tue, 16 Oct 2018 08:45:20 +0000 (17:45 +0900)]
[RAMEN9610-12171] ion: remove unnecessary lock

Change-Id: I7acae56998ca14c44c5fde913c60312ec515dde4
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] ion: remove recursive lock
hyesoo.yu [Wed, 17 Oct 2018 01:24:25 +0000 (10:24 +0900)]
[RAMEN9610-12171] ion: remove recursive lock

The oom notifiers is called from alloc_pages when the
memory exhausts. If the ion tries to memory allocation
with acquiring lock, and it happens out-of-memory, and
oom notifiers tries to the same lock, it makes recursive
lock.

Currently, ion_device->buffer_lock, ion_device->lock and
ion_heap->free_lock does not try to allocate memory but
buffer->lock tries to allocate memory, so we remove that
on oom notifier.

If that lock is removed, buffer->iovas and buffer->vaddr,
buffer->kmap_cnt can't be accessed because that requires
the lock to access without any synchronization problem.

Change-Id: Ie85038640d4bd271b28c993017fac865843ed83d
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] android: ion: add 'ion,hpa_limit' to dts
Cho KyongHo [Mon, 15 Oct 2018 12:21:25 +0000 (21:21 +0900)]
[RAMEN9610-12171] android: ion: add 'ion,hpa_limit' to dts

'ion,hpa_limit' property in 'ion-hpa-heap' node specifies the largest
address plus one that HPA can allocate. Therefore ion_hpa_heap should
not allocate pages from the physical address specified by
'ion,hpa_limit' to the end of possible physical address
(0xFFFF_FFFF_FFFF_FFFF).

Change-Id: I0c2cfdca1adbbf1c6602ebb3b68cc0cd5036854e
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-12171] ion: add heap debug node
hyesoo.yu [Tue, 21 Aug 2018 04:46:05 +0000 (13:46 +0900)]
[RAMEN9610-12171] ion: add heap debug node

This debug node show allocation status for heaps to
allocate contiguous memory to know memory fragmentation,
memory leak, or memory staticstics.

Change-Id: I99a74a695587ffea75dcd543b9d59fa94d757ead
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] ion: support dma_buf_[un]map_attachment_area
hyesoo.yu [Fri, 31 Aug 2018 01:18:41 +0000 (10:18 +0900)]
[RAMEN9610-12171] ion: support dma_buf_[un]map_attachment_area

ion support to synchronize the buffer with as much
as the payload.

Change-Id: Ib7fb028d5372d528ae448215ff73704c84befa67
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] ion: protect buffer id by buffer_lock of device
hyesoo.yu [Thu, 13 Sep 2018 08:56:58 +0000 (17:56 +0900)]
[RAMEN9610-12171] ion: protect buffer id by buffer_lock of device

The exynos_ion_alloc_fixup function set the id
for the buffer.

The buffer id must be unique. The ida library
does its own locking without special requirement
to support unique id.
However it is possible not to set the unique id
when the returned id is error by the ida full or
other reason, and the id is set as MAX_BUFFER_ID
and updates last_buffer_id as zero because that
critical region is not protected by lock.

Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
Change-Id: Idf737b68995278a382c8db5708e13223f46dcf9f

5 months ago[RAMEN9610-12171] ion: allocate zero for system heap id
hyesoo.yu [Thu, 13 Sep 2018 02:13:31 +0000 (11:13 +0900)]
[RAMEN9610-12171] ion: allocate zero for system heap id

Traditionally, the system heap is was always zero.
The heap id is created according to the registered order
after kernel 4.12, but the system heap is registered first
to provide compatibility with users to use the system heap.

Change-Id: I46f203a533f6c29b62ced6b49c0a5a5a98e2a914
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] ion: fix gen pool management leak for error
hyesoo.yu [Mon, 10 Sep 2018 09:55:04 +0000 (18:55 +0900)]
[RAMEN9610-12171] ion: fix gen pool management leak for error

Change-Id: I09f6536f9f3e91e3d3598bcfbbbdd929a0558306
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171][COMMON] ion: add event log on debugfs
hyesoo.yu [Fri, 1 Jun 2018 09:36:58 +0000 (18:36 +0900)]
[RAMEN9610-12171][COMMON] ion: add event log on debugfs

timestamp        type     heap            buffer_id  size       time   remarks
------------------------------------------------------------------------
[000113.120867]    alloc  ion_system_heap     1     32400        178   noncached
[000113.121074]     mmap  ion_system_heap     1     32400        521
[000113.121153]     free  ion_system_heap     1     32400      31555
[000113.526191]    alloc  ion_system_heap     2     32400        177   cached
[000113.526398]     mmap  ion_system_heap     2     32400        472

show the event for ion buffers when alloc, mmap,
free, cache maintenance, system mmu mapping with timestamp
until 1024 record.

Change-Id: Ia0a4c69e7509c2d4ae035ca8fa8ab90354708d9c
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12171] ion: attach prefix [Exynos][ION] to all error logs
hyesoo.yu [Mon, 6 Aug 2018 08:01:32 +0000 (17:01 +0900)]
[RAMEN9610-12171] ion: attach prefix [Exynos][ION] to all error logs

Introducing four printk helper for ION driver
- perr: print logs in error level.
- perrfn: print logs with current function name.
- perrdev: print logs with devce name.
- perrfndev: print logs with current function name and device name.

All above macros attaches newline after the log.

Change-Id: Iabd441ff7b5b808baa832ec6ecf826b0e93e9a43
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-12143][9610] drivers: charger: enable irqs and add debug log
Suji Lee [Thu, 14 Feb 2019 05:29:26 +0000 (14:29 +0900)]
[RAMEN9610-12143][9610] drivers: charger: enable irqs and add debug log

unmask bat, det_bat, ivr, micd irq and add the registers in test_read

Change-Id: I1fba531a2249a4aa35e013849601d12f84bb491e
Signed-off-by: Suji Lee <suji0908.lee@samsung.com>
5 months ago[RAMEN9610-12132] vipx: add logs for debugging
Sanghwa Park [Wed, 13 Feb 2019 06:26:51 +0000 (15:26 +0900)]
[RAMEN9610-12132] vipx: add logs for debugging

Change-Id: I2ad36a3049c7e3a300987284c0c0e0ced44de4b9
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
5 months ago[RAMEN9610-12132] vipx: add suspend/resume interface
Sanghwa Park [Wed, 13 Feb 2019 06:26:07 +0000 (15:26 +0900)]
[RAMEN9610-12132] vipx: add suspend/resume interface

Change-Id: I52ce913fbac7ec3ceda1e426e33643eaef88603d
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
5 months ago[RAMEN9610-12132] vipx: add API to release kernel binary
Sanghwa Park [Wed, 13 Feb 2019 05:43:43 +0000 (14:43 +0900)]
[RAMEN9610-12132] vipx: add API to release kernel binary

Change-Id: Id55c6e9dc5d3356a5b70bb7f28dfa18e1bc6fd58
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
5 months ago[RAMEN9610-12105][COMMON] lib: Kconfig: Enable freq logging when MINIMIZE_MODE
Changki Kim [Wed, 13 Feb 2019 04:47:33 +0000 (13:47 +0900)]
[RAMEN9610-12105][COMMON] lib: Kconfig: Enable freq logging when MINIMIZE_MODE

Change-Id: I243195a5c40e8d007c859fe794dac817e287657a
Signed-off-by: Changki Kim <changki.kim@samsung.com>
5 months ago[RAMEN9610-12100][COMMON] usb: gadget: remove unnecessary delay in functionfs bind
Kisang Lee [Wed, 13 Feb 2019 04:10:21 +0000 (13:10 +0900)]
[RAMEN9610-12100][COMMON] usb: gadget: remove unnecessary delay in functionfs bind

Change-Id: I8bb6d6c26e505abbc8fe1fc493983d71410459cf
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 months ago[RAMEN9610-12059] ccic : sync s2mu106 ccic code
Junhan Bae [Tue, 12 Feb 2019 04:53:33 +0000 (13:53 +0900)]
[RAMEN9610-12059] ccic : sync s2mu106 ccic code

Change-Id: I3fc4fee2eccd286d6dad4eab33746c2a30ba7261
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>