RE: [PATCH v3 12/12] drm/client: Add client-lib module

2024-10-08 Thread Cavitt, Jonathan
kernel options in drm_fb_helper.o, so leave this > file in the KMS-helper module for now. > > v3: > - fix commit changelog > v2: > - keep client code in core > - protect lib with DRM_CLIENT_LIB > - remove duplicate line from Makefile (Jocelyn) > > Signed-off-by: Thomas

RE: [PATCH v3 11/12] drm/client: Make client support optional

2024-10-08 Thread Cavitt, Jonathan
ient_debugfs_init() if DRM_CLIENT=n (kernel > test robot) > > Signed-off-by: Thomas Zimmermann > Cc: Alex Deucher > Cc: "Christian König" > Cc: Xinhui Pan LGTM. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/Kconfig

RE: [PATCH v3 10/12] drm/radeon: Suspend and resume clients with client helpers

2024-10-08 Thread Cavitt, Jonathan
iew this patch before deciding to push. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/radeon/radeon_device.c | 19 ++- > drivers/gpu/drm/radeon/radeon_fbdev.c | 6 -- > drivers/gpu/drm/radeon/radeon_mode.h | 3 --- > 3 files change

RE: [PATCH v3 09/12] drm/nouveau: Suspend and resume clients with client helpers

2024-10-08 Thread Cavitt, Jonathan
is is okay. I'd wait for an expert on nouveau to respond first before jumping to push. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/nouveau/nouveau_display.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers

RE: [PATCH v3 08/12] drm/amdgpu: Suspend and resume internal clients with client helpers

2024-10-08 Thread Cavitt, Jonathan
t my place to say this is okay. I'd wait for an expert on the amdgpu to respond first before jumping to push. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 22 +++--- > 1 file changed, 11 insertions(+), 1

RE: [PATCH v3 07/12] drm/client: Move suspend/resume into DRM client callbacks

2024-10-08 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Thomas Zimmermann Sent: Tuesday, October 8, 2024 4:59 AM To: sim...@ffwll.ch; airl...@gmail.com; javi...@redhat.com; jfale...@redhat.com Cc: dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org; intel-...@lists.freedesktop.org; int

RE: [PATCH v3 06/12] drm/client: Move client event handlers to drm_client_event.c

2024-10-08 Thread Cavitt, Jonathan
> - rename new files to drm_client_event.{c,h} > > Signed-off-by: Thomas Zimmermann > Cc: Jani Nikula > Cc: Rodrigo Vivi > Cc: Joonas Lahtinen > Cc: Tvrtko Ursulin > Cc: Karol Herbst > Cc: Lyude Paul > Cc: Danilo Krummrich LGTM. Reviewed-by: Jonathan Cavitt -Jona

RE: [PATCH v3 05/12] drm/fbdev: Store fbdev module parameters in separate file

2024-10-08 Thread Cavitt, Jonathan
Thomas Zimmermann LGTM. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/drm_fb_helper.c | 31 -- > drivers/gpu/drm/drm_internal.h | 7 + > drivers/gpu/drm/drm_kms_helper_common.c | 35 + > 3 files

RE: [PATCH v3 04/12] drm/fbdev: Select fbdev I/O helpers from modules that require them

2024-10-08 Thread Cavitt, Jonathan
gt; core DRM module. > > Signed-off-by: Thomas Zimmermann LGTM. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > ind

RE: [PATCH v3 03/12] drm/fbdev-dma: Select FB_DEFERRED_IO

2024-10-08 Thread Cavitt, Jonathan
gned-off-by: Thomas Zimmermann > Reported-by: kernel test robot > Closes: > https://lore.kernel.org/oe-kbuild-all/202410050241.mox9qrjp-...@intel.com/ > Fixes: 808a40b69468 ("drm/fbdev-dma: Implement damage handling and deferred > I/O") > Cc: Thomas Zimmermann > Cc

RE: [PATCH v3 02/12] drm/xe: Select DRM_CLIENT_SELECTION

2024-10-08 Thread Cavitt, Jonathan
; Signed-off-by: Thomas Zimmermann > Cc: Lucas De Marchi > Cc: "Thomas Hellström" > Cc: Rodrigo Vivi LGTM. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/xe/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/dr

RE: [PATCH v3 01/12] drm/i915: Select DRM_CLIENT_SELECTION

2024-10-08 Thread Cavitt, Jonathan
from i915. > > Signed-off-by: Thomas Zimmermann > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > Cc: Tvrtko Ursulin LGTM. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/i915/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > d

