Re: i915 "GPU HANG", bisected to a2daa27c0c61 "swiotlb: simplify swiotlb_max_segment"

2022-10-19 Thread Marek Marczykowski-Górecki
On Tue, Oct 18, 2022 at 10:24:13AM +0200, Christoph Hellwig wrote: > On Tue, Oct 18, 2022 at 05:52:16AM +0200, Marek Marczykowski-Górecki wrote: > > not only) when using IGD in Xen PV dom0. After not very long time Xorg > > crashes, and dmesg contain messages like this: > > > > i915 :00:02

[PATCH] parport_pc: Remove WCH CH382 PCI-E single parallel port card.

2022-10-19 Thread Zhang Xincheng
WCH CH382L PCI-E adapter with 1 parallel port has been included inside parport_serial. Signed-off-by: Zhang Xincheng --- drivers/parport/parport_pc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 7c45927e2131..cf0cefe38e9

Re: [PATCH] drm: Remove drm_mode_config::fb_base

2022-10-19 Thread Thomas Zimmermann
Hi Am 18.10.22 um 17:52 schrieb Zack Rusin: [...] @@ -527,7 +527,7 @@ void psb_modeset_init(struct drm_device *dev) /* set memory base */ /* Oaktrail and Poulsbo should use BAR 2*/ - pci_read_config_dword(pdev, PSB_BSM, (u32 *)&(dev->mode_config.fb_base)); + pci_

[PATCH] drm: tests: Fix a buffer overflow in format_helper_test

2022-10-19 Thread David Gow
The xrgb2101010 format conversion test (unlike for other formats) does an endianness conversion on the results. However, it always converts TEST_BUF_SIZE 32-bit integers, which results in reading from (and writing to) more memory than in present in the result buffer. Instead, use the buffer size, d

Re: [PATCH v12,2/3] drm: mediatek: Set dpi format in mmsys

2022-10-19 Thread AngeloGioacchino Del Regno
Il 19/10/22 04:52, xinlei@mediatek.com ha scritto: From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v3] drm: Remove drm_mode_config::fb_base

2022-10-19 Thread Thomas Zimmermann
Hi Am 18.10.22 um 18:49 schrieb Zack Rusin: From: Zack Rusin v3: Fix a silly pci_resource_len mistake spotted by Laurent The fb_base in struct drm_mode_config has been unused for a long time. Some drivers set it and some don't leading to a very confusing state where the variable can't be reli

Re: [Intel-gfx] [PATCH] drm/i915/slpc: Optmize waitboost for SLPC

2022-10-19 Thread Tvrtko Ursulin
On 18/10/2022 23:15, Vinay Belgaumkar wrote: Waitboost (when SLPC is enabled) results in a H2G message. This can result in thousands of messages during a stress test and fill up an already full CTB. There is no need to request for RP0 if GuC is already requesting the same. Signed-off-by: Vinay

[PATCH -next] drm/amd/display: Make some symbols static

2022-10-19 Thread ruanjinjie
These symbols qp_table_422_10bpc_min, qp_table_444_8bpc_max, qp_table_420_12bpc_max, qp_table_444_10bpc_min, qp_table_420_8bpc_max, qp_table_444_8bpc_min, qp_table_444_12bpc_min, qp_table_420_12bpc_min, qp_table_422_12bpc_min, qp_table_422_12bpc_max, qp_table_444_12bpc_max, qp_table_420_8bpc_min, q

Re: [PATCH 3/4] drm/i915/gt: Use RC6 residency types as arguments to residency functions

2022-10-19 Thread Jani Nikula
On Tue, 18 Oct 2022, Ashutosh Dixit wrote: > diff --git a/drivers/gpu/drm/i915/gt/intel_rc6.h > b/drivers/gpu/drm/i915/gt/intel_rc6.h > index b6fea71afc223..3105bc72c096b 100644 > --- a/drivers/gpu/drm/i915/gt/intel_rc6.h > +++ b/drivers/gpu/drm/i915/gt/intel_rc6.h > @@ -6,7 +6,7 @@ > #ifndef IN

Re: [PATCH v5 12/22] drm/connector: Add a function to lookup a TV mode by its name

2022-10-19 Thread Maxime Ripard
On Tue, Oct 18, 2022 at 02:29:00PM +0200, Noralf Trønnes wrote: > > > Den 18.10.2022 11.33, skrev Maxime Ripard: > > On Mon, Oct 17, 2022 at 12:44:45PM +0200, Noralf Trønnes wrote: > >> Den 13.10.2022 15.18, skrev Maxime Ripard: > >>> As part of the command line parsing rework coming in the next

[PATCH 6.0 352/862] video/aperture: Disable and unregister sysfb devices via aperture helpers

2022-10-19 Thread Greg Kroah-Hartman
From: Thomas Zimmermann [ Upstream commit 5e01376124309b4dbd30d413f43c0d9c2f60edea ] Call sysfb_disable() before removing conflicting devices in aperture helpers. Fixes sysfb state if fbdev has been disabled. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Fixes: fb84ef

[PATCH 6.0 373/862] drm/panel: use select for Ili9341 panel driver helpers

