From: Jeffrey Hugo <quic_jhugo@quicinc.com>
To: Lizhi Hou <lizhi.hou@amd.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: Sun, 17 Nov 2024 13:03:54 -0700 [thread overview]
Message-ID: <749e9a1d-7bcf-0c04-41b3-e0a4b89068bd@quicinc.com> (raw)
In-Reply-To: <20241112194745.854626-8-lizhi.hou@amd.com>
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>
next prev parent reply other threads:[~2024-11-17 20:04 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 [this message]
2024-11-18 16:31 ` Lizhi Hou
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=749e9a1d-7bcf-0c04-41b3-e0a4b89068bd@quicinc.com \
--to=quic_jhugo@quicinc.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=king.tam@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhi.hou@amd.com \
--cc=max.zhen@amd.com \
--cc=min.ma@amd.com \
--cc=ogabbay@kernel.org \
--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®