From patchwork Sun Jul 16 07:04:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Kah Jing" X-Patchwork-Id: 12093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp503701vqt; Sun, 16 Jul 2023 00:41:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFHOfgDMaIml6Y4JSAQsXF/HXC2vRaQb0t/LE8cnyM7wZrBjg2MKfMsac3SfNqMwnJRIcn X-Received: by 2002:a17:906:7a59:b0:973:cc48:f19c with SMTP id i25-20020a1709067a5900b00973cc48f19cmr7457232ejo.56.1689493309295; Sun, 16 Jul 2023 00:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689493309; cv=none; d=google.com; s=arc-20160816; b=vAqwBrDF7oK/XMF33jXxPH2wCHofvBErVBuo4baYOmrxYn4T/hiyEI9chH/XpTVwJ4 bDS9GwIQf6Vm2lnat+m6zOhszfMPqSy0gYQfHNVP3HSjeyNNUdOYqo2OlAfw445B/UHO 2tcUBcYnLsB+pAK7aCNsP5gEq4CS7+gvCEwf2kH3GzA0gF7MOJkvYP5zSLU8ccvzaXx8 w0tNgRKGKzbAqWia4/BrEJSE+TQo6X4kSS+aDEL9meSl21RZaHgoX9wdv37u9rmDfzur ohSid8aJMpNUjEiwCu3cQzXT2VQ0sNlrIzPn1nZIT3crmBfey1u5p3m6dvX3Xb0zFBQu ve/Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zQAJ1zW1kaainEuzqAjCubUcfC7iYE29HKLcQcglHRE=; fh=M8JEvLWIcsunHoO97L4UkAx3HF9Ty+6j85QHG/TkO8Q=; b=rxAv+k/mkIZKzlwngjkFZxC5bp4OaJBoZoD378Lo3G+RDVY77UWCT6M3UkkN8crNED EQ8kW9P7VR3Qj/HoV3L0nUsgUdq806O6L7LDJ/P394w75z9f5j597z3t+NXA+h35FE17 dd3Gwkx5oi2YAtwl/OytsGqGITizoWmi7bBNDdeSjAsTptg5XToE+9l979t+D7TgCu6n jVYrlMDtAoNI2zdfqqMKiv4i8jASwej76BxKDCK17lv6WWK9I9WCkxl6wWOKZni2o4uz 5TvEzuQzXWxuDuMORS5QJlPPoaJXynkOtQssai/KNVWkwq2jiWid/jX5cbuoRWZwMq2V 7Fhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JNCyKbpn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a170906961700b0098d5b116e6fsi5189814ejx.856.2023.07.16.00.41.18; Sun, 16 Jul 2023 00:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JNCyKbpn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjGPHF5 (ORCPT + 99 others); Sun, 16 Jul 2023 03:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGPHFz (ORCPT ); Sun, 16 Jul 2023 03:05:55 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2FB10E6 for ; Sun, 16 Jul 2023 00:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689491153; x=1721027153; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2beqYwD+TQZ5BadpuhT7EafWDOxBDuJT6/rgBzXqHXE=; b=JNCyKbpnJzA7mumPS1VsSphLuC8sd5BeWoHfLis9lDFUi9qrA6G6hIx7 WJZC871nlXJ6NRPrRnSidAmK9nFXwxcMqEpanYIAVGrOrLOnIkqHTNQLi LiwQZuCTJjfPBIOlkFaytbxXgZLpUW1eMybtWN3rKtRFDMWjgmCot7If5 XZu4MhxgdrWiasMDWG5kdWPuMhhI9X3O/ZYuWDpn7Zws3HFL6GJ1fOddU mHqKxIOQyYmyP/26RttW7RV6/agsvqRaGq0g9nbzqXCuNP1rXct4R1Xfk VkvrZ1bUA5DG828BIpYYDevxsVBY5djGf3ft0HSHQaJaHw1d6a/9VLo5G g==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="363196414" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="363196414" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 00:05:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788273358" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788273358" Received: from unknown (HELO localhost.localdomain) ([10.226.216.117]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 00:05:51 -0700 From: kah.jing.lee@intel.com To: dinguyen@kernel.org Cc: linux-kernel@vger.kernel.org, radu.bacrau@intel.com, tien.sung.ang@intel.com, Kah Jing Lee Subject: [PATCH 0/2] Query the RSU SPT table offset to determine RSU page size Date: Sun, 16 Jul 2023 15:04:33 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771562136309023746 X-GMAIL-MSGID: 1771562136309023746 From: Kah Jing Lee Hi, This patchset is to add the generic mailbox command in the svc driver to enable the rsu driver to query spt address. SPT0 address - lower range & SPT1 address - upper range address will be queried in order to determine the page size of RSU, whether it is 32kB or 64kB that is supported. Thanks, KJ changelog v2: -Update the comment on svc COMMAND_MBOX_SEND_CMD -Update the rsu mailbox cmd ret_val to use already defined ret Radu Bacrau (1): firmware: stratix10-rsu: query spt addresses Teh Wen Ping (1): firmware: stratix10-svc: Generic Mailbox Command drivers/firmware/stratix10-rsu.c | 100 +++++++++++++++++- drivers/firmware/stratix10-svc.c | 18 ++++ include/linux/firmware/intel/stratix10-smc.h | 25 +++++ .../firmware/intel/stratix10-svc-client.h | 5 + 4 files changed, 147 insertions(+), 1 deletion(-) base-commit: 5133c9e51de41bfa902153888e11add3342ede18