Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp873362rwl; Wed, 12 Apr 2023 05:28:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bLchkqIhvs2/wJcr/tvjPeyGmYPiTqE9ZOHwOSzuStW4DNNharRpbs//z+GSL5dsrEe71s X-Received: by 2002:a17:903:2309:b0:1a2:55c9:1808 with SMTP id d9-20020a170903230900b001a255c91808mr24107894plh.17.1681302480479; Wed, 12 Apr 2023 05:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681302480; cv=none; d=google.com; s=arc-20160816; b=Pc4leI7JSQvSmp2RoDOsZcRVdXKY4Yd52hMO3MKvj9Lncx14uzt6C/NMPBcgGzcANl El5Vq9IMUEnY39l9AiyJGq2ARfgRmQ8EpHf3Rnfm1pKFe9fEePSbdBLEbmPbtyp8Pgfq zU9x5zxyRQo4isRm8E7qPo+lIP9kxzKP+sCAlNcg/tz1Yl89PgonbZfpK7xUPAGS4yHY jrn42BeZFnIHbmBhGLQxbo/0Idceega3lc/MSw7bhgHqvhyEjibC3Bf4Zj2ZYd485vax xbUgwip+GLOPq5/2SOuPdHvjLxAFpij6s5w24Hvl9P/6LkUzPhJ8EJ7+V6+zc48ZiSUs sm5w== 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:subject:user-agent:mime-version:date:message-id; bh=+VvWX8Ezc9dy4dG8e4sBzMp+hMqRDDM6/ommg6o8EFs=; b=0nRo2DxZbLhTLpu0Kl+ny2ZBv0iv1q12+wYKXWDU5QZQq7kEhva/zHJh0oH7hMkh/b XRr450uREz8Cc+/e70FYTNPrjOprclnV/dd+ix7ys3rjzOIYRZ1jmT0Av2cQCMJBTrDk nUhYU4UJBmJjOnQzoy4JXJoibanrm94/LEmepChjIC/Vk6APmt6NTZmXvdRwxEp9sPxn GgGHFQlf6DNfrUvIMoVz7r2/89u0eaB2QrSHaTGHlQigaNlrYNTz13wAA1l0ClZx0V2A myzGCBSaG3f30jEMkI/wqLk03LcQX52foYyWZ4nrdaL7Kte0NnFeOnJZ3H/5S+jSZRtY Z4ig== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b001a6477cf78csi7147146plr.295.2023.04.12.05.27.48; Wed, 12 Apr 2023 05:28:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbjDLMI6 (ORCPT + 99 others); Wed, 12 Apr 2023 08:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbjDLMIe (ORCPT ); Wed, 12 Apr 2023 08:08:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D36461B8; Wed, 12 Apr 2023 05:08:27 -0700 (PDT) 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 1A5A1D75; Wed, 12 Apr 2023 05:09:11 -0700 (PDT) Received: from [10.57.81.24] (unknown [10.57.81.24]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 50A1B3F73F; Wed, 12 Apr 2023 05:08:22 -0700 (PDT) Message-ID: <0231f528-8b45-a07a-880e-dbd16e430315@arm.com> Date: Wed, 12 Apr 2023 13:08:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 25/32] perf/arm-spe: Assign parents 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, Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , 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: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> <20230404134225.13408-26-Jonathan.Cameron@huawei.com> From: Suzuki K Poulose In-Reply-To: <20230404134225.13408-26-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,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 04/04/2023 14:42, 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 platform device. > > Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ > Signed-off-by: Jonathan Cameron > --- > drivers/perf/arm_spe_pmu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c > index b9ba4c4fe5a2..a98ef633fa00 100644 > --- a/drivers/perf/arm_spe_pmu.c > +++ b/drivers/perf/arm_spe_pmu.c > @@ -955,6 +955,7 @@ static int arm_spe_pmu_perf_init(struct arm_spe_pmu *spe_pmu) > > spe_pmu->pmu = (struct pmu) { > .module = THIS_MODULE, > + .parent = &spe_pmu->pdev->dev, > .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE, > .attr_groups = arm_spe_pmu_attr_groups, > /* Acked-by: Suzuki K Poulose