Re: [PATCH v2 10/17] drm/vram-helper: make drm_vram_mm_debugfs_init() return 0

2020-03-19 Thread Greg KH
On Wed, Mar 18, 2020 at 08:10:43PM +0100, Daniel Vetter wrote: > On Wed, Mar 18, 2020 at 5:58 PM Greg KH wrote: > > > > On Wed, Mar 18, 2020 at 05:31:47PM +0100, Daniel Vetter wrote: > > > On Wed, Mar 18, 2020 at 5:03 PM Wambui Karuga > > > wrote: > > > > > > > > > > > > > > > > On Wed, 18 Mar 2

[PULL] drm-intel-fixes

2020-03-19 Thread Jani Nikula
Hi Dave & Daniel - Nothing spectacular. drm-intel-fixes-2020-03-19: drm/i915 fixes for v5.6-rc7: - Track active elements during dequeue - Fix failure to handle all MCR ranges - Revert unnecessary workaround BR, Jani. The following changes since commit fb33c6510d5595144d585aa194d377cf74d31911

[PATCH v2] drm/amdgpu: Remove unnecessary variable shadow in gfx_v9_0_rlcg_wreg

2020-03-19 Thread Nathan Chancellor
clang warns: drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:754:6: warning: variable 'shadow' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (offset == grbm_cntl || offset == grbm_idx) ^ drivers/gpu/drm/amd/a

Re: [PATCH v11 1/5] dt-bindings: display: xlnx: Add ZynqMP DP subsystem bindings

2020-03-19 Thread Michal Simek
On 19. 03. 20 2:08, Hyun Kwon wrote: > Hi Sam, > > On Wed, 2020-03-18 at 12:26:51 -0700, Sam Ravnborg wrote: >> On Wed, Mar 18, 2020 at 05:37:24PM +0200, Laurent Pinchart wrote: >>> From: Hyun Kwon >>> >>> The bindings describe the ZynqMP DP subsystem. They don't support the >>> interface with th

[PATCH v5 3/5] thermal: devfreq_cooling: Use PM QoS to set frequency limits

2020-03-19 Thread Lukasz Luba
From: Matthias Kaehlcke Now that devfreq supports limiting the frequency range of a device through PM QoS make use of it instead of disabling OPPs that should not be used. The switch from disabling OPPs to PM QoS introduces a subtle behavioral change in case of conflicting requests (min > max):

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Nicolas Dufresne
Le mercredi 18 mars 2020 à 11:05 +0100, Michel Dänzer a écrit : > On 2020-03-17 6:21 p.m., Lucas Stach wrote: > > That's one of the issues with implicit sync that explicit may solve: > > a single client taking way too much time to render something can > > block the whole pipeline up until the dis

Re: [PATCH RESEND] drm/lease: fix potential race in fill_object_idr

2020-03-19 Thread Qiujun Huang
On Wed, Mar 18, 2020 at 3:34 PM Daniel Vetter wrote: > > On Tue, Mar 17, 2020 at 11:33 PM Qiujun Huang wrote: > > > > On Wed, Mar 18, 2020 at 1:02 AM Daniel Vetter wrote: > > > > > > On Mon, Mar 16, 2020 at 03:18:23PM +0800, Qiujun Huang wrote: > > > > We should hold idr_mutex for idr_alloc. > >

Re: [DPU PATCH v4 1/5] dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon

2020-03-19 Thread Stephen Boyd
Quoting Vara Reddy (2020-03-04 16:10:24) > From: Chandan Uddaraju > > Add bindings for Snapdragon DisplayPort and > display-port PLL driver. > > Changes in V2: > Provide details about sel-gpio > > Changes in V4: > Provide details about max dp lanes > Change the commit text > > Signed-off-by: C

[PATCH v5 0/5] Add support for devices in the Energy Model

2020-03-19 Thread Lukasz Luba
Hi all, This patch set introduces support for devices in the Energy Model (EM) framework. It will unify the power model for thermal subsystem and make it simpler. The 1st patch refactors EM framework and adds support for devices. The 2nd patch changes dev_pm_opp_of_register_em() in OPP/OF which no

Re: [PATCH v2 10/17] drm/vram-helper: make drm_vram_mm_debugfs_init() return 0

2020-03-19 Thread Wambui Karuga
On Wed, 18 Mar 2020, Daniel Vetter wrote: On Tue, Mar 10, 2020 at 04:31:14PM +0300, Wambui Karuga wrote: Since 987d65d01356 (drm: debugfs: make drm_debugfs_create_files() never fail), drm_debugfs_create_files() never fails and should return void. Therefore, remove its use as the return value

Re: ensure device private pages have an owner v2

2020-03-19 Thread Jason Gunthorpe
On Mon, Mar 16, 2020 at 08:32:12PM +0100, Christoph Hellwig wrote: > When acting on device private mappings a driver needs to know if the > device (or other entity in case of kvmppc) actually owns this private > mapping. This series adds an owner field and converts the migrate_vma > code over to c

[PATCH v5 1/5] PM / EM: add devices to Energy Model

