Re: [PATCH v2] uapi/drm/drm_fourcc.h: Note on platform specificity for format modifiers

2020-05-07 Thread Daniel Vetter
On Wed, May 06, 2020 at 03:08:27PM +0300, Mika Kahola wrote: > Make an additional note on DRM format modifiers for x and y tiling. These > format modifiers are defined for BDW+ platforms and therefore definition > is not valid for older gens. This is due to address swizzling for tiled > surfaces is

Re: [PATCH v2 3/9] drm/i915/display/sdvo: Prefer drm_WARN* over WARN*

2020-05-07 Thread Jani Nikula
On Mon, 04 May 2020, Pankaj Bharadiya wrote: > struct drm_device specific drm_WARN* macros include device information > in the backtrace, so we know what device the warnings originate from. > > Prefer drm_WARN* over WARN* calls. > > changes since v1: > - Added dev_priv local variable and used it

Re: [PATCH -next] drm/ast: Make ast_primary_plane_helper_atomic_update static

2020-05-07 Thread Thomas Zimmermann
I'll add your patch to drm-misc-next. Thanks! Am 07.05.20 um 04:40 schrieb Samuel Zou: > Fix the following sparse warning: > > drivers/gpu/drm/ast/ast_mode.c:564:6: warning: > symbol 'ast_primary_plane_helper_atomic_update' > was not declared. Should it be static? > > Reported-by: Hulk Robot >

Re: [PATCH 09/36] drm/gem: fold drm_gem_object_put_unlocked and __drm_gem_object_put()

2020-05-07 Thread Daniel Vetter
On Thu, May 07, 2020 at 04:07:55PM +0100, Emil Velikov wrote: > From: Emil Velikov > > With earlier patch we removed the normal overhead so now we can lift > the helper to the header, folding it __drm_object_put. > > Signed-off-by: Emil Velikov > --- > drivers/gpu/drm/drm_gem.c

Re: [PATCH 10/36] drm/gem: add _locked suffix to drm_object_put

2020-05-07 Thread Daniel Vetter
On Thu, May 07, 2020 at 04:07:56PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Vast majority of DRM (core and drivers) are struct_mutex free. > > As such we have only a handful of cases where the locked helper should > be used. Make that stand out a little bit better. > > Done via the f

Re: [PATCH 36/36] drm/gem: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Thomas Zimmermann
Hi Emil, one suggestion for this patch: it seems preferable to merge this patch with patch 11, so that the whole gem core gets converted at once. Afterwards all those other patches convert the drivers. Finally, patch 36 would only remove the define of drm_gem_object_put_unlocked(). Best regards T

Re: [PATCH 11/36] drm/gem: add drm_object_put helper

2020-05-07 Thread Jani Nikula
On Thu, 07 May 2020, Emil Velikov wrote: > From: Emil Velikov > > Spelling out _unlocked for each and every driver is a annoying. > Especially if we consider how many drivers, do not know (or need to) > about the horror stories involving struct_mutex. > > Add helper, which will allow us to transi

Re: [PATCH 05/36] drm/doc: drop struct_mutex refernce for drm_gem_object_free

2020-05-07 Thread Daniel Vetter
On Thu, May 07, 2020 at 04:07:51PM +0100, Emil Velikov wrote: > From: Emil Velikov > > The comment that struct_mutex must be held is misleading. It is only > required when .gem_free_object() is used. > > Since that one is going with the next patches, drop the reference. > > Signed-off-by: Emil

Re: [PATCH 21/36] drm/mgag200: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Thomas Zimmermann
Hi Am 07.05.20 um 17:08 schrieb Emil Velikov: > From: Emil Velikov > > Spelling out _unlocked for each and every driver is a annoying. > Especially if we consider how many drivers, do not know (or need to) > about the horror stories involving struct_mutex. > > Just drop the suffix. It makes the

Re: [PATCH 04/36] drm/doc: drop struct_mutex references

