Re: [PATCH 3/5] drm/panel: Add attach/detach callbacks

2019-06-11 Thread dbasehore .
On Tue, Jun 11, 2019 at 1:57 AM Daniel Vetter wrote: > > On Mon, Jun 10, 2019 at 09:03:48PM -0700, Derek Basehore wrote: > > This adds the attach/detach callbacks. These are for setting up > > internal state for the connector/panel pair that can't be done at > > probe (since the connector doesn't

[PATCH i-g-t 2/2] tests/panfrost: Fix couple of things so submit tests work on T720

2019-06-11 Thread Tomeu Vizoso
Signed-off-by: Tomeu Vizoso --- tests/panfrost_submit.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/tests/panfrost_submit.c b/tests/panfrost_submit.c index 5770dc24a42b..13ce85b73d9e 100644 --- a/tests/panfrost_submit.c +++ b/tests/panfrost_subm

[PATCH 09/13] drm/i2c: tda998x: clean up tda998x_configure_audio()

2019-06-11 Thread Russell King
tda998x_configure_audio() is called via some paths where an error return is meaningless, and as a result of moving the audio routing code, this function no longer returns any errors, so let's make it void. We can also make tda998x_write_aif() return void as well. tda998x_configure_audio() also onl

[PATCH 08/13] drm/i2c: tda998x: move audio routing configuration

2019-06-11 Thread Russell King
Move the mux and clocking selection out of tda998x_configure_audio() into the parent functions, so we can validate this when parameters are set outside of the audio mutex. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 78 +++ 1 file chang

[PATCH 13/13] drm/i2c: tda998x: improve correctness of quantisation range

2019-06-11 Thread Russell King
CEA-861 says: "A Source shall not send a non-zero Q value that does not correspond to the default RGB Quantization Range for the transmitted Picture unless the Sink indicates support for the Q bit in a Video Capabilities Data Block." Make TDA998x compliant by using the helper to set the quantisati

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-11 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 07:09:46PM +0200, Andrey Konovalov wrote: > On Tue, Jun 11, 2019 at 4:57 PM Catalin Marinas > wrote: > > > > On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > > > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > > > diff --git a/arch/a

[PATCH i-g-t 1/2] lib/panfrost: Add support for SFBD to igt_panfrost_trivial_job

2019-06-11 Thread Tomeu Vizoso
T720 GPUs and older don't have support for MFBD, so use the SFBD structs instead. We don't know yet how to hang the GPU with SFBD descriptors, so for now skip that test. Signed-off-by: Tomeu Vizoso --- lib/igt_panfrost.c | 71 +- lib/igt_panfrost.h |

