Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp13683lqp; Fri, 12 Apr 2024 09:13:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsGSwx8tXcZJkGcrAKJvOtjGAiuAT/Y2v2qpOWnKol5D2ciFlTHnfwef1uWHPsEBhgLVfbvLyH9jrfWqgUk6wVksr6U9OXy0gzWfBPVA== X-Google-Smtp-Source: AGHT+IEDj9NsmWYgFy+A58jmM3brqYrei5N/Er5Ws+HR9krp/y815Il1xv5p5PVH0buxfHZi1A6e X-Received: by 2002:a17:902:b287:b0:1de:f91:3cf3 with SMTP id u7-20020a170902b28700b001de0f913cf3mr2560936plr.55.1712938391387; Fri, 12 Apr 2024 09:13:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938391; cv=pass; d=google.com; s=arc-20160816; b=S/Um43+PDz6ZFxr5KPEQ3QgzeXdqLCI7MVocfZJCK4GiMrFb213i+SEf/qS8wfKyGp mxMsykOFn6s5zHDIIcg/MPjdfUfBy19EMsI5bJW0wldX7mDoWh5PU7BVRYg5g2SxS10e 2lKY9I0a2gdpAa1819gZkTzHmhX+xbdno2ZJ0Zm9QB7bLjOlRW5PyEMmS+nfz2smQWvW pmHTl8VyTJ7WK6Gi1mKeyeRfPKXBRkAcOydGDpf2unzpExafB27ddneb1VRrDSYsAdnC lntP0+pJrZ9Gad5QKTtCJdUgWt5U/mG/KuzhNR1US4KHVRq5l5aGZH3HHxUiHdD/FDI/ QroA== 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=HdtKpbomFD+setwczmiH29XMpXmd2kHui3WNCenJbJI=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=eSAEfCFbOFxO4JtGflY3hIBNiqOEEIS89xA51R2P+jFjCaZKn9lEEt3TtrAEEsdDJP IQrq/eF9VwD2bkXVdJUdESeEAdxHlpuy1zmTI3HSeZh6gk+JPDo8V+okNY+yzhVLhJKr dFlE1eyV+yjsxBFIXCFTrhBe3PH43FTD6zqvfTpcsvsep9KNbj66q/21Vf+cz2dOIoiQ aKXFihuvhiNZsl0u1TBZhyFwxfiok3j/qKW8OYMs/ScVt4Dk5DDP3557iVjkPZEJinRc rtubD5GGMBDlDHtEplMUFaSLafp77HLFdLqy2FCqHtQPaUTVge5vbU0JipXTKU1YgFV8 7uyA==; 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-143024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b16-20020a170902e95000b001e59d92095dsi1795084pll.301.2024.04.12.09.13.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-143024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143024-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EA1F1283A70 for ; Fri, 12 Apr 2024 16:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6829384A4F; Fri, 12 Apr 2024 16:12:32 +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 593DB1487E4; Fri, 12 Apr 2024 16:12:30 +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=1712938351; cv=none; b=h938hvGczyoHHSJaloe5myTy31N2iNpdSBGxwotZRRXKlqnaEvo3loix5jx6TEe+ye1RmlZXWR7L4FcLpsUuEd4xJJShnygDlnZAXBJ+q5ZUTuQs/jYR4NW4UKdMX0WbChl7UP1aDw7j3IsJnd11hdJt3qkC7F3Ibn0TiCMo9ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938351; c=relaxed/simple; bh=ZB+kqkDFMBi520BBY6bwYCKsFdTW+wu7W+V5/gnp8jk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z6a6gTGHqnyQS8xmo/sRP0lh3UsDi5PltF0dI0hzWh9qQ9U2Cacjgcn7fCJqV5pQeK+I1nYlHYdghJbToaE0goPk0dNUoJo+uAf1Z5nVz7C4W1TjGwRvLNM/xt/ydxfQJ8h7SRq49ul/dKu8+i3pSYU4tQMegSwBBwRcTj53R/I= 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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM4206Ntz689rj; Sat, 13 Apr 2024 00:10:42 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id EE80B140B3C; Sat, 13 Apr 2024 00:12:27 +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:12:27 +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 03/30] perf/hisi-uncore: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:30 +0100 Message-ID: <20240412161057.14099-4-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 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/ Reviewed-by: Greg Kroah-Hartman Reviewed-by: Yicong Yang Signed-off-by: Jonathan Cameron --- drivers/perf/hisilicon/hisi_uncore_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/hisilicon/hisi_uncore_pmu.c b/drivers/perf/hisilicon/hisi_uncore_pmu.c index 04031450d5fe..5519965600dc 100644 --- a/drivers/perf/hisilicon/hisi_uncore_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_pmu.c @@ -538,6 +538,7 @@ void hisi_pmu_init(struct hisi_pmu *hisi_pmu, struct module *module) struct pmu *pmu = &hisi_pmu->pmu; pmu->module = module; + pmu->parent = hisi_pmu->dev; pmu->task_ctx_nr = perf_invalid_context; pmu->event_init = hisi_uncore_pmu_event_init; pmu->pmu_enable = hisi_uncore_pmu_enable; -- 2.39.2