diff options
| author | Mohamed Ahmed <mohamedahmedegypt2001@gmail.com> | 2026-11-18 01:43:52 +0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2026-11-19 08:29:26 +1000 |
| commit | 7488ee210542b918b9c5749a29fd1502c49a0665 (patch) | |
| tree | da90ca4254ea90c30d9d064460ab5a1f4b804757 /rust/kernel/alloc/allocator | |
| parent | 4ffab70118f8691ee68c1a24091a36c16957b6dd (diff) | |
drm/nouveau/instmem: map only the part of BAR2 that is used
The io_mapping covers the whole BAR2 resource. With GSP-RM and with
NvBar2Halve the BAR2 address space covers only its lower half. The
driver maps nothing in the upper half, and a mapping that already
exists there would give the io_mapping its type.
Size the io_mapping to the BAR2 address space. The range does not
change where BAR2 is not halved.
Fixes: 34e27b90552a ("nouveau/instmem: use iomapping interface for instmem handling")
Cc: stable@vger.kernel.org
Signed-off-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com>
Tested-by: Thomas Andersen <phomes@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20261117214352.337961-4-mohamedahmedegypt2001@gmail.com
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
