Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp93636rwn; Wed, 7 Sep 2022 13:03:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5TB1kSkJV++9VCPM+CekFKMlL+yD0UKej4/PLNhNtpq3JpaN1nh8y4pKobEhDIFB74DA/n X-Received: by 2002:a63:31d6:0:b0:434:af58:c988 with SMTP id x205-20020a6331d6000000b00434af58c988mr4725932pgx.29.1662580987152; Wed, 07 Sep 2022 13:03:07 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a1709029a4c00b00174d3a1bc96si17453270plv.13.2022.09.07.13.02.55; Wed, 07 Sep 2022 13:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e1D0Jvw3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbiIGT0o (ORCPT + 99 others); Wed, 7 Sep 2022 15:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiIGT0l (ORCPT ); Wed, 7 Sep 2022 15:26:41 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A17C47BA1 for ; Wed, 7 Sep 2022 12:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662578800; x=1694114800; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=QCQlWofc2aGIcuOJ6bhmWFEbp1tl56tvtMEfAy2RJ7o=; b=e1D0Jvw3mgvBP+Pci7fMSFByyxdOe8S/TYTRfqYhheq3AdzXjpcrpJEt tJrl60xSMIxeCOKNGlfGXXzB0NSL1HZy66MDRS6wnUek9DeCj2/zD1cC/ U6FhLnG/n8r+l2mbYCg+43+xgi8l9wB1Cm0wrl4la6RJxgqSR379dkmba mNhTr1J3eKu0nNqhi7vXiFivYeLZysI8319xuXc4j8FB1fWOOwN2qNCzu QkFKqRXPVeaE5IgdJtU3unq/3PpkVwhKeXnw/C6qFA5uehWoxP9KHI2h2 WbI6JeQODbV1x+IEAfy3cbIAfbOn9XcAHuh97fKMn6I/TsJ2vSKkzSl0t w==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297783643" X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="297783643" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 12:26:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="591848705" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga006.jf.intel.com with ESMTP; 07 Sep 2022 12:26:40 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 7 Sep 2022 12:26:39 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 7 Sep 2022 12:26:39 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 7 Sep 2022 12:26:38 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.174) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 7 Sep 2022 12:26:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C0UrhagCXRBXkqCxtgL2mxJ+K2KVfbmJTPWut0/5J5ZJCymh1d7Dv+wTS0/52Es8jS6GeP0dooAZDiNCmoy/JWCgUfTB4JvZ5M2r8yYcmXTQzYsmBPdqJP7B4fruBJGPZO5sLBBlZRX5o/Ul3nre1Wc0Ib9sP3DfRiQW9JY/uHsr5NMVyfchLnxS1mRDqKiopkevbxtHD+PmqW3ZrZidCyuejL5BXNXq7Nog+DuXNd+ki1yN5xeO8VKymWuBODJcvbCHC4MS2GMGkAWxzSYRSGVOokLXMKWT11oNIFXl2phP4KsLBFeG1cwQoK0IJPl72jRxc77eH0nbgvJ/4KXqVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ei+8jOkVD8MJqkbjfMfYo9AZ1Z7V6fgFXM/GFny9WuY=; b=Vj1h4P/A4ASmL/ssDCocnmh0A3xd+8ET+SSL++TabUxAKm0eO/NBuayNBHtQMHDjQ706RelRPlKRBXDTSSX0Z90cV0WoX5svccp0dNyfLEtkZt20mUeP/IBttByESko15+evf7PVm3mcKB74hqiauvhDAUHZH6LlSoLHAhuueI201pymZbUE/zdcWo4MpYWe1HkCcUZzQb9ZnvxZ/q2GjdSNlOjfwl2edgimnPj6m+ow9JJuijKHVZt5v5DCzNNWk2qXzajV4+sjOvya+LMbcE6lfSoInmTYTtn2NrhpfgfjvUIcXGdW/4yR7KWJKQYJ1ZLTAXDuND8uJc411G8MTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB5488.namprd11.prod.outlook.com (2603:10b6:5:39d::5) by SJ0PR11MB5085.namprd11.prod.outlook.com (2603:10b6:a03:2db::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Wed, 7 Sep 2022 19:26:37 +0000 Received: from DM4PR11MB5488.namprd11.prod.outlook.com ([fe80::1977:59e7:5a28:24e1]) by DM4PR11MB5488.namprd11.prod.outlook.com ([fe80::1977:59e7:5a28:24e1%9]) with mapi id 15.20.5588.017; Wed, 7 Sep 2022 19:26:37 +0000 Message-ID: <8a206950-6208-fd21-daba-681a9818bfb7@intel.com> Date: Wed, 7 Sep 2022 12:26:31 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [Intel-gfx] [PATCH v8 14/16] mei: debugfs: add pxp mode to devstate in debugfs Content-Language: en-US To: Tomas Winkler , Greg Kroah-Hartman , David Airlie , Daniel Vetter CC: , Alexander Usyskin , , Rodrigo Vivi , Vitaly Lubart References: <20220907155813.1427526-1-tomas.winkler@intel.com> <20220907155813.1427526-15-tomas.winkler@intel.com> From: "Ceraolo Spurio, Daniele" In-Reply-To: <20220907155813.1427526-15-tomas.winkler@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0046.namprd05.prod.outlook.com (2603:10b6:a03:33f::21) To DM4PR11MB5488.namprd11.prod.outlook.com (2603:10b6:5:39d::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94ec8c3f-9462-4634-8456-08da9106e1d8 X-MS-TrafficTypeDiagnostic: SJ0PR11MB5085:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gYDkFVn2k0Q7KVVIebC21JTW41lE1mobe/fg74yeuUMVcHXy3pkeq23nIp7bD2ThV/8Ls4vvEJVtIJw1DEbnKpshe9QkJCbP2/VxFqQ3S354Aa9tkMyDS9+0RAQlgZigi7TTZg20iNY/EYFkAFoYObSiIivFzuBSblH7KEwED5cqxsan8sq64l11nbjgeo5UUMbnBQxghDYLF36g51Pp304GZrV/sJGbbv2niaFnoAOSNFxVfGwR7mOZf7TF4i5yhMiY2yjPDNwYgnDGgKnESC4FWvvQOwaUydYYE+LIPoMz1XbE/LUIVVQQa5udMk5vvapGXA7t+QLEZ0rfrtnaYayk1MBdHZBPCR7qF0I1ah7YwDv4MGTEG2QQI4PT4YKS6/iD/Dk1HO+IypovGm8spXLXalY0vRZUa53OjfpPjZC7TxOJzoqQN5DadN2OlzcQgWd+DURBGznDJ8OCfhla4KDoxUK+3krA/PhQgJcLL5DqGvrpVQlnxgXCnzXJ0jGnVTeda2JUbfHFnmMGrK7YppR7nP94UKD71UuMBOuBxM7B8g4YsVy7YN0u9D9RiyVWV1lMU/Q/hpFqutV17nzPh5gBzjKXoJtP0TkhO39PjEzxkbX/dsMSwfcG7vAWTiGNdpNPbC23xLhlczIpf97Fb4Rhl6xWbTBj+ct+Mt/YZu8SDjHkbay/WzVFjNwdbNeftYAAAcBb2+wUCroeR8JPkxvm/JGIhtP3WS2qwXJ3SpouVyBx/Vmdea241Qxh3/CgkIn5twXGE0FX0he9uw2ml7+QU6pZdiZRASjye2RokwA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5488.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(136003)(346002)(366004)(396003)(39860400002)(376002)(31686004)(86362001)(4326008)(38100700002)(8676002)(66476007)(31696002)(66556008)(66946007)(316002)(36756003)(82960400001)(6512007)(83380400001)(186003)(478600001)(26005)(6506007)(41300700001)(6486002)(2616005)(107886003)(110136005)(54906003)(2906002)(53546011)(5660300002)(6666004)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NVdHU1ZBMVFwMU5PZmFDd3laRkVsUzF6TVNsZ28vNlFRV09pVkltd1A4NE9z?= =?utf-8?B?N25iQ010UUU5TjNzeW9oMmo5eFZwVzREeEJtN05VMWhlVzVPd3UwaWVGaTZC?= =?utf-8?B?eitoS0V1a1YrNVA3SjIwbDlZR2FRQXAxc051eDVtbmR4WjdCdG9Cbm1TNXE4?= =?utf-8?B?SUxVdHRqcmZkSkNnb2pNS2xzQTl5QW9ObDhuY09MbXhPaGRKTGNUVGg3YmtT?= =?utf-8?B?Ym9YWTIrc2NINlpoQ1RjbHJNUElJd2RMT2o5cGMxQ0xkdG1Ic3luS2RRTEN1?= =?utf-8?B?eUwrUjBmNUozMlc2MUV3TmZFbkJOSFdJZFhRZEx6dXowTlBCdW4xakFSSG9T?= =?utf-8?B?MEFEVE0xZDh5ck1MQ20wL3l4aGowcmhFYVdDVURJN3FuNTBRMXhvaTNFYlp5?= =?utf-8?B?ZktvcVh5VkpidXpQQTcvaC9RNElpbmNWck1QWGE0NVc1WUtScmlGS0wyTTZI?= =?utf-8?B?QkNTMlRDZHBYU1g2U2lyK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MB5488.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2022 19:26:37.2490 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xxAlCtzKahmgK6uZgZw9b77qHE7tcY5hLMC0OMeLbnS/NYI/GtdG2ARySFWnzjdVINf1gHXCziDYSEDjwAbV4yBMjIVA/ABX7Fe1YVVoKgM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5085 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/2022 8:58 AM, Tomas Winkler wrote: > Add pxp mode devstate to debugfs to monitor pxp state machine progress. > This is useful to debug issues in scenarios in which the pxp state > needs to be re-initialized, like during power transitions such as > suspend/resume. With this debugfs the state could be monitored > to ensure that pxp is in the ready state. > > CC: Vitaly Lubart > Signed-off-by: Tomas Winkler > Signed-off-by: Alexander Usyskin This is unchanged from the previously reviewed rev (apart from the header update), so this still applies: Reviewed-by: Daniele Ceraolo Spurio Daniele > --- > drivers/misc/mei/debugfs.c | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > > diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c > index 1ce61e9e24fc..3b098d4c8e3d 100644 > --- a/drivers/misc/mei/debugfs.c > +++ b/drivers/misc/mei/debugfs.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * Copyright (c) 2012-2016, Intel Corporation. All rights reserved > + * Copyright (c) 2012-2022, Intel Corporation. All rights reserved > * Intel Management Engine Interface (Intel MEI) Linux driver > */ > > @@ -86,6 +86,20 @@ static int mei_dbgfs_active_show(struct seq_file *m, void *unused) > } > DEFINE_SHOW_ATTRIBUTE(mei_dbgfs_active); > > +static const char *mei_dev_pxp_mode_str(enum mei_dev_pxp_mode state) > +{ > +#define MEI_PXP_MODE(state) case MEI_DEV_PXP_##state: return #state > + switch (state) { > + MEI_PXP_MODE(DEFAULT); > + MEI_PXP_MODE(INIT); > + MEI_PXP_MODE(SETUP); > + MEI_PXP_MODE(READY); > + default: > + return "unknown"; > + } > +#undef MEI_PXP_MODE > +} > + > static int mei_dbgfs_devstate_show(struct seq_file *m, void *unused) > { > struct mei_device *dev = m->private; > @@ -112,6 +126,9 @@ static int mei_dbgfs_devstate_show(struct seq_file *m, void *unused) > seq_printf(m, "pg: %s, %s\n", > mei_pg_is_enabled(dev) ? "ENABLED" : "DISABLED", > mei_pg_state_str(mei_pg_state(dev))); > + > + seq_printf(m, "pxp: %s\n", mei_dev_pxp_mode_str(dev->pxp_mode)); > + > return 0; > } > DEFINE_SHOW_ATTRIBUTE(mei_dbgfs_devstate);