[PATCH] drm/i915/guc/rc: Use i915_probe_error instead of drm_error

2022-05-05 Thread Vinay Belgaumkar
To avoid false positives in error injection cases. Signed-off-by: Vinay Belgaumkar --- drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c index

[no subject]

2022-05-05 Thread Dave Airlie
Hey Linus, pretty quiet week, one fbdev, msm, kconfig, and 2 amdgpu fixes, about what I'd expect for rc6. Regards, Dave. drm-fixes-2022-05-06: drm fixes for 5.18-rc6 fbdev: - hotunplugging fix amdgpu: - Fix a xen dom0 regression on APUs - Fix a potential array overflow if a receiver were to

[PATCH] drm/rockchip: Remove unneeded semicolon

2022-05-05 Thread Haowen Bai
Fixes coccicheck warning: drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1476:2-3: Unneeded semicolon Signed-off-by: Haowen Bai --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

[PATCH] drm/amdkfd: Return true/false (not 1/0) from bool functions

2022-05-05 Thread Haowen Bai
Return boolean values ("true" or "false") instead of 1 or 0 from bool functions. Signed-off-by: Haowen Bai --- drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c

Re: [PATCH RFC v6 00/21] DEPT(Dependency Tracker)

2022-05-05 Thread Byungchul Park
Linus wrote: > > On Wed, May 4, 2022 at 1:19 AM Byungchul Park wrote: > > > > Hi Linus and folks, > > > > I've been developing a tool for detecting deadlock possibilities by > > tracking wait/event rather than lock(?) acquisition order to try to > > cover all synchonization machanisms. > > So

Re: [PATCH v3 00/21] xen: simplify frontend side ring setup

2022-05-05 Thread Boris Ostrovsky
On 5/5/22 4:16 AM, Juergen Gross wrote: Many Xen PV frontends share similar code for setting up a ring page (allocating and granting access for the backend) and for tearing it down. Create new service functions doing all needed steps in one go. This requires all frontends to use a common

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-05 Thread Dmitry Osipenko
On 5/5/22 11:34, Thomas Zimmermann wrote: > Hi > > Am 18.04.22 um 00:37 schrieb Dmitry Osipenko: >> Introduce a common DRM SHMEM shrinker. It allows to reduce code >> duplication among DRM drivers that implement theirs own shrinkers. >> This is initial version of the shrinker that covers basic

[PATCH v4 0/7] Make the rest of the VFIO driver interface use vfio_device

2022-05-05 Thread Jason Gunthorpe
Prior series have transformed other parts of VFIO from working on struct device or struct vfio_group into working directly on struct vfio_device. Based on that work we now have vfio_device's readily available in all the drivers. Update the rest of the driver facing API to use vfio_device as an

[PATCH v4 4/7] vfio/mdev: Pass in a struct vfio_device * to vfio_dma_rw()

2022-05-05 Thread Jason Gunthorpe
Every caller has a readily available vfio_device pointer, use that instead of passing in a generic struct device. Change vfio_dma_rw() to take in the struct vfio_device and move the container users that would have been held by vfio_group_get_external_user_from_dev() to vfio_dma_rw() directly, like

[PATCH v4 6/7] vfio: Remove dead code

2022-05-05 Thread Jason Gunthorpe
Now that callers have been updated to use the vfio_device APIs the driver facing group interface is no longer used, delete it: - vfio_group_get_external_user_from_dev() - vfio_group_pin_pages() - vfio_group_unpin_pages() - vfio_group_iommu_domain() Reviewed-by: Christoph Hellwig Reviewed-by:

[PATCH v4 2/7] vfio/ccw: Remove mdev from struct channel_program

2022-05-05 Thread Jason Gunthorpe
The next patch wants the vfio_device instead. There is no reason to store a pointer here since we can container_of back to the vfio_device. Reviewed-by: Eric Farman Signed-off-by: Jason Gunthorpe --- drivers/s390/cio/vfio_ccw_cp.c | 47 -

[PATCH v4 7/7] vfio: Remove calls to vfio_group_add_container_user()

2022-05-05 Thread Jason Gunthorpe
When the open_device() op is called the container_users is incremented and held incremented until close_device(). Thus, so long as drivers call functions within their open_device()/close_device() region they do not need to worry about the container_users. These functions can all only be called

[PATCH v4 1/7] vfio: Make vfio_(un)register_notifier accept a vfio_device

2022-05-05 Thread Jason Gunthorpe
All callers have a struct vfio_device trivially available, pass it in directly and avoid calling the expensive vfio_group_get_from_dev(). Acked-by: Eric Farman Reviewed-by: Jason J. Herne Reviewed-by: Tony Krowiak Reviewed-by: Kevin Tian Reviewed-by: Christoph Hellwig Signed-off-by: Jason

