Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1945137lqp; Tue, 16 Apr 2024 02:38:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAM4mjKGkLgVDt5a+FTQ2sVxLUWV2rwS+LGzLk/clG1XVi06C1K0zPBHu1lhHvVkFW7L8F7R0pWWtCvrYxrpPGUihkS/pVWxVXPqna9g== X-Google-Smtp-Source: AGHT+IFlO80b11j7QbpQx5S8yUep3GGv3FD1lDLkTZx5NNADtSJbKkxUrqPd9ZeRTwQRQYhSWRRc X-Received: by 2002:a17:90a:ca86:b0:2aa:d115:1cae with SMTP id y6-20020a17090aca8600b002aad1151caemr374080pjt.7.1713260298388; Tue, 16 Apr 2024 02:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713260298; cv=pass; d=google.com; s=arc-20160816; b=ljcFkCEiqTYkppWFSTye6+iaC17WPRsyUYZSYm55dUARwOft2GI21qtaE3K0QoaXoX hGFFzNcSRXNfuniwun1q/UJXX1N1qt3Wl9BxgYqqNMtc8mDY5PAqRFLRkH6ZW/lzZHq6 9BAE1RUExvD/DmqttWT7gNFb2OJvUsnnoAAG+OFLyP9C4+uHQlvqyOJ1TSeeMBzxYPCf yK+Cue0AWqcX23vbTwePM2C1/UGeicxLU+FudFkUNbXkOG9rcyr5b2q9c77F7g4uGIwy vcUCLeHuZ1QjdfzDCaDArk029wMNFDNxCaWlhoGwomNlBSxpRFL+4m2kiyIKb7A+958u GQtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=4opuwmHhbF69rgYCLLJlkxmPT5K6Iku3Ssq7iHjJs5o=; fh=e1blLCJkteucUMkVDoUQb+cWVAgUhnHJGPSWsekYV0A=; b=i9S2H1ctXPz383NdXwwRLSoMm9luRuCdhz6GYtyxlzx0cEFAQvazXhreO2Y5M1V6zA kSdpT19YH6gcOqQXmYTXmxu9PHTopvbj2u6PRXJaODy6RPAzQn8cAcp6iquMqNOK3Fvu iaU+AE57x0ujUpf5BR6zoGWwGIB4dz0/wOpDendz5UJBPH1gxKOJpyV1x7Bl7avZ6c8b JPWmcGmNzo0i08nLi6FU6Myo1H6AsglD+EDDISV0k5/en55UWnfECfnZelpZ2IDlqw2t 4vYfQ8S9ci69VURME20MoZaWDK5DwBW8bVLVX5l8OCncTqWYqyogFU1XjwlSQYhiSwf5 t/0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b29-20020a631b1d000000b005dc4ec6cd2esi9186061pgb.767.2024.04.16.02.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 02:38:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 08B5C282AA1 for ; Tue, 16 Apr 2024 09:38:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CFAF85955; Tue, 16 Apr 2024 09:38:13 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 477B08526C; Tue, 16 Apr 2024 09:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260292; cv=none; b=VFoDklmxu0P6ogkJxMBjDglELL1fkPWAE6o2rzo9+LVUb8breGPrAcmmewHCVONkf0MozIzfx7dxDkL7ZV8GeVEUByLd0ZorXW+n2KNt6bW7sjbUDc44LMz1+xGTD22UIKccxg1vMzoDT+Jmj0KhGm2JO5Gu/kZF+KRAPzxp++Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260292; c=relaxed/simple; bh=sr4JscYpSzv5mAB+XPrToKBkcpaYpTMfwvb7Ut+EWtk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H8z8riMf0gMvwShtTgVEklgIkY7RtGlq8TxyXTJ8KmdjRO2EBG7/6NMN1TgVUISVae8HjFuFFxE7Jo/0ng/E1ZVP6KnMJM/xTQCvlWMk7s+dOPuzYiP2gAEp/QjgYTYy0MQq8XsQU+bqVquORX15daisDVBUGFfF5ezoZUl8Tiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E611B1063; Tue, 16 Apr 2024 02:38:38 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 772873F792; Tue, 16 Apr 2024 02:38:07 -0700 (PDT) Message-ID: <0293b97e-8f21-4d0e-966e-1a601bc923b2@arm.com> Date: Tue, 16 Apr 2024 10:38:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 30/30] hwtracing: hisi_ptt: Assign parent for event_source device To: Jonathan Cameron , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org Cc: linuxarm@huawei.com, Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, Liang Kan References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> <20240412161057.14099-31-Jonathan.Cameron@huawei.com> Content-Language: en-US From: Suzuki K Poulose In-Reply-To: <20240412161057.14099-31-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/04/2024 17:10, Jonathan Cameron wrote: > Currently the PMU device appears directly under /sys/devices/ > Only root busses should appear there, so instead assign the pmu->dev > parent to be the PCI device. > > Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ > Cc: Suzuki K Poulose > Reviewed-by: Yicong Yang > Signed-off-by: Jonathan Cameron > --- > drivers/hwtracing/ptt/hisi_ptt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hwtracing/ptt/hisi_ptt.c b/drivers/hwtracing/ptt/hisi_ptt.c > index 4bf04a977840..3090479a2979 100644 > --- a/drivers/hwtracing/ptt/hisi_ptt.c > +++ b/drivers/hwtracing/ptt/hisi_ptt.c > @@ -1221,6 +1221,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt) > > hisi_ptt->hisi_ptt_pmu = (struct pmu) { > .module = THIS_MODULE, > + .parent = &hisi_ptt->pdev->dev, > .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_NO_EXCLUDE, > .task_ctx_nr = perf_sw_context, > .attr_groups = hisi_ptt_pmu_groups, Acked-by: Suzuki K Poulose