Re: [PATCH] Prevent CPU deadlock with fbdev based consoles while printing scheduler warnings

2022-08-21 Thread Mika Penttilä
Gentle ping, any concerns or suggestions on this topic or solution in general? Thanks, Mika On 2.8.2022 6.31, mpent...@redhat.com wrote: From: Mika Penttilä With some fbdev based consoles, using the deferred_io mechanism and drm_fb_helper, there can be a call chain like: Backtrack:

Re: [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188

2022-08-21 Thread CK Hu
Hi, Nathan: On Mon, 2022-08-22 at 11:32 +0800, nathan.lu wrote: > From: Nathan Lu > > modify VDOSYS0 device tree Documentations for MT8188. > > Signed-off-by: Nathan Lu > --- > .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 1 + >

Re: [PATCH v2 3/4] drm/modes: Add initializer macro DRM_MODE_INIT()

2022-08-21 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on next-20220819] [cannot apply to linus/master v6.0-rc1] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [RESEND v6 5/9] drm: vkms: Add fb information to `vkms_writeback_job`

2022-08-21 Thread Melissa Wen
On 08/19, Igor Torrente wrote: > This commit is the groundwork to introduce new formats to the planes and > writeback buffer. As part of it, a new buffer metadata field is added to > `vkms_writeback_job`, this metadata is represented by the `vkms_frame_info` > struct. > > Also adds two new

Re: [PATCH 0/6] amdgpu: Allow explicitly synchronized submissions.

2022-08-21 Thread Bas Nieuwenhuizen
On Thu, Aug 18, 2022 at 3:20 PM Christian König wrote: > > Hi Bas, > > I've just pushed the branch drm-exec to my fdo repository: > https://gitlab.freedesktop.org/ckoenig/linux-drm.git > > This branch contains all the gang submit patches as well as the latest > drm-exec stuff. VCN3/4 video

Re: [PATCH v5 9/9] drm: selftest: convert drm_mm selftest to KUnit

2022-08-21 Thread Isabella Basso
Hi Michał, While I totally understand your point, we have talked about this in our GSoC meetings with mentors, and have found a few reasons as to why a KUnit runner integrated to IGT might be really useful. > Am 22/07/2022 um 1:25 PM schrieb Michał Winiarski : > > On Fri, Jul 22, 2022 at

Re: Rust in our code base

2022-08-21 Thread Karol Herbst
On Sun, Aug 21, 2022 at 8:34 PM Rob Clark wrote: > > On Sun, Aug 21, 2022 at 10:45 AM Karol Herbst wrote: > > > > On Sun, Aug 21, 2022 at 7:43 PM Karol Herbst wrote: > > > > > > On Sun, Aug 21, 2022 at 5:46 PM Rob Clark wrote: > > > > > > > > On Sat, Aug 20, 2022 at 5:23 AM Karol Herbst

Re: Rust in our code base

2022-08-21 Thread Rob Clark
On Sun, Aug 21, 2022 at 10:45 AM Karol Herbst wrote: > > On Sun, Aug 21, 2022 at 7:43 PM Karol Herbst wrote: > > > > On Sun, Aug 21, 2022 at 5:46 PM Rob Clark wrote: > > > > > > On Sat, Aug 20, 2022 at 5:23 AM Karol Herbst wrote: > > > > > > > > Hey everybody, > > > > > > > > so I think it's

[PATCH 5/5] drm/msm: Skip tlbinv on unmap from non-current pgtables

2022-08-21 Thread Rob Clark
From: Rob Clark We can rely on the tlbinv done by CP_SMMU_TABLE_UPDATE in this case. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 ++ drivers/gpu/drm/msm/msm_iommu.c | 29 +++ 2 files changed, 35 insertions(+) diff --git

[PATCH 3/5] iommu/arm-smmu-qcom: Add private interface to tlbinv by ASID

2022-08-21 Thread Rob Clark
From: Rob Clark This will let the drm driver use different ASID values for each set of pgtables to avoid over-invalidation on unmap. Signed-off-by: Rob Clark --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 + drivers/iommu/arm/arm-smmu/arm-smmu.c | 43 --

[PATCH 4/5] drm/msm: Use separate ASID for each set of pgtables

