Skip to content

Instantly share code, notes, and snippets.

@shivaprasadbhat
shivaprasadbhat / dtc-nimits
Created February 21, 2025 05:52
nimits-dtc
/dts-v1/;
/ {
ibm,sw-checkstop-fir = <0x5012000 0x1f>;
nest-frequency = <0x00 0x77359400>;
#address-cells = <0x02>;
vendor = "IBM";
ibm,vpd-lx-info = <0x00 0x31000701 0x300ff1>;
model = "8335-GTH";
#size-cells = <0x02>;
@shivaprasadbhat
shivaprasadbhat / dmesg
Created February 21, 2025 05:48
nimits-dmesg
[ 0.000000] Reserving 4096MB of memory at 128MB for crashkernel (System RAM: 1048576MB)
[ 0.000000] dt-cpu-ftrs: setup for ISA 3000
[ 0.000000] dt-cpu-ftrs: final cpu/mmu features = 0x0001b8eb8f5fb187 0x3c007041
[ 0.000000] radix-mmu: Page sizes from device-tree:
[ 0.000000] radix-mmu: Page size shift = 12 AP=0x0
[ 0.000000] radix-mmu: Page size shift = 16 AP=0x5
[ 0.000000] radix-mmu: Page size shift = 21 AP=0x1
[ 0.000000] radix-mmu: Page size shift = 30 AP=0x2
[ 0.000000] Activating Kernel Userspace Access Prevention
[ 0.000000] Activating Kernel Userspace Execution Prevention
@shivaprasadbhat
shivaprasadbhat / fix
Created February 17, 2025 12:06
Example Gist
commit 14eadb4640f2eebdd4935ac31bafd5b810f8d2fb
Author: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Date: Mon Feb 17 06:45:00 2025 -0500
tests: qemuhotplugtest: Set the cpu version at source for PPC64 tests
140ff3c5141 - commit fixated on the POWER9 in results xml which actually
would be the host-cpu(TODO?) at the moment on the source tree. With updates to
higher cpu versions this has to continuously be updated. Instead, update
the test source domains to use POWER9(or any) as fixed version so
@shivaprasadbhat
shivaprasadbhat / l1
Created February 17, 2025 12:03
Example Gist
diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml
index 8835a52b29..552ef5a7e9 100644
--- a/src/cpu_map/index.xml
+++ b/src/cpu_map/index.xml
@@ -181,7 +181,7 @@
<include filename='ppc64_POWER8.xml'/>
<include filename='ppc64_POWER9.xml'/>
<include filename='ppc64_POWER10.xml'/>
- <include filename='ppc64_POWER10.xml'/>
+ <include filename='ppc64_POWER11.xml'/>
@shivaprasadbhat
shivaprasadbhat / l
Created January 30, 2025 04:26
senbuildfix
diff --git a/images/e2e-core/Dockerfile.9 b/images/e2e-core/Dockerfile.9
index 23b26f1..2d976a3 100644
--- a/images/e2e-core/Dockerfile.9
+++ b/images/e2e-core/Dockerfile.9
@@ -51,7 +51,7 @@ RUN dnf -y -q install \
# --------------
# Build System Requirements
-# - cmake
+# - cmake
@shivaprasadbhat
shivaprasadbhat / iommufd-1.c
Created September 10, 2024 06:20
Example Gist
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/iommufd.h>
#include <linux/vfio.h>
#include <errno.h>
#include <string.h>
@shivaprasadbhat
shivaprasadbhat / mambo.sh.1
Created August 9, 2024 12:42
Example Gist
#!/usr/bin/bash
#https://wiki.linux.ibm.com/IndiaTeam/RAS/Power9/P9Mambo
pd=`pwd`
cleanup()
{
cd $pd
}
@shivaprasadbhat
shivaprasadbhat / output.txt
Created July 4, 2024 07:37
ubsan tot patch
commit a4a062a0c923a90a332f42d49015c7c29eb0800c
Author: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Date: Tue Jul 2 01:14:15 2024 -0500
powerpc/pseries/iommu: Define spapr_tce_table_group_ops only with CONFIG_IOMMU_API
The patch fixes the below warning,
arch/powerpc/platforms/pseries/iommu.c:1824:37: warning: 'spapr_tce_table_group_ops' defined but not used [-Wunused-variable]
The other error reported by the test robot no longer exists on the top
@shivaprasadbhat
shivaprasadbhat / .config
Created July 4, 2024 07:31
ubsan config
#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 6.10.0-rc2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 14.1.1 20240507 (Red Hat 14.1.1-1)"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140101
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24100
[ 0.000000] Reserving 4096MB of memory at 256MB for crashkernel (System RAM: 163840MB)
[ 0.000000] radix-mmu: Page sizes from device-tree:
[ 0.000000] radix-mmu: Page size shift = 12 AP=0x0
[ 0.000000] radix-mmu: Page size shift = 16 AP=0x5
[ 0.000000] radix-mmu: Page size shift = 21 AP=0x1
[ 0.000000] radix-mmu: Page size shift = 30 AP=0x2
[ 0.000000] Activating Kernel Userspace Access Prevention
[ 0.000000] Activating Kernel Userspace Execution Prevention
[ 0.000000] radix-mmu: Mapped 0x0000000000000000-0x0000000003a00000 with 2.00 MiB pages (exec)
[ 0.000000] radix-mmu: Mapped 0x0000000003a00000-0x00000027fde00000 with 2.00 MiB pages