Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3225987yba; Mon, 8 Apr 2019 13:59:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsGBGvzAZmNUz0GXr7mI0h9/7qu+nB4gk0b9DLWbpbF7pGdn7IcRP4LQp47qknzUx8YFmG X-Received: by 2002:a63:90c3:: with SMTP id a186mr24044347pge.306.1554757181528; Mon, 08 Apr 2019 13:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554757181; cv=none; d=google.com; s=arc-20160816; b=JKEspf42qRaa+UTz52JvEWok+kSSss6z6esUAd+P4iR48h+7tEJ/hzSW5R7jayIWFc jNwtTwMcTI/X3uvC+ZnnkR7wrhDxhyoOLnssMlwrCrI5TKC7/+af/vOBP8QGzohGIUWG f6+f4z2U/AnP8Zeyj7PWUGMCKpIqYxAi8cq2adTbSqd4oLsGzm7NBYraPvlupzQC8L/e 2pNYul2g52UQNrzBt9cJ4H3aI67ZfVmMEN6AI0FpcBhSC38oTmFuNoHE6azth4ZQ/t77 CPegzsTFucOzC76njWKkzEYsuke65dsmdIoyVLxvmOj7JLK8+VuGuTakbvPG5CLTr4UL r67w== 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=b6l7wTzWQN9GvZ7EyQjK6wXZcZeUcC8uhQgz6Bw25NY=; b=rgiYjMvW9FgjHFnCAB3UJ/iBGugY6W1obqM5p0PDHa5p4e7h3kTvuawbDBWKGK0OYz GuHLGLEAyfbFA6xPk+JJBN21BFWYGPgMaiyELzyrBE2w8995/CcIx2H5Uj68qFwl00oN Pt51IMEgPBefNmE75rsFRkxLCunN9rL0SjUhLpNPld3O9b21T6AVO4LbFn5cfAx1FZzq syYTMiI60D19X8BLwXlQNbyYCoWjFDdhK1PIsGR/uWIsbE4KbbO7f37xq/56i6PybBTn C7AtOagnFgI8W0nEdAuS/IZkWy4JHtFDUaylFiXNOnZgZI6cENFGSGeVYhjPAaGD4uTH 6/uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mEfy4aEi; 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 r190si1773435pgr.125.2019.04.08.13.59.26; Mon, 08 Apr 2019 13:59:41 -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=mEfy4aEi; 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 S1727021AbfDHTeI (ORCPT + 99 others); Mon, 8 Apr 2019 15:34:08 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37862 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfDHTeH (ORCPT ); Mon, 8 Apr 2019 15:34:07 -0400 Received: by mail-pg1-f195.google.com with SMTP id e6so7873306pgc.4; Mon, 08 Apr 2019 12:34:07 -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=b6l7wTzWQN9GvZ7EyQjK6wXZcZeUcC8uhQgz6Bw25NY=; b=mEfy4aEiMVKfZx2ynfFfc0x+vK66RFf0udP49NPJWCdYHY1HgrTXH2PmDTNt/bpxz9 ZAoCifw0kH74KKfUKaHSF7k1hH6okHgx3959FqEnL8Ey82D+3y7n/7fnQ8nvBjrVu88p /4OB60PBm7sIrGIMpmlFTS3pF4IixrHP753qmd0DKbFw3k4UNZEn2QcXsGWVchkrhUNW BztX4gsvKo6ZxMyIMO5PuZWdqzZPuPtwhTFfOVpti3QZAEN3pAFskDl7Io0II5wtnRz7 KZRwPPEX8O3IFE4VRPgY/sRM9+3N4I65GQFAU/UImp4N/dgdGtGTXaEi0b/ieWsln3aX FcKw== 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=b6l7wTzWQN9GvZ7EyQjK6wXZcZeUcC8uhQgz6Bw25NY=; b=Ds4hOmgtPnejDVFl39eFrVCzdTSNITNTlxy9JD9nuECNRUZNPV2d44DuEPrRWwEVja 8QfiMSZlVYJon4PYGtEBSD7tVsMEh4tQduZ7A0dnGi/yTFH04p4ggBHl2VZB/mdOYAU0 x9wsAz7EuRZxcE/pvNJyYUwYC5a2fft2A9Ard40ihIW1mIYeSpbQA+rym/vwqKl5NtrE EMURMZx3Vsgbi8TWq6VwEEdkF2wwlZTng6uK8wWQHlUdR5PHQ5S7B9Umk72O39IwryEy sdDpidc9bQJLFUoZGirlZ8NpBOh5+/CV98tLBQiPHRKAipAYQZrNp2eLWjc0lOmKFZiK mRMg== X-Gm-Message-State: APjAAAVv/Z/TwF5IPPujfcMuXGjlDXCAjZwqV/pv3NNryI2HTAh8TwqP 0F1QMdm4KR/mXR9CBs9HXURQ6+BjZmKZ4Se44v8= X-Received: by 2002:a62:6587:: with SMTP id z129mr32060389pfb.88.1554752046652; Mon, 08 Apr 2019 12:34:06 -0700 (PDT) MIME-Version: 1.0 References: <20190313222124.229371-1-rajatja@google.com> <20190405203558.19160-1-rajatja@google.com> <20190405203558.19160-2-rajatja@google.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 8 Apr 2019 22:33:54 +0300 Message-ID: Subject: Re: [PATCH v3 2/3] platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure To: Rajat Jain Cc: Rajneesh Bhardwaj , Vishwanath Somayaji , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List , Tomasz Wysocki , Rafael J , Srinivas Pandruvada , Furquan Shaikh , Evan Green , Rajat Jain 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 On Mon, Apr 8, 2019 at 9:58 PM Rajat Jain wrote: > On Mon, Apr 8, 2019 at 11:41 AM Andy Shevchenko > wrote: > > On Mon, Apr 8, 2019 at 9:36 PM Rajat Jain wrote: > > Instead of adding module parameter and doing these prints, perhaps > > introduce another debugfs node. > > Uh, I actually did wanted to print them at the resume time in kernel > logs, because I think this is something kernel developers would be > responsible for debugging and thus would be great to have this > included within the kernel logs. User space tools may differ on > different distros and may or may not be looking for S0ix failures, and > particularly may not dump this new debugfs attribute. > > The other thing is that seemingly this could also help in situations > where debugfs is not configured? The keywords above "developers", "debugging", so, the concept of this driver is almost all about debugging, debugfs is not for users or esp. user space tools. So, I don't see any issue here with creating another node and use it for *debugging* whenever it's needed. -- With Best Regards, Andy Shevchenko