Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2185101rwn; Fri, 9 Sep 2022 09:39:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6w/tuXaMxdF/78lTPBUOq5L20OSaKbBR9E8yqT738i0rMu2fLUSzxpDM4Td04z1Rz4X6VH X-Received: by 2002:a05:6402:34c6:b0:43d:8cea:76c0 with SMTP id w6-20020a05640234c600b0043d8cea76c0mr12736360edc.268.1662741561459; Fri, 09 Sep 2022 09:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662741561; cv=none; d=google.com; s=arc-20160816; b=LEEBA0RIjw/m3qXzbTmJnDFqage6Br77pzeZzYEHCHkv68WBXKj+UynfD3a6wSX2wo qW/63Tz7tlIBnNgZpcHiKMFyuumyYIdn0OzZTgW8Ykm14IxYnx3rS9hNF9IhOqkEgee+ iLiXBcbcwqVe+rDFHyhMUpDxYHkSfPj/Nl8HRH4pISgk8iHWWaiQgDFB43Wr0eROXidC 9B37370kWnHcJ6gkfRbkdKZWDP9IJeqLgdIn7OS6MLFNpfQkAhuuMptDWiKn5v3j1WR9 0CXpiSn8OrUTuRpKKwg6SfgYfcdJc3Qq2OiFeicSUpR+gIK7dQzIZ4E8frs9dz5Odis+ Og4A== 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=QWVzTB7DhyDS1w2QS4cDTPYpzzqRPNqjM1zAYKWvkqk=; b=LU0SzfzFU4gfYxBOHuH0DzUWFEZfzGU8vdUGXnJi/S8NAAeoGUbPLLJ1DhF4vOlF61 vWPxMUtLyi9HVEjI/flx687TxuhWReboYc+PTQbt0m4OgYvVcLGqU/Aw3XKqq4wZKTq9 l5ElOy8AFubXNmB8F6z08lKPvrsrsJjeFQPWXrMLj4trVdDgAqKOJELbAnmnHVQl/Uhb Xs8KDQ259bzE/pyoFgC/Rt+wi6p3W11M9UIb+++Kgkf/uqHASOR8cLCKPQN1YWzD1fwM vMqE15IJuc/VCEijgKc2jpz4kKl8BWOOlZiVqPT3nisOQQIzal9SzWLbzeO0Qxu3Nsi9 gaEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ECj37Hf/"; 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 hd40-20020a17090796a800b007306ac0faa0si290941ejc.615.2022.09.09.09.38.54; Fri, 09 Sep 2022 09:39:21 -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="ECj37Hf/"; 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 S230143AbiIIQWb (ORCPT + 99 others); Fri, 9 Sep 2022 12:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbiIIQWa (ORCPT ); Fri, 9 Sep 2022 12:22:30 -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 6F51113462D for ; Fri, 9 Sep 2022 09:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662740548; 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=QWVzTB7DhyDS1w2QS4cDTPYpzzqRPNqjM1zAYKWvkqk=; b=ECj37Hf/X1ppQ9LAtb1RxTiTURgThhUY48sAkgcPwXLse3FwUc5R+sOWh6iC4BERaVfKej 4d5HPfbg54Y7qzR1NFfPr8Nb0FbLS71drXopD9OelnjptvQfVteeQ6eTFVCpP7RxVg6voM lZ/jueW9JnP2wTIdkJIhufxmm5Hsjp4= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-294-bh4Z4X7DO5mob9VYnmqsKA-1; Fri, 09 Sep 2022 12:22:25 -0400 X-MC-Unique: bh4Z4X7DO5mob9VYnmqsKA-1 Received: by mail-qt1-f200.google.com with SMTP id ci6-20020a05622a260600b0034370b6f5d6so1898255qtb.14 for ; Fri, 09 Sep 2022 09:22:25 -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=QWVzTB7DhyDS1w2QS4cDTPYpzzqRPNqjM1zAYKWvkqk=; b=TJsB6W2TwxWZkZdgESACEonIhifiW97ai+Mgx1n0BXMG4Y4Mx8sWeTvGDgs4fiHTuh FwYmMBHn6yhqFwtF29mJu5ddjtVRPUyjPjZ2f0ODg7Jno436ABMPrsiPURSHVDeRTAGJ P4L6XHungLX/tQGgpLv9KuJw0000BgDLQXgFoZaYDoa3iVp3rM+t1vf+rdME4g3JEHud XRfHzzU9Rx5Nmhsbvr7UPxz9md9VK/sDaLy2k0wkS4HYZoCSLZk5DyORKG2SNNoo4APe j3h2mKmoYoqK5r+PrMEW9UfcoKvTU8V8QW1oiY3+Xz8aEKMnlp8vEXpGJhmD5XTvlWaf nSaw== X-Gm-Message-State: ACgBeo2NewOQNdslDqNY9yQqtjrhrkxO4GkhYLxVRI8LopI1fHrdp6dK 5f09wMTuCiz4izFeBuBHvhQagPPJei/neb6NpzI6bKgft8QfI8KB7vmy4KjVw7Hz5E1r77M5qjX BbcO6cGp7SvCI2BActVMuwwPT X-Received: by 2002:ac8:5753:0:b0:344:7fb3:3fa4 with SMTP id 19-20020ac85753000000b003447fb33fa4mr13376485qtx.504.1662740544678; Fri, 09 Sep 2022 09:22:24 -0700 (PDT) X-Received: by 2002:ac8:5753:0:b0:344:7fb3:3fa4 with SMTP id 19-20020ac85753000000b003447fb33fa4mr13376467qtx.504.1662740544446; Fri, 09 Sep 2022 09:22:24 -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 g15-20020ac87f4f000000b00342e86b3bdasm833619qtk.12.2022.09.09.09.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 09:22:23 -0700 (PDT) From: Eric Chanudet To: Andy Gross , Bjorn Andersson , Manivannan Sadhasivam , Jassi Brar 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: Use generic_handle_irq_safe() Date: Fri, 9 Sep 2022 12:20:43 -0400 Message-Id: <20220909162043.2734873-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.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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(). Use generic_handle_irq_safe() that can be called with or without interrupts enabled instead. Signed-off-by: Eric Chanudet --- drivers/mailbox/qcom-ipcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-ipcc.c b/drivers/mailbox/qcom-ipcc.c index 31d58b7d55fe..be803f324a33 100644 --- a/drivers/mailbox/qcom-ipcc.c +++ b/drivers/mailbox/qcom-ipcc.c @@ -82,7 +82,7 @@ static irqreturn_t qcom_ipcc_irq_fn(int irq, void *data) virq = irq_find_mapping(ipcc->irq_domain, hwirq); writel(hwirq, ipcc->base + IPCC_REG_RECV_SIGNAL_CLEAR); - generic_handle_irq(virq); + generic_handle_irq_safe(virq); } return IRQ_HANDLED; -- 2.37.3