Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp150715pxa; Thu, 13 Aug 2020 23:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6kvSSCy+VQygALbIvzeyj48egebEcjsln3s5FhWTMHyWXDlHReyTqTtzfor4h34jLLG8Y X-Received: by 2002:a17:907:1191:: with SMTP id uz17mr1068843ejb.184.1597386035053; Thu, 13 Aug 2020 23:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597386035; cv=none; d=google.com; s=arc-20160816; b=AI8cM2mYEBHw/uKg/mfnz8+CFXp8hNoKSmriZZSz4c1zeX1FSIUnvBJBZTkwaPiHRH 3y2Tpz8m84ysasjTM7wmGIjN61ozVS8kEDluqhlS87wEs+kGy3hRaigZQCCTWig8pN+d xlOsQY+GgbaYnVoNcFMiz4F+aT8JGj+XZyjZ77+tbYG2aBs6WavLGyfzavDCfR9anm2+ n4d1D/yuVVqgwb2tmVdsY0dmtL4rUr6L6KfjpJBybdNzyphCp+ccSLhLcIgssR9v0PqK ZU0YlyOxEnL5YumATE7OkD80dwtTkHqTpjP1+limG31r6DyCCsTR/d7OeDD68j796ue4 nuRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UXT1flf+cw02X+05sr2H1r1+otkr90aq0IsOI5+Wa0I=; b=E/Q2twlkVRG8NCp9hZGHlVt8ZkiPPurk+NzGQ4hcyczyHH28Z12qogDbjsM08iS6N+ MldHHdBosNunE6Sc3fRuPK3YRupPcANhS2vuUv73DuVSeY2b7lvZlkQh11kenfp96JoW M6CsWeCJEF/H3H2hPd0ZwZKdY6Y82JZKvKNVsYPrRdrHVN7V+yvj1csqCoBsD5SprRSx ZlDjCzGdxmfatvNfJXNdqQuE4WQc496FVRruhmkHjBlZMHDlbhQf52Gp2g/8TLPPtpK3 IijQoDfz9QoVQ3StNHIruXgjYbsfNPGtAsPtQkUrIyBs7ohWODyv31CkyVjp1AT3il1R /4OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oJREn4cU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si4676505edy.99.2020.08.13.23.20.12; Thu, 13 Aug 2020 23:20:35 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=oJREn4cU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbgHNGTl (ORCPT + 99 others); Fri, 14 Aug 2020 02:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbgHNGTk (ORCPT ); Fri, 14 Aug 2020 02:19:40 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6855C061757; Thu, 13 Aug 2020 23:19:39 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id m20so6017961eds.2; Thu, 13 Aug 2020 23:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UXT1flf+cw02X+05sr2H1r1+otkr90aq0IsOI5+Wa0I=; b=oJREn4cU3O1rw40AArW6Z81miwvHWgeTAeOuCZwcGRdzjwbMGlJiJzVMO6kHSg92KQ +X3lAjCIy6el5qQZmr/wcM3uyTXrttad09f+difG5wi9uxZl5UZUkeQoS260D+M2ymVJ lAwxngVc3XRwsSfDD/5nIAJqN0lkxSRqlO63r0+/7qeshTgU3p3RRj4FzFWhdLJxnqjx nKKJfIzbXEqoq3OPg6tfkSG3P0YW0prIvDSDfRW37ayGp+zoEZkCfwK90yCh/lRaZ+og ADUpw1j3AwXS147XD7x61UHTIwJDq7A/c9aO2aWzY34veRUFr/Jb4ulLjIfYQStydsYM dlaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UXT1flf+cw02X+05sr2H1r1+otkr90aq0IsOI5+Wa0I=; b=E690AmMUj1+jx6oZ5XVsd7x4mWYPdax/wuzhiy2FqUH0bzTm4cmFE8ZHhjFzZgP7Et 5+0VRMPClL9fGppWgH7pQkdA7eZiv5RLOvC/+G9+KTPfEjE2+GXC9Qbx7Eu9XPYNisQ5 tOhZJ6TNAkwe6JsNDM6QkGLuctjUIti6zageWnNv+Lg2UJQ5QhZm+Md+t2z9xJLmqoxM zDNGvy5joQ2zJ7nQhvtk+/uuwPGjjon5i25PXrBAV4GzHXqlgCCtoFomQph3LSztVQOJ Qs9unniq93kGME8c27La8JAW4iUJqVXNGAcCDov9bzxuKXQkfC/f45f7X6GufgmHhJdM UhOg== X-Gm-Message-State: AOAM530vrLStXSkmN3XuTeHs0Q5TOPuP1/3fg8e10x0GektY1QEJh1K6 Ay2FGGLdpSgjRTfhiXaCv5Ufuq5wEbQH7A== X-Received: by 2002:a05:6402:16:: with SMTP id d22mr860616edu.175.1597385978107; Thu, 13 Aug 2020 23:19:38 -0700 (PDT) Received: from ?IPv6:2003:ea:8f23:5700:10c4:47b:9d52:cd78? (p200300ea8f23570010c4047b9d52cd78.dip0.t-ipconnect.de. [2003:ea:8f23:5700:10c4:47b:9d52:cd78]) by smtp.googlemail.com with ESMTPSA id d9sm4979917edt.20.2020.08.13.23.19.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Aug 2020 23:19:37 -0700 (PDT) Subject: Re: fsl_espi errors on v5.7.15 To: Chris Packham , "broonie@kernel.org" , "mpe@ellerman.id.au" , "benh@kernel.crashing.org" , "paulus@samba.org" , "tiago.brusamarello@datacom.ind.br" Cc: "linux-spi@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <3f48e5fb-33c9-8046-0f80-236eed163c16@alliedtelesis.co.nz> From: Heiner Kallweit Message-ID: Date: Fri, 14 Aug 2020 08:19:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <3f48e5fb-33c9-8046-0f80-236eed163c16@alliedtelesis.co.nz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.08.2020 04:48, Chris Packham wrote: > Hi, > > I'm seeing a problem with accessing spi-nor after upgrading a T2081 > based system to linux v5.7.15 > > For this board u-boot and the u-boot environment live on spi-nor. > > When I use fw_setenv from userspace I get the following kernel logs > > # fw_setenv foo=1 > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but SPIE_DON isn't set! > fsl_espi ffe110000.spi: Transfer done but rx/tx fifo's aren't empty! > fsl_espi ffe110000.spi: SPIE_RXCNT = 1, SPIE_TXCNT = 32 > fsl_espi ffe110000.spi: Transfer done but rx/tx fifo's aren't empty! > fsl_espi ffe110000.spi: SPIE_RXCNT = 1, SPIE_TXCNT = 32 > fsl_espi ffe110000.spi: Transfer done but rx/tx fifo's aren't empty! > fsl_espi ffe110000.spi: SPIE_RXCNT = 1, SPIE_TXCNT = 32 > ... > This error reporting doesn't exist yet in 4.4. So you may have an issue under 4.4 too, it's just not reported. Did you verify that under 4.4 fw_setenv actually has an effect? > If I run fw_printenv (before getting it into a bad state) it is able to > display the content of the boards u-boot environment. > This might indicate an issue with spi being locked. I've seen related questions, just use the search engine of your choice and check for fw_setenv and locked. > If been unsuccessful in producing a setup for bisecting the issue. I do > know the issue doesn't occur on the old 4.4.x based kernel but that's > probably not much help. > > Any pointers on what the issue (and/or solution) might be. > > Thanks, > Chris > Heiner