From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 9F1CA257845 for ; Mon, 10 Nov 2025 18:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762797789; cv=none; b=eqyzYI/0gQoOnXTG8Qau6n7wxR148aVuxqy9HfVRZPk0rQUdslEj4NTegrDTZDMRrX5GMjdfVu7ylSgYBdTcL3JkXH46ujX1z/m+1KIGce0y+kkSGKsMlyZkTHP4gX8YDujbngtzY3CgiOf5W9tpH375pPWDHbyhRWzI4yvd/JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762797789; c=relaxed/simple; bh=j//I72pxjWcMF3asq98y3R+83xTar6DU+rEGXdBJHDQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QMVZTuWTQjlNWGSiyMgN7CLloksqyvPs3sbx8mqtWqT86Ve35ILzwOhUjVfOjZas/63cgoaPmQ8DVZU/eWAuHGPLh+z6moBMF+IJ4S7B75FagtAzb+aAYM0j+uxOGZkULO74fTo5d8e15nbbrr1qS9C1tV12nQpTG1B16miQl9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=npM/vE2E; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="npM/vE2E" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-343514c7854so15819a91.1 for ; Mon, 10 Nov 2025 10:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762797787; x=1763402587; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EXgY6uiuq0FwYuYwuPfUmG8ZQgy+HUaTGGXE58Lpr3U=; b=npM/vE2EoAxID6JMW6FWaF7PNcYjewj5XX3RGoeC3BTWDRNPt6hyQ4WqA1+olnR0dw kvc8B5VaztA1c+c+gCpScU2j392vT39QAtJJpWsSTX/kO8BUoBTW/Mp5tg/ePUVxN3Uz i9jT9upRLHUWTlE56Q89xSMHhFPd8TCntZa8VlQF9W263UYwjIXE+gJUmhPDIujOM6LG ToUfayUQn8XlWQCutMF9az3aU8uxLR/4AoCe7ee3b7EVPEdJ38faSeQsYj7ug3y8k21U 7moYXSJ2liPsOlckubQKHG7FLPWQLCwy+LqJ94OqDTLZ0tH67L+i8nxnjorh1nzB8oZb WuYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762797787; x=1763402587; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EXgY6uiuq0FwYuYwuPfUmG8ZQgy+HUaTGGXE58Lpr3U=; b=T0yt05jCmhsEHfMo6LQvdEvoJQ6XOeG81D7Gs39u0j3htPwyCy9vikWPSjw47CDUmx BoO0k0M5CDD5UeO7ACFTlyKLDB/YiEzYo97GhX9Zhdk1qRHPFCD4etqXGragrKH1mZTM TJp0WZ3q88hMkXfI3PxfyWbIxXfgaSVO49RgjCL0LcygB/QKUS68obKs1fh7fsuqZ5Af pDrIY62Ulh/YrsUVgwpxfrfk0F8G8myIPzDofobXcUBz7LUDn78m6szbMETDAdUhOgID 4HDH3+ahmd8o+kjhfAbmS7jVPu8Bx511YA9WJb+E0V29Hq32Hq4UJ6fibw3oBWx93Pmd D+/w== X-Forwarded-Encrypted: i=1; AJvYcCWL93IPz+OO6si6mxcuxLT35Vf0e9Urwi5d9feH4Xhr+3MgFDpHBTFxx7AfieDFcaproNfCj7XDxvQr464kGz7o@vger.kernel.org X-Gm-Message-State: AOJu0Yz5TDJ+WY+qd8MEeY2nDoVuVKOUSIlmIHSEdGIV8iHuga4P4jv/ xiZZslB1/3PtLOgdv8s8MFre32CKQWlYR07QTyGShaaURZ06G2WhihKOzToz7IYGtEI= X-Gm-Gg: ASbGncsC8xpQIvzC3NR04Sqd46Vp66mldr5yR02NmUD2Gu+AfRBxRtw0GsTBXNYWJXJ oxXZTpWS2gzFfk4oHU81LWTCCHBTv116yUHr1a3mmH7a592I838G4w1tZbkuTlnZTS2X+dbwJAm H+NaRDq5FxW4gmwofqhRtWB8l1F7mtU89fY7ePAnmKTGXcEhWw6KrPydhFckFCSTOCkkGcQ2OEE TKDuQtkYgoR5cyjRY+JCQ6cc6RJRp2bAo/3Xud/JFpOqz4XPSxVYBftv9QBLfIF2Ds13s7cLqWO F1HyiJebNdUCh15cMlc0i6NvCsOBkJOOc2MYW6n/Jp71zCC62F9f/pS/F8oROvHan0DhRwEC87a v51reVEN8VKB3wvCXVCd0y/+Dl+Y7T+CCBmuAZbVQi52JJrYtZ0rTCX6r8jQdx5n7vEcgejvoFI bj/uh32MJ7v9xX X-Google-Smtp-Source: AGHT+IHC7Imfj7cGkhR74bYmKh2j9kSgYdYuG4G34KbAjsmXPPbwIE4U9hQteTj2lzNkj3tD+sm36g== X-Received: by 2002:a17:90b:1e51:b0:343:89cc:6f23 with SMTP id 98e67ed59e1d1-343bf2540d4mr278216a91.14.1762797786874; Mon, 10 Nov 2025 10:03:06 -0800 (PST) Received: from p14s ([2604:3d09:148c:c800:e689:789c:c35:41e7]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34362f1f231sm9522807a91.10.2025.11.10.10.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 10:03:06 -0800 (PST) Date: Mon, 10 Nov 2025 11:03:04 -0700 From: Mathieu Poirier To: Peng Fan Cc: Tanmay Shah , andersson@kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] remoteproc: xlnx: remote crash recovery Message-ID: References: <20251028045730.1622685-1-tanmay.shah@amd.com> <20251029032422.GA7297@nxa18884-linux.ap.freescale.net> <1bb3a121-614d-4040-9cbe-505ccb7a7fcc@amd.com> <20251030042124.GA18595@nxa18884-linux.ap.freescale.net> Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251030042124.GA18595@nxa18884-linux.ap.freescale.net> On Thu, Oct 30, 2025 at 12:21:24PM +0800, Peng Fan wrote: > Hi Tanmay, > > On Wed, Oct 29, 2025 at 06:51:51PM -0500, Tanmay Shah wrote: > ... > >> > > >> > >> Hi Peng, > >> > >> I don't understand why it should fail. The patch simply implements > >> rproc_detach() -> rproc_attach() sequence. > >> > > > >Hi Peng, > > > >Thanks for testing the patch. I appreciate your quick response. I think > >rproc_boot() should be used instead of rproc_attach(). That should probably > >solve the issue you are facing. I will send v2 with this change for you to > >try. > > > >Thanks, > >Tanmay > > > >> In your case, when you do detach -> attach via sysfs that sequence works? > >> If that works, then crash recovery should work as well. > > sysfs does not have attach option, only start/stop/detach are there. > > >> > >> Could you give steps how do you generate the crash? > > I have not look into the details on why it fails at my side for the 2nd time. > > On my board, the M4 core use watchdog to reset itself and notify Linux, then > linux side imx_rproc driver will do > "rproc_report_crash(priv->rproc, RPROC_WATCHDOG);" > > I will give a debug on the failures in a few days. > So what is happening here - Peng, do you plan on providing more debugging information? Tanmay - are you planning on sending a second revision? > Thanks, > Peng > > >> > >> Thanks, > >> Tanmay > >> > >> > Thanks, > >> > Peng > >> > >