2022-10-19 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 84dfc46594b0167e5d3736273b0e0e05365da641 ] Use 'select' instead of 'depends on' for DRM helpers for the Ilitek ILI9341 panel driver. This is what is done in the vast majority of other cases and this makes it possible to fix a build error with drm_mipi_dbi. F

[PATCH 6.0 374/862] drm: fix drm_mipi_dbi build errors

2022-10-19 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit eb7de496451bd969e203f02f66585131228ba4ae ] drm_mipi_dbi needs lots of DRM_KMS_HELPER support, so select that Kconfig symbol like it is done is most other uses, and the way that it was before MIPS_DBI was moved from tinydrm to its core location. Fixes these b

Re: [PATCH 2/2] drm/tiny: add support for tft displays based on ilitek,ili9488

2022-10-19 Thread Tommaso Merciai
On Tue, Oct 18, 2022 at 08:31:22PM +0200, Michael Nazzareno Trimarchi wrote: Hi Michael, > Hi > > On Tue, Oct 18, 2022 at 6:46 PM Tommaso Merciai > wrote: > > > > This adds support for ilitek,ili9488 based displays with shift register > > in front of controller. Waveshare,pico-restouch-lcd-3.5

[PATCH v3] drm: mediatek: Modify dpi power on/off sequence.

2022-10-19 Thread xinlei.lee
From: Xinlei Lee Modify dpi power on/off sequence so that the first gpio operation will take effect. Fixes: 6bd4763fd532 ("drm/mediatek: set dpi pin mode to gpio low to avoid leakage current") Signed-off-by: Xinlei Lee --- change note: v2: Remove the empty line between Fixes: and S-o-b. v1:

Re: [PATCH 2/2] drm/tiny: add support for tft displays based on ilitek, ili9488

2022-10-19 Thread Javier Martinez Canillas
Hello Tommaso, On 10/18/22 18:45, Tommaso Merciai wrote: [...] > +config TINYDRM_ILI9488 > + tristate "DRM support for ILI9488 display panels" > + depends on DRM && SPI > + select DRM_KMS_HELPER > + select DRM_GEM_CMA_HELPER > + select DRM_MIPI_DBI > + select BACKLIGHT_CL

Re: [RFC PATCH] drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devices

2022-10-19 Thread Marijn Suijten
On 2022-08-26 12:16:40, Dmitry Baryshkov wrote: > On 05/08/2022 15:24, Marijn Suijten wrote: > > On 2022-08-05 14:56:30, Dmitry Baryshkov wrote: > >> The commit 6874f48bb8b0 ("drm/msm: make mdp5/dpu devices master > >> components") changed the MDP5 driver to look for the interconnect paths > >> in

Re: [RFC PATCH] drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devices

2022-10-19 Thread Dmitry Baryshkov
On 19/10/2022 12:13, Marijn Suijten wrote: On 2022-08-26 12:16:40, Dmitry Baryshkov wrote: On 05/08/2022 15:24, Marijn Suijten wrote: On 2022-08-05 14:56:30, Dmitry Baryshkov wrote: The commit 6874f48bb8b0 ("drm/msm: make mdp5/dpu devices master components") changed the MDP5 driver to look for

[PATCH v5 0/2] *** IT6505 driver read dt properties ***

2022-10-19 Thread allen
This series let driver can read properties from dt to restrict dp output bandwidth. Changes in v3: -Rename property name. Changes in v4: -Use data-lanes and link-frequencies instead of "ite,dp-output-data-lane-count" and "ite,dp-output-max-pixel-clock-mhz". Changes in v5: -Add a port and a endp

[PATCH v5 1/2] dt-bindings: it6505: add properties to restrict output bandwidth

2022-10-19 Thread allen
From: allen chen Add properties to restrict dp output data-lanes and clock. Signed-off-by: Pin-Yen Lin Signed-off-by: Allen Chen --- .../bindings/display/bridge/ite,it6505.yaml | 89 +-- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v5 2/2] drm/bridge: add it6505 driver to read data-lanes and link-frequencies from dt

2022-10-19 Thread allen
From: allen chen Add driver to read data-lanes and link-frequencies from dt property to restrict output bandwidth. Signed-off-by: Allen chen Signed-off-by: Pin-yen Lin --- drivers/gpu/drm/bridge/ite-it6505.c | 80 +++-- 1 file changed, 77 insertions(+), 3 deletions(-)

Re: [PATCH v2 1/7] drm/i915/huc: only load HuC on GTs that have VCS engines

2022-10-19 Thread Iddamsetty, Aravind
On 13-10-2022 05:33, Daniele Ceraolo Spurio wrote: > On MTL the primary GT doesn't have any media capabilities, so no video > engines and no HuC. We must therefore skip the HuC fetch and load on > that specific case. Given that other multi-GT platforms might have HuC > on the primary GT, we can'

Re: [PATCH v2 5/7] drm/i915/mtl: Handle wopcm per-GT and limit calculations.

