Re: [RFC PATCH] drm/edid: Make 144 Hz not preferred on Sharp LQ140M1JW46

2022-08-14 Thread Maxime Ripard
On Fri, Jul 29, 2022 at 12:57:40PM -0700, Doug Anderson wrote: > Hi, > > On Fri, Jul 29, 2022 at 9:41 AM Maxime Ripard wrote: > > > > On Fri, Jul 29, 2022 at 07:50:20AM -0700, Doug Anderson wrote: > > > On Fri, Jul 29, 2022 at 12:51 AM Maxime Ripard wrote: > > > > > > > > On Thu, Jul 28, 2022 at

Re: [PATCH 3/4] drm/sun4i: dsi: Add a variant structure

2022-08-14 Thread Maxime Ripard
Hi Samuel, On Fri, Aug 12, 2022 at 02:42:55AM -0500, Samuel Holland wrote: > Replace the ad-hoc calls to of_device_is_compatible() with a structure > describing the differences between variants. This is in preparation for > adding more variants to the driver. > > Signed-off-by: Samuel Holland >

Re: [PATCH 3/3] drm: omapdrm: Do no allocate non-scanout GEMs through DMM/TILER

2022-08-14 Thread Ivaylo Dimitrov
Hi Liu, On 14.08.22 г. 17:27 ч., Yongqin Liu wrote: Hi, IvayIo Thanks very much for the reply! On Sat, 13 Aug 2022 at 14:58, Ivaylo Dimitrov wrote: Hi Liu, On 12.08.22 г. 7:35 ч., Yongqin Liu wrote: Hi, Ivaylo, Tomi We have one X15 Android AOSP master build, it could not have the home sc

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

2022-08-14 Thread Teres Alexis, Alan Previn
Looks good to me. Reviewed-by: Alan Previn On Wed, 2022-07-27 at 19:20 -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > The GuC log buffer sizes had to be configured statically at compile > time. This can be quite troublesome when needing to get larger logs > out of a releas

Re: [PATCH v7 10/13] power: supply: mt6370: Add MediaTek MT6370 charger driver

2022-08-14 Thread Matti Vaittinen
Hi ChiaEn, pe 5. elok. 2022 klo 10.09 ChiaEn Wu (peterwu@gmail.com) kirjoitti: > > From: ChiaEn Wu > > MediaTek MT6370 is a SubPMIC consisting of a single cell battery charger > with ADC monitoring, RGB LEDs, dual channel flashlight, WLED backlight > driver, display bias voltage supply, one g

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

2022-08-14 Thread Teres Alexis, Alan Previn
Sounds good - thanks. (ignore the "doing the opposite" comment). Reviewed-by: Alan Previn On Mon, 2022-08-08 at 11:43 -0700, Harrison, John C wrote: > On 8/4/2022 17:40, Teres Alexis, Alan Previn wrote: > > I have a question on below code. Everything else looked good. > > Will r-b as soon as we

Re: [BUG][5.20] refcount_t: underflow; use-after-free

2022-08-14 Thread Maíra Canal
Hi Mikhail Looks like this use-after-free problem was introduced on 90af0ca047f3049c4b46e902f432ad6ef1e2ded6. Checking this patch it seems like: if amdgpu_cs_vm_handling return r != 0, then it will unlock bo_list_mutex inside the function amdgpu_cs_vm_handling and again on amdgpu_cs_parser_fini.

Re: [PATCH] drm/bridge: sii902x: add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR

2022-08-14 Thread Dmitry Osipenko
08.08.2022 12:15, Neil Armstrong пишет: > Hi Dmitry, > > On 31/07/2022 22:07, Dmitry Osipenko wrote: >> 13.01.2022 17:43, Neil Armstrong пишет: >>> This adds support for DRM_BRIDGE_ATTACH_NO_CONNECTOR by adding the >>> bridge get_edid() and detect() callbacks after refactoring the connector >>> ge

Re: [PATCH] drm/bridge: sii902x: add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR

