Re: [PATCH 0/4] Fix memory limits for STDU

2024-04-11 Thread Zack Rusin
On Thu, Apr 11, 2024 at 5:27 PM Ian Forbes wrote: > > Fixes a bug where modes that are too large for the device are exposed > and set causing a black screen on boot. > > Resending as Patchwork did not like my last submission. > > Ian Forbes (4): > drm/vmwgfx: Filter modes which exceed graphics

[PATCH v2] mediatek: dsi: Correct calculation formula of PHY Timing

2024-04-11 Thread Shuijing Li
This patch correct calculation formula of PHY timing. The spec define HS-PREPARE should be from 40ns+4*UI(44ns) to 85ns+6*UI(91ns). But current duration is 88ns and is near the boundary. So this patch make the duration to 64ns so it is near the safe range. Signed-off-by: Shuijing Li --- Changes

[PATCH v2 5/5] drm/vmwgfx: Sort primary plane formats by order of preference

2024-04-11 Thread Zack Rusin
The table of primary plane formats wasn't sorted at all, leading to applications picking our least desirable formats by defaults. Sort the primary plane formats according to our order of preference. Nice side-effect of this change is that it makes IGT's kms_atomic plane-invalid-params pass

[PATCH v2 0/5] drm/vmwgfx: vblank and crc generation support

2024-04-11 Thread Zack Rusin
vmwgfx didn't have support for vblank or crc generation which made it impossible to use a large number of IGT tests to properly test DRM functionality in the driver. This series add virtual vblank and crc generation support, which allows running most of IGT and immediately helped fix a number of

[PATCH v2 4/5] drm/vmwgfx: Fix crtc's atomic check conditional

2024-04-11 Thread Zack Rusin
The conditional was supposed to prevent enabling of a crtc state without a set primary plane. Accidently it also prevented disabling crtc state with a set primary plane. Neither is correct. Fix the conditional and just driver-warn when a crtc state has been enabled without a primary plane which

[PATCH v2 3/5] drm/vmwgfx: Fix prime import/export

2024-04-11 Thread Zack Rusin
vmwgfx never supported prime import of external buffers. Furthermore the driver exposes two different objects to userspace: vmw_surface's and gem buffers but prime import/export only worked with vmw_surfaces. Because gem buffers are used through the dumb_buffer interface this meant that the

[PATCH v2 2/5] drm/vmwgfx: Implement virtual crc generation

2024-04-11 Thread Zack Rusin
crc checksums are used to validate the output. Normally they're part of the actual display hardware but on virtual stack there's nothing to automatically generate them. Implement crc generation for the vmwgfx stack. This works only on screen targets, where it's possibly to easily make sure that

[PATCH v2 1/5] drm/vmwgfx: Implement virtual kms

2024-04-11 Thread Zack Rusin
By default vmwgfx doesn't support vblanking or crc generation which makes it impossible to use various IGT tests to validate vmwgfx. Implement virtual kernel mode setting, which is mainly related to simulated vblank support. Code is very similar to amd's vkms and the vkms module itself, except

[git pull] drm fixes for 6.9-rc4

2024-04-11 Thread Dave Airlie
Hi Linus, Looks like everyone woke up after holidays, this weeks pull has a bunch of stuff all over, 2 weeks worth of amdgpu is a lot of it, then i915/xe have a few, a bunch of msm fixes, then some scattered driver fixes. I expect things will settle down for rc5. Dave. drm-fixes-2024-04-12:

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Elliot Berman
On Fri, Apr 12, 2024 at 02:10:30AM +0200, Konrad Dybcio wrote: > > > On 4/12/24 01:49, Elliot Berman wrote: > > On Thu, Apr 11, 2024 at 10:24:08PM +0200, Konrad Dybcio wrote: > > > > > > > > > On 4/11/24 22:09, Elliot Berman wrote: > > > > On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/12/24 01:49, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:24:08PM +0200, Konrad Dybcio wrote: On 4/11/24 22:09, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200,

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Elliot Berman
On Thu, Apr 11, 2024 at 10:24:08PM +0200, Konrad Dybcio wrote: > > > On 4/11/24 22:09, Elliot Berman wrote: > > On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: > > > > > > > > > On 4/11/24 20:55, Elliot Berman wrote: > > > > On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Thorsten Blum
On 11. Apr 2024, at 17:25, Dan Carpenter wrote: > > It's tricky to know which tree a patch like this would go through. The patch is based on the mainline tree. Should I have sent it directly to Linus then? I'm relatively new here and therefore only sent it to the corresponding mailing lists.

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-11 Thread Konrad Dybcio
On 4/11/24 23:46, Dmitry Baryshkov wrote: On Fri, 12 Apr 2024 at 00:35, Konrad Dybcio wrote: On 4/10/24 21:26, Dmitry Baryshkov wrote: On Wed, Apr 10, 2024 at 01:42:33PM +0200, Konrad Dybcio wrote: On 4/6/24 05:23, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:32AM +0200,

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-11 Thread Dmitry Baryshkov
On Fri, 12 Apr 2024 at 00:35, Konrad Dybcio wrote: > > > > On 4/10/24 21:26, Dmitry Baryshkov wrote: > > On Wed, Apr 10, 2024 at 01:42:33PM +0200, Konrad Dybcio wrote: > >> > >> > >> On 4/6/24 05:23, Dmitry Baryshkov wrote: > >>> On Fri, Apr 05, 2024 at 10:41:32AM +0200, Konrad Dybcio wrote: >

