Sunmi Lee [Mon, 11 Jun 2018 07:01:09 +0000 (16:01 +0900)]
[COMMON] fimc-is2: Code cleanup before adding new feature - hw-mcsc
Change-Id: I46a857df3be5d9dc200b8797b6b140542b7e31f0
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 08:07:27 +0000 (17:07 +0900)]
[COMMON] fimc-is2: remove unused code for permanent mapping
Change-Id: Iabdfd8aa69def40dab7f55c4312bd3096fa04569
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 08:05:03 +0000 (17:05 +0900)]
[COMMON] fimc-is2: remvoe 'vb2_plane_cookie' operation
Change-Id: Ie955cbaa9eb934db4545234192c4e55689ee6d44
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:56:38 +0000 (16:56 +0900)]
[COMMON] fimc-is2: remove 'cookie_shot' from a frame
Change-Id: Iab17d88e997a335336c839fb8361bc044814f0d5
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:50:50 +0000 (16:50 +0900)]
[COMMON] fimc-is2: remove explicit cache maintanence for meta
Change-Id: Ic7fa6246721583a6af71c27f9d3daff35403eb2d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:46:19 +0000 (16:46 +0900)]
[COMMON] fimc-is2: remove 'buf_box' in our quque
Change-Id: I0182be2713807ecfa7b786bc3e92b74a35321484
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 12 Jun 2018 12:36:15 +0000 (21:36 +0900)]
[COMMON] fimc-is2: use valid frame pointer for internal subdevs
Change-Id: If3e2ef8ef676d6b7baa0dac2f36e3dc50a29f8a1
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 8 May 2018 06:49:46 +0000 (15:49 +0900)]
[COMMON] fimc-is2: clean-up csi_stream_on/off()
Change-Id: I325f4cd804c1aaa134bfccff0587e91c6f61dc4d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:58:21 +0000 (11:58 +0900)]
[COMMON] fimc-is2: clean-up csi_dma_probe()
Change-Id: I4b758d3a8954d4cfe48745230b7776de2d2b129b
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:54:52 +0000 (11:54 +0900)]
[COMMON] fimc-is2: clean-up csi_probe() and support sub-device ch. mode
Change-Id: I92223707a2efc4cde4f3c76bfbc4ad91b2da6489
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:11:46 +0000 (11:11 +0900)]
[COMMON] fimc-is2: move 'the number of sub-device channel mode' to sensor
Change-Id: I96738e3b1876642d0a12519de912e7b1bac17dcc
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:20:30 +0000 (10:20 +0900)]
[COMMON] fimc-is2: change sub-device ch. assignment for each VC
Change-Id: I48874561b1eff7c44d791ba0bd244142941be2ad
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:16:34 +0000 (10:16 +0900)]
[COMMON] fimc-is2: add sanity checking for selected sub-device ch. mode
Change-Id: I521143efe488005578e93e3b7f2b625ce3d79c43
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:08:56 +0000 (10:08 +0900)]
[COMMON] fimc-is2: add the maximum of sub-device ch. mode to CSI
Change-Id: If453aff6b5adf672191e8d3118c28928772f83d6
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 00:28:02 +0000 (09:28 +0900)]
[COMMON] fimc-is2: read channel mode properties as a bunch (Max VC Ch.)
Change-Id: I1b5fb8880d52616bf43d19e1a471a4a810ed2c62
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 00:25:11 +0000 (09:25 +0900)]
[COMMON] fimc-is2: use sub-device ch. mode to access each HW resources
Change-Id: I5e1b2a9a477a3987ec6bdf8d2641527c85b15b02
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Apr 2018 07:32:03 +0000 (16:32 +0900)]
[COMMON] fimc-is2: add sub-device channel mode to represent logical VC
Change-Id: I3baae756c4495e281664ae51920b9d87d7d23f4d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:57:54 +0000 (11:57 +0900)]
phy: apply 2+2 lane mode, CLK2 selection for 0502/0001
Change-Id: I7f831bd58e369288a24716efb5f4351d7b286698
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:55:59 +0000 (11:55 +0900)]
phy: some SFRs exist in the COMBO lane only
Change-Id: Ide7b7dab6dcf34cdb3328558e21f05d7dcf08bed
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:54:43 +0000 (11:54 +0900)]
phy: add operation 'mode' to PHY type
Change-Id: I66d1a2157c1b337d8eec934906a2625edf7c3781
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:53:27 +0000 (11:53 +0900)]
[COMMON] fimc-is2: add operation 'mode' to PHY type
Change-Id: I31f33fa35263fff94b68b466f032c77b475057bc
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:50:37 +0000 (11:50 +0900)]
[COMMON] fimc-is2: simplify getting .drvdata
We should get drvdata from struct device directly.
Going via platform_device is an unneeded step back and forth.
Change-Id: I76cd504d46b1f19a71d14b7a729652166f7f5c6d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Sunmi Lee [Fri, 15 Jun 2018 01:58:24 +0000 (10:58 +0900)]
[COMMON] fimc-is2: Fix a bug of calling get_meta function in case of NDONE frame
Change-Id: I69b67190199790cf38ce825773926c2a9482fb6b
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 10:03:40 +0000 (19:03 +0900)]
[COMMON] fimc-is2: Fix a bug of getting the 3AAG (MRG_OUT) subdev
Change-Id: Icd9a4e67e40359675ebbc4b806b6f980bbb3e8a9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 8 Jun 2018 04:52:45 +0000 (13:52 +0900)]
[COMMON] fimc-is2: Code cleanup related to ENABLE_REPROCESSING_FD
Change-Id: I7b06ef08fd4e14ee85330185295b565b9280aa55
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 8 Jun 2018 04:51:46 +0000 (13:51 +0900)]
[COMMON] fimc-is2: Increased STREAM_COUNT 4 -> 8 to support eFD function
Change-Id: Idcb4b6c6764ef7c1aff35dac066414b95a350555
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 8 Jun 2018 03:43:15 +0000 (12:43 +0900)]
[COMMON] fimc-is2: Added to check 3AF, 3AG output in 3aa_shot
Change-Id: Icb407866819d3928d514cf127a9ff56e8da9a7f5
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 8 Jun 2018 02:26:40 +0000 (11:26 +0900)]
[COMMON] fimc-is2: Fix a bug of finding setfile offset
Change-Id: Ief04f265044641854b7a46c0aad6d07978854c4a
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 7 Jun 2018 06:58:54 +0000 (15:58 +0900)]
[COMMON] fimc-is2: Fix a bugs of setting efd address for DDK
Change-Id: I5b11a36d6ca6d3a2e998b0fd5830145a1b44aa80
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Youngwan Kim [Wed, 18 Jul 2018 04:24:55 +0000 (13:24 +0900)]
[COMMON] lib: libdss: add aarch64 headers for libdss
Change-Id: Ic62e240ff26f2fbea7f8ba062165f84998bd00cc
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
yi jaeuk [Wed, 4 Jul 2018 06:49:34 +0000 (15:49 +0900)]
[9610] soc: samsung: cal-if: Updated PMUCAL data. (0713)
Change-Id: Ibb5f0afa5c336882efae150c6da5be3d66e80480
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
Jang JeongHoon [Fri, 13 Jul 2018 01:59:58 +0000 (10:59 +0900)]
soc: samsung: cal-if: Introduced new access_type: PMUCAL_RAW_WAIT.
Change-Id: Id95be1b44b03e59b945430de8603fff36633ea21
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
yi jaeuk [Thu, 5 Jul 2018 02:22:30 +0000 (11:22 +0900)]
[9610] arm64: erd9610_defconfig: enable CONFIG_EXYNOS_RGT
Change-Id: Ie557c4d0ecda7729095445e745af2dd4fa8cf01e
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
Youngwan Kim [Tue, 17 Jul 2018 05:23:20 +0000 (14:23 +0900)]
[COMMON] lib: libdss: move time check if to the front of iteration
Change-Id: Icc1d83dc6f1296dfcefada67633a3310b721cfde
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Thu, 12 Jul 2018 02:12:31 +0000 (11:12 +0900)]
[COMMON] lib: libdss: Convert trash value to 0
Change-Id: I754532fc2f404dca8504fa7c81ad22692e704ae6
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Wed, 11 Jul 2018 12:11:47 +0000 (21:11 +0900)]
[COMMON] lib: dss: fix bug setting 0 at wrong position in acpm log
Change-Id: I1c7adcca4a35f28083f8897cc67149b397ee63a9
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Wed, 11 Jul 2018 12:11:04 +0000 (21:11 +0900)]
[COMMON] lib: libdss: convert printf format for Tracegen
Change-Id: I50106c3183358e538555db6a1a37c60eb3ed2840
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Wed, 11 Jul 2018 02:14:56 +0000 (11:14 +0900)]
[COMMON] lib: libdss: change dss-reader to libdss
It's to fix build error in environment not installed qemu-aarch64.
Change-Id: I6156bb191bfbfd80f29b46c713b13379a9e9b050
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Wed, 11 Jul 2018 02:43:27 +0000 (11:43 +0900)]
[COMMON] lib: libdss: Add ifdef for FREQ
Change-Id: I0b81dc0a9ecd58a9848360e1a0f8bae44f5f1dc8
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Mon, 25 Jun 2018 02:04:17 +0000 (11:04 +0900)]
[COMMON] lib: dss-reader: Add ACPM log in dss-reader
Change-Id: I5a7a08403de0d7684246dfc4482c0073dd2f27fb
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Thu, 21 Jun 2018 09:43:55 +0000 (18:43 +0900)]
[COMMON] lib: dss-reader: add cpu field in freq
Change-Id: I0f53346a4c306e7a31ea4badd1fa13fa2563cee9
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Yunji Kim [Tue, 5 Jun 2018 07:26:17 +0000 (16:26 +0900)]
[COMMON] lib: dss-reader: Modify dss-reader to trace binder transactions
Change-Id: Iae83e6822054eb192cfa7e441b1b8dd2257fdb1e
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
Yunji Kim [Mon, 28 May 2018 12:24:19 +0000 (21:24 +0900)]
[COMMON] dss: add binder log to trace binder transactions
Change-Id: I5f0aa96a07dd4c9f73cc5b0f6dd8238efa9931d5
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Yunji Kim [Thu, 7 Jun 2018 07:40:14 +0000 (16:40 +0900)]
[COMMON] lib: dss-reader: fix qemu error.
This patch fixes below error.
$ qemu-aarch64 dss-reader snapshot.dat
/lib/ld-linux-aarch64.so.1: No such file or directory
Change-Id: I9ffa1448b9eee9bb1673c87f6b281cb44596f466
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
Youngwan Kim [Thu, 31 May 2018 09:28:09 +0000 (18:28 +0900)]
[COMMON] lib: dss: Modify dss-reader to get additional fields
Change-Id: I218af6fbeb1d6a9e2d985771059ce5ad8dc936ea
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Wed, 30 May 2018 13:00:44 +0000 (22:00 +0900)]
[COMMON] lib: dss: Add fields in dbg_snapshot_log for analyzer
Change-Id: Ibad7fedc28e88b95a4fa4967ec44081acc2f934d
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Thu, 10 May 2018 10:53:41 +0000 (19:53 +0900)]
[COMMON] lib: dss: Add dss-reader.
Change-Id: I346b3016eb6c2b100ef920fc5e735649e7654bde
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Youngwan Kim [Tue, 8 May 2018 01:46:50 +0000 (10:46 +0900)]
[COMMON] lib: dss: Seperate definition of dbg_snapshot_log.
Change-Id: I693a926462b4dd9d95dce1fbeb3d07ec3f5252f3
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
Hosung Kim [Tue, 29 May 2018 06:34:14 +0000 (15:34 +0900)]
[COMMON] lib: dss: modify kernel event logging of DSS.
Change-Id: Iaf8fb022315fdd419f49310fe7b11a37b07851c3
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Hyunwoong Kim [Fri, 20 Jul 2018 07:46:05 +0000 (16:46 +0900)]
[9610] arm64: dts: modify abox debug device node name
Change-Id: I9afe245dda6860c776693c5f1c86d4c4947ef823
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
Hyunwoong Kim [Fri, 20 Jul 2018 07:44:04 +0000 (16:44 +0900)]
[9610] arm64: dts: download AP_AUDIO SLSI binary
Change-Id: I17ba9b0fc4ada88579081bfbcce8fc16301ef5ec
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
Jaejoon Yoo [Thu, 28 Jun 2018 05:10:48 +0000 (14:10 +0900)]
[9610] dts: add bcm information
Change-Id: I1702d2197afbfa612c710532da4a85711d5fdaba
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Tue, 3 Jul 2018 09:57:47 +0000 (18:57 +0900)]
[9610] drivers: soc: cal-if: Add bcm pd sync
Change-Id: I08541e13a469a133b4a7313d7f4cee77a85f2c00
Jaejoon Yoo [Fri, 22 Jun 2018 07:33:04 +0000 (16:33 +0900)]
[COMMON] runtime PM: add bcm function to exynos-pd
Change-Id: I8961c4014517688e94041b69ec70269f71b192f4
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Wed, 4 Jul 2018 04:20:47 +0000 (13:20 +0900)]
[COMMON] lib: dss: add bcm information
Change-Id: Ia3bdb8d606f15873bdcd29f36a642fdbbdff7962
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Thu, 28 Jun 2018 10:35:00 +0000 (19:35 +0900)]
[COMMON] soc: samsung: introduce BCMDBG driver
Change-Id: I3ae0b0bf986a8123cca91a24758817449cc751ed
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Junho Choi [Fri, 20 Jul 2018 05:26:26 +0000 (14:26 +0900)]
[9610] soc: samsung: smc: Add DEBUG_SNAPSHOT_LOGGING_SMC feature
This feature logs the information like clock, latency and etc.
of every SMCs.
Change-Id: I1984510424fbe6668128121ccd5495fd74623920
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
Junho Choi [Thu, 19 Jul 2018 04:20:34 +0000 (13:20 +0900)]
[9610] arm64: exynos-smc: Change the feature name to DEBUG_SNAPSHOT
EXYNOS_SNAPSHOT was changed to DEBUG_SNAPSHOT.
Change-Id: I17d2103dc52cd76b6b459a0108f7dc90fb4e7c3b
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
Kisang Lee [Wed, 18 Jul 2018 00:54:49 +0000 (09:54 +0900)]
[COMMON] usb: notify: add wake_unlock for balance
Change-Id: I31a6ccf789093ba6093a7394dce6a1c27500cc65
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
Sunyoung Kang [Mon, 23 Jul 2018 05:59:31 +0000 (14:59 +0900)]
[COMMON] media: mfc: add to NULL check of itmon_info->master
Change-Id: I1ef08db744cb1429337765bc5bc5096bed9d13c7
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Ayoung Sim [Fri, 20 Jul 2018 00:22:54 +0000 (09:22 +0900)]
[COMMON] media: mfc: check the NULL pointer
Change-Id: Ia0b9d2cc6ba5ed69821712bf33c86cefc5af1ae5
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 18 Jul 2018 07:52:07 +0000 (16:52 +0900)]
[COMMON] media: mfc: add the error handling
If there is no valid buffer in mask bit,
we couldn't do encoding
Change-Id: I94722a348cd6e192cd6195d6f506fc480b79145e
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Jeonghee Kim [Wed, 18 Jul 2018 03:51:27 +0000 (12:51 +0900)]
[COMMON] media: mfc: parse QoS weight
Change-Id: Idbad3132753e989c25d2183ba38dccce9390e3a2
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Wed, 18 Jul 2018 03:50:08 +0000 (12:50 +0900)]
[9610] arm64: dts: add QoS weight for mfc
Change-Id: I64ac22b8f4ca63c43c823625f6d578984c9c941d
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Tue, 17 Jul 2018 11:24:21 +0000 (20:24 +0900)]
[COMMON] media: mfc: parse bw information
Change-Id: I660a89c6f4723ce967cfa4b970cfe0e44c953a2a
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Tue, 17 Jul 2018 11:23:32 +0000 (20:23 +0900)]
[9610] arm64: dts: add bw information for mfc
Change-Id: I9e2f10705602b64192564f527b12952011be0a7e
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Sunyoung Kang [Mon, 16 Jul 2018 07:39:02 +0000 (16:39 +0900)]
[COMMON] media: mfc: fix the vb2 flag setting
This removes legacy vb2 flag definition and fixes the wrong check.
Change-Id: I1aa9433b7bbe910118ef060ae3fced7e860df36e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 16 Jul 2018 07:32:11 +0000 (16:32 +0900)]
[COMMON] media: mfc: show the err number in TRACE info
Change-Id: I0b83295731ff7b009db5f1cf4b1e0c55246a45b1
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 16 Jul 2018 07:30:28 +0000 (16:30 +0900)]
[COMMON] media: mfc: add lost spin_unlock_irqrestore
Change-Id: Ia4f50e329b2341ae8a3d33ecf7300cf62d5c6b82
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 16 Jul 2018 07:22:39 +0000 (16:22 +0900)]
[COMMON] media: mfc: enable dump when ITMON dest is mfc
When the ITMON's dest is MFC, the master info is NULL and
the MFC debug info is not shown. So this adds to check dest info
even if master info is NULL.
Change-Id: Iac6a99059d4a82a3bfb8d97b20ff5d760f3a3598
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 16 Jul 2018 07:20:33 +0000 (16:20 +0900)]
[COMMON] media: mfc: remove debug mode when "But error"
If the result has error in s5p_mfc_wait_for_done_ctx(), the debug mode
generates panic. If there is an error stream, panic will always occur.
So this removes the debug mode in that case.
Change-Id: I42130b2bcf9f40ed18a1675c1d9ca996d355fb7e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Ayoung Sim [Fri, 13 Jul 2018 08:37:01 +0000 (17:37 +0900)]
[COMMON] media: mfc: support various VP9 level
Change-Id: I97836c2c0df644d83467998049734a7a55e3af3a
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Sunyoung Kang [Fri, 13 Jul 2018 08:59:29 +0000 (17:59 +0900)]
[COMMON] media: mfc: fix build error when gcc
Change-Id: I5cfd2be4d326549215695a1d78012e239a69647a
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Ayoung Sim [Wed, 11 Jul 2018 05:23:44 +0000 (14:23 +0900)]
[COMMON] media: mfc: fix the prevent issue
CID(234025): Uninitialized pointer read
Change-Id: I8d68381aef86831ea9196d59b414df5bbdce3332
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Mon, 9 Jul 2018 07:09:43 +0000 (16:09 +0900)]
[COMMON] media: mfc: DRV4.0: dump the MFC struct
Change-Id: I62ef996cb43a334c2aa1a6b7bc138e97448989fd
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Sunyoung Kang [Mon, 9 Jul 2018 06:16:43 +0000 (15:16 +0900)]
[COMMON] media: mfc: DRV4.0: clean up mfc_cmd
This clean up the mfc_cmd like below.
- change to void type when no return value
- rename mfc_cmd_init_decode to mfc_cmd_dec_seq_header()
- rename mfc_cmd_init_encode to mfc_cmd_enc_seq_header()
Change-Id: I77448111d687102681de2ca955c53c57a92732f5
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Thu, 5 Jul 2018 06:30:55 +0000 (15:30 +0900)]
[COMMON] media: mfc: DRV4.0: apply bit op macros to enc_param
The bit operation code in enc_param.c is replaced with bit op macros.
Change-Id: I172a1f8a34c8ce2ca049e0ce2839fbe924384bb3
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 3 Jul 2018 07:56:59 +0000 (16:56 +0900)]
[COMMON] media: mfc: DRV4.0: introduce bit op macros
This provides the bit operation macros
- mfc_clear_bits()
- mfc_set_bits()
- mfc_clear_set_bits()
Sometimes the bit operation code makes a bug so this will be useful.
And these are applied to H.264 enc param setting code.
Change-Id: I6b863b6d44b04facc8d0b8c9fe9d02dfa747a01d
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 3 Jul 2018 04:43:12 +0000 (13:43 +0900)]
[COMMON] media: mfc: DRV4.0: remove unnecessary code over all
This removes the NULL check for data already identified like
mfc_dev, mfc_ctx over all.
Change-Id: Ibdc7ad039a8f1d6feccfe3954a1c42ba1bed9895
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 3 Jul 2018 02:31:12 +0000 (11:31 +0900)]
[COMMON] media: mfc: DRV4.0: remove unnecessary code in mfc_buf
This removes the NULL check for data already identified like
mfc_dev, mfc_ctx.
Change-Id: Ieb716aa203e1235003335c1e18f7ec2d10c285ce
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 3 Jul 2018 02:15:38 +0000 (11:15 +0900)]
[COMMON] media: mfc: DRV4.0: rename functions
This renames the function names according to naming rule
and uses intuitive name.
naming rule: mfc_dec/enc_<verb>_<object>
Change-Id: I4393bc3b3920b3eba36a0f6b69ade6c7e5af0634
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 3 Jul 2018 01:13:00 +0000 (10:13 +0900)]
[COMMON] media: mfc: DRV4.0: clean up some queue functions
The below functions are cleaned up.
- mfc_cleanup_enc_src_queue
- mfc_cleanup_enc_dst_queue
- __mfc_cleanup_batch_queue (removed)
Change-Id: Ib531b7c5fc7cdc38e3a99d8899d28a45889089b1
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 2 Jul 2018 23:14:14 +0000 (08:14 +0900)]
[COMMON] media: mfc: DRV4.0: clean up duplicate functions
This removes mfc_move_first_buf_used() and replaces
mfc_get_move_buf_used().
Change-Id: Ia704c8917cd6a1552dff6851e0904329c9b23aa8
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Fri, 29 Jun 2018 07:08:54 +0000 (16:08 +0900)]
[COMMON] media: mfc: DRV4.0: apply __raw_readl/writel() in enc_param
The __readl() and __writel() are memory ordering API using barrier.
This changes from __readl(),__writel() to __raw_readl(), __raw_writel()
in enc_param because the ordering is unnecessary during encoder parameter setting.
Change-Id: I140f3aabd053021ffc7c65ed7929ea36e6508625
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 2 Jul 2018 08:22:28 +0000 (17:22 +0900)]
[COMMON] media: mfc: DRV4.0: refactoring flag info
The vb.reserved2 field of struct vb2_v4l2_buffer
stores the flags used to exchange information
between driver and HAL. This provides APIs for using flags.
- mfc_clear_vb_flag()
- mfc_set_vb_flag()
- mfc_check_vb_flag()
Change-Id: I403e8543983b488895214fef483ad3d47e049408
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 2 Jul 2018 07:06:02 +0000 (16:06 +0900)]
[COMMON] media: mfc: DRV4.0: rename v4l2 ioctls
The v4l2 ioctls rename from vidioc_xxx to mfc_dec/enc_xxx.
Change-Id: I5fc45f15c8d07fe2e7c1e14b14f8bc8cb8744b6e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 2 Jul 2018 06:53:37 +0000 (15:53 +0900)]
[COMMON] media: mfc: DRV4.0: encapsulate mfc_ctx_ready()
The mfc_ctx_ready() calls mfc_dec_ctx_ready() or mfc_enc_ctx_ready()
according to ctx->type. This changes mfc_dec/enc_ctx_ready() to static
and caller uses only mfc_ctx_ready().
Change-Id: Ica665363a32316a72e9f385f2f884ac68a5ab5e9
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Ayoung Sim [Fri, 29 Jun 2018 07:54:53 +0000 (16:54 +0900)]
[COMMON] media: mfc: DRV4.0: adjust variable order
Variables should be defined consider with type on memory
Change-Id: I368167fbcfb266a463ca96ded9dc071268d119af
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 29 Jun 2018 05:42:44 +0000 (14:42 +0900)]
[COMMON] media: mfc: DRV4.0: clean up the some debug log
Change-Id: I82982e2dc7475c567bdb2dfec94df59817ff8b55
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Sunyoung Kang [Thu, 28 Jun 2018 08:56:34 +0000 (17:56 +0900)]
[COMMON] media: mfc: DRV4.0: replace opr and ctrl to run
The mfc_opr and mfc_ctrl perform a similar function to operate HW.
This merges the both together and changes the name to mfc_run.
- apply "mfc_run" prefix to function name in mfc_run
- move hwlock code in sleep/wakeup function to caller
- remove unnecessary code
Change-Id: I23320d6c454c353de30e9c761b3f581e20d28a7b
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 26 Jun 2018 07:34:00 +0000 (16:34 +0900)]
[COMMON] media: mfc: DRV4.0: delete mfc_inst
Ths mfc_inst is similar to mfc_cmd, so it is merged to cmd.
In this process, the following changes were made.
< merge >
- mfc_open_inst => mfc_cmd_open_inst
- mfc_close_inst => mfc_cmd_close_inst
< rename >
- mfc_abort_inst => mfc_cmd_abort_inst
- mfc_init_decode => mfc_cmd_init_decode
- mfc_decode_one_frame => mfc_cmd_dec_one_frame
- mfc_init_encode => mfc_cmd_init_encode
- mfc_encode_one_frame => mfc_cmd_enc_one_frame
< move >
- mfc_h264_set_aso_slice_order =>
mfc_set_aso_slice_order_h264 in enc_param.c
< add >
- mfc_set_enc_params() in enc_param.c
And unnecessary code in mfc_cmd has been removed.
Change-Id: I638f02ff0100921f2e82c19ed1089538a6add0c1
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 26 Jun 2018 06:10:09 +0000 (15:10 +0900)]
[COMMON] media: mfc: DRV4.0: change to intuitive file name.
This changes the file names more intuitively.
mfc_regs_v10.h => mfc_regs.h
mfc_reg.c/h => mfc_reg_api.c/h
mfc_cal.c/h => mfc_hw_reg_api.c/h
mfc_dec_ops.c => mfc_dec_ctrl.c
mfc_enc_ops.c => mfc_enc_ctrl.c
mfc_dec.c/h => mfc_dec_v4l2.c/h
mfc_enc.c/h => mfc_enc_v4l2.c/h
mfc_dec_vb2_ops.c => mfc_dec_vb2.c
mfc_enc_vb2_ops.c => mfc_enc_vb2.c
mfc_irq.c/h => mfc_isr.c/h
Change-Id: Ie217f5ccead5ab12888ec3fe83c292be10a0f553
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 26 Jun 2018 05:05:00 +0000 (14:05 +0900)]
[COMMON] media: mfc: DRV4.0: remove "s5p" prefix in mfc hwfc
The mfc hwfc has been modified like below.
- header file rename: s5p_mfc_hwfc.h => mfc_hwfc.h
- function rename: s5p_mfc_hwfc_encode => mfc_hwfc_encode
Change-Id: I6b7b471e02c0dc5721748869ed95c1608db1e76e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Tue, 26 Jun 2018 04:44:45 +0000 (13:44 +0900)]
[COMMON] media: mfc: DRV4.0: remove "s5p" prefix in all files.
The "s5p" prefix is no longer meaningful and removed.
The function and register names have been modified as shown below.
- normal function name: s5p_mfc_xxx => mfc_xxx
- static function name: mfc_xxx => __mfc_xxx
- register definition: S5P_FIMV_xxx => MFC_REG_xxx
- structure name: s5p_mfc_xxx => mfc_xxx
- macro name: S5P_MFC_xxx => MFC_xxx
Change-Id: I0e8726af7c0f2d244c49e0166fcdbe1617b0a7c8
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Sunyoung Kang [Mon, 25 Jun 2018 06:43:24 +0000 (15:43 +0900)]
[COMMON] media: mfc: DRV4.0: remove "s5p" prefix in file name.
The "s5p" prefix is no longer meaningful so this renames
all files.
Change-Id: I46662fd4660c66eeafd0322053292a61e9b3c3e1
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Jeonghee Kim [Tue, 26 Jun 2018 02:23:31 +0000 (11:23 +0900)]
[COMMON] media: mfc: check low memory device
Returns error if the total memory is less than 1.5GB and DPB size is too big
to pass android.security.cts.StagefrightTest#testBug_37930177
Change-Id: I62f82f73ea49a490317e54faf80adf467474be70
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Thu, 21 Jun 2018 11:40:44 +0000 (20:40 +0900)]
[COMMON] media: mfc: check max/min resoltion for encoder
- Encoder max resolution
HEVC(422), BPG: 65536x8192 or 8192x65536
HEVC(420), H.264, VP8: 8192x8192
VP9: 4096x8192
MPEG4: 2048x2048
H.263: 2048x1152
- Encoder min resolution
HEVC, BPG, VP9: 64x64
H.264, VP8, MPEG4, H.263: 32x32
Change-Id: I8718b609b02c854360a70abfcfe8570b66846bc0
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Tue, 19 Jun 2018 12:00:46 +0000 (21:00 +0900)]
[COMMON] media: mfc: fix the QoS calculation
If too many instances are open,
'total_fps * sw_time' can exceed 1 second and total_mb value can be zero.
When the total_mb is zero,
we can't request a high QoS level in qos_on function
and QoS remove will be called unconditionally in qos_off function.
In order to defend this problem,
It has been modified to use max_mb value if SW time exceeds 1 second.
Change-Id: I833bc27b5c547c8d92c5eddc9f685d26677b179f
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Ayoung Sim [Fri, 22 Jun 2018 05:45:08 +0000 (14:45 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [BUFCON]
Change-Id: Id99b130f2602f47f374856d08e8aa22800e51f81
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 22 Jun 2018 05:04:43 +0000 (14:04 +0900)]
[COMMON] media: mfc: use the rc_framerate for timestamp calculation
Change-Id: I8ebb3144da1098c3a8335ef03d973ac53e88a2ab
Signed-off-by: Ayoung Sim <a.sim@samsung.com>