Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1410221pxu; Thu, 17 Dec 2020 09:17:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2QXBOuLvL41JGNmbU0Whkx1yjOxPxZAEuU7To/VCWGUrzsqm7qnybQ+sPP0/UWrO8nXap X-Received: by 2002:aa7:c78c:: with SMTP id n12mr312461eds.363.1608225436462; Thu, 17 Dec 2020 09:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608225436; cv=none; d=google.com; s=arc-20160816; b=XD+evwmzl4LM3dO4Yt3pVods91mNNo0Nqo0ItXVRnbVoPhr+WZ7EFl5wWsNfT8WB9t 75Y42DE4daRIarmknsE0x+rQJ9cssSOQPt/+mtU5PiS7w8uFcMmNf3kvyZetKM1ksVtj n4QSeXpt6YgcgfaP2/1uzOJVM0rozBkElAnlLwVXCkB1vuwkATAFVPqeV7F5y+2wzg5Z MAVcV4d34zJQMjkFaNdxHod4tNkttp+wg/Gxvmj5PX6D0qClANDxERTNBq4MuvmSZYWb 0cDfic/Fkz3xWab6SUoH7cLuMW2NXlQX0C9sYl8IomzhcQYHR4R9l9dG3fjE5C5yp5Nj MiLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lc21cq0ymggpuStIBav4pWq/h6ih3KgGZXha7oGAj9I=; b=y0ZeuGEtdKqSLZZgpmrpcguUo5lGFb91WrUR6pdipMCRXvxHm/sPig/IoCFw/lYKW/ +KryqING3fVe+6aaXhpBGCffBWy6tRCVYNUt56YoWtHZrvRLfBuDnqa7qn6DdsjPH3m9 NSLUPXrse24llTVJt0j84R3vzbKzECAaFuhgfxYJc3gjIN6KHwoxaG9kgyfLopAx4lyD pzqTHHuEhs+4ICp1lVoHhtADISPBGuQgZQkDQLCrocMbro4/AxlQ44mTSrOPGQqNbvG5 bJQ0O2DHIJfA52d0jk1USI5SKKTf2Ss0locvfH4FE2evWmnRAd3p7IlRL8qAkqFPjZB+ zCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xzgq2RDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si4877522edv.474.2020.12.17.09.16.53; Thu, 17 Dec 2020 09:17:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xzgq2RDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728438AbgLQRNM (ORCPT + 99 others); Thu, 17 Dec 2020 12:13:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728080AbgLQRNM (ORCPT ); Thu, 17 Dec 2020 12:13:12 -0500 Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED30FC061794 for ; Thu, 17 Dec 2020 09:12:31 -0800 (PST) Received: by mail-ua1-x936.google.com with SMTP id n18so9430110ual.9 for ; Thu, 17 Dec 2020 09:12:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lc21cq0ymggpuStIBav4pWq/h6ih3KgGZXha7oGAj9I=; b=xzgq2RDmDvQdWkRXgZQeLWKLHkZ2GVoPk5BNc12QN79DNUAN26PsKWuWZG+Z0JZLvo uXrBKH8ftZvNRDx+o4HYqmvTP+X49sFM8Jn83MHS31LoGfvAqu7gB1Zhl8pzDdNrs45a 874rDmw4huPKXUChuOIq2h8Res2w3pbLqHnZICNHpaPHxyAo21fz3//qMlyeewXVesMl /nj7m3yyQrXlxDceF//kFWW/zQ4dacFpQRNhqI6psUlnrfZplugzeCNp5voJgS+S6JO8 LwkOe0sLwu0SvR45RkNWP15upO4bsoDAGDpc8AmBnaogXjOhho/Mh/jVDemCdp96toad 7DRg== 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=lc21cq0ymggpuStIBav4pWq/h6ih3KgGZXha7oGAj9I=; b=EumlsTg4H3zd4z3opWQgpDfB/YlCwM4R8xFMPuabOEZtd4g3BLviz/9N3enD441b6i /kpkYL2gC2B2SYg4I4ihYWHk3O5B+3WZKn233evwg9TFB7kq3HVwoV1aM6g6Ls3ollHo 3AWf0bXko2gKMjXWtzJ9E/5Jj8MPqoR34aHzlWfa+AUrQmvZYglqE+hN5CscYBQ5M383 +NaP5nuqcN1aFfrFPiHIXY1hxnp+TpjCRVnHw8TOQDqyzfDHUqKa+5La8xxbgxR7ZtTa ngV6iqZVrmEYLjOuDAk9nuig8uZzwY5r1Uld1agRiuxLFM5zsujNqfV4whJ1xBoxZjHG 0ySg== X-Gm-Message-State: AOAM531DfV5LNHQjIv88yRoAMY0aWimJJqBdX+iRAxFAAn+6du1/Zrxq tHjlHOTv6UTRuaEKycfBXr1XZGqTml7X+DDO8pSpkQ== X-Received: by 2002:a9f:204e:: with SMTP id 72mr10422527uam.19.1608225151200; Thu, 17 Dec 2020 09:12:31 -0800 (PST) MIME-Version: 1.0 References: <20201207115753.21728-1-bbudiredla@marvell.com> <20201207115753.21728-2-bbudiredla@marvell.com> In-Reply-To: From: Ulf Hansson Date: Thu, 17 Dec 2020 18:11:54 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH 1/2] mmc: Support kmsg dumper based on pstore/blk To: Bhaskara Budiredla Cc: Kees Cook , Colin Cross , Tony Luck , Sunil Kovvuri Goutham , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Dec 2020 at 12:36, Bhaskara Budiredla wrote: > > > [...] > > >> >> An extra check can be added to see if host was runtime suspended > >> >> ahead of panic write attempt. > >> > > >> >What if that is the case, should we just return an error? > >> > > >> Yes. > >> > >> >Moreover, even the device belonging to the mmc card can be runtime > >> >suspended too. So if that is the case, we should return an error too? > >> > > >> > >> Yes, same here. > >> > > Please comment if returning error is sufficient here or > can there be an attempt to wake the device through either of the atomic activation calls: > pm_runtime_get(), pm_request_resume()? Hmm, I would start with playing with the below. mmc_claim_host supports also nested claims. mmc_claim_host(host) - this will call pm_runtime_get_sync(host) mmc_get_card(card, NULL) - this will call can pm_runtime_get_sync(card)) and also try to claim the host Kind regards Uffe