[PATCH v2] drm/nouveau: fix hibernate on disabled GPU

2025-03-25 Thread Christoph Rudorff
Hibernate bricks the machine if a discrete GPU was disabled via echo IGD > /sys/kernel/debug/vgaswitcheroo/switch The freeze and thaw handler lacks checking the GPU power state, as suspend and resume do. This patch add the checks and fix this issue. Signed-off-by: Christoph Rudorff --- I got a

Re: [PATCH 1/2] drm/nouveau: Add DRM_IOCTL_NOUVEAU_GET_ZCULL_INFO

2025-03-25 Thread M Henning
Okay, that sounds reasonable since I don't expect this to change very quickly. Since I don't fully understand, is the suggestion here to: 1) add the interface as a function on nvkm_gr using the nvkm_gr_func vtable and store the actual data on r535_gr or 2) add the interface to NVIF (which IF?) and

[PATCH 2/2] drm: nova-drm: add initial driver skeleton

2025-03-25 Thread Danilo Krummrich
Add the initial nova-drm driver skeleton. nova-drm is connected to nova-core through the auxiliary bus and implements the DRM parts of the nova driver stack. For now, it implements the fundamental DRM abstractions, i.e. creates a DRM device and registers it, exposing a three sample IOCTLs. DRM

Re: [PATCH RFC v3 6/7] gpu: nova-core: add basic timer device

2025-03-25 Thread Alexandre Courbot
On Fri Mar 21, 2025 at 12:54 AM JST, Daniel Brooks wrote: > Alexandre Courbot writes: > >> +impl Add for Timestamp { >> +type Output = Self; >> + >> +fn add(mut self, rhs: Duration) -> Self::Output { >> +let mut nanos = rhs.as_nanos(); >> +while nanos > u64::MAX as u128 { >