Re: [PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Tab 3 X90F

2022-11-29 Thread Javier Martinez Canillas
Hello Hans, On 11/27/22 19:15, Hans de Goede wrote: > The Lenovo Yoga Tab 3 X90F has a portrait 1600x2560 LCD used in > landscape mode, add a quirk for this. > > Signed-off-by: Hans de Goede > --- Looks good to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez

Re: [PATCH 0/8] drm/mipi-dbi: Convert to shadow-plane helpers

2022-11-29 Thread Javier Martinez Canillas
Hello Thomas, On 11/21/22 11:45, Thomas Zimmermann wrote: > Convert the MIPI-DBI-based drivers to shadow-plane helpers. The > drivers vmap/vunmap GEM buffer memory during the atomic commit. > Shadow-plane helpers automate this process. > > Patches 1 to 4 prepare the MIPI code for the change and

Re: [pull] drm/msm: drm-msm-display-for-6.2

2022-11-29 Thread Dave Airlie
On Sat, 26 Nov 2022 at 20:21, Dmitry Baryshkov wrote: > > Hi Dave, > > As agreed with Rob Clark, a pull request for the non-GPU part of the drm/msm > driver. Summary below. > > The following changes since commit 7f7a942c0a338c4a2a7b359bdb2b68e9896122ec: > > Merge tag 'drm-next-20221025' of

Re: [PATCH v2 06/26] drm: sun4i: Define and use generic PM ops

2022-11-29 Thread Samuel Holland
On 11/29/22 13:17, Paul Cercueil wrote: > Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a > "struct dev_pm_ops" that can be used by this driver, instead of using > custom PM callbacks with the same behaviour. > > v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro

Re: [PATCH v7 00/20] drm/i915/vm_bind: Add VM_BIND functionality

2022-11-29 Thread Niranjana Vishwanathapura
On Fri, Nov 18, 2022 at 03:53:34PM -0800, Zanoni, Paulo R wrote: On Sat, 2022-11-12 at 23:57 -0800, Niranjana Vishwanathapura wrote: DRM_I915_GEM_VM_BIND/UNBIND ioctls allows UMD to bind/unbind GEM buffer objects (BOs) or sections of a BOs at specified GPU virtual addresses on a specified

linux-next: build warning after merge of the drm-intel tree

2022-11-29 Thread Stephen Rothwell
Hi all, After merging the drm-intel tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/i915/gt/intel_gt_mcr.c:739: warning: expecting prototype for intel_gt_mcr_wait_for_reg_fw(). Prototype was for intel_gt_mcr_wait_for_reg() instead Introduced by commit

[PATCH] drm: amd: display: Fix memory leakage

2022-11-29 Thread Konstantin Meskhidze
This commit fixes memory leakage in dc_construct_ctx() function. Signed-off-by: Konstantin Meskhidze --- drivers/gpu/drm/amd/display/dc/core/dc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index

[linux-next:master] BUILD REGRESSION 13ee7ef407cfcf63f4f047460ac5bb6ba5a3447d

2022-11-29 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 13ee7ef407cfcf63f4f047460ac5bb6ba5a3447d Add linux-next specific files for 20221129 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202211041320.coq8eelj-...@intel.com https

[PATCH v6 1/1] drm/i915/pxp: Promote pxp subsystem to top-level of i915

2022-11-29 Thread Alan Previn
Starting with MTL, there will be two GT-tiles, a render and media tile. PXP as a service for supporting workloads with protected contexts and protected buffers can be subscribed by process workloads on any tile. However, depending on the platform, only one of the tiles is used for control events

Re: [2/2] drm/shmem-helper: Avoid vm_open error paths

2022-11-29 Thread Guenter Roeck
On 11/29/22 12:47, Rob Clark wrote: On Tue, Nov 29, 2022 at 12:32 PM Guenter Roeck wrote: On Tue, Nov 29, 2022 at 12:02:42PM -0800, Rob Clark wrote: From: Rob Clark vm_open() is not allowed to fail. Fortunately we are guaranteed that the pages are already pinned, and only need to

[PATCH v5 3/3] drm/msm/dp: add support of max dp link rate

2022-11-29 Thread Kuogee Hsieh
By default, HBR2 (5.4G) is the max link link be supported. This patch add the capability to support max link rate at HBR3 (8.1G). Changes in v2: -- add max link rate from dtsi Changes in v3: -- parser max_data_lanes and max_dp_link_rate from dp_out endpoint Changes in v4: -- delete unnecessary

[PATCH v5 2/3] drm/msm/dp: parser data-lanes and link-frequencies from endpoint node

2022-11-29 Thread Kuogee Hsieh
Both data-lanes and link-frequencies are property of endpoint. This patch parser endpoint to retrieve max data lanes and max link rate supported specified at dp_out endpoint. In the case where no endpoint specified, then 4 data lanes with HBR2 link rate (5.4G) will be the default link

[PATCH v5 1/3] arm64: dts: qcom: add data-lanes and link-freuencies into dp_out endpoint

2022-11-29 Thread Kuogee Hsieh
Move data-lanes property from mdss_dp node to dp_out endpoint. Also add link-frequencies property into dp_out endpoint as well. The last frequency specified at link-frequencies will be the max link rate supported by DP. Changes in v5: -- revert changes at sc7180.dtsi and sc7280.dtsi -- add _out

[PATCH v5 0/3] Add data-lanes and link-frequencies to dp_out endpoint

2022-11-29 Thread Kuogee Hsieh
Add DP both data-lanes and link-frequencies property to dp_out endpoint and support functions to DP driver. Kuogee Hsieh (3): arm64: dts: qcom: add data-lanes and link-freuencies into dp_out endpoint drm/msm/dp: parser data-lanes and link-frequencies from endpoint node drm/msm/dp: add

Re: [PATCH v3 2/2] drm/msm/dp: add support of max dp link rate

2022-11-29 Thread Kuogee Hsieh
On 11/18/2022 3:04 AM, Dmitry Baryshkov wrote: On 18/11/2022 01:49, Kuogee Hsieh wrote: dp_out endpoint contains both data-lanes and link-frequencies properties. This patch parser dp_out endpoint properties and acquire dp_max_lanes and dp_max_link_rate from respective property. Finally,

[PATCH v2] drm/virtio: Spiff out cmd queue/response traces

2022-11-29 Thread Rob Clark
From: Rob Clark Add a sequence # for more easily matching up cmd/resp, and the # of free slots in the virtqueue to more easily see starvation issues. v2: Fix handling of string fields as well Signed-off-by: Rob Clark Reviewed-by: Dmitry Osipenko --- drivers/gpu/drm/virtio/virtgpu_drv.h |

Re: [PATCH 1/6] drm/i915/uc: Introduce GSC FW

2022-11-29 Thread Teres Alexis, Alan Previn
Besides the nit below, just would like to echo the same thing Nikula said about not including the type definition in the main uc header (which i know can be a bit more work especially if we go with allocation of the structure at init time and using a ptr in the uc structure). That said,

Re: [PATCH v7 20/20] drm/i915/vm_bind: Async vm_unbind support

2022-11-29 Thread Niranjana Vishwanathapura
On Wed, Nov 23, 2022 at 11:42:58AM +, Matthew Auld wrote: On 16/11/2022 00:37, Niranjana Vishwanathapura wrote: On Tue, Nov 15, 2022 at 03:15:03PM -0800, Niranjana Vishwanathapura wrote: On Tue, Nov 15, 2022 at 08:33:47AM -0800, Niranjana Vishwanathapura wrote: On Tue, Nov 15, 2022 at

[PATCH v3 0/3] More GuC firmware version improvements

2022-11-29 Thread John . C . Harrison
From: John Harrison Start using the 'submission API version' for deciding which GuC API to use in the submission code. Correct version number manipulation code to support full 32bit major/minor/patch components, except for GuC which is guaranteed to be 8bit safe. Other minor code clean ups

[PATCH v3 1/3] drm/i915/uc: Rationalise delimiters in filename macros

2022-11-29 Thread John . C . Harrison
From: John Harrison The way delimiters (underscores and dots) were added to the UC filenames was different for different types of delimiter. Rationalise them to all be done the same way - implicitly in the concatenation macro rather than explicitly in the file name prefix. Signed-off-by: John

[PATCH v3 3/3] drm/i915/guc: Use GuC submission API version number

2022-11-29 Thread John . C . Harrison
From: John Harrison The GuC firmware includes an extra version number to specify the submission API level. So use that rather than the main firmware version number for submission related checks. Also, while it is guaranteed that GuC version number components are only 8-bits in size, other

[PATCH v3 2/3] drm/i915/uc: More refactoring of UC version numbers

2022-11-29 Thread John . C . Harrison
From: John Harrison As a precursor to a coming change (for adding a GuC submission API version), abstract the UC version number into its own private structure separate to the firmware filename. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio ---

Re: [PATCH 5/5] drm/panel-samsung-atna33xc20: Extend autosuspend delay

2022-11-29 Thread Doug Anderson
Hi, On Thu, Nov 17, 2022 at 1:15 PM Doug Anderson wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport > wrote: > > > > Avoid the panel oscillating on and off during boot. In some cases it > > will be more than 1000ms between powering the panel to read the EDID early > > during

Re: [PATCH 2/5] drm/panel-samsung-atna33xc20: Use ktime_get_boottime for delays

2022-11-29 Thread Doug Anderson
Hi, On Thu, Nov 17, 2022 at 1:14 PM Doug Anderson wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport > wrote: > > > > ktime_get_boottime continues while the device is suspended. This change > > ensures that the resume path will not be delayed if the power off delay > > has

Re: [PATCH 4/5] drm/bridge/parade-ps8640: Extend autosuspend

2022-11-29 Thread Doug Anderson
Hi, On Thu, Nov 17, 2022 at 1:14 PM Doug Anderson wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport > wrote: > > > > Same change as done for panel-samsung-atna33xc20. Extend the autosuspend > > delay to avoid oscillating between power status during boot. > > > > Signed-off-by:

Re: [PATCH 3/5] drm/panel-simple: Use ktime_get_boottime for delays

2022-11-29 Thread Doug Anderson
Hi, On Thu, Nov 17, 2022 at 1:14 PM Doug Anderson wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport > wrote: > > > > ktime_get_boottime continues while the device is suspended. This change > > ensures that the resume path will not be delayed if the power off delay > > has

Re: [PATCH 1/5] drm/panel-edp: Use ktime_get_boottime for delays

2022-11-29 Thread Doug Anderson
Hi, On Thu, Nov 17, 2022 at 1:14 PM Doug Anderson wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport > wrote: > > > > ktime_get is based on CLOCK_MONOTONIC which stops on suspend. On > > suspend, the time that the panel was powerd off is recorded with > > ktime_get, and on

Re: [PATCH v1] drm/bridge: lt8912b: Add hot plug detection

2022-11-29 Thread Adrien Grassein
Le mar. 29 nov. 2022 à 12:15, Robert Foss a écrit : > > On Mon, 28 Nov 2022 at 12:23, Francesco Dolcini wrote: > > > > From: Stefan Eichenberger > > > > Enable hot plug detection when it is available on the HDMI port. > > Without this connecting to a different monitor with incompatible timing >

Re: [PATCH v2 07/26] drm: mxsfb: Define and use generic PM ops

2022-11-29 Thread Marek Vasut
On 11/29/22 20:17, Paul Cercueil wrote: Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an

Re: [PATCH 036/606] drm/bridge: ti-sn65dsi86: Convert to i2c's .probe_new()

2022-11-29 Thread Doug Anderson
Hi, On Fri, Nov 18, 2022 at 2:46 PM Uwe Kleine-König wrote: > > From: Uwe Kleine-König > > The probe function doesn't make use of the i2c_device_id * parameter so it > can be trivially converted. > > Signed-off-by: Uwe Kleine-König > --- > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 ++--- > 1

Re: [PATCH v2 17/26] drm: rcar-du: Remove #ifdef guards for PM related functions

2022-11-29 Thread Laurent Pinchart
Hi Paul, On Tue, Nov 29, 2022 at 09:05:49PM +, Paul Cercueil wrote: > Le mardi 29 novembre 2022 à 21:43 +0200, Laurent Pinchart a écrit : > > On Tue, Nov 29, 2022 at 07:19:33PM +, Paul Cercueil wrote: > > > Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle > > > the

Re: [PATCH 3/9] drm/ttm: use per BO cleanup workers

2022-11-29 Thread Felix Kuehling
On 2022-11-25 05:21, Christian König wrote: Instead of a single worker going over the list of delete BOs in regular intervals use a per BO worker which blocks for the resv object and locking of the BO. This not only simplifies the handling massively, but also results in much better response

[PATCH 1/2] drm/i915: Allow error capture without a request

2022-11-29 Thread John . C . Harrison
From: John Harrison There was a report of error captures occurring without any hung context being indicated despite the capture being initiated by a 'hung context notification' from GuC. The problem was not reproducible. However, it is possible to happen if the context in question has no active

[PATCH 2/2] drm/i915/guc: Look for a guilty context when an engine reset fails

2022-11-29 Thread John . C . Harrison
From: John Harrison Engine resets are supposed to never happen. But in the case when one does (due to unknwon reasons that normally come down to a missing w/a), it is useful to get as much information out of the system as possible. Given that the GuC effectively dies on such a situation, it is

[PATCH 0/2] Allow error capture without a request / on reset failure

2022-11-29 Thread John . C . Harrison
From: John Harrison It is technically possible to get a hung context without a valid request. In such a situation, try to provide as much information in the error capture as possible rather than just aborting and capturing nothing. Similarly, in the case of a engine reset failure the GuC is not

Re: [PATCH v2 17/26] drm: rcar-du: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Hi Laurent, Le mardi 29 novembre 2022 à 21:43 +0200, Laurent Pinchart a écrit : > Hi Paul, > > Thank you for the patch. > > On Tue, Nov 29, 2022 at 07:19:33PM +, Paul Cercueil wrote: > > Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to > > handle > > the .suspend/.resume

Re: [2/2] drm/shmem-helper: Avoid vm_open error paths

2022-11-29 Thread Rob Clark
On Tue, Nov 29, 2022 at 12:32 PM Guenter Roeck wrote: > > On Tue, Nov 29, 2022 at 12:02:42PM -0800, Rob Clark wrote: > > From: Rob Clark > > > > vm_open() is not allowed to fail. Fortunately we are guaranteed that > > the pages are already pinned, and only need to increment the refcnt. So > >

[PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible

2022-11-29 Thread Adam Skladowski
Change fallback to qcom generic compatible in order to prevent reboot during SMMU initialization. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi

[PATCH 11/12] arm64: dts: qcom: sm6115: Add WCN node.

2022-11-29 Thread Adam Skladowski
Add WCN node to allow using wifi module. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index

[PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support

2022-11-29 Thread Adam Skladowski
Add cpufreq-hw node and assign qcom,freq-domain properties to CPUs to enable CPU clock scaling. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi

[PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node

2022-11-29 Thread Adam Skladowski
Add a node for the PRNG to enable hw-accelerated pseudo-random number generation. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index

[PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible

2022-11-29 Thread Adam Skladowski
Document compatible for tsens on Qualcomm SM6115 platform according to downstream dts it ship v2.4 of IP Signed-off-by: Adam Skladowski --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node

2022-11-29 Thread Adam Skladowski
Add nodes required for TSENS block using the common qcom,tsens-v2 binding. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index

[PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA

2022-11-29 Thread Adam Skladowski
Add GPI DMA node which will be wired to i2c/spi/uart. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index

[PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node

2022-11-29 Thread Adam Skladowski
Add mdss and dpu node to enable display support on SM6115. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 183 +++ 1 file changed, 183 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi

[PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes

2022-11-29 Thread Adam Skladowski
Add I2C/SPI nodes for SM6115. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 287 +++ 1 file changed, 287 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index e9de7aa1efdd..d14a4595be8a

[PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node

2022-11-29 Thread Adam Skladowski
Add display clock controller to allow controlling display related clocks. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi

[PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node

2022-11-29 Thread Adam Skladowski
Add rpm stats node. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 04620c272227..6d14bbcda9d3 100644 ---

[PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem

2022-11-29 Thread Adam Skladowski
Follow other YAMLs and replace mdss name. Signed-off-by: Adam Skladowski --- .../devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml | 2 +- .../devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 00/12] SM6115 DTS changes

2022-11-29 Thread Adam Skladowski
This patch series adds bunch of new nodes also it fixes some small nitpicks in yamls and adds compatible. Adam Skladowski (12): dt-bindings: display: msm: Replace mdss with display-subsystem dt-bindings: thermal: tsens: Add SM6115 compatible arm64: dts: qcom: sm6115: Add cpufreq-hw support

Re: [2/2] drm/shmem-helper: Avoid vm_open error paths

2022-11-29 Thread Guenter Roeck
On Tue, Nov 29, 2022 at 12:02:42PM -0800, Rob Clark wrote: > From: Rob Clark > > vm_open() is not allowed to fail. Fortunately we are guaranteed that > the pages are already pinned, and only need to increment the refcnt. So > just increment it directly. I don't know anything about drm or gem,

Re: [1/2] drm/shmem-helper: Remove errant put in error path

2022-11-29 Thread Guenter Roeck
On Tue, Nov 29, 2022 at 12:02:41PM -0800, Rob Clark wrote: > From: Rob Clark > > drm_gem_shmem_mmap() doesn't own this reference! > I think the impact should be explained further. > Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects") > Cc: sta...@vger.kernel.org >

[PATCH 1/2] drm/shmem-helper: Remove errant put in error path

2022-11-29 Thread Rob Clark
From: Rob Clark drm_gem_shmem_mmap() doesn't own this reference! Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects") Cc: sta...@vger.kernel.org Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_gem_shmem_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 2/2] drm/shmem-helper: Avoid vm_open error paths

2022-11-29 Thread Rob Clark
From: Rob Clark vm_open() is not allowed to fail. Fortunately we are guaranteed that the pages are already pinned, and only need to increment the refcnt. So just increment it directly. Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects") Cc: sta...@vger.kernel.org

[PATCH 0/2] drm/shmem-helper: Fix a couple of error path bugs

2022-11-29 Thread Rob Clark
From: Rob Clark A couple fixes for error paths that userspace could manage to trigger. Rob Clark (2): drm/shmem-helper: Remove errant put in error path drm/shmem-helper: Avoid vm_open error paths drivers/gpu/drm/drm_gem_shmem_helper.c | 15 +++ 1 file changed, 11

Re: [PATCH v2 10/12] arm64: dts: qcom: sm8350: Add display system nodes

2022-11-29 Thread Dmitry Baryshkov
On 29/11/2022 18:47, Robert Foss wrote: On Tue, 15 Nov 2022 at 14:47, Konrad Dybcio wrote: On 15/11/2022 14:31, Robert Foss wrote: Add mdss, mdss_mdp, dsi0, dsi0_phy nodes. With these nodes the display subsystem is configured to support one DSI output. Signed-off-by: Robert Foss ---

Re: [PATCH v2 16/26] drm: panfrost: Remove #ifdef guards for PM related functions

2022-11-29 Thread Alyssa Rosenzweig
Sounds like a nice clean up :-) Acked-by: Alyssa Rosenzweig On Tue, Nov 29, 2022 at 07:19:32PM +, Paul Cercueil wrote: > Use the EXPORT_GPL_RUNTIME_DEV_PM_OPS() and pm_ptr() macros to handle > the PM callbacks. > > These macros allow the PM functions to be automatically dropped by

Re: [PATCH v2 19/26] drm: shmobile: Remove #ifdef guards for PM related functions

2022-11-29 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Tue, Nov 29, 2022 at 07:19:35PM +, Paul Cercueil wrote: > Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle > the .suspend/.resume callbacks. > > These macros allow the suspend and resume functions to be automatically > dropped by

Re: [PATCH v2 17/26] drm: rcar-du: Remove #ifdef guards for PM related functions

2022-11-29 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Tue, Nov 29, 2022 at 07:19:33PM +, Paul Cercueil wrote: > Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle > the .suspend/.resume callbacks. > > These macros allow the suspend and resume functions to be automatically > dropped by

[PATCH v2 26/26] drm/i915/gt: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Instead of defining two versions of intel_sysfs_rc6_init(), one for each value of CONFIG_PM, add a check on !IS_ENABLED(CONFIG_PM) early in the function. This will allow the compiler to automatically drop the dead code when CONFIG_PM is disabled, without having to use #ifdef guards. This has the

[PATCH v2 24/26] drm: gm12u320: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the pm_ptr() macro to handle the .suspend / .resume / .reset_resume callbacks. This macro allows the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always compiling these

[PATCH v2 25/26] drm: tidss: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS() macros to handle the PM callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always compiling these

[PATCH v2 23/26] drm: vc4: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the RUNTIME_PM_OPS() and pm_ptr() macros to handle the .runtime_suspend/.runtime_resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always

[PATCH v2 21/26] drm: tilcdc: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 22/26] drm: vboxvideo: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the pm_sleep_ptr() macro to handle the .suspend / .resume callbacks. This macro allows the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of always compiling these functions

[PATCH v2 20/26] drm: tegra: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the RUNTIME_PM_OPS() and pm_ptr() macros to handle the .runtime_suspend/.runtime_resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always

[PATCH v2 15/26] drm: omap: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 17/26] drm: rcar-du: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 14/26] drm: mediatek: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 16/26] drm: panfrost: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the EXPORT_GPL_RUNTIME_DEV_PM_OPS() and pm_ptr() macros to handle the PM callbacks. These macros allow the PM functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always compiling these functions in,

[PATCH v2 18/26] drm: rockchip: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the pm_sleep_ptr() macros to handle the .suspend_late / .resume_early callbacks. This macro allows the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of always compiling

[PATCH v2 19/26] drm: shmobile: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 13/26] drm: fsl-dcu: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 12/26] drm: etnaviv: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the RUNTIME_PM_OPS() and pm_ptr() macros to handle the .runtime_suspend/.runtime_resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always

[PATCH v2 14/26] drm: mediatek: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 11/26] drm: bridge/dw-hdmi: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 06/26] drm: sun4i: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 09/26] drm: exynos: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_RUNTIME_DEV_PM_OPS(), SYSTEM_SLEEP_PM_OPS(), RUNTIME_PM_OPS() and pm_ptr() macros to handle the runtime and suspend PM callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef

[PATCH v2 10/26] drm: imx/dcss: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the EXPORT_GPL_DEV_PM_OPS() and pm_ptr() macros to handle the PM callbacks. These macros allow the PM functions to be automatically dropped by the compiler when CONFIG_PM is disabled, without having to use #ifdef guards. This has the advantage of always compiling these functions in,

Re: [PATCH v2 3/3] drm/i915/guc: Use GuC submission API version number

2022-11-29 Thread Ceraolo Spurio, Daniele
On 11/23/2022 2:31 PM, john.c.harri...@intel.com wrote: From: John Harrison The GuC firmware includes an extra version number to specify the submission API level. So use that rather than the main firmware version number for submission related checks. Also, while it is guaranteed that GuC

[PATCH v2 08/26] drm: atmel-hlcdc: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has the advantage of

[PATCH v2 07/26] drm: mxsfb: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 05/26] drm: tegra: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 03/26] drm: imx: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 04/26] drm: rockchip: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 02/26] drm: bochs: Define and use generic PM ops

2022-11-29 Thread Paul Cercueil
Use the new DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro to create a "struct dev_pm_ops" that can be used by this driver, instead of using custom PM callbacks with the same behaviour. v2: Use the DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS() macro instead of an exported dev_pm_ops. Signed-off-by:

[PATCH v2 01/26] drm: modeset-helper: Add DEFINE_DRM_MODE_CONFIG_HELPER_PM_OPS macro

2022-11-29 Thread Paul Cercueil
This macro can be used with simple drivers, which have their "struct drm_device" registered as their "struct device"'s drvdata, and only call drm_mode_config_pm_{suspend,resume}. The macro will define a "struct dev_pm_ops" with the name passed as argument. This object cannot be referenced

[PATCH v2 00/26] drm: Get rid of #ifdef CONFIG_PM* guards

2022-11-29 Thread Paul Cercueil
Hi, This patchset updates the DRM drivers to use the new set of PM-related macros introduced recently. The point of these macros is to allow the PM functions to be automatically dropped by the compiler when CONFIG_PM or CONFIG_SUSPEND is disabled, without having to use #ifdef guards. This has

Re: [Freedreno] [RFC PATCH 1/3] drm: Introduce color fill properties for drm plane

2022-11-29 Thread Jessica Zhang
On 11/24/2022 12:50 AM, Pekka Paalanen wrote: On Wed, 23 Nov 2022 15:27:04 -0800 Jessica Zhang wrote: On 11/9/2022 1:18 AM, Pekka Paalanen wrote: On Tue, 8 Nov 2022 23:01:47 +0100 Sebastian Wick wrote: On Tue, Nov 8, 2022 at 7:51 PM Simon Ser wrote: cc'ing Pekka and wayland-devel