2020-03-19 Thread Lukasz Luba
Add support of other devices into the Energy Model framework not only the CPUs. Change the interface to be more unified which can handle other devices as well. Acked-by: Quentin Perret Signed-off-by: Lukasz Luba --- Documentation/power/energy-model.rst | 133 --- Documentation/scheduler

[PATCH v5 2/5] OPP: refactor dev_pm_opp_of_register_em() and update related drivers

2020-03-19 Thread Lukasz Luba
The Energy Model framework supports both: CPUs and devfreq devices. Drop the CPU specific interface with cpumask and add struct device. Add also a return value. This new interface provides easy way to create a simple Energy Model, which then might be used in i.e. thermal subsystem. Signed-off-by:

[PATCH v5 4/5] thermal: devfreq_cooling: Refactor code and switch to use Energy Model

2020-03-19 Thread Lukasz Luba
The overhauled Energy Model (EM) framework support also devfreq devices. The unified API interface of the EM can be used in the thermal subsystem to not duplicate code. The power table now is taken from EM structure and there is no need to maintain calculation for it locally. In case when the EM is

[PATCH v5 5/5] drm/panfrost: Register devfreq cooling and attempt to add Energy Model

2020-03-19 Thread Lukasz Luba
Register devfreq cooling device and attempt to register Energy Model. This will add the devfreq device to the Energy Model framework. It will create a dedicated and unified data structures used i.e. in thermal framework. The last NULL parameter indicates that the power model is simplified and creat

Re: [PATCHv7 6/6] drm/rockchip: Add support for afbc

2020-03-19 Thread Sandy Huang
Hi Emil, 在 2020/3/16 下午10:10, Emil Velikov 写道: On Wed, 11 Mar 2020 at 14:56, Andrzej Pietrasiewicz wrote: This patch adds support for afbc handling. afbc is a compressed format which reduces the necessary memory bandwidth. Co-developed-by: Mark Yao Signed-off-by: Mark Yao Signed-off-by: And

Re: [PATCH v5 5/5] drm/panfrost: Register devfreq cooling and attempt to add Energy Model

2020-03-19 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig On Wed, Mar 18, 2020 at 11:45:48AM +, Lukasz Luba wrote: > Register devfreq cooling device and attempt to register Energy Model. This > will add the devfreq device to the Energy Model framework. It will create > a dedicated and unified data structures used i.e.

Re: linux-next: manual merge of the drm tree with the omap tree

2020-03-19 Thread Tony Lindgren
* Stephen Rothwell [200318 02:51]: > Hi all, > > Today's linux-next merge of the drm tree got a conflict in: > > arch/arm/configs/omap2plus_defconfig > > between commit: > > 98c2cc359f8f ("ARM: omap2plus_defconfig: Update for moved and dropped > options") > > from the omap tree and commi

[PATCH] drm/msm: Don't attempt to attach HDMI bridge twice

2020-03-19 Thread Bjorn Andersson
With the introduction of '3ef2f119bd3e ("drm/msm: Use drm_attach_bridge() to attach a bridge to an encoder")' the HDMI bridge is attached both in msm_hdmi_bridge_init() and later in msm_hdmi_modeset_init(). The second attempt fails as the bridge is already attached to the encoder and the whole pro

Re: [PATCH v3] drm/bochs: downgrade pci_request_region failure from error to warning

2020-03-19 Thread Daniel Vetter
On Wed, Mar 18, 2020 at 7:49 AM Gerd Hoffmann wrote: > > On Tue, Mar 17, 2020 at 05:49:41PM +0100, Daniel Vetter wrote: > > On Fri, Mar 13, 2020 at 09:41:52AM +0100, Gerd Hoffmann wrote: > > > Shutdown of firmware framebuffer has a bunch of problems. Because > > > of this the framebuffer region m

Re: [PATCH v3 1/2] drm/virtio: factor out the sg_table from virtio_gpu_object

2020-03-19 Thread Jiri Slaby
On 05. 03. 20, 2:32, Gurchetan Singh wrote: > A resource will be a shmem based resource or a (planned) > vram based resource, so it makes sense to factor out common fields > (resource handle, dumb). > > v2: move mapped field to shmem object Hi, I bisected the slab-out-of-bounds below to this pat

Re: [PATCH 00/21] drm: mxsfb: Add i.MX7 support

2020-03-19 Thread Laurent Pinchart
Hello, Gentle ping. On Mon, Mar 09, 2020 at 09:51:55PM +0200, Laurent Pinchart wrote: > Hello, > > This patch series adds i.MX7 support to the mxsfb driver. The eLCDIF > instance found in the i.MX7 is backward-compatible with the already > supported LCDC v4, but has extended features amongst whi

Re: [PATCH v9 2/2] drm/bridge: Add NWL MIPI DSI host controller support

2020-03-19 Thread Guido Günther
Hi Sam, On Wed, Mar 18, 2020 at 10:46:39PM +0100, Sam Ravnborg wrote: > Hi Guido. > > Impressive and very detailed changelog in intro mail - nice. > > On Wed, Mar 18, 2020 at 04:09:08PM +0100, Guido Günther wrote: > > This adds initial support for the NWL MIPI DSI Host controller found on > > i.

