Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp588616pxb; Thu, 17 Feb 2022 10:14:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1xaGLeiqbcBlwOVbxQmPvjngWi9o09V7EUrQGII7sv1v0r0YZ+phBmNnfRypoYmUYWBF4 X-Received: by 2002:a17:907:8181:b0:6ce:3b7d:1041 with SMTP id iy1-20020a170907818100b006ce3b7d1041mr3252720ejc.765.1645121689859; Thu, 17 Feb 2022 10:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645121689; cv=none; d=google.com; s=arc-20160816; b=uD+urTZwxqdeRXFfodmYLAXna7q8jla3206bsG46XoBdkB28NY7cbUFfu3vaqdI34c 66Qivc66KlIiC/IGGanCO5TmVQoIXOVURPdHNCXQyBVwym/hBVzknBGuUx9NmlhwbV6J mp8nMdZX62LbOipAiyndsY0+7mr0j8j0rRXNGlxg790f9gMDPAdCkzhnnx23JF9GyQLs S8wqZtpcPk2LnElQxRMNVHzwm1vD/zMdLEsar9hRxgoHXxPj/bL3U4716UQlugn5FZSY 9A0mGXmztc+snXg6AOZ8sC9keuhmDVsF+XRAzU/9At/VQAXbBR/jGs2wJYS1BnweM9sK //Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=k9zgQPfz8LOJwvyN9TkCqdRl9MbRaNDX/aR5wunJ990=; b=hEi2VPeB/O0BJ1/SBnsQgMBxVO2Ucx1QZ6jc01as0Ik3KXQRawsliHjBr7IVksbARb Vwc+D4q2z+mskO3kBWdSkiLWDpYsQOMfOjZcODC+gy8KRjOGA9P+8X644OO/6nL10ux0 rMnKx8aC0+zoz6Sv3azAgxQtbGgbsBJrAeru658d0iHAVl3x1wjFGZ6xbD8RtSiATA2D avXR0+VUybKlaycV1M/EqISoBgi03b1jIcCPHC6LOMVyF2dar7p827HtJqmGWAC8Bobp FSokX2uyRMRywMSrxdxlfz8jR4BuPLoq24e5+lKOCqbrHNTOeRtrP+DYWctgR0/MAgdk pS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DINAnzkZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm5si2222118ejc.615.2022.02.17.10.14.25; Thu, 17 Feb 2022 10:14:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DINAnzkZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243630AbiBQRRj (ORCPT + 99 others); Thu, 17 Feb 2022 12:17:39 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243632AbiBQRRg (ORCPT ); Thu, 17 Feb 2022 12:17:36 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8CE15C9E0 for ; Thu, 17 Feb 2022 09:17:22 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id 13so281230oiz.12 for ; Thu, 17 Feb 2022 09:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k9zgQPfz8LOJwvyN9TkCqdRl9MbRaNDX/aR5wunJ990=; b=DINAnzkZ3yxrbaFtDAYZmhpuXrR/mzBHe+vr2DEiBG3ftwzLyGNCDwNo0aWdundMlY sYYPRo2ua/mUlkwsglmxpqxr04T8gzaIFbZPVILJZWFtt6KG8gOjF3ltKVAs7NB4Ll5A EYztNyGCg/NYX3KCvFPleeQ8mjTULOIut+sofWlAJbUmSJoGUrcL1hBg30XDPTzG2P4w UWMCShLbWEJwlle7OziBionFS3Twi3vfDUcs+1sPf0IUcWblXibpCNNarLcSJGdhlNIm 72+weM6Yxvsi1mB0VDx+GRhGhoxE3g+vEl5TjBcOqh2X+IF/XQmtQZkwcqnFb9FB84W5 fZfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k9zgQPfz8LOJwvyN9TkCqdRl9MbRaNDX/aR5wunJ990=; b=m7/zfREmn0REqbuf1m6lRjyrYZ+TK+nubEwDEusHDNTF2jOmAclDIXfCmFaRUqHORe XjG+BPQbBXjHTTNJDdoZ95CQSeE0O/ki856a6VyvvDr1d2cQeTpI3I3QLblK837CGpnC Wxk13ibCI86rMnsj7TRZ9rIn++/++DxAbFZBY2SRfW45qTcPnI+B/NtUhJx1JYqrraSG ZRR/LbJsxXzetnd/xjapvUBHX4GaOoiOSoQ4eNB+DGNIhxkC0RHvmeNMufmvz/giAepe K4oycRrGYDLLQJhZMWR4tBQACAcOawqpvg4LDkm3MepdYcLYIKwUwDnxbzcWj239eMCY rcLA== X-Gm-Message-State: AOAM531efRAa6574YxHmdIZWpBJmaq2CMl9r+EnW7iPt3ad+in99AfuB Y1x/+ewj1C8mC3S5LwkhXDmfnIBJD2ZCb18BdPE= X-Received: by 2002:a05:6808:f8b:b0:2ce:6ee7:2c99 with SMTP id o11-20020a0568080f8b00b002ce6ee72c99mr3309777oiw.199.1645118241433; Thu, 17 Feb 2022 09:17:21 -0800 (PST) MIME-Version: 1.0 References: <20220217164110.3258269-1-trix@redhat.com> In-Reply-To: <20220217164110.3258269-1-trix@redhat.com> From: Alex Deucher Date: Thu, 17 Feb 2022 12:17:10 -0500 Message-ID: Subject: Re: [PATCH] drm/amdkfd: fix typo in setting enum value To: Tom Rix Cc: "Kuehling, Felix" , "Deucher, Alexander" , Christian Koenig , xinhui pan , Dave Airlie , Daniel Vetter , Nathan Chancellor , Nick Desaulniers , "Kim, Jonathan" , llvm@lists.linux.dev, Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan just sent out the same patch and I already applied it. Thanks! Alex On Thu, Feb 17, 2022 at 11:41 AM wrote: > > From: Tom Rix > > Clang build fails with > kfd_packet_manager_v9.c:267:3: error: implicit conversion > from enumeration type 'enum mes_map_queues_extended_engine_sel_enum' > to different enumeration type > 'enum mes_unmap_queues_extended_engine_sel_enum' > extended_engine_sel__mes_map_queues__sdma0_to_7_sel : > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > This looks like a typo, the function is _unmap_, the enum > extended_engine_sel__mes_map_queues__sdma0_to_7_sel is _map_. > To match the packet->bitfields2.extended_engine_set type > it should be extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel. > > Fixes: 009e9a158505 ("drm/amdkfd: navi2x requires extended engines to map and unmap sdma queues") > Signed-off-by: Tom Rix > --- > drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c > index 806a03566a24..18250845a989 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c > @@ -264,7 +264,7 @@ static int pm_unmap_queues_v9(struct packet_manager *pm, uint32_t *buffer, > sizeof(struct pm4_mes_unmap_queues)); > > packet->bitfields2.extended_engine_sel = pm_use_ext_eng(pm->dqm->dev) ? > - extended_engine_sel__mes_map_queues__sdma0_to_7_sel : > + extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel : > extended_engine_sel__mes_unmap_queues__legacy_engine_sel; > > packet->bitfields2.engine_sel = > -- > 2.26.3 >