Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp184915rdb; Sun, 14 Jan 2024 12:00:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsZCb4PXY31pOcp9ERlROQmGT2vW2pidfbBCP2v2R6dY/f1pFzGs//YU6HPcwEMrhdirHv X-Received: by 2002:a05:6402:1248:b0:559:351e:231d with SMTP id l8-20020a056402124800b00559351e231dmr302930edw.127.1705262431189; Sun, 14 Jan 2024 12:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705262431; cv=none; d=google.com; s=arc-20160816; b=p8YKkf6pRJTq7DLS3aOnEucIkITeEpu/ct3IDLf2g/dA6cUfhOoDXRb61bb8vQEjHV BW5NlBI+HwAoaBeaGySFmUPbGA2mGqOCy24oGrk1a9WNPZ4+2KxE7AcgvhLH5+9iK/vM MVdZ1/vT/hGGf44rH6ATk9wuWX6GTkIuL2bYrQn115tdp31hPsxE1NdEONRMUPoNhErE p6BHADqBKREQ/HCctkAf+hHgVs9m/hoSPuPj7GGovQ/77n1td1ImXoIJznV6mxXSS8ki BVtfQrm1IDEUUYb6xv3+grbGp7dl5ZPBWOSGDXmCz/yhMUKVMgV0HpUrvB/feN0a0iC6 4QMQ== ARC-Message-Signature: i=1; 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=CKAoT//lfLk6SjlnkLN+BWJ10tifSyl6cjyoqrMbL/c=; fh=HmQ6Duuo02t/hbtsIGWb+3DxTxXoWs6E0n9y79FDwMw=; b=NiSTeKhtuMOvnwiGb/QOM9f1Uk5bYzBlHOG7ocRYd8c1/mA1JHYxGfoodMVww6Zg8M GezU53Sy3dYszx4TE+t9W5QjU/OZynyHhqooKVFsLPjglyHZZqqjITK0SMDJj6Mi4Hti yyKZ29Y8TLNsyrExHhKvkq5Z5vUJzN4wfFjmWwXlkXSrO4bbjWX1vDHuY/T4LQXMeCBy e4WlAh4x9gcRGsNq8qcQDbiXrGUR4cD7Lo2/tECLofmfGFPOY1tDFFZn8kVo7A9G7uW0 ZF7ha4x7hw7K2/upXq+9OrMJE4/HV4XJs71KFabolhjM8TYth+BW+IZrFJkp6Ch8Z8mX mVmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bhqkIyud; spf=pass (google.com: domain of linux-kernel+bounces-25536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25536-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 el15-20020a056402360f00b005591feee3b1si879037edb.510.2024.01.14.12.00.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 12:00:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25536-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=bhqkIyud; spf=pass (google.com: domain of linux-kernel+bounces-25536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25536-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 EB5721F21509 for ; Sun, 14 Jan 2024 20:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEF96168B7; Sun, 14 Jan 2024 20:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bhqkIyud" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 9053B168A4 for ; Sun, 14 Jan 2024 20:00:19 +0000 (UTC) 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so953341866b.2 for ; Sun, 14 Jan 2024 12:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705262418; x=1705867218; 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=CKAoT//lfLk6SjlnkLN+BWJ10tifSyl6cjyoqrMbL/c=; b=bhqkIyudlMR/O3YDjgsb9aNWAAPSxFNn4aCFAvYDgPSZCbMaRVRn48Xt8tHnVBcLqz 69NBCGWJWtCmqRh5aZTj2b/vzS5yhq+tj9AHCPW0ucr5FxkqeNsj2PtfSQnZnjZUwDgb 5Q0TNpP7wmjIaX9AU0lLR3UWX7FvrQWVLNyi5BOL1ch2WHRbABxL4MpeI6OzZ57A6plh igrUrJNwfgYFBkvEWfr5UChnyqJIKUN7lkhEdNNK3j36sEKoyP1MpZLX0lrFyKSyHjzZ Zi7N0xlorKCNmt2INqPG10bnsS0dmwQL7g1ntH3frC9RmljZtqpQVJsAlUBrk0VWUBT0 Rc+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705262418; x=1705867218; 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=CKAoT//lfLk6SjlnkLN+BWJ10tifSyl6cjyoqrMbL/c=; b=XnOKhBnjZWXSr325yDW/tVD0Y2vzZqzXXbzUjbIXsTXblMOpXUKWH/LLRmh3KAWoRE pex5sVX7y+SiWyx46alOe2jqoZQkxlud6GXlh85vIp+9OkYZpTgMdfnt222yP2VDeNEF rCghR27dIbTjXIvZirtDW56d0VLv7Ecth2b9C6Qtr09XLBV80eJ+6y4xnAYST7d1VCad NXC+TDTNXPNe6T7FZqSitxkpHkNM+4l9Vkh7oUKRgmxVOLB7bc/6rynEWPDoRtybmpeM 5lVD07vLWcegW+R6GEt0O6SpLXRSsnn16BRiHKliOsLbRWU2E4atgyiqxw3b/vY/c00D EuGQ== X-Gm-Message-State: AOJu0Yz8W4c4IHMZaCtCgdr7e+N2oCmvHvoFBqeKcG/lrSr69S1KVa/F pgxHSyP0G68xG32PTML+s+BsxIQUH3SksPGF9wxjsrkMY2w= X-Received: by 2002:a17:906:ee8d:b0:a2a:ef4e:e352 with SMTP id wt13-20020a170906ee8d00b00a2aef4ee352mr1740238ejb.108.1705262417480; Sun, 14 Jan 2024 12:00:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Dave Airlie Date: Mon, 15 Jan 2024 06:00:05 +1000 Message-ID: Subject: Re: [git pull] drm for 6.8 To: Linus Torvalds Cc: Daniel Vetter , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 13 Jan 2024 at 05:33, Linus Torvalds wrote: > > On Wed, 10 Jan 2024 at 11:49, Dave Airlie wrote: > > > > Let me know if there are any issues, > > Your testing is seriously lacking. > > This doesn't even build. The reason seems to be that commit > b49e894c3fd8 ("drm/i915: Replace custom intel runtime_pm tracker with > ref_tracker library") changed the 'intel_wakeref_t' type from a > 'depot_stack_handle_t' to 'unsigned long', and as a result did this: > > - drm_dbg(&i915->drm, "async_put_wakeref %u\n", > + drm_dbg(&i915->drm, "async_put_wakeref %lu\n", > power_domains->async_put_wakeref); > > meanwhile, the Xe driver has this: > > drivers/gpu/drm/xe/compat-i915-headers/intel_wakeref.h: > typedef bool intel_wakeref_t; > > which has never been valid, but now the build fails with This was a bad cross of trees, the fix was in a pull request in my inbox about an hour after I sent the PR, it just wasn't marked urgent and it passes all my usual test builds. It turns out there is a Kconfig bug without EXPERT that was masking this in my builds, hope to get that fix in soon. > > drivers/gpu/drm/i915/display/intel_display_power.c: In function > =E2=80=98print_async_put_domains_state=E2=80=99: > drivers/gpu/drm/i915/display/intel_display_power.c:408:29: error: > format =E2=80=98%lu=E2=80=99 expects argument of type =E2=80=98long unsig= ned int=E2=80=99, but > argument 5 has type =E2=80=98int=E2=80=99 [-Werror=3Dformat=3D] > > because the drm header files have this disgusting thing where a > *header* file includes a *C* file: > > In file included from ./include/drm/drm_mm.h:51, > from drivers/gpu/drm/xe/xe_bo_types.h:11, > from drivers/gpu/drm/xe/xe_bo.h:11, > from > ./drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h:11, > from ./drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h= :15, > from drivers/gpu/drm/i915/display/intel_display_power.c:= 8: > > nasty. > > I made it build by fixing that broken Xe compat header file, but this > is definitely *NOT* how things should have worked. How did this ever > get to me without any kind of build testing? > > And why the %^!@$% does a header file include a C file? That's wrong > regardless of this bug. Huh? display_power.c includes i915_drv.h includes i915_gem_object.h include xe_bo.h include xe_bo_types.h include drm_mm.h? I'm not seeing the c in h, you reading that backtrace correctly? It was built test in a few scenarios by different people and in CI, but it does appear the Kconfig screwup was masking people from seeing the actual bug. We had a report a few days ago and a fix was posted, just not marked as urgent and since I never saw the build fails here I didn't escalate it. Dave.