Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp299133rdb; Thu, 1 Feb 2024 08:49:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIQnWtyP+FXSvCilCXrwcMoYQOXHzoPjA/LXF7pqSXYxYfgmCoZ7sZsbxFKJq0fepkoFuE X-Received: by 2002:a05:6214:21af:b0:68c:4167:fc5e with SMTP id t15-20020a05621421af00b0068c4167fc5emr5679034qvc.32.1706806176085; Thu, 01 Feb 2024 08:49:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706806176; cv=pass; d=google.com; s=arc-20160816; b=z018N3iSz79R8mKM9oLz/Mzs27bf9x8AWUbDmDN7lLwYvbmsav9xp459fJlyO5kh1A RBf0smi6LPZ0Jy3J1YBdxe0hP4aknp0dZgEYXUg5Hsv81Wqx6lCRosu38pvOEAQup9x+ kdjYcgs4Quu80+iYmBkec/YAutT9LnLUPgglS2uwttgqkt0ru8xwwEqitF4QkW7eHhL0 /bwjZedAprw5GstdsOYOr0tFI57nCBkTH2FLbjm9IXQTGlIfV9wMnjHmKI7FmjvZ3ZhC YzSsI4hQss2HZ6xDVY0uDKXEPw/DguNc64Gb/ZhvSJqeRblHMz3qXVpdgzRoy4WLZh85 ewdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sgbTqL+byh2BphuNN9uadKCz8EZcai3Jw+uI3s6PO3U=; fh=uj623w1Y3V7ajsZpW7Fe/MTxcjbVYmL6pp5uTWjZXxo=; b=I6aRU8pYC4Tz9lKJj8sa67HRH9ZQU0n2vwraEkEwm6DtDFB5l8T3DLgI/ClJF0zBGL 9+FQeE4D1oan4lHgpalniFgJvE7xX1dJAdKNLJ7+iaKf/SymrXnrfENMO8Hv3QYSjsMZ 54uvQvM9AnT7pLzf7tnRe8gDFksutpY5jENoMpUpQl3yZ45yRR0U/16fwxFBgYyT8r6G 6TFCJ2cjKoSlI6boTsIxu3tZNC32nRq/t79+nSGfBsU85umkGR2fQexGNUF3m+k32yV6 7txzvKrdsWBgdymSWJdOwr/RTbL4Ii3VxyCmyd7zoMVAPDnXXsdOv1EmgjlIf1OFVj8T jc1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g6dK53CM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCViFKwdeBd2zPoGCOZ5wGs3+F+9Tx9bD314/RZ91HgkFNK8/h6l3rw9aIIdrHnMPJ1wIBoxoDDQnai6UiUBF6Sy/l/sKoNIo472v6ARJQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gh1-20020a05621429c100b00686a095c9b7si14209768qvb.467.2024.02.01.08.49.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:49:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g6dK53CM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3A82D1C28554 for ; Thu, 1 Feb 2024 16:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EAE45243; Thu, 1 Feb 2024 16:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="g6dK53CM" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B13AD4C6C; Thu, 1 Feb 2024 16:49:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806166; cv=none; b=MwXePXUTOkhgIhIXO3LJPxhgUYFT7DdHGMsE6j/+d9gtGg5WkQ/eInO655af5NF0YGfBEf6cV+KmyGV0aKAEpHm8f6sBAYw5H8Kq3ZhRuMcU3Qs3yrRWm6hzQKcZICAEO4uv312ugGa9zi/fUokFR59lIf5Pi2fwmnj3PeBQ/NY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806166; c=relaxed/simple; bh=iNwIgCxueiSubhh6aaDWCe0zkEEitgzyfnX3oZSXMHw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RhguefMTYe2JI42QoUQNvIanIvS/BUIUMiZItb3vnUBBxI7JzXEJA9Mo1qpyGUHINhsyEBB2FK1h8XDFVm+xq7+Z/qBJOqkLwS4qf0o2Bh9GWVA6if7laLwr3RtyyxVl0SSkzr+fqQDskrrPc/nKpmF2JOrYC1PN3Te1b8e6LRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=g6dK53CM; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706806165; x=1738342165; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=iNwIgCxueiSubhh6aaDWCe0zkEEitgzyfnX3oZSXMHw=; b=g6dK53CMcXhX7r7qO7MfyIcn9hjpP7fOoPtpyqySO20TeZ6kIqpVK3Y8 unYTnGjf6271OrzHcTVaWvxahqAOLYaWLkVxaGcYc2mAthjcfHD9Phnvy Y2bDN9Dfv7cfe6zpPwRbrkHCJoFfRA2wlpyn/jOGxxckCjl7xQYwEBesM ThjlYqwPSTLpnHkwxAvmc4DNNWQIDfURw9oMhkW+6CeOKx6XwB4LKFdYc W2LZFotA3fpxKb6+vknNtP2A8dh7GsDbmhbb+gcI2XXjA9KS0JQo1wNDf NihB8k+NUTf3F/w8q+YOodjDUTbbpgbAIDZ+aq/Z07pW3lsuvyCN19Exg g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="11041377" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="11041377" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 08:49:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="822962532" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="822962532" Received: from cacasing-mobl1.amr.corp.intel.com (HELO [10.209.102.228]) ([10.209.102.228]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 08:49:23 -0800 Message-ID: <468e87a2-c50f-4146-8519-16b4317313e6@linux.intel.com> Date: Thu, 1 Feb 2024 08:49:23 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/8] platform/x86/intel/sdsi: Set message size during writes Content-Language: en-US To: "David E. Box" , netdev@vger.kernel.org, ilpo.jarvinen@linux.intel.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20240201010747.471141-1-david.e.box@linux.intel.com> <20240201010747.471141-2-david.e.box@linux.intel.com> From: Kuppuswamy Sathyanarayanan In-Reply-To: <20240201010747.471141-2-david.e.box@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/31/24 5:07 PM, David E. Box wrote: > New mailbox commands will support sending multi packet writes and updated > firmware now requires that the message size be written for all commands Can you include some spec reference to new mailbox commands? What about updated firmware mean? Like a particular version? > along with the packet size. Since the driver doesn't perform writes larger > than the packet size, set the message size to the same value. > > Signed-off-by: David E. Box > --- > drivers/platform/x86/intel/sdsi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/intel/sdsi.c b/drivers/platform/x86/intel/sdsi.c > index 556e7c6dbb05..a70c071de6e2 100644 > --- a/drivers/platform/x86/intel/sdsi.c > +++ b/drivers/platform/x86/intel/sdsi.c > @@ -252,6 +252,7 @@ static int sdsi_mbox_cmd_write(struct sdsi_priv *priv, struct sdsi_mbox_info *in > FIELD_PREP(CTRL_SOM, 1) | > FIELD_PREP(CTRL_RUN_BUSY, 1) | > FIELD_PREP(CTRL_READ_WRITE, 1) | > + FIELD_PREP(CTRL_MSG_SIZE, info->size) | > FIELD_PREP(CTRL_PACKET_SIZE, info->size); > writeq(control, priv->control_addr); > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer