Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp509708imm; Wed, 4 Jul 2018 00:46:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdYRE7qaTSZ0tlU8WOJ3lYHSmMib/mL+E3BpsUYIxI0NpHxK+g6W6SgqYTrPfMoCkrRG+66 X-Received: by 2002:a17:902:7888:: with SMTP id q8-v6mr1031408pll.79.1530690395912; Wed, 04 Jul 2018 00:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530690395; cv=none; d=google.com; s=arc-20160816; b=PpAgQxfQKA9bnqdldtw1M9ynTS+RoZtQgKukA/ux7eC0z7mZJHNdiS+N0TT6pzo9IA y2kzEqkM4F509lUFMKilE83jQY++AhH7M105RzYDC3vnySofedT6vDP1if/KXc1yVr59 un19sX5tx/HnxrshaviYU2ZvzDKU5ZUuDULzIyUhpRkWCca3QUkhdvUE1GwOAcM+mtAT +oPL9S42ja6YKad2s/p7pRuEVIuikpxCn7ok/S6NHsf1FRZygothGG8NiQfawtrug8Lh GxMJsKS/6keKQJM7ecQFLl49nFWqc3vs4q/zwZUl94SVeerpHzAxATN4cTewqyU5V5gr 1t8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=RoBV7SwdEVQBR2WR+AwDJ9pTHLUtyS8y1BBkgyInaNY=; b=K+u87l5n+kC7I0HotBJMP/2hwPN3cW19QgRxttocS8D1I+GTFzcoh1Ev8ciu8Evz2l nLcjG1jwMnJ0BlNpfTRkZXtuNQzbSg+to+/8sN8RXOIAAg49VfxqHUGeBN9hqNr7hCyq bR4tWry10LHE8FTzaPrV5Spn001pYnh6z2rQrCBp8p7KmfOBCMgA72llE8wkQgqLpfnw W4QmrjAcxRWSkBnWFhr6Q/BTEpEyNqFuB7RsplPimcUkXFXmFbDWUqDiQjy6Mt/1BCBj QO7A4aa93liMRU90U6SWZ/GypvbI+xSWPHSDQOGXbDo2gn7coSgHraxDFvuZ5/uPuFmf ITgw== 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 t6-v6si2881828pgk.215.2018.07.04.00.46.21; Wed, 04 Jul 2018 00:46:35 -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 S933581AbeGDHos (ORCPT + 99 others); Wed, 4 Jul 2018 03:44:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:36569 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932346AbeGDHoq (ORCPT ); Wed, 4 Jul 2018 03:44:46 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 5A6B0207F4; Wed, 4 Jul 2018 09:44:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-39-106.w90-88.abo.wanadoo.fr [90.88.158.106]) by mail.bootlin.com (Postfix) with ESMTPSA id 240E7208C5; Wed, 4 Jul 2018 09:44:34 +0200 (CEST) Date: Wed, 4 Jul 2018 09:44:35 +0200 From: Maxime Ripard To: Stefan Mavrodiev Cc: Ulf Hansson , Chen-Yu Tsai , "open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND..." , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH v2 1/1] mmc: sunxi: Disable irq during pm_suspend Message-ID: <20180704074435.46aqhuthrn2vok5x@flea> References: <1530685741-20604-1-git-send-email-stefan@olimex.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5f54sll2jggg7dtn" Content-Disposition: inline In-Reply-To: <1530685741-20604-1-git-send-email-stefan@olimex.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5f54sll2jggg7dtn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 04, 2018 at 09:28:59AM +0300, Stefan Mavrodiev wrote: > When mmc host controller enters suspend state, the clocks are > disabled, but irqs are not. For some reason the irqchip emits > false interrupts, which causes system lock loop. >=20 > Debug log is: > ... > sunxi-mmc 1c11000.mmc: setting clk to 52000000, rounded 51200000 > sunxi-mmc 1c11000.mmc: enabling the clock > sunxi-mmc 1c11000.mmc: cmd 13(8000014d) arg 10000 ie 0x0000bbc6 len 0 > sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000 > sunxi-mmc 1c11000.mmc: cmd 6(80000146) arg 3210101 ie 0x0000bbc6 len 0 > sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000 > sunxi-mmc 1c11000.mmc: cmd 13(8000014d) arg 10000 ie 0x0000bbc6 len 0 > sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000 > mmc1: new DDR MMC card at address 0001 > mmcblk1: mmc1:0001 AGND3R 14.6 GiB > mmcblk1boot0: mmc1:0001 AGND3R partition 1 4.00 MiB > mmcblk1boot1: mmc1:0001 AGND3R partition 2 4.00 MiB > sunxi-mmc 1c11000.mmc: cmd 18(80003352) arg 0 ie 0x0000fbc2 len 409 > sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00004000 idi 00000002 > mmcblk1: p1 > sunxi-mmc 1c11000.mmc: irq: rq (null) mi 00000000 idi 00000000 > sunxi-mmc 1c11000.mmc: irq: rq (null) mi 00000000 idi 00000000 > sunxi-mmc 1c11000.mmc: irq: rq (null) mi 00000000 idi 00000000 > sunxi-mmc 1c11000.mmc: irq: rq (null) mi 00000000 idi 00000000 > and so on... >=20 > This issue apears on eMMC cards, routed on MMC2 slot. The patch is > tested with A20-OLinuXino-MICRO/LIME/LIME2 boards. >=20 > Fixes: 9a8e1e8cc2c0 ("mmc: sunxi: Add runtime_pm support") > Signed-off-by: Stefan Mavrodiev Acked-by: Maxime Ripard Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --5f54sll2jggg7dtn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAls8euIACgkQ0rTAlCFN r3QWcxAAkanogogQaGFEgZZiX02cRiz03ciIQAbsl77c3hxxh5Kpe8/hdfpVYwHL F+eVvMUeD4WeX7qXOptd3NlBClOSRw3atXmW1z7aEIQwKrKYNZn8foAjuV2+jrz5 3PfQalJf8ZpZDUDnZqISCIvt778H0qAp7DYk4+Hk0q5fUo5KYC+PebhHg8EL44ig m//ETl6Te/d7dppUlO3n6qeF6AfdSToFg0e5E3g3L7nbot7mZWZ8Arc1AcyU1qjZ WRxRz40PTBq/dMIC3DGSCC4zQ8dMZ9+W2+4eisFXG7+Oh7i6nstXxR8VCotmp3H6 HIgHxFmVaRPnmgWlGu0POvvxwI2d0e89tLMirk9MK4AP8sQgViDsl21kg4Q9G3sN 2z5gwco+8bTwmLjGg5eR8WM2zSMBfyWF/ZPqFwLT9Rx2MZCuS1uzkEjI0OIz3RjK dh6feqFals4qT3NzzsRgV8wZLA3uaHD/Qef+zzfPCRcWvj596IPOy9QRsoQUn4/k gN1fNSalYjSSmAXsCkEYDSgZcjCdgV3pRGcDfmv6cIzAysPATbulyrxa5gzXdkcp QRItj0ZuVZLiMbAKfjNMVqUcGUZSm5Yl+OJao1FHE6UMlD8Q4HK+Tu2wNT+yWzTk XxmYG10kFow2jI1o0Imce+f/ocacDvjmNZZaH9kT4khr8921p0g= =s/IJ -----END PGP SIGNATURE----- --5f54sll2jggg7dtn--