[PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-10-29 Thread Jason Wang
This sample driver creates mdev device that simulate virtio net device over virtio mdev transport. The device is implemented through vringh and workqueue. A device specific dma ops is to make sure HVA is used directly as the IOVA. This should be sufficient for kernel virtio driver to work. Only 'v

[PATCH V6 5/6] virtio: introduce a mdev based transport

2019-10-29 Thread Jason Wang
This patch introduces a new mdev transport for virtio. This is used to use kernel virtio driver to drive the mediated device that is capable of populating virtqueue directly. A new virtio-mdev driver will be registered to the mdev bus, when a new virtio-mdev device is probed, it will register the

[PATCH V6 4/6] mdev: introduce virtio device and its device ops

2019-10-29 Thread Jason Wang
This patch implements basic support for mdev driver that supports virtio transport for kernel virtio driver. Signed-off-by: Jason Wang --- drivers/vfio/mdev/mdev_core.c| 20 drivers/vfio/mdev/mdev_private.h | 2 + include/linux/mdev.h | 6 ++ include/linux/virtio_mdev_o

[PATCH V6 3/6] mdev: introduce device specific ops

2019-10-29 Thread Jason Wang
Currently, except for the create and remove, the rest of mdev_parent_ops is designed for vfio-mdev driver only and may not help for kernel mdev driver. With the help of class id, this patch introduces device specific callbacks inside mdev_device structure. This allows different set of callback to b

[PATCH V6 2/6] modpost: add support for mdev class id

2019-10-29 Thread Jason Wang
Add support to parse mdev class id table. Reviewed-by: Parav Pandit Signed-off-by: Jason Wang --- drivers/vfio/mdev/vfio_mdev.c | 2 ++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 11 +++ 3 files changed, 16 insertions(+) diff --git a/drivers/vf

[PATCH V6 1/6] mdev: class id support

2019-10-29 Thread Jason Wang
Mdev bus only supports vfio driver right now, so it doesn't implement match method. But in the future, we may add drivers other than vfio, the first driver could be virtio-mdev. This means we need to add device class id support in bus match method to pair the mdev device and mdev driver correctly.

[PATCH V6 0/6] mdev based hardware virtio offloading support

2019-10-29 Thread Jason Wang
Hi all: There are hardwares that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and re

[Bug 205169] AMDGPU driver with Navi card hangs Xorg in fullscreen only.

2019-10-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205169 ArneJ (kernelbug5...@arnej.de) changed: What|Removed |Added CC||kernelbug5...@arnej.de -

[PATCH] drm/doc: Update IGT documentation

2019-10-29 Thread Leandro Ribeiro
The IGT documentation in this page is telling us to build it using make. According to commit 67993c1 ("automake: Point builders at meson") from the IGT project, this is deprecated and IGT should be built with meson. Instead of having a documentation for IGT in this page, point to their GitLab READM

Re: [PATCH 3/3] drm/udl: Switch to SHMEM

2019-10-29 Thread kbuild test robot
Hi Thomas, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.4-rc5 next-20191029] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option

Re: [PATCH v2 13/15] drm/amdgpu: Use mmu_range_insert instead of hmm_mirror

2019-10-29 Thread Kuehling, Felix
On 2019-10-28 4:10 p.m., Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Remove the interval tree in the driver and rely on the tree maintained by > the mmu_notifier for delivering mmu_notifier invalidation callbacks. > > For some reason amdgpu has a very complicated arrangement where it tries

Re: [PATCH v11 1/7] dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller

2019-10-29 Thread Rob Herring
On Fri, Oct 25, 2019 at 11:26:19PM +0530, Jagan Teki wrote: > The MIPI DSI controller in Allwinner A64 is similar to A33. > > But unlike A33, A64 doesn't have DSI_SCLK gating so it is valid > to have separate compatible for A64 on the same driver. > > DSI_SCLK uses mod clock-names on dt-bindings,

[PULL] topic/mst-suspend-resume-reprobe-2019-10-29-2

2019-10-29 Thread Lyude Paul
topic/mst-suspend-resume-reprobe-2019-10-29-2: UAPI Changes: Cross-subsystem Changes: Core Changes: * Handle UP requests asynchronously in the DP MST helpers, fixing hotplug notifications and allowing us to implement suspend/resume reprobing * Add basic suspend/resume reprobing to the DP MST

Re: [PATCH v2 02/15] mm/mmu_notifier: add an interval tree notifier

