Re: [PATCH v10 2/2] drm/i915: Allow user to set cache at BO creation

2023-05-20 Thread Jordan Justen
On 2023-05-18 22:11:03, wrote: > From: Fei Yang > > To comply with the design that buffer objects shall have immutable > cache setting through out their life cycle, {set, get}_caching ioctl's > are no longer supported from MTL onward. With that change caching > policy can only be set at object

Re: [PATCH v2] drm/msm/dp: remove most of usbpd-related remains

2023-05-20 Thread Bjorn Andersson
On Sat, May 20, 2023 at 09:20:50PM +0300, Dmitry Baryshkov wrote: > Remove most of remains of downstream usbpd code. Mainline kernel uses > different approach for managing Type-C / USB-PD, so this remains unused. > > Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson Regards, Bjorn

Re: [PATCH 3/3] drm/msm/dp: Clean up pdev/dev duplication in dp_power

2023-05-20 Thread Bjorn Andersson
On Sat, May 20, 2023 at 04:26:59AM +0300, Dmitry Baryshkov wrote: > On 15/05/2023 06:02, Bjorn Andersson wrote: > > The dp_power module keeps track of both the DP controller's struct > > platform_device and struct device - with the prior pulled out of the > > dp_parser module. > > > > Clean up

Re: [PATCH v3 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-20 Thread Dmitry Baryshkov
On 20/05/2023 00:17, Jessica Zhang wrote: Currently, slice_count is being used to calculate word count and pkt_per_line. In downstream, these values are calculated using slice per packet, which is not the same as slice_count. I'd say the reference to downstream is not correct. We have seen

Re: [PATCH v11 6/9] drm/msm/dpu: always clear every individual pending flush mask

2023-05-20 Thread Dmitry Baryshkov
On 19/05/2023 02:33, Kuogee Hsieh wrote: There are two tiers of pending flush control, main controller and individual hardware block. Currently only the main controller of flush mask is reset to 0 but leave out some individual pending flush mask of particular hardware block keep previous value

Re: [PATCH v4 0/9] drm: fdinfo memory stats

2023-05-20 Thread Dmitry Baryshkov
On 15/05/2023 17:30, Rob Clark wrote: From: Rob Clark Similar motivation to other similar recent attempt[1]. But with an attempt to have some shared code for this. As well as documentation. It is probably a bit UMA-centric, I guess devices with VRAM might want some placement stats as well.

Re: [PATCH v4 9/9] drm/msm: Wire up comm/cmdline override for fdinfo

2023-05-20 Thread Dmitry Baryshkov
On 15/05/2023 17:30, Rob Clark wrote: From: Rob Clark Also store the override strings in drm_file so that fdinfo can display them. We still need to keep our original copy as we could need these override strings after the device file has been closed and drm_file freed. Signed-off-by: Rob

Re: [PATCH 31/53] drm/msm: Convert to platform remove callback returning void

2023-05-20 Thread Dmitry Baryshkov
On 07/05/2023 19:25, Uwe Kleine-König wrote: The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in

Re: [Freedreno] [PATCH 02/11] drm/msm/dpu: use the actual lm maximum width instead of a hardcoded value

2023-05-20 Thread Dmitry Baryshkov
On 20/04/2023 20:47, Jeykumar Sankaran wrote: On 4/19/2023 3:23 PM, Dmitry Baryshkov wrote: On 19/04/2023 17:41, Arnaud Vrac wrote: This avoids using two LMs instead of one when the display width is lower than the maximum supported value. For example on MSM8996/MSM8998, the actual maxwidth

[PATCH v2 2/2] drm/msm/dsi: use mult_frac for pclk_bpp calculation

2023-05-20 Thread Dmitry Baryshkov
Simplify calculations around pixel_clk_rate division. Replace common pattern of doing 64-bit multiplication and then a do_div() call with simpler mult_frac() invocation. Reviewed-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_host.c | 11 --- 1 file

[PATCH v2 1/2] drm/msm/dsi: remove extra call to dsi_get_pclk_rate()

2023-05-20 Thread Dmitry Baryshkov
In dsi_calc_clk_rate_v2() there is no need to call dsi_get_pclk_rate(). This function has just been called (from dsi_calc_pclk()) and its result is stored at msm_host->pixel_clk_rate. Use this variable directly. Reviewed-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Changes since v1:

[PATCH AUTOSEL 4.14 3/4] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 4.14 2/4] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 4.19 4/5] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 4.19 3/5] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 5.4 4/5] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 5.4 3/5] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 5.10 6/8] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 5.10 5/8] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 5.15 09/11] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 5.15 08/11] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 5.15 07/11] fbdev: imsttfb: Fix use after free bug in imsttfb_probe

