Re: Fence wait in mmu_interval_notifier_ops::invalidate

2020-12-10 Thread Intel
Hi, Christian Thanks for the reply. On 12/10/20 11:53 AM, Christian König wrote: Am 09.12.20 um 17:46 schrieb Thomas Hellström (Intel): On 12/9/20 5:37 PM, Jason Gunthorpe wrote: On Wed, Dec 09, 2020 at 05:36:16PM +0100, Thomas Hellström (Intel) wrote: Jason, Christian In most

Re: [PATCH v7 18/18] drm/i915/hdcp: Enable HDCP 2.2 MST support

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:40 +0530, Anshuman Gupta wrote: > Enable HDCP 2.2 over DP MST. > Authenticate and enable port encryption only once for > an active HDCP 2.2 session, once port is authenticated > and encrypted enable encryption for each stream that > requires encryption on this port. > >

Re: [PATCH v7 17/18] drm/i915/hdcp: Support for HDCP 2.2 MST shim callbacks

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:39 +0530, Anshuman Gupta wrote: > Add support for HDCP 2.2 DP MST shim callback. > This adds existing DP HDCP shim callback for Link Authentication > and Encryption and HDCP 2.2 stream encryption > callback. > > v2: > - Added a WARN_ON() instead of drm_err. [Uma] > -

RE: [Intel-gfx] [PATCH 1/2] drm/framebuffer: Format modifier for Intel Gen 12 render compression with Clear Color

2020-12-10 Thread Chery, Nanley G
> -Original Message- > From: Imre Deak > Sent: Tuesday, December 1, 2020 4:05 AM > To: Chery, Nanley G ; Chris Wilson wilson.co.uk>; Ville Syrjälä > Cc: Daniel Vetter ; intel-...@lists.freedesktop.org; Nikula, > Jani ; Daniel Vetter ; > Kondapally, Kalyan ; Pandiyan, Dhinakaran > ;

Re: [PATCH v7 14/18] drm/i915/hdcp: MST streams support in hdcp port_data

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:36 +0530, Anshuman Gupta wrote: > Add support for multiple mst stream in hdcp port data > which will be used by RepeaterAuthStreamManage msg and > HDCP 2.2 security f/w for m' validation. > > Security f/w doesn't have any provision to mark the > stream_type for each stream

Re: [PATCH v7 09/18] drm/i915/hdcp: Enable Gen12 HDCP 1.4 DP MST support

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:31 +0530, Anshuman Gupta wrote: > Enable HDCP 1.4 over DP MST for Gen12. > > v2: > - Enable HDCP for <= Gen12 platforms. [Ram] > > Cc: Ramalingam C > Tested-by: Karthik B S > Signed-off-by: Anshuman Gupta > --- > drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 ++ >

Re: [PATCH v7 08/18] drm/i915/hdcp: Enable HDCP 1.4 stream encryption

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:30 +0530, Anshuman Gupta wrote: > Enable HDCP 1.4 DP MST stream encryption. IMHO tile of "Configure HDCP1.4 MST steram encryption status" would suit more. But i leave that to your call. > > Enable stream encryption once encryption is enabled on > the DP transport driving

Re: [PATCH v7 04/18] drm/i915/hdcp: No HDCP when encoder is't initialized

2020-12-10 Thread Ramalingam C
On 2020-12-10 at 11:56:26 +0530, Anshuman Gupta wrote: > There can be situation when DP MST connector is created without > mst modeset being done, in those cases connector->encoder will be > NULL. MST connector->encoder initializes after modeset. > Don't enable HDCP in such cases to prevent any

[Bug 210543] amdgpu Kernel panic:__ttm_dma_free_page.isra.0+0xac/0xe8 [ttm]

2020-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210543 --- Comment #4 from Ancheng (acyel...@gmail.com) --- (In reply to Alex Deucher from comment #1) > Please attach your full dmesg output. Thanks for your response, attachment please find the dmesg output. There are some differences in the call

[Bug 210543] amdgpu Kernel panic:__ttm_dma_free_page.isra.0+0xac/0xe8 [ttm]

2020-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210543 --- Comment #3 from Ancheng (acyel...@gmail.com) --- Created attachment 294095 --> https://bugzilla.kernel.org/attachment.cgi?id=294095=edit dmesg file1 -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 210543] amdgpu Kernel panic:__ttm_dma_free_page.isra.0+0xac/0xe8 [ttm]

