Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4043119pxf; Mon, 29 Mar 2021 19:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5ekStPgqX+lLsx0xFiNCjCQcKn98CzBrJAG8eaVW449nynTajrNxil/D0y8H7IDgF5NiH X-Received: by 2002:a17:907:98f5:: with SMTP id ke21mr31462295ejc.552.1617072710964; Mon, 29 Mar 2021 19:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617072710; cv=none; d=google.com; s=arc-20160816; b=IF32F0mQs5kCfoD7ZxGiI8meTaGP0lh+U6sEpkq0m9ft/ZMFqjJgnqlLi1ry6SwnKL iuo6xBwcB/IVlnOhGbzEk4Gr/iNRRk94sDtrPpEh215HReLqie0ir76qtvZfFwtHBzBf ds0KPmwN9MGPNb+ZbCNJgFAOHssiyXObt6RfKZwLHFt/BcuyONhoW/Waqa3X2Qb0kW1Q bLV68vRzfdYmK0YKWZU9UTwa1f+6YMAhD7vlotgucZaVyWiGNd8Uzjn2sEtG5+rVXywQ bae7I3kraFPuJdy0JNChZwj+a+0Cj/nJeqBjkObOEy7oqiRUhIegkAVAu/Ah2zVB+9QR lA9Q== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:ironport-sdr:ironport-sdr; bh=eaH7Z3skUtJ5WN8u1eHJ2TnjhTrZ+8oZ/o5V1KkSRHI=; b=tlQH1cV33qUf2yjDi/M1Rd+MFMDGdpiB+yPQ3jXrU4u/h3UTlJTFgn1OkcgSdYhPou LFL3biP3XM19GVbi484OWCisLAXFbCpnTAcL4pSKY+mBbn4cMqhzBx7fjbXgt0EPL/ZC W2bJPodK4MrrOY0gZsQEfMtFGGT82p/FnxbJ86s9hH9j+TEPX4fk5+TXsE3E7zlYLXi2 KtL1wPxMGFVrZ0ACemOl4VWGR+k6UQSI6/OZVJTs3aceZFNtAJ+FpQDBzZClqCC0liuD /vBhPQw36yTZij0X37gG+PV50b+Gg8DdW/ezjluZCoby5SiMbTyWY9G5rJYFlZlxT5gj A/bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si13466570ejg.677.2021.03.29.19.51.28; Mon, 29 Mar 2021 19:51:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbhC3CsZ (ORCPT + 99 others); Mon, 29 Mar 2021 22:48:25 -0400 Received: from mga17.intel.com ([192.55.52.151]:61820 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbhC3CsC (ORCPT ); Mon, 29 Mar 2021 22:48:02 -0400 IronPort-SDR: 1HN2UIaxVjf4A7agWqaRva9JeKSgltpX/lPuNH0RaAvosZiB7jtVtRLeXgMPWmLXxiWv8YDfPa QIms4ZK0NRzw== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="171688822" X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="171688822" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 19:48:00 -0700 IronPort-SDR: aV4tRo1DiejQ29OmxKZq6KVD3MrFlrkXbCad2sni1iAb71OTbrxFxn6hrVh8g+230mG846KeKq 0qvFoYjjxIlg== X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="445022360" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.25]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 19:48:00 -0700 Subject: [PATCH v2 4/4] cxl/mem: Disable cxl device power management From: Dan Williams To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , linux-kernel@vger.kernel.org, vishal.l.verma@intel.com, ira.weiny@intel.com, alison.schofield@intel.com Date: Mon, 29 Mar 2021 19:48:00 -0700 Message-ID: <161707248015.2072157.4111152670292507770.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <161707245893.2072157.6743322596719518693.stgit@dwillia2-desk3.amr.corp.intel.com> References: <161707245893.2072157.6743322596719518693.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no power management of cxl virtual devices, disable device-power-management and runtime-power-management to prevent userspace from growing expectations of those attributes appearing. They can be added back in the future if needed. Reviewed-by: Ben Widawsky Signed-off-by: Dan Williams --- drivers/cxl/mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c index 508f0dc483f2..e578e82eb33d 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -1210,6 +1210,7 @@ static struct cxl_memdev *cxl_memdev_alloc(struct cxl_mem *cxlm) dev->bus = &cxl_bus_type; dev->devt = MKDEV(cxl_mem_major, cxlmd->id); dev->type = &cxl_memdev_type; + device_set_pm_not_required(dev); cdev = &cxlmd->cdev; cdev_init(cdev, &cxl_memdev_fops);