786e008e00268049350ce1b401533ec66ae29156
1. In the Device Tree, merge the PCIe I/O and memory address windows.The AMD GPU requires a large, contiguous BAR space, which the previous separate windows could not satisfy. 2. Add a hack to correct the BAR space size calculation. The K1-X platform reserves a total of 384MB (0x18000000) for PCIe devices (including BAR and config space). However, the Linux kernel's allocation logic, influenced by 128MB alignment, attempts to request a full 384MB BAR space for the GPU.This commit reduces the requested size to 0x16000000, ensuring the allocation succeeds, as the GPU itself only requires 258MB. Signed-off-by: liyeshan <yeshan.li@spacemit.com> Change-Id: Ic5610b455aac5b0dc97ac4904037865f83ad1c2c
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.8%
Assembly
1%
Shell
0.4%
Makefile
0.3%
Python
0.2%