Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750909AbdFPPbI (ORCPT ); Fri, 16 Jun 2017 11:31:08 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:48504 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbdFPPbF (ORCPT ); Fri, 16 Jun 2017 11:31:05 -0400 X-AuditID: cbfec7f4-f79806d000001279-d4-5943f9b5c526 From: Andrzej Pietrasiewicz Subject: Re: [PATCH v2 6/6] [media] s5p-jpeg: Add stream error handling for Exynos5420 To: Thierry Escande , Jacek Anaszewski , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Message-id: <2d6c7d4c-f2f5-495a-70c3-7768654ce8c7@samsung.com> Date: Fri, 16 Jun 2017 17:30:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-version: 1.0 In-reply-to: <1497287605-20074-7-git-send-email-thierry.escande@collabora.com> Content-type: text/plain; charset=utf-8; format=flowed Content-language: en-US Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsWy7djP87rbfjpHGryfymxxe+sGFovLu+aw WfRs2MpqsWzTHyaL/quX2BxYPXbcXcLosXPWXXaPTas62Tw+b5ILYInisklJzcksSy3St0vg yvi2fxlbwRGeio7mSSwNjMu5uhg5OSQETCQ2nbnADGGLSVy4t56ti5GLQ0hgKaPErYtvoZzP jBJ3erYzwnRceLWYFSKxjFHi2pynTBDOC0aJVRtPgFWxCRhL7D3YAWYLC0RInN/8GWyUiMAE RokD23aygySYBWwlOg51soDYvAJ2Em+mPAA7hEVAVeL4p1VgcVGg5kWTJrJD1AhK/Jh8DyzO KeAn8fX5blaIOVYSz/61QtniEs2tN1kgbHmJzWveMoMslhCYxy6xbPEeoCs4gBxZiU0HoJ52 kZh64DOULSzx6v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4kOMpkDPTWSWEk3OB6aDvJJ4QxNDc0tDI2MLC3MjIyVx3qkfroQLCaQnlqRmp6YWpBbB 9DFxcEo1MG40WtW1SuvphaKje+VkFqh8+btd+VyIcrDfb4ZQz+9PJuelXtRPeMVlO/NP5K6v PkIfTuhmf7vSvbCxYV3nzSM3RY9xFEyzlLgRuTesVnLp81P9LF0O5wPjO/h7GUO/SqzLvbJR OWyeR/6kT30fL7LsiJhyhN3EyzxS+Rmb5aWGQ0unHvhhcF2JpTgj0VCLuag4EQC+fXxrzwIA AA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170616153101eucas1p15b0ebee44dc8146d5834484a2fe95c73 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBQaWV0cmFzaWV3aWN6G1NSUE9MLUtlcm5lbCAo?= =?UTF-8?B?VFApG+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBUb21hc3ogUGlldHJhc2lld2ljehtTUlBPTC1L?= =?UTF-8?B?ZXJuZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2Fy?= =?UTF-8?B?ZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170612171542epcas2p48e0dda270d604107546f590105f20e70 X-RootMTR: 20170612171542epcas2p48e0dda270d604107546f590105f20e70 References: <1497287605-20074-1-git-send-email-thierry.escande@collabora.com> <1497287605-20074-7-git-send-email-thierry.escande@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1561 Lines: 43 Hi Thierry, Thank you for the patch. Please see inline. W dniu 12.06.2017 o 19:13, Thierry Escande pisze: > From: henryhsu > > On Exynos5420, the STREAM_STAT bit raised on the JPGINTST register means > there is a syntax error or an unrecoverable error on compressed file > when ERR_INT_EN is set to 1. > > Fix this case and report BUF_STATE_ERROR to videobuf2. > > Signed-off-by: Henry-Ruey Hsu > Signed-off-by: Thierry Escande > --- > drivers/media/platform/s5p-jpeg/jpeg-core.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c > index 3d90a63..1a07a82 100644 > --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c > +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c > @@ -2790,6 +2790,7 @@ static irqreturn_t exynos3250_jpeg_irq(int irq, void *dev_id) > unsigned long payload_size = 0; > enum vb2_buffer_state state = VB2_BUF_STATE_DONE; > bool interrupt_timeout = false; > + bool stream_error = false; > u32 irq_status; > > spin_lock(&jpeg->slock); > @@ -2806,6 +2807,11 @@ static irqreturn_t exynos3250_jpeg_irq(int irq, void *dev_id) > > jpeg->irq_status |= irq_status; > > + if (irq_status & EXYNOS3250_STREAM_STAT) { If the problem which is supposed to be fixed happens on 5420, then why the 3250 variant is also affected by this patch? Shouldn't jpeg->variant->version be checked and equal SJPEG_EXYNOS5420? Andrzej