Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp36053lqp; Fri, 12 Apr 2024 09:48:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtOtEljUm6fo9UmAqBqT2jafDlVh0+jueueiW8BsIQ+NwDosa4ujlpNqx1Dm5TGdRdFa8Cyk4l3oqo+zPs9vO9rRpjb3VdLyNrp51JVg== X-Google-Smtp-Source: AGHT+IGGkyYC4vjz/0TeiI8FwChhXUFWu7FRGLhQLUzfHtZ01pBgb4AGtYpe2lO2kIDidp0wvUhT X-Received: by 2002:a17:90a:d187:b0:2a2:bcbf:562c with SMTP id fu7-20020a17090ad18700b002a2bcbf562cmr2980758pjb.30.1712940492529; Fri, 12 Apr 2024 09:48:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712940492; cv=pass; d=google.com; s=arc-20160816; b=r2Z2ZK6V5Le49sS30r9ocrJnn+BM7go1k1EbdAsbrCB4l/rF89j9eE7DLmUpDwu5nk VEj/eTqqdWfWObJakpYGjQNagf4lEF1lCABMOW0v8GLms8Kg/+5NhnsVq6L4t5PVCDjK qn6tYrRFHPvLzplrS9hEkHSPSV9vgjyAIKKq3VVo+LDcUR4YVr+1YcHmaReta/0eUa4W rxntkb7cCn/vvA007pA2a9XjTWabs+1AY2SYJo4+/F03OkmZtvh6JETw6lguXbXp+f0k IA6tYqXcWZdhFAE10leC9eD1z8X/tFdadLmI+yXV2lAE27g0maO6fJ7t+STPJi6Vy2FT QEdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1gMDF+3mYGQ6pDubnBZERQ8Z6hqpCLTaqiLZJ0m7YPI=; fh=h+Ss774ppJrLLzubdmJoaOLWF5FjjBodKndNdvEpbBs=; b=RWUARLCLLoAMdiWVY+zYemnCY5Pk3JoJtxbb6hcTmoL50VtDoR5Mpgbm9n3sSW9Khh idecPftbVnFb4tTboWQScwDHp2dFaFAVbeiPwtS92xMuzgUbHPUAK3F59ZrjWBLLH46C kwzycWMjuQolyDD0xLKzBiQ6bAmZsGwLUXIu/w4VNiRY6DIzmNULyYHQBADYT1kAXty8 sCMryjmgfe01f2bKsyGHLCitESONZ7XPPEghHePIimCrmpIo7quTQUx+8LshMnb443mU sCxQlZ1HtpJpWgO2vwMAQ2FHCigQgpgrvB3Vh9MctgH1MTgatF7Gx3sTfrfsEIo1wSrD Y4/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MdLKaNzr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-143082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a24-20020a17090ad81800b002a5202f7b6asi5706066pjv.180.2024.04.12.09.48.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MdLKaNzr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-143082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 092EEB26679 for ; Fri, 12 Apr 2024 16:28:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEA2B1494BE; Fri, 12 Apr 2024 16:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MdLKaNzr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 4D3B3143899; Fri, 12 Apr 2024 16:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939242; cv=none; b=REj4QZIj3kQj2gnUj1PLXZotWLKjFQhju2NWsSEpwZaYIXmWSDwbszEoTPVGU6htkzhZeeT/WNNei0NnpATMU4ku3No0KgPpnI76tI540g7i1BK5zj8RqRCV0b/CuSZYgevDgh8LPHFszdMcMCTgDBkglrwb0gRuKvVVGg5YKoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939242; c=relaxed/simple; bh=gcsTPT2VbxnCy4/hmONC+PzW5Mk8k6HOzDqVSrQaYwA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PaqTGQ4xrNxoXL+P991Dn8pG18vU8/JrPqeq2TgGoLQRCxJJieT6Qd/Cue+bPzx5zkuhbSKWE6d+T/P6UR0ONcTKYAEraONjffcZotTVQM3k9KKQ5DJHOOjdKJ0LsLypFg63g1XjyBJppbDOpVCS7xD7ToWS08Hb+tbH9eoVP9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MdLKaNzr; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712939241; x=1744475241; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=gcsTPT2VbxnCy4/hmONC+PzW5Mk8k6HOzDqVSrQaYwA=; b=MdLKaNzrbsZCSSDWXgiQ9fiMSaxxPt2AFwKtiANKAahaQUdZmgfzJZn1 ccgwPiDYHMTccQpXO+rYNe2ChM19zeaU4Jv4J093jkZVzMPixAgvmjXtq bkw5hnJXMJMYonat52Dpfrjf1RZR2mobr9CvpqnK2bmPo4NNB9v9un8z7 6mD6gG/4qgKRYwky649nrzcqIpl7jzkZgK+2dOxLPIxrAgnZ96/Gux6jd cby9ai7+g3zuCf0mkHeOytgYeGUf8QiA6H7HTYZ06B7ODkfLR9cNowQyA 378HvMAkQNWhXaIZVsOVKQ3uEfoMSdsMso3dhrDCl19ao8vWnIuIbneZw A==; X-CSE-ConnectionGUID: XcCAQ859QdeyUTtJM3NGDQ== X-CSE-MsgGUID: HxR5ZNwNQlyDAdwrLiNtAg== X-IronPort-AV: E=McAfee;i="6600,9927,11042"; a="19796051" X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="19796051" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 09:27:21 -0700 X-CSE-ConnectionGUID: Mm1CB60SSDWVM0xvwac6iw== X-CSE-MsgGUID: nH7qB1XQTMen7psDVDJiFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="26077121" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.212.34.215]) ([10.212.34.215]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 09:27:19 -0700 Message-ID: <1a397659-2163-4582-ac5c-2eab7f30c925@intel.com> Date: Fri, 12 Apr 2024 09:27:17 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 26/30] dmaengine: idxd: Assign parent for event_source device 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, 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 , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, Suzuki K Poulose , Liang Kan References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> <20240412161057.14099-27-Jonathan.Cameron@huawei.com> Content-Language: en-US From: Dave Jiang In-Reply-To: <20240412161057.14099-27-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/12/24 9:10 AM, Jonathan Cameron wrote: > 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 Reviewed-by: Dave Jiang > --- > 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;