Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp16897lqp; Fri, 12 Apr 2024 09:17:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoeezbfBPrV/VdRU3nIk5BF+8uncUnB2wUj+halXgQ9wj3M4q83ljQMnu+4GibkfErl5w/V8uciB7NGzSKB1IeK/TumbCcQ4VCUT5eDA== X-Google-Smtp-Source: AGHT+IEKFa1DaXQRXaTLW09G/T95+j6YC2Tba4L4nPIVsn9/wU66WiRhIO/CC/zXTqlZn44Oqmdm X-Received: by 2002:a05:6512:4ce:b0:518:9eca:bf6 with SMTP id w14-20020a05651204ce00b005189eca0bf6mr202529lfq.69.1712938646168; Fri, 12 Apr 2024 09:17:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938646; cv=pass; d=google.com; s=arc-20160816; b=IP+hPSpjhzy4mmoQC3s8NqZQnSgqatodRxWl/OeG9FrIggbismCcKLJZoCEgfV/MP2 LxV6NxPYgubwpheSnrpSlpYaDiMuQ5TQhSe14BFoGu4M+F0wZvexQJ3uyXOVH/UEQ0rg DNOKz+wtLvtoFvKp+oSU7Ra6mtlalq9Qj2Xn56ba+smrZ6/icqHSWNaEmYJDIt7ieuvP 6XEJl1BweJk6Dr+IcqvdFwv05kRlRGnnwO9ngMhYtKZRfcBenlO6fhoycFKC+4OfVaHC BlqfR7hm4sRfoNxdDB7jBeQGUnT5whHJ/tl5R99StXO0/4x5kH9fjU54o+P3KKQUETZB GeaQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5AMzKqyoBqXETuWzKJv5WJIx9vbE5CEgjHX5OHcKJSo=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=tWEPMBvP65rUuDKXB0RHUcQpO9mqitOBKlXefJm14Rc1ZMe8djcSn7t6/SPqPSxxNZ 9ruQ4DFQdnss85aHXK6yacDTZR0vtY4Vgva8ItuTOXOPhyf+iSrrFl9iZuCT/sQVTQTs xKBrmnQxfgh/EN+aCmdh80GXdt7KrPxTsXSeVMrOkxMnWO+FFgu5uV82FVWuvfthd1Dp sSt6r3lzglpd56503MguzQnhAGzf2ks0gfTFA27xdLDusNDcRnRnOkCh/C0koWB3LI77 iwNb3ciYo1zqm2mkdzlHmK20G66QhDNlW1ApTrmWI63A/G7lzmaHQMOd9iW0jorCEEcO lA6w==; 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-143040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hp15-20020a1709073e0f00b00a51a9b05607si1770560ejc.411.2024.04.12.09.17.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:17:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-143040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143040-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A0FA31F21F07 for ; Fri, 12 Apr 2024 16:17:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE53A147C7D; Fri, 12 Apr 2024 16:16:41 +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 15CDE1487FF; Fri, 12 Apr 2024 16:16:35 +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=1712938600; cv=none; b=sykD5nTQHU/g8curEpKXxhO6dgjQmki/Gk2LKsqfSPTPXGERAOa8s4Zkfo8xjoxkTYxK4Z++RX2qWc+pFstCgW9olBllBpivyHQJ63QUJADZ+a+UVQxluRFinKUTp5eRk4bkH28zZFSijCGtYLAfkKamQy7k7Oc37H/7WWjMuKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938600; c=relaxed/simple; bh=UTmBGfCL89xYsE05whtOjzMgevEx1fJhhdN5vbKvee0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IxYrYjOGp+yN2QlHtGCBxCkGBhNt+1i//7ZcEO3eFScyJcOlmCIQUj5bMxMzVt5sYsV05gFZeTP5npe/aEUz0Q5WaUqJZdADR7A+UQVVJcHeENHbgFUfv9nWSJM1cTat9R/nLiuIOf/8tqndSQQBcdL7QHG8Ovfz8vXNMB1/ALs= 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.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM8n1JBKz6K5s9; Sat, 13 Apr 2024 00:14:49 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id AA0E11400F4; Sat, 13 Apr 2024 00:16:33 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:16:33 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , 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 , , Suzuki K Poulose , Liang Kan Subject: [PATCH v2 11/30] perf/thunderx2: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:38 +0100 Message-ID: <20240412161057.14099-12-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) 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: Robert Richter Signed-off-by: Jonathan Cameron --- drivers/perf/thunderx2_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c index e16d10c763de..4af1510d196d 100644 --- a/drivers/perf/thunderx2_pmu.c +++ b/drivers/perf/thunderx2_pmu.c @@ -729,6 +729,7 @@ static int tx2_uncore_pmu_register( /* Perf event registration */ tx2_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = tx2_pmu->dev, .attr_groups = tx2_pmu->attr_groups, .task_ctx_nr = perf_invalid_context, .event_init = tx2_uncore_event_init, -- 2.39.2