2022-08-21 Thread Rob Clark
From: Rob Clark Optimize TLB invalidation by using different ASID for each set of pgtables. There can be scenarios where multiple processes end up with the same ASID (such as >256 processes using the GPU), but this is harmless, it will only result in some over-invalidation (but less

[PATCH 2/5] iommu/arm-smmu-qcom: Provide way to access current TTBR0

2022-08-21 Thread Rob Clark
From: Rob Clark The drm driver can skip tlbinv when unmapping from something that isn't the current pgtables, as there is already a tlbinv on context switch. Signed-off-by: Rob Clark --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 9 + include/linux/adreno-smmu-priv.h | 2

[PATCH 1/5] iommu/arm-smmu-qcom: Fix indentation

2022-08-21 Thread Rob Clark
From: Rob Clark Plus typo. Signed-off-by: Rob Clark --- include/linux/adreno-smmu-priv.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/adreno-smmu-priv.h b/include/linux/adreno-smmu-priv.h index c637e0997f6d..ac4c2c0ab724 100644 ---

[PATCH 0/5] drm/msm+iommu/arm-smmu-qcom: tlbinv optimizations

2022-08-21 Thread Rob Clark
From: Rob Clark Two additions to adreno_smmu_priv to allow for a couple of optimizations: + Use a separate ASID for each set of pgtables to avoid over-invalidation. + Detect the case of unmapping from non-current pgtables where we can skip the redundant tlbinv Rob Clark (5):

Re: Rust in our code base

2022-08-21 Thread Karol Herbst
On Sun, Aug 21, 2022 at 5:46 PM Rob Clark wrote: > > On Sat, Aug 20, 2022 at 5:23 AM Karol Herbst wrote: > > > > Hey everybody, > > > > so I think it's time to have this discussion for real. > > > > I am working on Rusticl > > (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439) > >

Re: [PATCH v1 00/35] drm: Analog TV Improvements

2022-08-21 Thread Noralf Trønnes
Den 29.07.2022 18.34, skrev Maxime Ripard: > Hi, > > Here's a series aiming at improving the command line named modes support, > and more importantly how we deal with all the analog TV variants. > > The named modes support were initially introduced to allow to specify the > analog TV mode to

Re: [PATCH v1 35/35] drm/modes: Introduce more named modes

2022-08-21 Thread Noralf Trønnes
Den 29.07.2022 18.35, skrev Maxime Ripard: > Now that we can easily extend the named modes list, let's add a few more > analog TV modes that were used in the wild, and some unit tests to make > sure it works as intended. > > Signed-off-by: Maxime Ripard > > diff --git

[PATCH] drm/msm: De-open-code some CP_EVENT_WRITE

2022-08-21 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a4xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c

Re: Rust in our code base

2022-08-21 Thread Rob Clark
On Sat, Aug 20, 2022 at 5:23 AM Karol Herbst wrote: > > Hey everybody, > > so I think it's time to have this discussion for real. > > I am working on Rusticl > (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439) > which I would like to merge quite soon. > > Others might also plan on

Re: [PATCH] subdev/clk: fix repeated words in comments

2022-08-21 Thread Karol Herbst
Reviewed-by: Karol Herbst thanks, and I'll push in a moment. On Sun, Aug 21, 2022 at 4:34 PM wangjianli wrote: > > Delete the redundant word 'at'. > > Signed-off-by: wangjianli > --- > drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Fwd: [PATCH 4/4] vfio/pci: Allow MMIO regions to be exported through dma-buf

2022-08-21 Thread Oded Gabbay
On Wed, Aug 17, 2022 at 7:11 PM Jason Gunthorpe wrote: > > dma-buf has become a way to safely acquire a handle to non-struct page > memory that can still have lifetime controlled by the exporter. Notably > RDMA can now import dma-buf FDs and build them into MRs which allows for > PCI P2P

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-21 Thread Noralf Trønnes
Den 18.08.2022 17.31, skrev Maxime Ripard: > On Thu, Aug 18, 2022 at 05:01:38PM +0200, Noralf Trønnes wrote: >> >> >> Den 18.08.2022 01.23, skrev Noralf Trønnes: >>> >>> >>> Den 17.08.2022 15.11, skrev Noralf Trønnes: Den 17.08.2022 13.46, skrev Maxime Ripard: > On Tue, Aug

[PATCH] fbcon: Destroy mutex on freeing struct fb_info

2022-08-21 Thread Shigeru Yoshida
It's needed to destroy bl_curve_mutex on freeing struct fb_info since the mutex is embedded in the structure and initialized when it's allocated. Signed-off-by: Shigeru Yoshida --- drivers/video/fbdev/core/fbsysfs.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH] drm/amd/display: remove unneeded defines from bios parser

2022-08-21 Thread Tales Aparecida
Removes DEFINEs that should have been removed after they were introduced to ObjectID.h by the commit abea57d70e90 ("drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h") Signed-off-by: Tales Aparecida --- .../drm/amd/display/dc/bios/bios_parser2.c| 19 --- 1 file changed, 19