Ben Skeggs
2c0c15a22f
drm/nouveau/fb/gp102-ga100: switch to simpler vram size detection method
...
Also exposes this for use by upcoming GSP-RM initialisation code.
v2: add SPDX header
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
Reviewed-by: Lyude Paul <lyude@redhat.com >
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230525003106.3853741-3-skeggsb@gmail.com
2023-07-06 17:22:33 +02:00
Ben Skeggs
1b9b4f922f
drm/nouveau/fb/gp102-: cache scrubber binary on first load
...
During system shutdown nouveau might not be able to request firmware from
Userspace, which then leads to a regression preventing the system from
shutting down.
Cache the scrubber binary for this case.
Fixes: 0e44c21708 ("drm/nouveau/flcn: new code to load+boot simple HS FWs (VPR scrubber)")
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/CACAvsv7Uf5=K44y8YLsiy0aMnc1zvGEQdeDe7RQF=AV+fxxzuQ@mail.gmail.com
2023-02-21 02:07:24 +01:00
Ben Skeggs
b480600988
drm/nouveau/fb/tu102-: fix register used to determine scrub status
...
Turing apparently needs to use the same register we use on Ampere.
Not executing the scrubber ucode when required would result in large
areas of VRAM being inaccessible to the driver.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
Signed-off-by: Lyude Paul <lyude@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230130223715.1831509-2-bskeggs@redhat.com
2023-01-30 18:49:17 -05:00
Ben Skeggs
5728d06419
drm/nouveau/fb: handle sysmem flush page from common code
...
- also executes pre-DEVINIT, so early boot is able to DMA sysmem
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
Reviewed-by: Lyude Paul <lyude@redhat.com >
2022-11-09 10:44:58 +10:00
Ben Skeggs
b7a9369ae6
drm/nouveau/fb: switch to instanced constructor
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
Reviewed-by: Lyude Paul <lyude@redhat.com >
2021-02-11 11:49:52 +10:00
Ben Skeggs
41ba806f40
drm/nouveau/fb/ga10[024]: initial support
...
No VPR scrub. GA102 and GA104 have a new VRAM size detection method.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2021-01-15 10:25:21 +10:00
Ben Skeggs
072663f86d
drm/nouveau/acr/tu11x: initial support
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2020-02-17 17:19:00 +10:00
Ben Skeggs
3fa8fe1572
drm/nouveau/acr/tu10x: initial support
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2020-01-15 10:50:30 +10:00
Ben Skeggs
ebe52a58ac
drm/nouveau/fb/gp102-: unlock VPR as part of FB init
...
We perform memory allocations long before we hit the code in SECBOOT that
would unlock the VPR, which could potentially result in memory allocation
within the locked region.
Run the scrubber binary right after VRAM init to ensure we don't.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2020-01-15 10:50:29 +10:00
Ben Skeggs
3582942c28
drm/nouveau/fb/gv100: initial support
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2018-05-18 15:01:34 +10:00