Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp711164pxf; Wed, 24 Mar 2021 14:06:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXRv0cERoTqHw7AJM9KoLmkHsi2b+2eVRH9BP/w6VwQ282YX7hS6x56DM4L1D8meboA2Hd X-Received: by 2002:a17:906:53d7:: with SMTP id p23mr5886435ejo.140.1616620007982; Wed, 24 Mar 2021 14:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616620007; cv=none; d=google.com; s=arc-20160816; b=q8P+tZKrv/b5PsG0Lqd9aQ7bLeCIKgSWwWvPaSq1kJAU/SKQ9+ldi+7VGdpx5f/8Hz DRRIpEyeBCfr4oB1e90gcM+Sqk54HZRLMTzwL0NgdkGNvOtEdtBupqGbq0pW92WHn0+2 sY7iXU4drO1c5uPxVKmJxN20rfHv26mFjr+xO5qo/xmeNyHutf73D0xHx3cfDEskgfTN pPHKUwUBJ49UWLFhnMpa1IHz11WXsnULuxFMTBchDrPdSZpkMx9sLF4RmLq22kc1wQYO B9gQb9fp2ew+VMJkwc99Yqg2hmfmHVLqPusqcNbCxoUr3qNagTAowx/4YF5Lu89E/umN MMoQ== 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=GaoifhEFWSjerSWVwcrKaA++Hl2GQCGQ6E3hTz9l4aM=; b=gskxIfraVHUx0gNskSAKvq1sNYoiwGD5VkGrrxldMua5f/P+gHA9R//8O0aX4H/YHr X4wWmKzGHlOw2kcT9aseK+jbV0AeuZuQJ5hgMxdWzHcjR4jJ7xd2yxDiAdSsxVl5Zt3h GuCI5HMnpZos0U0oqFQAADfHO/RcPKChDgN+0RIOsp9VsKdItf/+JTO+8GGUEnA3/cHM aoW7hy5NnkKdR66z2OFckhZ6a0D2gCrc1ZZF096FGibG6wJuB9Vbfk/VqJNE3lkniPCj 34WDU8OXeHanASpjNg+Dxp6cpafMah2wvz05QXXSFb8wca/A4bXiojWCit9DM4c8k1El UG1Q== 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 v22si2414639edc.137.2021.03.24.14.06.23; Wed, 24 Mar 2021 14:06:47 -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 S238306AbhCXVCR (ORCPT + 99 others); Wed, 24 Mar 2021 17:02:17 -0400 Received: from mga05.intel.com ([192.55.52.43]:37999 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238274AbhCXVCI (ORCPT ); Wed, 24 Mar 2021 17:02:08 -0400 IronPort-SDR: 3mSFtaHGFVhN7eJi/9sQnHnnYnpWREreVgvonCZctDvkAqYt/e4JLWvwr4rfhSBYJE8FXtx0SN l8AYESwuVL/w== X-IronPort-AV: E=McAfee;i="6000,8403,9933"; a="275911419" X-IronPort-AV: E=Sophos;i="5.81,275,1610438400"; d="scan'208";a="275911419" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2021 14:02:07 -0700 IronPort-SDR: uPn7bLlOSm7iA8LC2fNNvQHT3Li6FIjKf8lCMfiF5IOfUkpWMo2/IQrkeDgvrzvvpEk5WUG0/4 EcxqC89tD9pg== X-IronPort-AV: E=Sophos;i="5.81,275,1610438400"; d="scan'208";a="374788401" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.25]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2021 14:02:07 -0700 Subject: [PATCH 4/4] cxl/mem: Disable cxl device power management From: Dan Williams To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , ira.weiny@intel.com, vishal.l.verma@intel.com, alison.schofield@intel.com, linux-kernel@vger.kernel.org Date: Wed, 24 Mar 2021 14:02:07 -0700 Message-ID: <161661972722.1721612.7220170912347353657.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <161661970558.1721612.10441826898835759137.stgit@dwillia2-desk3.amr.corp.intel.com> References: <161661970558.1721612.10441826898835759137.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 d615f183520c..338923a6b2ef 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -1204,6 +1204,7 @@ static int cxl_mem_add_memdev(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);