GitHub/LineageOS/android_kernel_motorola_exynos9610.git
6 months ago[COMMON] binder: fix wrong pointer access
Yunji Kim [Fri, 25 May 2018 03:31:32 +0000 (12:31 +0900)]
[COMMON] binder: fix wrong pointer access

Change-Id: I7632298e5f0b14a55acc47c47cf0bd5242557896
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
6 months ago[COMMON] binder: add to print process name in the log and debugfs
Yunji Kim [Thu, 10 May 2018 04:54:11 +0000 (13:54 +0900)]
[COMMON] binder: add to print process name in the log and debugfs

Change-Id: I0715f5c8a6296d80a3bb8e55c7fa0f5060141f6e
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
6 months agofbdev: dpu20: removed unnecessary reference in sysmmu fault handler
ChiHun Won [Fri, 21 Sep 2018 02:34:47 +0000 (11:34 +0900)]
fbdev: dpu20: removed unnecessary reference in sysmmu fault handler

Change-Id: I2bbeb41ba6feecc4900317a65f16b8b49df3ee1b
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
6 months ago[9610] asoc: samsung: set ignore_suspend flag of UAIF/SIFS/amp dai
Hyunwoong Kim [Tue, 18 Sep 2018 03:43:48 +0000 (12:43 +0900)]
[9610] asoc: samsung: set ignore_suspend flag of UAIF/SIFS/amp dai

Audio widgets on the path of CP Voice call were powered down when
system was being suspended to RAM. Because the ignore_suspend flag of
UAIF/SIFS/amp backend DAIs weren't set. Then ASoC layer tried to
control the power state of those DAI widgets depending on PM state.
This patch set ignore_suspend flag of the DAIs to prevent the widgets
from being controlled by ASoC layer while system is being suspended.

Change-Id: If7b3befd1d681af20a1ac225df74299d2f9324b8
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
6 months ago[9610] arm64: defconfig: enable ext2/ext3 XATTR
Jungtae Kim [Fri, 14 Sep 2018 11:29:52 +0000 (20:29 +0900)]
[9610] arm64: defconfig: enable ext2/ext3 XATTR

Change-Id: I377a1c8d5fba85ff468b930a381a4f7b1c66c2d9
Signed-off-by: Jungtae Kim <jt1217.kim@samsung.com>
6 months ago[9610] arch: configs: UART_SWITCH config is moved to erd9610_defconfig
Jiyoung Jeong [Mon, 3 Sep 2018 11:23:10 +0000 (20:23 +0900)]
[9610] arch: configs: UART_SWITCH config is moved to erd9610_defconfig

UART_SWITCH config is always enable because it was defined in Kconfig.
so UART_SWITCH config is moved to erd9610_defconfig.

Change-Id: Ie4c4636591f6f4ed11057335e5e57d528a63663b
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
6 months ago[COMMON] fimc-is2: replace bcm APIs for new bcm driver
Jeongtae Park [Tue, 10 Apr 2018 04:19:25 +0000 (13:19 +0900)]
[COMMON] fimc-is2: replace bcm APIs for new bcm driver

Change-Id: Ie16bef5aeca5c6aa3ec9c620583773d4458414b9
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
6 months agolibdss: fix bug when building libdss with clang
Youngwan Kim [Mon, 17 Sep 2018 01:19:12 +0000 (10:19 +0900)]
libdss: fix bug when building libdss with clang

Change-Id: I046210443bbac3d8837c78629e236f36a49cee4a
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
6 months agoAndroidKernel.mk: Get clang version from soong's global config.
Youngwan Kim [Tue, 4 Sep 2018 08:25:48 +0000 (17:25 +0900)]
AndroidKernel.mk: Get clang version from soong's global config.

Change-Id: I0f5651470358bdabffe9ee31c238be06d675a228
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
6 months agolib: libdss: only execute libdss-build.sh when CC is clang
Youngwan Kim [Wed, 12 Sep 2018 06:40:34 +0000 (15:40 +0900)]
lib: libdss: only execute libdss-build.sh when CC is clang

Change-Id: I7e29331a4ec1edd7d097b431278383a3be95eaa4
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
6 months agoAndroid-P: remove unused codes
Youngwan Kim [Wed, 25 Jul 2018 03:10:51 +0000 (12:10 +0900)]
Android-P: remove unused codes

Change-Id: I9da47f0101cfe7d439b2d9270819210e75c1e9a0
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
6 months ago[COMMON] devfreq: exynos: Modify to get devfreq struct
Hyeonseong Gil [Mon, 10 Sep 2018 00:16:03 +0000 (09:16 +0900)]
[COMMON] devfreq: exynos: Modify to get devfreq struct

Previously, find_exynos_devfreq_device() returns (struct dev *)
and it is used to get devfreq struct by using devfreq_list.
This method hold the mutex(devfreq_list_lock).
It may cause a circular lock problem.
Therefore, it is modified to get devfreq struct directly.

Change-Id: Iee0970dd77d67d9a344419cff47e112e7a2bbee7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 months ago[9610][ERD] arm64: dts: add androidboot.dtbo_idx
Youngmin Nam [Fri, 14 Sep 2018 07:07:48 +0000 (16:07 +0900)]
[9610][ERD] arm64: dts: add androidboot.dtbo_idx

Change-Id: I1e8e92797d2e3acd94d181ac26b81a22092d5825
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 months ago[7570][7872][7885][9610] wlbt : Addition of set_mac_address() API for VTS Fix.
Mohit Ghuley [Tue, 28 Aug 2018 08:05:49 +0000 (13:35 +0530)]
[7570][7872][7885][9610] wlbt : Addition of set_mac_address() API for VTS Fix.

Addition of set_mac_address() API for VTS Fix.

