From patchwork Wed Jun 21 05:45:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Quan X-Patchwork-Id: 110788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4153266vqr; Tue, 20 Jun 2023 23:16:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Qs9ao8bk4kQJf1VWdTPhEItYMCJU2pWjBBKimJwAjocCQHorZy6sPw2nhJB43vHWqW5ul X-Received: by 2002:a05:6a20:1609:b0:10d:5430:c8d6 with SMTP id l9-20020a056a20160900b0010d5430c8d6mr16015670pzj.0.1687328216800; Tue, 20 Jun 2023 23:16:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687328216; cv=pass; d=google.com; s=arc-20160816; b=jZB/drmPBGARI/tNoiaqZd9+XV39C89FDNbGvfDegZjo8QzUhNMurezUNxWRItcQns Jel+KkbAehejbiXmGBdQf7iAg0YMOilRuhS6Esaxv44+iTUSxYidwxCbkYwG7LqxGo0Z Nj/ex/nLbaRSKH8PXae+XU+DhHNJwWZ3epg0DOhbyxdzXiTtIPkWOxI4qr1iU1tKJXW4 22BKMnYh6DOD7fO2/KipVw6j7pMBf0suxiZKgDWiNQ6t8qxMFPqSAg5sxd2swOLbKMT7 cAtKQX7n3BsWUlr87wKriR1msvnhDPj2YJObKpMVfkzewYvK039D7QB1762NP7M9hAG7 +0Ow== 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=; b=YCYJ74/vC/SLKoVuATJai109OerA476OFFb1qqaTSk/qyXqLoyHFkWfRsHIHhE3gBz hAPbgwDUbdKb7+QE8GAESuf46X7RzIezftTuOjWnvq+op2uHX/CC+jltmCbmcXQ9ow+J Wy6z9KVB4cdHSgz8wsOvcnkNmxRpbcPfqHClYV+GrrolnLsN+WDbxEI0H5Wyhs8umSSa jY3lDr8xwiVTCkz1K0vTPtWUErvfCprN0uco2FNa0y3CkFXNe5SdDnLt1gRMX6W3n4hm MIMQWUks/qe65FORdy4npUZfUJl6YRMuHGTl9TcX+WJSyuUzPwCdfq/pDJvv9xIjEq7g 7dkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Z4FoYngg; 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 u132-20020a63798a000000b0053ef0ac79c8si3451659pgc.263.2023.06.20.23.16.43; Tue, 20 Jun 2023 23:16:56 -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=Z4FoYngg; 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 S230084AbjFUFtS (ORCPT + 99 others); Wed, 21 Jun 2023 01:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbjFUFsy (ORCPT ); Wed, 21 Jun 2023 01:48:54 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2049.outbound.protection.outlook.com [40.107.93.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5ADA1739; Tue, 20 Jun 2023 22:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GScW/SWuCrndy+JspCS1AwucyzLXnbyp7J9WqYKh1erDOqrb83Spmo7Ot1JgxxwUd0RpUlDFZ4txJ3vbqisHu8EVOmXPxkCGOGpQiRETKRTXNy/KxuCJJOI28HiXfqtjDcmjwRvCIO0W4S9yXo7DM8W7U4y3KEbmRCmrf1mJ4QNC548c+AXL+dp1xqOY7dx5H33pld7iWUFKjIm2ZDXo2E76n2ehuhdKc/nMtUPNi6CN7seCyrkhhhkLZMRbMyfoFI7aiu4pC+nByZMa7E7JanOw6Xnmh/M0yvPxjrjjLZTP5HibYWZyREvRY3YsTelDGrIUlPpsuRhHob5ebvkJGA== 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=JergrLKi79FxBreLlc1O/t2/GBGt2WnhfPk5pxNjJb6iIsPkN+RndtocCoYa13SKXuXwbTC20ZdFwVPnGDnqu3YBvLk7v7UKClFIrXm305ZdQsWJ+o16uPX0l1RxfhiRDskkKWWOg4KW6wzF+lqOOqCcLsfnpRfEwzXZ0bhcZ0lV9ni8Gy65Eg9+pUowY034jDYAmTZ3evEYQmmMwYxuCf/5ycbj9NXRUkr8nlHfcpLqquqlSZ5J9TB1Fqbt+TNAKQQHzSu/O7C5okS8GvXojZz9Ra/cUu2yzBQek2ULxGhXCRj6sRCd7FlQGaD60wlT+qRkK7h66T6ZGjPljnXZNQ== 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=Z4FoYnggvok0zGJQfvqXDhmt5uevbY1ps2Bl60sfUso3d65HX1Nh7rw8wivNf8e+6BBPBJ21AIwT4ZUmQNDgZUdg7F8uJqFNua8oi8W5RWc/235/ENOclML7zRlVPwYyCpYkEGYvJLswnJdqXJDy05VXAKjavvuXWyMYT2VFnhY= Received: from DM6PR12CA0015.namprd12.prod.outlook.com (2603:10b6:5:1c0::28) by MN0PR12MB6270.namprd12.prod.outlook.com (2603:10b6:208:3c2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Wed, 21 Jun 2023 05:48:33 +0000 Received: from MWH0EPF000989E5.namprd02.prod.outlook.com (2603:10b6:5:1c0:cafe::63) by DM6PR12CA0015.outlook.office365.com (2603:10b6:5:1c0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Wed, 21 Jun 2023 05:48:32 +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 MWH0EPF000989E5.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.17 via Frontend Transport; Wed, 21 Jun 2023 05:48:32 +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; Wed, 21 Jun 2023 00:48:25 -0500 From: Evan Quan To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Evan Quan Subject: [PATCH V4 4/8] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature Date: Wed, 21 Jun 2023 13:45:59 +0800 Message-ID: <20230621054603.1262299-5-evan.quan@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230621054603.1262299-1-evan.quan@amd.com> References: <20230621054603.1262299-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: MWH0EPF000989E5:EE_|MN0PR12MB6270:EE_ X-MS-Office365-Filtering-Correlation-Id: 7efebd76-eca6-48c7-0b54-08db721b25e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8WJWMMLKqwrPV3Ty5GzTu1YxDxTMeoLUlAGnhOPDBeVbAG5ylPH3ZLMlF8iGGjU4+XCuc6NNyEXKBnRWAw+9mG2PkhvQG+8N7FoyPLIXG1EUrCllX6gkFBMISTOyelBlUqUdk9dV+AcARiTveAVFlbMqq9scF5jULvKV/0xaC1a1fNIGgKMTYZWMU8fEoXtrJOwRZFZGz+y9uKStMHzLm542o6aNxZ3wY8U8fk9GVEATIxAsOcjsapMqE1BqQuAtwvnCpjKl+IEmOLC5GAT/5iZfFSKjRlqFdTL/Cyy/bKX9HPEefRH4Y/MVlK9kqBcVJKUYVXiKvciqpRE9ZBDkaceKc7o/JGntiGsq9UVnFgY3dn6vyzpmYe7Fbo+p8rFX2u/PTOILL4XV/b/qJq3RHifz7WjQCs88hJNmNpHpIOgvcRWqCulzUnLg3GEBmzJO3LDCWhJuOXu31x2z2222jAB4ZDGOx9/i3Sj2VwEO5HTNqiR1HqHkdD0rAiAgTxDNzxLa/spo1Wc7XDXpS7auvrPyQCvvUSyvB6hPVxm4MfautbV2B9lUn3QCOPYmDL3V2khaGpUpmyTX4fcdrm1B6NWWSMGseAEk3D4fC2YAeqppBPF1W2qs2e1JGth7LMlzut/uFMI0Su549H/C+sgGyCw5nmL3ewtC1Wg4xUJuPcyX2Grno0MXpVvoXtN/DZVj+8EDiFx9L47adWEv+q8AAYb22sjsbJnaXCbckG++BWX7W6zZm4Y6lWKsyPhqubZHSBwWP6ivxprczydlrPGSiYYc73JSxerVuzjXtb190PTNwa7DIWyVsb1CNdCfqihQtz+u44XLknUxF+Q6BHSpEA== 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)(376002)(136003)(396003)(39860400002)(346002)(451199021)(46966006)(36840700001)(40470700004)(41300700001)(5660300002)(8676002)(8936002)(40480700001)(6666004)(44832011)(316002)(15650500001)(2906002)(7416002)(4326008)(70206006)(70586007)(40460700003)(336012)(426003)(110136005)(54906003)(7696005)(478600001)(36756003)(82740400003)(86362001)(82310400005)(186003)(2616005)(356005)(921005)(81166007)(16526019)(83380400001)(47076005)(1076003)(26005)(36860700001)(83996005)(2101003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2023 05:48:32.7701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7efebd76-eca6-48c7-0b54-08db721b25e7 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: MWH0EPF000989E5.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6270 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?1769291872401739602?= X-GMAIL-MSGID: =?utf-8?q?1769291872401739602?= 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