Re: [PATCH 10/12] drm/msm: convert msm_format::alpha_enable to the flag

2024-04-11 Thread Dmitry Baryshkov
On Fri, 12 Apr 2024 at 00:20, Abhinav Kumar wrote: > > > > On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: > > Instead of having a bool field alpha_enable, convert it to the > > flag, this save space in the tables and allows us to handle all booleans > > in the same way. > > > > Signed-off-by:

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-11 Thread Konrad Dybcio
On 4/10/24 21:26, Dmitry Baryshkov wrote: On Wed, Apr 10, 2024 at 01:42:33PM +0200, Konrad Dybcio wrote: On 4/6/24 05:23, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:32AM +0200, Konrad Dybcio wrote: On recent (SM8550+) Snapdragon platforms, the GPU speed bin data is abstracted

[PATCH 4/4] drm/vmwgfx: Standardize use of kibibytes when logging

2024-04-11 Thread Ian Forbes
Use the same standard abbreviation KiB instead of incorrect variants. Signed-off-by: Ian Forbes --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 12 ++-- drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 3/4] drm/vmwgfx: Remove STDU logic from generic mode_valid function

2024-04-11 Thread Ian Forbes
STDU has its own mode_valid function now so this logic can be removed from the generic version. Fixes: 935f795045a6 ("drm/vmwgfx: Refactor drm connector probing for display modes") Signed-off-by: Ian Forbes --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 3 --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |

[PATCH 2/4] drm/vmwgfx: 3D disabled should not effect STDU memory limits

2024-04-11 Thread Ian Forbes
This limit became a hard cap starting with the change referenced below. Surface creation on the device will fail if the requested size is larger than this limit so altering the value arbitrarily will expose modes that are too large for the device's hard limits. Fixes: 7ebb47c9f9ab ("drm/vmwgfx:

[PATCH 1/4] drm/vmwgfx: Filter modes which exceed graphics memory

2024-04-11 Thread Ian Forbes
SVGA requires individual surfaces to fit within graphics memory (max_mob_pages) which means that modes with a final buffer size that would exceed graphics memory must be pruned otherwise creation will fail. This fixes an issue where VMs with low graphics memory (< 64MiB) configured with high

[PATCH 0/4] Fix memory limits for STDU

2024-04-11 Thread Ian Forbes
Fixes a bug where modes that are too large for the device are exposed and set causing a black screen on boot. Resending as Patchwork did not like my last submission. Ian Forbes (4): drm/vmwgfx: Filter modes which exceed graphics memory drm/vmwgfx: 3D disabled should not effect STDU memory

Re: [PATCH 10/12] drm/msm: convert msm_format::alpha_enable to the flag

2024-04-11 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Instead of having a bool field alpha_enable, convert it to the flag, this save space in the tables and allows us to handle all booleans in the same way. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 12

Re: [PATCH 09/12] drm/msm: convert msm_format::unpack_align_msb to the flag

2024-04-11 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Instead of having a u8 or bool field unpack_align_msb, convert it to the flag, this save space in the tables and allows us to handle all booleans in the same way. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c

Re: [PATCH 08/12] drm/msm: convert msm_format::unpack_tight to the flag

2024-04-11 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Instead of having a u8 or bool field unpack_tight, convert it to the flag, this save space in the tables and allows us to handle all booleans in the same way. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 22

[pull] drm/msm: drm-msm-next-2024-04-11 for v6.9-rc4

