[PATCH v3 1/2] drm: Add fixed-point helper to get rounded integer values

2023-05-12 Thread Maíra Canal
Create a new fixed-point helper to allow us to return the rounded value of our fixed point value. [v2]: * Create the function drm_fixp2int_round() (Melissa Wen). [v3]: * Use drm_fixp2int() instead of shifting manually (Arthur Grillo). Signed-off-by: Maíra Canal ---

Re: [PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Sam Ravnborg
Hi Thomas, On Fri, May 12, 2023 at 10:41:41AM +0200, Thomas Zimmermann wrote: > DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() > and fb_sys_() helpers. The DRM functions don't provide any additional > functionality for most DRM drivers. So remove them and call the fbdev >

[PATCH v7 2/7] fbdev/matrox: Remove trailing whitespaces

2023-05-12 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Arnd Bergmann Reviewed-by: Sam Ravnborg Reviewed-by: Sui Jingfeng Tested-by: Sui Jingfeng --- drivers/video/fbdev/matrox/matroxfb_accel.c | 6 +++--- drivers/video/fbdev/matrox/matroxfb_base.h | 4 ++--

[PATCH v7 7/7] fbdev: Rename fb_mem*() helpers

2023-05-12 Thread Thomas Zimmermann
Update the names of the fb_mem*() helpers to be consistent with their regular counterparts. Hence, fb_memset() now becomes fb_memset_io(), fb_memcpy_fromfb() now becomes fb_memcpy_fromio() and fb_memcpy_tofb() becomes fb_memcpy_toio(). No functional changes. v6: * update new file

[PATCH v7 6/7] fbdev: Move framebuffer I/O helpers into

2023-05-12 Thread Thomas Zimmermann
Implement framebuffer I/O helpers, such as fb_read*() and fb_write*(), in the architecture's header file or the generic one. The common case has been the use of regular I/O functions, such as __raw_readb() or memset_io(). A few architectures used plain system- memory reads and writes. Sparc used

[PATCH v7 4/7] fbdev: Include in various drivers

2023-05-12 Thread Thomas Zimmermann
The code uses writel() and similar I/O-memory helpers. Include the header file to get the declarations. Signed-off-by: Thomas Zimmermann Reviewed-by: Arnd Bergmann Reviewed-by: Sam Ravnborg Reviewed-by: Sui Jingfeng --- drivers/video/fbdev/arcfb.c | 1 + drivers/video/fbdev/aty/atyfb.h

[PATCH v7 5/7] fbdev: Include instead of

2023-05-12 Thread Thomas Zimmermann
Replace include statements for with . Fixes the coding style: if a header is available in asm/ and linux/, it is preferable to include the header from linux/. This only affects a few source files, most of which already include . Suggested-by: Sam Ravnborg Signed-off-by: Thomas Zimmermann

[PATCH v7 3/7] ipu-v3: Include

2023-05-12 Thread Thomas Zimmermann
The code uses readl() and writel(). Include the header file to get the declarations. Signed-off-by: Thomas Zimmermann Reviewed-by: Arnd Bergmann Reviewed-by: Sam Ravnborg Reviewed-by: Sui Jingfeng --- drivers/gpu/ipu-v3/ipu-prv.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v7 0/7] fbdev: Move framebuffer I/O helpers to

2023-05-12 Thread Thomas Zimmermann
Fbdev provides helpers for framebuffer I/O, such as fb_readl(), fb_writel() or fb_memcpy_to_fb(). The implementation of each helper depends on the architecture, but they are all equivalent to regular I/O functions of similar names. So use regular functions instead and move all helpers into The

[PATCH v7 1/7] fbdev/hitfb: Cast I/O offset to address

2023-05-12 Thread Thomas Zimmermann
Cast I/O offsets to pointers to use them with I/O functions. The I/O functions expect pointers of type 'volatile void __iomem *', but the offsets are plain integers. Build warnings are ../drivers/video/fbdev/hitfb.c: In function 'hitfb_accel_wait': ../arch/x86/include/asm/hd64461.h:18:33:

