Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp792455pxb; Thu, 17 Feb 2022 15:04:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkJOfzMzalFjwgORm6a5ecvA+S/TTQyQ8QYLyGPx5MevNwhFu9n8Iq/70ANTqGfR/S5mGf X-Received: by 2002:a17:902:9895:b0:14f:44f2:507 with SMTP id s21-20020a170902989500b0014f44f20507mr4777234plp.144.1645139089307; Thu, 17 Feb 2022 15:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645139089; cv=none; d=google.com; s=arc-20160816; b=hUG6u8Hb7exvuzjBdkqEogsA1FORW8QWfhCHD1T3VRcWT2WBgxIJI2gvjLZoD5++9B rzUz7zHBimePvtDU+a+jqattom+4rwBhBtk0sNdBT39FgJKMttidk1lfAy0Z+GD/1ZEb V30Rvfhk5XVjsbLNuO5Z3bigrgbxqLFr918QqSCO8X62zlwDfmnpt/oBAb5OLSdFYx8a 0VMZsrEG3DPIu97mFSvw22EN7IFAB9TK6bcekTclZ6ySjcfZ8Kl6M4jX5K3OakuUYkgt GbLTeAFgnxBEUuqXe3/oKCmUfK3P0ltLWBuWM1ybgNyqteR1FMB9MFRgQHs+scEM9RKL B3/w== 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=bElm5YilB/9jblKEU64fD/ESvy8c+wLEV4cgX1XhWn4=; b=hWaBrgXmwzG9K8mUHinZ5KmCByEAY58vrL4R1vaSm5LOPLbpKrSL47+Qq09Hs4KfU0 CL6LavG+3v7fyEMaITmYQQ9c2MfMXSfYpDSn19P3XwPHCJOHCMKUI5iL796EMAARJHYG /qlrZ52qWTrc1n65VvPAbniZYD8cgcRYEgM2mp0DJs/U21rUCaamSRYek0nb5n59qG2C AEK8XEhpMhCOXDwDHkEZd2JcO4tjWYeitNPwahOqm92SmVCf5O3GKe6JnLUgi/08QtF5 R9+84EGPxmFh4bse+HLjVmZFLl2Rr0avg/tMfwzMNy+VSdDVerb4q1HqzC07PAy2fPBG XDkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Eq1tUKgq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u12si1022895pfk.259.2022.02.17.15.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:04:49 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Eq1tUKgq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24371298AD1; Thu, 17 Feb 2022 15:00:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241988AbiBQQcA (ORCPT + 99 others); Thu, 17 Feb 2022 11:32:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239801AbiBQQb5 (ORCPT ); Thu, 17 Feb 2022 11:31:57 -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 1CBCA1A3AD for ; Thu, 17 Feb 2022 08:31:42 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id p15so181264oip.3 for ; Thu, 17 Feb 2022 08:31:42 -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=bElm5YilB/9jblKEU64fD/ESvy8c+wLEV4cgX1XhWn4=; b=Eq1tUKgqg59a4QA5ulUqAVWGJmM7UV+1lWzQXL+zegdCS5/d4qsDlC5deH1OCwWstU +C+uqqiZW2o3xKjbO23EnJl0d5uDvEe0lBrIH9PC5UwZ/u7Ts/hHBW7kzkx3yt4hxJ2M rw3a0q7ng+L5mm+KXKUAhVfwJoa1z3hmwUV7t8JtlBRa9fIOEL68OVNeV4kmYlgnkITW EO5lyysg+u3N2lBo8T8NUN78/kNWlDRnW35krNMGCsbBxLBuhxTgjQcvYJZ0rVp2HesJ QStSRNSpghG4F6RXqxSrxcLIbzpF0KewldPbmspmkxAT1On4cwLlW2PHhXBBIHEFLBVn 5PNg== 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=bElm5YilB/9jblKEU64fD/ESvy8c+wLEV4cgX1XhWn4=; b=E2gs3v1A8/8qfoFObOYve2h4kUz8fXNl23L/JbZsrbgvp20s4l7B/nLWCN/aFdtY3M Ge8AEzjUVh/5jm+YAxhqg//U0MmXjPgapZIuDoZXU0oieFlxE7BpVQcdEufy9eQxlbfR hN/zAg7tgY3fqQoevXLYldvtelSi1jX4plWVe7YV1SZjRCe+MuXFN1NPpOke1J/r92pP lN8k4JvvWb0KT3TO+vPw3ZPR4wkXA1xG5pvaTMqxrWhEOp0Kz+zlF354EGDRoG+7ztua rSXJJh1nNZLNHgwVgDqja5VCBDMRho5OCg4cHBOEyhA4RWSrNPllAEEMYd/hf7duJwc4 PC5A== X-Gm-Message-State: AOAM531DufcP8gVzXfsdIh9tfET2N7gMWnLtVfQjPQNks60YOcsRbIwI d9xsUntirHAFIfamQBuNlrtyt4Zd9BgFX6x33ESPMwek X-Received: by 2002:a05:6808:f8b:b0:2ce:6ee7:2c99 with SMTP id o11-20020a0568080f8b00b002ce6ee72c99mr3205163oiw.199.1645115501464; Thu, 17 Feb 2022 08:31:41 -0800 (PST) MIME-Version: 1.0 References: <20220217162142.1828990-1-nathan@kernel.org> In-Reply-To: <20220217162142.1828990-1-nathan@kernel.org> From: Alex Deucher Date: Thu, 17 Feb 2022 11:31:30 -0500 Message-ID: Subject: Re: [PATCH] drm/amdkfd: Use proper enum in pm_unmap_queues_v9() To: Nathan Chancellor Cc: Felix Kuehling , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , Jonathan Kim , llvm@lists.linux.dev, Nick Desaulniers , LKML , Maling list - DRI developers , amd-gfx list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Feb 17, 2022 at 11:22 AM Nathan Chancellor wrote: > > Clang warns: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/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' > [-Werror,-Wenum-conversion] > extended_engine_sel__mes_map_queues__sdma0_to_7_sel : > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 error generated. > > Use 'extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel' to eliminate > the warning, which is the same numeric value of the proper type. > > Fixes: 009e9a158505 ("drm/amdkfd: navi2x requires extended engines to map and unmap sdma queues") > Link: https://github.com/ClangBuiltLinux/linux/issues/1596 > Signed-off-by: Nathan Chancellor Applied. Thanks! Alex > --- > 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 = > > base-commit: 3c30cf91b5ecc7272b3d2942ae0505dd8320b81c > -- > 2.35.1 >