2019-10-29 Thread Kuehling, Felix
I haven't had enough time to fully understand the deferred logic in this change. I spotted one problem, see comments inline. On 2019-10-28 4:10 p.m., Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Of the 13 users of mmu_notifiers, 8 of them use only > invalidate_range_start/end() and immedia

Re: [PATCH] etnaviv: fix dumping of iommuv2

2019-10-29 Thread Christian Gmeiner
Hi Lucas, Am Di., 29. Okt. 2019 um 18:18 Uhr schrieb Lucas Stach : > > Hi Christian, > > On Fr, 2019-10-25 at 12:39 +0200, Christian Gmeiner wrote: > > etnaviv_iommuv2_dump_size(..) returns the number of PTE * SZ_4K but > > etnaviv_iommuv2_dump(..) > > increments buf pointer even if there is no P

Re: [PATCH v2 14/15] drm/amdgpu: Use mmu_range_notifier instead of hmm_mirror

2019-10-29 Thread Yang, Philip
Hi Jason, I did quick test after merging amd-staging-drm-next with the mmu_notifier branch, which includes this set changes. The test result has different failures, app stuck intermittently, GUI no display etc. I am understanding the changes and will try to figure out the cause. Regards, Phili

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #124 from bl...@yahoo.com --- (In reply to haro41 from comment #122) > In my experience, this issue is related to mclk switching and it affects the > lowest mclk level only. > > So you guy's can save a lot of power, if you, insteed o

Re: [PATCH] fbdev: potential information leak in do_fb_ioctl()

2019-10-29 Thread Joe Perches
On Tue, 2019-10-29 at 21:23 +0300, Dan Carpenter wrote: > The "fix" struct has a 2 byte hole after ->ywrapstep and the > "fix = info->fix;" assignment doesn't necessarily clear it. It depends > on the compiler. [] > diff --git a/drivers/video/fbdev/core/fbmem.c > b/drivers/video/fbdev/core/fbmem.

[PATCH] dma-buf: Fix a warning message in dma_heap_buffer_destroy()

2019-10-29 Thread Dan Carpenter
The first argument of WARN() is a condition so this will just print the function name instead of the whole warning message. Fixes: 7b87ea704fd9 ("dma-buf: heaps: Add heap helpers") Signed-off-by: Dan Carpenter --- drivers/dma-buf/heaps/heap-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 del

Re: [PATCH] drm/panfrost: Don't dereference bogus MMU pointers

2019-10-29 Thread Rob Herring
On Mon, Oct 28, 2019 at 3:08 PM Robin Murphy wrote: > > It seems that killing an application while faults are occurring > (particularly with a GPU in FPGA at a whopping 40MHz) can lead to > handling a lingering page fault after all the address space contexts > have already been freed. In this situ

Re: [PATCH v2 0/2] drm/panfrost: Tidy up the devfreq implementation

2019-10-29 Thread Rob Herring
On Fri, Oct 25, 2019 at 8:41 AM Steven Price wrote: > > The devfreq implementation in panfrost is unnecessarily open coded. It > also tracks utilisation metrics per slot which isn't very useful. Let's > tidy it up! > > Changes since v1: > http://lkml.kernel.org/r/20190912112804.10104-1-steven.pri

Re: [PATCH v4] drm/panfrost: fix -Wmissing-prototypes warnings

2019-10-29 Thread Rob Herring
On Mon, Oct 28, 2019 at 8:55 PM Yi Wang wrote: > > We get these warnings when build kernel W=1: > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:35:6: warning: no previous > prototype for ‘panfrost_perfcnt_clean_cache_done’ [-Wmissing-prototypes] > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:40:6: w

[Bug 110733] [Regression] Kernel 4.19.x + linux-firmware 20190514 + Vega 64: boot fails

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110733 --- Comment #3 from Alexander Mezin --- With linux-firmware 20191022 + kernel 4.19.80 the system doesn't boot again Is it possible to backport https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfcea5204287b0a09dac71f

[PATCH] fbdev: potential information leak in do_fb_ioctl()

2019-10-29 Thread Dan Carpenter
The "fix" struct has a 2 byte hole after ->ywrapstep and the "fix = info->fix;" assignment doesn't necessarily clear it. It depends on the compiler. Fixes: 1f5e31d7e55a ("fbmem: don't call copy_from/to_user() with mutex held") Signed-off-by: Dan Carpenter --- I have 13 more similar places to pat

