From: Mario Limonciello <mario.limonciello@amd.com>
To: Evan Quan <evan.quan@amd.com>,
rafael@kernel.org, lenb@kernel.org, Alexander.Deucher@amd.com,
Christian.Koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com,
daniel@ffwll.ch, kvalo@kernel.org, nbd@nbd.name,
lorenzo@kernel.org, ryder.lee@mediatek.com,
shayne.chen@mediatek.com, sean.wang@mediatek.com,
matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
Lijo.Lazar@amd.com
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH V3 3/7] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature
Date: Sun, 18 Jun 2023 21:18:03 -0500 [thread overview]
Message-ID: <6386e0a4-3cea-e691-e33f-d4617812e8c6@amd.com> (raw)
In-Reply-To: <20230616065757.1054422-4-evan.quan@amd.com>
On 6/16/23 01:57, Evan Quan wrote:
> Add those data structures to support Wifi RFI mitigation feature.
>
> Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> .../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
next prev parent reply other threads:[~2023-06-19 2:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-16 6:57 [PATCH V3 0/7] Support Wifi RFI interference mitigation feature Evan Quan
2023-06-16 6:57 ` [PATCH V3 1/7] drivers/acpi: Add support for Wifi band RF mitigations Evan Quan
2023-06-19 2:04 ` Mario Limonciello
2023-06-21 1:26 ` Quan, Evan
2023-06-16 6:57 ` [PATCH V3 2/7] wifi: mac80211: Add support for ACPI WBRF Evan Quan
2023-06-19 2:17 ` Mario Limonciello
2023-06-19 8:24 ` Johannes Berg
2023-06-21 1:04 ` Quan, Evan
2023-06-21 1:24 ` Quan, Evan
2023-06-16 6:57 ` [PATCH V3 3/7] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature Evan Quan
2023-06-19 2:18 ` Mario Limonciello [this message]
2023-06-16 6:57 ` [PATCH V3 4/7] drm/amd/pm: setup the framework to support Wifi RFI mitigation feature Evan Quan
2023-06-19 2:22 ` Mario Limonciello
2023-06-19 14:54 ` Lazar, Lijo
2023-06-21 0:34 ` Quan, Evan
2023-06-16 6:57 ` [PATCH V3 5/7] drm/amd/pm: add flood detection for wbrf events Evan Quan
2023-06-19 2:22 ` Mario Limonciello
2023-06-16 6:57 ` [PATCH V3 6/7] drm/amd/pm: enable Wifi RFI mitigation feature support for SMU13.0.0 Evan Quan
2023-06-19 2:26 ` Mario Limonciello
2023-06-16 6:57 ` [PATCH V3 7/7] drm/amd/pm: enable Wifi RFI mitigation feature support for SMU13.0.7 Evan Quan
2023-06-19 2:27 ` Mario Limonciello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6386e0a4-3cea-e691-e33f-d4617812e8c6@amd.com \
--to=mario.limonciello@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Christian.Koenig@amd.com \
--cc=Lijo.Lazar@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=evan.quan@amd.com \
--cc=kvalo@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=rafael@kernel.org \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).