GitHub/LineageOS/android_kernel_motorola_exynos9610.git
5 months ago[RAMEN9610-11577][COMMON] soc: samsung: change prototype chipid_board_id_show
Sangwook Ju [Wed, 19 Dec 2018 09:53:18 +0000 (18:53 +0900)]
[RAMEN9610-11577][COMMON] soc: samsung: change prototype chipid_board_id_show

Change-Id: Id45c26d4fa9d93be7eebc1ec05e7c17f763c208d
Signed-off-by: Sangwook Ju <sw.ju@samsung.com>
5 months ago[RAMEN9610-11577][COMMON] soc: exynos-chipid: Add Board revision sysfs node
Jaehyoung Choi [Mon, 15 Oct 2018 10:41:29 +0000 (19:41 +0900)]
[RAMEN9610-11577][COMMON] soc: exynos-chipid: Add Board revision sysfs node

Change-Id: I407e2fbdeb876584b278a966ba74be6292683f01
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
5 months ago[RAMEN9610-11575] change iic div calculation formula for frquency not up to the set...
ts_songwei1113_tmp [Mon, 5 Nov 2018 09:45:42 +0000 (17:45 +0800)]
[RAMEN9610-11575] change iic div calculation formula for frquency not up to the set value

Change-Id: Ic6514913c0cb9062ef8daaffb433601f6dad6bb3

5 months ago[RAMEN9610-11559][COMMON] spi: s3c64xx: Fix runtime PM feature for SPI driver
Kyungwoo Kang [Tue, 28 Aug 2018 11:09:56 +0000 (20:09 +0900)]
[RAMEN9610-11559][COMMON] spi: s3c64xx: Fix runtime PM feature for SPI driver

Add protection code for runtime pm at SPI driver.
Now spi driver waits for runtime_pm until recovers from
suspended mode.

Change-Id: I2402e4f13e92e3d941f0b2e91716558ad7ecc8d0
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
5 months ago[RAMEN9610-11554][9610] soc: samsung: cal-if: Added cal_print_wakeup_reason.
Jeonghoon Jang [Tue, 15 Jan 2019 07:42:00 +0000 (16:42 +0900)]
[RAMEN9610-11554][9610] soc: samsung: cal-if: Added cal_print_wakeup_reason.

Change-Id: I27f38d8896d07e7c368d35b77da7ae94fae51e1c
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
5 months ago[RAMEN9610-11479][9610] vipx: support ofi framework
Sanghwa Park [Mon, 28 Jan 2019 05:50:25 +0000 (14:50 +0900)]
[RAMEN9610-11479][9610] vipx: support ofi framework

  - add ofi framework support
  - remove reserved memory
  - enhance debug feture

Change-Id: I2b20c2872e264ef12ad264b23c1dc7027cb62ad8
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
5 months ago[RAMEN9610-11497][COMMON] arm64: dts: Add dbg-uart-ch property to serial_0 node
myung-su.cha [Mon, 28 Jan 2019 13:23:02 +0000 (22:23 +0900)]
[RAMEN9610-11497][COMMON] arm64: dts: Add dbg-uart-ch property to serial_0 node

dbg-uart-ch property is used for lenovo uart console resume latency
issue in user binary.

Change-Id: I3060a96df912bc86bedee43b35fd126bd52600cf
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
5 months ago[RAMEN9610-11497][COMMMON] serial: samsung: Set default Baud rate as 115200
myung-su.cha [Mon, 28 Jan 2019 12:59:09 +0000 (21:59 +0900)]
[RAMEN9610-11497][COMMMON] serial: samsung: Set default Baud rate as 115200

Abnormal resume latency issue in user binary is because Baud
rate is set 9600. To resolve this issue, this patch makes Baud
rate as 115200 when requested Baud rate is 0.

Change-Id: I71b54f2adc63f96032b9c628a5afb7e5e5377fc8
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
5 months ago[RAMEN9610-11632][9610] fimc-is2: add function for bts_update for thermal
Wooyeon Kim [Tue, 29 Jan 2019 08:21:01 +0000 (17:21 +0900)]
[RAMEN9610-11632][9610] fimc-is2: add function for bts_update for thermal

 - update bts function for thermal

Change-Id: Ic7ea5c425a9a839bf4db2921d7d1458a50243b29
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
5 months ago[RAMEN9610-11632][COMMON] fimc-is2: add function for bts_update_scen when throttling...
Wooyeon Kim [Mon, 28 Jan 2019 10:54:32 +0000 (19:54 +0900)]
[RAMEN9610-11632][COMMON] fimc-is2: add function for bts_update_scen when throttling state

 - when throttling state, need to adjust camera device's mo

Change-Id: Ibb4a463788e3cd41f217d1490af97cba7e5df3d5
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
5 months ago[RAMEN9610-11632][9610] bts: add scenario for thermal throttling
Taekki Kim [Mon, 28 Jan 2019 09:57:51 +0000 (18:57 +0900)]
[RAMEN9610-11632][9610] bts: add scenario for thermal throttling

This patch adds scenario for thermal throttling.
The bandwidth of ISP blocks limited when thermal throttling.

Change-Id: If36c08fbbf8a74b144e28896b44e91b8b055bc3a
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
5 months ago[RAMEN9610-11469][COMMON] usb: dwc3: change workqueue for connection stability
Kisang Lee [Fri, 25 Jan 2019 04:02:10 +0000 (13:02 +0900)]
[RAMEN9610-11469][COMMON] usb: dwc3: change workqueue for connection stability

Change-Id: I8ec23741edd5c5a367e7996caf049814c389aaed
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 months ago[RAMEN9610-11232] cpufreq: acme: sync cur freq with resume freq when trying to suspend
Choonghoon Park [Wed, 16 Jan 2019 06:57:16 +0000 (15:57 +0900)]
[RAMEN9610-11232] cpufreq: acme: sync cur freq with resume freq when trying to suspend