2020-05-07 Thread Daniel Vetter
On Thu, May 07, 2020 at 04:07:50PM +0100, Emil Velikov wrote: > From: Emil Velikov > > There's little point in providing partial and ancient information about > the struct_mutex. Some drivers are using it, new ones should not. > > As-it this only provides for confusion. > > Signed-off-by: Emil

Re: [PATCH 03/36] drm/todo: mention i915 in the struct_mutex section

2020-05-07 Thread Daniel Vetter
On Thu, May 07, 2020 at 04:07:49PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > i915 uses the _unlocked version of the grm_gem_object API. Yet makes an > extensive use of the struct_mutex. > > Did not check how exactly it all work though. Reviewed-by:

Re: [PATCH] RFC: i915: Drop relocation support on Gen12+

2020-05-07 Thread Joonas Lahtinen
Quoting Dave Airlie (2020-05-07 21:27:27) > On Fri, 8 May 2020 at 01:44, Chris Wilson wrote: > > > > Quoting Jason Ekstrand (2020-05-07 16:36:00) > > > The Vulkan driver in Mesa for Intel hardware never uses relocations if > > > it's running on a version of i915 that supports at least softpin whic

[PULL] drm-intel-fixes

2020-05-07 Thread Rodrigo Vivi
Hi Dave and Daniel, Here goes drm-intel-fixes-2020-05-07: - Fixes on execlist to avoid GPU hang situation (Chris) - Fixes couple deadlocks (Chris) - Timeslice preemption fixes (Chris) - Fix Display Port interrupt handling on Tiger Lake (Imre) - Reduce debug noise around Frame Buffer Compression (

[git pull] drm fixes for 5.7-rc5

2020-05-07 Thread Dave Airlie
Hey Linus, Another pretty normal week, didn't get any i915 fixes yet, so next week I'd expect double the usual i915, but otherwise a bunch of amdgpu and some scattered other fixes. Dave. drm-fixes-2020-05-08: drm fixes for 5.7-rc5 hdcp: - fix HDCP regression amdgpu: - Runtime PM fixes - DC fix

linux-next: manual merge of the amdgpu tree with the pm tree

2020-05-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c between commit: e07515563d01 ("PM: sleep: core: Rename DPM_FLAG_NEVER_SKIP") from the pm tree and commit: 500bd19a7e5d ("drm/amdgpu: only set DPM_FLAG_NEVER_SKIP for legacy ATP

linux-next: build failure after merge of the drm tree

2020-05-07 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/asm-generic/bug.h:19, from arch/x86/include/asm/bug.h:83, from include/linux/bug.h:5, from include/linux/seq_file.h

linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2020-05-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/gem/i915_gem_domain.c between commit: 47bf7b7a7151 ("drm/i915/gem: Remove object_is_locked assertion from unpin_from_display_plane") from the drm-intel-fixes tree and commit: 9da0ea09639f ("drm/i91

Re: [PATCH v11 14/14] drm/i915/psr: Use new DP VSC SDP compute routine on PSR

2020-05-07 Thread kbuild test robot
Hi Gwan-gyeong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next next-20200507] [cannot apply to tegra-drm/drm/tegra/for-next linus/master v5.7-rc4] [if your patch

[Bug 207619] New: Screen corrupt in Wayland and kmscube, like wrong stride / pitch, on Radeon X1400 RV515

2020-05-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=207619 Bug ID: 207619 Summary: Screen corrupt in Wayland and kmscube, like wrong stride / pitch, on Radeon X1400 RV515 Product: Drivers Version: 2.5 Kernel Version: 5.7-rc4 Ha

[PATCH V3.1] kmap: Consolidate kmap_prot definitions

2020-05-07 Thread ira . weiny
From: Ira Weiny Most architectures define kmap_prot to be PAGE_KERNEL. Let sparc and xtensa define there own and define PAGE_KERNEL as the default if not overridden. Suggested-by: Christoph Hellwig Signed-off-by: Ira Weiny --- Changes from V3: Fix semicolon in macro Changes from V2:

Re: [PATCH V3 15/15] kmap: Consolidate kmap_prot definitions

2020-05-07 Thread Ira Weiny
On Thu, May 07, 2020 at 01:53:07PM -0700, Andrew Morton wrote: > On Thu, 7 May 2020 08:00:03 -0700 ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > Most architectures define kmap_prot to be PAGE_KERNEL. > > > > Let sparc and xtensa define there own and define PAGE_KERNEL as the > > def

Re: [PATCH V3 13/15] parisc/kmap: Remove duplicate kmap code

2020-05-07 Thread Ira Weiny
On Thu, May 07, 2020 at 01:52:58PM -0700, Andrew Morton wrote: > On Thu, 7 May 2020 08:00:01 -0700 ira.we...@intel.com wrote: > > > parisc reimplements the kmap calls except to flush it's dcache. This is > > arguably an abuse of kmap but regardless it is messy and confusing. > > > > Remove the

Re: [PATCH v2 2/2] dt-bindings: drm/bridge: ti-sn65dsi86: Improve the yaml validation

2020-05-07 Thread Doug Anderson
Hi, On Wed, May 6, 2020 at 2:03 PM Douglas Anderson wrote: > > This patch adds the following checks to the yaml: > - Remapping of the eDP output lanes is now limited to the subset of > remappings that the hardware supports. > - No more additional properties can be added under 'ports'. > > This

[PATCH v5 6/6] arm64: dts: sdm845: Add "no-hpd" to sn65dsi86 on cheza

2020-05-07 Thread Douglas Anderson
We don't have the HPD line hooked up to the bridge chip. Add it as suggested in the patch ("dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd"). NOTE: this patch isn't expected to have any effect but just keeps us cleaner for the future. Currently the driver in Linux just assumes that nobod

[PATCH v5 3/6] drm/panel-simple: Support hpd-gpios for delaying prepare()

2020-05-07 Thread Douglas Anderson
People use panel-simple when they have panels that are builtin to their device. In these cases the HPD (Hot Plug Detect) signal isn't really used for hotplugging devices but instead is used for power sequencing. Panel timing diagrams (especially for eDP panels) usually have the HPD signal in them

[PATCH v5 4/6] dt-bindings: drm/bridge: ti-sn65dsi86: Convert to yaml

2020-05-07 Thread Douglas Anderson
This moves the bindings over, based a lot on toshiba,tc358768.yaml. Unless there's someone known to be better, I've set the maintainer in the yaml as the first person to submit bindings. Signed-off-by: Douglas Anderson --- I removed Stephen's review tag on v5 since I squashed in a bunch of other

[PATCH v5 5/6] dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd

2020-05-07 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has a dedicated hardware HPD (Hot Plug Detect) pin on it, but it's mostly useless for eDP because of excessive debouncing in hardware. Specifically there is no way to disable the debouncing and for eDP debouncing hurts you because HPD is just used for k

[PATCH v5 2/6] dt-bindings: display: Add hpd-gpios to panel-common bindings

2020-05-07 Thread Douglas Anderson
In the cases where there is no connector in a system there's no great place to put "hpd-gpios". As per discussion [1] the best place to put it is in the panel. Add this to the device tree bindings. [1] https://lore.kernel.org/r/20200417180819.ge5...@pendragon.ideasonboard.com Signed-off-by: Dou

[PATCH v5 0/6] drm: Prepare to use a GPIO on ti-sn65dsi86 for Hot Plug Detect

2020-05-07 Thread Douglas Anderson
As talked about in commit c2bfc223882d ("drm/bridge: ti-sn65dsi86: Remove the mystery delay"), the normal HPD pin on ti-sn65dsi86 is kinda useless, at least for embedded DisplayPort (eDP). However, despite the fact that the actual HPD pin on the bridge is mostly useless for eDP, the concept of H

[PATCH v5 1/6] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

2020-05-07 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has 4 pins on it that can be used as GPIOs in a system. Each pin can be configured as input, output, or a special function for the bridge chip. These are: - GPIO1: SUSPEND Input - GPIO2: DSIA VSYNC - GPIO3: DSIA HSYNC or VSYNC - GPIO4: PWM Let's expos

Re: [PATCH V3 15/15] kmap: Consolidate kmap_prot definitions

2020-05-07 Thread Andrew Morton
On Thu, 7 May 2020 08:00:03 -0700 ira.we...@intel.com wrote: > From: Ira Weiny > > Most architectures define kmap_prot to be PAGE_KERNEL. > > Let sparc and xtensa define there own and define PAGE_KERNEL as the > default if not overridden. > checkpatch considered useful ;) From: Andrew Mort

Re: [PATCH V3 13/15] parisc/kmap: Remove duplicate kmap code

2020-05-07 Thread Andrew Morton
On Thu, 7 May 2020 08:00:01 -0700 ira.we...@intel.com wrote: > parisc reimplements the kmap calls except to flush it's dcache. This is > arguably an abuse of kmap but regardless it is messy and confusing. > > Remove the duplicate code and have parisc define > ARCH_HAS_FLUSH_ON_KUNMAP for a kunm

Re: [PATCH v5 2/2] drm: Add support for the LogiCVC display controller

2020-05-07 Thread Paul Kocialkowski
Hi, On Mon 04 May 20, 13:45, Daniel Vetter wrote: > On Thu, Apr 30, 2020 at 09:10:07PM +0200, Paul Kocialkowski wrote: > > Hi Daniel, > > > > On Fri 03 Apr 20, 13:04, Daniel Vetter wrote: > > > On Fri, Apr 03, 2020 at 11:36:17AM +0200, Paul Kocialkowski wrote: > > > > Introduces a driver for the

[PATCH] drm/exynos: remove redundant initialization to variable 'start'

2020-05-07 Thread Colin King
From: Colin Ian King The variable 'start' 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/exynos/exyn

Re: [PATCH v6 2/3] drm: Add support for the LogiCVC display controller

2020-05-07 Thread Paul Kocialkowski
Hi Emil, Thanks for the review! On Mon 04 May 20, 14:28, Emil Velikov wrote: > Just had a casual quick look for custom KMS properties, since new > drivers made that mistake in the past. > Thanks for not including any o/ Yeah I made sure not to include any, I know it easily gets very problematic

Re: [PATCH] MAINTAINERS: Remove me from amdgpu maintainers

2020-05-07 Thread Alex Deucher
Applied. Thanks! Alex On Thu, May 7, 2020 at 2:45 AM Christian König wrote: > > Am 07.05.20 um 04:02 schrieb Chunming Zhou: > > Glad to spend time on kernel driver in past years. > > I've moved to new focus in umd and couldn't commit > > enough time to discussions. > > > > Signed-off-by: Chunmi

Re: [v4 PATCH 0/2] Add support for ASUS Z00T TM5P5 NT35596 panel

2020-05-07 Thread Sam Ravnborg
Hi Konrad. On Wed, May 06, 2020 at 11:09:54PM +0200, Konrad Dybcio wrote: > changes since v3: > - fix dt-bindings issue > > changes since v2: > - fix Kconfig indentation > > changes since v1: > - make `backlight_properties props` constant > - a couple of line breaks > - change name and compatibl

Re: [PATCH -next] drm: panel: add MODULE_LICENSE to panel-visionox-rm69299.c

2020-05-07 Thread Sam Ravnborg
rm69299.o > > Signed-off-by: Randy Dunlap > Cc: Thierry Reding > Cc: Sam Ravnborg > Cc: dri-devel@lists.freedesktop.org Thanks. Added Fixes: tag and applied to drm-misc-next. Sam > --- > drivers/gpu/drm/panel/panel-visionox-rm69299.c |1 + > 1 file changed

Re: [PATCH -next] drm/amd/display: remove duplicate headers

2020-05-07 Thread Alex Deucher
Applied. Thanks! Alex On Thu, May 7, 2020 at 11:27 AM Chen Zhou wrote: > > Remove duplicate headers which are included twice. > > Signed-off-by: Chen Zhou > --- > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/displ

Re: [PATCH -next] drm/amd/dc: Remove a useless comparison

2020-05-07 Thread Alex Deucher
On Thu, May 7, 2020 at 9:35 AM ChenTao wrote: > > Fix the following warning: > > 'en' is uint32_t and can never be negative. > > drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:132:10: warning: > comparison of unsigned expression < 0 is always false [-Wtype-limits] > if ((en < GPIO_DDC_LI

Re: [PATCH] drm/amd/display: remove variable "result" in dcn20_patch_unknown_plane_state()

2020-05-07 Thread Alex Deucher
Applied thanks! Alex On Thu, May 7, 2020 at 9:35 AM Jason Yan wrote: > > Fix the following coccicheck warning: > > drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c:3216:16-22: > Unneeded variable: "result". Return "DC_OK" on line 3229 > > Signed-off-by: Jason Yan > --- > drivers/gpu/drm/a

Re: [PATCH v2] drm/amd/amdgpu: cleanup coding style a bit

2020-05-07 Thread Alex Deucher
On Thu, May 7, 2020 at 5:22 AM Christian König wrote: > > Am 07.05.20 um 11:13 schrieb Bernard Zhao: > > There is DEVICE_ATTR mechanism in separate attribute define. > > So this change is to use attr array, also use > > sysfs_create_files in init function & sysfs_remove_files in > > fini function.

Re: [PATCH 1/9] drm/vblank: Add vblank works

2020-05-07 Thread Lyude Paul
Hey guys! Sorry this took me a little while to get to, but I was finally able to sit down for a bit and do a thorough investigation on the latency issues here to figure out if it's noise or not. I did this investigation with the plain work_struct implementation, the original kthread implementation,

Re: [PATCH] RFC: i915: Drop relocation support on Gen12+

2020-05-07 Thread Dave Airlie
On Fri, 8 May 2020 at 01:44, Chris Wilson wrote: > > Quoting Jason Ekstrand (2020-05-07 16:36:00) > > The Vulkan driver in Mesa for Intel hardware never uses relocations if > > it's running on a version of i915 that supports at least softpin which > > all versions of i915 supporting Gen12 do. On

Re: [PATCH 00/36] drm: Fareless gem_free_object

2020-05-07 Thread Sam Ravnborg
Hi Emil. On Thu, May 07, 2020 at 04:07:46PM +0100, Emil Velikov wrote: > Hi all, > > Recently I had a look at the new dmabuf AMDGPU implementation. > > Seemingly it was using the wrong drm_gem_object_put API. Namely the > locked one, even though the driver is struct_mutex free. > > Upon checking

Re: [PATCH 36/36] drm/gem: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Sam Ravnborg
Hi Emil. On Thu, May 07, 2020 at 04:08:22PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Spelling out _unlocked for each and every driver is a annoying. > Especially if we consider how many drivers, do not know (or need to) > about the horror stories involving struct_mutex. > > Just drop

Re: [PATCH 06/36] drm/amdgpu: use the unlocked drm_gem_object_put

2020-05-07 Thread Sam Ravnborg
Hi Emil. On Thu, May 07, 2020 at 04:07:52PM +0100, Emil Velikov wrote: > From: Emil Velikov > > The driver does not hold struct_mutex, thus using the locked version of > the helper is incorrect. > > Cc: Alex Deucher > Cc: Christian König > Cc: amd-...@lists.freedesktop.org > Fixes: a39414716c

Re: [PATCH 04/36] drm/doc: drop struct_mutex references

2020-05-07 Thread Sam Ravnborg
Hi Emil. On Thu, May 07, 2020 at 04:07:50PM +0100, Emil Velikov wrote: > From: Emil Velikov > > There's little point in providing partial and ancient information about > the struct_mutex. Some drivers are using it, new ones should not. > > As-it this only provides for confusion. > > Signed-off

Re: [PATCH 02/36] drm/gem: use _unlocked reference in drm_gem_objects_lookup docs

2020-05-07 Thread Sam Ravnborg
Hi Emil. On Thu, May 07, 2020 at 04:07:48PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Use the drm_gem_object_put_unlocked in the documentation for > drm_gem_objects_lookup. The locked version of the helper should be used > solely by people who know exactly what they are doing. > > Sho

Re: [PATCH v2 89/91] drm/vc4: hdmi: Support the BCM2711 HDMI controllers

2020-05-07 Thread Stefan Wahren
Hi Maxime, Am 24.04.20 um 17:35 schrieb Maxime Ripard: > Now that the driver is ready for it, let's bring in the HDMI controllers > variants for the BCM2711. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 276 +- > drivers/gpu/drm/vc4/vc4_hdmi.h

Re: [PATCH 08/36] drm: remove drm_driver::gem_free_object

2020-05-07 Thread Thomas Zimmermann
Am 07.05.20 um 17:07 schrieb Emil Velikov: > From: Emil Velikov > > No drivers set the callback, so remove it all together. > > Signed-off-by: Emil Velikov Reviewed-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem.c | 22 +++--- > include/drm/drm_drv.h | 8 --

Re: [PATCH 07/36] drm/gma500: Use lockless gem BO free callback

2020-05-07 Thread Thomas Zimmermann
Hi Am 07.05.20 um 17:07 schrieb Emil Velikov: > From: Emil Velikov > > No dev->struct_mutex anywhere to be seen. > > Cc: Patrik Jakobsson > Cc: Daniel Vetter > Signed-off-by: Emil Velikov > --- > drivers/gpu/drm/gma500/psb_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

[Bug 207613] Won't boot

2020-05-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=207613 --- Comment #2 from Michael Fox (m...@trentu.ca) --- (In reply to Alex Deucher from comment #1) > Did this system ever work? If so when and can you bisect? Yes, it works well with the 4.15 kernel. And I did bisect to the extent of finding out th

Re: [PATCH 3/3] drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline

2020-05-07 Thread Emil Velikov
On Thu, 7 May 2020 at 13:29, Vinay Simha B N wrote: > > Emil, > > Reply inline > > On Tue, 5 May 2020 at 9:35 PM, Emil Velikov wrote: >> >> From: Emil Velikov >> >> The helper uses the MIPI_DCS_SET_TEAR_SCANLINE, although it's currently >> using the generic write. This does not look right. >> >>

Re: [PATCH AUTOSEL 5.6 33/50] drm/amdgpu: bump version for invalidate L2 before SDMA IBs

2020-05-07 Thread Michel Dänzer
On 2020-05-07 4:27 p.m., Sasha Levin wrote: > From: Marek Olšák > > [ Upstream commit 9017a4897a20658f010bebea825262963c10afa6 ] > > This fixes GPU hangs due to cache coherency issues. > Bump the driver version. Split out from the original patch. > > Signed-off-by: Marek Olšák > Reviewed-by: C

Re: [PATCH] RFC: i915: Drop relocation support on Gen12+

2020-05-07 Thread Jason Ekstrand
On Thu, May 7, 2020 at 10:44 AM Chris Wilson wrote: > > Quoting Jason Ekstrand (2020-05-07 16:36:00) > > The Vulkan driver in Mesa for Intel hardware never uses relocations if > > it's running on a version of i915 that supports at least softpin which > > all versions of i915 supporting Gen12 do.

Re: [PATCH] RFC: i915: Drop relocation support on Gen12+

2020-05-07 Thread Chris Wilson
Quoting Jason Ekstrand (2020-05-07 16:36:00) > The Vulkan driver in Mesa for Intel hardware never uses relocations if > it's running on a version of i915 that supports at least softpin which > all versions of i915 supporting Gen12 do. On the OpenGL side, Gen12 is > only supported by iris which nev

[PATCH] RFC: i915: Drop relocation support on Gen12+

2020-05-07 Thread Jason Ekstrand
The Vulkan driver in Mesa for Intel hardware never uses relocations if it's running on a version of i915 that supports at least softpin which all versions of i915 supporting Gen12 do. On the OpenGL side, Gen12 is only supported by iris which never uses relocations. The older i965 driver in Mesa d

[Bug 207613] Won't boot

2020-05-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=207613 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

Re: [PATCH 01/36] drm: remove unused drm_gem.h include

2020-05-07 Thread Thomas Zimmermann
Am 07.05.20 um 17:07 schrieb Emil Velikov: > From: Emil Velikov > > Signed-off-by: Emil Velikov Reviewed-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_vm.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c > index 56197ae0b2f9.

[PATCH 30/36] drm/v3d: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 28/36] drm/rockchip: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 27/36] drm/radeon: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 32/36] drm/vgem: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 18/36] drm/i915: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 22/36] drm/msm: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 31/36] drm/vc4: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 17/36] drm/gma500: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 15/36] drm/etnaviv: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 21/36] drm/mgag200: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 10/36] drm/gem: add _locked suffix to drm_object_put