2022-10-19 Thread Iddamsetty, Aravind
On 19-10-2022 06:14, John Harrison wrote: > On 10/12/2022 17:03, Daniele Ceraolo Spurio wrote: >> From: Aravind Iddamsetty >> >> With MTL standalone media architecture the wopcm layout has changed with >> separate partitioning in WOPCM for GCD/GT GuC and SA Media GuC. The size > What is GCD? G

Re: [PATCH] drm/i915/gvt: Add missing vfio_unregister_group_dev() call

2022-10-19 Thread Wang, Zhi A
On 10/6/22 18:31, Alex Williamson wrote: > On Thu, 6 Oct 2022 08:37:09 -0300 > Jason Gunthorpe wrote: > >> On Wed, Oct 05, 2022 at 04:03:56PM -0600, Alex Williamson wrote: >>> We can't have a .remove callback that does nothing, this breaks >>> removing the device while it's in use. Once we have

Re: [PATCH v4] drm: Remove drm_mode_config::fb_base

2022-10-19 Thread Laurent Pinchart
On Tue, Oct 18, 2022 at 10:43:50PM -0400, Zack Rusin wrote: > From: Zack Rusin > > v4: Fix issue spotted by the kernel test robot > > The fb_base in struct drm_mode_config has been unused for a long time. > Some drivers set it and some don't leading to a very confusing state > where the variable

RE: [PATCH] drm/i915/gvt: Add missing vfio_unregister_group_dev() call

2022-10-19 Thread Tian, Kevin
> From: Wang, Zhi A > Sent: Wednesday, October 19, 2022 5:41 PM > > On 10/6/22 18:31, Alex Williamson wrote: > > On Thu, 6 Oct 2022 08:37:09 -0300 > > Jason Gunthorpe wrote: > > > >> On Wed, Oct 05, 2022 at 04:03:56PM -0600, Alex Williamson wrote: > >>> We can't have a .remove callback that does

Re: [PATCH v7 00/10] drm: bridge: Add Samsung MIPI DSIM bridge

2022-10-19 Thread Marcel Ziswiler
Hi Jagan On Wed, 2022-10-05 at 20:42 +0530, Jagan Teki wrote: > This series supports common bridge support for Samsung MIPI DSIM > which is used in Exynos and i.MX8MM SoC's. > > The final bridge supports both the Exynos and i.MX8MM DSI devices. > > Changes for v7: > * fix the drm bridge attach c

Re: [PATCH 05/16] drm/vmwgfx: Refactor resource validation hashtable to use linux/hashtable implementation.

2022-10-19 Thread Intel
On 10/17/22 21:54, Zack Rusin wrote: From: Maaz Mombasawala Vmwgfx's hashtab implementation needs to be replaced with linux/hashtable to reduce maintenence burden. As part of this effort, refactor the res_ht hashtable used for resource validation during execbuf execution to use linux/hashtabl

Re: [PATCH v5 12/22] drm/connector: Add a function to lookup a TV mode by its name

2022-10-19 Thread Noralf Trønnes
Den 19.10.2022 10.48, skrev Maxime Ripard: > On Tue, Oct 18, 2022 at 02:29:00PM +0200, Noralf Trønnes wrote: >> >> >> Den 18.10.2022 11.33, skrev Maxime Ripard: >>> On Mon, Oct 17, 2022 at 12:44:45PM +0200, Noralf Trønnes wrote: Den 13.10.2022 15.18, skrev Maxime Ripard: > As part of th

Re: [PATCH] drm: Remove drm_mode_config::fb_base

2022-10-19 Thread andriy.shevche...@linux.intel.com
On Wed, Oct 19, 2022 at 09:32:26AM +0200, Thomas Zimmermann wrote: > Am 18.10.22 um 17:52 schrieb Zack Rusin: > IIRC PSB hardware is only available in 32-bit systems. Dunno about deep details, but IIUC the Intel Tangier and Intel Annioedale are 64-bit SoCs that have Imagination + Intel IPs, the l

Re: [PATCH] drm: Remove drm_mode_config::fb_base

2022-10-19 Thread Thomas Zimmermann
Am 19.10.22 um 13:08 schrieb andriy.shevche...@linux.intel.com: On Wed, Oct 19, 2022 at 09:32:26AM +0200, Thomas Zimmermann wrote: Am 18.10.22 um 17:52 schrieb Zack Rusin: IIRC PSB hardware is only available in 32-bit systems. Dunno about deep details, but IIUC the Intel Tangier and Intel

Re: [PATCH] drm: tests: Fix a buffer overflow in format_helper_test

2022-10-19 Thread Maíra Canal
[cc Javier] Hi David, On 10/19/22 04:32, David Gow wrote: > The xrgb2101010 format conversion test (unlike for other formats) does > an endianness conversion on the results. However, it always converts > TEST_BUF_SIZE 32-bit integers, which results in reading from (and > writing to) more memory t

[PATCH 0/2] Selftest fixes for 6.1

2022-10-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Warning - not much tested, mainly bypassing trybot for quick turnaround. Tvrtko Ursulin (2): drm/i915/selftests: Fix waiting for threads to start drm/i915/selftests: Fix selftests for 6.1 kthread_stop semantics .../drm/i915/gem/selftests/i915_gem_context.c | 9 +- dr