[PATCH v4 5/7] drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages

2022-05-05 Thread Jason Gunthorpe
Use the existing vfio_device versions of vfio_(un)pin_pages(). There is no reason to use a group interface here, kvmgt has easy access to a vfio_device. Delete kvmgt_vdev::vfio_group since these calls were the last users. Reviewed-by: Kevin Tian Reviewed-by: Christoph Hellwig Signed-off-by:

[PATCH v4 3/7] vfio/mdev: Pass in a struct vfio_device * to vfio_pin/unpin_pages()

2022-05-05 Thread Jason Gunthorpe
Every caller has a readily available vfio_device pointer, use that instead of passing in a generic struct device. The struct vfio_device already contains the group we need so this avoids complexity, extra refcountings, and a confusing lifecycle model. Reviewed-by: Christoph Hellwig Acked-by:

Re: (subset) [PATCH 1/2] [RFC] regmap: Add bulk read/write callbacks into regmap_config

2022-05-05 Thread Marek Vasut
On 5/5/22 23:08, Mark Brown wrote: On Thu, May 05, 2022 at 07:32:23PM +0200, Marek Vasut wrote: On 5/5/22 17:12, Mark Brown wrote: On Sat, 30 Apr 2022 04:51:44 +0200, Marek Vasut wrote: Currently the regmap_config structure only allows the user to implement single element register

[PATCH -next 2/2] drm/amdkfd: Return true/false (not 1/0) from bool functions

2022-05-05 Thread Yang Li
Return boolean values ("true" or "false") instead of 1 or 0 from bool functions. This fixes the following warnings from coccicheck: ./drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c:244:9-10: WARNING: return of 0/1 in function 'event_interrupt_isr_v11' with return type bool Reported-by: Abaci

[PATCH -next] drm/rockchip: remove unneeded semicolon

2022-05-05 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1476:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next 1/2] drm/amdgpu/gfx11: remove unneeded semicolon

2022-05-05 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:1222:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v1 04/15] mm: add device coherent checker to remove migration pte

2022-05-05 Thread Alistair Popple
"Sierra Guiza, Alejandro (Alex)" writes: > @apop...@nvidia.com Could you please check this patch? It's somehow related to > migrate_device_page() for long term device coherent pages. Sure thing. This whole series is in my queue of things to review once I make it home from LSF/MM. - Alistair

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-05 Thread Dmitry Osipenko
On 5/5/22 11:12, Daniel Vetter wrote: > On Wed, May 04, 2022 at 06:56:09PM +0300, Dmitry Osipenko wrote: >> On 5/4/22 11:21, Daniel Vetter wrote: >> ... > - Maybe also do what you suggest and keep a separate lock for this, but > the fundamental issue is that this doesn't really work - if

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Doug Anderson
Hi, On Thu, May 5, 2022 at 3:15 PM Dmitry Baryshkov wrote: > > On 06/05/2022 00:24, Doug Anderson wrote: > > Hi, > > > > On Thu, May 5, 2022 at 1:56 PM Dmitry Baryshkov > > wrote: > >> > >> On Thu, 5 May 2022 at 23:21, Doug Anderson wrote: > >>> > >>> Hi, > >>> > >>> On Thu, May 5, 2022 at

Re: [PATCH v10, 16/17] media: mediatek: vcodec: support stateless VP9 decoding

2022-05-05 Thread Nícolas F . R . A . Prado
On Tue, Apr 26, 2022 at 06:08:27PM +0800, Yunfei Dong wrote: > Add support for VP9 decoding using the stateless API, > as supported by MT8192. And the drivers is lat and core architecture. > > Signed-off-by: Yunfei Dong > Signed-off-by: George Sun > Reviewed-by: AngeloGioacchino Del Regno > >

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Dmitry Baryshkov
On 06/05/2022 00:24, Doug Anderson wrote: Hi, On Thu, May 5, 2022 at 1:56 PM Dmitry Baryshkov wrote: On Thu, 5 May 2022 at 23:21, Doug Anderson wrote: Hi, On Thu, May 5, 2022 at 1:10 PM Dmitry Baryshkov wrote: On Thu, 5 May 2022 at 18:53, Doug Anderson wrote: Hi, On Thu, May 5,

Re: AMD display drivers handling DRM CRTC color mgmt props

2022-05-05 Thread Melissa Wen
On 04/22, Harry Wentland wrote: > > > On 2022-04-22 10:28, Melissa Wen wrote: > > On 04/21, Harry Wentland wrote: > > > > > > > > > On 2022-04-21 15:20, Melissa Wen wrote: > > > > On 04/21, Harry Wentland wrote: > > > > > > > > > > > > > > > On 2022-04-21 10:37, Melissa Wen wrote: > > > > >