2020-05-07 Thread Emil Velikov
From: Emil Velikov Vast majority of DRM (core and drivers) are struct_mutex free. As such we have only a handful of cases where the locked helper should be used. Make that stand out a little bit better. Done via the following script: __from=drm_gem_object_put __to=drm_gem_object_put_locked fo

[PATCH 05/36] drm/doc: drop struct_mutex refernce for drm_gem_object_free

2020-05-07 Thread Emil Velikov
From: Emil Velikov The comment that struct_mutex must be held is misleading. It is only required when .gem_free_object() is used. Since that one is going with the next patches, drop the reference. Signed-off-by: Emil Velikov --- drivers/gpu/drm/drm_gem.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 34/36] drm/vkms: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 12/36] drm/amd: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 35/36] drm/xen: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 29/36] drm/tegra: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 20/36] drm/mediatek: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 13/36] drm/arm: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 06/36] drm/amdgpu: use the unlocked drm_gem_object_put

2020-05-07 Thread Emil Velikov
From: Emil Velikov The driver does not hold struct_mutex, thus using the locked version of the helper is incorrect. Cc: Alex Deucher Cc: Christian König Cc: amd-...@lists.freedesktop.org Fixes: a39414716ca0 ("drm/amdgpu: add independent DMA-buf import v9"): Signed-off-by: Emil Velikov --- dr

