Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp70978pxh; Thu, 7 Apr 2022 14:17:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdVni3J5ovgp6WZd0+tIphv/jjiqvF9aDnxobvJxDo9xIisLMY36FWmdpzVo24TUQy1hkn X-Received: by 2002:a17:90a:ca:b0:1ca:5253:b625 with SMTP id v10-20020a17090a00ca00b001ca5253b625mr17999865pjd.220.1649366267211; Thu, 07 Apr 2022 14:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649366267; cv=none; d=google.com; s=arc-20160816; b=I7YRtPCxy/f0zxycCXNzifDXw5xj+6bfhH1Wqf3Ne+hRi52ovLXfZdjPhKrRv8jAxc KvHaA3wwBHZXidjHqWxTXrJBpbJZxQ34PJndJ9Pf/rgRO3Wy74p0BbC3j4dYjMcVlBEp hdDbUwyFKDWzPbEDKiK9w781giE3Jr1N442cLpd0si0280dlwPrsSnYSmSpx5TXbeKl/ 2qw5nklbzqHP5ImMgECW/Ls5qFomggAAmzJjoTelt2EPQTiS6mk5HIPsfHCr5dc8kCTh 3FAXhF8nVudDpWDDQbhJlyQ6EontNhFvvcZGTI8gMxrmamIJgd+/35+UhLAaaS+L5Wp2 VSGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lFeu13B4GooKw5hC3dcio6xNxGQNDFEh6M5pue+v5h8=; b=x5wwj8G8qjerqPT7Uh4hRLRzNlQEiqPCBB8TPvK89YJktKxvIhEVM06LY9lrB1JGIT OHzaFAD16HCnmt9KBXo/W8fjQ6mJkhVRiNt41yh9wdu+QBH6/cXr1bGTb2KW2FW/moSG sAyduVfv0T1Nz1zMwuwFDt9FvhQq7QlO88JEGbgehpZuXs+ox95RokB2s23M162CWQHD Za/QjzsIfTFEXyY3avdGMz7xnAGbaUtPo84cd8l8fasxPi6tSyrMlG3FoyO1T0DqmB0Q qG2bODPh9Hjzzp5QSkCH9saomzbCt1N6pjlLgJ8zo6j7onksyihTucequ7QYUZEGGg5I JLNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K3W43Xpr; 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 f5-20020a170902860500b001561e8d0a44si630876plo.445.2022.04.07.14.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:17:47 -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=K3W43Xpr; 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 CC493472055; Thu, 7 Apr 2022 13:09:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240585AbiDGGXd (ORCPT + 99 others); Thu, 7 Apr 2022 02:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234876AbiDGGXc (ORCPT ); Thu, 7 Apr 2022 02:23:32 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C543634C for ; Wed, 6 Apr 2022 23:21:33 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id l26so8723126ejx.1 for ; Wed, 06 Apr 2022 23:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=lFeu13B4GooKw5hC3dcio6xNxGQNDFEh6M5pue+v5h8=; b=K3W43Xpr4w6Uel8V1O2QRTwL4Z9UmJkdK9muSQytlVH4Gzn6W03AvpfAouMfVteW8c 6E0I3EDINF5FrFoKrNCVgs89YXkKFEZZSFRmCNa2OM7OWjk+O1WZhNHA9hl0HkrVqQAR /5HnpHGp7lTpeHeujdPqx3qi+fzJaZdunPLC1NdS2vHrQtqV4B6GS8Fi2ji4gNqfK9Dv hHaAXSR+bLm7RZyUO8JzRdZqmGyuaMQEriuWcjbmQoJokfBUzEwzvppNgdjJZuGLlhTO 0TQ2/yoh0k7Uh5SvI7NrHeKEZTiRTBaRq+No3p8rygDtXFkqayE5vYAnw3u9ia2KHnyQ D6Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lFeu13B4GooKw5hC3dcio6xNxGQNDFEh6M5pue+v5h8=; b=1IEX5ydYutJ7CtNCIFgWT+Z9vtXOIlWOpEaGxPCMB0G27xm8W7gEnBVbDCXrcDgLt9 U/cYmKrgCxOqfYvcjdI4t+g8Kt20KfViDT0vnl8Zecd/KTLCRtorGNzWrZZW0KIfvC0/ u9oC4006zZwK/lfqZ1MXCD6ThmyrQcgIO6MgGojwWmPfpWwVypGMvWsJNhcqNwXW40LO ntsmnikpwn4aqwKmt26x5Ma9zkQLMKPEu5rOzMqv16GVuDSu3dktAQJnXQ9ZBOaYUGFy bcSaamuKK1Dj08uDAOlAT8avCU1NC672XIbRM3zUrsNLmRy9rZ8odTJxjyIQwlWHJExH 2X7A== X-Gm-Message-State: AOAM530Me2Y8yYgosL2kvR9kawEWjM3Ukq6kA/cgK7WGJU5BKjB0KBh1 KksKBCtdXPxeq7vPooE+l80= X-Received: by 2002:a17:906:7751:b0:6ce:e3c:81a6 with SMTP id o17-20020a170906775100b006ce0e3c81a6mr11286345ejn.278.1649312491633; Wed, 06 Apr 2022 23:21:31 -0700 (PDT) Received: from [192.168.178.21] (p57b0b9e1.dip0.t-ipconnect.de. [87.176.185.225]) by smtp.gmail.com with ESMTPSA id gv9-20020a170906f10900b006d7128b2e6fsm7340540ejb.162.2022.04.06.23.21.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 23:21:30 -0700 (PDT) Message-ID: <26951c45-f742-2f0e-f4a6-281a031c3471@gmail.com> Date: Thu, 7 Apr 2022 08:21:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] drm/amdgpu: Fix code with incorrect enum type Content-Language: en-US To: Grigory Vasilyev , Rodrigo Siqueira , Melissa Wen Cc: Joseph Greathouse , Guchun Chen , "Pan, Xinhui" , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Daniel Vetter , Alex Deucher , Evan Quan , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20220406165057.97492-1-h0tc0d3@gmail.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20220406165057.97492-1-h0tc0d3@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 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,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 = 2, we can use AMDGPU_RING_PRIO_MAX = 3, > but AMDGPU_RING_PRIO_2 = 2 is used for compatibility with > AMDGPU_GFX_PIPE_PRIO_HIGH = 2, and not change the behavior of the > code. > > Signed-off-by: Grigory Vasilyev Good catch, Acked-by: Christian König > --- > 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/amd/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 amdgpu_device *adev, int ring_id, > + ring->pipe; > > hw_prio = amdgpu_gfx_is_high_priority_compute_queue(adev, ring) ? > - AMDGPU_GFX_PIPE_PRIO_HIGH : AMDGPU_RING_PRIO_DEFAULT; > + AMDGPU_RING_PRIO_2 : AMDGPU_RING_PRIO_DEFAULT; > /* type-2 packets are deprecated on MEC, use type-3 instead */ > r = amdgpu_ring_init(adev, ring, 1024, &adev->gfx.eop_irq, irq_type, > hw_prio, NULL);