Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp685157pxf; Thu, 1 Apr 2021 10:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbhRhogPY22l+ip8mdd2uix1OrCN+nLjUxT1Kl6IMbPL1licG5wNin/z5ZLZKV7U8PvHm4 X-Received: by 2002:a17:906:85b:: with SMTP id f27mr10680448ejd.414.1617299566856; Thu, 01 Apr 2021 10:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299566; cv=none; d=google.com; s=arc-20160816; b=phatVCx+njozNrgN6VgcgoDQ17gXi7jLD2S9js08/Gf184sOy/DsvQ6TIkyPV/4ESX un9FLhJOTpWHwwyMNtY1fABMiezQXu08+mmzhKB1bZwls96cOhYNlneddUyCimhkKLGd vEF63hWghoQM7HtGdby0KPvsXCJIO/BdgHqNeXtWQ7rwiR8Q9w0nj3/1eVh/9ILHq0DI xDBzcalGCnKt95yTecG5+7H2p4DxGg+M8VQKPMOC5hBfGzyl7yn0uPb3uB1xgt6rg8n6 BKIFgbTkmqSW2pjfJhOR5ePHGLVyUqD522ShEga/MwTn1LpqkKwn85KvxgVlwdHPyVFt of0Q== 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=k7+7zhvoTNAbxfHw3/axEfAOwf9YdDSG7ZZSsJWDKZg=; b=ASdQ4paFPm53UVe5SZGYFqPYDDwdv26rf2TeKkiyt0C/3++G2pigSZDF0xhVm4cmlI LH/cbEd5oHd2x+UgyXLKJRGggprotrjZMjeVAYode9H858RhB53hqNoRo6chC9ibQp1m 779ukZ0hDwi01QSy3DqG8HudC7XQ9pJipFAZRy+PXsjiOlG+vtIFv+HG+oJDxhTiurFq 4Y+5DLyIvd9Tkn4Gnj4+csvN+QoexnaBBw/Ibrc8zdwRvBtecQUaNQLFzkuc4/ScK5mU jRyfevwvT3QYDagy9EoOAYY9hwm7QSzLidrOIv4mAv0rANa+XU1EKrsLj3ksk5fb6219 40LA== 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 k3si5410693edh.184.2021.04.01.10.52.23; Thu, 01 Apr 2021 10:52:46 -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 S236943AbhDARtm (ORCPT + 99 others); Thu, 1 Apr 2021 13:49:42 -0400 Received: from mga01.intel.com ([192.55.52.88]:46971 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234761AbhDARjo (ORCPT ); Thu, 1 Apr 2021 13:39:44 -0400 IronPort-SDR: 7RTzpmziWccGAnCuDmgMRMGKpfjVRF1vhG2Q9Rb808fCxHHkDNAvC8r6Ab3PgB05Mq7IVJhn5m PgZKwB2StV7Q== X-IronPort-AV: E=McAfee;i="6000,8403,9941"; a="212512494" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="212512494" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 07:33:30 -0700 IronPort-SDR: 04Ncoca1nJRoDSwGnjJvN7BCpzNHO0S7x0sWmRT0TdpBTzGvhADArG5s6DkpoYVFnx/X0tIu3E C/4RRmJIocog== X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="439236058" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.25]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 07:33:30 -0700 Subject: [PATCH v4 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: Thu, 01 Apr 2021 07:33:30 -0700 Message-ID: <161728761025.2474381.808344500111924819.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <161728758895.2474381.12683589190335430004.stgit@dwillia2-desk3.amr.corp.intel.com> References: <161728758895.2474381.12683589190335430004.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 e59b373694d3..e3003f49b329 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -1203,6 +1203,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);