[Bug 111305] `ttm_bo_handle_move_mem` sometimes takes more than 50 ms

2019-08-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111305 --- Comment #3 from Alex Deucher --- (In reply to Paul Menzel from comment #2) > > Just to clarify, the VRAM on the external graphics device is powered off, > correct? Correct. > > Are there any tools to analyze these delays? I guess

[PATCH] drm: Add high-precision time to vblank trace event

2019-08-09 Thread Heinrich
Store the timestamp of the current vblank in the new field 'time' of the vblank trace event. If the timestamp is calculated by a driver that supports high-precision vblank timing, set the field 'high-prec' to 'true'. User space can now access actual hardware vblank times via the tracing

[PATCH v2] i2c: replace i2c_new_secondary_device with an ERR_PTR variant

2019-08-09 Thread Wolfram Sang
In the general move to have i2c_new_*_device functions which return ERR_PTR instead of NULL, this patch converts i2c_new_secondary_device(). There are only few users, so this patch converts the I2C core and all users in one go. The function gets renamed to i2c_new_ancillary_device() so

Re: [PATCH] i2c: replace i2c_new_secondary_device with an ERR_PTR variant

2019-08-09 Thread Wolfram Sang
Hi Laurent, > > > > + if (IS_ERR(state->i2c_clients[i])) { > > > > + err = PTR_ERR(state->i2c_clients[i]); > > > > v4l2_err(sd, "failed to create i2c client > > > > %u\n", i); > > > > goto err_i2c; > > This will

[PATCH v2 2/3] dt-bindings: display/bridge: Add binding for NWL mipi dsi host controller

2019-08-09 Thread Guido Günther
The Northwest Logic MIPI DSI IP core can be found in NXPs i.MX8 SoCs. Signed-off-by: Guido Günther --- .../bindings/display/bridge/nwl-dsi.yaml | 155 ++ 1 file changed, 155 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml

[PATCH v2 3/3] drm/bridge: Add NWL MIPI DSI host controller support

2019-08-09 Thread Guido Günther
This adds initial support for the NWL MIPI DSI Host controller found on i.MX8 SoCs. It adds support for the i.MX8MQ but the same IP can be found on e.g. the i.MX8QXP. It has been tested on the Librem 5 devkit using mxsfb. Signed-off-by: Guido Günther Co-developed-by: Robert Chiras ---

[PATCH v2 1/3] arm64: imx8mq: add imx8mq iomux-gpr field defines

2019-08-09 Thread Guido Günther
This adds all the gpr registers and the define needed for selecting the input source in the imx-nwl drm bridge. Signed-off-by: Guido Günther --- include/linux/mfd/syscon/imx8mq-iomuxc-gpr.h | 62 1 file changed, 62 insertions(+) create mode 100644

[PATCH v2 0/3] drm: bridge: Add NWL MIPI DSI host controller support

2019-08-09 Thread Guido Günther
This adds initial support for the NWL MIPI DSI Host controller found on i.MX8 SoCs. It adds support for the i.MX8MQ but the same IP core can also be found on e.g. i.MX8QXP. I added the necessary hooks to support other imx8 variants but since I only have imx8mq boards to test I omitted the

Re: [GIT PULL] fbdev fix for v5.3-rc4

2019-08-09 Thread pr-tracker-bot
The pull request you sent on Fri, 9 Aug 2019 16:07:35 +0200: > https://github.com/bzolnier/linux.git tags/fbdev-v5.3-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ec4c99ad7bd23dd39ffb1381136cefa4bb632e31 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] mxsfb: allow attachment of display bridges

2019-08-09 Thread Guido Günther
Hi, On Thu, Aug 01, 2019 at 11:18:53AM +, Ville Baillie wrote: > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 20 > drivers/gpu/drm/mxsfb/mxsfb_drv.h | 1 + > drivers/gpu/drm/mxsfb/mxsfb_out.c | 14 +++--- > 3 files changed, 28 insertions(+), 7 deletions(-) > >

Re: [PATCH 24/60] drm/panel: Add driver for the Toppology TD043MTEA1 panel

2019-08-09 Thread Laurent Pinchart
Hi Sam, On Fri, Aug 09, 2019 at 03:33:08PM +0200, Sam Ravnborg wrote: > Hi Laurent. > > > > > +static int td043mtea1_disable(struct drm_panel *panel) > > > > +{ > > > > + struct td043mtea1_device *lcd = to_td043mtea1_device(panel); > > > > + > > > > + if (!lcd->spi_suspended) > > > >

RE: [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread Weiny, Ira
> > On Wed 07-08-19 19:36:37, Ira Weiny wrote: > > On Wed, Aug 07, 2019 at 10:46:49AM +0200, Michal Hocko wrote: > > > > So I think your debug option and my suggested renaming serve a bit > > > > different purposes (and thus both make sense). If you do the > > > > renaming, you can just grep to

Re: [PATCH v2] i2c: replace i2c_new_secondary_device with an ERR_PTR variant

2019-08-09 Thread Laurent Pinchart
Hi Wolfram, On Fri, Aug 09, 2019 at 05:40:47PM +0200, Wolfram Sang wrote: > In the general move to have i2c_new_*_device functions which return > ERR_PTR instead of NULL, this patch converts i2c_new_secondary_device(). > > There are only few users, so this patch converts the I2C core and all >

[Bug 110457] System resumes failed and hits [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout on Acer Aspire A315-21G

2019-08-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110457 --- Comment #10 from Eugene Bright --- The patch is on it's way https://bugs.freedesktop.org/show_bug.cgi?id=110258#c12 -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 110258] Lenovo V110-15AST AMD A9-9410 AMD R5 Stoney hangs after waking after suspend. 5.0 onwards

2019-08-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110258 --- Comment #13 from Eugene Bright --- The patch works! I've been able to apply it to the gentoo-sources-5.2.7. Thank you very much for reply! -- You are receiving this mail because: You are the assignee for the

[pull] amdgpu, amdkfd, radeon, ttm drm-next-5.4

2019-08-09 Thread Alex Deucher
Hi Dave, Daniel, Same request as earlier, but with the readq/writeq stuff resolved and 5.3-rc3 backmerged. diffstat trimmed for size. The following changes since commit 41a5a2a8531f95d18bb4efddea581ccb469e8ee5: drm/amd/display: init res_pool dccg_ref, dchub_ref with xtalin_freq (2019-07-18

Re: [PATCH] drm: Fix kerneldoc warns in connector-related docs

2019-08-09 Thread Sean Paul
On Wed, Aug 07, 2019 at 07:30:23PM +0200, Sam Ravnborg wrote: > Hi Sean. > > On Wed, Aug 07, 2019 at 12:28:04PM -0400, Sean Paul wrote: > > From: Sean Paul > > > > Fixes the following warnings: > > ../drivers/gpu/drm/drm_connector.c:989: WARNING: Unexpected indentation. > >

Re: [PATCH 02/22] ARM: omap1: make omapfb standalone compilable

2019-08-09 Thread Arnd Bergmann
On Fri, Aug 9, 2019 at 4:36 PM Bartlomiej Zolnierkiewicz wrote: > On 8/9/19 1:43 PM, Arnd Bergmann wrote: > > > > That would have been ok as well, but having the addition here was > > intentional and seems more logical to me as this is where the headers > > get moved around. > I see that this is

[PATCH v3 26/37] drm/i915: error capture with no ggtt slot

2019-08-09 Thread Matthew Auld
From: Daniele Ceraolo Spurio If the aperture is not available in HW we can't use a ggtt slot and wc copy, so fall back to regular kmap. Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Abdiel Janulgue --- drivers/gpu/drm/i915/i915_gem_gtt.c | 19

[PATCH v3 37/37] HAX drm/i915: add the fake lmem region

2019-08-09 Thread Matthew Auld
Intended for upstream testing so that we can still exercise the LMEM plumbing and !HAS_MAPPABLE_APERTURE paths. Smoke tested on Skull Canyon device. This works by allocating an intel_memory_region for a reserved portion of system memory, which we treat like LMEM. For the LMEMBAR we steal the

[PATCH v3 30/37] drm/i915: Introduce DRM_I915_GEM_MMAP_OFFSET

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Add a new CPU mmap implementation that allows multiple fault handlers that depends on the object's backing pages. Note that we multiplex mmap_gtt and mmap_offset through the same ioctl, and use the zero extending behaviour of drm to differentiate between them, when we

[PATCH v3 29/37] drm/i915: Allow i915 to manage the vma offset nodes instead of drm core

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue This enables us to store extra data within vma->vm_private_data and assign the pagefault ops for each mmap instance. We replace the core drm_gem_mmap implementation to overcome the limitation in having only a single offset node per gem object, allowing us to have multiple

[PATCH v3 36/37] drm/i915/query: Expose memory regions through the query uAPI

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Returns the available memory region areas supported by the HW. Signed-off-by: Abdiel Janulgue Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_query.c | 57 +++ include/uapi/drm/i915_drm.h | 39 + 2 files changed,

[PATCH v3 34/37] drm/i915: support basic object migration

2019-08-09 Thread Matthew Auld
We are going want to able to move objects between different regions like system memory and local memory. In the future everything should be just another region. Signed-off-by: Matthew Auld Signed-off-by: Abdiel Janulgue Signed-off-by: CQ Tang Cc: Joonas Lahtinen Cc: Abdiel Janulgue ---

[PATCH v3 21/37] drm/i915: treat stolen as a region

2019-08-09 Thread Matthew Auld
Convert stolen memory over to a region object. Still leaves open the question with what to do with pre-allocated objects... Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/gem/i915_gem_region.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_stolen.c |

[PATCH v3 31/37] drm/i915/lmem: add helper to get CPU accessible offset

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue LMEM can be accessed by the CPU through a BAR. The mapping itself should be 1:1. Signed-off-by: Abdiel Janulgue Signed-off-by: Matthew Auld Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/gem/i915_gem_lmem.c | 16 drivers/gpu/drm/i915/gem/i915_gem_lmem.h

[PATCH v3 15/37] drm/i915/selftest: extend coverage to include LMEM huge-pages

2019-08-09 Thread Matthew Auld
Signed-off-by: Matthew Auld --- .../gpu/drm/i915/gem/selftests/huge_pages.c | 121 +- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/selftests/huge_pages.c b/drivers/gpu/drm/i915/gem/selftests/huge_pages.c index

[PATCH v3 16/37] drm/i915/lmem: support CPU relocations

2019-08-09 Thread Matthew Auld
Add LMEM support for the CPU reloc path. When doing relocations we have both a GPU and CPU reloc path, as well as some debugging options to force a particular path. The GPU reloc path is preferred when the object is not currently idle, otherwise we use the CPU reloc path. Since we can't kmap the

[PATCH v3 24/37] drm/i915: set num_fence_regs to 0 if there is no aperture

2019-08-09 Thread Matthew Auld
From: Daniele Ceraolo Spurio We can't fence anything without aperture. Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Stuart Summers Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v3 18/37] drm/i915/lmem: support pwrite

2019-08-09 Thread Matthew Auld
We need to add support for pwrite'ing an LMEM object. Signed-off-by: Matthew Auld Signed-off-by: Steve Hampson Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/gem/i915_gem_lmem.c | 87 1 file changed, 87 insertions(+) diff --git

[PATCH v3 25/37] drm/i915/selftests: check for missing aperture

2019-08-09 Thread Matthew Auld
We may be missing support for the mappable aperture on some platforms. Signed-off-by: Matthew Auld Cc: Daniele Ceraolo Spurio --- .../drm/i915/gem/selftests/i915_gem_coherency.c| 5 - drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 3 +++

[PATCH v3 35/37] drm/i915: Introduce GEM_OBJECT_SETPARAM with I915_PARAM_MEMORY_REGION

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue This call will specify which memory region an object should be placed. Note that changing the object's backing storage should be immediately done after an object is created or if it's not yet in use, otherwise this will fail on a busy object. Signed-off-by: Abdiel

[PATCH v3 27/37] drm/i915: Don't try to place HWS in non-existing mappable region

2019-08-09 Thread Matthew Auld
From: Michal Wajdeczko HWS placement restrictions can't just rely on HAS_LLC flag. Signed-off-by: Michal Wajdeczko Cc: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 32/37] drm/i915: Add cpu and lmem fault handlers

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Fault handler to handle missing pages to be filled depending on an object's backing storage. Handle also changes needed to refault pages depending on fault handler usage. Signed-off-by: Abdiel Janulgue Signed-off-by: Matthew Auld Cc: Joonas Lahtinen ---

[PATCH v3 33/37] drm/i915: cpu-map based dumb buffers

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue If there is no aperture we can't use map_gtt to map dumb buffers, so we need a cpu-map based path to do it. We prefer map_gtt on platforms that do have aperture. Signed-off-by: Abdiel Janulgue Cc: Daniele Ceraolo Spurio Cc: Tvrtko Ursulin Cc: Matthew Auld ---

[PATCH libdrm v2] meson.build: enable static build

2019-08-09 Thread Peter Seiderer
Use meson library instead of shared_library to enable static build. Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - no changes, resend (old submission [1]) [1] https://lists.freedesktop.org/archives/dri-devel/2018-July/183886.html --- amdgpu/meson.build| 2 +- etnaviv/meson.build

[PATCH libdrm v2] meson.build: fix intel atomics detection

2019-08-09 Thread Peter Seiderer
Use the stronger compiler.link() test (instead of the weaker compiler.compile()) to fix the intel atomics detection. Fixes false positive in case of sparc compile (buildroot toolchain). Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - no changes, resend (old submission [1]) [1]

[PATCH libdrm v1] meson: fix libdl/shared library support detection for nouveau tests

2019-08-09 Thread Peter Seiderer
Some toolchains (e.g. br-arm-cortex-m4-full) provide empty libdl libraries. This fools the dynamic/static detection for tests/nouveau, so explicit check for library type instead. Fixes: ../tests/nouveau/threaded.c:24:10: fatal error: dlfcn.h: No such file or directory Signed-off-by: Peter

Re: [PATCH] drm: Fix kerneldoc warns in connector-related docs

2019-08-09 Thread Sean Paul
On Fri, Aug 09, 2019 at 10:15:51PM +0200, Sam Ravnborg wrote: > Hi Sean. > > > > > --- a/include/drm/drm_connector.h > > > > +++ b/include/drm/drm_connector.h > > > > @@ -543,8 +543,8 @@ struct drm_connector_state { > > > > * > > > > * This is also used in the atomic helpers to

[PATCH 09/16] fbdev: remove w90x900/nuc900 platform drivers

2019-08-09 Thread Arnd Bergmann
The ARM w90x900 platform is getting removed, so this driver is obsolete. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/Kconfig | 14 - drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/nuc900fb.c | 760 ---

Re: [PATCH v2 2/3] dt-bindings: display/bridge: Add binding for NWL mipi dsi host controller

2019-08-09 Thread Rob Herring
On Fri, Aug 9, 2019 at 10:24 AM Guido Günther wrote: > > The Northwest Logic MIPI DSI IP core can be found in NXPs i.MX8 SoCs. > > Signed-off-by: Guido Günther > --- > .../bindings/display/bridge/nwl-dsi.yaml | 155 ++ > 1 file changed, 155 insertions(+) > create mode

Re: [PATCH] drm: Fix kerneldoc warns in connector-related docs

2019-08-09 Thread Sam Ravnborg
Hi Sean. > > > > > --- a/include/drm/drm_connector.h > > > > > +++ b/include/drm/drm_connector.h > > > > > @@ -543,8 +543,8 @@ struct drm_connector_state { > > > > >* > > > > >* This is also used in the atomic helpers to map encoders to > > > > > their > > > > >* current

[PATCH v3 05/37] drm/i915/region: support volatile objects

2019-08-09 Thread Matthew Auld
Volatile objects are marked as DONTNEED while pinned, therefore once unpinned the backing store can be discarded. Signed-off-by: Matthew Auld Signed-off-by: CQ Tang Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/gem/i915_gem_internal.c | 17 +++---

[PATCH v3 01/37] drm/i915: buddy allocator

2019-08-09 Thread Matthew Auld
Simple buddy allocator. We want to allocate properly aligned power-of-two blocks to promote usage of huge-pages for the GTT, so 64K, 2M and possibly even 1G. While we do support allocating stuff at a specific offset, it is more intended for preallocating portions of the address space, say for an

[PATCH v3 06/37] drm/i915: Add memory region information to device_info

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Exposes available regions for the platform. Shared memory will always be available. Signed-off-by: Abdiel Janulgue Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_device_info.h | 2 ++ 2 files changed, 4

[PATCH v3 03/37] drm/i915/region: support basic eviction

2019-08-09 Thread Matthew Auld
Support basic eviction for regions. Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- .../gpu/drm/i915/gem/i915_gem_object_types.h | 7 ++ drivers/gpu/drm/i915/gem/i915_gem_region.c| 11 +++ drivers/gpu/drm/i915/gem/i915_gem_region.h| 1 +

[PATCH v3 08/37] drm/i915: setup io-mapping for LMEM

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Signed-off-by: Abdiel Janulgue Cc: Matthew Auld --- drivers/gpu/drm/i915/intel_region_lmem.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_region_lmem.c b/drivers/gpu/drm/i915/intel_region_lmem.c

[PATCH v3 00/37] Introduce memory region concept (including device local memory)

2019-08-09 Thread Matthew Auld
In preparation for upcoming devices with device local memory, introduce the concept of different memory regions, and a simple buddy allocator to manage them in i915. One of the concerns raised from v1 was around not using enough of TTM, which is a fair criticism, so trying to get better alignment

[PATCH v3 09/37] drm/i915/lmem: support kernel mapping

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue We can create LMEM objects, but we also need to support mapping them into kernel space for internal use. Signed-off-by: Abdiel Janulgue Signed-off-by: Matthew Auld Signed-off-by: Steve Hampson Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/gem/i915_gem_internal.c | 4

[PATCH v3 02/37] drm/i915: introduce intel_memory_region

2019-08-09 Thread Matthew Auld
Support memory regions, as defined by a given (start, end), and allow creating GEM objects which are backed by said region. The immediate goal here is to have something to represent our device memory, but later on we also want to represent every memory domain with a region, so stolen, shmem, and

[PATCH v3 04/37] drm/i915/region: support continuous allocations

2019-08-09 Thread Matthew Auld
Some objects may need to be allocated as a continuous block, thinking ahead the various kernel io_mapping interfaces seem to expect it. Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- .../gpu/drm/i915/gem/i915_gem_object_types.h | 4 +

[PATCH v3 10/37] drm/i915/blt: don't assume pinned intel_context

2019-08-09 Thread Matthew Auld
Currently we just pass in bcs0->engine_context so it matters not, but in the future we may want to pass in something that is not a kernel_context, so try to be a bit more generic. Suggested-by: Chris Wilson Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_client_blt.c | 3 ++-

[PATCH v3 07/37] drm/i915: support creating LMEM objects

2019-08-09 Thread Matthew Auld
We currently define LMEM, or local memory, as just another memory region, like system memory or stolen, which we can expose to userspace and can be mapped to the CPU via some BAR. Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/Makefile

[PATCH v3 12/37] drm/i915/blt: support copying objects

2019-08-09 Thread Matthew Auld
We can already clear an object with the blt, so try to do the same to support copying from one object backing store to another. Really this is just object -> object, which is not that useful yet, what we really want is two backing stores, but that will require some vma rework first, otherwise we

[PATCH v3 11/37] drm/i915/blt: bump size restriction

2019-08-09 Thread Matthew Auld
Reported-by: Chris Wilson Signed-off-by: Matthew Auld --- .../gpu/drm/i915/gem/i915_gem_client_blt.c| 31 +++- .../gpu/drm/i915/gem/i915_gem_object_blt.c| 139 ++ .../gpu/drm/i915/gem/i915_gem_object_blt.h| 9 +- .../i915/gem/selftests/i915_gem_client_blt.c | 16

[PATCH v3 28/37] drm/i915: check for missing aperture in insert_mappable_node

2019-08-09 Thread Matthew Auld
From: CQ Tang Signed-off-by: CQ Tang Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/i915_gem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 2aa4fbe7edc0..af63d1a0af14 100644 ---

[PATCH v3 13/37] drm/i915/selftests: move gpu-write-dw into utils

2019-08-09 Thread Matthew Auld
Using the gpu to write to some dword over a number of pages is rather useful, and we already have two copies of such a thing, and we don't want a third so move it to utils. There is probably some other stuff also... Signed-off-by: Matthew Auld --- .../gpu/drm/i915/gem/selftests/huge_pages.c |

[PATCH v3 20/37] drm/i915: treat shmem as a region

2019-08-09 Thread Matthew Auld
Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/gem/i915_gem_phys.c | 6 +- drivers/gpu/drm/i915/gem/i915_gem_region.c| 14 +++- drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 68 ++- drivers/gpu/drm/i915/i915_drv.c

[PATCH v3 22/37] drm/i915: define HAS_MAPPABLE_APERTURE

2019-08-09 Thread Matthew Auld
From: Daniele Ceraolo Spurio The following patches in the series will use it to avoid certain operations when aperture is not available in HW. Signed-off-by: Daniele Ceraolo Spurio Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 17/37] drm/i915/lmem: support pread

2019-08-09 Thread Matthew Auld
We need to add support for pread'ing an LMEM object. Signed-off-by: Matthew Auld Signed-off-by: Steve Hampson Cc: Joonas Lahtinen Cc: Abdiel Janulgue --- drivers/gpu/drm/i915/gem/i915_gem_lmem.c | 88 +++ .../gpu/drm/i915/gem/i915_gem_object_types.h | 2 +

[PATCH v3 23/37] drm/i915: do not map aperture if it is not available.

2019-08-09 Thread Matthew Auld
From: Daniele Ceraolo Spurio Skip both setup and cleanup of the aperture mapping if the HW doesn't have an aperture bar. Signed-off-by: Daniele Ceraolo Spurio Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 36 ++--- 1 file changed, 22 insertions(+), 14

[PATCH v3 19/37] drm/i915: enumerate and init each supported region

2019-08-09 Thread Matthew Auld
From: Abdiel Janulgue Nothing to enumerate yet... Signed-off-by: Abdiel Janulgue Signed-off-by: Matthew Auld Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/i915_gem_gtt.c | 70 +--

[PATCH v3 14/37] drm/i915/selftests: add write-dword test for LMEM

2019-08-09 Thread Matthew Auld
Simple test writing to dwords across an object, using various engines in a randomized order, checking that our writes land from the cpu. Signed-off-by: Matthew Auld --- .../drm/i915/selftests/intel_memory_region.c | 179 ++ 1 file changed, 179 insertions(+) diff --git

Re: [PATCH] drm: Fix kerneldoc warns in connector-related docs

2019-08-09 Thread Sam Ravnborg
Hi Sean. > > > --- a/include/drm/drm_connector.h > > > +++ b/include/drm/drm_connector.h > > > @@ -543,8 +543,8 @@ struct drm_connector_state { > > >* > > >* This is also used in the atomic helpers to map encoders to their > > >* current and previous connectors, see > > > - *

Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path

2019-08-09 Thread Sedat Dilek
On Fri, Aug 9, 2019 at 1:03 AM Nick Desaulniers wrote: > > On Thu, Aug 8, 2019 at 1:22 PM Thomas Gleixner wrote: > > > tglx just picked up 2 other patches of mine, bumping just in case he's > > > not picking up patches while on vacation. ;) > > > > I'm only half on vacation :) > > > > So I can

Re: [PATCH] drm/panfrost: Add errata descriptions from kbase

2019-08-09 Thread Rob Herring
On Fri, Aug 9, 2019 at 3:09 PM Alyssa Rosenzweig wrote: > > While newer kbase include only the numbers of errata, older kbase > releases included one-line descriptions for each errata, which is useful > for those working on the driver. Import these descriptions. Most are > from kbase verbatim; a

<    1   2