Change-Id: Ib323c9a1fecde0cc3f3ab18304579eff29994106
SCSC-Bug-Id:SSB-43216
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
6 months agodts: Add frt dts data
Youngtae Lee [Thu, 13 Sep 2018 07:04:33 +0000 (16:04 +0900)]
dts: Add frt dts data

Change-Id: I517ceb339765b77462996d58fb803992f1c77a49
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 months ago[COMMON] fimc-is2: increase delay in 2p7sq module power on sequence
Wooyeon Kim [Fri, 14 Sep 2018 01:17:31 +0000 (10:17 +0900)]
[COMMON] fimc-is2: increase delay in 2p7sq module power on sequence

 - 2P7SQ need more delay between MCLK ~ first i2c timing
   (42000 MCLK cycles, common sensor need 23000 MCLK cycles)
   so it may needs to get more margin

   PR JIRA ID: CPR-255

Change-Id: I45ddef9a71a0b3287181b4c735ffa04a5ba3472d
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[COMMON] fimc-is2: fix a bug 2t7sx setting delay
Wooyeon Kim [Mon, 20 Aug 2018 08:35:54 +0000 (17:35 +0900)]
[COMMON] fimc-is2: fix a bug 2t7sx setting delay

 - fix wrong value(0x3000) to dec value(3000)

 PR JIRA ID: CPR-184

Change-Id: Ic046080b57aa67ec6266cdae2643147c1551f7af
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[COMMON] fimc-is2: fix a bug 2p7sq setting delay
Wooyeon Kim [Mon, 20 Aug 2018 08:32:11 +0000 (17:32 +0900)]
[COMMON] fimc-is2: fix a bug 2p7sq setting delay

 - fix wrong value(0x3000) to dec value(3000)

 PR JIRA ID: CPR-184

Change-Id: I61ec4dfda90c9d12012976fa208aeeddd8a206a7
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[9610] arm64: dts: edit i2c max bus freq for nfc
kiwoo Kwon [Thu, 13 Sep 2018 04:35:53 +0000 (13:35 +0900)]
[9610] arm64: dts: edit i2c max bus freq for nfc

Change-Id: If7f7d4fcdaf0201897a316d7e1c7c53b61a05f77
Signed-off-by: kiwoo Kwon <kiwo.kwon@samsung.com>
6 months ago[ANDROID] ext4: Set the bio REQ_NOENCRYPT flag
Michael Halcrow [Wed, 11 Oct 2017 23:36:05 +0000 (16:36 -0700)]
[ANDROID] ext4: Set the bio REQ_NOENCRYPT flag

Sets the REQ_NOENCRYPT flag for I/O requests that ext4 has already
encrypted.  Lower layers such as dm-crypt can observe that flag to
avoid encrypting again if that's how the user configures the
environment.

Conflicts:
fs/ext4/inode.c
fs/ext4/readpage.c

Change-Id: I62a93e480a9f5788070446bd94694dfb9f83c277
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
6 months ago[ANDROID] dm-crypt: Skip encryption of file system-encrypted blocks
Michael Halcrow [Wed, 11 Oct 2017 23:19:57 +0000 (16:19 -0700)]
[ANDROID] dm-crypt: Skip encryption of file system-encrypted blocks

File systems can encrypt some of their data blocks with their own
encryption keys, and for those blocks another round of encryption at
the dm-crypt layer may be redundant, depending on the keys being used.

This patch enables dm-crypt to observe the REQ_NOENCRYPT flag as an
indicator that a bio request should bypass the dm-crypt encryption
queue.

By default dm-crypt will ignore this request flag from the file
system.  The user must set the allow_encrypt_override option to enable
this functionality.  Once the dm-crypt has been used with the
allow_encrypt_override option for any given block device, it must
continue to be used with the option to avoid the possibility of data
corruption.

Change-Id: Ie1b4d40f4e4d96f3349ec8970c56230b2de2de1a
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
6 months ago[ANDROID] block: Add bio req flag to disable encryption in block
Michael Halcrow [Wed, 11 Oct 2017 23:13:41 +0000 (16:13 -0700)]
[ANDROID] block: Add bio req flag to disable encryption in block

When lower layers such as dm-crypt observe the REQ_NOENCRYPT flag, it
helps the I/O stack avoid redundant encryption, improving performance
and power utilization.

Note that lower layers must be consistent in their observation of this
flag in order to avoid the possibility of data corruption.

Change-Id: I4805c3b06b3e765d7362d0b360523813ed77b8aa
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
6 months agodrivers: soc: add memsize to soc info
Boojin Kim [Wed, 5 Sep 2018 01:58:26 +0000 (10:58 +0900)]
drivers: soc: add memsize to soc info

This patch adds memsize to soc info to support mptool

Change-Id: I57ee267a8ee029e684fa655254a51a06c12446db
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
6 months agoarm64: dts: add base address to get dram size
Boojin Kim [Wed, 5 Sep 2018 01:56:37 +0000 (10:56 +0900)]
arm64: dts: add base address to get dram size

Change-Id: Ibda1a2df053aa5ee7ad5c72ea93103e075672ae2
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
6 months agochub: ipc: update version 0831 to support chipid read
Boojin Kim [Tue, 4 Sep 2018 22:32:52 +0000 (07:32 +0900)]
chub: ipc: update version 0831 to support chipid read

This patch updates ipc version 0831 to add debug value on ipc_map.
The debug value is used for chipid read.

Change-Id: Id051d227dc7afa099f41a8a8302ab649ba109449
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
6 months ago[COMMON] usb: gadget: print limited dump to avoid hard lockup
Kisang Lee [Tue, 11 Sep 2018 07:41:40 +0000 (16:41 +0900)]
[COMMON] usb: gadget: print limited dump to avoid hard lockup