[PATCH 1/2] drm/i915/selftests: Fix waiting for threads to start

2022-10-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Tests which want to make sure all threads have started have to do that explicitly since one yield() can not guarantee it. Issue is that many tests then proceed to call kthread_stop() which can therefore return even before the thread has been started and will instead just retu

[PATCH 2/2] drm/i915/selftests: Fix selftests for 6.1 kthread_stop semantics

2022-10-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since a7c01fa93aeb ("signal: break out of wait loops on kthread_stop()") kthread_stop will mark a pending signal which breaks __igt_timeout when used from selftests threads. Result of this is overly short test execution time which renders some tests useless. Add a new __igt_

Re: [PATCH] ACPI: PCI: Fix device reference counting in acpi_get_pci_dev()

2022-10-19 Thread Ville Syrjälä
On Wed, Oct 19, 2022 at 01:35:26PM +0200, Rafael J. Wysocki wrote: > On Wed, Oct 19, 2022 at 11:02 AM Ville Syrjälä > wrote: > > > > On Tue, Oct 18, 2022 at 07:34:03PM +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Commit 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_de

Re: [PATCH v2 4/7] drm/simpledrm: Add support for system memory framebuffers

2022-10-19 Thread Thomas Zimmermann
Hi, please see my review below. Am 07.10.22 um 14:49 schrieb Thierry Reding: From: Thierry Reding Simple framebuffers can be set up in system memory, which cannot be requested and/or I/O remapped using the I/O resource helpers. Add a separate code path that obtains system memory framebuffers

Re: Issue on unmap_grant_pages before releasing dmabuf

2022-10-19 Thread Juergen Gross
On 19.10.22 12:43, Oleksii Moisieiev wrote: Greetings. I need your advise about the problem I'm facing right now: I'm working on the new type of dmabuf export implementation. This is going to be new ioctl to the gntdev and it's purpose is to use external buffer, provided by file descriptor as th

Re: [PATCH v3 2/4] dt-bindings: display: add new bus-format property for panel-dpi

2022-10-19 Thread Max Krummenacher
Hi Laurent On Sun, Oct 16, 2022 at 3:33 AM Laurent Pinchart wrote: > > Hello, > > On Fri, Oct 14, 2022 at 03:08:49PM +0100, Dave Stevenson wrote: > > On Thu, 13 Oct 2022 at 13:58, Francesco Dolcini wrote: > > > On Tue, Jun 28, 2022 at 08:18:36PM +0200, Max Krummenacher wrote: > > > > From: Max K

Re: [PATCH v3 1/8] drm/amd/display: Introduce KUnit tests for fixed31_32 library

2022-10-19 Thread Magali Lemes
Em sex., 30 de set. de 2022 às 11:14, Harry Wentland escreveu: > > > > On 9/12/22 11:59, Maíra Canal wrote: > > From: Tales Aparecida > > > > The fixed31_32 library performs a lot of the mathematical operations > > involving fixed-point arithmetic and the conversion of integers to > > fixed-point

Re: [PATCH] ACPI: PCI: Fix device reference counting in acpi_get_pci_dev()

2022-10-19 Thread Jani Nikula
On Wed, 19 Oct 2022, Ville Syrjälä wrote: > On Wed, Oct 19, 2022 at 01:35:26PM +0200, Rafael J. Wysocki wrote: >> If catching things like this early is better, what about pulling my >> bleeding-edge branch, where all of my changes are staged before going >> into linux-next, into the CI? > > Pretty

[PATCH] video: fix repeated words in comments

2022-10-19 Thread Jilin Yuan
Delete the redundant word 'the'. Signed-off-by: Jilin Yuan --- drivers/video/fbdev/sis/sis_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sis/sis_accel.c b/drivers/video/fbdev/sis/sis_accel.c index 1914ab5a5a91..5850e4325f07 100644 --- a/drivers/

Re: [PATCH] ACPI: PCI: Fix device reference counting in acpi_get_pci_dev()

2022-10-19 Thread Rafael J. Wysocki
On Wed, Oct 19, 2022 at 2:22 PM Ville Syrjälä wrote: > > On Wed, Oct 19, 2022 at 01:35:26PM +0200, Rafael J. Wysocki wrote: > > On Wed, Oct 19, 2022 at 11:02 AM Ville Syrjälä > > wrote: > > > > > > On Tue, Oct 18, 2022 at 07:34:03PM +0200, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki

[PATCH] agp/via: fix repeated words in comments

2022-10-19 Thread Jilin Yuan
Delete the redundant word 'as'. Signed-off-by: Jilin Yuan --- drivers/char/agp/via-agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c index b2f484f527fb..2a4befd1c438 100644 --- a/drivers/char/agp/via-agp.c +++ b/driv

[PATCH] Make xilinxfb_release() return void

2022-10-19 Thread Uwe Kleine-König
The function xilinxfb_release() returns zero unconditionally. Make it return void. There is no semantic change, the only effect is that it becomes obvious that the driver's .remove() callback always returns zero. This is a preparation for making platform remove callbacks return void. Signed-off-b

