Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3556835rwl; Sun, 9 Apr 2023 19:10:33 -0700 (PDT) X-Google-Smtp-Source: AKy350ZaAebkdmN2WMZWByZFqTuW3TBLZwI0QniYrWmRXHGldxscCv5SZDUBLdG4FrYgxmNr20Jy X-Received: by 2002:a17:906:768a:b0:932:4255:5902 with SMTP id o10-20020a170906768a00b0093242555902mr4324140ejm.76.1681092633434; Sun, 09 Apr 2023 19:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681092633; cv=pass; d=google.com; s=arc-20160816; b=XHnYss0+behE9+KHdqZ/b7qj4MgXTsA0Vvqnk3vjjvrHW+gBrvME/umt3yRDrIcmXA Ucd7Rpaykhui32A2hkqcnhy2sREx+BYSyYnFkreEc4PJMQuNJXO8m+VvC90h4mf/cYH1 RHAUC008wp2KDNhLPGr5fIIJuVSFs6buVoRLC7ovZ8SdNxJq7r82y3y1xMFrKlAFY7rR eCUSgb/GPECSYWSvh5k89mFg7dR9Q5UFmEY58HdnnBNx6aNc1co33CZCfJwwkyaI1h2k DXySFGGMHrARb52fgkzEbfu98sar9jpqb3GVD5RbvJgZeYZ00WdhFvC+xZyn2o3SOP8Z WZ5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id; bh=o1G12H+m1lle0qjW01b99nYxWoMBLDUQ9f7bDcn+7JU=; b=SEQqkyo7PIRvukXpzRb2j/NCvsSJmj/4E+zJprsMpyhERsRu7Wm64LSYd8ny3A5JSC /mfvTaSV4kmPpFItEyhDjY4wu8GaNE2EvaMOXGsJU7TeITDRBs89UgruZVAYrdFsAFIR p/1AsaxLwWFnJNmXLpGUvWpr14BrKNI5Pd2I8lS51N0MuM15Kb3ILv3iO25Jvf2FY2M2 CA6LFVR5u78U8WLE5fjmSXbffR/QqauR+veHdVtujSGemnYj4E1wt65HVH65AmRY6/cR H6L6TAtv7hK47iYhWEuEuWhv+ACCsJ1UB1/Xq2QfDizetGy4VhLp7BMX461MSxn3Dhi2 I48A== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170906274e00b009236b7f4417si8879146ejd.527.2023.04.09.19.10.09; Sun, 09 Apr 2023 19:10:33 -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; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229565AbjDJCAJ (ORCPT + 99 others); Sun, 9 Apr 2023 22:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjDJCAI (ORCPT ); Sun, 9 Apr 2023 22:00:08 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2101.outbound.protection.outlook.com [40.107.117.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 874F53590; Sun, 9 Apr 2023 18:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lR1oWJwJ+7bdxfqMdR+BSmWmcV4P9YbcK09UCTYd+T7cF8CHSkBXcubZcfi4zViYjWDUWNrrIIk+nD3N/h6SkZ6G5y5+KvCPZoN+Q723EFDdZUSLF/QAyahugCaxTVkGjlzdSeNYuBnlHq2OM9taNrfIFhXFql/ltEmoX8k/fLb2MQBrDHfddVnfDJ0+5SBziuy1nnv+YCoCJ0R8H93H4eYKZZcCXw2Rj8A2eRvekBngjWzn4+ZBvOdk1QMe2DCEbhWY/pZFV2+hhY6M8RGxh5UHK4jmP5+fBhwq7XvEE1FE7TEdCjI5mLRfsGDD2OuRSLaPcbjl7YJCs5RbleZnnQ== 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=o1G12H+m1lle0qjW01b99nYxWoMBLDUQ9f7bDcn+7JU=; b=kjQSBv3wNQQ2CVHaWAOaWt/h7r6qIxqW8w+o9+m4IqlY5rV/faNop2aWBRSVqqussOit/FlrUNiY9m7BByls4UiY7fFMi2aj+GIoSfzwh4HDXsHTIl8xf6rUt/Ipj1qOePDSyBC76HdiK5aFxcWP9UqVjfglKtGc6XH7WHFvyxdtrmP5d0ft//YI6S3qj04ouJ/NXGMbooMNO3FDitasivV1SsEiuDF3W/+LMNfKECNKnbiqNx3KMfOERYz4IfZioyi3T8QJRZBEMuM5I1yxS3bUXJyLBUndqNPk+e1/Mvzu+rh+Q5xpxy/znsMHUQSjaviypFxQ9vZdX4KehyiRow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amlogic.com; dmarc=pass action=none header.from=amlogic.com; dkim=pass header.d=amlogic.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amlogic.com; Received: from TYUPR03MB7232.apcprd03.prod.outlook.com (2603:1096:400:354::5) by SEZPR03MB6761.apcprd03.prod.outlook.com (2603:1096:101:64::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.33; Mon, 10 Apr 2023 01:59:17 +0000 Received: from TYUPR03MB7232.apcprd03.prod.outlook.com ([fe80::dad8:bd4f:3723:f3df]) by TYUPR03MB7232.apcprd03.prod.outlook.com ([fe80::dad8:bd4f:3723:f3df%6]) with mapi id 15.20.6277.038; Mon, 10 Apr 2023 01:59:17 +0000 Message-ID: Date: Mon, 10 Apr 2023 10:00:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 07/32] perf/amlogic: Assign parents for event_source devices 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 , 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, Suzuki K Poulose , Liang Kan References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> <20230404134225.13408-8-Jonathan.Cameron@huawei.com> From: Jiucheng Xu In-Reply-To: <20230404134225.13408-8-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR01CA0154.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::34) To TYUPR03MB7232.apcprd03.prod.outlook.com (2603:1096:400:354::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYUPR03MB7232:EE_|SEZPR03MB6761:EE_ X-MS-Office365-Filtering-Correlation-Id: 216fc914-f088-4bdf-af84-08db396730f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: isYHvjh0eF3zFwGOydX+UWw9j+XydC3RQw5QDVIeJGOLTkBPxORkQ4ZWZGOIC3TFLQb9qMQTiyijV0/n8eixEPiH/EpAvCWc39WltHgL0mpeEotENm1m5GRSenYWJTD/v1khwZzuwWjCY2NDKn81BxTyM3rWB8//nCSkSOyDOaaxxnZxQ3Eed0OTiYkV/soPmEsEZW1bydrWWNtdQfzzh7aPvF50RkgFqNLEPrEm85DTomxpww+vhgrgRq762G+uNhgx4o+Dwv5Ag68jT3WLPOCyv5inF4zCAawOE6FF9UP6g/Lz1oHoQjx0a7GoWAICY4eFAZ0fDmHB8QIfmGImVs3X/TBcluFwdrvQMo6H4+Fs3F3psTVlx+jQK4UL7XtGHqVEW+8xG+UJPAFChdeaxVjIerz8ef+WC3DWWWQtJCyyD/SgEcZP2d6QO7dH7+Js0WCVl0X4F0ss05QfFpeKdnvjkKyQcCbEgWQ+/xKABOHj+V6gIk0iyK+J6bZIaWsRNaoMijkfzZQ3Rlom+2UMo4BwCfMRPKa4DryqfUfGP+9u5vbUmEOEgY+A1wQixe5RgmK+tbbKn1YVb6ly48vPChyec6XQtFSGHX0ZV5TWroErQMW2X+lyiIU8k7lYB6FTlzzrJOdI63zGSt6/Kl9M/2AJku5EVQYTVLydSplpSfrAmmT72jOw7szBjBAFjvThWiMXgo8RARoTFMqYIwUdGg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYUPR03MB7232.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(136003)(396003)(39840400004)(346002)(376002)(451199021)(31686004)(52116002)(6666004)(478600001)(86362001)(31696002)(36756003)(38350700002)(38100700002)(2616005)(6486002)(966005)(2906002)(54906003)(110136005)(316002)(186003)(53546011)(6512007)(6506007)(26005)(7416002)(4326008)(41300700001)(8936002)(5660300002)(8676002)(66556008)(66476007)(66946007)(7406005)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eDRBeGMvR2ZZQ1lIL2htQjBJZ3BrU1l2L04wR0pnMTVpbXA3VTdOSzZMQkwz?= =?utf-8?B?Q3NZWnJ6ZW03WUhqSzEyQnU1U0xxYXZBQ0dTKzNRSTZTckxNNnV3OXZvNk11?= =?utf-8?B?YUs0VExXNGg5Z1hHVDlkWTUzcVpqemlHTHdEaVV0M1MyT2ZteU9heVFlMGoy?= =?utf-8?B?T203SXJEY1hBYTFWNThWRWJlSmc0dFhpTkowNGZyTy9yd0VlNzV1dUF5ZVZN?= =?utf-8?B?L1lCcVYyb1NZTnJZNS9HamY1WjNnVlBRK2RWVVhjZ2pkMDhlcTRYSnVxb3Jz?= =?utf-8?B?d3NVVjRSR0k3cXRNdlJpQ3BJcnZ0UWlLMVgxekFZdEZadlF3S2t0UGxtemRs?= =?utf-8?B?RXQwUFBOQ3pXNUt5UklMMElxVDljelBpQ3VBYXAwYld3Tk0wcUlLVW14OGlo?= =?utf-8?B?Uk9mTElFdlJlMjhLTHhndWZ3RkJHKzhGVE03ckVqaWNXSU5RZitPUmFYaHh5?= =?utf-8?B?REpCV2VaSFl4em40dFR6WXl0V0UybVpZeGRtdHU1enhNR3hqWXVtTUs5TWRO?= =?utf-8?B?b2M0M25QZkFCMWhXeEFrQnBpMVYwendzejhSVTR5Q3JsVDNNZXFDTk5FT2RR?= =?utf-8?B?YVJiYUI0WXlFbUJwZytSTmZDK04rdGVwcHB4QUp4cHlHdDl0Y1MzMUVFK212?= =?utf-8?B?QzNVSXZvQ0twRHRBZlh5TmF6WUM0NFcwajRYWEJET3lJVUZCZTBPV1RVV2s3?= =?utf-8?B?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vbEFUeGt4WGlPUlF6?= =?utf-8?B?SXlFa2poVTFzVUxPbkpWdkpXd0RFQ2pmZ09haG1XTXM4a2cvbUI1NFF5Vlcr?= =?utf-8?B?U3Zoc3g1cWZlc2Q2S1dkbDIzMHNXeTNHVGFSWm56d3YvWWJDZVZBTGcrbzlO?= =?utf-8?B?NmpZbDAvc3Q5ZU1tMmNkbFhBL0k1R0lnT0FOZGF4MDlvQ0YzdXNMbDgxdGFm?= =?utf-8?B?TjFNaUp0Zk9nRGtwYkxDRnlCdmdRbGltOTdZc3RKQXBnZzFLcVd1TUNpc2o5?= =?utf-8?B?Z3hCZHVxcDM4REF1dEh2eHNBR1RWMVpOalZmUHRTZ2FLcG4xejlXVi9VaUdJ?= =?utf-8?B?RlMwRVNpYWNYaW5Ua09nOW5XYzh0cEJFWVVBR0N5R1ZHblB0cXd6RXYyNzRp?= =?utf-8?B?UUNpNkNYckJIUHNta2hVMHNtcVJmYW92WU4zZFE0TXZMN0oxdFVEaXl1M3hS?= =?utf-8?B?cW14MjBMMzVxRTJGdlFMeUxJaEtac0FHU2c0bDJTUGE4QmUyQWpmTmRxZCtJ?= =?utf-8?B?dlVPclp0dnZsbTQ1dFlteVZPbUZ2RGp4Tnl3OVhlbDEvQXF2NzlDejRkS2h6?= =?utf-8?B?WWc9PQ==?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: 216fc914-f088-4bdf-af84-08db396730f3 X-MS-Exchange-CrossTenant-AuthSource: TYUPR03MB7232.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2023 01:59:17.4660 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0df2add9-25ca-4b3a-acb4-c99ddf0b1114 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6095LAkJfwCU6KtEc4UBEwZVbNefr+0B+S2q+mMg21B66duFW/YoVU/hkcKnZSiPtesde5uG4ML+7Zn9SbPA5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB6761 X-Spam-Status: No, score=-2.9 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 2023/4/4 21:42, Jonathan Cameron wrote: > [ EXTERNAL EMAIL ] > > Currently all these devices appear directly under /sys/devices/ > Only root busses should appear there, so instead assign the pmu->dev > parents to be the platform device. > > Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ > Cc: Jiucheng Xu > Signed-off-by: Jonathan Cameron > --- > drivers/perf/amlogic/meson_ddr_pmu_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/amlogic/meson_ddr_pmu_core.c b/drivers/perf/amlogic/meson_ddr_pmu_core.c > index b84346dbac2c..e0d3e87457e0 100644 > --- a/drivers/perf/amlogic/meson_ddr_pmu_core.c > +++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c > @@ -490,6 +490,7 @@ int meson_ddr_pmu_create(struct platform_device *pdev) > *pmu = (struct ddr_pmu) { > .pmu = { > .module = THIS_MODULE, > + .parent = &pdev->dev, Reviewed-by: Jiucheng Xu .capabilities = PERF_PMU_CAP_NO_EXCLUDE, > .task_ctx_nr = perf_invalid_context, > .attr_groups = attr_groups,