Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2299451pxb; Wed, 9 Feb 2022 15:32:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxg1hjk1uUcnPg6y93xzp3Sf4mw+0EdNPan54cJvcf2+S3/W6LIdCpxab/5QGK9LIFbHktk X-Received: by 2002:a17:90b:3503:: with SMTP id ls3mr5322717pjb.76.1644449564942; Wed, 09 Feb 2022 15:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644449564; cv=none; d=google.com; s=arc-20160816; b=D0t6OEr81xaSCLXmfp5SLDHt1k9lDCONljbDB6MgFifCRn3XZbMSUlCxndwFDQMRca 6KDgMb4qa9MCBHGclOTStFuqoPwEVyeFji0HXWZ0KJOP4UmfxGMaIqI7N39rMB03hJO9 cAaycfBZoPgnOD/MQ4uO7DELBruY1/nCXYvynstw7sJkBo+egsbRhSi8KbSQr3kLSzLa 2ylg6AQ9AAZYkezhitMjUsEuttN0h0q8Pu2KaCrLAEP2dqUyfXLBUBDTEaZnNAAKVxKI 7MEO6hsGjCeAaZnItEJAJaJN5KqWWyAvXBfTvlc8q/YqmT95ydzgQkb9U2EwR7/W5AKz SnbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=m/jM298Q2lilwuRAcB9szC9CfZcuho3/psKjLfOmipk=; b=EEPWrhQIHFHjVNp4i4HC6wLJt2WAGDChHFL3aJQrK4YwJ5IkjgNLzeUEoPjMUYxGIG 08jz93BlfyfnpYUtN8WEg0w8SCiFyxfutzVsLw44DXt3reMNIL6iXS3RXaTkVRo8fxpp lFGN+2a/pRVR3Se0Zd+M4iYQOV41vDoBFUidZWZa9HEqdLsxbJFGlqxsUq9jeYhsW0I1 npfjxu9AVSgSBC4x19r16hk9AhSw8/Bu1FyCDzG3Dj1f82sPJ8x5jVl0z5WM33V2/xvu LK7/VpdE9jOTeB5WBDhhdJrcd88xKnPO55zaxFZmSDk5336JfJ6//JXO4TVlrgNCj6+w cVVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TBVPofOc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z4si17656864pge.854.2022.02.09.15.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:32:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TBVPofOc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A53A8E079D30; Wed, 9 Feb 2022 15:22:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234877AbiBIWDg (ORCPT + 99 others); Wed, 9 Feb 2022 17:03:36 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234866AbiBIWDW (ORCPT ); Wed, 9 Feb 2022 17:03:22 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95135DF498A3 for ; Wed, 9 Feb 2022 14:03:24 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id u6so6858580lfc.3 for ; Wed, 09 Feb 2022 14:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=m/jM298Q2lilwuRAcB9szC9CfZcuho3/psKjLfOmipk=; b=TBVPofOcDZHSNsfDSrK9N25wXlUqmiOwgAkzkjmAX7pRNqnzIlCv+Yazw38kCracB1 PfVDsmtnw7AZxa6Rvn5RueZwpXPFbDHYD7wl8veFe5kS1uzo3pW+Q54NcX6wK7F4ifN9 kCIpFQOmGPlWeI+F+Daz9XRNW0Np/b/ccFxBcKS7/6U+f2704dO9X6NRZidd5HhbDpDO jDr5wylLX3hFKJ2e6jweRbE0x4iGflbnv4rwQe6jxf7pTSNFufATUiEHoKNdn4H37ZiU l2QWN6u7oLNWiu3x7fhNSVxYWqN2s67IOWxnFQ+cHgpG4/KqiJottk6xQuvfFpjx+4zG p3KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=m/jM298Q2lilwuRAcB9szC9CfZcuho3/psKjLfOmipk=; b=VZTFXm6pXH/DhAkxbnyJL0eJQFfr/ar/ZENSkqJEAe/PtQvegYynfNmct0Ex2c/r8B j/T0RK1xWroYKLD09pZECs3hO9wDHM4CmbhuIt0AwwqugifIFyUZw1isaCu/VskyIUx0 dUTG7Jn3tiLbgy3ZViKFGdgbrZQYD73kCLx4lTLtg/LS/tnf83EShwVApR6hJszOd4ac bhAaq0ZciJbORbcJYL0hZB/Ms+n+tXwieWrNvqQxZ002x/twRZdT9eYDOrKN64O5Q9XV re9CCifhYsUeZaqBvPfQr01ImXfGc7nLut8P7m5uJ6+2AYEBC/3nXdHKcP0UML/BD7Zr DnbQ== X-Gm-Message-State: AOAM530q8ostBEzF0KtZCki8AiVJPO2Y4HPapxW7ywdf4nau4FvoPLzc nw6owFJdjR0C0gNjqYMFW2+t8w== X-Received: by 2002:a05:6512:3a93:: with SMTP id q19mr3041722lfu.487.1644444202900; Wed, 09 Feb 2022 14:03:22 -0800 (PST) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id a27sm2541809lfg.140.2022.02.09.14.03.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 14:03:22 -0800 (PST) Message-ID: <32259670-1261-a305-2bcb-57ebde792f24@linaro.org> Date: Thu, 10 Feb 2022 01:03:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v2 2/2] drm/msm/hdmi: Remove spurious IRQF_ONESHOT flag Content-Language: en-GB To: Daniel Thompson , Rob Clark , Sean Paul , Abhinav Kumar Cc: David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220201174734.196718-1-daniel.thompson@linaro.org> <20220201174734.196718-3-daniel.thompson@linaro.org> From: Dmitry Baryshkov In-Reply-To: <20220201174734.196718-3-daniel.thompson@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2022 20:47, Daniel Thompson wrote: > Quoting the header comments, IRQF_ONESHOT is "Used by threaded interrupts > which need to keep the irq line disabled until the threaded handler has > been run.". When applied to an interrupt that doesn't request a threaded > irq then IRQF_ONESHOT has a lesser known (undocumented?) side effect, > which it to disable the forced threading of irqs. For "normal" kernels > if there is no thread_fn then IRQF_ONESHOT is a nop. > > In this case disabling forced threading is not appropriate because the > driver calls wake_up_all() (via msm_hdmi_i2c_irq) and also directly uses > the regular spinlock API for locking (in msm_hdmi_hdcp_irq() ). Neither > of these APIs can be called from no-thread interrupt handlers on > PREEMPT_RT systems. > > Fix this by removing IRQF_ONESHOT. > > Signed-off-by: Daniel Thompson Reviewed-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c > index 719720709e9e7..e167817b42958 100644 > --- a/drivers/gpu/drm/msm/hdmi/hdmi.c > +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c > @@ -306,7 +306,7 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi, > } > > ret = devm_request_irq(&pdev->dev, hdmi->irq, > - msm_hdmi_irq, IRQF_TRIGGER_HIGH | IRQF_ONESHOT, > + msm_hdmi_irq, IRQF_TRIGGER_HIGH, > "hdmi_isr", hdmi); > if (ret < 0) { > DRM_DEV_ERROR(dev->dev, "failed to request IRQ%u: %d\n", -- With best wishes Dmitry