Coder Social home page Coder Social logo

jedwards-amd / linux-hsa-drivers-and-images-amd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hsafoundation/hsa-drivers-linux-amd

0.0 1.0 1.0 380.62 MB

This repository contains binary images for Linux HSA kernel and kernel drivers

License: Other

linux-hsa-drivers-and-images-amd's Introduction

AMD Heterogenous System Architecture HSA - Linux kfd v0.6.1 release for Kaveri

Installation and Configuration guide

What's New in kfd v0.6.1

  • Based on kernel 3.14.4
  • Various bug fixes
  • Supports Ubuntu 14.04 and Fedora 21

What's New in kfd v0.5.1

  • Fix bug in topology code that prevented kfd to load on some Motherboards

What's New in kfd v0.5

  • Based on kernel 3.14.0
  • Supports running HSA applications in 32bit mode
  • Various bug fixes
  • Supports both Ubuntu 13.10 and Ubuntu 14.04

What's New in Alpha 2

  • Supports wider range of Kaveri APU types
  • Kernel image built with Ubuntu 13.10 stock configuration file
  • Improved stability

Package Contents

The kernel archive contains :

  • Ubuntu images:

    • kaveri-firmware_366_all.deb
    • linux-headers-3.14.4-031451_3.14.4-031451.201406270144_all.deb
    • linux-headers-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
    • linux-image-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
    • linux-image-extra-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
  • Fedora images:

    • kernel-3.14.4-1.kfd.fc21.x86_64.rpm
    • kernel-headers-3.14.4-1.kfd.fc21.x86_64.rpm
    • kernel-modules-extra-3.14.4-1.kfd.fc21.x86_64.rpm
    • linux-firmware-20140605_kfd-38.gita4f3bc03.fc21.1.noarch.rpm
  • A bash script which checks if kfd is installed correctly

The kernel image is built from a source tree based on the 3.14.4 upstream release plus :

  • The HSA kernel driver ("radeon-kfd"), which works with the radeon graphics driver.
  • Fixes and improvements to the radeon and amd_iommu(v2) drivers, mm and mmu_notifier code.

Target Platform

This release is intended for use with any hardware configuration that contains a Kaveri APU.

The motherboards must support the FM2+ socket, run latest BIOS version and have the IOMMU enabled in the BIOS.

The following is a reference hardware configuration that was used for testing purposes:

  • APU: AMD A10-7850K APU
  • Motherboard: ASUS A88X-PRO motherboard (ATX form factor)
  • Memory: G.SKILL Ripjaws X Series 16GB (2 x 8GB) 240-Pin DDR3 SDRAM DDR3 2133
  • OS: Ubuntu 14.04 / Fedora 21 64-bit edition
  • No discrete GPU present in the system

Installing and configuring the kernel

  • Downloading the kernel binaries from the repo git clone https://github.com/HSAFoundation/Linux-HSA-Drivers-And-Images-AMD.git

  • Following is the file structure of the repo

    • Linux-HSA-Drivers-And-Images-AMD/
      • LICENSE
      • README.md
      • kfd_check_installation.sh
      • kfd-0.6.1
        • ubuntu
          • kaveri-firmware_366_all.deb
          • linux-headers-3.14.4-031451_3.14.4-031451.201406270144_all.deb
          • linux-headers-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
          • linux-image-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
          • linux-image-extra-3.14.4-031451-generic_3.14.4-031451.201406270144_amd64.deb
        • fedora
          • kernel-3.14.4-1.kfd.fc21.x86_64.rpm
          • kernel-headers-3.14.4-1.kfd.fc21.x86_64.rpm
          • kernel-modules-extra-3.14.4-1.kfd.fc21.x86_64.rpm
          • linux-firmware-20140605_kfd-38.gita4f3bc03.fc21.1.noarch.rpm
  • Go to the top of the repo: cd Linux-HSA-Drivers-And-Images-AMD

  • Configure udev to allow any user to access /dev/kfd. As root, use a text editor to create /etc/udev/rules.d/kfd.rules containing one line:
    KERNEL=="kfd", MODE="0666", Or you could use the following command: echo "KERNEL==\"kfd\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/kfd.rules

  • For Ubuntu, install the linux-image kernel package using: sudo dpkg -i kfd-0.6.1/ubuntu/*.deb

  • For Fedora, install the kernel package and update initramfs using: sudo yum install kfd-0.6.1/fedora/*.rpm ; sudo dracut --force --add-drivers "amd_iommu_v2 radeon_kfd" "/boot/initramfs-3.14.4-1.kfd.fc21.x86_64.img" 3.14.4-1.kfd.fc21.x86_64

  • Reboot the system to install the new kernel and enable the HSA kernel driver: sudo reboot

#####Obtaining kernel source code

Source code used to build the kernel can be downloaded with the following command : git clone -b v0.6.1 git://people.freedesktop.org/~gabbayo/linux.git

For Ubuntu, the kernel images were built using Ubuntu mainline kernel PPA patches, which can be downloaded with the following command : wget http://people.freedesktop.org/~gabbayo/kfd-v0.6.1/0001-base-packaging.patch ; wget http://people.freedesktop.org/~gabbayo/kfd-v0.6.1/0002-debian-changelog.patch ; wget http://people.freedesktop.org/~gabbayo/kfd-v0.6.1/0003-configs-based-on-Ubuntu-END.patch

Use the instructions in the following wiki page to built the Ubuntu kernel images: https://help.ubuntu.com/community/Kernel/Compile

For Fedora, the kernel images were built using Fedora kernel srpm, which can be downloaded with the following command : wget http://people.freedesktop.org/~gabbayo/kfd-v0.6.1/kernel-3.14.4-1.kfd.fc21.src.rpm

Use the instructions in the following wiki page to built the Fedora kernel images: https://fedoraproject.org/wiki/Building_a_custom_kernel

Alternatively, you can compile the kernel directly by running make inside the kernel directory. With this method, you will need to use the kernel config file located at: http://people.freedesktop.org/~gabbayo/kfd-v0.6.1/3.14.4-config-ubuntu-trusty

linux-hsa-drivers-and-images-amd's People

Contributors

joergroedel avatar johnbridgman avatar mailtrv avatar

Watchers

 avatar

Forkers

bondzio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.