Re: [PATCH] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Grodzovsky, Andrey
On 10/29/19 2:03 PM, Dan Carpenter wrote: > On Tue, Oct 29, 2019 at 11:04:44AM -0400, Andrey Grodzovsky wrote: >> Fix a static code checker warning. >> >> Signed-off-by: Andrey Grodzovsky >> --- >> drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Andrey Grodzovsky
Fix a static code checker warning. v2: Drop PTR_ERR_OR_ZERO. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/scheduler/sched_main.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c in

Re: [PATCH] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Dan Carpenter
On Tue, Oct 29, 2019 at 11:04:44AM -0400, Andrey Grodzovsky wrote: > Fix a static code checker warning. > > Signed-off-by: Andrey Grodzovsky > --- > drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/scheduler/sche

Re: [PATCH] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Dan Carpenter
On Tue, Oct 29, 2019 at 11:04:44AM -0400, Andrey Grodzovsky wrote: > Fix a static code checker warning. > > Signed-off-by: Andrey Grodzovsky > --- > drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/scheduler/sche

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #182 from Shmerl --- Yep, even with 5.4-rc5 with those two extra patches applied, Firefox hangs randomly sometimes. -- You are receiving this mail because: You are the assignee for the bug.__

Re: [PATCH v2 12/15] drm/amdgpu: Call find_vma under mmap_sem

2019-10-29 Thread Christian König
Am 29.10.19 um 17:28 schrieb Kuehling, Felix: On 2019-10-28 4:10 p.m., Jason Gunthorpe wrote: From: Jason Gunthorpe find_vma() must be called under the mmap_sem, reorganize this code to do the vma check after entering the lock. Further, fix the unlocked use of struct task_struct's mm, instead

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #181 from Daniel Suarez --- (In reply to L.S.S. from comment #180) > The other two patches do not fix the problem for me (sdma read delay and the > wip patch). After applying these two patches (along with the mask patch > which was a

Re: [PATCH] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Christian König
Am 29.10.19 um 16:04 schrieb Andrey Grodzovsky: Fix a static code checker warning. Signed-off-by: Andrey Grodzovsky Well that one was even new to me. Patch is Reviewed-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(

Re: [PATCH] etnaviv: fix dumping of iommuv2

2019-10-29 Thread Lucas Stach
Hi Christian, On Fr, 2019-10-25 at 12:39 +0200, Christian Gmeiner wrote: > etnaviv_iommuv2_dump_size(..) returns the number of PTE * SZ_4K but > etnaviv_iommuv2_dump(..) > increments buf pointer even if there is no PTE. This results in a bad buf > pointer which gets > used for memcpy(..). > > [

Re: [PATCH 3/6] ASoC: dt-bindings: mt8183: add a property "mediatek,hdmi-codec"

2019-10-29 Thread Rob Herring
On Tue, 22 Oct 2019 19:45:02 +0800, Tzung-Bi Shih wrote: > Add an optional property "mediatek,hdmi-codec". > > Signed-off-by: Tzung-Bi Shih > --- > .../bindings/sound/mt8183-mt6358-ts3a227-max98357.txt | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Rob Herring ___

Re: [PATCH] dt-bindings: display: st,stm32-dsi: Fix white spaces

2019-10-29 Thread Rob Herring
On Mon, 21 Oct 2019 17:18:47 +0200, Krzysztof Kozlowski wrote: > Remove unneeded indentation in blank line and space at end of line. > > Signed-off-by: Krzysztof Kozlowski > --- > Documentation/devicetree/bindings/display/st,stm32-dsi.yaml | 2 +- > Documentation/devicetree/bindings/display/st,

Re: [PATCH v2 12/15] drm/amdgpu: Call find_vma under mmap_sem

2019-10-29 Thread Kuehling, Felix
On 2019-10-28 4:10 p.m., Jason Gunthorpe wrote: > From: Jason Gunthorpe > > find_vma() must be called under the mmap_sem, reorganize this code to > do the vma check after entering the lock. > > Further, fix the unlocked use of struct task_struct's mm, instead use > the mm from hmm_mirror which has

[radeon-alex:amd-mainline-dkms-5.0 3808/4200] include/kcl/kcl_drm.h:635:20: error: static declaration of 'drm_mode_is_420_only' follows non-static declaration

2019-10-29 Thread kbuild test robot
Hi Flora, FYI, the error/warning still remains. tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.0 head: 52f70af32a6cef1ec5735145486d9154ab1248ac commit: 13a2da823a67d53982d85b4d28a9a2532fede843 [3808/4200] drm/amd/autoconf: check drm_mode_is_420_xxx() is available con

Re: [Intel-gfx] [PATCH] drm/dp: Increase link status size

2019-10-29 Thread Ville Syrjälä
On Tue, Oct 29, 2019 at 03:32:41PM +0200, Jani Nikula wrote: > On Tue, 29 Oct 2019, Thierry Reding wrote: > > From: Thierry Reding > > > > The current link status contains bytes 0x202 through 0x207, but we also > > want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c) > > so tha

[PATCH] drm/sched: Fix passing zero to 'PTR_ERR' warning

2019-10-29 Thread Andrey Grodzovsky
Fix a static code checker warning. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index f39b97e..898b0c9 100644 --

Re: [bug report] drm/sched: Set error to s_fence if HW job submission failed.

2019-10-29 Thread Dan Carpenter
I sent that too quickly. See also: drivers/gpu/drm/scheduler/sched_main.c:750 drm_sched_main() warn: passing zero to 'PTR_ERR' which is a few lines later. regards, dan carpenter ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://list

[bug report] drm/sched: Set error to s_fence if HW job submission failed.

2019-10-29 Thread Dan Carpenter
Hello Andrey Grodzovsky, The patch e91e5f080e03: "drm/sched: Set error to s_fence if HW job submission failed." from Oct 24, 2019, leads to the following static checker warning: drivers/gpu/drm/scheduler/sched_main.c:500 drm_sched_resubmit_jobs() warn: passing zero to 'PTR_ERR' d

Re: [PATCH] drm/dp: Increase link status size

2019-10-29 Thread Thierry Reding
On Tue, Oct 29, 2019 at 03:32:41PM +0200, Jani Nikula wrote: > On Tue, 29 Oct 2019, Thierry Reding wrote: > > From: Thierry Reding > > > > The current link status contains bytes 0x202 through 0x207, but we also > > want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c) > > so tha

