Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp851994ybp; Fri, 4 Oct 2019 06:04:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqytRHARx90CtDwXMrys4WntxPO/h3hZ5kZ8FCiHl466sa/f1b6SKm/jOToB6TKWsRUMAiQJ X-Received: by 2002:a50:e616:: with SMTP id y22mr14993476edm.253.1570194254334; Fri, 04 Oct 2019 06:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570194254; cv=none; d=google.com; s=arc-20160816; b=Cx5qazft1INOPhKJSHoY/tji7V+m4JLvLTmgpHXoir1jLsVG9Bgpr8IavnAY12HdDN 7Jp+rfiuFUOWAOI5UluNcjCcYZHnvyfi3MwyHveKFnVUAPaT0bBDukZXlKIzAykden+a 55+rK9223mgCCL+tCRsQnwR3FlMoUh1zZwU+HRGuBdbUHlfIuRuGskdEwcfdiZvwucsO l3HkIH3AR/pGlELt7KPOyxQNFLAaw8E7MBzISAUSOX8VK+Ug0zBCffBZJC0oY9h1tSzX oCaJBHXKf5k1eoCwt90Olj2cYefOwPJ6phYQFHPcLuwABD6KVizurvHUPFoCFPhbeD18 7HGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=SHJcydsQJ2+2+AnuRvccMMLqf7B9Fhx1fvZ/eY8wf5k=; b=GtXjhSM00YQtbTeIcMXAUsKFgQFeunrZgJAFrzLnPo3K0noNqEgHdoNZha6hVZ1tJA UoWI57lDlKPF+Wak3u0mzbL/s1OcOpQnYHM5OFVo13dZ6z4eQsb/CSqnbuoHiG+MyPdR WPJR9OXf0iLfy74p6yLB8+NF5CIk6az0EkLc42zMOgKIBa+yuFlf21GLleVXSK+hSAQ/ Pw8sJbskSkkrjt0fosgSyHWJw2gDH5qopSVoy5oQEKX23q/0P+ZZ17zicXVTUApsxdl/ dKOK14dSSyBP0muBW6eoySeSqoHEMEulZh9tBwlqasQwFnvxJTyKCiVZ2CXq6YpDVxQ/ jXig== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si3366162edx.361.2019.10.04.06.03.47; Fri, 04 Oct 2019 06:04:14 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbfJDM7k (ORCPT + 99 others); Fri, 4 Oct 2019 08:59:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:45830 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726024AbfJDM7j (ORCPT ); Fri, 4 Oct 2019 08:59:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id DFB78ABF4; Fri, 4 Oct 2019 12:59:37 +0000 (UTC) Message-ID: <0b544f5bc31857fef2d13bd16275cf09ace58b89.camel@suse.de> Subject: Re: [PATCH] mmc: sdhci-iproc: fix spurious interrupts on Multiblock reads with bcm2711 From: Nicolas Saenz Julienne To: Adrian Hunter , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com Cc: wahrenst@gmx.net, Matthias Brugger , Ulf Hansson , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 04 Oct 2019 14:59:35 +0200 In-Reply-To: <20191004125226.27037-1-nsaenzjulienne@suse.de> References: <20191004125226.27037-1-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-E7U/NXt/RvithmmAJCzu" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-E7U/NXt/RvithmmAJCzu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2019-10-04 at 14:52 +0200, Nicolas Saenz Julienne wrote: > The Raspberry Pi 4 SDHCI hardware seems to automatically issue CMD12 > after multiblock reads even when ACMD12 is disabled. This triggers > spurious interrupts after the data transfer is done with the following > message: >=20 > mmc1: Got data interrupt 0x00000002 even though no data operation was i= n > progress. > mmc1: sdhci: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SDHCI REGISTER DUMP = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002 > mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000 > mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000033 > mmc1: sdhci: Present: 0x1fff0000 | Host ctl: 0x00000017 > mmc1: sdhci: Power: 0x0000000f | Blk gap: 0x00000080 > mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000107 > mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 > mmc1: sdhci: Int enab: 0x03ff100b | Sig enab: 0x03ff100b > mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 > mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525 > mmc1: sdhci: Cmd: 0x00000c1a | Max curr: 0x00080008 > mmc1: sdhci: Resp[0]: 0x00000b00 | Resp[1]: 0x00edc87f > mmc1: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00 > mmc1: sdhci: Host ctl2: 0x00000001 > mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0xf3025208 > mmc1: sdhci: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Enable SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 to enable ACMD12 on multiblock > reads and suppress the spurious interrupts. >=20 > Signed-off-by: Nicolas Saenz Julienne > Tested-by: Matthias Brugger Forgot to add: Fixes: f84e411c85be ("mmc: sdhci-iproc: Add support for emmc2 of the BCM271= 1") I'll resend if needed. Regards, Nicolas --=-E7U/NXt/RvithmmAJCzu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl2XQjcACgkQlfZmHno8 x/5CBQf/WvHZDFKw37mxwtwN2x5i0WFg95fBCi+6Hk6D0vDWuVUVMZBYneEUmyIt p42PpscEU854tHmqpqDn6/g2+O/9+g1XW3HOoOj4WjoP27d8uZPCPa0v8eWpahdI vGVhVjoCIuFlu3rsBW1tz/zvzVGmRICBY8ZurPqA7Pi+mepPAnWgjC99v4RDUEZc iqYqSupt4qyT7bhs5JOFywXm1Qu+KHQ0XoqGQdBD/vEVNuJn2bu0gOhvqKeWCWdl l6cHyjZjtHvtILFZyo1+Ys2DjVJnjPBY3zRBFG2C8I+2Ep3ust80fZ6SbZnMqDGx jjaH2rBVoZ7Ic5dAcBPXmjieSdo/Bg== =mtyS -----END PGP SIGNATURE----- --=-E7U/NXt/RvithmmAJCzu--