Re: [Intel-gfx] [PATCH] drm/i1915/guc: Fix probe injection CI failures after recent change

2023-05-12 Thread Andi Shyti
Hi John, On Wed, May 10, 2023 at 01:55:56PM -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > A recent change bumped a 'notice' message up to 'error' level for > debug builds to help trap incorrect configurations in CI systems. > Unfortunaetly, tha error condition in question is

Re: [PATCH v6 1/6] fbdev/matrox: Remove trailing whitespaces

2023-05-12 Thread Finn Thain
On Thu, 11 May 2023, Thomas Zimmermann wrote: > But I'd really like to see most of these drivers being moved into > staging and deleted soon afterwards. Users will complain about those > drivers that are really still required. Those might be worth to spend > effort on. > That strategy is not

[PATCH v2 10/10] include: synclink: Replace GPL license notice with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Replace unversioned GPL license notice with appropriate SPDX identifier, which is GPL 1.0+. Reviewed-by: Simon Horman Signed-off-by: Bagas Sanjaya --- include/linux/synclink.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/synclink.h

[PATCH v2 07/10] drivers: staging: wlan-ng: Remove GPL/MPL boilerplate

2023-05-12 Thread Bagas Sanjaya
Remove the license boilerplate as there is already SPDX license identifier added in b24413180f5600 ("License cleanup: add SPDX GPL-2.0 license identifier to files with no license") which fulfills the same intention as the boilerplate. Cc: Dan Carpenter Cc: Kate Stewart Cc: Philippe Ombredanne

[PATCH v2 05/10] net: ethernet: i825xx: Replace GPL boilerplate with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Replace unversioned GPL boilerplate notice on remaining i825xx files with appropriate SPDX identifier. For files that contains "extension to Linux kernel", use GPL 2.0, otherwise GPL 1.0+. Cc: Donald Becker Cc: Michael Hipp Cc: Richard Hirst Cc: Sam Creasey Reviewed-by: Simon Horman

[PATCH v2 08/10] drivers: watchdog: Replace GPL license notice with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Many watchdog drivers's source files has already SPDX license identifier, while some remaining doesn't. Convert notices on remaining files to SPDX identifier. While at it, also move SPDX identifier for drivers/watchdog/rtd119x_wdt.c to the top of file (as in other files). Cc: Ray Lehtiniemi Cc:

[PATCH v2 09/10] udf: Replace license notice with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Except Kconfig and Makefile, all source files for UDF filesystem doesn't bear SPDX license identifier. Add appropriate license identifier while replacing boilerplates. Cc: Thomas Gleixner Cc: Pali Rohár Reviewed-by: Simon Horman Signed-off-by: Bagas Sanjaya --- tglx, in your patch attempt [1]

[PATCH v2 06/10] pcmcia: Add SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Add SPDX identifier on remaining files untouched during previous rounds of SPDX conversion while replacing boilerplate notice if any. Cc: Maxime Bizon Cc: David A. Hinds Cc: John G. Dorsey Reviewed-by: Simon Horman Signed-off-by: Bagas Sanjaya --- drivers/pcmcia/bcm63xx_pcmcia.c | 5 +

[PATCH v2 04/10] net: ethernet: 8390: Replace GPL boilerplate with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Replace GPL boilerplate notice on remaining files with appropriate SPDX tag. For files mentioning COPYING, use GPL 2.0; otherwise GPL 1.0+. Cc: David A. Hinds Cc: Donald Becker Cc: Peter De Schrijver Cc: Topi Kanerva Cc: Alain Malek Cc: Bruce Abbott Cc: Alan Cox Acked-by: Greg Ungerer

