Re: Kconfig CONFIG_FB dependency regression

2022-02-01 Thread Arnd Bergmann
On Wed, Feb 2, 2022 at 1:14 AM Thinh Nguyen wrote: > Fabio Estevam wrote: > > On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > >> > >> On 2/1/22 15:01, Thinh Nguyen wrote: > >>> Hi, > >>> > >>> One of our test setups is unable to boot (stuck at initramfs). Git > >>> bisection points to the co

[PATCH v5 3/3] dt-bindings: mips: loongson: introduce board specific dts

2022-02-01 Thread Sui Jingfeng
From: suijingfeng For board specific devices which is outside of the cpu and bridge chip. this patch introduce two dts, one for lemote a1901(aka LX-6901) motherboard. documnet can be found from [1]. Another one is loongson 3A4000 evb board, this board have a vga and dvi interface. We need introd

[PATCH v5 2/3] dt-bindings: ls2k1000: add the display controller device node

2022-02-01 Thread Sui Jingfeng
From: suijingfeng The display controller is a pci device, its vendor id is 0x0014 its device id is 0x7a06. Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH v5 0/3] drm/lsdc: add drm driver for loongson display controller

2022-02-01 Thread Sui Jingfeng
There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge, and the DC in those chip is a PCI device. This display controller have two display pipes but with only one hardware cursor. Each way has a DVO output interface and the CRTC is able to scanout from 1920x1080 resolution at

[PATCH v5 1/3] drm/lsdc: add drm driver for loongson display controller

2022-02-01 Thread Sui Jingfeng
From: suijingfeng There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge, and the DC in those chip is a PCI device. This display controller have two display pipes but with only one hardware cursor. Each way has a DVO output interface and the CRTC is able to scanout from 1920

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

2022-02-01 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (htmldocs) produced this warning: include/drm/drm_connector.h:637: warning: Function parameter or member 'edid_hdmi_rgb444_dc_modes' not described in 'drm_display_info' include/drm/drm_connector.h:637: warning: Function parameter or me

Re: linux-next: build warning after merge of the drm tree

2022-02-01 Thread Stephen Rothwell
Hi all, On Wed, 2 Feb 2022 15:02:01 +1100 Stephen Rothwell wrote: > > After merging the drm tree, today's linux-next build (htmldocs) produced > this warning: > > drivers/gpu/drm/drm_privacy_screen.c:X: warning: Function parameter or member > 'data' not described in 'drm_privacy_screen_registe

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

