RE: [PATCH] drm/kmb: Fix for build errors with Warray-bounds

2022-01-27 Thread Chrisanthus, Anitha
Thanks. Fixed line wrapping and change is pushed to drm-misc-fixes. > -Original Message- > From: dri-devel On Behalf Of Kees > Cook > Sent: Thursday, January 27, 2022 1:14 PM > To: Chrisanthus, Anitha > Cc: Dea, Edmund J ; s...@ravnborg.org; dri- > de...@lists.freedesktop.org; s...@canb.

Re: [PATCH v4 00/10] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-01-27 Thread Sierra Guiza, Alejandro (Alex)
Andrew, We're somehow new on this procedure. Are you referring to rebase this patch series to git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git <5.17-rc1 tag>? Regards, Alex Sierra Alex Deucher, Just a quick heads up. This patch series contains changes to the amdgpu driver wh

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/uapi: Add query for hwconfig table

2022-01-27 Thread Jordan Justen
john.c.harri...@intel.com writes: > From: Rodrigo Vivi > > GuC contains a consolidated table with a bunch of information about the > current device. > > Previously, this information was spread and hardcoded to all the components > including GuC, i915 and various UMDs. The goal here is to consolid

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/uapi: Add query for hwconfig table

2022-01-27 Thread John Harrison
On 1/27/2022 16:48, Jordan Justen wrote: john.c.harri...@intel.com writes: From: Rodrigo Vivi GuC contains a consolidated table with a bunch of information about the current device. Previously, this information was spread and hardcoded to all the components including GuC, i915 and various UM

Re: [PATCH v4 01/10] mm: add zone device coherent type memory support