Change-Id: I066380d1bec3b5a3286625f2c4394faae4307849
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
6 months ago[9610] bts: fix buffer size in debugfs
Taekki Kim [Fri, 7 Sep 2018 12:23:12 +0000 (21:23 +0900)]
[9610] bts: fix buffer size in debugfs

This patch fixes buffer size when copy data from user space
to the buffer in debugfs.

Change-Id: I0ca5b04649df44f8f85b4f95b04c019e8388f683
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 months ago[COMMON] usb: dwc3: wait for end of transfer
Kisang Lee [Fri, 7 Sep 2018 07:25:31 +0000 (16:25 +0900)]
[COMMON] usb: dwc3: wait for end of transfer

Change-Id: I422c8c96ab01836697dc738fe8b429835e67088f
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
6 months ago[COMMON] media: mfc: call release_firmware function
Jeonghee Kim [Wed, 29 Aug 2018 07:03:45 +0000 (16:03 +0900)]
[COMMON] media: mfc: call release_firmware function

To prevent resource leck problem,
call release_firmware function if request_firmware returns error.

Change-Id: I871248a6901355984dcf84b69720cadbe6f58a95
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: avoid the kernel panic in specific scenario
Ayoung Sim [Thu, 23 Aug 2018 08:10:04 +0000 (17:10 +0900)]
[COMMON] media: mfc: avoid the kernel panic in specific scenario

We do not support DRC(Dynamic Resolution Change)
and seeking overlapped scenario.
However, in this case, we avoid the kernel panic.

wait_state is changed as below.
DRC detected -> WAIT_DECODING -> g_fmt -> WAIT_DPB_FLUSH
-> stramoff(dst) -> WAIT_NONE -> decoding(INIT_BUF, NAL_START)

Change-Id: I81280249a962e2b3d4532b74ad247674441e4789
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: detect the specific condition for QoS weight
Ayoung Sim [Mon, 20 Aug 2018 07:20:13 +0000 (16:20 +0900)]
[COMMON] media: mfc: detect the specific condition for QoS weight

We add lower weight at both specific 10bit condition
and 4 tiles or more.

Change-Id: I2d6f1f1198f2805d977c09a0b788b3dfc29afb23
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[9610] arm64: dts: add the new QoS weight
Ayoung Sim [Mon, 20 Aug 2018 07:19:48 +0000 (16:19 +0900)]
[9610] arm64: dts: add the new QoS weight

Change-Id: Ifecec9804489b23aceee6bb74a56ce1dff8e7b40
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: added register test mode
Jeonghee Kim [Mon, 20 Aug 2018 07:22:15 +0000 (16:22 +0900)]
[COMMON] media: mfc: added register test mode

It is added for OTF bit-matching test.
However, it can be used anytime
when performing an encoding test using register dump.

Change-Id: I0f68cbf0690ef920a73b892c46d9b2ece85ba463
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: print information if open failed
Jeonghee Kim [Mon, 20 Aug 2018 07:20:48 +0000 (16:20 +0900)]
[COMMON] media: mfc: print information if open failed

Change-Id: Ia287436790c71a6081cf7e26b12ec959c87f2094
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: move state change function
Jeonghee Kim [Mon, 20 Aug 2018 06:17:56 +0000 (15:17 +0900)]
[COMMON] media: mfc: move state change function

The state information of MFC driver
should be changed within the protection of hwlcok.

Change-Id: Id4da37ea4987eccfb7764b6a619803a5f6cd872b
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: remove unnecessary error handling
Jeonghee Kim [Mon, 20 Aug 2018 06:00:17 +0000 (15:00 +0900)]
[COMMON] media: mfc: remove unnecessary error handling

Change-Id: Ic5ef223c15f2da0c6261802faaceb31963493963
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: no error return when otf init fail
Sunyoung Kang [Fri, 17 Aug 2018 06:01:01 +0000 (15:01 +0900)]
[COMMON] media: mfc: no error return when otf init fail

When VTS ComponentHidlTest, otf init function is called at s_fmt.
But it returns error because the repeater is not initialized and makes VTS fail.
So this fixes to return no error.

Change-Id: Ica1a423c8890c076f2fa4ba2b5a87ad97c312c69
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: Not support interframe resolution change
Sunyoung Kang [Thu, 16 Aug 2018 07:54:57 +0000 (16:54 +0900)]
[COMMON] media: mfc: Not support interframe resolution change

Currently, VP9 interframe resolution change feature is not supported.
In this case, modify it to cause "Can't play this video" pop up, not panic.

Change-Id: I57f084d63cb7717d95c07f66f85a41100ac29d00
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: fix the prevent
Sunyoung Kang [Tue, 7 Aug 2018 05:31:52 +0000 (14:31 +0900)]
[COMMON] media: mfc: fix the prevent

Fix the dereferencing null pointer
CID: 236459, 236460

Change-Id: I55a1e257a6eb116129656e7c2089e4949c64baf7
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: parse a new QoS weight
Jeonghee Kim [Mon, 6 Aug 2018 06:00:51 +0000 (15:00 +0900)]
[COMMON] media: mfc: parse a new QoS weight

Some of the encoder options reduce performance.
If the following options are set, the weight is applied to the QoS calculation.
- B frame, 2-reference, GPB
The weight of each option is not redundant.

Change-Id: Ib97ad28d7a02c50c214b1c0a5f2ac05d631d0197
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[9610] arm64: dts: add a new QoS weight for mfc
Jeonghee Kim [Mon, 6 Aug 2018 05:56:06 +0000 (14:56 +0900)]
[9610] arm64: dts: add a new QoS weight for mfc

Change-Id: I38ac95dc1ba32117524e3163a39a4883e015e5df
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: check whether itmon info's dest is NULL.
Sunyoung Kang [Thu, 2 Aug 2018 05:07:43 +0000 (14:07 +0900)]
[COMMON] media: mfc: check whether itmon info's dest is NULL.

