Received: by 10.223.176.5 with SMTP id f5csp2414824wra; Sun, 28 Jan 2018 20:17:19 -0800 (PST) X-Google-Smtp-Source: AH8x225EtOaWMBCKl18EAQKGYEJvJzxy+id+26iZAez2byn3eiRj6/CXyDRL1HNRgBGIJA9uWXWp X-Received: by 2002:a17:902:bc85:: with SMTP id bb5-v6mr21093679plb.425.1517199439050; Sun, 28 Jan 2018 20:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517199439; cv=none; d=google.com; s=arc-20160816; b=BMaJXwsuQ16EFQIr7ODCNr8se4DAMMxcwUycTfFACNZuXoWvrGpDoy9XtRM5z8vvEx CYobqNIEmiiMhze/4wVKxrbNgz5l0myEbyPqQ5FYEPuVt091aQXjJp/eGm17mCspxKr/ m+q1r/ZbgrN8IQ/4uoJ2MoCmAyp6Dbl5DRnxkluLdhUkjo1yU3o3cyxVsnWCZjkl2iqW Z1lONQRqu/WTCrODchg+GEkufVYCGQG48oUCgL/U0cUb5kTTZLMbylHMUSvmDyjWSJYi doTipQeLhCvJw1H5A6YZ1BEDsR6PNlceAcjJl16AKwfHbxNx6dyGv3ezzQgYl55K80T9 iT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=YKxAfMfFahHUjV114USNeIijYjtaGs+znEYpQnc+26A=; b=fH01KULIDvrHimhnssXzGR6Mbz+Y7Vp5eYLD7Ehl9cscN5ZKrkn2jkwRsXSfe0SCVC IoiVYnz3bhyMc19ovuBxmUV4csdilEvpZPHpZSD8/QBpocrzTqBv4YspZxZqv3+XCqml l1zXH84AxAUqJmtydVv+jeNxnoeAE86PBvy6vtFIfPo5BNNN0GV3etWQH3SWKO1G5LjE rlkjbd9hc2pRzsnv1965/jJgUclCDQlCM15K+I25b2jhofl9dnGojV3bIsbus6mmb+HR gCTGGrTKusXVy7Od9nkSEpbzuHWPKW39seamJxfDZmgkxtD4w4AT7TJOaPEOxF/4rIQY 413g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj5-v6si3715021plb.732.2018.01.28.20.17.05; Sun, 28 Jan 2018 20:17:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751373AbeA2ENs (ORCPT + 99 others); Sun, 28 Jan 2018 23:13:48 -0500 Received: from ozlabs.org ([103.22.144.67]:47839 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813AbeA2ENr (ORCPT ); Sun, 28 Jan 2018 23:13:47 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 3zVGN94KNbz9sP9; Mon, 29 Jan 2018 15:13:45 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 77720c82915a8b7797e0041af95707d7485b4a40 In-Reply-To: <2142489eb41f758b5d04919a8efbb16794f16b0f.1490135047.git.julia@ni.com> To: Julia Cartwright , Anatolij Gustschin , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org Subject: Re: [v2,3/9] powerpc: mpc52xx_gpt: make use of raw_spinlock variants Message-Id: <3zVGN94KNbz9sP9@ozlabs.org> Date: Mon, 29 Jan 2018 15:13:45 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-03-21 at 22:43:03 UTC, Julia Cartwright wrote: > The mpc52xx_gpt code currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because the spinlock_t type becomes a "sleeping" > spinlock w/ RT kernels, it is not suitable to be used with irq_chips. > > A quick audit of the operations under the lock reveal that they do only > minimal, bounded work, and are therefore safe to do under a raw spinlock. > > Signed-off-by: Julia Cartwright Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/77720c82915a8b7797e0041af95707 cheers