[PATCH] Implement .format_mod_supported in mxsfb

2020-10-24 Thread Daniel Abrecht
This will make sure applications which use the IN_FORMATS blob to figure out which modifiers they can use will pick up the linear modifier which is needed by mxsfb. Such applications will not work otherwise if an incompatible implicit modifier ends up being selected. Signed-off-by: Daniel Abrecht

Re: [PATCH v5 10/10] drm/fb_helper: Support framebuffers in I/O memory

2020-10-24 Thread Sam Ravnborg
Hi Thomas. On Tue, Oct 20, 2020 at 02:20:46PM +0200, Thomas Zimmermann wrote: > At least sparc64 requires I/O-specific access to framebuffers. This > patch updates the fbdev console accordingly. > > For drivers with direct access to the framebuffer memory, the callback > functions in struct fb_op

Re: WARNING in dma_map_page_attrs

2020-10-24 Thread Jakub Kicinski
CC: rdma, looks like rdma from the stack trace On Fri, 23 Oct 2020 20:07:17 -0700 syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit:3cb12d27 Merge tag 'net-5.10-rc1' of git://git.kernel.org/.. > git tree: net > console output: https://syzkaller.ap

Re: [PATCH] drm/i915: Fix a crash in shmem_pin_map() error handling

2020-10-24 Thread Dan Carpenter
On Fri, Oct 23, 2020 at 02:19:41PM +0200, Christoph Hellwig wrote: > > diff --git a/drivers/gpu/drm/i915/gt/shmem_utils.c > > b/drivers/gpu/drm/i915/gt/shmem_utils.c > > index f011ea42487e..7eb542018219 100644 > > --- a/drivers/gpu/drm/i915/gt/shmem_utils.c > > +++ b/drivers/gpu/drm/i915/gt/shmem_

Re: [PATCH v2 1/3] drm/radeon: Add new callback that exposes vddc

2020-10-24 Thread Sandeep
Hello, I've resent the patches in the correct format. Please review. - Sandeep On Fri, 9 Oct 2020 at 13:14, Sandeep Raghuraman wrote: > > This patch adds a callback for reporting vddc, to the dpm field of the > radeon_asic structure. > > Signed-off-by: Sandeep Raghuraman > > --- > drivers/gp

Re: Re: [PATCH] gpu/drm/mgag200:remove break after return

2020-10-24 Thread Sam Ravnborg
Hi Bernard. On Fri, Oct 23, 2020 at 03:48:49PM +0800, Bernard wrote: > > > From: Thomas Zimmermann > Date: 2020-10-23 15:13:30 > To: Bernard Zhao ,Dave Airlie ,David > Airlie ,Daniel Vetter > ,dri-devel@lists.freedesktop.org,linux-ker...@vger.kernel.org > Cc: opensource.ker...@vivo.com > Su

[PATCH] drm/ttm: add __user annotation in radeon_ttm_vram_read

2020-10-24 Thread Rasmus Villemoes
Keep sparse happy by preserving the __user annotation when casting. Reported-by: kernel test robot Signed-off-by: Rasmus Villemoes --- kernel test robot has already started spamming me due to 9c5743dff. If I don't fix those warnings I'll keep getting those emails for months, so let me do the ea

Re: [PATCH] drm/modes: Switch to 64bit maths to avoid integer overflow

2020-10-24 Thread Randy Dunlap
On 10/22/20 12:42 PM, Ville Syrjala wrote: > From: Ville Syrjälä > > The new >8k CEA modes have dotclocks reaching 5.94 GHz, which > means our clock*1000 will now overflow the 32bit unsigned > integer. Switch to 64bit maths to avoid it. > > Cc: sta...@vger.kernel.org > Reported-by: Randy Dunlap

[PATCH v2 0/5] Add DRM/DSI support for MT8167 SoC

2020-10-24 Thread Fabien Parent
This series adds support for DSI on the MT8167 SoC. HDMI is not yet supported as secondary display path. mmsys is not supported by this series and will be sent in a seperate series based on [0]. [0] https://patchwork.kernel.org/project/linux-mediatek/list/?series=360447 Changelog: V2: re

RE: [PATCH 1/2] drm/adi: axi-hdmi-tx: Add support for AXI HDMI TX IP core

2020-10-24 Thread Togorean, Bogdan
Thank you Sam for your review, I'll send now V2 implementing all your remarks. Best regards, Bogdan > > Hi Bogdan > > On Mon, Oct 05, 2020 at 05:12:08PM +0300, Bogdan Togorean wrote: > > From: Lars-Peter Clausen > > > > The AXI HDMI HDL driver is the driver for the HDL graphics core which is >