Change-Id: Ie2d25d8880dd10497a5d2fc4409e3a3323571916
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: delete the src buffer of strange consumed size
Ayoung Sim [Wed, 1 Aug 2018 07:42:04 +0000 (16:42 +0900)]
[COMMON] media: mfc: delete the src buffer of strange consumed size

Change-Id: I8595ae5d408ca4ed02eb10ecf77335344dd41ece
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: change the structure order
Ayoung Sim [Fri, 27 Jul 2018 02:23:58 +0000 (11:23 +0900)]
[COMMON] media: mfc: change the structure order

Both bandwidth and QoS weight information is
excluded from internal dump.

Change-Id: Ief94e92d12fff360570f7f81a1df051b0781bc0b
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: move __mfc_enc_check_resolution function
Jeonghee Kim [Thu, 26 Jul 2018 07:52:59 +0000 (16:52 +0900)]
[COMMON] media: mfc: move __mfc_enc_check_resolution function

This function should be called after otf_init,
because the width/height information is needed.

Change-Id: Icab18d34082252c8a28365d39c898fbc4dfdf174
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 months ago[COMMON] media: mfc: fix build error for PERF_MEASURE
Sunyoung Kang [Wed, 25 Jul 2018 02:08:54 +0000 (11:08 +0900)]
[COMMON] media: mfc: fix build error for PERF_MEASURE

Change-Id: If6d1c6d9cac3bb4eda02a02a194f0408496be860
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: fix to correct bit operation in enc_param
Sunyoung Kang [Tue, 24 Jul 2018 23:47:51 +0000 (08:47 +0900)]
[COMMON] media: mfc: fix to correct bit operation in enc_param

Change-Id: Ie19691b1d132ab9faf84fb011fd83b66e8a531c1
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: release hwlock even if sleep cmd fail
Sunyoung Kang [Tue, 24 Jul 2018 23:41:54 +0000 (08:41 +0900)]
[COMMON] media: mfc: release hwlock even if sleep cmd fail

Change-Id: Ia83b38d6ed8e98171e8cf8300248925ce3e60286
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 months ago[COMMON] media: mfc: parse the NAL_Q size
Ayoung Sim [Tue, 24 Jul 2018 07:25:56 +0000 (16:25 +0900)]
[COMMON] media: mfc: parse the NAL_Q size

Because NAL_Q structure size is differenct by F/W,
we parse this dependency from device tree.

Change-Id: I23ddcd3fcdae6b80ffe80ea372cf81965b47de85
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[9610] arm64: dts: add the MFC NAL_Q size
Ayoung Sim [Tue, 24 Jul 2018 07:25:31 +0000 (16:25 +0900)]
[9610] arm64: dts: add the MFC NAL_Q size

Change-Id: I1d8a95da8f8c8102b9782eebc3a7affc8c305af2
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: support HDR10 plus SEI encoding
Ayoung Sim [Mon, 16 Jul 2018 09:30:01 +0000 (18:30 +0900)]
[COMMON] media: mfc: support HDR10 plus SEI encoding

Change-Id: I1fd7fc5e5f7b1fcbab756422a56fcd04d7e96581
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: change to exclusive name
Ayoung Sim [Mon, 16 Jul 2018 09:23:08 +0000 (18:23 +0900)]
[COMMON] media: mfc: change to exclusive name

Change-Id: I47c92c48d88fe8be3acdfc30537a8c7902944057
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[COMMON] media: mfc: support HDR10 plus SEI decoding
Ayoung Sim [Mon, 16 Jul 2018 07:29:52 +0000 (16:29 +0900)]
[COMMON] media: mfc: support HDR10 plus SEI decoding

Change-Id: Ie879b6b7824c71baf553bd2afe16efa82dbd9d62
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months ago[9610] arm64: dts: add the new information related HDR10+
Ayoung Sim [Mon, 16 Jul 2018 05:39:54 +0000 (14:39 +0900)]
[9610] arm64: dts: add the new information related HDR10+

Change-Id: Ie616170217da69d3712978af997c25481be01fb4
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 months agosched: cpufreq_schedutil: add trace for next frequency
Park Bumgyu [Thu, 2 Aug 2018 00:59:18 +0000 (09:59 +0900)]
sched: cpufreq_schedutil: add trace for next frequency

Change-Id: Ibf50de641e9c0685dd36aa85f018351e596c200c
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 months ago[COMMON] fimc-is2: fix build error for apply qactive disable at mcsc_v410
Wooyeon Kim [Wed, 5 Sep 2018 01:44:05 +0000 (10:44 +0900)]
[COMMON] fimc-is2: fix build error for apply qactive disable at mcsc_v410

   PR JIRA ID: CPR-243

Change-Id: Idfcce64a7f9915ae7883e91c5eaae0448c3adfea
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[9610] fimc-is2: enable HWACG config
Wooyeon Kim [Tue, 4 Sep 2018 09:31:31 +0000 (18:31 +0900)]
[9610] fimc-is2: enable HWACG config

   PR JIRA ID: CPR-243

Change-Id: If22cc9415a8fbffb09a65ac929695b80850a7890
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[COMMON] fimc-is2: manage by run_rsccount for hw_ip enable/disable
Wooyeon Kim [Wed, 5 Sep 2018 05:40:23 +0000 (14:40 +0900)]
[COMMON] fimc-is2: manage by run_rsccount for hw_ip enable/disable

 - For hw_ip enable/disable operation once at each hw_ip
   hw_ip->run_rsccnt need to be use
   hw_ip->rsccnt is used for open/close.

   PR JIRA ID: CPR-243

