Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp729890rdb; Mon, 29 Jan 2024 17:16:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1D0aOYRCoGbwfyz72IENKUHMlIaW7CKQKiFt0tVIEfonAWLiPSwvVCnmiIBwTG5NaLVoc X-Received: by 2002:a2e:80ca:0:b0:2d0:54ef:1dc3 with SMTP id r10-20020a2e80ca000000b002d054ef1dc3mr1008236ljg.26.1706577385768; Mon, 29 Jan 2024 17:16:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706577385; cv=pass; d=google.com; s=arc-20160816; b=XSjrWmyFAou9r6fp94F+b0B3VrwxmXMtbHPTVwjnpaqka7Zt+LIPVx6P64A2RN6tDS DHobRlBdSM9MDFHaTOrS9xbAXOsb09MpqrKa2SAeqjjnV17y69humI2RbAZC9m/SWlct YZ8XlXYKOUza8aQmrMbD7oyBauBRv+oAta9VLNuUnDdBKxTdIJRML3s0vDWPkiyjiqe6 263q/3bquY/AoJSsdhxkXVEyijiv3oCQmK93ZBxwzOcs7lhUcdR0ITlyqOKiBtQPxq9k ZoNJtoTbIFTgzU7o8OzRLv/YqQXhAnRay7G8VjA6IkCS9EDyyDkleAHC+JYUnR85gfcJ jixA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+XdaeecGW0oQf3cb0p/gxE71D3OQbZDICKx8BTb0+2M=; fh=k+tnYNuUs19DGP9BBy2+3h6+OOEcat/lEbzEWt7weQg=; b=C5osSFCLEWnQQZQXEQplL457W+C6W5HP3EBFLx8CMOWao5D6dWp8uJbv/Cwa+aRmzU 39zTswhZomfpJvgIce699zRLs/qBjMYFVAYYz9gAAWj/QM/+ddQy3IuajzhNFDPYr4iU jTMpkIGFNaZEeuDlnlczdYL/5GLquM4vB3RMZbvOAjlTwnfhqrrkf0XnB8Zxz7D8di1i 4p5DwKdZrYCN2bJgJsAtfFc6nDVsidrTmRK8NrlD/ZvajJvXry4kWZX2BFicdnTgQ67T zS+ELj6zCJXt5/wnEW5u+sew6PLJcq2GZ54ySM7vUUb+CVmJC7jfVQmSwTH0UL3RQxrX TCLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Mh/wCZ7k"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c7-20020a0564021f8700b0055c38ccb340si4061390edc.109.2024.01.29.17.16.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:16:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Mh/wCZ7k"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5EAB01F24731 for ; Tue, 30 Jan 2024 01:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D1E2EAF7; Tue, 30 Jan 2024 01:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mh/wCZ7k" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58E37339AD for ; Tue, 30 Jan 2024 01:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706576875; cv=none; b=Vm3CUqn5CvWZBGGJN1J4Td/ePQakJ4LE2EQWpRJO0D8vLrQc+J/+awbODucdhssyD4R1RwCGpzlUDR9qDUlMOo4c4uXYJbqgu/121KqVM/BzAI4WeeoNfjOIP/Bug0+Gb6RKmBK0tmb+X6cvBpfziQlukOp2Y9SA3a5R3ZBUAO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706576875; c=relaxed/simple; bh=w1h0N16WUcapd8TAoWs7Im7ROcbBWsE65mlOKFZZNAM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VpFJgQOdExe6EDDPZ34dids35/MF/qjMk8rnguYSb7CUiRXKhl3t82vqOBxj45gnq5QQH2pEZ1k1JGHKRdsg4sxmRn/d6EY6O/OwCfNRqdeWxh8srTMvt89KIgLsillB7sBz8bB81DlNZIyTzvF3XCewUXDoD9T5FVjRRo2yFP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Mh/wCZ7k; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-510322d5363so3449863e87.1 for ; Mon, 29 Jan 2024 17:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706576871; x=1707181671; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+XdaeecGW0oQf3cb0p/gxE71D3OQbZDICKx8BTb0+2M=; b=Mh/wCZ7k8XDTYVZbeauqevRR8HrjeuFaSGXOtVMQF1vGi1wVzs1bjhWnJCHJzL8wTK YFKcJx8PNzzx9JzFwh1c3h/+5MKG7WXt5E82FYSUpglzBproJoTriA6VaFg21veKBFrr j06UehE0MLpYDy7wLQTn4CLx35MZvY/WhI489ygR9LH6RZE/KsPyDVdSsR9rRXuEfx0p oNMQlmMdgquF/1NdM8ht/dqr0EdDaKh91qqB3BZHLTOLg8Xteh09/7cuber2PMI8TuGm V7KYeGlnd4I75M22SjdArYIpXMko7c6O/QuXC8CkaUmoAl0Sh2XiDFBODmz2/uASaCNt kQJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706576871; x=1707181671; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+XdaeecGW0oQf3cb0p/gxE71D3OQbZDICKx8BTb0+2M=; b=aS6eeGRf+zGw5n+L1r5uzWJSNYTG1nX8uQr8xB/JlOVoYT0Tu1PyQ4gI+7MpOn0juK q4Bnj8DQ9gaJk6z1RG9Uu/S5HmFgH68/b2jSvGTYJwkNXNpVJ3eklPLCazrwqMMz8Ttg qG5FPgzfbi0fdzWjdo1jYRCGIyrVVPnKwkDMNA/7RoELjxc5i7ziJjUOiHCQ/00BgYOB 02wyYFHywv8vboNttiurf7FHPEHhuopVkRin4vas14BerCICVtZkLta6nLPGjb7TnzEP +zaXEjwN32CcizUVJvRJdO1F+mG7FIY0Jvbo0ky5ZQAwsZ4xPRCAOiq97OsZD5K85mTP IDZw== X-Gm-Message-State: AOJu0Yws81UVVY1/cfJHmbMzToeLH5VDVkhLiycT6VQiJNxqK2TKx7rc kQVjUfXC6nCWamiKrEEdNi3erEuKAQhnaBa+uWB9l3r13hwlkzGlBIMYiSztFge9GTk7z+47eEp ohKHiG7k3hqdaGCyhcZcEsOFEQyg= X-Received: by 2002:a2e:beab:0:b0:2d0:5925:75 with SMTP id a43-20020a2ebeab000000b002d059250075mr346788ljr.37.1706576870869; Mon, 29 Jan 2024 17:07:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240124025947.2110659-1-nunes.erico@gmail.com> In-Reply-To: <20240124025947.2110659-1-nunes.erico@gmail.com> From: Qiang Yu Date: Tue, 30 Jan 2024 09:07:36 +0800 Message-ID: Subject: Re: [PATCH v2 0/8] drm/lima: fixes and improvements to error recovery To: Erico Nunes Cc: anarsoul@gmail.com, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Serial is Reviewed-by: QIang Yu On Wed, Jan 24, 2024 at 11:00=E2=80=AFAM Erico Nunes wrote: > > v1 reference: > https://patchwork.kernel.org/project/dri-devel/cover/20240117031212.11040= 34-1-nunes.erico@gmail.com/ > > Changes v1 -> v2: > - Dropped patch 1 which aimed to fix > https://gitlab.freedesktop.org/mesa/mesa/-/issues/8415 . > That will require more testing and an actual fix to the irq/timeout > handler race. It can be solved separately so I am deferring it to a > followup patch and keeping that issue open. > > - Added patches 2 and 4 to cover "reset time out" and bus stop bit to > hard reset in gp as well. > > - Added handling of all processors in synchronize_irq in patch 5 to > cover multiple pp. Dropped unnecessary duplicate fence in patch 5. > > - Added patch 7 in v2. After some discussion in patch 4 (v1), it seems > to be reasonable to bump our timeout value so that we further decrease > the chance of users actually hitting any of these timeouts by default. > > - Reworked patch 8 in v2. Since I broadened the work to not only focus > in pp anymore, I also included the change to the other blocks as well. > > - Collected some reviews and acks in unmodified patches. > > > Erico Nunes (8): > drm/lima: reset async_reset on pp hard reset > drm/lima: reset async_reset on gp hard reset > drm/lima: set pp bus_stop bit before hard reset > drm/lima: set gp bus_stop bit before hard reset > drm/lima: handle spurious timeouts due to high irq latency > drm/lima: remove guilty drm_sched context handling > drm/lima: increase default job timeout to 10s > drm/lima: standardize debug messages by ip name > > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > drivers/gpu/drm/lima/lima_ctx.h | 1 - > drivers/gpu/drm/lima/lima_gp.c | 39 +++++++++++++++++++++------- > drivers/gpu/drm/lima/lima_l2_cache.c | 6 +++-- > drivers/gpu/drm/lima/lima_mmu.c | 18 ++++++------- > drivers/gpu/drm/lima/lima_pmu.c | 3 ++- > drivers/gpu/drm/lima/lima_pp.c | 37 ++++++++++++++++++++------ > drivers/gpu/drm/lima/lima_sched.c | 38 ++++++++++++++++++++++----- > drivers/gpu/drm/lima/lima_sched.h | 3 +-- > 9 files changed, 107 insertions(+), 40 deletions(-) > > -- > 2.43.0 >