From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11B893D3CF5 for ; Wed, 19 Aug 2026 06:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787122332; cv=none; b=qEosABxP25OJ3Sbx+Z/S7uAwUfwRMZzOR0zWhVEotxkD2GA7EKsh68bsrtTM7ElszmejIGHFRreExmUIlaRauKKAZCxjxsqcTSOFGRzuVl6EMqQEO59EE7/mH8c/Vlx1A8Th/vQSPWobXOHv7rX6bRRNdIrH0+lu1O1/btddfgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787122332; c=relaxed/simple; bh=7L8FhPidYshQa7hPUb4sqzzNddh3rrpG6iUMzSGFgE8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oGpL6qKAsj47eBxst/Cjpl3eIMcapHBR9wm9YxCi3SgMl8jg9tSL98ciYEQrhA02h7mD9ZGY6lj14WgaWbc6QYsQUP0JLlw36ya7wdwwDJe0JCE/P7c05ktt3NkxoSaLD8LEFPwA1i4aGHaWLtK4ObaDJ+sbTSeOHsqHMr2KsRk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fMEoRQdP; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fMEoRQdP" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-495773ee3edso501985e9.3 for ; Tue, 18 Aug 2026 23:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787122329; x=1787727129; darn=lists.linux.dev; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=eNYpcIGxrPu5UcGxlHe8CSKb/lcjMt/RLjlOnDxhBfE=; b=fMEoRQdP9/J5vId+IgJG8LDunVAZELCGFeWNaIkY537sMHrFECn4dBuao80n+i9wnq pH3Cedj9ZIDZ0DkR4b3Mwzd7UMFtIGRYO6jwA3aailO5ZWmONirXzzx+K1SBtEBkgR/t eoFp441OChfMeleGwx7tC8DpBkGehrJQOIP0QBLx4B6ssf4ggrAuzdsXXD6K/PFAoIUI aVAtn2RbJ/rolbMVQLdXG0kbHhBqocEo2nexR58RABXStw1uJLTdvHNY9v28Hf29qgvf pZmrpseitobQYDwbWmXAO3M+exL/90djf+15VcCfZ9Cdg8P/YxcmukzKk4w06BupL33k n4xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787122329; x=1787727129; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=eNYpcIGxrPu5UcGxlHe8CSKb/lcjMt/RLjlOnDxhBfE=; b=F6PaBhzCh9ssKXzi5P3z3LGpLo14aPOvLz75kgYm+eYa2SBFBS0xSqIFYUOL9WUk98 VeMzqZYOJgV2lNHwP1i3MVvy5ghjzU2Tb/XQRuPc2O4hgeK7Kvce8tFVjKcH5VTOSPSf 7SUqkF1cDmGERP9V57k2yJFVpNuJvH5JDkglz/QQmZ4VtVcv7vWFISlAaxCMUsDcF/8z bHzkK6/VVzBMtb97hvYEAQkwD9FxVPJYaR/G8PBgAJN9tSmZ1y0CYYKzVZUDuoevB1Gk +W3htugjMo0uFceItNBRQRdJL9VKpdY/6Cp2nd2McmUjBVNvP2i8VFCNP1ouanGL2D41 2WkQ== X-Forwarded-Encrypted: i=1; AHgh+RobHkNU6/leOXukUPxInS9KnPkuMyzXl/3nKMpADS0serzMQkFNKduowTnjykx5sgiv2ez9Dw==@lists.linux.dev X-Gm-Message-State: AOJu0Yze/6INxh/ozQVuFpkjx9t6oBItd3oYPYujf3ufsAYhxo2p9wS3 DZZYcuSicYsx13mIhkmCr54uaPqwknq2QM4vZ796SOb/06bnR5qMzpKQ X-Gm-Gg: AR+sD10GzNkAY9eqlTvqyrSu2tq3ZgEf8vqgWQ7C0IVpQ1zzd+/Seoibf9tBa/lwviY Uu7BiBiwLDucqkaNXPJ1YrndJKgx6EMED4a+CappVGTJln626u1c9bYmLc3F+R1aZDa8v+cLbXQ HMp3ujpAcX4vqlSAMqkjLF/SXBkHNe+qdFDrva5UyIx39lZMb41e8YMjCP1L4usfE8TLwoPOvOi ZxNTullYbKE+XZJeqwP7M8ZX1E0kObbSrEqMQc/WJYi2pqACoU9FRjY4I6Izys2Bj6rA8zo0/NU 08t/6UNSfcrRbYIUK2ZQsyZmDhkXwmo7NRwAeiozj4lV8AC+wxBQ+XgmnE55syEqUufuxfTvrlV ZOOkxFPkeGDzo2B6QPe3te4FuNEUP/2rlR41S9zjOSzcU+EBMioVvpuv8Bv4mkLxwhX4KWlPC1u G2Are4NAFzc+VKhvvtHvKxeMh+cXa7lcaDCrD8migrePqkZ6EwuDx66p4WUm3zigNhC6qI2CAnc 5lE6JyBsDPUV8XZPGJ1sazsZHul5Isy00VO4EZ5XdliutER2p5e4wtUiLLtq5eV3u404BdSZ6PX xlIt X-Received: by 2002:a05:600c:1c29:b0:495:4126:1e55 with SMTP id 5b1f17b1804b1-499aa1c16d7mr24093695e9.2.1787122329217; Tue, 18 Aug 2026 23:52:09 -0700 (PDT) Received: from OrangePi5-Plus.BB-HOME (20014C4E1B929600C08047F1073FEAD0.dsl.pool.telekom.hu. [2001:4c4e:1b92:9600:c080:47f1:73f:ead0]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499a9aa7e8dsm24166515e9.0.2026.08.18.23.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 23:52:08 -0700 (PDT) From: Igor Paunovic To: Jiaxing Hu , Tomeu Vizoso , Oded Gabbay Cc: Igor Paunovic , Heiko Stuebner , Chaoyi Chen , Alexey Charkov , Joerg Roedel , Will Deacon , Robin Murphy , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, iommu@lists.linux.dev, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 02/12] accel/rocket: wait for a running IRQ handler before resetting a core Date: Wed, 19 Aug 2026 08:51:45 +0200 Message-ID: <20260819065146.5904-1-royalnet026@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260819013609.1613919-1-gahing@gahingwoo.com> References: <20260817113603.1436067-1-gahing@gahingwoo.com> <20260817113603.1436067-3-gahing@gahingwoo.com> <20260819013609.1613919-1-gahing@gahingwoo.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Jiaxing, Thank you for the round history and for running my archive check - the zero stall/paging count telling us the MMU is not responding at all is a better characterization than anything I had. put_noidle vs put_autosuspend with a separately forced suspend/resume sounds like the right de-confounding split; I will watch for the result. Here is the induced reset test I promised, run this morning. Setup: RK3588 (Orange Pi 5 Plus), all three cores bound. My 7.2-rc6 tree with exactly two rocket changes from your series - 1/12 and 2/12 - plus one local test-only patch lowering JOB_TIMEOUT_MS to 2 ms so that healthy jobs (~5 ms at this clock) cross the timeout deterministically. No other rocket changes; in particular my lifecycle series is not applied. PROVE_LOCKING=y and DEBUG_ATOMIC_SLEEP=y. Serial console captured on a second machine for the whole session. Protocol, built around the trap you described - the RK3576 symptom emits from rk_iommu_enable() on the next attach, not from the reset itself: 20 scheduler-driven runs over the model set with all three cores active, a follow-up inference after every induced reset, then a forced autosuspend cycle and one more inference. Two full passes, at console_loglevel 8 and 4, because synchronous serial printing on this path can perturb the timing. Results: - Pass 1 (loglevel 8): 12 induced resets. Pass 2 (loglevel 4): 8. - Every reset recovered. Zero MMU_DTE_ADDR, zero "Error during raw reset", zero lockdep or atomic-sleep hits across both passes. - Outputs matched the oracle in 48/48 checks per pass, including the inference after the forced suspend/resume. - All three cores returned to runtime-suspended between rounds; the domain did drop and come back cleanly after every reset. So on RK3588 with 1/12+2/12 the block comes back every time, and your non-recovery does not reproduce. Combined with your archive result this is consistent with the failure being RK3576-specific on the platform/IOMMU side rather than rocket-wide. Two honest limits on what this run shows: 1. All resets ran with three cores bound. Isolating a single core requires unbinding the other two, and without my pending lifecycle fixes that path is not safe on this tree (the list corruption I reported on Aug 12), so I skipped it deliberately rather than test through a known-broken path. 2. This run alone says nothing about the race 1/12+2/12 close. The same protocol on the base without those two patches is queued as a separate build; only that differential earns a Tested-by, and when it lands the tag will carry its conditions: # RK3588, three cores, induced reset, JOB_TIMEOUT_MS=2 Raw logs (dmesg, per-run outputs, serial capture) are kept; happy to share any of it on request. Regards, Igor