Change-Id: I517c2c6116f8ceca91ba760743349e9af7f1eaf0
Signed-off-by: Choonghoon Park <choong.park@samsung.com>
Signed-off-by: Hyunju Kang <hjtop.kang@gmail.com>
5 months ago[RAMEN9610-11445][9610] wlbt : update MAC addr scheme to avoid merge conflict
wangxuan [Tue, 23 Oct 2018 04:05:47 +0000 (12:05 +0800)]
[RAMEN9610-11445][9610] wlbt : update MAC addr scheme to avoid merge conflict

Read wifi/bt addr from utag

Change-Id: I34ceefe178bdd0c3285f1f1cc0b504991ee65fbb

5 months ago[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1
Youngsoo [Tue, 22 Jan 2019 02:22:29 +0000 (11:22 +0900)]
[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1

1) Fix kernel panic in slsi_bt_send_frame
2) Fix memory leak in slsi_bt_send_frame
3) Rx: A-MSDU: handle alloc failure
4) fix broken HIP4 stats
5) Mac randomization through wificond
6) protect dynamic interface deletion with lock
7) delibrately panic kernel on fw panic
8) Prevent issue and Mac Randomization Fixes.
9) Claim wakelock around wlbtd netlink comms
10) Increase FW version Size to 128 bytes

Change-Id: I6af7b83548576a93e122865cec8490f42fb87264
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
5 months ago[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue.
Himani Gupta [Fri, 4 Jan 2019 06:32:22 +0000 (12:02 +0530)]
[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue.

Driver changes to calculate rssi factor for 2.4GHZ.

Change-Id: I3e091c379d4b2e62d51ea1e118569a5a58ea109c
SCSC-Bug-Id: SSB-47988
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 months ago[RAMEN9610-10619][Robusta2][9610] wlbt: [ACS] Driver changes
Himani Gupta [Mon, 24 Dec 2018 13:31:29 +0000 (19:01 +0530)]
[RAMEN9610-10619][Robusta2][9610] wlbt: [ACS] Driver changes

Added support for ACS in driver.

Change-Id: Iad87233b170ea488656d92665bba1172353da0ec
SCSC-Bug-Id: SSB-47573
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 months ago[RAMEN9610-10479][Robusta2][9610] IB/hfi1: convert to debugfs_file_get() and -put()
Nicolai Stange [Mon, 30 Oct 2017 23:15:51 +0000 (00:15 +0100)]
[RAMEN9610-10479][Robusta2][9610] IB/hfi1: convert to debugfs_file_get() and -put()

Convert all calls to the now obsolete debugfs_use_file_start() and
debugfs_use_file_finish() to the new debugfs_file_get() and
debugfs_file_put() API.

Change-Id: Ie1e7aead3bdbc674066e53b7a389993607518267
Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data")
Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 months ago[RAMEN9610-10479][Robusta2][9610] wlbt: fix for kernel panic and changes for function...
Purnendu Kapadia [Tue, 4 Sep 2018 15:35:22 +0000 (16:35 +0100)]
[RAMEN9610-10479][Robusta2][9610] wlbt: fix for kernel panic and changes for function improvement

1) generate sable tar on wifi disconnect
2) disable log collection for default
3) Memleaks and unexpected break fall through is fixed
4) Fix compile errors when various optional features disabled
5) Protect hip dereferencing
6) zero out BT/A-BOX ringbuffer on BT crash
7) Improve scsc_mx Makefile modules compatibility
8) CONTROL_ROAMING feature in FW
9) Improve collection speed
10)vif cleanup changes
11) Initialize g_spinlock lock

bugdb : REL-1633

Change-Id: Icda4e62b237e2a93251e7020c974be3bbb18b49f

5 months ago[RAMEN9610-6379][9610]wlbt: change the path of wlan mac address
avoid [Tue, 18 Sep 2018 02:08:29 +0000 (10:08 +0800)]
[RAMEN9610-6379][9610]wlbt: change the path of wlan mac address
The address is no longer read from the partition, but from the file node

Change-Id: I3abd45f4dd44e9780d927edf038e234786e81585
Signed-off-by: avoid <bing3.lin@samsung.com>
5 months agoRevert "[RAMEN9610-10521][9610] wlbt: fix for kernel panic and changes for function...
Yuseok Kim [Fri, 25 Jan 2019 16:28:38 +0000 (01:28 +0900)]
Revert "[RAMEN9610-10521][9610] wlbt: fix for kernel panic and changes for function improvement"

This reverts commit 4a37fc74a2aef6e9f07b51da59c578c029661808.

Change-Id: I34ee87787ae3b0227d884fd11dc6d1a2594f0928

5 months agoRevert "[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()"
Yuseok Kim [Fri, 25 Jan 2019 16:28:16 +0000 (01:28 +0900)]
Revert "[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()"

This reverts commit 444c51cb8ab6d30a289dad51df66a8aa29da551e.

Change-Id: I5955c0886c236dc859abbc763c03a354a305df89

5 months agoRevert "[RAMEN9610-10619][Common][9610] wlbt: [ACS] Driver changes"
Yuseok Kim [Fri, 25 Jan 2019 16:27:31 +0000 (01:27 +0900)]
Revert "[RAMEN9610-10619][Common][9610] wlbt: [ACS] Driver changes"

This reverts commit 7f2c81c9fee6e77c9284f7628c6af6bd4d0dfd49.

Change-Id: Icba6227fbe4a030a202d7af50bd49c624c9f8f95

5 months agoRevert "[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue."
Yuseok Kim [Fri, 25 Jan 2019 16:26:50 +0000 (01:26 +0900)]
Revert "[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue."

This reverts commit ed9173ce3a5b49984107d65d66ec758da44fbd07.

Change-Id: Id75b8ce543e86f9903065dacd876781f1e5955ae

5 months agoRevert "[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1"
Yuseok Kim [Fri, 25 Jan 2019 16:26:06 +0000 (01:26 +0900)]
Revert "[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1"

