diff options
| author | Ingo Molnar <mingo@kernel.org> | 2024-11-13 03:41:59 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2024-11-13 03:42:14 +0100 | 
| commit | abe949ce0f9be943d8762f91e04b8588255f2f70 (patch) | |
| tree | d479865f75acaa95fefbb20dccc502ca3cbd5d8d /drivers/platform/x86/amd | |
| parent | 035c5e2143f3edceeede1e99ff9cf8979c548dd5 (diff) | |
| parent | 2d5404caa8c7bb5c4e0435f94b28834ae5456623 (diff) | |
Merge tag 'v6.12-rc7' into x86/mm, to pick up fixes before applying new patches
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/platform/x86/amd')
| -rw-r--r-- | drivers/platform/x86/amd/pmc/pmc.c | 5 | ||||
| -rw-r--r-- | drivers/platform/x86/amd/pmf/core.c | 1 | ||||
| -rw-r--r-- | drivers/platform/x86/amd/pmf/spc.c | 1 | 
3 files changed, 7 insertions, 0 deletions
| diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c index bbb8edb62e00..5669f94c3d06 100644 --- a/drivers/platform/x86/amd/pmc/pmc.c +++ b/drivers/platform/x86/amd/pmc/pmc.c @@ -998,6 +998,11 @@ static int amd_pmc_s2d_init(struct amd_pmc_dev *dev)  	amd_pmc_send_cmd(dev, S2D_PHYS_ADDR_LOW, &phys_addr_low, dev->s2d_msg_id, true);  	amd_pmc_send_cmd(dev, S2D_PHYS_ADDR_HIGH, &phys_addr_hi, dev->s2d_msg_id, true); +	if (!phys_addr_hi && !phys_addr_low) { +		dev_err(dev->dev, "STB is not enabled on the system; disable enable_stb or contact system vendor\n"); +		return -EINVAL; +	} +  	stb_phys_addr = ((u64)phys_addr_hi << 32 | phys_addr_low);  	/* Clear msg_port for other SMU operation */ diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c index d6af0ca036f1..347bb43a5f2b 100644 --- a/drivers/platform/x86/amd/pmf/core.c +++ b/drivers/platform/x86/amd/pmf/core.c @@ -261,6 +261,7 @@ int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer)  			dev->mtable_size = sizeof(dev->m_table);  			break;  		case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT: +		case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:  			dev->mtable_size = sizeof(dev->m_table_v2);  			break;  		default: diff --git a/drivers/platform/x86/amd/pmf/spc.c b/drivers/platform/x86/amd/pmf/spc.c index b5183969f9bf..06226eb0eab3 100644 --- a/drivers/platform/x86/amd/pmf/spc.c +++ b/drivers/platform/x86/amd/pmf/spc.c @@ -86,6 +86,7 @@ static void amd_pmf_get_smu_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_ta  					 ARRAY_SIZE(dev->m_table.avg_core_c0residency), in);  		break;  	case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT: +	case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:  		memcpy(&dev->m_table_v2, dev->buf, dev->mtable_size);  		in->ev_info.socket_power = dev->m_table_v2.apu_power + dev->m_table_v2.dgpu_power;  		in->ev_info.skin_temperature = dev->m_table_v2.skin_temp; | 