2024-04-11 Thread Rob Clark
Hi Dave, Fixes for v6.9, description below The following changes since commit 4be445f5b6b6810baf397b2d159bd07c3573fd75: drm/msm/dpu: capture snapshot on the first commit_done timeout (2024-03-04 11:44:03 +0200) are available in the Git repository at:

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-11 Thread Leo Li
On 2024-04-04 10:22, Marius Vlad wrote: On Thu, Apr 04, 2024 at 09:59:03AM -0400, Harry Wentland wrote: Hi all, On 2024-04-04 06:24, Pekka Paalanen wrote: On Wed, 3 Apr 2024 17:32:46 -0400 Leo Li wrote: On 2024-03-28 10:33, Pekka Paalanen wrote: On Fri, 15 Mar 2024 13:09:56 -0400

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/11/24 22:09, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: In preparation for parsing the chip "feature code" (FC) and "product code" (PC)

Re: [PATCH v2] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Christophe JAILLET
Le 11/04/2024 à 19:11, Thorsten Blum a écrit : Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all occurrences of "the the" and replace them with a single "the". In arch/arm/include/asm/unwind.h replace "the the" with "to the". Changes only comments and documentation - no code

Re: [PATCH] drm/msm: Drop msm_read/writel

2024-04-11 Thread Dmitry Baryshkov
On Thu, Apr 11, 2024 at 08:27:22AM -0700, Bjorn Andersson wrote: > On Thu, Apr 11, 2024 at 04:31:41AM +0300, Dmitry Baryshkov wrote: > > On Wed, Apr 10, 2024 at 11:52:52PM +0200, Konrad Dybcio wrote: > [..] > > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > >

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Elliot Berman
On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: > > > On 4/11/24 20:55, Elliot Berman wrote: > > On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: > > > In preparation for parsing the chip "feature code" (FC) and "product > > > code" (PC) (essentially the parameters

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: In preparation for parsing the chip "feature code" (FC) and "product code" (PC) (essentially the parameters that let us conclusively characterize the sillicon we're running on, including

[linux-next:master] BUILD REGRESSION 4118d9533ff3a5d16efb476a0d00afceecd92cf5

2024-04-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 4118d9533ff3a5d16efb476a0d00afceecd92cf5 Add linux-next specific files for 20240411 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202404120101.daqbazh3-...@intel.com Error

Re: [PATCH 07/12] drm/msm: merge dpu_format and mdp_format in struct msm_format

2024-04-11 Thread Dmitry Baryshkov
On Thu, 11 Apr 2024 at 22:15, Abhinav Kumar wrote: > > > > On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: > > Structures dpu_format and mdp_format are largely the same structures. > > In order to remove duplication between format databases, merge these two > > stucture definitions into the global

Re: [PATCH 07/12] drm/msm: merge dpu_format and mdp_format in struct msm_format

2024-04-11 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Structures dpu_format and mdp_format are largely the same structures. In order to remove duplication between format databases, merge these two stucture definitions into the global struct msm_format. Signed-off-by: Dmitry Baryshkov ---

Re: [PATCH 2/6] soc: qcom: smem: Add pcode/fcode getters

2024-04-11 Thread Elliot Berman
On Fri, Apr 05, 2024 at 10:41:30AM +0200, Konrad Dybcio wrote: > Introduce getters for SoC product and feature codes and export them. > > Signed-off-by: Konrad Dybcio > --- > drivers/soc/qcom/smem.c | 66 > +++ > include/linux/soc/qcom/smem.h | 2

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Elliot Berman
On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: > In preparation for parsing the chip "feature code" (FC) and "product > code" (PC) (essentially the parameters that let us conclusively > characterize the sillicon we're running on, including various speed > bins), move the socinfo

Re: [PATCH 06/12] drm/msm/dpu: pull format flag definitions to msm_drv.h

2024-04-11 Thread Abhinav Kumar
On 4/11/2024 11:41 AM, Abhinav Kumar wrote: On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: In preparation to merger of formats databases, pull format flag definitions to msm_drv.h header, so that they are visibile to both dpu and mdp drivers. Signed-off-by: Dmitry Baryshkov ---  

Re: [PATCH 06/12] drm/msm/dpu: pull format flag definitions to msm_drv.h

2024-04-11 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: In preparation to merger of formats databases, pull format flag definitions to msm_drv.h header, so that they are visibile to both dpu and mdp drivers. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 98

Re: (subset) [PATCH 0/5] Add Support for RK3326 GameForce Chi

2024-04-11 Thread Heiko Stuebner
On Mon, 25 Mar 2024 08:49:54 -0500, Chris Morgan wrote: > From: Chris Morgan > > Add support for the GameForce Chi [1]. > > The GameForce Chi has the following hardware: > Tested: > - 3.5" dual lane 640x480 DSI display. > - 15 GPIO based face buttons. > - 2 ADC based face buttons. > - 1 ADC

Re: [PATCH 11/10] MAINTAINERS: update i915 and xe entries for include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Thu, Apr 11, 2024 at 06:45:03PM +0300, Jani Nikula wrote: > With all the Intel specific drm files under include/drm/intel, update > the i915, xe, and the shared display entries. Do not discriminate based > on file name pattern, just add the entire directory for all three > entries. >

Re: [PATCH 11/10] MAINTAINERS: update i915 and xe entries for include/drm/intel

2024-04-11 Thread Rodrigo Vivi
On Thu, Apr 11, 2024 at 06:45:03PM +0300, Jani Nikula wrote: > With all the Intel specific drm files under include/drm/intel, update > the i915, xe, and the shared display entries. Do not discriminate based > on file name pattern, just add the entire directory for all three > entries. > > Cc:

[PULL] drm-xe-fixes

2024-04-11 Thread Lucas De Marchi
Hi Dave and Sima, Please pull the drm-xe-fixes for this week targeting v6.9-rc4. Just some trivial fixes, mostly from code analysis. The last one doesn't trigger any issue for now since the register is not used for mmio. I decided to include it, because it would be a silent prereq of any

[PATCH v2] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Thorsten Blum
Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all occurrences of "the the" and replace them with a single "the". In arch/arm/include/asm/unwind.h replace "the the" with "to the". Changes only comments and documentation - no code changes. Signed-off-by: Thorsten Blum Reviewed-by:

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Tyler Hicks
On 2024-04-11 17:04:40, Thorsten Blum wrote: > Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all > occurrences of "the the" and replace them with a single "the". > > Changes only comments and documentation - no code changes. > > Signed-off-by: Thorsten Blum Reviewed-by: Tyler

RE: [PATCH] drm/dp: correct struct member name in documentation

2024-04-11 Thread Golani, Mitulkumar Ajitkumar
> -Original Message- > From: Vivi, Rodrigo > Sent: Wednesday, April 10, 2024 9:49 PM > To: Golani, Mitulkumar Ajitkumar ; > tzimmerm...@suse.de; mrip...@kernel.org; > maarten.lankho...@linux.intel.com > Cc: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org; > Nautiyal,

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2024-04-11 Thread T.J. Mercier
On Thu, Apr 11, 2024 at 1:21 AM Rong Qianfeng <11065...@vivo.com> wrote: > > > 在 2024/4/10 0:37, T.J. Mercier 写道: > > [You don't often get email from tjmerc...@google.com. Learn why this is > > important at https://aka.ms/LearnAboutSenderIdentification ] > > > > On Tue, Apr 9, 2024 at 12:34 AM

Re: [PATCH 4/4] drm/bridge: hotplug-bridge: add driver to support hot-pluggable DSI bridges

2024-04-11 Thread Luca Ceresoli
Hi Maxime, On Wed, 27 Mar 2024 17:08:49 +0100 Luca Ceresoli wrote: [...] > > There's several additional hurdles there: > > > > - You mentioned the connector in your ideal scenario. But as soon as > >you remove the last bridge, the connector will probably go away too. > >There's two

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Robin Murphy
On 11/04/2024 4:04 pm, Thorsten Blum wrote: Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all occurrences of "the the" and replace them with a single "the". [...] diff --git a/arch/arm/include/asm/unwind.h b/arch/arm/include/asm/unwind.h index d60b09a5acfc..a75da9a01f91 100644

[PATCH 11/10] MAINTAINERS: update i915 and xe entries for include/drm/intel

2024-04-11 Thread Jani Nikula
With all the Intel specific drm files under include/drm/intel, update the i915, xe, and the shared display entries. Do not discriminate based on file name pattern, just add the entire directory for all three entries. Cc: Joonas Lahtinen Cc: Lucas De Marchi Cc: Oded Gabbay Cc: Rodrigo Vivi Cc:

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Johannes Berg
On Thu, 2024-04-11 at 17:04 +0200, Thorsten Blum wrote: > Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all > occurrences of "the the" and replace them with a single "the". I estimated that this misses at least ~50 instances split across lines: $ git grep -ih -A1 -e 'the$'|grep -vi

[PATCH v2] drm: move i915_component.h under include/drm/intel

2024-04-11 Thread Jani Nikula
Clean up the top level include/drm directory by grouping all the Intel specific files under a common subdirectory. v2: Also change Documentation/gpu/i915.rst (Andi) Cc: Daniel Vetter Cc: Dave Airlie Cc: Lucas De Marchi Cc: Tomas Winkler Cc: Jaroslav Kysela Cc: Takashi Iwai Signed-off-by:

Re: [PATCH v2] drm: move i915_drm.h under include/drm/intel

2024-04-11 Thread Jani Nikula
On Thu, 11 Apr 2024, Andi Shyti wrote: > Hi Jani, > > On Wed, Apr 10, 2024 at 01:26:15PM +0300, Jani Nikula wrote: >> Clean up the top level include/drm directory by grouping all the Intel >> specific files under a common subdirectory. >> >> v2: Also fix comment in intel_pci_config.h (Ilpo) >>

Re: [PATCH] drm/msm: Drop msm_read/writel

2024-04-11 Thread Bjorn Andersson
On Thu, Apr 11, 2024 at 04:31:41AM +0300, Dmitry Baryshkov wrote: > On Wed, Apr 10, 2024 at 11:52:52PM +0200, Konrad Dybcio wrote: [..] > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > index e4275d3ad581..5a5dc3faa971 100644 > > ---

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Dan Carpenter
On Thu, Apr 11, 2024 at 05:04:40PM +0200, Thorsten Blum wrote: > Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all > occurrences of "the the" and replace them with a single "the". > > Changes only comments and documentation - no code changes. > > Signed-off-by: Thorsten Blum > ---

Re: [PATCH 05/10] drm: move intel_lpe_audio.h under include/drm/intel

2024-04-11 Thread Jani Nikula
On Thu, 11 Apr 2024, Andi Shyti wrote: > Hi Jani, > > On Wed, Apr 10, 2024 at 01:05:12PM +0300, Jani Nikula wrote: >> Clean up the top level include/drm directory by grouping all the Intel >> specific files under a common subdirectory. >> >> Cc: Daniel Vetter >> Cc: Dave Airlie >> Cc: Lucas De

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Randy Dunlap
On 4/11/24 8:04 AM, Thorsten Blum wrote: > Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all > occurrences of "the the" and replace them with a single "the". > > Changes only comments and documentation - no code changes. > > Signed-off-by: Thorsten Blum > --- >

[PATCH] treewide: Fix common grammar mistake "the the"

2024-04-11 Thread Thorsten Blum
Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all occurrences of "the the" and replace them with a single "the". Changes only comments and documentation - no code changes. Signed-off-by: Thorsten Blum --- Documentation/trace/histogram.rst | 2 +- arch/arm/Kconfig

Re: [PATCH v2] drm: move i915_drm.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:26:15PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > v2: Also fix comment in intel_pci_config.h (Ilpo) > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc:

Re: [PATCH 4.19 000/175] 4.19.312-rc1 review

2024-04-11 Thread Naresh Kamboju
On Thu, 11 Apr 2024 at 15:30, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.312 release. > There are 175 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 05/10] drm: move intel_lpe_audio.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:05:12PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Lucas De Marchi > Cc: Jaroslav Kysela > Cc: Takashi Iwai

Re: [PATCH 04/10] drm: move i915_component.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:05:11PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Lucas De Marchi > Cc: Tomas Winkler > Cc: Jaroslav Kysela

Re: [PATCH 03/10] drm: move i915_gsc_proxy_mei_interface.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:05:10PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Lucas De Marchi > Cc: Tomas Winkler > Signed-off-by: Jani

Re: [PATCH 1/1] video: Handle HAS_IOPORT dependencies

2024-04-11 Thread Helge Deller
* Niklas Schnelle : > In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at > compile time. We thus need to #ifdef functions and their callsites which > unconditionally use these I/O accessors. In the include/video/vga.h > these are conveniently all those functions with the

Re: [bug report] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2024-04-11 Thread Aleksandr Mishin
On 11.04.2024 16:39, Dan Carpenter wrote: Hello Aleksandr Mishin, Commit 935a92a1c400 ("drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference") from Apr 8, 2024 (linux-next), leads to the following Smatch static checker warning:

Re: [PATCH 12/21] drm/tilcdc: Allow build without __iowmb()

2024-04-11 Thread jyri . sarha
April 10, 2024 at 8:04 PM, "Ville Syrjälä" mailto:ville.syrj...@linux.intel.com?to=%22Ville%20Syrj%C3%A4l%C3%A4%22%20%3Cville.syrjala%40linux.intel.com%3E > wrote: > > What if someone tries to actually boot a kernel built > with COMPILE_TEST=y on a machine with this hardware? > I doubt there

[bug report] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2024-04-11 Thread Dan Carpenter
Hello Aleksandr Mishin, Commit 935a92a1c400 ("drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference") from Apr 8, 2024 (linux-next), leads to the following Smatch static checker warning: drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:2074 cdns_mhdp_atomic_enable()

Re: [PATCH] drm/virtio: add driver_priv validation in virtio_gpu_create_context

2024-04-11 Thread Dmitry Osipenko
On 3/28/24 16:43, Maxim Korotkov wrote: > The pointer file->driver_priv was dereferenced without checking > against NULL, but in the "virtio_gpu_transfer_to_host_ioctl" function > it was checked against NULL after calling virtio_gpu_create_context > function. > > Found by Security Code and Linux

Re: [PATCH v10 4/9] drm/ttm/tests: Add tests with mock resource managers

2024-04-11 Thread Karolina Stolarek
On 10.04.2024 16:24, Matthew Auld wrote: On 22/03/2024 14:29, Karolina Stolarek wrote: +static const struct ttm_bo_validate_test_case ttm_mem_type_cases[] = { +    { +    .description = "System manager", +    .mem_type = TTM_PL_SYSTEM, +    }, +    { +    .description = "VRAM

Re: [PATCH v10 3/9] drm/ttm/tests: Test simple BO creation and validation

2024-04-11 Thread Karolina Stolarek
On 10.04.2024 16:01, Matthew Auld wrote: On 22/03/2024 14:29, Karolina Stolarek wrote: +static void ttm_bo_validate_pinned(struct kunit *test) +{ +    enum ttm_bo_type bo_type = ttm_bo_type_device; +    uint32_t size = ALIGN(BO_SIZE, PAGE_SIZE); +    struct ttm_operation_ctx ctx = { }; +   

Re: (subset) [PATCH] video: backlight: otm3225a: drop driver owner assignment

2024-04-11 Thread Lee Jones
On Wed, 27 Mar 2024 18:47:14 +0100, Krzysztof Kozlowski wrote: > Core in spi_register_driver() already sets the .owner, so driver > does not need to. > > Applied, thanks! [1/1] video: backlight: otm3225a: drop driver owner assignment commit: 9db7677e33b646a7fd60d35cbd4ab99886057a85 --

Re: (subset) [PATCH v2] backlight: lp8788: Drop support for platform data

2024-04-11 Thread Lee Jones
On Thu, 14 Mar 2024 12:35:28 +0100, Uwe Kleine-König wrote: > The backlight driver supports getting passed platform data. However this > isn't used. This allows to remove quite some dead code from the driver > because bl->pdata is always NULL, and so bl->mode is always > LP8788_BL_REGISTER_ONLY. >

Re: [PATCH V2] drm/ttm: remove unused paramter

2024-04-11 Thread Christian König
Am 01.04.24 um 05:04 schrieb jesse.zh...@amd.com: From: Jesse Zhang remove the unsed the paramter in the function ttm_bo_bounce_temp_buffer and ttm_bo_add_move_fence. V2:rebase the patch on top of drm-misc-next (Christian) And pushed to drm-misc-next. Thanks, Christian. Signed-off-by:

[PATCH v2] drm: nv04: Fix out of bounds access

2024-04-11 Thread Mikhail Kobuk
When Output Resource (dcb->or) value is assigned in fabricate_dcb_output(), there may be out of bounds access to dac_users array in case dcb->or is zero because ffs(dcb->or) is used as index there. The 'or' argument of fabricate_dcb_output() must be interpreted as a number of bit to set, not

Re: (subset) [PATCH v3] backlight: lp8788: Drop support for platform data

2024-04-11 Thread Lee Jones
On Fri, 29 Mar 2024 14:38:39 +0100, Uwe Kleine-König wrote: > The backlight driver supports getting passed platform data. However this > isn't used. This allows to remove quite some dead code from the driver > because bl->pdata is always NULL, and so bl->mode is always > LP8788_BL_REGISTER_ONLY. >

[PATCH 5.10 017/294] drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

2024-04-11 Thread Greg Kroah-Hartman
5.10-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 517621b7060096e48e42f545fa6646fc00252eac ] vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent

[PATCH 5.10 015/294] drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable ret

2024-04-11 Thread Greg Kroah-Hartman
5.10-stable review patch. If anyone has any objections, please let me know. -- From: Lee Jones [ Upstream commit 43ebfe61c3928573a5ef8d80c2f5300aa5c904c0 ] Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c: In function

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2024-04-11 Thread Christian König
Am 10.04.24 um 17:07 schrieb T.J. Mercier: On Wed, Apr 10, 2024 at 7:22 AM Christian König wrote: Am 09.04.24 um 18:37 schrieb T.J. Mercier: On Tue, Apr 9, 2024 at 12:34 AM Rong Qianfeng <11065...@vivo.com> wrote: 在 2024/4/8 15:58, Christian König 写道: Am 07.04.24 um 09:50 schrieb Rong

[PATCH 4.19 109/175] drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()

2024-04-11 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Niedermaier commit 6061806a863e8b65b109eb06a280041cc7525442 upstream. If display timings were read from the devicetree using of_get_display_timing() and pixelclk-active is defined

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2024-04-11 Thread Rong Qianfeng
在 2024/4/10 23:07, T.J. Mercier 写道: [You don't often get email from tjmerc...@google.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] On Wed, Apr 10, 2024 at 7:22 AM Christian König wrote: Am 09.04.24 um 18:37 schrieb T.J. Mercier: On Tue, Apr 9, 2024 at

Re: [PATCH v1 2/4] drm/panel: boe-tv101wum-nl6: Support for BOE nv110wum-l60 MIPI-DSI panel

2024-04-11 Thread Linus Walleij
On Thu, Apr 11, 2024 at 9:40 AM Doug Anderson wrote: > On Wed, Apr 10, 2024 at 12:15 AM Cong Yang > wrote: > > > > The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nicely > > with the existing panel-boe-tv101wum-nl6 driver. Hence, we add a new > > compatible with panel specific

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2024-04-11 Thread Rong Qianfeng
在 2024/4/10 0:37, T.J. Mercier 写道: [You don't often get email from tjmerc...@google.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] On Tue, Apr 9, 2024 at 12:34 AM Rong Qianfeng <11065...@vivo.com> wrote: 在 2024/4/8 15:58, Christian König 写道: Am

Re: [PATCH v1 2/4] drm/panel: boe-tv101wum-nl6: Support for BOE nv110wum-l60 MIPI-DSI panel

2024-04-11 Thread cong yang
Hi, Doug Anderson 于2024年4月11日周四 15:48写道: > > Hi, > > On Wed, Apr 10, 2024 at 12:15 AM Cong Yang > wrote: > > > > The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nicely > > with the existing panel-boe-tv101wum-nl6 driver. Hence, we add a new > > compatible with panel specific

Re: [PATCH 4.19.y] drm/vkms: call drm_atomic_helper_shutdown before drm_dev_put()

2024-04-11 Thread Greg KH
On Tue, Apr 09, 2024 at 10:38:34AM +0800, guomengqi (A) wrote: > > 在 2024/4/5 17:30, Greg KH 写道: > > On Wed, Apr 03, 2024 at 05:47:16PM +0800, Guo Mengqi wrote: > > > commit 73a82b22963d ("drm/atomic: Fix potential use-after-free > > > in nonblocking commits") introduced drm_dev_get/put() to > >

Patch "drm/vkms: call drm_atomic_helper_shutdown before drm_dev_put()" has been added to the 5.4-stable tree

2024-04-11 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vkms: call drm_atomic_helper_shutdown before drm_dev_put() to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

Patch "drm/vkms: call drm_atomic_helper_shutdown before drm_dev_put()" has been added to the 4.19-stable tree

2024-04-11 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vkms: call drm_atomic_helper_shutdown before drm_dev_put() to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

Re: [PATCH v1 2/4] drm/panel: boe-tv101wum-nl6: Support for BOE nv110wum-l60 MIPI-DSI panel

2024-04-11 Thread Doug Anderson
Hi, On Wed, Apr 10, 2024 at 12:15 AM Cong Yang wrote: > > The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nicely > with the existing panel-boe-tv101wum-nl6 driver. Hence, we add a new > compatible with panel specific config. I guess we have the same question we've had with

Re: [PATCH v1 1/1] drm/mediatek/dp: The register is written with the parsed DTS SSC value.

2024-04-11 Thread 杨连坤

Re: [PATCH v1 1/1] drm/mediatek/dp: The register is written with the parsed DTS SSC value.

2024-04-11 Thread 杨连坤
On Wed, 2024-04-03 at 16:56 +0200, Krzysztof Kozlowski wrote: Dear Krzysztof: The dp_phy device has already been registered through the mtk_dp_register_phy function in the mtk_dp.c file, so it cannot be redefined in the dts. Avoid using of_get_child_by_name for this purpose. To find the node

Re: [PATCH] fbdev/sh7760fb: allow modular build

2024-04-11 Thread John Paul Adrian Glaubitz
Hi Randy, On Tue, 2024-04-09 at 21:54 -0700, Randy Dunlap wrote: > Will someone be merging this patch? Shall I pick it up through my tree? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [PATCH] fbdev/sh7760fb: allow modular build

2024-04-11 Thread John Paul Adrian Glaubitz
On Wed, 2024-04-10 at 15:17 +0200, Helge Deller wrote: > On 4/10/24 06:54, Randy Dunlap wrote: > > Hi, > > > > Will someone be merging this patch? > > I've just added it to the fbdev git tree. Ah, good. Then I can drop it from my queue again. Adrian -- .''`. John Paul Adrian Glaubitz : :'

[PULL] drm-misc-fixes

2024-04-11 Thread Thomas Zimmermann
Hi Dave, Sima, here's the PR for drm-misc-fixes for this week. Best regards Thomas drm-misc-fixes-2024-04-11: Short summary of fixes pull: ast: - Fix soft lockup client: - Protect connector modes with mode_config mutex host1x: - Do not setup DMA for virtual addresses ivpu: - Fix deadlock in

[PATCH v14 7/8] udmabuf: Pin the pages using memfd_pin_folios() API

2024-04-11 Thread Vivek Kasireddy
Using memfd_pin_folios() will ensure that the pages are pinned correctly using FOLL_PIN. And, this also ensures that we don't accidentally break features such as memory hotunplug as it would not allow pinning pages in the movable zone. Using this new API also simplifies the code as we no longer

[PATCH v14 4/8] udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap

2024-04-11 Thread Vivek Kasireddy
Add VM_PFNMAP to vm_flags in the mmap handler to ensure that the mappings would be managed without using struct page. And, in the vm_fault handler, use vmf_insert_pfn to share the page's pfn to userspace instead of directly sharing the page (via struct page *). Cc: David Hildenbrand Cc: Daniel

[PATCH v14 2/8] mm/gup: Introduce check_and_migrate_movable_folios()

2024-04-11 Thread Vivek Kasireddy
This helper is the folio equivalent of check_and_migrate_movable_pages(). Therefore, all the rules that apply to check_and_migrate_movable_pages() also apply to this one as well. Currently, this helper is only used by memfd_pin_folios(). This patch also includes changes to rename and convert the

[PATCH v14 1/8] mm/gup: Introduce unpin_folio/unpin_folios helpers

2024-04-11 Thread Vivek Kasireddy
These helpers are the folio versions of unpin_user_page/unpin_user_pages. They are currently only useful for unpinning folios pinned by memfd_pin_folios() or other associated routines. However, they could find new uses in the future, when more and more folio-only helpers are added to GUP. We

[PATCH v14 8/8] selftests/udmabuf: Add tests to verify data after page migration

2024-04-11 Thread Vivek Kasireddy
Since the memfd pages associated with a udmabuf may be migrated as part of udmabuf create, we need to verify the data coherency after successful migration. The new tests added in this patch try to do just that using 4k sized pages and also 2 MB sized huge pages for the memfd. Successful

[PATCH v14 3/8] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios

2024-04-11 Thread Vivek Kasireddy
For drivers that would like to longterm-pin the folios associated with a memfd, the memfd_pin_folios() API provides an option to not only pin the folios via FOLL_PIN but also to check and migrate them if they reside in movable zone or CMA block. This API currently works with memfds but it should

[PATCH v14 5/8] udmabuf: Add back support for mapping hugetlb pages

2024-04-11 Thread Vivek Kasireddy
A user or admin can configure a VMM (Qemu) Guest's memory to be backed by hugetlb pages for various reasons. However, a Guest OS would still allocate (and pin) buffers that are backed by regular 4k sized pages. In order to map these buffers and create dma-bufs for them on the Host, we first need

[PATCH v14 0/8] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios

2024-04-11 Thread Vivek Kasireddy
Currently, some drivers (e.g, Udmabuf) that want to longterm-pin the pages/folios associated with a memfd, do so by simply taking a reference on them. This is not desirable because the pages/folios may reside in Movable zone or CMA block. Therefore, having drivers use memfd_pin_folios() API

  1   2   >