Re: [PATCH v3 1/2] drm/virtio: factor out the sg_table from virtio_gpu_object

2020-03-19 Thread Gerd Hoffmann
On Thu, Mar 19, 2020 at 10:32:25AM +0100, Jiri Slaby wrote: > On 05. 03. 20, 2:32, Gurchetan Singh wrote: > > A resource will be a shmem based resource or a (planned) > > vram based resource, so it makes sense to factor out common fields > > (resource handle, dumb). > > > > v2: move mapped field t

Re: [PATCHv7 6/6] drm/rockchip: Add support for afbc

2020-03-19 Thread Andrzej Pietrasiewicz
Hi Sandy, W dniu 19.03.2020 o 03:57, Sandy Huang pisze: Hi Emil, -- 2.17.1 Heiko, Sandy, being the maintainers of the Rockchip driver, can you review/ack this patch? I believe the intention is to merge the series via drm-misc. Andrzej already has commit access. -Emil Thanks for you p

Re: [PATCH v3 1/2] drm/virtio: factor out the sg_table from virtio_gpu_object

2020-03-19 Thread Jiri Slaby
On 19. 03. 20, 10:47, Gerd Hoffmann wrote: > On Thu, Mar 19, 2020 at 10:32:25AM +0100, Jiri Slaby wrote: >> On 05. 03. 20, 2:32, Gurchetan Singh wrote: >>> A resource will be a shmem based resource or a (planned) >>> vram based resource, so it makes sense to factor out common fields >>> (resource h

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Wed, 18 Mar 2020 14:38:48 + Simon Ser wrote: > Hi, > > > 1) Letting the VM-viewer window-system draw the cursor as it normally > > would draw it. > > Why is this important? Can't the VM viewer hide the cursor and use a > sub-surface to manually draw the cursor plane configured by the g

