mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lizhi Hou <lizhi.hou@amd.com>
To: Jeffrey Hugo <quic_jhugo@quicinc.com>, <ogabbay@kernel.org>,
	<dri-devel@lists.freedesktop.org>
Cc: <linux-kernel@vger.kernel.org>, <min.ma@amd.com>,
	<max.zhen@amd.com>, <sonal.santan@amd.com>, <king.tam@amd.com>
Subject: Re: [PATCH V10 07/10] accel/amdxdna: Add command execution
Date: Mon, 18 Nov 2024 08:31:12 -0800	[thread overview]
Message-ID: <aabe8b73-32e0-7123-bcc7-6b6515815047@amd.com> (raw)
In-Reply-To: <749e9a1d-7bcf-0c04-41b3-e0a4b89068bd@quicinc.com>

Sure. I will fix these two and post v11 patch set.


Lizhi

On 11/17/24 12:03, Jeffrey Hugo wrote:
> On 11/12/2024 12:47 PM, Lizhi Hou wrote:
>> @@ -88,6 +91,8 @@ struct amdxdna_client {
>>       struct list_head        node;
>>       pid_t                pid;
>>       struct mutex            hwctx_lock; /* protect hwctx */
>> +    /* do NOT wait this srcu when hwctx_lock is hold */
>
> do NOT wait on this srcu when hwctx_lock is held
>
>> +    struct srcu_struct        hwctx_srcu;
>>       struct idr            hwctx_idr;
>>       struct amdxdna_dev        *xdna;
>>       struct drm_file            *filp;
>
>
> The significant problem I see currently is that this got merged -
>
> commit b2ef808786d93df36585cee42cfb973fc41636eb
> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> Date:   Mon Aug 26 14:25:38 2024 +0200
>
>     drm/sched: add optional errno to drm_sched_start()
>
> I can no longer compile this patch.  Specifically I see -
>
>   INSTALL libsubcmd_headers
>   UPD     include/config/kernel.release
>   UPD     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC      init/version.o
>   AR      init/built-in.a
>   CC      kernel/sys.o
>   CC      drivers/base/firmware_loader/main.o
>   CC      kernel/module/main.o
>   CC [M]  drivers/accel/amdxdna/aie2_ctx.o
>   CC [M]  drivers/accel/amdxdna/aie2_message.o
>   CC [M]  drivers/accel/amdxdna/aie2_pci.o
>   CC [M]  drivers/accel/amdxdna/aie2_psp.o
>   CC [M]  drivers/accel/amdxdna/aie2_smu.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_ctx.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_gem.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_mailbox.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_mailbox_helper.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_pci_drv.o
>   CC [M]  drivers/accel/amdxdna/amdxdna_sysfs.o
>   CC [M]  drivers/accel/amdxdna/npu1_regs.o
>   CC [M]  drivers/accel/amdxdna/npu2_regs.o
>   CC [M]  drivers/accel/amdxdna/npu4_regs.o
>   CC [M]  drivers/accel/amdxdna/npu5_regs.o
> drivers/accel/amdxdna/aie2_ctx.c: In function ‘aie2_hwctx_restart’:
> drivers/accel/amdxdna/aie2_ctx.c:84:9: error: too few arguments to 
> function ‘drm_sched_start’
>    84 |         drm_sched_start(&hwctx->priv->sched);
>       |         ^~~~~~~~~~~~~~~
> In file included from ./include/trace/events/amdxdna.h:12,
>                  from drivers/accel/amdxdna/aie2_ctx.c:14:
> ./include/drm/gpu_scheduler.h:593:6: note: declared here
>   593 | void drm_sched_start(struct drm_gpu_scheduler *sched, int errno);
>       |      ^~~~~~~~~~~~~~~
> make[5]: *** [scripts/Makefile.build:229: 
> drivers/accel/amdxdna/aie2_ctx.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
>   AR      drivers/base/firmware_loader/built-in.a
>   AR      drivers/base/built-in.a
> make[4]: *** [scripts/Makefile.build:478: drivers/accel/amdxdna] Error 2
> make[3]: *** [scripts/Makefile.build:478: drivers/accel] Error 2
> make[2]: *** [scripts/Makefile.build:478: drivers] Error 2
> make[2]: *** Waiting for unfinished jobs....
>   AR      kernel/module/built-in.a
>   AR      kernel/built-in.a
>
> With the above two things fixed:
>
> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
>

  reply	other threads:[~2024-11-18 16:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 19:47 [PATCH V10 00/10] AMD XDNA driver Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 01/10] accel/amdxdna: Add documentation for AMD NPU accelerator driver Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 02/10] accel/amdxdna: Add a new driver for AMD AI Engine Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 03/10] accel/amdxdna: Support hardware mailbox Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 04/10] accel/amdxdna: Add hardware resource solver Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 05/10] accel/amdxdna: Add hardware context Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 06/10] accel/amdxdna: Add GEM buffer object management Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 07/10] accel/amdxdna: Add command execution Lizhi Hou
2024-11-17 20:03   ` Jeffrey Hugo
2024-11-18 16:31     ` Lizhi Hou [this message]
2024-11-12 19:47 ` [PATCH V10 08/10] accel/amdxdna: Add suspend and resume Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 09/10] accel/amdxdna: Add error handling Lizhi Hou
2024-11-12 19:47 ` [PATCH V10 10/10] accel/amdxdna: Add query functions Lizhi Hou

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=aabe8b73-32e0-7123-bcc7-6b6515815047@amd.com \
    --to=lizhi.hou@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=king.tam@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=max.zhen@amd.com \
    --cc=min.ma@amd.com \
    --cc=ogabbay@kernel.org \
    --cc=quic_jhugo@quicinc.com \
    --cc=sonal.santan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®