2023-05-20 Thread Sasha Levin
From: Zheng Wang [ Upstream commit c75f5a55061091030a13fef71b9995b89bc86213 ] A use-after-free bug may occur if init_imstt invokes framebuffer_release and free the info ptr. The caller, imsttfb_probe didn't notice that and still keep the ptr as private data in pdev. If we remove the driver

[PATCH AUTOSEL 5.15 01/11] drm/ast: Fix ARM compatibility

2023-05-20 Thread Sasha Levin
From: Jammy Huang [ Upstream commit 4327a6137ed43a091d900b1ac833345d60f32228 ] ARM architecture only has 'memory', so all devices are accessed by MMIO if possible. Signed-off-by: Jammy Huang Reviewed-by: Thomas Zimmermann Signed-off-by: Thomas Zimmermann Link:

[PATCH AUTOSEL 6.1 12/14] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 6.1 11/14] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 6.1 10/14] fbdev: imsttfb: Fix use after free bug in imsttfb_probe

2023-05-20 Thread Sasha Levin
From: Zheng Wang [ Upstream commit c75f5a55061091030a13fef71b9995b89bc86213 ] A use-after-free bug may occur if init_imstt invokes framebuffer_release and free the info ptr. The caller, imsttfb_probe didn't notice that and still keep the ptr as private data in pdev. If we remove the driver

[PATCH AUTOSEL 6.1 09/14] drm/amdgpu: set gfx9 onwards APU atomics support to be true

2023-05-20 Thread Sasha Levin
From: Yifan Zhang [ Upstream commit af7828fbceed4f9e503034111066a0adef3db383 ] APUs w/ gfx9 onwards doesn't reply on PCIe atomics, rather it is internal path w/ native atomic support. Set have_atomics_support to true. Signed-off-by: Yifan Zhang Reviewed-by: Lang Yu Acked-by: Felix Kuehling

[PATCH v2] drm/msm/dp: remove most of usbpd-related remains

2023-05-20 Thread Dmitry Baryshkov
Remove most of remains of downstream usbpd code. Mainline kernel uses different approach for managing Type-C / USB-PD, so this remains unused. Signed-off-by: Dmitry Baryshkov --- Changes since v1: - Also drop USBPD callbacks as per [1]. [1]

[PATCH AUTOSEL 6.1 01/14] drm/ast: Fix ARM compatibility

2023-05-20 Thread Sasha Levin
From: Jammy Huang [ Upstream commit 4327a6137ed43a091d900b1ac833345d60f32228 ] ARM architecture only has 'memory', so all devices are accessed by MMIO if possible. Signed-off-by: Jammy Huang Reviewed-by: Thomas Zimmermann Signed-off-by: Thomas Zimmermann Link:

[PATCH AUTOSEL 6.3 16/18] fbdev: stifb: Fix info entry in sti_struct on error path

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ] Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/stifb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH AUTOSEL 6.3 15/18] fbdev: modedb: Add 1920x1080 at 60 Hz video mode

