From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE7A2C5DF66 for ; Sun, 16 Aug 2026 04:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lJ3os724hSt3ktSUr45GRnoaHyq1InmNCTom8Lp4Cp0=; b=ceWrD6ftAv4X8PTbCHaiEeUpEC ZpIRAdrJx052joe3MSt5GjKA8TZcVW/OpIgs4fDqufppkr3QlyQHlAJQJZxi4TewYA6j6pMg8FM5K HgacFN0RHstWtmxcf5J0Lo7aaeV0u+RcjXVxVcz/m3iLD+uDl2ySbB8lQLFuu3X/MjK+WHTZxehqu uo6h1O8kCu15TNqe2/moXyYMhwwj1WWGGHcLdO70W/dbAidMB7j1AZR6aTU3VilW4Hfm5tb3pyNGD jlMkB1Zu+anaqUbXGKbfLPiM2aT1/fEr1Wjay2+pUhP0qUSyuj3tJoXgjyA98yMAJY0OtYKqLUCNq YIMcjuqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wvSEq-00000004Rgx-0abc; Sun, 16 Aug 2026 04:12:48 +0000 Received: from flow-a1-smtp.messagingengine.com ([103.168.172.136]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wvSEl-00000004RgQ-1p4N; Sun, 16 Aug 2026 04:12:46 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailflow.phl.internal (Postfix) with ESMTP id 316191380153; Sun, 16 Aug 2026 00:12:40 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Sun, 16 Aug 2026 00:12:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gahingwoo.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1786853560; x= 1786857160; bh=lJ3os724hSt3ktSUr45GRnoaHyq1InmNCTom8Lp4Cp0=; b=N 9UiwR5YdgCDMjHjyIwwI2D8MI8jwnFMtBufcYW9sGtahJNn+IZXWCxj/dZAy16H2 CEbKBQVbC5jN+nQ+iFEGkCXwBaZekCw+cPW5O4bjTlFZtp84SgRDsqvWu9SEOCSu F4AIqYzlq7RC/o6F1uBrkfjqgTK14yOTUKdygs65q1siYukeYEgfrJaB8Wfv2rMb nL2kdQbp1KfndVUgEyXjUirABp0x+uWQv97XPYKSrqK5oilPs9UINGHCgyd9O1+a zPZvlQQzPpf0p9I9Yr4QfT3y4j7kYekFBpbDldd91dIWAWvrwuT8m/8l3QYqNBLL Vc8vhDStYOOQjHRMfd1sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1786853560; x=1786857160; bh=l J3os724hSt3ktSUr45GRnoaHyq1InmNCTom8Lp4Cp0=; b=ONomEOrEFd5CcI2QG +P42rYjDC82valwj7k7SklEnlnwq88itdEBnHzbCk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Postfix) with ESMTPA; Sun, 16 Aug 2026 00:12:35 -0400 (EDT) From: Jiaxing Hu To: royalnet026@gmail.com Cc: tomeu@tomeuvizoso.net, heiko@sntech.de, chaoyi.chen@rock-chips.com, alchark@flipper.net, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 08/10] accel/rocket: add RK3576 NPU (RKNN) support Date: Sun, 16 Aug 2026 16:12:33 +1200 Message-ID: <20260816041233.3566625-1-gahing@gahingwoo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260815130556.68876-1-royalnet026@gmail.com> References: <20260815130556.68876-1-royalnet026@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260815_211243_939294_64E5059D X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Igor, Thank you for running it, and for the unclamped reference. Your 1001 does not discriminate between the two forms, which I should have said when I described them. DIV_ROUND_UP(1001,16) is 63, odd, so the parity form gives 0x80011011 there and so does oc % 32. They differ only where a count is a multiple of neither 32 nor 16. On RK3576 the failing one was 56, and 88 or 120 would do as well. So your clean result rules nothing out, and I am not reading it as support either way. On my side that register turned out to be the whole of it. A 1x1 layer with 56 output channels had timed out in every round it ever ran, 32 of 56, and with the parity form it is 56 of 56 every channel correct, with the old form reproducing the timeout in the same log. You are right about perch.py and there were three of them rather than one. The inner maxdiff, the interior statistics and the raw row dump all assume a surface with an interior, and all three raise on a 1x1x1001 classifier after the useful lines have printed. Fixed here, and checked on the host at 1x1x1001, 5x5x8 and 56x56x64 before flashing, which is a check I should have been running all along. And I will re-score operator 28 against the unclamped output. The max(cpu, zp) reference does move channels that are not wrong, and reading an empty convolution off it is the kind of mistake I would rather not make twice. Jiaxing