[PATCH 23/36] drm/nouveau: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 11/36] drm/gem: add drm_object_put helper

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Add helper, which will allow us to transition the drivers one by one, dropping the suffix. Sig

[PATCH 09/36] drm/gem: fold drm_gem_object_put_unlocked and __drm_gem_object_put()

2020-05-07 Thread Emil Velikov
From: Emil Velikov With earlier patch we removed the normal overhead so now we can lift the helper to the header, folding it __drm_object_put. Signed-off-by: Emil Velikov --- drivers/gpu/drm/drm_gem.c | 19 --- drivers/gpu/drm/i915/gem/i915_gem_object.h | 2 +-

[PATCH 25/36] drm/panfrost: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 24/36] drm/omapdrm: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 14/36] drm/armada: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 08/36] drm: remove drm_driver::gem_free_object

2020-05-07 Thread Emil Velikov
From: Emil Velikov No drivers set the callback, so remove it all together. Signed-off-by: Emil Velikov --- drivers/gpu/drm/drm_gem.c | 22 +++--- include/drm/drm_drv.h | 8 include/drm/drm_gem.h | 5 +++-- 3 files changed, 6 insertions(+), 29 deletions(-) di

[PATCH 16/36] drm/exynos: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 33/36] drm/virtio: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 19/36] drm/lima: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 26/36] drm/qxl: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 04/36] drm/doc: drop struct_mutex references