[RESEND PATCH] drm/dp: Increase link status size

2019-10-29 Thread Thierry Reding
From: Thierry Reding The current link status contains bytes 0x202 through 0x207, but we also want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c) so that the post-cursor adjustment can be queried during link training. Reported-by: coverity-bot Addresses-Coverity-ID: 1487366 (

[PATCH 06/13] drm/dp_mst: Add helpers for MST DSC and virtual DPCD aux

2019-10-29 Thread mikita.lipski
From: David Francis Add drm_dp_mst_dsc_aux_for_port. To enable DSC, the DSC_ENABLED register might have to be written on the leaf port's DPCD, its parent's DPCD, or the MST manager's DPCD. This function finds the correct aux for the job. As part of this, add drm_dp_mst_is_virtual_dpcd. Virtual D

[PATCH 03/13] drm/dp_mst: Parse FEC capability on MST ports

2019-10-29 Thread mikita.lipski
From: David Francis As of DP1.4, ENUM_PATH_RESOURCES returns a bit indicating if FEC can be supported up to that point in the MST network. The bit is the first byte of the ENUM_PATH_RESOURCES ack reply, bottom-most bit (refer to section 2.11.9.4 of DP standard, v1.4) That value is needed for FE

[PATCH 12/13] drm/dp_mst: Add DSC enablement helpers to DRM

2019-10-29 Thread mikita.lipski
From: Mikita Lipski Adding the following elements to add MST DSC support to DRM: - dsc_enable boolean flag to drm_dp_vcpi_allocation structure to signal, which port got DSC enabled - function drm_dp_helper_update_vcpi_slots_for_dsc allows reallocation of newly recalculated VCPI slots and raises

[PATCH 11/13] drm/amd/display: MST DSC compute fair share

2019-10-29 Thread mikita.lipski
From: David Francis If there is limited link bandwidth on a MST network, it must be divided fairly between the streams on that network Implement an algorithm to determine the correct DSC config for each stream The algorithm: This [ ] ( ) represents the range of b

[PATCH 05/13] drm/dp_mst: Fill branch->num_ports

2019-10-29 Thread mikita.lipski
From: David Francis This field on drm_dp_mst_branch was never filled It is initialized to zero when the port is kzallocced. When a port is added to the list, increment num_ports, and when a port is removed from the list, decrement num_ports. v2: remember to decrement on port removal v3: don't e

[PATCH 01/13] drm/amd/display: Add MST atomic routines

2019-10-29 Thread mikita.lipski
From: Mikita Lipski - Adding encoder atomic check to find vcpi slots for a connector - Using DRM helper functions to calculate PBN - Adding connector atomic check to release vcpi slots if connector loses CRTC - Calculate PBN and VCPI slots only once during atomic check and store them on crtc_sta

[PATCH 09/13] drm/amd/display: Validate DSC caps on MST endpoints

2019-10-29 Thread mikita.lipski
From: David Francis During MST mode enumeration, if a new dc_sink is created, populate it with dsc caps as appropriate. Use drm_dp_mst_dsc_aux_for_port to get the raw caps, then parse them onto dc_sink with dc_dsc_parse_dsc_dpcd. Reviewed-by: Wenjing Liu Signed-off-by: David Francis --- .../

[PATCH 04/13] drm/dp_mst: Add MST support to DP DPCD R/W functions

2019-10-29 Thread mikita.lipski
From: David Francis Instead of having drm_dp_dpcd_read/write and drm_dp_mst_dpcd_read/write as entry points into the aux code, have drm_dp_dpcd_read/write handle both. This means that DRM drivers can make MST DPCD read/writes. v2: Fix spacing v3: Dump dpcd access on MST read/writes v4: Fix call

[PATCH 08/13] drm/amd/display: Initialize DSC PPS variables to 0

2019-10-29 Thread mikita.lipski
From: David Francis For DSC MST, sometimes monitors would break out in full-screen static. The issue traced back to the PPS generation code, where these variables were being used uninitialized and were picking up garbage. memset to 0 to avoid this Reviewed-by: Nicholas Kazlauskas Signed-off-by

[PATCH 13/13] drm/amd/display: Recalculate VCPI slots for new DSC connectors

2019-10-29 Thread mikita.lipski
From: Mikita Lipski Since for DSC MST connector's PBN is claculated differently due to compression, we have to recalculate both PBN and VCPI slots for that connector. The function iterates through all the active streams to find, which have DSC enabled, then recalculates PBN for it and calls drm_

[PATCH 10/13] drm/amd/display: Write DSC enable to MST DPCD

2019-10-29 Thread mikita.lipski
From: David Francis Rework the dm_helpers_write_dsc_enable callback to handle the MST case. Use the cached dsc_aux field. Reviewed-by: Wenjing Liu Signed-off-by: David Francis --- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 19 ++- 1 file changed, 18 insertions(+), 1 dele

[PATCH 02/13] drm/dp_mst: Add PBN calculation for DSC modes

2019-10-29 Thread mikita.lipski
From: David Francis With DSC, bpp can be fractional in multiples of 1/16. Change drm_dp_calc_pbn_mode to reflect this, adding a new parameter bool dsc. When this parameter is true, treat the bpp parameter as having units not of bits per pixel, but 1/16 of a bit per pixel v2: Don't add separate

[PATCH 07/13] drm/dp_mst: Add new quirk for Synaptics MST hubs

2019-10-29 Thread mikita.lipski
From: Mikita Lipski Synaptics DP1.4 hubs (BRANCH_ID 0x90CC24) do not support virtual DPCD registers, but do support DSC. The DSC caps can be read from the physical aux, like in SST DSC. These hubs have many different DEVICE_IDs. Add a new quirk to detect this case. Reviewed-by: Wenjing Liu Rev

[PATCH v3 00/13] DSC MST support for AMDGPU

2019-10-29 Thread mikita.lipski
From: Mikita Lipski This set of patches is a continuation of DSC enablement patches for AMDGPU. This set enables DSC on MST. It also contains implementation of both encoder and connector atomic check routines. First 10 patches have been introduced in multiple iterations to the mailing list befo

Re: [PATCH] drm/dp: Increase link status size

2019-10-29 Thread Jani Nikula
On Tue, 29 Oct 2019, Thierry Reding wrote: > From: Thierry Reding > > The current link status contains bytes 0x202 through 0x207, but we also > want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c) > so that the post-cursor adjustment can be queried during link training. We don

