From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34D61C10DCE for ; Tue, 5 Dec 2023 01:24:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B67210E45B; Tue, 5 Dec 2023 01:24:34 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0418210E459 for ; Tue, 5 Dec 2023 01:24:31 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-363-2ZmQs64QOXe6Q7R6TXM0RQ-1; Mon, 04 Dec 2023 20:24:28 -0500 X-MC-Unique: 2ZmQs64QOXe6Q7R6TXM0RQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DA240812C28; Tue, 5 Dec 2023 01:24:27 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id D96F710F44; Tue, 5 Dec 2023 01:24:26 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org Date: Tue, 5 Dec 2023 11:24:25 +1000 Message-ID: <20231205012425.723716-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; x-default=true Subject: [Nouveau] [PATCH] nouveau/gsp: add three notifier callbacks that we see in normal operation (v2) X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau@lists.freedesktop.org Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" Add NULL callbacks for some things GSP calls that we don't handle, but know= about so we avoid the logging. v2: Timur suggested allowing null fn. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/d= rm/nouveau/nvkm/subdev/gsp/r535.c index f6725a5f5bfb..6c0a8fbf0061 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c @@ -298,7 +298,8 @@ r535_gsp_msg_recv(struct nvkm_gsp *gsp, int fn, u32 rep= c) =09=09struct nvkm_gsp_msgq_ntfy *ntfy =3D &gsp->msgq.ntfy[i]; =20 =09=09if (ntfy->fn =3D=3D msg->function) { -=09=09=09ntfy->func(ntfy->priv, ntfy->fn, msg->data, msg->length - sizeof(= *msg)); +=09=09=09if (ntfy->func) +=09=09=09=09ntfy->func(ntfy->priv, ntfy->fn, msg->data, msg->length - size= of(*msg)); =09=09=09break; =09=09} =09} @@ -2104,7 +2105,9 @@ r535_gsp_oneinit(struct nvkm_gsp *gsp) =09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED, =09=09=09 r535_gsp_msg_mmu_fault_queued, gsp); =09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_OS_ERROR_LOG, r535_gsp_msg= _os_error_log, gsp); - +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_PERF_BRIDGELESS_INFO_UPDAT= E, NULL, NULL); +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_UCODE_LIBOS_PRINT, NULL, N= ULL); +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_GSP_SEND_USER_SHARED_DATA,= NULL, NULL); =09ret =3D r535_gsp_rm_boot_ctor(gsp); =09if (ret) =09=09return ret; --=20 2.43.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE087C4167B for ; Tue, 5 Dec 2023 01:24:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBDC610E459; Tue, 5 Dec 2023 01:24:32 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id BFF6110E459 for ; Tue, 5 Dec 2023 01:24:30 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-363-2ZmQs64QOXe6Q7R6TXM0RQ-1; Mon, 04 Dec 2023 20:24:28 -0500 X-MC-Unique: 2ZmQs64QOXe6Q7R6TXM0RQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DA240812C28; Tue, 5 Dec 2023 01:24:27 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id D96F710F44; Tue, 5 Dec 2023 01:24:26 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org Subject: [PATCH] nouveau/gsp: add three notifier callbacks that we see in normal operation (v2) Date: Tue, 5 Dec 2023 11:24:25 +1000 Message-ID: <20231205012425.723716-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; x-default=true X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add NULL callbacks for some things GSP calls that we don't handle, but know= about so we avoid the logging. v2: Timur suggested allowing null fn. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/d= rm/nouveau/nvkm/subdev/gsp/r535.c index f6725a5f5bfb..6c0a8fbf0061 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c @@ -298,7 +298,8 @@ r535_gsp_msg_recv(struct nvkm_gsp *gsp, int fn, u32 rep= c) =09=09struct nvkm_gsp_msgq_ntfy *ntfy =3D &gsp->msgq.ntfy[i]; =20 =09=09if (ntfy->fn =3D=3D msg->function) { -=09=09=09ntfy->func(ntfy->priv, ntfy->fn, msg->data, msg->length - sizeof(= *msg)); +=09=09=09if (ntfy->func) +=09=09=09=09ntfy->func(ntfy->priv, ntfy->fn, msg->data, msg->length - size= of(*msg)); =09=09=09break; =09=09} =09} @@ -2104,7 +2105,9 @@ r535_gsp_oneinit(struct nvkm_gsp *gsp) =09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED, =09=09=09 r535_gsp_msg_mmu_fault_queued, gsp); =09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_OS_ERROR_LOG, r535_gsp_msg= _os_error_log, gsp); - +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_PERF_BRIDGELESS_INFO_UPDAT= E, NULL, NULL); +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_UCODE_LIBOS_PRINT, NULL, N= ULL); +=09r535_gsp_msg_ntfy_add(gsp, NV_VGPU_MSG_EVENT_GSP_SEND_USER_SHARED_DATA,= NULL, NULL); =09ret =3D r535_gsp_rm_boot_ctor(gsp); =09if (ret) =09=09return ret; --=20 2.43.0