Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp214299pxa; Wed, 26 Aug 2020 23:25:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtD8S1RQc4K8pz5aR5tgZXps7KTpNmxGQj6P6MPjnDTkzZKqTJpD2HrIwIhVsTBwbCZK3I X-Received: by 2002:a17:906:1604:: with SMTP id m4mr18878858ejd.6.1598509504815; Wed, 26 Aug 2020 23:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598509504; cv=none; d=google.com; s=arc-20160816; b=ra1vqeYCcC2pozlv/veirNNPBU5M64K6r4nSPcpMoVd65RIyM90hUvSISj5fX21Ti/ CHeYS4FWsA2QdaqbEkAj/FMmXfwP1m2B/61U9pQ4fzHDXWxgaBPeMPHPT8xfRn4ew/OQ 6sry7MDiLzn8n/0rt3OeNa81RRD+B0L53VeGi54DNt0i7QbL9H73g88HWEBEkw6Qsmkd OefILMox8Yv5PDYjbdNN6hVkYDvkW7nj814gqyqfPYvfcdWr5vxUjdtGy1nEQ4fZH8fS HPYQjEbFWoX7lKCjCgbhgCwpakmULYJrMVc1l1iLqO/Vo0QfPJiIW+zLKjp4oWLeLdHB snaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=osx6Z1JjUfwlxHrElxOUyUAAK2frst7SbYdObc9kdfQ=; b=BILHL/CTO05XX7O+Uwx5Bgk/8nBqhPP0IGK+TdpDJAOEPZjv5ZUBL1EkcL2tkcRYIA ImtNYD383GTWBomyQR5zwv0zfMjOclPhupcC23YePRB2v1fRS8MQFNTHaopxRPsmK53V m1Plmnn58bYb9zEwDGENJb1r144HXj2YOCOnrAo3SIz80DvRSXdqfbIa60uRemHEifT4 xF159kujsQbqZq3A0olE9kkmBYF6iXQyg0Vl8e+kqnwD9IUD1DbQOnUFPhNYi2MOeUWC RJJKhnsfu7iZUQF5P28wKixKwQsOTUfjDkvB9G/nnrGXnLuBTVgXiLG7UjR+VOlSOjv9 F4Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx11si991478edb.300.2020.08.26.23.24.42; Wed, 26 Aug 2020 23:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727769AbgH0GVo (ORCPT + 99 others); Thu, 27 Aug 2020 02:21:44 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34526 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725909AbgH0GVo (ORCPT ); Thu, 27 Aug 2020 02:21:44 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D843429906582A372087; Thu, 27 Aug 2020 14:21:40 +0800 (CST) Received: from [127.0.0.1] (10.174.179.33) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 27 Aug 2020 14:21:36 +0800 Subject: Re: [PATCH v2 1/2] drm/amdkfd: Move the ignore_crat check before the CRAT table get To: Felix Kuehling , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Airlie , Daniel Vetter CC: References: <1598430556-18788-1-git-send-email-guohanjun@huawei.com> From: Hanjun Guo Message-ID: <8caa6963-a296-8fac-4477-f8c3974efd14@huawei.com> Date: Thu, 27 Aug 2020 14:21:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.33] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/27 12:28, Felix Kuehling wrote: > > Am 2020-08-26 um 4:29 a.m. schrieb Hanjun Guo: >> If the ignore_crat is set to non-zero value, it's no point getting >> the CRAT table, so just move the ignore_crat check before we get the >> CRAT table. >> >> Signed-off-by: Hanjun Guo >> --- >> drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 10 +++++----- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c >> index 6a250f8..ed77b109 100644 >> --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c >> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c >> @@ -764,6 +764,11 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size) >> >> *crat_image = NULL; >> >> + if (ignore_crat) { > > A conflicting change in this area was just submitted on Monday to > amd-staging-drm-next. You'll need to rebase your patch. It should be > straight-forward. ignore_crat was replaced with a function call > kfd_ignore_crat(). > > Other than that, your patch series looks good to me. If I don't see an > update from you in a day or two, I'll fix it up myself and add my R-b. Please fix it up by yourself, thanks a lot for the help! Regards Hanjun