Re: [pull] drm/msm: drm-msm-next-2024-02-29 for v6.9

2024-03-05 Thread Linux regression tracking (Thorsten Leemhuis)
On 29.02.24 20:04, Rob Clark wrote: > > This is the main pull for v6.9, description below. > > [...] > > GPU: > - fix sc7180 UBWC config Why was that queued for 6.9? That is a fix for a 6.8 regression that for untrained eyes like mine does not look overly dangerous (but of course I might be

[PATCH v2] drm/bridge: anx7625: Update audio status while detecting

2024-03-05 Thread Hsin-Te Yuan
to v1: https://lore.kernel.org/r/20240305-anx7625-v1-1-83ed3ccfa...@chromium.org --- drivers/gpu/drm/bridge/analogix/anx7625.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index

[PATCH v4 3/4] drm/ttm, drm/amdgpu, drm/xe: Consider hitch moves within bulk sublist moves

2024-03-05 Thread Thomas Hellström
To address the problem with hitches moving when bulk move sublists are lru-bumped, register the list cursors with the ttm_lru_bulk_move structure when traversing its list, and when lru-bumping the list, move the cursor hitch to the tail. This also means it's mandatory for drivers to call

[PATCH v4 2/4] drm/ttm: Use LRU hitches

2024-03-05 Thread Thomas Hellström
Have iterators insert themselves into the list they are iterating over using hitch list nodes. Since only the iterator owner can remove these list nodes from the list, it's safe to unlock the list and when continuing, use them as a starting point. Due to the way LRU bumping works in TTM, newly

[PATCH v4 4/4] drm/ttm: Allow continued swapout after -ENOSPC falure

2024-03-05 Thread Thomas Hellström
The -ENOSPC failure from ttm_bo_swapout() meant that the lru_lock was dropped and simply restarting the iteration meant we'd likely hit the same error again on the same resource. Now that we can restart the iteration even if the lock was dropped, do that. Cc: Christian König Cc: Somalapuram

[PATCH v4 1/4] drm/ttm: Allow TTM LRU list nodes of different types

2024-03-05 Thread Thomas Hellström
To be able to handle list unlocking while traversing the LRU list, we want the iterators not only to point to the next position of the list traversal, but to insert themselves as list nodes at that point to work around the fact that the next node might otherwise disappear from the list while the

[PATCH v4 0/4] TTM unlockable restartable LRU list iteration

2024-03-05 Thread Thomas Hellström
This patch-set is a prerequisite for a standalone TTM shrinker and for exhaustive TTM eviction using sleeping dma_resv locks, which is the motivation for it. Currently when unlocking the TTM lru list lock, iteration needs to be restarted from the beginning, rather from the next LRU list node.

Re: [PATCH V2] drm/panel: boe-tv101wum-nl6: Fine tune Himax83102-j02 panel HFP and HBP (again)

2024-03-05 Thread cong yang
Hi, Doug Anderson 于2024年3月6日周三 08:23写道: > > Cong, > > On Mon, Mar 4, 2024 at 5:26 PM Cong Yang > wrote: > > > > The current measured frame rate is 59.95Hz, which does not meet the > > requirements of touch-stylus and stylus cannot work normally. After > > adjustment, the actual measurement is

[PATCH v3] nouveau/dmem: handle kcalloc() allocation failure

2024-03-05 Thread Duoming Zhou
The kcalloc() in nouveau_dmem_evict_chunk() will return null if the physical memory has run out. As a result, if we dereference src_pfns, dst_pfns or dma_addrs, the null pointer dereference bugs will happen. Moreover, the GPU is going away. If the kcalloc() fails, we could not evict all pages

[PATCH] Removed redundant @ symbol to fix kernel-doc warnings in -next repo

2024-03-05 Thread R SUNDAR
For linux-next repository. ./drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h:1: warning: no structured comments found ./drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:132: warning: Incorrect use of kernel-doc format: * @@overlap_only: Whether overlapping of different planes is allowed.

[PATCH v4 11/11] drm/ci: add tests on vkms

2024-03-05 Thread Vignesh Raman
Add job that runs igt on top of vkms. Signed-off-by: Vignesh Raman Acked-by: Jessica Zhang Tested-by: Jessica Zhang Acked-by: Maxime Ripard Signed-off-by: Helen Koike --- v4: - New patch in the series. https://lore.kernel.org/lkml/20240201065346.801038-1-vignesh.ra...@collabora.com/

[PATCH v4 09/11] drm/ci: rockchip: Refactor existing rockchip jobs

2024-03-05 Thread Vignesh Raman
For rockchip rk3288 and rk3399, the display driver is rockchip. Currently, in drm-ci for rockchip, only the display driver is tested. Refactor the existing rockchip jobs so that gpu driver testing jobs can be added later and update xfails accordingly. Signed-off-by: Vignesh Raman --- v2: -

[PATCH v4 10/11] drm/ci: rockchip: Add job to test panfrost GPU driver

2024-03-05 Thread Vignesh Raman
For rockchip rk3288 and rk3399, the GPU driver is panfrost. So add support in drm-ci to test panfrost driver for rockchip SOC and update xfails. Skip KMS tests for panfrost driver since it is not a not a KMS driver. Signed-off-by: Vignesh Raman --- v2: - Add panfrost GPU jobs for rockchip SOC

[PATCH v4 08/11] drm/ci: meson: Add job to test panfrost GPU driver

2024-03-05 Thread Vignesh Raman
For amlogic meson SOC the GPU driver is panfrost. So add support in drm-ci to test panfrost driver for amlogic meson SOC and update xfails. Skip KMS tests for panfrost driver since it is not a not a KMS driver. Signed-off-by: Vignesh Raman --- v2: - Add panfrost GPU jobs for amlogic meson SOC

[PATCH v4 07/11] drm/ci: meson: Refactor existing meson jobs

2024-03-05 Thread Vignesh Raman
For Amlogic Meson SOC the display driver is meson. Currently, in drm-ci for meson, only the display driver is tested. Refactor the existing meson jobs so that gpu driver testing jobs can be added later and update xfails accordingly. Signed-off-by: Vignesh Raman --- v2: - Refactor the patch to

[PATCH v4 06/11] drm/ci: mediatek: Add job to test panfrost and powervr GPU driver

2024-03-05 Thread Vignesh Raman
For mediatek mt8173, the GPU driver is powervr and for mediatek mt8183, the GPU driver is panfrost. So add support in drm-ci to test panfrost and powervr GPU driver for mediatek SOCs and update xfails. Powervr driver was merged in linux kernel, but there's no mediatek support yet. So disable the

[PATCH v4 05/11] drm/ci: mediatek: Refactor existing mediatek jobs

2024-03-05 Thread Vignesh Raman
For mediatek mt8173 and mt8183, the display driver is mediatek. Currently, in drm-ci for mediatek, only the display driver is tested. Refactor the existing mediatek jobs so that gpu driver testing jobs can be added later and update xfails accordingly. Since the correct driver name is passed from

[PATCH v4 04/11] drm/ci: amdgpu: update xfails

2024-03-05 Thread Vignesh Raman
Update xfails with the newly added tests in testlist-amdgpu.txt. Signed-off-by: Vignesh Raman --- v4: - New patch in the series. Run tests with newly added tests in testlist-amdgpu.txt and update xfails. --- .../gpu/drm/ci/xfails/amdgpu-stoney-fails.txt | 26 +--

[PATCH v4 03/11] drm/ci: uprev IGT and update testlist

2024-03-05 Thread Vignesh Raman
Uprev IGT and add amd, v3d, vc4 and vgem specific tests to testlist. Have testlist.txt per driver and include a base testlist so that the driver specific tests will run only on those hardware. Also add testlists to the MAINTAINERS file. Signed-off-by: Vignesh Raman --- v3: - New patch in

[PATCH v4 02/11] drm/ci: uprev mesa version

2024-03-05 Thread Vignesh Raman
zlib.net is not allowing tarball download anymore and results in below error in kernel+rootfs_arm32 container build, urllib.error.HTTPError: HTTP Error 403: Forbidden urllib.error.HTTPError: HTTP Error 415: Unsupported Media Type Uprev mesa which includes a fix for this issue.

[PATCH v4 01/11] drm/ci: arm64.config: Enable CONFIG_DRM_ANALOGIX_ANX7625

2024-03-05 Thread Vignesh Raman
Enable CONFIG_DRM_ANALOGIX_ANX7625 in the arm64 defconfig to get display driver probed on the mt8183-kukui-jacuzzi-juniper machine. arch/arm64/configs/defconfig has CONFIG_DRM_ANALOGIX_ANX7625=m, but drm-ci don't have initrd with modules, so add CONFIG_DRM_ANALOGIX_ANX7625=y in CI arm64 config.

[PATCH v4 00/11] drm/ci: Add support for GPU and display testing

2024-03-05 Thread Vignesh Raman
Some ARM SOCs have a separate display controller and GPU, each with different drivers. For mediatek mt8173, the GPU driver is powervr, and the display driver is mediatek. In the case of mediatek mt8183, the GPU driver is panfrost, and the display driver is mediatek. With rockchip rk3288/rk3399,

Re: [PATCH] drm/bridge:anx7625:Update audio status while detecting

2024-03-05 Thread Chen-Yu Tsai
idge detect\n"); > > - return anx7625_sink_detect(ctx); > + status = anx7625_sink_detect(ctx); > + anx7625_audio_update_connector_status(ctx, status); Nit: add an empty line here. > + return status; > } > > static struct edid *anx7625_bri

Re: [RFC PATCH net-next v6 09/15] memory-provider: dmabuf devmem memory provider

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 6:47 PM David Wei wrote: > > On 2024-03-05 18:42, Mina Almasry wrote: > > On Tue, Mar 5, 2024 at 6:28 PM David Wei wrote: > >> > >> On 2024-03-04 18:01, Mina Almasry wrote: > >>> + if (pool->p.queue) > >>> + binding = READ_ONCE(pool->p.queue->binding); >

Re: [RFC PATCH net-next v6 09/15] memory-provider: dmabuf devmem memory provider

2024-03-05 Thread David Wei
On 2024-03-05 18:42, Mina Almasry wrote: > On Tue, Mar 5, 2024 at 6:28 PM David Wei wrote: >> >> On 2024-03-04 18:01, Mina Almasry wrote: >>> + if (pool->p.queue) >>> + binding = READ_ONCE(pool->p.queue->binding); >>> + >>> + if (binding) { >>> + pool->mp_ops =

Re: [RFC PATCH net-next v6 09/15] memory-provider: dmabuf devmem memory provider

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 6:28 PM David Wei wrote: > > On 2024-03-04 18:01, Mina Almasry wrote: > > + if (pool->p.queue) > > + binding = READ_ONCE(pool->p.queue->binding); > > + > > + if (binding) { > > + pool->mp_ops = _devmem_ops; > > + pool->mp_priv =

Re: [PATCH v3 9/9] drm/ci: uprev IGT and update testlist

2024-03-05 Thread Vignesh Raman
Hi Maíra, On 19/02/24 14:22, Vignesh Raman wrote: Hi Maíra, On 10/02/24 23:50, Maíra Canal wrote: On 2/10/24 15:17, Maíra Canal wrote: On 1/30/24 12:03, Vignesh Raman wrote: Uprev IGT and add amd, v3d, vc4 and vgem specific tests to testlist. Have testlist.txt per driver and include a base

Re: [RFC PATCH net-next v6 09/15] memory-provider: dmabuf devmem memory provider

2024-03-05 Thread David Wei
On 2024-03-04 18:01, Mina Almasry wrote: > + if (pool->p.queue) > + binding = READ_ONCE(pool->p.queue->binding); > + > + if (binding) { > + pool->mp_ops = _devmem_ops; > + pool->mp_priv = binding; > + } This is specific to TCP devmem. For ZC Rx we

[PATCH v3 1/1] UPSTREAM: drm/bridge: it6505: fix hibernate to resume no display issue

2024-03-05 Thread kuro
From: kuro chung ITE added a FIFO reset bit for input video. When system power resume, the TTL input of it6505 may get some noise before video signal stable and the hardware function reset is required. But the input FIFO reset will also trigger error interrupts of output module rising. Thus,

[PATCH v3 0/1] drm/bridge: it6505: fix hibernate to resume no display issue

2024-03-05 Thread kuro
New patch description for v3 patch update upstream MAINTAINERS mail list New patch description for v2 patch Missing declaration for i variable in function it6505_irq_video_error_handler , add it by this patch Origianl description for v1 patch

[PATCH v3 0/1] drm/panfrost: Replace fdinfo's profiling debugfs knob

2024-03-05 Thread Adrián Larumbe
This is v3 of the patch already discussed in [2] and [1] Changelog: v3: - Replaced manual kobj initialisation with a device attribute - Handle user input with kstrtobool instead of treating it as an uint v2: - Turned the profile mode atomic variable into a boolean - Rewrote the sysfs file's

[PATCH v3 1/1] drm/panfrost: Replace fdinfo's profiling debugfs knob with sysfs

2024-03-05 Thread Adrián Larumbe
Debugfs isn't always available in production builds that try to squeeze every single byte out of the kernel image, but we still need a way to toggle the timestamp and cycle counter registers so that jobs can be profiled for fdinfo's drm engine and cycle calculations. Drop the debugfs knob and

[PATCH v4] drm/i915/guc: Use context hints for GT frequency

2024-03-05 Thread Vinay Belgaumkar
Allow user to provide a low latency context hint. When set, KMD sends a hint to GuC which results in special handling for this context. SLPC will ramp the GT frequency aggressively every time it switches to this context. The down freq threshold will also be lower so GuC will ramp down the GT freq

[PATCH v4 3/3] drm/i915/gt: Enable only one CCS for compute workload

2024-03-05 Thread Andi Shyti
Enable only one CCS engine by default with all the compute sices allocated to it. While generating the list of UABI engines to be exposed to the user, exclude any additional CCS engines beyond the first instance. This change can be tested with igt i915_query. Fixes: d2eae8e98d59 ("drm/i915/dg2:

[PATCH v4 2/3] drm/i915/gt: Refactor uabi engine class/instance list creation

2024-03-05 Thread Andi Shyti
For the upcoming changes we need a cleaner way to build the list of uabi engines. Suggested-by: Tvrtko Ursulin Signed-off-by: Andi Shyti Cc: # v6.2+ --- drivers/gpu/drm/i915/gt/intel_engine_user.c | 29 - 1 file changed, 17 insertions(+), 12 deletions(-) diff --git

[PATCH v4 1/3] drm/i915/gt: Disable HW load balancing for CCS

2024-03-05 Thread Andi Shyti
The hardware should not dynamically balance the load between CCS engines. Wa_14019159160 recommends disabling it across all platforms. Fixes: d2eae8e98d59 ("drm/i915/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+

[PATCH v4 0/3] Disable automatic load CCS load balancing

2024-03-05 Thread Andi Shyti
Hi, I have to admit that v3 was a lazy attempt. This one should be on the right path. this series does basically two things: 1. Disables automatic load balancing as adviced by the hardware workaround. 2. Assigns all the CCS slices to one single user engine. The user will then be able to

Re: [PATCH v3 2/4] drm/edid: Add a function to check monitor string

2024-03-05 Thread Hsin-Yi Wang
On Tue, Mar 5, 2024 at 11:25 AM Doug Anderson wrote: > > Hi, > > On Tue, Mar 5, 2024 at 12:17 AM Jani Nikula > wrote: > > > > On Mon, 04 Mar 2024, Doug Anderson wrote: > > > Hi, > > > > > > On Mon, Mar 4, 2024 at 4:19 PM Hsin-Yi Wang wrote: > > >> > > >> > > Probably change to u32

[PATCH v4 5/5] drm/panel-edp: Fix AUO 0x405c panel naming and add a variant

2024-03-05 Thread Hsin-Yi Wang
There are 2 different AUO panels using the same panel id. One of the variants requires using overridden modes to resolve glitching issue as described in commit 70e0d5550f5c ("drm/panel-edp: Add auo_b116xa3_mode"). Other variants should use the modes parsed from EDID. Signed-off-by: Hsin-Yi Wang

[PATCH v4 4/5] drm/panel-edp: Match edp_panels with panel identity

2024-03-05 Thread Hsin-Yi Wang
It's found that some panels have variants that they share the same panel id although their EDID and names are different. When matching generic edp panels, we should first match with both panel identity, which contains both panel id and panel name. If not found, match with panel id only.

[PATCH v4 3/5] drm/edid: Match edid quirks with identity

2024-03-05 Thread Hsin-Yi Wang
Currently edid quirks are matched by panel id only. Modify it to match with identity so it's easier to be extended for more complex matching if required. Suggested-by: Jani Nikula Signed-off-by: Hsin-Yi Wang --- v4: new Per discussion https://lore.kernel.org/lkml/87a5nd4tsg@intel.com/ ---

[PATCH v4 2/5] drm/edid: Add a function to match EDID with identity

2024-03-05 Thread Hsin-Yi Wang
Create a type drm_edid_ident as the identity of an EDID. Currently it contains panel id and monitor name. Create a function that can match a given EDID and an identity: 1. Reject if the panel id doesn't match. 2. If name is not null in identity, try to match it in the detailed timing blocks.

[PATCH v4 0/5] Match panel with identity

2024-03-05 Thread Hsin-Yi Wang
This series is a follow up for 1a5e81de180e ("Revert "drm/panel-edp: Add auo_b116xa3_mode""). It's found that 2 different AUO panels use the same product id. One of them requires an overridden mode, while the other should use the mode directly from edid. Match the panel for identity (id and

[PATCH v4 1/5] drm_edid: Add a function to get EDID base block

2024-03-05 Thread Hsin-Yi Wang
It's found that some panels have variants that they share the same panel id although their EDID and names are different. Besides panel id, now we need more information from the EDID base block to distinguish these panel variants. Add drm_edid_read_base_block() to return the EDID base block, which

Re: [PATCH V2] drm/panel: boe-tv101wum-nl6: Fine tune Himax83102-j02 panel HFP and HBP (again)

2024-03-05 Thread Doug Anderson
Cong, On Mon, Mar 4, 2024 at 5:26 PM Cong Yang wrote: > > The current measured frame rate is 59.95Hz, which does not meet the > requirements of touch-stylus and stylus cannot work normally. After > adjustment, the actual measurement is 60.001Hz. Now this panel looks > like it's only used by me

Re: [RFC] drm/msm: Add GPU memory traces

2024-03-05 Thread Gurchetan Singh
On Mon, Mar 4, 2024 at 6:04 PM Rob Clark wrote: > On Mon, Mar 4, 2024 at 5:38 PM Gurchetan Singh > wrote: > > > > > > > > > > On Fri, Mar 1, 2024 at 10:54 AM Rob Clark wrote: > >> > >> From: Rob Clark > >> > >> Perfetto can use these traces to track global and per-process GPU memory > >>

Re: [PATCH v3] drm/i915/guc: Use context hints for GT frequency

2024-03-05 Thread Rodrigo Vivi
On Mon, Mar 04, 2024 at 03:34:50PM -0800, Vinay Belgaumkar wrote: > Allow user to provide a low latency context hint. When set, KMD > sends a hint to GuC which results in special handling for this > context. SLPC will ramp the GT frequency aggressively every time > it switches to this context. The

Re: [PATCH v3] drm/i915/guc: Use context hints for GT frequency

2024-03-05 Thread Ivan Briano
On Mon, Mar 4, 2024, at 3:34 PM, Vinay Belgaumkar wrote: > Allow user to provide a low latency context hint. When set, KMD > sends a hint to GuC which results in special handling for this > context. SLPC will ramp the GT frequency aggressively every time > it switches to this context. The down

Re: [PATCH v3 3/4] drm/ttm, drm/amdgpu, drm/xe: Consider hitch moves within bulk sublist moves

2024-03-05 Thread kernel test robot
Hi Thomas, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip] [cannot apply to drm-intel/for-linux-next-fixes linus/master v6.8-rc7 next-20240305] [If your patch

Re: [RFC PATCH net-next v6 02/15] net: page_pool: create hooks for custom page providers

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 1:55 PM David Wei wrote: > > On 2024-03-04 18:01, Mina Almasry wrote: > > +struct memory_provider_ops { > > + int (*init)(struct page_pool *pool); > > + void (*destroy)(struct page_pool *pool); > > + struct page *(*alloc_pages)(struct page_pool *pool, gfp_t

Re: [PATCH 00/13] drm: Fix reservation locking for pin/unpin and console

2024-03-05 Thread Dmitry Osipenko
On 2/27/24 13:14, Thomas Zimmermann wrote: > Dma-buf locking semantics require the caller of pin and unpin to hold > the buffer's reservation lock. Fix DRM to adhere to the specs. This > enables to fix the locking in DRM's console emulation. Similar changes > for vmap and mmap have been posted at

Re: [RFC PATCH net-next v6 02/15] net: page_pool: create hooks for custom page providers

2024-03-05 Thread David Wei
On 2024-03-04 18:01, Mina Almasry wrote: > +struct memory_provider_ops { > + int (*init)(struct page_pool *pool); > + void (*destroy)(struct page_pool *pool); > + struct page *(*alloc_pages)(struct page_pool *pool, gfp_t gfp); > + bool (*release_page)(struct page_pool *pool, struct

Re: [PATCH v3 2/4] drm/i915/gt: Do not exposed fused off engines.

2024-03-05 Thread Matt Roper
On Fri, Mar 01, 2024 at 12:28:57AM +0100, Andi Shyti wrote: > Some of the CCS engines are disabled. They should not be listed > in the uabi_engine list, that is the list of engines that the > user can see. Fused off engines already aren't visible to userspace (or to the kernel for that matter).

Re: [RFC PATCH net-next v6 08/15] page_pool: devmem support

2024-03-05 Thread Mina Almasry
On Mon, Mar 4, 2024 at 6:02 PM Mina Almasry wrote: > > Convert netmem to be a union of struct page and struct netmem. Overload > the LSB of struct netmem* to indicate that it's a net_iov, otherwise > it's a page. > > Currently these entries in struct page are rented by the page_pool and > used

Re: [RFC PATCH net-next v6 05/15] netdev: support binding dma-buf to netdevice

2024-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2024, at 21:00, Mina Almasry wrote: > On Tue, Mar 5, 2024 at 1:05 AM Arnd Bergmann wrote: >> On Tue, Mar 5, 2024, at 03:01, Mina Almasry wrote: > > A key goal of this patch series is that the kernel does not try to > parse the skb frags that reside in the dma-buf for that precise >

Re: [RFC PATCH net-next v6 07/15] page_pool: convert to use netmem

2024-03-05 Thread Mina Almasry
On Mon, Mar 4, 2024 at 6:02 PM Mina Almasry wrote: > > Abstrace the memory type from the page_pool so we can later add support > for new memory types. Convert the page_pool to use the new netmem type > abstraction, rather than use struct page directly. > > As of this patch the netmem type is a

Re: [RFC PATCH net-next v6 05/15] netdev: support binding dma-buf to netdevice

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 4:55 AM Yunsheng Lin wrote: > > On 2024/3/5 10:01, Mina Almasry wrote: > > ... > > > > > The netdev_dmabuf_binding struct is refcounted, and releases its > > resources only when all the refs are released. > > > > Signed-off-by: Willem de Bruijn > > Signed-off-by: Kaiyuan

[PATCH 0/2] Support fdinfo runtime and memory stats on Panthor

2024-03-05 Thread Adrián Larumbe
This patch series enables userspace utilities like gputop and nvtop to query a render context's fdinfo file and figure out rates of engine and memory utilisation. Adrián Larumbe (2): drm/panthor: Enable fdinfo for cycle and time measurements drm/panthor: Enable fdinfo for memory stats

[PATCH 1/2] drm/panthor: Enable fdinfo for cycle and time measurements

2024-03-05 Thread Adrián Larumbe
These values are sampled by the firmware right before jumping into the UM command stream and immediately after returning from it, and then kept inside a per-job accounting structure. That structure is held inside the group's syncobjs buffer object, at an offset that depends on the job's queue slot

[PATCH 2/2] drm/panthor: Enable fdinfo for memory stats

2024-03-05 Thread Adrián Larumbe
When vm-binding an already-created BO, the entirety of its virtual size is then backed by system memory, so its RSS is always the same as its virtual size. Signed-off-by: Adrián Larumbe --- drivers/gpu/drm/panthor/panthor_drv.c | 1 + drivers/gpu/drm/panthor/panthor_gem.c | 12 2

Re: [PATCH v2 0/3] panel-simple: add support for Crystal Clear CMT430B19N00

2024-03-05 Thread Conor Dooley
On Tue, Mar 05, 2024 at 10:48:56AM +0100, Jérémie Dautheribes wrote: > Hi Conor, > > On 04/03/2024 20:29, Conor Dooley wrote: > > On Mon, Mar 04, 2024 at 05:04:51PM +0100, Jérémie Dautheribes wrote: > > > Hello everyone, > > > > > > This patch series add support for the Crystal Clear Technology

Re: [PATCH v2 0/3] panel-simple: add support for Crystal Clear CMT430B19N00

2024-03-05 Thread Conor Dooley
On Mon, Mar 04, 2024 at 03:24:51PM -0600, Rob Herring wrote: > On Mon, Mar 04, 2024 at 07:29:04PM +, Conor Dooley wrote: > > On Mon, Mar 04, 2024 at 05:04:51PM +0100, Jérémie Dautheribes wrote: > > > Hello everyone, > > > > > > This patch series add support for the Crystal Clear Technology >

Re: [RFC PATCH 1/5] bug: Core support for suppressing warning backtraces

2024-03-05 Thread Guenter Roeck
On 3/5/24 11:54, Kees Cook wrote: On Tue, Mar 05, 2024 at 10:40:29AM -0800, Guenter Roeck wrote: [...] warning = (bug->flags & BUGFLAG_WARNING) != 0; once = (bug->flags & BUGFLAG_ONCE) != 0; done = (bug->flags & BUGFLAG_DONE) != 0; + if (warning &&

Re: [RFC PATCH net-next v6 05/15] netdev: support binding dma-buf to netdevice

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 1:05 AM Arnd Bergmann wrote: > > On Tue, Mar 5, 2024, at 03:01, Mina Almasry wrote: > > > +int netdev_bind_dmabuf(struct net_device *dev, unsigned int dmabuf_fd, > > +struct netdev_dmabuf_binding **out) > > +{ > > + struct netdev_dmabuf_binding

Re: [RFC PATCH 1/5] bug: Core support for suppressing warning backtraces

2024-03-05 Thread Kees Cook
On Tue, Mar 05, 2024 at 10:40:29AM -0800, Guenter Roeck wrote: > [...] > warning = (bug->flags & BUGFLAG_WARNING) != 0; > once = (bug->flags & BUGFLAG_ONCE) != 0; > done = (bug->flags & BUGFLAG_DONE) != 0; > > + if (warning && IS_SUPPRESSED_WARNING(function)) > +

[PATCH v2] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-03-05 Thread Roman Smirnov
The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace. Signed-off-by: Roman Smirnov Reviewed-by: Sergey Shtylyov --- V1 -> V2: Replaced the

Re: [RFC PATCH net-next v6 12/15] tcp: RX path for devmem TCP

2024-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2024, at 20:22, Mina Almasry wrote: > On Tue, Mar 5, 2024 at 12:42 AM Arnd Bergmann wrote: >> On Tue, Mar 5, 2024, at 03:01, Mina Almasry wrote: >> >> This structure requires a special compat handler to run >> x86-32 binaries on x86-64 because of the different alignment >>

Re: [RFC PATCH net-next v6 00/15] Device Memory TCP

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 4:54 AM Yunsheng Lin wrote: > > On 2024/3/5 10:01, Mina Almasry wrote: > > ... > > > > > Perf - page-pool benchmark: > > --- > > > > bench_page_pool_simple.ko tests with and without these changes: > > https://pastebin.com/raw/ncHDwAbn > > > > AFAIK

Re: [PATCH v3 2/4] drm/edid: Add a function to check monitor string

2024-03-05 Thread Doug Anderson
Hi, On Tue, Mar 5, 2024 at 12:17 AM Jani Nikula wrote: > > On Mon, 04 Mar 2024, Doug Anderson wrote: > > Hi, > > > > On Mon, Mar 4, 2024 at 4:19 PM Hsin-Yi Wang wrote: > >> > >> > > Probably change to u32 drm_edid_get_panel_id(const struct drm_edid > >> > > *);? Given that we still need to

Re: [RFC PATCH net-next v6 12/15] tcp: RX path for devmem TCP

2024-03-05 Thread Mina Almasry
On Tue, Mar 5, 2024 at 12:42 AM Arnd Bergmann wrote: > > On Tue, Mar 5, 2024, at 03:01, Mina Almasry wrote: > > --- a/arch/alpha/include/uapi/asm/socket.h > > +++ b/arch/alpha/include/uapi/asm/socket.h > > #define SO_PEERPIDFD 77 > > +#define SO_DEVMEM_LINEAR 79 > > +#define

[RFC PATCH 4/5] arm64: Add support for suppressing warning tracebacks

2024-03-05 Thread Guenter Roeck
Add support for selectively suppressing WARNING tracebacks to arm64. This requires adding the function triggering tracebacks to the __bug_table object section. To limit image size impact, the pointer to the function name is only added to the __bug_table section if both CONFIG_KUNIT and

[RFC PATCH 5/5] loongarch: Add support for suppressing warning tracebacks

2024-03-05 Thread Guenter Roeck
Add support for selectively suppressing WARNING tracebacks to loongarch. This requires adding the function triggering tracebacks to the __bug_table object section. To limit image size impact, the pointer to the function name is only added to the __bug_table section if both CONFIG_KUNIT and

[RFC PATCH 3/5] x86: Add support for suppressing warning tracebacks

2024-03-05 Thread Guenter Roeck
Add support for selectively suppressing WARNING tracebacks to x86. This requires adding the function triggering tracebacks to the __bug_table object section. To limit image size impact, the pointer to the function name is only added to the __bug_table section if both CONFIG_KUNIT and

[RFC PATCH 2/5] drm: Suppress intentional warning backtraces in scaling unit tests

2024-03-05 Thread Guenter Roeck
The drm_test_rect_calc_hscale and drm_test_rect_calc_vscale unit tests intentionally trigger warning backtraces by providing bad parameters to the tested functions. What is tested is the return value, not the existence of a warning backtrace. Suppress the backtraces to avoid clogging the kernel

[RFC PATCH 1/5] bug: Core support for suppressing warning backtraces

2024-03-05 Thread Guenter Roeck
Some unit tests intentionally trigger warning backtraces by passing bad parameters to API functions. Such unit tests typically check the return value from those calls, not the existence of the warning backtrace. Such intentionally generated warning backtraces are neither desirable nor useful for

[RFC PATCH 0/5] Add support for suppressing warning backtraces

2024-03-05 Thread Guenter Roeck
Some unit tests intentionally trigger warning backtraces by passing bad parameters to kernel API functions. Such unit tests typically check the return value from such calls, not the existence of the warning backtrace. Such intentionally generated warning backtraces are neither desirable nor

Re: [linux-next:master] BUILD REGRESSION 11afac187274a6177a7ac82997f8691c0f469e41

2024-03-05 Thread Timur Tabi
On Wed, 2024-03-06 at 02:14 +0800, kernel test robot wrote: > >    |-- drivers-gpu-drm-nouveau-nvkm-subdev-gsp-r535.c:warning:Function- > > parameter-or-struct-member-gsp-not-described-in-nvkm_gsp_radix3_sg Could someone please apply

Re: [PATCH RESEND drm-misc 4/4] dma-buf: heaps: make dma_heap_class constant

2024-03-05 Thread T.J. Mercier
On Tue, Mar 5, 2024 at 10:02 AM Ricardo B. Marliere wrote: > > On 5 Mar 09:07, T.J. Mercier wrote: > > > > Reviewed-by: T.J. Mercier > > > > Is this really a resend? I don't see anything on lore and I can't > > recall seeing this patch in my inbox before. > > Hi T.J. thanks for reviewing! > >

[linux-next:master] BUILD REGRESSION 11afac187274a6177a7ac82997f8691c0f469e41

2024-03-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 11afac187274a6177a7ac82997f8691c0f469e41 Add linux-next specific files for 20240305 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202403051732.lucjfzah-...@intel.com https

Re: [PATCH] drm/amdkfd: make kfd_class constant

2024-03-05 Thread Ricardo B. Marliere
ass_create: > > unregister_chrdev(kfd_char_dev_major, kfd_dev_name); > > err_register_chrdev: > > @@ -118,8 +119,8 @@ int kfd_chardev_init(void) > > > > void kfd_chardev_exit(void) > > { > > - device_destroy(kfd_class, MKDEV(kfd_char_dev_major, 0)); > > - class_destroy(kfd_class); > > + device_destroy(_class, MKDEV(kfd_char_dev_major, 0)); > > + class_unregister(_class); > > unregister_chrdev(kfd_char_dev_major, kfd_dev_name); > > kfd_device = NULL; > > } > > > > --- > > base-commit: 8bc75586ea01f1c645063d3472c115ecab03e76c > > change-id: 20240305-class_cleanup-drm-amd-bdc7255b7540 > > > > Best regards,

Re: [PATCH RESEND drm-misc 4/4] dma-buf: heaps: make dma_heap_class constant

2024-03-05 Thread Ricardo B. Marliere
On 5 Mar 09:07, T.J. Mercier wrote: > > Reviewed-by: T.J. Mercier > > Is this really a resend? I don't see anything on lore and I can't > recall seeing this patch in my inbox before. Hi T.J. thanks for reviewing! I'm sorry about that, I sent the series only to Greg before but I thought it

Re: [RFC] How to test panic handlers, without crashing the kernel

2024-03-05 Thread Guilherme G. Piccoli
On 05/03/2024 13:52, Jocelyn Falempe wrote: > [...] > Or maybe have two lists of panic notifiers, the safe and the destructive > list. So in case of fake panic, we can only call the safe notifiers. > I tried something like that:

Re: [RESEND v3 0/2] drm: enable W=1 warnings by default across the subsystem

2024-03-05 Thread Jani Nikula
On Tue, 05 Mar 2024, Lucas De Marchi wrote: > On Tue, Mar 05, 2024 at 07:43:07PM +0200, Jani Nikula wrote: >>Thanks everyone for acks and reviews, pushed to drm-misc-next. > > should we start removing the now duplicate ones in i915 and xe? After the drm-misc-next to drm-next merge and subsequent

Re: [PATCH] dma-buf: Add syntax highlighting to code listings in the document

2024-03-05 Thread T.J. Mercier
On Thu, Jan 18, 2024 at 7:33 PM Tommy Chiang wrote: > > This patch tries to improve the display of the code listing > on The Linux Kernel documentation website for dma-buf [1] . > > Originally, it appears that it was attempting to escape > the '*' character, but looks like it's not necessary

Re: [RESEND v3 0/2] drm: enable W=1 warnings by default across the subsystem

2024-03-05 Thread Lucas De Marchi
On Tue, Mar 05, 2024 at 07:43:07PM +0200, Jani Nikula wrote: On Tue, 05 Mar 2024, "Maxime Ripard" wrote: On Tue, 5 Mar 2024 11:07:34 +0200, Jani Nikula wrote: Resend of [1] with an intent to merge after the CI results come in. This is aiming for v6.10, so we'll have maximal time to find all

Re: [RESEND v3 0/2] drm: enable W=1 warnings by default across the subsystem

2024-03-05 Thread Jani Nikula
On Tue, 05 Mar 2024, "Maxime Ripard" wrote: > On Tue, 5 Mar 2024 11:07:34 +0200, Jani Nikula wrote: >> Resend of [1] with an intent to merge after the CI results come in. This >> is aiming for v6.10, so we'll have maximal time to find all the issues >> my configs didn't catch. >> >> I built this

Re: [PATCH] drm/amdkfd: make kfd_class constant

2024-03-05 Thread Felix Kuehling
kfd_device = NULL; } --- base-commit: 8bc75586ea01f1c645063d3472c115ecab03e76c change-id: 20240305-class_cleanup-drm-amd-bdc7255b7540 Best regards,

Re: [PATCH] drm/i915/selftests: Fix dependency of some timeouts on HZ

2024-03-05 Thread Andi Shyti
Hi Janusz, On Thu, Feb 22, 2024 at 12:32:40PM +0100, Janusz Krzysztofik wrote: > Third argument of i915_request_wait() accepts a timeout value in jiffies. > Most users pass either a simple HZ based expression, or a result of > msecs_to_jiffies(), or MAX_SCHEDULE_TIMEOUT, or a very small number

Re: [PATCH RESEND drm-misc 4/4] dma-buf: heaps: make dma_heap_class constant

2024-03-05 Thread T.J. Mercier
On Tue, Mar 5, 2024 at 3:34 AM Ricardo B. Marliere wrote: > > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the dma_heap_class structure to be declared at build time > placing

Re: [PATCH] drm/i915/selftest_hangcheck: Check sanity with more patience

2024-03-05 Thread Andi Shyti
Hi Janusz, On Wed, Feb 28, 2024 at 04:24:41PM +0100, Janusz Krzysztofik wrote: > While trying to reproduce some other issues reported by CI for i915 > hangcheck live selftest, I found them hidden behind timeout failures > reported by igt_hang_sanitycheck -- the very first hangcheck test case >

[PATCH] drm/panthor: Add support for performance counters

2024-03-05 Thread Adrián Larumbe
This brings in support for Panthor's HW performance counters and querying them from UM through a specific ioctl(). The code is inspired by existing functionality for the Panfrost driver, with some noteworthy differences: - Sample size is now reported by the firmware rather than having to reckon

RE: [PATCH v2] drm/imagination: DRM_POWERVR should depend on ARCH_K3

2024-03-05 Thread Biju Das
Hi Frank, > -Original Message- > From: Frank Binns > Sent: Tuesday, March 5, 2024 4:43 PM > Subject: Re: [PATCH v2] drm/imagination: DRM_POWERVR should depend on ARCH_K3 > > On Tue, 2024-03-05 at 07:47 -0600, Adam Ford wrote: > > On Tue, Mar 5, 2024 at 5:58 AM Frank Binns wrote: > > >

Re: [PATCH v2] nouveau/dmem: handle kcalloc() allocation failure

2024-03-05 Thread Danilo Krummrich
Hi Duoming, thanks for sending a V2. On 3/5/24 15:39, Duoming Zhou wrote: The kcalloc() in nouveau_dmem_evict_chunk() will return null if the physical memory has run out. As a result, if we dereference src_pfns, dst_pfns or dma_addrs, the null pointer dereference bugs will happen. Moreover,

Re: [RFC] How to test panic handlers, without crashing the kernel

2024-03-05 Thread Jocelyn Falempe
On 05/03/2024 17:23, Michael Kelley wrote: From: Guilherme G. Piccoli Sent: Monday, March 4, 2024 1:43 PM On 04/03/2024 18:12, John Ogness wrote: [...] The second question is how to simulate a panic context in a non-destructive way, so we can test the panic notifiers in CI, without

Re: [PATCH v2 2/2] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-03-05 Thread Andrew Lunn
> 3) From 2), am65_cpsw_alloc_skb() function removed and replaced by > netdev_alloc_skb_ip_align(), as used by the driver before -> res = 506 > Conclusion: Here is where the loss comes from. > IOW, My am65_cpsw_alloc_skb() function is not good. > > Initially, I mainly created this 'custom'

Re: [PATCH v2] drm/imagination: DRM_POWERVR should depend on ARCH_K3

2024-03-05 Thread Frank Binns
On Tue, 2024-03-05 at 07:47 -0600, Adam Ford wrote: > On Tue, Mar 5, 2024 at 5:58 AM Frank Binns wrote: > > Hi Adam, > > > > Sorry for not responding sooner. I've recently just returned from paternity > > leave, so just catching up on everything. > > Congratulations! > Thanks! > > On Thu,

Re: [PATCH] drm/udl: Add ARGB8888 as a format

2024-03-05 Thread Doug Anderson
Hi, On Tue, Feb 27, 2024 at 3:26 PM Dmitry Baryshkov wrote: > > On Wed, 28 Feb 2024 at 00:19, Douglas Anderson wrote: > > > > Even though the UDL driver converts to RGB565 internally (see > > pixel32_to_be16() in udl_transfer.c), it advertises XRGB for > > compatibility. Let's add ARGB

Re: [RFC] How to test panic handlers, without crashing the kernel

2024-03-05 Thread Jocelyn Falempe
On 04/03/2024 22:12, John Ogness wrote: [Added printk maintainer and kdb folks] Hi Jocelyn, On 2024-03-01, Jocelyn Falempe wrote: While writing a panic handler for drm devices [1], I needed a way to test it without crashing the machine. So from debugfs, I called

Re: [PATCH v7 2/6] drm/i915: Unregister in-kernel clients

2024-03-05 Thread Jani Nikula
On Tue, 05 Mar 2024, Rodrigo Vivi wrote: > On Fri, Mar 01, 2024 at 02:42:55PM +0100, Thomas Zimmermann wrote: >> Unregister all in-kernel clients before unloading the i915 driver. For >> other drivers, drm_dev_unregister() does this automatically. As i915 >> does not use this helper, it has to

[PATCH v4 10/10] backlight: Add controls_device callback to struct backlight_ops

2024-03-05 Thread Thomas Zimmermann
Replace check_fb with controls_device in struct backlight_ops. The new callback interface takes a Linux device instead of a framebuffer. Resolves one of the dependencies of backlight.h on fb.h. The few drivers that had custom implementations of check_fb can easily use the framebuffer's Linux

  1   2   3   >