Re: [PATCH] drm/virtio: Spiff out cmd queue/response traces

2022-11-29 Thread Dmitry Osipenko
On 11/29/22 20:43, Rob Clark wrote: > From: Rob Clark > > Add a sequence # for more easily matching up cmd/resp, and the # of free > slots in the virtqueue to more easily see starvation issues. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 3 +++ >

Re: [PATCH v2 3/7] media: uapi: add MEDIA_BUS_FMT_BGR666_1X24_CPADHI

2022-11-29 Thread Laurent Pinchart
Hi Jörg, On Tue, Nov 29, 2022 at 03:52:45PM +0100, Jörg Quinten wrote: > Hi Laurent, > > looks like linux/Documentation/userspace-api/media/v4l/subdev-formats.rst > doesn't correlate at all to the arrangement and numbering in > linux/include/uapi/linux/media-bus-format.h . Looking at the RGB

Re: [Intel-gfx] [PATCH 7/9] drm/i915: stop using ttm_bo_wait

2022-11-29 Thread Matthew Auld
On Fri, 25 Nov 2022 at 11:14, Tvrtko Ursulin wrote: > > > + Matt > > On 25/11/2022 10:21, Christian König wrote: > > TTM is just wrapping core DMA functionality here, remove the mid-layer. > > No functional change. > > > > Signed-off-by: Christian König > > --- > >

