All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oded Gabbay <oded.gabbay@gmail.com>
To: Joe Perches <joe@perches.com>
Cc: "Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>,
	Oded Gabbay <oded.gabbay@amd.com>,
	David Airlie <airlied@linux.ie>,
	Maling list - DRI developers  <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 03/12] drm/amdkfd: Use DECLARE_BITMAP
Date: Wed, 20 May 2015 10:32:26 +0300	[thread overview]
Message-ID: <CAFCwf11rWZ=JyZpxoJTZofk8mLJqkraaGQ2Si6btw1pWESy_Ww@mail.gmail.com> (raw)
In-Reply-To: <53663c3179d0bca26b604f7d175704d1bf26aab4.1432085659.git.joe@perches.com>

On Wed, May 20, 2015 at 4:37 AM, Joe Perches <joe@perches.com> wrote:
> Use the generic mechanism to declare a bitmap instead of unsigned long.
>
> It seems that "struct kfd_process.allocated_queue_bitmap" is unused.
> Maybe it could be deleted instead.
>
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
> index f21fcce..aba3e5d 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
> @@ -150,8 +150,7 @@ struct kfd_dev {
>
>         const struct kfd2kgd_calls *kfd2kgd;
>         struct mutex doorbell_mutex;
> -       unsigned long doorbell_available_index[DIV_ROUND_UP(
> -               KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, BITS_PER_LONG)];
> +       DECLARE_BITMAP(doorbell_available_index, KFD_MAX_NUM_OF_QUEUES_PER_PROCESS);
>
>         void *gtt_mem;
>         uint64_t gtt_start_gpu_addr;
> @@ -473,7 +472,7 @@ struct kfd_process {
>         /* Size is queue_array_size, up to MAX_PROCESS_QUEUES. */
>         struct kfd_queue **queues;
>
> -       unsigned long allocated_queue_bitmap[DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, BITS_PER_LONG)];
> +       DECLARE_BITMAP(allocated_queue_bitmap, KFD_MAX_NUM_OF_QUEUES_PER_PROCESS);
>
>         /*Is the user space process 32 bit?*/
>         bool is_32bit_user_mode;
> --
> 2.1.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

Thanks!
I indeed deleted the allocated_queue_bitmap and squashed it into your
patch. It was a residue from a very early version.
Applied to my -next branch.

Oded

  reply	other threads:[~2015-05-20  7:32 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20  1:37 [PATCH 00/12] treewide: Use DECLARE_BITMAP Joe Perches
2015-05-20  1:37 ` Joe Perches
2015-05-20  1:37 ` [PATCH 01/12] ARM: mach-imx: iomux-imx31: " Joe Perches
2015-05-20  1:37   ` Joe Perches
2015-05-20  6:50   ` Uwe Kleine-König
2015-05-20  6:50     ` Uwe Kleine-König
2015-05-21  1:09   ` Shawn Guo
2015-05-21  1:09     ` Shawn Guo
2015-05-20  1:37 ` [PATCH 02/12] dmaengine: rcar-dmac: " Joe Perches
2015-05-25 17:12   ` Vinod Koul
2015-05-20  1:37 ` [PATCH 03/12] drm/amdkfd: " Joe Perches
2015-05-20  7:32   ` Oded Gabbay [this message]
2015-05-20  7:32     ` Oded Gabbay
2015-05-20  1:37 ` [PATCH 04/12] drm/radeon: " Joe Perches
2015-05-20 16:45   ` Alex Deucher
2015-05-20 16:45     ` Alex Deucher
2015-05-20  1:37 ` [PATCH 05/12] IB/ehca: " Joe Perches
2015-05-20  1:37 ` [PATCH 06/12] bcache: " Joe Perches
2015-05-20  1:37 ` [PATCH 07/12] spider_net: " Joe Perches
2015-05-21 21:18   ` David Miller
2015-05-20  1:37 ` [PATCH 08/12] s390/sclp: " Joe Perches
2015-05-20  7:03   ` Heiko Carstens
2015-05-20  1:37 ` [PATCH 09/12] [SCSI] qla4xxx: " Joe Perches
2015-05-20 13:04   ` Nilesh Javali
2015-05-20 13:04     ` Nilesh Javali
2015-05-20  1:37 ` [PATCH 10/12] scsi: " Joe Perches
2015-05-20  5:03   ` Bart Van Assche
2015-05-20  5:03     ` Bart Van Assche
2015-05-20  1:37 ` [PATCH 11/12] logfs: " Joe Perches
2015-05-20  1:38 ` [PATCH 12/12] sunrpc: " Joe Perches
     [not found] ` <OF4147CCA9.838D5302-ONC1257E4B.000904D1-C1257E4B.000904DB@de.ibm.com>
2015-05-20  1:50   ` [possible PATCH -next] MAINTAINERS: Jens Axboe has changed email address Joe Perches
2015-05-20  3:48     ` Jens Axboe
2015-05-20  3:57       ` Joe Perches
2015-05-20 14:13         ` Jens Axboe

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='CAFCwf11rWZ=JyZpxoJTZofk8mLJqkraaGQ2Si6btw1pWESy_Ww@mail.gmail.com' \
    --to=oded.gabbay@gmail.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oded.gabbay@amd.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.