This reverts commit 65f890d52b3d98df8f78df9d23ef824933aac1dc.

Change-Id: Iaeb06044ae470e9f58d8462cc7b5c506af2ae5cc

5 months ago[RAMEN9610-11229][COMMON][MODAP-16187] drivers: modem_if: Deliver AP crash status...
Jiyoung Jeong [Thu, 17 Jan 2019 06:01:54 +0000 (15:01 +0900)]
[RAMEN9610-11229][COMMON][MODAP-16187] drivers: modem_if: Deliver AP crash status to CP

- Notify AP kernel panic status to CP
- Make CP crash when ITMON is caused by CP

Change-Id: I085a013a66df9d14b204259887d1f0b6690d42ee
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-11229][COMMON][MODAP-16187] drivers: modem_if: change time to wait init_cmpl
Namhyung Kim [Tue, 30 Oct 2018 05:34:45 +0000 (14:34 +0900)]
[RAMEN9610-11229][COMMON][MODAP-16187] drivers: modem_if: change time to wait init_cmpl

- Wait 15 seconds to receive CMD_PHONE_START from CP main firmware

Change-Id: Id5f37dc3b65e45e73b98b27a391cdf4ca1a28957
Signed-off-by: Namhyung Kim <nh78.kim@samsung.com>
5 months ago[RAMEN9610-11198][COMMON] drivers: exynos-pm: print MIF_REQ owners
yi jaeuk [Tue, 22 Jan 2019 06:57:33 +0000 (15:57 +0900)]
[RAMEN9610-11198][COMMON] drivers: exynos-pm: print MIF_REQ owners

Change-Id: Icf2bdca6576f7d7576b2a0317cbb0fb38c2c7a2a
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
5 months ago[RAMEN9610-11198][9610] dts: add MIF_REQ owners PMU_STAT
yi jaeuk [Tue, 22 Jan 2019 06:56:34 +0000 (15:56 +0900)]
[RAMEN9610-11198][9610] dts: add MIF_REQ owners PMU_STAT

Change-Id: Iba4b50b4883a6e1a24aad0e947bd622044eb1108
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
5 months ago[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1
Youngsoo [Tue, 22 Jan 2019 02:22:29 +0000 (11:22 +0900)]
[RAMEN9610-11181][common][9610] wlbt: Fix kernel panic and Update to 6.60.1

1) Fix kernel panic in slsi_bt_send_frame
2) Fix memory leak in slsi_bt_send_frame
3) Rx: A-MSDU: handle alloc failure
4) fix broken HIP4 stats
5) Mac randomization through wificond
6) protect dynamic interface deletion with lock
7) delibrately panic kernel on fw panic
8) Prevent issue and Mac Randomization Fixes.
9) Claim wakelock around wlbtd netlink comms
10) Increase FW version Size to 128 bytes

Change-Id: I2bf6b89666ee7d122088fbe31e569260bade02ec
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
5 months ago[RAMEN9610-11180] PM / sleep: fix unbalanced pm_runtime_enable while aborting suspend
Jeonghoon Jang [Mon, 21 Jan 2019 08:54:52 +0000 (17:54 +0900)]
[RAMEN9610-11180] PM / sleep: fix unbalanced pm_runtime_enable while aborting suspend

The device can go direct to complete at __device_suspend and
device_resume if its driver has no callbacks. In that case,
pm_runtime_enable was called at device_resume without pm_runtime_disable
at __device_suspend when suspend was aborted at __devive_suspend
because of pending wakeups. It causes unbalanced pm_runtime_enable.

Change-Id: Iceec2a72efa7a15673663828e6e692ae6958ab28
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
5 months ago[RAMEN9610-11169][9610] clk: samsung: modified the MUX_CLKCMU_FSYS_BUS_USER always on
Jang JeongHoon [Fri, 18 Jan 2019 00:54:36 +0000 (09:54 +0900)]
[RAMEN9610-11169][9610] clk: samsung: modified the MUX_CLKCMU_FSYS_BUS_USER always on

Due to SSS, this clock should not be oscclk.

Change-Id: Ic6f814d02186caa7672640a6deacc0a8cfb01b4b
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
5 months ago[RAMEN9610-11146][9610] Common: drivers: fuelgauge: fix CHARGE_COUNTER property
Keunho Hwang [Thu, 17 Jan 2019 11:58:39 +0000 (20:58 +0900)]
[RAMEN9610-11146][9610] Common: drivers: fuelgauge: fix CHARGE_COUNTER property

Change-Id: I9df77ce5a7176a79a40e2627c34b49ff980c7946
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 months ago[RAMEN9610-11143][9610] arm64: dts: fine tune gpu dvfs threshold and boosting condition
Seonghun, Kim [Mon, 21 Jan 2019 07:18:32 +0000 (16:18 +0900)]
[RAMEN9610-11143][9610] arm64: dts: fine tune gpu dvfs threshold and boosting condition

Change-Id: Ib5f4108f05bcaf43a5a55eea9b8b498ebb942e6e
Signed-off-by: Seonghun, Kim <sh_ko.kim@samsung.com>
5 months ago[RAMEN9610-11098][9610] arm64: dts: change dvfs frequency and minimum table
Seonghun, Kim [Wed, 16 Jan 2019 05:09:47 +0000 (14:09 +0900)]
[RAMEN9610-11098][9610] arm64: dts: change dvfs frequency and minimum table

Change-Id: If6b5989cd261c241fd214a269b3daf225e84982e
Signed-off-by: Seonghun, Kim <sh_ko.kim@samsung.com>
5 months ago[RAMEN9610-11073][COMMON] ASoC: abox: change the pad retention setting
ShinHyung [Thu, 17 Jan 2019 08:12:15 +0000 (17:12 +0900)]
[RAMEN9610-11073][COMMON] ASoC: abox: change the pad retention setting