2022-02-01 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/drm_privacy_screen.c:X: warning: Function parameter or member 'data' not described in 'drm_privacy_screen_register' Introduced by commit 30598d925d46 ("drm/privacy_screen: Add drvda

[PATCH] iommu/vt-d: Remove comment reference to iommu_dev_has_feature

2022-02-01 Thread Akeem G Abodunrin
iommu_dev_has_feature() api has been removed by the commit 262948f8ba573 ("iommu: Delete iommu_dev_has_feature()") - So this patch removes comment about the api to avoid any confusion. Signed-off-by: Akeem G Abodunrin Cc: Lu Baolu --- include/linux/iommu.h | 3 +-- 1 file changed, 1 insertion(+

[PATCH 1/2] drm/mm: Add an iterator to optimally walk over holes for an allocation

2022-02-01 Thread Vivek Kasireddy
This iterator relies on drm_mm_first_hole() and drm_mm_next_hole() functions to identify suitable holes for an allocation of a given size by efficently traversing the rbtree associated with the given allocator. It replaces the for loop in drm_mm_insert_node_in_range() and can also be used by drm d

Re: [PATCH v10 1/6] dt-bindings: mfd: logicvc: Add a compatible with the major version only

2022-02-01 Thread Rob Herring
On Thu, 20 Jan 2022 16:00:19 +0100, Paul Kocialkowski wrote: > There are lots of different versions of the logicvc block and it > makes little sense to list them all in compatibles since all versions > with the same major are found to be register-compatible. > > Introduce a new compatible with the

[PATCH v2] drm/msm/dp: add wide bus support

2022-02-01 Thread Kuogee Hsieh
Normally, mdp will push one pixel of data per pixel clock to interface to display. Wide bus feature will increase bus width from 32 bits to 64 bits so that it can push two pixel of data per pixel clock to interface to display. This feature is pre requirement to support 4k resolution since it will r

Re: Kconfig CONFIG_FB dependency regression

2022-02-01 Thread Fabio Estevam
Hi Thinh, On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > > On 2/1/22 15:01, Thinh Nguyen wrote: > > Hi, > > > > One of our test setups is unable to boot (stuck at initramfs). Git > > bisection points to the commit below: > > > > f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB"

Re: [PATCH v12 3/9] dt-bindings: display: Add ingenic, jz4780-dw-hdmi DT Schema

2022-02-01 Thread Rob Herring
On Mon, 31 Jan 2022 13:26:49 +0100, H. Nikolaus Schaller wrote: > From: Sam Ravnborg > > Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. > Based on .txt binding from Zubair Lutfullah Kakakhel > > Signed-off-by: Sam Ravnborg > Signed-off-by: H. Nikolaus Schaller > Cc: Rob Herrin

Re: [PATCH v3 1/3] dt-bindings: sharp,lq101r1sx01: Add compatible for LQ101R1SX03

2022-02-01 Thread Rob Herring
On Mon, 31 Jan 2022 02:59:43 +0300, Dmitry Osipenko wrote: > From: Anton Bambura > > LQ101R1SX03 is compatible with LQ101R1SX01 from software perspective, > document it. The LQ101R1SX03 is a newer revision of LQ101R1SX01, it has > minor differences in hardware pins in comparison to the older vers

Re: Kconfig CONFIG_FB dependency regression

2022-02-01 Thread Randy Dunlap
On 2/1/22 15:01, Thinh Nguyen wrote: > Hi, > > One of our test setups is unable to boot (stuck at initramfs). Git > bisection points to the commit below: > > f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB") > > Reverting this patch resolves the issue. This issue persists in mai

Re: [PATCH 3/6] drm/msm/dpu: allow just single IRQ callback

2022-02-01 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v5.17-rc2 next-20220201] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

Re: [PATCH v3 3/3] fbcon: Add option to enable legacy hardware acceleration

2022-02-01 Thread Helge Deller
Hello Daniel, On 2/1/22 21:11, Daniel Vetter wrote: > On Tue, Feb 1, 2022 at 7:59 PM Helge Deller wrote: >> >> Add a config option CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION to >> enable bitblt and fillrect hardware acceleration in the framebuffer >> console. If disabled, such acceleration wi

Re: [PATCH 16/19] drm/i915/guc: Use a single pass to calculate regset

2022-02-01 Thread Daniele Ceraolo Spurio
On 1/26/2022 12:36 PM, Lucas De Marchi wrote: The ADS initialitazion was using 2 passes to calculate the regset sent to GuC to initialize each engine: the first pass to just have the final object size and the second to set each register in place in the final gem object. However in order to ma

Re: [PATCH] fbdev: fbmem: Fix the implicit type casting

2022-02-01 Thread Yizhuo Zhai
Hi Helge: I shipped a new patch which moves the check before the function call, please take a look and see if this one makes sense to you. Modifying the type of function argument is a bit risky because fb_blank() has more than one caller and some of them passed in an integer. Signed-off-by: Yizhuo

Re: [PATCH 1/4] drm: Add I2C connector type

2022-02-01 Thread Simon Ser
On Tuesday, February 1st, 2022 at 21:57, Sam Ravnborg wrote: > As I wrote in another part of this thread(s) - typing the patch is easy. > But I do not understand the userspace implications so I need someone > else to say go. User-space shouldn't really use the connector for anything except makin

Re: [PATCH 3/6] drm/msm/dpu: allow just single IRQ callback

2022-02-01 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v5.17-rc2 next-20220201] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

Re: [PATCH 00/14] Rename dma-buf-map

2022-02-01 Thread Lucas De Marchi
On Tue, Feb 01, 2022 at 08:46:15AM +0100, Christian König wrote: Am 01.02.22 um 01:36 schrieb Lucas De Marchi: On Fri, Jan 28, 2022 at 10:48:42AM +0100, Christian König wrote: Am 28.01.22 um 10:40 schrieb Lucas De Marchi: On Fri, Jan 28, 2022 at 10:22:00AM +0100, Christian König wrote: Am 28.

[PATCH] drm/vc4: add tracepoints for CL submissions

2022-02-01 Thread Melissa Wen
Trace submit_cl_ioctl and related IRQs for CL submission and bin/render jobs execution. It might be helpful to get a rendering timeline and track job throttling. Signed-off-by: Melissa Wen --- drivers/gpu/drm/vc4/vc4_gem.c | 7 +++ drivers/gpu/drm/vc4/vc4_irq.c | 5 ++ drivers/gpu/drm/vc4/

Re: [Intel-gfx] [PATCH v2 03/11] drm/i915: Use str_yes_no()

2022-02-01 Thread Matt Roper
On Wed, Jan 26, 2022 at 01:39:43AM -0800, Lucas De Marchi wrote: > Remove the local yesno() implementation and adopt the str_yes_no() from > linux/string_helpers.h. > > Signed-off-by: Lucas De Marchi > Acked-by: Daniel Vetter > Acked-by: Jani Nikula Reviewed-by: Matt Roper > --- > drivers/g

Re: [Intel-gfx] [PATCH v2 04/11] drm/i915: Use str_enable_disable()

2022-02-01 Thread Matt Roper
On Wed, Jan 26, 2022 at 01:39:44AM -0800, Lucas De Marchi wrote: > Remove the local enabledisable() implementation and adopt the > str_enable_disable() from linux/string_helpers.h. > > Signed-off-by: Lucas De Marchi > Acked-by: Daniel Vetter > Acked-by: Jani Nikula There's an open-coded versio

Re: [Intel-gfx] [PATCH v2 05/11] drm/i915: Use str_enabled_disabled()

