Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp885855yba; Fri, 26 Apr 2019 10:21:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjFWeB8PHXGVYnFpFflN+9XVIrv9jbz9yNNJwIrhcNHitsoQQ6jGm1W46503ZzQ3LJijqy X-Received: by 2002:aa7:8096:: with SMTP id v22mr48046821pff.94.1556299265569; Fri, 26 Apr 2019 10:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556299265; cv=none; d=google.com; s=arc-20160816; b=nkkfPoBwf3EfhZO4zr7U/oLC0G+lpJFzrbxgPbtW98cimDNMbFuIsoyzV8AvQJTKtz tiv2y56ant8i9A9Xl5BA9wP5mggaxwCJUVYAuwl9b+j9wbAOm0MO9prfsjTb+b1F8Mpa /cx4N8SuiEm5zCs4baIDT5j1OaL6MIbPeQQ1HFGaZs69TEggIZAzMMRvN385vjVfAxZz pn7swwbX3SzrHx6V/XiWZZ3exRC57hnxxRoDw3RQXpF/8camVFXOOryE3i3P1v6LyyTM 5ww1J+BUjMOZ54wSPgdtsR+vFAfkJqJHFdPcQubkMxXhmFd77L9xGXro4oIGwWQONZx2 6oSw== 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=6RhyZrNZwjSd8duPbbJh0QjUHOd9upb57vvukrqOPyw=; b=ManjoMRsQ283Fu+FJAf/MelJKQt8NYlpBZeepmX5fBQN+Uw+rD9lSBo5SAZQyk9aWD xFGCvPaNLP4j/7t6pOX4dbbOICDrDFBHwEWpHepN5Z5BwB17BOyOeudwOGxcBHM/Vlq1 EC1jkQb6xYyT7uKRMdPM5f0kWoDByTXikg0B2np6dMty/Y1Q1/IcAzH+zrIko+0QBQb9 0dyxl76WBaFfzyMYiN3/LGct1Req7suo0f83NoXFaSMLH5TFOd9+AozOHNxbM/y9lcMo 3uTgCDIaSth8mzsTEFnnGg2Ttqif2I2Dh3myhYE31jZXPrQQtKAd9corE3WFscZDGiRk OsHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fgPi2ed0; 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 a73si25786748pfj.174.2019.04.26.10.20.49; Fri, 26 Apr 2019 10:21:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fgPi2ed0; 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 S1726243AbfDZRT5 (ORCPT + 99 others); Fri, 26 Apr 2019 13:19:57 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37257 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfDZRT4 (ORCPT ); Fri, 26 Apr 2019 13:19:56 -0400 Received: by mail-io1-f68.google.com with SMTP id a23so3576171iot.4; Fri, 26 Apr 2019 10:19:56 -0700 (PDT) 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=6RhyZrNZwjSd8duPbbJh0QjUHOd9upb57vvukrqOPyw=; b=fgPi2ed0hON7GBQV9AXLvlIFngg+XmXBq5b54A/oTf3p9/O+fGDFcRiIZtjJIPsXN8 9G2zRTere33aqyxdkSi4i3fuO9+zMtf2ASdQIDSfg05AHI+dApk+iR7iX0cSEXnjsV5r j/c818mFiBf4yQmBkd183XXFqq5EmfZ45YnnCIizDE43bb6fzY7Cf4Qa8Da4N2M59rsT sIb3zDKp0xHlFVfV4UZS85L0bVQeIEhsHrq0rLa1Ek8DpHmrn6085RsjwFsUFhXtao2O 661Le3VdgjI8eis30aBygQiRFe9UiuHzOul3iWyd//WKTn2sOryT++suBD0ujM/I7moR ZVSA== 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=6RhyZrNZwjSd8duPbbJh0QjUHOd9upb57vvukrqOPyw=; b=bWDR0Z01gc1jvKOyLxShdpJBUxEKJT54k8pXgnkmFpTGfy9ENI3W3Z6wMyxDY1bKxl ZJ2iXvVXc8Q+RuN9I15TtVFx6ymZBuXaem/dfyvjUdDaNqWBBOtO/BYx0lv6nEuEhvy8 ESvds9EX6I3fYXx9TQ11Bk/D4wrAfEXp6DBinjMZLY1N+6bCgfNf45TTulGT0jASBchZ fxmDMGqjEmkwWCutFcdkuqFoeY0n++0zECa16N+2fD350ObRWZIqIRNdQonZGL0oE9sQ 9xUR6zGr7n5dRVb99xUpK3nLqNBMMZ/ISaPGVwIRWsrHzueA56fa1J6986Ht/94OJbV5 1gIQ== X-Gm-Message-State: APjAAAUiXonLQpWlfEmFvU3k7pkcB5BSBapmE7U3DDUKwGkOqh3/Qwd9 WxamY7lLZy4tm/JobhE/l4GhFsVR4AucshpGC68= X-Received: by 2002:a6b:7417:: with SMTP id s23mr1315489iog.2.1556299195506; Fri, 26 Apr 2019 10:19:55 -0700 (PDT) MIME-Version: 1.0 References: <20190410221237.160856-1-dianders@chromium.org> In-Reply-To: From: Emil Renner Berthing Date: Fri, 26 Apr 2019 19:19:42 +0200 Message-ID: Subject: Re: [PATCH] mmc: dw_mmc: Disable SDIO interrupts while suspended to fix suspend/resume To: Doug Anderson Cc: Jaehoon Chung , Ulf Hansson , Shawn Lin , Heiko Stuebner , Linux MMC List , Brian Norris , linux-wireless , stable@vger.kernel.org, Linux Kernel Mailing List , "open list:ARM/Rockchip SoC..." , Matthias Kaehlcke , Ryan Case , Kalle Valo 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 Hi Doug, TLDR: I'm no longer convinced this patch breaks suspend/resume more than it already is. Sorry about the noise. On Thu, 25 Apr 2019 at 23:25, Doug Anderson wrote: > > Hi, > > On Wed, Apr 24, 2019 at 1:19 AM Emil Renner Berthing > wrote: > > > > Hi Douglas, > > > > Unfortunately this seems to beak resume on my rk3399-gru-kevin. I have > > a semi-complicated setup with my rootfs as a btrfs on dmcrypt on > > mmcblk0 which is the dw_mmc, so I'm guessing something goes wrong when > > waking up the dm_mmc which probably wasn't suspended before this > > patch. It's not 100% consistent though. Sometimes I see it resume the > > first time I try suspending, but then 2nd time I suspend it won't come > > back. > > Thanks for testing! Thanks for your detailed response. It made me want to make absolutely sure that this patch is the culprit. As a baseline I booted a vanilla 5.0.9 and suspend/resumed it about a dusin times without any errors. So I applied this patch and immediately it crashed on suspend, but in a way that I could still see the kernel log, and it was the mwifiex driver that crashed. I rebooted and tried supend/resume again and this time it seemed like it was the dwc3 or usb3-phy that crashed. I still have the kernel log if anyone is interested. However 3rd time booting 5.0.9 with this patch suspend/resume just works. At least the 2 dusin times I tried before giving up on making it crash. I went back to vanilla 5.0.9 and after a few tries I managed to make that one crash too. I guess that means this patch is off the hook. I'm sorry about the false report :/ /Emil