Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3082048imj; Mon, 11 Feb 2019 13:35:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IYeMBebzEgGCQ394/crQhi/bSKAfy9Qq++oGZqQQ0a8LGuG08/tRBau0GFwBfsefKeRijcD X-Received: by 2002:a17:902:6941:: with SMTP id k1mr317643plt.195.1549920909058; Mon, 11 Feb 2019 13:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549920909; cv=none; d=google.com; s=arc-20160816; b=CF3eAjACd2FC76V0yUqYftSXMbMMWUEQZogJ4paWwwC9Cym+5nzI/JIBzBzhpSSPGO bvkANeMOXL3yili/cPYKKXRoDfwtk2dTPCbLh2yh+L39wS7d9jRo2jCR6eNqFXgOwNPs sjpFPY+v10YxRlFQ/+hyMq5wZHX+mHRcVlFnbyuImUxBgOWGGONulbdXuHxOHxTFaBwm 2JqkiX5iY3L0nVw4htLZwzbWRuUCbH0cttT6Bik9+zAamvPXa0DlqjX4H/9nChIoOtca AZepnPowIpFWWUqtP+1I5oBiCqrpRJ1Vw/5d15X8n62pmO2jR3uLj9AqRfoDElG5Ixkn GuAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QHCvldYD0BzLfpY4nxhOH+w+R+Gn3IuDB620WQL49ls=; b=PEyhIIM2ivVBgEIBXKpv2iQhTFSQviw9P9oWXahYDH+Kmz6KFaWgsc2HYPf3nybOtf 6F5Bn4Do3UYnDURfz+2MrIVhpcOv/CiglOrRyliLQFAQKhOrBPLN9YetwbH9yGHc9dlm dCmBy8rn2soc5L5UzhOUwBS6mq0GS/h2A3tqUZziSfbtGtdqbEPlWl3/YgXYAgwyzkL8 go9dn0+NkCiPqRJKiishPvfpOcrG1ajPjE/moUB/jk79WW+YKXvF/k7TmZSvS9XnB4Fk FyVkDFVKzeX4O4tt9obrn7PD+8JTgmDqWw+34lEgxfooZa/DtxOPUzkgYYFQjGjn0rix ZwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="AxuWjM/7"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si1883425pgm.316.2019.02.11.13.34.52; Mon, 11 Feb 2019 13:35:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="AxuWjM/7"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbfBKVec (ORCPT + 99 others); Mon, 11 Feb 2019 16:34:32 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:32838 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727172AbfBKVec (ORCPT ); Mon, 11 Feb 2019 16:34:32 -0500 Received: by mail-ot1-f65.google.com with SMTP id i20so829448otl.0; Mon, 11 Feb 2019 13:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QHCvldYD0BzLfpY4nxhOH+w+R+Gn3IuDB620WQL49ls=; b=AxuWjM/7pHcN0Rif+J9myATOkYNB6dH+89qIsVs2wJoWNyaUA42ZQUttMd1khzeifb K9v+qLMEBIduS3rNFuL0aaJ0YzcI8C8joWy/zGDaus2GQWG67sHd10bkgvdNCblzSRdQ ztHsTCZnuVw7rU01blHWIrZria1+agMFDgsUllpttPQudgj/9VMXbCKk0HKF6NnS79uL 7VUjcSxu6ZbXs+xi/FixmIt7JhAsdRFbYalaFVf38iTevvmBe2y57xVAnpbiLsgJFF8f hoP1d6oZLZq3Sc9//mDfyAbvhd36xoSNBP4l8wemGm6LjsmYos3i9h21W9F7T+yqb0f3 McGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QHCvldYD0BzLfpY4nxhOH+w+R+Gn3IuDB620WQL49ls=; b=RfzW+JPIuhaolFPt9N0cdUQlqrV8kWr/mhAG+gA5g9nzM2oThxAd9opH5J/mV6G7Xf mQDMdKY6E6ZwTMYl1pQydLQLd3JCT2+6aqmByuPsQiI6XNqpLyh+JT1CSEzw24DKIVhW 6oikMeb2QGqLI2CJzZHlYFc9eqkHPao0gwbauXsKfok62gtK8HMSTaOT/+V5BU28I5mH saskSPQM3s3CYRIDfmAN5MTlBXkbgzY/TTlAEWthvQH00F+o9xWyJ4oLfu1KPA2epRaC FNwgnHg5SexL8zbP3Q9fSsaFoui/Y2Po6o25edluXBF5PvWfrW8boqoohu/xGLZo+JEK /Ykw== X-Gm-Message-State: AHQUAuaKyzlaf2MfSmAyDHPjZGgP3tF4a8mQA7R8F9V5TR/oktE25UD6 hx83zf+flMd8iqTCl0c9ItMpqRh3qWdrt02mvuw= X-Received: by 2002:a9d:7285:: with SMTP id t5mr348098otj.228.1549920871129; Mon, 11 Feb 2019 13:34:31 -0800 (PST) MIME-Version: 1.0 References: <20190107132226.16216-1-stefan@agner.ch> <20190107132226.16216-2-stefan@agner.ch> <1549573243.3075.72.camel@impinj.com> <20190211012305.GA21496@dragon> <1549916056.3075.102.camel@impinj.com> In-Reply-To: <1549916056.3075.102.camel@impinj.com> From: Fabio Estevam Date: Mon, 11 Feb 2019 19:34:19 -0200 Message-ID: Subject: Re: [PATCH 2/2] ARM: dts: imx7: add DMA properties for ECSPI To: Trent Piepho Cc: "shawnguo@kernel.org" , "linux-imx@nxp.com" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "stefan@agner.ch" , "devicetree@vger.kernel.org" , "fabio.estevam@nxp.com" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "kernel@pengutronix.de" , "s.hauer@pengutronix.de" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Trent, On Mon, Feb 11, 2019 at 6:44 PM Trent Piepho wrote: > I've had more time to test. > > Without DMA, I can reload my FPGA hundreds of times and get days of > uptime using linux-next. > > With DMA, loading is unreliable. The higher the SPI speed, the less > reliable it is. Unfortunately, it's hard to duplicate the problem with > a small amount of data, and with a large amount of data I can't examine > it in depth enough to determine if the problem is related to SPI bus > timing or IMX sDMA sending the wrong bytes to the spi controller. > > Using DMA with SPI causes kernel panics. Not always immediately, but > after using DMA it's a smaller of minutes before something crashes. > The backtraces are all over the place and don't usually point back into > SPI. It does seem like they usually hit something has allocated or is > allocating DMA memory. Did you test with an external SDMA firmware or with the ROM SDMA firmware? Just trying to understand if the SDMA firmware plays a role on this behavior or not.