2022-02-01 Thread Matt Roper
On Wed, Jan 26, 2022 at 01:39:45AM -0800, Lucas De Marchi wrote: > Remove the local enableddisabled() implementation and adopt the > str_enabled_disabled() from linux/string_helpers.h. > > Signed-off-by: Lucas De Marchi > Acked-by: Daniel Vetter > Acked-by: Jani Nikula There's two open-coded v

Re: [Intel-gfx] [PATCH v2 06/11] drm/i915: Use str_on_off()

2022-02-01 Thread Matt Roper
On Wed, Jan 26, 2022 at 01:39:46AM -0800, Lucas De Marchi wrote: > Remove the local onoff() implementation and adopt the > str_on_off() from linux/string_helpers.h. > > Signed-off-by: Lucas De Marchi > Acked-by: Daniel Vetter > Acked-by: Jani Nikula Reviewed-by: Matt Roper > --- > drivers/g

Re: [PATCH 1/4] drm: Add I2C connector type

2022-02-01 Thread Sam Ravnborg
Hi Noralf, On Tue, Feb 01, 2022 at 01:58:16PM +0100, Noralf Trønnes wrote: > > > Den 31.01.2022 21.52, skrev Sam Ravnborg: > > On Mon, Jan 31, 2022 at 09:12:21PM +0100, Javier Martinez Canillas wrote: > >> There isn't a connector type for display controllers accesed through I2C, > >> most driver

Re: [PATCH v1 1/4] fbtft: Unorphan the driver

2022-02-01 Thread Sam Ravnborg
Hi Daniel, On Tue, Feb 01, 2022 at 06:06:33PM +0100, Daniel Vetter wrote: > On Tue, Feb 1, 2022 at 6:01 PM Geert Uytterhoeven > wrote: > > > > Hi Thomas, > > > > On Tue, Feb 1, 2022 at 5:16 PM Thomas Zimmermann > > wrote: > > > Am 31.01.22 um 11:18 schrieb Javier Martinez Canillas: > > > > Ano

Re: [PATCH 01/21] MAINTAINERS: Add entry for fbdev core

2022-02-01 Thread Dave Airlie
On Tue, 1 Feb 2022 at 07:06, Daniel Vetter wrote: > > Ever since Tomi extracted the core code in 2014 it's been defacto me > maintaining this, with help from others from dri-devel and sometimes > Linus (but those are mostly merge conflicts): > > $ git shortlog -ns drivers/video/fbdev/core/ | head

