Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7908717rwp; Wed, 19 Jul 2023 02:06:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlH32wx1d9NSEn171eeaEf1ZtzBHhxb+aWX/R8XaY3n59V1tOxXe0o0b2X4kdQujZJcOQ0px X-Received: by 2002:a05:6a20:3247:b0:133:a6c1:2a5f with SMTP id hm7-20020a056a20324700b00133a6c12a5fmr1779942pzc.30.1689757589009; Wed, 19 Jul 2023 02:06:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689757588; cv=pass; d=google.com; s=arc-20160816; b=IAprjEDXQcpWFh3yzQAfJGK8kyUhTt3PzV9w9IjmhjIPNMsxyvscjv7ZDUZhAHmpZq T3YhuD4PVkxqQHbnDWt/JrOTb+nqStzsMvQ57K2y4lkMWD4slTDcw+dgh0V1eWp+NZ+S UZ4bFrQVlHVppG77oZNSJE/N5ZEkcbDEMRZMdFHSa/nCi5SGw5L2XfGlnT5rTygY/cKb bQP9wuXtjvnvNM3MUeDmscGJjy6RHE3sIj4NBWnfJQRGPvEJsizI83iAYsdoefHXSdHg yh/uGHIVRwn6gKBQfwvEp9jGyiH1vnUzBPqEfVGNV4+a1g9xiiBRIKyHmruiGNc4txU1 TZYQ== 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=WpfgbTJceSODJ2RxjBwoHNUpZn2apRLDTiiS5YGrd/M=; b=NtQnPTvB93fmaTDn2FZNV0uhj/O/UPIV5X9wBm6Yz4mU+oEkEnX5vWRQlb1gkMqRdg 8QmLDkCR/Ztu4GMLacPn9nB2qaoFJG3ZCygrb7yBGcvV8BouKlR0jso8yl1FUMK47uy1 KTK1qozh+Ukh8lOTGJsCUKK2uLiIOE7yxsza8DstwP9NkwDDxJ1dNjN0hPGk3cfd8/ex OBjUV0kHZ9GlLLLGC+ijHnsi5gR60IPSAym0bbA+Zg4XjNGxYUijSR70ZQW06zr4n7Sj AMuzzFyM2GBMdyoS0+RPvdl/rF18GBIbnB3q85UT/ti7BF/bWmDpgKdeiiTOsz8b7u6C yz+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kLlAf2zW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a63191b000000b0053ff537164fsi3156443pgl.783.2023.07.19.02.06.20; Wed, 19 Jul 2023 02:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=kLlAf2zW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S231163AbjGSJDF (ORCPT + 58 others); Wed, 19 Jul 2023 05:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbjGSJCo (ORCPT ); Wed, 19 Jul 2023 05:02:44 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2075.outbound.protection.outlook.com [40.107.100.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE30F1FE8; Wed, 19 Jul 2023 02:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SRenHM9z6AyC8BV0V+PeZZnJU5h/m0nFoXhwgE/QeAfkCA8ps5HvYroSdNAlxeX9tZjtVcsTE1wRcnGoWkMHpe8tB805KZTYoHwUFFqaMB3VVNI0wTIG8JMbLPhivpsAVFJ4H7LZbD9CjFBUmwPXuEzHjZFqIhlQTe3nIDMzscx5Fr6W7viuYDL3q/S8f7OnNHqDAL57zeXLXxhC5FjBUplfLGWllk5sCa1rau6+W1QYFhajiBrKPQtDo3BL1SDsbNQc+7jZvX799EBfxHeJPxr46T8wmuIaU6Mkmz/w/MfMLfBesPukLiLl6sSVtNDHBKXp40K8ELSfpsy1mNFR9A== 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=mg9ITRIpXPJKuv94fWxoWOep6f1DojySyDy41OFrfkBuETDb6v885lbuiQ7Wumsbkc7tOOKsBddZkuzKus5UsFzk4cTd7MWRGY4gHQHW4uI5sl9vPUZ58AQMg+axUcqafhO1858PTnFhqONI06K9VBPjXGOsDRLELZedcV9xd4B+E35ZTM9W/w1ONnEi0rsXu7U5rAbkRPNk0u7PSwIQHDZHyq4SC3oQBhYkgZbdvvSqD/QDQfYqdaLhOGj/tR9v+xTfkZkeKVwSVZ734bn9JfZXw0MlsJLH/qusKFePjyzE6X2f017OwlQNDF/jH8zCCmGEx+AiCm5GcYtoHZePHw== 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=kLlAf2zW2PpivHkIZR0XYGrTscDaO5T0W0sDGAN2wAvDpmr+jSmfnPiUUaMVF7D09+nZYOIKkRjudOPQpbnoeAwgRqB8ft67kpr1TSqX2q0SnZhfuP2Ejl4eSCnPoX6HVWyZocrOQMabC+eNrZHZ/5LaoygCl8bfNSLvbIFHRV8= Received: from SJ0PR03CA0160.namprd03.prod.outlook.com (2603:10b6:a03:338::15) by MN0PR12MB5908.namprd12.prod.outlook.com (2603:10b6:208:37c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Wed, 19 Jul 2023 09:02:38 +0000 Received: from DM6NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:338:cafe::cb) by SJ0PR03CA0160.outlook.office365.com (2603:10b6:a03:338::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24 via Frontend Transport; Wed, 19 Jul 2023 09:02:38 +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 DM6NAM11FT028.mail.protection.outlook.com (10.13.173.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6588.34 via Frontend Transport; Wed, 19 Jul 2023 09:02:37 +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, 19 Jul 2023 04:02:29 -0500 From: Evan Quan To: , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Evan Quan , Mario Limonciello Subject: [PATCH V7 5/9] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature Date: Wed, 19 Jul 2023 17:00:16 +0800 Message-ID: <20230719090020.2716892-6-evan.quan@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719090020.2716892-1-evan.quan@amd.com> References: <20230719090020.2716892-1-evan.quan@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: DM6NAM11FT028:EE_|MN0PR12MB5908:EE_ X-MS-Office365-Filtering-Correlation-Id: 07b07a80-92c9-480f-cdbb-08db8836e667 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QSbUjS9NN9QoEF/ppCjYljVH8jUX3uBTnUHlw6daO0wzfMJx1Ib50j4E6C1+Adrb5v/30QgRV/N5rbLLzhS1XpZnbzD5UgGxZPiHqx0sj/3+2z+ikLXF/4YcYyZEylBbkgLOzSOl0itK3/RJg3HSxCMtCgk2DOXdRPsL7XCboI4h578U0V3GM+ltwsTYn/jHvqKqgNMK4QiTW9Ryayl3Ns+8m93dRtGwNrEChLds5IyXbM696RvvRKdBJDpR6/tKCAO1HZQ2SFSJJaofLphEQGZveGHsBtD4bYen7SvAEYq6qiFfiOmFKYKL8q1YJeEkFAFw2p7P7EfB1Pp65k/XXAlblyRfmZB6gno6jn4RlQlJ6GvEnfxYObeaFm2cdoCG6/KFPpNK5JG/Usdwmt2DrdDMpJUtFGK0MJ0uAPOBsdkPsU+mtkUDRrWyGUeI5cR4NzP6zkixHsQcX2myu8FrjQfocDImNwCdoJkS9FX6YHkUz1AiXtBWoOh6YFt5DHJLTfGkJ9N2JVRtmqYXdo4h240j+2ANH2W5w4KaQ/Nveri9dk7IRVcOo5+Mtu/SUYdOrEPEGd12iOkwwEvpP3QvZt6MNpI1RkxARPDA0Hwrr7Ze6lU9HJ7ZFf91+azPfe7NVWBw1V/RFf84vkq1zPOfbGd7fMPQdbHC50B6+kSjSbrQLfEtb/WMhsWDHFr+hJQr4epQuGZBlLGeBPp5t5i22g6igfL4Edf/mn23XLCnPbFLOPNOPS2d3xyur1UDD9/e9thjlCW/aZVWNxoNWpym1MiZfqJnyW+kxHL2+STpBEdiOW/cAw6zJEC4UXZVehyPMzqsvt6xlCUzmjTM2xrlGw== 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)(346002)(39860400002)(136003)(396003)(451199021)(82310400008)(46966006)(40470700004)(36840700001)(2906002)(41300700001)(316002)(7416002)(8936002)(8676002)(5660300002)(40460700003)(15650500001)(44832011)(36756003)(40480700001)(86362001)(1076003)(26005)(6666004)(478600001)(7696005)(82740400003)(47076005)(83380400001)(36860700001)(186003)(16526019)(426003)(336012)(2616005)(921005)(81166007)(356005)(110136005)(54906003)(70586007)(70206006)(4326008)(2101003)(36900700001)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2023 09:02:37.7450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07b07a80-92c9-480f-cdbb-08db8836e667 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: DM6NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5908 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_BLOCKED,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-wireless@vger.kernel.org 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 -- 2.34.1