Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1358878rdb; Mon, 2 Oct 2023 07:18:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJpUEc+FmiWJwaVR6L/KVkLgFWd4f9FyP8qLNkUNaxdx0IJjXu4VjQimkJvofUKZ3UyaM1 X-Received: by 2002:a05:6a21:66cb:b0:160:ec7e:ec07 with SMTP id ze11-20020a056a2166cb00b00160ec7eec07mr10607097pzb.58.1696256301297; Mon, 02 Oct 2023 07:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696256301; cv=none; d=google.com; s=arc-20160816; b=ydQWDH5cBfVJe/o0bhJ+hO9AsVIOAgv2Agx7divL4S//Rnj9zLVxoWfDZyxUCs3Ob2 uObPB97GSaCH4sTbFnluOAkwtyphSgRz+9BmPeUp/T3lkVRM4Nekcwaxc4cVd32nZbjS 9vZWleKk7MBxpMLXYByTlsax0e4QtAoDD0ILlxxz/Wei1BKANF5dkM99MDrfDrHDsHTv l+gs3zoWIpyNuU5IUhB4UIfo9tzV6VYNq5QY+Ior2crz4rkRAQOeT/clCbLWMK6nARq3 xorDo08gXaJphmgDCmhVaR444MJ9OreSCAWpo8rsxxb4JZlFovrnLU98nHs4UIzflr/R do9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=3MowVRzXm2YmsrA98gyFla3NvwCXHpDETpA/BOhEMPU=; fh=150bCRYE4pnvVAaqA+6Z4x2qDpC+Bm9GOI9fvDN/140=; b=TrpJoj90T5arAt3yjjq4zqErlHGxkWVRefSI4bLbD0Vdl+bR6AyovS5ncDh2wW9vU4 50S7re1uxFIoS8W9H4BchexLqXLDT/OOZd4X49EhUtfV7gppFkwABXSGqwq0tVcZR9jA QYJA9wA5BA7YlpX0PUCAi4oh2R7vJRmlbO/HCBkmkKLcruq5RFG3P4s5meuBw0IRhOgk ZTfQsHCfgeGkAcR929VTL+ZVxTR++Dga0pEiWQO/EmKhufaRh6+wm3pwNLv2agcMv+lV RMW/OP8osjbH4Y7MDIWzd61nMJZ/Sog5xZqys8GkMhfocpMfwBDqMatcTk3Bu82Fhb7b 8BYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gAI7FKDc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=99oP8Anv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i21-20020a056a00225500b0068a6f573f6asi26289805pfu.213.2023.10.02.07.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 07:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gAI7FKDc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=99oP8Anv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3A803807453F; Mon, 2 Oct 2023 02:46:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236095AbjJBJpy (ORCPT + 99 others); Mon, 2 Oct 2023 05:45:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236216AbjJBJpx (ORCPT ); Mon, 2 Oct 2023 05:45:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C23FBD; Mon, 2 Oct 2023 02:45:50 -0700 (PDT) Date: Mon, 2 Oct 2023 11:45:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696239949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3MowVRzXm2YmsrA98gyFla3NvwCXHpDETpA/BOhEMPU=; b=gAI7FKDcl7edDdPfBzsFVSpJc34CmE9A+nAyBWxAOAPTtFaYvtU6dPe6TjFh3IK61fI6AU yFLYeDKGq4oABD0TmyTJP6tAjciizmVA23pTzFliygN+OKhuj4isj46Oqi/wx5xhY5FGq9 pAWvJZ2Op8sf8lG4yjSkKEdFA+kIgF3xEhCj8qJY4Qfi18u5cIN1bl1gzmO0NF2OM7aHcf Q0bCgm+PBUFMpjvkf14JokGkx1fq3/8rAvoQG1RXNVX7azDY3GBcAy/VarkfsU9uNWYOhF 3qPX/vGFD2BWVgE65wSiz4AC1gCAd9uHAlaV6nBZ6zGzLelbHbSBB8FPDgFUCw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696239949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3MowVRzXm2YmsrA98gyFla3NvwCXHpDETpA/BOhEMPU=; b=99oP8AnvLnyr5rF47HaRFQOrD+W0yp/XmL++TI5qSNa4Jlmv58Hqr70lTIliUVnFQAyCby HlPX71sSM3K7O3Bw== From: Sebastian Andrzej Siewior To: "John B. Wyatt IV" Cc: linux-rt-users@vger.kernel.org, LKML , kernel-rts-sst , jlelli@redhat.com Subject: Re: Crash with 6.6.0-rc1-rt1 and several i915 locking call traces with v6.5.2-rt8 and gnome-shell on Alder Lake laptop Message-ID: References: <20230922110720.AZ03l3A9@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 02:46:00 -0700 (PDT) On 2023-09-29 04:43:32 [-0400], John B. Wyatt IV wrote: > For stock (non-rt) I do not see it with 6.6-rc2. This was compiled > with the Stream 9 debug config. >=20 > I was able to reproduce similar call traces once I tested again > with 6.6-rc3-rt5 at [4] and [5]. >=20 > What would be the best way to determine if the warning is wrongly > triggered? I looked at the traces in this email and they originate from a might_sleep() in guc_context_set_prio(). The reason is that they check at the atomic/interrupt state to figure out if they can sleep or not. Both checks don't work on RT as intended and the former has a not to not be used in drivers=E2=80=A6 The snippet below should cure this. Could you test, please. Sebastian diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.h b/drivers/gpu/drm/i915/= gt/uc/intel_guc.h index 8dc291ff00935..5b8d084c9c58c 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc.h +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc.h @@ -317,7 +317,7 @@ static inline int intel_guc_send_busy_loop(struct intel= _guc *guc, { int err; unsigned int sleep_period_ms =3D 1; - bool not_atomic =3D !in_atomic() && !irqs_disabled(); + bool not_atomic =3D !in_atomic() && !irqs_disabled() && !rcu_preempt_dept= h(); =20 /* * FIXME: Have caller pass in if we are in an atomic context to avoid