2022-01-27 Thread Alistair Popple
On Thursday, 27 January 2022 2:09:40 PM AEDT Alex Sierra wrote: [...] > diff --git a/mm/migrate.c b/mm/migrate.c > index 1852d787e6ab..277562cd4cf5 100644 > --- a/mm/migrate.c > +++ b/mm/migrate.c > @@ -362,7 +362,7 @@ static int expected_page_refs(struct address_space > *mapping, struct page *pa

Re: [PATCH v4 02/10] mm: add device coherent vma selection for memory migration

2022-01-27 Thread Alistair Popple
On Thursday, 27 January 2022 2:09:41 PM AEDT Alex Sierra wrote: [...] > diff --git a/mm/migrate.c b/mm/migrate.c > index 277562cd4cf5..2b3375e165b1 100644 > --- a/mm/migrate.c > +++ b/mm/migrate.c > @@ -2340,8 +2340,6 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp, > if (

Re: [PATCH v4 03/10] mm/gup: fail get_user_pages for LONGTERM dev coherent type

2022-01-27 Thread Alistair Popple
On Thursday, 27 January 2022 2:09:42 PM AEDT Alex Sierra wrote: > Avoid long term pinning for Coherent device type pages. This could > interfere with their own device memory manager. For now, we are just > returning error for PIN_LONGTERM Coherent device type pages. Eventually, > these type of page

Re: [PATCH v4 04/10] drm/amdkfd: add SPM support for SVM

2022-01-27 Thread Alistair Popple
On Thursday, 27 January 2022 2:09:43 PM AEDT Alex Sierra wrote: [...] > @@ -984,3 +990,4 @@ int svm_migrate_init(struct amdgpu_device *adev) > > return 0; > } > + > git-am complained about this when I applied the series. Given you have to rebase anyway it would be worth fixing this.

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/uapi: Add query for hwconfig table

2022-01-27 Thread Jordan Justen
John Harrison writes: > On 1/27/2022 16:48, Jordan Justen wrote: >> john.c.harri...@intel.com writes: >> >>> From: Rodrigo Vivi >>> >>> GuC contains a consolidated table with a bunch of information about the >>> current device. >>> >>> Previously, this information was spread and hardcoded to all

[PATCH] media: uapi: Init VP9 stateless decode params

2022-01-27 Thread Yunfei Dong
Init some of VP9 frame decode params to default value. Fixes: b88dbe38dca8 ("media: uapi: Add VP9 stateless decoder controls") Signed-off-by: Yunfei Dong --- drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls-c

Re: [RFC PATCH 2/2] drm/mediatek: add mtk8195 hdmi display driver

2022-01-27 Thread CK Hu
Hi, Guillaume: On Mon, 2021-11-08 at 01:08 +0100, Guillaume Ranquet wrote: > Signed-off-by: Guillaume Ranquet > Change-Id: I6399dec26cfe56a338c2ca96989cb7cbd14e292b > --- > drivers/gpu/drm/mediatek/Kconfig |9 + > drivers/gpu/drm/mediatek/Makefile |2 + > drivers

Re: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params

2022-01-27 Thread yunfei.d...@mediatek.com
Hi Chen-Yu, Thanks for your suggestion. Send this patch again. On Thu, 2022-01-27 at 17:23 +0800, Chen-Yu Tsai wrote: > Hi, > > On Thu, Jan 27, 2022 at 10:56 AM Yunfei Dong < > yunfei.d...@mediatek.com> wrote: > > > > Init some of VP9 frame decode params to default value. > > > > Signed-off-by:

Re: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params

2022-01-27 Thread yunfei.d...@mediatek.com
Hi AngeloGioacchino, Thanks for your suggestion, Separate this patch with mt8195 support, and sent it again. On Thu, 2022-01-27 at 11:35 +0100, AngeloGioacchino Del Regno wrote: > Il 27/01/22 03:55, Yunfei Dong ha scritto: > > Init some of VP9 frame decode params to default value. > > > > Signed

[PATCH v2 1/28] drm/amdgpu: fix that issue that the number of the crtc of the 3250c is not correct

2022-01-27 Thread RyanLin
v2: - remove unnecessary comments and Id [Why] External displays take priority over internal display when there are fewer display controllers than displays. [How] The root cause is because of that number of the crtc is not correct. The number of the crtc on the 3250c is 3, but on the 3500c is

[PATCH v2, 3/7] dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for mt8195

2022-01-27 Thread Yunfei Dong
Adds decoder dt-bindings for mt8195. Signed-off-by: Yunfei Dong Reviewed-by: Macpaul Lin --- .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Docum

[PATCH v2, 2/7] media: mtk-vcodec: Add to support lat soc hardware

2022-01-27 Thread Yunfei Dong
Add lat soc compatible and to support lat soc power/clk helper. Signed-off-by: Yunfei Dong --- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.c | 12 +--- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.h | 2 ++ .../platform/mtk-vcodec/mtk_vcodec_dec_pm.c | 16 ...

[PATCH v2, 4/7] media: mtk-vcodec: Adds compatible for mt8195

2022-01-27 Thread Yunfei Dong
Adds compatible for mt8195 platform. Signed-off-by: Yunfei Dong Reviewed-by: Macpaul Lin --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c b/drivers/media/platform/mtk-vcodec

[PATCH v2, 6/7] media: mtk-vcodec: prevent kernel crash when scp ipi timeout

2022-01-27 Thread Yunfei Dong
From: Tinghan Shen When SCP timeout during playing video, kernel crashes with following message. It's caused by accessing NULL pointer in vpu_dec_ipi_handler. This patch doesn't solve the root cause of NULL pointer, but merely prevent kernel crashed when encounter the NULL pointer. After applied

[PATCH v2, 0/7] support mt8195 decoder

2022-01-27 Thread Yunfei Dong
Firstly, add mt8195 soc lat hardware and compatible, then add documents. For vp8 only support MM21 mode, H264/vp9 support MT21C, need to separate them. Lastly, enable H264 inner racing mode to reduce hardware latency. Patch 1~4 add mt8195 soc lat hardware and compatible, then add documents. Patch

[PATCH v2, 7/7] media: mtk-vcodec: Add to support H264 inner racing mode

2022-01-27 Thread Yunfei Dong
In order to reduce decoder latency, enable H264 inner racing mode. Send lat trans buffer information to core when trigger lat to work, need not to wait until lat decode done. Signed-off-by: Yunfei Dong --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 4 +++ .../platform/mtk-vcodec/mtk_vcode

[PATCH v2, 1/7] dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for lat soc

2022-01-27 Thread Yunfei Dong
Adds decoder dt-bindings for compatible "mediatek,mtk-vcodec-lat-soc". Signed-off-by: Yunfei Dong --- .../media/mediatek,vcodec-subdev-decoder.yaml | 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yam

[PATCH v2, 5/7] media: mtk-vcodec: Different codec using different capture format

2022-01-27 Thread Yunfei Dong
Vp8 need to use MM21, but vp9 and h264 need to use HyFbc mode for mt8195. Vp8/vp9/h264 use the same MM21 format for mt8192. Signed-off-by: Yunfei Dong --- .../platform/mtk-vcodec/mtk_vcodec_dec.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/drivers/media/platform

Re: [PATCH v4 06/10] lib: test_hmm add ioctl to get zone device type

2022-01-27 Thread Alistair Popple
Reviewed-by: Alistair Popple On Thursday, 27 January 2022 2:09:45 PM AEDT Alex Sierra wrote: > new ioctl cmd added to query zone device type. This will be > used once the test_hmm adds zone device coherent type. > > Signed-off-by: Alex Sierra > --- > lib/test_hmm.c | 23 ++

Re: [PATCH v4 07/10] lib: test_hmm add module param for zone device type

2022-01-27 Thread Alistair Popple
Thanks for the updates, looks good now. Reviewed-by: Alistair Popple On Thursday, 27 January 2022 2:09:46 PM AEDT Alex Sierra wrote: > In order to configure device coherent in test_hmm, two module parameters > should be passed, which correspond to the SP start address of each > device (2) spm_ad

Re: [PATCH v4 08/10] lib: add support for device coherent type in test_hmm

2022-01-27 Thread Alistair Popple
I haven't tested the change which checks that pages migrated back to sysmem, but it looks ok so: Reviewed-by: Alistair Popple On Thursday, 27 January 2022 2:09:47 PM AEDT Alex Sierra wrote: > Device Coherent type uses device memory that is coherently accesible by > the CPU. This could be shown a

[RFC PATCH] i915/gvt: intel_gvt_match_device() can be static

2022-01-27 Thread kernel test robot
drivers/gpu/drm/i915/gvt/handlers.c:45:6: warning: symbol 'intel_gvt_match_device' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- handlers.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/g

Re: [v1, 3/3] drm/mediatek: Move the getting bridge node function to mtk_dsi_bind

2022-01-27 Thread CK Hu
Hi, Xinlei: On Thu, 2022-01-27 at 19:42 +0800, xinlei@mediatek.com wrote: > From: xinlei lee > > The order of probe function for bridge drivers and dsi drivers is > uncertain. > To avoid the dsi probe cannot be executed, we place getting bridge > node function in > mtk_dsi_bind. It seems th

Re: [v1, 1/3] dt-bindings: display: mediatek: dsi: add documentation for MT8186 SoC

2022-01-27 Thread CK Hu
Hi, Xinlei: On Thu, 2022-01-27 at 19:42 +0800, xinlei@mediatek.com wrote: > From: xinlei lee > > Add binding documentation for the MT8186 SoC. DPI has a yaml format document, so I would like DSI also has a yaml format document. Please send a patch to transfer DSI document to yaml, and then

Re: [v1,2/3] drm/mediatek: Add mt8186 dsi compatible to mtk_dsi.c

2022-01-27 Thread CK Hu
Hi, Xinlei: On Thu, 2022-01-27 at 19:42 +0800, xinlei@mediatek.com wrote: > From: xinlei lee > > Add the compatible of mt8186-dsi because we use different cmdq > addresses in mt8186. Reviewed-by: CK Hu > > Signed-off-by: Xinlei Lee > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 8 +++

Re: [Intel-gfx] [PATCH 1/3] i915/gvt: Introduce the mmio_table.c to support VFIO new mdev API

2022-01-27 Thread kernel test robot
Hi Zhi, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-tip/drm-tip] [also build test WARNING on next-20220127] [cannot apply to drm-intel/for-linux-next hch-configfs/for-next v5.17-rc1] [If your patch is applied to the wrong git tree, kindly drop us a note. And

[git pull] drm fixes for 5.17-rc2

2022-01-27 Thread Dave Airlie
Hi Linus, This week's regular normal fixes. amdgpu and msm make up the bulk of it, with a scattering of fixes elsewhere. Dave. drm-fixes-2022-01-28: drm fixes for 5.17-rc2 atomic: - fix CRTC handling during modeset privacy-screen: - honor acpi=off ttm: - build fix for um panel: - add orienta

[RFC PATCH v6 1/3] drm: introduce fb_modifiers_not_supported flag in mode_config

2022-01-27 Thread Tomohito Esaki
If only linear modifier is advertised, since there are many drivers that only linear supported, the DRM core should handle this rather than open-coding in every driver. However, there are legacy drivers such as radeon that do not support modifiers but infer the actual layout of the underlying buffe

[RFC PATCH v6 0/3] Add support modifiers for drivers whose planes only support linear layout

2022-01-27 Thread Tomohito Esaki
Some drivers whose planes only support linear layout fb do not support format modifiers. These drivers should support modifiers, however the DRM core should handle this rather than open-coding in every driver. In this patch series, these drivers expose format modifiers based on the following sugge

[RFC PATCH v6 2/3] drm: add support modifiers for drivers whose planes only support linear layout

2022-01-27 Thread Tomohito Esaki
The LINEAR modifier is advertised as default if a driver doesn't specify modifiers. v2: - rebase to the latest master branch (5.16.0+) + "drm/plane: Make format_mod_supported truly optional" patch [1] [1] https://patchwork.freedesktop.org/patch/467940/?series=98255&rev=3 v3: - change the

[RFC PATCH v6 3/3] drm: remove allow_fb_modifiers

2022-01-27 Thread Tomohito Esaki
The allow_fb_modifiers flag is unnecessary since it has been replaced with fb_modifiers_not_supported flag. v3: - change the order as follows: 1. add fb_modifiers_not_supported flag 2. add default modifiers 3. remove allow_fb_modifiers flag v5: - keep a sanity check in plane init func

Re: [PATCH] drm/exynos: Search for TE-gpio in DSI panel's node

2022-01-27 Thread Inki Dae
Hi, 22. 1. 25. 00:22에 Henrik Grimler 이(가) 쓴 글: > Hi Marek, > > On Mon, Jan 24, 2022 at 02:52:46PM +0100, Marek Szyprowski wrote: >> TE-gpio, if defined, is placed in the panel's node, not the parent DSI >> node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and >> pass proper devic

Re: [RFC PATCH 2/2] drm/mediatek: add mtk8195 hdmi display driver

2022-01-27 Thread CK Hu
Hi, Guillaume: On Mon, 2021-11-08 at 01:08 +0100, Guillaume Ranquet wrote: > Signed-off-by: Guillaume Ranquet > Change-Id: I6399dec26cfe56a338c2ca96989cb7cbd14e292b > --- > drivers/gpu/drm/mediatek/Kconfig |9 + > drivers/gpu/drm/mediatek/Makefile |2 + > drivers

[PATCH] drm/amdgpu: remove duplicate include in 'amdgpu_device.c'

2022-01-27 Thread cgel . zte
From: Changcheng Deng 'linux/pci.h' included in 'amdgpu_device.c' is duplicated. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/d

Re: [PATCH v4 00/10] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-01-27 Thread Andrew Morton
On Thu, 27 Jan 2022 17:20:40 -0600 "Sierra Guiza, Alejandro (Alex)" wrote: > Andrew, > We're somehow new on this procedure. Are you referring to rebase this > patch series to > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > <5.17-rc1 tag>? No, against current Linus mainli

Re: [PATCH 2/5] staging: fbtft: Deduplicate driver registration macros

2022-01-27 Thread Greg Kroah-Hartman
On Thu, Jan 27, 2022 at 10:36:07PM +0100, Uwe Kleine-König wrote: > Hello Greg, > > On Sun, Jan 23, 2022 at 06:51:58PM +0100, Uwe Kleine-König wrote: > > The two macros FBTFT_REGISTER_DRIVER and FBTFT_REGISTER_SPI_DRIVER > > contain quite some duplication: Both define an spi driver and an of devic

[PATCH] drm/amd/pm: remove duplicate include in 'arcturus_ppt.c'

2022-01-27 Thread cgel . zte
From: Changcheng Deng 'amdgpu_dpm.h' included in 'arcturus_ppt.c' is duplicated. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng --- drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c b

<    1   2   3