Applied "drm: bridge: dw-hdmi: Report connector status using callback" to the asoc tree

2019-10-29 Thread Mark Brown
The patch drm: bridge: dw-hdmi: Report connector status using callback has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "ASoC: rockchip_max98090: Optionally support HDMI use case" to the asoc tree

2019-10-29 Thread Mark Brown
The patch ASoC: rockchip_max98090: Optionally support HDMI use case has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: rockchip_max98090: Add HDMI jack support" to the asoc tree

2019-10-29 Thread Mark Brown
The patch ASoC: rockchip_max98090: Add HDMI jack support has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: rockchip-max98090: Support usage with and without HDMI" to the asoc tree

2019-10-29 Thread Mark Brown
The patch ASoC: rockchip-max98090: Support usage with and without HDMI has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Re: [PATCH] drm/tinydrm: Fix memroy leak in hx8357d_probe

2019-10-29 Thread Noralf Trønnes
Hi Navid, Den 27.10.2019 18.32, skrev Navid Emamdoost: > In the implementation of hx8357d_probe() the allocated memory for dbidev > is leaked when an error happens. Release dbidev if any of the following > calls fail: devm_gpiod_get(), devm_of_find_backlight(), > mipi_dbi_spi_init(), mipi_dbi_ini

Re: [PATCH v2 06/15] RDMA/hfi1: Use mmu_range_notifier_inset for user_exp_rcv