[PATCH v3 4/4] fbdev: vesafb: Cleanup fb_info in .fb_destroy rather than .remove

2022-05-05 Thread Javier Martinez Canillas
The driver is calling framebuffer_release() in its .remove callback, but this will cause the struct fb_info to be freed too early. Since it could be that a reference is still hold to it if user-space opened the fbdev. This would lead to a use-after-free error if the framebuffer device was

[PATCH v3 3/4] fbdev: efifb: Cleanup fb_info in .fb_destroy rather than .remove

2022-05-05 Thread Javier Martinez Canillas
The driver is calling framebuffer_release() in its .remove callback, but this will cause the struct fb_info to be freed too early. Since it could be that a reference is still hold to it if user-space opened the fbdev. This would lead to a use-after-free error if the framebuffer device was

[PATCH v3 2/4] fbdev: simplefb: Cleanup fb_info in .fb_destroy rather than .remove

2022-05-05 Thread Javier Martinez Canillas
The driver is calling framebuffer_release() in its .remove callback, but this will cause the struct fb_info to be freed too early. Since it could be that a reference is still hold to it if user-space opened the fbdev. This would lead to a use-after-free error if the framebuffer device was

[PATCH v3 1/4] fbdev: Prevent possible use-after-free in fb_release()

2022-05-05 Thread Javier Martinez Canillas
From: Daniel Vetter Most fbdev drivers have issues with the fb_info lifetime, because call to framebuffer_release() from their driver's .remove callback, rather than doing from fbops.fb_destroy callback. Doing that will destroy the fb_info too early, while references to it may still exist,

Re: [PATCH v3 2/2] drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected

2022-05-05 Thread Rob Clark
On Thu, May 5, 2022 at 2:41 PM Jessica Zhang wrote: > > There is a possibility for mdp5_get_global_state to return > -EDEADLK when acquiring the modeset lock, but currently global_state in > mdp5_mixer_release doesn't check for if an error is returned. > > To avoid a NULL dereference error, let's

Re: [PATCH v3 1/2] drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected

2022-05-05 Thread Rob Clark
On Thu, May 5, 2022 at 2:41 PM Jessica Zhang wrote: > > mdp5_get_global_state runs the risk of hitting a -EDEADLK when acquiring > the modeset lock, but currently mdp5_pipe_release doesn't check for if > an error is returned. Because of this, there is a possibility of > mdp5_pipe_release hitting

[PATCH v3 0/4] fbdev: Fix use-after-free caused by wrong fb_info cleanup in drivers

2022-05-05 Thread Javier Martinez Canillas
Hello, This series contains patches suggested by Daniel Vetter to fix a use-after-free error in the fb_release() function, due a fb_info associated with a fbdev being freed too early while a user-space process still has the fbdev dev node opened. That is caused by a wrong management of the

[PATCH] drm/tve200: Fix smatch warning

2022-05-05 Thread Linus Walleij
The "ret" variable is ambiguously returning something that could be zero in the tve200_modeset_init() function, assign it an explicit error return code to make this unambiguous. Reported-by: Dan Carpenter Signed-off-by: Linus Walleij --- drivers/gpu/drm/tve200/tve200_drv.c | 3 ++- 1 file

[PATCH v3 2/2] drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected

2022-05-05 Thread Jessica Zhang
There is a possibility for mdp5_get_global_state to return -EDEADLK when acquiring the modeset lock, but currently global_state in mdp5_mixer_release doesn't check for if an error is returned. To avoid a NULL dereference error, let's have mdp5_mixer_release check if an error is returned and

[PATCH v3 1/2] drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected

2022-05-05 Thread Jessica Zhang
mdp5_get_global_state runs the risk of hitting a -EDEADLK when acquiring the modeset lock, but currently mdp5_pipe_release doesn't check for if an error is returned. Because of this, there is a possibility of mdp5_pipe_release hitting a NULL dereference error. To avoid this, let's have

[PATCH v2 06/12] drm/i915/pvc: Reduce stack usage in reset selftest with extra blitter engine

2022-05-05 Thread Matt Roper
From: John Harrison PVC adds extra blitter engines (in the following patch). The reset selftest has a local array on the stack which is sized by the number of engines. The increase pushes the size of this array to the point where it trips the 'stack too large' compile warning. This patch takes

[PATCH v2 01/12] drm/i915/uncore: Reorganize and document shadow and forcewake tables

2022-05-05 Thread Matt Roper
Let's reorganize some of the forcewake/shadow handling in intel_uncore.c and consolidate the cargo-cult comments on each table into more general comments that apply to all tables. We'll probably move forcewake handling to its own dedicated file in the near future and further enhance this with

[PATCH v2 00/12] i915: Introduce Ponte Vecchio

