Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp859598ybp; Fri, 4 Oct 2019 06:10:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDQG9W46972HqNLxp36PHe6IR7Orp85P1Kd55HJhGuqJQGTuJbUuSGC7gLp8AwG21ms/Sm X-Received: by 2002:a50:f19c:: with SMTP id x28mr14831748edl.42.1570194602677; Fri, 04 Oct 2019 06:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570194602; cv=none; d=google.com; s=arc-20160816; b=SR2TthuYh7EZ0p2m/bVLzXBmvGjVxL1Eb5QKrIpAD+/7WmjwNCDL1bueDC8k5UDzSz CaRxuY1yTWPBm/frygW4PM0set3XNrPmjKSs6RluPgOR1ME4FT/uqtbkKxf5g8MJ2MjO DHBdYfowdAzWnb+bbxJK+nopVxFqdwscordA8zBm4cjHBRam4Ajz9cGCSjkW/8oxReNh p3dMlPO6T6J8VT6wwjxq4nE9Pv4Wna0sQNTTMkIOnHnzFzwq3iv7MpoQQ5F9plHG0aFl 2Lfr+ywo1mgQOj98dU2h/R5/yDp5SIjKZNk8wEWFlRvQum3LXlzlu53mbLL4rH2AQ7m+ 4eyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=iUNbBg2RszFkebur8fU2YdCfARVWNSvCR6EExDLTYs0=; b=iC6tM3VA3Ae5unI7DbvJoM7rqOboZE2JW3hYa176NxZv1cMDj62Lm1mJ8PtXPea8Pg Ku0P+fYasyyqshvJwKeKYAiQs8a/Sz9mIt21zqLUIvBE8eMxla6hQM9fr3BnIaLYzFbl Dlh375ghwq2tQh1G8fNB4iCUPLUWjA5HaQGhJapYrFpvr5xsZg3ic+QYUgSxxF0e9p7M e2RJOLethgNOeFJOZLmy3LISntlXnVO228PAAGls3tHvXDRQrLwT0CY+CrQAYaxmstZ9 V1H67yda7UELIrgfC5bu2Qfng9HbsckBLhugsse6cTn4GzAQStw5reiQ+AMqs2+fn9pV xsLA== 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 k5si2828102ejp.157.2019.10.04.06.09.37; Fri, 04 Oct 2019 06:10:02 -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 S2388239AbfJDNIQ (ORCPT + 99 others); Fri, 4 Oct 2019 09:08:16 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57541 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387874AbfJDNIQ (ORCPT ); Fri, 4 Oct 2019 09:08:16 -0400 Received: from [192.168.1.162] ([37.4.249.116]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N4eOd-1i5kly1aQJ-011mpf; Fri, 04 Oct 2019 15:07:53 +0200 Subject: Re: [PATCH] mmc: sdhci-iproc: fix spurious interrupts on Multiblock reads with bcm2711 To: Nicolas Saenz Julienne , Adrian Hunter , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com Cc: Ulf Hansson , Matthias Brugger , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, wahrenst@gmx.net, linux-arm-kernel@lists.infradead.org References: <20191004125226.27037-1-nsaenzjulienne@suse.de> <0b544f5bc31857fef2d13bd16275cf09ace58b89.camel@suse.de> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoUMEVH DxCJ47BMXo344fHV1C3AnudgN1BehLoBtLHxmneCzgH3KcPtWW7ptj4GtJv9CQDZy27SKoEP xyaI8CF0ygRxJc72M9I9wmsPZ5bUHsLuYWMqQ7JcRmPs6D8gBkk+8/yngEyNExwxJpR1ylj5 bjxWDHyYQvuJ5LzZKuO9LB3lXVsc4bqXEjc6VFuZFCCk/syio/Yhse8N+Qsx7MQagz4wKUkQ QbfXg1VqkTnAivXs42VnIkmu5gzIw/0tRJv50FRhHhxpyKAI8B8nhN8Qvx7MVkPc5vDfd3uG YW47JPhVQBcUwJwNk/49F9eAvg2mtMPFnFORkWURvP+G6FJfm6+CvOv7YfP1uewAi4ln+JO1 g+gjVIWl/WJpy0nTipdfeH9dHkgSifQunYcucisMyoRbF955tCgkEY9EMEdY1t8iGDiCgX6s 50LHbi3k453uacpxfQXSaAwPksl8MkCOsv2eEr4INCHYQDyZiclBuuCg8ENbR6AGVtZSPcQb enzSzKRZoO9CaqID+favLiB/dhzmHA+9bgIhmXfvXRLDZze8po1dyt3E1shXiddZPA8NuJVz EIt2lmI6V8pZDpn221rfKjivRQiaos54TgZjjMYI7nnJ7e6xzwARAQABzSlTdGVmYW4gV2Fo cmVuIDxzdGVmYW4ud2FocmVuQGluLXRlY2guY29tPsLBdwQTAQgAIQUCXIdehwIbAwULCQgH AgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCUgewPEZDy2yHTD/9UF7QlDkGxzQ7AaCI6N95iQf8/ 1oSUaDNu2Y6IK+DzQpb1TbTOr3VJwwY8a3OWz5NLSOLMWeVxt+osMmlQIGubD3ODZJ8izPlG /JrNt5zSdmN5IA5f3esWWQVKvghZAgTDqdpv+ZHW2EmxnAJ1uLFXXeQd3UZcC5r3/g/vSa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vG9FPhmQuT2s9Blx6gI 323GnEq1lwWPJVzP4jQkJKIAXwFpv+W8CWLqzDWOvdlrDaTaVMscFTeH5W6Uprl65jqFQGMp cRGCs8GCUW13H0IyOtQtwWXA4ny+SL81pviAmaSXU8laKaRu91VOVaF9f4sAEQEAAcLBXwQY AQIACQUCW3qAEwIbDAAKCRCUgewPEZDy2+oXD/9cHHRkBZOfkmSq14Svx062PtU0KV470TSn p/jWoYJnKIw3G0mXIRgrtH2dPwpIgVjsYyRSVMKmSpt5ZrDf9NtTbNWgk8VoLeZzYEo+J3oP qFrTMs3aYYv7e4+JK695YnmQ+mOD9nia915tr5AZj95UfSTlyUmyic1d8ovsf1fP7XCUVRFc RjfNfDF1oL/pDgMP5GZ2OwaTejmyCuHjM8IR1CiavBpYDmBnTYk7Pthy6atWvYl0fy/CqajT Ksx7+p9xziu8ZfVX+iKBCc+He+EDEdGIDhvNZ/IQHfOB2PUXWGS+s9FNTxr/A6nLGXnA9Y6w 93iPdYIwxS7KXLoKJee10DjlzsYsRflFOW0ZOiSihICXiQV1uqM6tzFG9gtRcius5UAthWaO 1OwUSCQmfCOm4fvMIJIA9rxtoS6OqRQciF3crmo0rJCtN2awZfgi8XEif7d6hjv0EKM9XZoi AZYZD+/iLm5TaKWN6oGIti0VjJv8ZZOZOfCb6vqFIkJW+aOu4orTLFMz28aoU3QyWpNC8FFm dYsVua8s6gN1NIa6y3qa/ZB8bA/iky59AEz4iDIRrgUzMEg8Ak7Tfm1KiYeiTtBDCo25BvXj bqsyxkQD1nkRm6FAVzEuOPIe8JuqW2xD9ixGYvjU5hkRgJp3gP5b+cnG3LPqquQ2E6goKUML AQ== Message-ID: Date: Fri, 4 Oct 2019 15:07:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <0b544f5bc31857fef2d13bd16275cf09ace58b89.camel@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-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Dyi2pCqz4GYJDsrhvDdn8sAocYIrXyBAh0lOpsUhHwKhxVRc3Fhw63CA5RNgWb62 mKGChj7/M/PZTVdmlhR/ANq21roXy1jflBVYFQ5wfVkieGaSX7Q5Rv7ZIIx974dtuvgdRYlS3 mFsI1OAqFwy3JR38nzFFYkP/+FENz1Ah+4h7huLWOwLZOvMIuHV09bgn8jjV8vZ0ou7bmd1+T W92tUOHxHgSY2wXWkTSBMfFTgxBsEseB5vjC2doujRnQs+9cTsaDX2J72Q4D/pYeGvhWr3X+c F0XBLapaI/xQFoafTh2XjkLTw5SG4PMloa/x6vE02Q0SIpfh1uGUQmWStw15gqPGtA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 04.10.19 um 14:59 schrieb Nicolas Saenz Julienne: > 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: >> >> mmc1: Got data interrupt 0x00000002 even though no data operation was in >> progress. >> mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== >> 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: ============================================ >> >> Enable SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 to enable ACMD12 on multiblock >> reads and suppress the spurious interrupts. >> >> Signed-off-by: Nicolas Saenz Julienne >> Tested-by: Matthias Brugger > Forgot to add: > > Fixes: f84e411c85be ("mmc: sdhci-iproc: Add support for emmc2 of the BCM2711") > > I'll resend if needed. Yes, please and you can add my: Acked-by: Stefan Wahren > > Regards, > Nicolas > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel