From patchwork Fri Jul 16 10:21:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 478410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E97DC07E95 for ; Fri, 16 Jul 2021 10:23:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C45E613F8 for ; Fri, 16 Jul 2021 10:23:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C45E613F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id EC5321655; Fri, 16 Jul 2021 12:22:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EC5321655 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1626431011; bh=u6pTqJtRQc+07hQpdT9SemJSmn2+X4cloH2FkYIkL9s=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=CIqLnsyqL+2nZOTQdO/J+Y2QqAg+Rsa54HT0cTcJNyN9agVYr8Zt0+s6eUiNP380T mlw1Iov1Ld/uQcmbFMeN6YmTwak4PLnao2V+j6c7gEHv4pJLDA7Cs+Y99TsLoowKaD oJa0iD3QAQo/Ie2acXWlGrIWi2m87PgjBlUi5VCM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 85AF9F80253; Fri, 16 Jul 2021 12:22:40 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 233A4F8025B; Fri, 16 Jul 2021 12:22:39 +0200 (CEST) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C2443F8013C for ; Fri, 16 Jul 2021 12:22:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C2443F8013C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AWkE/523" Received: by mail-wm1-x32b.google.com with SMTP id y21-20020a7bc1950000b02902161fccabf1so7878647wmi.2 for ; Fri, 16 Jul 2021 03:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LPLjK0/F2QBKjF46wFtmvCRgoQO/Uosrsnmy5GRIu/8=; b=AWkE/523G18vB7RHC1qa30lulwYkMTm7IbLwlGpft2WNWQikypRT/cgwCl8b1IKHIA 4gjTdpjLA0ITiCGPqEciGnQqSQAwVmGRVNU3Z12kbzJZXyuHDtLsz60Xp7zQniRHufWa 9SnyevkCf/LB8umJnVbhbsXx9KMJyzZ8KLmIVV1fwMwvnWbpD7PCfThTIaRbUy3DHBk+ NvdyY7/1K94Ju1x4AOJAh9SKIOokv+B8ONdmJu12NRhV2SE3rM4ld8f5e8+SGuNMhHR3 jbsAaLdmOcqcK7BHjPp+ShUCb5q5AZ/dwH3mad8pe8TsVXHZ1lFEQSoPmVFZCvhJtQPn oDeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LPLjK0/F2QBKjF46wFtmvCRgoQO/Uosrsnmy5GRIu/8=; b=QBRzWVpyHFwYuT3HVYjSvy8PvHK4tvBhgIkOSw9DHk1JmojX3969F181B3VuGZCOwS 2Xi70+0DAEmaO+pEotPc0njKGhNpfP+goyAvDeTBdAi1AqtQ7rYUm+/1JoBh6E96bWt5 kD6suWhgqZulJ+tM0y7PfR5Qp+4z5QLCmn4W0fXrhPg1z3LGKORKfqvVx4HOY04EPzkl BlL3R2qdvf0r3Bk/xymNlD2WSozhpoa8rBXA/Au2rXEHZWQcj/gRF3ECkhcN3b/kHarR Ao0+Ke11SDN0CaWPelBtLZUcQkBIGxqi8urT/D0VhEg6WPj8DiAgF3AU+uj3SIXKWShX E18A== X-Gm-Message-State: AOAM532mvdE+QL4l3WnQaC15S7uoVzwpwchvinAJ8MnE2RRvhX3iUKum DIbBDA7L4gfJQ6rAItPmCA1jog== X-Google-Smtp-Source: ABdhPJypvjrsZvABpnRr0qCx3Bp670YdaFauU8/HiRQm0vjzicd1v3nn5OFLoV7JZmT6HQYOSjU5eA== X-Received: by 2002:a05:600c:4f15:: with SMTP id l21mr9666333wmq.72.1626430955528; Fri, 16 Jul 2021 03:22:35 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id g15sm7421796wmh.44.2021.07.16.03.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 03:22:34 -0700 (PDT) From: Srinivas Kandagatla To: srini@kernel.org Subject: [PATCH 0/4] slimbus: ngd: fix runtime pm issues. Date: Fri, 16 Jul 2021 11:21:19 +0100 Message-Id: <20210716102123.26861-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This patchset fixes various runtime pm issues while testing pm runtime on NGD slimbus controller. During testing it was found that pm refcount was going negative and sometime transactions are timeout after suspend resume. These 4 patches fixes those issues and now NGD enters in supend state and resumes properly without any data timeouts. Thanks, srini Srinivas Kandagatla (4): slimbus: messaging: start transaction ids from 1 instead of zero slimbus: messaging: check for valid transaction id slimbus: ngd: set correct device for pm slimbus: ngd: reset dma setup during runtime pm drivers/slimbus/messaging.c | 7 ++++--- drivers/slimbus/qcom-ngd-ctrl.c | 22 +++++++++++++--------- 2 files changed, 17 insertions(+), 12 deletions(-)