Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6063107rwl; Tue, 4 Apr 2023 07:23:16 -0700 (PDT) X-Google-Smtp-Source: AKy350YY0A9V4CY5RnNyt8IOfVsFqLhuVoM4G03PEtk5A9ntCiCnZ/pILpS0TQPOa/2yuOCBxQfh X-Received: by 2002:a17:90a:190f:b0:23f:990d:b5b1 with SMTP id 15-20020a17090a190f00b0023f990db5b1mr3015995pjg.46.1680618196365; Tue, 04 Apr 2023 07:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680618196; cv=none; d=google.com; s=arc-20160816; b=frRZbNdfwjoglJDghHrZvFr9V2qWI8phMihA5pqOGUz95TjszofM1s9oh7LT39kKEv CYiIy7VSV+CyWNspsxQzeGkN2730JYviONIq4dX3IgXXdLz0edIIsRAuLrLWMjGOMMZt hiJuv0bP80cEzOte/Uqnv7LsRS0wYOf73DMUN3HqPtGipdNQPzccbWwJlLRde/ci5b5b 4u0XNCIEFJ/OLaYk9yKRI2AWwDigX0+gt9bCd+jj38xGDPlr2PMoTmfLvKQ4J6uqTeEF Tzp3md33fR26cJInFPz38oV8i/Pp+n1d18ti+CorGCoOaeiKC3kbsa7U0wu9/8JgLSW+ CWqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZLqH3st7RokHlMuXXOmiHA3hmuuMdRtHSjyB+hQIK8g=; b=RCoSWoTSqXd5N1pWVo82Tkw8j34FXWWHIuxtFjyQk2V+gT3arXaAQxgUX8jW4789eu C/TD7GhPAa/H6AG/CtNvHYZGxeCV/WvZkCeMwIjWq2UddiFb0qIqzgnxVeEVLt1r9hlt kY753lmrz9Q1yRFXUj4hswX+dnp3GOrXwc8J0VA4ol2BFk1NTfi1Mjt0DuZ+26YTZ7E+ R3FRB7jajUIapkVI+4oFDTG4fzGehOpEa2fSq+HZt+ltKHBnijR0+BkJDwLv8NAI7NOY V/5gzygTFSoVgWQ7KqInQs8hAi843AiAQgZ3nDRXE67IutuCd2A42ERRcH3aH6TUhD7j 2KLw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a17090a9d8600b0023f09937e33si10093074pjp.67.2023.04.04.07.23.04; Tue, 04 Apr 2023 07:23:16 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235160AbjDDORH (ORCPT + 99 others); Tue, 4 Apr 2023 10:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235079AbjDDORG (ORCPT ); Tue, 4 Apr 2023 10:17:06 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E141E99; Tue, 4 Apr 2023 07:17:05 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTn71T0gz67VxZ; Tue, 4 Apr 2023 21:55:55 +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_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 14:56:40 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , 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 , , Suzuki K Poulose , Liang Kan Subject: [PATCH 28/32] dmaengine: idxd: Assign parent for event_source device Date: Tue, 4 Apr 2023 14:42:21 +0100 Message-ID: <20230404134225.13408-29-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 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 d73004f47cf4..4d61334a814a 100644 --- a/drivers/dma/idxd/perfmon.c +++ b/drivers/dma/idxd/perfmon.c @@ -478,6 +478,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.37.2