2019-10-29 Thread Dennis Dalessandro
On 10/28/2019 4:10 PM, Jason Gunthorpe wrote: From: Jason Gunthorpe This converts one of the two users of mmu_notifiers to use the new API. The conversion is fairly straightforward, however the existing use of notifiers here seems to be racey. Cc: Mike Marciniszyn Cc: Dennis Dalessandro Sign

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #180 from L.S.S. --- The other two patches do not fix the problem for me (sdma read delay and the wip patch). After applying these two patches (along with the mask patch which was already included upstream), I still get the same ring

Re: [PATCH hmm 06/15] RDMA/hfi1: Use mmu_range_notifier_inset for user_exp_rcv

2019-10-29 Thread Dennis Dalessandro
On 10/15/2019 2:12 PM, Jason Gunthorpe wrote: From: Jason Gunthorpe This converts one of the two users of mmu_notifiers to use the new API. The conversion is fairly straightforward, however the existing use of notifiers here seems to be racey. Cc: Mike Marciniszyn Cc: Dennis Dalessandro Sign

Re: [PATCH] drm/vboxvideo: Use drm_gem_fb_create_with_dirty instead of drm_gem_fb_create

2019-10-29 Thread Hans de Goede
Hi, On 28-10-2019 14:38, Thomas Zimmermann wrote: Am 28.10.19 um 14:31 schrieb Hans de Goede: Commit 7d79aa8628fe ("drm/vboxvideo: Replace struct vram_framebuffer with generic implemenation") removed the diy framebuffer code from the vboxvideo driver, resulting in a nice cleanup. But since th

[PATCH] drm/dp: Increase link status size