Re: [PATCH -next] drm/amd/display: make dcn32_mmhubbub_funcs static

2022-10-19 Thread Harry Wentland
On 2022-10-19 02:31, ruanjinjie wrote: > The symbol is not used outside of the file, so mark it static. > > Fixes the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mmhubbub.c:214:28: > warning: symbol 'dcn32_mmhubbub_funcs' was > not declared. Should it be static?

Re: [PATCH -next] drm/amd/display: make dcn32_mpc_funcs static

2022-10-19 Thread Harry Wentland
On 2022-10-19 02:23, ruanjinjie wrote: > The symbol is not used outside of the file, so mark it static. > > Fixes the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:985:24: warning: > symbol 'dcn32_mpc_funcs' was not declared. Should it be static? > > Signed-of

Re: 答复: [PATCH] drm/amdkfd: use vma_lookup() instead of find_vma()

2022-10-19 Thread Felix Kuehling
Am 2022-10-17 um 20:47 schrieb tomorrow Wang (王德明): Hi, The function vma_lookup show below. Vma valid check is included in it. Or, What other questions do you have? My question is, why did you leave the find_vma call in svm_range_is_valid unchanged? I don't see a technical reason, but mayb

Re: [PATCH v4 09/17] drm/i915/vm_bind: Add out fence support

2022-10-19 Thread Matthew Auld
On 19/10/2022 03:43, Niranjana Vishwanathapura wrote: On Tue, Oct 18, 2022 at 04:28:07PM +0100, Matthew Auld wrote: On 18/10/2022 08:16, Niranjana Vishwanathapura wrote: Add support for handling out fence for vm_bind call. v2: Reset vma->vm_bind_fence.syncobj to NULL at the end     of vm_bind

[PATCH] drm/connector: Set DDC pointer in drmm_connector_init

2022-10-19 Thread Maxime Ripard
Commit 35a3b82f1bdd ("drm/connector: Introduce drmm_connector_init") introduced the function drmm_connector_init() with a parameter for an optional ddc pointer to the i2c controller used to access the DDC bus. However, the underlying call to __drm_connector_init() was always setting it to NULL ins

[PATCH 2/7] drm/atomic: drop extra bracket from log messages

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index e659fdae477d..826cb2212b26 100644 --- a/drivers

[PATCH 3/7] drm/atomic: log when getting/setting unknown properties

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 826cb2212b26..39f3f491c148 100644 -

[PATCH 1/7] drm/atomic: log drm_atomic_replace_property_blob_from_id() errors

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index c06d0639d552..e659fdae477d 100644 --- a/d

[PATCH 6/7] drm/atomic: log when page-flip is requested without CRTCs

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 3df3f7ba0af3..b996351beb57 100644 --- a/drivers/gp

[PATCH 5/7] drm/atomic: log on attempt to set legacy DPMS property

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 5aa2ecd1af3d..3df3f7ba0af3 100644 --- a/drivers/gpu/drm/drm_atomic

[PATCH 4/7] drm/atomic: log when CRTC_ID prop value is invalid

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 39f3f491c148..5aa2ecd1af3d 100644 --- a

[PATCH 7/7] drm/atomic: log errors in drm_mode_atomic_ioctl()

2022-10-19 Thread Simon Ser
Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index b996351beb57..eb18ab4e6ef8 100644 --- a/drivers/gpu/drm/drm_atom

[PATCH 00/17] ARM: remove old board files

2022-10-19 Thread Arnd Bergmann
From: Arnd Bergmann This is the first part of the removal of old board files, addressing all the easy cases: cns3xxx and iop32x get removed completely, including a handful of device driversm while ep93xx, dove, mv78xx0, orion, footbridge and omap1 all keep basic platform support but drop support

Re: [PATCH 2/4] drm/i915/mtl: Modify CAGF functions for MTL

2022-10-19 Thread Rodrigo Vivi
On Tue, Oct 18, 2022 at 10:20:41PM -0700, Ashutosh Dixit wrote: > From: Badal Nilawar > > Update CAGF functions for MTL to get actual resolved frequency of 3D and > SAMedia. > > v2: Update MTL_MIRROR_TARGET_WP1 position/formatting (MattR) > Move MTL branches in cagf functions to top (MattR)

Re: [Intel-gfx] [PATCH 0/2] Selftest fixes for 6.1

2022-10-19 Thread Tvrtko Ursulin
On 19/10/2022 13:10, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Warning - not much tested, mainly bypassing trybot for quick turnaround. Please ignore - this is quite broken and problem more complicated. Regards, Tvrtko Tvrtko Ursulin (2): drm/i915/selftests: Fix waiting for threads

[PATCH printk v2 00/38] reduce console_lock scope

2022-10-19 Thread John Ogness
This is v2 of a series to prepare for threaded/atomic printing. It is a rework of patches 6-12 of the v1 [0]. From the v1, patches 1-5 are already mainline and a rework of patches >12 will be posted in a later series. This series focuses on reducing the scope of the BKL console_lock. It achieves t

