[PATCH RFC 2/3] rust: make ETIMEDOUT error available

2025-02-17 Thread Alexandre Courbot
Signed-off-by: Alexandre Courbot --- rust/kernel/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index f6ecf09cb65f4ebe9b88da68b3830ae79aa4f182..8858eb13b3df674b54572d2a371b8ec1303492dd 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/

[PATCH RFC 3/3] gpu: nova-core: add basic timer device

2025-02-17 Thread Alexandre Courbot
Add a basic timer device and exercise it during device probing. This first draft is probably very questionable. One point in particular which should IMHO receive attention: the generic wait_on() method aims at providing similar functionality to Nouveau's nvkm_[num]sec() macros. Since this method w

[PATCH RFC 1/3] rust: add useful ops for u64

2025-02-17 Thread Alexandre Courbot
It is common to build a u64 from its high and low parts obtained from two 32-bit registers. Conversely, it is also common to split a u64 into two u32s to write them into registers. Add an extension trait for u64 that implement these methods in a new `num` module. It is expected that this trait wil

[RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-17 Thread Alexandre Courbot
Hi everyone, This short RFC is based on top of Danilo's initial driver stub series [1] and has for goal to initiate discussions and hopefully some design decisions using the simplest subdevice of the GPU (the timer) as an example, before implementing more devices allowing the GPU initialization se

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-17 Thread Simona Vetter
On Mon, Feb 17, 2025 at 11:04:45PM +0900, Alexandre Courbot wrote: > Hi everyone, > > This short RFC is based on top of Danilo's initial driver stub series > [1] and has for goal to initiate discussions and hopefully some design > decisions using the simplest subdevice of the GPU (the timer) as an

Re: [PATCH next] drm/nouveau: Fix error pointer dereference in r535_gsp_msgq_recv()

2025-02-17 Thread Zhi Wang
On Mon, 17 Feb 2025 10:31:21 +0300 Dan Carpenter wrote: Thanks for catching this! Acked-by: Zhi Wang > If "rpc" is an error pointer then return directly. Otherwise it leads > to an error pointer dereference. > > Fixes: 50f290053d79 ("drm/nouveau: support handling the return of large GSP > m

Re: [PATCH 1/1] MAINTAINERS: Remove myself

2025-02-17 Thread Steven Rostedt
On Mon, 17 Feb 2025 13:27:25 +0100 Danilo Krummrich wrote: > > Signed-off-by: Karol Herbst > > @Steven, @Masami: Can I get an ACK for taking this through the drm-misc tree? > > (Not cutting any context, since you have not been copied on this one.) Sure, Acked-by: Steven Rostedt (Google)

[PATCH] drm/nouveau/pmu: Fix gp10b firmware guard

2025-02-17 Thread Aaron Kling via B4 Relay
ot;); MODULE_FIRMWARE("nvidia/gp10b/pmu/sig.bin"); --- base-commit: 2408a807bfc3f738850ef5ad5e3fd59d66168996 change-id: 20250217-nouveau-gm10b-guard-a438402b5022 Best regards, -- Aaron Kling

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-17 Thread Danilo Krummrich
Hi Alex, On Mon, Feb 17, 2025 at 11:04:45PM +0900, Alexandre Courbot wrote: > Hi everyone, > > This short RFC is based on top of Danilo's initial driver stub series > [1] and has for goal to initiate discussions and hopefully some design > decisions using the simplest subdevice of the GPU (the ti

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-17 Thread Dave Airlie
On Tue, 18 Feb 2025 at 00:04, Alexandre Courbot wrote: > > Hi everyone, > > This short RFC is based on top of Danilo's initial driver stub series > [1] and has for goal to initiate discussions and hopefully some design > decisions using the simplest subdevice of the GPU (the timer) as an > example

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-17 Thread Dave Airlie
> 1. How to avoid unnecessary calls to try_access(). > > This is why I made Boot0.read() take a &RevocableGuard<'_, Bar0> as argument. > I > think we can just call try_access() once and then propage the guard through > the > callchain, where necessary. Nope, you can't do that, RevocableGuard hol

Re: [PATCH RFC 2/3] rust: make ETIMEDOUT error available

2025-02-17 Thread Daniel Almeida
Hi Alex, > On 17 Feb 2025, at 11:04, Alexandre Courbot wrote: > > Signed-off-by: Alexandre Courbot > --- > rust/kernel/error.rs | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs > index > f6ecf09cb65f4ebe9b88da68b3830ae79aa4f182..8858eb13b3df6

Re: [PATCH RFC 1/3] rust: add useful ops for u64

2025-02-17 Thread Daniel Almeida
Hi Alex, > On 17 Feb 2025, at 11:04, Alexandre Courbot wrote: > > It is common to build a u64 from its high and low parts obtained from > two 32-bit registers. Conversely, it is also common to split a u64 into > two u32s to write them into registers. Add an extension trait for u64 > that implem

Re: [PATCH v2 03/17] mm/rmap: convert make_device_exclusive_range() to make_device_exclusive()

2025-02-17 Thread David Hildenbrand
On 17.02.25 01:01, Alistair Popple wrote: On Tue, Feb 11, 2025 at 09:33:54AM +0100, David Hildenbrand wrote: On 11.02.25 06:00, Andrew Morton wrote: On Mon, 10 Feb 2025 20:37:45 +0100 David Hildenbrand wrote: The single "real" user in the tree of make_device_exclusive_range() always requests

Re: [PATCH 1/1] MAINTAINERS: Remove myself

2025-02-17 Thread Danilo Krummrich
On Sat, Feb 15, 2025 at 08:37:53AM +0100, Karol Herbst wrote: > I was pondering with myself for a while if I should just make it official > that I'm not really involved in the kernel community anymore, neither as a > reviewer, nor as a maintainer. > > Most of the time I simply excused myself with