Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6050520pxb; Mon, 8 Nov 2021 02:16:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyG07n40D+FiGkQNCufBVaSS3frhpI7QohnTmlGoUa1714wbgUc1CFk8NxndPw3CNwgs7Jh X-Received: by 2002:a17:906:7305:: with SMTP id di5mr74235101ejc.182.1636366611619; Mon, 08 Nov 2021 02:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636366611; cv=none; d=google.com; s=arc-20160816; b=rfQXvD1dO0X5TqZv9CJbWGmAkyfHwgvzTUYrNrIk7E4ZAe/2LXOugCtqevttTHZHNd xLeAJRvhQEo/R50DShBUllX0/MSQykRJKJM1JTx53wvjkXjD66NN0dbkYyNCmSGNZAIL +Iyp2FeaWVexRMB9tU/awQBTwXnG81OWwZOqI7XAiN+38paMA+2mCjHjrH+FolwJ/Nwz vZnQpM3TKT75LjdseO8whJmHT5hL9l6YK6xRSTXmufsz+d9Pt5cm2cTE2+1K8yNxvsuq luv7I7L0saNqw4VjR+rKAJ+Jna5uiqEi/R8+Fvr2cd+3BmHbpq+m3rUkYkyqftWtVyQn WV7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=RFoi1u36o6iwyIcIT7Vfr6GvFlphxvGIuYKIC0G16z8=; b=NMqnifs0nCfixJyOq9jRsBQEtxG2GOFhbdzQfsCSsAjcCvAXNv+Bfd+3o5uSzYtCVD KB4zZsXXZ4GrxmPMOPidm0EusbD0W4aZvtPjLSZ5RPl2Bo7+Df5V6n2CUAUj3WwzDFs2 kDdhClXBzeZw11ZhNjzgtyZhVi3f4Svlcax9L/0dSpLR/XB/ddPu/sN924pNHipJEil8 1Vlw91QP/Qpg8pU9tnfPsLI2W5kUVX9aOFGWI2GfXN+W5OV/BYMOQpJmmjt4dNMivw6i S/Wh/8Lt0TBXBINJ85mm6E0YCGRYh6fIDQZRZ30DwWgOgsyzstFsQ9g+sajH6IODkeuC 1zFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=FmWXh+Kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si35255548edb.68.2021.11.08.02.16.27; Mon, 08 Nov 2021 02:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=FmWXh+Kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237872AbhKHIYQ (ORCPT + 99 others); Mon, 8 Nov 2021 03:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233470AbhKHIYP (ORCPT ); Mon, 8 Nov 2021 03:24:15 -0500 Received: from lb1-smtp-cloud7.xs4all.net (lb1-smtp-cloud7.xs4all.net [IPv6:2001:888:0:108::1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5DAFC061570; Mon, 8 Nov 2021 00:21:30 -0800 (PST) Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud7.xs4all.net with ESMTPA id jzu6meHPuFZvcjzuAmu9fn; Mon, 08 Nov 2021 09:21:26 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1636359686; bh=RFoi1u36o6iwyIcIT7Vfr6GvFlphxvGIuYKIC0G16z8=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=FmWXh+KlD4fw8k9Mlz5sCVoP0jXPQBTB8oCx95xYkaJvXSO5FmPjGFtJbHclZ8PD4 WUYd9L/ElX/yy2gVTTosgeZ2WkLIoFWacijEcjqs0KOlwTdEM/HNrD/lOEQtgZWX4x vLXT5e4Fl7GwR2Qa1uaYcoAhSY0eugicZj0mFaaC0bl0NMmXx6pbiQRfy5rELTxWM5 OZEs5I+GOYYxAwO8xLwgnTDg9qj40dtDhkuj1HNiFV8WGGceb1fHKa4BwCpMqDeWvb mQNJXxr2lF5PEbBZgFbUfX7x5z3cE/jQHZyIX6tnVG2QNqjvQkCbbHxtYq/FysBsyr XWGXfWR5cbImQ== Subject: Re: [PATCH v3 00/14] staging: media: zoran: fusion in one module To: LABBE Corentin Cc: mchehab@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mjpeg-users@lists.sourceforge.net References: <20211026193416.1176797-1-clabbe@baylibre.com> <2bbce7ef-acf8-3c0f-2705-09d34b2d92be@xs4all.nl> From: Hans Verkuil Message-ID: <87357802-1723-0471-d963-252ec54ececd@xs4all.nl> Date: Mon, 8 Nov 2021 09:21:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfP5ngz4eur2Syuo88BiDaT7tMabv/5gsQciFAKhEtNKRlsnKewfCSyIo2j0Hy2m4b3rLR1r+pHYti5VaKPUjrSJyajsNGIID2kaCprZ+6u6X/XKB0wrP y8l/xqa0S5O7vH2VUYXdgqaqxJgXaecwh6FydjolW02dGuztf8tN6ycHeH7APdnipuj11+qrGH6M4k4CCTt6XqPaSYW93bRnmoCOggcbNjyVwKNih0eGI3Yj yy86dTtudyxW8yNp0SuIkD10RFBzIg/7/4Jhim/VUSDm/TsaQL4uYUSdam6RAJRRr8W7JN1Y4NU8Nffj+6FabtaIS9NhYJu+dPN9aLslU7cJpiithmwKXdt3 P1g4yWaiXsORa2l6mrGDsL3bGry4dzISfsXlUk3GJnbJgxoVUgqao9Xw363uI/HZ+hpwKB018xAnnlZbrTDNI8StNs711Q== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/11/2021 17:35, LABBE Corentin wrote: > Le Wed, Nov 03, 2021 at 05:29:46PM +0100, Hans Verkuil a écrit : >> On 03/11/2021 16:57, LABBE Corentin wrote: >>> Le Wed, Nov 03, 2021 at 04:21:02PM +0100, Hans Verkuil a écrit : >>>> Hi Corentin, >>>> >>>> On 26/10/2021 21:34, Corentin Labbe wrote: >>>>> Hello >>>>> >>>>> The main change of this serie is to fusion all zoran related modules in >>>>> one. >>>>> This fixes the load order problem when everything is built-in. >>>> >>>> I've been testing this series, and while the module load/unload is now working, >>>> I'm running into a lot of other v4l2 compliance issues. >>>> >>>> I've fixed various issues in some follow-up patches available in my tree: >>>> >>>> https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=zoran >>>> >>>> At least some of the worst offenders are now resolved. Note that the patch >>>> dropping read/write support relies on this patch: >>>> >>>> https://patchwork.linuxtv.org/project/linux-media/patch/4f89b139-13b7-eee6-9662-996626b778b0@xs4all.nl/ >>> >>> Hello >>> >>> My test branch already included your "zoran: fix various V4L2 compliance errors" >>> I have quickly checked other patch and I am ok with them. >>> I will add and test with them. >>> >>>> >>>> But there is one really major bug that makes me hesitant to merge this: >>>> >>>> This works: >>>> >>>> v4l2-ctl -v pixelformat=MJPG,width=768,height=576 >>>> v4l2-ctl --stream-mmap >>>> >>>> This fails: >>>> >>>> v4l2-ctl -v pixelformat=MJPG,width=768,height=288 >>>> v4l2-ctl --stream-mmap >>>> >>>> It's an immediate lock up with nothing to indicate what is wrong. >>>> As soon as the height is 288 or less, this happens. >>>> >>>> Both with my DC30 and DC30D. >>> >>> Just for curiosity, what is the difference between thoses two ? >> >> It's the DC30 variant without an adv7175. >> >>> >>>> >>>> Do you see the same? Any idea what is going on? I would feel much happier >>>> if this is fixed. >>>> >>>> Note that the same problem is present without this patch series, so it's >>>> been there for some time. >>>> >>> >>> I will start on digging this problem and add thoses commands to my CI. >>> And I know there are a huge quantity of problem since origins. >>> A simple example is that just setting MJPEG as default input format does not work. >>> >>> But since it is not related to my serie, can you please merge it. >> >> Before I do that, I would really like to know a bit more about this issue: >> can you reproduce it? Is it DC30 specific or a general problem with zoran? >> >> The problem with this hard hang is that it is hard to do regression testing >> with v4l2-compliance, since it will hang as soon as MJPG pixelformat is >> tested. >> >> I would feel much happier if the hang can be avoided, even if it is just >> with a temporary hack. It will make it much easier going forward. >> > > I found the bug > > The null pointer deref was in zoran_reap_stat_com() due to > buf = zr->inuse[i]; > ... > buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); > with buf = NULL; > > It is due to miscalculation of "i". > > I will resend my serie with the fix for that. Excellent news! Thank you for tracking this one down. When you post your series, can you include my patches from https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=zoran as well? Regards, Hans