Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2893007rdg; Mon, 16 Oct 2023 19:56:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY8kBPnyMjEozxylY73IyxUgdIEUmemboCpXQSmFTIGCOrOrGikiYyd6Na6LtNz9TJ4hEp X-Received: by 2002:a17:902:c409:b0:1c5:ea60:85c1 with SMTP id k9-20020a170902c40900b001c5ea6085c1mr1387500plk.12.1697511378281; Mon, 16 Oct 2023 19:56:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697511378; cv=pass; d=google.com; s=arc-20160816; b=WFbV0Vk60tstCKmhexYlBQkcDp0nOPbkza6SEU0LTSa70P+0Jl4Kcx4XkGl1VOtbRH UOjlmVCKJCSihL9rl78moZYiHXgZOKRZUF9TUpMXaMCe8KeyIyF8RdecZat/aMN0DDUn jpsTxk8auxHPRnmTei/lPbscPRzgrhg7Bro4JeoZLV28dgu4v0+B7uf6t+E78GMs+abY wv4CKMJ0Msfo7FWUZDpeposW4ngGq55NnWwenPUq0LCsDq/HUAUhBtDEP/8QlCBHUOpj CtHZecH1Fiv7zy0nAck8pri8xDQTChWfCEC/JgibagYregCWbOA7KwU4Hrf0L8ruJksG w2Vg== 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=Ox5SBCG8Fu40OWbXibDsR8YSHD3KADyTnG7UKvLszI8=; fh=7qYVagjf06Iuxk0RfQNsh9zjCiQ1YqeRICw8mLp4/sE=; b=I9jOZGdgmR2XcPKNema0lrBsiAST5K7hKoJODnyWMTIqP9Wplgw4sUaqVdq3VkCqhC g8qqwCvIm2oQHA/uYuvl47eQuBpcAz5aJZuvn5PRxnqpXrZVJPwQhX3HMNCJlja3OmYN /7BRuwsax7f7Xi4sXyXhrEfUI+jg7+CtQJmkxQuLlQzo0QpMsjJq8KDoKZf1h189NHBI eoHUSUiWdP/mT4XJochax1RSTdlICmh4+f667nk5lVOLu3DFtC3htSZNO5qvuNaZMAt1 uh440CRv1mzk1543+ZptfHvKbhL8zkoUw5yJZ9mnjry8iR1wVIG/CwJwIOLmhXBDXZrd JAww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=olqbz4uT; 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 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d8-20020a170902654800b001ca7308e442si703817pln.639.2023.10.16.19.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 19:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=olqbz4uT; 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 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B016A80B7C08; Mon, 16 Oct 2023 19:56:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234449AbjJQCzp (ORCPT + 52 others); Mon, 16 Oct 2023 22:55:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234460AbjJQCzk (ORCPT ); Mon, 16 Oct 2023 22:55:40 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2041.outbound.protection.outlook.com [40.107.220.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B5D121; Mon, 16 Oct 2023 19:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GXCSgW3ifk9TOoFLlECh4ikcD5iXlwstrfjSKt7yxCJVtftTHcGCQDXaprtorX+DmP24xYLKMUeVOEtiCoCoo2GQ65lL+fNNsd2T0JmuyiUD/vWDQLpgPVFCCNPwIiE6FNnxx3OXw6qAxcem0Lcg3VaoOJhnkWX3BOZPDyf8i7NcuTwiAk/Nkl1EzspVTQxvRjkxDpO+AXctMkBZEcygcWk9RcdJFfoGfML5GNCaYD6Iwvnqhg2nhmx95iyTt0O6XpM3WmfUuHyw1pU19/vSMqs0e/qL7Ba4YhUgJSk0jvm8mpf8yDl+LtTMN42mEOM1ncdHL8vGcYX8zNGUnYZKxg== 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=Ox5SBCG8Fu40OWbXibDsR8YSHD3KADyTnG7UKvLszI8=; b=cZqTGzNv0jyFuTU/lhtS9u0xeb/pwIVvGg1XZDqSdavHM5tXIii3x66zM+L6Er5eOdPJVzU8tX4gFnJF4+QFqdHAVm0NmFANvcHv4cP181i+qF/1ZUhr32Oiq8lMM86tWKAUDLhCjvwh25yjLkUpFTElTRR1r7rPvbMyDj2do0m0BN2aHLCx2ZNDWZ1ktphtoJ/XMqWCGiEELHn8ZHri/QGjPoOgMsrqvGazqheaAiEn1CZWTJQR8oned0oBXMDF4WV5OdSAaqK4lvqt0bjijnDpWsdq+5y5kA0RGo6S10vZgUQAhkyeQogrYLvSn7ey+kUXVYTWEJFGY0SrhDTfSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.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=Ox5SBCG8Fu40OWbXibDsR8YSHD3KADyTnG7UKvLszI8=; b=olqbz4uT5APquoT1ee3SuEe5BxLR/TOB6UWEEbPHWdzdPMWwIjmyCsEwHc5XGCbV5xNVUlXDY0E+YWvb3BLGde9A8pTQpDc4vLC04bmfCWqxzm2HK3LiTygDjDIa22r6VdtADDp/D24GprUtxqbyqD+Qus4DMxe8yjMSNw4wUoc= Received: from BYAPR04CA0024.namprd04.prod.outlook.com (2603:10b6:a03:40::37) by SN7PR12MB6792.namprd12.prod.outlook.com (2603:10b6:806:267::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Tue, 17 Oct 2023 02:55:27 +0000 Received: from MWH0EPF000989E8.namprd02.prod.outlook.com (2603:10b6:a03:40:cafe::3f) by BYAPR04CA0024.outlook.office365.com (2603:10b6:a03:40::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36 via Frontend Transport; Tue, 17 Oct 2023 02:55:26 +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 MWH0EPF000989E8.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6907.21 via Frontend Transport; Tue, 17 Oct 2023 02:55:26 +0000 Received: from compile-server.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.27; Mon, 16 Oct 2023 21:55:21 -0500 From: Ma Jun To: , , , , , , , , , CC: , , , , , , Evan Quan , Ma Jun Subject: [PATCH v12 5/9] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature Date: Tue, 17 Oct 2023 10:53:54 +0800 Message-ID: <20231017025358.1773598-6-Jun.Ma2@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017025358.1773598-1-Jun.Ma2@amd.com> References: <20231017025358.1773598-1-Jun.Ma2@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000989E8:EE_|SN7PR12MB6792:EE_ X-MS-Office365-Filtering-Correlation-Id: a0220f26-f8f8-48a1-0d1b-08dbcebc83ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RtU7mWVmaSl6+qil/atEM0XEtgST/xf6Uat+qxNeIgnR2gzmi+h9VDMyRRvZ3xaeze9YWnqYqOiJ/hIHoNDaKPKSRPFrL6XMbcuQiydpvKnBduA8eJFLWNHlooPNfK14WBC7eCKTeMYQpyvHK/eU4+TdwLB3Olplauio7u7c63z1hLw3uoanOWQpCWG3XsomgFsn6d00Zaz9JbRRAkyp1U16biPxudpdbg7YptJxg/2I6LrkgAXzGN2x2AlIgUYcQpZhwiexQCT1ost6R/NoAteY1N1OqrplfyaD5RzY/Yt1/mqIw8uLW6K9kr9YZ6B6dhHnl320+Al/95WsRJ43n6EufTeYWCZcWwhSpu4rZHgh/xANpd4kLkEIxWD+DUoZn/e8AWK6QRao36Le/CQDJHdbc2iJugQzqEFA9JfEMoVIucEM8QLE5Rz3LKjEWAlbqC1LVE8/NeXQmdd/iJeH6AYIbto6/amma9qAc31/N/dbZ0d/hd+V4giQ8a69pcaVAuEpLUkD8nJAYQ4qDfOs4z4LKlOBqVrPEtdvl+fPvwAapwlqlv7nUW/VnITREJ1aIYPE8K6FNjoZoDS0pdxI4Ajaz0FxLkbaHH3XqzZHWqXM30xNiDcz5oK/6uRGxJ7QIeetaGoRvuMPCaxk9YNujF9LuRTaeS00BympyEDN/7yCi4TWRMtIev1t9E7ITycal41B97G/uEbMNdsbAsX24CmRRgT2eW8hb4NAL8iNKsxzGKH3tM6ZZe6WDyYW7ornx0FoSf7t13FgqIOAB7EgGVQFEx51gloKh1Xyw/tzIx4= 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:(13230031)(4636009)(346002)(136003)(39860400002)(376002)(396003)(230922051799003)(1800799009)(82310400011)(64100799003)(186009)(451199024)(36840700001)(40470700004)(2906002)(110136005)(7416002)(41300700001)(921005)(81166007)(40480700001)(356005)(15650500001)(86362001)(478600001)(36756003)(54906003)(70206006)(70586007)(45080400002)(32650700002)(36860700001)(6666004)(7696005)(316002)(6636002)(8936002)(8676002)(40460700003)(16526019)(336012)(82740400003)(426003)(1076003)(26005)(2616005)(83380400001)(4326008)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 02:55:26.3993 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0220f26-f8f8-48a1-0d1b-08dbcebc83ef 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: MWH0EPF000989E8.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6792 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 19:56:14 -0700 (PDT) From: Evan Quan Add those data structures to support Wifi RFI mitigation feature. Signed-off-by: Evan Quan Reviewed-by: Mario Limonciello Signed-off-by: Ma Jun --- .../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 9dd1ed5b8940..e481407b6584 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 @@ -391,6 +391,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, @@ -1615,7 +1626,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 62b7c0daff68..1530ca002c6c 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, @@ -1605,7 +1616,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