2023-05-20 Thread Sasha Levin
From: Helge Deller [ Upstream commit c8902258b2b8ecaa1b8d88c312853c5b14c2553d ] Add typical resolution for Full-HD monitors. Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/core/modedb.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH AUTOSEL 6.3 14/18] fbdev: imsttfb: Fix use after free bug in imsttfb_probe

2023-05-20 Thread Sasha Levin
From: Zheng Wang [ Upstream commit c75f5a55061091030a13fef71b9995b89bc86213 ] A use-after-free bug may occur if init_imstt invokes framebuffer_release and free the info ptr. The caller, imsttfb_probe didn't notice that and still keep the ptr as private data in pdev. If we remove the driver

[PATCH AUTOSEL 6.3 13/18] drm/amdgpu: set gfx9 onwards APU atomics support to be true

2023-05-20 Thread Sasha Levin
From: Yifan Zhang [ Upstream commit af7828fbceed4f9e503034111066a0adef3db383 ] APUs w/ gfx9 onwards doesn't reply on PCIe atomics, rather it is internal path w/ native atomic support. Set have_atomics_support to true. Signed-off-by: Yifan Zhang Reviewed-by: Lang Yu Acked-by: Felix Kuehling

[PATCH AUTOSEL 6.3 12/18] drm/amdgpu/nv: update VCN 3 max HEVC encoding resolution

2023-05-20 Thread Sasha Levin
From: Thong Thai [ Upstream commit 476ac50fc30540e29191615a26aaf5f9dee91c49 ] Update the maximum resolution reported for HEVC encoding on VCN 3 devices to reflect its 8K encoding capability. v2: Also update the max height for H.264 encoding to match spec. (Ruijing) Signed-off-by: Thong Thai

[PATCH AUTOSEL 6.3 01/18] drm/ast: Fix ARM compatibility

2023-05-20 Thread Sasha Levin
From: Jammy Huang [ Upstream commit 4327a6137ed43a091d900b1ac833345d60f32228 ] ARM architecture only has 'memory', so all devices are accessed by MMIO if possible. Signed-off-by: Jammy Huang Reviewed-by: Thomas Zimmermann Signed-off-by: Thomas Zimmermann Link:

Re: [PATCH] fbdev: udlfb: Use usb_control_msg_send()

2023-05-20 Thread Alan Stern
On Fri, May 19, 2023 at 11:16:25PM +0200, Helge Deller wrote: > Use the newly introduced usb_control_msg_send() instead of usb_control_msg() > when selecting the channel. > > Signed-off-by: Helge Deller > --- > drivers/video/fbdev/udlfb.c | 14 +++--- > 1 file changed, 3 insertions(+),

Re: [PATCH 1/2] dt-bindings: display: panel: add fannal,c3004

2023-05-20 Thread kernel test robot
Hi Paulo, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on robh/for-next linus/master v6.4-rc2 next-20230519] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch,

Re: Fwd: Kernel 5.11 crashes when it boots, it produces black screen.

2023-05-20 Thread Bagas Sanjaya
On Wed, May 10, 2023 at 03:26:56PM +0700, Bagas Sanjaya wrote: > Anyway, let me add this regression to regzbot: > > #regzbot introduced: v5.10..v5.11 > https://bugzilla.kernel.org/show_bug.cgi?id=212579 > #regzbot title: Booting kernel on AMD Ryzen 5 PRO stucks in loading initrd Resolving...

[PATCH v7 17/18] drm/msm/a6xx: Add A619_holi speedbin support

2023-05-20 Thread Konrad Dybcio
A619_holi is implemented on at least two SoCs: SM4350 (holi) and SM6375 (blair). This is what seems to be a first occurrence of this happening, but it's easy to overcome by guarding the SoC-specific fuse values with of_machine_is_compatible(). Do just that to enable frequency limiting on these

[PATCH v7 18/18] drm/msm/a6xx: Add A610 speedbin support

