Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp472976pxb; Thu, 14 Jan 2021 10:15:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3c4ZMdLCNIbnUtSY66zI4BakEmPDoB1B2rLbI2wa8AcVtbnbVwz7NNaBN7TXtaInvjLHV X-Received: by 2002:a17:906:1db2:: with SMTP id u18mr6338082ejh.440.1610648129802; Thu, 14 Jan 2021 10:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610648129; cv=none; d=google.com; s=arc-20160816; b=Ht/a1wR+Kr3C2qBrUC52kW9jjMsxxCXnddAKl941zrx1t6sPBxS5tapyXyKrbVTI+c vfmsVBTZW36oynAjh9p5cZGEhJvgKRRQDJbhUgdQGddjyeckI7RC3X9I87UvpTb879Fv TkoAP7OXc3M5iqmtrPbv6NPl75sAxvaqSxwUJh/O1dYyAsojLz7V94GzN7W/sx0Jpu4V UIXJ7kjJhtBEX+B4QAGet7IASVnu8wcrlE4qjossLpEOhrQKFtJ/KrnoGPXMMm1aFKpj HCy+qxrUS373fNisAtBSEnBFPC4euJ0NsskgHl/vgYBpdFMOU3HQ0CsRSAyykTwSd6mz UDWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=M3/V3UxkzaLe5NWrVHz+8DRFvV89+jG/qas+C0VzfA0=; b=CIilK/z5p587mK24dgRsF4fs80H2tvxa/j195efg0wqKuKe3fsBxxK3l5g+y3QqNEj yTyuHJ5moinUN165yypFGvDfOfsf/bJOAvCogdI8r3mMXM0LwPoO3uTt0EsahAB25KdX QE3/WyKKxgjgq9aQvr18xUJ3M/X5DjKIWsa8zfX2j6dS0M+49gp1LVP/5Lo3jhqO5JJL UJ4mqfuSPKxHBOoqZiOMLCx+I9WUcO8y3jOLDmAJ1FkVrR1thEdJLwju+e/GUh7u08ef +U9QG0INr0KadEOv/LioWr3/pB9VV6L8XIA7Mn5sTK9GKrJLTW5nvCE4BY60qp7Bo5qb /Q7w== 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 jj17si2026745ejc.372.2021.01.14.10.15.05; Thu, 14 Jan 2021 10:15:29 -0800 (PST) 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 S1727393AbhANSO2 (ORCPT + 99 others); Thu, 14 Jan 2021 13:14:28 -0500 Received: from mga03.intel.com ([134.134.136.65]:58735 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbhANSO0 (ORCPT ); Thu, 14 Jan 2021 13:14:26 -0500 IronPort-SDR: OqeFCVaXTzV1DGZVJNTXZ03NA0VzlymYAnJNjv9VK2G3yJn5ubsxE8Tzv2qgag89Cn/9tF74JJ EYw2ut7FdAsQ== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="178507166" X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="178507166" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2021 10:13:43 -0800 IronPort-SDR: xL4xBAKjZcRZBQEhKqDdwC1/z+HSv8naXDj7/u685D//MTPoNOnCkvzwXS1x9be1oS9XDSZNQ2 JbTStUKYA9/g== X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="405238644" Received: from jdquesad-mobl1.amr.corp.intel.com (HELO intel.com) ([10.252.128.180]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2021 10:13:42 -0800 Date: Thu, 14 Jan 2021 10:13:40 -0800 From: Ben Widawsky To: Jonathan Cameron Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Ira Weiny , Dan Williams , Vishal Verma , "Kelley, Sean V" , Rafael Wysocki , Bjorn Helgaas , Jon Masters , Chris Browy , Randy Dunlap , Christoph Hellwig , daniel.lll@alibaba-inc.com Subject: Re: [RFC PATCH v3 14/16] cxl/mem: Use CEL for enabling commands Message-ID: <20210114181340.fgybdchzfxiiqwhr@intel.com> References: <20210111225121.820014-1-ben.widawsky@intel.com> <20210111225121.820014-16-ben.widawsky@intel.com> <20210114180211.00007852@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114180211.00007852@Huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-01-14 18:02:11, Jonathan Cameron wrote: > On Mon, 11 Jan 2021 14:51:19 -0800 > Ben Widawsky wrote: > > > The Command Effects Log (CEL) is specified in the CXL 2.0 specification. > > The CEL is one of two types of logs, the other being vendor specific. > > They are distinguished in hardware/spec via UUID. The CEL is immediately > > useful for 2 things: > > 1. Determine which optional commands are supported by the CXL device. > > 2. Enumerate any vendor specific commands > > > > The CEL can be used by the driver to determine which commands are > > available in the hardware (though it isn't, yet). That set of commands > > might itself be a subset of commands which are available to be used via > > CXL_MEM_SEND_COMMAND IOCTL. > > > > Prior to this, all commands that the driver exposed were explicitly > > enabled. After this, only those commands that are found in the CEL are > > enabled. > > > > Signed-off-by: Ben Widawsky > > This patch made me wonder if the model for the command in quite right. > I think it would end up simpler with a pair of payload pointers for send > and receive (that can be equal when it makes sense). > > A few other things inline. > > Jonathan I'll address the others separately, but could you elaborate on this? I'm not sure I follow your meaning. [snip]