RE: [PATCH v3] drm/scheduler re-insert Bailing job to avoid memleak

2021-03-14 Thread Zhang, Jack (Jian)
[AMD Public Use] Hi, Rob/Tomeu/Steven, Would you please help to review this patch for panfrost driver? Thanks, Jack Zhang -Original Message- From: Jack Zhang Sent: Monday, March 15, 2021 1:21 PM To: dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org; Koenig, Christian ;

[PATCH v3] drm/scheduler re-insert Bailing job to avoid memleak

2021-03-14 Thread Jack Zhang
re-insert Bailing jobs to avoid memory leak. V2: move re-insert step to drm/scheduler logic V3: add panfrost's return value for bailing jobs in case it hits the memleak issue. Signed-off-by: Jack Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +++-

Re: [PATCH V2] drm: amd: pm: Mundane typo fixes in the file amdgpu_pm.c

2021-03-14 Thread Randy Dunlap
On 3/14/21 8:21 PM, Bhaskar Chowdhury wrote: > > s/"an minimum"/"a minimum"/ > s/"an maxmum"/"a maximum"/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > Changes from V1: > Randy's suggestion to adjust the subject line text > And missed out a spell too,which now

Re: [PATCH v3 00/15] Introduce devm_pm_opp_* API

2021-03-14 Thread Viresh Kumar
On 14-03-21, 19:33, Dmitry Osipenko wrote: > This series adds resource-managed OPP API helpers and makes drivers > to use them. > > Changelog: > > v3: - Dropped dev_pm_opp_register_notifier(). > > - Changed return type of the devm helpers from opp_table pointer > to errno. > > -

Re: [PATCH v3 11/15] drm/msm: Convert to use resource-managed OPP API

2021-03-14 Thread Viresh Kumar
On 14-03-21, 19:34, Dmitry Osipenko wrote: > From: Yangtao Li > > Use resource-managed OPP API to simplify code. > > Signed-off-by: Yangtao Li > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- > drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- >

Re: [PATCH V2] drm: amd: pm: Mundane typo fixes in the file amdgpu_pm.c

2021-03-14 Thread Huang Rui
On Mon, Mar 15, 2021 at 11:21:36AM +0800, Bhaskar Chowdhury wrote: > > s/"an minimum"/"a minimum"/ > s/"an maxmum"/"a maximum"/ > > Signed-off-by: Bhaskar Chowdhury Reviewed-by: Huang Rui > --- > Changes from V1: > Randy's suggestion to adjust the subject line text > And missed out a

[PATCH V2] drm: amd: pm: Mundane typo fixes in the file amdgpu_pm.c

2021-03-14 Thread Bhaskar Chowdhury
s/"an minimum"/"a minimum"/ s/"an maxmum"/"a maximum"/ Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Randy's suggestion to adjust the subject line text And missed out a spell too,which now included drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2

RE: [RFC v3 2/3] virtio: Introduce Vdmabuf driver

2021-03-14 Thread Zhang, Tina
> -Original Message- > From: dri-devel On Behalf Of Gerd > Hoffmann > Sent: Friday, February 12, 2021 7:02 PM > To: Kasireddy, Vivek > Cc: Kim, Dongwon ; christian.koe...@amd.com; > daniel.vet...@ffwll.ch; dri-devel@lists.freedesktop.org; > virtualizat...@lists.linux-foundation.org;

Re: [PATCH] gpu: drm: amd: pm: Mundane typo fix in the file amdgpu_pm.c

2021-03-14 Thread Randy Dunlap
On 3/14/21 6:57 PM, Bhaskar Chowdhury wrote: > > s/maxmum/maximum/ > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c >

[PATCH] gpu: drm: amd: pm: Mundane typo fix in the file amdgpu_pm.c

2021-03-14 Thread Bhaskar Chowdhury
s/maxmum/maximum/ Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 7b6ef05a1d35..7af74d236600 100644 ---

[Bug 212281] New: AMDGPU warning stack trace in dmesg (dcn20_validate_bandwidth_fp)

2021-03-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212281 Bug ID: 212281 Summary: AMDGPU warning stack trace in dmesg (dcn20_validate_bandwidth_fp) Product: Drivers Version: 2.5 Kernel Version: 5.11.4 Hardware: All

[Bug 212279] New: AMDGPU doesn’t expose any way of setting the full RGB range [ryzen+ mobile]

2021-03-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212279 Bug ID: 212279 Summary: AMDGPU doesn’t expose any way of setting the full RGB range [ryzen+ mobile] Product: Drivers Version: 2.5 Kernel Version: all Hardware: All

