Re: [PATCH 3/9] ASoC: test-component: use new of_graph functions

2024-08-07 Thread Tomi Valkeinen
On 06/08/2024 07:58, Kuninori Morimoto wrote: Current test-component.c is using for_each_endpoint_of_node() for parsing, but it should use "port" base loop instead of "endpoint", because properties are "port" base, instead of "endpoint". The subject of the patch makes this sound like it's just

[PATCH] drm/buddy: fix issue that force_merge cannot free all roots

2024-08-07 Thread Lin . Cao
If buddy manager have more than one roots and each root have sub-block need to be free. When drm_buddy_fini called, the first loop of force_merge will merge and free all of the sub block of first root, which offset is 0x0 and size is biggest(more than have of the mm size). In subsequent force_merge

Re: [PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-07 Thread Lu Yao
On 2024/8/5 17:25, Jocelyn Falempe wrote: > > > On 02/08/2024 11:39, Christian König wrote: >> Am 02.08.24 um 09:17 schrieb Lu Yao: >>> Add support for the drm_panic module, which displays a pretty user >>> friendly message on the screen when a Linux kernel panic occurs. >>> >>> Signed-off-by: Lu Y

[PATCH] drm: omapdrm: Add missing check for alloc_ordered_workqueue

2024-08-07 Thread Ma Ke
As it may return NULL pointer and cause NULL pointer dereference. Add check for the return value of alloc_ordered_workqueue. Cc: sta...@vger.kernel.org Fixes: 2f95bc6d324a ("drm: omapdrm: Perform initialization/cleanup at probe/remove time") Signed-off-by: Ma Ke --- drivers/gpu/drm/omapdrm/omap

Re: [PATCH 1/9] drm/amdgpu: Use backlight power constants

2024-08-07 Thread Thomas Zimmermann
Hi Am 07.08.24 um 21:47 schrieb Alex Deucher: On Tue, Aug 6, 2024 at 3:06 AM Thomas Zimmermann wrote: Hi Am 05.08.24 um 21:00 schrieb Deucher, Alexander: [Public] -Original Message- From: Thomas Zimmermann Sent: Wednesday, July 31, 2024 8:17 AM To: maarten.lankho...@linux.intel.co

Re: [PATCH v3] drm/i915/hwmon: expose fan speed

2024-08-07 Thread Raag Jadav
On Wed, Aug 07, 2024 at 02:24:27PM +0100, Andi Shyti wrote: > Hi Raag, > > > +static umode_t > > +hwm_fan_is_visible(const struct hwm_drvdata *ddat, u32 attr) > > +{ > > + struct i915_hwmon *hwmon = ddat->hwmon; > > + > > + switch (attr) { > > + case hwmon_fan_input: > > + return i

Re: [PATCH v8 3/3] drm/mediatek: Implement OF graphs support for display paths

2024-08-07 Thread 胡俊光

Re: [PATCH v8 1/3] dt-bindings: display: mediatek: Add OF graph support for board path

2024-08-07 Thread 胡俊光

Re: [PATCH v5 0/9] Improve the copy of task comm

2024-08-07 Thread Yafang Shao
On Wed, Aug 7, 2024 at 1:28 AM Alejandro Colomar wrote: > > Hi Linus, > > Serge let me know about this thread earlier today. > > On 2024-08-05, Linus Torvalds wrote: > > On Mon, 5 Aug 2024 at 20:01, Yafang Shao wrote: > > > > > > One concern about removing the BUILD_BUG_ON() is that if we extend

Re: [PATCH v6 11/12] drm/ttm, drm/xe: Add a shrinker for xe bos

2024-08-07 Thread Matthew Brost
On Wed, Jul 03, 2024 at 05:38:12PM +0200, Thomas Hellström wrote: > Rather than relying on the TTM watermark accounting add a shrinker > for xe_bos in TT or system memory. > > Leverage the newly added TTM per-page shrinking and shmem backup > support. > > Although xe doesn't fully support WONTNEE

Re: [PATCH v3] drm/i915: Explicitly cast divisor and use div_u64()

2024-08-07 Thread Andi Shyti
Hi Thorsten, > diff --git a/drivers/gpu/drm/i915/i915_perf.c > b/drivers/gpu/drm/i915/i915_perf.c > index 025a79fe5920..6ff905d2b78f 100644 > --- a/drivers/gpu/drm/i915/i915_perf.c > +++ b/drivers/gpu/drm/i915/i915_perf.c > @@ -4063,17 +4063,13 @@ static int read_properties_unlocked(struct i915_p

Re: [PATCH v6 12/12] drm/xe: Increase the XE_PL_TT watermark

2024-08-07 Thread Matthew Brost
On Wed, Jul 03, 2024 at 05:38:13PM +0200, Thomas Hellström wrote: > The XE_PL_TT watermark was set to 50% of system memory. > The idea behind that was unclear since the net effect is that > TT memory will be evicted to TTM_PL_SYSTEM memory if that > watermark is exceeded, requiring PPGTT rebinds an

Re: [PATCH v6 10/12] drm/ttm: Use fault-injection to test error paths

2024-08-07 Thread Matthew Brost
On Wed, Jul 03, 2024 at 05:38:11PM +0200, Thomas Hellström wrote: > Use fault-injection to test partial TTM swapout and interrupted swapin. > Return -EINTR for swapin to test the callers ability to handle and > restart the swapin, and on swapout perform a partial swapout to test that > the swapin a

Re: [PATCH v6 09/12] drm/ttm/pool: Provide a helper to shrink pages

2024-08-07 Thread Matthew Brost
On Wed, Jul 03, 2024 at 05:38:10PM +0200, Thomas Hellström wrote: > Provide a helper to shrink ttm_tt page-vectors on a per-page > basis. A ttm_backup backend could then in theory get away with > allocating a single temporary page for each struct ttm_tt. > > This is accomplished by splitting large

Re: [PATCH v6 12/12] drm/xe: Increase the XE_PL_TT watermark

2024-08-07 Thread Matthew Brost
On Mon, Aug 05, 2024 at 12:35:34PM -0600, Souza, Jose wrote: > On Wed, 2024-07-03 at 17:38 +0200, Thomas Hellström wrote: > > The XE_PL_TT watermark was set to 50% of system memory. > > The idea behind that was unclear since the net effect is that > > TT memory will be evicted to TTM_PL_SYSTEM memo

Re: [PATCH v3 2/2] drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions

2024-08-07 Thread Doug Anderson
Hi, On Tue, Aug 6, 2024 at 7:00 AM Tejas Vipin wrote: > > Use multi style wrapped functions for mipi_dsi in the > startek-kd070fhfid015 panel. > > Signed-off-by: Tejas Vipin > --- > .../drm/panel/panel-startek-kd070fhfid015.c | 115 ++ > 1 file changed, 35 insertions(+), 80 de

Re: [PATCH v3 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-08-07 Thread Doug Anderson
Hi, On Tue, Aug 6, 2024 at 7:00 AM Tejas Vipin wrote: > > Add more functions that can benefit from being multi style and mark > older variants as deprecated to eventually convert all mipi_dsi functions > to multi style. > > Acked-by: Maxime Ripard > Signed-off-by: Tejas Vipin > --- > drivers/g

Re: [PATCH v3 0/2] Modify the method of sending "exit sleep

2024-08-07 Thread Doug Anderson
Hi, On Wed, Aug 7, 2024 at 3:04 AM Zhaoxiong Lv wrote: > > This "exit sleep mode" and "set display on" command needs to > be sent in LP mode, so move "exit sleep mode" and "set display > on" command to the init() function. > > Modify the Melfas panel init code to satisfy the gamma value of 2.2. >

Re: [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers

2024-08-07 Thread Daniel Gomez
On Wed, Aug 07, 2024 at 05:38:28PM GMT, Nicolas Schier wrote: > On Wed, Aug 07, 2024 at 01:09:20AM +0200, Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > > > The genheaders requires the bitsperlong.h and posix_types.h headers. > > To ensure these headers are found during compilation o

Re: [PATCH 03/12] file2alias: fix uuid_t definitions for macos

2024-08-07 Thread Daniel Gomez
On Wed, Aug 07, 2024 at 05:30:40PM GMT, Nicolas Schier wrote: > On Wed, Aug 07, 2024 at 01:09:17AM +0200, Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > > > The uuid_t struct defined in sys/types.h on macOS hosts conflicts with > > the one defined in file2alias, resulting in the type

Re: [PATCH] drm/i915: Fix NULL ptr deref in intel_async_flip_check_uapi()

2024-08-07 Thread Andi Shyti
Hi Ma, > diff --git a/drivers/gpu/drm/i915/display/intel_display.c > b/drivers/gpu/drm/i915/display/intel_display.c > index c2c388212e2e..9dd7b5985d57 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -6115,7 +6115,7 @@ static in

Re: [RFC PATCH] drm/panel: synaptics-r63353: Fix regulator unbalance

2024-08-07 Thread Michael Nazzareno Trimarchi
Hi Doug On Wed, Aug 7, 2024 at 11:02 PM Doug Anderson wrote: > > Hi, > > On Wed, Aug 7, 2024 at 5:39 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Doug > > > > +cc Doug > > > > I have seen that you have done some re-working and investigation on > > drm stack, do you have some > > suggestion

Re: [RFC PATCH] drm/panel: synaptics-r63353: Fix regulator unbalance

2024-08-07 Thread Doug Anderson
Hi, On Wed, Aug 7, 2024 at 5:39 AM Michael Nazzareno Trimarchi wrote: > > Hi Doug > > +cc Doug > > I have seen that you have done some re-working and investigation on > drm stack, do you have some > suggestion on this case? > > On Mon, Jun 24, 2024 at 8:53 PM Michael Trimarchi > wrote: > > > > T

Re: [PATCH 1/2] PCI: Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()

2024-08-07 Thread David Airlie
On Thu, Aug 8, 2024 at 6:33 AM Bjorn Helgaas wrote: > > On Wed, Aug 07, 2024 at 10:30:18AM +0200, Philipp Stanner wrote: > > pcim_iomap_regions() is a complicated function that uses a bit mask to > > determine the BARs the user wishes to request and ioremap. Almost all > > users only ever set a si

[PATCH v5 9/9] drm/amd/display: remove dc_edid handler from dm_helpers_parse_edid_caps

2024-08-07 Thread Melissa Wen
We can parse edid caps from drm_edid and drm_eld and any calls of dm_helpers_parse_edid_caps is made in a state that we have drm_edid set to amdgpu connector. v5: also remove the parameter from kernel-doc (kernel test bot) Signed-off-by: Melissa Wen --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_

[PATCH v5 8/9] drm/amd/display: get SADB from drm_eld when parsing EDID caps

2024-08-07 Thread Melissa Wen
drm_edid_connector_update() updates display info, filling ELD with speaker allocation data in the last step of update_dislay_info(). Our goal is stopping using raw edid, so we can extract SADB from drm_eld instead of access raw edid to get audio caps. v5: add more informative commit description (A

[PATCH v5 7/9] drm/amd/display: get SAD from drm_eld when parsing EDID caps

2024-08-07 Thread Melissa Wen
drm_edid_connector_update() updates display info, filling ELD with audio info from Short-Audio Descriptors in the last step of update_dislay_info(). Our goal is stopping using raw edid, so we can extract SAD from drm_eld instead of access raw edid to get audio caps. v5: - squash with `don't give i

[PATCH v5 6/9] drm/amd/display: parse display name from drm_eld

2024-08-07 Thread Melissa Wen
We don't need to parse dc_edid to get the display name since it's already set in drm_eld which in turn had it values updated when updating connector with the opaque drm_edid. Signed-off-by: Melissa Wen --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 10 ++ 1 file changed, 6

[PATCH v5 5/9] drm/amd/display: use drm_edid_product_id for parsing EDID product info

2024-08-07 Thread Melissa Wen
Since [1], we can use drm_edid_product_id to get debug info from drm_edid instead of directly parsing EDID. [1] https://lore.kernel.org/dri-devel/cover.1712655867.git.jani.nik...@intel.com/ Signed-off-by: Melissa Wen --- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 37 ++- 1

[PATCH v5 4/9] drm/amd/display: remove redundant freesync parser for DP

2024-08-07 Thread Melissa Wen
When updating connector under drm_edid infrastructure, many calculations and validations are already done and become redundant inside AMD driver. Remove those driver-specific code in favor of the DRM common code. v5: - squash with unused variabels cleanup (Alex H.) Signed-off-by: Melissa Wen ---

[PATCH v5 3/9] drm/amd/display: always call connector_update when parsing freesync_caps

2024-08-07 Thread Melissa Wen
Update connector caps with drm_edid data before parsing info for freesync. Signed-off-by: Melissa Wen --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm

[PATCH v5 2/9] drm/amd/display: switch to setting physical address directly

2024-08-07 Thread Melissa Wen
Connectors have source physical address available in display info. Use drm_dp_cec_attach() to use it instead of parsing the EDID again. Signed-off-by: Melissa Wen --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v5 1/9] drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid

2024-08-07 Thread Melissa Wen
Replace raw edid handling (struct edid) with the opaque EDID type (struct drm_edid) on amdgpu_dm_connector for consistency. It may also prevent mismatch of approaches in different parts of the driver code. Working in progress. It was only exercised with IGT tests. v2: use const to fix warnings (Al

Re: [RFC] amdgpu: Add a context flag to disable implicit sync

2024-08-07 Thread Bas Nieuwenhuizen
On Wed, Aug 7, 2024 at 10:25 PM Faith Ekstrand wrote: > On Wed, Aug 7, 2024 at 2:23 PM Joshua Ashton wrote: > >> I was thinking about this more recently. I was initially considering >> "maybe this should be a per-BO import," but I couldn't think of anything in >> the GL model that would actually

[PATCH v5 0/9] drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid

2024-08-07 Thread Melissa Wen
Hi, Here AMD display driver migrates from open struct edid to opaque drm_edid. This version works on top of amd/drm-next branch since amd-staging-drm-next doesn't have the commits that support drm_edid_product_id[1]. It's mostly addressing Alex Hung's feedback from the previous version. Patches 1

Re: [RFC] amdgpu: Add a context flag to disable implicit sync

2024-08-07 Thread Faith Ekstrand
On Wed, Aug 7, 2024 at 2:23 PM Joshua Ashton wrote: > I was thinking about this more recently. I was initially considering > "maybe this should be a per-BO import," but I couldn't think of anything in > the GL model that would actually benefit given its not "true" bindless and > there's no update

Re: [PATCH 1/2] PCI: Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()

2024-08-07 Thread Bjorn Helgaas
On Wed, Aug 07, 2024 at 10:30:18AM +0200, Philipp Stanner wrote: > pcim_iomap_regions() is a complicated function that uses a bit mask to > determine the BARs the user wishes to request and ioremap. Almost all > users only ever set a single bit in that mask, making that mechanism > questionable. >

Re: [PATCH 01/12] scripts: subarch.include: fix SUBARCH on MacOS hosts

2024-08-07 Thread Nicolas Schier
On Wed, Aug 07, 2024 at 01:09:15AM +0200, Daniel Gomez via B4 Relay wrote: > From: Nick Desaulniers > > When building the Linux kernel on an aarch64 MacOS based host, if we don't > specify a value for ARCH when invoking make, we default to arm and thus > multi_v7_defconfig rather than the expecte

Re: [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers

2024-08-07 Thread Nicolas Schier
On Wed, Aug 07, 2024 at 01:09:20AM +0200, Daniel Gomez via B4 Relay wrote: > From: Daniel Gomez > > The genheaders requires the bitsperlong.h and posix_types.h headers. > To ensure these headers are found during compilation on macOS hosts, > add usr/include to HOST_EXTRACFLAGS in the genheaders M

Re: [PATCH 02/12] kbuild: add header_install dependency to scripts

2024-08-07 Thread Nicolas Schier
On Wed, Aug 07, 2024 at 01:09:16AM +0200, Daniel Gomez via B4 Relay wrote: > From: Daniel Gomez > > Export kernel headers necessary for the tools located in scripts/. This > ensures kernel headers are generated before building scripts/selinux. > > Kernel headers required for building are: asm/ty

Re: [PATCH 08/12] include: add elf.h support

2024-08-07 Thread Nicolas Schier
On Wed, Aug 07, 2024 at 04:18:54PM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 07, 2024 at 02:13:57PM +, Daniel Gomez wrote: > > > Also, as this is not internal for the kernel, but rather for userspace > > > builds, shouldn't the include/ path be different? > > > > Can you suggest an altern

Re: [PATCH 03/12] file2alias: fix uuid_t definitions for macos

2024-08-07 Thread Nicolas Schier
On Wed, Aug 07, 2024 at 01:09:17AM +0200, Daniel Gomez via B4 Relay wrote: > From: Daniel Gomez > > The uuid_t struct defined in sys/types.h on macOS hosts conflicts with > the one defined in file2alias, resulting in the typedef redefinition > error below. To resolve this conflict, redefine the u

Re: [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers

2024-08-07 Thread Paul Moore
On Wed, Aug 7, 2024 at 11:45 AM Masahiro Yamada wrote: > > On Thu, Aug 8, 2024 at 12:39 AM Nicolas Schier wrote: > > > > On Wed, Aug 07, 2024 at 01:09:20AM +0200, Daniel Gomez via B4 Relay wrote: > > > From: Daniel Gomez > > > > > > The genheaders requires the bitsperlong.h and posix_types.h hea

Re: [PATCH 00/12] Enable build system on macOS hosts

2024-08-07 Thread Daniel Gomez
On Wed, Aug 07, 2024 at 01:01:08PM GMT, Greg Kroah-Hartman wrote: > On Wed, Aug 07, 2024 at 01:09:14AM +0200, Daniel Gomez via B4 Relay wrote: > > This patch set allows for building the Linux kernel for arm64 in macOS with > > LLVM. > > Is this a requirement somewhere that this must work? It seem

Re: [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers

2024-08-07 Thread Paul Moore
On Tue, Aug 6, 2024 at 7:10 PM Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > The genheaders requires the bitsperlong.h and posix_types.h headers. > To ensure these headers are found during compilation on macOS hosts, > add usr/include to HOST_EXTRACFLAGS in the genheaders Makefile.

Re: [PATCH 04/12] drm/xe: xe_gen_wa_oob: fix program_invocation_short_name for macos

2024-08-07 Thread Daniel Gomez
On Tue, Aug 06, 2024 at 08:50:09PM GMT, Lucas De Marchi wrote: > On Wed, Aug 07, 2024 at 01:09:18AM GMT, Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > > > Use getprogname() [1] instead of program_invocation_short_name() [2] > > for macOS hosts. > > > > [1]: > > https://www.gnu.org/

Re: [PATCH 08/12] include: add elf.h support

2024-08-07 Thread Daniel Gomez
On Wed, Aug 07, 2024 at 01:04:29PM GMT, Greg Kroah-Hartman wrote: > On Wed, Aug 07, 2024 at 01:09:22AM +0200, Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > > > Add a copy of elf/elf.h header from the GNU C Library (glibc), version > > glibc-2.40 into include/elf. Update Makefiles wh

[PATCH v3] drm/i915: Explicitly cast divisor and use div_u64()

2024-08-07 Thread Thorsten Blum
As the comment explains, the if check ensures that the divisor oa_period is a u32. Explicitly cast oa_period to u32 to remove the following Coccinelle/coccicheck warning reported by do_div.cocci: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead Use the prefer

Re: [PATCH 1/9] drm/amdgpu: Use backlight power constants

2024-08-07 Thread Alex Deucher
On Tue, Aug 6, 2024 at 3:06 AM Thomas Zimmermann wrote: > > Hi > > Am 05.08.24 um 21:00 schrieb Deucher, Alexander: > > [Public] > > > >> -Original Message- > >> From: Thomas Zimmermann > >> Sent: Wednesday, July 31, 2024 8:17 AM > >> To: maarten.lankho...@linux.intel.com; mrip...@kernel.

Re: [RFC] amdgpu: Add a context flag to disable implicit sync

2024-08-07 Thread Joshua Ashton
I was thinking about this more recently. I was initially considering "maybe this should be a per-BO import," but I couldn't think of anything in the GL model that would actually benefit given its not "true" bindless and there's no update-after-bind there. Worth others more familiar with GL aski

[PATCH 3/3] drm/panfrost: Handle JD_REQ_CYCLE_COUNT

2024-08-07 Thread Mary Guillemard
If a job requires cycle counters or system timestamps propagation, we must enable cycle counting before issuing a job and disable it right after the job completes. Since this extends the uAPI and because userland needs a way to advertise features like VK_KHR_shader_clock conditionally, we bumps th

[PATCH 2/3] drm/panfrost: Add cycle counter job requirement

2024-08-07 Thread Mary Guillemard
Extend the uAPI with a new job requirement flag for cycle counters. This requirement is used by userland to indicate that a job requires cycle counters or system timestamp to be propagated. (for use with write value timestamp jobs) We cannot enable cycle counters unconditionally as this would resu

[PATCH 1/3] drm/panfrost: Add SYSTEM_TIMESTAMP and SYSTEM_TIMESTAMP_FREQUENCY parameters

2024-08-07 Thread Mary Guillemard
Expose system timestamp and frequency supported by the GPU. Mali uses the generic arch timer as GPU system time so we currently wire cntvct_el0 and cntfrq_el0 respectively to those parameters. We could have directly read those values from userland but handling this here allows us to be future proo

[PATCH 0/3] drm/panfrost: Wire cycle counters and timestamp info to userspace

2024-08-07 Thread Mary Guillemard
Mali has hardware cycle counters and GPU timestamps available for profiling. This patch series adds support for cycle counters propagation and also new timestamp info parameters. Those new changes to the uAPI will be used in Mesa to implement timestamp queries for OpenGL and Vulkan. Mary Guillem

Re: [PATCH V2 01/10] accel/amdxdna: Add a new driver for AMD AI Engine

2024-08-07 Thread Lizhi Hou
On 8/7/24 04:06, Markus Elfring wrote: If you temporarily find the circumstances too challenging for applications of scope-based resource management, I suggest to use the following statements instead (so that a bit of redundant code can be avoided). … +++ b/drivers/accel/amdxdna/aie2_pci.c

Re: [PATCH 0/2] drm/virtio: introduce the HOST_PAGE_SIZE feature

2024-08-07 Thread Gurchetan Singh
On Tue, Aug 6, 2024 at 1:15 PM Rob Clark wrote: > On Tue, Aug 6, 2024 at 9:15 AM Gurchetan Singh > wrote: > > > > > > > > On Mon, Aug 5, 2024 at 2:14 AM Sergio Lopez Pascual > wrote: > >> > >> Dmitry Osipenko writes: > >> > >> > On 7/23/24 14:49, Sergio Lopez wrote: > >> >> There's an incresin

[PATCH] drm/panthor: Add DEV_QUERY_TIMESTAMP_INFO dev query

2024-08-07 Thread Mary Guillemard
Expose system timestamp and frequency supported by the GPU with a new device query. Mali uses the generic arch timer as GPU system time so we currently wire cntvct_el0 and cntfrq_el0 respectively to a new device query. We could have directly read those values from userland but handling this here a

Re: [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers

2024-08-07 Thread Masahiro Yamada
On Thu, Aug 8, 2024 at 12:39 AM Nicolas Schier wrote: > > On Wed, Aug 07, 2024 at 01:09:20AM +0200, Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > > > The genheaders requires the bitsperlong.h and posix_types.h headers. > > To ensure these headers are found during compilation on macO

Re: [PATCH v2 1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-08-07 Thread Leonard Lausen
On 8/7/24 06:44, Dmitry Baryshkov wrote:> Could you please clarify, I was under the impression that currently whole suspend/resume is broken, so it's more than a dmesg message. 71174f362d67 specifically, or v6.9 more broadly regress in that we get "[dpu error]connector not connected 3" and "[drm

[RFC] amdgpu: Add a context flag to disable implicit sync

2024-08-07 Thread Faith Ekstrand
Previously, AMDGPU_GEM_CREATE_EXPLICIT_SYNC was used to disable implicit synchronization on BOs when explicit synchronization can be used. The problem is that this flag is per-BO and affects all amdgpu users in the system, not just the usermode drver which sets it. This can lead to some unintende

Re: [PATCH 05/12] accessiblity/speakup: genmap and makemapdata require linux/version.h

2024-08-07 Thread Masahiro Yamada
genmap and makemapdata DO NOT require linux/version.h Removing bogus "#include " is the right fix. On Wed, Aug 7, 2024 at 8:10 AM Daniel Gomez via B4 Relay wrote: > > From: Daniel Gomez > > Both genmap and makemapdata require the linux/version.h header. To > ensure successful builds on ma

[PATCH 2/2] ALSA: pcm: Drop PCM vmalloc buffer helpers

2024-08-07 Thread Takashi Iwai
As the last-standing user of PCM vmalloc buffer helper API took its own buffer management, we can finally drop those API functions, which were leftover after reorganization of ALSA memalloc code. Signed-off-by: Takashi Iwai --- include/sound/pcm.h | 42 - sound/co

[PATCH 1/2] drm/bridge: dw-hdmi: Move vmalloc PCM buffer management into the driver

2024-08-07 Thread Takashi Iwai
The dw-hdmi drm bridge driver is the only one who still uses the ALSA vmalloc helper API functions. A previous attempt to change the way of buffer management wasn't taken for this legacy stuff, as we had little chance for test and some risk of major breaking. Instead, this patch moves the vmalloc

[PATCH 0/2] ALSA/DRM: vmalloc PCM buffer helper cleanup

2024-08-07 Thread Takashi Iwai
Hi, we still keep the legacy vmalloc ALSA PCM helper API since there is only a single user of it, namely, the DRM dw-hdmi bridge driver. In the past, I attempted to change the buffer management of the driver, but due to the lack of testing, it failed to get merged: https://lore.kernel.org/201912

Re: [PATCH v2 0/4] drm/msm/adreno: Add A615 GPU for SDM670 and Pixel 3a

2024-08-07 Thread Rob Herring (Arm)
On Tue, 06 Aug 2024 17:44:54 -0400, Richard Acayan wrote: > This adds support for the speed-binned A615 GPU on SDM670. > > Changes since v1 (20240730013844.41951-6-mailingrad...@gmail.com): > - add Acked-by tag (1/4) > - add OPPs exclusive to some speed bins (3/4) > - enable GMU by default (3/4)

[PATCH 6.1 76/86] drm/vmwgfx: Fix a deadlock in dma buf fence polling

2024-08-07 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin commit e58337100721f3cc0c7424a18730e4f39844934f upstream. Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't requir

[PATCH 6.1 32/86] drm/udl: Remove DRM_CONNECTOR_POLL_HPD

2024-08-07 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Zimmermann [ Upstream commit 5aed213c7c6c4f5dcb1a3ef146f493f18fe703dc ] DisplayLink devices do not generate hotplug events. Remove the poll flag DRM_CONNECTOR_POLL_HPD, as it may not be

[PATCH 6.6 106/121] drm/vmwgfx: Fix a deadlock in dma buf fence polling

2024-08-07 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin commit e58337100721f3cc0c7424a18730e4f39844934f upstream. Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't requir

[PATCH 6.10 094/123] drm/ast: Fix black screen after resume

2024-08-07 Thread Greg Kroah-Hartman
6.10-stable review patch. If anyone has any objections, please let me know. -- From: Jammy Huang commit 12c35c5582acb0fd8f7713ffa75f450766022ff1 upstream. Suspend will disable pcie device. Thus, resume should do full hw initialization again. Add some APIs to ast_drm_thaw() bef

[PATCH 6.10 093/123] drm/ast: astdp: Wake up during connector status detection

2024-08-07 Thread Greg Kroah-Hartman
6.10-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Zimmermann commit 0ce91928ec62d189b5c51816e325f02587b53118 upstream. Power up the ASTDP connector for connection status detection if the connector is not active. Keep it powered if a di

[PATCH 6.10 092/123] drm/vmwgfx: Fix handling of dumb buffers

2024-08-07 Thread Greg Kroah-Hartman
6.10-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin commit d6667f0ddf46c671d379cd5fe66ce0a54d2a743a upstream. Dumb buffers can be used in kms but also through prime with gallium's resource_from_handle. In the second case the dumb buf

[PATCH 6.10 091/123] drm/vmwgfx: Fix a deadlock in dma buf fence polling

2024-08-07 Thread Greg Kroah-Hartman
6.10-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin commit e58337100721f3cc0c7424a18730e4f39844934f upstream. Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't requi

[PATCH 6.10 022/123] drm/vmwgfx: Make sure the screen surface is ref counted

2024-08-07 Thread Greg Kroah-Hartman
6.10-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 09f34a00272d2311f6e5d64ed8ad824ef78f7487 ] Fix races issues in virtual crc generation by making sure the surface the code uses for crc computation is properly ref

Re: [PATCH v2] drm/i915: Explicitly cast divisor and use div_u64()

2024-08-07 Thread Andi Shyti
Hi Thorsten, > > /* This check is primarily to ensure that oa_period <= > > -* UINT32_MAX (before passing to do_div which only > > +* UINT32_MAX (before passing it to div_u64 which only > > * accepts a u32 denominator

Re: [PATCH V2 09/16] drm/vc4: v3d: simplify clock retrieval

2024-08-07 Thread Stefan Wahren
Hi Maíra, Am 07.08.24 um 16:31 schrieb Maíra Canal: Hi Stefan, On 8/2/24 10:00, Stefan Wahren wrote: Hi Maíra, Am 02.08.24 um 14:56 schrieb Maíra Canal: Hi Stefan, On 7/31/24 13:41, Stefan Wahren wrote: Hi Maíra, Am 30.07.24 um 13:23 schrieb Maíra Canal: On 7/28/24 10:00, Stefan Wahren w

Patch "drm/vmwgfx: Fix handling of dumb buffers" has been added to the 6.10-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vmwgfx: Fix handling of dumb buffers to the 6.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-vmwgfx-fi

Patch "drm/vmwgfx: Fix a deadlock in dma buf fence polling" has been added to the 6.10-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vmwgfx: Fix a deadlock in dma buf fence polling to the 6.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: dr

Patch "drm/ast: astdp: Wake up during connector status detection" has been added to the 6.10-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/ast: astdp: Wake up during connector status detection to the 6.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "drm/ast: Fix black screen after resume" has been added to the 6.10-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/ast: Fix black screen after resume to the 6.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-ast-fix-bla

Patch "drm/vmwgfx: Fix a deadlock in dma buf fence polling" has been added to the 6.6-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vmwgfx: Fix a deadlock in dma buf fence polling to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm

Patch "drm/ast: Fix black screen after resume" has been added to the 6.6-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/ast: Fix black screen after resume to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-ast-fix-blac

Patch "drm/ast: astdp: Wake up during connector status detection" has been added to the 6.6-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/ast: astdp: Wake up during connector status detection to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "drm/vmwgfx: Fix a deadlock in dma buf fence polling" has been added to the 6.1-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vmwgfx: Fix a deadlock in dma buf fence polling to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm

Patch "drm/vmwgfx: Fix a deadlock in dma buf fence polling" has been added to the 5.15-stable tree

2024-08-07 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/vmwgfx: Fix a deadlock in dma buf fence polling to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: dr

Re: [PATCH V2 09/16] drm/vc4: v3d: simplify clock retrieval

2024-08-07 Thread Maíra Canal
Hi Stefan, On 8/2/24 10:00, Stefan Wahren wrote: Hi Maíra, Am 02.08.24 um 14:56 schrieb Maíra Canal: Hi Stefan, On 7/31/24 13:41, Stefan Wahren wrote: Hi Maíra, Am 30.07.24 um 13:23 schrieb Maíra Canal: On 7/28/24 10:00, Stefan Wahren wrote: Common pattern of handling deferred probe can b

Re: [PATCH 00/12] Enable build system on macOS hosts

2024-08-07 Thread Greg Kroah-Hartman
On Wed, Aug 07, 2024 at 01:56:38PM +, Daniel Gomez wrote: > On Wed, Aug 07, 2024 at 01:01:08PM GMT, Greg Kroah-Hartman wrote: > > On Wed, Aug 07, 2024 at 01:09:14AM +0200, Daniel Gomez via B4 Relay wrote: > > > This patch set allows for building the Linux kernel for arm64 in macOS > > > with >

Re: [PATCH 08/12] include: add elf.h support

2024-08-07 Thread Greg Kroah-Hartman
On Wed, Aug 07, 2024 at 02:13:57PM +, Daniel Gomez wrote: > > Also, as this is not internal for the kernel, but rather for userspace > > builds, shouldn't the include/ path be different? > > Can you suggest an alternative path or provide documentation that could help > identify the correct loc

Re: [PATCH] drm/i915/dg2: Enable Wa_14019159160 for DG2

2024-08-07 Thread Andi Shyti
Hi John, On Mon, Aug 05, 2024 at 05:57:19PM -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > The context switch hold out workaround also applies to DG2. > > Signed-off-by: John Harrison Reviewed-by: Andi Shyti Thanks, Andi

RE: [PATCH] drm/i915/gt: Mark the GT as dead when mmio is unreliable

2024-08-07 Thread Cavitt, Jonathan
-Original Message- From: Andi Shyti Sent: Wednesday, August 7, 2024 2:10 AM To: intel-gfx ; dri-devel Cc: Chris Wilson ; Das, Nirmoy ; Cavitt, Jonathan ; Andi Shyti Subject: [PATCH] drm/i915/gt: Mark the GT as dead when mmio is unreliable > > From: Chris Wilson > > After we detect

RE: [PATCH] drm/i915/gem: Improve pfn calculation readability in vm_fault_gtt()

2024-08-07 Thread Cavitt, Jonathan
-Original Message- From: Andi Shyti Sent: Wednesday, August 7, 2024 3:46 AM To: intel-gfx ; dri-devel Cc: Niemiec, Krzysztof ; Andi Shyti ; Cavitt, Jonathan Subject: [PATCH] drm/i915/gem: Improve pfn calculation readability in vm_fault_gtt() > > By moving the pfn calculation to the

Re: [PATCH 2/2] Revert "drm/amd/display: add panel_power_savings sysfs entry to eDP connectors"

2024-08-07 Thread Leo Li
On 2024-08-07 01:13, Mario Limonciello wrote: On 8/6/24 13:42, Sebastian Wick wrote: From: Sebastian Wick This reverts commit 63d0b87213a0ba241b3fcfba3fe7b0aed0cd1cc5. The panel_power_savings sysfs entry can be used to change the displayed colorimetry which breaks color managed setups. Th

[PATCH v2 5/5] drm/panic: Add panic description

2024-08-07 Thread Jocelyn Falempe
Now that kmsg dump callback has the description parameter, use it in the user panic screen. This is the string passed to panic(), like "VFS: Unable to mount root fs on xxx" or "Attempted to kill init! exitcode=0". It gives a hint on why the panic occurred, without being too cryptic. Signed-off

[PATCH v2 4/5] drm/panic: Move copyright notice to the top

2024-08-07 Thread Jocelyn Falempe
Move the copyright notice to the top of drm_panic.h, and add the missing Red Hat copyright notice. Suggested-by: Thomas Zimmermann Signed-off-by: Jocelyn Falempe Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- include/drm/drm_panic.h | 9 ++--- 1 file changed, 6 insertions(+

[PATCH v2 1/5] drm/panic: Remove space before "!" in panic message

2024-08-07 Thread Jocelyn Falempe
There is no space between the last word, and the punctuation mark in English. Suggested-by: Diego Viola Signed-off-by: Jocelyn Falempe Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH v2 3/5] drm/panic: Move drm_panic_register prototype to drm_crtc_internal.h

2024-08-07 Thread Jocelyn Falempe
drm_panic_[un]register() are only used by the core drm, and are not intended to be called by other drm drivers, so move their prototypes to drm_crtc_internal.h. Suggested-by: Daniel Vetter Signed-off-by: Jocelyn Falempe Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- drivers/gpu

[PATCH v2 2/5] drm/panic: Remove useless export symbols

2024-08-07 Thread Jocelyn Falempe
drm_panic_[un]register() are called only from the core drm, so there is no need to export them. Suggested-by: Daniel Vetter Signed-off-by: Jocelyn Falempe Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panic.c | 2 -- 1 file changed, 2 deletions(-) diff --g

[PATCH v2 0/5] drm/panic: Cleanup and add panic description

2024-08-07 Thread Jocelyn Falempe
This small series removes unused export symbols, moves internal include to drm_crtc_internal.h, and adds the panic description, now that kmsg_dump provides this information. v2: * Use a macro PANIC_MSG_LINES, instead of directly using the indice in drm_panic_set_description() (Sima) * Add drm

Re: [PATCH v3] drm/i915/hwmon: expose fan speed

2024-08-07 Thread Andi Shyti
Hi Raag, > +static umode_t > +hwm_fan_is_visible(const struct hwm_drvdata *ddat, u32 attr) > +{ > + struct i915_hwmon *hwmon = ddat->hwmon; > + > + switch (attr) { > + case hwmon_fan_input: > + return i915_mmio_reg_valid(hwmon->rg.fan_speed) ? 0444 : 0; > + default: > +

Re: [PATCH 0/2] Trivial double space style fix

2024-08-07 Thread Jani Nikula
On Wed, 07 Aug 2024, Andi Shyti wrote: > Hi, > > I was bothered a few times to see the double space in the > parameters list so that I decided to replace once and for all all > the double spaces that are not added on purpose to maintain some > visual alignment in the code. > > Checkpatch doesn't h

[PATCH 2/2] drm/i915: Replace double blank with single blank after comma

2024-08-07 Thread Andi Shyti
Do not use double blanks, ", " in function parameters where it's not required by any alignment purpose. Replase it with a single blank, ", ". Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/display/i9xx_wm.c | 2 +- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- d

  1   2   >