[PATCH v2 00/10] Treewide GPL SPDX conversion and cleanup (in response to Didi's GPL full name fixes)

2023-05-12 Thread Bagas Sanjaya
I trigger this patch series as a response to Didi's GPL full name fix patches [1], for which all of them had been NAKed. In many cases, the appropriate correction is to use SPDX license identifier instead. Often, when replacing license notice boilerplates with their equivalent SPDX identifier,

[PATCH v2 03/10] net: bonding: Add SPDX identifier to remaining files

2023-05-12 Thread Bagas Sanjaya
Previous batches of SPDX conversion missed bond_main.c and bonding_priv.h because these files doesn't mention intended GPL version. Add SPDX identifier to these files, assuming GPL 1.0+. Cc: Thomas Davis Cc: Christophe JAILLET Cc: Stephen Hemminger Reviewed-by: Simon Horman Signed-off-by:

[PATCH v2 01/10] agp/amd64: Remove GPL distribution notice

2023-05-12 Thread Bagas Sanjaya
There is already SPDX tag which does the job, so remove the redundant notice. Cc: Christophe JAILLET Reviewed-by: Simon Horman Signed-off-by: Bagas Sanjaya --- drivers/char/agp/amd64-agp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/agp/amd64-agp.c

[PATCH v2 02/10] mISDN: Replace GPL notice boilerplate with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
Replace unversioned GPL notice boilerplate on dsp_* with SPDX identifier for GPL 1.0+. These files missed previous SPDX conversion batches due to not specifying GPL version. Cc: Stephen Hemminger Cc: Andreas Eversberg Cc: Karsten Keil Reviewed-by: Simon Horman Signed-off-by: Bagas Sanjaya

Re: [PATCH 06/11] drm/msm: Use regular fbdev I/O helpers

2023-05-12 Thread Dmitry Baryshkov
On Fri, 12 May 2023 at 11:41, Thomas Zimmermann wrote: > > Use the regular fbdev helpers for framebuffer I/O instead of DRM's > helpers. Msm does not use damage handling, so DRM's fbdev helpers > are mere wrappers around the fbdev code. > > Add CONFIG_DRM_MSM_FBDEV_EMULATION to select the

Re: [Intel-gfx] [PATCH] drm/i915/hwmon: Silence UBSAN uninitialized bool variable warning

2023-05-12 Thread Andrzej Hajda
On 10.05.2023 20:36, Ashutosh Dixit wrote: Loading i915 on UBSAN enabled kernels (CONFIG_UBSAN/CONFIG_UBSAN_BOOL) causes the following warning: UBSAN: invalid-load in drivers/gpu/drm/i915/gt/uc/intel_uc.c:558:2 load of value 255 is not a valid value for type '_Bool' Call Trace:

Re: [Intel-gfx] [PATCH] drm/i915/hwmon: Silence UBSAN uninitialized bool variable warning

2023-05-12 Thread Andi Shyti
Hi Ashutosh, On Thu, May 11, 2023 at 10:43:30AM -0700, Dixit, Ashutosh wrote: > On Wed, 10 May 2023 11:36:06 -0700, Ashutosh Dixit wrote: > > > > Loading i915 on UBSAN enabled kernels (CONFIG_UBSAN/CONFIG_UBSAN_BOOL) > > causes the following warning: > > > > UBSAN: invalid-load in

Re: [PATCH v6 0/8] drm/tidss: Use new connector model for tidss

2023-05-12 Thread Tomi Valkeinen
On 09/05/2023 12:30, Aradhya Bhatia wrote: Hi all, I have picked up this long standing series from Nikhil Devshatwar[1]. This series moves the tidss to using new connectoe model, where the SoC driver (tidss) creates the connector and all the bridges are attached with the flag

Re: [PATCH v6 3/8] drm/bridge: mhdp8546: Add minimal format negotiation

2023-05-12 Thread Tomi Valkeinen
On 09/05/2023 12:30, Aradhya Bhatia wrote: From: Nikhil Devshatwar With new connector model, mhdp bridge will not create the connector and SoC driver will rely on format negotiation to setup the encoder format. Support minimal format negotiations hooks in the drm_bridge_funcs. Complete format

Re: [PATCH 00/10] Treewide GPL SPDX conversion (love letter to Didi)

2023-05-12 Thread Bagas Sanjaya
On 5/12/23 07:41, Jakub Kicinski wrote: > On Thu, 11 May 2023 20:33:56 +0700 Bagas Sanjaya wrote: >> I trigger this patch series because of Didi's GPL full name fixes >> attempt [1], for which all of them had been NAKed. In many cases, the >> appropriate correction is to use SPDX license

Re: [PATCH 08/10] drivers: watchdog: Replace GPL license notice with SPDX identifier

2023-05-12 Thread Bagas Sanjaya
On 5/11/23 22:08, Guenter Roeck wrote: >> +/* SPDX-License-Identifier: GPL-2.0-only */ > > This was supposed to be a C++ style comment for C source files. > Has the rule changed ? > Oops, I don't see checkpatch. Will fix. >> +/* SPDX-License-Identifier: GPL-2.0-only */ > > The text below

Re: [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode

2023-05-12 Thread Helge Deller
On 5/12/23 09:44, Geert Uytterhoeven wrote: Hi Helge, On Sat, Apr 22, 2023 at 11:27 PM Helge Deller wrote: Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller --- a/drivers/video/fbdev/core/modedb.c +++ b/drivers/video/fbdev/core/modedb.c @@ -257,6 +257,10 @@ static

Re: [PATCH] drm/i915/pmu: Turn off the timer to sample frequencies when GT is parked

2023-05-12 Thread Tvrtko Ursulin
On 12/05/2023 02:53, Ashutosh Dixit wrote: pmu_needs_timer() keeps the timer running even when GT is parked, ostensibly to sample requested/actual frequencies. However frequency_sample() has the following: /* Report 0/0 (actual/requested) frequency while parked. */ if

[PATCH v2] drm/amdkfd: Fix potential deallocation of previously deallocated memory.

2023-05-12 Thread Daniil Dulov
Pointer mqd_mem_obj can be deallocated in kfd_gtt_sa_allocate(). The function then returns non-zero value, which causes the second deallocation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: d1f8f0d17d40 ("drm/amdkfd: Move non-sdma mqd allocation out of init_mqd")

Re: [PATCH] accel/qaic: silence some uninitialized variable warnings

2023-05-12 Thread Pranjal Ramajor Asha Kanojiya
On 5/3/2023 4:11 PM, Dan Carpenter wrote: Smatch complains that these are not initialized if get_cntl_version() fails but we still print them in the debug message. Not the end of the world, but true enough. Let's just initialize them to a dummy value to make the checker happy.

[PATCH 04/17] drm/amdgpu: Use pcie_lnkctl{, 2}_clear_and_set() for changing LNKCTL{, 2}

2023-05-12 Thread Ilpo Järvinen
Don't assume that only the driver would be accessing LNKCTL/LNKCTL2. ASPM policy changes can trigger write to LNKCTL outside of driver's control. And in the case of upstream (parent), the driver does not even own the device it's changing the registers for. Use pcie_lnkctl_clear_and_set() and

[PATCH v4 5/9] drivers: use new capable_any functionality

2023-05-12 Thread Christian Göttsche
Use the new added capable_any function in appropriate cases, where a task is required to have any of two capabilities. Reorder CAP_SYS_ADMIN last. Signed-off-by: Christian Göttsche --- v4: Additional usage in kfd_ioctl() v3: rename to capable_any() ---

Re: [PATCH 04/10] net: ethernet: 8390: Replace GPL boilerplate with SPDX identifier

2023-05-12 Thread Greg Ungerer
On 11/5/23 23:34, Bagas Sanjaya wrote: Replace GPL boilerplate notice on remaining files with appropriate SPDX tag. For files mentioning COPYING, use GPL 2.0; otherwise GPL 1.0+. Cc: David A. Hinds Cc: Donald Becker Cc: Peter De Schrijver Cc: Greg Ungerer Cc: Simon Horman Signed-off-by:

Re: [RESEND PATCH v3] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2023-05-12 Thread Arseniy Krasnov
Cc: Mason Yang and Boris Brezillon On 11.05.2023 18:21, Arseniy Krasnov wrote: > This adds support for OTP area access on MX30LFxG18AC chip series. > > Changelog: > v1 -> v2: > * Add slab.h include due to kernel test robot error. > v2 -> v3: > * Use 'uint64_t' as input argument for

[RESEND PATCH v3] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2023-05-12 Thread Arseniy Krasnov
This adds support for OTP area access on MX30LFxG18AC chip series. Changelog: v1 -> v2: * Add slab.h include due to kernel test robot error. v2 -> v3: * Use 'uint64_t' as input argument for 'do_div()' instead of 'unsigned long' due to kernel test robot error. Signed-off-by: Arseniy

Re: [PATCH] accel/qaic: silence some uninitialized variable warnings

2023-05-12 Thread Carl Vanderlip
On 5/3/2023 3:41 AM, Dan Carpenter wrote: Smatch complains that these are not initialized if get_cntl_version() fails but we still print them in the debug message. Not the end of the world, but true enough. Let's just initialize them to a dummy value to make the checker happy. Signed-off-by:

[PATCH 05/17] drm/radeon: Use pcie_lnkctl{, 2}_clear_and_set() for changing LNKCTL{, 2}

2023-05-12 Thread Ilpo Järvinen
Don't assume that only the driver would be accessing LNKCTL/LNKCTL2. ASPM policy changes can trigger write to LNKCTL outside of driver's control. And in the case of upstream (parent), the driver does not even own the device it's changing the registers for. Use pcie_lnkctl_clear_and_set() and

Re: [PATCH v6 5/6] fbdev: Move framebuffer I/O helpers into

2023-05-12 Thread Artur Rojek
On 2023-05-11 14:35, Geert Uytterhoeven wrote: Hi Arnd, CC Artur, who's working on HP Jornada 680. Thanks for CC'ing me - I faced this exact issue while working on my (still not upstreamed) hd6446x PCMCIA controller driver. The PCMCIA subsystem uses `inb/outb`, which expect the

[PATCH 11/11] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. i915 was the only caller of the DRM helpers, so remove them from the helper module. Add CONFIG_DRM_I915_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend on the

[PATCH 05/11] drm/fbdev-dma: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Fbdev-dma does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_FBDEV_DMA_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 06/11] drm/msm: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Msm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_MSM_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend on

[PATCH 09/11] drm/fb-helper: Export helpers for marking damage areas

2023-05-12 Thread Thomas Zimmermann
Export drm_fb_helper_damage() and drm_fb_helper_damage_range(), which handle damage areas for fbdev emulation. This is a temporary export that allows to move the DRM I/O helpers for fbdev into drivers. Only fbdev-generic and i915 need them. Both will be updated to implement damage handling by

[PATCH 01/11] drm/armada: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Armada does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_ARMADA_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 04/11] drm/radeon: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Radeon does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_RADEON_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 07/11] drm/omapdrm: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Omapdrm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_OMAP_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 08/11] drm/tegra: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Tegra does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_TEGRA_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 02/11] drm/exynos: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Exynos does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_EXYNOS_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 10/11] drm/fbdev-generic: Implement dedicated fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. Fbdev-generic was the only caller of the DRM helpers, so remove them from the helper module. Add CONFIG_DRM_FBDEV_GENERIC_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation

