mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stjepan Poljak <stjepan.poljak@gmail.com>
To: Jayant Shekhar <jayant.shekhar@oss.qualcomm.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Dmitry Baryshkov" <lumag@kernel.org>,
	"Flemin Jose" <flemin.jose@oss.qualcomm.com>,
	linux-arm-msm@vger.kernel.org, virtualization@lists.linux.dev,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] virtio: Add Qualcomm VirtIO transport wrapper
Date: Fri, 27 Nov 2026 14:20:27 +0100	[thread overview]
Message-ID: <awmAScxDZqR8GRy5@gmail.com> (raw)
In-Reply-To: <20261126-jshekhar-qcom-virtio-dcp-v1-3-7b49bda74916@oss.qualcomm.com>

On Thu, Nov 26, 2026 at 11:54:01AM +0530, Jayant Shekhar wrote:
[...]
> +static int dcp_virtio_transport_suspend(struct device *dev)
> +{
[...]
> +	ret = virtio_device_freeze(&transport->mmio.vdev);
[...]
> +	ret = dcp_ipcc_enable_irq_wake(&transport->ipcc);
[...]
> +	ret = dcp_ipcc_send_power_notify(&transport->ipcc);

Hi Jayant,

I've been trying to review this patch and got a bit confused by the
.suspend implementation. Why is the notify needed here?

The rest of the code seems to imply that a power notify means "wake DCP if
needed" (e.g. "It wakes DCP during power transitions" in virtio_qcom_dcp_ipcc.c),
so how does that fit into .suspend? Does firmware treat the power notify here
differently?

[...]
> +	complete(&ipcc->power_notify_done);
> +	if (ipcc->resp_vq)
> +		vring_interrupt(0, ipcc->resp_vq);

As far as I could tell from your comments, rings from IPCC (separate from
power notify) are needed when resp queues are ready. But why if we already
have a virtio interrupt? I kind of assumed that this is what was meant in
.suspend when you enable IRQ wake, that we may need it to wake the host,
but while suspended the queues are already deleted and resp_vq is NULL?
I think this also addresses the race Sashiko reported: this seems redundant
or I don't understand this mechanism fully...

Thanks,
Stjepan

      parent reply	other threads:[~2026-11-27 13:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  6:23 [PATCH 0/3] virtio: Add Qualcomm Display Co-Processor " Jayant Shekhar
2026-11-26  6:23 ` [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport Jayant Shekhar
2026-11-26  6:24 ` [PATCH 2/3] virtio: Add vendor-specific device ID Jayant Shekhar
2026-11-26  6:27   ` Michael S. Tsirkin
2026-11-26  6:24 ` [PATCH 3/3] virtio: Add Qualcomm VirtIO transport wrapper Jayant Shekhar
2026-11-26  6:35   ` Michael S. Tsirkin
2026-11-26 10:03     ` Jayant Shekhar
2026-11-26 11:41       ` Michael S. Tsirkin
2026-11-26 12:18         ` Jayant Shekhar
2026-11-27 13:20   ` Stjepan Poljak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awmAScxDZqR8GRy5@gmail.com \
    --to=stjepan.poljak@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eperezma@redhat.com \
    --cc=flemin.jose@oss.qualcomm.com \
    --cc=jasowangio@gmail.com \
    --cc=jayant.shekhar@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=mst@redhat.com \
    --cc=robh@kernel.org \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®