2023-05-20 Thread Konrad Dybcio
A610 is implemented on at least three SoCs: SM6115 (bengal), SM6125 (trinket) and SM6225 (khaje). Trinket does not support speed binning (only a single SKU exists) and we don't yet support khaje upstream. Hence, add a fuse mapping table for bengal to allow for per-chip frequency limiting.

[PATCH v7 12/18] drm/msm/a6xx: Add support for A619_holi

2023-05-20 Thread Konrad Dybcio
A619_holi is a GMU-less variant of the already-supported A619 GPU. It's present on at least SM4350 (holi) and SM6375 (blair). No mesa changes are required. Add the required kernel-side support for it. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 27

[PATCH v7 16/18] drm/msm/a6xx: Use adreno_is_aXYZ macros in speedbin matching

2023-05-20 Thread Konrad Dybcio
Before transitioning to using per-SoC and not per-Adreno speedbin fuse values (need another patchset to land elsewhere), a good improvement/stopgap solution is to use adreno_is_aXYZ macros in place of explicit revision matching. Do so to allow differentiating between A619 and A619_holi.

[PATCH v7 14/18] drm/msm/a6xx: Fix some A619 tunables

2023-05-20 Thread Konrad Dybcio
Adreno 619 expects some tunables to be set differently. Make up for it. Fixes: b7616b5c69e6 ("drm/msm/adreno: Add A619 support") Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH v7 15/18] drm/msm/a6xx: Use "else if" in GPU speedbin rev matching

2023-05-20 Thread Konrad Dybcio
The GPU can only be one at a time. Turn a series of ifs into if + elseifs to save some CPU cycles. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v7 13/18] drm/msm/a6xx: Add A610 support

2023-05-20 Thread Konrad Dybcio
A610 is one of (if not the) lowest-tier SKUs in the A6XX family. It features no GMU, as it's implemented solely on SoCs with SMD_RPM. What's more interesting is that it does not feature a VDDGX line either, being powered solely by VDDCX and has an unfortunate hardware quirk that makes its reset

[PATCH v7 09/18] drm/msm/a6xx: Extend and explain UBWC config

2023-05-20 Thread Konrad Dybcio
Rename lower_bit to hbb_lo and explain what it signifies. Add explanations (wherever possible to other tunables). Port setting min_access_length, ubwc_mode and hbb_hi from downstream. Reviewed-by: Rob Clark Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 39

[PATCH v7 11/18] drm/msm/adreno: Disable has_cached_coherent in GMU wrapper configurations

2023-05-20 Thread Konrad Dybcio
A610 and A619_holi don't support the feature. Disable it to make the GPU stop crashing after almost each and every submission - the received data on the GPU end was simply incomplete in garbled, resulting in almost nothing being executed properly. Extend the disablement to adreno_has_gmu_wrapper,

[PATCH v7 10/18] drm/msm/a6xx: Introduce GMU wrapper support

2023-05-20 Thread Konrad Dybcio
Some (particularly SMD_RPM, a.k.a non-RPMh) SoCs implement A6XX GPUs but don't implement the associated GMUs. This is due to the fact that the GMU directly pokes at RPMh. Sadly, this means we have to take care of enabling & scaling power rails, clocks and bandwidth ourselves. Reuse existing

[PATCH v7 08/18] drm/msm/a6xx: Remove both GBIF and RBBM GBIF halt on hw init

2023-05-20 Thread Konrad Dybcio
Currently we're only deasserting REG_A6XX_RBBM_GBIF_HALT, but we also need REG_A6XX_GBIF_HALT to be set to 0. This is typically done automatically on successful GX collapse, but in case that fails, we should take care of it. Also, add a memory barrier to ensure it's gone through before jumping

[PATCH v7 05/18] drm/msm/a6xx: Move a6xx_bus_clear_pending_transactions to a6xx_gpu

