Bug 294899 - hwpstate_amd: Initialize CPPC driver type
Summary: hwpstate_amd: Initialize CPPC driver type
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 16.0-CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-30 12:19 UTC by Laurent Chardon
Modified: 2026-05-09 10:42 UTC (History)
3 users (show)

See Also:


Attachments
Patch hwpstate_type_cppc (891 bytes, patch)
2026-04-30 12:19 UTC, Laurent Chardon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Chardon freebsd_committer freebsd_triage 2026-04-30 12:19:43 UTC
Created attachment 270272 [details]
Patch hwpstate_type_cppc

Set the driver type instead of preserving uninitialized stack data
Comment 1 ShengYi Hung freebsd_committer freebsd_triage 2026-05-08 09:26:09 UTC
(In reply to Laurent Chardon from comment #0)

Hi. Thanks for your patch. Could you provide a patch by usijng git-format patch. This would contain your desired author name and mail address so that I can commit easily.
Comment 2 Laurent Chardon freebsd_committer freebsd_triage 2026-05-08 12:15:18 UTC
(In reply to ShengYi Hung from comment #1)

Hi ShengYi, this is already produced by git-format-patch
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-05-09 08:39:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=072f79d0a287528b11da866d6115f726a69eca0d

commit 072f79d0a287528b11da866d6115f726a69eca0d
Author:     Laurent Chardon <laurent@FreeBSD.org>
AuthorDate: 2026-04-30 12:08:30 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-05-09 08:38:21 +0000

    hwpstate_amd: Initialize CPPC driver type

    Assign the driver type instead of preserving uninitialized stack data

    PR:     294899
    Reviewed by:    aokblast

 sys/x86/cpufreq/hwpstate_amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Laurent Chardon freebsd_committer freebsd_triage 2026-05-09 10:42:49 UTC
Thanks!