Re: [PATCH 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-01 Thread Sam Ravnborg
Hi Javier, On Tue, Feb 01, 2022 at 04:03:30PM +0100, Javier Martinez Canillas wrote: > Hello Geert, > > On 2/1/22 15:14, Geert Uytterhoeven wrote: > > Hi Javier, > > > > On Tue, Feb 1, 2022 at 2:09 PM Javier Martinez Canillas > > wrote: > >> On 2/1/22 12:38, Geert Uytterhoeven wrote: > Sin

Re: [PATCH v3 3/3] fbcon: Add option to enable legacy hardware acceleration

2022-02-01 Thread Daniel Vetter
On Tue, Feb 1, 2022 at 7:59 PM Helge Deller wrote: > > Add a config option CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION to > enable bitblt and fillrect hardware acceleration in the framebuffer > console. If disabled, such acceleration will not be used, even if it is > supported by the graphics h

Re: [PATCH -next 1/2 v2] video: fbdev: pxa168fb: Remove unnecessary print function dev_err()

2022-02-01 Thread Helge Deller
On 2/1/22 13:32, Yang Li wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > Eliminate the follow coccicheck warning: > ./drivers/video/fbdev/pxa168fb.c:621:2-9: line 621 is redundant because > platform_get_irq() already prints an error > > R

Re: [PATCH v1 1/4] fbtft: Unorphan the driver

2022-02-01 Thread Thomas Zimmermann
Hi Am 01.02.22 um 18:00 schrieb Geert Uytterhoeven: Hi Thomas, On Tue, Feb 1, 2022 at 5:16 PM Thomas Zimmermann wrote: Am 31.01.22 um 11:18 schrieb Javier Martinez Canillas: Another thing that's missing is a DRM_MODE_CONNECTOR_I2C, because I used for now a DRM_MODE_CONNECTOR_Unknown. That

[PATCH v3 1/3] Revert "fbdev: Garbage collect fbdev scrolling acceleration, part 1 (from TODO list)"

2022-02-01 Thread Helge Deller
This reverts commit b3ec8cdf457e5e63d396fe1346cc788cf7c1b578. Revert the second (of 2) commits which disabled scrolling acceleration in fbcon/fbdev. It introduced a regression for fbdev-supported graphic cards because of the performance penalty by doing screen scrolling by software instead of usi

[PATCH v3 3/3] fbcon: Add option to enable legacy hardware acceleration

2022-02-01 Thread Helge Deller
Add a config option CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION to enable bitblt and fillrect hardware acceleration in the framebuffer console. If disabled, such acceleration will not be used, even if it is supported by the graphics hardware driver. If you plan to use DRM as your main graphics

[PATCH v3 2/3] Revert "fbcon: Disable accelerated scrolling"

2022-02-01 Thread Helge Deller
This reverts commit 39aead8373b3c20bb5965c024dfb51a94e526151. Revert the first (of 2) commits which disabled scrolling acceleration in fbcon/fbdev. It introduced a regression for fbdev-supported graphic cards because of the performance penalty by doing screen scrolling by software instead of usin

[PATCH v3 0/3] Fix regression introduced by disabling accelerated scrolling in fbcon

2022-02-01 Thread Helge Deller
This series reverts two patches which disabled scrolling acceleration in fbcon/fbdev. Those patches introduced a regression for fbdev-supported graphic cards because of the performance penalty by doing screen scrolling by software instead of using existing 2D hardware acceleration. The third patch

kmscube: GLES3/gl3.h: No such file or directory

2022-02-01 Thread Fabio Estevam
Hi Rob, We are getting the following kmscube build error in Buildroot: ../cube-shadertoy.c:37:10: fatal error: GLES3/gl3.h: No such file or directory 37 | #include Complete log: http://autobuild.buildroot.net/results/7f559e89a96273fc019056eae13104e14161a484/build-end.log In OpenEmbedded the

[PATCH v7 4/5] drm/i915: add gtt misalignment test

2022-02-01 Thread Robert Beckett
add test to check handling of misaligned offsets and sizes v4: * remove spurious blank lines * explicitly cast intel_region_id to intel_memory_type in misaligned_pin Reported-by: kernel test robot v6: * use NEEDS_COMPACT_PT instead of hard coding for DG2 v7: * use

[PATCH v7 3/5] drm/i915: support 64K GTT pages for discrete cards

2022-02-01 Thread Robert Beckett
From: Matthew Auld discrete cards optimise 64K GTT pages for local-memory, since everything should be allocated at 64K granularity. We say goodbye to sparse entries, and instead get a compact 256B page-table for 64K pages, which should be more cache friendly. 4K pages for local-memory are no long

[PATCH v7 5/5] drm/i915/uapi: document behaviour for DG2 64K support

2022-02-01 Thread Robert Beckett
From: Matthew Auld On discrete platforms like DG2, we need to support a minimum page size of 64K when dealing with device local-memory. This is quite tricky for various reasons, so try to document the new implicit uapi for this. v3: fix typos and less emphasis v2: Fixed suggestions on formatting

[PATCH v7 2/5] drm/i915: enforce min GTT alignment for discrete cards

2022-02-01 Thread Robert Beckett
From: Matthew Auld For local-memory objects we need to align the GTT addresses to 64K, both for the ppgtt and ggtt. We need to support vm->min_alignment > 4K, depending on the vm itself and the type of object we are inserting. With this in mind update the GTT selftests to take this into account.

[PATCH v7 1/5] drm/i915: add needs_compact_pt flag

2022-02-01 Thread Robert Beckett
From: Ramalingam C Add a new platform flag, needs_compact_pt, to mark the requirement of compact pt layout support for the ppGTT when using 64K GTT pages. With this flag has_64k_pages will only indicate requirement of 64K GTT page sizes or larger for device local memory access. v6: * mi

[PATCH v7 0/5] discrete card 64K page support

2022-02-01 Thread Robert Beckett
This series continues support for 64K pages for discrete cards. It supersedes the 64K patches from https://patchwork.freedesktop.org/series/95686/#rev4 Changes since that series: - set min alignment for DG2 to 2MB in i915_address_space_init - replace coloring with simpler 2MB VA alignment for lme

[PATCH v3] drm/cma-helper: Describe what a "contiguous chunk" actually means

2022-02-01 Thread Daniel Thompson
Since it's inception in 2012 it has been understood that the DRM GEM CMA helpers do not depend on CMA as the backend allocator. In fact the first bug fix to ensure the cma-helpers work correctly with an IOMMU backend appeared in 2014. However currently the documentation for drm_gem_cma_create() tal

[PATCH v2 1/2] drm/msm/dsi: Remove spurious IRQF_ONESHOT flag

2022-02-01 Thread Daniel Thompson
Quoting the header comments, IRQF_ONESHOT is "Used by threaded interrupts which need to keep the irq line disabled until the threaded handler has been run.". When applied to an interrupt that doesn't request a threaded irq then IRQF_ONESHOT has a lesser known (undocumented?) side effect, which it t

[PATCH v2 2/2] drm/msm/hdmi: Remove spurious IRQF_ONESHOT flag

2022-02-01 Thread Daniel Thompson
Quoting the header comments, IRQF_ONESHOT is "Used by threaded interrupts which need to keep the irq line disabled until the threaded handler has been run.". When applied to an interrupt that doesn't request a threaded irq then IRQF_ONESHOT has a lesser known (undocumented?) side effect, which it t

[PATCH v2 0/2] drm/msm: Remove spurious IRQF_ONESHOT flags from dsi & hdmi

2022-02-01 Thread Daniel Thompson
This series corrects incorrect calls to request_irq(..., IRQF_ONESHOT, ...). These anomalies are harmless on regular kernels but cause odd behaviour on threadirq kernels and break entirely on PREEMPT_RT kernels I'm pretty certain these problems would also provoke lockdep splats on kernels with CON

[Bug 214801] polaris11 (rx560) regression

2022-02-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214801 Roman Elshin (roxm...@list.ru) changed: What|Removed |Added Status|NEW |RESOLVED Resolut

Re: [PATCH] Revert "drm/panel-edp: Allow querying the detected panel via sysfs"

2022-02-01 Thread Doug Anderson
Hi, On Tue, Feb 1, 2022 at 9:22 AM Douglas Anderson wrote: > > This reverts commit 363c4c3811db330dee9ce27dd3cee6f590d44e4c. > > Since the point of this attribute is for a test, this should be done > in debugfs, not sysfs. Let's revert and a new patch can be added later > doing it in debugfs. > >

Re: [PATCH v3 1/3] drm: Stop spamming log with drm_cache message

2022-02-01 Thread Lucas De Marchi
On Tue, Feb 01, 2022 at 09:12:05AM -0800, Jose Souza wrote: On Mon, 2022-01-31 at 08:59 -0800, Lucas De Marchi wrote: Only x86 and in some cases PPC have support added in drm_cache.c for the clflush class of functions. However warning once is sufficient to taint the log instead of spamming it wi

Re: [PATCH 1/2] dt-bindings: display: imx: Add fsl,imx21-lcdc docs

2022-02-01 Thread Rob Herring
On Fri, Jan 28, 2022 at 06:58:29PM +0100, Uwe Kleine-König wrote: > Hello Rob, > > On Fri, Jan 28, 2022 at 07:04:10AM -0600, Rob Herring wrote: > > On Fri, Jan 28, 2022 at 4:59 AM Uwe Kleine-König > > wrote: > > > > > > From: Marian Cichy > > > > > > This files documents the device tree for the

Re: [PATCH] drm/panel-edp: Allow querying the detected panel via sysfs

2022-02-01 Thread Doug Anderson
Hi, On Tue, Feb 1, 2022 at 9:02 AM Daniel Vetter wrote: > > On Tue, Feb 1, 2022 at 5:42 PM Doug Anderson wrote: > > > > Hi, > > > > On Wed, Jan 26, 2022 at 12:25 AM Javier Martinez Canillas > > wrote: > > > > > > On 1/26/22 00:25, Doug Anderson wrote: > > > > On Tue, Jan 25, 2022 at 2:55 PM Jav

Re: [PATCH 17/27] dt-bindings: display: rockchip: Add binding for VOP2

2022-02-01 Thread Rob Herring
On Wed, Jan 26, 2022 at 03:55:39PM +0100, Sascha Hauer wrote: > The VOP2 is found on newer Rockchip SoCs like the rk3568 or the rk3566. > The binding differs slightly from the existing VOP binding, so add a new > binding file for it. > > Changes since v3: > - drop redundant _vop suffix from clock

[PATCH] Revert "drm/panel-edp: Allow querying the detected panel via sysfs"

2022-02-01 Thread Douglas Anderson
This reverts commit 363c4c3811db330dee9ce27dd3cee6f590d44e4c. Since the point of this attribute is for a test, this should be done in debugfs, not sysfs. Let's revert and a new patch can be added later doing it in debugfs. Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-edp.c |

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915: Do not spam log with missing arch support

2022-02-01 Thread Souza, Jose
On Mon, 2022-01-31 at 08:59 -0800, Lucas De Marchi wrote: > Following what was done in drm_cache.c, when the stub for > remap_io_mapping() was added in commit 67c430bbaae1 ("drm/i915: Skip > remap_io_mapping() for non-x86 platforms"), it included a log message > with pr_err(). However just the war

Re: [PATCH v3 1/3] drm: Stop spamming log with drm_cache message

2022-02-01 Thread Souza, Jose
On Mon, 2022-01-31 at 08:59 -0800, Lucas De Marchi wrote: > Only x86 and in some cases PPC have support added in drm_cache.c for the > clflush class of functions. However warning once is sufficient to taint > the log instead of spamming it with "Architecture has no drm_cache.c > support" every few

Re: [PATCH v3 2/3] drm/i915: Fix header test for !CONFIG_X86

2022-02-01 Thread Souza, Jose
On Mon, 2022-01-31 at 08:59 -0800, Lucas De Marchi wrote: > Architectures others than x86 have a stub implementation calling > WARN_ON_ONCE(). The appropriate headers need to be included, otherwise > the header-test target will fail with: > > HDRTEST drivers/gpu/drm/i915/i915_mm.h > In file incl

Re: [PATCH v1 1/4] fbtft: Unorphan the driver

2022-02-01 Thread Daniel Vetter
On Tue, Feb 1, 2022 at 6:01 PM Geert Uytterhoeven wrote: > > Hi Thomas, > > On Tue, Feb 1, 2022 at 5:16 PM Thomas Zimmermann wrote: > > Am 31.01.22 um 11:18 schrieb Javier Martinez Canillas: > > > Another thing that's missing is a DRM_MODE_CONNECTOR_I2C, because I used > > > for > > > now a DRM_

Re: [PATCH] drm/panel-edp: Allow querying the detected panel via sysfs

2022-02-01 Thread Daniel Vetter
On Tue, Feb 1, 2022 at 5:42 PM Doug Anderson wrote: > > Hi, > > On Wed, Jan 26, 2022 at 12:25 AM Javier Martinez Canillas > wrote: > > > > On 1/26/22 00:25, Doug Anderson wrote: > > > On Tue, Jan 25, 2022 at 2:55 PM Javier Martinez Canillas > > > wrote: > > > > [snip] > > > > >> Should this new

Re: [PATCH v1 1/4] fbtft: Unorphan the driver

2022-02-01 Thread Geert Uytterhoeven
Hi Thomas, On Tue, Feb 1, 2022 at 5:16 PM Thomas Zimmermann wrote: > Am 31.01.22 um 11:18 schrieb Javier Martinez Canillas: > > Another thing that's missing is a DRM_MODE_CONNECTOR_I2C, because I used for > > now a DRM_MODE_CONNECTOR_Unknown. > > That might have implications on userspace. Maybe a

Re: [PATCH] drm/panel-edp: Allow querying the detected panel via sysfs

2022-02-01 Thread Doug Anderson
Hi, On Wed, Jan 26, 2022 at 12:25 AM Javier Martinez Canillas wrote: > > On 1/26/22 00:25, Doug Anderson wrote: > > On Tue, Jan 25, 2022 at 2:55 PM Javier Martinez Canillas > > wrote: > > [snip] > > >> Should this new sysfs entry be documented in Documentation/ABI/ ? > > > > I'm not sure what th

Re: [PATCH 03/21] fbcon: Restore fbcon scrolling acceleration

2022-02-01 Thread Daniel Vetter
On Tue, Feb 1, 2022 at 3:52 PM Helge Deller wrote: > > On 2/1/22 14:45, Daniel Vetter wrote: > > On Tue, Feb 1, 2022 at 12:01 PM Helge Deller wrote: > >> On 2/1/22 11:36, Daniel Vetter wrote: > >>> On Tue, Feb 1, 2022 at 11:16 AM Helge Deller wrote: > > On 1/31/22 22:05, Daniel Vetter

[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.

2022-02-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215511 --- Comment #3 from Alex Deucher (alexdeuc...@gmail.com) --- Here's a howto for doing a bisect: https://www.kernel.org/doc/html/latest/admin-guide/bug-bisect.html Here's a howto for building a kernel: https://kernelnewbies.org/KernelBuild Basic p

[PATCH v2 2/2] drm/msm/gpu: Track global faults per address-space

2022-02-01 Thread Rob Clark
From: Rob Clark Other processes don't need to know about faults that they are isolated from by virtue of address space isolation. They are only interested in whether some of their state might have been corrupted. But to be safe, also track unattributed faults. This case should really never hap

[PATCH v2 1/2] drm/msm/gpu: Add ctx to get_param()

2022-02-01 Thread Rob Clark
From: Rob Clark Prep work for next patch. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 ++- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 3 ++- drivers/gpu/drm/msm/msm_drv.c | 3 ++- drivers/gpu/drm/msm/msm_gpu.h | 3 ++- drivers/gpu/drm/msm/msm_rd.

[PATCH v2 0/2] drm/msm: Add tracking for faults associated with an address space

2022-02-01 Thread Rob Clark
From: Rob Clark Currently, for GL_EXT_robustness userspace uses the global and per- submitqueue fault counters to determine GUILTY_CONTEXT_RESET_EXT vs INNOCENT_CONTEXT_RESET_EXT. But that is a bit overly paranoid, in that a fault in a different process's context (when it has it's own isolated a

[PATCH v6 10/10] tools: update test_hmm script to support SP config

2022-02-01 Thread Alex Sierra
Add two more parameters to set spm_addr_dev0 & spm_addr_dev1 addresses. These two parameters configure the start SP addresses for each device in test_hmm driver. Consequently, this configures zone device type as coherent. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair

[PATCH v6 08/10] lib: add support for device coherent type in test_hmm

2022-02-01 Thread Alex Sierra
Device Coherent type uses device memory that is coherently accesible by the CPU. This could be shown as SP (special purpose) memory range at the BIOS-e820 memory enumeration. If no SP memory is supported in system, this could be faked by setting CONFIG_EFI_FAKE_MEMMAP. Currently, test_hmm only sup

[PATCH v6 09/10] tools: update hmm-test to support device coherent type

2022-02-01 Thread Alex Sierra
Test cases such as migrate_fault and migrate_multiple, were modified to explicit migrate from device to sys memory without the need of page faults, when using device coherent type. Snapshot test case updated to read memory device type first and based on that, get the proper returned results migrat

[PATCH v6 06/10] lib: test_hmm add ioctl to get zone device type

2022-02-01 Thread Alex Sierra
new ioctl cmd added to query zone device type. This will be used once the test_hmm adds zone device coherent type. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple --- lib/test_hmm.c | 23 +-- lib/test_hmm_uapi.h | 8 2 files

[PATCH v6 07/10] lib: test_hmm add module param for zone device type

2022-02-01 Thread Alex Sierra
In order to configure device coherent in test_hmm, two module parameters should be passed, which correspond to the SP start address of each device (2) spm_addr_dev0 & spm_addr_dev1. If no parameters are passed, private device type is configured. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling

[PATCH v6 03/10] mm/gup: fail get_user_pages for LONGTERM dev coherent type

2022-02-01 Thread Alex Sierra
Avoid long term pinning for Coherent device type pages. This could interfere with their own device memory manager. For now, we are just returning error for PIN_LONGTERM Coherent device type pages. Eventually, these type of pages will get migrated to system memory, once the device migration pages su

[PATCH v6 05/10] drm/amdkfd: coherent type as sys mem on migration to ram

2022-02-01 Thread Alex Sierra
Coherent device type memory on VRAM to RAM migration, has similar access as System RAM from the CPU. This flag sets the source from the sender. Which in Coherent type case, should be set as MIGRATE_VMA_SELECT_DEVICE_COHERENT. Signed-off-by: Alex Sierra Reviewed-by: Felix Kuehling --- drivers/gp

[PATCH v6 04/10] drm/amdkfd: add SPM support for SVM

2022-02-01 Thread Alex Sierra
When CPU is connected throug XGMI, it has coherent access to VRAM resource. In this case that resource is taken from a table in the device gmc aperture base. This resource is used along with the device type, which could be DEVICE_PRIVATE or DEVICE_COHERENT to create the device page map region. Sig

[PATCH v6 02/10] mm: add device coherent vma selection for memory migration

2022-02-01 Thread Alex Sierra
This case is used to migrate pages from device memory, back to system memory. Device coherent type memory is cache coherent from device and CPU point of view. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple --- v2: condition added when migrations from device co

[PATCH v6 01/10] mm: add zone device coherent type memory support

2022-02-01 Thread Alex Sierra
Device memory that is cache coherent from device and CPU point of view. This is used on platforms that have an advanced system bus (like CAPI or CXL). Any page of a process can be migrated to such memory. However, no one should be allowed to pin such memory so that it can always be evicted. Signed

[PATCH v6 00/10] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-02-01 Thread Alex Sierra
This is hopefully the final version, with all patches Reviewed. Andrew, if there are no further objections, please merge this version. This patch series introduces MEMORY_DEVICE_COHERENT, a type of memory owned by a device that can be mapped into CPU page tables like MEMORY_DEVICE_GENERIC and can

[PATCH v4 3/3] dt-bingdings: mips: loongson: introduce board specific dts

2022-02-01 Thread Sui Jingfeng
From: suijingfeng For board specific devices which is outside of the cpu and bridge chip Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- arch/mips/boot/dts/loongson/lemote_a1901.dts | 64 + .../boot/dts/loongson/ls3a4000_7a1000_evb.dts | 69

[PATCH v4 2/3] dt-bingdings: ls2k1000: add the display controller device node

2022-02-01 Thread Sui Jingfeng
From: suijingfeng Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi b/arch/mips/boot/dts/loongson

[PATCH v4 1/3] drm/lsdc: add drm driver for loongson display controller

2022-02-01 Thread Sui Jingfeng
From: suijingfeng There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge, and the DC in those chip is a PCI device. This display controller have two display pipes but with only one hardware cursor. Each way has a DVO output interface and the CRTC is able to scanout from 1920

[PATCH v4 0/3] drm/lsdc: add drm driver for loongson display controller

2022-02-01 Thread Sui Jingfeng
v4: add dts required and explain why device tree is required. give more description about the code. fix warnings reported by kernel test robot. introduce stride_alignment member into struct lsdc_chip_desc, the stride alignment is 256 bytes for ls7a1000, ls2k1000 and ls2k0500 SoC

Re: [PATCH v8 00/10] vgaarb: Rework default VGA device selection

2022-02-01 Thread Maarten Lankhorst
Hey,   Op 31-01-2022 om 23:23 schreef Bjorn Helgaas: > [+to Maarten, Maxime, Thomas; beginning of thread: > https://lore.kernel.org/r/20220106000658.243509-1-helg...@kernel.org] > > On Wed, Jan 05, 2022 at 06:06:48PM -0600, Bjorn Helgaas wrote: >> From: Bjorn Helgaas >> >> Current default VGA devi

[PATCH 5/6] drm/msm/dpu: remove struct dpu_encoder_irq

2022-02-01 Thread Dmitry Baryshkov
Remove additional indirection: specify IRQ callbacks and IRQ indices directly rather than through the pointer in the irq structure. For each IRQ we have a constant IRQ callback. This change simplifies code review as the reader no longer needs to remember which function is called. Signed-off-by: Dm

[PATCH 6/6] drm/msm/dpu: pass irq to dpu_encoder_helper_wait_for_irq()

2022-02-01 Thread Dmitry Baryshkov
Pass IRQ number directly rather than passing an index in the dpu_encoder's irq table. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 29 +-- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 4 +-- .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c

[PATCH 4/6] drm/msm/dpu: get rid of dpu_encoder_helper_(un)register_irq

2022-02-01 Thread Dmitry Baryshkov
Get rid of dpu_encoder_helper_register_irq/unregister_irq helpers, call dpu_core_register/unregister_callback directly, without surrounding them with helpers. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 63 --- .

[PATCH 3/6] drm/msm/dpu: allow just single IRQ callback

2022-02-01 Thread Dmitry Baryshkov
DPU interrupts code allows multiple callbacks per interrut. In reality none of the interrupts is shared between blocks (and will probably never be). Drop support for registering multiple callbacks per interrupt to simplify interrupt handling code. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/

[PATCH 2/6] drm/msm/dpu: remove always-true argument of dpu_core_irq_read()

2022-02-01 Thread Dmitry Baryshkov
The argument clear of the function dpu_core_irq_read() is always true. Remove it. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 4 +--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 4 ++--

[PATCH 1/6] drm/msm/dpu: remove extra wrappers around dpu_core_irq

2022-02-01 Thread Dmitry Baryshkov
Remove extra dpu_irq_* wrappers from dpu_kms.c, merge them directly into dpu_core_irq_* functions. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 12 - .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 9 --- drivers/gpu

[PATCH 0/6] drm/msm/dpu: simplify IRQ helpers

2022-02-01 Thread Dmitry Baryshkov
This is the second part of https://patchwork.freedesktop.org/series/91631/ reworked and cleaned up. Changes since the original pull request: - Split applied patches - Add unlikely and WARN_ON in dpu_core_irq_register_callback() - Remove extra checks in dpu_core_irq_unregister_callback() - Remo

Re: [PATCH 3/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-01 Thread Javier Martinez Canillas
On 2/1/22 15:02, Andy Shevchenko wrote: > On Tue, Feb 01, 2022 at 12:45:53PM +0100, Javier Martinez Canillas wrote: >> On 2/1/22 10:44, Andy Shevchenko wrote: >>> On Tue, Feb 01, 2022 at 01:14:22AM +0100, Javier Martinez Canillas wrote: > > ... > >>> The problem with no backward compatibility mea

Re: [PATCH 3/3] tools: add hmm gup test for long term pinned device pages

2022-02-01 Thread Felix Kuehling
Am 2022-02-01 um 02:05 schrieb Alistair Popple: From: Alex Sierra The intention is to test device coherent type pages that have been called through get user pages with PIN_LONGTERM flag set. These pages should get migrated back to normal system memory. Signed-off-by: Alex Sierra Signed-off-

Re: [PATCH 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-01 Thread Felix Kuehling
Am 2022-02-01 um 02:05 schrieb Alistair Popple: Currently any attempts to pin a device coherent page will fail. This is because device coherent pages need to be managed by a device driver, and pinning them would prevent a driver from migrating them off the device. However this is no reason to

Re: [PATCH 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-01 Thread Javier Martinez Canillas
Hello Geert, On 2/1/22 15:14, Geert Uytterhoeven wrote: > Hi Javier, > > On Tue, Feb 1, 2022 at 2:09 PM Javier Martinez Canillas > wrote: >> On 2/1/22 12:38, Geert Uytterhoeven wrote: Since the current binding has a compatible "ssd1305fb-i2c", we could make the new one "ssd1305dr

Re: [PATCH] fbdev: fbmem: Fix the implicit type casting

2022-02-01 Thread Helge Deller
On 1/31/22 07:57, Yizhuo Zhai wrote: > In function do_fb_ioctl(), the "arg" is the type of unsigned long, yes, because it comes from the ioctl framework... > and in "case FBIOBLANK:" this argument is casted into an int before > passig to fb_blank(). which makes sense IMHO. > In fb_blank(), the

Re: [PATCH 01/21] MAINTAINERS: Add entry for fbdev core

2022-02-01 Thread Geert Uytterhoeven
On Mon, Jan 31, 2022 at 10:06 PM Daniel Vetter wrote: > Ever since Tomi extracted the core code in 2014 it's been defacto me > maintaining this, with help from others from dri-devel and sometimes > Linus (but those are mostly merge conflicts): > > $ git shortlog -ns drivers/video/fbdev/core/ | he

Re: [PATCH 03/21] fbcon: Restore fbcon scrolling acceleration

2022-02-01 Thread Helge Deller
On 2/1/22 14:45, Daniel Vetter wrote: > On Tue, Feb 1, 2022 at 12:01 PM Helge Deller wrote: >> On 2/1/22 11:36, Daniel Vetter wrote: >>> On Tue, Feb 1, 2022 at 11:16 AM Helge Deller wrote: On 1/31/22 22:05, Daniel Vetter wrote: > This functionally undoes 39aead8373b3 ("fbcon: Disabl

Re: [PATCH 01/21] MAINTAINERS: Add entry for fbdev core

2022-02-01 Thread Jani Nikula
On Mon, 31 Jan 2022, Daniel Vetter wrote: > Ever since Tomi extracted the core code in 2014 it's been defacto me > maintaining this, with help from others from dri-devel and sometimes > Linus (but those are mostly merge conflicts): > > $ git shortlog -ns drivers/video/fbdev/core/ | head -n5 >

  1   2   3   >