[PATCH v2] dt-bindings: display: Convert fsl,imx-fb.txt to dt-schema

2022-11-29 Thread Uwe Kleine-König
Compared to the txt description this adds clocks and clock-names to match reality. Note that fsl,imx-lcdc was picked as the new name as this is the actual hardware's name. There will be a new binding implementing the saner drm concept that is supposed to supersede this legacy fb binding

Re: [PATCH v3 7/7] drm: rcar-du: dsi: Add r8A779g0 support

2022-11-29 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Tue, Nov 29, 2022 at 03:41:38PM +0200, Tomi Valkeinen wrote: > Add DSI support for r8a779g0. The main differences to r8a779a0 are in > the PLL and PHTW setups. > > Signed-off-by: Tomi Valkeinen > --- > Changes to v2: > - Use MHZ() in the tables, with

[PATCH] drm/virtio: Spiff out cmd queue/response traces

2022-11-29 Thread Rob Clark
From: Rob Clark Add a sequence # for more easily matching up cmd/resp, and the # of free slots in the virtqueue to more easily see starvation issues. Signed-off-by: Rob Clark --- drivers/gpu/drm/virtio/virtgpu_drv.h | 3 +++ drivers/gpu/drm/virtio/virtgpu_trace.h | 20

[PATCH V4 2/3] drm/panel: Add Samsung AMS495QA01 MIPI-DSI LCD panel