The reason for setting GPIO_MODE_DISPAUD_SYS_PWR_REG to 0 is
to make GPIO state to a specific value when powering down DISPAUD.
The default value of GPIO_MODE_DISPAUD_SYS_PWR_REG is 0,
so there is no need to set it.

Change-Id: I20832cfdaba9a2f04b0844f77e61b086b756b849
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 months ago[RAMEN9610-10910][COMMON] arm64: defconfig: increase CMA memroy size
Kisang Lee [Tue, 15 Jan 2019 12:36:24 +0000 (21:36 +0900)]
[RAMEN9610-10910][COMMON] arm64: defconfig: increase CMA memroy size

Change-Id: Ieccc3ee4a0814ddc643d273de8f8fb5753cda5ee
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 months ago[RAMEN9610-10881][9610][COMMON] dtsi: camera: remove pm property in camera devices
Wooyeon Kim [Mon, 14 Jan 2019 10:58:52 +0000 (19:58 +0900)]
[RAMEN9610-10881][9610][COMMON] dtsi: camera: remove pm property in camera devices

 - as kernel 4.14 includes pm control at sysmmu,
   duplicated pm domain property needed to removed.
   (fimc_is_sensorX, fimc_is, camerapp-gdc removed)

Change-Id: Ic51885e4dc759670909b8ca235178529a8d0417e
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
5 months ago[RAMEN9610-10895][COMMON] ASoC: abox: skip hw params fixup
Gyeongtaek Lee [Thu, 14 Dec 2017 07:19:54 +0000 (16:19 +0900)]
[RAMEN9610-10895][COMMON] ASoC: abox: skip hw params fixup

If stream is active already, hw params shouldn't be changed
because H/W doesn't support runtime format change.

Change-Id: I51a8766820e565c1252c4e3f79c941d895123f54
Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
5 months ago[RAMEN9610-10895][COMMON] ASoC: abox: remove GFP_KERNEL flag
Gyeongtaek Lee [Fri, 24 Aug 2018 05:54:28 +0000 (14:54 +0900)]
[RAMEN9610-10895][COMMON] ASoC: abox: remove GFP_KERNEL flag

GFP_ATOMIC shoudn't be used with GFP_KERNEL.

Change-Id: I5576be136b00436fe040bcd181070612e4a61601
Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
5 months ago[RAMEN9610-10895][COMMON] ASoC: abox: removed memory allocation code using vzalloc...
Pilsun Jang [Thu, 26 Jul 2018 08:18:41 +0000 (17:18 +0900)]
[RAMEN9610-10895][COMMON] ASoC: abox: removed memory allocation code using vzalloc function

to prevent lockup while fault hander running
removed memory allocation code

Change-Id: Id2a9fb94854804d408f88d821625801316ef12a0
Signed-off-by: Pilsun Jang <pilsun.jang@samsung.com>
5 months ago[RAMEN9610-10889] fbdev: exynos: dpu: do not allow idle after dsim probe
ChiHun Won [Tue, 15 Jan 2019 07:18:22 +0000 (16:18 +0900)]
[RAMEN9610-10889] fbdev: exynos: dpu: do not allow idle after dsim probe

Change-Id: I23481ed50809de5b84bebd20b9c3486c09674b8d
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-10884][COMMON] soc: cpupm: Do not allow idle util system initialization
Hyunju Kang [Tue, 15 Jan 2019 02:21:28 +0000 (11:21 +0900)]
[RAMEN9610-10884][COMMON] soc: cpupm: Do not allow idle util system initialization

Change-Id: Iccd6b703d564470f199375a2cfa75597973775b3
Signed-off-by: Hyunju Kang <hjtop.kang@gmail.com>
5 months ago[RAMEN9610-10873][Common][9610] wlbt: scdeuled scan timing update
Mohit Ghuley [Mon, 14 Jan 2019 08:34:24 +0000 (14:04 +0530)]
[RAMEN9610-10873][Common][9610] wlbt: scdeuled scan timing update

Scheduled scan timing update.

SCSC-Bug-Id: SSB-47291
Change-Id: I2b2346130d583c3df9178ad4354c1a21ea10aa46
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
5 months ago[RAMEN9610-10873][Common][9610] wlbt: Scheduled Scan Changes for Kernel 4.14.
Mohit Ghuley [Wed, 9 Jan 2019 14:41:49 +0000 (20:11 +0530)]
[RAMEN9610-10873][Common][9610] wlbt: Scheduled Scan Changes for Kernel 4.14.

Some new parameters have been introduced for
scheduled scan on higher kernel versions.
Hence for smooth functionality of scheduled
scan in driver, driver needs to set and
enable the newly introduced parameters as well.

Change-Id: I3ee13032fbdc4325c6fb5e5feaf309ecd56ae2b7
SCSC-Bug-Id: SSB-48178
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 months ago[RAMEN9610-10855] android: ion: fix missing alignment for CMA heap
Cho KyongHo [Mon, 15 Oct 2018 04:47:18 +0000 (13:47 +0900)]
[RAMEN9610-10855] android: ion: fix missing alignment for CMA heap

CMA heap may have special alignment requirement but alignment to the
buffer allocation was missing for buffer length. Alignment to the base
address is correctly performed, by the way.

Change-Id: Ida598ac599e15f825c888aaa93aa5f5e6a2f248a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 months ago[RAMEN9610-10826][9609] arm64: dtsi: modify the interactive governer clock in mali...
Seonghun, Kim [Mon, 14 Jan 2019 06:22:51 +0000 (15:22 +0900)]
[RAMEN9610-10826][9609] arm64: dtsi: modify the interactive governer clock in mali node

Change-Id: I6a486cddb97f6d0765b3d3fe1e76e475ade3eaf2
Signed-off-by: Seonghun, Kim <sh_ko.kim@samsung.com>
5 months ago[RAMEN9610-10808][Common][9610] soc: samsung: cal-if: Added QCH WA of CPUCL0/1.
Jaejoon Yoo [Fri, 11 Jan 2019 07:35:02 +0000 (16:35 +0900)]
[RAMEN9610-10808][Common][9610] soc: samsung: cal-if: Added QCH WA of CPUCL0/1.