2022-08-14 Thread Dmitry Osipenko
08.08.2022 12:51, Neil Armstrong пишет: > On 08/08/2022 11:15, Neil Armstrong wrote: >> Hi Dmitry, >> >> On 31/07/2022 22:07, Dmitry Osipenko wrote: >>> 13.01.2022 17:43, Neil Armstrong пишет: This adds support for DRM_BRIDGE_ATTACH_NO_CONNECTOR by adding the bridge get_edid() and detect(

Re: [PATCH] drm/i915/guc/slpc: Allow SLPC to use efficient frequency

2022-08-14 Thread Belgaumkar, Vinay
On 8/14/2022 4:46 PM, Vinay Belgaumkar wrote: Host Turbo operates at efficient frequency when GT is not idle unless the user or workload has forced it to a higher level. Replicate the same behavior in SLPC by allowing the algorithm to use efficient frequency. We had disabled it during boot due

[PATCH] drm/i915/guc/slpc: Allow SLPC to use efficient frequency

2022-08-14 Thread Vinay Belgaumkar
Host Turbo operates at efficient frequency when GT is not idle unless the user or workload has forced it to a higher level. Replicate the same behavior in SLPC by allowing the algorithm to use efficient frequency. We had disabled it during boot due to concerns that it might break kernel ABI for min

Re: [PATCH 1/5] dt-bindings: display/msm: dpu-msm8998: add missing DPU opp-table

2022-08-14 Thread Rob Herring
On Thu, Aug 11, 2022 at 11:43:27AM +0300, Krzysztof Kozlowski wrote: > The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses > opp-table, so reference it which allows restricting DPU schema to fixed > list of properties. > > Fixes: 6e986a8f1cf1 ("dt-bindings: display: msm: Add bind

[BUG][5.20] refcount_t: underflow; use-after-free

2022-08-14 Thread Mikhail Gavrilov
Hi folks. Joined testing 5.20 today (7ebfc85e2cd7). I encountered a frequently GPU freeze, after which a message appears in the kernel logs: [ 220.280990] [ cut here ] [ 220.281000] refcount_t: underflow; use-after-free. [ 220.281019] WARNING: CPU: 1 PID: 3746 at lib/refcoun

Re: [PATCH] drm/sun4i: dsi: Prevent underflow when computing packet sizes

2022-08-14 Thread Samuel Holland
On 8/14/22 2:55 AM, Jernej Škrabec wrote: > Dne petek, 12. avgust 2022 ob 05:16:23 CEST je Samuel Holland napisal(a): >> Currently, the packet overhead is subtracted using unsigned arithmetic. >> With a short sync pulse, this could underflow and wrap around to near >> the maximal u16 value. Fix thi

Re: [bug report] drm/ttm: Fix dummy res NULL ptr deref bug

2022-08-14 Thread Christian König
Am 14.08.22 um 08:00 schrieb Arunpravin Paneer Selvam: Hi Dan, On 8/11/2022 5:26 PM, Dan Carpenter wrote: On Thu, Aug 11, 2022 at 04:36:33PM +0530, Arunpravin Paneer Selvam wrote: Hi Dan, drm-misc-fixes doesn't have the updated ttm_bo.c file, we have the updated ttm_bo.c version in drm-misc

Re: [PATCH] drm/amd/amdgpu: Replace kmap() with kmap_local_page()

2022-08-14 Thread Christian König
Am 12.08.22 um 19:57 schrieb Fabio M. De Francesco: kmap() is being deprecated in favor of kmap_local_page(). There are two main problems with kmap(): (1) It comes with an overhead as mapping space is restricted and protected by a global lock for synchronization and (2) it also requires global T

[PATCH AUTOSEL 4.9 7/8] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 4.14 8/9] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.4 15/16] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.10 18/19] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.15 27/28] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.18 38/39] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.19 45/48] video: fbdev: i740fb: Check the argument of i740_calc_vclk()

2022-08-14 Thread Sasha Levin
From: Zheyu Ma [ Upstream commit 40bf722f8064f50200b8c4f8946cd625b441dda9 ] Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug. If the user provides an improper 'pixclock' value that makes the argumet of i

[PATCH AUTOSEL 5.4 05/21] drm/meson: Fix overflow implicit truncation warnings

