Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp194355lqb; Tue, 28 May 2024 12:39:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpTWQNC+WZ5/pj9t0DrNY6bprp+3zs4pXKxGHhX7IoT64cr70PMHXzK2+cjTSH+oacE9OjxuPpxBQK0Seq/qivFH6VIYfZKtrObKNPEQ== X-Google-Smtp-Source: AGHT+IFTCKr6cvd85wlclPD9mmWhFYOaGjJ3RXm7xdK2i5ygSKj0q8KU46HP7HTSi2tv+MY+syJ3 X-Received: by 2002:a17:907:940b:b0:a62:cf3b:77ad with SMTP id a640c23a62f3a-a62cf3b7972mr1059297166b.49.1716925190263; Tue, 28 May 2024 12:39:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716925190; cv=pass; d=google.com; s=arc-20160816; b=iF+r4nKj+eu0VuOs36U7CCAreHSO/SIloVqP97UCPdBYwdu5r6IGgeWJ2KGCHkM5W2 Cm4BdwsA+39R6XvhKtxah1zIkNPLPaBH0qenTHdEP8RPJwbkYH1/UULJe+lmTmg7xnvq PgINIZewQZl/2wGUAhgv71SXLiMhxscqXBGRpRvpsDibLyfbcqUS93EFhuVRvTYOaUbv +XaUhrqs3GafUvHdJpVEiNYpTXZsuczCCfckTSz10Ef/B7Wayi2+H2lSMjCipAFamhyx wNBmwXJgdIaGpTXgmWHAjxmEWzVv6XBylcaU/njUMj0uyzw8nbmiTYY4vBpEQrntx/q7 gnVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VVddBXQV2grY6+Zbi//5IkKUEc11Yvlxas92w+1BWrY=; fh=k+oIvq1qwibxYrNG9Fo425LEnA47uobXqlCl6j+c3G4=; b=PyyTHXDZkNXB/CZczRpl/bm1tdsGSD3MRnlDew/yf4cpK9SkBxf18rE2edSX+oZ2H1 9whLT7p30vAZzFAlPsWlDoOogww90UUzyR7Jw5sQvXftCteXrTnDWUwMfQAxfXbZCGpe X5/vt7ePCuNad2nTxkL5YHH53BlnJD5+3oVOToqjOy2F+ivjSUV+EWzcjsLPuatKKpU+ fGQB4MnukPltJYZvYL38IF3CCJEHsEQ32lNrE+XprecGC0y0zthX4eWjgq7P6LphKIMz Dihc+AO6+iKsFJRpb1E5EVvUFgTxECqQ/Vw4gNdgFy/YNmeT3hb5NL0ZyUYZTmmAsa3c YguA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ugVKToeA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc38a68si546169666b.432.2024.05.28.12.39.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ugVKToeA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 58ADB1F2367C for ; Tue, 28 May 2024 19:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA880176FB6; Tue, 28 May 2024 19:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ugVKToeA" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 8043313C3E7 for ; Tue, 28 May 2024 19:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925093; cv=none; b=HVV1vxO7FhU3gXbS9Kuzh3dm1ygl2IlLj630gHmy0EEJrvvKDRsKXWrQTuqW2NhyntYLOsR6Z2JFpW4Khz2cTz5OF9u43a1RsNEOQ9tJlyETE0K8AivdLAWbzLMGXWteriQfW9Eq7+kmhY1T8zLoikmtHAQuTGpGbiBGUZng+/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925093; c=relaxed/simple; bh=C+E+TFaQOMPAjrjGZuvwR94cq5624yFiJBlvO7VitAI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tMiRXZJqreW8teXyzkq2Zpa+MKsiHn9P69vlmJomnwvO1VnZ6ENvPUR/sHh2Yu/7Wry31gDnKTalfU2mejfGFlOqiCfMwfuKiymw1yHtvQ8Sdz9MdwvBjOO8mmS2H6bt4YLB4bYcfgAWVcxM0sbdzz2nB2Op8fL09JXy5Vt25HA= 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=ugVKToeA; arc=none smtp.client-ip=209.85.210.182 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 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6f693fb0ab6so1072793b3a.1 for ; Tue, 28 May 2024 12:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716925092; x=1717529892; 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=VVddBXQV2grY6+Zbi//5IkKUEc11Yvlxas92w+1BWrY=; b=ugVKToeAEzEKQLtDNRtPB9QLKLNrVx4xu/54PuP8nlYJUQi+UDTDk9P0erPCG43/RA vmVipNbWBFniVBtUA0D7URPq3Sk3G5rzYYHLcJBB/8GXlL6rpNZSReT9F3kXiofwz6mQ jjXJ8qRPVxRO2PIF5pmeBDeyoq9L1Q+4cjvkOJhFFiC/eYz7YwSnzuGutFSIAoTnUU3r HL7cFzpE8pfvamRurRj0rGgTd4AT8Ul92XaG+OwvEvPOcolTT8aslJeyx3Uc2QpS+4Sf uPYtYlJVBWhnzZ+0GKbLMoSmQZir1scINLQk4vkj5nkZpM62ut0uN8zB9R/v+zWaJ06x aRVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716925092; x=1717529892; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VVddBXQV2grY6+Zbi//5IkKUEc11Yvlxas92w+1BWrY=; b=qTCYd3S0joj4mmz3LMjHNfj4D+7kWo0JgGCHf2eyNyuoXWUpalgw3/WrXHSeq5EYDg poKKBvvQ9pHQrQlFFwqtNM3ikLLUsqt9pfc9ybqGlqFApGH73tKZYYEKTpeY2NvwPMDo IVY1ShAm5cFvXil8BcpbshZtNoRA4fW/27Lcq0M8JCTCbmd/HmrJ346ec+SSIu3gJpK4 A/9J8/QejaUQTyHLsJ6ycnwirbCXKDu6PqcXC8ueBS3W8gsV40seUkK9+XKSEUhxyY2n KRKTqD36fG0VSDvP+NLUa5v93yrg9ykCkL8miYPc41BZRLzO7J9spYSHJqcka+OwfR7w UlPg== X-Forwarded-Encrypted: i=1; AJvYcCWxpKUZAMxD83dqOribvifDmvFti/wYfSz8VAGTUyOzYGS0lE7Wghfl3qUFH24rw49Y4sZ3uxL8QQ+8sylBjXz1lhvJ+6dBqqMHpcwN X-Gm-Message-State: AOJu0YwFtv1s7he/NzGHzCr2FubzzgSd5CEOkoxWIVnDa1kW0eFQ55YZ MmDxHO6Eyf3uoI5/KIMKdWzGE40YB/EIotcfeIYN1GbKVsic9bUrh+X7qc1/ifbdtF/xtllnjCK I X-Received: by 2002:a05:6a20:7f9f:b0:1a8:2cc0:290a with SMTP id adf61e73a8af0-1b212d3be66mr14145846637.30.1716925091781; Tue, 28 May 2024 12:38:11 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:4c7:2691:aa4a:e6b7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fc373c92sm6948650b3a.96.2024.05.28.12.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:38:11 -0700 (PDT) Date: Tue, 28 May 2024 13:38:09 -0600 From: Mathieu Poirier To: Gwenael Treuveur Cc: Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Arnaud Pouliquen Subject: Re: [PATCH] remoteproc: stm32_rproc: Fix mailbox interrupts queuing Message-ID: References: <20240521162316.156259-1-gwenael.treuveur@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240521162316.156259-1-gwenael.treuveur@foss.st.com> On Tue, May 21, 2024 at 06:23:16PM +0200, Gwenael Treuveur wrote: > Manage interrupt coming from coprocessor also when state is > ATTACHED. > > Fixes: 35bdafda40cc ("remoteproc: stm32_rproc: Add mutex protection for workqueue") > Signed-off-by: Gwenael Treuveur > Acked-by: Arnaud Pouliquen I will pickup this patch but this time only - next time all reviews and tagging need to happend on the mailing list. Mathieu > --- > drivers/remoteproc/stm32_rproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c > index 88623df7d0c3..8c7f7950b80e 100644 > --- a/drivers/remoteproc/stm32_rproc.c > +++ b/drivers/remoteproc/stm32_rproc.c > @@ -294,7 +294,7 @@ static void stm32_rproc_mb_vq_work(struct work_struct *work) > > mutex_lock(&rproc->lock); > > - if (rproc->state != RPROC_RUNNING) > + if (rproc->state != RPROC_RUNNING && rproc->state != RPROC_ATTACHED) > goto unlock_mutex; > > if (rproc_vq_interrupt(rproc, mb->vq_id) == IRQ_NONE) > > base-commit: 4d5ba6ead1dc9fa298d727e92db40cd98564d1ac > -- > 2.25.1 >