From: Arun Kumar K <arun.kk@samsung.com>
To: Kamil Debski <k.debski@samsung.com>,
linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
posciak@chromium.org, avnd.kiran@samsung.com,
arunkk.samsung@gmail.com
Subject: Re: [PATCH 1/3] [media] s5p-mfc: Add variants to access mfc registers
Date: Tue, 13 May 2014 16:54:25 +0530 [thread overview]
Message-ID: <537200E9.60900@samsung.com> (raw)
In-Reply-To: <026d01cf6e96$a85d4bb0$f917e310$%debski@samsung.com>
Hi Kamil,
On 05/13/14 16:02, Kamil Debski wrote:
> Hi,
>
> One small comment below,
>
>> -----Original Message-----
>> From: Arun Kumar K [mailto:arunkk.samsung@gmail.com] On Behalf Of Arun
>> Kumar K
>> Sent: Wednesday, April 23, 2014 2:58 PM
>> To: linux-media@vger.kernel.org; linux-samsung-soc@vger.kernel.org
>> Cc: k.debski@samsung.com; s.nawrocki@samsung.com; posciak@chromium.org;
>> avnd.kiran@samsung.com; arunkk.samsung@gmail.com
>> Subject: [PATCH 1/3] [media] s5p-mfc: Add variants to access mfc
>> registers
>>
>> From: Kiran AVND <avnd.kiran@samsung.com>
>>
>> This patch is needed in preparation to add MFC V8
>> where the register offsets are changed w.r.t MFC V6/V7.
>>
>> This patch adds variants of MFC V6 and V7 while
>> accessing MFC registers. Registers are kept in mfc context
>> and are initialized to a particular MFC variant during probe,
>> which is used instead of macros.
>>
>> This avoids duplication of the code for MFC variants
>> V6 & V7, and reduces the if_else checks while accessing
>> registers of different MFC variants.
>>
>> Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
>> Signed-off-by: Pawel Osciak <posciak@chromium.org>
>> Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
>> ---
>> drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 +
>> drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 1 +
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 6 +
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr.h | 254 +++++++++
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c | 697
>> +++++++++++++++--------
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h | 7 +-
>> 6 files changed, 710 insertions(+), 256 deletions(-)
>>
[snip]
>> if (p_h264->fmo) {
>> @@ -988,10 +991,12 @@ static int s5p_mfc_set_enc_params_h264(struct
>> s5p_mfc_ctx *ctx)
>> case V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_INTERLEAVED_SLICES:
>> if (p_h264->fmo_slice_grp > 4)
>> p_h264->fmo_slice_grp = 4;
>> - for (i = 0; i < (p_h264->fmo_slice_grp & 0xF); i++)
>> + for (i = 0; i < ARRAY_SIZE(p_h264->fmo_run_len)
>> + && i < p_h264->fmo_slice_grp; i++) {
>
> What do you think about moving this to separate path? This seems
> like it slipped with the register patches.
>
Sure I will remove this change from this patch. Thanks for spotting this.
Regards
Arun
next prev parent reply other threads:[~2014-05-13 11:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 12:57 [PATCH 0/3] Add MFCv8 support Arun Kumar K
2014-04-23 12:57 ` [PATCH 1/3] [media] s5p-mfc: Add variants to access mfc registers Arun Kumar K
2014-05-08 16:31 ` Kamil Debski
2014-05-09 1:00 ` Pawel Osciak
2014-05-09 4:49 ` Arun Kumar K
2014-05-09 5:20 ` Tomasz Figa
2014-05-09 5:31 ` Arun Kumar K
2014-05-13 10:33 ` Kamil Debski
2014-05-13 10:32 ` Kamil Debski
2014-05-13 11:24 ` Arun Kumar K [this message]
2014-04-23 12:57 ` [PATCH 2/3] [media] s5p-mfc: Core support to add v8 decoder Arun Kumar K
2014-04-29 17:15 ` Sachin Kamat
2014-04-30 5:45 ` Arun Kumar K
2014-04-30 5:49 ` Sachin Kamat
2014-04-30 5:52 ` Arun Kumar K
2014-04-23 12:57 ` [PATCH 3/3] [media] s5p-mfc: Rename IS_MFCV7 macro Arun Kumar K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537200E9.60900@samsung.com \
--to=arun.kk@samsung.com \
--cc=arunkk.samsung@gmail.com \
--cc=avnd.kiran@samsung.com \
--cc=k.debski@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=posciak@chromium.org \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox