From: "Christian König" <christian.koenig@amd.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>,
Alex Deucher <alexander.deucher@amd.com>,
David Airlie <airlied@linux.ie>
Cc: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
"Tejun Heo" <tj@kernel.org>
Subject: Re: [PATCH v2] drm/radeon: Remove deprecated create_singlethread_workqueue
Date: Mon, 18 Jul 2016 15:21:21 +0200 [thread overview]
Message-ID: <578CD7D1.8000308@amd.com> (raw)
In-Reply-To: <20160716113044.GA18061@Karyakshetra>
Am 16.07.2016 um 13:30 schrieb Bhaktipriya Shridhar:
> alloc_workqueue replaces deprecated create_singlethread_workqueue().
>
> Each hardware CRTC has a single flip work queue.
> When a radeon_flip_work_func item is queued, it needs to be executed
> ASAP because even a slight delay may cause the flip to be delayed by
> one refresh cycle.
>
> Hence, a dedicated workqueue with WQ_HIGHPRI set, has been used here
> since a delay can cause the outcome to miss the refresh cycle.
>
> Since there are only a fixed number of work items, explicit concurrency
> limit is unnecessary here.
>
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> Changes in v2:
> -Used a dedicated work queue with WQ_HIGHPRI
>
> drivers/gpu/drm/radeon/radeon_display.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
> index 6a41b49..64b246e 100644
> --- a/drivers/gpu/drm/radeon/radeon_display.c
> +++ b/drivers/gpu/drm/radeon/radeon_display.c
> @@ -711,7 +711,7 @@ static void radeon_crtc_init(struct drm_device *dev, int index)
>
> drm_mode_crtc_set_gamma_size(&radeon_crtc->base, 256);
> radeon_crtc->crtc_id = index;
> - radeon_crtc->flip_queue = create_singlethread_workqueue("radeon-crtc");
> + radeon_crtc->flip_queue = alloc_workqueue("radeon-crtc", WQ_HIGHPRI, 0);
> rdev->mode_info.crtcs[index] = radeon_crtc;
>
> if (rdev->family >= CHIP_BONAIRE) {
> --
> 2.1.4
>
next prev parent reply other threads:[~2016-07-18 13:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 11:03 [PATCH] drm/radeon: Remove deprecated create_singlethread_workqueue Bhaktipriya Shridhar
2016-07-02 13:46 ` Tejun Heo
2016-07-04 3:58 ` Michel Dänzer
2016-07-05 21:06 ` Tejun Heo
2016-07-06 3:12 ` Michel Dänzer
2016-07-06 13:45 ` Tejun Heo
2016-07-07 3:32 ` Michel Dänzer
2016-07-07 7:43 ` Christian König
2016-07-08 5:52 ` Michel Dänzer
2016-07-12 17:52 ` Tejun Heo
2016-07-16 11:30 ` [PATCH v2] " Bhaktipriya Shridhar
2016-07-18 13:21 ` Christian König [this message]
2016-07-19 0:48 ` Tejun Heo
2016-07-28 16:14 ` Alex Deucher
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=578CD7D1.8000308@amd.com \
--to=christian.koenig@amd.com \
--cc=airlied@linux.ie \
--cc=alexander.deucher@amd.com \
--cc=bhaktipriya96@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
/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