Re: [PATCH 1/4] drm/i915: Use GEN12_RPSTAT register for GT freq

2022-10-19 Thread Rodrigo Vivi
On Tue, Oct 18, 2022 at 10:20:40PM -0700, Ashutosh Dixit wrote: > From: Don Hiatt > > On GEN12+ use GEN12_RPSTAT register to get actual resolved GT > freq. GEN12_RPSTAT does not require a forcewake and will return 0 freq if > GT is in RC6. > > v2: > - Fixed review comments(Ashutosh) > - Adde

[PATCH printk v2 38/38] printk, xen: fbfront: create/use safe function for forcing preferred

2022-10-19 Thread John Ogness
With commit 9e124fe16ff2("xen: Enable console tty by default in domU if it's not a dummy") a hack was implemented to make sure that the tty console remains the console behind the /dev/console device. The main problem with the hack is that, after getting the console pointer to the tty console, it is

[PATCH printk v2 24/38] xen: fbfront: use srcu console list iterator

2022-10-19 Thread John Ogness
Since the console_lock is not being used for anything other than safe console list traversal, use srcu console list iteration instead. Signed-off-by: John Ogness --- drivers/video/fbdev/xen-fbfront.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/

[PATCH 14/17] ARM: omap1: remove dead code

2022-10-19 Thread Arnd Bergmann
From: Arnd Bergmann After the removal of the unused board files, I went through the omap1 code to look for code that no longer has any callers and remove that. In particular, support for the omap7xx/omap8xx family is now completely unused, so I'm only leaving omap15xx/omap16xx/omap59xx. Cc: Aar

[PATCH 15/17] fbdev: omapfb: remove unused board support

2022-10-19 Thread Arnd Bergmann
From: Arnd Bergmann A number of omap1 based board files got removed, so the corresponding framebuffer drivers are no longer used. The remaining ones are for ams_delta, osk and palmTE, which are still part of the mainline kernel. Cc: Aaro Koskinen Cc: Janusz Krzysztofik Cc: Tony Lindgren Cc: l

Re: [PATCH v4 12/17] drm/i915/vm_bind: Implement I915_GEM_EXECBUFFER3 ioctl

2022-10-19 Thread Matthew Auld
On 18/10/2022 08:16, Niranjana Vishwanathapura wrote: Implement new execbuf3 ioctl (I915_GEM_EXECBUFFER3) which only works in vm_bind mode. The vm_bind mode only works with this new execbuf3 ioctl. The new execbuf3 ioctl will not have any list of objects to validate bind as all required objects

[PATCH 1/6] drm/ttm: rework on ttm_resource to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Change ttm_resource structure from num_pages to size_t size in bytes. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/ttm/ttm_bo.c| 4 ++-- drivers/gpu/drm/ttm/ttm_bo_util.c | 6 +++--- drivers/gpu/drm/ttm/ttm_bo_vm.c | 4 ++-- drivers/gpu/drm/ttm/ttm_range_man

[PATCH 2/6] drm/amd: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c| 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_t

[PATCH 3/6] drm/i915: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- drivers/gpu/drm/i915/i915_scatterlist.c | 4 ++-- drivers/gpu/drm/i915/i915_ttm_buddy_manager.c | 12 ++-- drivers/gpu/drm/i915/intel

[PATCH 4/6] drm/nouveau: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ++-- drivers/gpu/drm/nouveau/nouveau_bo0039.c | 4 ++-- drivers/gpu/drm/nouveau/nouveau_bo5039.c | 2 +- drivers/gpu/drm/nouveau/nouveau_bo74c1.c | 2 +- dri

[PATCH 5/6] drm/radeon: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/radeon/radeon_cs.c | 4 ++-- drivers/gpu/drm/radeon/radeon_object.c | 4 ++-- drivers/gpu/drm/radeon/radeon_trace.h | 2 +- drivers/gpu/drm/radeon/radeon_ttm.c| 4 ++-- 4 files c

[PATCH 6/6] drm/vmwgfx: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Somalapuram Amaranath
Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 4 ++-- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c| 6 +++--- drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_execb

Re: [PATCH v3 2/4] dt-bindings: display: add new bus-format property for panel-dpi

2022-10-19 Thread Dave Stevenson
Hi Laurent On Sun, 16 Oct 2022 at 02:33, Laurent Pinchart wrote: > > Hello, > > On Fri, Oct 14, 2022 at 03:08:49PM +0100, Dave Stevenson wrote: > > On Thu, 13 Oct 2022 at 13:58, Francesco Dolcini wrote: > > > On Tue, Jun 28, 2022 at 08:18:36PM +0200, Max Krummenacher wrote: > > > > From: Max Krum

Re: [PATCH] drm/connector: Set DDC pointer in drmm_connector_init

2022-10-19 Thread Thomas Zimmermann
Am 19.10.22 um 16:34 schrieb Maxime Ripard: Commit 35a3b82f1bdd ("drm/connector: Introduce drmm_connector_init") introduced the function drmm_connector_init() with a parameter for an optional ddc pointer to the i2c controller used to access the DDC bus. However, the underlying call to __drm_co

dri-devel@lists.freedesktop.org

