Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1381802rbb; Mon, 26 Feb 2024 07:36:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVq6YDD16jRXPVEQtbTsJzndkTr1UHeYWtrM/Po+JlbyIGEy/v6XPxP3LTkx43+YOIS4A2ai9GI+rrxCELD5F0+7MI+16z0X2sW0rER0w== X-Google-Smtp-Source: AGHT+IHS4a1NjBmZ3rb841hKyJM6fyMWglxJqYEQv6hBl9RAQb3/vAPrabMz/jbpMjcuvy3pkkCF X-Received: by 2002:a05:6214:20e3:b0:68f:eca7:2ee4 with SMTP id 3-20020a05621420e300b0068feca72ee4mr8604743qvk.20.1708961777449; Mon, 26 Feb 2024 07:36:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708961777; cv=pass; d=google.com; s=arc-20160816; b=pXH1UJtD6ao8NisaPrAf0C4iW5siaO9qZtbULZMaYwc+p10mHWRfBxOGII0p/pR0C4 gnKr16g+HZqN+m9OB+GRTU7zQ4oEjWsAkIFvCCRj1lKJ66hKB2yIGWNMZUvsU4dyFRTf 6DtnK3taaQTTwD324ybfBVyB0ybtoF+Nab4XL3XczqQ87PcfLm+upyOy5NlxBG1YOHK0 hfX8VHu3l40KUQCiXqQ0c5FmQhKrYaL1PsYtz3jeUuTSr/uqSW1sz7MkwhE+59L9X4PS LyOk8l5sHbdiZIvL+gO0NSb44Gau9Z9uqwGVQWqQ4TWjt/H0VNgqU4ArjGC+Vt1R6UMl af9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=DEFsTQYOxQB1RzK8jxBp8lvN1PzPps/TqPk/AWNcRnQ=; fh=Mt+wSeSBK5TBQ4GHbdyQYZ9muh4pVSQj9BbFSozFf0U=; b=KWVqWv5wLpKBViLgMWhBoLTw2S9WuVL6PQOh6X6HbKUgbXhwNMvcCCspfUkA5DZtBm 82MjBA4McD5QBJLRfS0IptZ4TFYMc663RJRzhO9r0BfL59LMnrBSH/qF347TZ6x7+Vq5 K/MbEFZIOUcjl4YflfcK9dMHffRS0gOwTZ3LNiiCWpBEwtpyA/RKHhEzcoOewYWvDBPy 2dLkcW9DYGh0/0ejf21T/zRnmPBJckasiDGvjB3HOjFDxSy2EtV9aCu5BclRnQ5PQ5Sr q11xZYTcMdtsUsYiSKmvItWldqPUVISIs3uvJ+QuM4YT8/isx5yINdzdgRmCiUwjXHtG RuyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GEv905fr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kk5-20020a056214508500b0068f8d23a983si5336108qvb.549.2024.02.26.07.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:36:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GEv905fr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 79A381C28606 for ; Mon, 26 Feb 2024 15:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37F5612B15B; Mon, 26 Feb 2024 15:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GEv905fr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CD2D12B153 for ; Mon, 26 Feb 2024 15:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708961757; cv=none; b=NPGqXcoYwB9aumtN9Hh+ZwIG6jQFSlbhsB1WO4YdhV5RkIGQiK7Gj7rGZPTFgAyrkbUVhuH3WoM+mGcigWyYGaEM6DIpRhRTOWmwvWvHI+V4RIqUzef0hHKRcKlVBJ508wSlwBjf2AG+AkljoHwXGKpqL8PccVWzfHBAJXGnV2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708961757; c=relaxed/simple; bh=DEFsTQYOxQB1RzK8jxBp8lvN1PzPps/TqPk/AWNcRnQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fKL5iWeDMoPaFpZbVFJtI9GcM8JHYsngyMMtUdvmReqC9MwT5vmZV8Nrc/WX+0kpAUbwwzAdO8CLxzlWcD3igSEfra0QAddoCwOGmxPIZlAYIbQURfBlWJxIwoNZ1/KdDg3NdfC0L6woyB8tAyJkArTzPzx5TxphifCFxe3Y970= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GEv905fr; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708961755; x=1740497755; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=DEFsTQYOxQB1RzK8jxBp8lvN1PzPps/TqPk/AWNcRnQ=; b=GEv905freVQyNS3OtTO3sWblzDzOpjUUiu1x0r/jLcUTQA44sAl+4DrY gO1/yM0B9YEvEC+U+LX76V0UHwjv4yRr0GPTC+cuMNYW0bJL/qsNikV8Z GYAJfhE46VmIiVCKv4hC6TF8DznMMGIib9AZTvkRdpB2+2tdKFxu1QXLa 9rjYOWtBk/OR3nZHQMXcNIQBsPfHRWqlyaz4MwGBA+68AvhGxcXsb13vm SudWFqBjqOFTD49Thd4l7KeGVMfQHMA0aIQvujf0lLCn3w5xw0n5V+Lh5 GS20wiCv+PHVhZ3INkum2mLw/Z7iqGf7YkFju+5gf49yESI4XFd4EweMl g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3417046" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="3417046" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 07:35:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="6579940" Received: from hibeid-mobl.amr.corp.intel.com (HELO localhost) ([10.252.46.254]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 07:35:51 -0800 From: Jani Nikula To: Andy Shevchenko Cc: Ville =?utf-8?B?U3lyasOkbMOk?= , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/12] drm/i915: Indicate which pipe failed the fastset check overall In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240215164055.30585-1-ville.syrjala@linux.intel.com> <20240215164055.30585-2-ville.syrjala@linux.intel.com> <87bk83mfwp.fsf@intel.com> Date: Mon, 26 Feb 2024 17:35:51 +0200 Message-ID: <878r37me5k.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 26 Feb 2024, Andy Shevchenko wr= ote: > On Mon, Feb 26, 2024 at 04:57:58PM +0200, Jani Nikula wrote: >> On Fri, 23 Feb 2024, Ville Syrj=C3=A4l=C3=A4 wrote: >> > On Thu, Feb 22, 2024 at 04:46:12PM -0500, Rodrigo Vivi wrote: > > ... > >> > I think the proper solution would be to have actually >> > sensible conversion specifiers in the format string. >> > So instead of % we'd have something >> > more like %{drm_crtc} (or whatever color you want to throw >> > on that particular bikeshed). >>=20 >> Personally I suck at remembering even the standard printf conversion >> specifiers, let alone all the kernel extensions. I basically have to >> look them up every time. I'd really love some %{name} format for named >> pointer things. And indeed preferrably without the %p. Just %{name}. > > It will become something like %{name[:subextensions]}, where subextensions > is what we now have with different letters/numbers after %pX (X is a lett= er > which you proposed to have written as name AFAIU). Thanks, I appreciate it, a lot! But could you perhaps try to go with just clean %{name} only instead of adding [:subextensions] right away, please? I presume the suggestion comes from an implementation detail, and I guess it would be handy to reuse the current implementation for subextension. For example, %pb -> %{bitmap} and %pbl -> %{bitmap:l}. But really I think the better option would be for the latter to become, say, %{bitmap-list}. The goal here is to make them easy to remember and understand, without resorting to looking up the documentation! BR, Jani. > >> And then we could discuss adding support for drm specific things. I >> guess one downside is that the functions to do this would have to be in >> vsprintf.c instead of drm. Unless we add some code in drm for this >> that's always built-in. --=20 Jani Nikula, Intel