Re: [PATCH v15 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-14 Thread Michał Mirosław
On Thu, Mar 11, 2021 at 08:22:54PM +0300, Dmitry Osipenko wrote: > Display controller (DC) performs isochronous memory transfers, and thus, > has a requirement for a minimum memory bandwidth that shall be fulfilled, > otherwise framebuffer data can't be fetched fast enough and this results > in a

Re: [PATCH v15 2/2] drm/tegra: dc: Extend debug stats with total number of events

2021-03-14 Thread Michał Mirosław
On Thu, Mar 11, 2021 at 08:22:55PM +0300, Dmitry Osipenko wrote: > It's useful to know the total number of underflow events and currently > the debug stats are getting reset each time CRTC is being disabled. Let's > account the overall number of events that doesn't get a reset. [...] Looks good.

[PATCH] backlight: qcom-wled: Use sink_addr for sync toggle

2021-03-14 Thread Marijn Suijten
From: Obeida Shamoun WLED3_SINK_REG_SYNC is, as the name implies, a sink register offset. Therefore, use the sink address as base instead of the ctrl address. This fixes the sync toggle on wled4, which can be observed by the fact that adjusting brightness now works. It has no effect on wled3

[PATCH v1] drm/tegra: Use dev_err_probe()

2021-03-14 Thread Dmitry Osipenko
Use generic dev_err_probe() helper which silences noisy error messages about deferred probe of the Tegra DRM drivers. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 13 +++-- drivers/gpu/drm/tegra/hdmi.c | 34 +- 2 files changed, 12

[PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-14 Thread Dario Binacchi
As reported by TI spruh73x RM, the LCD pixel clock (LCD_PCLK) frequency is obtained by dividing LCD_CLK, the LCD controller reference clock, for CLKDIV: LCD_PCLK = LCD_CLK / CLKDIV where CLKDIV must be greater than 1. Therefore LCD_CLK must be set to 'req_rate * CLKDIV' instead of req_rate and

[PATCH v3 15/15] memory: samsung: exynos5422-dmc: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Osipenko --- drivers/memory/samsung/exynos5422-dmc.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH v3 14/15] media: venus: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/media/platform/qcom/venus/core.h | 1 - .../media/platform/qcom/venus/pm_helpers.c| 35 +-- 2 files changed, 8 insertions(+), 28

[PATCH v3 11/15] drm/msm: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 11 +++--

[PATCH v3 13/15] drm/panfrost: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Steven Price Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 37 + drivers/gpu/drm/panfrost/panfrost_devfreq.h | 2 -- 2 files

[PATCH v3 12/15] drm/lima: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/lima/lima_devfreq.c | 47 +++-- drivers/gpu/drm/lima/lima_devfreq.h | 3 -- 2 files changed, 11 insertions(+), 39 deletions(-)

[PATCH v3 10/15] mmc: sdhci-msm: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-msm.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/host/sdhci-msm.c

[PATCH v3 09/15] spi: spi-qcom-qspi: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-qcom-qspi.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-qcom-qspi.c

[PATCH v3 08/15] spi: spi-geni-qcom: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-geni-qcom.c | 16 ++-- include/linux/qcom-geni-se.h | 2 -- 2 files changed, 6 insertions(+), 12 deletions(-) diff

[PATCH v3 07/15] serial: qcom_geni_serial: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/tty/serial/qcom_geni_serial.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git

[PATCH v3 06/15] opp: Change return type of devm_pm_opp_attach_genpd()

2021-03-14 Thread Dmitry Osipenko
Make devm_pm_opp_attach_genpd() to return error code instead of opp_table pointer in order to have return type consistent with the other resource-managed OPP helpers. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 18 ++ include/linux/pm_opp.h | 9 + 2

[PATCH v3 05/15] opp: Change return type of devm_pm_opp_register_set_opp_helper()

2021-03-14 Thread Dmitry Osipenko
Make devm_pm_opp_register_set_opp_helper() to return error code instead of opp_table pointer in order to have return type consistent with the other resource-managed OPP helpers. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 18 ++ include/linux/pm_opp.h | 6 +++---

[PATCH v3 04/15] opp: Add devres wrapper for dev_pm_opp_of_add_table

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_of_add_table() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/of.c | 36 include/linux/pm_opp.h | 6 ++ 2 files changed, 42 insertions(+)

[PATCH v3 03/15] opp: Add devres wrapper for dev_pm_opp_set_supported_hw

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_supported_hw() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 29 + include/linux/pm_opp.h | 8 2 files changed, 37 insertions(+)

[PATCH v3 02/15] opp: Add devres wrapper for dev_pm_opp_set_regulators

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_regulators() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 30 ++ include/linux/pm_opp.h | 8 2 files changed, 38 insertions(+) diff

[PATCH v3 01/15] opp: Add devres wrapper for dev_pm_opp_set_clkname

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_clkname() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 27 +++ include/linux/pm_opp.h | 6 ++ 2 files changed, 33 insertions(+) diff --git

[PATCH v3 00/15] Introduce devm_pm_opp_* API

2021-03-14 Thread Dmitry Osipenko
This series adds resource-managed OPP API helpers and makes drivers to use them. Changelog: v3: - Dropped dev_pm_opp_register_notifier(). - Changed return type of the devm helpers from opp_table pointer to errno. - Corrected drm/msm patch which missed to remove

Re: [PATCH 15/17] iommu: remove DOMAIN_ATTR_NESTING

2021-03-14 Thread Auger Eric
Hi Christoph, On 3/1/21 9:42 AM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig > --- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 40 ++--- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 30 ++-- > drivers/iommu/intel/iommu.c | 28