From patchwork Fri Jun 30 10:32:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Quan X-Patchwork-Id: 114667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10259695vqr; Fri, 30 Jun 2023 03:46:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgz3MGRvMDsa9dObPRAnpcezPbRKgEl/748rwQnaHBOLZ2J0wiT1b0ppVUWQxqxxn5qxsv X-Received: by 2002:a05:6a20:914d:b0:12d:d6e:c945 with SMTP id x13-20020a056a20914d00b0012d0d6ec945mr2030001pzc.49.1688122002630; Fri, 30 Jun 2023 03:46:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688122002; cv=pass; d=google.com; s=arc-20160816; b=Opd9x/FHr8GGrnYHn9v/K1ogxua1iav2F5y0loSwtUPQErbRbDi6ROTLuXfO8BxW4l t/Z1QUPnA3VK3ho7MWcGbTREYsFMAy9WJmYy8c6iLpJDrb9mUQslJY7PiJb6IZSzMV0w 5aOtxrh6+Mq3bYbHgAQk0HynREZp4NDsKm+UAZgVnmsJUFCpZOkt1uQwwrYc2v3nXB3Z mOu0HDf8tCUrDMwzuW644WfR7sqUp+FI9NhZacO3iPorHkOYBwyBtQEv0yMe120TZ2QG yqRsWJfSqwuTCM6M5dmQxvR8A44sXeGuYj2LF9buEQtFaI3swPJ3GGtQQRtR0rU47WhA PKqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jiyRm8230ePWHdpc1Lroiu7N3Eh7mvvWEAN2GjgUtx0=; fh=7yAUDM/fW7MjH1A34f3XGs5dG3yJvcsrWz5pWYGU/Dc=; b=U/Lj4hQO1EOUAJpcqQoRNdsODzQ9FaRqKWIJkhADYRQMablpUQ1h35YLrlTvIQq0VG CT0XMG2sOaWS5onSd2v9Rfk9UOYNJ39rdHFXH/ajKoJadIk534f5+5/d0M23BfykMFSk JRqr4YYPP8OZpepN3Ejee8FkPEUnFhjclYllyY2xa0H0njE5DBitnCjACbp5y6Wp6Vmv Q53+INRSNO4uAI5Mh/ruZkYlpUAvLOlXC6K4Dd+rjW3q68O/nUqQLnBSrhRuIQ8nz7MB yz7Rp0pmTpJRqbw5XwhF9GsvkoNOIH2hA2UDTg7of7n5kd4S2m9KLUrUZ3YXE/cfJPHj ALXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=mCyMzTPx; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a17090311c900b001b3dacdf717si13173852plh.608.2023.06.30.03.46.30; Fri, 30 Jun 2023 03:46:42 -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=@amd.com header.s=selector1 header.b=mCyMzTPx; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbjF3KfJ (ORCPT + 99 others); Fri, 30 Jun 2023 06:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbjF3Kex (ORCPT ); Fri, 30 Jun 2023 06:34:53 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2052.outbound.protection.outlook.com [40.107.220.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC20B30C5; Fri, 30 Jun 2023 03:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iO3/JBZ9EZOboZpvMCgoWEu3n9+OSqD6fdKwOarXZa8SHgOqdDgU+86Xbpjfg352jMEm9rzW4cPGqAAJZPFh6+BJTUxVcslPuchw9e2N3+HFMFL4SGBwHbxd97MLThvARQuXDDnuPaogL0Zhfg4qq1+2mKnMKbrwROMHt4g2R1PgHWW9rbLBWeLylLciJ5VwFIwlGSEsfqyj2G14G/YBjMXxKAUQnKNPoBj4jmbVci+RFRcwJqeQba6Ej4pTt9zBjO3dZRATWcVi5GL3n5IGAgjndcv/H5DV8o9i2StjSzWBNthSCr2GMoZI03qjYqEY83hMl4QRcPaJMIgMfg5uiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jiyRm8230ePWHdpc1Lroiu7N3Eh7mvvWEAN2GjgUtx0=; b=TM/MptCyctFgPXga451t1KjBTaeuIO+UWO6Pnt0a/WdcvXzIHsnF9e6CHco+jcXcufkAgIisWKewE7iU6RWtDcYRkxBdvqtP1o5mZvA/FBtfhmIapHdXbrYdz40xXqSu4giOoxnzu4igIz83L7GZMx/KcyTzIQzdSScJ3XPgM2BVne0s/TcCrQFrdcb5S8e65LE9w0GClRt9VuoBhZ2xZkMas5oSbJr46g59KtRWtnY1UGOL2HEPpaVQ2EwYQfKyvjFyjzd9Q0XtYGu6CsU+rpLAnqVzirIBA1jGwbKP78aMROtHK3cH9Iipvy3seX6O219r5+TusnsrExctv2EvAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jiyRm8230ePWHdpc1Lroiu7N3Eh7mvvWEAN2GjgUtx0=; b=mCyMzTPxdfcc1HJZnZRIh1cMQP3adD0kXRbpOe1d5N3TF1zMktEgJKyQ45KXhmchZxHCCcslCuQ+FwEHU4CPXvPkYl8xpoRLgbS/ZFCjRQCFw89tGq+u+UXNb39PKe5mAigsVcmSuF+/YDJ4Ct6xB+cNoehtPac3JFftejoSrw8= Received: from DM5PR07CA0108.namprd07.prod.outlook.com (2603:10b6:4:ae::37) by MN0PR12MB5907.namprd12.prod.outlook.com (2603:10b6:208:37b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Fri, 30 Jun 2023 10:34:47 +0000 Received: from DM6NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:4:ae:cafe::70) by DM5PR07CA0108.outlook.office365.com (2603:10b6:4:ae::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.22 via Frontend Transport; Fri, 30 Jun 2023 10:34:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT006.mail.protection.outlook.com (10.13.173.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.48 via Frontend Transport; Fri, 30 Jun 2023 10:34:47 +0000 Received: from equan-buildpc.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 30 Jun 2023 05:34:39 -0500 From: Evan Quan To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Evan Quan , Mario Limonciello Subject: [PATCH V5 5/9] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature Date: Fri, 30 Jun 2023 18:32:36 +0800 Message-ID: <20230630103240.1557100-6-evan.quan@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230630103240.1557100-1-evan.quan@amd.com> References: <20230630103240.1557100-1-evan.quan@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT006:EE_|MN0PR12MB5907:EE_ X-MS-Office365-Filtering-Correlation-Id: b62a1fb7-aead-4119-6cb8-08db7955a099 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 90zQGhhiQI+KfnGhmFPPgCpbvjLEJVYR+cL1/vf/jjefkjpVhUthnv6s9F7aVGTUPNFOW8Xb/OZnqWXl+J8bEQTfvlNejMeZgLyknP1DdIe9oiTStWbSUJHjqtP+MO/EnsU1lKgXlCbL8KLtwUwnqXX2qD42543nw09THZnzX7L0aQFuazjYregtX3rr9ochF4Jy9e3+h8S3dFo72gQZwyS8YF0EEhUEEwT6a9AEp18G5HRB1J/14+V8BTVHt7Fmon9lTakJtZvvzNayoSwDYiQwBWRQOxBJ3wdgePof2lhn9jYpqfTmcOmPBB+Ub6gWsaY+jTDZxtH2T7ZSXRGaZzzQUylESEWSXjrcOhXiI6EKTPnTH8UPJSjyAYETgvYScw2Ok85lgkrbYaT+uEe+wKw8HPH91QGPBm/esIhchYBAhMMRb00HA0+8PFCieEjIJr16kzZIwW+yb/w/LE5RQ2hYKfwCHCouD6rotHSaX+y06q1nBvzEFBbafrutSwNfBiQOiuHYu7QCliefY9ynss+NxMchxRC6V1AzbStmXm+O33p+GriNlHILcEzMVCCjj5D1xB//V0BcRJ8+B22QvncRaehXcsNeKBAKnYvRIWpCJev18Yrj2kOu0AsA8ojxgzLlqpYwK2djLq+eQUACJgWcTc6wxbIKWYorRC4+VEnSDpi2pCoktA5e/2lhSi6L3UStSEZsI8NwceuubhDc11/KskMw5+alaeuHYwMKwRQSAq5kgcjjzyDyqEwyj5BNNnOkJIiB4DN/DGc8dPhupKuTkjczZdZTpylHUHYLFr2sGFAK+MdhHujzAEd0tRSSrTaolubWaLGaiZPw0c0g1A== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(376002)(346002)(39860400002)(451199021)(40470700004)(36840700001)(46966006)(15650500001)(186003)(16526019)(36860700001)(426003)(40480700001)(83380400001)(336012)(2616005)(47076005)(40460700003)(6666004)(2906002)(316002)(70206006)(70586007)(8676002)(8936002)(110136005)(41300700001)(54906003)(81166007)(356005)(921005)(478600001)(4326008)(82740400003)(86362001)(1076003)(44832011)(26005)(82310400005)(7696005)(36756003)(5660300002)(7416002)(2101003)(83996005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2023 10:34:47.5866 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b62a1fb7-aead-4119-6cb8-08db7955a099 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5907 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770124217276626611?= X-GMAIL-MSGID: =?utf-8?q?1770124217276626611?= Add those data structures to support Wifi RFI mitigation feature. Signed-off-by: Evan Quan Reviewed-by: Mario Limonciello --- .../pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h | 14 +++++++++++++- .../pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h | 14 +++++++++++++- .../amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h | 3 ++- .../amd/pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h | 3 ++- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h index b686fb68a6e7..d64188fb5839 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h @@ -388,6 +388,17 @@ typedef struct { EccInfo_t EccInfo[24]; } EccInfoTable_t; +typedef struct { + uint16_t LowFreq; + uint16_t HighFreq; +} WifiOneBand_t; + +typedef struct { + uint32_t WifiBandEntryNum; + WifiOneBand_t WifiBandEntry[11]; + uint32_t MmHubPadding[8]; +} WifiBandEntryTable_t; + //D3HOT sequences typedef enum { BACO_SEQUENCE, @@ -1592,7 +1603,8 @@ typedef struct { #define TABLE_I2C_COMMANDS 9 #define TABLE_DRIVER_INFO 10 #define TABLE_ECCINFO 11 -#define TABLE_COUNT 12 +#define TABLE_WIFIBAND 12 +#define TABLE_COUNT 13 //IH Interupt ID #define IH_INTERRUPT_ID_TO_DRIVER 0xFE diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h index 4c46a0392451..77483e8485e7 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h @@ -392,6 +392,17 @@ typedef struct { EccInfo_t EccInfo[24]; } EccInfoTable_t; +typedef struct { + uint16_t LowFreq; + uint16_t HighFreq; +} WifiOneBand_t; + +typedef struct { + uint32_t WifiBandEntryNum; + WifiOneBand_t WifiBandEntry[11]; + uint32_t MmHubPadding[8]; +} WifiBandEntryTable_t; + //D3HOT sequences typedef enum { BACO_SEQUENCE, @@ -1624,7 +1635,8 @@ typedef struct { #define TABLE_I2C_COMMANDS 9 #define TABLE_DRIVER_INFO 10 #define TABLE_ECCINFO 11 -#define TABLE_COUNT 12 +#define TABLE_WIFIBAND 12 +#define TABLE_COUNT 13 //IH Interupt ID #define IH_INTERRUPT_ID_TO_DRIVER 0xFE diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h index 10cff75b44d5..c98cc32d11bd 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h @@ -138,7 +138,8 @@ #define PPSMC_MSG_SetBadMemoryPagesRetiredFlagsPerChannel 0x4A #define PPSMC_MSG_SetPriorityDeltaGain 0x4B #define PPSMC_MSG_AllowIHHostInterrupt 0x4C -#define PPSMC_Message_Count 0x4D +#define PPSMC_MSG_EnableUCLKShadow 0x51 +#define PPSMC_Message_Count 0x52 //Debug Dump Message #define DEBUGSMC_MSG_TestMessage 0x1 diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h index 6aaefca9b595..a6bf9cdd130e 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h @@ -134,6 +134,7 @@ #define PPSMC_MSG_SetBadMemoryPagesRetiredFlagsPerChannel 0x4A #define PPSMC_MSG_SetPriorityDeltaGain 0x4B #define PPSMC_MSG_AllowIHHostInterrupt 0x4C -#define PPSMC_Message_Count 0x4D +#define PPSMC_MSG_EnableUCLKShadow 0x51 +#define PPSMC_Message_Count 0x52 #endif