Change-Id: I5d942987c6f6fe4c9ad1f6380cadd77d25d6c873
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[COMMON] fimc-is2: moved get_timestamp to Frame start ISR
Wooyeon Kim [Thu, 30 Aug 2018 11:33:38 +0000 (20:33 +0900)]
[COMMON] fimc-is2: moved get_timestamp to Frame start ISR

 (AS-IS) get_timestamp is located to notify_by_fstr
         notify_by_fstr is called in tasklet
 if tasklet scheduling is delayed, it can't gurantee
 timestamp interval between frame to frame.
 (TO-BE) get_timestamp before tasklet scheduled.
         move ISR.

 PR JIRA ID: CPR-232

Change-Id: Id126c7d7308dc5ada95d74bdedb8a082372319c9
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
6 months ago[COMMON] fimc-is2: Detect a LOST_FS_VC error
dan huh [Wed, 5 Sep 2018 01:06:41 +0000 (10:06 +0900)]
[COMMON] fimc-is2: Detect a LOST_FS_VC error

PR JIRA ID: CPR-242

Change-Id: I16e28f699c7a370f9a2cb53e5048cb0b5a55d994
Signed-off-by: dan huh <dan.huh@samsung.com>
6 months ago[9610][ERD] drivers: muic: refix prevent CID 237151
Kim Taejeong [Wed, 5 Sep 2018 01:22:11 +0000 (10:22 +0900)]
[9610][ERD] drivers: muic: refix prevent CID 237151

- Refix problem of dereference before null check.
- Improve modification commit of 5222132625f5 on same CID.

Change-Id: Id2723efdbf09555e0da2d7341b49ddcf81ab7e75
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 months ago[COMMON] fimc-is2: fix resource leak: irqname
Jeongtae Park [Tue, 3 Jul 2018 05:02:36 +0000 (14:02 +0900)]
[COMMON] fimc-is2: fix resource leak: irqname

Prevent Defect ID: CID 233277
PR JIRA ID: CPR-32

Change-Id: I5baf653db64984fa4c6ff88a7014b6f9d062b048
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
6 months ago[9610]mptool: add command to support debug mptool
avoid [Mon, 3 Sep 2018 08:00:42 +0000 (16:00 +0800)]
[9610]mptool: add command to support debug mptool

Change-Id: Ib1f4b604d990052782955a81f542a0546656d211
Signed-off-by: avoid <bing3.lin@samsung.com>
6 months ago[RAMEN9610-5217] Kernel Panic when User connect WiFi Service.
jihun.no [Mon, 3 Sep 2018 04:42:35 +0000 (13:42 +0900)]
[RAMEN9610-5217] Kernel Panic when User connect WiFi Service.

Change-Id: I20c527340cae2eff1f4a2b934d8158f844f9f78f
Signed-off-by: jihun.no <jihun.no@samsung.com>
6 months ago[9610] drivers: acpm: change condition in plugin firmware_update
yi jaeuk [Tue, 4 Sep 2018 07:12:31 +0000 (16:12 +0900)]
[9610] drivers: acpm: change condition in plugin firmware_update

This patch is for CID240471

Change-Id: I2576e1c3337f0fe0b3f285cb256ad2b753532db2
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
6 months ago[9610][ERD] arm64: config: run savedefconfig
Youngmin Nam [Mon, 3 Sep 2018 08:55:16 +0000 (17:55 +0900)]
[9610][ERD] arm64: config: run savedefconfig

Change-Id: Ib2bcf0d7a1b8001e98adaa124b776421db6e0eac
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 months ago[9610][ERD] arm64: config: enable CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF
Youngmin Nam [Mon, 3 Sep 2018 08:48:06 +0000 (17:48 +0900)]
[9610][ERD] arm64: config: enable CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF

To disable kmemleak, enable CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF

Change-Id: Iaf9770945f46bdb93d5fc2d416702d7857065702
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 months ago[COMMON] fimc-is2: Don't update sensor and af meta when ndone
dan huh [Tue, 24 Jul 2018 11:39:04 +0000 (20:39 +0900)]
[COMMON] fimc-is2: Don't update sensor and af meta when ndone

PR JIRA ID: CPR-91

Change-Id: Ia47e6a9ba66186eac2caa3f167cf96e7b9d5108e
Signed-off-by: dan huh <dan.huh@samsung.com>
6 months ago[9610] : ccic : fix usbpd manager prevent issue
Junhan Bae [Mon, 3 Sep 2018 02:18:38 +0000 (11:18 +0900)]
[9610] : ccic : fix usbpd manager prevent issue

Change-Id: Ibfd9a8edce42a827e0913566ef99fda358d8cddf
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
6 months ago[9610] wlbt: increment scsc_release to 6.45.1
scsc_gerrit [Fri, 24 Aug 2018 12:05:02 +0000 (13:05 +0100)]
[9610] wlbt: increment scsc_release to 6.45.1

Import FW for iteration 6.45.1

Change-Id: Ieb046ba776ac08c98ff4209b37d75eae15e62890
SCSC-Bug-Id: scsc_iteration_6.45.1_p_ww
Signed-off-by: scsc_gerrit <scsc_gerrit@samsung.com>
6 months ago[9610] wlbt: no sable genetion on wifi disconnect
Purnendu Kapadia [Fri, 24 Aug 2018 10:15:08 +0000 (11:15 +0100)]
[9610] wlbt: no sable genetion on wifi disconnect

We decided to disable wireless disconnect trigger for now as a quick
workaround and not generate sable on this trigger. On rapid wifi on/off
we need to serialize tar generation and limit number of tar files we keep
which requires more thought and testing which will be done in a separate
bug.

Change-Id: Ia42e5b870404507c8544c17e600f14b4f3615b1f
SCSC-Bug-Id: SSB-43178
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
6 months ago[9610] wlbt: Compile out SMAPPER to address memory issues
Albert Cano [Fri, 24 Aug 2018 08:31:00 +0000 (09:31 +0100)]
[9610] wlbt: Compile out SMAPPER to address memory issues