2020-05-07 Thread Emil Velikov
From: Emil Velikov There's little point in providing partial and ancient information about the struct_mutex. Some drivers are using it, new ones should not. As-it this only provides for confusion. Signed-off-by: Emil Velikov --- Documentation/gpu/drm-mm.rst | 7 ++- 1 file changed, 2 inse

[PATCH 36/36] drm/gem: remove _unlocked suffix in drm_object_put_unlocked

2020-05-07 Thread Emil Velikov
From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem

[PATCH 07/36] drm/gma500: Use lockless gem BO free callback

2020-05-07 Thread Emil Velikov
From: Emil Velikov No dev->struct_mutex anywhere to be seen. Cc: Patrik Jakobsson Cc: Daniel Vetter Signed-off-by: Emil Velikov --- drivers/gpu/drm/gma500/psb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/p

[PATCH 00/36] drm: Fareless gem_free_object

2020-05-07 Thread Emil Velikov
Hi all, Recently I had a look at the new dmabuf AMDGPU implementation. Seemingly it was using the wrong drm_gem_object_put API. Namely the locked one, even though the driver is struct_mutex free. Upon checking with the documentation, I've noticed it's a bit misleading so I've went ahead and: -

[PATCH 03/36] drm/todo: mention i915 in the struct_mutex section