RE: [PATCH 2/2] drm/xe: Wire up DRM_XE_VM_CREATE_FLAG_EXTOBJ_BOOKKEEP

2024-09-04 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Matthew Brost Sent: Wednesday, September 4, 2024 10:05 AM To: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org Cc: simona.vet...@ffwll.ch; boris.brezil...@collabora.com; Landwerlin, Lionel G ; Graunke, Kenneth W Subject: [PA

RE: [PATCH 1/2] drm/xe: Add DRM_XE_VM_CREATE_FLAG_EXTOBJ_BOOKKEEP

2024-09-04 Thread Cavitt, Jonathan
na Vetter > Signed-off-by: Matthew Brost LGTM, though there may be an argument to be made that this should be squashed with the next patch in this series. I won't be making that argument, however. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > include/uapi/drm/xe_drm.h

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 > &

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

RE: [PATCH 2/2] drm/i915: Attempt to get pages without eviction first

2024-08-05 Thread Cavitt, Jonathan
drm/i915/kernel/-/issues/11255 > Signed-off-by: David Gow Thank you for the thorough write-up of this issue. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) &g

RE: [PATCH 1/2] drm/i915: Allow evicting to use the requested placement

2024-08-05 Thread Cavitt, Jonathan
. > > Thanks to Justin Brewer for bisecting the issue. > > Fixes: a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") > Fixes: 4a0e7b3c3753 ("drm/i915: fix applying placement flag") > Link: https://gitlab.freedesktop.org/drm/i915/kernel/-

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

2024-08-05 Thread Cavitt, Jonathan
it might be best to invert the conditional check like such: oa_freq_hz = oa_period > NSEC_PER_SEC ? 0 : div_u64(NSEC_PER_SEC, (u32)oa_period); I think this is just a matter of preference, though. The explicit if-else block is definitely clearer. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > > -- > 2.45.2 > >

RE: [PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

2024-08-02 Thread Cavitt, Jonathan
> > trace_i915_gem_object_fault(obj, page_offset, true, write); > > @@ -402,12 +441,14 @@ static vm_fault_t vm_fault_gtt(struct vm_fault *vmf) > if (ret) > goto err_unpin; > > + set_address_limits(area, vma, obj_offset, &start, &end);

RE: [PATCH 1/2] drm/i915/gem: Adjust vma offset for framebuffer mmap offset

2024-08-02 Thread Cavitt, Jonathan
is ensures that the VMA > offset is correctly aligned with the corresponding offset within > the GGTT aperture. > > Increment vm_pgoff by the start of the vma_node with the offset= > provided by the user. > > Suggested-by: Chris Wilson > Signed-off-by: Andi Shyt

RE: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Cavitt, Jonathan
-Original Message- From: Brost, Matthew Sent: Thursday, August 1, 2024 7:30 AM To: Cavitt, Jonathan Cc: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; maarten.lankho...@linux.intel.com; Vivi, Rodrigo Subject: Re: [PATCH v4 2/3] drm/printer: Allow NULL data in

RE: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Cavitt, Jonathan
-Original Message- From: Brost, Matthew Sent: Wednesday, July 31, 2024 5:03 PM To: Cavitt, Jonathan Cc: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; maarten.lankho...@linux.intel.com; Vivi, Rodrigo Subject: Re: [PATCH v4 2/3] drm/printer: Allow NULL data in

RE: [PATCH v4 3/3] drm/xe: Faster devcoredump

2024-07-31 Thread Cavitt, Jonathan
> return devm_add_action_or_reset(xe->drm.dev, > xe_driver_devcoredump_fini, &xe->drm); > } > + > #endif > diff --git a/drivers/gpu/drm/xe/xe_devcoredump_types.h > b/drivers/gpu/drm/xe/xe_devcoredump_types.h > index 923cdf72a816..0298037edae4 100644 > --- a/drivers/gpu/drm/xe/xe_devcoredump_types.h > +++ b/drivers/gpu/drm/xe/xe_devcoredump_types.h > @@ -46,6 +46,10 @@ struct xe_devcoredump_snapshot { > struct xe_sched_job_snapshot *job; > /** @vm: Snapshot of VM state */ > struct xe_vm_snapshot *vm; > + /** @read_data_size: size of read data */ > + ssize_t read_data_size; > + /** @read_data: Read data */ > + void *read_data; Perhaps the data size and read data can be stapled together under the same struct? struct { ssize_t size; void *data; } read_data; It's not that big of a deal if this is untouched, just something to consider. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > }; > > /** > -- > 2.34.1 > >