2023-05-20 Thread Konrad Dybcio
This function is responsible for telling the GPU to halt transactions on all of its relevant buses, drain them and leave them in a predictable state, so that the GPU can be e.g. reset cleanly. Move the function to a6xx_gpu.c, remove the static keyword and add a prototype in a6xx_gpu.h to

[PATCH v7 06/18] drm/msm/a6xx: Improve a6xx_bus_clear_pending_transactions()

2023-05-20 Thread Konrad Dybcio
Unify the indentation and explain the cryptic 0xF value. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index

[PATCH v7 04/18] drm/msm/a6xx: Move force keepalive vote removal to a6xx_gmu_force_off()

2023-05-20 Thread Konrad Dybcio
As pointed out by Akhil during the review process of GMU wrapper introduction [1], it makes sense to move this write into the function that's responsible for forcibly shutting the GMU off. It is also very convenient to move this to GMU-specific code, so that it does not have to be guarded by an

[PATCH v7 03/18] drm/msm/a6xx: Remove static keyword from sptprac en/disable functions

2023-05-20 Thread Konrad Dybcio
These two will be reused by at least A619_holi in the non-gmu paths. Turn them non-static them to make it possible. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 2 ++ 2 files changed, 4

[PATCH v7 07/18] drm/msm/a6xx: Add a helper for software-resetting the GPU

2023-05-20 Thread Konrad Dybcio
Introduce a6xx_gpu_sw_reset() in preparation for adding GMU wrapper GPUs and reuse it in a6xx_gmu_force_off(). This helper, contrary to the original usage in GMU code paths, adds a write memory barrier which together with the necessary delay should ensure that the reset is never deasserted too

[PATCH v7 01/18] dt-bindings: display/msm: gpu: Document GMU wrapper-equipped A6xx

2023-05-20 Thread Konrad Dybcio
The "GMU Wrapper" is Qualcomm's name for "let's treat the GPU blocks we'd normally assign to the GMU as if they were a part of the GMU, even though they are not". It's a (good) software representation of the GMU_CX and GMU_GX register spaces within the GPUSS that helps us programatically treat

[PATCH v7 02/18] dt-bindings: display/msm/gmu: Add GMU wrapper

2023-05-20 Thread Konrad Dybcio
The "GMU Wrapper" is Qualcomm's name for "let's treat the GPU blocks we'd normally assign to the GMU as if they were a part of the GMU, even though they are not". It's a (good) software representation of the GMU_CX and GMU_GX register spaces within the GPUSS that helps us programatically treat

[PATCH v7 00/18] GMU-less A6xx support (A610, A619_holi)

2023-05-20 Thread Konrad Dybcio
v6 -> v7: - Rebase on next-20230519 (A640/650 speedbin merged already) - separate out the .get_timestamp cb for gmu wrapper - check for gmu presence inside a6xx_llc_slices_(init|destroy) instead of before calling them - use REG_A6XX_RBBM_GPR0_CNTL instead of literal 0x18 - move

[PATCH] drm/drm_device.h: fix a typo

2023-05-20 Thread Sui Jingfeng
From: Sui Jingfeng Replace it with if Signed-off-by: Sui Jingfeng --- include/drm/drm_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h index 7cf4afae2e79..8e377857fb01 100644 --- a/include/drm/drm_device.h +++

Re: [v13,1/2] drm: add kms driver for loongson display controller

2023-05-20 Thread Sui Jingfeng
Hi, On 2023/5/19 18:04, Liu Peibao wrote: I test this on my 3A5000 + 7A1000 and 3A5000 + 7A2000 desktop, and this works well, so: Tested-by: Liu Peibao Thanks a lot. Br, Peibao On 5/15/23 11:57 PM, Sui Jingfeng wrote: Loongson display controller IP has been integrated in both Loongson

Re: [PATCH v13 0/2] drm: add kms driver for loongson display controller

