Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1151667yba; Fri, 26 Apr 2019 15:11:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1jrkm6N8YezeLwAiKaRT/OKkO65Okmsa4oSsHZnV3RJ148I28slDBv6/L1eHwTp5+T8cP X-Received: by 2002:a65:62cc:: with SMTP id m12mr46414958pgv.118.1556316673200; Fri, 26 Apr 2019 15:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556316673; cv=none; d=google.com; s=arc-20160816; b=MEoC5I8bBsJn+WXeJ+CoSyR4yUt4eezCVM4joaj/CD2GAqWl0X6lmd+jxf+KpsX3mn o4N80HqBmRL6EAyxr1OMhB83w5Guw9N3V0bisxwmoAPMWd6LJX+OQwHMp+XVqpp9rdYe CkNRWVL7AsBa4rinf/1waSGFH0gRPDrUWRxO2mr0w92PRtA7lvpmFQf3yOUxpuTthNng 4SLe0v6g+DW/d9ZHP/zDfsj5X/wcibqhraH+uOsX522KZa+23KoO1iPRbBK+XkyN81Og YjC3fkvoufXzMhfZubmFKIsIyEe/8iNmH+UaPNrdMpVGbyro5pYc/vh1x2axYYLYpycv bt+g== 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=GieBCUtlVhWnwVg6ldcc309iSPs6ZMuQyRIOEMRGO10=; b=aa0oMJ5DviX7GMqhrie0kKDGGwrDi0a830bqrMbbPfRiBOBPIUR9DN3B0iYeD0d6YA jqR1NqgN62Bx71yq2DvVV1LyCQKKfdJwlUVXuf4przq77I4GfbNnv+08Z8bRHTNe6dAF l/7wdqJUyHqveir7guU4lhhBYTOBibtjb9uMvP5zwmavfkyD/fVaFl8DoljSRjkTh1oI 1+pAmBLpzTGvGMCRQM5bWXzctLpX3eGIsYmVH3GeFv5pYCN2vKh4rHNF4RPa+Tt88HZP t6KrN/9dtDP6jq3u6jE8xm1SlTMp6zR/9wRsAXk5j9SDrbV3xavMrO3JIbYeHu3M5QWW u19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H+uaSFEH; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i61si27587555plb.330.2019.04.26.15.10.57; Fri, 26 Apr 2019 15:11:13 -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=@chromium.org header.s=google header.b=H+uaSFEH; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbfDZWI5 (ORCPT + 99 others); Fri, 26 Apr 2019 18:08:57 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:37639 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727114AbfDZWI4 (ORCPT ); Fri, 26 Apr 2019 18:08:56 -0400 Received: by mail-ua1-f67.google.com with SMTP id l17so1713100uar.4 for ; Fri, 26 Apr 2019 15:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GieBCUtlVhWnwVg6ldcc309iSPs6ZMuQyRIOEMRGO10=; b=H+uaSFEHe4LRsSOYpZo/5LQgBlLfDu5tdW/8Kg6h2tBCW3VKfBLB+uUVjh4j5SJf76 fwur2wzuNO8o1l7FUcOO0L6Tu3WbFJ6eZYdrmQGCuFIz0X6mUn0w5vJ6djySHbp8be/0 0FOz1LLV1he7mDMIz1pvJO95opBALai1ZtH/M= 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=GieBCUtlVhWnwVg6ldcc309iSPs6ZMuQyRIOEMRGO10=; b=jYrV8yB5RV+FSAMYB3JsvBIERKwvycsHYKO88W5ObC35u3C5qkAeCjaPEYbIwtepUQ sn3o99yjtY6jbHeOsO/bgee82aK2f4BUYNfFhx2bOWM8YrNvIKUiefFbFJhfMsYbyG4H EPyIe8i/aQZoq7HmewPgQZr0ozr2HIA8fQzS02RtoQaXqMdz0i5BoWXGlAcf+LasZ/sF lz7zHo5woDqUAIs8eyCKI/6TkpqGQMNsFBs/KUv/EzjdNlcy6Ubu7pWO7QqoGxpxi0Ap jw2Ti+tUCVux0JlA8ED2DcTLVZcE3Ew/Ml1M2iXE4a8VZevk9IWSUyxKLZe7VmN6Kiyi 2I1Q== X-Gm-Message-State: APjAAAWo5tRM712P5pbeq5A2wCvcNumlNtxcTVZYOlVhinqyQxSwO8rw Msk7+PbD9VvTVG0qmh0c03qJjknllKA= X-Received: by 2002:ab0:6258:: with SMTP id p24mr24922187uao.27.1556316534918; Fri, 26 Apr 2019 15:08:54 -0700 (PDT) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com. [209.85.217.48]) by smtp.gmail.com with ESMTPSA id r70sm2239611vke.36.2019.04.26.15.08.53 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 15:08:53 -0700 (PDT) Received: by mail-vs1-f48.google.com with SMTP id w20so2802093vso.9 for ; Fri, 26 Apr 2019 15:08:53 -0700 (PDT) X-Received: by 2002:a67:7b53:: with SMTP id w80mr26588048vsc.144.1556316532790; Fri, 26 Apr 2019 15:08:52 -0700 (PDT) MIME-Version: 1.0 References: <20190410221237.160856-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Fri, 26 Apr 2019 15:08:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mmc: dw_mmc: Disable SDIO interrupts while suspended to fix suspend/resume To: Emil Renner Berthing 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, On Fri, Apr 26, 2019 at 10:19 AM Emil Renner Berthing wrote: > > 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 :/ No worries, I've certainly been there and I'm super happy to have people testing patches. :-) Odd that you're having suspend/resume patches. My first guess for super randomness would be WiFi. The PCIe bus on rk3399 causes the most impossible to debug problems if you try to access it at the wrong time. If you disable WiFi do all your problems go away? I tried putting v5.0.9 on the kevin sitting on my desk and it seems to suspend/resume OK (25 cycles), but: * I just jammed it straight onto a normal Chrome OS root filesystem. Since that filesystem expects the GPU to be there, I'm just booting to a serial prompt and the screen just displays the boot splash. * I didn't try to configure WiFi or anything. * I'm using the Chrome OS "fallback config" for the kernel (the config our build system picks if building an upstream kernel without the normal split config). AKA: . I'm not 100% sure everything is enabled there... * I'm booting w/ serial console enabled and doing my testing with "no console suspend" which can certainly affect suspend/resume timing. Best of luck tracking your problems down! I suppose if things used to work maybe a bisect would be possible? -Doug