From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: accel/ivpu: Limit number of maximum contexts and doorbells per user Date: Fri, 27 Feb 2026 13:00:26 +1000 Message-ID: In-Reply-To: <20260225180638.316126-1-maciej.falkowski@linux.intel.com> References: <20260225180638.316126-1-maciej.falkowski@linux.intel.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: accel/ivpu: Limit number of maximum contexts and doorbells per user Author: Maciej Falkowski Patches: 2 Reviewed: 2026-02-27T13:00:26.146297 --- This single-patch series adds per-user resource limits to the Intel VPU (NPU) accelerator driver, preventing a single user from monopolizing all contexts and doorbells. The general approach is sound: a hash table keyed by UID tracks per-user allocations, with root getting the full pool and non-root users getting half. However, there are several issues ranging from a likely off-by-one in the SSID range expansion, questionable use of `kref_read()` for flow control, unrelated whitespace churn, and a missing cleanup path for the hash table on device teardown. --- Generated by Claude Code Patch Reviewer