Dataset Viewer
Auto-converted to Parquet Duplicate
data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
The crash memory exclude of crashk_res and crashk_cma memory on powerpc are almost identical to the generic crash_exclude_core_ranges(). By introducing the architecture-specific arch_crash_exclude_mem_range() function with a default implementation of crash_exclude_mem_range(), and using crash_exclude_mem_range_guarded...
{ "author": "Jinjie Ruan <ruanjinjie@huawei.com>", "date": "Thu, 26 Feb 2026 21:04:35 +0800", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
From: Sourabh Jain <sourabhjain@linux.ibm.com> During a memory hot-remove event, the elfcorehdr is rebuilt to exclude the removed memory. While updating the crash memory ranges for this operation, the crash memory ranges array can become unsorted. This happens because remove_mem_range() may split a memory range into t...
{ "author": "Jinjie Ruan <ruanjinjie@huawei.com>", "date": "Thu, 26 Feb 2026 21:04:33 +0800", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
Commit 35c18f2933c5 ("Add a new optional ",cma" suffix to the crashkernel= command line option") and commit ab475510e042 ("kdump: implement reserve_crashkernel_cma") added CMA support for kdump crashkernel reservation. Crash kernel memory reservation wastes production resources if too large, risks kdump failure if too...
{ "author": "Jinjie Ruan <ruanjinjie@huawei.com>", "date": "Thu, 26 Feb 2026 21:04:36 +0800", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
The crash memory alloc, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, handling them in the crash core would eliminate a lot of duplication, so do them in the common code. To achieve the above goal, three architecture-specific functions are intr...
{ "author": "Jinjie Ruan <ruanjinjie@huawei.com>", "date": "Thu, 26 Feb 2026 21:04:34 +0800", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
Commit 35c18f2933c5 ("Add a new optional ",cma" suffix to the crashkernel= command line option") and commit ab475510e042 ("kdump: implement reserve_crashkernel_cma") added CMA support for kdump crashkernel reservation. This allows the kernel to dynamically allocate contiguous memory for crash dumping when needed, rathe...
{ "author": "Jinjie Ruan <ruanjinjie@huawei.com>", "date": "Thu, 26 Feb 2026 21:04:37 +0800", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
On 26/02/26 18:34, Jinjie Ruan wrote: update_crash_elfcorehdr() in arch/powerpc/kexec/crash.c still calls crash_exclude_mem_range_guarded(), causing a build failure. ld: arch/powerpc/kexec/crash.o: in function `update_crash_elfcorehdr': /root/linux/arch/powerpc/kexec/crash.c:454: undefined reference to `crash_exclu...
{ "author": "Sourabh Jain <sourabhjain@linux.ibm.com>", "date": "Fri, 27 Feb 2026 20:13:56 +0530", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
The crash memory allocation, and the exclude of crashk_res, crashk_low_res and crashk_cma memory are almost identical across different architectures, This patch set handle them in crash core in a general way, which eliminate a lot of duplication code. And add support for crashkernel CMA reservation for arm64 and riscv...
null
null
null
[PATCH v7 0/5] arm64/riscv: Add support for crashkernel CMA reservation
Resend of: https://lore.kernel.org/all/19cf18b5-362d-4ff2-8b85-e2e72809250c@linux.ibm.com/ On 26/02/26 18:34, Jinjie Ruan wrote: update_crash_elfcorehdr() in arch/powerpc/kexec/crash.c still calls crash_exclude_mem_range_guarded(), causing a build failure. ld: arch/powerpc/kexec/crash.o: in function `update_crash_...
{ "author": "Sourabh Jain <sourabhjain@linux.ibm.com>", "date": "Fri, 27 Feb 2026 20:20:34 +0530", "is_openbsd": false, "thread_id": "20260226130437.1867658-1-ruanjinjie@huawei.com.mbox.gz" }
lkml_critique
lkml
Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes: - CHIPID (SoC ID register block) - PIT (Period Interval Timer, old style) - PIT64B (64-bit Period Interval Timer, newer parts) - ST (System Timer, including watchdog subnode) -...
null
null
null
[PATCH v4 0/5] dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML
Convert Atmel system registers binding to YAML format. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akhila YS <akhilayalmati@gmail.com> --- .../devicetree/bindings/arm/atmel-sysregs.txt | 5 --- .../bindings/arm/microchip,sama7g5-chipid.yaml | 41 ++++++++++++++++++++++ 2 files changed...
{ "author": "Akhila YS <akhilayalmati@gmail.com>", "date": "Fri, 27 Feb 2026 15:14:31 +0000", "is_openbsd": false, "thread_id": "20260227-arm-microchip-v4-0-7e2ae1c5b5d6@gmail.com.mbox.gz" }
lkml_critique
lkml
Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes: - CHIPID (SoC ID register block) - PIT (Period Interval Timer, old style) - PIT64B (64-bit Period Interval Timer, newer parts) - ST (System Timer, including watchdog subnode) -...
null
null
null
[PATCH v4 0/5] dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML
Convert Atmel Periodic interval timer (PIT) binding to YAML format. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akhila YS <akhilayalmati@gmail.com> --- .../bindings/arm/atmel,at91sam9260-pit.yaml | 49 ++++++++++++++++++++++ .../devicetree/bindings/arm/atmel-sysregs.txt | 6 --- 2 ...
{ "author": "Akhila YS <akhilayalmati@gmail.com>", "date": "Fri, 27 Feb 2026 15:14:32 +0000", "is_openbsd": false, "thread_id": "20260227-arm-microchip-v4-0-7e2ae1c5b5d6@gmail.com.mbox.gz" }
lkml_critique
lkml
Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes: - CHIPID (SoC ID register block) - PIT (Period Interval Timer, old style) - PIT64B (64-bit Period Interval Timer, newer parts) - ST (System Timer, including watchdog subnode) -...
null
null
null
[PATCH v4 0/5] dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML
Convert Atmel Periodic interval timer of 64bit (PIT64b) binding to YAML format. Changes during conversion: - Add missing compatible "microchip,sama7g5-pit64b" along with a fallback compatible "microchip,sam9x60-pit64b". Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akhila YS <akhilayalmati@gmail.c...
{ "author": "Akhila YS <akhilayalmati@gmail.com>", "date": "Fri, 27 Feb 2026 15:14:33 +0000", "is_openbsd": false, "thread_id": "20260227-arm-microchip-v4-0-7e2ae1c5b5d6@gmail.com.mbox.gz" }
lkml_critique
lkml
Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes: - CHIPID (SoC ID register block) - PIT (Period Interval Timer, old style) - PIT64B (64-bit Period Interval Timer, newer parts) - ST (System Timer, including watchdog subnode) -...
null
null
null
[PATCH v4 0/5] dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML
Convert System Timer binding to YAML format. Changes during conversion: - Add "#address-cells" and "#size-cells" to the properties and required as watchdog is defined as a child node to the timer parent node. - Define watchdog as a pattern property along with unit address in examples. Acked-by: Conor Dooley <conor...
{ "author": "Akhila YS <akhilayalmati@gmail.com>", "date": "Fri, 27 Feb 2026 15:14:34 +0000", "is_openbsd": false, "thread_id": "20260227-arm-microchip-v4-0-7e2ae1c5b5d6@gmail.com.mbox.gz" }
lkml_critique
lkml
Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes: - CHIPID (SoC ID register block) - PIT (Period Interval Timer, old style) - PIT64B (64-bit Period Interval Timer, newer parts) - ST (System Timer, including watchdog subnode) -...
null
null
null
[PATCH v4 0/5] dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML
Convert RAMC SDRAM/DDR controller binding to YAML format. Signed-off-by: Akhila YS <akhilayalmati@gmail.com> --- .../bindings/arm/atmel,at91rm9200-sdramc.yaml | 66 ++++++++++++++++++++++ .../devicetree/bindings/arm/atmel-sysregs.txt | 20 ------- 2 files changed, 66 insertions(+), 20 deletions(-) diff --g...
{ "author": "Akhila YS <akhilayalmati@gmail.com>", "date": "Fri, 27 Feb 2026 15:14:35 +0000", "is_openbsd": false, "thread_id": "20260227-arm-microchip-v4-0-7e2ae1c5b5d6@gmail.com.mbox.gz" }
End of preview. Expand in Data Studio

KernelLLM-2 Dataset

A high-quality raw dataset for training and fine-tuning LLMs on Operating System Development, significantly expanded for the second version.

Overview

This dataset combines raw source code from a variety of mature and hobbyist operating system kernels with thousands of expert-level technical discussions and critiques from the Linux Kernel Mailing List, plus unique Git logic-diff traces.

The source code included in this dataset represents the latest stable versions of the respective repositories as of February 27th 2026.

Dataset Structure

The dataset is provided in Parquet format for optimal compression and integration with the datasets library.

1. kernelllm_dataset_v2.parquet (~1.8 GB)

Unified Knowledge Base:

  • Files/Entries: 367,769
  • Size: ~1.8 GB (Parquet), ~6.1 GB (Raw JSONL)
  • Sources: 20+ Kernel and System Projects.
  • Cleaning:
    • Preserved SPDX-License-Identifier and Copyright lines while removing generic licensing boilerplate headers to prioritize logic.
    • Exact and "smart" deduplication across repositories.
    • Excluded files < 100 characters to remove boilerplate headers.

Repository Distribution:

Repository Entry Count
NetBSD 83,959
Linux 69,197
FreeBSD 50,127
OpenBSD 27,522
illumos 24,703
Zephyr 19,066
ReactOS 17,688
Haiku 15,472
U-Boot 12,674
Coreboot 12,082
SerenityOS 9,159
QEMU 7,029
EDK2 5,869
Xen Hypervisor 2,311
musl libc 1,875
GRUB 1,706
Asterinas 1,417
seL4 641
Limine 151
Redox OS 34

2. Specialized Data Types

  • git_logdiff: (234 entries) Pairs commit messages with filtered logic-diffs to show how code evolves.
  • lkml_critique: (~26,600 pairs) Contentious technical discussions pairing code snippets with maintainer feedback.

3. Dataset Schema

The unified dataset contains three primary data types, each with a specific schema:

Source Code (data_type: "source")

{
  "data_type": "source",
  "source": "repository_name",
  "filepath": "relative/path/to/file.c",
  "code": "cleaned_source_code_content"
}

Git Commit Diffs (data_type: "git_logdiff")

{
  "data_type": "git_logdiff",
  "commit": "commit_sha_hash",
  "source": "repository_name",
  "message": "commit_message",
  "code": "git_diff_output"
}

LKML Critiques (data_type: "lkml_critique")

{
  "data_type": "lkml_critique",
  "source": "mailing_list_name",
  "subject": "[PATCH] subject_line",
  "code": "patch_content",
  "critique": "maintainer_feedback",
  "metadata": {
    "author": "reviewer_email",
    "date": "email_date",
    "thread_id": "thread_identifier",
    "is_openbsd": boolean
  }
}

Data Processing Features

  • Deduplication: Content-based hashing with normalized whitespace
  • License Header Cleaning: Preserves SPDX identifiers and copyright lines while removing generic boilerplate
  • Size Filtering: Excludes files under 100 characters
  • Git-specific: Deduplicates by commit SHA when available
  • Critique-specific: Deduplicates based on code + critique content pairs

Dataset Release Strategy

This is the Raw version of the dataset. It is intended for:

  1. Intermediate Training: Pre-training on high-quality systems code.
  2. Fine-Tuning: Instruction-tuning models to act as "Kernel Maintainers".
  3. Research: Analyzing developer communication patterns in low-level systems.

Licensing and Usage

This dataset is a collection of publicly available open-source code and mailing list archives. It contains content governed by multiple licenses. For full details, see the LICENSE file.

  • GNU General Public License (GPL) v2/v3 (Linux, seL4, Xen, QEMU, coreboot, GRUB, U-Boot, ReactOS)
  • Common Development and Distribution License (CDDL) (illumos)
  • BSD 2-Clause / 3-Clause / 4-Clause & ISC (FreeBSD, NetBSD, OpenBSD, SerenityOS, Limine)
  • MIT License (Redox, Haiku, musl)
  • Apache License 2.0 (Zephyr)
  • Mozilla Public License (MPL) 2.0 (Asterinas)
  • BSD-2-Clause-Patent (EDK2)

Disclaimer

  1. Original Licenses Apply: The individual source code files and mailing list archives contained in this dataset remain governed by their original respective licenses.
  2. Attribution: The source and author fields (where available) facilitate attribution.
  3. Research & Ethics: This dataset is provided primarily for research and educational purposes in the field of LLM training and systems programming analysis.
  4. License Compliance: Users of this dataset are responsible for ensuring that their use of the data complies with all applicable licenses.

Opt-out

If you are a maintainer of one of the included repositories and would like your data removed from future versions of this dataset, please open an issue on the Hugging Face dataset page.

Downloads last month
21

Collection including frisk2137/KernelLLM-2