From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out28-169.mail.aliyun.com (out28-169.mail.aliyun.com [115.124.28.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1453F3E63A6 for ; Mon, 15 Jun 2026 12:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781525884; cv=none; b=JlPbNh5P1KanFXZJHo4aURcIt4ljwLcL7eduqxOt10ihRz5KHC6HPE+8DvDNOik0BHkFiRnLDkgjZWz4UqXa2TbbqDYPz+6d2vhzXUiDUXfj+EH+X9r7vceZshJP0WOr3wSwNbs2UTWAv1yTL4kgZRT/exbFVYxE6hrBg0MhNHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781525884; c=relaxed/simple; bh=9ARu/1xxYpLmxocgwT64ehjc98/NtMkUqswXJ92/frs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=f1POVhY7+7z6N4owfqmHn/mez0HXCWSaVq2sIKFt7QjfG0bPBMBgkWlyQK7J8erKcXevc46Ojf8Mxui/RO0uBpi6dV+kLQ/a01mMwLiDsQzqkNpJVTXETMr0MnfH7pydhC8qHeUo9GVJX8E22KvMCz4oU0O0YdB/NfAkDiLRpkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net; spf=pass smtp.mailfrom=open-hieco.net; arc=none smtp.client-ip=115.124.28.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=open-hieco.net X-Alimail-AntiSpam:AC=CONTINUE;BC=0.1185453|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0792714-0.00323255-0.917496;FP=17705928426912259259|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033068016216;MF=fuhao@open-hieco.net;NM=1;PH=DS;RN=24;RT=24;SR=0;TI=SMTPD_---.hymY8.O_1781525841; Received: from higon..(mailfrom:fuhao@open-hieco.net fp:SMTPD_---.hymY8.O_1781525841 cluster:ay29) by smtp.aliyun-inc.com; Mon, 15 Jun 2026 20:17:41 +0800 From: Fu Hao To: puwen@hygon.cn, tglx@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, peterz@infradead.org, acme@kernel.org, joro@8bytes.org, will@kernel.org, suravee.suthikulpanit@amd.com, robin.murphy@arm.com, bhelgaas@google.com, perex@perex.cz, tiwai@suse.com, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, james.clark@linaro.org, hpa@zytor.com Cc: linux-kernel@vger.kernel.org, tingyin.duan@gmail.com, Fu Hao Subject: [PATCH v3 0/7] Add support for Hygon family 18h models 4h-8h Date: Mon, 15 Jun 2026 20:16:35 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This patch series introduce support for the new-generation Hygon processor models 0x4–0x8, addressing five key areas: 1. CPU Topology Updates The new processor introduces a revised CPU topology hierarchy compared to previous generations. This patch updates the kernel's topology detection logic to correctly identify core/socket relationships and cache sharing patterns. 2. L3 Performance Monitoring Updates The L3 perf registers of model 6h differ from those of the previous processor. 3. Microcode loading Add microcode loading support for Hygon processor. 4. Audio Controller Driver Add initial support for the integrated HD-Audio controller. 5. New SB IOAPIC information support The southbridge IOAPIC of Hygon's new-generation processors is located at 00:0b.0. v2->v3: - Refine the commit messages for patch x86/cpu/hygon. - Update the logic for deriving the LLC ID from the APIC ID on Hygon processors. - Clean up and refine Hygon microcode support code. - Refine the code of Hygon HD-Audio device ID. - The iommu/hygon patch has been accepted and merged into iommu branch. v1->v2: - Refine the patch x86/cpu/hygon. - Do a separate compilation unit on hygon microcode loading support. - Use "access_sdnctl_in_dword" instead of "hygon_dword_acess" for accessing the HDA registers. Fu Hao (7): x86/cpu/hygon: Adjust the die_id and logical_die_id for Hygon models 0x4 through 0x8 x86/cpu: Get LLC ID for Hygon processor models 0x6 through 0x8 x86/cpu/hygon: Remove Spectral Chicken for Hygon processors perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6h x86/microcode/hygon: Add microcode loading support for Hygon processors ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio ALSA: hda: Fix single byte writing issue for Hygon family 18h model 5h arch/x86/Kconfig | 2 +- arch/x86/events/amd/uncore.c | 48 +- arch/x86/include/asm/perf_event.h | 8 + arch/x86/kernel/cpu/cacheinfo.c | 21 +- arch/x86/kernel/cpu/hygon.c | 16 +- arch/x86/kernel/cpu/microcode/Makefile | 1 + arch/x86/kernel/cpu/microcode/core.c | 17 +- arch/x86/kernel/cpu/microcode/hygon.c | 820 +++++++++++++++++++++++ arch/x86/kernel/cpu/microcode/internal.h | 20 + sound/hda/controllers/intel.c | 11 + sound/hda/core/controller.c | 10 +- sound/hda/core/stream.c | 40 +- 12 files changed, 991 insertions(+), 23 deletions(-) create mode 100644 arch/x86/kernel/cpu/microcode/hygon.c -- 2.34.1