Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3158377rwb; Mon, 3 Oct 2022 10:28:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bYHHZm6g049XVilfYy6psMpZNJJYJbT1ywoP7XaXuaKAcllPDJTxWfnFXyQGnox8DBwsc X-Received: by 2002:a65:4048:0:b0:441:85ee:7a6a with SMTP id h8-20020a654048000000b0044185ee7a6amr15226334pgp.39.1664818114710; Mon, 03 Oct 2022 10:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664818114; cv=none; d=google.com; s=arc-20160816; b=NnWn5AG054DaOKWVgDGGtyLDE6Nc8Qx6ccPlUNbf2tPX3N3NDs6Ftwp3c692DYiOCH Xg/usujcCa791Ys7qQ0c2DYq1ArA66ePKOTmKP1JeGYg1YHsyRyf8c6BczKXQl7oU5eS 21OrCcAyDsyuUCmQAzu0SC6TPrQvY8wagpqIU+g0BJF4TAL2o+ZcSq0CPX6NUmnQYKy1 S+vX0cY/nyS6F87c7sky4W820CNLbxtgSxfmVSJygRm76xf6HzA4oqrMI84z/DXLmNWV NO84kcueM/58s8xxS89JNTGR6wDtIZeDympp+VqVrzjOmCmhHlVGAy7UlmVLW864/8F9 1xEw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Dzb8EgXtXtOeTruW/z4IGhhF8RMS3aAQr6k0iWpk9YQ=; b=RBlkHY3rPlftg38sFmUoiXJDaOb5zmqWUnv03cluxaIPP6j2gxbpT66OkMscn+Uqa3 oLBFPXXJdrAUwP5Q/Rd6EdE0o19uwjDH+zccVV/l8cajzOtsQOq6vMKIH78i2CENchHi c+k5JleHXuoDpASbtIVQcwlPCboBtQj6+T7sj3mskyfBVju9Yhb75nSeJhEPlJs3eFNF CBQA31Xh5pdDieER88uVsldI+t/l2REhkqg+Ih7a90PJhMVLwuqaJVJgsiF4/Iw0II4Y I1dHJjiTwSGmIR7taLxSWu5LdCTZE9VAzrmYYBXfnqCTMMeOnRy8GGLak9CufifPKMi/ j7cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TeqL8wDx; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m65-20020a625844000000b005397c4ad9e1si10379224pfb.134.2022.10.03.10.28.23; Mon, 03 Oct 2022 10:28:34 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=TeqL8wDx; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiJCRNe (ORCPT + 99 others); Mon, 3 Oct 2022 13:13:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiJCRNK (ORCPT ); Mon, 3 Oct 2022 13:13:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7AA43910B for ; Mon, 3 Oct 2022 10:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664817095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dzb8EgXtXtOeTruW/z4IGhhF8RMS3aAQr6k0iWpk9YQ=; b=TeqL8wDx24fQ+NlHRmJ19M/dZ6e1IPRcjgsnnjT16iuXohW4IOZ3pdVx5QcHzBlQptRgR9 YOZwQ9jPU2U5/9zhOgOGy/XjcgyEMuGn8od2qiWNbZY33mn9Y25Zbq/3YabKE8iHac9GhI ADwwmwmry9yFxTvkFEVDvK6LEX4QJh4= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-472-EyclDz73OCeNodP2dtB1uw-1; Mon, 03 Oct 2022 13:11:34 -0400 X-MC-Unique: EyclDz73OCeNodP2dtB1uw-1 Received: by mail-qv1-f70.google.com with SMTP id i10-20020ad45c6a000000b004a25d0fea96so7312118qvh.3 for ; Mon, 03 Oct 2022 10:11:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Dzb8EgXtXtOeTruW/z4IGhhF8RMS3aAQr6k0iWpk9YQ=; b=jYybBj287RupXyMSEqEdw/Thfhy2+MCYAKlLbSAHN3KblOeYrYuOqm00c3hYhy3nhn KIkmw0NDmJOB14eg7QUCCXrJMDSyBiI4W3k3KHLl27tGDEgXoRMPQAB+4HV+1MZy3iy9 xKWwP3MRIxdUVJn7gpz1MOuQAOLFrhs2H1gT46qutZj/Rd+X0sPUixVh7yqwzZ5UFlr/ E3g8QxY3zr1gB8a3AvptR9g8HfncwcEf57w4duijjkjw4zRGzgboJRmPGSQFguRzMMZY Q3R2srRLjIWuLj3NYpD45p7U6dDhSSbMZbWrm22/3iPIvj92XAWXNNNQRhbfdQfzmmE8 w1JQ== X-Gm-Message-State: ACrzQf3vjPd2swKmUEugCotmQmThY8WE7F2unUsVnfS6j+75owSWv50O JYg5fvNIITtK6KxXjnD8l49Hh+pS+HpepT3/b9p3stF6pkfrSeRlnHtiZoGGQm4MWkisFfLExXl rQllvasqYQ7YeLwB8vA6WrYRX X-Received: by 2002:a05:622a:180d:b0:35b:d283:7e65 with SMTP id t13-20020a05622a180d00b0035bd2837e65mr16743093qtc.106.1664817093068; Mon, 03 Oct 2022 10:11:33 -0700 (PDT) X-Received: by 2002:a05:622a:180d:b0:35b:d283:7e65 with SMTP id t13-20020a05622a180d00b0035bd2837e65mr16743073qtc.106.1664817092858; Mon, 03 Oct 2022 10:11:32 -0700 (PDT) Received: from localhost (pool-100-0-210-47.bstnma.fios.verizon.net. [100.0.210.47]) by smtp.gmail.com with ESMTPSA id x22-20020a05620a449600b006cf3592cc20sm12155356qkp.55.2022.10.03.10.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 10:11:32 -0700 (PDT) From: Eric Chanudet To: Andy Gross , Bjorn Andersson , Manivannan Sadhasivam , Jassi Brar , Sebastian Andrzej Siewior Cc: linux-arm-msm@vger.kernel.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Chanudet Subject: [PATCH] mailbox: qcom-ipcc: flag IRQ NO_THREAD Date: Mon, 3 Oct 2022 13:08:49 -0400 Message-Id: <20221003170849.383005-1-echanude@redhat.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 PREEMPT_RT forces qcom-ipcc's handler to be threaded with interrupts enabled, which triggers a warning in __handle_irq_event_percpu(): irq 173 handler irq_default_primary_handler+0x0/0x10 enabled interrupts WARNING: CPU: 0 PID: 77 at kernel/irq/handle.c:161 __handle_irq_event_percpu+0x4c4/0x4d0 Mark it IRQF_NO_THREAD to avoid running the handler in a threaded context with threadirqs or PREEMPT_RT enabled. Signed-off-by: Eric Chanudet --- drivers/mailbox/qcom-ipcc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-ipcc.c b/drivers/mailbox/qcom-ipcc.c index 31d58b7d55fe..7e27acf6c0cc 100644 --- a/drivers/mailbox/qcom-ipcc.c +++ b/drivers/mailbox/qcom-ipcc.c @@ -308,7 +308,8 @@ static int qcom_ipcc_probe(struct platform_device *pdev) goto err_mbox; ret = devm_request_irq(&pdev->dev, ipcc->irq, qcom_ipcc_irq_fn, - IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND, name, ipcc); + IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND | + IRQF_NO_THREAD, name, ipcc); if (ret < 0) { dev_err(&pdev->dev, "Failed to register the irq: %d\n", ret); goto err_req_irq; -- 2.37.3