Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7515782imu; Tue, 22 Jan 2019 07:15:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN4fX1gsOvTP8HV5fuyzweRaSTGtXDkb2gU4cxUXCwtmzOH1oAh066Ao6o3C9hZKzJ1WW8rm X-Received: by 2002:a63:4706:: with SMTP id u6mr30737593pga.95.1548170159677; Tue, 22 Jan 2019 07:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548170159; cv=none; d=google.com; s=arc-20160816; b=B7vKV89lyYOMaJeLNzxyD6HA/UfREx0gEFZT9VNY7GXXbx7dd255dNwHEGp47Qdtzj UQqLsP+Bdr+D6OeidF8cYlhFEchQdT7SqOErBgoae3moLDbz/sGlsoLrrSMc+lxAo15P VWGK8lxNA5oDtkG6na3xSzBYhl02Coia5AeBC/vbliFSJdpPUNEvpfuWvrnlmjj+PcC/ zDzYWzJfyjvj4JTag188JjacYWW1BBgZmag6+82F3B/U7Bm5Ad6+iXA0ycgTORJzWVey N8AaaclzupyKhiXqtz4Us2J+RoFWda8uAspwk0mM8JbBNLDHcJuy4UFdB/0P+MFzvEkZ r2CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wPFxmsL+UppUrQqcL/oxWoZ2K+MjXJUgSQMFPUEMrac=; b=wRZHgrPZEnPr+llUj09Wdc5WeU6IVXMYMpspiPj1Ow2Ybet6I1tAexzZVbAHqrkSO0 /xSuJecXyhWD2fXKFzAgsBXlY581SLUypSKym/66IGcMuHx03Ji6uCjeAQQPiL7IGNCH PQhxCTTXNj+cNg28JurvirH4tE1G97+2cNCbajux1KnOQzqYyKk6/v1HVGQ7OU91iAkV g5oj+gk40GuW1r/eHPYcOzuRMmqLvGk0+5ipcGBGHVMJV98p7hUB5WPAtpRFFaKc2Cl0 odmw789yo+viLwkBoYxsFp5QI3kiD7cNlbdN/LW7gpGTVfVR9sFVTqbFllKDea+BQZII mZgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j61si15913176plb.232.2019.01.22.07.15.43; Tue, 22 Jan 2019 07:15:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729198AbfAVPNr (ORCPT + 99 others); Tue, 22 Jan 2019 10:13:47 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60100 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729015AbfAVPNr (ORCPT ); Tue, 22 Jan 2019 10:13:47 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gportay) with ESMTPSA id 70BA126040B Date: Tue, 22 Jan 2019 10:13:48 -0500 From: =?utf-8?B?R2HDq2w=?= PORTAY To: Philipp Zabel Cc: Steve Longerbeam , linux-media@vger.kernel.org, Peter Seiderer , stable@vger.kernel.org, Mauro Carvalho Chehab , Greg Kroah-Hartman , "open list:STAGING SUBSYSTEM" , open list Subject: Re: [PATCH v3 1/2] media: imx: csi: Disable SMFC before disabling IDMA channel Message-ID: <20190122151348.vme7256fhxpkvxvq@archlinux.localdomain> References: <20190119010457.2623-1-slongerbeam@gmail.com> <20190119010457.2623-2-slongerbeam@gmail.com> <1548071350.3287.3.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1548071350.3287.3.camel@pengutronix.de> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Philipp, On Mon, Jan 21, 2019 at 12:49:10PM +0100, Philipp Zabel wrote: > Hi, > > On Fri, 2019-01-18 at 17:04 -0800, Steve Longerbeam wrote: > > Disable the SMFC before disabling the IDMA channel, instead of after, > > in csi_idmac_unsetup(). > > > > This fixes a complete system hard lockup on the SabreAuto when streaming > > from the ADV7180, by repeatedly sending a stream off immediately followed > > by stream on: > > > > while true; do v4l2-ctl -d4 --stream-mmap --stream-count=3; done > > > > Eventually this either causes the system lockup or EOF timeouts at all > > subsequent stream on, until a system reset. > > > > The lockup occurs when disabling the IDMA channel at stream off. Stopping > > the video data stream entering the IDMA channel before disabling the > > channel itself appears to be a reliable fix for the hard lockup. That can > > be done either by disabling the SMFC or the CSI before disabling the > > channel. Disabling the SMFC before the channel is the easiest solution, > > so do that. > > > > Fixes: 4a34ec8e470cb ("[media] media: imx: Add CSI subdev driver") > > > > Suggested-by: Peter Seiderer > > Reported-by: Ga?l PORTAY > > Signed-off-by: Steve Longerbeam > > Ga?l, could we get a Tested-by: for this as well? > I have tested the patchset v4 (not that one), and it has passed my test. Regards, Gael