2022-05-05 Thread Matt Roper
Ponte Vecchio (PVC) is a new GPU based on the Xe_HPC architecture. As a compute-focused platform, PVC has compute engines and enhanced copy engines, but no render engine (there is no geometry pipeline) and no display. This is just a handful of early enablement patches, including some initial

[PATCH v2 09/12] drm/i915/pvc: Interrupt support for new copy engines

2022-05-05 Thread Matt Roper
Add the interrupt handler support for new copy engines. Bspec: 54030 Original-author: CQ Tang Signed-off-by: Matt Roper Reviewed-by: Stuart Summers --- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 16 drivers/gpu/drm/i915/gt/intel_gt_regs.h | 4 2 files changed, 20

[PATCH v2 12/12] drm/i915/pvc: read fuses for link copy engines

2022-05-05 Thread Matt Roper
From: Lucas De Marchi The new Link Copy engines in PVC may be fused off according to the mslice_mask. Each bit of the MEML3_EN_MASK we read from the GEN10_MIRROR_FUSE3 register disables a pair of link copy engines. v2 (Tvrtko): - Minor cosmetic changes: s/u8/unsigned long/, use instance local

[PATCH v2 10/12] drm/i915/pvc: Reset support for new copy engines

2022-05-05 Thread Matt Roper
Add the reset support for new copy engines in PVC. Bspec: 52549 Original-author: CQ Tang Signed-off-by: Matt Roper Reviewed-by: José Roberto de Souza Reviewed-by: Stuart Summers --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 8 + drivers/gpu/drm/i915/gt/intel_gt_regs.h | 44

[PATCH v2 11/12] drm/i915/pvc: skip all copy engines from aux table invalidate

2022-05-05 Thread Matt Roper
From: Lucas De Marchi As we have more copy engines now, mask all of them from aux table invalidate. v2 (MattR): - Use I915_MAX_BCS to determine mask rather than hardcoding BCS8. (Prathap) Cc: Prathap Kumar Valsan Signed-off-by: Lucas De Marchi Signed-off-by: Matt Roper Reviewed-by: José

[PATCH v2 08/12] drm/i915/pvc: Engine definitions for new copy engines

2022-05-05 Thread Matt Roper
This patch adds the basic definitions needed to support new copy engines. Also updating the cmd_info to accommodate new engines, as the engine id's of legacy engines have been changed. v2: - Add _BCS(n) definition, similar to other engines. (Tvrtko) - Add I915_MAX_BCS definition, similar to

[PATCH v2 05/12] drm/i915/pvc: Remove additional 3D flags from PIPE_CONTROL

2022-05-05 Thread Matt Roper
From: Stuart Summers Although we already strip 3D-specific flags from PIPE_CONTROL instructions when submitting to a compute engine, there are some additional flags that need to be removed when the platform as a whole lacks a 3D pipeline. Add those restrictions here. Bspec: 47112

[PATCH v2 07/12] drm/i915/gvt: Use intel_engine_mask_t for ring mask

2022-05-05 Thread Matt Roper
When i915 adds additional PVC blitter instances (in an upcoming patch), the definition of VECS0 will change from bit(10) to bit(18), causing GVT's R_ALL mask to overflow the u16 storage that's currently used. Let's replace the u16 with an intel_engine_mask_t to ensure we avoid this. Cc: Tvrtko

[PATCH v2 03/12] drm/i915/pvc: Define MOCS table for PVC

2022-05-05 Thread Matt Roper
From: Ayaz A Siddiqui v2 (MattR): - Clarify comment above RING_CMD_CCTL programming. - Remove bspec reference from field definition. (Lucas) - Add WARN if we try to use a (presumably uninitialized) wb_index of 0. On most platforms 0 is an invalid MOCS entry and even on the ones where

[PATCH v2 04/12] drm/i915/pvc: Read correct RP_STATE_CAP register

2022-05-05 Thread Matt Roper
The SoC registers, including RP_STATE_CAP, have moved to a new location in GTTMMADR on Ponte Vecchio. We need to update the register offset accordingly. Cc: Rodrigo Vivi Signed-off-by: Matt Roper Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_rps.c | 4 +++-

[PATCH v2 02/12] drm/i915/pvc: Add forcewake support

2022-05-05 Thread Matt Roper
Add PVC's forcewake ranges. v2: - Drop replicated comment completely; move general cleanup of the documentation to a separate patch. Bspec: 67609 Cc: Daniele Ceraolo Spurio Cc: Stuart Summers Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/intel_uncore.c | 142

RE: [PATCH v1 04/15] mm: add device coherent checker to remove migration pte

2022-05-05 Thread Sierra Guiza, Alejandro (Alex)
@apop...@nvidia.com Could you please check this patch? It's somehow related to migrate_device_page() for long term device coherent pages. Regards, Alex Sierra > -Original Message- > From: amd-gfx On Behalf Of Alex > Sierra > Sent: Thursday, May 5, 2022 4:34 PM > To: j...@nvidia.com >

