Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2339772rdb; Mon, 5 Feb 2024 03:41:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJs4uMnzCrEkDH3c9n0p7IM/q6PbVTwg4k7zcExPIcLw1/p0nBX9c3S7xcnJOui2Py+noH X-Received: by 2002:a17:90a:d103:b0:295:eaff:78f3 with SMTP id l3-20020a17090ad10300b00295eaff78f3mr13521580pju.8.1707133291064; Mon, 05 Feb 2024 03:41:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707133291; cv=pass; d=google.com; s=arc-20160816; b=B7Ydev/Sg3XqOrjpvDwWKlHhjDVkJli6ckuF5iiNt8/GtjwsqpT93kA9hD4NXGVOF9 rkcZQVmID4CCnpJrk0ZvPgwCDawP+Vn3B7Ol7XHXb9kGuB2OVGBiRhdioT2SmqzfVWHf M906CBZVlDjnkIjynXjNuOP7B5odgEamPpP+eoiQ4nLetBf/A8i2tX4pZdMfph6BrP+N UY5qnYDqq6DFL4y3NEiAkgO3dNpOwwRU60zPgZ6hE1kGDq0KefVynOzdfhHX+Prue8Le jnJ18V6wA/XIkHQ2QbxMoq4UeoUV0FffIe3DLG4g7H4hsLef80ZZ35Kk9SZNn+tZ6vfL tlQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=4p3NTc+pRHaPzHUPsnGT/3Vj02uPETfwcPO5uVZguBE=; fh=Q+0eqAnQC4nwdSCC0lPtPuMVWlzSSGLY137FvvHkcJU=; b=OhSO+NLlz9MM9s8JU1GgJIRLQPHd3iZotngLmvsPL4sZzixae6qsIKKD/1SHOzwctV 8jqi9iekQzudoGwTuG8AaGE+ZjqVDVCwSOpKB8+AAu35CLjpgP3peBrW3Rp7ee7mgY47 Rawg9JvtgGRwy1eFPef2FQHgb0FcnwrxIcCfVMvMB1ZLDg5BFx9MFVstctkeY9HlWFXu r5uK8kquFgV8sXiy+ln4udjyG2rypeFBYTX9IVBoVDnm1kNdNzCab5Epl9OOWQMkasO6 srqJTufduDMe1wrkI2I2GYkHnUa2tWCHzCfnnPzCGU6Gdn2k27H4l0dp3FOSuow7VIZo AyGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-52470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCWGPU1V54llceFUqP1mFDhr1KCZKmfRDthtruO/pSKgZ6BrWzXlS4qX18iakq0ethSFPLlnGw7a/m8jByAGtwZA4Xp4NEEiIm1QUWa8Ig== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mp20-20020a17090b191400b0029692773271si1801953pjb.153.2024.02.05.03.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:41:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-52470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4178FB20D61 for ; Mon, 5 Feb 2024 11:14:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C910618639; Mon, 5 Feb 2024 11:14:00 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C98D018EB0; Mon, 5 Feb 2024 11:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707131640; cv=none; b=XEZnmd5PdV8Xv6wqgz/uqrfQVWB0NaelMPMocV1VtKQ1Ye8m30LWVPvakqQ8SAmDijC4RgGJTEurGUSwhhe9qMmoVzVj+xFp1tFcfFZt1fdYtJZx/fsx82UgcKv8/D1PIdGtR06xFs1+FNssqMzYiIV5HfxeO/RvqjZuW5F/ufo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707131640; c=relaxed/simple; bh=S7C/kWLN5RArPUjnyoZ+KqIZM3xJ1mKOXrMvB6ObfBM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kQJsnfLvMxAtkiQX1Mnb/YduxbE2RvUlI1Prej9131/+lifc2oBZ9EqRuUhM64VJnCU7vOKUcVkvi7a0yQlswi/F0vTXdCfqJdg6PsgOWi1Iaz8wI+AgyV+ZgcKEXa802zJh6ymuFHVSnvyNY0erIkPGurstAppa1QZ5k8QmNA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TT3Zl6SL9z6K6Cx; Mon, 5 Feb 2024 19:10:39 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B7450140CF4; Mon, 5 Feb 2024 19:13:51 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 5 Feb 2024 11:13:51 +0000 Date: Mon, 5 Feb 2024 11:13:49 +0000 From: Jonathan Cameron To: Masahiro Yamada CC: Davidlohr Bueso , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , , Subject: Re: [PATCH] cxl: remove CONFIG_CXL_PMU entry in drivers/cxl/Kconfig Message-ID: <20240205111349.00006ea5@Huawei.com> In-Reply-To: <20240204094613.40687-1-masahiroy@kernel.org> References: <20240204094613.40687-1-masahiroy@kernel.org> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sun, 4 Feb 2024 18:46:13 +0900 Masahiro Yamada wrote: > Commit 5d7107c72796 ("perf: CXL Performance Monitoring Unit driver") > added the config entries for CXL_PMU in drivers/cxl/Kconfig and > drivers/perf/Kconfig, so it can be toggled from multiple locations: > > [1] Device Drivers > -> PCI support > -> CXL (Compute Expres Link) Devices > -> CXL Performance Monitoring Unit > > [2] Device Drivers > -> Performance monitor support > -> CXL Performance Monitoring Unit > > This complicates things, and nobody else does this. > > I kept the one in drivers/perf/Kconfig because CONFIG_CXL_PMU controls > the compilation of drivers/perf/cxl_pmu.c. > > Signed-off-by: Masahiro Yamada oops. Reviewed-by: Jonathan Cameron Thanks Jonathan > --- > > drivers/cxl/Kconfig | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig > index 67998dbd1d46..5f3c9c5529b9 100644 > --- a/drivers/cxl/Kconfig > +++ b/drivers/cxl/Kconfig > @@ -144,17 +144,4 @@ config CXL_REGION_INVALIDATION_TEST > If unsure, or if this kernel is meant for production environments, > say N. > > -config CXL_PMU > - tristate "CXL Performance Monitoring Unit" > - default CXL_BUS > - depends on PERF_EVENTS > - help > - Support performance monitoring as defined in CXL rev 3.0 > - section 13.2: Performance Monitoring. CXL components may have > - one or more CXL Performance Monitoring Units (CPMUs). > - > - Say 'y/m' to enable a driver that will attach to performance > - monitoring units and provide standard perf based interfaces. > - > - If unsure say 'm'. > endif