Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7423528ybi; Mon, 22 Jul 2019 12:57:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg4NL4XpShy6BShROtTlC6i3bqC7grSfW1h1uyjRBDISw+urBRrbZ0H1ATSI5544upK0nF X-Received: by 2002:a17:90a:db08:: with SMTP id g8mr76021977pjv.39.1563825436718; Mon, 22 Jul 2019 12:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563825436; cv=none; d=google.com; s=arc-20160816; b=xYcNR3AuOUAf4qFbaZHQnDMatG6AAr/9U7WFo4Cw62g3tl4JwWmA8LNnoEOKxT6q0e PNVGDBkfKmiw3zBN43OLWfzIc8bhrrojfCR0lAfMm5JXrsvQTeISg0bbT+XR8s0bZ9rS caaZIl3Hb8Mx4DwyLx/b1zJUR5YlP5oBlBw8LQjcJbQbKfBMorqSr/uTsT4zIl8Lxx6R KMcz/DWaIkBCgyopvjWbBvHtFU5O1U9AMFfkNlBtUNzSIZGFHHt427hPGKlMsRrQMvKc SMwSXoOeT4U1IHy3O+uDsi17qp5X12hu5EtnseSIoBJn6Rgx92KfaLbPmuDTHeDe1619 IhuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature; bh=rBf/mqWfKN7U2zd3m4iikSbifwekc4iKWTNDZ8h6ew0=; b=I4kg/Elz86FOG/R9SE58Q0EFwkoD7C3TYxK26lJU9+EZX8f0mqkVQpgGZMGk6Wn+se aXxYSZ5TBfFgo2bCw8e4A+vBI4aReVflAqN7bsPAeGyIa12f+mSQcK2QICbtqTyMI95U C8nF1KEiRLRhT+uPIxAAKw9t9Iy453TkIeiC32XNrigtrLYh9ceKl4U3OhAuhfyNFJV/ 1tCwhUFpj4I8ZW75BJTr6Ptw21Wm3GZrtfinkdalTRNLsqug7cnjfCZ5FgUWGwbiprfR nRomO0duerMMXdlSb0E89Hjzv2tExUNiQ+vvc3uHYKWDPuo3KGRTUKfNpzyYOnB+4F48 pdVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YIEEIbEn; dkim=pass header.i=@codeaurora.org header.s=default header.b=CX2aHSFO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25si11086339pfn.56.2019.07.22.12.57.00; Mon, 22 Jul 2019 12:57:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YIEEIbEn; dkim=pass header.i=@codeaurora.org header.s=default header.b=CX2aHSFO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729751AbfGVPvU (ORCPT + 99 others); Mon, 22 Jul 2019 11:51:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54366 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfGVPvU (ORCPT ); Mon, 22 Jul 2019 11:51:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E8BFA61C0D; Mon, 22 Jul 2019 15:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563810679; bh=rBf/mqWfKN7U2zd3m4iikSbifwekc4iKWTNDZ8h6ew0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YIEEIbEnjVapuouGfIp/VVyD3UWeXPGlmGmS7uduHj1ndwiy57aLDm33fA7+E7G2H /VgNuLDrHmbP0Qc7gwbqRYceNSU9WLkCYjjUYRoN+acgr2ABfp5PRy1LGPWDvPAJSm X0ZQ4hZV18RLKgPnHY1A5aD9GBOkEdm8dTBzmAJs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 726F161A49; Mon, 22 Jul 2019 15:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563810677; bh=rBf/mqWfKN7U2zd3m4iikSbifwekc4iKWTNDZ8h6ew0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CX2aHSFOyGUW+vWd/GPyfFBjHoOuvFbBvyUxT4wbTKtp9VHfWQBD5h0useAo9o9xz ZUNntl2J84Wgkrc9WLOp9jYHAAuPQWH9dxvAZRuyChSNYqUjm57TKOmFzEznbkkItR MeJ/DLLLU86CkmJMxnaWOTE6/sJthp7Q0ZFTlcdY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 726F161A49 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Mon, 22 Jul 2019 09:51:16 -0600 From: Lina Iyer To: Stephen Boyd Cc: andy.gross@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mkshah@codeaurora.org Subject: Re: [PATCH 2/2] drivers: qcom: rpmh-rsc: fix read back of trigger register Message-ID: <20190722155116.GF25567@codeaurora.org> References: <20190701152907.16407-1-ilina@codeaurora.org> <20190701152907.16407-2-ilina@codeaurora.org> <5d320a79.1c69fb81.17c57.b9ba@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <5d320a79.1c69fb81.17c57.b9ba@mx.google.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 19 2019 at 12:22 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2019-07-01 08:29:07) >> When triggering a TCS to send its contents, reading back the trigger >> value may return an incorrect value. That is because, writing the >> trigger may raise an interrupt which could be handled immediately and >> the trigger value could be reset in the interrupt handler. By doing a >> read back we may end up spinning waiting for the value we wrote. > >Doesn't this need to be squashed into the patch that gets rid of the >irqs disabled state of this code? It sounds an awful lot like this >problem only happens now because the previous patch removed the >irqsave/irqrestore code around this function. > True. Could be rolled into that fix. --Lina