RE: [PATCH v4 1/3] drm/xe: Take ref to VM in delayed snapshot

2024-07-31 Thread Cavitt, Jonathan
t; - Drop VM in xe_lrc_snapshot_free > > 47058633d9c5 ("drm/xe: Move lrc snapshot capturing to xe_lrc.c") > Cc: Cc: Maarten Lankhorst > Signed-off-by: Matthew Brost s/need to the VM/need to get the VM Otherwise: Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drive

RE: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-07-31 Thread Cavitt, Jonathan
rtain if it could ever be uninitialized at this point, but I recognize it as good practice to check just in case regardless. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > --- > drivers/gpu/drm/drm_print.c | 13 - > 1 file changed, 8 insertions(+), 5 deletions(-) > > di

RE: [PATCH v3] drm/i915/gt: Do not consider preemption during execlists_dequeue for gen8

2024-07-11 Thread Cavitt, Jonathan
ccurately built, so fixing it here makes the most sense to me, especially if it's causing problems. Reviewed-by: Jonathan Cavitt -Jonathan Cavitt > So, add a fix to not consider preemption > during dequeuing for gen8 platforms. > > v2: Simplify can_preempt() function (Tvrtko Ursu

RE: [PATCH v2 0/2] Sparse errors on the i915_gem_stolen

2024-06-18 Thread Cavitt, Jonathan
-Original Message- From: Andi Shyti Sent: Monday, June 17, 2024 11:43 AM To: intel-gfx ; dri-devel Cc: Andi Shyti ; Cavitt, Jonathan ; De Marchi, Lucas Subject: [PATCH v2 0/2] Sparse errors on the i915_gem_stolen > > Hi Jonathan, > > Commit 05da7d9f717b ("drm/i9

RE: [PATCH] drm/i915/gt/uc: Fix typo in comment

2024-06-14 Thread Cavitt, Jonathan
> > -Original Message- From: Vivi, Rodrigo Sent: Friday, June 14, 2024 12:46 PM To: Cavitt, Jonathan Cc: Andi Shyti ; intel-gfx ; dri-devel ; Harrison, John C Subject: Re: [PATCH] drm/i915/gt/uc: Fix typo in comment > > On Fri, Jun 14, 2024 at 03:23:54PM +0000, Cavi

RE: [PATCH] drm/i915/gt/uc: Fix typo in comment

2024-06-14 Thread Cavitt, Jonathan
-Original Message- From: Andi Shyti Sent: Friday, June 14, 2024 8:22 AM To: Andi Shyti Cc: intel-gfx ; dri-devel ; Harrison, John C ; Cavitt, Jonathan Subject: Re: [PATCH] drm/i915/gt/uc: Fix typo in comment > > I guess sparse and potential CI errors won't minimally relat

RE: [PATCH] drm/i915/selftest_hangcheck: Fix potential UAF after HW fence revoke

2024-05-29 Thread Cavitt, Jonathan
-Original Message- From: Janusz Krzysztofik Sent: Wednesday, May 29, 2024 4:37 AM To: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org; Jani Nikula ; Joonas Lahtinen ; Vivi, Rodrigo ; Tvrtko Ursulin ; Andi Shyti ; Cavitt, Jonathan ; Janusz Krzysztofik Subject

RE: [PATCH] drm/i915/selftests: Set always_coherent to false when reading from CPU

2024-05-16 Thread Cavitt, Jonathan
-Original Message- From: Das, Nirmoy Sent: Thursday, May 16, 2024 8:14 AM To: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org; Das, Nirmoy ; Andi Shyti ; Janusz Krzysztofik ; Cavitt, Jonathan Subject: [PATCH] drm/i915/selftests: Set always_coherent to false when

RE: [PATCH v4 6/8] drm/xe: Cache data about user-visible engines

2024-05-16 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Lucas De Marchi Sent: Wednesday, May 15, 2024 2:43 PM To: intel...@lists.freedesktop.org Cc: Tvrtko Ursulin ; Nerlige Ramappa, Umesh ; dri-devel@lists.freedesktop.org; De Marchi, Lucas Subject: [PATCH v4 6/8] drm/xe: Cache data about user-

RE: [PATCH] drm/i915/selftests: Pick correct caching mode.

2024-03-12 Thread Cavitt, Jonathan
-Original Message- From: Das, Nirmoy Sent: Tuesday, March 12, 2024 4:18 AM To: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org; Das, Nirmoy ; Andi Shyti ; Janusz Krzysztofik ; Cavitt, Jonathan Subject: [PATCH] drm/i915/selftests: Pick correct caching mode