From: Joonyoung Shim <jy0922.shim@samsung.com>
To: Daniel Kurtz <djkurtz@chromium.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/exynos: remove DRIVER_HAVE_IRQ feature
Date: Fri, 21 Mar 2014 16:26:20 +0900 [thread overview]
Message-ID: <532BE99C.4090203@samsung.com> (raw)
In-Reply-To: <CAGS+omCihUMnK=TyW4fWM2YZZjtJRqUhLydsbLM0+Jd74W0HJg@mail.gmail.com>
On 03/21/2014 03:53 PM, Daniel Kurtz wrote:
> On Fri, Mar 21, 2014 at 2:39 PM, Joonyoung Shim <jy0922.shim@samsung.com> wrote:
>> Exynos drm driver cannot support DRIVER_HAVE_IRQ feature because it uses
>> driver specific one instead of routine of drm framework to
>> install/uninstall irq handler.
> Wouldn't that break synchronous drm_wait_vblank()?
> (drm_wait_vblank where _DRM_VBLANK_EVENT is not set in request.type)
Actually, i didn't consider above case. Then it seems to need code to
set dev->irq_enabled in exynos driver.
Thanks.
> -Dan
>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>> ---
>> drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 +--
>> drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10 ----------
>> drivers/gpu/drm/exynos/exynos_drm_vidi.c | 10 ----------
>> 3 files changed, 1 insertion(+), 22 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
>> index c204b4e..dd7d18f 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
>> @@ -291,8 +291,7 @@ static const struct file_operations exynos_drm_driver_fops = {
>> };
>>
>> static struct drm_driver exynos_drm_driver = {
>> - .driver_features = DRIVER_HAVE_IRQ | DRIVER_MODESET |
>> - DRIVER_GEM | DRIVER_PRIME,
>> + .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME,
>> .load = exynos_drm_load,
>> .unload = exynos_drm_unload,
>> .open = exynos_drm_open,
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
>> index a20440c..37455f3 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
>> @@ -715,16 +715,6 @@ out:
>> static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
>> {
>> /*
>> - * enable drm irq mode.
>> - * - with irq_enabled = true, we can use the vblank feature.
>> - *
>> - * P.S. note that we wouldn't use drm irq handler but
>> - * just specific driver own one instead because
>> - * drm framework supports only one irq handler.
>> - */
>> - drm_dev->irq_enabled = true;
>> -
>> - /*
>> * with vblank_disable_allowed = true, vblank interrupt will be disabled
>> * by drm timer once a current process gives up ownership of
>> * vblank event.(after drm_vblank_put function is called)
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
>> index ddaaedd..b4c5f95 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
>> @@ -382,16 +382,6 @@ static void vidi_fake_vblank_handler(struct work_struct *work)
>> static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
>> {
>> /*
>> - * enable drm irq mode.
>> - * - with irq_enabled = true, we can use the vblank feature.
>> - *
>> - * P.S. note that we wouldn't use drm irq handler but
>> - * just specific driver own one instead because
>> - * drm framework supports only one irq handler.
>> - */
>> - drm_dev->irq_enabled = true;
>> -
>> - /*
>> * with vblank_disable_allowed = true, vblank interrupt will be disabled
>> * by drm timer once a current process gives up ownership of
>> * vblank event.(after drm_vblank_put function is called)
>> --
>> 1.8.1.2
>>
>> _______________________________________________
>> dri-devel mailing list
>> dri-devel@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2014-03-21 7:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 6:39 [PATCH] drm/exynos: remove DRIVER_HAVE_IRQ feature Joonyoung Shim
2014-03-21 6:53 ` Daniel Kurtz
2014-03-21 7:26 ` Joonyoung Shim [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=532BE99C.4090203@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=djkurtz@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kyungmin.park@samsung.com \
--cc=sw0312.kim@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.