Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6422282pxb; Wed, 17 Feb 2021 04:17:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJztEEGuGioelwcuOI3NIJ/xVWv/w3yoyUXLCpytSpPERNHtdWfXK2ZoQGNpJmx5d/q+n7Eg X-Received: by 2002:a05:6402:4ce:: with SMTP id n14mr26077476edw.309.1613564245440; Wed, 17 Feb 2021 04:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613564245; cv=none; d=google.com; s=arc-20160816; b=W2dFRUpXuAwiaizifS0Pno2Iffv6O0xKwOEYE8aGABPoFI1SNpA0vWusC1PUmYAy4z f3hBSTQNbQ9hLmoOo2S8hNnAjhaMXv99eBoqeEfy7gwxsjTsa4tFmd77sZB/HlZCGt+L My9LfeVI1OUgvnLqRNnGdjAmL6NlmvzIqEg2LL5grmXInZ1YXKMtArwH9udwfRxKAsSG FEkPeBxSWTi/X7lzRgE9B221/S2Los6HB0eDtpDVa7lZLWcjNOeFKrNNNk023EgGpm1j 7/uEXuGVpZdFT/lm/pXyoelFC73ZrbuBOI9uXKuIbHwlK04oIfqnhZVdf9FQxLNVdbiF hE0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=e96sf8niGOYefv7gAX7Q8D0iOrwAGm0XHOit8ZKKqLE=; b=Tsc16jGkgrJHYUsjWtQG8/kuNkYU+z/p85M731kJSKwAydYaR+TfznrgYi95d9CRDZ np6/a+neMCpSxJHuFpHL5WOXi4GANhOjNEkwIyMmDgxGXqt5eBvlYc9COpezjM7MxZk+ ifUPpWzn08zKgHIp8cKx+hSk6a0qOKQzCWztKRzZUCk54+btbxCfGjmiU1E2DhsOPTHh xZ1VVxBc6Q19l4Y+mEXIwRqV3tK8KdoHqTncmwjeUy4nIg3v6huU8jr4sxFZILDH2Cbk TEX3o32kU1/BpLSbeLnyQDQqG0/PGhdOWoDmFbPTH6YRWjSEBw0ZoZbryuuigOeBFixG KGpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kg13si407692ejc.670.2021.02.17.04.17.00; Wed, 17 Feb 2021 04:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231630AbhBQMPe (ORCPT + 99 others); Wed, 17 Feb 2021 07:15:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:50566 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbhBQMPc (ORCPT ); Wed, 17 Feb 2021 07:15:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 04A97B958; Wed, 17 Feb 2021 12:14:50 +0000 (UTC) Subject: Re: [PATCH v9 0/4] Add %p4cc printk modifier for V4L2 and DRM fourcc codes To: Sakari Ailus , dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org, Petr Mladek , Dave Stevenson , hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, mchehab@kernel.org, Sergey Senozhatsky , Steven Rostedt , Joe Perches , Jani Nikula , Rasmus Villemoes , Daniel Vetter References: <20210216155723.17109-1-sakari.ailus@linux.intel.com> From: Thomas Zimmermann Message-ID: <9e279133-298d-433f-0694-5366861a6dbe@suse.de> Date: Wed, 17 Feb 2021 13:14:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210216155723.17109-1-sakari.ailus@linux.intel.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HyUqrLrN2TqE8TEiCzyyAR5yf6EjGYvi5" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HyUqrLrN2TqE8TEiCzyyAR5yf6EjGYvi5 Content-Type: multipart/mixed; boundary="2duiza1Wx6GqImBjDmg8HnMhbYyED8yYa"; protected-headers="v1" From: Thomas Zimmermann To: Sakari Ailus , dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org, Petr Mladek , Dave Stevenson , hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, mchehab@kernel.org, Sergey Senozhatsky , Steven Rostedt , Joe Perches , Jani Nikula , Rasmus Villemoes , Daniel Vetter Message-ID: <9e279133-298d-433f-0694-5366861a6dbe@suse.de> Subject: Re: [PATCH v9 0/4] Add %p4cc printk modifier for V4L2 and DRM fourcc codes References: <20210216155723.17109-1-sakari.ailus@linux.intel.com> In-Reply-To: <20210216155723.17109-1-sakari.ailus@linux.intel.com> --2duiza1Wx6GqImBjDmg8HnMhbYyED8yYa Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 16.02.21 um 16:57 schrieb Sakari Ailus: > Hi all, >=20 > On merging --- it would seem everyone is happy with merging this > through the drm-misc tree. The last patch should wait until all > users are gone for sure, probably to the next kernel release. > There are no users of drm_get_format_name() in linux-next > currently after the 3rd patch. I've merged patches 1 to 3 into drm-misc-next. Patch 4 (and maybe some=20 final fix-up patch) will land when all DRM trees have catched up the=20 changes. Best regards Thomas >=20 > This set adds support for %p4cc printk modifier for printing V4L2 and D= RM > fourcc codes. The codes are cumbersome to print manually and by adding = the > modifier, this task is saved from the V4L2 and DRM frameworks as well a= s > related drivers. DRM actually had it handled in a way (see 3rd patch) b= ut > the printk modifier makes printing the format easier even there. On V4L= 2 > side it saves quite a few lines of repeating different implementations = of > printing the 4cc codes. >=20 > Further work will include converting the V4L2 drivers doing the same. I= > left these out from this version since individual drivers are easier > changed without dealing with multiple trees. >=20 > Since v8: >=20 > - Reduce ternary conditionals in intel_plane_uapi_info(). >=20 > - Wrap a long line in intel_plane_hw_info(). >=20 > Since v7: >=20 > - Add more examples, one with big endian and another with a space. >=20 > - Add Y10 test format. >=20 > - Use "0123" in the size string for temporary buffer. >=20 > - Added acks. >=20 > - Split the 3rd patch into two: driver changes and removal of > drm_get_format_name(). >=20 > Since v6: >=20 > - Don't drop spaces in fourcc codes. >=20 > - Print unprintable characters as dot ('.') instead of hexadecimal numb= er > in parentheses. >=20 > - Convert DRM from drm_get_format_name() to %p4cc. I wonder if this sho= uld > be merged through the DRM tree, albeit it's probably unlikely to > conflict with other changes. Further use of the function could be a > problem. >=20 > - Make tests more realistic. >=20 > Since v5: >=20 > - Added V4L2 core conversion to %p4cc, as well as change the DRM > fourcc printing function to use %p4cc. >=20 > - Add missing checkpatch.pl checks for %p4cc modifier. >=20 > Sakari Ailus (4): > lib/vsprintf: Add support for printing V4L2 and DRM fourccs > v4l: ioctl: Use %p4cc printk modifier to print FourCC codes > drm: Switch to %p4cc format modifier > drm: Remove drm_get_format_name() >=20 > Documentation/core-api/printk-formats.rst | 18 ++++ > drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 5 +- > drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 5 +- > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 5 +- > drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 5 +- > .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +- > .../arm/display/komeda/komeda_format_caps.h | 11 --- > .../arm/display/komeda/komeda_framebuffer.c | 4 +- > .../gpu/drm/arm/display/komeda/komeda_plane.c | 6 +- > drivers/gpu/drm/arm/malidp_mw.c | 7 +- > drivers/gpu/drm/drm_atomic.c | 8 +- > drivers/gpu/drm/drm_crtc.c | 7 +- > drivers/gpu/drm/drm_fourcc.c | 25 ------ > drivers/gpu/drm/drm_framebuffer.c | 11 +-- > drivers/gpu/drm/drm_mipi_dbi.c | 5 +- > drivers/gpu/drm/drm_plane.c | 8 +- > .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 5 +- > drivers/gpu/drm/i915/display/intel_display.c | 14 +-- > .../drm/i915/display/intel_display_debugfs.c | 19 ++--- > drivers/gpu/drm/i915/display/intel_sprite.c | 6 +- > drivers/gpu/drm/mcde/mcde_display.c | 6 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 6 +- > drivers/gpu/drm/nouveau/nouveau_display.c | 9 +- > drivers/gpu/drm/radeon/atombios_crtc.c | 10 +-- > drivers/gpu/drm/sun4i/sun4i_backend.c | 6 +- > drivers/gpu/drm/vkms/vkms_writeback.c | 7 +- > drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 15 ++-- > drivers/media/v4l2-core/v4l2-ioctl.c | 85 +++++-------------= - > include/drm/drm_fourcc.h | 1 - > lib/test_printf.c | 18 ++++ > lib/vsprintf.c | 39 +++++++++ > scripts/checkpatch.pl | 6 +- > 32 files changed, 164 insertions(+), 223 deletions(-) >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --2duiza1Wx6GqImBjDmg8HnMhbYyED8yYa-- --HyUqrLrN2TqE8TEiCzyyAR5yf6EjGYvi5 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF4BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmAtCLMFAwAAAAAACgkQlh/E3EQov+AY kw/3RFAkt2XQW6AGXYNJcGJ4bdXzGbp1aJ/k0FyEiHaoP5GuXFnJnGizaOfdRn+BG7J2moOYhU9u L3HCZpaWW7zGWd96gC8tw81685lf5eNFNHzFll7To8/bipzSuObsBU02WkGLgj7PGBJaoR206u9e SlWCWxlOFK9iQO+CT5Jfx3YzlW0FzHiuJwCMgZJhn7jqhPyHNtP2TdJPcLhmtERrFk4ZD4TgiLSK ReHmugCGUywD397rcFIg1FD5hYM9/QLchNX2mPP9B75l4Cbk/DuhnPOvnGzD8ccL5J94CaRthdeH EkjCeO+03A8hOCOP8p4382LMeVI723FzsrmI+GHJNhez6Vav7eEsFsVroWUlmSr8u4ZP1TTwtHaf APnm00Qt8sqb0ParG5spKT7eMjYIfa34VvgLnHzGjyM6C/Nhxkzj2Ll/a17staqR6NmIdnERlgvB 7G+SpGpReLQRMLb6jGn4dF2cHaX6Dp5BmYWb9etnMf5otJzGU1KQ71JaNqqt4ySi4fhmELdJNyGU bdYIjcTYD9D2IuBxamAvWN6AQ5emllmgW+uPHuMMI+zWx3KP43RMYOa6mXdqK2KjjMPdGM299xdC 1Wx983c0iMswmAAI/8DFJA5KNgJ/svA/t+SAEEfwPL/+KDE0K6M5KCpYvQMkr5gzmxUoeNjPNBix 0w== =fadD -----END PGP SIGNATURE----- --HyUqrLrN2TqE8TEiCzyyAR5yf6EjGYvi5--