[PATCH 03/11] drm/gma500: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Gma500 does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_GMA500_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Thomas Zimmermann
DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() and fb_sys_() helpers. The DRM functions don't provide any additional functionality for most DRM drivers. So remove them and call the fbdev I/O helpers directly. The DRM fbdev I/O wrappers were originally added because does

Re: [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode

2023-05-12 Thread Geert Uytterhoeven
Hi Helge, On Sat, Apr 22, 2023 at 11:27 PM Helge Deller wrote: > Add typical resolution for Full-HD monitors. > > Signed-off-by: Helge Deller > --- a/drivers/video/fbdev/core/modedb.c > +++ b/drivers/video/fbdev/core/modedb.c > @@ -257,6 +257,10 @@ static const struct fb_videomode modedb[] = {

Re: [RFC] Plane color pipeline KMS uAPI

2023-05-12 Thread Pekka Paalanen
On Thu, 11 May 2023 19:29:27 + Simon Ser wrote: > On Thursday, May 11th, 2023 at 18:56, Joshua Ashton wrote: > > > When we are talking about being 'prescriptive' in the API, are we > > outright saying we don't want to support arbitrary 3D LUTs, or are we > > just offering certain

Re: [PATCH v6 1/6] fbdev/matrox: Remove trailing whitespaces

2023-05-12 Thread Thomas Zimmermann
Hi Am 11.05.23 um 19:02 schrieb Helge Deller: On 5/11/23 16:27, Thomas Zimmermann wrote: But the work I do within fbdev is mostly for improving DRM. Sure. For the other issues in this file, I don't think that matroxfb should even be around any longer. Fbdev has been deprecated for a long

[PATCH] drm/amd/display: Simplify the calculation of variables

2023-05-12 Thread Jiapeng Chong
./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:586:37-39: WARNING !A || A && B is equivalent to !A || B. ./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:595:37-39: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Link:

[PATCH -next] habanalabs: Fix some kernel-doc comments

2023-05-12 Thread Yang Li
Make the description of @regs_range_array and @regs_range_array_size to @user_regs_range_array and @user_regs_range_array_size to silence the warnings: drivers/accel/habanalabs/common/security.c:506: warning: Function parameter or member 'user_regs_range_array' not described in

[PATCH 09/13] drm/i915/dp: Check min bpc DSC limits for dsc_force_bpc also

2023-05-12 Thread Ankit Nautiyal
For DSC the min BPC is 8 for ICL+ and so the min pipe_bpp is 24. Check this condition for cases where bpc is forced by debugfs flag dsc_force_bpc. If the check fails, then WARN and ignore the debugfs flag. For MST case the pipe_bpp is already computed (hardcoded to be 24), and this check is not

[PATCH 11/13] drm/i915/dp: Rename helpers to get DSC max pipe_bpp/output_bpp

2023-05-12 Thread Ankit Nautiyal
Currently the required dsc output bpp is set to be the largest compressed bpp supported for max, lane, rate, and bpp. The helper intel_dp_dsc_get_output_bpp gets the maximum supported compressed bpp taking into account link configuration, input bpp, bigjoiner considerations etc. Similarly, the

[PATCH 08/13] drm/i915/dp: Avoid forcing DSC BPC for MST case

2023-05-12 Thread Ankit Nautiyal
For MST the bpc is hardcoded to 8, and pipe bpp to 24. So avoid forcing DSC bpc for MST case. v2: Warn and ignore the debug flag than to bail out. (Jani) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 11 +-- drivers/gpu/drm/i915/display/intel_dp_mst.c

[PATCH 12/13] drm/i915/dp: Get optimal link config to have best compressed bpp

2023-05-12 Thread Ankit Nautiyal
Currently, we take the max lane, rate and pipe bpp, to get the maximum compressed bpp possible. We then set the output bpp to this value. This patch provides support to have max bpp, min rate and min lanes, that can support the min compressed bpp. v2: -Avoid ending up with compressed bpp, same as

[PATCH 10/13] drm/i915/dp: Avoid left shift of DSC output bpp by 4

2023-05-12 Thread Ankit Nautiyal
To make way for fractional bpp support, avoid left shifting the output_bpp by 4 in helper intel_dp_dsc_get_output_bpp. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 12 drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- 2 files changed, 5

[PATCH 13/13] drm/i915: Query compressed bpp properly using correct DPCD and DP Spec info

2023-05-12 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Currently we seem to be using wrong DPCD register for reading compressed bpps, reading min/max input bpc instead of compressed bpp. Fix that, so that we now apply min/max compressed bpp limitations we get from DP Spec Table 2-157 DP v2.0 and/or correspondent DPCD

[PATCH 07/13] drm/display/dp: Fix the DP DSC Receiver cap size

2023-05-12 Thread Ankit Nautiyal
DP DSC Receiver Capabilities are exposed via DPCD 60h-6Fh. Fix the DSC RECEIVER CAP SIZE accordingly. Fixes: ffddc4363c28 ("drm/dp: Add DP DSC DPCD receiver capability size define and missing SHIFT") Cc: Anusha Srivatsa Cc: Manasi Navare Cc: # v5.0+ Signed-off-by: Ankit Nautiyal ---

[PATCH 06/13] drm/i915/dp: Remove extra logs for printing DSC info

2023-05-12 Thread Ankit Nautiyal
DSC compressed bpp and slice counts are already getting printed at the end of dsc compute config. Remove extra logs. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 03/13] drm/i915/dp: Use consistent name for link bpp and compressed bpp

2023-05-12 Thread Ankit Nautiyal
Currently there are many places where we use output_bpp for link bpp and compressed bpp. Lets use consistent naming: output_bpp : The intermediate value taking into account the output_format chroma subsampling. compressed_bpp : target bpp for the DSC encoder. link_bpp : final bpp used in the link.

[PATCH 04/13] drm/i915/dp: Update Bigjoiner interface bits for computing compressed bpp

2023-05-12 Thread Ankit Nautiyal
In Bigjoiner check for DSC, bigjoiner interface bits for DP for DISPLAY > 13 is 36 (Bspec: 49259). v2: Corrected Display ver to 13. v3: Follow convention for conditional statement. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- 1 file changed, 2

[PATCH 05/13] drm/i915/intel_cdclk: Add vdsc with bigjoiner constraints on min_cdlck

2023-05-12 Thread Ankit Nautiyal
As per Bsepc:49259, Bigjoiner BW check puts restriction on the compressed bpp for a given CDCLK, pixelclock in cases where Bigjoiner + DSC are used. Currently compressed bpp is computed first, and it is ensured that the bpp will work at least with the max CDCLK freq. Since the CDCLK is computed

[PATCH 02/13] drm/i915/dp_mst: Use output_format to get the final link bpp

2023-05-12 Thread Ankit Nautiyal
The final link bpp used to calculate the m_n values depend on the output_format. Though the output_format is set to RGB for MST case and the link bpp will be same as the pipe bpp, for the sake of semantics, lets calculate the m_n values with the link bpp, instead of pipe_bpp. Signed-off-by: Ankit

[PATCH 01/13] drm/i915/dp: Consider output_format while computing dsc bpp

2023-05-12 Thread Ankit Nautiyal
While using DSC the compressed bpp is computed assuming RGB output format. Consider the output_format and compute the compressed bpp during mode valid and compute config steps. For DP-MST we currently use RGB output format only, so continue using RGB while computing compressed bpp for MST case.

[PATCH 00/13] DSC misc fixes

2023-05-12 Thread Ankit Nautiyal
This series is an attempt to address multiple issues with DSC, scattered in separate existing series. Patches 1-3 are DSC fixes from series to Handle BPC for HDMI2.1 PCON https://patchwork.freedesktop.org/series/107550/ Patches 4-5 are from series DSC fixes for Bigjoiner:

Re: [PATCH 10/10] include: synclink: Replace GPL license notice with SPDX identifier

2023-05-12 Thread kernel test robot
Hi Bagas, kernel test robot noticed the following build warnings: [auto build test WARNING on ac9a78681b921877518763ba0e89202254349d1b] url: https://github.com/intel-lab-lkp/linux/commits/Bagas-Sanjaya/agp-amd64-Remove-GPL-distribution-notice/20230511-214307 base:

<    1   2