Skip to content

Instantly share code, notes, and snippets.

View kwilczynski's full-sized avatar
🐧
Have you built a Linux kernel recently?

Krzysztof Wilczyński kwilczynski

🐧
Have you built a Linux kernel recently?
View GitHub Profile
Jan 11 11:48:06 rocinante kernel: [17610.105025] amdgpu 0000:03:00.0: amdgpu: Dumping IP State
Jan 11 11:48:06 rocinante kernel: [17610.106837] amdgpu 0000:03:00.0: amdgpu: Dumping IP State Completed
Jan 11 11:48:06 rocinante kernel: [17610.106864] amdgpu 0000:03:00.0: amdgpu: ring sdma0 timeout, signaled seq=165765, emitted seq=165768
Jan 11 11:48:06 rocinante kernel: [17610.106867] amdgpu 0000:03:00.0: amdgpu: GPU reset begin!
Jan 11 11:48:06 rocinante kernel: [17610.106918] amdgpu 0000:03:00.0: amdgpu: Failed to disallow df cstate
Jan 11 11:48:06 rocinante kernel: [17610.137182] ------------[ cut here ]------------
Jan 11 11:48:06 rocinante kernel: [17610.137183] WARNING: CPU: 18 PID: 2156760 at drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:631 amdgpu_irq_put+0x9f/0xb0 [amdgpu]
Jan 11 11:48:06 rocinante kernel: [17610.137349] Modules linked in: uhid rfcomm cmac algif_hash algif_skcipher af_alg xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bridge stp llc xfrm_user xfrm
root@workstation:/home/kwilczynski/Projects/Personal/Linux/pci# make V=12 LLVM=-19 ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu -j$(nproc) drivers/pci/controller/pcie-rockchip-ep.o
make --no-print-directory -C /home/kwilczynski/Development/Projects/Personal/Linux/pci \
-f /home/kwilczynski/Development/Projects/Personal/Linux/pci/Makefile drivers/pci/controller/pcie-rockchip-ep.o
: " SYNC include/config/auto.conf.cmd"
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
scripts/kconfig/conf --syncconfig Kconfig
make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all
make -f ./scripts/Makefile.build obj=scripts/basic
aarch64-linux-gnu-gcc -MM -H -Wp,-MMD,drivers/pci/controller/.pcie-rockchip-ep.o.d -nostdinc -I./arch/arm64/include -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64 -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=pac-ret -Wa,-march=armv8.5-a -DARM64_ASM_ARCH='"armv8.5-a"' -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -falign-functions=4 -fno-strict-overfl
@kwilczynski
kwilczynski / script.sh
Last active June 24, 2024 00:49
Build ccache
cd ./ccache/build
make clean
export PATH='/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
ccmake -DDEPS=DOWNLOAD -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DREDIS_STORAGE_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
make -j$(nproc)
make DESTDIR='/tmp/ccache' PREFIX='/usr' install
docker.io/library/busybox:latest
{
"status": {
"id": "ba5dc23f65d4cc4a4535bce55cf9e63b068eb02946e3422d3587e8ce803b6aab",
"repoTags": [
"docker.io/library/busybox:latest"
],
"repoDigests": [
"docker.io/library/busybox@sha256:4be429a5fbb2e71ae7958bfa558bc637cf3a61baf40a708cb8fff532b39e52d0",
@kwilczynski
kwilczynski / Makefile
Created February 20, 2024 11:19
Simple Linux kernel module to toggle running process state between "D" (uninterruptible) and interruptible
ccflags-y := -DDEBUG -Wfatal-errors
ifneq ($(KERNELRELEASE),)
obj-m += state-toggle.o
else
BUILD_KERNEL ?= /lib/modules/$(shell uname -r)/build
default:
$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) modules
endif
openshift-machine-api cluster-autoscaler-operator-58fb97bc76-bqfbs cluster-autoscaler-operator I0116 11:12:17.588634 1 status.go:450] No ClusterAutoscaler. Reporting available.
openshift-machine-api cluster-autoscaler-operator-58fb97bc76-bqfbs cluster-autoscaler-operator I0116 11:12:17.588747 1 status.go:244] Operator status available: at version 4.14.4
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-2.c.openshift-gce-devel.internal kube-scheduler I0116 11:12:17.589871 1 eventhandlers.go:118] "Add event for unscheduled pod" pod="openshift-monitoring/node-exporter-9cvc2"
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-2.c.openshift-gce-devel.internal kube-scheduler I0116 11:12:17.589923 1 scheduling_queue.go:419] "Pod moved to an internal scheduling queue" pod="openshift-monitoring/node-exporter-9cvc2" event="PodAdd" queue="Active"
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-0.c.openshift-gc
kube-system kube-apiserver-master-node kube-apiserver 00000010 75 72 63 65 51 75 6f 74 61 4c 69 73 74 12 0c 0a |urceQuotaList...|
kube-system kube-apiserver-master-node kube-apiserver 00000020 0a 0a 00 12 04 32 38 37 39 1a 00 1a 00 22 00 |.....2879....".|
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037670 1 eventhandlers.go:126] "Add event for unscheduled pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037703 1 scheduling_queue.go:575] "Pod moved to an internal scheduling queue" pod="default/test-cj4n2" event="PodAdd" queue="Active"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037736 1 schedule_one.go:85] "About to try and schedule pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037742 1 schedule_one.go:98] "Attempting to schedule pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.
@kwilczynski
kwilczynski / tags.txt
Created October 27, 2023 11:04
Linux kernel preferred commit tag order
Fixes:
Closes:
Suggested-by:
Link:
Reported-by:
Tested-by:
Co-developed-by: (co-author)
Signed-off-by: (co-author)
Signed-off-by: (author)
Signed-off-by: (chain)
package main
import (
"testing"
)
func A() {
m := map[int][]string{}
for i, _ := range []int{1, 2, 3} {