All of lore.kernel.org
 help / color / mirror / Atom feed
From: Inki Dae <inki.dae@samsung.com>
To: linux-fbdev@vger.kernel.org
Subject: RE: [RFC PATCH] dmabuf-sync: Introduce buffer synchronization framework
Date: Thu, 13 Jun 2013 11:25:08 +0000	[thread overview]
Message-ID: <02c201ce6828$a97bda90$fc738fb0$%dae@samsung.com> (raw)
In-Reply-To: <1371112088-15310-1-git-send-email-inki.dae@samsung.com>


> +static void dmabuf_sync_timeout_worker(struct work_struct *work)
> +{
> +	struct dmabuf_sync *sync = container_of(work, struct dmabuf_sync,
> work);
> +	struct dmabuf_sync_object *sobj;
> +
> +	mutex_lock(&sync->lock);
> +
> +	list_for_each_entry(sobj, &sync->syncs, head) {
> +		if (WARN_ON(!sobj->robj))
> +			continue;
> +
> +		printk(KERN_WARNING "%s: timeout = 0x%x [type = %d, " \
> +					"refcnt = %d, locked = %d]\n",
> +					sync->name, (u32)sobj->dmabuf,
> +					sobj->access_type,
> +
atomic_read(&sobj->robj->shared_cnt),
> +					sobj->robj->locked);
> +
> +		/* unlock only valid sync object. */
> +		if (!sobj->robj->locked)
> +			continue;
> +
> +		if (sobj->robj->shared &&
> +				atomic_read(&sobj->robj->shared_cnt) > 1) {
> +			atomic_dec(&sobj->robj->shared_cnt);
> +			continue;
> +		}
> +
> +		ww_mutex_unlock(&sobj->robj->lock);
> +
> +		if (sobj->access_type & DMA_BUF_ACCESS_READ)
> +			printk(KERN_WARNING "%s: r-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +		else
> +			printk(KERN_WARNING "%s: w-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +
> +#if defined(CONFIG_DEBUG_FS)
> +		sync_debugfs_timeout_cnt++;
> +#endif

Oops, unnecessary codes. will remove them.


WARNING: multiple messages have this Message-ID (diff)
From: inki.dae@samsung.com (Inki Dae)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] dmabuf-sync: Introduce buffer synchronization framework
Date: Thu, 13 Jun 2013 20:25:08 +0900	[thread overview]
Message-ID: <02c201ce6828$a97bda90$fc738fb0$%dae@samsung.com> (raw)
In-Reply-To: <1371112088-15310-1-git-send-email-inki.dae@samsung.com>


> +static void dmabuf_sync_timeout_worker(struct work_struct *work)
> +{
> +	struct dmabuf_sync *sync = container_of(work, struct dmabuf_sync,
> work);
> +	struct dmabuf_sync_object *sobj;
> +
> +	mutex_lock(&sync->lock);
> +
> +	list_for_each_entry(sobj, &sync->syncs, head) {
> +		if (WARN_ON(!sobj->robj))
> +			continue;
> +
> +		printk(KERN_WARNING "%s: timeout = 0x%x [type = %d, " \
> +					"refcnt = %d, locked = %d]\n",
> +					sync->name, (u32)sobj->dmabuf,
> +					sobj->access_type,
> +
atomic_read(&sobj->robj->shared_cnt),
> +					sobj->robj->locked);
> +
> +		/* unlock only valid sync object. */
> +		if (!sobj->robj->locked)
> +			continue;
> +
> +		if (sobj->robj->shared &&
> +				atomic_read(&sobj->robj->shared_cnt) > 1) {
> +			atomic_dec(&sobj->robj->shared_cnt);
> +			continue;
> +		}
> +
> +		ww_mutex_unlock(&sobj->robj->lock);
> +
> +		if (sobj->access_type & DMA_BUF_ACCESS_READ)
> +			printk(KERN_WARNING "%s: r-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +		else
> +			printk(KERN_WARNING "%s: w-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +
> +#if defined(CONFIG_DEBUG_FS)
> +		sync_debugfs_timeout_cnt++;
> +#endif

Oops, unnecessary codes. will remove them.

WARNING: multiple messages have this Message-ID (diff)
From: Inki Dae <inki.dae@samsung.com>
To: 'Inki Dae' <inki.dae@samsung.com>,
	maarten.lankhorst@canonical.com, daniel@ffwll.ch,
	robdclark@gmail.com
Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-media@vger.kernel.org, kyungmin.park@samsung.com,
	myungjoo.ham@samsung.com, yj44.cho@samsung.com
Subject: RE: [RFC PATCH] dmabuf-sync: Introduce buffer synchronization framework
Date: Thu, 13 Jun 2013 20:25:08 +0900	[thread overview]
Message-ID: <02c201ce6828$a97bda90$fc738fb0$%dae@samsung.com> (raw)
In-Reply-To: <1371112088-15310-1-git-send-email-inki.dae@samsung.com>


> +static void dmabuf_sync_timeout_worker(struct work_struct *work)
> +{
> +	struct dmabuf_sync *sync = container_of(work, struct dmabuf_sync,
> work);
> +	struct dmabuf_sync_object *sobj;
> +
> +	mutex_lock(&sync->lock);
> +
> +	list_for_each_entry(sobj, &sync->syncs, head) {
> +		if (WARN_ON(!sobj->robj))
> +			continue;
> +
> +		printk(KERN_WARNING "%s: timeout = 0x%x [type = %d, " \
> +					"refcnt = %d, locked = %d]\n",
> +					sync->name, (u32)sobj->dmabuf,
> +					sobj->access_type,
> +
atomic_read(&sobj->robj->shared_cnt),
> +					sobj->robj->locked);
> +
> +		/* unlock only valid sync object. */
> +		if (!sobj->robj->locked)
> +			continue;
> +
> +		if (sobj->robj->shared &&
> +				atomic_read(&sobj->robj->shared_cnt) > 1) {
> +			atomic_dec(&sobj->robj->shared_cnt);
> +			continue;
> +		}
> +
> +		ww_mutex_unlock(&sobj->robj->lock);
> +
> +		if (sobj->access_type & DMA_BUF_ACCESS_READ)
> +			printk(KERN_WARNING "%s: r-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +		else
> +			printk(KERN_WARNING "%s: w-unlocked = 0x%x\n",
> +					sync->name, (u32)sobj->dmabuf);
> +
> +#if defined(CONFIG_DEBUG_FS)
> +		sync_debugfs_timeout_cnt++;
> +#endif

Oops, unnecessary codes. will remove them.

  reply	other threads:[~2013-06-13 11:25 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13  8:28 [RFC PATCH] dmabuf-sync: Introduce buffer synchronization framework Inki Dae
2013-06-13  8:28 ` Inki Dae
2013-06-13  8:28 ` Inki Dae
2013-06-13 11:25 ` Inki Dae [this message]
2013-06-13 11:25   ` Inki Dae
2013-06-13 11:25   ` Inki Dae
2013-06-13 17:26 ` Russell King - ARM Linux
2013-06-13 17:26   ` Russell King - ARM Linux
2013-06-13 17:26   ` Russell King - ARM Linux
2013-06-14  2:32 ` Inki Dae
2013-06-14  2:32   ` Inki Dae
2013-06-14  2:32   ` Inki Dae
2013-06-17 11:15 ` [RFC PATCH v2] " Inki Dae
2013-06-17 11:15   ` Inki Dae
2013-06-17 11:15   ` Inki Dae
2013-06-17 11:34   ` Maarten Lankhorst
2013-06-17 11:34     ` Maarten Lankhorst
2013-06-17 11:34     ` Maarten Lankhorst
2013-06-17 13:04   ` Inki Dae
2013-06-17 13:04     ` Inki Dae
2013-06-17 13:04     ` Inki Dae
2013-06-17 13:31     ` Russell King - ARM Linux
2013-06-17 13:31       ` Russell King - ARM Linux
2013-06-17 13:31       ` Russell King - ARM Linux
2013-06-17 15:03       ` Inki Dae
2013-06-17 15:42         ` Russell King - ARM Linux
2013-06-17 15:42           ` Russell King - ARM Linux
2013-06-17 15:42           ` Russell King - ARM Linux
2013-06-17 16:01           ` Russell King - ARM Linux
2013-06-17 16:01             ` Russell King - ARM Linux
2013-06-17 16:01             ` Russell King - ARM Linux
2013-06-17 17:19           ` Inki Dae
2013-06-17 18:21             ` Russell King - ARM Linux
2013-06-17 18:21               ` Russell King - ARM Linux
2013-06-17 18:21               ` Russell King - ARM Linux
2013-06-18  7:00           ` Daniel Vetter
2013-06-18  7:00             ` Daniel Vetter
2013-06-18  7:00             ` Daniel Vetter
2013-06-18 10:46             ` Russell King - ARM Linux
2013-06-18 10:46               ` Russell King - ARM Linux
2013-06-18 10:46               ` Russell King - ARM Linux
2013-06-25  9:23               ` Daniel Vetter
2013-06-25  9:23                 ` Daniel Vetter
2013-06-25  9:23                 ` Daniel Vetter
2013-06-26 17:18                 ` Russell King - ARM Linux
2013-06-26 17:18                   ` Russell King - ARM Linux
2013-06-26 17:18                   ` Russell King - ARM Linux
2013-06-17 13:31     ` Maarten Lankhorst
2013-06-17 13:31       ` Maarten Lankhorst
2013-06-17 13:31       ` Maarten Lankhorst
2013-06-17 15:20       ` Inki Dae
2013-06-18  5:27   ` Inki Dae
2013-06-18  5:27     ` Inki Dae
2013-06-18  5:27     ` Inki Dae
2013-06-18  8:43     ` Russell King - ARM Linux
2013-06-18  8:43       ` Russell King - ARM Linux
2013-06-18  8:43       ` Russell King - ARM Linux
2013-06-18  9:04   ` Inki Dae
2013-06-18  9:04     ` Inki Dae
2013-06-18  9:04     ` Inki Dae
2013-06-18  9:38     ` Russell King - ARM Linux
2013-06-18  9:38       ` Russell King - ARM Linux
2013-06-18  9:38       ` Russell King - ARM Linux
2013-06-18  9:47     ` Lucas Stach
2013-06-18  9:47       ` Lucas Stach
2013-06-18  9:47       ` Lucas Stach
2013-06-19  5:45   ` Inki Dae
2013-06-19  5:45     ` Inki Dae
2013-06-19  5:45     ` Inki Dae
2013-06-19 10:22     ` Lucas Stach
2013-06-19 10:22       ` Lucas Stach
2013-06-19 10:22       ` Lucas Stach
2013-06-19  9:10   ` [RFC PATCH v3] " Inki Dae
2013-06-19  9:10     ` Inki Dae
2013-06-19  9:10     ` Inki Dae
2013-06-19 10:44   ` [RFC PATCH v2] " Inki Dae
2013-06-19 10:44     ` Inki Dae
2013-06-19 10:44     ` Inki Dae
2013-06-19 12:34     ` Lucas Stach
2013-06-19 12:34       ` Lucas Stach
2013-06-19 12:34       ` Lucas Stach
2013-06-19 15:10       ` Inki Dae
2013-06-19 18:29         ` Russell King - ARM Linux
2013-06-19 18:29           ` Russell King - ARM Linux
2013-06-19 18:29           ` Russell King - ARM Linux
2013-06-20  6:43   ` Inki Dae
2013-06-20  6:43     ` Inki Dae
2013-06-20  6:43     ` Inki Dae
2013-06-20  7:47     ` Lucas Stach
2013-06-20  7:47       ` Lucas Stach
2013-06-20  7:47       ` Lucas Stach
2013-06-20  8:17       ` Russell King - ARM Linux
2013-06-20  8:17         ` Russell King - ARM Linux
2013-06-20  8:17         ` Russell King - ARM Linux
2013-06-20  8:26         ` Lucas Stach
2013-06-20  8:26           ` Lucas Stach
2013-06-20  8:26           ` Lucas Stach
2013-06-20  8:24   ` Inki Dae
2013-06-20  8:24     ` Inki Dae
2013-06-20  8:24     ` Inki Dae
2013-06-20 10:11     ` Lucas Stach
2013-06-20 10:11       ` Lucas Stach
2013-06-20 10:11       ` Lucas Stach
2013-06-20 11:15   ` Inki Dae
2013-06-20 11:15     ` Inki Dae
2013-06-20 11:15     ` Inki Dae
2013-06-21  8:54     ` Lucas Stach
2013-06-21  8:54       ` Lucas Stach
2013-06-21  8:54       ` Lucas Stach
2013-06-21 11:01       ` Inki Dae
2013-06-21 12:27         ` Lucas Stach
2013-06-21 12:27           ` Lucas Stach
2013-06-21 12:27           ` Lucas Stach
2013-06-21 16:55           ` Inki Dae
2013-06-21 16:55             ` Inki Dae
2013-06-21 16:55             ` Inki Dae
2013-06-21 19:02             ` Jerome Glisse
2013-06-21 19:02               ` Jerome Glisse
2013-06-21 19:02               ` Jerome Glisse
2013-06-22  1:36               ` Inki Dae
2013-06-25  9:09               ` [RFC PATCH] " Inki Dae
2013-06-25 11:32                 ` Rob Clark
2013-06-25 11:32                   ` Rob Clark
2013-06-25 11:32                   ` Rob Clark
2013-06-25 14:17                   ` Inki Dae
2013-06-25 14:17                     ` Inki Dae
2013-06-25 14:17                     ` Inki Dae
2013-06-25 14:49                     ` Jerome Glisse
2013-06-25 14:49                       ` Jerome Glisse
2013-06-25 14:49                       ` Jerome Glisse
2013-06-26 16:06                       ` Inki Dae
2013-06-26 16:06                         ` Inki Dae
2013-06-26 16:06                         ` Inki Dae
  -- strict thread matches above, loose matches on Subject: below --
2013-08-12  9:55 About buffer sychronization mechanism and cache operation Inki Dae
2013-08-12  9:55 ` Inki Dae

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='02c201ce6828$a97bda90$fc738fb0$%dae@samsung.com' \
    --to=inki.dae@samsung.com \
    --cc=linux-fbdev@vger.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 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.