Re: [Intel-gfx] [PATCH v5 1/2] module: update dependencies at try_module_get()

2022-05-05 Thread Andi Shyti
Hi Mauro, [...] > +static int ref_module_dependency(struct module *mod, struct module *this) > +{ > + int ret; > + > + if (!this || !this->name) > + return -EINVAL; > + > + if (mod == this) > + return 0; > + > + mutex_lock(_mutex); > + > + ret =

[PATCH v1 14/15] tools: add hmm gup tests for device coherent type

2022-05-05 Thread Alex Sierra
The intention is to test hmm device coherent type under different get user pages paths. Also, test gup with FOLL_LONGTERM flag set in device coherent pages. These pages should get migrated back to system memory. Signed-off-by: Alex Sierra --- tools/testing/selftests/vm/hmm-tests.c | 104

[PATCH v1 13/15] mm: handling Non-LRU pages returned by vm_normal_pages

2022-05-05 Thread Alex Sierra
With DEVICE_COHERENT, we'll soon have vm_normal_pages() return device-managed anonymous pages that are not LRU pages. Although they behave like normal pages for purposes of mapping in CPU page, and for COW. They do not support LRU lists, NUMA migration or THP. We also introduced a FOLL_LRU flag

[PATCH v1 11/15] tools: update hmm-test to support device coherent type

2022-05-05 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

[PATCH v1 12/15] tools: update test_hmm script to support SP config

2022-05-05 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 v1 15/15] tools: add selftests to hmm for COW in device memory

2022-05-05 Thread Alex Sierra
The objective is to test device migration mechanism in pages marked as COW, for private and coherent device type. In case of writing to COW private page(s), a page fault will migrate pages back to system memory first. Then, these pages will be duplicated. In case of COW device coherent type, pages

[PATCH v1 09/15] lib: test_hmm add module param for zone device type

2022-05-05 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

[PATCH v1 10/15] lib: add support for device coherent type in test_hmm

2022-05-05 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

[PATCH v1 07/15] drm/amdkfd: coherent type as sys mem on migration to ram

2022-05-05 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 Signed-off-by:

[PATCH v1 08/15] lib: test_hmm add ioctl to get zone device type

2022-05-05 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 Signed-off-by: Christoph Hellwig --- lib/test_hmm.c | 23 +--

[PATCH v1 04/15] mm: add device coherent checker to remove migration pte

2022-05-05 Thread Alex Sierra
During remove_migration_pte(), entries for device coherent type pages that were not created through special migration ptes, ignore _PAGE_RW flag. This path can be found at migrate_device_page(), where valid vma is not required. In this case, migrate_vma_collect_pmd() is not called and special

[PATCH v1 06/15] drm/amdkfd: add SPM support for SVM

2022-05-05 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.

[PATCH v1 05/15] mm/gup: migrate device coherent pages when pinning instead of failing

2022-05-05 Thread Alex Sierra
From: 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 fail pinning of these

[PATCH v1 03/15] mm: remove the vma check in migrate_vma_setup()

2022-05-05 Thread Alex Sierra
From: Alistair Popple migrate_vma_setup() checks that a valid vma is passed so that the page tables can be walked to find the pfns associated with a given address range. However in some cases the pfns are already known, such as when migrating device coherent pages during pin_user_pages() meaning

[PATCH v1 02/15] mm: add device coherent vma selection for memory migration

2022-05-05 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 Signed-off-by: Christoph Hellwig ---

[PATCH v1 01/15] mm: add zone device coherent type memory support

2022-05-05 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.

[PATCH v1 00/15] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-05-05 Thread Alex Sierra
This is our MEMORY_DEVICE_COHERENT patch series rebased and updated for current 5.18-rc5. Changes since the last version: - Fixed problems with migration during long-term pinning in get_user_pages - Open coded vm_normal_lru_pages as suggested in previous code review - Update hmm_gup_test with

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Doug Anderson
Hi, On Thu, May 5, 2022 at 1:56 PM Dmitry Baryshkov wrote: > > On Thu, 5 May 2022 at 23:21, Doug Anderson wrote: > > > > Hi, > > > > On Thu, May 5, 2022 at 1:10 PM Dmitry Baryshkov > > wrote: > > > > > > On Thu, 5 May 2022 at 18:53, Doug Anderson wrote: > > > > > > > > Hi, > > > > > > > > On

Re: (subset) [PATCH 1/2] [RFC] regmap: Add bulk read/write callbacks into regmap_config