2022-08-14 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ] Fix -Woverflow warnings for drm/meson driver which is a result of moving arm64 custom MMIO accessor macros to asm-generic function implementations giving a bonus type-checking now and uncovering these overflow

[PATCH AUTOSEL 5.10 06/31] drm/meson: Fix overflow implicit truncation warnings

2022-08-14 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ] Fix -Woverflow warnings for drm/meson driver which is a result of moving arm64 custom MMIO accessor macros to asm-generic function implementations giving a bonus type-checking now and uncovering these overflow

[PATCH AUTOSEL 5.15 10/46] drm/meson: Fix overflow implicit truncation warnings

2022-08-14 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ] Fix -Woverflow warnings for drm/meson driver which is a result of moving arm64 custom MMIO accessor macros to asm-generic function implementations giving a bonus type-checking now and uncovering these overflow

[PATCH AUTOSEL 5.18 13/56] drm/meson: Fix overflow implicit truncation warnings

2022-08-14 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ] Fix -Woverflow warnings for drm/meson driver which is a result of moving arm64 custom MMIO accessor macros to asm-generic function implementations giving a bonus type-checking now and uncovering these overflow

[PATCH AUTOSEL 5.19 16/64] drm/meson: Fix overflow implicit truncation warnings

2022-08-14 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ] Fix -Woverflow warnings for drm/meson driver which is a result of moving arm64 custom MMIO accessor macros to asm-generic function implementations giving a bonus type-checking now and uncovering these overflow

Re: [PATCH 3/3] drm: omapdrm: Do no allocate non-scanout GEMs through DMM/TILER

2022-08-14 Thread Yongqin Liu
Hi, IvayIo Thanks very much for the reply! On Sat, 13 Aug 2022 at 14:58, Ivaylo Dimitrov wrote: > > Hi Liu, > > On 12.08.22 г. 7:35 ч., Yongqin Liu wrote: > > Hi, Ivaylo, Tomi > > > > We have one X15 Android AOSP master build, it could not have the home > > screen displayed > > on the hdmi monit

Re: [RFC 0/4] rockchip-dsi for rk3568

2022-08-14 Thread Peter Geis
On Fri, Aug 12, 2022 at 4:33 PM Chris Morgan wrote: > > From: Chris Morgan Good Afternoon, > > This series adds support for the dsi and dphy controllers on the > Rockchip RK3568. I can confirm that for the Rockchip RK3568 this > current series DOES NOT WORK properly yet. The image on the screen

Re: [PATCH] drm/sun4i: dsi: Prevent underflow when computing packet sizes

2022-08-14 Thread Jernej Škrabec
Dne petek, 12. avgust 2022 ob 05:16:23 CEST je Samuel Holland napisal(a): > Currently, the packet overhead is subtracted using unsigned arithmetic. > With a short sync pulse, this could underflow and wrap around to near > the maximal u16 value. Fix this by using signed subtraction. The call to > ma

Re: [PATCH 4/4] drm/sun4i: dsi: Add the A100 variant

2022-08-14 Thread Jernej Škrabec
Dne petek, 12. avgust 2022 ob 09:42:56 CEST je Samuel Holland napisal(a): > The A100 variant of the MIPI DSI controller now gets its module clock > from the TCON via the TCON TOP, so the clock rate cannot be set to a > fixed value. Otherwise, it appears to be the same as the A31 variant. > > Signe

Re: [PATCH 3/4] drm/sun4i: dsi: Add a variant structure

2022-08-14 Thread Jernej Škrabec
Dne petek, 12. avgust 2022 ob 09:42:55 CEST je Samuel Holland napisal(a): > Replace the ad-hoc calls to of_device_is_compatible() with a structure > describing the differences between variants. This is in preparation for > adding more variants to the driver. > > Signed-off-by: Samuel Holland Rev

Re: [PATCH v2 3/3] efi: earlycon: Add support for generic framebuffers and move to console subsystem

2022-08-14 Thread kernel test robot
e: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: x86_64-kismet-CONFIG_FB_EARLYCON-CONFIG_EFI_EARLYCON-0-0 (https://download.01.org/0day-ci/archive/20220814/202208141430.ez8ekewo-...@intel.com/config) reproduce: # https://github.com/intel-lab-lkp/li