From: Seung-Woo Kim <sw0312.kim@samsung.com>
To: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Cc: Inki Dae <inki.dae@samsung.com>,
Thierry Reding <thierry.reding@gmail.com>,
linux-samsung-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org,
Seung-Woo Kim <sw0312.kim@samsung.com>
Subject: Re: drm: exynos: mixer: fix using usleep() in atomic context
Date: Thu, 22 Jan 2015 16:47:25 +0900 [thread overview]
Message-ID: <54C0AB0D.9090209@samsung.com> (raw)
In-Reply-To: <54C02C4F.4080307@math.uni-bielefeld.de>
Hello,
On 2015년 01월 22일 07:46, Tobias Jakobi wrote:
> Hello!
>
>
> Inki Dae wrote:
>> The use of spin lock, reg_slock, has been used for a long time and we
>> hadn't some cleanups to spin lock codes so far. The spin lock is also
>> used in here and there of mixer driver. And at least, it seems that
>> the use of spin lock isn't required in mixer_win_reset. I don't see
>> any atomic contexts in mixer module except interrupt handler.
>>
>> To Seung-Woo,
>> I know that you referred to mixer codes of v4l2 based mixer driver. So
>> was the spin lock used in origin v4l2 driver? or Is there any reason
>> that you used the spin lock?
The spinlock usage was originated from Tomasz Stanislawski's s5p-tv.
>>
>> Anyway, we will have some testing to check hdmi and mixer drivers
>> without spin lock. So we will remove or replace it with mutex if
>> needed.
>>
>> Thanks,
>> Inki Dae
>
> So it's some weeks later and as far as I can see there has been no
> changes to the spinlock usage. Wouldn't it be better to apply this patch
> _now_ (since the use of 'usleep_range' is just plain wrong while under
> spinlock). When the spinlock setup gets cleaned up later, then we can
> always change back to 'usleep_range' again.
>
> Any thoughts?
In s5p-tv, same patch is already applied by Tomasz, so I agree to apply
this patch also.
Best Regards,
- Seung-Woo Kim
>
> With best wishes,
> Tobias
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
--
Seung-Woo Kim
Samsung Software R&D Center
--
next prev parent reply other threads:[~2015-01-22 7:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-30 0:35 drm/exynos: some small forgotten patch tjakobi
2014-11-30 0:35 ` drm: exynos: mixer: fix using usleep() in atomic context tjakobi
2014-12-01 15:54 ` Thierry Reding
2014-12-01 16:16 ` Tobias Jakobi
2014-12-17 7:54 ` Thierry Reding
2014-12-21 15:04 ` Inki Dae
2015-01-21 22:46 ` Tobias Jakobi
2015-01-22 7:47 ` Seung-Woo Kim [this message]
2014-12-09 12:09 ` drm/exynos: some small forgotten patch Inki Dae
2014-12-09 15:36 ` Tobias Jakobi
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=54C0AB0D.9090209@samsung.com \
--to=sw0312.kim@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=thierry.reding@gmail.com \
--cc=tjakobi@math.uni-bielefeld.de \
/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