Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1486407pxb; Thu, 4 Feb 2021 14:27:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPLLAlLvIF0vyrVaAAnqd217dCYobrTJXMod/AynqfPw3mcpGBo4nljp/h9JxTfkRhkh56 X-Received: by 2002:a17:906:80d9:: with SMTP id a25mr1126483ejx.405.1612477655938; Thu, 04 Feb 2021 14:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612477655; cv=none; d=google.com; s=arc-20160816; b=Qx5ydNfz/CWQniUabEKgJsmmO8VzaSxlEZo1JcsAAbWJgSRjAgWBE7vdze6wmLLRp+ XjUj+dfBTMYvwF/2yJpDkhwIXfbpSlKDzaYf7yVTHSnnMFjiZdSWycrKvoWSw/DWIupa 4o8gTX+Ji2XP+95E7iiOPEOQEj7VeyTxEswkAVEYUObv7Opd721p8jg5Y5w01qrxonea cjBNu71VJ9AVKPk8b2IfbeoCJG3d72euSiMfWpzyx5XgFRx8BzKuHkdNSiBj3Tyal8St lTifJl7GVn6v1XsD9xb41vR524tFNVCYYxvE2qN+1XwvxhsVlgOgsC58JjsqFsmbst/6 pJ9A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=xevakAKEiGzsS36cK9xAmBTAR3eB6KrwUYaSD2bA+Ts=; b=JtTkw7CDrkUoTN3Iav72Iewwm01l9LkJ5vsFKcOXCZgrOjW+Xtc0eO19QXHPDha6sG N2C4wIuxXsgMuVAvflSYwCPKbmBs+grM8MvSaddn4ceJPjYPDUOOxbZLl4U91o98h98s 67r1YjNkzAjvYd+EYhNJOyzPvruE9xCFmDFWuHArIwv6Uk2CA9/7yY4vLkx/yAJPlYrP SM5+Gbva9McvPv+tzNjtYZ85kKwqg5ZAitjlpY5FP8Krr0z+W5UaBnhCWYRLWza16iRb vM/9YOOsyowefPLljSsMFnZcYWAq+CuAi+Fsnd19kg/hauSqr18aIsVKsuRVO2vbk0Lu dPog== 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 j4si4033309ejv.17.2021.02.04.14.27.11; Thu, 04 Feb 2021 14:27:35 -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 S230165AbhBDWZM (ORCPT + 99 others); Thu, 4 Feb 2021 17:25:12 -0500 Received: from mga02.intel.com ([134.134.136.20]:53358 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhBDWZI (ORCPT ); Thu, 4 Feb 2021 17:25:08 -0500 IronPort-SDR: 12SpxswXJ0iiSFsRgV8eyo+WPutEluUsOBOd+o7AL1h+KJhXLY6wzDUqy6mic9bCBlm8IflXWS QcgBYfOJFdkg== X-IronPort-AV: E=McAfee;i="6000,8403,9885"; a="168455567" X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="168455567" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 14:24:27 -0800 IronPort-SDR: y/7S/VUBRnji49Z9RcM7MCK9m9bPc9F2qnjPMyRowJSljxxzoccj0mjoNWsOJdTYwHZYVCzA52 cylVr2edM40A== X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="576429167" Received: from jguillor-mobl1.amr.corp.intel.com (HELO intel.com) ([10.252.133.14]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 14:24:26 -0800 Date: Thu, 4 Feb 2021 14:24:25 -0800 From: Ben Widawsky To: "John Groves (jgroves)" Cc: Dan Williams , Konrad Rzeszutek Wilk , "linux-cxl@vger.kernel.org" , Linux ACPI , Linux Kernel Mailing List , linux-nvdimm , Linux PCI , Bjorn Helgaas , Chris Browy , Christoph Hellwig , Ira Weiny , Jon Masters , Jonathan Cameron , Rafael Wysocki , Randy Dunlap , Vishal Verma , "daniel.lll@alibaba-inc.com" , "Kelley, Sean V" , David Rientjes Subject: Re: [EXT] Re: [PATCH 04/14] cxl/mem: Implement polled mode mailbox Message-ID: <20210204222425.5vlulgaip7stal3z@intel.com> References: <20210130002438.1872527-1-ben.widawsky@intel.com> <20210130002438.1872527-5-ben.widawsky@intel.com> <20210201175400.GG197521@fedora> <20210201191316.e3kkkwqbx5fujp6y@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-02-04 21:53:29, John Groves (jgroves) wrote: > Micron Confidential > > > > From: Dan Williams > Date: Monday, February 1, 2021 at 1:28 PM > To: Ben Widawsky > Cc: Konrad Rzeszutek Wilk , > linux-cxl@vger.kernel.org , Linux ACPI > , Linux Kernel Mailing List > , linux-nvdimm > , Linux PCI , > Bjorn Helgaas , Chris Browy > , Christoph Hellwig , Ira > Weiny , Jon Masters , Jonathan > Cameron , Rafael Wysocki > , Randy Dunlap , > Vishal Verma , daniel.lll@alibaba-inc.com > , John Groves (jgroves) > , Kelley, Sean V > Subject: [EXT] Re: [PATCH 04/14] cxl/mem: Implement polled mode mailbox > > CAUTION: EXTERNAL EMAIL. Do not click links or open attachments unless > you recognize the sender and were expecting this message. > On Mon, Feb 1, 2021 at 11:13 AM Ben Widawsky > wrote: > > > > On 21-02-01 12:54:00, Konrad Rzeszutek Wilk wrote: > > > > +#define > cxl_doorbell_busy(cxlm) > \ > > > > + (cxl_read_mbox_reg32(cxlm, CXLDEV_MB_CTRL_OFFSET) > & \ > > > > + CXLDEV_MB_CTRL_DOORBELL) > > > > + > > > > +#define CXL_MAILBOX_TIMEOUT_US 2000 > > > > > > You been using the spec for the values. Is that number also from it > ? > > > > > > > Yes it is. I'll add a comment with the spec reference. > > > > From section 8.2.8.4 in the CXL 2.0 spec: “The mailbox command timeout > is 2 seconds.” So this should be: > > > #define CXL_MAILBOX_TIMEOUT_US 2000000 > > > …right? 2000us is 2ms… > > Thanks. This was caught already in earlier review by David Rientjes It's renamed CXL_MAILBOX_TIMEOUT_MS 2000