2023-05-20 Thread Sui Jingfeng
Hi, On 2023/5/18 21:38, Thomas Zimmermann wrote: Hi, I don't know the status here, but if it works, you should probably merge it. This driver do works on LoonArch and mips platform,  Here[1] are a few short videos which can prove that. [1]

[PATCH v14 2/2] MAINTAINERS: add maintainers for DRM LOONGSON driver

2023-05-20 Thread Sui Jingfeng
From: Sui Jingfeng This patch add Sui Jingfeng as maintainer to drm/loongson driver, also invite Thomas Zimmermann as co-maintainer. Signed-off-by: Sui Jingfeng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v14 0/2] drm: add kms driver for loongson display controller

2023-05-20 Thread Sui Jingfeng
From: Sui Jingfeng Loongson display controller IP has been integrated in both Loongson north bridge chipset(ls7a1000/ls7a2000) and Loongson SoCs(ls2k1000/ls2k2000), it has been even included in Loongson self-made BMC products. This display controller is a PCI device. It has two display pipes

[PATCH net-next v3 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-05-20 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml

[PATCH net-next v3 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-05-20 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/phy/bcm7xxx.c | 1 +

[PATCH net-next v3 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-05-20 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c

[PATCH net-next v3 0/6] Brcm ASP 2.0 Ethernet Controller

2023-05-20 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Add support for 74165 10/100 integrated Ethernet PHY which also uses the ASP 2.0 Ethernet controller. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add

[PATCH 1/2] backlight: gpio_backlight: add new property default-brightness-level

2023-05-20 Thread Alexandru Ardelean
From: Yannick Fertre Add new property to set a brightness by default at probe. Reviewed-by: Philippe CORNU Signed-off-by: Yannick Fertre Signed-off-by: Alexandru Ardelean --- Link to original patch:

[PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-20 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. This controller features two distinct Ethernet ports that can be independently operated. This patch supports: - Wake-on-LAN using magic packets - basic ethtool operations (link, counters, message

[PATCH net-next v3 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-05-20 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e2fd64c2ebdc..732a099f4a10

[PATCH net-next v3 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-20 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Minor formatting issues - Change channel prop to brcm,channel for vendor specific format - Removed redundant

[PATCH 2/2] dt-bindings: backlight: document new property default-brightness-level

2023-05-20 Thread Alexandru Ardelean
From: Yannick Fertre Add documentation for new default-brightness-level property. Reviewed-by: Philippe CORNU Signed-off-by: Yannick Fertre Signed-off-by: Alexandru Ardelean --- Link to original patch:

[Bug 217464] Radeon Driver Crash

2023-05-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217464 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH 2/2] drm/msm/dsi: use mult_frac for pclk_bpp calculation

2023-05-20 Thread Marijn Suijten
On 2023-05-20 03:28:46, Dmitry Baryshkov wrote: > Simplify calculatoins around pixel_clk_rate division. Replace common calculations* > pattern of doing 64-bit multiplication and then a do_div() call with > simpler mult_frac call. > > Signed-off-by: Dmitry Baryshkov That's a cool function, I

Re: [PATCH 1/2] drm/msm/dsi: remove extra call to dsi_get_pclk_rate()

2023-05-20 Thread Marijn Suijten
On 2023-05-20 03:28:45, Dmitry Baryshkov wrote: > In dsi_calc_clk_rate_v2() there is no need to call dsi_get_pclk_rate(). > This functions has just been called and it's result is stored at function (drop -s) has just been called *inside dsi_calc_pclk()* it's -> its > msm_host->pixel_clk_rate.

Re: [PATCH v3 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-20 Thread Marijn Suijten
On 2023-05-19 14:17:26, Jessica Zhang wrote: > Currently, when compression is enabled, hdisplay is reduced via integer > division. This causes issues for modes where the original hdisplay is > not a multiple of 3. > > To fix this, use DIV_ROUND_UP to divide hdisplay. > > Reported-by: Marijn