2020-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210543 --- Comment #2 from Ancheng (acyel...@gmail.com) --- Created attachment 294093 --> https://bugzilla.kernel.org/attachment.cgi?id=294093=edit dmesg file -- You are receiving this mail because: You are watching the assignee of the bug.

Re: [PATCH v2 0/3] Experimental freesync video mode optimization

2020-12-10 Thread Shashank Sharma
Hello Simon, Hope you are doing well, I was helping out Aurabindo and the team with the design, so I have taken the liberty of adding some comments on behalf of the team, Inline. On 11/12/20 3:31 am, Simon Ser wrote: > Hi, > > (CC dri-devel, Pekka and Martin who might be interested in this as

Re: [PATCH v8, 2/6] dt-bindings: mediatek: add description for mt8183 display

2020-12-10 Thread Rob Herring
On Thu, 10 Dec 2020 17:07:38 +0800, Yongqiang Niu wrote: > add description for mt8183 display > > Signed-off-by: Yongqiang Niu > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Rob Herring

Re: [PATCH v8, 1/6] dt-bindings: mediatek: add rdma_fifo_size description for mt8183 display

2020-12-10 Thread Rob Herring
On Thu, Dec 10, 2020 at 05:07:37PM +0800, Yongqiang Niu wrote: > rdma fifo size may be different even in same SOC, add this > property to the corresponding rdma > > Signed-off-by: Yongqiang Niu > --- > .../bindings/display/mediatek/mediatek,disp.txt | 16 > > 1 file

Re: [PATCH v2 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp

2020-12-10 Thread Rob Herring
On Wed, 09 Dec 2020 14:24:27 +0800, Liu Ying wrote: > Add support for Mixel MIPI DPHY + LVDS PHY combo IP > as found on Freescale i.MX8qxp SoC. > > Cc: Guido Günther > Cc: Kishon Vijay Abraham I > Cc: Vinod Koul > Cc: Rob Herring > Cc: NXP Linux Team > Signed-off-by: Liu Ying > --- >

Re: [PATCH v2 3/5] dt-bindings: phy: Convert mixel, mipi-dsi-phy to json-schema

2020-12-10 Thread Rob Herring
On Wed, 09 Dec 2020 14:24:26 +0800, Liu Ying wrote: > This patch converts the mixel,mipi-dsi-phy binding to > DT schema format using json-schema. > > Comparing to the plain text version, the new binding adds > the 'assigned-clocks', 'assigned-clock-parents' and > 'assigned-clock-rates'

[radeon-alex:amd-staging-drm-next 534/912] drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:904:6: warning: old-style function definition

2020-12-10 Thread kernel test robot
: i386-randconfig-r005-20201210 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git git fetch --no-tags radeon-alex amd-staging-drm-next git checkout

[git pull] drm fixes for 5.10 final

2020-12-10 Thread Dave Airlie
Hi Linus, Last week of fixes, just amdgpu and i915 collections. We had a i915 regression reported by HJ Lu reported this morning, and this contains a fix for that he has tested. There are a fair few other fixes, but they are spread across the two drivers, and all fairly self contained. I'm

Re: [patch 27/30] xen/events: Only force affinity mask for percpu interrupts

2020-12-10 Thread boris . ostrovsky
On 12/10/20 2:26 PM, Thomas Gleixner wrote: > All event channel setups bind the interrupt on CPU0 or the target CPU for > percpu interrupts and overwrite the affinity mask with the corresponding > cpumask. That does not make sense. > > The XEN implementation of irqchip::irq_set_affinity()

Re: [patch 24/30] xen/events: Remove unused bind_evtchn_to_irq_lateeoi()

2020-12-10 Thread boris . ostrovsky
On 12/10/20 2:26 PM, Thomas Gleixner wrote: > Signed-off-by: Thomas Gleixner > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Stefano Stabellini > Cc: xen-de...@lists.xenproject.org > --- > drivers/xen/events/events_base.c |6 -- > 1 file changed, 6 deletions(-) > > ---

Re: [patch 19/30] PCI: mobiveil: Use irq_data_get_irq_chip_data()

2020-12-10 Thread Rob Herring
On Thu, Dec 10, 2020 at 1:42 PM Thomas Gleixner wrote: > > Going through a full irq descriptor lookup instead of just using the proper > helper function which provides direct access is suboptimal. > > In fact it _is_ wrong because the chip callback needs to get the chip data > which is relevant

Re: [patch 18/30] PCI: xilinx-nwl: Use irq_data_get_irq_chip_data()

2020-12-10 Thread Rob Herring
On Thu, Dec 10, 2020 at 1:42 PM Thomas Gleixner wrote: > > Going through a full irq descriptor lookup instead of just using the proper > helper function which provides direct access is suboptimal. > > In fact it _is_ wrong because the chip callback needs to get the chip data > which is relevant

Re: [PATCH v2 0/3] Experimental freesync video mode optimization

2020-12-10 Thread Simon Ser
Hi, (CC dri-devel, Pekka and Martin who might be interested in this as well.) On Thursday, December 10th, 2020 at 7:48 PM, Aurabindo Pillai wrote: > This patchset enables freesync video mode usecase where the userspace > can request a freesync compatible video mode such that switching to this

Re: [PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Tomi Valkeinen
On 10/12/2020 18:32, Ville Syrjälä wrote: >>> @@ -1053,18 +1052,9 @@ static int setcmap_atomic(struct fb_cmap *cmap, >>> struct fb_info *info) >>> goto out_state; >>> } >>> >>> - crtc_state = drm_atomic_get_crtc_state(state, crtc); >>> - if

Re: [Intel-gfx] [patch 13/30] drm/i915/lpe_audio: Remove pointless irq_to_desc() usage

2020-12-10 Thread Ville Syrjälä
On Thu, Dec 10, 2020 at 08:25:49PM +0100, Thomas Gleixner wrote: > Nothing uses the result and nothing should ever use it in driver code. > > Signed-off-by: Thomas Gleixner > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > Cc: David Airlie > Cc: Daniel Vetter > Cc: Pankaj

Re: [PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Tomi Valkeinen
On 10/12/2020 17:27, Daniel Vetter wrote: >> diff --git a/drivers/gpu/drm/drm_fb_helper.c >> b/drivers/gpu/drm/drm_fb_helper.c >> index e82db0f4e771..80e3797f0f01 100644 >> --- a/drivers/gpu/drm/drm_fb_helper.c >> +++ b/drivers/gpu/drm/drm_fb_helper.c >> @@ -46,6 +46,7 @@ >> #include >>

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

2020-12-10 Thread Jianxin Xiong
Dma-buf is a standard cross-driver buffer sharing mechanism that can be used to support peer-to-peer access from RDMA devices. Device memory exported via dma-buf is associated with a file descriptor. This is passed to the user space as a property associated with the buffer allocation. When the

[PATCH v15 2/4] RDMA/core: Add device method for registering dma-buf based memory region

2020-12-10 Thread Jianxin Xiong
Dma-buf based memory region requires one extra parameter and is processed quite differently. Adding a separate method allows clean separation from regular memory regions. Signed-off-by: Jianxin Xiong Reviewed-by: Sean Hefty Acked-by: Michael J. Ruhl Acked-by: Christian Koenig Acked-by: Daniel

[PATCH v15 3/4] RDMA/uverbs: Add uverbs command for dma-buf based MR registration

2020-12-10 Thread Jianxin Xiong
Implement a new uverbs ioctl method for memory registration with file descriptor as an extra parameter. Signed-off-by: Jianxin Xiong Reviewed-by: Sean Hefty Acked-by: Michael J. Ruhl Acked-by: Christian Koenig Acked-by: Daniel Vetter Reviewed-by: Leon Romanovsky ---

[PATCH v15 4/4] RDMA/mlx5: Support dma-buf based userspace memory region

2020-12-10 Thread Jianxin Xiong
Implement the new driver method 'reg_user_mr_dmabuf'. Utilize the core functions to import dma-buf based memory region and update the mappings. Add code to handle dma-buf related page fault. Signed-off-by: Jianxin Xiong Reviewed-by: Sean Hefty Acked-by: Michael J. Ruhl Acked-by: Christian

[PATCH v15 0/4] RDMA: Add dma-buf support

2020-12-10 Thread Jianxin Xiong
This is the fifteenth version of the patch set. Changelog: v15: * Rebase to the latest linux-rdma 'for-next' branch (commit 0583531bb9ef) to pick up RDMA core and mlx5 updates * Let ib_umem_dmabuf_get() return 'struct ib_umem_dmabuf *' instead of 'struct ib_umem *' * Move the check of on

Re: [PATCH v5 1/1] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2020-12-10 Thread Petr Mladek
On Fri 2020-11-13 12:54:41, Sakari Ailus wrote: > Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM > pixel formats denoted by fourccs. The fourcc encoding is the same for both > so the same implementation can be used. > > Suggested-by: Mauro Carvalho Chehab >

[PATCH v3 2/2] drm: add legacy support for using degamma for gamma

2020-12-10 Thread Tomi Valkeinen
The DRM core handles legacy gamma-set ioctl by setting GAMMA_LUT and clearing CTM and DEGAMMA_LUT. This works fine on HW where we have either: degamma -> ctm -> gamma -> out or ctm -> gamma -> out However, if the HW has gamma table before ctm, the atomic property should be DEGAMMA_LUT, and

[PATCH v3 0/2] drm: automatic legacy gamma support

2020-12-10 Thread Tomi Valkeinen
Hi, Another try. I dropped the has_gamma_prop and has_degamma_prop variables and use drm_mode_obj_find_prop_id() instead. I also changed the order of the patches, and added a new helper for setting the gamma ramp to the properties. Tomi Tomi Valkeinen (2): drm: automatic legacy gamma

[PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Tomi Valkeinen
To support legacy gamma ioctls the drivers need to set drm_crtc_funcs.gamma_set either to a custom implementation or to drm_atomic_helper_legacy_gamma_set. Most of the atomic drivers do the latter. We can simplify this by making the core handle it automatically. Add three functions to

Re: [PATCH v2 2/2] drm: automatic legacy gamma support

2020-12-10 Thread kernel test robot
Hi Tomi, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on linus/master v5.10-rc7] [cannot apply to drm-tip/drm-tip anholt/for-next next-20201210] [If your patch is applied to the wrong git tree, kindly drop us

Re: [PATCH 2/7] Revert "ACPI / OSI: Add OEM _OSI string to enable NVidia HDMI audio"

2020-12-10 Thread Lyude Paul
Hi, bumping the discussion again here because we just ran into this again, as we just had a laptop OEM try to fix another issue by adding an OSI check for these strings instead of helping us fix the issue in nouveau. Note as well the issue I'm referring to is entirely independent of runtime D3,

Re: [PATCH 01/15] irqchip: Allow to compile bcmstb on other platforms

2020-12-10 Thread Marc Zyngier
Hi Maxime, On 2020-12-10 13:46, Maxime Ripard wrote: The BCM2711 uses a number of instances of the bcmstb-l2 controller in its display engine. Let's allow the driver to be enabled through KConfig. Signed-off-by: Maxime Ripard --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915/pmu: Use kstat_irqs to get interrupt count

2020-12-10 Thread Tvrtko Ursulin
On 10/12/2020 17:44, Thomas Gleixner wrote: On Thu, Dec 10 2020 at 17:09, Tvrtko Ursulin wrote: On 10/12/2020 16:35, Thomas Gleixner wrote: I'll send out a series addressing irq_to_desc() (ab)use all over the place shortly. i915 is in there... Yep we don't need atomic, my bad. And we would

Re: [PATCH] drm/bridge: ti-sn65dsi86: Implement the pwm_chip

2020-12-10 Thread Uwe Kleine-König
On Thu, Dec 10, 2020 at 10:40:36PM +0800, Shawn Guo wrote: > Hi Uwe, > > On Thu, Dec 10, 2020 at 9:05 PM Uwe Kleine-König > wrote: > > > > @@ -111,6 +118,8 @@ > > > > > > > > #define SN_LINK_TRAINING_TRIES 10 > > > > > > > > +#define SN_PWM_GPIO3 > > > > > >

[PATCH] drm/msm: Fix WARN_ON() splat in _free_object()

2020-12-10 Thread Rob Clark
From: Rob Clark [ 192.062000] [ cut here ] [ 192.062498] WARNING: CPU: 3 PID: 2039 at drivers/gpu/drm/msm/msm_gem.c:381 put_iova_vmas+0x94/0xa0 [msm] [ 192.062870] Modules linked in: snd_hrtimer snd_seq snd_seq_device rfcomm algif_hash algif_skcipher af_alg bnep

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Thierry Reding
On Thu, Dec 10, 2020 at 05:50:00PM +0100, Daniel Vetter wrote: > On Thu, Dec 10, 2020 at 5:44 PM Thierry Reding > wrote: > > > > On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > > > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > > > On Tue 08 Dec 17:52 CST

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915/pmu: Use kstat_irqs to get interrupt count

2020-12-10 Thread Tvrtko Ursulin
On 10/12/2020 16:35, Thomas Gleixner wrote: On Thu, Dec 10 2020 at 10:45, Tvrtko Ursulin wrote: On 10/12/2020 07:53, Joonas Lahtinen wrote: I think later in the thread there was a suggestion to replace this with simple counter increment in IRQ handler. It was indeed unsafe until recent

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 5:44 PM Thierry Reding wrote: > > On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > > > > > On Tue, Dec 08, 2020 at 04:02:16PM

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Thierry Reding
On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > > > On Tue, Dec 08, 2020 at 04:02:16PM -0600, Bjorn Andersson wrote: > > > > On Tue 08 Dec 06:47 CST 2020,

Re: [PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 4:43 PM Tomi Valkeinen wrote: > > On 10/12/2020 17:27, Daniel Vetter wrote: > > >> diff --git a/drivers/gpu/drm/drm_fb_helper.c > >> b/drivers/gpu/drm/drm_fb_helper.c > >> index e82db0f4e771..80e3797f0f01 100644 > >> --- a/drivers/gpu/drm/drm_fb_helper.c > >> +++

Re: [PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Ville Syrjälä
On Thu, Dec 10, 2020 at 04:27:39PM +0100, Daniel Vetter wrote: > On Thu, Dec 10, 2020 at 04:08:51PM +0200, Tomi Valkeinen wrote: > > To support legacy gamma ioctls the drivers need to set > > drm_crtc_funcs.gamma_set either to a custom implementation or to > > drm_atomic_helper_legacy_gamma_set.

Re: [PATCH] drm: rework description of primary and cursor planes

2020-12-10 Thread Alex Deucher
On Thu, Dec 10, 2020 at 10:56 AM Daniel Vetter wrote: > > On Thu, Dec 10, 2020 at 4:45 PM Simon Ser wrote: > > On Wednesday, December 9th, 2020 at 8:40 PM, Daniel Vetter > > wrote: > > > > But it's not enough, can't have two CRTCs with the same primary plane. > > > > Well, > > > > I give up,

[PATCH v2 12/12] drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call DRM driver's function. Moving mtk_ddp_comp_init() from sub driver to DRM driver to achieve this. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu ---

[PATCH v2 11/12] drm/mediatek: DRM driver directly refer to sub driver's function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call DRM driver's function. Let DRM driver directly refer to sub driver's function so that sub driver need not register these function to DRM driver. Signed-off-by: CK Hu Signed-off-by:

[PATCH v2 09/12] drm/mediatek: Change sub driver interface from mtk_ddp_comp to device

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver interface should get rid of display info. Using device instead of mtk_ddp_comp make interface general. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_disp_color.c |

[PATCH v2 10/12] drm/mediatek: Register vblank callback function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call crtc function. crtc register callback function to sub driver to prevent sub driver directly call crtc function. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu ---

[PATCH v2 08/12] drm/mediatek: Move cmdq_reg info from struct mtk_ddp_comp to sub driver private data

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so data belonged to sub driver should be moved into sub driver private data so it could be used for multiple path. cmdq_reg info is one of sub driver data, so move it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu

[PATCH v2 07/12] drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu struct cmdq_client_reg include subsys and offset, so use it to replace these two variable. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 26 ++--- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 4 ++-- 2 files

[PATCH v2 06/12] drm/mediatek: Remove irq in struct mtk_ddp_comp

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu irq in struct mtk_ddp_comp is useless, so remove it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

[PATCH v2 05/12] drm/mediatek: Move regs info from struct mtk_ddp_comp to sub driver private data

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so data belonged to sub driver should be moved into sub driver private data so it could be used for multiple path. regs info is one of sub driver data, so move it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu ---

[PATCH v2 04/12] drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so data belonged to sub driver should be moved into sub driver private data so it could be used for multiple path. clk info is one of sub driver data, so move it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu ---

[PATCH v2 03/12] drm/mediatek: Separate getting larb device to a function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu To make the code cleaner, separate getting larb device to a function. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 57 - 1 file changed, 32 insertions(+), 25 deletions(-) diff --git

[PATCH v2 02/12] drm/mediatek: Use correct device pointer to get CMDQ client register

2020-12-10 Thread Chun-Kuang Hu
Some ddp component use mmsys device pointer to get CMDQ client register, this would get mmsys' CMDQ client register, so use each ddp component's device pointer to get. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 2 +- drivers/gpu/drm/mediatek/mtk_disp_ovl.c

[PATCH v2 01/12] drm/mediatek: Get CMDQ client register for all ddp component

2020-12-10 Thread Chun-Kuang Hu
Only OVL, RDMA,and WDMA get CMDQ client register information, but all ddp component should work with CMDQ, so get this information for all ddp component. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 29 +++-- 1 file changed, 15 insertions(+), 14

[PATCH v2 00/12] Decouple Mediatek DRM sub driver

2020-12-10 Thread Chun-Kuang Hu
mtk ccorr is controlled by DRM and MDP [1]. In order to share mtk_ccorr driver for DRM and MDP, decouple Mediatek DRM sub driver which include mtk_ccorr, so MDP could use this decoupled mtk_ccorr. Changes in v2: 1. Fix iommu larb problem. 2. Based on mediatek-drm-next-5.11-2 [2]. [1]

Re: [PATCH] drm: rework description of primary and cursor planes

2020-12-10 Thread Simon Ser
On Thursday, December 10th, 2020 at 4:56 PM, Daniel Vetter wrote: > Huh so crtc are registered forward and planes backward? I guess adding > amd people. And yeah sounds like defacto you can't figure out which > primary plane goes to which crtc, and we just take whatever goes. > Maybe that

Re: [PATCH] drm: rework description of primary and cursor planes

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 4:45 PM Simon Ser wrote: > On Wednesday, December 9th, 2020 at 8:40 PM, Daniel Vetter > wrote: > > > But it's not enough, can't have two CRTCs with the same primary plane. > > > Well, > > > I give up, it's just simpler to use Daniel's criteria. > > > > Yeah, also with

[PATCH 3/3] drm: require a non_NULL drm_crtc.primary

2020-12-10 Thread Simon Ser
If a CRTC is missing a legacy primary plane pointer, a lot of things will be broken for user-space: fbdev stops working and the entire legacy uAPI stops working. Require all drivers to populate drm_crtc.primary to prevent these issues. Warn if it's NULL. Signed-off-by: Simon Ser Cc: Daniel

[PATCH 2/3] drm: validate possible_crtcs for primary and cursor planes

2020-12-10 Thread Simon Ser
If a primary or cursor plane is not compatible with a CRTC it's attached to via the legacy primary/cursor field, things will be broken for legacy user-space. Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Pekka Paalanen --- drivers/gpu/drm/drm_mode_config.c | 16 1 file

[PATCH 1/3] drm: rework description of primary and cursor planes

2020-12-10 Thread Simon Ser
The previous wording could be understood by user-space evelopers as "a primary/cursor plane is only compatible with a single CRTC" [1]. Reword the planes description to make it clear the DRM-internal drm_crtc.primary and drm_crtc.cursor planes are for legacy uAPI. [1]:

Re: [PATCH v8, 5/6] drm/mediatek: add RDMA fifo size error handle

2020-12-10 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2020年12月10日 週四 下午5:08寫道: > > This patch add RDMA fifo size error handle > rdma fifo size will not always bigger than the calculated threshold > if that case happened, we need set fifo size as the threshold > > Signed-off-by: Yongqiang Niu > --- >

Re: [PATCH] drm: rework description of primary and cursor planes

2020-12-10 Thread Simon Ser
Additional note, I don't really want to add the same check for cursor planes, because I don't want to forbid a driver from having the CRTC without a cursor plane and the second CRTC with a cursor plane. I don't know if such heterogeneous hardware exists, but it sounds like something we should be

Re: [PATCH] drm: rework description of primary and cursor planes

2020-12-10 Thread Simon Ser
On Wednesday, December 9th, 2020 at 8:40 PM, Daniel Vetter wrote: > > But it's not enough, can't have two CRTCs with the same primary plane. Well, > > I give up, it's just simpler to use Daniel's criteria. > > Yeah, also with the validation check we'll now real quick if any driver > gets it

Re: [PATCH v8, 1/6] dt-bindings: mediatek: add rdma_fifo_size description for mt8183 display

2020-12-10 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2020年12月10日 週四 下午5:22寫道: > > rdma fifo size may be different even in same SOC, add this > property to the corresponding rdma > > Signed-off-by: Yongqiang Niu > --- > .../bindings/display/mediatek/mediatek,disp.txt | 16 > > 1 file

[PATCH v5 13/19] drm/imx: parallel-display: move initialization into probe

2020-12-10 Thread Philipp Zabel
Parts of the initialization that do not require the drm device can be done once during probe instead of possibly multiple times during bind. The bind function only creates the encoder. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/parallel-display.c | 42

[PATCH v5 18/19] drm/imx: ipuv3-plane: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use drmm_universal_plane_alloc() to align plane memory lifetime with the drm device. drm_plane_cleanup() is called automatically before the memory is freed. Also move the call to ipu_plane_get_resources() into ipu_plane_init() and use drm managed resources to put IPU resources automatically when

[PATCH v5 10/19] drm/imx: imx-tve: move initialization into probe

2020-12-10 Thread Philipp Zabel
Parts of the initialization that do not require the drm device can be done once during probe instead of possibly multiple times during bind. The bind function only creates the encoder. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-tve.c | 42

[PATCH v5 04/19] drm/plane: add drmm_universal_plane_alloc()

2020-12-10 Thread Philipp Zabel
Add an alternative to drm_universal_plane_init() that allocates and initializes a plane and registers drm_plane_cleanup() with drmm_add_action_or_reset(). Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - Mention that

[PATCH v5 17/19] drm/imx: parallel-display: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with the drm device. drm_encoder_cleanup() is called automatically before the memory is freed. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/parallel-display.c | 57 +- 1

[PATCH v5 16/19] drm/imx: imx-tve: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with the drm device. drm_encoder_cleanup() is called automatically before the memory is freed. Also fold imx_tve_register() into imx_tve_bind(). Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter ---

[PATCH v5 09/19] drm/imx: imx-tve: use local encoder and connector variables

2020-12-10 Thread Philipp Zabel
Introduce local variables for encoder and connector. This simplifies the following commits. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-tve.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-tve.c

[PATCH v5 11/19] drm/imx: imx-tve: use devm_clk_register

2020-12-10 Thread Philipp Zabel
Avoid leaking the clock provider when the driver is unbound. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-tve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index

[PATCH v5 05/19] drm/crtc: add drmm_crtc_alloc_with_planes()

2020-12-10 Thread Philipp Zabel
Add an alternative to drm_crtc_init_with_planes() that allocates and initializes a crtc and registers drm_crtc_cleanup() with drmm_add_action_or_reset(). Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - Mention that

[PATCH v5 12/19] drm/imx: parallel-display: use local bridge and connector variables

2020-12-10 Thread Philipp Zabel
Use local variables for bridge and connector. This simplifies the following commits. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/parallel-display.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH v5 02/19] drm: add drmm_encoder_alloc()

2020-12-10 Thread Philipp Zabel
Add an alternative to drm_encoder_init() that allocates and initializes an encoder and registers drm_encoder_cleanup() with drmm_add_action_or_reset(). Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - mention that

[PATCH v5 14/19] drm/imx: dw_hdmi-imx: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with the drm device. drm_encoder_cleanup() is called automatically. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/dw_hdmi-imx.c | 25 + 1 file changed, 17 insertions(+), 8

[PATCH v5 19/19] drm/imx: ipuv3-crtc: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use use drmm_crtc_alloc_with_planes() to align crtc memory lifetime with the drm device. drm_crtc_cleanup() is called automatically before the memory is freed. Also use drmm_add_action_or_reset() to make sure IPU resources are released automatically. Signed-off-by: Philipp Zabel Acked-by: Daniel

[PATCH v5 07/19] drm/imx: imx-ldb: use local connector variable

2020-12-10 Thread Philipp Zabel
Use a local variable for the connector. This simplifies the following commits. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-ldb.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-ldb.c

[PATCH v5 15/19] drm/imx: imx-ldb: use drm managed resources

2020-12-10 Thread Philipp Zabel
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with the drm device. drm_encoder_cleanup() is called automatically before the memory is freed. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-ldb.c | 31 ++- 1 file

[PATCH v5 06/19] drm/imx: dw_hdmi-imx: move initialization into probe

2020-12-10 Thread Philipp Zabel
Parts of the initialization that do not require the drm device can be done once during probe instead of possibly multiple times during bind. The bind function only creates the encoder and attaches the bridge. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter ---

[PATCH v5 08/19] drm/imx: imx-ldb: move initialization into probe

2020-12-10 Thread Philipp Zabel
Parts of the initialization that do not require the drm device can be done once during probe instead of possibly multiple times during bind. The bind function only creates the encoders. Signed-off-by: Philipp Zabel Acked-by: Daniel Vetter --- drivers/gpu/drm/imx/imx-ldb.c | 72

[PATCH v5 03/19] drm/simple_kms_helper: add drmm_simple_encoder_alloc()

2020-12-10 Thread Philipp Zabel
Add an alternative to drm_simple_encoder_init() that allocates and initializes a simple encoder and registers drm_encoder_cleanup() with drmm_add_action_or_reset(). Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - address FIXME in

[PATCH v5 00/19] drm: managed encoder/plane/crtc allocation

2020-12-10 Thread Philipp Zabel
Hi, update of v4 [1] with review feedback integrated. Changes since v4: - Roll back drm_mode_config_cleanup() change, any encoders that are kept on the mode_config.encoder_list until then are still required to have funcs set. - Mention that {encoder,plane,crtc}_funcs.destroy should

[PATCH v5 01/19] drm/encoder: make encoder control functions optional

2020-12-10 Thread Philipp Zabel
Simple managed encoders do not require the .destroy callback, make the whole funcs structure optional. Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - Roll back drm_mode_config_cleanup() change, any encoders that are kept on the

Re: [PATCH v8, 2/6] dt-bindings: mediatek: add description for mt8183 display

2020-12-10 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2020年12月10日 週四 下午5:22寫道: > > add description for mt8183 display Reviewed-by: Chun-Kuang Hu > > Signed-off-by: Yongqiang Niu > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v3 1/2] drm: automatic legacy gamma support

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 04:08:51PM +0200, Tomi Valkeinen wrote: > To support legacy gamma ioctls the drivers need to set > drm_crtc_funcs.gamma_set either to a custom implementation or to > drm_atomic_helper_legacy_gamma_set. Most of the atomic drivers do the > latter. > > We can simplify this by

[PATCH] drm/ttm: cleanup BO size handling v3

2020-12-10 Thread Christian König
Based on an idea from Dave, but cleaned up a bit. We had multiple fields for essentially the same thing. Now bo->base.size is the original size of the BO in arbitrary units, usually bytes. bo->mem.num_pages is the size in number of pages in the resource domain of bo->mem.mem_type. v2: use the

[PATCH v4 0/5] Thermal devfreq cooling improvements with Energy Model

2020-12-10 Thread Lukasz Luba
Hi all, This patch set is a continuation of my previous work, which aimed to add Energy Model to all devices [1]. This series is a follow up for the patches which got merged to v5.9-rc1. It aims to change the thermal devfreq cooling and use the Energy Model instead of private power table and

Re: [PATCH v2 5/7] drm/vc4: kms: Remove unassigned_channels from the HVS state

2020-12-10 Thread Maxime Ripard
On Fri, Dec 04, 2020 at 04:11:36PM +0100, Maxime Ripard wrote: > @@ -893,12 +890,17 @@ static int vc4_pv_muxing_atomic_check(struct drm_device > *dev, > struct vc4_hvs_state *hvs_new_state; > struct drm_crtc_state *old_crtc_state, *new_crtc_state; > struct drm_crtc *crtc; > +

[PATCH 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2020-12-10 Thread Maxime Ripard
From: Dom Cobley Currently we call cec_phys_addr_invalidate on a hotplug deassert. That may be due to a TV power cycling, or an AVR being switched on (and switching edid). This makes CEC unusable since our controller wouldn't have a physical address anymore. Set it back up again on the hotplug

[PATCH 07/15] drm/vc4: hdmi: Update the CEC clock divider on HSM rate change

2020-12-10 Thread Maxime Ripard
As part of the enable sequence we might change the HSM clock rate if the pixel rate is different than the one we were already dealing with. On the BCM2835 however, the CEC clock derives from the HSM clock so any rate change will need to be reflected in the CEC clock divider to output 40kHz.

[PATCH 09/15] drm/vc4: hdmi: Split the interrupt handlers

2020-12-10 Thread Maxime Ripard
The BCM2711 has two different interrupt sources to transmit and receive CEC messages, provided through an external interrupt chip shared between the two HDMI interrupt controllers. The rest of the CEC controller is identical though so we need to change a bit the code organisation to share the

[PATCH v8, 2/6] dt-bindings: mediatek: add description for mt8183 display

2020-12-10 Thread Yongqiang Niu
add description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt

[PATCH 06/15] drm/vc4: hdmi: Compute the CEC clock divider from the clock rate

2020-12-10 Thread Maxime Ripard
The CEC clock divider needs to output a frequency of 40kHz from the HSM rate on the BCM2835. The driver used to have a fixed frequency for it, but that changed and we now need to compute it dynamically to maintain the proper rate. Fixes: cd4cb49dc5bb ("drm/vc4: hdmi: Adjust HSM clock rate

  1   2   3   >