Change-Id: Id0e677568967c4282335c88f1cca85dc86fc030e
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
5 months ago[RAMEN9610-10749][COMMON][MODAP-14939] drivers: modem_if: Fix Modem I/F not to acquir...
Jiyoung Jeong [Thu, 10 Jan 2019 09:07:18 +0000 (18:07 +0900)]
[RAMEN9610-10749][COMMON][MODAP-14939] drivers: modem_if: Fix Modem I/F not to acquire INT minlock

Change-Id: Iad7cfa837cbce6f347cfa6e7aa982a01122e5a5b
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue.
Himani Gupta [Fri, 4 Jan 2019 06:32:22 +0000 (12:02 +0530)]
[RAMEN9610-10619][Common][9610] wlbt: [ACS] Rssi factor calculation issue.

Driver changes to calculate rssi factor for 2.4GHZ.

Change-Id: I865c211f2a4cae268fc6dc19a9dff16960b5a50d
SCSC-Bug-Id: SSB-47988
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 months ago[RAMEN9610-10619][Common][9610] wlbt: [ACS] Driver changes
Himani Gupta [Mon, 24 Dec 2018 13:31:29 +0000 (19:01 +0530)]
[RAMEN9610-10619][Common][9610] wlbt: [ACS] Driver changes

Added support for ACS in driver.

Change-Id: I94fe26c8890cd318e459cc79d15a795a2473d9ed
SCSC-Bug-Id: SSB-47573
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 months ago[RAMEN9610-10596][COMMON][MODAP-14637] drivers: modem_if: Add wake_unlock before...
Jiyoung Jeong [Wed, 9 Jan 2019 09:03:31 +0000 (18:03 +0900)]
[RAMEN9610-10596][COMMON][MODAP-14637] drivers: modem_if: Add wake_unlock before wake_lock

Change-Id: Id6ea7021c51183f31a05d0d04b61b5f88d96e584
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-10593][COMMON] ASoC: abox: use non-count-based PM api in tickle
ShinHyung [Fri, 28 Dec 2018 05:00:32 +0000 (14:00 +0900)]
[RAMEN9610-10593][COMMON] ASoC: abox: use non-count-based PM api in tickle

Count based API isn't needed in the tickle.

Change-Id: I1e417c55731c70b8f86551673545fc5ac01b54ff
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 months ago[RAMEN9610-10593][COMMON] ASoC: abox: changed suspend sequence
ShinHyung [Tue, 18 Dec 2018 05:02:10 +0000 (14:02 +0900)]
[RAMEN9610-10593][COMMON] ASoC: abox: changed suspend sequence

Change-Id: Iabc961f2843e16f6f57b4a974209eac8c173efa8
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 months ago[RAMEN9610-10585][COMMON][MODAP-14406] Modified del_timer to be excuted only when
Jiyoung Jeong [Wed, 9 Jan 2019 06:51:12 +0000 (15:51 +0900)]
[RAMEN9610-10585][COMMON][MODAP-14406] Modified del_timer to be excuted only when

init_timer was called

Change-Id: If5bc09dcec8f1bd2c0f74f66c4975f5d7883297a
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-10553][MODAP-13010][NFC] NFC Turn on, off time is slow than comparion DUT
Wonchul Shin [Wed, 9 Jan 2019 00:00:09 +0000 (09:00 +0900)]
[RAMEN9610-10553][MODAP-13010][NFC] NFC Turn on, off time is slow than comparion DUT

Change-Id: Iac29279ed36d24a53bfd32ea5af49f921142972a
Signed-off-by: Wonchul Shin <wchuls.shin@samsung.com>
5 months ago[RAMEN9610-10541][9610] gud: Update kinibi410A V003
Kim Mankyum [Wed, 7 Nov 2018 22:59:30 +0000 (07:59 +0900)]
[RAMEN9610-10541][9610] gud: Update kinibi410A V003

Change-Id: Id55130f557a5a964b1e2968eb46e424186ce7f2a
Signed-off-by: Kim Mankyum <mankyum.kim@samsung.com>
5 months ago[RAMEN9610-10538][COMMON] fbdev: dpu: tracing_mark_write function name is changed
hwangjae lee [Tue, 8 Jan 2019 11:49:52 +0000 (20:49 +0900)]
[RAMEN9610-10538][COMMON] fbdev: dpu: tracing_mark_write function name is changed

decon_tracing_mark_write for cts test

Change-Id: I767f8d0773cdc22246f0a077de5550df9e1ae40f
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
5 months ago[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()
Nicolai Stange [Mon, 30 Oct 2017 23:15:51 +0000 (00:15 +0100)]
[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()

Convert all calls to the now obsolete debugfs_use_file_start() and
debugfs_use_file_finish() to the new debugfs_file_get() and
debugfs_file_put() API.

Change-Id: I1bc9155930247c8b1c7d694dc93787f11242f364
Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data")
Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 months ago[RAMEN9610-10521][9610] wlbt: fix for kernel panic and changes for function improvement
Ivan Priest [Mon, 17 Sep 2018 13:02:14 +0000 (14:02 +0100)]
[RAMEN9610-10521][9610] wlbt: fix for kernel panic and changes for function improvement

1) generate sable tar on wifi disconnect
2) disable log collection for default
3) Memleaks and unexpected break fall through is fixed
4) Fix compile errors when various optional features disabled
5) Protect hip dereferencing
6) zero out BT/A-BOX ringbuffer on BT crash
7) Improve scsc_mx Makefile modules compatibility
8) CONTROL_ROAMING feature in FW
9) Improve collection speed
10)vif cleanup changes
11) Initialize g_spinlock lock

bugdb : REL-1633

Change-Id: Iad9b3c652a91cd4a9164801e96cd145367f08778

