Re: [PATCH] drm/exynos: Fix cleanup of IOMMU related objects

2020-03-04 Thread Inki Dae
Hi Marek, 20. 3. 2. 오후 11:27에 Marek Szyprowski 이(가) 쓴 글: > Store the IOMMU mapping created by device core of each Exynos DRM > sub-device and restore it when Exynos DRM driver is unbound. This fixes > IOMMU initialization failure for the second time when deferred probe is > triggered from the bind

Re: [PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-04 Thread Marek Szyprowski
Hi Lukasz, On 04.03.2020 23:00, Lukasz Luba wrote: > There is a memory leak which left some objects not freed. The reference > counter of mapping: 'mapping->kref' was 2 when calling > arm_iommu_detach_device(), so the release_iommu_mapping() won't be called. > Since the old mapping structure is no

Re: [PATCH] gpu/drm/v3d: Add ARCH_BCM2835 to DRM_V3D Kconfig

2020-03-04 Thread Eric Anholt
On Wed, Dec 18, 2019 at 6:39 AM Nicolas Saenz Julienne wrote: > > Hi Peter, > > On Wed, 2019-12-18 at 08:43 +, Peter Robinson wrote: > > On arm64 the config ARCH_BCM doesn't exist so to be able to > > build for platforms such as the Raspberry Pi 4 we need to add > > ARCH_BCM2835 similar to wha

Re: [PATCH] GPU: DRM: VC4/V3D Replace wait_for macros in to remove use of msleep

2020-03-04 Thread Eric Anholt
On Thu, Feb 20, 2020 at 1:44 AM James Hughes wrote: > > On Wed, 19 Feb 2020 at 22:51, Eric Anholt wrote: > > > > On Mon, Feb 17, 2020 at 7:41 AM James Hughes > > wrote: > > > > > > The wait_for macro's for Broadcom VC4 and V3D drivers used msleep > > > which is inappropriate due to its inaccurac

[GIT PULL] mediatek drm fixes for 5.6

2020-03-04 Thread CK Hu
Hi, Dave & Daniel: This include OVL, cursor, and gce fixup. Regards, CK The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9: Linux 5.6-rc1 (2020-02-09 16:08:48 -0800) are available in the Git repository at: https://github.com/ckhu-mediatek/linux.git-tags.git tags/m

[PATCH v3 2/2] drm/virtio: add case for shmem objects in virtio_gpu_cleanup_object(..)

2020-03-04 Thread Gurchetan Singh
This function can be reused for hostmem objects. v2: move virtio_gpu_is_shmem() check to virtio_gpu_cleanup_object() v3: use-after free fix Signed-off-by: Gurchetan Singh --- drivers/gpu/drm/virtio/virtgpu_drv.h| 2 +- drivers/gpu/drm/virtio/virtgpu_object.c | 33 ++---

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

2020-03-04 Thread Gurchetan Singh
A resource will be a shmem based resource or a (planned) vram based resource, so it makes sense to factor out common fields (resource handle, dumb). v2: move mapped field to shmem object Signed-off-by: Gurchetan Singh --- drivers/gpu/drm/virtio/virtgpu_drv.h| 13 +++ drivers/gpu/drm

Re: [PATCH v2 4/4] drm/bridge: dw-hdmi: rework csc related functions

2020-03-04 Thread Laurent Pinchart
Hi Jernej, Thank you for the patch. On Thu, Mar 05, 2020 at 12:25:12AM +0100, Jernej Skrabec wrote: > is_color_space_conversion() is a misnomer. It checks not only if color > space conversion is needed, but also if format conversion is needed. > This is actually desired behaviour because result o

Re: [PATCH v2 3/4] drm/bridge: dw-hdmi: Add support for RGB limited range

2020-03-04 Thread Laurent Pinchart
Hi Jernej, Thank you for the patch. On Thu, Mar 05, 2020 at 12:25:11AM +0100, Jernej Skrabec wrote: > CEA 861 standard requestis that RGB quantization range is "limited" for > CEA modes. Support that by adding CSC matrix which downscales values. > > This allows proper color reproduction on TV an

[PATCH 0/3] drm/dp_mst: Fix bandwidth checking regressions from DSC patches

2020-03-04 Thread Lyude Paul
AMD's patch series for adding DSC support to the MST helpers unfortunately introduced a few regressions into the kernel that I didn't get around to fixing until just now. I would have reverted the changes earlier, but seeing as that would have reverted all of amd's DSC support + everything that was

[PATCH 2/3] drm/dp_mst: Don't show connectors as connected before probing available PBN

2020-03-04 Thread Lyude Paul
It's next to impossible for us to do connector probing on topologies without occasionally racing with userspace, since creating a connector itself causes a hotplug event which we have to send before probing the available PBN of a connector. Even if we didn't have this hotplug event sent, there's st

[PATCH 3/3] drm/dp_mst: Rewrite and fix bandwidth limit checks

2020-03-04 Thread Lyude Paul
Sigh, this is mostly my fault for not giving commit cd82d82cbc04 ("drm/dp_mst: Add branch bandwidth validation to MST atomic check") enough scrutiny during review. The way we're checking bandwidth limitations here is mostly wrong. First things first, we need to follow the locking conventions for M

[PATCH 1/3] drm/dp_mst: Rename drm_dp_mst_is_dp_mst_end_device() to be less redundant

2020-03-04 Thread Lyude Paul
It's already prefixed by dp_mst, so we don't really need to repeat ourselves here. One of the changes I should have picked up originally when reviewing MST DSC support. There should be no functional changes here Cc: Mikita Lipski Cc: Alex Deucher Cc: Sean Paul Cc: Hans de Goede Signed-off-by:

[PATCH] Make drm_dp_mst_dsc_aux_for_port() safe for old compilers

2020-03-04 Thread Paul E. McKenney
Older compilers either want two extra pairs of curly braces around the initializer for local variable "desc", or they want a single pair of curly braces with nothing inside. Current Linux-kernel practice favors the latter, so this commit makes it so. This is a fix for a regression introduced into

Re: [PATCH] drm/amd/display: Remove pointless NULL checks in dmub_psr_copy_settings

2020-03-04 Thread Alex Deucher
On Mon, Mar 2, 2020 at 5:43 PM Nathan Chancellor wrote: > > Clang warns: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:147:31: warning: > address of 'pipe_ctx->plane_res' will always evaluate to 'true' > [-Wpointer-bool-conversion] > if (!pipe_ctx || !&pipe_ctx->plane_res ||

Re: [PATCH v3] drm/dp: Add function to parse EDID descriptors for adaptive sync limits

2020-03-04 Thread Ville Syrjälä
On Wed, Mar 04, 2020 at 09:36:06AM -0800, Manasi Navare wrote: > On Tue, Mar 03, 2020 at 03:42:12PM +0200, Ville Syrjälä wrote: > > On Mon, Mar 02, 2020 at 04:08:59PM -0800, Manasi Navare wrote: > > > Adaptive Sync is a VESA feature so add a DRM core helper to parse > > > the EDID's detailed descri

Re: [PATCH] drm/fourcc: Add bayer formats and modifiers

2020-03-04 Thread Sakari Ailus
Hi Niklas, Thank you for the patch. On Fri, Feb 28, 2020 at 05:31:35PM +0100, Niklas Söderlund wrote: > Bayer formats are used with cameras and contain green, red and blue > components, with alternating lines of red and green, and blue and green > pixels in different orders. For each block of 2x2

Re: [PATCH v3] drm/dp: Add function to parse EDID descriptors for adaptive sync limits

2020-03-04 Thread Manasi Navare
On Tue, Mar 03, 2020 at 03:42:12PM +0200, Ville Syrjälä wrote: > On Mon, Mar 02, 2020 at 04:08:59PM -0800, Manasi Navare wrote: > > Adaptive Sync is a VESA feature so add a DRM core helper to parse > > the EDID's detailed descritors to obtain the adaptive sync monitor range. > > Store this info as

Re: [PATCH 28/33] drm/panel-simple: Fix dotclock for Sharp LQ150X1LG11

2020-03-04 Thread Sam Ravnborg
Hi Peter. > >> > >> That said, I have no idea whatsoever if others have started using this > >> panel entry. My guess is that it has zero users, but who can tell? > > > > A quick grep shows that arch/arm/boot/dts/at91-nattis-2-natte-2.dts is > > the only device tree that uses this panel in the up

Re: [PATCH] RFC: dma-buf: Add an API for importing and exporting sync files

2020-03-04 Thread Jason Ekstrand
On Wed, Mar 4, 2020 at 10:27 AM Jason Ekstrand wrote: > > On Wed, Mar 4, 2020 at 2:34 AM Christian König > wrote: > > > > Am 03.03.20 um 20:10 schrieb Jason Ekstrand: > > > On Thu, Feb 27, 2020 at 2:28 AM Christian König > > > wrote: > > >> [SNIP] > > >>> However, I'm not sure what the best way

Re: [PATCH v3 2/3] dt-bindings: display: panel: Add binding document for Elida KD35T133

2020-03-04 Thread Rob Herring
On Sat, 29 Feb 2020 16:15:05 +0100, Heiko Stuebner wrote: > From: Heiko Stuebner > > The KD35T133 is a 3.5" 320x480 DSI display used in the RK3326-based > Odroid Go Advance handheld device. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Sam Ravnborg > --- > .../display/panel/elida,kd35t133.

Re: [PATCH v3 1/3] dt-bindings: Add vendor prefix for Elida

2020-03-04 Thread Rob Herring
On Sat, 29 Feb 2020 16:15:04 +0100, Heiko Stuebner wrote: > From: Heiko Stuebner > > Shenzen Elida Technology Co. Ltd. is a Chinese TFT manufacturer. > > Signed-off-by: Heiko Stuebner > Acked-by: Sam Ravnborg > --- > Hi Rob, > > as can be seen on [0], Sam expects you to apply the vendor prefi

Re: [PATCH] RFC: dma-buf: Add an API for importing and exporting sync files

2020-03-04 Thread Jason Ekstrand
On Wed, Mar 4, 2020 at 2:34 AM Christian König wrote: > > Am 03.03.20 um 20:10 schrieb Jason Ekstrand: > > On Thu, Feb 27, 2020 at 2:28 AM Christian König > > wrote: > >> [SNIP] > >>> However, I'm not sure what the best way is to do garbage collection on > >>> that so that we don't get an impossi

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

2020-03-04 Thread Rob Herring
On Tue, Mar 03, 2020 at 01:27:20PM +0800, Jitao Shi wrote: > Signed-off-by: Jitao Shi > --- > .../display/mediatek/mediatek,dpi.txt | 45 - > .../display/mediatek/mediatek,dpi.yaml| 92 +++ > 2 files changed, 92 insertions(+), 45 deletions(-) > delete mode

Re: [PATCH] gpu: drm: context: Clean up documentation

2020-03-04 Thread Emil Velikov
On Mon, 3 Feb 2020 at 08:11, Benjamin Gaignard wrote: > > Fix kernel doc comments to avoid warnings when compiling with W=1. > > Signed-off-by: Benjamin Gaignard > --- > drivers/gpu/drm/drm_context.c | 145 > ++ > 1 file changed, 61 insertions(+), 84 dele

Re: [PATCH] drm/i915/dp: Add dpcd link_rate quirk for Apple 15" MBP 2017

2020-03-04 Thread Jani Nikula
On Sat, 29 Feb 2020, Mario Kleiner wrote: > This fixes a problem found on the MacBookPro 2017 Retina panel. > > The panel reports 10 bpc color depth in its EDID, and the > firmware chooses link settings at boot which support enough > bandwidth for 10 bpc (324000 kbit/sec = multiplier 0xc), > but t

Re: [PATCH resend 1/2] drm/i915: panel: Use intel_panel_compute_brightness() from pwm_setup_backlight()

2020-03-04 Thread Jani Nikula
On Tue, 03 Mar 2020, Hans de Goede wrote: > Hi All, > > On 2/21/20 6:29 PM, Hans de Goede wrote: >> Use intel_panel_compute_brightness() from pwm_setup_backlight() so that >> we correctly take i915_modparams.invert_brightness and/or >> QUIRK_INVERT_BRIGHTNESS into account when setting + getting th

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

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

[PATCH v2] drm/simple-kms: Fix documentation for drm_simple_encoder_init()

2020-03-04 Thread Thomas Zimmermann
Brings the documentation of drm_simple_encoder_init() in sync with the function's signature. Also add a paragraph clarifying the management of the encoder's memory. v2: * document memory management Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vetter Fixes: 63170ac6f2e8 ("drm/sim

Re: [PATCH 33/33] drm/panel-simple: Fix dotclock for LG ACX467AKM-7

2020-03-04 Thread Linus Walleij
On Wed, Mar 4, 2020 at 2:17 PM Jonathan Marek wrote: [hs_rate / lp_rate] > The msm DSI driver does predate the addition of those fields and doesn't > use them at all. I think it would be benficient to switch to these fields, because then the .clock field (dot/pixelclock) is not abused to contai

Re: [PATCH] MAINTAINERS: adjust to reservation.h renaming

2020-03-04 Thread Christian König
Am 04.03.20 um 13:07 schrieb Lukas Bulwahn: Commit 52791eeec1d9 ("dma-buf: rename reservation_object to dma_resv") renamed include/linux/reservation.h to include/linux/dma-resv.h, but missed the reference in the MAINTAINERS entry. Since then, ./scripts/get_maintainer.pl --self-test complains:

Re: [PATCH 25/89] reset: simple: Add reset callback

2020-03-04 Thread Philipp Zabel
Hi Maxime, On Mon, 2020-02-24 at 10:06 +0100, Maxime Ripard wrote: > The reset-simple code lacks a reset callback that is still pretty easy to > implement. The only real thing to consider is the delay needed for a device > to be reset, so let's expose that as part of the reset-simple driver data.

Re: [PATCH 0/5] drm/lima: add error debug functionality

2020-03-04 Thread Andreas Baierl
I could successfully use the output with https://gitlab.freedesktop.org/lima/lima.dump So you can add my Tested-by: Andreas Baierl Am 22.02.2020 um 03:42 schrieb Qiang Yu: Save task error state when it fail and export to user by sysfs as a binary file which can be dumped and replayed by lima

Re: [PATCH] gpu: drm: context: Clean up documentation

2020-03-04 Thread Benjamin Gaignard
Le lun. 3 févr. 2020 à 09:11, Benjamin Gaignard a écrit : > > Fix kernel doc comments to avoid warnings when compiling with W=1. gentle ping. Benjamin > > Signed-off-by: Benjamin Gaignard > --- > drivers/gpu/drm/drm_context.c | 145 > ++ > 1 file chang

[PATCH v5 09/11] drm/meson: venc: add support for YUV420 setup

2020-03-04 Thread Neil Armstrong
This patch adds encoding support for the YUV420 output from the Amlogic Meson SoCs Video Processing Unit to the HDMI Controller. The YUV420 is obtained by generating a YUV444 pixel stream like the classic HDMI display modes, but then the Video Encoder output can be configured to down-sample the YU

[PATCH v5 11/11] drm/meson: Add YUV420 output support

2020-03-04 Thread Neil Armstrong
This patch adds support for the YUV420 output from the Amlogic Meson SoCs Video Processing Unit to the HDMI Controller. The YUV420 is obtained by generating a YUV444 pixel stream like the classic HDMI display modes, but then the Video Encoder output can be configured to down-sample the YUV444 pixe

[PATCH v5 04/11] drm/bridge: synopsys: dw-hdmi: add bus format negociation

2020-03-04 Thread Neil Armstrong
Add the atomic_get_output_bus_fmts, atomic_get_input_bus_fmts to negociate the possible output and input formats for the current mode and monitor, and use the negotiated formats in a basic atomic_check callback. Signed-off-by: Neil Armstrong Reviewed-by: Boris Brezillon Reviewed-by: Jernej Škrab

[PATCH v5 05/11] drm/bridge: synopsys: dw-hdmi: allow ycbcr420 modes for >= 0x200a

2020-03-04 Thread Neil Armstrong
Now the DW-HDMI Controller supports the HDMI2.0 modes, enable support for these modes in the connector if the platform supports them. We limit these modes to DW-HDMI IP version >= 0x200a which are designed to support HDMI2.0 display modes. Signed-off-by: Neil Armstrong Reviewed-by: Andrzej Hajda

[PATCH v5 03/11] drm/bridge: dw-hdmi: Plug atomic state hooks to the default implementation

2020-03-04 Thread Neil Armstrong
Add atomic_duplicate_state/atomic_destroy_state/atomic_reset bridge funcs to allow setup of atomic bridge state. Signed-off-by: Neil Armstrong Reviewed-by: Boris Brezillon Reviewed-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++ 1 file c

[PATCH v5 08/11] drm/meson: dw-hdmi: stop enforcing input_bus_format

2020-03-04 Thread Neil Armstrong
To allow using formats from negotiation, stop enforcing input_bus_format in the private dw-plat-data struct. Signed-off-by: Neil Armstrong Reviewed-by: Boris Brezillon Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drive

[PATCH v5 10/11] drm/meson: vclk: add support for YUV420 setup

2020-03-04 Thread Neil Armstrong
This patch adds clocking support for the YUV420 output from the Amlogic Meson SoCs Video Processing Unit to the HDMI Controller. The YUV420 is obtained by generating a YUV444 pixel stream like the classic HDMI display modes, but then the Video Encoder output can be configured to down-sample the YU

[PATCH v5 01/11] drm/bridge: dw-hdmi: set mtmdsclock for deep color

2020-03-04 Thread Neil Armstrong
From: Jonas Karlman Configure the correct mtmdsclock for deep colors to prepare support for 10, 12 & 16bit output. Signed-off-by: Jonas Karlman Signed-off-by: Neil Armstrong Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 21 - 1 file changed,

[PATCH v5 00/11] drm/bridge: dw-hdmi: implement bus-format negotiation and YUV420 support

2020-03-04 Thread Neil Armstrong
Hi Philippe, Heiko, Maxime, Laurent, A bad negociation was detected on platforms not implementing a bridge on the encoder side, which has been fixed in this version. Could you check it doesn't break your platforms using dw-hdmi ? Especially patches 1-5. Thanks, Neil This patchset is based on Bo

[PATCH v5 02/11] drm/bridge: dw-hdmi: add max bpc connector property

2020-03-04 Thread Neil Armstrong
From: Jonas Karlman Add the max_bpc property to the dw-hdmi connector to prepare support for 10, 12 & 16bit output support. Signed-off-by: Jonas Karlman Signed-off-by: Neil Armstrong Reviewed-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8

[PATCH v5 06/11] drm/meson: venc: make drm_display_mode const

2020-03-04 Thread Neil Armstrong
Before switching to bridge funcs, make sure drm_display_mode is passed as const to the venc functions. Signed-off-by: Neil Armstrong Reviewed-by: Boris Brezillon Acked-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/meson/meson_venc.c | 2 +- drivers/gpu/drm/meson/meson_v

[PATCH v5 07/11] drm/meson: meson_dw_hdmi: add bridge and switch to drm_bridge_funcs

2020-03-04 Thread Neil Armstrong
Switch the dw-hdmi driver to drm_bridge_funcs by implementing a new local bridge, connecting it to the dw-hdmi bridge, then implement the atomic_get_input_bus_fmts/atomic_get_output_bus_fmts. Signed-off-by: Neil Armstrong Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 8

[PATCH v6 8/9] drm/vmwgfx: Introduce a huge page aligning TTM range manager

2020-03-04 Thread VMware
From: Thomas Hellstrom Using huge page-table entries requires that the physical address of the start of a buffer object is huge page size aligned. Make a special version of the TTM range manager that accomplishes this, but falls back to a smaller page size alignment (PUD->PMD, PMD->NORMAL) to avo

[PATCH v6 7/9] drm: Add a drm_get_unmapped_area() helper

2020-03-04 Thread VMware
From: Thomas Hellstrom Unaligned virtual addresses makes it unlikely that huge page-table entries can be used. So align virtual buffer object address huge page boundaries to the underlying physical address huge page boundaries taking buffer object sizes into account to determine when it might be

[PATCH v6 1/9] fs: Constify vma argument to vma_is_dax

2020-03-04 Thread VMware
From: Thomas Hellstrom The function is used by upcoming vma_is_special_huge() with which we want to use a const vma argument. Since for vma_is_dax() the vma argument is only dereferenced for reading, constify it. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A.

[PATCH v6 9/9] drm/vmwgfx: Hook up the helpers to align buffer objects

2020-03-04 Thread VMware
From: Thomas Hellstrom Start using the helpers that align buffer object user-space addresses and buffer object vram addresses to huge page boundaries. This is to improve the chances of allowing huge page-table entries. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kiri

[PATCH v6 5/9] drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-03-04 Thread VMware
From: Thomas Hellstrom Support huge (PMD-size and PUD-size) page-table entries by providing a huge_fault() callback. We still support private mappings and write-notify by splitting the huge page-table entries on write-access. Note that for huge page-faults to occur, either the kernel needs to be

[PATCH v6 3/9] mm: Split huge pages on write-notify or COW

2020-03-04 Thread VMware
From: Thomas Hellstrom The functions wp_huge_pmd() and wp_huge_pud() currently relies on the huge_fault() callback to split huge page table entries if needed. However for module users that requires export of the split_huge_xxx() functionality which may be undesired. Instead split pre-existing hug

[PATCH v6 6/9] drm/vmwgfx: Support huge page faults

2020-03-04 Thread VMware
From: Thomas Hellstrom With vmwgfx dirty-tracking we need a specialized huge_fault callback. Implement and hook it up. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christian König" Cc: Dan Williams S

[PATCH v6 4/9] mm: Add vmf_insert_pfn_xxx_prot() for huge page-table entries

2020-03-04 Thread VMware
From: Thomas Hellstrom For graphics drivers needing to modify the page-protection, add huge page-table entries counterparts to vmf_insert_pfn_prot(). Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christ

[PATCH v6 2/9] mm: Introduce vma_is_special_huge

2020-03-04 Thread VMware
From: Thomas Hellstrom For VM_PFNMAP and VM_MIXEDMAP vmas that want to support transhuge pages and -page table entries, introduce vma_is_special_huge() that takes the same codepaths as vma_is_dax(). The use of "special" follows the definition in memory.c, vm_normal_page(): "Special" mappings do

[PATCH v6 0/9] Huge page-table entries for TTM

2020-03-04 Thread VMware
In order to reduce CPU usage [1] and in theory TLB misses this patchset enables huge- and giant page-table entries for TTM and TTM-enabled graphics drivers. Patch 1 and 2 introduce a vma_is_special_huge() function to make the mm code take the same path as DAX when splitting huge- and giant page ta

Re: [PATCHv6,2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper

2020-03-04 Thread james qian wang (Arm Technology China)
On Tue, Mar 03, 2020 at 01:01:32PM +0100, Andrzej Pietrasiewicz wrote: > The new struct contains afbc-specific data. > > The new function can be used by drivers which support afbc to complete > the preparation of struct drm_afbc_framebuffer. It must be called after > allocating the said struct and

Re: [PATCHv6,1/6] drm/core: Allow drivers allocate a subclass of struct drm_framebuffer

2020-03-04 Thread james qian wang (Arm Technology China)
On Tue, Mar 03, 2020 at 01:01:31PM +0100, Andrzej Pietrasiewicz wrote: > Allow allocating a specialized version of struct drm_framebuffer > by moving the actual fb allocation out of drm_gem_fb_create_with_funcs(); > the respective functions names are adjusted to reflect that fact. > Please note, th

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

2020-03-04 Thread Mika Westerberg
Hi, On Tue, Mar 03, 2020 at 11:10:52AM +0100, Karol Herbst wrote: > Fixes state transitions of Nvidia Pascal GPUs from D3cold into higher device > states. I think it is good to explain bit more here why this fix is needed. > v2: convert to pci_dev quirk > put a proper technical explanation o

Re: [PATCH][next] drm: i915_drm.h: Replace zero-length array with flexible-array member

2020-03-04 Thread Jani Nikula
On Tue, 03 Mar 2020, "Gustavo A. R. Silva" wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: My earlier

Re: [PATCH][next] drm/i915: Replace zero-length array with flexible-array member

2020-03-04 Thread Jani Nikula
On Tue, 03 Mar 2020, "Gustavo A. R. Silva" wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct

Re: [PATCH 33/33] drm/panel-simple: Fix dotclock for LG ACX467AKM-7

2020-03-04 Thread Linus Walleij
On Mon, Mar 2, 2020 at 9:49 PM Jonathan Marek wrote: > This is a command mode panel and the the msm/mdp5 driver uses the > vrefresh field for the actual refresh rate, while the dotclock field is > used for the DSI clocks. The dotclock needed to be a bit higher than > necessary otherwise the panel

Re: [PATCH] RFC: dma-buf: Add an API for importing and exporting sync files

2020-03-04 Thread Christian König
Am 03.03.20 um 20:10 schrieb Jason Ekstrand: On Thu, Feb 27, 2020 at 2:28 AM Christian König wrote: [SNIP] However, I'm not sure what the best way is to do garbage collection on that so that we don't get an impossibly list of fence arrays. Exactly yes. That's also the reason why the dma_fence

Re: [PATCH v2 2/2] drm/virtio: add case for shmem objects in virtio_gpu_cleanup_object(..)

2020-03-04 Thread Gerd Hoffmann
Hi, > + drm_gem_shmem_free_object(&bo->base.base); > } > + > virtio_gpu_resource_id_put(vgdev, bo->hw_res_handle); use-after-free here. cheers, Gerd ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.f

Re: [virtio-dev] [PATCH v2 4/4] drm/virtio: Support virtgpu exported resources

2020-03-04 Thread Gerd Hoffmann
On Tue, Mar 03, 2020 at 11:42:22AM +0900, David Stevens wrote: > > cmd_p->hdr.ctx_id = > > > > Before this completion of this hypercall, this resource can be > > considered context local, while afterward it can be considered > > "exported". > > Maybe I'm misunderstanding render contexts, but expor

Re: [PATCH v2 4/4] drm/virtio: Support virtgpu exported resources

2020-03-04 Thread Gerd Hoffmann
Hi, > + if (vgdev->has_resource_assign_uuid) { > + spin_lock(&vgdev->resource_export_lock); > + if (bo->uuid_state == UUID_NOT_INITIALIZED) { > + bo->uuid_state = UUID_INITIALIZING; > + needs_init = true; > + } > +