Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp183670lqg; Wed, 10 Apr 2024 22:01:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFZwbak5ElBoQBNoLsLdodnQBZk4Vy/v0HHrBu4aEDIVSr5ZHe0DiAOI+xYe0yujuGSxSaAhwZkv8TjubBWWLx++eZYta2Orn4p98fzQ== X-Google-Smtp-Source: AGHT+IEZ7FJWB0mcMhOzgoA4OXp3MUn3OxFhi7AgsKTsaHNtgi+eqvR9d/782KNr2VNW6BnYHHT7 X-Received: by 2002:ac8:760a:0:b0:436:57d6:d1db with SMTP id t10-20020ac8760a000000b0043657d6d1dbmr1866231qtq.9.1712811684647; Wed, 10 Apr 2024 22:01:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712811684; cv=pass; d=google.com; s=arc-20160816; b=ambvKbdkGGwynu7KrUaDROhbqXHGEUe0y2LEFHK8tzqh/cucAG0pZYdz7MBvM3HnoY sT8FNIzQc/mKt5RAC7XxnGN53VOsQ5xRyzmY8KAMEJLRixCzlgH7Goup7Yjhpv0/lQQV Tmv+IeiGk8Rauqwfo4S8rt7xomp4JCsOQAGsZCXzmI7jWgvZNmOzVR0PA57RS6pDLHsh YQ2rI5kQvwSsjd40KbVT60/g75SJLMoF2gh/JN68SPKbaS2PnDIfrfSWP/dZnMHEhCC+ nKXrXP4rsWD+Q/NKgpPuD730ms0GVaFFoqZkQUjfEfml3rdY6qr4Yb3YwycRopC5LJQI OS/A== 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:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2lva9pDuB6htf6xaitj7Fx4hnrAu8A9A/ISRJdGMgmY=; fh=eh0vVuQGYUiESohkR2a94bnk+f9HMRGA6HCdCzyHzv8=; b=zinJjGZT6QWN9oH5ij6PMmdrQ+FBH32uvey3d6Q+9h5qf052gbNcxzmEKqWBFw9rFE s6GgXXDx5S0kIOOwBmibfyabkq0WHnWBRN5ARCZENLzUYYSo/FP10C/ftZra2VpkZid1 qGTQCZCF2wiPJCisK4PUQryursni8CUOw8XgSaqULn9XUyB049Oon/kV2nWVpsWL7bgi B7HyZuFBeMzeUxFvFzY2IKgWX9RPXUtBl0/9WEHCgNtrh4p3zaUIa4rw+q2MMaD/ztQy aAL2JXRtYbtD5a6ATJZaWRC/UEjPXhWEyTjpyj+z7nFllUfyFHgBRtN9dNI8ytFT1n+k 8aNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EApQP9eA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m4-20020a05622a118400b0043445a0a77dsi758196qtk.170.2024.04.10.22.01.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 22:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EApQP9eA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139763-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 610DD1C2339D for ; Thu, 11 Apr 2024 05:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F49C13C832; Thu, 11 Apr 2024 05:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EApQP9eA" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 E460F13C696; Thu, 11 Apr 2024 05:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712811666; cv=none; b=uzVlnnUoL9ttynKcBvYaehqltbhEbBVZxo6+Fa/Rw4kOsDPqR+eTcC42MzjmBtwsvoCCFFqkTz0IpZLWUDiSaSK0CeoMI3FOvM5GHr435wQk/Wysn+oCOwfxA+i765Z/Y3Jjjgom89A8qDQD2CNbo4xAadJHRwnG+Ale9pWYSaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712811666; c=relaxed/simple; bh=5VxM0AYd2IXDBMwhwjlHKCDuJH2Zn8zHb0Kxjlub/iY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=nlej/Jc7crIWU06Tgwd99E7WU5I3nVpn612gODLlGqcB1HL+kFvjBCfIOSTR69ypFgiz/hz0Aj3bW6ERPsmFRT+47D6od+sMcHRkfXvUltcU60r+cVsnCmrF4bPs99zkYeWjNqSxy/IdL2BOVeW6unG5j9+LY9rERuGW1snoL+A= 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=EApQP9eA; arc=none smtp.client-ip=198.175.65.16 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=1712811664; x=1744347664; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=5VxM0AYd2IXDBMwhwjlHKCDuJH2Zn8zHb0Kxjlub/iY=; b=EApQP9eA8GNWHiHaHOAGOEeVkm3TCIoZi1vqyWWMDPDVUvXw6nEtiwhq 4BwlOFMXqIVVtr375tXfuvepVg2UaS9xz3JHtFuzEcH1yeIxOIyACMUVa ZE6b9LrQ5O7RNxo0NfXw0qjaGJXpTBvQVjiqwseimups1003FmrQjmIO9 TO2Kn7YDh5G8Iu3eLMofNQLhwfIC87AKx2iIJ0k4tiNKLK0KTO4x3H6pV 29XPIuXA4Aku6dxQ/gdpsHYGyTxO50qugpKiWfmH84zisN/2k0Tz/FEG6 xiPk/WvHrlI4V3TNGcMhaNw9tURMfV0jFBuO8yD+7z/YCk7JXrrKT3ISP A==; X-CSE-ConnectionGUID: UcdB9u8gT9yfOzIdfHd6Gg== X-CSE-MsgGUID: xK/XCDY6RRGH+R1lOEKJNQ== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8331521" X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="8331521" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 22:01:04 -0700 X-CSE-ConnectionGUID: gVZsv62LQfqUstYoNLYHPg== X-CSE-MsgGUID: 4W7Kg3OHReWBPKNpRDM2/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="25554176" Received: from tashley-mobl.amr.corp.intel.com (HELO [10.255.230.246]) ([10.255.230.246]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 22:01:04 -0700 Message-ID: Date: Wed, 10 Apr 2024 22:01:03 -0700 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 V4 1/9] platform/x86/intel/sdsi: Set message size during writes To: "David E. Box" , hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240411025856.2782476-1-david.e.box@linux.intel.com> <20240411025856.2782476-2-david.e.box@linux.intel.com> Content-Language: en-US From: Kuppuswamy Sathyanarayanan In-Reply-To: <20240411025856.2782476-2-david.e.box@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/10/24 7:58 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 > 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 > Reviewed-by: Ilpo Järvinen > --- Reviewed-by: Kuppuswamy Sathyanarayanan > > V4 - no changes > V3 - no changes > V2 - no changes > > 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