2019-10-29 Thread Thierry Reding
From: Thierry Reding The current link status contains bytes 0x202 through 0x207, but we also want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c) so that the post-cursor adjustment can be queried during link training. Reported-by: coverity-bot Addresses-Coverity-ID: 1487366 (

Re: [PATCH V5 4/6] mdev: introduce virtio device and its device ops

2019-10-29 Thread Jason Wang
On 2019/10/29 下午3:42, Zhu Lingshan wrote: >> >> +    void (*set_status)(struct mdev_device *mdev, u8 status); > > Hi Jason > > Is it possible to make set_status() return an u8 or bool, because this > may fail in real hardware. Without a returned code, I am not sure  > whether it is a good idea to

[PATCH 3/5] drm/amdgpu: use allowed_domains for exported DMA-bufs

2019-10-29 Thread Christian König
Avoid that we ping/pong the buffers when we stop to pin DMA-buf exports by using the allowed domains for exported buffers. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

[PATCH 4/5] drm/amdgpu: add amdgpu_dma_buf_pin/unpin

2019-10-29 Thread Christian König
This implements the exporter side of unpinned DMA-buf handling. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 55 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 ++ 2 files changed, 53 insertions(+), 7 deletions(-) diff --git a/drivers/

RFC: Unpinned DMA-buf handling

2019-10-29 Thread Christian König
The basic idea stayed the same since the last version of those patches. The exporter can provide explicit pin/unpin functions and the importer a move_notify callback. This allows us to avoid pinning buffers while importers have a mapping for them. In difference to the last version the locking c

[PATCH 2/5] drm/ttm: remove the backing store if no placement is given

2019-10-29 Thread Christian König
Pipeline removal of the BOs backing store when no placement is given during validation. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index d52fc16266ce

[PATCH 1/5] dma-buf: add dynamic DMA-buf handling v14

2019-10-29 Thread Christian König
On the exporter side we add optional explicit pinning callbacks. Which are called when the importer doesn't implement dynamic handling, move notification or need the DMA-buf locked in place for its use case. On the importer side we add an optional move_notify callback. This callback is used by the

[PATCH 5/5] drm/amdgpu: implement amdgpu_gem_prime_move_notify

2019-10-29 Thread Christian König
Implement the importer side of unpinned DMA-buf handling. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 28 - drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 + 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/

RE: [PATCH 4/4] drm/edid: Prep for HDMI VIC aspect ratio (WIP)

2019-10-29 Thread Lin, Wayne
> -Original Message- > From: Ville Syrjälä > Sent: Saturday, October 26, 2019 3:20 AM > To: Lin, Wayne > Cc: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org > Subject: Re: [PATCH 4/4] drm/edid: Prep for HDMI VIC aspect ratio (WIP) > > On Mon, Oct 21, 2019 at 06:28:18AM

Re: [PATCH] drm: amd: amdgpu: Remove NULL check not needed before freeing functions

2019-10-29 Thread Wang, Kevin(Yang)
Hi Saurav, the driver already has the same fix patch, you can pull the latest driver tree and check it again, thanks. >From 2032324682c1ca563e33c56e51d9ae17a2b38105 Mon Sep 17 00:00:00 2001 From: zhong jiang Date: Tue, 3 Sep 2019 14:15:05 +0800 Subject: [PATCH] drm/amdgpu: remove the redundant n

Re: [Intel-gfx] [PATCH RESEND 6/8] drm/print: convert debug category macros into an enum

2019-10-29 Thread Jani Nikula
On Tue, 29 Oct 2019, Joonas Lahtinen wrote: > Quoting Jani Nikula (2019-10-28 12:38:20) >> Mostly for improved documentation, convert the debug category macros >> into an enum. Drop unused DRM_UT_NONE. Document previously undocumented >> categories. >> >> Signed-off-by: Jani Nikula > > > >> +en

[radeon-alex:amd-mainline-dkms-5.0 3711/4200] drivers/gpu/drm/ttm/ttm_bo_vm.c:137:44: error: 'struct vm_fault' has no member named 'virtual_address'

2019-10-29 Thread kbuild test robot
Hi Flora, FYI, the error/warning still remains. tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.0 head: 52f70af32a6cef1ec5735145486d9154ab1248ac commit: 5165cd1453625e59650a1ed9b0f269b41529e421 [3711/4200] Revert "Revert "drm/amd/autoconf: Test whether vm_fault->{addr

Re: [Intel-gfx] [PATCH RESEND 6/8] drm/print: convert debug category macros into an enum

2019-10-29 Thread Joonas Lahtinen
Quoting Jani Nikula (2019-10-28 12:38:20) > Mostly for improved documentation, convert the debug category macros > into an enum. Drop unused DRM_UT_NONE. Document previously undocumented > categories. > > Signed-off-by: Jani Nikula > +enum drm_debug_category { > + /** > +* @DRM_U

Re: [PATCH v11 4/7] drm/sun4i: dsi: Handle bus clock explicitly

2019-10-29 Thread Maxime Ripard
On Tue, Oct 29, 2019 at 04:03:56AM +0530, Jagan Teki wrote: > > > explicit handling of common clock would require since the A64 > > > doesn't need to mention the clock-names explicitly in dts since it > > > support only one bus clock. > > > > > > Also pass clk_id NULL instead "bus" to regmap clock

Re: Proposal to report GPU private memory allocations with sysfs nodes [plain text version]

2019-10-29 Thread Pekka Paalanen
On Mon, 28 Oct 2019 11:33:57 -0700 Yiwei Zhang wrote: > On Mon, Oct 28, 2019 at 8:26 AM Jerome Glisse wrote: > > > On Fri, Oct 25, 2019 at 11:35:32AM -0700, Yiwei Zhang wrote: > > > Hi folks, > > > > > > This is the plain text version of the previous email in case that was > > > considered as

[Bug 111011] [CI][BAT][VEGA M]: igt@kms_addfb_basic@* - warn/fail - Failed assertion: __gem_set_tiling(fd, handle, tiling, stride) == 0

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111011 --- Comment #3 from Arek Hiler --- Moving to IGT -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.free

[Bug 111011] [CI][BAT][VEGA M]: igt@kms_addfb_basic@* - warn/fail - Failed assertion: __gem_set_tiling(fd, handle, tiling, stride) == 0

2019-10-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111011 Arek Hiler changed: What|Removed |Added Assignee|intel-gfx-bugs@lists.freede |dri-devel@lists.freedesktop

[radeon-alex:amd-mainline-dkms-5.0 2219/4200] configure: error: in `drivers/gpu/drm/ttm/dkms':

2019-10-29 Thread kbuild test robot
Hi Flora, FYI, the error/warning still remains. tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.0 head: 52f70af32a6cef1ec5735145486d9154ab1248ac commit: fbb2398b29e0de236e9ee3ad48385095ebcb2a84 [2219/4200] drm/amd/autoconf: fix in-build error for O=... config: ia64-al

Re: [PATCH v2] kernel-doc: rename the kernel-doc directive 'functions' to 'identifiers'

2019-10-29 Thread Jonathan Corbet
On Tue, 29 Oct 2019 08:31:22 +0800 Changbin Du wrote: > Here python is different from C. Both empty string and None are False in > python. > Note such condition is common in python. Treating both as a False value is reasonably common. Treating them elsewhere in the same code block as separate

Re: [PATCH v2 13/15] drm/amdgpu: Use mmu_range_insert instead of hmm_mirror

2019-10-29 Thread Koenig, Christian
Am 28.10.19 um 21:10 schrieb Jason Gunthorpe: > From: Jason Gunthorpe > > Remove the interval tree in the driver and rely on the tree maintained by > the mmu_notifier for delivering mmu_notifier invalidation callbacks. > > For some reason amdgpu has a very complicated arrangement where it tries >

Re: [PATCH] drm: sun4i: Add support for suspending the display driver

2019-10-29 Thread Maxime Ripard
Hi, On Mon, Oct 28, 2019 at 10:43:13PM +0100, Ondrej Jirman wrote: > Shut down the display engine during suspend. > > Signed-off-by: Ondrej Jirman > --- > drivers/gpu/drm/sun4i/sun4i_drv.c | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/drivers/gpu/drm/sun4i/sun4

Re: [PATCH v2 12/15] drm/amdgpu: Call find_vma under mmap_sem

2019-10-29 Thread Koenig, Christian
Am 28.10.19 um 21:10 schrieb Jason Gunthorpe: > From: Jason Gunthorpe > > find_vma() must be called under the mmap_sem, reorganize this code to > do the vma check after entering the lock. > > Further, fix the unlocked use of struct task_struct's mm, instead use > the mm from hmm_mirror which has a

Re: [PATCH v2 07/15] drm/radeon: use mmu_range_notifier_insert

2019-10-29 Thread Koenig, Christian
Am 28.10.19 um 21:10 schrieb Jason Gunthorpe: > From: Jason Gunthorpe > > The new API is an exact match for the needs of radeon. > > For some reason radeon tries to remove overlapping ranges from the > interval tree, but interval trees (and mmu_range_notifier_insert) > support overlapping ranges d

[PATCH 0/2] Remove drm_fb_helper_fbdev_{setup,teardown}()

2019-10-29 Thread Thomas Zimmermann
Both functions are unused. Update TODO item and remove them. Thomas Zimmermann (2): drm/todo: Convert drivers to generic fbdev emulation drm/fb-helper: Remove drm_fb_helper_fbdev_{setup,teardown}() Documentation/gpu/todo.rst | 15 ++--- drivers/gpu/drm/drm_fb_helper.c | 109 +--

[PATCH 1/2] drm/todo: Convert drivers to generic fbdev emulation

2019-10-29 Thread Thomas Zimmermann
This replaces the orignal TODO item for drm_fb_helper_fbdev_setup() and _teardown(), which are deprecated. Signed-off-by: Thomas Zimmermann --- Documentation/gpu/todo.rst | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Documentation/gpu/todo.rst b/Documentatio

[PATCH 2/2] drm/fb-helper: Remove drm_fb_helper_fbdev_{setup, teardown}()

2019-10-29 Thread Thomas Zimmermann
Both functions are unused and can be removed. Drivers should use drm_fbdev_generic_setup() instead. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 109 +--- include/drm/drm_fb_helper.h | 25 2 files changed, 1 insertion(+), 133 de