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>
Ayoung Sim [Fri, 22 Jun 2018 05:43:01 +0000 (14:43 +0900)]
[COMMON] media: mfc: change the variable name
'num_bufs_in_vb' is mean the number of valid buffers.
Change-Id: I5985cfdbc4d3a30a4fb60e0cec2bc66220d28dd5
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 22 Jun 2018 04:55:32 +0000 (13:55 +0900)]
[COMMON] media: mfc: add buffer mask to dma-buf container
Change-Id: I0f2d92331b4e131bf1f67519ad1866894a1986a0
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 22 Jun 2018 04:44:58 +0000 (13:44 +0900)]
[COMMON] media: mfc: done_index is increased after timestamp is copied
Change-Id: I5c6c8b7564864bfc6bcbeaf1cceb5d4d62de388d
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Thu, 21 Jun 2018 23:57:34 +0000 (08:57 +0900)]
[COMMON] media: mfc: DRV4.0: remove the unnecessary mark
Change-Id: I8b3416ff4056140e290a5aaf486b5049edce755c
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Thu, 21 Jun 2018 08:22:32 +0000 (17:22 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [OTF]
Change-Id: Ia4ff5d63a40fbceb00675eaac1ba736e34b9e8ab
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 08:09:49 +0000 (17:09 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [NALQ]
Change-Id: I509e015411e821705f8ca85ecd6d933280f198b3
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 07:47:18 +0000 (16:47 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [MULTIFRAME]
Change-Id: I667454a40f65755b628f4c0e2c8a08d987e9e753
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 07:24:27 +0000 (16:24 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [CTRLS]
Change-Id: I9eadb7876eb598c7955b3c7079bbb2738a9c8189
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 06:22:47 +0000 (15:22 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [BUFINFO]
Change-Id: I8439b59c2707cb8fd61682c23edf2d4cfe2074fc
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 04:21:40 +0000 (13:21 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [STREAM]
Change-Id: I7fd785f5fc4f8485ea3c6ff202e39ef3bd5c3e3b
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 20 Jun 2018 00:24:16 +0000 (09:24 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [FRAME]
Change-Id: I25ca69ac74814219bde3294583f4eb792daa6ff9
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Tue, 19 Jun 2018 07:59:41 +0000 (16:59 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [MEMINFO][F/W]
Change-Id: If80c8b5093a83f5ab5ed391b334998fe52fddffa
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Mon, 18 Jun 2018 08:33:51 +0000 (17:33 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [10BIT]
Change-Id: Ie43c401e9eae1ef9a03a4bee0b826a287d7d934e
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Mon, 18 Jun 2018 07:49:21 +0000 (16:49 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [DPB]
Change-Id: I446df75e07f08bbb85116351bb023962c8131fc6
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Mon, 18 Jun 2018 02:25:29 +0000 (11:25 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [HDR]
Change-Id: Ic2d727a5785999a72e1d3de157f75d87fec4677d
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Mon, 18 Jun 2018 02:22:37 +0000 (11:22 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [DRC]
Change-Id: Ib9379c00da450026723b1f76b2472ac60bd60be1
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 15 Jun 2018 08:20:28 +0000 (17:20 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [HIERARCHICAL]
Change-Id: If14197adfdc77bd9f10382c9fa80a0d41196d5c1
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 15 Jun 2018 07:40:29 +0000 (16:40 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [ROI]
Change-Id: I29b23d18f1ce0d45f9e2ce4aa9d08b3b63654b5a
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 15 Jun 2018 07:29:30 +0000 (16:29 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [INTERLACE]
Change-Id: Ia2d39a9e096c92a1e7329476399e50beb52278bc
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 15 Jun 2018 07:15:29 +0000 (16:15 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [BLACKBAR]
Change-Id: I2a094c0c23fd2b071ecfa0237b1b5c6ed16c6253
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 15 Jun 2018 07:07:28 +0000 (16:07 +0900)]
[COMMON] media: mfc: DRV4.0: update prefix [QoS][TS]
Change-Id: I7e5275f499170304eb86612ad776691f859f7686
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Jeonghee Kim [Fri, 15 Jun 2018 11:07:43 +0000 (20:07 +0900)]
[COMMON] media: mfc: parse supported format information
MFC driver returns the error when the set format is not supported.
In addition, it does not change the format after header parsing if it is not supported.
Change-Id: Id7927f62c9348d5ca362039e3526f1a199d1014d
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Fri, 15 Jun 2018 11:05:36 +0000 (20:05 +0900)]
[9610] arm64: dts: add supported format information for mfc
Change-Id: Ie0a4560176815f5621c266bb00de750b55d92463
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Ayoung Sim [Fri, 13 Jul 2018 01:52:13 +0000 (10:52 +0900)]
[9610] arm64: dts: change the HWFC address
Change-Id: I91207193b759c9ca3cfed07fa812d5a473238756
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Fri, 8 Jun 2018 02:23:55 +0000 (11:23 +0900)]
[COMMON] media: mfc: DRV4.0: support performance boost mode
This mode should be used only for test
and user should set before MFC start(open).
Change-Id: I752d77334227f49e485604d2979aa965c8463522
Signed-off-by: Ayoung Sim <a.sim@samsung.com>