[PATCH v2 1/2] documentation: Update #nouveau IRC channel network

2021-05-30 Thread Alyssa Rosenzweig
Like many free software projects, Nouveau recently moved from Freenode to OFTC. Update the reference. Signed-off-by: Alyssa Rosenzweig Cc: David Airlie Cc: Daniel Vetter Cc: linux-ker...@vger.kernel.org --- Documentation/driver-api/thermal/nouveau_thermal.rst | 2 +- 1 file changed, 1 insertio

[PATCH v2 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Alyssa Rosenzweig
Like many free software projects, freedesktop.org issued a non-binding recommendation for projects to migrate from Freenode to OFTC [1]. As such, freedesktop.org entries in the MAINTAINERS file are out-of-date as the respective channels have moved. Update the file to point to the right network. v2

Re: [PATCH 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Hector Martin
On 30/05/2021 20.01, Lukas Wunner wrote: On Sat, May 29, 2021 at 10:16:38AM -0400, Alyssa Rosenzweig wrote: --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1651,7 +1651,7 @@ L:linux-arm-ker...@lists.infradead.org (moderated for non-subscribers) S:Maintained W:https://asahilinux.org

[PATCH -next] drm/nouveau/svm: Remove set but not used variable 'ret'

2021-05-30 Thread Baokun Li
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/nouveau/nouveau_svm.c: In function 'nouveau_pfns_map': drivers/gpu/drm/nouveau/nouveau_svm.c:814:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Baokun Li ---

[PATCH V2] drm/amd/display: fix gcc set but not used warning of variable 'link_bandwidth_kbps'

2021-05-30 Thread Yu Kuai
apply_dsc_policy_for_stream() will only be used if 'CONFIG_DRM_AMD_DC_DCN' is enabled, thus the function can be declared inside the ifdefine marco. Fix gcc warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5577:11: warning: variable ‘link_bandwidth_kbps’ set but not used [-Wunu

Re: [PATCH v2] fb_defio: Remove custom address_space_operations

2021-05-30 Thread Nathan Chancellor
On 5/30/2021 2:14 PM, Matthew Wilcox wrote: On Sun, May 30, 2021 at 12:13:05PM -0700, Nathan Chancellor wrote: Hi Matthew, On Wed, Mar 10, 2021 at 06:55:30PM +, Matthew Wilcox (Oracle) wrote: There's no need to give the page an address_space. Leaving the page->mapping as NULL will cause t

Re: [PATCH v2] fb_defio: Remove custom address_space_operations

2021-05-30 Thread Matthew Wilcox
On Sun, May 30, 2021 at 12:13:05PM -0700, Nathan Chancellor wrote: > Hi Matthew, > > On Wed, Mar 10, 2021 at 06:55:30PM +, Matthew Wilcox (Oracle) wrote: > > There's no need to give the page an address_space. Leaving the > > page->mapping as NULL will cause the VM to handle set_page_dirty() >

[PATCH v1] drm/tegra: Correct DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT

2021-05-30 Thread Dmitry Osipenko
The format modifier is 64bit, while DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT uses BIT() macro that is 32bit on ARM32. The (modifier &= ~DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT) doesn't work as expected on ARM32 and tegra_fb_get_tiling() fails for the tiled formats on 32bit Tegra because modifier mask isn't

[PATCH] backlight: ktd253: Stabilize backlight

2021-05-30 Thread Linus Walleij
Remove interrupt disablement during backlight setting. It is way to dangerous and makes platforms instable by having it miss vblank IRQs leading to the graphics derailing. The code is using ndelay() which is not available on platforms such as ARM and will result in 32 * udelay(1) which is substant

Re: [v5 2/5] drm/panel-simple: Support DP AUX backlight

2021-05-30 Thread kernel test robot
-add-a-new-panel-ATNA33XC20/20210530-235810 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-a006-20210530 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) reproduce (this is a

Re: [v5 1/5] drm/panel: add basic DP AUX backlight support

2021-05-30 Thread kernel test robot
-add-a-new-panel-ATNA33XC20/20210530-235810 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: arm64-randconfig-r005-20210530 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) reproduce (this is a

Re: [v5 1/5] drm/panel: add basic DP AUX backlight support

2021-05-30 Thread kernel test robot
-add-a-new-panel-ATNA33XC20/20210530-235810 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: openrisc-randconfig-r002-20210530 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-te

Re: [PATCH 06/13] drm/ttm: flip over the range manager to self allocated nodes

2021-05-30 Thread Christian König
Hi Thomas, Am 29.05.21 um 17:48 schrieb Thomas Hellström (Intel): Hi, Christian, On 4/30/21 11:25 AM, Christian König wrote: Start with the range manager to make the resource object the base class for the allocated nodes. While at it cleanup a lot of the code around that. Could you briefly

Re: ttm_resource_manager::use_tt

2021-05-30 Thread Christian König
Am 29.05.21 um 17:23 schrieb Thomas Hellström (Intel): On 5/28/21 9:30 PM, Zack Rusin wrote: On 5/22/21 3:13 AM, Christian König wrote: Hi Zack, IIRC that was for the VMW_PL_GMR type, wasn't it? As far as I have seen that backend was just giving out unique numbers and it looked questiona

[v5 4/5] dt-bindings: display: simple: Add Samsung ATNA33XC20

2021-05-30 Thread Rajeev Nandan
Add Samsung 13.3" FHD eDP AMOLED panel. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson --- (no changes since v4) Changes in v4: - New Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/b

[v5 5/5] drm/panel-simple: Add Samsung ATNA33XC20

2021-05-30 Thread Rajeev Nandan
Add Samsung 13.3" FHD eDP AMOLED panel. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson --- Changes in v4: - New Changes in v5: - Remove "uses_dpcd_backlight" property, not required now. (Douglas) drivers/gpu/drm/panel/panel-simple.c | 33 + 1 file

[v5 0/5] drm: Support basic DPCD backlight in panel-simple and add a new panel ATNA33XC20

2021-05-30 Thread Rajeev Nandan
This series adds the support for the eDP panel that needs the backlight controlling over the DP AUX channel using DPCD registers of the panel as per the VESA's standard. This series also adds support for the Samsung eDP AMOLED panel that needs DP AUX to control the backlight, and introduces new de

[v5 1/5] drm/panel: add basic DP AUX backlight support

2021-05-30 Thread Rajeev Nandan
Some panels support backlight control over DP AUX channel using VESA's standard backlight control interface. Using new DRM eDP backlight helpers, add support to create and register a backlight for those panels in drm_panel to simplify the panel drivers. The panel driver with access to "struct drm_

[v5 3/5] drm/panel-simple: Support for delays between GPIO & regulator

2021-05-30 Thread Rajeev Nandan
Some panels datasheets may specify a delay between the enable GPIO and the regulator. Support this in panel-simple. Signed-off-by: Rajeev Nandan --- Changes in v4: - New Changes in v5: - Update description (Douglas) - Warn if "power_to_enable" or "disable_to_power_off" is non-zero and panel->e

[v5 2/5] drm/panel-simple: Support DP AUX backlight

2021-05-30 Thread Rajeev Nandan
If there is no backlight specified in the device tree and the panel has access to the DP AUX channel then create a DP AUX backlight if supported by the panel. Signed-off-by: Rajeev Nandan --- This patch depends on [1] (drm/panel: panel-simple: Stash DP AUX bus; allow using it for DDC) and the pr

Re: [RFC 2/3] drm/atomic: Call dma_fence_boost() when we've missed a vblank

2021-05-30 Thread Rob Clark
On Thu, May 20, 2021 at 9:29 AM Daniel Vetter wrote: > > On Wed, May 19, 2021 at 11:38:53AM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Signed-off-by: Rob Clark > > --- > > drivers/gpu/drm/drm_atomic_helper.c | 11 +++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/dr

Re: [PATCH v6 01/14] gpu: host1x: Add DMA fence implementation

2021-05-30 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mikko-Perttunen/TegraDRM-UAPI/20210530-205239 base: git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next config: arm-randc

[PATCH v6 09/14] drm/tegra: Implement new UAPI

2021-05-30 Thread Mikko Perttunen
Implement the non-submission parts of the new UAPI, including channel management and memory mapping. The UAPI is under the CONFIG_DRM_TEGRA_STAGING config flag for now. Signed-off-by: Mikko Perttunen --- v6: * Whitespace fixes * Tell userspace if engine is cache coherent when opening a channel

[PATCH v6 11/14] drm/tegra: Implement syncpoint wait UAPI

2021-05-30 Thread Mikko Perttunen
Implement new syncpoint wait UAPI. This is different from the legacy one in taking an absolute timestamp in line with modern DRM conventions. Signed-off-by: Mikko Perttunen --- v6: - New patch --- drivers/gpu/drm/tegra/drm.c | 2 ++ drivers/gpu/drm/tegra/uapi.c | 22 ++ dri

[PATCH v6 02/14] gpu: host1x: Add no-recovery mode

2021-05-30 Thread Mikko Perttunen
Add a new property for jobs to enable or disable recovery i.e. CPU increments of syncpoints to max value on job timeout. This allows for a more solid model for hanged jobs, where userspace doesn't need to guess if a syncpoint increment happened because the job completed, or because job timeout was

[PATCH v6 03/14] gpu: host1x: Add job release callback

2021-05-30 Thread Mikko Perttunen
Add a callback field to the job structure, to be called just before the job is to be freed. This allows the job's submitter to clean up any of its own state, like decrement runtime PM refcounts. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/job.c | 3 +++ include/linux/host1x.h | 4 +++

[PATCH v6 06/14] drm/tegra: Add new UAPI to header

2021-05-30 Thread Mikko Perttunen
Update the tegra_drm.h UAPI header, adding the new proposed UAPI. The old staging UAPI is left in for now, with minor modification to avoid name collisions. Signed-off-by: Mikko Perttunen --- v6: * Fix comment * Add syncpoint allocation/freeing IOCTLs, use syncpoint ID instead of syncpoint FD *

[PATCH v6 04/14] gpu: host1x: Add support for syncpoint waits in CDMA pushbuffer

2021-05-30 Thread Mikko Perttunen
Add support for inserting syncpoint waits in the CDMA pushbuffer. These waits need to be done in HOST1X class, while gather submitted by the application execute in engine class. Support is added by converting the gather list of job into a command list that can include both gathers and waits. When

[PATCH v6 08/14] drm/tegra: Allocate per-engine channel in core code

2021-05-30 Thread Mikko Perttunen
To avoid code duplication, allocate the per-engine shared channel in the core code instead. This is the usual channel that all jobs are submitted to when MLOCKing is not in use. Once MLOCKs are implemented on Host1x side, we can also update this to avoid allocating a shared channel when MLOCKs are

[PATCH v6 01/14] gpu: host1x: Add DMA fence implementation

2021-05-30 Thread Mikko Perttunen
Add an implementation of dma_fences based on syncpoints. Syncpoint interrupts are used to signal fences. Additionally, after software signaling has been enabled, a 30 second timeout is started. If the syncpoint threshold is not reached within this period, the fence is signalled with an -ETIMEDOUT e

[PATCH v6 12/14] drm/tegra: Implement job submission part of new UAPI

2021-05-30 Thread Mikko Perttunen
Implement the job submission IOCTL with a minimum feature set. Signed-off-by: Mikko Perttunen --- v6: * Remove sgt bypass path in gather_bo - this would cause cache maintenance to be skipped and is unnecessary in general. * Changes related to moving to using syncpoint IDs * Add syncobj relate

[PATCH v6 14/14] drm/tegra: Bump driver version

2021-05-30 Thread Mikko Perttunen
Bump driver version to 1.0.0 to allow userspace to detect availability of new interfaces. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 59f04431cae

[PATCH v6 10/14] drm/tegra: Implement syncpoint management UAPI

2021-05-30 Thread Mikko Perttunen
Implement TegraDRM IOCTLs for allocating and freeing syncpoints. Signed-off-by: Mikko Perttunen --- v6: - New patch --- drivers/gpu/drm/tegra/drm.c | 5 drivers/gpu/drm/tegra/uapi.c | 56 ++-- drivers/gpu/drm/tegra/uapi.h | 5 3 files changed, 64 inse

[PATCH v6 00/14] TegraDRM UAPI

2021-05-30 Thread Mikko Perttunen
Hi all, here's the sixth revision of the TegraDRM UAPI proposal. The biggest change is the removal of the /dev/host1x device. Syncpoints are now allocated directly through the TegraDRM API. Direct userspace fence interfaces have been removed as there is currently no upstream use for them. Otherwis

[PATCH v6 05/14] drm/tegra: Extract tegra_gem_lookup

2021-05-30 Thread Mikko Perttunen
The static function host1x_bo_lookup in drm.c is also useful elsewhere. Extract it as tegra_gem_lookup in gem.c. Signed-off-by: Mikko Perttunen --- v6: - New patch --- drivers/gpu/drm/tegra/drm.c | 20 +++- drivers/gpu/drm/tegra/gem.c | 13 + drivers/gpu/drm/tegra/gem

[PATCH v6 13/14] drm/tegra: Add job firewall

2021-05-30 Thread Mikko Perttunen
Add a firewall that validates jobs before submission to ensure they don't do anything they aren't allowed to do, like accessing memory they should not access. The firewall is functionality-wise a copy of the firewall already implemented in gpu/host1x. It is copied here as it makes more sense for i

[PATCH v6 07/14] drm/tegra: Boot VIC during runtime PM resume

2021-05-30 Thread Mikko Perttunen
With the new UAPI implementation, engines are powered on and off when there are active jobs, and the core code handles channel allocation. To accommodate that, boot the engine as part of runtime PM instead of using the open_channel callback, which is not used by the new submit path. Signed-off-by:

Re: [PATCH 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Lukas Wunner
On Sat, May 29, 2021 at 10:16:38AM -0400, Alyssa Rosenzweig wrote: > Like many free software projects, freedesktop.org issued a non-binding > recommendation for projects to migrate from OFTC to Freenode [1]. As > such, freedesktop.org entries in the MAINTAINERS file are out-of-date as > the respect

[PATCH 2/4] drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1

2021-05-30 Thread Hans de Goede
The KD Kurio Smart C15200 2-in-1 uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.

[PATCH 4/4] drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro

2021-05-30 Thread Hans de Goede
The Chuwi Hi10 Pro uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu

[PATCH 3/4] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6

2021-05-30 Thread Hans de Goede
The Samsung Galaxy Book 10.6 uses a panel which has been mounted 90 degrees rotated. Add a quirk for this Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks

[PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2)

2021-05-30 Thread Hans de Goede
2 improvements to the Lenovo Ideapad D330 panel-orientation quirks: 1. Some versions of the Lenovo Ideapad D330 have a DMI_PRODUCT_NAME of "81H3" and others have "81MD". Testing has shown that the "81MD" also has a 90 degree mounted panel. Drop the DMI_PRODUCT_NAME from the existing quirk so that

[PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices

2021-05-30 Thread Hans de Goede
Hi All, Here are 4 straight forward quirk additions for devices which have their LCD panel mounted 90 degree rotated. The first 2 patches were send before but gor no reaction. It would be great if I can get a quick ack for these simple patches, then I can push them to drm-misc-fixes. Regards,

Re: [PATCH 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Lukas Wunner
On Sat, May 29, 2021 at 10:16:38AM -0400, Alyssa Rosenzweig wrote: > Like many free software projects, freedesktop.org issued a non-binding > recommendation for projects to migrate from OFTC to Freenode [1]. As ^

[PATCH 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Alyssa Rosenzweig
Like many free software projects, freedesktop.org issued a non-binding recommendation for projects to migrate from OFTC to Freenode [1]. As such, freedesktop.org entries in the MAINTAINERS file are out-of-date as the respective channels have moved. Update the file to point to the right network. [1

[PATCH 1/2] documentation: Update #nouveau IRC channel network

2021-05-30 Thread Alyssa Rosenzweig
Like many free software projects, Nouveau recently moved from Freenode to OFTC. Update the reference. Signed-off-by: Alyssa Rosenzweig Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org --- Documentation/driver-api/thermal/nouveau_thermal.rs

Re: [PATCH 2/2] maintainers: Update freedesktop.org IRC channels

2021-05-30 Thread Jonathan Neuschäfer
On Sat, May 29, 2021 at 10:16:38AM -0400, Alyssa Rosenzweig wrote: > Like many free software projects, freedesktop.org issued a non-binding > recommendation for projects to migrate from OFTC to Freenode [1]. As The other way around:from Freenode to OFTC > such, freedesktop.org