Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4530164imj; Tue, 12 Feb 2019 18:39:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYDngbU1DVDRMs0b6mS3Kw39OaB25W0G+qAqoM+ZfeeTmgdFnE0etUZjGYBO+QNV8SkbsIb X-Received: by 2002:a63:d703:: with SMTP id d3mr6689651pgg.167.1550025545442; Tue, 12 Feb 2019 18:39:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550025545; cv=none; d=google.com; s=arc-20160816; b=EdPGHpwvUOzEyCpTfWZGZYH/JrqmZTxWH68jsSeUbss6IMWtNfxcKd9EerHj/UysU7 KRtMCVz61/As0TghewvDT7SIElBfWZaZlXTpi9RTRJEyyOFDBA4yIOkAkKbMEoyzd4Xd iCva67SRsWuyyBZSvFCGXW//rmRKwwH37tRaZ4oBilvPB38p9WDZQStwW1v7lzw/9FLr GTuUS9Rpk/D9BdmbM5uNoPkpHR2K50HW8XcZCeCFfJoCNC5UI5G7yoPoZdrYSD5uL9zU eSYbuFtB77vdqVcLx4dB6glBECAWTF0hmGQlYp2euk1rYoy7nhbUn3IQvfhGOnQNxLoI 251w== 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=kZqLbps8Eicn9bK00mPyp+DBSxWASkWXhIst/2wZu/A=; b=x0cYJUDew4WsQ1UkiUr1a4IecNsuNwzOcNZR03Y3CI5nrc9wQ7sRlpP4kzbU1bYG7W y8i7tGJfkrSeoMMvbq24GSiy15pVgtTR+v+0pIEnd3HW0fP4h63a4DEwfruiZRgps8vJ EQd4xU7iYPGTsHawQGUJL2lCmUL6P7v0rl1U5iCRY5aLl+OYGCIgyiQ4EcmWgFLnPKvS iYFZGbaimkVqzwDEmLxOMYseWnq8m6mHzvtJjGd4gSQNJQBRjXX5mDF1RecGjj6mAZ0U AmwKnH8vA4nnVY1jJdhXSyaUQM07DlcLCWBHoAxh+GqUWrm3yiXUt1pygJD/8VyMiqzX bPRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="dQP/8ori"; 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 h4si13417517pgc.462.2019.02.12.18.38.49; Tue, 12 Feb 2019 18:39:05 -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="dQP/8ori"; 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 S1731507AbfBMA5h (ORCPT + 99 others); Tue, 12 Feb 2019 19:57:37 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:34936 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbfBMA5h (ORCPT ); Tue, 12 Feb 2019 19:57:37 -0500 Received: by mail-ot1-f65.google.com with SMTP id z19so1188580otm.2; Tue, 12 Feb 2019 16:57:36 -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=kZqLbps8Eicn9bK00mPyp+DBSxWASkWXhIst/2wZu/A=; b=dQP/8orizVz3eshrenK/ZouNE/69Wr1hLGemLd1VoxCG/KLXBHtKEYl5466gXm8l1v ThIamJ4vVZs7wVAThJAq8eM0xa1FQUhBJtnFNzku+N3Y0uwet4nBztgW8L1mrFaECvI1 IevrfxlAc03hDh1dsiCF/Xz2QSZn2p773nupHuoDQ1YJWwX/dVOQexC1mCvQe1UTXdOL WMwRgqFdYr8JZREc/i99TxE5CG2z5DtcXpse5e9VDPy2oqiKml5077LTRHSURrZYb0+i V+icdebCCm0M2G27SNjKre+K5THKSqunoAFJR5JmR2GzlpWN1x533KkrBQxAs8gwCVUm 4y4g== 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=kZqLbps8Eicn9bK00mPyp+DBSxWASkWXhIst/2wZu/A=; b=bimKax3LxcBX1+wMsvRnvObWypcFIzU+d35zL4h/XASh0M57N/61eO5QIiSJLjNygv MkNhbU2TLUCZRMMlyQnCZtTL8IXoY/OFguVxrPNB2L44pp3kiWGDrbO0WlUob2nscb0u xTIdCaEzuGUkqXRXfP9DYQnG+00LUEhm256rtryOOgFpvmAr3HNq1KSVnm3hWcs4ogaL xoUOBZ/kYRo4Az7zHsUfSSkxMHxuEyTkjf/zISmXw41ZOzPEYtVMqdr9qKUXRnYvcASq LlG2gaBkVQEVLhDUgvYCOh/fjqjY1QDSR0xuXYspRrKjBy9G77ioJkJAjVq4ZB2pRC6A h5kg== X-Gm-Message-State: AHQUAuaMQc7cRy3GJ1u6vRYqwVglzHlJRmrWsBm60XlAqWHvV7CfBl5H vzq4fE+G+53KbC3UZZurjSaKjQYo1OZGmzrv+sI= X-Received: by 2002:a9d:7e87:: with SMTP id m7mr7170940otp.225.1550019455764; Tue, 12 Feb 2019 16:57:35 -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> <1549923727.3075.103.camel@impinj.com> <1550016436.3075.127.camel@impinj.com> In-Reply-To: <1550016436.3075.127.camel@impinj.com> From: Fabio Estevam Date: Tue, 12 Feb 2019 22:57:23 -0200 Message-ID: Subject: Re: [PATCH 2/2] ARM: dts: imx7: add DMA properties for ECSPI To: Trent Piepho Cc: "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" , "shawnguo@kernel.org" , "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 On Tue, Feb 12, 2019 at 10:07 PM Trent Piepho wrote: > Tried SDMA firmware 4.2. Still broken. No apparent change. > > Get 4 cycle pause after each byte. > > And crash while/after using DMA. Clearly some sort of memory > corruption going on. Fortunately, it's very reliable that using DMA > almost immediately causes a problem and this is easy to reproduce. I > think that indicates it's either clobbers a lot of RAM, or consistently > manages to hit a very important location for kernel memory allocators. > > I've got an idea of where that might be happening that I'm looking > into. Ok, thanks for investigating this issue. > > I think it's reasonable to add the dma attributes, but put a check in > the spi-imx driver to disable DMA on imx7d at least. Something like this? http://dark-code.bulix.org/urfoh8-580174