Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1022498imm; Wed, 26 Sep 2018 10:19:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV61xameG/IdF0z5C8tc2CMCAKZ4MkZkI0XyH87zzUWzo1h2SAPI1ruYkMlGZU5lD4wbsQySJ X-Received: by 2002:a63:2605:: with SMTP id m5-v6mr6277592pgm.225.1537982354289; Wed, 26 Sep 2018 10:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537982354; cv=none; d=google.com; s=arc-20160816; b=Nhxuf6djoWXQxpnrYEmOILq7lE5t9oYYdF8L0KBuUAqfmdlBz+tghjzBU6tC3HuH+H B78f8GTkB/cVhf/0XQy12g7AVuhuvgyp6v/63mXG/pC3PcNOM+4eUxQJDBx55a5W1QDy C2ToLXDbRfH2Uds0143K9IKhAAdiUaUIzK0r9+7uGdXnkTPTgPzShhg8/Vx41Bz9/h90 MW54Qtt0ov7vvjDj/cYzVKh/jYqS384tkRJNN9DjLLQLdaKb59FAz0htSBBQdgiadiPT W2nSmE1C42tWY27fIjdnEzsIB5WgdqOYHMpyqroa+4dTesdzcVWZq4s+KvnAQQw26pS2 R/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=171IPcMiyiUKdE7TRm/dlfQkmOyNnF/FP63UNve+vFE=; b=lTjGUqCb9IexP4YSsQ+TKqj440bQebxhEhh8BZEBpjw1IeVk1HbVRk7d3Bx52WFbP6 jN8KsLpAr/6ce694GmwjBBcG+FVlJmdPkqsV7lzP3l2wByVZcPK+GxW+kJm29HhsXy1K iBJ8LHeJSqBq+e17VqbMr7KHPA1shDeI1rsoMSQA73LG16e4GOOmq+ktvMxCdNebfKAf KyekltZxyK4swszkJrdltq/nRTaFlW6qmGDPazLPvhyl71MsgeqJZr4rd2vwnHxcOD3g hmT5kH/7Zt6e5cVNFTp5nMIiACUHOa1P1fSv9zIWKgzsIJIYHClNBCiM4cIAuPseeCE9 tq9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=szdmufcv; 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 i124-v6si5335158pfc.110.2018.09.26.10.18.59; Wed, 26 Sep 2018 10:19:14 -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=szdmufcv; 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 S1728541AbeIZXc0 (ORCPT + 99 others); Wed, 26 Sep 2018 19:32:26 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37374 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbeIZXc0 (ORCPT ); Wed, 26 Sep 2018 19:32:26 -0400 Received: by mail-qk1-f194.google.com with SMTP id c13-v6so15974909qkm.4; Wed, 26 Sep 2018 10:18:29 -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:content-transfer-encoding; bh=171IPcMiyiUKdE7TRm/dlfQkmOyNnF/FP63UNve+vFE=; b=szdmufcvHqGP9CRqcbjcE1WCNS2Rr1qd5aeOY50saZdFC6/q7U8pYZNiDc3mSprGs6 JMRCerQeeBlh+Iv7yIqHpGRIQ7a8eQYM8BSGMyiLnNtuPSdZLgbryP0h+fl0BPLlRONy pLRFX6b5L2fJkMMHo0jzy9BzRmQXwB99VJO+Tv15acM1yNGanFewBUdrtFCjGaOhQ9At c9cPuq+pEnuUCmPuPXxiS659NhEdmptF5A2jqedRWZATZYIZh1pELfJ5Scp40jFx84on zAnNu5r5kZuRiYRk/0fmVhQXxdfUYh/c71/x1l9FBbmbJM4UFIOTctJ0AEEQ4Mif1ZHS /dzg== 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:content-transfer-encoding; bh=171IPcMiyiUKdE7TRm/dlfQkmOyNnF/FP63UNve+vFE=; b=sPKP217KtQJmrPPDIQNKoMjKczAC5o7/d840f3JcdT1/ciRB+lBNmkGLtcRdExuXmC vePigk66cxGMyoN/mgNLvaMB8h4L3whenxDZt1agpWMxc8PVJTfng/TgzVG0e/yiZle5 jAgJqdJqjL5IIW0rWM+bamEZXn5lBy+RAB4p2F+1JmbJ63rgXr9O3Jx1YVnWe8GjMtUj VCuzoSH9Qma+nMkLlclsquvaZ5Ol/qoXRbR2PsSvTvbH8i4ZRir/3LiBKnDFlbKcLJ/k IwIlXICSjxPq+d0yExhjlRw3g/TrBv7aq9NrGHqxB/JB1RRvxAkbmUAHPMZvGUi+wCQO XZQA== X-Gm-Message-State: ABuFfoi3JZkjvfFIAwpKFfOEWZbIy4Z8iwaJrGrF1WDw9Ar8W7tX2wn/ 4Pup3XjjwV7fnfyGuZXGeyiaDzlEx+sZ/3q1lezyLwN7 X-Received: by 2002:ae9:d885:: with SMTP id u127-v6mr4862915qkf.219.1537982309282; Wed, 26 Sep 2018 10:18:29 -0700 (PDT) MIME-Version: 1.0 References: <20180903180415.31575-1-rajneesh.bhardwaj@linux.intel.com> <20180903180415.31575-4-rajneesh.bhardwaj@linux.intel.com> <69ad420e-362c-d8c9-331f-056cdaefb1eb@linux.intel.com> In-Reply-To: <69ad420e-362c-d8c9-331f-056cdaefb1eb@linux.intel.com> From: Andy Shevchenko Date: Wed, 26 Sep 2018 20:18:18 +0300 Message-ID: Subject: Re: [PATCH 4/4] platform/x86: intel_telemetry: report debugfs failure To: rajneesh.bhardwaj@linux.intel.com Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Rajneesh Bhardwaj , Souvik Kumar Chakravarty , matt.turner@intel.com, "Brown, Len" , Sathyanarayanan Kuppuswamy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 5:24 PM Bhardwaj, Rajneesh wrote: > On 26-Sep-18 7:26 PM, Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 9:05 PM Rajneesh Bhardwaj > > wrote: > >> not be obtained and result in a invalid telemetry_plt_config. > > What is telemetry_plt_config? > > Internal data structure that holds platform config, maintained by the > telemetry platform driver. You need to spell if for the reader. > >> This is also applicable to the platforms where the BIOS supports IPC1 > >> device under debug configurations but IPC1 is disabled by user or the > >> policy. > >> > >> This change allows user to know the reason for not seeing entries unde= r > >> /sys/kernel/debug/telemetry/* when there is no apparent failure at boo= t. > >> +exit: > >> + pr_debug(pr_fmt(DRIVER_NAME) " Failed\n"); > > Completely useless. > > > > Device core does it in generic way. > > If i remove this print then perhaps there is no need of this patch. Maybe. > Reason to print this is that the platform driver / core driver does not > show any error. If the code fails and returns 0 =E2=80=94 it's a bug in error reporting ins= ide the code. > In-fact they are even loaded in module table. OTOH, this > debugfs interface fails. This is very confusing to the users if they > check the lsmod output so i feel this print might help. Again, device core *already has* this and even more (it prints also a return code!). --=20 With Best Regards, Andy Shevchenko