Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4168978yba; Tue, 9 Apr 2019 12:40:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxIQyHauEUjGAcffFEhC5KbhBgocE6XhHBlElQ48HIDeXMKbqp6GAyGlh0Z0OFD0ue828B X-Received: by 2002:a17:902:f089:: with SMTP id go9mr37680115plb.309.1554838811741; Tue, 09 Apr 2019 12:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554838811; cv=none; d=google.com; s=arc-20160816; b=EmVTnWLZYBJY1sDl/CMRySNftSZjT7yDWLh2rpi/XLwHzYEcHkE0JT73+sK9KxA/6d fXkLPpNSVjRR5rK82Mh14HfbZFhGmK4+/ueY+Fotd7pxRtMnZ+ZUofzgC81Tg8aRolxX uKR7BUqwzo7MSPJkXAl3+81Xu7/IFGdKiHrr2R8d5uGhNdMXAZKH4lDQ/uJOCXuWGRR2 nh+H/NeNMdrqY+wznYOxBWGYn90neAt0xa5SPBDY00+LBCuErrvCA4U9qgFegVDinzsL MoBTUH46YH98JkBZgZcQYk01a97n3W8zBDV4Pdf/0H5CTH4Xk4RD+6go0Kh8nzE5T2FS yb5g== 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=aLJa84kbHmO1Fsm6UHiJGcVq+nXBPwgLIQVtIw5VTpA=; b=P70IbV/tZzSEvqsM8FzIUXd0lqq8GIcxHDzWj8T5exDnIUkOW4ydTv2VBxcF4RGIIk YCYFfr9NjWPdbpcCR6OvucaztU1ce7e0Jg7JMi6yFMk7+2PSa1Die8hfpHx1y2toqsAh vx0IfRiB6zLGKX5LJYPT9qLOjrgBu5h1D3ZPZARgkrGlQIrobx9ta4wjoQrReyXFudvK 6iX/1IFwPBJL8A6kU6wKwdOPo46lcrORiDhO99A9Lbc8b4ZnUjDxwUBPChUah+rnZ0JJ n6Ej8U+/3m6HIKE4KR7eVF4Oq/lzHrO95bfjrhgRaw3T39WTXgoHmW+aK3C9ngFODV0E zNlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BNAjnQMr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si29977535pga.575.2019.04.09.12.39.55; Tue, 09 Apr 2019 12:40:11 -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=@google.com header.s=20161025 header.b=BNAjnQMr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbfDITjJ (ORCPT + 99 others); Tue, 9 Apr 2019 15:39:09 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38404 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbfDITjI (ORCPT ); Tue, 9 Apr 2019 15:39:08 -0400 Received: by mail-lj1-f194.google.com with SMTP id p14so15566335ljg.5 for ; Tue, 09 Apr 2019 12:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aLJa84kbHmO1Fsm6UHiJGcVq+nXBPwgLIQVtIw5VTpA=; b=BNAjnQMrx1jTP02XSpeyKAmUyPGbfmwOhm6oHtXyqeeAUuZ5R9mKtbaOUfWAWNzYh/ E5emPY2f9r4q3mFSdQN6Kxj6EIcUJh4QnHrombCOoisrTexeVoZvTQ61mtzUblbmapHb 5ivYQeU1Wxbzj6pWL6KWg/d6gdMc+BB8tyBaiJGQr0jh55QkuvgvFDLaFS0IuJroY+l0 Y7BvGLN2S8bpN9hrNDR08VohAwa3ebOXIY4GtuA/tC7DcKK4qa08WJZjG7apcD1ttS66 tM7hX5nmSQ9CnpzzeyIOOzebvKTvHfnveznyah0w02WeSw+52/tgHQike+PdoHHgFTxM ws1A== 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=aLJa84kbHmO1Fsm6UHiJGcVq+nXBPwgLIQVtIw5VTpA=; b=PEu+nFY3uc/maSi0CJHSzzbiAYjWK3YlJHCx93o7SfnyG4wfKyFZJOaxxfPlVIJsrE jUILSuD0o/EvRtvv5O4mzLfKNXrzDlS6Y2AAGG9kpACsLPh43lcvIMbJ0DW6juBzikD/ NPGFu1brEH93n5nu6ltTHEH3igwCQxlVe1dDctp77nzVOGOiValNbziFf7xY5S/mh/3H b8v9dXgr32Yh+EKK9Ui3NQrXLlAy8Z5KE3SAEh+nJgHgiHq+m9PUDGDVdT1WmLyliNeH +18H0tYfKmpb6BZnzXjCUPQFpVZNd6Yy3KKiEePHEfXQvUjj9/gftzn5OqxVqZFcla8W 6S6g== X-Gm-Message-State: APjAAAX7iSBMLLgO0Khsgjx1+trBVZvhjpqXVED1MN/bnBZiR5X95l68 TiJqKlkm3QoUPu/Dff6uhVnQTsiiukK97HC3Uuu9zA== X-Received: by 2002:a2e:99d2:: with SMTP id l18mr20152993ljj.27.1554838746399; Tue, 09 Apr 2019 12:39: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: Rajat Jain Date: Tue, 9 Apr 2019 12:38:29 -0700 Message-ID: Subject: Re: [PATCH v3 2/3] platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure To: Andy Shevchenko Cc: Rajneesh Bhardwaj , Vishwanath Somayaji , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List , 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 12:34 PM Andy Shevchenko wrote: > > 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. Hi Andy, In the past, we did see random suspend (S0ix) failures after the devices were released to users (S0ix failures reasons can be a lot so was not possible to catch all in lab testing). Rajneesh (@Intel) is aware of the context. In most of these cases, it was very difficult to reproduce the issue in developer environment, so really difficult to arrive at what component was causing those failures without these logs. So I'd still like to make one last request to allow to these debugs in the kernel at resume time, to make this feature very useful (it still doesn't change anything for anyone not enabling the module parameter). However if you still have a strong opinion against this, I'll add it as a new debugfs attribute in the new re-spin of the patch. Thanks & Best Regards, Rajat > > -- > With Best Regards, > Andy Shevchenko