2020-05-07 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- i915 uses the _unlocked version of the grm_gem_object API. Yet makes an extensive use of the struct_mutex. Did not check how exactly it all work though. --- Documentation/gpu/todo.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 02/36] drm/gem: use _unlocked reference in drm_gem_objects_lookup docs

2020-05-07 Thread Emil Velikov
From: Emil Velikov Use the drm_gem_object_put_unlocked in the documentation for drm_gem_objects_lookup. The locked version of the helper should be used solely by people who know exactly what they are doing. Should prevent issues like ones adddressed with the next patch. Signed-off-by: Emil Veli

[PATCH 01/36] drm: remove unused drm_gem.h include

2020-05-07 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- drivers/gpu/drm/drm_vm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 56197ae0b2f9..954baa8a2a8f 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c @@ -51,7 +51,6

[PATCH V3 07/15] arch/kunmap_atomic: Consolidate duplicate code

2020-05-07 Thread ira . weiny
From: Ira Weiny Every single architecture (including !CONFIG_HIGHMEM) calls... pagefault_enable(); preempt_enable(); ... before returning from __kunmap_atomic(). Lift this code into the kunmap_atomic() macro. While we are at it rename __kunmap_atomic() to kunmap_atomic_high()

[PATCH V3 09/15] arch/kmap: Don't hard code kmap_prot values

2020-05-07 Thread ira . weiny
From: Ira Weiny To support kmap_atomic_prot() on all architectures each arch must support protections passed in to them. Change csky, mips, nds32 and xtensa to use their global constant kmap_prot rather than a hard coded value which was equal. Reviewed-by: Christoph Hellwig Signed-off-by: Ira

[PATCH V3 00/15] Remove duplicated kmap code

2020-05-07 Thread ira . weiny
From: Ira Weiny The kmap infrastructure has been copied almost verbatim to every architecture. This series consolidates obvious duplicated code by defining core functions which call into the architectures only when needed. Some of the k[un]map_atomic() implementations have some similarities but

  1   2   3   >