lkml.org 
[lkml]   [2014]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 57/83] hsa/radeon: Eliminate warnings in compilation
    Date
    Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
    ---
    drivers/gpu/hsa/radeon/kfd_chardev.c | 6 +++---
    drivers/gpu/hsa/radeon/kfd_kernel_queue.c | 4 ++--
    drivers/gpu/hsa/radeon/kfd_queue.c | 2 +-
    3 files changed, 6 insertions(+), 6 deletions(-)

    diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa/radeon/kfd_chardev.c
    index 9a77332..80b702e 100644
    --- a/drivers/gpu/hsa/radeon/kfd_chardev.c
    +++ b/drivers/gpu/hsa/radeon/kfd_chardev.c
    @@ -114,8 +114,8 @@ kfd_open(struct inode *inode, struct file *filep)

    process->is_32bit_user_mode = is_compat_task();

    - dev_info(kfd_device, "process %d opened, compat mode (32 bit) - %d\n",
    - process->pasid, process->is_32bit_user_mode);
    + dev_dbg(kfd_device, "process %d opened, compat mode (32 bit) - %d\n",
    + process->pasid, process->is_32bit_user_mode);

    kfd_init_apertures(process);

    @@ -149,7 +149,7 @@ kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, void __user *a
    pr_debug("%s Arguments: Queue Percentage (%d, %d)\n"
    "Queue Priority (%d, %d)\n"
    "Queue Address (0x%llX, 0x%llX)\n"
    - "Queue Size (%u64, %ll)\n",
    + "Queue Size (%llX, %u)\n",
    __func__,
    q_properties.queue_percent, args.queue_percentage,
    q_properties.priority, args.queue_priority,
    diff --git a/drivers/gpu/hsa/radeon/kfd_kernel_queue.c b/drivers/gpu/hsa/radeon/kfd_kernel_queue.c
    index aa64693e..25528b3 100644
    --- a/drivers/gpu/hsa/radeon/kfd_kernel_queue.c
    +++ b/drivers/gpu/hsa/radeon/kfd_kernel_queue.c
    @@ -89,8 +89,8 @@ static bool initialize(struct kernel_queue *kq, struct kfd_dev *dev,
    prop.type = type;
    prop.vmid = 0;
    prop.queue_address = kq->pq_gpu_addr;
    - prop.read_ptr = kq->rptr_gpu_addr;
    - prop.write_ptr = kq->wptr_gpu_addr;
    + prop.read_ptr = (qptr_t *) kq->rptr_gpu_addr;
    + prop.write_ptr = (qptr_t *) kq->wptr_gpu_addr;

    if (init_queue(&kq->queue, prop) != 0)
    goto err_init_queue;
    diff --git a/drivers/gpu/hsa/radeon/kfd_queue.c b/drivers/gpu/hsa/radeon/kfd_queue.c
    index 2d22cc1..646b6d1 100644
    --- a/drivers/gpu/hsa/radeon/kfd_queue.c
    +++ b/drivers/gpu/hsa/radeon/kfd_queue.c
    @@ -67,7 +67,7 @@ void print_queue(struct queue *q)
    "Queue Doorbell Pointer: 0x%p\n"
    "Queue Doorbell Offset: %u\n"
    "Queue MQD Address: 0x%p\n"
    - "Queue MQD Gart: 0x%p\n"
    + "Queue MQD Gart: 0x%llX\n"
    "Queue Process Address: 0x%p\n"
    "Queue Device Address: 0x%p\n",
    q->properties.type,
    --
    1.9.1


    \
     
     \ /
      Last update: 2014-07-11 01:41    [W:4.085 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site