Skip to content

BACKPORT: drm/i915: Create a dummy object for gen6 ppgtt #17

BACKPORT: drm/i915: Create a dummy object for gen6 ppgtt

BACKPORT: drm/i915: Create a dummy object for gen6 ppgtt #17

Workflow file for this run

name: Build i915 for DSM epyc7002
on:
workflow_dispatch:
push:
tags:
- "*-dsm-*"
jobs:
build:
strategy:
matrix:
version: [7.1, 7.2]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download toolchain
run: |
env_tarball=ds.epyc7002-${{ matrix.version }}.env.txz
wget https://global.synologydownload.com/download/ToolChain/toolkit/${{ matrix.version }}/epyc7002/$env_tarball
mkdir toolchain
tar xf $env_tarball -C toolchain
- name: Download kernel source
run: |
dev_tarball=ds.epyc7002-${{ matrix.version }}.dev.txz
wget https://global.synologydownload.com/download/ToolChain/toolkit/${{ matrix.version }}/epyc7002/$dev_tarball
mkdir ksrc
tar xf $dev_tarball -C ksrc
- name: Build
run: |
export BACKPORT_DIR=$PWD
export KLIB_BUILD=$PWD/ksrc/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-${{ matrix.version }}/build
export CROSS_COMPILE=$PWD/toolchain/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
make defconfig-drm
make -j$(nproc) modules_copy
- name: Checkout firmware
uses: actions/checkout@v4
with:
repository: intel-gpu/intel-gpu-firmware
path: intel-gpu-firmware
- name: Copy necessary firmware
run: |
SOURCE=intel-gpu-firmware/firmware
DEST=out/firmware
mkdir -p $DEST
while read L; do
L=$(basename $L)
if [ -e "$SOURCE/$L" ]; then
cp "$SOURCE/$L" $DEST
else
echo "::warning ::Missing $L"
fi
done < <(find out/modules -name \*.ko -exec /sbin/modinfo {} -F firmware \;)
chmod 644 $DEST/*
- name: Pack modules and firmware
working-directory: out
run: zip -r i915_dsm-${{ matrix.version }}_epyc7002.zip firmware modules
- name: Save to artifacts
uses: actions/upload-artifact@v3
with:
path: out/i915_dsm-${{ matrix.version }}_epyc7002.zip
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Append tag to filename
working-directory: artifacts
run: |
find . -name "i915_dsm-*.zip" -print0 | while read -d $'\0' f; do
mv $f ${f%.*}_${GITHUB_REF##*/}.zip
done
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: versions
files: artifacts/**/i915_dsm-*.zip