2022-05-05 Thread Mark Brown
On Thu, May 05, 2022 at 07:32:23PM +0200, Marek Vasut wrote: > On 5/5/22 17:12, Mark Brown wrote: > > On Sat, 30 Apr 2022 04:51:44 +0200, Marek Vasut wrote: > > > Currently the regmap_config structure only allows the user to implement > > > single element register read/write using

Re: [PATCH] drm/mgag200: Fail on I2C initialization errors

2022-05-05 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip tegra-drm/drm/tegra/for-next v5.18-rc5 next-20220505] [cannot apply to airlied/drm-next] [If your

Re: [Intel-gfx] [PATCH 07/11] drm/i915/pvc: Engines definitions for new copy engines

2022-05-05 Thread Matt Roper
On Tue, May 03, 2022 at 09:05:43AM +0100, Tvrtko Ursulin wrote: > > On 02/05/2022 17:34, Matt Roper wrote: > > This patch adds the basic definitions needed to support > > new copy engines. Also updating the cmd_info to accommodate > > new engines, as the engine id's of legacy engines have been >

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Dmitry Baryshkov
On Thu, 5 May 2022 at 23:21, Doug Anderson wrote: > > Hi, > > On Thu, May 5, 2022 at 1:10 PM Dmitry Baryshkov > wrote: > > > > On Thu, 5 May 2022 at 18:53, Doug Anderson wrote: > > > > > > Hi, > > > > > > On Thu, May 5, 2022 at 8:29 AM Ville Syrjälä > > > wrote: > > > > > > > > On Thu, May 05,

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Doug Anderson
Hi, On Thu, May 5, 2022 at 1:10 PM Dmitry Baryshkov wrote: > > On Thu, 5 May 2022 at 18:53, Doug Anderson wrote: > > > > Hi, > > > > On Thu, May 5, 2022 at 8:29 AM Ville Syrjälä > > wrote: > > > > > > On Thu, May 05, 2022 at 08:00:20AM -0700, Doug Anderson wrote: > > > > Hi, > > > > > > > > On

Re: [PATCH 2/2] drm/probe-helper: For DP, add 640x480 if all other modes are bad

2022-05-05 Thread Dmitry Baryshkov
On Tue, 26 Apr 2022 at 21:47, Douglas Anderson wrote: > > As per Displayport spec section 5.2.1.2 ("Video Timing Format") says > that all detachable sinks shall support 640x480 @60Hz as a fail safe > mode. > > A DP compliance test expected us to utilize the above fact when all > modes it

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Doug Anderson
Hi, On Thu, May 5, 2022 at 12:19 PM Ville Syrjälä wrote: > > On Thu, May 05, 2022 at 08:53:12AM -0700, Doug Anderson wrote: > > Hi, > > > > On Thu, May 5, 2022 at 8:29 AM Ville Syrjälä > > wrote: > > > > > > On Thu, May 05, 2022 at 08:00:20AM -0700, Doug Anderson wrote: > > > > Hi, > > > > > >

Re: [PATCH 2/2] drm/probe-helper: For DP, add 640x480 if all other modes are bad

2022-05-05 Thread Dmitry Baryshkov
On Thu, 5 May 2022 at 20:30, Kuogee Hsieh wrote: > > > On 5/5/2022 10:20 AM, Abhinav Kumar wrote: > > Hi Doug > > > > On 5/5/2022 8:44 AM, Doug Anderson wrote: > >> Ville, > >> > >> On Tue, Apr 26, 2022 at 11:47 AM Douglas Anderson > >> wrote: > >>> > >>> As per Displayport spec section 5.2.1.2

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Dmitry Baryshkov
On Thu, 5 May 2022 at 18:53, Doug Anderson wrote: > > Hi, > > On Thu, May 5, 2022 at 8:29 AM Ville Syrjälä > wrote: > > > > On Thu, May 05, 2022 at 08:00:20AM -0700, Doug Anderson wrote: > > > Hi, > > > > > > On Thu, May 5, 2022 at 7:46 AM Ville Syrjälä > > > wrote: > > > > > > > > On Wed, May

Re: [PATCH 18/48] ARM: pxa: hx4700: use gpio descriptors for audio

2022-05-05 Thread Arnd Bergmann
On Thu, May 5, 2022 at 5:04 PM Mark Brown wrote: > On Thu, May 05, 2022 at 04:59:35PM +0200, Arnd Bergmann wrote: > > On Thu, May 5, 2022 at 4:39 PM Mark Brown wrote: > > > On Thu, May 05, 2022 at 04:33:06PM +0200, Linus Walleij wrote: > > > > On Thu, May 5, 2022 at 8:04 AM Arnd Bergmann wrote:

Re: [PATCH] drm/nouveau: reorder nouveau_drm_device_fini

2022-05-05 Thread Lyude Paul
Hmm, I think we might just need to move the drm_kms_helper_poll_enable() call to the end here instead of all of nouveau_display_init(). I realized this because in nouveau_display_init() it seems that we actually rely on nouveau_display_init() to setup hotplug interrupts - which we do actually need

Re: [v2,3/4] drm/i915/huc: Prepare for GSC-loaded HuC

2022-05-05 Thread Teres Alexis, Alan Previn
Because i reviewed this already and the only new change is the relocation of the function "huc_is_authenticated()" from Patch 1 to this patch while maintaining the same logic as rev-1, thus: Acked-by: Alan Previn On Wed, 2022-05-04 at 13:48 -0700, Daniele Ceraolo Spurio wrote: > HuC loading

Re: [v2,1/4] drm/i915/huc: drop intel_huc_is_authenticated

2022-05-05 Thread Teres Alexis, Alan Previn
Reviewed-by: Alan Previn On Wed, 2022-05-04 at 13:48 -0700, Daniele Ceraolo Spurio wrote: > The fuction name is confusing, because it doesn't check the actual auth > status in HW but the SW status. Given that there is only one user (the > huc_auth function itself), just get rid of it and use the

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Lyude Paul
So I think if Ville is OK with it (an ack at least) I'm fine with this documentation change. I think it's worth me noting for other reviewers I made this decision based on the fact that the documentation is for the transfer() function - which I agree shouldn't need to be responsible for powering

Re: [PATCH 1/2] drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()

2022-05-05 Thread Doug Anderson
Hi, On Thu, May 5, 2022 at 11:34 AM Thomas Zimmermann wrote: > > Hi > > Am 26.04.22 um 20:46 schrieb Douglas Anderson: > > The drm_helper_probe_single_connector_modes() is a bit long. Let's > > break a chunk off to update and validate modes. This helps avoid one > > goto and also will allow us

Re: [PATCH] drm: Document that power requirements for DP AUX transfers

2022-05-05 Thread Ville Syrjälä
On Thu, May 05, 2022 at 08:53:12AM -0700, Doug Anderson wrote: > Hi, > > On Thu, May 5, 2022 at 8:29 AM Ville Syrjälä > wrote: > > > > On Thu, May 05, 2022 at 08:00:20AM -0700, Doug Anderson wrote: > > > Hi, > > > > > > On Thu, May 5, 2022 at 7:46 AM Ville Syrjälä > > > wrote: > > > > > > > >

Re: [PATCH] drm/nouveau/gr/gf100-: Clean up some inconsistent indenting

2022-05-05 Thread Lyude Paul
Thanks! Reviewed-by: Lyude Paul Will push upstream in a moment On Thu, 2022-05-05 at 16:13 +0800, Jiapeng Chong wrote: > Eliminate the follow smatch warning: > > drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:1925 > gf100_gr_oneinit_tiles() warn: inconsistent indenting. > > Reported-by:

[Bug 201957] amdgpu: ring gfx timeout

2022-05-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 --- Comment #69 from Danil (s48g...@gmail.com) --- Edit - got freeze after using PC for 4 hours, before it was 20 min longest time I could use integrated GPU, so it not fixed completely look like, just some improvement(or I just got lucky)... im

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Stephen Boyd
Quoting Sankeerth Billakanti (QUIC) (2022-05-05 11:47:20) > >Quoting Sankeerth Billakanti (2022-05-05 11:02:36) > >> > >> Our internal power grid documents list the regulators as VDD_A_*_1P2 > >> and VDD_A_*_0P9 for all the platforms. > > > >Do your internal power grid documents indicate what

Re: [PATCH v2] drm/i915/guc: Support programming the EU priority in the GuC descriptor

2022-05-05 Thread John Harrison
On 5/4/2022 16:46, Daniele Ceraolo Spurio wrote: From: Matthew Brost In GuC submission mode the EU priority must be updated by the GuC rather than the driver as the GuC owns the programming of the context descriptor. Given that the GuC code uses the GuC priorities, we can't use a generic

RE: [PATCH 2/2] dt-bindings: phy: List supplies for qcom,edp-phy

2022-05-05 Thread Sankeerth Billakanti (QUIC)
>We're supposed to list the supplies in the dt bindings but there are none in >the eDP PHY bindings. > >Looking at the driver in Linux, I can see that there seem to be two relevant >supplies: "vdda-phy" and "vdda-pll". Let's add those to the bindings. > >NOTE: from looking at the Qualcomm

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Sankeerth Billakanti (QUIC)
>Quoting Sankeerth Billakanti (2022-05-05 11:02:36) >> >> >> >> Quoting Douglas Anderson (2022-04-25 14:06:42) >> >> >> >> Having 'a' in 'vdda' typically means 'analog' for 'analog' >> >> circuits, so I'd expect this to only matter for the phy that >> >> contains the analog circuitry. It would be

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Use non-blocking H2G for waitboost

2022-05-05 Thread John Harrison
On 5/5/2022 10:21, Belgaumkar, Vinay wrote: On 5/5/2022 5:13 AM, Tvrtko Ursulin wrote: On 05/05/2022 06:40, Vinay Belgaumkar wrote: SLPC min/max frequency updates require H2G calls. We are seeing timeouts when GuC channel is backed up and it is unable to respond in a timely fashion causing

Re: [PATCH 1/2] drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()

2022-05-05 Thread Thomas Zimmermann
Hi Am 26.04.22 um 20:46 schrieb Douglas Anderson: The drm_helper_probe_single_connector_modes() is a bit long. Let's break a chunk off to update and validate modes. This helps avoid one goto and also will allow us to more easily call the helper a second time in a future patch without adding

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Stephen Boyd
Quoting Sankeerth Billakanti (2022-05-05 11:02:36) > >> > >> Quoting Douglas Anderson (2022-04-25 14:06:42) > >> > >> Having 'a' in 'vdda' typically means 'analog' for 'analog' circuits, > >> so I'd expect this to only matter for the phy that contains the analog > >> circuitry. It would be great

Re: [PATCH] MAINTAINERS: Add simpledrm driver co-maintainer

2022-05-05 Thread Thomas Zimmermann
Am 05.05.22 um 19:26 schrieb Javier Martinez Canillas: Thomas asked me to serve as co-maintainer for the simpledrm driver. Signed-off-by: Javier Martinez Canillas Acked-by: Thomas Zimmermann Thanks for all the work you're doing, Javier. --- MAINTAINERS | 1 + 1 file changed, 1

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Sankeerth Billakanti
Hi Doug, >> >> Quoting Douglas Anderson (2022-04-25 14:06:42) >> > We're supposed to list the supplies in the dt bindings but there are >> > none in the DP controller bindings. Looking at the Linux driver and >> > existing device trees, we can see that two supplies are expected: >> > -

Re: [PATCH 1/5] dma-buf: cleanup dma_fence_unwrap selftest

2022-05-05 Thread Christian König
Am 05.05.22 um 15:29 schrieb Daniel Vetter: On Wed, May 04, 2022 at 02:22:52PM +0200, Christian König wrote: The selftests, fix the error handling, remove unused functions and stop leaking memory in failed tests. Signed-off-by: Christian König --- drivers/dma-buf/st-dma-fence-unwrap.c | 40

Re: [PATCH] drm/stm: dsi: Enable wrapper glue regulator early

2022-05-05 Thread Marek Vasut
On 5/4/22 09:59, Raphael Gallais-Pou wrote: Hi Marek, Hi, [...] @@ -499,8 +512,16 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev) } dsi->hw_version = dsi_read(dsi, DSI_VERSION) & VERSION; + + ret = dw_mipi_dsi_phy_regulator_on(dsi);