Re: [PATCH 1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD

2020-03-19 Thread Jani Nikula
On Tue, 17 Mar 2020, Manasi Navare wrote: > DP sink device sets the Ignore MSA bit in its > DP_DOWNSTREAM_PORT_COUNT register to indicate its ability to > ignore the MSA video timing paramaters and its ability to support > seamless video timing change over a range of timing exposed by > DisplayID

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Simon Ser
On Thursday, March 19, 2020 10:57 AM, Pekka Paalanen wrote: > On Wed, 18 Mar 2020 14:38:48 + > Simon Ser cont...@emersion.fr wrote: > > > Hi, > > > > > 1. Letting the VM-viewer window-system draw the cursor as it normally > > > would draw it. > > > > > > > Why is this important? Can't t

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Wed, 18 Mar 2020 15:28:02 +0100 Hans de Goede wrote: > ATM the Atomic KMS API lacks the ability to set cursor hot-spot > coordinates. Mutter (and Weston) have tried to emulate this by shifting > the coordinates for where to draw the cursor by the hotspot-coordinates > and always using 0x0 for

[PATCH] drm/virtio: fix OOB in virtio_gpu_object_create

2020-03-19 Thread Jiri Slaby
After commit f651c8b05542, virtio_gpu_create_object allocates too small space to fit everything in. It is because it allocates struct virtio_gpu_object, but should allocate a newly added struct virtio_gpu_object_shmem which has 2 more members. So fix that by using correct type in virtio_gpu_create

Re: [PATCH 2/3] drm: Create a drm_connector_helper_funcs hook for Adaptive Sync support

2020-03-19 Thread Jani Nikula
On Tue, 17 Mar 2020, Manasi Navare wrote: > This patch adds a hook in drm_connector_helper_funcs to get the > support of the driver for adaptive sync functionality. > > This can be called in the connector probe helper function after > the connector detect() and get_modes() hooks to also > query th

Re: [PATCH 3/3] drm/i915/dp: intel_dp connector hook for VRR support

2020-03-19 Thread Jani Nikula
On Tue, 17 Mar 2020, Manasi Navare wrote: > This defines the get_vrr_support hook for intel DP connector > VRR support is set to true based on the DPCD ignore MSA and > EDID monitor range Yeah... but what do you use it for? > > Cc: Jani Nikula > Cc: Ville Syrjälä > Cc: Harry Wentland > Cc: Ni

Re: [PATCH v2 10/17] drm/vram-helper: make drm_vram_mm_debugfs_init() return 0

2020-03-19 Thread Daniel Vetter
On Thu, Mar 19, 2020 at 08:55:24AM +0100, Greg KH wrote: > On Wed, Mar 18, 2020 at 08:10:43PM +0100, Daniel Vetter wrote: > > On Wed, Mar 18, 2020 at 5:58 PM Greg KH wrote: > > > > > > On Wed, Mar 18, 2020 at 05:31:47PM +0100, Daniel Vetter wrote: > > > > On Wed, Mar 18, 2020 at 5:03 PM Wambui Kar

Re: [PATCH v2 3/3] MAINTAINERS: Update feiyang, st7701 panel bindings converted as YAML

2020-03-19 Thread Jagan Teki
On Thu, Mar 19, 2020 at 12:28 AM Sam Ravnborg wrote: > > On Wed, Mar 18, 2020 at 10:40:03PM +0530, Jagan Teki wrote: > > The feiyang,fy07024di26a30d.txt and sitronix,st7701.txt has been > > converted to YAML schemas, update MAINTAINERS to match them again. > > > > Signed-off-by: Jagan Teki > > Th

Re: Ack to merge through DRM? WAS [PATCH v6 0/9] Huge page-table entries for TTM

2020-03-19 Thread VMware
On 3/19/20 12:27 AM, Andrew Morton wrote: On Mon, 16 Mar 2020 13:32:08 +0100 Thomas Hellström (VMware) wrote: ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Andrew, would it be po

[PATCH v2 0/5] Introduce drm scaling filter property

2020-03-19 Thread Pankaj Bharadiya
This series is the continuation for the RFC that I posted earlier [1] [1] RFC: https://patchwork.freedesktop.org/series/73884/ Integer scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier. Nearest-neighbor (

[PATCH v2 3/5] drm/i915: Introduce scaling filter related registers and bit fields.

2020-03-19 Thread Pankaj Bharadiya
Introduce scaler registers and bit fields needed to configure the scaling filter in prgrammed mode and configure scaling filter coefficients. changes since v1: * None changes since RFC: * Parametrize scaler coeffient macros by 'set' (Ville) Signed-off-by: Shashank Sharma Signed-off-by: Ankit Nau

[PATCH v2 2/5] drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation

2020-03-19 Thread Pankaj Bharadiya
Add documentation for newly introduced KMS plane and CRTC scaling filter properties. changes since v1: * None changes since RFC: * Add separate documentation for plane and CRTC. Signed-off-by: Pankaj Bharadiya --- Documentation/gpu/drm-kms.rst | 12 1 file changed, 12 insertions(+)

[PATCH v2 1/5] drm: Introduce plane and CRTC scaling filter properties

2020-03-19 Thread Pankaj Bharadiya
Introduce new plane and CRTC scaling filter properties to allow userspace to select the driver's default scaling filter or Nearest-neighbor(NN) filter for upscaling operations on CRTC and plane. Drivers can set up this property for a plane by calling drm_plane_enable_scaling_filter() and for a CRT

[PATCH v2 4/5] drm/i915/display: Add Nearest-neighbor based integer scaling support

2020-03-19 Thread Pankaj Bharadiya
Integer scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier.Nearest-neighbor (NN) interpolation works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest so

[PATCH v2 5/5] drm/i915: Enable scaling filter for plane and CRTC

2020-03-19 Thread Pankaj Bharadiya
GEN >= 10 hardware supports the programmable scaler filter. Attach scaling filter property for CRTC and plane for GEN >= 10 hardwares and program scaler filter based on the selected filter type. changes since v1: * None Changes since RFC: * Enable properties for GEN >= 10 platforms (Ville) * Do n

Re: [PATCH v2 3/3] MAINTAINERS: Update feiyang, st7701 panel bindings converted as YAML

2020-03-19 Thread Sam Ravnborg
Hi Jagan. On Thu, Mar 19, 2020 at 03:50:44PM +0530, Jagan Teki wrote: > On Thu, Mar 19, 2020 at 12:28 AM Sam Ravnborg wrote: > > > > On Wed, Mar 18, 2020 at 10:40:03PM +0530, Jagan Teki wrote: > > > The feiyang,fy07024di26a30d.txt and sitronix,st7701.txt has been > > > converted to YAML schemas, u

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Daniel Vetter
On Tue, Mar 17, 2020 at 12:18:47PM -0500, Jason Ekstrand wrote: > On Tue, Mar 17, 2020 at 12:13 PM Jacob Lifshay > wrote: > > > > One related issue with explicit sync using sync_file is that combined > > CPUs/GPUs (the CPU cores *are* the GPU cores) that do all the > > rendering in userspace (lik

Re: [PATCH v2 1/3] dt-bindings: display: panel: Convert feiyang, fy07024di26a30d to DT schema

2020-03-19 Thread Jagan Teki
Hi Sam, On Thu, Mar 19, 2020 at 12:27 AM Sam Ravnborg wrote: > > Hi Jagan. > > On Wed, Mar 18, 2020 at 10:40:01PM +0530, Jagan Teki wrote: > > Convert the feiyang,fy07024di26a30d panel bindings to DT schema. > > > > Signed-off-by: Jagan Teki > > Thanks for the resend. > > Please fix so the two b

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Daniel Vetter
On Wed, Mar 18, 2020 at 11:05:48AM +0100, Michel Dänzer wrote: > On 2020-03-17 6:21 p.m., Lucas Stach wrote: > > That's one of the issues with implicit sync that explicit may solve: > > a single client taking way too much time to render something can > > block the whole pipeline up until the disp

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Daniel Vetter
On Tue, Mar 17, 2020 at 11:27:28AM -0500, Jason Ekstrand wrote: > On Tue, Mar 17, 2020 at 10:33 AM Nicolas Dufresne > wrote: > > > > Le lundi 16 mars 2020 à 23:15 +0200, Laurent Pinchart a écrit : > > > Hi Jason, > > > > > > On Mon, Mar 16, 2020 at 10:06:07AM -0500, Jason Ekstrand wrote: > > > >

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Daniel Vetter
On Tue, Mar 17, 2020 at 11:01:57AM +0100, Michel Dänzer wrote: > On 2020-03-16 7:33 p.m., Marek Olšák wrote: > > On Mon, Mar 16, 2020 at 5:57 AM Michel Dänzer wrote: > >> On 2020-03-16 4:50 a.m., Marek Olšák wrote: > >>> The synchronization works because the Mesa driver waits for idle (drains > >>

Re: [PATCH v2 3/3] MAINTAINERS: Update feiyang, st7701 panel bindings converted as YAML

2020-03-19 Thread Jagan Teki
Hi Sam, On Thu, Mar 19, 2020 at 4:02 PM Sam Ravnborg wrote: > > Hi Jagan. > On Thu, Mar 19, 2020 at 03:50:44PM +0530, Jagan Teki wrote: > > On Thu, Mar 19, 2020 at 12:28 AM Sam Ravnborg wrote: > > > > > > On Wed, Mar 18, 2020 at 10:40:03PM +0530, Jagan Teki wrote: > > > > The feiyang,fy07024di26

Re: [PATCH] drm/virtio: fix OOB in virtio_gpu_object_create

2020-03-19 Thread Gerd Hoffmann
On Thu, Mar 19, 2020 at 11:04:21AM +0100, Jiri Slaby wrote: > After commit f651c8b05542, virtio_gpu_create_object allocates too small > space to fit everything in. It is because it allocates struct > virtio_gpu_object, but should allocate a newly added struct > virtio_gpu_object_shmem which has 2 m

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Michel Dänzer
On 2020-03-18 4:22 p.m., Simon Ser wrote: >> >> On 3/18/20 3:38 PM, Simon Ser wrote: >>> 1) Letting the VM-viewer window-system draw the cursor as it normally would draw it. >>> >>> Why is this important? Can't the VM viewer hide the cursor and use a >>> sub-surface to manually draw the c

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Hans de Goede
Hi, On 3/19/20 11:00 AM, Pekka Paalanen wrote: On Wed, 18 Mar 2020 15:28:02 +0100 Hans de Goede wrote: ATM the Atomic KMS API lacks the ability to set cursor hot-spot coordinates. Mutter (and Weston) have tried to emulate this by shifting the coordinates for where to draw the cursor by the ho

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Hans de Goede
Hi, On 3/19/20 12:35 PM, Michel Dänzer wrote: On 2020-03-18 4:22 p.m., Simon Ser wrote: On 3/18/20 3:38 PM, Simon Ser wrote: 1) Letting the VM-viewer window-system draw the cursor as it normally would draw it. Why is this important? Can't the VM viewer hide the cursor and use a sub-surfac

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Thu, 19 Mar 2020 12:52:14 +0100 Hans de Goede wrote: > Hi, > > On 3/19/20 12:35 PM, Michel Dänzer wrote: > > On 2020-03-18 4:22 p.m., Simon Ser wrote: > >>> > >>> On 3/18/20 3:38 PM, Simon Ser wrote: > > > 1) Letting the VM-viewer window-system draw the cursor as it normally >

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Thu, 19 Mar 2020 12:49:27 +0100 Hans de Goede wrote: > Hi, > > On 3/19/20 11:00 AM, Pekka Paalanen wrote: > > On Wed, 18 Mar 2020 15:28:02 +0100 > > Hans de Goede wrote: > > > >> ATM the Atomic KMS API lacks the ability to set cursor hot-spot > >> coordinates. Mutter (and Weston) have tri

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Daniel Vetter
On Thu, Mar 19, 2020 at 1:58 PM Pekka Paalanen wrote: > > On Thu, 19 Mar 2020 12:49:27 +0100 > Hans de Goede wrote: > > > Hi, > > > > On 3/19/20 11:00 AM, Pekka Paalanen wrote: > > > On Wed, 18 Mar 2020 15:28:02 +0100 > > > Hans de Goede wrote: > > > > > >> ATM the Atomic KMS API lacks the abili

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Simon Ser
On Thursday, March 19, 2020 2:16 PM, Daniel Vetter wrote: > On Thu, Mar 19, 2020 at 1:58 PM Pekka Paalanen ppaala...@gmail.com wrote: > > > On Thu, 19 Mar 2020 12:49:27 +0100 > > Hans de Goede hdego...@redhat.com wrote: > > > > > Hi, > > > On 3/19/20 11:00 AM, Pekka Paalanen wrote: > > > > > > >

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Michel Dänzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2020-03-19 1:54 p.m., Pekka Paalanen wrote: > On Thu, 19 Mar 2020 12:52:14 +0100 Hans de Goede > wrote: >> On 3/19/20 12:35 PM, Michel Dänzer wrote: >>> On 2020-03-18 4:22 p.m., Simon Ser wrote: > > On 3/18/20 3:38 PM, Simon Ser wrote:

Re: [PATCH v2 3/5] drm: panel: add Xingbangda XBD599 panel

2020-03-19 Thread Linus Walleij
Hi Icenowy! Thanks for your patch. On Mon, Mar 16, 2020 at 2:37 PM Icenowy Zheng wrote: > Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by > Xingbangda, which is used on PinePhone final assembled phones. > > Add support for it. > > Signed-off-by: Icenowy Zheng (...) > +/*

Re: [PATCH v2 2/5] dt-bindings: panel: add binding for Xingbangda XBD599 panel

2020-03-19 Thread Linus Walleij
Hi Icenowy, On Mon, Mar 16, 2020 at 2:37 PM Icenowy Zheng wrote: > Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. > > Add its device tree binding. > > Signed-off-by: Icenowy Zheng (...) > +properties: > + compatible: > +const: xingbangda,xbd599 As noticed in the review of the

Re: [PATCH v1 0/3] drm: drm_encoder_init() => drm_encoder_init_funcs()

2020-03-19 Thread Sam Ravnborg
On Fri, Mar 13, 2020 at 09:17:41PM +0100, Sam Ravnborg wrote: > Thomas Zimmermann had made a nice patch-set that introduced > drm_simple_encoder_init() which is already present in drm-misc-next. > > While looking at this it was suddenly obvious to me that > this was functionalty that really should

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Hans de Goede
Hi, On 3/19/20 1:58 PM, Pekka Paalanen wrote: On Thu, 19 Mar 2020 12:49:27 +0100 Hans de Goede wrote: Hi, On 3/19/20 11:00 AM, Pekka Paalanen wrote: On Wed, 18 Mar 2020 15:28:02 +0100 Hans de Goede wrote: ATM the Atomic KMS API lacks the ability to set cursor hot-spot coordinates. Mut

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Thu, 19 Mar 2020 14:51:41 +0100 Michel Dänzer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 2020-03-19 1:54 p.m., Pekka Paalanen wrote: > > On Thu, 19 Mar 2020 12:52:14 +0100 Hans de Goede > > wrote: > >> On 3/19/20 12:35 PM, Michel Dänzer wrote: > >>> On 2020-03-18 4:2

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Hans de Goede
Hi, On 3/19/20 3:48 PM, Pekka Paalanen wrote: On Thu, 19 Mar 2020 14:51:41 +0100 Michel Dänzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2020-03-19 1:54 p.m., Pekka Paalanen wrote: On Thu, 19 Mar 2020 12:52:14 +0100 Hans de Goede wrote: On 3/19/20 12:35 PM, Michel Dänzer wro

Re: [GIT PULL] Immutable branch between Backlight, Arm, Unicore32 and PWM due for the v5.7 merge window

2020-03-19 Thread Linus Walleij
On Wed, Mar 18, 2020 at 4:16 PM Lee Jones wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git > ib-backlight-arm-unicore-pwm-v5.7 Thanks a lot for queueing this up and creating an immutable branch and all! Much appreciated. Yours, Linus Walleij __

Re: [PATCH] drm: rework SET_MASTER and DROP_MASTER perm handling

2020-03-19 Thread Adam Jackson
On Wed, 2020-02-19 at 13:27 +, Emil Velikov wrote: > + * As some point systemd-logind was introduced to orchestrate and delegate > + * master as applicable. It does so by opening the fd and passing it to users > + * while in itself logind a) does the set/drop master per users' request and > +

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Pekka Paalanen
On Thu, 19 Mar 2020 15:30:03 +0100 Hans de Goede wrote: > Hi, > > On 3/19/20 1:58 PM, Pekka Paalanen wrote: > > On Thu, 19 Mar 2020 12:49:27 +0100 > > Hans de Goede wrote: > > > >> Hi, > >> > >> On 3/19/20 11:00 AM, Pekka Paalanen wrote: > >>> On Wed, 18 Mar 2020 15:28:02 +0100 > >>> Hans

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Adam Jackson
On Tue, 2020-03-17 at 10:12 -0700, Jacob Lifshay wrote: > One related issue with explicit sync using sync_file is that combined > CPUs/GPUs (the CPU cores *are* the GPU cores) that do all the > rendering in userspace (like llvmpipe but for Vulkan and with extra > instructions for GPU tasks) but nee

Re: [PATCH v1 0/3] drm: drm_encoder_init() => drm_encoder_init_funcs()

2020-03-19 Thread Sam Ravnborg
On Thu, Mar 19, 2020 at 03:19:54PM +0100, Sam Ravnborg wrote: > On Fri, Mar 13, 2020 at 09:17:41PM +0100, Sam Ravnborg wrote: > > Thomas Zimmermann had made a nice patch-set that introduced > > drm_simple_encoder_init() which is already present in drm-misc-next. > > > > While looking at this it wa

[PATCH v2 2/2] drm: error out with EBUSY when device has existing master

2020-03-19 Thread Emil Velikov
From: Emil Velikov As requested by Adam, provide different error message for when the device has an existing master. An audit of the following projects, shows that the errno is used only for printf() purposes. xorg/xserver xorg/drivers/xf86-video-ati xorg/drivers/xf86-video-amdgpu xorg/drivers/x

[PATCH v2 1/2] drm: rework SET_MASTER and DROP_MASTER perm handling

2020-03-19 Thread Emil Velikov
From: Emil Velikov This commit reworks the permission handling of the two ioctls. In particular it enforced the CAP_SYS_ADMIN check only, if: - we're issuing the ioctl from process other than the one which opened the node, and - we are, or were master in the past This ensures that we: - do no

Re: [PATCH v2 2/2] drm: error out with EBUSY when device has existing master

2020-03-19 Thread Adam Jackson
On Thu, 2020-03-19 at 17:29 +, Emil Velikov wrote: > From: Emil Velikov > > As requested by Adam, provide different error message for when the > device has an existing master. An audit of the following projects, shows > that the errno is used only for printf() purposes. > > xorg/xserver > xo

[pull] amdgpu, scheduler drm-next-5.7

2020-03-19 Thread Alex Deucher
Hi Dave, Daniel, Last round of stuff for 5.7. Mostly bug fixes. The following changes since commit 69ddce0970d9d1de63bed9c24eefa0814db29a5a: Merge tag 'amd-drm-next-5.7-2020-03-10' of git://people.freedesktop.org/~agd5f/linux into drm-next (2020-03-13 09:09:11 +1000) are available in the G

Re: [PATCH RFC v5 4/6] drm/sprd: add Unisoc's drm display controller driver

2020-03-19 Thread Emil Velikov
Hey Kevin, On Sun, 15 Mar 2020 at 23:19, Kevin Tang wrote: > > Adds DPU(Display Processor Unit) support for the Unisoc's display subsystem. > It's support multi planes, scaler, rotation, PQ(Picture Quality) and more. > > Cc: Orson Zhai > Cc: Baolin Wang > Cc: Chunyan Zhang > Signed-off-by: Kev

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Hans de Goede
Hi, On 3/19/20 4:16 PM, Pekka Paalanen wrote: On Thu, 19 Mar 2020 15:30:03 +0100 Hans de Goede wrote: The only way to fix that is to stop Weston from putting non-cursor content on the cursor plane. Correct. Is that something that should be done? If the hotspot property also had a "dis

Re: [PATCH] drm/msm: Don't attempt to attach HDMI bridge twice

2020-03-19 Thread Rob Clark
On Wed, Mar 18, 2020 at 9:39 PM Bjorn Andersson wrote: > > With the introduction of '3ef2f119bd3e ("drm/msm: Use > drm_attach_bridge() to attach a bridge to an encoder")' the HDMI bridge > is attached both in msm_hdmi_bridge_init() and later in > msm_hdmi_modeset_init(). > > The second attempt fai

Re: [PATCH v13 2/6] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-03-19 Thread Rob Herring
On Wed, Mar 11, 2020 at 03:18:19PM +0800, Jitao Shi wrote: > Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set > the dpi pins to gpio mode and output-low to avoid leakage current when dpi > disabled. > > Signed-off-by: Jitao Shi > --- > .../devicetree/bindings/display/

Re: [PATCH v13 4/6] dt-bindings: display: mediatek: convert the document format from txt to yaml

2020-03-19 Thread Rob Herring
On Wed, Mar 11, 2020 at 03:18:21PM +0800, Jitao Shi wrote: > Signed-off-by: Jitao Shi > --- > .../display/mediatek/mediatek,dpi.txt | 45 > .../display/mediatek/mediatek,dpi.yaml| 103 ++ > 2 files changed, 103 insertions(+), 45 deletions(-) > delete mod

Re: [PATCH] Remove stable HAINAN board from max_sclk override check in radeon and amdgpu modules

2020-03-19 Thread Alex Deucher
On Tue, Mar 17, 2020 at 9:50 AM Yassine Oudjana wrote: > > Signed-off-by: Yassine Oudjana Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/si_dpm.c | 1 - > drivers/gpu/drm/radeon/si_dpm.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-19 Thread Marek Olšák
On Thu., Mar. 19, 2020, 06:51 Daniel Vetter, wrote: > On Tue, Mar 17, 2020 at 11:01:57AM +0100, Michel Dänzer wrote: > > On 2020-03-16 7:33 p.m., Marek Olšák wrote: > > > On Mon, Mar 16, 2020 at 5:57 AM Michel Dänzer > wrote: > > >> On 2020-03-16 4:50 a.m., Marek Olšák wrote: > > >>> The synchro

Re: [PATCH 1/9] drm/vblank: Add vblank works

2020-03-19 Thread Lyude Paul
On Wed, 2020-03-18 at 14:46 +0100, Daniel Vetter wrote: > On Tue, Mar 17, 2020 at 08:40:58PM -0400, Lyude Paul wrote: > > From: Ville Syrjälä > > > > Add some kind of vblank workers. The interface is similar to regular > > delayed works, and also allows for re-scheduling. > > > > Whatever hardwa

Re: Atomic KMS API lacks the ability to set cursor hot-spot coordinates

2020-03-19 Thread Simon Ser
On Thursday, March 19, 2020 7:18 PM, Hans de Goede wrote: > > > > The only way to fix that is to stop Weston from putting non-cursor > > > > content on the cursor plane. > > > > > > Correct. > > > > Is that something that should be done? > > If the hotspot property also had a "disabled" value, th

[PATCH 00/17] drm/vmwgfx add support for GL4

2020-03-19 Thread rscheidegger . oss
From: "Roland Scheidegger (VMware)" This series updates vmwgfx to support newer vmware svga device protocol and expose new commands to userspace.. This is required for supporting newer GL4 features in the guest. This syncs up the device headers, adds support for the new commands, and also refact

[PATCH 06/17] drm/vmwgfx: Add a new enum for SM5 graphics context capability

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat A new enum to represent new SM5 graphics context capability in vmwgfx. v2: use new correct cap bits (merged several later commits into it). Signed-off-by: Deepak Rawat Signed-off-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/

[PATCH 01/17] drm/vmwgfx: Also check for SVGA_CAP_DX before reading DX context support

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device consider SVGA_CAP_DX and SVGA3D_DEVCAP_DXCONTEXT independent of each other. Some of the commands in cmd_buf depends on SVGA_CAP_DX, so better to check for that as well. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Sc

[PATCH 07/17] drm/vmwgfx: Read new register for GB memory when available

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device added new register for suggested GB memory, read the new register when available. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 12 +--- 1 file

[PATCH 02/17] drm/vmwgfx: Sync legacy multisampling device capability

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat In favor of SM4.1 multisampling capability, virtual device deprecated old multisampling device capability. Mark legacy multisampling device capability as dead. Rename the function that masks legacy multisample capability to reflect that now it is masking a deprecated feature.

[PATCH 11/17] drm/vmwgfx: Rename stream output target binding tracker struct

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Previous name vmw_ctx_bindinfo_so is misleading because it actually represent so target and stream output is a new resource type that needs tracking for SM5 capable device. Also rename binding type enum and internal functions to reflect these belongs to so targets. Signed-off-

[PATCH 08/17] drm/vmwgfx: Support SM5 shader type in command buffer

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device now supports new shader types, allow them as valid shader type in command buffer. Also add per shader bind info in binding manager state for new shader type. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (

[PATCH 04/17] drm/vmwgfx: Use enum to represent graphics context capabilities

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Instead of having different bool in device private to represent incremental graphics context capabilities, add a new sm type enum. v2: Use enum instead of bit flag. v3: Incorporated review comments. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-

[PATCH 09/17] drm/vmwgfx: Add support for UA view commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device now support new commands to manage unordered access views. Allow them as part of user-space command buffer. This involves adding UA view cotable, binding tracker info, new view type and command verifier functions. v2: fix comment typo v3: style fixes (don't use

[PATCH 03/17] drm/vmwgfx: Deprecate logic ops commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Logic ops commands are marked as deprecated by virtual device and were never used by vmwgfx. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- .../gpu/drm/vmwgfx/device_include/svga3d_cmd.h | 12 ++--

[PATCH 14/17] drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Makes surface_define cleaner by sending vmw_surface_metadata instead of all the arguments individually. v2: fix uninitialized return value, error message Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheid

[PATCH 17/17] drm/vmwgfx: Use vmwgfx version 2.18 to signal SM5 compatibility

2020-03-19 Thread rscheidegger . oss
From: Thomas Hellstrom Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Charmaine Lee Reviewed-by: Brian Paul Signed-off-by: Roland Scheidegger (VMware) ___ v2: Use 2.18 instead of 2.17 --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 16/17] drm/vmwgfx: Add SM5 param for userspace

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Add a new param for user-space to determine if kernel module is SM5 capable. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 +++ include/uapi/drm/vmwgfx_drm.h

[PATCH 15/17] drm/vmwgfx: Add surface define v4 command

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Surface define v4 added new member buffer_byte_stride. With this patch add buffer_byte_stride in surface metadata and create surface using new command if support is available. Also with this patch replace device specific data types with kernel types. Signed-off-by: Deepak Raw

[PATCH 13/17] drm/vmwgfx: Split surface metadata from struct vmw_surface

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Create a new structure vmw_surface_metadata representing the metadata used for creating surface. With this can make the surface_define_priv a bit cleaner. Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheid

[PATCH 12/17] drm/vmwgfx: Add support for streamoutput with mob commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat With SM5 capability a new version of streamoutput is supported by device which need backing mob and a new field. With this change the new command is supported in command buffer. v2: Also track streamoutput context binding in binding manager. v3: Track only one streamoutput as

[PATCH 10/17] drm/vmwgfx: Add support for indirect and dispatch commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Validate indirect and dispatch commands in command buffer. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 70 + 1 file changed, 70 insertion

[pull] amdgpu 5.6 fixes

2020-03-19 Thread Alex Deucher
Hi Dave, Daniel, This just adds Mario's pageflip fix on top of yesterday's 5.6 pull. The following changes since commit a3c33e7a4a116f8715c0ef0e668e6aeff009c762: drm/amdgpu: fix typo for vcn2.5/jpeg2.5 idle check (2020-03-18 18:21:57 -0400) are available in the Git repository at: git://peo

  1   2   >