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>
Ayoung Sim [Thu, 14 Jun 2018 06:01:46 +0000 (15:01 +0900)]
[9610] arm64: dts: add the new QoS table for performance boost
Change-Id: I943b3e9d8eb5d7dbe265e990a5488e07ca769ddb
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Tue, 29 May 2018 07:53:37 +0000 (16:53 +0900)]
[COMMON] media: mfc: fix the memory leak
If driver failed to get dmabuf of specific plane not plane0,
the dmabuf of previous plane doesn't be released.
Change-Id: I7c41ac3717fbd274a2213a56be2f2f98401fb993
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Jeonghee Kim [Fri, 8 Jun 2018 05:44:18 +0000 (14:44 +0900)]
[COMMON] media: mfc: parse default 10bit format for decoding
Change-Id: I991532cd6f68a434109af8f84c66570c1f09498c
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Mon, 11 Jun 2018 04:42:30 +0000 (13:42 +0900)]
[9610] arm64: dts: add default 10bit format for decoding
Change-Id: I903f778a8c107dbd714886bb5a3b460ddd4ec1ab
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Fri, 8 Jun 2018 04:54:49 +0000 (13:54 +0900)]
[COMMON] media: mfc: DRV4.0: find dec/enc formats using pixelformat
Change-Id: I9dfcf2ee5a93672cf7dfc9e996103fa120ca279e
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Jeonghee Kim [Thu, 7 Jun 2018 10:07:21 +0000 (19:07 +0900)]
[COMMON] media: mfc: use released buffer in dec only
Change-Id: I42dff38672689eee66890781e06e5b94aca7565b
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Ayoung Sim [Tue, 5 Jun 2018 01:50:03 +0000 (10:50 +0900)]
[COMMON] media: mfc: change the number of NAL_Q slot
If MFC run with max multi-instance in NAL_Q mode,
32 slot is needed because one slot is needed for one command(job).
Becuase one instance can get 5 jobs at the same time,
we increase the slot size to 32KB such as below.
- 32 instance * 4 jobs = 128 slot.
- 256 byte(one slot size) * 128 = total 32KB.
Change-Id: I1b32235febc63d4ec4eb2144601c605371cf3bf8
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Tue, 15 May 2018 06:33:31 +0000 (15:33 +0900)]
[COMMON] media: mfc: change the default 10bit format
Default 10bit format is changed to P010 format and
default MEM_TYPE_10B is changed too,
because P010 format should set the MEM_TYPE_10B to 1.
Also, MEM_TYPE_10B should be set when SEQ_START.
Change-Id: I1c4d9748b1681dd485550a49614b772e0802a783
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Ayoung Sim [Wed, 30 May 2018 06:47:26 +0000 (15:47 +0900)]
[COMMON] media: mfc: support the MBAFF frame
Change-Id: I1416910f0822afd43d0f7d0d7e32b599eb577fe7
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Jeonghee Kim [Mon, 11 Jun 2018 00:56:23 +0000 (09:56 +0900)]
[COMMON] media: mfc: fix gcc build warning
Change-Id: I5bbfa369600e7ce3d0dafe6d78a0f7713196d7d0
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
Sunyoung Kang [Fri, 20 Jul 2018 09:06:14 +0000 (18:06 +0900)]
Revert "[COMMON] media: mfc: remove debug mode when "But error""
This reverts commit
03754e461cb0014cbd7879fc7f5e82d60107c523.
Change-Id: Iccb0f095f98d2b12a3ff60b77c12dac387e71fcc
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Connor O'Brien [Thu, 1 Feb 2018 02:11:57 +0000 (18:11 -0800)]
ANDROID: cpufreq: track per-task time in state.
Add time in state data to task structs, and create
/proc/<pid>/time_in_state files to show how long each individual task
has run at each frequency.
Create a CONFIG_CPU_FREQ_TIMES option to enable/disable this tracking.
Signed-off-by: Connor O'Brien <connoro@google.com>
Bug:
72339335
Test: Read /proc/<pid>/time_in_state
Change-Id: Ia6456754f4cb1e83b2bc35efa8fbe9f8696febc8
Daeyeong Lee [Tue, 19 Jun 2018 06:19:07 +0000 (15:19 +0900)]
sched: ems: ontime: Use get_cpu_max_capacity instead of capacity_orig_of function.
Change-Id: I0ffb28f2680b9f3603a82eb0fbfbce8213c4c83f
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
Park Bumgyu [Tue, 19 Jun 2018 06:10:01 +0000 (15:10 +0900)]
sched: ems: provide API for cpu max capacity
Change-Id: Iaef589d777ce55ab21f642f4f9333d753309069e
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
Youngtae Lee [Mon, 18 Jun 2018 08:00:55 +0000 (17:00 +0900)]
arm64: cpuinfo: change print level for I-cache
Change-Id: I582c493c1cd371ce94417b671c5e51bf4e69beb9
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
Youngtae Lee [Mon, 18 Jun 2018 07:49:28 +0000 (16:49 +0900)]
samsung: Change print level for emc and cpuhp
Change-Id: Ifd39e1c4d7aaabd0f83cdba83fd3b0c851b7df7e
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
Park Bumgyu [Wed, 2 May 2018 02:27:23 +0000 (11:27 +0900)]
sched: ems: update cpu_scale when policy is updated
When policy->max is pressed, the performance of the cpu is
constrained. In the constrained state, the cpu capacity also
changes, and the overutil condition changes accordingly, so
the cpu scale is updated whenever policy is changed.
Change-Id: Ie6938e605d55cf700164a7512ffd6c41a747cbbc
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
Daeyeong Lee [Mon, 18 Jun 2018 02:44:00 +0000 (11:44 +0900)]
sched: ems: ontime: Modify to initialize the boundary value by ratio
Change-Id: Iab4450579898d8b5d561d00f7c627d7c88ce88ab
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
Choonghoon Park [Fri, 15 Jun 2018 10:22:32 +0000 (19:22 +0900)]
samsung: emc: make strong API for setting boost frequency
Change-Id: I0ea3b00ce1b3e07864bbddd370319538e037629e
Choonghoon Park [Fri, 15 Jun 2018 09:24:16 +0000 (18:24 +0900)]
hafm: deliver zero pb when frequency is equal to or above threshold
This zero value notifies hwboost plugin that
the plugin have to use the power budget it stored recently.
Change-Id: I8157aa07de4ed6306c68fb7daecd8b9608c31f74
Choonghoon Park [Fri, 15 Jun 2018 08:45:31 +0000 (17:45 +0900)]
hafm/hafm-tb: make strong API for setting boost frequency
Change-Id: I13845d6da6440bf2f9bceda1167c059219fd043c
Choonghoon Park [Fri, 15 Jun 2018 08:39:57 +0000 (17:39 +0900)]
arm64: dts: modify fields for setting hafm boost frequency
Change-Id: I77de428cc7ef3276bc100ddf3f2ee2bc22f89d35
Choonghoon Park [Fri, 15 Jun 2018 10:35:15 +0000 (19:35 +0900)]
cpufreq: acme: move API under interface category
Change-Id: I9829edbd35287f0f27f324b88b029f84e9a50c44
Choonghoon Park [Fri, 15 Jun 2018 08:36:40 +0000 (17:36 +0900)]
cpufreq: acme: add API to get boost freq
Change-Id: Ifdb43b4fda98b46a7d33be0818db580ec42759da
Youngtae Lee [Fri, 15 Jun 2018 10:11:52 +0000 (19:11 +0900)]
samsung: emc: Fix emc_enabled/disabled bug
Change-Id: Ie6fd186d2932367b1cfc5f2305d6248cc67eebe7
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
Youngtae Lee [Fri, 15 Jun 2018 07:59:35 +0000 (16:59 +0900)]
driver: Change P-state boost name
Change-Id: I18799a3e36cac1501d0e2385bffe7c4752502e9d
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
Youngtae Lee [Fri, 15 Jun 2018 07:58:42 +0000 (16:58 +0900)]
cpufre: Kconfig: Change and Add P-State boost config name
change P-state boost name and add mode changer
Change-Id: I4ffe10885ac81a63f0792a7c0c6491a0abb26ec6
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>