Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp45026pxh; Thu, 7 Apr 2022 13:30:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5DreGrsbgWMetXWEhvpS6Cyn/cOv5uIC2Y5/xSqkxHNyon4XRpBFs0L8bId/bdWyNsSVW X-Received: by 2002:a63:788d:0:b0:386:361f:e908 with SMTP id t135-20020a63788d000000b00386361fe908mr12287165pgc.395.1649363406407; Thu, 07 Apr 2022 13:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363406; cv=none; d=google.com; s=arc-20160816; b=Rm+SAVOxqHq2pd/+BlpGQa3E4L307L2hsC3xKRmMzMNGOTJq3xijBKzrhk3x8Qi1Cr 1NrtJuWSwb52oNSZiYyX9X9oNn9a4wY/5uHc6+ATZvwMd1P3/6yQIoXWMhKySpAI+P2C /NIPjI1BiBuUflbVAG7wFU3l9OSX4hocdzT7/DDVR/48l+pGr98/46fcTVLEm1vnPiYN VRqCFDI5xufM94r95tDmdAyqWJeViIXydLE/CqeVTMEEI9GodnP6sTTKPLIprWh7fZTY p6v8fSAAUFPIAb84q8GPwplr+7fV32gdrpGgVJ9V8IYngKhSQkHxIrMgJELS02yxOyUY rbNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kckLnLuecUYcAuxBtICpKDRrQ9GlihWSL3S+Wrg2yNI=; b=gxGd85NY/5xZBZkhDGynF0HRZ9RTWnCqlcrhCfc2XvlScMhGMeVhe79mnfhgiAJqdS yKvvyzUKY635S9ESBlBdb8QyfA54NrRKSq4Ls0EX0AMpgaw16/BwJtBY80hEtfgbadG7 XqwScWJiQ7dHBI0eEYMuWM3RMBKGuk2jzWON32c8EiQ7cMOkd/sHR1wbOlPqj2l+vhRC dfHk5+voRs7Y74nyWVamW4I+Fgw7blY0z4dAq2nCEeNdEfPeCi0BShc/iZP7ivAh/Z+6 rzRYO4gfEfPWANkpO/SvKAMtrHx+cGQbOyPylb5C2knKcbqeQT7pvc+5oeQYKWMMblTz UQ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qz/L7HMW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f4-20020a056a00238400b004faaaf18941si22223805pfc.8.2022.04.07.13.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qz/L7HMW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95C7F372B1D; Thu, 7 Apr 2022 12:44:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236800AbiDGRsU (ORCPT + 99 others); Thu, 7 Apr 2022 13:48:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiDGRsS (ORCPT ); Thu, 7 Apr 2022 13:48:18 -0400 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 F07AA271E for ; Thu, 7 Apr 2022 10:46:17 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id b188so6362530oia.13 for ; Thu, 07 Apr 2022 10:46:17 -0700 (PDT) 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:content-transfer-encoding; bh=kckLnLuecUYcAuxBtICpKDRrQ9GlihWSL3S+Wrg2yNI=; b=qz/L7HMW5FWMU9PnysBussxrdFIj6na0FNFo0tIYMWuPOv7leY+GD2TUH5fXzeyAUF AfTXBfiqczCkc9Vr+oeCXg4vvcceXirEc/Y0dOf+1k2lFE9jIOUeG5Bq0HxXzKe77wif 9z53vYpUnA0ZNSH1NUnuhvJm3TVpZ9OFFwZvSCMTaix0QOTLALnWiz2kiw0nFk3oNwdP x/dtGSPAHPtPn1bTDG/MHjH5Q7lEyIhGElvJr+gJgSl7E1VYcrryWz1jb6oKddRCDWPT W/wqjGVprJ48lba3zeG39FSqvFVr79eLVekPBP2EE+M4WQjY7j5SbDDp17J73K4X/Bb+ ckPQ== 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:content-transfer-encoding; bh=kckLnLuecUYcAuxBtICpKDRrQ9GlihWSL3S+Wrg2yNI=; b=iZ8Q5YWI1dXAMxKGMYSHSXJJM2+tNjqJzGq/yblKGxRHN8Dge3k/Eu4iEIiBdWHg3H CvvJzUosDo+vraL+DNfg8rgGwcd9gYVxnIekUhsk1DN0aPPNCiqE1l0nZFcr5GNKHmok +BJUZ9MM8BUOCmoPFPKI48sh9WaDReHuLQREB1nMv2lYi3npmM5uqEx1EQh4eIlFMwuo ewlBLamjsPV7izJUaWc4Wz847bZjcTLuOoDPaWKL6b/b04/fegGGfIl51RcV4J9fnX0o 1JhKU5aRb6xGE2FDoKObyKRKmVAieprFPXu+/Czrv5RMje0eWdQIr9XNHbqAl8uosp3a wqrw== X-Gm-Message-State: AOAM5337zmK9JWKML+/GL/uaAAD2ZplY2kloJ+DB0Pl04SsUuM0mJHoQ gxGf6wc8LUa9cYhs0nC/J/WtcMdjrMGkg63Le/HKmAzKAqs= X-Received: by 2002:a05:6808:2390:b0:2f9:c718:80e0 with SMTP id bp16-20020a056808239000b002f9c71880e0mr446338oib.253.1649353576369; Thu, 07 Apr 2022 10:46:16 -0700 (PDT) MIME-Version: 1.0 References: <20220406165057.97492-1-h0tc0d3@gmail.com> <26951c45-f742-2f0e-f4a6-281a031c3471@gmail.com> In-Reply-To: <26951c45-f742-2f0e-f4a6-281a031c3471@gmail.com> From: Alex Deucher Date: Thu, 7 Apr 2022 13:46:05 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Fix code with incorrect enum type To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Grigory Vasilyev , Rodrigo Siqueira , Melissa Wen , Daniel Vetter , Guchun Chen , David Airlie , "Pan, Xinhui" , LKML , amd-gfx list , Maling list - DRI developers , Joseph Greathouse , Alex Deucher , Evan Quan , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Apr 7, 2022 at 2:21 AM Christian K=C3=B6nig wrote: > > Am 06.04.22 um 18:50 schrieb Grigory Vasilyev: > > Instead of the 'amdgpu_ring_priority_level' type, > > the 'amdgpu_gfx_pipe_priority' type was used, > > which is an error when setting ring priority. > > This is a minor error, but may cause problems in the future. > > > > Instead of AMDGPU_RING_PRIO_2 =3D 2, we can use AMDGPU_RING_PRIO_MAX = =3D 3, > > but AMDGPU_RING_PRIO_2 =3D 2 is used for compatibility with > > AMDGPU_GFX_PIPE_PRIO_HIGH =3D 2, and not change the behavior of the > > code. > > > > Signed-off-by: Grigory Vasilyev > > Good catch, Acked-by: Christian K=C3=B6nig > > > --- > > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/am= d/amdgpu/gfx_v8_0.c > > index 5554084ec1f1..9bc26395f833 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c > > +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c > > @@ -1929,7 +1929,7 @@ static int gfx_v8_0_compute_ring_init(struct amdg= pu_device *adev, int ring_id, > > + ring->pipe; > > > > hw_prio =3D amdgpu_gfx_is_high_priority_compute_queue(adev, ring)= ? > > - AMDGPU_GFX_PIPE_PRIO_HIGH : AMDGPU_RING_PRIO_DEFA= ULT; > > + AMDGPU_RING_PRIO_2 : AMDGPU_RING_PRIO_DEFAULT; gfx_v8_0.c, gfx_v9_0.c, gfx_v10_0.c all do this. Care to fix them all up? Alex > > /* type-2 packets are deprecated on MEC, use type-3 instead */ > > r =3D amdgpu_ring_init(adev, ring, 1024, &adev->gfx.eop_irq, irq_= type, > > hw_prio, NULL); >