Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2646157imn; Tue, 2 Aug 2022 10:31:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tokeAGKQzcm0Xpm7lel5IWFVLIH0eYi/FZ8mTDP3JbfWs0pB8HBefP/ufovUbLzXaWBogT X-Received: by 2002:a50:fc89:0:b0:43c:bf1e:165d with SMTP id f9-20020a50fc89000000b0043cbf1e165dmr21189176edq.161.1659461516775; Tue, 02 Aug 2022 10:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659461516; cv=none; d=google.com; s=arc-20160816; b=alp35s6oOvrz4J/Xps01DMQu1Ke63BHSGQpTeWA+diR2QZhh8EwVN3bzfKZiYZtzyK ouQApfLWcTA673Jf8ZhDZZi2sA5I7/Lodfw6CzIAnN7i6sWqRq9HRSR9T2Xu6Y8otTrW POayic2EHcNC9mFIfxbWcU66bTtRY7Y1bk1aG6I31f/KlfeC5Q7PrDKGyt4OjZ9WJpG0 9S/5B6mdRblJlzmMJq+6HQ96dCffrZHqdJrEcS7GuLKt0z60yptNM8mG51wTn904hiHX fztafU5kILdpFqEE1YkF8iWVyWO5IsQzHjAzVMfx/zMW2gQYJNDUUnrzoX816tUq+N30 e3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q44IGYlabPl7iCfOg14JlW3Opz3eduyr/YUaR2WYvhY=; b=D7kHZB2u4viBYwaJvdqFiMdk1K8o47tNy9u3UwLhmJ+RiZdUXpLfsHc/SC8xbato49 ADADrSFXgQ1FZCXFBVUVGB5OwgA2EHY7m5DzyQA+mLqQgRE7FcPRFLG+LKoAnkn7z/2f e8C/kkUEyRjaMBiYtp70rd2Bcywu6cOjF5ojpiRZQuRJyKcC9Qiay1Pi/K7qWLMHRoZ4 qqwknFNl4CWSZizxeOo44fQNusChC+ISZW8uhln1gPkEZvXSu1Ta1kVA+dD9QPa1yYV/ ffN+neTA78ODTKXgXxIPmmm4xPZ2SDjN0E9CihQOIq35WSQOaOk/IR1ay6vf45FKFCJ0 JlGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1idJGrM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho40-20020a1709070ea800b00726b8cf8defsi11342573ejc.949.2022.08.02.10.31.32; Tue, 02 Aug 2022 10:31:56 -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=V1idJGrM; 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 S234379AbiHBRXI (ORCPT + 99 others); Tue, 2 Aug 2022 13:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbiHBRXH (ORCPT ); Tue, 2 Aug 2022 13:23:07 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A9648EA9 for ; Tue, 2 Aug 2022 10:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659460986; x=1690996986; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=sFeSnQ3Jh+eJSBpBMVT7FWaGVkgqv+hXL8zcIgQ/F98=; b=V1idJGrMGnoNj9/7r3lxLDcE2UKfvCWdTuVieW8N2MoqMoOnCqilv8we n6Zw9nMd9M4SXS5Jizp4FKocDrK41kCuEwxeigqMkN+0qqPWN+tdRRE7E MSDFlRALrXYhdhpHYnK6KmdXWy6doYZNtBk2ZD4xQtt1vQVkmRLWyo8TL AZd+MFmudC0S277IhHlNdCxizFTfbNHX9ksvIZd0ZCnjCXsbch8KVY83o 9jdF/0+VBRtp4RcP/yRGs392sKQfKD/sVj817rN2TLeaMi9kcWMY1S6WO B1QDCM/T38RVQeVRxfi9GLcHEYBfasio5K6KA07DkkpTeg5lJDaByafyq g==; X-IronPort-AV: E=McAfee;i="6400,9594,10427"; a="290687355" X-IronPort-AV: E=Sophos;i="5.93,211,1654585200"; d="scan'208";a="290687355" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2022 10:23:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,211,1654585200"; d="scan'208";a="552993217" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP; 02 Aug 2022 10:23:06 -0700 Received: from [10.252.214.98] (kliang2-mobl1.ccr.corp.intel.com [10.252.214.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id ED34E580AA7; Tue, 2 Aug 2022 10:23:04 -0700 (PDT) Message-ID: Date: Tue, 2 Aug 2022 13:23:03 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH V2 1/5] perf/x86/intel/uncore: Parse uncore discovery tables Content-Language: en-US To: Lucas De Marchi Cc: peterz@infradead.org, mingo@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, eranian@google.com, namhyung@kernel.org, ak@linux.intel.com, tilak.tangudu@intel.com References: <1616003977-90612-1-git-send-email-kan.liang@linux.intel.com> <1616003977-90612-2-git-send-email-kan.liang@linux.intel.com> <20220722125552.fmljascpvmi2b6ec@ldmartin-desk2> <8c122462-afa5-bdf2-8bfb-910ff59ada03@linux.intel.com> <20220723185617.vz3swht66lbtuwzl@ldmartin-desk2> <20220802142213.d2f6qzwl2w3sfm5g@ldmartin-desk2.lan> <20220802160237.uqgez4f3ctm7rpyc@ldmartin-desk2> From: "Liang, Kan" In-Reply-To: <20220802160237.uqgez4f3ctm7rpyc@ldmartin-desk2> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 2022-08-02 12:02 p.m., Lucas De Marchi wrote: >>> 2) Trying to read the MMIOs when device is possibly in D3 state: >> >> The uncore driver skips the device which doesn't support the discovery >> mechanism. >> If 1) is fixed, the uncore driver will not touch the MMIO space of a PVC >> device. The power issue should be gone. >> >> I've already sent you a patch to ignore the PVC added OOBMSM device, you >> can double check with the patch. > > (2) is a more generic issue that I'm mentioning. Forget for a moment we > are talking about PVC - that will be fixed by (1). We are trying to read > the mmio from a device that can be in D3, either because it started in > D3 or because a driver, loaded before intel_uncore, moved it to that > state. That won't work even if the device supports the discovery > mechanism. The uncore driver is designed to only support the *PMON* discovery table, not all the discovery tables. The DEVSEC_ID 1 indicates the *PMON* discovery table. For other devices which support the discovery mechanism, they should use another DEVSEC_ID. The uncore driver will ignore the device. Thanks, Kan