5 months ago[RAMEN9610-10510][9610] arm64: dts: Modify INT/INTCAM/DISP/CAM suspend frequency.
Chungwoo Park [Tue, 8 Jan 2019 07:41:41 +0000 (16:41 +0900)]
[RAMEN9610-10510][9610] arm64: dts: Modify INT/INTCAM/DISP/CAM suspend frequency.

This patch modified INT/INTCAM/DISP/CAM suspend frequency.
INT 667 -> 100 MHz
INTCAM 690 -> 650 MHz
DISP 533 -> 167 MHz
CAM 690 -> 640 MHz

This patch sync to ect file.

Change-Id: I0cea2ce18ca66b525a223af96705d18b5a103b85
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
5 months ago[RAMEN9610-10507][9610] phy: phy driver is registered to no_callback functon
hwangjae lee [Tue, 8 Jan 2019 07:44:22 +0000 (16:44 +0900)]
[RAMEN9610-10507][9610] phy: phy driver is registered to no_callback functon

PHY driver doesn't use callback function about pm_runtime. However PHY
driver isn't registered no_callback function. So fixed it.

Change-Id: I93d642d70bb7ef02f442743b209c0b3392aa3fd2
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-10483][9610] soc: samsung: cal-if: Updated PMUCAL data. (190107)
Jeonghoon Jang [Mon, 7 Jan 2019 08:08:23 +0000 (17:08 +0900)]
[RAMEN9610-10483][9610] soc: samsung: cal-if: Updated PMUCAL data. (190107)

Change-Id: I061f765a0db55dc7f2b4fc05177c338dda8ea133
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
5 months ago[RAMEN9610-10495] fbdev: dpu20: modified dqe for supporting boosted in aosp colors
ChiHun Won [Tue, 8 Jan 2019 06:21:11 +0000 (15:21 +0900)]
[RAMEN9610-10495] fbdev: dpu20: modified dqe for supporting boosted in aosp colors

Change-Id: I8f87b23a646eec2c231ea08b86a4ef54e0478fa0
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-10437][9610] soc: samsung: cal-if: Updated PMUCAL data. (190104)
Jeonghoon Jang [Fri, 4 Jan 2019 05:33:06 +0000 (14:33 +0900)]
[RAMEN9610-10437][9610] soc: samsung: cal-if: Updated PMUCAL data. (190104)

Added DBG_NFO register dump on sleep entry.

Change-Id: I3e68972d99a068c347de2d63da7db71cae8482d5
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>
5 months ago[RAMEN9610-10373] gpu: make gpu_dvfs_governor_interactive function static
SeYeong Byeon [Thu, 3 Jan 2019 04:10:20 +0000 (13:10 +0900)]
[RAMEN9610-10373] gpu: make gpu_dvfs_governor_interactive function static

static keyword was removed for testing,
but was never added back.
Added back to keep in sync with latest DDK code.

Change-Id: Ia29faf6fc63f9c4c245cbfd3d972a0c3abfe5d1b
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
5 months ago[RAMEN9610-10373] gpu: b_r16p0: Bug fix cal_dfs_get_clock by access_lock mutex
Seonghun, Kim [Thu, 3 Jan 2019 03:43:39 +0000 (12:43 +0900)]
[RAMEN9610-10373] gpu: b_r16p0: Bug fix cal_dfs_get_clock by access_lock mutex

Change-Id: I96b84d6128e2772c594c0345d4831933c761203b
Signed-off-by: Seonghun, Kim <sh_ko.kim@samsung.com>
5 months ago[RAMEN9610-10316][MODAP-13272][NFC] dts: NFC sleep current leakage on suspend mode
Wonchul Shin [Fri, 4 Jan 2019 11:29:30 +0000 (20:29 +0900)]
[RAMEN9610-10316][MODAP-13272][NFC] dts: NFC sleep current leakage on suspend mode

Change-Id: Ib8fef8f6e70d0fe6093ab1d97316acf680d1a779
Signed-off-by: Wonchul Shin <wchuls.shin@samsung.com>
5 months ago[RAMEN9610-10376] g2d: add blocking interface by module param
hyesoo.yu [Mon, 24 Dec 2018 06:32:06 +0000 (15:32 +0900)]
[RAMEN9610-10376] g2d: add blocking interface by module param

If the jobs are queued larger than max_queued set by
module param or there is not free task on list,
the user request of task could be returned with -EBUSY
immediately, or wait until the number of queued job
is less than max_queued and free list is not empty.

Change-Id: I71dde2620830ea7e4426c86d70b7cd8eba9af952
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-10369][ERD][9610]dtsi: disable USI in SHUB block
Shinkyu Park [Wed, 2 Jan 2019 11:59:04 +0000 (20:59 +0900)]
[RAMEN9610-10369][ERD][9610]dtsi: disable USI in SHUB block