2022-10-19 Thread Arnd Bergmann
From: Arnd Bergmann Most of the legacy PXA board files were marked as unused in linux-5.19 and can get removed in linux-6.2. There is support for pxa250/pxa270/pxa300 using devicetree already, which supports a number of boards, but progress on converting the remaining ones has stalled over the pa

Re: [PATCH v2 36/37] arm64: dts: zynqmp: Add ports for the DisplayPort subsystem

2022-10-19 Thread Laurent Pinchart
Hi Michal, I plan to send a pull request for the series soon. Patches 01/37 to 35/37 will go through the DRM tree. How would you like to handle this patch and the next ? They depend on the DT binding changes in 01/37. On Thu, Sep 29, 2022 at 01:47:18AM +0300, Laurent Pinchart wrote: > The DPSUB D

Re: [PATCH] drm: tests: Fix a buffer overflow in format_helper_test

2022-10-19 Thread Javier Martinez Canillas
On 10/19/22 13:36, Maíra Canal wrote: > [cc Javier] > > Hi David, > > On 10/19/22 04:32, David Gow wrote: >> The xrgb2101010 format conversion test (unlike for other formats) does >> an endianness conversion on the results. However, it always converts >> TEST_BUF_SIZE 32-bit integers, which resul

Re: [PATCH v4 14/17] drm/i915/vm_bind: Expose i915_request_await_bind()

2022-10-19 Thread Matthew Auld
On 18/10/2022 08:16, Niranjana Vishwanathapura wrote: Rename __i915_request_await_bind() as i915_request_await_bind() and make it non-static as it will be used in execbuf3 ioctl path. Reviewed-by: Andi Shyti Signed-off-by: Niranjana Vishwanathapura --- drivers/gpu/drm/i915/i915_vma.c | 8 +--

Re: [PATCH v4 13/17] drm/i915/vm_bind: Update i915_vma_verify_bind_complete()

2022-10-19 Thread Matthew Auld
On 18/10/2022 08:16, Niranjana Vishwanathapura wrote: Ensure i915_vma_verify_bind_complete() handles case where bind is not initiated. Also make it non static, add documentation and move it out of CONFIG_DRM_I915_DEBUG_GEM. Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti ---

dri-devel@lists.freedesktop.org

2022-10-19 Thread Arnd Bergmann
From: Arnd Bergmann Most of the legacy PXA board files were marked as unused in linux-5.19 and can get removed in linux-6.2. There is support for pxa250/pxa270/pxa300 using devicetree already, which supports a number of boards, but progress on converting the remaining ones has stalled over the pa

[PATCH v1 2/7] vfio/ccw: remove private->sch

2022-10-19 Thread Eric Farman
These places all rely on the ability to jump from a private struct back to the subchannel struct. Rather than keeping a copy in our back pocket, let's use the relationship provided by the vfio_device embedded within the private. Signed-off-by: Eric Farman --- drivers/s390/cio/vfio_ccw_chp.c

[PATCH v1 1/7] vfio/ccw: create a parent struct

2022-10-19 Thread Eric Farman
Move the stuff associated with the mdev parent (and thus the subchannel struct) into its own struct, and leave the rest in the existing private structure. The subchannel will point to the parent, and the parent will point to the private, for the areas where one or both are needed. Further separati

[PATCH v1 6/7] vfio/ccw: replace vfio_init_device with _alloc_

2022-10-19 Thread Eric Farman
Now that we have a reasonable separation of structs that follow the subchannel and mdev lifecycles, there's no reason we can't call the official vfio_alloc_device routine for our private data, and behave like everyone else. Signed-off-by: Eric Farman --- drivers/s390/cio/vfio_ccw_drv.c | 29

[PATCH v1 4/7] vfio/ccw: move private to mdev lifecycle

2022-10-19 Thread Eric Farman
Now that the mdev parent data is split out into its own struct, it is safe to move the remaining private data to follow the mdev probe/remove lifecycle. The mdev parent data will remain where it is, and follow the subchannel and the css driver interfaces. Signed-off-by: Eric Farman --- drivers/s

[PATCH v1 7/7] vfio: Remove vfio_free_device

2022-10-19 Thread Eric Farman
With the "mess" sorted out, we should be able to inline the vfio_free_device call introduced by commit cb9ff3f3b84c ("vfio: Add helpers for unifying vfio_device life cycle") and remove them from driver release callbacks. Signed-off-by: Eric Farman --- drivers/gpu/drm/i915/gvt/kvmgt.c | 1 -

[PATCH v1 3/7] vfio/ccw: move private initialization to callback

2022-10-19 Thread Eric Farman
There's already a device initialization callback that is used to initialize the release completion workaround. Move the other elements of the vfio_ccw_private struct that require distinct initialization over to that routine. Signed-off-by: Eric Farman --- drivers/s390/cio/vfio_ccw_drv.c | 5

[PATCH v1 5/7] vfio/ccw: remove release completion

