drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag
Philip Yang authored

Otherwise after the GTT bo is released, the GTT and gart space is freed
but amdgpu_ttm_backend_unbind will not clear the gart page table entry
and leave valid mapping entry pointing to the stale system page. Then
if GPU access the gart address mistakely, it will read undefined value
instead page fault, harder to debug and reproduce the real issue.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPhilip Yang <Philip.Yang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
6c6064cb
Name Last commit Last update
Documentation Merge tag 'drm-msm-next-2024-02-29' of https://gitlab.freedesktop.org/drm/msm into drm-next
LICENSES LICENSES: Add the copyleft-next-0.3.1 license
arch arch/powerpc: Remove <linux/fb.h> from backlight code
block block: sed-opal: handle empty atoms when parsing response
certs Merge tag 'v6.7-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
crypto crypto: algif_hash - Remove bogus SGL free on zero-length error path
drivers drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag
fs Merge tag 'bcachefs-2024-02-25' of https://evilpiepirate.org/git/bcachefs
include Merge tag 'drm-etnaviv-next-2024-03-07' of https://git.pengutronix.de/git/lst/linux into drm-next
init update workarounds for gcc "asm goto" issue
io_uring io_uring/net: fix multishot accept overflow handling
ipc shm: Slim down dependencies
kernel Merge tag 'net-6.8.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
lib lib/Kconfig.debug: TEST_IOV_ITER depends on MMU
mm Merge tag 'cxl-fixes-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl
net l2tp: pass correct message length to ip6_append_data
rust Merge tag 'rust-6.8' of https://github.com/Rust-for-Linux/linux
samples work around gcc bugs with 'asm goto' with outputs
scripts Merge tag 'net-6.8.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
security Merge tag 'lsm-pr-20240215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm
sound ALSA: usb-audio: More relaxed check of MIDI jack names
tools Merge drm/drm-next into drm-misc-next
usr Merge tag 'kbuild-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
virt Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
.clang-format clang-format: Update with v6.7-rc4's `for_each` macro list
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
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.