Re: [PATCH v16 16/16] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-06-11 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 07:18:04PM +0200, Andrey Konovalov wrote: > On Tue, Jun 11, 2019 at 5:01 PM Catalin Marinas > wrote: > > static void *tag_ptr(void *ptr) > > { > > static int tagged_addr_err = 1; > > unsigned long tag = 0; > > > > if (tagged_addr_err == 1) > >

[PATCH 02/13] drm/i2c: tda998x: implement different I2S flavours

2019-06-11 Thread Russell King
Add support for the left and right justified I2S formats as well as the more tranditional "Philips" I2S format. Tested-by: Peter Ujfalusi Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 53 +-- 1 file changed, 34 insertions(+), 19 deletion

[PATCH 01/13] drm/i2c: tda998x: introduce tda998x_audio_settings

2019-06-11 Thread Russell King
Introduce a structure to hold the register values to be programmed while programming the TDA998x audio settings. This is currently a stub structure, which will be populated in subsequent commits. When we initialise this from the platform data, only do so if there is a valid audio format specifica

Re: [PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread Nadav Amit
> On Jun 11, 2019, at 5:24 AM, Thomas Hellström (VMware) > wrote: > > From: Thomas Hellstrom > [ snip ] > +/** > + * apply_pt_wrprotect - Leaf pte callback to write-protect a pte > + * @pte: Pointer to the pte > + * @token: Page table token, see apply_to_pfn_range() > + * @addr: The virtual

Re: [PATCH v2 hmm 02/11] mm/hmm: Use hmm_mirror not mm as an argument for hmm_range_register

2019-06-11 Thread Jason Gunthorpe
On Sat, Jun 08, 2019 at 01:54:25AM -0700, Christoph Hellwig wrote: > FYI, I very much disagree with the direction this is moving. > > struct hmm_mirror literally is a trivial duplication of the > mmu_notifiers. All these drivers should just use the mmu_notifiers > directly for the mirroring part

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-11 Thread Catalin Marinas
On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/include/asm/uaccess.h > > b/arch/arm64/include/asm/uaccess.h > > index e5d5f31c6d36..9164ecb5feca 100644 > > --- a/arch/arm64/include/asm

[PATCH 10/13] drm/i2c: tda998x: get rid of params in audio settings

2019-06-11 Thread Russell King
Get rid of the tda998x_audio_params structure in audio_settings, which is now just used for platform data. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 43 +++ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/d

Re: [PATCH v16 16/16] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-06-11 Thread Catalin Marinas
On Mon, Jun 03, 2019 at 06:55:18PM +0200, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > This patch adds a simple test, that calls

Re: [PATCH v16 16/16] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-06-11 Thread Andrey Konovalov
On Tue, Jun 11, 2019 at 5:01 PM Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:18PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00) as

[PATCH 03/13] drm/i2c: tda998x: improve programming of audio divisor

2019-06-11 Thread Russell King
Improve the selection of the audio clock divisor so that more modes and sample rates work. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 44 +-- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_d

Re: [PATCH v16 08/16] fs, arm64: untag user pointers in copy_mount_options

2019-06-11 Thread Andrey Konovalov
On Sat, Jun 8, 2019 at 6:02 AM Kees Cook wrote: > > On Mon, Jun 03, 2019 at 06:55:10PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00) as syscal

[PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread VMware
From: Thomas Hellstrom Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in conjunc

Re: [PATCH v2 hmm 00/11] Various revisions from a locking/code review

2019-06-11 Thread Jason Gunthorpe
On Thu, Jun 06, 2019 at 03:44:27PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > For hmm.git: > > This patch series arised out of discussions with Jerome when looking at the > ODP changes, particularly informed by use after free races we have already > found and fixed in the ODP code

[PATCH v4 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-06-11 Thread VMware
From: Thomas Hellstrom Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting

Re: [PATCH v16 04/16] mm: untag user pointers in do_pages_move

2019-06-11 Thread Khalid Aziz
On 6/3/19 10:55 AM, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > do_pages_move() is used in the implementation of the move_pages

[PATCH 04/13] drm/i2c: tda998x: derive CTS_N value from aclk sample rate ratio

2019-06-11 Thread Russell King
The TDA998x derives the CTS value using the supplied I2S bit clock (ACLK, in TDA998x parlence) rather than 128·fs. TDA998x uses two constants named m and k in the CTS generator such that we have this relationship between the I2S source ACLK and the sink fs: 128·fs_sink = ACLK·m / k Where

[PATCH 07/13] drm/i2c: tda998x: configure both fields of AIP_CLKSEL together

2019-06-11 Thread Russell King
We can configure both fields of the AIP_CLKSEL register with a single write, there is no need to delay the setting of the CTS reference. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/gpu

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-11 Thread Andrey Konovalov
On Tue, Jun 11, 2019 at 4:57 PM Catalin Marinas wrote: > > On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > > diff --git a/arch/arm64/include/asm/uaccess.h > > > b/arch/arm64/include/asm/uaccess.h > > > inde

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-11 Thread Vincenzo Frascino
Hi Catalin, ... > -8< > From 7c624777a4e545522dec1b34e60f0229cb2bd59f Mon Sep 17 00:00:00 2001 > From: Catalin Marinas > Date: Tue, 11 Jun 2019 13:03:38 +0100 > Subject: [PATCH] arm64: Introduce prctl() options to control the tagged user > addresses ABI > > It is not de

Re: [PATCH 2/2] drm: add fallback override/firmware EDID modes workaround

2019-06-11 Thread Paul Wise
On Mon, 2019-06-10 at 12:32 +0300, Jani Nikula wrote: > Right, I've added a call to drm_connector_update_edid_property() in v2 > to address this issue. Confirmed this fixed the EDID override data. > Can't think of why this would happen; the backtrace might offer clues. Unfortunately I wasn't ab

Re: [PATCH v16 05/16] arm64: untag user pointers passed to memory syscalls

2019-06-11 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 05:35:31PM +0200, Andrey Konovalov wrote: > On Mon, Jun 10, 2019 at 4:28 PM Catalin Marinas > wrote: > > On Mon, Jun 03, 2019 at 06:55:07PM +0200, Andrey Konovalov wrote: > > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > > pass tagged use

[PATCH 11/13] drm/i2c: tda998x: add support for pixel repeated modes

2019-06-11 Thread Russell King
TDA998x has no support for pixel repeated modes, and the code notes this as a "TODO" item. The implementation appears to be relatively simple, so lets add it. We need to calculate the serializer clock divisor based on the TMDS clock rate, set the repeat control, and set the serializer pixel repea

[PATCH 05/13] drm/i2c: tda998x: store audio port enable in settings

2019-06-11 Thread Russell King
Store the audio port enable register in the audio settings structure, which can never be zero for a valid audio configuration. Use this to signal whether we have audio configured, rather than AFMT_UNUSED. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 18 +++---

[PATCH 06/13] drm/i2c: tda998x: index audio port enable config by route type

2019-06-11 Thread Russell King
Rather than searching an array for the audio format (which we control) implement indexing by route type. This avoids iterating over the array in several locations. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 57 --- 1 file changed, 29

Re: [PATCH v2] drm: add fallback override/firmware EDID modes workaround

2019-06-11 Thread Paul Wise
On Mon, 2019-06-10 at 12:30 +0300, Jani Nikula wrote: > We've moved the override and firmware EDID (simply "override EDID" from > now on) handling to the low level drm_do_get_edid() function in order to > transparently use the override throughout the stack. The idea is that > you get the override E

Re: [PATCH v16 05/16] arm64: untag user pointers passed to memory syscalls

2019-06-11 Thread Andrey Konovalov
On Mon, Jun 10, 2019 at 4:28 PM Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:07PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00) as

Re: [PATCH v16 03/16] lib, arm64: untag user pointers in strn*_user

2019-06-11 Thread Khalid Aziz
On 6/3/19 10:55 AM, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > strncpy_from_user and strnlen_user accept user addresses as arg

[PATCH v4 2/9] mm: Add an apply_to_pfn_range interface

2019-06-11 Thread VMware
From: Thomas Hellstrom This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function beco

[PATCH 12/13] drm/i2c: tda998x: add bridge timing information

2019-06-11 Thread Russell King
Add bridge timing information so that bridge users can figure out the timing parameters that are necessary for TDA998x. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c

[PATCH v5 5/9] drm/ttm: TTM fault handler helpers

2019-06-11 Thread VMware
From: Thomas Hellstrom With the vmwgfx dirty tracking, the default TTM fault handler is not completely sufficient (vmwgfx need to modify the vma->vm_flags member, and also needs to restrict the number of prefaults). We also want to replicate the new ttm_bo_vm_reserve() functionality So start tu

[PATCH v5 0/9] Emulated coherent graphics memory

2019-06-11 Thread VMware
Planning to merge this through the drm/vmwgfx tree soon, so if there are any objections, please speak up. Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver to provide coherent graphics memory, meaning that the GPU sees any content written to the coherent memory on the next GPU o

[PATCH v5 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-06-11 Thread VMware
From: Thomas Hellstrom Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting

[PATCH v5 4/9] drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct

2019-06-11 Thread VMware
From: Thomas Hellstrom Add a pointer to the struct vm_operations_struct in the bo_device, and assign that pointer to the default value currently used. The driver can then optionally modify that pointer and the new value can be used for each new vma created. Cc: "Christian König" Signed-off-by

[PATCH v5 2/9] mm: Add an apply_to_pfn_range interface

2019-06-11 Thread VMware
From: Thomas Hellstrom This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function beco

[PATCH v5 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread VMware
From: Thomas Hellstrom Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in conjunc

[PATCH v5 6/9] drm/vmwgfx: Implement an infrastructure for write-coherent resources

2019-06-11 Thread VMware
From: Thomas Hellstrom This infrastructure will, for coherent resources, make sure that from the user-space point of view, data written by the CPU is immediately automatically available to the GPU at resource validation time. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drive

[PATCH v5 8/9] drm/vmwgfx: Implement an infrastructure for read-coherent resources

2019-06-11 Thread VMware
From: Thomas Hellstrom Similar to write-coherent resources, make sure that from the user-space point of view, GPU rendered contents is automatically available for reading by the CPU. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |

[PATCH v5 9/9] drm/vmwgfx: Add surface dirty-tracking callbacks

2019-06-11 Thread VMware
From: Thomas Hellstrom Add the callbacks necessary to implement emulated coherent memory for surfaces. Add a flag to the gb_surface_create ioctl to indicate that surface memory should be coherent. Also bump the drm minor version to signal the availability of coherent surfaces. Signed-off-by: Tho

[PATCH v5 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-06-11 Thread VMware
From: Thomas Hellstrom With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat ---

Re: [PATCH 00/33] fbcon notifier begone v3!

2019-06-11 Thread Lee Jones
On Tue, 11 Jun 2019, Daniel Thompson wrote: > On Fri, Jun 07, 2019 at 12:07:55PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 6/6/19 9:38 AM, Daniel Vetter wrote: > > > > >> - Hash out actual merge plan. > > > > > > I'd like to stuff this into drm.git somehow, I guess topic branch works > > > t

[PATCH 1/2] drm/vmwgfx: Use the backdoor port if the HB port is not available

2019-06-11 Thread VMware
From: Thomas Hellstrom The HB port may not be available for various reasons. Either it has been disabled by a config option or by the hypervisor for other reasons. In that case, make sure we have a backup plan and use the backdoor port instead with a performance penalty. Cc: sta...@vger.kernel.o

[PATCH 2/2] drm/vmwgfx: Honor the sg list segment size limitation

2019-06-11 Thread VMware
From: Thomas Hellstrom When building sg tables, honor the device sg list segment size limitation. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu

[Bug 203865] New: Crash in nouveau when loading game Big Pharma.

2019-06-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203865 Bug ID: 203865 Summary: Crash in nouveau when loading game Big Pharma. Product: Drivers Version: 2.5 Kernel Version: 5.0.2 Hardware: All OS: Linux Tree: Mainl

[Bug 110749] [Vega 11] [amdgpu retry page fault VM_L2_PROTECTION_FAULT_STATUS] System lock up during playing Steam version of Saints Row 3

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110749 --- Comment #4 from Cyrax --- Created attachment 144516 --> https://bugs.freedesktop.org/attachment.cgi?id=144516&action=edit dmesg event umr dumps as usual -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 110822] [Bisected]Booting with kernel version 5.1.0 or higher on RX 580 hangs

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110822 --- Comment #18 from Gobinda Joy --- (In reply to b6khqjqov4 from comment #17) > (In reply to Gobinda Joy from comment #16) > > This doesn't seems like the same bug. For instance, in my case the whole > > boot process hangs check the attached lo

[PATCH] video: backlight: Replace old GPIO APIs with GPIO Consumer APIs for sky81542-backlight driver

2019-06-11 Thread Shobhit Kukreti
Port the sky81452-backlight driver to adhere to new gpio descriptor based APIs. Modified the file sky81452-backlight.c and sky81452-backlight.h. The gpio descriptor property in device tree should be "sky81452-en-gpios" Removed unnecessary header files "linux/gpio.h" and "linux/of_gpio.h". Signed-

Re: [PATCH] drm/i915/gvt: remove duplicate entry of trace

2019-06-11 Thread Zhenyu Wang
On 2019.05.26 13:26:33 +0530, Hariprasad Kelam wrote: > Remove duplicate include of trace.h > > Issue identified by includecheck > > Signed-off-by: Hariprasad Kelam > --- > drivers/gpu/drm/i915/gvt/trace_points.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gvt/

[Bug 203627] [Regression] Boot fails with linux-firmware 20190514

2019-06-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203627 --- Comment #5 from Aleksandr Mezin (mezin.alexan...@gmail.com) --- (In reply to Aleksandr Mezin from comment #2) > vega10_sos.bin > > Copying that file from previous firmware release into /lib/firmware/amdgpu > makes the system boot again with 4

[PATCH v2] drm/nouveau/kms/gf119-: add ctm property support

2019-06-11 Thread Ilia Mirkin
This adds support on GF119:GV100 (exclusive) for CTM (aka CSC). Signed-off-by: Ilia Mirkin --- v1 -> v2: - ctm -> csc - mark csc.valid = false when there is no ctm property drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 ++ drivers/gpu/drm/nouveau/dispnv50/base907c.c | 65 +

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-11 Thread james qian wang (Arm Technology China)
On Tue, Jun 11, 2019 at 02:30:38PM +0200, Daniel Vetter wrote: > On Tue, Jun 11, 2019 at 11:13:45AM +, Lowry Li (Arm Technology China) > wrote: > > From: "Lowry Li (Arm Technology China)" > > > > The komeda internal resources (pipelines) are shared between crtcs, > > and resources release by

linux-next: manual merge of the drm-misc tree with the amdgpu tree

2019-06-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/amd/display/dc/dce/dce_audio.c between commit: c7c7192c56d2 ("drm/amd/display: add audio related regs") from the amdgpu tree and commit: 4fc4dca8320e ("drm/amd: drop use of drmp.h in os_types.h") f

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #9 from Richard Thier --- So these does not seem to happen at any time: /* Emit clear packets. */ r300_emit_gpu_flush(r300, r300->gpu_flush.size, r300->gpu_flush.state); r300->gpu_flush.dirty = FALSE;

[PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-11 Thread Nicolin Chen
Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") added a support of caching the sgt pointer into an attach pointer to let users reuse the sgt pointer without another mapping. However, it might not totally work as most of dma-buf callers are doing attach() and map_attachment() b

[PATCH 2/3] gpu: ipu-v3: image-convert: Fix input bytesperline for packed formats

2019-06-11 Thread Steve Longerbeam
The input bytesperline calculation for packed pixel formats was incorrect. The min/max clamping values must be multiplied by the packed bits-per-pixel. This was causing corrupted converted images when the input format was RGB4 (probably also other input packed formats). Fixes: d966e23d61a2c ("gpu:

[PATCH 3/3] gpu: ipu-v3: image-convert: Fix image downsize coefficients

2019-06-11 Thread Steve Longerbeam
The output of the IC downsizer unit in both dimensions must be <= 1024 before being passed to the IC resizer unit. This was causing corrupted images when: input_dim > 1024, and input_dim / 2 < output_dim < input_dim Some broken examples were 1920x1080 -> 1024x768 and 1920x1080 -> 1280x1080. Fixe

[PATCH 1/3] gpu: ipu-v3: image-convert: Fix input bytesperline width/height align

2019-06-11 Thread Steve Longerbeam
The output width and height alignment values were being used in the input bytesperline calculation. Fix by separating local vars w_align and h_align into w_align_in, h_align_in, w_align_out, and h_align_out. Fixes: d966e23d61a2c ("gpu: ipu-v3: image-convert: fix bytesperline adjustment") Signed-o

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #8 from Richard Thier --- I think I see a bug happening here and we are not emitting the relevant things. A bit tired now for the night... -- You are receiving this mail because: You are the assignee for the bug.__

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #7 from Richard Thier --- Created attachment 144515 --> https://bugs.freedesktop.org/attachment.cgi?id=144515&action=edit Log output for "added logging" patch As you can see the "KUL-D" and the "KULAKVA-n" log messages never gets

[Bug 110781] Radeon: heavy r300 performance drop regression between 11.x and 19.x

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110781 Marek Olšák changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #6 from Richard Thier --- Created attachment 144514 --> https://bugs.freedesktop.org/attachment.cgi?id=144514&action=edit Added logging - magically works but slow from logging! This is what I am running with now. There are no othe

Re: [PATCH 4/5] drm/connector: Split out orientation quirk detection

2019-06-11 Thread dbasehore .
On Tue, Jun 11, 2019 at 1:54 AM Hans de Goede wrote: > > Hi, > > On 11-06-19 10:08, Jani Nikula wrote: > > On Mon, 10 Jun 2019, Derek Basehore wrote: > >> This removes the orientation quirk detection from the code to add > >> an orientation property to a panel. This is used only for legacy x86 >

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Alexei Starovoitov
On Tue, Jun 11, 2019 at 5:00 PM Shyam Saini wrote: > > Currently, there are 3 different macros, namely sizeof_field, SIZEOF_FIELD > and FIELD_SIZEOF which are used to calculate the size of a member of > structure, so to bring uniformity in entire kernel source tree lets use > FIELD_SIZEOF and repl

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #5 from Richard Thier --- Hi! Was it looking similar? Was it solved for your case? Btw I just started to have insights on what the hardware does, but might need to work a bit in the wine field because of the good weather so if I am

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #4 from cosiek...@o2.pl --- Hello you all! Couple of years ago I did tests HyperZ https://bugs.freedesktop.org/show_bug.cgi?id=37724 Maybe you will find this link useful! -- You are receiving this mail because: You are the assignee

[Bug 110897] HyperZ is broken for r300 (bad z for some micro and macrotiles?)

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110897 --- Comment #3 from Richard Thier --- H... I must have made a measurement error as looking at the code the small patch of mine cannot be slower than before it when not using HYPERZ... -- You are receiving this mail because: You are the ass

[Bug 110781] Radeon: heavy r300 performance drop regression between 11.x and 19.x

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110781 --- Comment #67 from Rui Salvaterra --- (In reply to Richard Thier from comment #66) > Is there any indicator to look for? Like shader files on disk at some places > or near the runned binary or current dir or whatever with this or that name? Ye

Re: [1/2] dt-bindngs: display: panel: Add BOE tv101wum-nl6 panel bindings

2019-06-11 Thread Rob Herring
On Sat, Jun 08, 2019 at 03:02:29PM +0800, Jitao Shi wrote: > Add documentation for boe tv101wum-n16 panel. Typo in the subject and checkpatch complains about trailing whitespace. > > Signed-off-by: Jitao Shi > --- > .../display/panel/boe,tv101wum-nl6.txt| 34 +++ > 1 fi

[Bug 110844] AMDGPU Resets and blackscreens couple minutes into any game regardless of wine/proton/native - sound keeps playing

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110844 --- Comment #7 from nathaniel.h...@protonmail.com --- Created attachment 144513 --> https://bugs.freedesktop.org/attachment.cgi?id=144513&action=edit A xorg.log.old from last boot before i reproduced the issue -- You are receiving this mail b

[Bug 110844] AMDGPU Resets and blackscreens couple minutes into any game regardless of wine/proton/native - sound keeps playing

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110844 --- Comment #8 from nathaniel.h...@protonmail.com --- I also attached a xorg.log.old hoping that might help. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mail

Re: [PATCH v6 4/6] dt-bindings: display: hdmi-connector: Support DDC bus enable

2019-06-11 Thread Ondřej Jirman
On Tue, Jun 11, 2019 at 03:52:06PM -0600, Rob Herring wrote: > On Mon, 27 May 2019 18:22:35 +0200, meg...@megous.com wrote: > > From: Ondrej Jirman > > > > Some Allwinner SoC using boards (Orange Pi 3 for example) need to enable > > on-board voltage shifting logic for the DDC bus using a gpio to

Re: [PATCH 1/2] dt-bindings: pwm-backlight: Add 'max-brightness' property

2019-06-11 Thread Matthias Kaehlcke
Hi Jacek, On Tue, Jun 11, 2019 at 10:02:23PM +0200, Jacek Anaszewski wrote: > Hi Matthias, > > On 6/11/19 1:37 AM, Matthias Kaehlcke wrote: > > Add an optional 'max-brightness' property, which is used to specify > > the number of brightness levels (max-brightness + 1) when the node > > has no 'br

Re: [PATCH 2/5] dt-bindings: display/panel: Expand rotation documentation

2019-06-11 Thread dbasehore .
On Tue, Jun 11, 2019 at 8:25 AM Rob Herring wrote: > > On Mon, Jun 10, 2019 at 10:03 PM Derek Basehore > wrote: > > > > This adds to the rotation documentation to explain how drivers should > > use the property and gives an example of the property in a devicetree > > node. > > > > Signed-off-by:

Re: [PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread Nadav Amit
> On Jun 11, 2019, at 2:20 PM, Thomas Hellström (VMware) > wrote: > > On 6/11/19 9:10 PM, Nadav Amit wrote: >>> On Jun 11, 2019, at 11:26 AM, Thomas Hellström (VMware) >>> wrote: >>> >>> Hi, Nadav, >>> >>> On 6/11/19 7:21 PM, Nadav Amit wrote: > On Jun 11, 2019, at 5:24 AM, Thomas Hellst

Re: [PATCH 2/2] backlight: pwm_bl: Get number of brightness levels for CIE 1931 from the device tree

2019-06-11 Thread Matthias Kaehlcke
Hi Pavel, On Tue, Jun 11, 2019 at 12:18:43PM +0200, Pavel Machek wrote: > On Mon 2019-06-10 16:37:39, Matthias Kaehlcke wrote: > > Commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED > > linearly to human eye") uses pwm_period / hweight32(pwm_period) as > > as heuristic to determine

Re: [PATCH v5 1/2] dt-bindings: Add doc for the Ingenic JZ47xx LCD controller driver

2019-06-11 Thread Rob Herring
On Mon, 3 Jun 2019 17:23:30 +0200, Paul Cercueil wrote: > Add documentation for the devicetree bindings of the LCD controller present in > the JZ47xx family of SoCs from Ingenic. > > Signed-off-by: Paul Cercueil > Tested-by: Artur Rojek > --- > > Notes: > v2: Remove ingenic,panel property.

[Bug 110844] AMDGPU Resets and blackscreens couple minutes into any game regardless of wine/proton/native - sound keeps playing

2019-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110844 --- Comment #6 from nathaniel.h...@protonmail.com --- (In reply to Alex Deucher from comment #4) > You said it started happening for week or two ago. What component(s) did > you update at that time? Ive been trying to fix my issue a bit more in

Re: [PATCH v6 4/6] dt-bindings: display: hdmi-connector: Support DDC bus enable

2019-06-11 Thread Rob Herring
On Mon, 27 May 2019 18:22:35 +0200, meg...@megous.com wrote: > From: Ondrej Jirman > > Some Allwinner SoC using boards (Orange Pi 3 for example) need to enable > on-board voltage shifting logic for the DDC bus using a gpio to be able > to access DDC bus. Use ddc-en-gpios property on the hdmi-conn

Re: [PATCH 1/2] dt-bindings: pwm-backlight: Add 'max-brightness' property

2019-06-11 Thread Matthias Kaehlcke
Hi Thierry, On Tue, Jun 11, 2019 at 12:28:51PM +0200, Thierry Reding wrote: > On Mon, Jun 10, 2019 at 04:37:38PM -0700, Matthias Kaehlcke wrote: > > Add an optional 'max-brightness' property, which is used to specify > > the number of brightness levels (max-brightness + 1) when the node > > has no

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Andreas Dilger
On Jun 11, 2019, at 3:09 PM, Andrew Morton wrote: > > On Tue, 11 Jun 2019 15:00:10 -0600 Andreas Dilger wrote: > to FIELD_SIZEOF >>> >>> As Alexey has pointed out, C structs and unions don't have fields - >>> they have members. So this is an opportunity to switch everything to >>> a new

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Shyam Saini
Hi Andrew, > > On Tue, 11 Jun 2019 15:00:10 -0600 Andreas Dilger wrote: > > > >> to FIELD_SIZEOF > > > > > > As Alexey has pointed out, C structs and unions don't have fields - > > > they have members. So this is an opportunity to switch everything to > > > a new member_sizeof(). > > > > > > Wha

Re: [PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread VMware
On 6/11/19 9:10 PM, Nadav Amit wrote: On Jun 11, 2019, at 11:26 AM, Thomas Hellström (VMware) wrote: Hi, Nadav, On 6/11/19 7:21 PM, Nadav Amit wrote: On Jun 11, 2019, at 5:24 AM, Thomas Hellström (VMware) wrote: From: Thomas Hellstrom [ snip ] +/** + * apply_pt_wrprotect - Leaf pte ca

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Andrew Morton
On Tue, 11 Jun 2019 15:00:10 -0600 Andreas Dilger wrote: > >> to FIELD_SIZEOF > > > > As Alexey has pointed out, C structs and unions don't have fields - > > they have members. So this is an opportunity to switch everything to > > a new member_sizeof(). > > > > What do people think of that and

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Shyam Saini
Hi Kees, Cc'ing William Kucharski, > On Wed, Jun 12, 2019 at 01:08:36AM +0530, Shyam Saini wrote: > > In favour of FIELD_SIZEOF, this patch also deprecates other two similar > > macros sizeof_field and SIZEOF_FIELD. > > > > For code compatibility reason, retain sizeof_field macro as a wrapper mac

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Andreas Dilger
On Jun 11, 2019, at 2:48 PM, Andrew Morton wrote: > > On Wed, 12 Jun 2019 01:08:36 +0530 Shyam Saini > wrote: > >> Currently, there are 3 different macros, namely sizeof_field, SIZEOF_FIELD >> and FIELD_SIZEOF which are used to calculate the size of a member of >> structure, so to bring unifor

Re: [PATCH v5 05/11] drm: Add helpers to kick off self refresh mode in drivers

2019-06-11 Thread Sam Ravnborg
Hi Sean. Small things here and there. Did not stare at this long enough to understand the code, but added some feedback anyway. Sam > > diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile > index d36feb4a62330..9d630a28a7880 100644 > --- a/drivers/gpu/drm/Makefile > +++ b/d

[PATCH v6 02/11] drm: Add drm_atomic_get_(old|new)_connector_for_encoder() helpers

2019-06-11 Thread Sean Paul
From: Laurent Pinchart Add functions to the atomic core to retrieve the old and new connectors associated with an encoder in a drm_atomic_state. This is useful for encoders and bridges that need to access the connector, for instance for the drm_display_info. The CRTC associated with the encoder

[PATCH v6 01/11] drm: Add atomic variants of enable/disable to encoder helper funcs

2019-06-11 Thread Sean Paul
From: Sean Paul This patch adds atomic_enable and atomic_disable callbacks to the encoder helpers. This will allow encoders to make informed decisions in their start-up/shutdown based on the committed state. Aside from the new hooks, this patch also introduces the new signature for .atomic_* fun

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Andrew Morton
On Wed, 12 Jun 2019 01:08:36 +0530 Shyam Saini wrote: > Currently, there are 3 different macros, namely sizeof_field, SIZEOF_FIELD > and FIELD_SIZEOF which are used to calculate the size of a member of > structure, so to bring uniformity in entire kernel source tree lets use > FIELD_SIZEOF and r

Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro

2019-06-11 Thread Kees Cook
On Wed, Jun 12, 2019 at 01:08:36AM +0530, Shyam Saini wrote: > In favour of FIELD_SIZEOF, this patch also deprecates other two similar > macros sizeof_field and SIZEOF_FIELD. > > For code compatibility reason, retain sizeof_field macro as a wrapper macro > to FIELD_SIZEOF Can you explain this par

Re: [PATCH v2 5/9] drm/ast: Pin framebuffer BO during dirty update

2019-06-11 Thread Sam Ravnborg
Hi Thomas. On Tue, Jun 11, 2019 at 03:03:40PM +0200, Thomas Zimmermann wrote: > Another explicit lock operation of a GEM VRAM BO is located in AST's > framebuffer update code. Instead of locking the BO, we pin it to wherever > it is. > > v2: > * update with pin flag of 0 > > Signed-off-by:

Re: [PATCH v4 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-06-11 Thread Brendan Higgins
On Tue, Jun 11, 2019 at 11:50 AM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-06-11 10:58:30) > > On Fri, Jun 07, 2019 at 12:00:47PM -0700, Stephen Boyd wrote: > > > Quoting Iurii Zaikin (2019-06-05 18:29:42) > > > > On Fri, May 17, 2019 at 11:22 AM Stephen Boyd wrote: > > > > > > > > >

Re: [PATCH v5 01/11] drm: Add atomic variants of enable/disable to encoder helper funcs

2019-06-11 Thread Sean Paul
On Tue, Jun 11, 2019 at 08:53:52PM +0200, Sam Ravnborg wrote: > Hi Sean. > > Nits below. > > > > > + /** > > +* @atomic_disable: > > +* > ... > > +* > > +* This callback is a variant of @disable that provides the atomic state > > +* to the driver. It takes priority over @d

Re: [PATCH v3 2/2] drm/rockchip: dw_hdmi: Handle suspend/resume

2019-06-11 Thread Sean Paul
On Fri, Jun 07, 2019 at 02:06:03PM -0400, Sean Paul wrote: > On Thu, Jun 06, 2019 at 03:58:21PM -0700, Doug Anderson wrote: > > Hi, > > > > On Thu, Jun 6, 2019 at 9:42 AM Sean Paul wrote: > > > > > > On Tue, Jun 04, 2019 at 01:42:07PM -0700, Douglas Anderson wrote: > > > > On Rockchip rk3288-based

  1   2   3   >