Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5231988pxb; Sun, 13 Feb 2022 12:50:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjE8KfMo5MH+lIHR/SBk2P6mMdphkIEy+7SQiLHTPqvGDczjENGT6XIwaEA5OvUR/m0fZr X-Received: by 2002:a17:902:b60f:: with SMTP id b15mr11196021pls.88.1644785452583; Sun, 13 Feb 2022 12:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644785452; cv=none; d=google.com; s=arc-20160816; b=Td58o/7sICFsuzoS0KfZuAHojHcEKe/x69vnaKZwXCnhdMFXnYsHNt4TugEc8WL8Hi V6AGT5Gzx35dmcVvrNX5KuYx8057Jkw2upalZRgooId/tkFRliDb7t7zeJAF9wdClmp2 xU/p+bLRt0usJ3t/mc7Ti+Eb5B31WrRCwfiArd8dZLZEoxPffSr53XrkG84GKbzjVGaP 7ZDBsiNZrORFXinJwoBezVoWuSHRzbOvEdsQB4/8ST75WgvIhDfPagBC1U2+zA9H8uHE bDq4ICspzW63Oo4H1jr3Oajv6qby7E4QLEcjNXYCXjnMr7ZOav1Nh/+FzB1OaF+1Bhsc S6jQ== 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=DfQm6EEcsSkwyy63qL81Cd+ZyuEaHmK7nTBsAbZcXyA=; b=ETHECyvhWpBHWEa9btxKBG3kSvp99jEQLIfPdCyRUk0BLL3CAoNyI2PA3ryyEhWLVS dKKZUr4oH7yplProAVWKx3akXPGxhq1Mm/5ED7dEKbSWPksbTB+GXrRgbnuBKy/LzwUk zT7wF9tD0nU8XkX5lvBNK+PpZEVZ+GyQKA8iehTrGaOMkhLli5VcqWR5MDtFQ+yGdeP1 Y8wihiKzgWQPJnAMqZajopkrjLhUAQfUwhP7/MziJsiPLox4gqA6DT/zTYWN/D81wdY+ LsNSoVpTBuPG/qR7uAMAOinKzpE8ceokk7aVeYWRBie9lVIOlKTiBvx2TPMg82BffgsZ pvHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="N/U6SUGg"; 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 n14si11907700plf.136.2022.02.13.12.50.24; Sun, 13 Feb 2022 12:50:52 -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="N/U6SUGg"; 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 S231453AbiBLE1X (ORCPT + 99 others); Fri, 11 Feb 2022 23:27:23 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:50416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbiBLE1V (ORCPT ); Fri, 11 Feb 2022 23:27:21 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D85E22B15 for ; Fri, 11 Feb 2022 20:27:19 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id p5so30349801ybd.13 for ; Fri, 11 Feb 2022 20:27:19 -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=DfQm6EEcsSkwyy63qL81Cd+ZyuEaHmK7nTBsAbZcXyA=; b=N/U6SUGgLU0tWcghD0vaA+qEFiL9RTFNdgbmxNjeyYV1uI6e4VfKjse2slU+uYzuaY onfplrXVmoZieT69Bj1Y7WBbbn9WE+9UjAP2LTrxQ4FXEZ+DJWJ5XbuFIJjbCD+8wPPi gLNI7478a4sCyxGpQmscGV/xbNpwSyAdllatujRSXVFGC9GUtQMpcylkgmEutE33LyuD 1loKz9awPt1Y26EHtyWFam9tPYy1EknSoVJvytY9wJDG7bWbKmZbBVGWkfJ6cn25z2Cr tDwJA0l5NizNW9lN3R92ucC/XqnrzPkURBps8Pk7Xf5epsBxR0DVI2OoeYq1Se3pJ0r4 UUAA== 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=DfQm6EEcsSkwyy63qL81Cd+ZyuEaHmK7nTBsAbZcXyA=; b=upYnmj3KAmVjOs9ikgOHHsiS/KIXvXZ+sByT9X0OJ5MGD/S/uXrR+lbcKTq8Va5WEB 94puA3KVC9LyD/XBRxs1DJs5ZhHU/ZW4rf0uNmKb1YLctTljA0lmNp+7kHCogtfE4eOL Ucxu1IB0KJujDr3H0dQj02EA8KDXdyzUQirGO6QwCe3Ub3gLl54jJUCAJuTs2FZPphsv LtxZmBu5E7YOphHgjdX+tG6NV81VJhl6RCNje8l3nw64XKKZR5nhEMniel3SNWBKm377 pUQxN2C0ii0oeDiUgFLZe8O1b2b7HaxovsC0kbFMPq58cb+KmBVj13meJQc6897FZ4KC t2cw== X-Gm-Message-State: AOAM531R3CCtnpQ696jFRK6G7QZS9Ix1GlslwLMvdrN6ca4bXuxaOWcR pvwnwvv3QAgm1vcuLKNAtEt4WKNXTB72048/g6Hcf/voer4wgg== X-Received: by 2002:a81:4528:: with SMTP id s40mr5276837ywa.188.1644640038788; Fri, 11 Feb 2022 20:27:18 -0800 (PST) MIME-Version: 1.0 References: <20220209093700.30901-1-nunes.erico@gmail.com> In-Reply-To: <20220209093700.30901-1-nunes.erico@gmail.com> From: Qiang Yu Date: Sat, 12 Feb 2022 12:27:07 +0800 Message-ID: Subject: Re: [PATCH v2] drm/lima: avoid error task dump attempt when not enabled To: Erico Nunes Cc: dri-devel , David Airlie , Daniel Vetter , lima@lists.freedesktop.org, Linux Kernel Mailing List , Javier Martinez Canillas Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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 Applied to drm-misc-next. On Wed, Feb 9, 2022 at 5:37 PM Erico Nunes wrote: > > Currently when users try to run an application with lima and that hits > an issue such as a timeout, a message saying "fail to save task state" > and "error task list is full" is shown in dmesg. > > The error task dump is a debug feature disabled by default, so the > error task list is usually not going to be available at all. > The message can be misleading and creates confusion in bug reports. > > We can avoid that code path and that particular message when the user > has not explicitly set the max_error_tasks parameter to enable the > feature. > > Signed-off-by: Erico Nunes > Reviewed-by: Qiang Yu > Reviewed-by: Javier Martinez Canillas > --- > v2: > - collect review tags > - update summary line to "drm/lima:" > --- > drivers/gpu/drm/lima/lima_sched.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c > index 5612d73f238f..12437e42cc76 100644 > --- a/drivers/gpu/drm/lima/lima_sched.c > +++ b/drivers/gpu/drm/lima/lima_sched.c > @@ -409,7 +409,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *job > > drm_sched_increase_karma(&task->base); > > - lima_sched_build_error_task_list(task); > + if (lima_max_error_tasks) > + lima_sched_build_error_task_list(task); > > pipe->task_error(pipe); > > -- > 2.34.1 >