[PATCH] drm/amd/display: remove unneeded defines from bios parser

2022-08-20 Thread Tales Aparecida
Removes DEFINEs that should have been removed after they were introduced to ObjectID.h by the commit abea57d70e90 ("drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h") Signed-off-by: Tales Aparecida --- .../drm/amd/display/dc/bios/bios_parser2.c| 19 --- 1 file changed, 19 d

[PATCH 6/8] dma_buf: no need to bother with file_inode()->i_mapping

2022-08-20 Thread Al Viro
->f_mapping will do just fine Signed-off-by: Al Viro --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 38e8767ec371..210473d927d8 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-b

Re: [PATCH v1 34/35] drm/modes: Introduce the tv_mode property as a command-line option

2022-08-20 Thread Noralf Trønnes
Den 29.07.2022 18.35, skrev Maxime Ripard: > Our new tv mode option allows to specify the TV mode from a property. > However, it can still be useful, for example to avoid any boot time > artifact, to set that property directly from the kernel command line. > > Let's add some code to allow it, a

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-20 Thread Noralf Trønnes
Den 29.07.2022 18.34, skrev Maxime Ripard: > The TV mode property has been around for a while now to select and get the > current TV mode output on an analog TV connector. > > Despite that property name being generic, its content isn't and has been > driver-specific which makes it hard to build

Re: [PATCH v1 23/35] drm/vc4: vec: Convert to the new TV mode property

2022-08-20 Thread Noralf Trønnes
Den 29.07.2022 18.35, skrev Maxime Ripard: > Now that the core can deal fine with analog TV modes, let's convert the vc4 > VEC driver to leverage those new features. > > We've added some backward compatibility to support the old TV mode property > and translate it into the new TV norm property.

Rust in our code base

2022-08-20 Thread Karol Herbst
Hey everybody, so I think it's time to have this discussion for real. I am working on Rusticl (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439) which I would like to merge quite soon. Others might also plan on starting kernel drivers written in Rust (and if people feel comfortabl

Re: [RESEND v6 0/9] Add new formats support to vkms

2022-08-20 Thread Melissa Wen
On 08/19, Igor Torrente wrote: > Summary > === > This series of patches refactor some vkms components in order to introduce > new formats to the planes and writeback connector. > > Now in the blend function, the plane's pixels are converted to ARGB16161616 > and then blended together. > > The

Re: [RESEND v6 2/9] drm: vkms: Rename `vkms_composer` to `vkms_frame_info`

2022-08-20 Thread Melissa Wen
On 08/19, Igor Torrente wrote: > Changes the name of this struct to a more meaningful name. > A name that represents better what this struct is about. > > Composer is the code that do the compositing of the planes. > This struct contains information on the frame used in the output > composition. T

Re: [RESEND v6 6/9] drm: vkms: Refactor the plane composer to accept new formats

2022-08-20 Thread Melissa Wen
On 08/19, Igor Torrente wrote: > Currently the blend function only accepts XRGB_ and ARGB_ > as a color input. > > This patch refactors all the functions related to the plane composition > to overcome this limitation. > > The pixels blend is done using the new internal format. And new han

[PATCH v6 4/6] drm/i915: Implement intersect/compatible functions

2022-08-20 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching start offset from drm buddy allocator. v3: move the bits that are specific to buddy_man (Matthew) v4: consider the block size /range (Matthew) Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam Reviewed-by

[PATCH v6 2/6] drm/ttm: Implement intersect/compatible functions

2022-08-20 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback functions to ttm range manager fetching start offset from drm mm range allocator. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_range_manager.c | 33 +++

[PATCH v6 3/6] drm/amdgpu: Implement intersect/compatible functions

2022-08-20 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching start offset from backend drm buddy allocator. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 38 +++ drivers/gp

[PATCH v6 6/6] drm/ttm: Switch to using the new res callback

2022-08-20 Thread Arunpravin Paneer Selvam
Apply new intersect and compatible callback instead of having a generic placement range verfications. v2: Added a separate callback for compatiblilty checks (Christian) v3: Cleanups and removal of workarounds Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam Reviewed-by

[PATCH v6 5/6] drm/nouveau: Implement intersect/compatible functions

2022-08-20 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching the start offset from struct ttm_resource. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam Reviewed-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_mem.c | 29 +++ drive

[PATCH v6 1/6] drm/ttm: Add new callbacks to ttm res mgr

2022-08-20 Thread Arunpravin Paneer Selvam
We are adding two new callbacks to ttm resource manager function to handle intersection and compatibility of placement and resources. v2: move the amdgpu and ttm_range_manager changes to separate patches (Christian) v3: rename "intersect" to "intersects" (Matthew) v4: move !place check to the