Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1801911pxb; Wed, 9 Feb 2022 04:59:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKIH5q64ym6R0YfhOvmhwRt5CwoelOSguo4T9ujV20Kp8+H5AosJO5BF+gKEvPZ4lgssw7 X-Received: by 2002:a63:e94e:: with SMTP id q14mr1796816pgj.376.1644411556927; Wed, 09 Feb 2022 04:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411556; cv=none; d=google.com; s=arc-20160816; b=q1ahKtrkWlU3RXYkRm4S/uPJhxlVx/lMToyL8HnleJfenkyHvKg2O22/2eEBP7zWyt yGkdtJgM5uErYqRCYvYSMOXqvS5FlYNEu6K1yUGybgN/36NxTSVUwwPJGwZ0LQ9SNb5f aqKj/GH/soNARdJA0b7eezJvq6r4PncqZPZptIJz8TBGs+myg+ljoyUYYRsxHG/5megn JWuZZx1fBLLmnJduAI84Itc3jYKujyIAhxPmgVRK7QcmCgqYKsNAyaRVUr+9bv/pEEjB R3ovOp/0qWRD9lfCYQyx8URhNBBYUEAXKQ0bbnA7aAdyle9OhHHuC7fayNaR4ho9glKQ 8iKg== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=3E/k9hHBNfXwsD5JScD3Hm1owmhXeuhCGouRaTwikqE=; b=YWfaL5WUVq1BmJKTWZgX7foXmEEUKoOZASopwGFTPrfl7kZn/A3OJmiyh4pKa+rqmX F7bXmHEImNCx0ZunkQuWrWl3LT52dEsv/ClgwnIzWDruF3LoD84JvkdD6SMXndP88HCA IXZQqSrJHDm8PoSQx+FQ+74H1c3MTiRo6GQYjDl9uiVjSY9RSxjvXGwBRs+MAzLORbZ4 Dc+JyWO2D+5qqtq945o3qlNNgk6jQ2KK70L4gWg+ar5guHkVeomdu9VNHjxnQ0xgR7eQ JjTKUNxJksty+XjO0VDMzbhiPAxOU7OWpNVBuH8QFkmLA71aoBDDffV6KVEb6zhh0YDs FFZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Zk3fcnUi; 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=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l70si3619801pge.800.2022.02.09.04.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:59:16 -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=@quicinc.com header.s=qcdkim header.b=Zk3fcnUi; 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=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E1DFAC1DC5FB; Wed, 9 Feb 2022 02:33:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234568AbiBIIrb (ORCPT + 99 others); Wed, 9 Feb 2022 03:47:31 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:52056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233529AbiBIIra (ORCPT ); Wed, 9 Feb 2022 03:47:30 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D38CE00E585; Wed, 9 Feb 2022 00:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644396443; x=1675932443; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=3E/k9hHBNfXwsD5JScD3Hm1owmhXeuhCGouRaTwikqE=; b=Zk3fcnUiysMH58XvdL1/h5RmYmpE45coU6tuBbcmzKBNkc7b+Tl/9Kyk HJKnMnx1rtuTnbfWJWxvhG07cA1dfJNAbbSnLAX7L49SOkeSD6Ys5Ilsk /NGAuLJld7SVaZu2Bn2J8ooG1L6Ur3HHf5OJyd7BeCa9tLPMg/ax9kOte 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 09 Feb 2022 00:41:20 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2022 00:41:20 -0800 Received: from [10.216.42.92] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 9 Feb 2022 00:41:17 -0800 Message-ID: Date: Wed, 9 Feb 2022 14:11:13 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v2] regmap-irq: Use regmap_irq_update_bits instead of regmap_write Content-Language: en-US To: Marek Szyprowski , Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" , , Krzysztof Kozlowski , 'Linux Samsung SOC' References: <20220119142953.1804-1-quic_pkumpatl@quicinc.com> <39f1b598-58ca-1e3d-3065-8dd692ee7c9f@samsung.com> From: Prasad Kumpatla In-Reply-To: <39f1b598-58ca-1e3d-3065-8dd692ee7c9f@samsung.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) 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 2/8/2022 5:59 PM, Marek Szyprowski wrote: > There is something wrong with this patch. Since it landed in linux-next > (20220204) I get an interrupt storm on two of my test devices: > > 1. ARM 32bit Exynos4412-based Trats2 ("wm8994-codec wm8994-codec: FIFO > error" message) > > 2. ARM 64bit Exynos5433-based TM2e ("arizona spi1.0: Mixer dropped > sample" message) > > Definitely the interrupts are not acknowledged properly. Once I find > some spare time, I will check it further which regmap configuration > triggers the issue, but it is definitely related to this patch. > Reverting it on top of current linux-next fixes the issue. Change is needed to handle the interrupt ack properly to clear the ack. I observed that the regmap_irq_update_bits() writes the register only if it finds a difference b/w existing reg value to update reg value. This may be causing the interrupt storm issue mentioned above. Setting the mask_writeonly flag to 1, to force write the register may resolve the interrupt storm issue. --Prasad