Re: [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Lionel Landwerlin
On 10/06/2022 11:53, Matthew Brost wrote: On Fri, Jun 10, 2022 at 12:07:11AM -0700, Niranjana Vishwanathapura wrote: VM_BIND and related uapi definitions Signed-off-by: Niranjana Vishwanathapura --- Documentation/gpu/rfc/i915_vm_bind.h | 490 +++ 1 file changed, 490

RE: [PATCH] drm/ttm: fix bulk move handling v2

2022-06-13 Thread Paneer Selvam, Arunpravin
[AMD Official Use Only - General] Hi Christian, I verified the patch, I don’t see the crashes. Reviewed-by: Arunpravin Paneer Selvam Thanks, Arun -Original Message- From: Christian König Sent: Monday, June 13, 2022 1:38 PM To: Paneer Selvam, Arunpravin ; m...@fireburn.co.uk; amd-...

[Bug 216120] [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu

2022-06-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216120 --- Comment #3 from mat2003...@gmail.com --- same bad commit: https://gitlab.freedesktop.org/drm/amd/-/issues/2050 -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.

[PATCH AUTOSEL 5.15 13/41] drm/amdkfd: add pinned BOs to kfd_bo_list

2022-06-13 Thread Sasha Levin
From: Lang Yu [ Upstream commit 4fac4fcf4500bce515b0f32195e7bb86aa0246c6 ] The kfd_bo_list is used to restore process BOs after evictions. As page tables could be destroyed during evictions, we should also update pinned BOs' page tables during restoring to make sure they are valid. So for pinne

[PATCH AUTOSEL 5.15 05/41] drm/amdkfd: Use mmget_not_zero in MMU notifier

2022-06-13 Thread Sasha Levin
From: Philip Yang [ Upstream commit fa582c6f3684ac0098a9d02ddf0ed52a02b37127 ] MMU notifier callback may pass in mm with mm->mm_users==0 when process is exiting, use mmget_no_zero to avoid accessing invalid mm in deferred list work after mm is gone. Signed-off-by: Philip Yang Reviewed-by: Feli

[PATCH AUTOSEL 5.15 04/41] drm/amd/display: Fix DMUB outbox trace in S4 (#4465)

2022-06-13 Thread Sasha Levin
From: "Hung, Cruise" [ Upstream commit 6ecf9773a5030aa4932096754bacff20e1b944b8 ] [Why] DMUB Outbox0 read/write pointer not sync after resumed from S4. And that caused old traces were sent to outbox. [How] Disable DMUB Outbox0 interrupt and clear DMUB Outbox0 read/write pointer when resumes fro

[PATCH AUTOSEL 5.15 03/41] drm/amd/display: Read Golden Settings Table from VBIOS

2022-06-13 Thread Sasha Levin
From: Sherry Wang [ Upstream commit 4b81dd2cc6f4f4e8cea0ed6ee8d5193a8ae14a72 ] [Why] Dmub read AUX_DPHY_RX_CONTROL0 from Golden Setting Table, but driver will set it to default value 0x103d1110, which causes issue in some case [How] Remove the driver code, use the value set by dmub in dp_aux_in

[PATCH AUTOSEL 5.17 13/43] drm/amdkfd: add pinned BOs to kfd_bo_list

2022-06-13 Thread Sasha Levin
From: Lang Yu [ Upstream commit 4fac4fcf4500bce515b0f32195e7bb86aa0246c6 ] The kfd_bo_list is used to restore process BOs after evictions. As page tables could be destroyed during evictions, we should also update pinned BOs' page tables during restoring to make sure they are valid. So for pinne

[PATCH AUTOSEL 5.17 04/43] drm/amd/display: Fix DMUB outbox trace in S4 (#4465)

2022-06-13 Thread Sasha Levin
From: "Hung, Cruise" [ Upstream commit 6ecf9773a5030aa4932096754bacff20e1b944b8 ] [Why] DMUB Outbox0 read/write pointer not sync after resumed from S4. And that caused old traces were sent to outbox. [How] Disable DMUB Outbox0 interrupt and clear DMUB Outbox0 read/write pointer when resumes fro

[PATCH AUTOSEL 5.17 05/43] drm/amdkfd: Use mmget_not_zero in MMU notifier

2022-06-13 Thread Sasha Levin
From: Philip Yang [ Upstream commit fa582c6f3684ac0098a9d02ddf0ed52a02b37127 ] MMU notifier callback may pass in mm with mm->mm_users==0 when process is exiting, use mmget_no_zero to avoid accessing invalid mm in deferred list work after mm is gone. Signed-off-by: Philip Yang Reviewed-by: Feli

[PATCH AUTOSEL 5.17 03/43] drm/amd/display: Read Golden Settings Table from VBIOS

2022-06-13 Thread Sasha Levin
From: Sherry Wang [ Upstream commit 4b81dd2cc6f4f4e8cea0ed6ee8d5193a8ae14a72 ] [Why] Dmub read AUX_DPHY_RX_CONTROL0 from Golden Setting Table, but driver will set it to default value 0x103d1110, which causes issue in some case [How] Remove the driver code, use the value set by dmub in dp_aux_in

[PATCH AUTOSEL 5.18 15/47] drm/amdkfd: add pinned BOs to kfd_bo_list

2022-06-13 Thread Sasha Levin
From: Lang Yu [ Upstream commit 4fac4fcf4500bce515b0f32195e7bb86aa0246c6 ] The kfd_bo_list is used to restore process BOs after evictions. As page tables could be destroyed during evictions, we should also update pinned BOs' page tables during restoring to make sure they are valid. So for pinne

[PATCH AUTOSEL 5.18 06/47] drm/amdkfd: Use mmget_not_zero in MMU notifier

2022-06-13 Thread Sasha Levin
From: Philip Yang [ Upstream commit fa582c6f3684ac0098a9d02ddf0ed52a02b37127 ] MMU notifier callback may pass in mm with mm->mm_users==0 when process is exiting, use mmget_no_zero to avoid accessing invalid mm in deferred list work after mm is gone. Signed-off-by: Philip Yang Reviewed-by: Feli

[PATCH AUTOSEL 5.18 05/47] drm/amdgpu: Resolve RAS GFX error count issue after cold boot on Arcturus

2022-06-13 Thread Sasha Levin
From: Candice Li [ Upstream commit 2a460963350ec6b1534d28d7f943b5f84815aff2 ] Adjust the sequence for ras late init and separate ras reset error status from query status. v2: squash in fix from Candice Signed-off-by: Candice Li Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Signed-o

[PATCH AUTOSEL 5.18 04/47] drm/amd/display: Read Golden Settings Table from VBIOS

2022-06-13 Thread Sasha Levin
From: Sherry Wang [ Upstream commit 4b81dd2cc6f4f4e8cea0ed6ee8d5193a8ae14a72 ] [Why] Dmub read AUX_DPHY_RX_CONTROL0 from Golden Setting Table, but driver will set it to default value 0x103d1110, which causes issue in some case [How] Remove the driver code, use the value set by dmub in dp_aux_in

Re: [PATCH 7/8] drm: Remove linux/media-bus-format.h from drm_crtc.h

2022-06-13 Thread kernel test robot
randconfig-r004-20220613 (https://download.01.org/0day-ci/archive/20220614/202206140805.ebeq2f87-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d378268ead93c85803c270277f0243737b536ae7) reproduce (this is a W=1 build): wget https://raw.githubuserc

Re: [PATCH 7/8] drm: Remove linux/media-bus-format.h from drm_crtc.h

2022-06-13 Thread kernel test robot
randconfig-r012-20220613 (https://download.01.org/0day-ci/archive/20220614/202206140738.nk4evaxd-...@intel.com/config) compiler: xtensa-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/

Re: [Intel-gfx] [PATCH 2/8] drm: Drop drm_framebuffer.h from drm_crtc.h

2022-06-13 Thread kernel test robot
randconfig-r004-20220613 (https://download.01.org/0day-ci/archive/20220614/202206140726.cjoshn1e-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d378268ead93c85803c270277f0243737b536ae7) reproduce (this is a W=1 build): wget https://raw.githubuserc

[PATCH v6 9/9] drm: vkms: Add support to the RGB565 format

2022-06-13 Thread Igor Torrente
This commit also adds new helper macros to deal with fixed-point arithmetic. It was done to improve the precision of the conversion to ARGB16161616 since the "conversion ratio" is not an integer. V3: Adapt the handlers to the new format introduced in patch 7 V3. V5: Minor improvements V6: Minor i

[PATCH v6 8/9] drm: vkms: Adds XRGB_16161616 and ARGB_1616161616 formats

2022-06-13 Thread Igor Torrente
This will be useful to write tests that depends on these formats. ARGB and XRGB follows the a similar implementation of the former formats. Just adjusting for 16 bits per channel. V3: Adapt the handlers to the new format introduced in patch 7 V3. V5: Minor improvements Added le16_to_cpu/cpu_t

[PATCH v6 7/9] drm: vkms: Supports to the case where primary plane doesn't match the CRTC

2022-06-13 Thread Igor Torrente
We will remove the current assumption that the primary plane has the same size and position as CRTC and that the primary plane is the bottom-most in zpos order, or is even enabled. At least as far as the blending machinery is concerned. For that we will add CRTC dimension information to `vkms_crtc

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

2022-06-13 Thread Igor Torrente
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 handlers are being added to convert a specific f

[PATCH v6 5/9] drm: vkms: Add fb information to `vkms_writeback_job`

2022-06-13 Thread Igor Torrente
This commit is the groundwork to introduce new formats to the planes and writeback buffer. As part of it, a new buffer metadata field is added to `vkms_writeback_job`, this metadata is represented by the `vkms_frame_info` struct. Also adds two new function pointers (`line_to_frame_func` and `frame

[PATCH v6 4/9] drm: vkms: get the reference to `drm_framebuffer` instead if coping it

2022-06-13 Thread Igor Torrente
Instead of coping `drm_framebuffer` - which can cause problems - we just get the reference and add the ref count. Signed-off-by: Igor Torrente --- drivers/gpu/drm/vkms/vkms_composer.c | 4 ++-- drivers/gpu/drm/vkms/vkms_drv.h | 2 +- drivers/gpu/drm/vkms/vkms_plane.c| 10 +- 3

[PATCH v6 3/9] drm: drm_atomic_helper: Add a new helper to deal with the writeback connector validation

2022-06-13 Thread Igor Torrente
Add a helper function to validate the connector configuration received in the encoder atomic_check by the drivers. So the drivers don't need to do these common validations themselves. V2: Move the format verification to a new helper at the drm_atomic_helper.c (Thomas Zimmermann). V3: Format c

[PATCH v6 1/9] drm: vkms: Replace hardcoded value of `vkms_composer.map` to DRM_FORMAT_MAX_PLANES

2022-06-13 Thread Igor Torrente
The `map` vector at `vkms_composer` uses a hardcoded value to define its size. If someday the maximum number of planes increases, this hardcoded value can be a problem. This value is being replaced with the DRM_FORMAT_MAX_PLANES macro. Acked-by: Thomas Zimmermann Reviewed-by: Melissa Wen Signe

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

2022-06-13 Thread Igor Torrente
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. Thus, vkms_frame_info is a better name to re

[PATCH v6 0/9] Add new formats support to vkms

2022-06-13 Thread Igor Torrente
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 CRC is calculated based on the ARGB1616161616 bu

Re: [Intel-gfx] [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Matthew Brost
On Mon, Jun 13, 2022 at 07:09:06PM +0100, Tvrtko Ursulin wrote: > > On 13/06/2022 18:49, Niranjana Vishwanathapura wrote: > > On Mon, Jun 13, 2022 at 05:22:02PM +0100, Tvrtko Ursulin wrote: > > > > > > On 13/06/2022 16:05, Niranjana Vishwanathapura wrote: > > > > On Mon, Jun 13, 2022 at 09:24:18A

Re: [Intel-gfx] [PATCH 2/8] drm: Drop drm_framebuffer.h from drm_crtc.h

2022-06-13 Thread kernel test robot
randconfig-r012-20220613 (https://download.01.org/0day-ci/archive/20220614/202206140730.7korev9k-...@intel.com/config) compiler: xtensa-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/

Re: [Freedreno] [PATCH] drm/msm: Make msm_gem_free_object() static

2022-06-13 Thread Abhinav Kumar
On 6/13/2022 1:49 PM, Rob Clark wrote: From: Rob Clark Misc small cleanup I noticed. Not called from another object file since 3c9edd9c85f5 ("drm/msm: Introduce GEM object funcs") Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/msm_gem.c | 2 +- drivers/g

[PATCH v2] drm/msm: use for_each_sgtable_sg to iterate over scatterlist

2022-06-13 Thread Jonathan Marek
The dma_map_sgtable() call (used to invalidate cache) overwrites sgt->nents with 1, so msm_iommu_pagetable_map maps only the first physical segment. To fix this problem use for_each_sgtable_sg(), which uses orig_nents. Fixes: b145c6e65eb0 ("drm/msm: Add support to create a local pagetable") Signe

[PATCH v5] drm/msm/dp: force link training for display resolution change

2022-06-13 Thread Kuogee Hsieh
During display resolution changes display have to be disabled first followed by display enabling with new resolution. Display disable will turn off both pixel clock and main link clock so that main link have to be re-trained during display enable to have new video stream flow again. At current impl

Re: [PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:51 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > On Thu, Jun 09, 2022 at 06:09:46PM +, Prashant Malani wrote: > > From: Pin-Yen Lin > > > > Add the callback function when the driver receives state > > changes of the Type-C port. The callback func

[PATCH v5 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant

2022-06-13 Thread Marek Vasut
Add support for i.MX8MP LCDIF variant. This is called LCDIFv3 and is completely different from the LCDIFv3 found in i.MX23 in that it has a completely scrambled register layout compared to all previous LCDIF variants. The new LCDIFv3 also supports 36bit address space. Add a separate driver which i

[PATCH v5 1/2] dt-bindings: lcdif: Add compatible for i.MX8MP

2022-06-13 Thread Marek Vasut
Add compatible string for i.MX8MP LCDIF variant. This is called LCDIFv3 and is completely different from the LCDIFv3 found in i.MX23 in that it has a completely scrambled register layout compared to all previous LCDIF variants. The new LCDIFv3 also supports 36bit address space. However, except for

Re: [PATCH v4 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant

2022-06-13 Thread Marek Vasut
On 5/30/22 11:27, Alexander Stein wrote: Hi Marek, Hi, [...] I got this working, somehow. The root cause was that the LDB clock was not the media_disp2_pix_root_clk clock * 7, which is mandatory for LVDS (single link). excerpt from clk_summary: video_pll1_out 2 2 0 59400

RE: DRM/KMS PWL API Thoughts and Questions

2022-06-13 Thread Shankar, Uma
> -Original Message- > From: Harry Wentland > Sent: Saturday, June 11, 2022 1:59 AM > To: Pekka Paalanen ; sebast...@sebastianwick.net; > Shankar, Uma > Cc: Vitaly Prosyak ; Sharma, Shashank > ; Lakha, Bhawanpreet > ; Deucher, Alexander > ; Alex Hung ; dri-devel de...@lists.freedesktop

Re: [PATCH v2 0/7] usb: typec: Introduce typec-switch binding

2022-06-13 Thread Nícolas F . R . A . Prado
On Thu, Jun 09, 2022 at 06:09:39PM +, Prashant Malani wrote: > This series introduces a binding for Type-C data lane switches. These > control the routing and operating modes of USB Type-C data lanes based > on the PD messaging from the Type-C port driver regarding connected > peripherals. > >

Re: [PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-13 Thread Nícolas F . R . A . Prado
Hi Prashant, On Thu, Jun 09, 2022 at 06:09:46PM +, Prashant Malani wrote: > From: Pin-Yen Lin > > Add the callback function when the driver receives state > changes of the Type-C port. The callback function configures the > crosspoint switch of the anx7625 bridge chip, which can change the >

[PATCH] drm/msm/gem: Drop obj lock in msm_gem_free_object()

2022-06-13 Thread Rob Clark
From: Rob Clark The only reason we grabbed the lock was to satisfy a bunch of places that WARN_ON() if called without the lock held. But this angers lockdep which doesn't realize no one else can be holding the lock by the time we end up destroying the object (and sees what would otherwise be a l

[PATCH] drm/msm: Make msm_gem_free_object() static

2022-06-13 Thread Rob Clark
From: Rob Clark Misc small cleanup I noticed. Not called from another object file since 3c9edd9c85f5 ("drm/msm: Introduce GEM object funcs") Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 2 +- drivers/gpu/drm/msm/msm_gem.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)

Re: [PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:45 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > On Thu, Jun 09, 2022 at 06:09:44PM +, Prashant Malani wrote: > > Parse the "switches" node, if available, and count and store the number > > of Type-C switches within it. Since we currently don't do

Re: [PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-13 Thread Nícolas F . R . A . Prado
Hi Prashant, On Thu, Jun 09, 2022 at 06:09:44PM +, Prashant Malani wrote: > Parse the "switches" node, if available, and count and store the number > of Type-C switches within it. Since we currently don't do anything with > this info, no functional changes are expected from this change. > > T

Re: [PATCH v2 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:38 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > thanks for the patch. Please see sugestions below. > > On Thu, Jun 09, 2022 at 06:09:42PM +, Prashant Malani wrote: > > Introduce a binding which represents a component that can control the > > rout

Re: [PATCH v2 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-13 Thread Nícolas F . R . A . Prado
Hi Prashant, thanks for the patch. Please see sugestions below. On Thu, Jun 09, 2022 at 06:09:42PM +, Prashant Malani wrote: > Introduce a binding which represents a component that can control the > routing of USB Type-C data lines as well as address data line > orientation (based on CC lines

Re: [PATCH] drm/bridge: tc358767: don't fixup mode polarity

2022-06-13 Thread Marek Vasut
On 6/10/22 20:39, Lucas Stach wrote: It doesn't always work, as there is just a single adjusted mode, so if parts of the display pipeline disagree on the required sync polarity it's possible to end up with a invalid config. However it also isn't necessary for this bridge chip, as the DPI interfac

Re: [PATCH v5 0/9] Add new formats support to vkms

2022-06-13 Thread Igor Torrente
Hi Melissa, On 6/13/22 06:52, Melissa Wen wrote: On 04/04, 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 ARGB16161

Re: [PATCH v2 15/15] video: backlight: mt6370: Add Mediatek MT6370 support

2022-06-13 Thread Randy Dunlap
On 6/13/22 04:11, ChiaEn Wu wrote: > diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig > index a003e02e13ce..ec1589ad88bb 100644 > --- a/drivers/video/backlight/Kconfig > +++ b/drivers/video/backlight/Kconfig > @@ -268,6 +268,15 @@ config BACKLIGHT_MAX8925 >

Re: [PATCH v2 13/15] leds: mt6370: Add Mediatek MT6370 current sink type LED Indicator support

2022-06-13 Thread Randy Dunlap
Hi-- On 6/13/22 04:11, ChiaEn Wu wrote: > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > index 6090e647daee..61e6ec416cb0 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -244,6 +244,17 @@ config LEDS_MT6323 > This option enables support for on-chip LED dri

Re: [PATCH v2 11/15] iio: adc: mt6370: Add Mediatek MT6370 support

2022-06-13 Thread Randy Dunlap
Hi, On 6/13/22 04:11, ChiaEn Wu wrote: > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > index 71ab0a06aa82..09576fb478ad 100644 > --- a/drivers/iio/adc/Kconfig > +++ b/drivers/iio/adc/Kconfig > @@ -737,6 +737,15 @@ config MEDIATEK_MT6360_ADC > is used in smartphones and t

Re: [PATCH v2 10/15] regulator: mt6370: Add mt6370 DisplayBias and VibLDO support

2022-06-13 Thread Randy Dunlap
On 6/13/22 04:11, ChiaEn Wu wrote: > diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig > index cbe0f96ca342..dcb6866dab53 100644 > --- a/drivers/regulator/Kconfig > +++ b/drivers/regulator/Kconfig > @@ -804,6 +804,14 @@ config REGULATOR_MT6360 > 2-channel buck with Therm

Re: [PATCH v2 08/15] mfd: mt6370: Add Mediatek MT6370 support

2022-06-13 Thread Randy Dunlap
On 6/13/22 04:11, ChiaEn Wu wrote: > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index 3b59456f5545..d9a7524a3e0e 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -937,6 +937,19 @@ config MFD_MT6360 > PMIC part includes 2-channel BUCKs and 2-channel LDOs >

Re: [PATCH v4, 0/3] add h264 decoder driver for mt8186

2022-06-13 Thread Nicolas Dufresne
Le jeudi 12 mai 2022 à 11:46 +0800, Yunfei Dong a écrit : > Firstly, add mt8186 compatible and private data, then add document for > compatible "mediatek,mt8186-vcodec-dec". For mt8186 is single core > architecture, need to add new interface for h264 hardware decoder. Would be nice to take the hab

Re: [PATCH v4, 3/3] media: mediatek: vcodec: add h264 decoder driver for mt8186

2022-06-13 Thread Nicolas Dufresne
Le jeudi 12 mai 2022 à 11:46 +0800, Yunfei Dong a écrit : > Add h264 decode driver to support mt8186. For the architecture > is single core, need to add new interface to decode. > > Signed-off-by: Yunfei Dong > --- > .../vcodec/vdec/vdec_h264_req_multi_if.c | 177 +- > 1 fil

[PATCH 6/8] drm: Remove linux/fb.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for linux/fb.h, so don't include it. Avoids useless rebuilds of the entire universe when touching linux/fb.h. Quite a few placs do currently depend on linux/fb.h or other headers pulled in by it without actually including any of it directly. All of thos

[PATCH 4/8] drm: Drop drm_connector.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for drm_connector.h, so don't include it. Avoids useless rebuilds of the entire universe when touching drm_connector.h. Signed-off-by: Ville Syrjälä --- include/drm/drm_crtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[PATCH 8/8] drm: Remove linux/i2c.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for linux/i2c.h, so don't include it. Avoids useless rebuilds of the entire universe when touching linux/i2c.h. Quite a few placs do currently depend on linux/i2c.h without actually including it directly. All of those need to be fixed up. Signed-off-by

[PATCH 7/8] drm: Remove linux/media-bus-format.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for linux/media-bus-format.h, so don't include it. Avoids useless rebuilds of the entire universe when touching linux/media-bus-format.h. Quite a few placs do currently depend on linux/media-bus-format.h without actually including it directly. All of th

[PATCH 5/8] drm: Remove unnecessary junk from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h is including several entirely unnecessary headers, and also contains unused forward declarations. Remove it all. Signed-off-by: Ville Syrjälä --- include/drm/drm_crtc.h | 8 1 file changed, 8 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/dr

[PATCH 3/8] drm: Drop drm_blend.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for drm_blend.h, so don't include it. Avoids useless rebuilds of the entire universe when touching drm_blend.h. Quite a few placs do currently depend on drm_blend.h without actually including it directly. All of those need to be fixed up. Signed-off-by

[PATCH 2/8] drm: Drop drm_framebuffer.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for drm_frambuffer.h, so don't include it. Avoids useless rebuilds of the entire universe when touching drm_framebuffer.h. Quite a few placs do currently depend on drm_framebuffer.h without actually including it directly. All of those need to be fixed u

[PATCH 1/8] drm: Drop drm_edid.h from drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä drm_crtc.h has no need for drm_edid.h, so don't include it. Avoids useless rebuilds of the entire universe when touching drm_edid.h. Quite a few placs do currently depend on drm_edid.h without actually including it directly. All of those need to be fixed up. Signed-off-by: V

[PATCH 0/8] drm: Clean up drm_crtc.h

2022-06-13 Thread Ville Syrjala
From: Ville Syrjälä Eliminate unnecessary includes from drm_crtc.h to avoid pointless rebuilds of the entire universe when touching some random header. I didn't really feel like splitting this up per-driver since that would have ended up being metric ton of one liners. I'm thinking the conflicts

[PATCH] drm/msm: Deprecate MSM_BO_UNCACHED harder

2022-06-13 Thread Rob Clark
From: Rob Clark Handle the demotion to MSM_BO_WC at the userspace ABI level, and fix the remaining internal MSM_BO_UNCACHED user. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 13 + drivers/gpu/drm/msm/msm_gem.c | 7 +++ drivers/gpu/drm/msm/msm_gpu.c | 2 +- 3

Re: [PATCH] iosys-map: Add word-sized reads

2022-06-13 Thread Lucas De Marchi
On Mon, Jun 13, 2022 at 12:58:52PM +0200, Thomas Zimmermann wrote: Hi Lucas Am 10.06.22 um 01:20 schrieb Lucas De Marchi: Instead of always falling back to memcpy_fromio() for any size, prefer using read{b,w,l}(). When reading struct members it's common to read individual integer variables indi

Re: [PATCH v3 1/3] drm/rect: Add DRM_RECT_INIT() macro

2022-06-13 Thread Jani Nikula
On Mon, 13 Jun 2022, José Expósito wrote: > Add a helper macro to initialize a rectangle from x, y, width and > height information. > > Signed-off-by: José Expósito Reviewed-by: Jani Nikula > --- > include/drm/drm_rect.h | 16 > 1 file changed, 16 insertions(+) > > diff --git

Re: [PATCH 01/19] drm/gma500: Unify *_lvds_get_max_backlight()

2022-06-13 Thread Patrik Jakobsson
On Mon, Jun 13, 2022 at 7:08 PM Sam Ravnborg wrote: > > Hi Patrick. > > On Mon, Jun 13, 2022 at 02:34:18PM +0200, Patrik Jakobsson wrote: > > These functions mostly do the same thing so unify them into one. All > > unified lvds code will live in gma_lvds.c. > > > > Signed-off-by: Patrik Jakobsson

[PATCH] drm/msm/adreno: Defer enabling runpm until hw_init()

2022-06-13 Thread Rob Clark
From: Rob Clark To avoid preventing the display from coming up before the rootfs is mounted, without resorting to packing fw in the initrd, the GPU has this limbo state where the device is probed, but we aren't ready to start sending commands to it. This is particularly problematic for a6xx, sin

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-13 Thread Javier Martinez Canillas
Hello Dominik, On 6/13/22 13:39, Dominik Kierner wrote: Removed the regmap part since Andy already commented and I agree with him. >>> Splitting in VCC/VBAT and VDD and enforcing their presence is of >>> course compatibility breaking. >>> >>> https://github.com/dh-electronics/panel-solomon-ssd13

Re: [Intel-gfx] [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Tvrtko Ursulin
On 13/06/2022 18:49, Niranjana Vishwanathapura wrote: On Mon, Jun 13, 2022 at 05:22:02PM +0100, Tvrtko Ursulin wrote: On 13/06/2022 16:05, Niranjana Vishwanathapura wrote: On Mon, Jun 13, 2022 at 09:24:18AM +0100, Tvrtko Ursulin wrote: On 10/06/2022 17:14, Niranjana Vishwanathapura wrote:

Re: [Intel-gfx] [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-13 Thread Niranjana Vishwanathapura
On Mon, Jun 13, 2022 at 06:33:07AM -0700, Zeng, Oak wrote: Regards, Oak -Original Message- From: Intel-gfx On Behalf Of Niranjana Vishwanathapura Sent: June 10, 2022 1:43 PM To: Landwerlin, Lionel G Cc: Intel GFX ; Maling list - DRI developers ; Hellstrom, Thomas ; Wilson, Chris P

Re: [Intel-gfx] [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Niranjana Vishwanathapura
On Fri, Jun 10, 2022 at 09:35:14AM -0700, Niranjana Vishwanathapura wrote: On Fri, Jun 10, 2022 at 01:56:58AM -0700, Matthew Brost wrote: On Fri, Jun 10, 2022 at 01:53:40AM -0700, Matthew Brost wrote: On Fri, Jun 10, 2022 at 12:07:11AM -0700, Niranjana Vishwanathapura wrote: VM_BIND and relate

Re: [Intel-gfx] [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Niranjana Vishwanathapura
On Mon, Jun 13, 2022 at 05:22:02PM +0100, Tvrtko Ursulin wrote: On 13/06/2022 16:05, Niranjana Vishwanathapura wrote: On Mon, Jun 13, 2022 at 09:24:18AM +0100, Tvrtko Ursulin wrote: On 10/06/2022 17:14, Niranjana Vishwanathapura wrote: On Fri, Jun 10, 2022 at 05:48:39PM +0300, Lionel Landwer

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-13 Thread Javier Martinez Canillas
On 6/13/22 17:35, andriy.shevche...@linux.intel.com wrote: > On Mon, Jun 13, 2022 at 11:39:30AM +, Dominik Kierner wrote: >> On 5/25/2022 21:46, Javier Martinez Canillas wrote: > > ... > >>> Thanks, I looked at the code briefly and think that there are things there >>> that we >>> could use.

Re: [PATCH] drm/bridge: anx7625: Zero error variable when panel bridge not present

2022-06-13 Thread José Expósito
On Mon, Jun 13, 2022 at 12:37:05PM -0400, Nícolas F. R. A. Prado wrote: > While parsing the DT, the anx7625 driver checks for the presence of a > panel bridge on endpoint 1. If it is missing, pdata->panel_bridge stores > the error pointer and the function returns successfully without first > cleani

Re: [PATCH] Revert "fbdev: vesafb: Allow to be built if COMPILE_TEST is enabled"

2022-06-13 Thread Javier Martinez Canillas
On 6/10/22 11:47, Daniel Vetter wrote: > On Fri, Jun 10, 2022 at 10:54:50AM +0200, Javier Martinez Canillas wrote: >> This reverts commit fa0e256450f27a7d85f65c63f05e6897954a1d53. The kernel >> test robot reported that attempting to build the vesafb driver fails on >> some architectures, because th

Re: [PATCH v2 1/3] drm/rect: Add DRM_RECT_INIT() macro

2022-06-13 Thread José Expósito
On Mon, Jun 13, 2022 at 10:53:57AM +0300, Jani Nikula wrote: > On Sun, 12 Jun 2022, José Expósito wrote: > > Add a helper macro to initialize a rectangle from x, y, width and > > height information. > > > > Signed-off-by: José Expósito > > --- > > include/drm/drm_rect.h | 12 > > 1

[PATCH v3 2/3] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-06-13 Thread José Expósito
Test the conversion from XRGB to RGB332. What is tested? - Different values for the X in XRGB to make sure it is ignored - Different clip values: Single pixel and full and partial buffer - Well known colors: White, black, red, green, blue, magenta, yellow and cyan - Other colors: R

[PATCH v3 1/3] drm/rect: Add DRM_RECT_INIT() macro

2022-06-13 Thread José Expósito
Add a helper macro to initialize a rectangle from x, y, width and height information. Signed-off-by: José Expósito --- include/drm/drm_rect.h | 16 1 file changed, 16 insertions(+) diff --git a/include/drm/drm_rect.h b/include/drm/drm_rect.h index 6f6e19bd4dac..e8d94fca2703 100

[PATCH v3 3/3] drm/doc: Add KUnit documentation

2022-06-13 Thread José Expósito
Explain how to run the KUnit tests present in the DRM subsystem and clarify why the UML-only options were not added to the configuration file present in drivers/gpu/drm/.kunitconfig [1] [2]. [1] https://lore.kernel.org/dri-devel/CABVgOSn8i=lo5p7830h2xu1jgg0krn0qtnxkomhf1otgxja...@mail.gmail.com/

[PATCH v3 0/3] KUnit tests for drm_format_helper

2022-06-13 Thread José Expósito
Hello everyone, Here is the v3 of the series, including the documentation, previously sent as a standalone patch [1], and changes suggested during review. Thanks a lot, José Expósito RFC -> v1: https://lore.kernel.org/dri-devel/20220530102017.471865-1-jose.exposit...@gmail.com/T/ - Add .kunit

Re: [PATCH v2] dt-bindings: display: Add Arm virtual platforms display

2022-06-13 Thread Sam Ravnborg
Hi Rob, thanks! On Mon, Jun 13, 2022 at 08:57:09AM -0600, Rob Herring wrote: > 'arm,rtsm-display' is a panel for Arm, Ltd. virtual platforms (e.g. FVP). > The binding has been in use for a long time, but was never documented. > > Some users and an example have a 'panel-dpi' compatible, but that's

Re: [PATCH v2 15/15] video: backlight: mt6370: Add Mediatek MT6370 support

2022-06-13 Thread Daniel Thompson
On Mon, Jun 13, 2022 at 07:11:46PM +0800, ChiaEn Wu wrote: > +static int mt6370_init_backlight_properties(struct mt6370_priv *priv, > + struct backlight_properties *props) Most of the changes in this version looks good... but it looks the new code in this fu

Re: [PATCH v6 6/6] arm64: config: Enable DRM_V3D

2022-06-13 Thread Florian Fainelli
On Fri, 3 Jun 2022 10:26:10 +0100, Peter Robinson wrote: > From: Nicolas Saenz Julienne > > BCM2711, the SoC used on the Raspberry Pi 4 has a different GPU than its > predecessors. Enable it. > > Signed-off-by: Nicolas Saenz Julienne > Signed-off-by: Peter Robinson > Reviewed-by: Stefan Wahr

Re: [PATCH 01/19] drm/gma500: Unify *_lvds_get_max_backlight()

2022-06-13 Thread Sam Ravnborg
Hi Patrick. On Mon, Jun 13, 2022 at 02:34:18PM +0200, Patrik Jakobsson wrote: > These functions mostly do the same thing so unify them into one. All > unified lvds code will live in gma_lvds.c. > > Signed-off-by: Patrik Jakobsson > --- > +/* > + * Returns the maximum level of the backlight duty

Re: [PATCH v6 5/6] ARM: configs: Enable DRM_V3D

2022-06-13 Thread Florian Fainelli
On Fri, 3 Jun 2022 10:26:09 +0100, Peter Robinson wrote: > BCM2711, the SoC used on the Raspberry Pi 4 has a different 3D > render GPU IP than its predecessors. Enable it it on multi v7 > and bcm2835 configs. > > Signed-off-by: Nicolas Saenz Julienne > Signed-off-by: Peter Robinson > Reviewed-

Re: [PATCH v6 4/6] ARM: dts: bcm2711: Enable V3D

2022-06-13 Thread Florian Fainelli
On Fri, 3 Jun 2022 10:26:08 +0100, Peter Robinson wrote: > This adds the entry for V3D for bcm2711 (used in the Raspberry Pi 4) > and the associated firmware clock entry. > > Signed-off-by: Nicolas Saenz Julienne > Signed-off-by: Peter Robinson > Reviewed-by: Javier Martinez Canillas > --- A

Re: [PATCH] ASoC: hdmi-codec: Update to modern DAI terminology

2022-06-13 Thread Mark Brown
On Thu, 2 Jun 2022 12:30:29 +0200, Mark Brown wrote: > As part of retiring the old defines used to specify DAI formats update the > hdmi_codec driver to use the modern names, including the variables in the > struct hdmi_codec_daifmt exported to the DRM drivers. > > In updating this I did note that

[PATCH] drm/i915/pvc: Add recommended MMIO setting

2022-06-13 Thread Matt Roper
As with past platforms, the bspec's performance tuning guide provides recommended MMIO settings. Although not technically "workarounds" we apply these through the workaround framework to ensure that they're re-applied at the proper times (e.g., on engine resets) and that any conflicts with real wo

Re: [PATCH] drm/msm: Fix convert to drm_of_get_data_lanes_count

2022-06-13 Thread Abhinav Kumar
On 6/12/2022 7:33 AM, Marek Vasut wrote: Add missing header file into dsi_host.c and encode data-lanes string directly into the warning message in the driver to avoid build issues detected by lkp. Fixes: 185443efa26a ("drm/msm: Convert to drm_of_get_data_lanes_count") Reported-by: kernel test

[Bug 216120] [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu

2022-06-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216120 mat2003...@gmail.com changed: What|Removed |Added Regression|No |Yes -- You may reply to this emai

[PATCH] drm/bridge: anx7625: Zero error variable when panel bridge not present

2022-06-13 Thread Nícolas F . R . A . Prado
While parsing the DT, the anx7625 driver checks for the presence of a panel bridge on endpoint 1. If it is missing, pdata->panel_bridge stores the error pointer and the function returns successfully without first cleaning that variable. This is an issue since other functions later check for the pre

[Bug 216120] [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu

2022-06-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216120 --- Comment #2 from mat2003...@gmail.com --- Created attachment 301165 --> https://bugzilla.kernel.org/attachment.cgi?id=301165&action=edit BISECT_LOG -- You may reply to this email to add a comment. You are receiving this mail because: You a

[Bug 216120] [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu

2022-06-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216120 --- Comment #1 from mat2003...@gmail.com --- Created attachment 301164 --> https://bugzilla.kernel.org/attachment.cgi?id=301164&action=edit BISECT_LOG -- You may reply to this email to add a comment. You are receiving this mail because: You a

[Bug 216120] New: [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu

2022-06-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216120 Bug ID: 216120 Summary: [BISECTED][REGRESSION] drm/amdgpu: add drm buddy support to amdgpu Product: Drivers Version: 2.5 Kernel Version: 5.19-rc1 Hardware: Intel

Re: [Intel-gfx] [PATCH 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-13 Thread Tvrtko Ursulin
On 13/06/2022 16:05, Niranjana Vishwanathapura wrote: On Mon, Jun 13, 2022 at 09:24:18AM +0100, Tvrtko Ursulin wrote: On 10/06/2022 17:14, Niranjana Vishwanathapura wrote: On Fri, Jun 10, 2022 at 05:48:39PM +0300, Lionel Landwerlin wrote: On 10/06/2022 13:37, Tvrtko Ursulin wrote: On 10/0

Re: [PATCH v4] drm/msm/dp: force link training for display resolution change

2022-06-13 Thread Kuogee Hsieh
On 6/10/2022 2:04 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-27 14:32:13) During display resolution changes display have to be disabled first followed by display enabling with new resolution. Display disable will turn off both pixel clock and main link clock so that main link have t

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-13 Thread andriy.shevche...@linux.intel.com
On Mon, Jun 13, 2022 at 11:39:30AM +, Dominik Kierner wrote: > On 5/25/2022 21:46, Javier Martinez Canillas wrote: ... > > Thanks, I looked at the code briefly and think that there are things there > > that we > > could use. I.e the 3-wire SPI support that's in > > panel-solomon-ssd130x-spi

[PATCH libdrm] tests/util: Add simpledrm driver

2022-06-13 Thread Eric Curtin
From: Eric Curtin Add an entry for the "simpledrm" driver, so that the test utilities work with the simpledrm driver without passing the -M argument. Signed-off-by: Eric Curtin --- - It's also here, was unsure whether to use MR or email submission https://gitlab.freedesktop.org/mesa/drm/-/mer

  1   2   3   >