From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795954014; b=y9bKIgdbNLF3MbuijutGYfgTlMr+csJAu1mBfNtvqa/r2veH0TiwL2983/BBtRpb+mJc rTNdOcIjSkxE/zHZIFUdaWtMF6K7s+9rL+vPi57x3WqPEkq00qNDe+LUQ1CaC07zO1Sxe iyCmyr3c2CrteTIbCT2nFhx4q7ZyNpsXLwoscOx25KaMJVm+mQn3Q5sZ9EDUa4FQyUmbC qJferKZkeC5iXsOQp+iUvVC0JKQI/SRqc8YUBUyJZmkzjCVoLJl5dJ2AVU58RbQfSPMMj TJB+AILThJ5PHhITJKK0CxogeahurBZHHem7fQpzLKla8SUAicyFyYanCkD9fnSIWCw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795954014; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ewknYe6uVJqL1QJxu2K6KtEPOld0XqFRBwYlfU6dPsw=; b=SYENSJceLq3nffKsqMJRTB3EcIRX8PqirdXNZafbMU9LCB5eZ4R6oppuBywox/Kz0F7N p1ijH33hEGW3s7f99+W4+/W6q6PGy+1Gk+GzPNRxqKrrGs1inkmPXkYIG62RK8th2BVx5 42c3THYY8kw2pOD+evYZdrn1aPwqXBk8qT5IWGxHHTaQxhzwYnnbrri9/D4tZU8U4D01p ExVubunKygr8I6uOTBHQL3Q4LFxbToV7wuidfwkEtffnrS48LJlfShicJLJbZzOMFqfqe TSGKydLdFiJmwRBoRkYIjpXRVXRd57HZYSB+4KiA78K3tAQC5ggP4bn1zXyjNGm9DMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=m32sdAuf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DFD1606A33B for ; Sun, 29 Nov 2026 12:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=m32sdAuf Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDFC71F00896; Sun, 29 Nov 2026 12:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795954014; bh=ewknYe6uVJqL1QJxu2K6KtEPOld0XqFRBwYlfU6dPsw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=m32sdAufgw16DWpLySj3oVJaPcBy1pddz+KiUIuB8Fkqgz59SWAsx8U5mWhpYOULz OK98B0gmoQZ80Ajx8yzIF9N6hypHQrS5Iy4sQ/mQcTqEI8XyB+2Mz8pLCdiaOBwm3b iVdghsY5q0loeHnIJQcidt1+r2AuXYZ5zOFmjlCi3zHJhkiLVYDUFS89eAm58fHuW8 KiYSKNHKJIuZu8caJzRnL4uuOn8oroVd3ICV2yXQN4t9O/WqtGD4wQv57lmeLkBMCn RnJQR41mgMMChiSc7YgNY3dyC7HTtl8ntq4Bt0fnkIfPSL7FCIaj5oA51FH4qhBv/O QSOtPleahOfcA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 14/14] arm64: dts: ti: k3-j722s: Add second submailbox to the C7x cores Reply-To: sashiko-reviews@lists.linux.dev To: "Tomeu Vizoso" Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org In-Reply-To: <20261129-thames-v4-14-003b1e3365bf@tomeuvizoso.net> References: <20261129-thames-v4-0-003b1e3365bf@tomeuvizoso.net> <20261129-thames-v4-14-003b1e3365bf@tomeuvizoso.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 12:06:53 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] accel/thames: broken dru_kernel_channel_first check in thames_core_read_caps() -- commit 7eb0354ce4ccbc601749105abe32aaddd5f51384 Author: Tomeu Vizoso accel/thames: Create a context per client on device open This commit allocates a per-client context and LPAE page table on device open, mapping the L2 SRAM, DRU kernel channels, user stack, and save area for each DSP core. > diff --git a/drivers/accel/thames/thames_core.c b/drivers/accel/thames/th= ames_core.c > index 8053eeeb39022..d1140a374bd62 100644 > --- a/drivers/accel/thames/thames_core.c > +++ b/drivers/accel/thames/thames_core.c [ ... ] > @@ -140,8 +141,16 @@ static int thames_core_read_caps(struct thames_core = *core, struct thames_handsha > return -EINVAL; > } > =20 > - if (tdev->has_caps && memcmp(caps, &tdev->caps, sizeof(*caps))) { > - dev_err(core->dev, "Capabilities or window sizes differ from the first= core's\n"); > + /* > + * A Context maps every core's DRU channels when the Context is > + * created, from channel 0 on a core that has not attached yet, so a > + * core attaching later must report the first channel its Contexts map. > + */ > + if (tdev->has_caps && > + (memcmp(caps, &tdev->caps, sizeof(*caps)) || > + dru_kernel_channel_first !=3D core->dru_kernel_channel_first)) { > + dev_err(core->dev, > + "Capabilities, window sizes or first DRU channel differ from those th= e device was set up with\n"); > return -EINVAL; > } [Severity: High] Does comparing dru_kernel_channel_first against core->dru_kernel_channel_first reject every secondary core when the firmware reports a non-zero dru_kernel_channel_first? When the first core attaches, it sets tdev->has_caps to true and stores its own core->dru_kernel_channel_first. When a second core attaches for the first time, tdev->has_caps is already true, but the second core's core->dru_kernel_channel_first has not been initialized yet and is still 0, so any non-zero dru_kernel_channel_first fails with -EINVAL even when both cores report the same value and no contexts exist yet. In addition, thames_context_map_core_regions() uses core->dru_kernel_channel_first per core when mapping THAMES_WINDOW_DRU, so any context opened before the second core attaches maps DRU channel 0 (the firmware's own channels) for that core. Storing dru_kernel_channel_first in struct thames_caps would check and map a consistent device-wide value across all cores. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129-thames-v4-= 0-003b1e3365bf@tomeuvizoso.net?part=3D14