[Issue#]
There is an issue when accessing USI in SHUB block when SHUB is
in Low-Power Mode.

[Description]
Disable USI control in SHUB block.

Platform Development Team
Shinkyu Park (shinkyu.park@samsung.com)

Change-Id: I3f5c4b28ebd2d1f2197288096ec411692c068d82

5 months ago[RAMEN9610-10369][COMMON] pinctrl: samsung: Disable SHUB interrupt init, suspend...
Youngmin Nam [Mon, 19 Nov 2018 05:41:06 +0000 (14:41 +0900)]
[RAMEN9610-10369][COMMON] pinctrl: samsung: Disable SHUB interrupt init, suspend/resume

Change-Id: I83502ec7abced0beaa79876d033287d0ae3bf044
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 months ago[RAMEN9610-10302][Common][9610] bts: remove pm_qos for int freq
Taekki Kim [Thu, 3 Jan 2019 04:20:43 +0000 (13:20 +0900)]
[RAMEN9610-10302][Common][9610] bts: remove pm_qos for int freq

The INT domain of Exynos9610 does not have a shared bus.
So, the bts driver does not need to control the INT frequency.

Change-Id: I38f6a80c9287ecf25c33f795a74fe1f0c0d89d5d
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
5 months ago[RAMEN9610-10216][COMMON] thermal: gpu_cooling: Modify GPU Frequency unit to KHz
Hyeonseong Gil [Mon, 13 Aug 2018 05:16:30 +0000 (14:16 +0900)]
[RAMEN9610-10216][COMMON] thermal: gpu_cooling: Modify GPU Frequency unit to KHz

GPU API was modified to use KHz frequency.

Change-Id: I0870cccf51cffd3f7b3b42f94ce7a245e2f6cffe
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
5 months ago[RAMEN9610-10259][COMMON][MODAP-13581] drivers: modem_if: change QoS setting order...
Jiyoung Jeong [Wed, 2 Jan 2019 07:34:20 +0000 (16:34 +0900)]
[RAMEN9610-10259][COMMON][MODAP-13581] drivers: modem_if: change QoS setting order for bus bandwidth

before: CPU->MIF->INT
after:  MIF->INT->CPU

Change-Id: I04fabaf9d7c9b04f73ab28a7bb1397d1283005be
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
5 months ago[RAMEN9610-10169] fbdev: dpu20: added dqe hsc full pixel num
ChiHun Won [Mon, 31 Dec 2018 02:22:07 +0000 (11:22 +0900)]
[RAMEN9610-10169] fbdev: dpu20: added dqe hsc full pixel num

Change-Id: I89c38cfa93a2247cfdfa844438cd129c70b8175c
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-10167][COMMON] ASoC: abox: Save abox DRAM memory
Hyunwoong Kim [Wed, 7 Mar 2018 08:34:34 +0000 (17:34 +0900)]
[RAMEN9610-10167][COMMON] ASoC: abox: Save abox DRAM memory

ABOX reserved memory for saving DRAM was removed.
But dumped DRAM data is important for working out a problem.
This patch allocates actual memory region for saving abox DRAM memory.

Change-Id: Id33aa8c4ce77916e63589b29e8fd7384d07d9432
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
5 months ago[RAMEN9610-10167][COMMON] ASoC: abox: remove unused SRAM feature
Hyunwoong Kim [Wed, 12 Dec 2018 01:10:09 +0000 (10:10 +0900)]
[RAMEN9610-10167][COMMON] ASoC: abox: remove unused SRAM feature

Change-Id: I8021188df50533aeaae13213f8ec9c2e6ac7a921
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
5 months ago[RAMEN9610-10136][MODAP-13272][NFC] dts: add nfc pd pin config
kiwoo Kwon [Fri, 28 Dec 2018 03:58:35 +0000 (12:58 +0900)]
[RAMEN9610-10136][MODAP-13272][NFC] dts: add nfc pd pin config

Change-Id: I4835105e52fc2443612e06de6f5cabec24da25e3
Signed-off-by: kiwoo Kwon <kiwo.kwon@samsung.com>
5 months ago[RAMEN9610-10033] fbdev: dpu20: added exception for checking diagonal matrix
ChiHun Won [Thu, 27 Dec 2018 01:32:59 +0000 (10:32 +0900)]
[RAMEN9610-10033] fbdev: dpu20: added exception for checking diagonal matrix