2022-10-19 Thread Eric Farman
There's enough separation between the parent and private structs now, that it is fine to remove the release completion hack. Signed-off-by: Eric Farman --- drivers/s390/cio/vfio_ccw_ops.c | 14 +- drivers/s390/cio/vfio_ccw_private.h | 3 --- 2 files changed, 1 insertion(+), 16 d

[PATCH v1 0/7] vfio-ccw parent rework

2022-10-19 Thread Eric Farman
Hi all, There have been discussions and attempts [1][2] to rework the vfio-ccw device lifecycle to better align with the needs/expectations of vfio and mdev. While those languished, commit cb9ff3f3b84c ("vfio: Add helpers for unifying vfio_device life cycle") implemented a couple of tricks that he

Re: [PATCH 05/16] drm/vmwgfx: Refactor resource validation hashtable to use linux/hashtable implementation.

2022-10-19 Thread Zack Rusin
On Wed, 2022-10-19 at 12:21 +0200, Thomas Hellström (Intel) wrote: > ⚠ External Email > > On 10/17/22 21:54, Zack Rusin wrote: > > From: Maaz Mombasawala > > > > Vmwgfx's hashtab implementation needs to be replaced with linux/hashtable > > to reduce maintenence burden. > > As part of this effort

Re: [PATCH 05/16] drm/vmwgfx: Refactor resource validation hashtable to use linux/hashtable implementation.

2022-10-19 Thread Intel
Hi, Zack, On 10/19/22 18:32, Zack Rusin wrote: On Wed, 2022-10-19 at 12:21 +0200, Thomas Hellström (Intel) wrote: ⚠ External Email On 10/17/22 21:54, Zack Rusin wrote: From: Maaz Mombasawala Vmwgfx's hashtab implementation needs to be replaced with linux/hashtable to reduce maintenence burd

Re: [PATCH 1/6] drm/ttm: rework on ttm_resource to use size_t type

2022-10-19 Thread Christian König
Am 19.10.22 um 17:27 schrieb Somalapuram Amaranath: Change ttm_resource structure from num_pages to size_t size in bytes. When you remove the num_pages field (instead of adding the size additionally) you need to change all drivers in one patch. Otherwise the build would break in between patc

Re: [PATCH 2/6] drm/amd: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Christian König
Am 19.10.22 um 17:27 schrieb Somalapuram Amaranath: Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c| 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_r

Re: [PATCH 3/6] drm/i915: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Christian König
Am 19.10.22 um 17:27 schrieb Somalapuram Amaranath: Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath Acked-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- drivers/gpu/drm/i915/i915_scatterlist.c | 4 ++-- dri

Re: [PATCH 4/6] drm/nouveau: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Christian König
Am 19.10.22 um 17:27 schrieb Somalapuram Amaranath: Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath I'm not an expert for nouveau so it might be possible that we better use bo->base.size instead of bo->resource->size at some places. But that can be c

Re: [PATCH 5/6] drm/radeon: fix’s on ttm_resource rework to use size_t type

2022-10-19 Thread Christian König
Am 19.10.22 um 17:27 schrieb Somalapuram Amaranath: Fix the ttm_resource from num_pages to size_t size. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/radeon/radeon_cs.c | 4 ++-- drivers/gpu/drm/radeon/radeon_object.c | 4 ++-- drivers/gpu/drm/radeon/radeon_trace.h | 2 +-

Re: [RFC PATCH v5 5/6] drm/tidss: Add IO CTRL and Power support for OLDI TX in am625

2022-10-19 Thread Aradhya Bhatia
Hi Tomi On 12-Oct-22 17:59, Tomi Valkeinen wrote: On 28/09/2022 20:52, Aradhya Bhatia wrote: The ctrl mmr module of the AM625 is different from the AM65X SoC. Thus the ctrl mmr registers that supported the OLDI TX power have become different in AM625 SoC. Add IO CTRL support and control the OL

Re: [PATCH v1 6/7] vfio/ccw: replace vfio_init_device with _alloc_

2022-10-19 Thread Jason Gunthorpe
On Wed, Oct 19, 2022 at 06:21:34PM +0200, Eric Farman wrote: > /* > * Initialize a vfio_device so it can be registered to vfio core. > - * > - * Only vfio-ccw driver should call this interface. > */ > int vfio_init_device(struct vfio_device *device, struct device *dev, >c

Re: [PATCH v1 7/7] vfio: Remove vfio_free_device

2022-10-19 Thread Jason Gunthorpe
On Wed, Oct 19, 2022 at 06:21:35PM +0200, Eric Farman wrote: > With the "mess" sorted out, we should be able to inline the > vfio_free_device call introduced by commit cb9ff3f3b84c > ("vfio: Add helpers for unifying vfio_device life cycle") > and remove them from driver release callbacks. > > Sign

Re: [PATCH v1 0/7] vfio-ccw parent rework

2022-10-19 Thread Jason Gunthorpe
On Wed, Oct 19, 2022 at 06:21:28PM +0200, Eric Farman wrote: > This series attempts to address the oddities/shortcomings of vfio-ccw, such > that vfio-ccw can use the same helpers as everyone else, and the tricks that > were implemented by the other drivers can be removed. It is built on 6.1-rc1,

  1   2   >