Re: [PATCHv3/RFC 4/4] drm/rockchip: Add support for afbc

2019-11-22 Thread Ezequiel Garcia
Hello Andrzej, Thanks a lot for the patch. Reviewed-by: Ezequiel Garcia On Thu, 2019-11-21 at 18:22 +0100, 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 >

Re: [PATCHv3/RFC 1/4] drm/arm: Factor out generic afbc helpers

2019-11-22 Thread Ezequiel Garcia
Hi Andrzej, Thanks for the series. It's certainly going well. Please see some minor comments below. On Thu, 2019-11-21 at 18:22 +0100, Andrzej Pietrasiewicz wrote: > These are useful for other users of afbc, e.g. rockchip. > > Signed-off-by: Andrzej Pietrasiewicz > --- >

Re: [RFC 06/13] drm/i915/svm: Page table mirroring support

2019-11-22 Thread Niranjan Vishwanathapura
On Fri, Nov 22, 2019 at 11:33:12PM +, Jason Gunthorpe wrote: On Fri, Nov 22, 2019 at 12:57:27PM -0800, Niranjana Vishwanathapura wrote: +static inline bool +i915_range_done(struct hmm_range *range) +{ + bool ret = hmm_range_valid(range); + + hmm_range_unregister(range); +

[Bug 108514] heavy screen flickering with Mobility Radeon X1600 and kernel version 3.15rc2 onward

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108514 --- Comment #37 from Kati K --- thank you for your tip, we can face a problem. Can I use free this -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

[Bug 108514] heavy screen flickering with Mobility Radeon X1600 and kernel version 3.15rc2 onward

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108514 Kati K changed: What|Removed |Added URL||https://statuslife.in/ -- You are receiving

Re: [PATCH v3 02/14] mm/mmu_notifier: add an interval tree notifier

2019-11-22 Thread Ralph Campbell
On 11/13/19 8:46 AM, Jason Gunthorpe wrote: On Wed, Nov 13, 2019 at 05:59:52AM -0800, Christoph Hellwig wrote: +int mmu_interval_notifier_insert(struct mmu_interval_notifier *mni, + struct mm_struct *mm, unsigned long start, +

Re: [PATCH v3] msm:disp:dpu1: add support for display for SC7180 target

2019-11-22 Thread Rob Herring
On Wed, Nov 20, 2019 at 05:49:28PM +0530, Kalyan Thota wrote: > Add display hw catalog changes for SC7180 target. > > Changes in v1: > - Configure register offsets and capabilities for the >display hw blocks. > > Changes in v2: > - mdss_irq data type has changed in the dependent >

Re: [PATCH v3 4/4] dt-bindings: display: add IMX MIPI DSI host controller doc

2019-11-22 Thread Rob Herring
On Mon, Nov 18, 2019 at 05:25:18PM +0200, Adrian Ratiu wrote: > Signed-off-by: Sjoerd Simons > Signed-off-by: Martyn Welch > Signed-off-by: Adrian Ratiu > --- > .../bindings/display/imx/mipi-dsi.txt | 56 +++ > 1 file changed, 56 insertions(+) > create mode 100644

Re: [PATCH v4 3/4] dt-bindings: Add binding for IT6505.

2019-11-22 Thread Rob Herring
On Fri, Nov 15, 2019 at 05:52:19PM +0800, allen wrote: > From: Allen Chen > > Add a DT binding documentation for IT6505. > > Signed-off-by: Allen Chen > Signed-off-by: Pi-Hsun Shih > --- > .../bindings/display/bridge/ite,it6505.txt | 28 > ++ > 1 file changed, 28

[Bug 110730] [CI][RESUME] igt@kms_chamelium@hdmi-crc-single - crash - Received signal SIGSEGV.

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110730 --- Comment #10 from CI Bug Log --- The CI Bug Log issue associated to this bug has been archived. New failures matching the above filters will not be associated to this bug anymore. -- You are receiving this mail because: You are the

[Bug 110730] [CI][RESUME] igt@kms_chamelium@hdmi-crc-single - crash - Received signal SIGSEGV.

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110730 swathi.dhanavant...@intel.com changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #9

[PATCH v2 7/8] drm/msm/a6xx: Support split pagetables

2019-11-22 Thread Jordan Crouse
Attempt to enable split pagetables if the arm-smmu driver supports it. This will move the default address space from the default region to the address range assigned to TTBR1. The behavior should be transparent to the driver for now but it gets the default buffers out of the way when we want to

[PATCH v2 6/8] drm/msm: Refactor address space initialization

2019-11-22 Thread Jordan Crouse
Refactor how address space initialization works. Instead of having the address space function create the MMU object (and thus require separate but equal functions for gpummu and iommu) use a single function and pass the MMU struct in. Make the generic code cleaner by using target specific

[PATCH v2 5/8] drm/msm: Attach the IOMMU device during initialization

2019-11-22 Thread Jordan Crouse
Everywhere an IOMMU object is created by msm_gpu_create_address_space the IOMMU device is attached immediately after. Instead of carrying around the infrastructure to do the attach from the device specific code do it directly in the msm_iommu_init() function. This gets it out of the way for more

[PATCH v2 0/8] iommu/arm-smmu: Split pagetable support for Adreno GPUs

2019-11-22 Thread Jordan Crouse
Another refresh to support split pagetables for Adreno GPUs as part of an incremental process to enable per-context pagetables. In order to support per-context pagetables the GPU needs to enable split tables so that we can store global buffers in the TTBR1 space leaving the GPU free to program

[PATCH 5/5] drm/i915: Force DPCD backlight mode on X1 Extreme 2nd Gen 4K AMOLED panel

2019-11-22 Thread Lyude Paul
Annoyingly, the VBT on the ThinkPad X1 Extreme 2nd Gen indicates that the system uses plain PWM based backlight controls, when in reality the only backlight controls that work are the standard VESA eDP DPCD backlight controls. Honestly, this makes me wonder how many other systems have these

[PATCH 1/5] drm/i915: Fix eDP DPCD aux max backlight calculations

2019-11-22 Thread Lyude Paul
Max backlight value for the panel was being calculated using byte count i.e. 0x if 2 bytes are supported for backlight brightness and 0xff if 1 byte is supported. However, EDP_PWMGEN_BIT_COUNT determines the number of active control bits used for the brightness setting. Thus, even if the panel

[PATCH 4/5] drm/i915: Auto detect DPCD backlight support by default

2019-11-22 Thread Lyude Paul
Turns out we actually already have some companies, such as Lenovo, shipping machines with AMOLED screens that don't allow controlling the backlight through the usual PWM interface and only allow controlling it through the standard EDP DPCD interface. One example of one of these laptops is the X1

[PATCH 3/5] drm/i915: Fix DPCD register order in intel_dp_aux_enable_backlight()

2019-11-22 Thread Lyude Paul
For eDP panels, it appears it's expected that so long as the panel is in DPCD control mode that the brightness value is never set to 0. Instead, if the desired effect is to set the panel's backlight to 0 we're expected to simply turn off the backlight through the DP_EDP_DISPLAY_CONTROL_REGISTER.

[PATCH 2/5] drm/i915: Assume 100% brightness when not in DPCD control mode

2019-11-22 Thread Lyude Paul
Currently we always determine the initial panel brightness level by simply reading the value from DP_EDP_BACKLIGHT_BRIGHTNESS_MSB/LSB. This seems wrong though, because if the panel is not currently in DPCD control mode there's not really any reason why there would be any brightness value

[PATCH 0/5] drm/i915: eDP DPCD aux backlight fixes

2019-11-22 Thread Lyude Paul
I recently got a ThinkPad X1 Extreme 2nd Generation for fixing some issues on, and noticed that out of the box the backlight doesn't work. Along the way of fixing that, I found a few issues with how i915 handles DPCD AUX backlight control and fixed them. Now I've got working backlight controls,

[PATCH] drm/radeon: remove redundant assignment to variable ret

2019-11-22 Thread Colin King
From: Colin Ian King The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/gpu/drm/radeon/si_dpm.c

[PATCH] drm/amd/powerplay: remove redundant assignment to variables HiSidd and LoSidd

2019-11-22 Thread Colin King
From: Colin Ian King The variables HiSidd and LoSidd are being initialized with values that are never read and are being updated a little later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[RFC 04/13] drm/i915/svm: Implicitly migrate BOs upon CPU access

2019-11-22 Thread Niranjana Vishwanathapura
From: Venkata Sandeep Dhanalakota As PCIe is non-coherent link, do not allow direct access to buffer objects across the PCIe link for SVM case. Upon CPU accesses (mmap, pread), migrate buffer object to host memory. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Cc:

[RFC 05/13] drm/i915/svm: Page table update support for SVM

2019-11-22 Thread Niranjana Vishwanathapura
For Shared Virtual Memory (SVM) system (SYS) allocator, there is no backing buffer object (BO). Add support to bind a VA to PA mapping in the device page table. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura ---

[RFC 09/13] drm/i915/svm: Page copy support during migration

2019-11-22 Thread Niranjana Vishwanathapura
Copy the pages duing SVM migration using memcpy(). Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura --- drivers/gpu/drm/i915/i915_svm_devmem.c | 72 ++ 1 file changed, 72 insertions(+) diff --git

[RFC 07/13] drm/i915/svm: Device memory support

2019-11-22 Thread Niranjana Vishwanathapura
Plugin device memory through HMM as DEVICE_PRIVATE. Add support functions to allocate pages and free pages from device memory. Implement ioctl to migrate pages from host to device memory. For now, only support migrating pages from host memory to device memory. Cc: Joonas Lahtinen Cc: Jon

[RFC 12/13] drm/i915/svm: Add support to en/disable SVM

2019-11-22 Thread Niranjana Vishwanathapura
Add SVM as a capability and allow user to enable/disable SVM functionality on a per context basis. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Venkata Sandeep Dhanalakota ---

[RFC 11/13] drm/i915/svm: Use blitter copy for migration

2019-11-22 Thread Niranjana Vishwanathapura
Use blitter engine to copy pages during migration. As blitter context virtual address space is shared with other flows, ensure virtual address are allocated properly from that address space. Also ensure completion of blitter copy by waiting on the fence of the issued request. Cc: Joonas Lahtinen

[RFC 00/13] drm/i915/svm: Add SVM support

2019-11-22 Thread Niranjana Vishwanathapura
Shared Virtual Memory (SVM) allows the programmer to use a single virtual address space which will be shared between threads executing on CPUs and GPUs. It abstracts away from the user the location of the backing memory, and hence simplifies the user programming model. SVM supports two types of

[RFC 08/13] drm/i915/svm: Implicitly migrate pages upon CPU fault

2019-11-22 Thread Niranjana Vishwanathapura
As PCIe is non-coherent link, do not allow direct memory access across PCIe link. Handle CPU fault by migrating pages back to host memory. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura ---

[RFC 06/13] drm/i915/svm: Page table mirroring support

2019-11-22 Thread Niranjana Vishwanathapura
Use HMM page table mirroring support to build device page table. Implement the bind ioctl and bind the process address range in the specified context's ppgtt. Handle invalidation notifications by unbinding the address range. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep

[RFC 02/13] drm/i915/svm: Define SVM UAPI

2019-11-22 Thread Niranjana Vishwanathapura
Define UAPI for Shared Virtual Memory (SVM) fucntionality including SVM capability and configurability. When there is no GPU page fault support available, add ioctls to explicitly bind and migrate virtual address ranges. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt

[RFC 01/13] drm/i915/svm: Add SVM documentation

2019-11-22 Thread Niranjana Vishwanathapura
Add Shared Virtual Memory (SVM) support information. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura --- Documentation/gpu/i915.rst | 29 + 1 file changed, 29 insertions(+) diff --git

[RFC 13/13] drm/i915/svm: Add page table dump support

2019-11-22 Thread Niranjana Vishwanathapura
Add support to dump page table for debug purpose. Here is an example dump. Format is, [] : Page Table dump start 0x0 len 0x [0x0fe] 0x7f000: 0x6b0003 [0x1e6] 0x7f798: 0x6c0003 [0x16d] 0x7f79ada00: 0x5f0003

[RFC 10/13] drm/i915/svm: Add functions to blitter copy SVM buffers

2019-11-22 Thread Niranjana Vishwanathapura
Add support function to blitter copy SVM VAs without requiring any gem objects. Also add function to wait for completion of the copy. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura --- drivers/gpu/drm/i915/Makefile

[RFC 03/13] drm/i915/svm: Runtime (RT) allocator support

2019-11-22 Thread Niranjana Vishwanathapura
Shared Virtual Memory (SVM) runtime allocator support allows binding a shared virtual address to a buffer object (BO) in the device page table through an ioctl call. Cc: Joonas Lahtinen Cc: Jon Bloomfield Cc: Daniel Vetter Cc: Sudeep Dutt Signed-off-by: Niranjana Vishwanathapura ---

[pull] radeon, amdgpu drm-next-5.5

2019-11-22 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.5. The following changes since commit 17eee668b3cad423a47c090fe2275733c55db910: Merge tag 'drm-misc-next-fixes-2019-11-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-next (2019-11-21 10:19:45 +1000) are available in the Git repository at:

Re: [RFC 06/13] drm/i915/svm: Page table mirroring support

2019-11-22 Thread Niranjan Vishwanathapura
On Fri, Nov 22, 2019 at 08:14:51PM +, Jason Gunthorpe wrote: On Fri, Nov 22, 2019 at 12:01:17PM -0800, Niranjan Vishwanathapura wrote: On Fri, Nov 22, 2019 at 11:54:45AM -0800, Niranjana Vishwanathapura wrote: > Use HMM page table mirroring support to build device page table. > Implement

Re: [RFC 06/13] drm/i915/svm: Page table mirroring support

2019-11-22 Thread Niranjan Vishwanathapura
On Fri, Nov 22, 2019 at 11:54:45AM -0800, Niranjana Vishwanathapura wrote: Use HMM page table mirroring support to build device page table. Implement the bind ioctl and bind the process address range in the specified context's ppgtt. Handle invalidation notifications by unbinding the address

[Bug 109294] [CI][SHARDS] igt@prime_vgem@basic-fence-flip - skip - Test requirement: (crtc_id = set_fb_on_crtc(i915, 0, [0], fb_id[0])), SKIP

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109294 --- Comment #11 from CI Bug Log --- The CI Bug Log issue associated to this bug has been archived. New failures matching the above filters will not be associated to this bug anymore. -- You are receiving this mail because: You are the

[Bug 109294] [CI][SHARDS] igt@prime_vgem@basic-fence-flip - skip - Test requirement: (crtc_id = set_fb_on_crtc(i915, 0, [0], fb_id[0])), SKIP

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109294 swathi.dhanavant...@intel.com changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #10

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

2019-11-22 Thread Jagan Teki
Hi, On Fri, Nov 22, 2019 at 11:48 PM Maxime Ripard wrote: > > Hi, > > On Thu, Nov 21, 2019 at 05:24:47PM +0530, Jagan Teki wrote: > > On Sun, Nov 3, 2019 at 11:02 PM Maxime Ripard wrote: > > > > > > On Fri, Nov 01, 2019 at 07:42:55PM +0530, Jagan Teki wrote: > > > > Hi Maxime, > > > > > > > >

[PATCH AUTOSEL 4.19 13/25] drm/sun4i: tcon: Set min division of TCON0_DCLK to 1.

2019-11-22 Thread Sasha Levin
From: Yunhao Tian [ Upstream commit 0b8e7bbde5e7e2c419567e1ee29587dae3b78ee3 ] The datasheet of V3s (and various other chips) wrote that TCON0_DCLK_DIV can be >= 1 if only dclk is used, and must >= 6 if dclk1 or dclk2 is used. As currently neither dclk1 nor dclk2 is used (no writes to these

Re: [PATCH] drm/i915: opregion: set opregion chpd value to indicate the driver handles hotplug

2019-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2019 at 08:04:39PM +0100, Hans de Goede wrote: > According to both the old acpi_igd_opregion_spec_0.pdf and the newer > skl_opregion_rev0p5.pdf opregion specification documents, if a driver > handles hotplug events itself, it should set the opregion CHPD field to > 1 to indicate

[PATCH] MAINTAINERS: Drop Rex Zhu for amdgpu powerplay

2019-11-22 Thread Alex Deucher
No longer works on the driver. Signed-off-by: Alex Deucher --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b63c291ad029..d518588b9879 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -856,7 +856,6 @@ S: Maintained F:

[PATCH] drm/i915: opregion: set opregion chpd value to indicate the driver handles hotplug

2019-11-22 Thread Hans de Goede
According to both the old acpi_igd_opregion_spec_0.pdf and the newer skl_opregion_rev0p5.pdf opregion specification documents, if a driver handles hotplug events itself, it should set the opregion CHPD field to 1 to indicate this and the firmware should respond to this by no longer sending ACPI

[PATCH v2] drm/dsc: Return unsigned long on compute offset

2019-11-22 Thread mikita.lipski
From: Mikita Lipski We shouldn't compare int with unsigned long to find the max value and since we are not expecting negative value returned from compute_offset we should make this function return unsigned long so we can compare the values when computing rc parameters. v2: Modified function

Re: [Intel-gfx] [PATCH 3/7] drm: Extract page_flip_{internal, atomic}()

2019-11-22 Thread Ville Syrjälä
On Tue, Nov 19, 2019 at 11:14:43AM +0100, Daniel Vetter wrote: > On Fri, Nov 15, 2019 at 09:42:00PM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Yank out the code for the plane->fb/old_fb/crtc handling from > > the page flip path into page_flip_internal(), and provide a > >

Re: [PATCH 0/2] drm/amd: Use ARRAY_SIZE

2019-11-22 Thread Alex Deucher
Applied the series. Thanks! Alex On Fri, Nov 22, 2019 at 4:01 AM zhengbin wrote: > > zhengbin (2): > drm/amd/powerplay: Use ARRAY_SIZE for smu7_profiling > drm/amdgpu: Use ARRAY_SIZE for sos_old_versions > > drivers/gpu/drm/amd/amdgpu/psp_v3_1.c| 2 +- >

Re: [PATCH v2 2/2] drm: share address space for dma bufs

2019-11-22 Thread Alex Deucher
On Fri, Nov 22, 2019 at 4:17 AM Daniel Vetter wrote: > > On Fri, Nov 22, 2019 at 7:37 AM Gerd Hoffmann wrote: > > > > Use the shared address space of the drm device (see drm_open() in > > drm_file.c) for dma-bufs too. That removes a difference betweem drm > > device mmap vmas and dma-buf mmap

[PATCH v2 4/4] drm/selftests: Add drm_rect selftests

2019-11-22 Thread Ville Syrjala
From: Ville Syrjälä Add selftests for drm_rect. A few basic ones for clipped and unclipped cases, and a few special ones for specific bugs we had in the code. I'm too lazy to think of more corner cases to check at this time. Maybe later. Signed-off-by: Ville Syrjälä ---

[PATCH v2 2/4] drm/rect: Keep the scaled clip bounded

2019-11-22 Thread Ville Syrjala
From: Ville Syrjälä Limit the scaled clip to only clip at most dst_w/h pixels. This avoids the problem with clip_scaled() not being able to return negative values. Since new_src_w/h is now properly bounded we can remove the clamp()s. Cc: Benjamin Gaignard Cc: Maarten Lankhorst Cc: Daniel

[PATCH v2 3/4] drm/rect: Keep the clipped dst rectangle in place

2019-11-22 Thread Ville Syrjala
From: Ville Syrjälä Now that we've constrained the clipped source rectangle such that it can't have negative dimensions doing the same for the dst rectangle seems appropriate. Should at least result in the clipped src and dst rectangles being a bit more consistent with each other. Cc: Benjamin

[PATCH v2 0/4] drm/rect: Bugfixes and selftests

2019-11-22 Thread Ville Syrjala
From: Ville Syrjälä My earlier fixes for drm_rect + div-by-zero fix + some selftests that Daniel requested. Cc: Maarten Lankhorst Cc: Benjamin Gaignard Cc: Daniel Vetter Ville Syrjälä (4): drm/rect: Avoid division by zero drm/rect: Keep the scaled clip bounded drm/rect: Keep the

[PATCH v2 1/4] drm/rect: Avoid division by zero

2019-11-22 Thread Ville Syrjala
From: Ville Syrjälä Check for zero width/height destination rectangle in drm_rect_clip_scaled() to avoid a division by zero. Cc: sta...@vger.kernel.org Fixes: f96bdf564f3e ("drm/rect: Handle rounding errors in drm_rect_clip_scaled, v3.") Cc: Maarten Lankhorst Cc: Benjamin Gaignard Cc: Daniel

Re: [git pull] drm fixes for 5.4

2019-11-22 Thread pr-tracker-bot
The pull request you sent on Fri, 22 Nov 2019 10:43:28 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2019-11-22 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5d867ab037e58da3356b95bd1a7cb8efe3501958 Thank you! -- Deet-doot-dot, I am a bot.

Re: [Intel-gfx] [PATCH 2/2] drm/rect: Keep the clipped dst rectangle in place

2019-11-22 Thread Ville Syrjälä
On Wed, Nov 20, 2019 at 07:11:38PM +0200, Ville Syrjälä wrote: > On Wed, Nov 20, 2019 at 05:43:40PM +0100, Daniel Vetter wrote: > > On Wed, Nov 20, 2019 at 06:25:12PM +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Now that we've constrained the clipped source rectangle such >

Re: [PATCH 3/8] drm/mediatek: don't open-code drm_gem_fb_create

2019-11-22 Thread Daniel Vetter
On Fri, Nov 22, 2019 at 03:42:39PM +0800, CK Hu wrote: > Hi, Daniel: > > On Fri, 2019-11-15 at 10:21 +0100, Daniel Vetter wrote: > > Aside: There's a few other fb_create implementations which > > simply check for valid buffer format (or an approximation thereof), > > and then call

Re: [PATCH v2 1/2] drm: call drm_gem_object_funcs.mmap with fake offset

2019-11-22 Thread Rob Herring
On Fri, Nov 22, 2019 at 12:37 AM Gerd Hoffmann wrote: > > The fake offset is going to stay, so change the calling convention for > drm_gem_object_funcs.mmap to include the fake offset. Update all users > accordingly. > > Note that this reverts 83b8a6f242ea ("drm/gem: Fix mmap fake offset >

[PULL] drm-intel-next-fixes

2019-11-22 Thread Joonas Lahtinen
Hi Dave & Daniel, A quick fixup amendment to the previous PR. gem_exec_reloc/basic-range got broken in CI, so we've issued a patch revert the offending commit for now. Once the results for CI_DINF_163 appear here, and the timeouts seen in last three CI_DINF_ are green, feel free to pull this:

[PATCH] drm/tegra: vic: Export module device table

2019-11-22 Thread Thierry Reding
From: Thierry Reding Export the module device table to ensure the VIC compatible strings are listed in the module's aliases table. This in turn causes the driver to be automatically loaded on boot if VIC is the only enabled subdevice of the logical host1x DRM device. Signed-off-by: Thierry

[drm-intel:topic/core-for-CI 20/20] drivers/pci/Kconfig:16:error: recursive dependency detected!

2019-11-22 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/core-for-CI head: 33c006e813c3896741927f86bf30c8b647c9b366 commit: 33c006e813c3896741927f86bf30c8b647c9b366 [20/20] Revert "drm/i915: Don't select BROKEN" config: alpha-defconfig compiler: alpha-linux-gcc (GCC) 7.4.0 reproduce: wget

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Rafael J. Wysocki
On Fri, Nov 22, 2019 at 12:52 PM Mika Westerberg wrote: > [cut] [I'm really running out of time for today, unfortunately.] > > > > The current design is mostly based on the PCI PM Spec 1.2, so it would > > > > be consequent to follow system-wide suspend in PM-runtime and avoid > > > > putting

Re: [PULL] drm-intel-next-fixes

2019-11-22 Thread Joonas Lahtinen
Quoting Joonas Lahtinen (2019-11-20 22:40:35) > Hi Dave & Daniel, > > NOTE: CI shard results are delayed, bu I'm sending this > already because I'll travel tomorrow. I'll let you know > if the results look OK or not. Or you can look up > CI_DINF_162 results check at: > >

Re: [PATCH 2/2] drm/mcde: Do not needlessly logically and with 3

2019-11-22 Thread Stephan Gerhold
On Fri, Nov 22, 2019 at 08:25:08AM +0100, Linus Walleij wrote: > The i index i always 0..3 in these statements so there > is no need to tag "& 3" to clamp it to 3 here. Make > the operator precedence explicit even if it's correct > as it is, the paranthesis creates less cognitive stress > for

Next round of associating ddc adapters with connectors

2019-11-22 Thread Andrzej Pietrasiewicz
Dear Maintainers, Can you please express your opinion on these patches: [tegra] https://patchwork.freedesktop.org/patch/327099/?series=65831=1 [vc4] https://patchwork.freedesktop.org/patch/327102/?series=65831=1 [zte] https://patchwork.freedesktop.org/patch/327106/?series=65831=1 [zte]

[Bug 110605] "*ERROR* Waiting for fences timed out." happens every time when I select "Story" in the main game menu RE2.

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110605 Andre Klapper changed: What|Removed |Added URL|https://theshopolics.com/ | Alias|NAGENDRA

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Rafael J. Wysocki
On Fri, Nov 22, 2019 at 12:34 PM Karol Herbst wrote: > > On Fri, Nov 22, 2019 at 12:30 PM Rafael J. Wysocki wrote: > > [cut] > > > > the issue is not AML related at all as I am able to reproduce this > issue without having to invoke any of that at all, I just need to poke > into the PCI

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Mika Westerberg
On Fri, Nov 22, 2019 at 12:30:20PM +0100, Rafael J. Wysocki wrote: > On Fri, Nov 22, 2019 at 11:36 AM Mika Westerberg > wrote: > > > > On Thu, Nov 21, 2019 at 11:39:23PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Nov 21, 2019 at 8:49 PM Mika Westerberg > > > wrote: > > > > > > > > On Thu, Nov

Re: [PATCH 1/2] drm/mcde: Reuse global DSI command defs

2019-11-22 Thread Stephan Gerhold
On Fri, Nov 22, 2019 at 08:24:57AM +0100, Linus Walleij wrote: > The MCDE DSI include file redefines some commands that > already exist in the common header. > > Cc: Stephan Gerhold > Signed-off-by: Linus Walleij Reviewed-by: Stephan Gerhold > --- > drivers/gpu/drm/mcde/mcde_dsi.c |

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Karol Herbst
On Fri, Nov 22, 2019 at 12:30 PM Rafael J. Wysocki wrote: > > On Fri, Nov 22, 2019 at 11:36 AM Mika Westerberg > wrote: > > > > On Thu, Nov 21, 2019 at 11:39:23PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Nov 21, 2019 at 8:49 PM Mika Westerberg > > > wrote: > > > > > > > > On Thu, Nov 21,

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Karol Herbst
On Fri, Nov 22, 2019 at 10:07 AM Rafael J. Wysocki wrote: > > On Fri, Nov 22, 2019 at 1:13 AM Karol Herbst wrote: > > > > so while trying to test with d3cold disabled, I noticed that I run > > into the exact same error. > > Does this mean that you disabled d3cold on the GPU via sysfs (the >

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Rafael J. Wysocki
On Fri, Nov 22, 2019 at 11:36 AM Mika Westerberg wrote: > > On Thu, Nov 21, 2019 at 11:39:23PM +0100, Rafael J. Wysocki wrote: > > On Thu, Nov 21, 2019 at 8:49 PM Mika Westerberg > > wrote: > > > > > > On Thu, Nov 21, 2019 at 04:43:24PM +0100, Rafael J. Wysocki wrote: > > > > On Thu, Nov 21,

Re: [PATCH v7 02/24] mm/gup: factor out duplicate code from four routines

2019-11-22 Thread Jan Kara
On Thu 21-11-19 18:54:02, John Hubbard wrote: > On 11/21/19 1:54 AM, Jan Kara wrote: > > On Thu 21-11-19 00:29:59, John Hubbard wrote: > > > > > > > > Otherwise this looks fine and might be a worthwhile cleanup to feed > > > > Andrew for 5.5 independent of the gut of the changes. > > > > > > > >

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Mika Westerberg
On Thu, Nov 21, 2019 at 11:39:23PM +0100, Rafael J. Wysocki wrote: > On Thu, Nov 21, 2019 at 8:49 PM Mika Westerberg > wrote: > > > > On Thu, Nov 21, 2019 at 04:43:24PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Nov 21, 2019 at 1:52 PM Mika Westerberg > > > wrote: > > > > > > > > On Thu, Nov

[PATCH 5/6] drm/gma500: Store framebuffer in struct drm_fb_helper

2019-11-22 Thread Thomas Zimmermann
The gma500 driver stores the console framebuffer in struct psb_fbdev. Moving it into struct drm_fb_helper will allow for removal of struct psb_fbdev. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/accel_2d.c| 5 +++-- drivers/gpu/drm/gma500/framebuffer.c | 16 ++--

[PATCH 4/6] drm/gma500: Pass struct drm_gem_object to framebuffer functions

2019-11-22 Thread Thomas Zimmermann
Several framebuffer functions take a pointer to an object of type struct gtt_range when they actually need the GEM base object. Passing the GEM object removes some type casting and clutter. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/framebuffer.c | 14 ++ 1 file

[PATCH 3/6] drm/gma500: Replace struct psb_framebuffer with struct drm_framebuffer

2019-11-22 Thread Thomas Zimmermann
After removing all unnecessary fields, struct psb_framebuffer is just a wrapper around struct drm_framebuffer. So we can replace the former with the latter. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/accel_2d.c| 6 ++-- drivers/gpu/drm/gma500/framebuffer.c | 48

[PATCH 6/6] drm/gma500: Remove struct psb_fbdev

2019-11-22 Thread Thomas Zimmermann
Gma500's struct psb_fbdev is an, otherwise empty, wrapper around struct drm_fb_helper. Remove it. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/accel_2d.c| 10 ++-- drivers/gpu/drm/gma500/framebuffer.c | 70 ++-- drivers/gpu/drm/gma500/framebuffer.h |

[PATCH 1/6] drm/gma500: Remove addr_space field from psb_framebuffer

2019-11-22 Thread Thomas Zimmermann
The field 'addr_space' in struct psb_framebuffer serves no purpose. Remove it. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/framebuffer.c | 2 -- drivers/gpu/drm/gma500/framebuffer.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.c

[PATCH 2/6] drm/gma500: Remove field 'fbdev' from struct psb_framebuffer

2019-11-22 Thread Thomas Zimmermann
The field 'fbdev' in struct psb_framebuffer serves no purpose. Remove it. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/framebuffer.c | 1 - drivers/gpu/drm/gma500/framebuffer.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.c

[PATCH 0/6] drm/gma500: Cleanup framebuffer and fbdev

2019-11-22 Thread Thomas Zimmermann
These patches remove struct psb_framebuffer and struct psb_fbdev from gma500. Both are replaced by their equivalents from the DRM helpers. The patchset has been tested by running the fbdev console, X11 and Weston on an Atom Z520 with Poulsbo graphics chip. Thomas Zimmermann (6): drm/gma500:

Re: [PATCH v5] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Rafael J. Wysocki
On Fri, Nov 22, 2019 at 1:22 AM Karol Herbst wrote: > > Fixes state transitions of Nvidia Pascal GPUs from D3cold into higher device > states. > > v2: convert to pci_dev quirk > put a proper technical explanation of the issue as a in-code comment > v3: disable it only for certain combinations

[drm-intel:topic/core-for-CI 20/20] init/Kconfig:76: symbol BROKEN is selected by DRM_I915_DEBUG

2019-11-22 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/core-for-CI head: 33c006e813c3896741927f86bf30c8b647c9b366 commit: 33c006e813c3896741927f86bf30c8b647c9b366 [20/20] Revert "drm/i915: Don't select BROKEN" config: powerpc-taishan_defconfig compiler: powerpc-linux-gcc (GCC) 7.4.0 reproduce:

[Bug 97055] Black screens on A10-8780P (Carrizo) + R7 M260/M265 (Topaz) Combo

2019-11-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97055 --- Comment #27 from jennyaly --- I'm not going to try and have a go at suspending until I can at any rate dependably boot. Suspending consistently brings its very own arrangement of issues, and has never worked 100% dependably for me. Also,

Re: [PATCH v2 2/2] drm: share address space for dma bufs

2019-11-22 Thread Daniel Vetter
On Fri, Nov 22, 2019 at 7:37 AM Gerd Hoffmann wrote: > > Use the shared address space of the drm device (see drm_open() in > drm_file.c) for dma-bufs too. That removes a difference betweem drm > device mmap vmas and dma-buf mmap vmas and fixes corner cases like > dropping ptes (using

Re: [PATCH 7/8] drm/hibmc: Use drm_gem_fb_create

2019-11-22 Thread Daniel Vetter
On Fri, Nov 22, 2019 at 9:16 AM Thomas Zimmermann wrote: > > Hi > > Am 15.11.19 um 10:21 schrieb Daniel Vetter: > > Again we could delete a lot more if we'd switch over to the generic > > fbdev stuff. > > > > Signed-off-by: Daniel Vetter > > There's one comment below. Except for that, > >

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-11-22 Thread Rafael J. Wysocki
On Fri, Nov 22, 2019 at 1:13 AM Karol Herbst wrote: > > so while trying to test with d3cold disabled, I noticed that I run > into the exact same error. Does this mean that you disabled d3cold on the GPU via sysfs (the "d3cold_allowed" attribute was 0) and the original problem still occurred in

[PATCH 2/2] drm/amdgpu: Use ARRAY_SIZE for sos_old_versions

2019-11-22 Thread zhengbin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/psp_v3_1.c:182:40-41: WARNING: Use ARRAY_SIZE Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2] drm/amd/powerplay: Use ARRAY_SIZE for smu7_profiling

2019-11-22 Thread zhengbin
Fixes coccicheck warning: drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:4946:28-29: WARNING: Use ARRAY_SIZE Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

RE: [PATCH v4 12/13] [HACK] drm/bridge: lvds-codec: Enforce device specific compatible strings

2019-11-22 Thread Fabrizio Castro
Hi Laurent, Thank you for your feedback! > From: devicetree-ow...@vger.kernel.org On > Behalf Of Laurent Pinchart > Sent: 19 November 2019 21:52 > Subject: Re: [PATCH v4 12/13] [HACK] drm/bridge: lvds-codec: Enforce device > specific compatible strings > > Hi Fabrizio, > > On Tue, Nov 19,

Re: [PATCH v10 6/6] backlight: add led-backlight driver

2019-11-22 Thread Tony Lindgren
Hi, * Jean-Jacques Hiblot [700101 00:00]: > From: Tomi Valkeinen > > This patch adds a led-backlight driver (led_bl), which is similar to > pwm_bl except the driver uses a LED class driver to adjust the > brightness in the HW. Multiple LEDs can be used for a single backlight. ... > + ret

Re: [PATCH] drm/imx: fix memory leak in imx_pd_bind

2019-11-22 Thread Navid Emamdoost
On Fri, Oct 4, 2019 at 2:09 PM Navid Emamdoost wrote: > > In imx_pd_bind, the duplicated memory for imxpd->edid via kmemdup should > be released in drm_of_find_panel_or_bridge or imx_pd_register fail. > > Fixes: ebc944613567 ("drm: convert drivers to use > drm_of_find_panel_or_bridge") > Fixes:

[PATCH v2] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-11-22 Thread Wei Hu
On Hyper-V, Generation 1 VMs can directly use VM's physical memory for their framebuffers. This can improve the efficiency of framebuffer and overall performence for VM. The physical memory assigned to framebuffer must be contiguous. We use CMA allocator to get contiguouse physicial memory when

[PATCH v2 1/4] dt-bindings: drm/msm/gpu: document second interconnect

2019-11-22 Thread Brian Masney
Some A3xx and all A4xx Adreno GPUs do not have GMEM inside the GPU core and must use the On Chip MEMory (OCMEM) in order to be functional. There's a separate interconnect path that needs to be setup to OCMEM. Let's document this second interconnect path that's available. Since there's now two

[PATCH v2 3/4] drm/msm/a3xx: set interconnect bandwidth vote

2019-11-22 Thread Brian Masney
Set the two interconnect paths for the GPU to maximum speed for now to work towards getting the GPU working upstream. We can revisit a later time to optimize this for battery life. Signed-off-by: Brian Masney --- drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 8 1 file changed, 8

Re: [PATCH v1 08/29] dt-bindings: interconnect: tegra: Add initial IDs

2019-11-22 Thread Dmitry Osipenko
19.11.2019 19:56, Dmitry Osipenko пишет: > 19.11.2019 09:25, Thierry Reding пишет: >> On Mon, Nov 18, 2019 at 11:02:26PM +0300, Dmitry Osipenko wrote: >>> Define interconnect IDs for memory controller (MC), external memory >>> controller (EMC), external memory (EMEM) and memory clients of display

Re: [PATCH] drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add

2019-11-22 Thread Navid Emamdoost
On Tue, Sep 24, 2019 at 11:38 PM Navid Emamdoost wrote: > > In vmw_cmdbuf_res_add if drm_ht_insert_item fails the allocated memory > for cres should be released. > > Signed-off-by: Navid Emamdoost Would you please review this patch? Thanks, > --- > drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c

[PATCH 0/2] drm/amd: Use ARRAY_SIZE

2019-11-22 Thread zhengbin
zhengbin (2): drm/amd/powerplay: Use ARRAY_SIZE for smu7_profiling drm/amdgpu: Use ARRAY_SIZE for sos_old_versions drivers/gpu/drm/amd/amdgpu/psp_v3_1.c| 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4

  1   2   >