2022-11-29 Thread Chris Morgan
From: Chris Morgan Support Samsung AMS495QA01 panel as found on the Anbernic RG503. Note This panel receives video signals via DSI, however it receives commands via 3-wire SPI. Signed-off-by: Chris Morgan Signed-off-by: Maya Matuszczyk --- drivers/gpu/drm/panel/Kconfig | 10

[PATCH V4 3/3] arm64: dts: rockchip: add display to RG503

2022-11-29 Thread Chris Morgan
From: Chris Morgan Add Samsung AMS495QA01 panel to RG503. Signed-off-by: Chris Morgan Signed-off-by: Maya Matuszczyk --- .../dts/rockchip/rk3566-anbernic-rg503.dts| 61 +++ 1 file changed, 61 insertions(+) diff --git

[PATCH V4 1/3] dt-bindings: display: panel: Add Samsung AMS495QA01

2022-11-29 Thread Chris Morgan
From: Chris Morgan Add documentation for the Samsung AMS495QA01 panel. Signed-off-by: Chris Morgan Signed-off-by: Maya Matuszczyk --- .../display/panel/samsung,ams495qa01.yaml | 57 +++ 1 file changed, 57 insertions(+) create mode 100644

[PATCH V4 0/3] drm/panel: Add Samsung AMS495QA01 Panel

2022-11-29 Thread Chris Morgan
From: Chris Morgan Add the Samsung AMS495QA01 panel as found on the Anbernic RG503. This panel uses DSI to receive video signals, but 3-wire SPI to receive command signals. Changes since V3: - Updated documentation to add spi-peripheral-props.yaml per updates made for similar devices. Note

Re: [PATCH v2 1/3] ASoC: hdmi-codec: Add event handler for hdmi TX

2022-11-29 Thread Mark Brown
On Mon, Nov 28, 2022 at 03:07:22PM +, Jiaxin Yu (俞家鑫) wrote: > On Fri, 2022-11-25 at 12:18 +, Mark Brown wrote: > > On Fri, Nov 25, 2022 at 05:44:11PM +0800, Jiaxin Yu wrote: > > I'm a little unclear why this is being implemented as a DAPM > > operation > > rather than having the driver

  1   2   >