Change-Id: If3dceec7047aaf537677656ec532d1e23f2c5483
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the print type
Ayoung Sim [Tue, 18 Dec 2018 04:48:15 +0000 (13:48 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the print type

Change-Id: I924647684da96759cfb94d35e7e5ab5293bdc9e6
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the 10bit memtype for DRM
Sunyoung Kang [Tue, 11 Dec 2018 00:21:19 +0000 (09:21 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the 10bit memtype for DRM

When DRM playback, the 8+2 format is only used for 10bit.

Change-Id: I6613ba128db77178fa4b302c3ec78fbc17fe237b
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: use smc call for MMCache flush
Sunyoung Kang [Thu, 6 Dec 2018 06:03:11 +0000 (15:03 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: use smc call for MMCache flush

The MFC driver can flush only normal data. But the secure OS
can flush the all normal and secure data in the MMCache.
This changes to use smc call to flush MMCache.

Change-Id: I92f6905d83e6a48b780b6eac8a42387daf17b01b
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] smc: add the MMCACHE_OPERATION command
Sunyoung Kang [Thu, 6 Dec 2018 06:45:03 +0000 (15:45 +0900)]
[RAMEN9610-10029][COMMON] smc: add the MMCACHE_OPERATION command

This adds MMCACHE_OPERATION definition for MMCache flush.

Change-Id: Ic09c11f7ff1ff5157a5006e7330488fe53addba6
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix information leak
Ayoung Sim [Mon, 3 Dec 2018 07:26:56 +0000 (16:26 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix information leak

This patch doesn't print the pointers and use %pK
instead %p, if it is necessary to show.

Change-Id: I6bb2f272129d707c585bb1a98596e00442418999
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the prevent defect
Ayoung Sim [Mon, 3 Dec 2018 06:50:43 +0000 (15:50 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the prevent defect

33594, 33146: Other violation
24990, 24406: Dereference null return value
23952, 23923: Unsigned compared against 0

Change-Id: Ic5251e490d4ff5d55b027892d2973492076e5249
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: set the 10bit memtype when INIT_BUF also
Ayoung Sim [Thu, 29 Nov 2018 07:04:08 +0000 (16:04 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: set the 10bit memtype when INIT_BUF also

10bit format can be changed after SEQ_DONE from P010(P210) to 8+2 type.
However, original F/W couldn't get the memtype setting when INIT_BUF.
It was valid when only SEQ_START.
Because new F/W supports this when only SEQ_START but also INIT_BUF,
driver set the 10bit memtype when INIT_BUF time also.

Change-Id: I2ec92c0169950b28b23ae13fb3686f9207677203
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the clock on sequence
Sunyoung Kang [Tue, 20 Nov 2018 05:10:58 +0000 (14:10 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the clock on sequence

When the clock on with drm instance, the sequence is changed as following:
cache flush (cmd 12) -> clock off -> set DRM base address
-> IP protection enable -> clock on
The base addr and protection control should be applied before clock enable
because the MFC core can run immediately when the clock enable.

Change-Id: Ib371a7b3079eb76515a38e977c76b78cc37f4c78
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: handle MFC QoS atomically
Ayoung Sim [Tue, 20 Nov 2018 06:04:31 +0000 (15:04 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: handle MFC QoS atomically

MFC QoS should be controled atomically
because various thread can request qos_on.
Overlapped QoS calls(pm_qos_xxx_request())
cause of countless warning log messages.

Change-Id: Ifd74cf009fd263cd6732646ae92d4d46fb1d4ca0
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: use the real 10bit mem type
Ayoung Sim [Tue, 30 Oct 2018 01:07:40 +0000 (10:07 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: use the real 10bit mem type

Even if pdata->P010_decoding is set, user can use the 8+2 format
using with s_fmt(ex: V4L2_PIX_FMT_NV12M_S10B).
Driver set the options according to real 10bit format
not project default 10bit format.

Change-Id: I52dc35ff02982d19978399f67bfb84dd2514ff5c
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: add memset only for firmware except code region
Sunyoung Kang [Thu, 15 Nov 2018 00:58:40 +0000 (09:58 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: add memset only for firmware except code region

This adds memset '0' to the firmware memory except fw code region.
And also this change to do not use the memory clear by ION allocator
because the firmware performs the memory clear. Since the firmware can not
clear the stack area by itself, it is only cleared by the driver.

Change-Id: Ifea58165d562280b5459c39852f21f34501c4370
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029]ion: add ION_FLAG_NOZEROED
hyesoo.yu [Thu, 15 Nov 2018 05:49:45 +0000 (14:49 +0900)]
[RAMEN9610-10029]ion: add ION_FLAG_NOZEROED

Change-Id: I27684371954c634b2c061d3d516e54d9077b14b2
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the WAIT state for decoder DRC
Sunyoung Kang [Tue, 23 Oct 2018 09:23:23 +0000 (18:23 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the WAIT state for decoder DRC

In case of UTC, it calls g_fmt after streamoff so can't out from
WAIT_DPB_FLUSH state. This modified that it can wait both g_fmt and
streamoff regardless of the order.
When DRC is detected the wait_state set to (WAIT_G_FMT | WAIT_STOP).
If the g_fmt is called WAIT_G_FMT is cleared and
if the streamoff is called WAIT_STOP is cleared.

Change-Id: I90326d191de2ba164060673e8b124227fda3a397
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: add the MFCINST_FINISHED status
Ayoung Sim [Fri, 26 Oct 2018 00:12:40 +0000 (09:12 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: add the MFCINST_FINISHED status

MFCINST_FINISHED status has following meaning.
Instance has already been opened but can't do anything.
When new format settings come, encoding can be re-started
begin with SEQ_START.

Change-Id: I679f77541942db75db9ba76e936b88668ba25e45
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: add to check clock before register dump
Sunyoung Kang [Thu, 25 Oct 2018 06:32:10 +0000 (15:32 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: add to check clock before register dump

This adds to check the clock and power state before register dump.

Change-Id: I315b6346c6175232a87453f603292fe8a547ff83
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the potential memory leak
Sunyoung Kang [Thu, 25 Oct 2018 00:05:38 +0000 (09:05 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the potential memory leak

If user calls repeatedly s_fmt(), the roi_buffer will be re-allocated and
it can be memory leak. So this add to check if it is already allocated.

Change-Id: I0eea5f745c13630ce951f4c45109a01e92ddb7a9
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix Out-of-Bound defect
Sunyoung Kang [Wed, 24 Oct 2018 08:04:59 +0000 (17:04 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix Out-of-Bound defect

This adds to check the size of copy_from_user().

Change-Id: Icb869f2906881889305beea6b4fb3bbd9ef14f08
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix the 10bit options
Ayoung Sim [Mon, 1 Oct 2018 07:35:26 +0000 (16:35 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix the 10bit options

We do not need INIT_BUF_OPT_STRIDE_SIZE_ALIGN option when P010 format,
because this option should be only 8+2 format for G2D.
Dithering option is also needed only for 8+2 format.
Dithering option are intended to be applied
when the display device doesn't support 10bit.

Change-Id: I132bf84d569c4488bda5386e3e817cd3ad96d4d8
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix interlace processing when NAL_Q mode
Sunyoung Kang [Thu, 13 Sep 2018 07:17:20 +0000 (16:17 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix interlace processing when NAL_Q mode

The H264/VC1/MPEG2/MPEG4 codec can have interlace type.
But the only MPEG4 can continue to use NAL_Q mode
because it doesn't handle field unit.
The other codecs should stop NAL_Q mode and use NAL_START.

Change-Id: Ied5972b8f567d91290ca937efd25ae14f9ece19e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: fix wrong mem type check
Ayoung Sim [Mon, 17 Sep 2018 06:46:44 +0000 (15:46 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: fix wrong mem type check

When an error occures during header parsing,
the driver dumps the header stream.
In order to print the header stream, driver should get the KVA
when only the memory type of source buffer is DMA_BUF type.
This patch fixs this type condition.

Change-Id: I557bef77b54aae266e6d75e76814c506239d4260
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
5 months ago[RAMEN9610-10029][COMMON] media: mfc: support decoded order decoding
Ayoung Sim [Tue, 4 Sep 2018 06:40:27 +0000 (15:40 +0900)]
[RAMEN9610-10029][COMMON] media: mfc: support decoded order decoding

If the DECODING_ORDER_ENABLE is set, F/W returns
decoded information in same register.
frame type, status and addr are same whether decoded or display.

Change-Id: I92b1c8a21205258bce2a13262d59b6663476ff93
Signed-off-by: Ayoung Sim <a.sim@samsung.com>