[PATCH v2 4/5] drm/mediatek: add DDP support for MT8167

2020-10-24 Thread Fabien Parent
Add DDP support for MT8167 SoC. Signed-off-by: Fabien Parent --- Changelog: V2: don't set DDP_MUTEX_SOF_DSI{1,2,3} since they are not available on MT8167 drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/drivers/gpu/drm/medi

[PATCH] drm/rockchip: dw_hdmi: fix incorrect clock in vpll clock error message

2020-10-24 Thread Jonathan Liu
Error message incorrectly refers to grf clock instead of vpll clock. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-roc

[PATCH v2 3/5] drm/mediatek: add disp-color MT8167 support

2020-10-24 Thread Fabien Parent
Add support for disp-color on MT8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Chun-Kuang Hu --- Changelog: V2: No change drivers/gpu/drm/mediatek/mtk_disp_color.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm/med

Re: [PATCH 5/5] drm/: Constify struct drm_driver

2020-10-24 Thread Maxime Ripard
On Fri, Oct 23, 2020 at 02:28:11PM +0200, Daniel Vetter wrote: > Only the following drivers aren't converted: > - amdgpu, because of the driver_feature mangling due to virt support > - nouveau, because DRIVER_ATOMIC uapi is still not the default on the > platforms where it's supported (i.e. again

Re: [PATCH 2/5] drm: Compile out legacy chunks from struct drm_device

2020-10-24 Thread Maxime Ripard
On Fri, Oct 23, 2020 at 02:28:08PM +0200, Daniel Vetter wrote: > This means some very few #ifdef in code, but it allows us to > enlist the compiler to make sure this stuff isn't used anymore. > > More important, only legacy drivers change drm_device (for the > legacy_dev_list shadow attach managem

Re: [PATCH 4/5] drm: Allow const struct drm_driver

2020-10-24 Thread Maxime Ripard
On Fri, Oct 23, 2020 at 02:28:10PM +0200, Daniel Vetter wrote: > It's nice if a big function/ioctl table like this is const. Only > downside here is that we need a few more #ifdef to paper over the > differences when CONFIG_DRM_LEGACY is enabled. Maybe provides more > motivation to sunset that horr

[PATCH v2 5/5] drm/mediatek: Add support for main DDP path on MT8167

2020-10-24 Thread Fabien Parent
Add the main (DSI) drm display path for MT8167. Signed-off-by: Fabien Parent --- Changelog: V2: No change drivers/gpu/drm/mediatek/mtk_drm_drv.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/m

[PATCH v2 2/5] dt-bindings: display: mediatek: dsi: add documentation for MT8167 SoC

2020-10-24 Thread Fabien Parent
Add binding documentation for the MT8167 SoC. Signed-off-by: Fabien Parent --- Changelog: V2: removed part that added a new clock .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bin

Re: [PATCH v6 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-10-24 Thread Jason Gunthorpe
On Fri, Oct 23, 2020 at 06:49:11PM +0200, Daniel Vetter wrote: > > +struct ib_umem *ib_umem_dmabuf_get(struct ib_device *device, > > + unsigned long offset, size_t size, > > + int fd, int access, > > + const stru

Re: WARNING in dma_map_page_attrs

2020-10-24 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:3cb12d27 Merge tag 'net-5.10-rc1' of git://git.kernel.org/.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1312539050 kernel config: https://syzkaller.appspot.com/x/.config?x=46c6fea3eb82

Re:Re: [PATCH] gpu/drm/mgag200:remove break after return

2020-10-24 Thread Bernard
From: Thomas Zimmermann Date: 2020-10-23 15:13:30 To: Bernard Zhao ,Dave Airlie ,David Airlie ,Daniel Vetter ,dri-devel@lists.freedesktop.org,linux-ker...@vger.kernel.org Cc: opensource.ker...@vivo.com Subject: Re: [PATCH] gpu/drm/mgag200:remove break after return>Hi > >On 23.10.20 09:00, Be

[PATCH v2 1/5] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-10-24 Thread Fabien Parent
Add binding documentation for the MT8167 SoC Signed-off-by: Fabien Parent Reviewed-by: Chun-Kuang Hu --- Changelog: V2: No change .../devicetree/bindings/display/mediatek/mediatek,disp.txt| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bi

Re: [PATCH] dt-bindings: More whitespace clean-ups in schema files

2020-10-24 Thread Jonathan Cameron
On Fri, 23 Oct 2020 14:22:58 -0500 Rob Herring wrote: > Clean-up incorrect indentation, extra spaces, and missing EOF newline in > schema files. Most of the clean-ups are for list indentation which > should always be 2 spaces more than the preceding keyword. > > Found with yamllint (now integrat