Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1353803pxb; Wed, 2 Feb 2022 03:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOb/5yUTlrlLqf5j8uBswLJYYOo0e/lNPOSlHz9oxpR0ESJzyyPjmEzAtFI1fsyQQ4s6n4 X-Received: by 2002:a63:4e5d:: with SMTP id o29mr24097514pgl.34.1643799918767; Wed, 02 Feb 2022 03:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643799918; cv=none; d=google.com; s=arc-20160816; b=mdTgI44uHiXmn98r9aRVeXYLneiqD9oHPPAhNqgOcW7FhljOMfZ0TvYOensVJU+4SF P90JIY48JtOpd1ZcOZZqxDjha5qVxaOwp559r2ABUFnQISBprSjMh5pk0f6Tj4b8HndJ bCklBpee6yXk1R3Ua0HGrYQeNdUcLtgDnd+D9aX2h3v3giCLtuxCr9CBWQVsHnCioWR+ Vds9PevIopd2BlxAjU/bj/wckWMYLgwsi8sotcr6G/PQQQVbhHycTLo7ufu6gJTlQ2lt EjTGyJXEsqpiSS8Vqea2+HvfQdDOLRj/e3deMEavghgU1lTsN+hfeF/ebqdWVxabEJvP 5OCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R75JAp3M1abKRfmniOJ5Fuzudqh5/VKktmnzYEpT+SA=; b=xloE8Cp4Qr9qEsQLewGsgfWyepE22690gUlZtu1bIbNZ4GCvYTYWuv7aU/4oMvRhIV t7QXTHX5zD3LYzR4MzTb/Q/VVaD+8f7d/J3wzgTiqb7Yc/2nnJK12DKhpVI28LWgBxoC Vepy1E8dp8MkW2PTFa1zN8XWXTxZ5SMflPB41cbUNrvmwoymdmyxpR2xToRPw+/N9B2D Qdbv2uNtHrQhbUJNwqpTOYK5ZNT2/kFsCjiY5CSpwDsFW00zBsq+M2j3wp3RD6i2isxs h719QYZeCPfoApxNFVddcsNqUrT7lV4R8mHT9GDsQKcEFu+oGjflVs5Yy76lO8amplmi GZ2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oc9p+IVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19si20625447pfj.203.2022.02.02.03.05.06; Wed, 02 Feb 2022 03:05:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oc9p+IVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241690AbiBARrz (ORCPT + 99 others); Tue, 1 Feb 2022 12:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241736AbiBARrt (ORCPT ); Tue, 1 Feb 2022 12:47:49 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBE3C061714 for ; Tue, 1 Feb 2022 09:47:49 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id k18so33554670wrg.11 for ; Tue, 01 Feb 2022 09:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R75JAp3M1abKRfmniOJ5Fuzudqh5/VKktmnzYEpT+SA=; b=oc9p+IVnBHLB7LZf1r+Ni3OD5gI1bzBxGsS5LT4cHBQaWFBb8jmm09tcie0gM8UUXm ibm81fKzJqBSY+FMLvG73EWI84K2BM1YX13xch+ZfGy/lkyDQmUlKPdd5ATMe4tP2qAY q2LLC47PesQHEdn+4fhjytGJiJ8lZaxKwWYKNVKC7mTuna62YxR4MvheG0z2k8wcTm5P y4irdy/vhh7Ze/iNid4lRN7TC6PRVv/3sRnZvxcMK59xmIrHUgLW9gCH7CvxL5r6bJsZ 846qFCxExqndxRykCeG3S3C3H6tO3V8aBmYYve9TYbeFxWYiQ4I32VVGSXqXVIdVuoOC Tc3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R75JAp3M1abKRfmniOJ5Fuzudqh5/VKktmnzYEpT+SA=; b=c+NJ0Yra9PHrGfd55lhBy2oQ9CzkR3S/xkjsSLmhROtplGBwEalWhEYw+9wjNYFaJ3 aHm2ccikOH9ZmNOWSRsxSSzt730U0vk36T78+ZDL/jJKaR7fcgPF+qNIPseU5ShG6Wul MXlSTihUyqmvhbMynkXsX7Y6lk0YNfrji+PICPSpW9YDnP87WsJ4ZLzcL8xiiwAAZ3bB AZqNaPEBpvOcZHymgcYdFRupKaJtFWSknUTQRQ7GR7dy6GnQ32191O/u8S0LB5aKZbHN JnI3vQe84hDXt6ibADCEX7sUTfSEbOUQzLGzfisN+VScNX4d73+JKhvrh4FvrZMbwArW 26tg== X-Gm-Message-State: AOAM530gzIzhrVNT5RynBm2BxyNNSpe1LP2Le5bx5GGydZLhgThu6GRA JdsKVIwWVPzvppecqCV+Iuy/eg== X-Received: by 2002:adf:f141:: with SMTP id y1mr22073899wro.104.1643737667624; Tue, 01 Feb 2022 09:47:47 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id r2sm3392332wmq.24.2022.02.01.09.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 09:47:47 -0800 (PST) From: Daniel Thompson To: Rob Clark , Sean Paul , Abhinav Kumar Cc: Daniel Thompson , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] drm/msm/dsi: Remove spurious IRQF_ONESHOT flag Date: Tue, 1 Feb 2022 17:47:32 +0000 Message-Id: <20220201174734.196718-2-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220201174734.196718-1-daniel.thompson@linaro.org> References: <20220201174734.196718-1-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (and for "normal" kernels it is a nop). In this case I can find no evidence that suppressing forced threading is intentional. Had it been intentional then a driver must adopt the raw_spinlock API in order to avoid deadlocks on PREEMPT_RT kernels (and avoid calling any kernel API that uses regular spinlocks). Fix this by removing the spurious additional flag. This change is required for my Snapdragon 7cx Gen2 tablet to boot-to-GUI with PREEMPT_RT enabled. Signed-off-by: Daniel Thompson --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 6b3ced4aaaf5d..3a3f53f0c8ae1 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1877,7 +1877,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi) /* do not autoenable, will be enabled later */ ret = devm_request_irq(&pdev->dev, msm_host->irq, dsi_host_irq, - IRQF_TRIGGER_HIGH | IRQF_ONESHOT | IRQF_NO_AUTOEN, + IRQF_TRIGGER_HIGH | IRQF_NO_AUTOEN, "dsi_isr", msm_host); if (ret < 0) { dev_err(&pdev->dev, "failed to request IRQ%u: %d\n", -- 2.34.1