Re: [PATCH v2 00/20] drm/edid: CEA data block iterators, and more

2022-05-05 Thread Jani Nikula
On Thu, 05 May 2022, Ville Syrjälä wrote: > On Tue, May 03, 2022 at 12:23:45PM +0300, Jani Nikula wrote: >> I've kind of lost track of the version numbers on some of the iterator >> patches, but this is the next version (or mostly a resend) of >> [1]. There's an additional rename patch for SCDS.

Re: [PATCH v2] drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected

2022-05-05 Thread Jessica Zhang
On 5/5/2022 1:48 AM, Dmitry Baryshkov wrote: On Thu, 5 May 2022 at 05:06, Rob Clark wrote: On Wed, May 4, 2022 at 6:55 PM Jessica Zhang wrote: mdp5_get_global_state runs the risk of hitting a -EDEADLK when acquiring the modeset lock, but currently mdp5_pipe_release doesn't check for if

Re: (subset) [PATCH 1/2] [RFC] regmap: Add bulk read/write callbacks into regmap_config

2022-05-05 Thread Marek Vasut
On 5/5/22 17:12, Mark Brown wrote: On Sat, 30 Apr 2022 04:51:44 +0200, Marek Vasut wrote: Currently the regmap_config structure only allows the user to implement single element register read/write using .reg_read/.reg_write callbacks. The regmap_bus already implements bulk counterparts of both,

Re: [PATCH 2/2] drm/probe-helper: For DP, add 640x480 if all other modes are bad

2022-05-05 Thread Kuogee Hsieh
On 5/5/2022 10:20 AM, Abhinav Kumar wrote: Hi Doug On 5/5/2022 8:44 AM, Doug Anderson wrote: Ville, On Tue, Apr 26, 2022 at 11:47 AM Douglas Anderson wrote: As per Displayport spec section 5.2.1.2 ("Video Timing Format") says that all detachable sinks shall support 640x480 @60Hz as a

  1   2   3   >