Android P has started showing some instabilities that cause kernel panic
in SMAPPER code.

Since SMAPPER is currently disabled in FW and has not been properly
tested on Android P, create a temporary patch to disabled it until is
stable.

Change-Id: If8a454ed547b5efd8128f2fa521943f33f9f01eb
SCSC-Bug-Id: SSB-43170
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
6 months ago[9610] wlbt: Fix compilation error
Albert Cano [Fri, 24 Aug 2018 06:57:35 +0000 (07:57 +0100)]
[9610] wlbt: Fix compilation error

Fix compilation error when CONFIG_SCSC_LOG_COLLECTION
is no selected

Change-Id: I329a2985ad16a71d500bb80d512a1c40020635bb
SCSC-Bug-Id: SSB-43116
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
6 months ago[7872][7885][9610] wlbt : Checkpatch Error
Himani Gupta [Tue, 21 Aug 2018 08:54:07 +0000 (14:24 +0530)]
[7872][7885][9610] wlbt : Checkpatch Error

Fixed checkpatch error

Change-Id: Ica365a2297d164f45555dda9f7ebb4c47b61d7cb
SCSC-Bug-Id: SSB-43002
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
Signed-off-by: Pragya Gupta <pragya.gupta@samsung.com>
6 months ago[9610] wlbt: increment scsc_release to 6.45.0
scsc_gerrit [Thu, 23 Aug 2018 18:23:45 +0000 (19:23 +0100)]
[9610] wlbt: increment scsc_release to 6.45.0

Import FW for iteration 6.45.0

Change-Id: I88650d83c5262513f9e37a70fc168eeed26bec10
SCSC-Bug-Id: scsc_iteration_6.45.0_p_ww
Signed-off-by: scsc_gerrit <scsc_gerrit@samsung.com>
6 months ago[9610] wlbt: init skb->cb on entry to transmit function
Debabrata Purohit [Thu, 23 Aug 2018 11:11:41 +0000 (12:11 +0100)]
[9610] wlbt: init skb->cb on entry to transmit function

The Skb->cb is accessed in the driver without
initialization.
Skb->cb may have random values that can lead to
incorrect accesses.

Resolution:
Initialize the skb->cb on entry to transmit function

Change-Id: I65536d00fddec8df7bf34fd1aec5acc3b779a8e6
SCSC-Bug-Id: SSB-43125
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
6 months ago[9610] wlbt: Sable. Provide reason code
Albert Cano [Tue, 21 Aug 2018 16:37:44 +0000 (17:37 +0100)]
[9610] wlbt: Sable. Provide reason code

Extended current trigger functions to pass the reason code.

Reason code will be forwarded to wlbtd so that the deamon will generate
the tarball name with it.

Change-Id: Ifd0b6daaaad3243aafc80de161ae0cd952c45b3b
SCSC-Bug-Id: SSB-42948
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
6 months ago[7570][7872][7885][9610] wlbt: [M1712][O MR1]Failure to start SoftAP
Srishti Piplani [Thu, 2 Aug 2018 06:43:20 +0000 (12:13 +0530)]
[7570][7872][7885][9610] wlbt: [M1712][O MR1]Failure to start SoftAP

Changes done to check if the channel is a DFS channel while
selecting a valid channel, when the framework issues an indoor
channel for starting the AP.

Change-Id: Idd96c5721ee97fda026675547f43f786740bc1ee
SCSC-Bug-Id: SSB-42443
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
6 months ago[7885] wlbt: change FAULT_IND to WF_FW_INFO
Debabrata Purohit [Wed, 27 Jun 2018 12:46:43 +0000 (13:46 +0100)]
[7885] wlbt: change FAULT_IND to WF_FW_INFO

Kernel log for FAULT_IND causes annoyance as they are
interpreted as Errors.

But they are not always Errors but for Info as well.

So change the text "FAULT_IND" to "WF_FW_INFO".

Change-Id: Iba86910abb9ea1d8d7ffd3efa5926e73d3000987
SCSC-Bug-Id: SSB-41361
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
(cherry picked from commit f7fa1db6cfbcc846a5d25a6fde0200ddc5dad4be)

6 months ago[9610] wlbt: Add kernel param. to dynamically enable/disable smapper
Albert Cano [Wed, 8 Aug 2018 08:04:34 +0000 (09:04 +0100)]
[9610] wlbt: Add kernel param. to dynamically enable/disable smapper

We would like to have the option to dynamically enable/disable
smapper on a running kernels to be able to profile the functionality.

SMAPPER is initialized on WLAN init, therefore the enable/disable will
only take effect when WLAN is turning on

Change-Id: I11116087f22eb961e047e81beda19b7a328fe202
SCSC-Bug-Id: SSB-42641
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
6 months ago[9610] wlbt: Remove not required serialization
Albert Cano [Wed, 15 Aug 2018 15:51:01 +0000 (16:51 +0100)]
[9610] wlbt: Remove not required serialization

SMAPPER code in host has lot of spin_lock_irq serialization to guarantee
that early code didn't show concurrency problems.

After a thorough analysis of the concurrency, we concluded that the
spin_lock_irq is not required, and could give us ~1% increase in tput.

Change-Id: I2e752b745828b9c8c0aa58c27eacda9c7fe1dee4
SCSC-Bug-Id: SSB-42893
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
(cherry picked from commit 22de3d86711e95d44e83cb492f6ffb30fd6e33d7)

6 months ago[9610] : ccic : fix prevent warning
Junhan Bae [Thu, 30 Aug 2018 02:34:34 +0000 (11:34 +0900)]
[9610] : ccic : fix prevent warning

Change-Id: Ib9e561280d17b1c04c22259c46a5004c6efa141b
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
6 months ago[9610][ERD] drivers: muic: fix prevent CID 237158
Kim Taejeong [Tue, 28 Aug 2018 00:43:27 +0000 (09:43 +0900)]
[9610][ERD] drivers: muic: fix prevent CID 237158

