Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5543337pxb; Sun, 7 Nov 2021 14:49:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMqONexQa4nFyswzEwrr/Whb313r7O0aWSqAqUNZDG0bEuK776AIjU/XvtHtkFTqSZZXnk X-Received: by 2002:a05:6402:42:: with SMTP id f2mr8777690edu.204.1636325354324; Sun, 07 Nov 2021 14:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636325354; cv=none; d=google.com; s=arc-20160816; b=eTdTGkw1bBL5/0fOudU3eyWKCLN9sm5vFAVZu7R96pNcY4+rGjhP6IwR2w/bBKvVvT Zduoar1rvhiP6GODtubdeP8iPBGjqesHx6EdwKX/bTsHxFGLFvLDVUjEX4FPXud/qYHx IVoUlCmEBWk/0V+gl88J61j9We8qCRB4DsQ/Sk5ZWJYrise2cnlFlNHJe5MruwrQGWkR K2WJUDRHZ59ydDROLUPsYTTu78qf5oN/R0I3sB7poBx97EFLiR5gFOJi3finZRqNx3nP yGUKz7EBrq1XwJHgEiE7pgPNBVTtSDdjyP244zTm6JFR80Lkf+o3TMjuyYUcP1Uj9nX6 KqCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4hGkCLxhZnpNqcqLmATMrD9cvIKaW/chFtDdi+mbfSw=; b=zmG8aF5cdLcz/jhw5AWMHt2oLqRNv4FZG35F/2PRQGGK86pmP1IilRelzieYdMuxkE C2GkSpmuf8d6L/6mPm5CvOkmmsdjTk7S/zA1Ws0pu+oH6biPEkywFQ70o5etzvBs0v0t RH0fXwP91Ww7ILU5GPp7JlO7yu2L4fZIZ+P+ZM8dAI8/26bCQUEIdJnPij8pguEg0EYD cxMw99I97FXpWMlHEJKEjtqOgJGhxoeAGAOZxs/PzKnaDjrweTGlTQGxiFpbVJyvp2vr +YuulpGJftR8RDlsVVMO41l5HEVJxi3lQ9KpMcVeZRUs6YkqO0+gLG2PxPki9hXKIUvp ftEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=hv8NDkkf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si4435959edp.552.2021.11.07.14.48.51; Sun, 07 Nov 2021 14:49:14 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=hv8NDkkf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235216AbhKGQir (ORCPT + 99 others); Sun, 7 Nov 2021 11:38:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233677AbhKGQiq (ORCPT ); Sun, 7 Nov 2021 11:38:46 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1713CC061714 for ; Sun, 7 Nov 2021 08:36:03 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id z200so11149096wmc.1 for ; Sun, 07 Nov 2021 08:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=4hGkCLxhZnpNqcqLmATMrD9cvIKaW/chFtDdi+mbfSw=; b=hv8NDkkf/BoZNySfSrye1dDjE3EbpF4GnWvmAFKWyHwMsTO7Sq1Y+10oQxm4RAgv9B 5nQ5gW/qXeGOdkEqhcWa649hD9AfBikGH0nULObfIuE2+4BhHCpU8Litwr0Xpm353gFk 5loZeEyiKwfr7JJ6k2TReEAPu8AmzkTqF2L6qV8j+CixhTr8EcAJ9dG/UIY0bnfPerOZ X93THQNykU0JbErZr4kX8LkZYxrdzlSjweqkaUw0VvmrKNvVeNFa1Eivbf7wgX7BqmFt LE3hy02ln6T/TaGLk0a/aXRD+NANID85TEt8tSC3rXhpll91iY7YW1mVFbWCYFGvAmCz cqLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=4hGkCLxhZnpNqcqLmATMrD9cvIKaW/chFtDdi+mbfSw=; b=E7XKNa2nWbXN88bvo3L5HotcCvILfxeDIXD74cRtqZIOfbNcWaad/cKkhesr/a3QOr QQFTMZHCz3T4WLLSSA1OJFUz6rluENjFvjvByccPTLVbrRPtW0ypIysJI8Vf1xcJ1Oxq T3mQVKzPqn4klyu/wbkCdQVy0tlobnVD3RTuK6TSVSMASUycMLEqhKrcl6hQ4taRXyVR f8NS3BH7dr2eDryKoAYRRkB+QFnhWrcI6ZpENZB9pl5PpPOhzJwVl17wY+G5JyfvJz18 ibJwVWRX+vP2706yeMHpd99VhKbF0XTvUSIfIdPnW4rwHugy/2FWofzPlg+C5LUcayKP tCJw== X-Gm-Message-State: AOAM531qD6IaeXrK0ioDKfjqv74yV+E2NpG4n8h4V8WweL4s4vaxkPhI zpxY8mUCYll+9FKrWUpi7fz8OQ== X-Received: by 2002:a7b:c1cb:: with SMTP id a11mr47550829wmj.30.1636302961570; Sun, 07 Nov 2021 08:36:01 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id g13sm12780500wmk.37.2021.11.07.08.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 08:36:01 -0800 (PST) Date: Sun, 7 Nov 2021 17:35:59 +0100 From: LABBE Corentin To: Hans Verkuil 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 Subject: Re: [PATCH v3 00/14] staging: media: zoran: fusion in one module Message-ID: References: <20211026193416.1176797-1-clabbe@baylibre.com> <2bbce7ef-acf8-3c0f-2705-09d34b2d92be@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2bbce7ef-acf8-3c0f-2705-09d34b2d92be@xs4all.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards