Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp22545lqp; Fri, 12 Apr 2024 09:26:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhi5AqJqdBq5t8DlFFMSOOQF6ozy/+nPeoO7cber0Urvj/OCfbEAaTUht4O8KOsEzy4OKOFfB/Zc4ABVS4zwKDwd8/YoTxgEZQZEFUCQ== X-Google-Smtp-Source: AGHT+IG9sXhs20i2ozDq/KjTT3AOxAeEDP4bfOD+644q+5yq9n06socrGJypzUe40ER/7wlDZiml X-Received: by 2002:a05:6a21:3707:b0:1a9:5e63:501b with SMTP id yl7-20020a056a21370700b001a95e63501bmr2555503pzb.44.1712939179901; Fri, 12 Apr 2024 09:26:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939179; cv=pass; d=google.com; s=arc-20160816; b=z2MA8GnDbYWtyTlSinFwZwyO8i1S905IN8F9JciwF01rYCJSz/f3qaZCfaZa/YIPY8 LCbLMyUS8XrBEjVZosXMnT2gHU9ZVDrhsvaeXWgxfkj8ZrfOdpHOj77+t0bTKeAGgnJt Ku3YEGTaBJ7CxkiOagfwXbhBZbkr1I/WhVIujqzwmmoHoeMxYFdtvVOVfkKBF0R5Bcg7 EokkV0wCXnEX2Qy8g/w4ZKc68L/PIYKXhgAZ8+2PD8pf/LbX2VxOe6A72HbmNLat2FVF dqI+qRIvBKAhDWxrKTcDt5S1oG+g1IFcrceCrBpAyMtXZO/GIp0y3eF2yT9QjI5TPRsU a8eA== 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=+6pJ2biC/44SP83rhltRMKvOtgQTQsWsNMPUYmt7J3c=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=bgwIDGgLKFv4FOKEuViHSseqgEx+jBXdAQVRluycEczAkTzp7rSK//+tEmO0Fj/eoE TcUymh8jIgZyYPXczHPVRYy+hRqTIulj7irs0WTDXSxoAnPcHNovKGqJ9kvIDNWmE8a8 x0WSIJBQHPuWdqVF75AtcEZCeQXVqvkGOKfHFoHKssmvVmBS34iXuY5Md5rhnvAU81VA XnAydxCNU3fn6uLn3Dm3O2pKr/eygQ7sy8EOZhZBoSrGvt50NO1iasfOhkUl2ID1vguQ QBoRUJRHQT2Ay14KPx0ti0z1xlYf1bns/J3eP1jQ5ULNA4Y2m9T3mI1ccFfZ9c6XYeBL DE+w==; 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-143074-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143074-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 j22-20020aa78d16000000b006ead015f850si3577483pfe.291.2024.04.12.09.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143074-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-143074-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143074-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 513FB2847EB for ; Fri, 12 Apr 2024 16:26:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA40B14A09E; Fri, 12 Apr 2024 16:24:18 +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 CF445148FE5; Fri, 12 Apr 2024 16:24:16 +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=1712939058; cv=none; b=rqv4ixpj7eXuuaWBKEXqJoSVskFNOGhZLFJ3kjAj3LzIw6mHgUDUswV6H1wWrAqigarkioLm55FQnTXFY0ErpEUKpy+bX9llujsoT1CdgNUj4w7nbq8pv0YG3AmkjWZOcJi9OXYBcPSITbqAII4sb9SngGjbDefCsrPHyV/yZb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939058; c=relaxed/simple; bh=qbyzyEw1XdpC8a/J4DdW4dlAcZZ0m8aVJQY+exewmhc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HAe3VPDbhMjIq8w8mL9pFHmqjfeOlQbHLe2IgnnO9GO6GMITxDAGw5zqeCgusB3Ey39ubhFnNk8GwBqoW5CWQFb2CpoRTHbHvS99Aaco11bli45d7QwiBOA1wt7GGD2cjbsFOYWquPNASdBKC0UsYmUd7Z3DHzD81k+EtvG1qWs= 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.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMKc5fSPz67pJF; Sat, 13 Apr 2024 00:22:28 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B7A1E140119; Sat, 13 Apr 2024 00:24:14 +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:24:14 +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 26/30] dmaengine: idxd: Assign parent for event_source device Date: Fri, 12 Apr 2024 17:10:53 +0100 Message-ID: <20240412161057.14099-27-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 iDXD PCI Device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Fenghua Yu Cc: Dave Jiang Signed-off-by: Jonathan Cameron --- drivers/dma/idxd/perfmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/idxd/perfmon.c b/drivers/dma/idxd/perfmon.c index fdda6d604262..fbb586eed0b3 100644 --- a/drivers/dma/idxd/perfmon.c +++ b/drivers/dma/idxd/perfmon.c @@ -477,6 +477,7 @@ static void idxd_pmu_init(struct idxd_pmu *idxd_pmu) } idxd_pmu->pmu.name = idxd_pmu->name; + idxd_pmu->pmu.parent = &idxd_pmu->idxd->pdev->dev; idxd_pmu->pmu.attr_groups = perfmon_attr_groups; idxd_pmu->pmu.task_ctx_nr = perf_invalid_context; idxd_pmu->pmu.event_init = perfmon_pmu_event_init; -- 2.39.2