Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965754AbdCVSry (ORCPT ); Wed, 22 Mar 2017 14:47:54 -0400 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:35692 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934855AbdCVSrp (ORCPT ); Wed, 22 Mar 2017 14:47:45 -0400 Date: Wed, 22 Mar 2017 13:47:33 -0500 From: Julia Cartwright To: Grygorii Strashko CC: Steven Rostedt , Lionel Debieve , , , , Subject: Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic Message-ID: <20170322184733.GL10423@jcartwri.amer.corp.natinst.com> References: <1490195923-9560-1-git-send-email-lionel.debieve@st.com> <20170322173759.GK10423@jcartwri.amer.corp.natinst.com> <20170322110116.4b14dafd@vmware.local.home> <21d6cfe5-3263-4eeb-c35b-c75f34185526@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z4+8/lEcDcG5Ke9S" Content-Disposition: inline In-Reply-To: <21d6cfe5-3263-4eeb-c35b-c75f34185526@ti.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-22_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703220161 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-22_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=30 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=30 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703220161 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2180 Lines: 61 --z4+8/lEcDcG5Ke9S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 22, 2017 at 01:30:12PM -0500, Grygorii Strashko wrote: >=20 > On 03/22/2017 01:01 PM, Steven Rostedt wrote: > > On Wed, 22 Mar 2017 12:37:59 -0500 > > Julia Cartwright wrote: > >=20 > > > Which kernel were you testing on, here? From what I can tell, this > > > should have been fixed with Thomas's commit: > > >=20 > > > 2a1d3ab8986d ("genirq: Handle force threading of irqs with primary > > > and thread handler") > >=20 > > Thanks Julia for looking into this. I just looked at the code, and saw > > that it does very little with the lock held, and was fine with the > > conversion. But if that interrupt handler should be in a thread, we > > should see if that's the issue first. >=20 >=20 > It will not be threaded because there are IRQF_ONESHOT used. >=20 > ret =3D devm_request_threaded_irq(&pdev->dev, irq, > sti_mbox_irq_handler, > sti_mbox_thread_handler, > IRQF_ONESHOT, mdev->name, mdev); Indeed. I had skipped over this important detail when I was skimming through the code. Thanks for clarifying! Is IRQF_ONESHOT really necessary for this device? The primary handler invokes sti_mbox_disable_channel() on the interrupting channel, which I would hope would acquiesce the pending interrupt at the device-level? Also, as written there are num_inst reads of STI_IRQ_VAL_OFFSET in the primary handler, which seems inefficient...(unless of course reading incurs side effects, here). Julia --z4+8/lEcDcG5Ke9S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEgKAEF431w1EL96k9jNrC4UVNdG8FAljSxsIACgkQjNrC4UVN dG+ZBQf+MNhCZIreNw8H3U5vsSJfYTF1+/ddkeJ8hCINX97yp9Xjf6boOQy0Tstg DrLQle1L8hKNevqeexaUaPAfsdy1Q7KHGIGCEUKNeqovp+ip17zi4zllstSOY9BZ swIT9y7TE/h4cLXRtubEq3NKapXQolwXJ3ZLY4j3OnzcxQPCf+1Z8QmJXExSUOE9 DiCYDtmOnwo/G2/CKG5qOAAveUS0gEjlyrP32klQDfEuwc2ZzRqVhimNkkcbegeF zklPaYuNeSaNtKR4WPiGRBhH6+Y/0H11xsMwMuqvdw3vz3p3p1S0ECaOkpAs1HFy Wo3DXi/VMq9vCC+uCjmBFqKPAHvcgw== =EySp -----END PGP SIGNATURE----- --z4+8/lEcDcG5Ke9S--