- Fix problem of Dereference before null check.
- System comment below:
1617 static irqreturn_t s2mu004_muic_vbus_isr(int irq, void *data)
1618 {
1619         struct s2mu004_muic_data *muic_data = data;
/* deref_ptr: Directly dereferencing pointer muic_data. */
1620         struct muic_platform_data *muic_pdata = muic_data->pdata;
1621
/* CID 237158 (#1 of 1): Dereference before null check (REVERSE_INULL)
 * check_after_deref: Null-checking muic_data suggests that it may be null,
 * but it has already been dereferenced on all paths leading to the check.
 */
1622         if (muic_data == NULL || muic_pdata == NULL) {
1623                 pr_err("%s, data NULL\n", __func__);
1624                 return IRQ_NONE;
1625         }

Change-Id: Ia060128382d25a29d6bad91a0436e236dfb3cd82
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 months ago[9610][ERD] drivers: muic: fix prevent CID 237151
Kim Taejeong [Tue, 28 Aug 2018 01:01:52 +0000 (10:01 +0900)]
[9610][ERD] drivers: muic: fix prevent CID 237151

- Fix problem of dereference before null check.
- System comment :

1529 static irqreturn_t s2mu004_muic_attach_isr(int irq, void *data)
1530 {
1531         struct s2mu004_muic_data *muic_data = data;
/* deref_ptr: Directly dereferencing pointer muic_data. */
1532         struct muic_platform_data *muic_pdata = muic_data->pdata;
1533         int ret = 0;
1534
/* CID 237151 (#1 of 1): Dereference before null check (REVERSE_INULL)
 * check_after_deref: Null-checking muic_data suggests that it may be null,
 * but it has already been dereferenced on all paths leading to the check.
 */
1535         if (muic_data == NULL || muic_pdata == NULL) {
1536                 pr_err("%s, data NULL\n", __func__);
1537                 return IRQ_NONE;
1538         }

Change-Id: Id83cc8e3994b6f92946a440609b53f6f668b22e8
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 months ago[9610][ERD] drivers: muic: fix prevent CID 237155
Kim Taejeong [Tue, 28 Aug 2018 00:56:03 +0000 (09:56 +0900)]
[9610][ERD] drivers: muic: fix prevent CID 237155

- Fix problem of dereference before null check.
- System comment:

1579 static irqreturn_t s2mu004_muic_detach_isr(int irq, void *data)
1580 {
1581         struct s2mu004_muic_data *muic_data = data;
/* deref_ptr: Directly dereferencing pointer muic_data. */
1582        struct muic_platform_data *muic_pdata = muic_data->pdata;
1583        struct muic_interface_t *muic_if = muic_data->if_data;
1584
/* CID 237155 (#1 of 1): Dereference before null check (REVERSE_INULL)
 * check_after_deref: Null-checking muic_data suggests that it may be null,
 * but it has already been dereferenced on all paths leading to the check.
 */
1585        if (muic_data == NULL || muic_pdata == NULL || muic_if == NULL) {
1586                pr_err("%s, data NULL\n", __func__);
1587                return IRQ_NONE;
1588        }

Change-Id: I6cb3128153c8a062fdd141a39abd87607ec29f15
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 months ago[9610] arm64: dts: add i2c clk freq config
kiwoo Kwon [Wed, 29 Aug 2018 11:38:38 +0000 (20:38 +0900)]
[9610] arm64: dts: add i2c clk freq config

Change-Id: I8b8610988b5af1618bb6385ab6b8c110ec18bc7a
Signed-off-by: kiwoo Kwon <kiwo.kwon@samsung.com>
6 months agofbdev: dpu20: all windows disabled when number of win is zero
ChiHun Won [Wed, 29 Aug 2018 10:02:06 +0000 (19:02 +0900)]
fbdev: dpu20: all windows disabled when number of win is zero

Change-Id: Iacd3fe7b16086e9f863ed4f823cf92f9791814f2
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
6 months agoRevert "[HACK] Make kernel panic when verity error is detected for debugging"
Hyeyeon Chung [Wed, 29 Aug 2018 08:33:36 +0000 (17:33 +0900)]
Revert "[HACK] Make kernel panic when verity error is detected for debugging"

This reverts commit c674aa0e66e07baf5d3e73ee10a9114c05e30bc6.

Change-Id: I5559860846bfb8508ec8957d9edcf0d423b5484a

6 months ago[COMMON] media: smfc: change variable for HW runtime
Seungchul Kim [Fri, 18 Aug 2017 06:31:59 +0000 (15:31 +0900)]
[COMMON] media: smfc: change variable for HW runtime

Variable that stores the HW runtime of smfc is changed to
print a HW runtime on platform log.

Change-Id: Ia89bd96fe4b38fc4baa978b7a380b93600b1b046
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
6 months ago[COMMON] media: smfc: add devfreq setting
Seungchul Kim [Wed, 2 Aug 2017 01:50:38 +0000 (10:50 +0900)]
[COMMON] media: smfc: add devfreq setting

devfreq setting for smfc is added to callback of runtime PM.
If dtsi defines minlock of smfc, 'runtime resume' sets a minlock
that is defined in dtsi and 'runtime suspend' sets a minlock to 0.

Change-Id: Ic1cb9fc24db0aa773add277a49ece9d709c92174
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
6 months ago[COMMON] media: smfc: measure HW runtime
Seungchul Kim [Thu, 1 Jun 2017 01:27:27 +0000 (10:27 +0900)]
[COMMON] media: smfc: measure HW runtime

In 4.9 kernel, HW runtime is stored in timestamp
that moves from vb2_v4l2_buffer to vb2_buffer.

Change-Id: I805da6e155f683d10e96824b61d83dd229893635
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
6 months ago[9610] wlbt: fix prevent issue CID:240470,240473,240480
Youngsoo Kim [Wed, 29 Aug 2018 14:03:42 +0000 (23:03 +0900)]
[9610] wlbt: fix prevent issue CID:240470,240473,240480

drivers/net/wireless/scsc/hip4_smapper.c

CID 240470 (#1 of 1): Out-of-bounds write (OVERRUN)
6. overrun-local: Overrunning array control->lookuptable of 10 bytes at byte offset 251 using index bank->bank (which evaluates to 251).

CID 240473 (#1 of 1): Out-of-bounds read (OVERRUN)
4. overrun-local: Overrunning array control->lookuptable of 10 bytes at byte offset 10 using index bank_num (which evaluates to 10).

drivers/misc/samsung/scsc/mxlogger.h

CID 240480 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value sync_r. Field sync_r.fw_time is uninitialized when calling memcpy. [Note: The source code implementation of the function has been overridden by a builtin model.]

Change-Id: I5fd7e08d84d0d2e21c9416229f827043d55a2e79

6 months agodma-buf: fix wrong variable of task to check condition
hyesoo.yu [Thu, 23 Aug 2018 04:49:28 +0000 (13:49 +0900)]
dma-buf: fix wrong variable of task to check condition

dmabuf trace should release all references between task
and buffer when the task exit.

To know when the task exit, the dmabuf trace registers
anon file descriptor and that should be closed only by
do_exit. Thus, the task need to have 'PF_EXITING'
when closing the file system. If not, it is possible
for user to manage file descriptor incorrectly, so we
check the flags of task.
However, release function could be called by kernel thread
though delayed work, we have to check the task from
file inode's private data instead of 'current'

Change-Id: Id2750fc0f4231817537e183df7bc75d010b348b0
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
6 months agodma-buf: fix uninitialized variable on error state
hyesoo.yu [Wed, 22 Aug 2018 05:42:58 +0000 (14:42 +0900)]
dma-buf: fix uninitialized variable on error state

Change-Id: Ifdb8a7e013575a0cc7885c0522d86b2dafb0f854
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
6 months agodma-buf: introduce dma-buf trace
hyesoo.yu [Fri, 29 Jun 2018 00:56:53 +0000 (09:56 +0900)]
dma-buf: introduce dma-buf trace

We introduce the concept to get information about
what process has allocated and used the dmabuf.

The reference is registered and released by the user.
This information is supported by debugfs with pss.

The temporary reference is always registered
by allocation to indicate the user to request allocation,
and this reference is deleted when user requests
a reference explicitly.

The reference ensure to be released when the buffer
is removed or the user process of handle is exited.

Change-Id: I4c147ad91058cf04b81f51753cbefcc420ec8389
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
6 months agoandroid: ion: show heaptype in the buffer list
Cho KyongHo [Wed, 11 Jul 2018 07:37:26 +0000 (16:37 +0900)]
android: ion: show heaptype in the buffer list

Heap name tells the purpose of heaps and heap type shows how heaps
really work. Showing heap types in the list of buffers helps
identifying the property of buffers more accurately.

Change-Id: I77c97a589e199797ba1898dc696b4d369ea3538a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
6 months agodma-buf: include exp_name to anon file name
Cho KyongHo [Tue, 3 Apr 2018 11:33:37 +0000 (20:33 +0900)]
dma-buf: include exp_name to anon file name

exp_name is introduced for debugging purpose. And we often list the
open file descriptors under /proc/<pid>/fd to find the list of anon
files of dma-buf optained by the process of <pid>. However it is not
possible to associate a specific open file descriptor listed in
/proc/<pid>/fd with the buffer list scrapped from
debugfs/dma-buf/bufinfo.

Attaching exp_name to the anon file name of dma-buf helps identifying
the exported module of the the buffers listed in /proc/<pid>/fd.

dma_buf.exp_name also has the copy of the string instead of pointing
where the string given by the exporter. This gives the exporter chances
to set different exp_name to the different buffers. Therefore we can
identify exact buffers from /proc/<pid>/fd and find the properties of
the buffers. The properties are defined by the exporter and never
exported elsewhere.

Change-Id: Ia3222d1c90b40739cf2e19805a11f366a3b73089
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
6 months agoandroid: ion: add buffer id
Cho KyongHo [Fri, 23 Mar 2018 08:33:16 +0000 (17:33 +0900)]
android: ion: add buffer id

Now buffer has its unique id within 0 and 2048. It will be used to
identify a specific ION buffer exported to dma-buf.

Change-Id: I69bc91207bef14a4711cb9c1b02b3c20caf5cd91
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
6 months agoandroid: ion: attach buffer id to dmabuf.exp_name
Cho KyongHo [Tue, 3 Apr 2018 11:55:27 +0000 (20:55 +0900)]
android: ion: attach buffer id to dmabuf.exp_name

dmabuf.exp_name is introduced for debugging purpose but it is not
capable of distinguishing different buffers from the same exporter.
Attaching unique buffer id after the module name makes the exp_name
unique.

This commit is only applicable after 'commit e6c7e8059376 ("dma-buf:
include exp_name to anon file name")' that copies exp_name provided by
the exporter instead of pointing it.

Change-Id: Idab0249e1e51007d62c15a8b0dbbb8bec03eaf75
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
6 months ago[9610] soc: samsung: cal-if: Corrected id_tbl bit field.
Jeonghoon Jang [Mon, 20 Aug 2018 00:38:25 +0000 (09:38 +0900)]
[9610] soc: samsung: cal-if: Corrected id_tbl bit field.

Change-Id: I4f5ee21594cff56939ec0a2bdc01f14b2819afbf
Signed-off-by: Jeonghoon Jang <jnghn.jang@samsung.com>