[PATCH v12 4/5] drm/amdgpu: move vram inline functions into a header

2022-02-13 Thread Arunpravin
Move shared vram inline functions and structs into a header file Signed-off-by: Arunpravin --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h | 51 1 file changed, 51 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h diff --git

[PATCH v12 2/5] drm: implement top-down allocation method

2022-02-13 Thread Arunpravin
Implemented a function which walk through the order list, compares the offset and returns the maximum offset block, this method is unpredictable in obtaining the high range address blocks which depends on allocation and deallocation. for instance, if driver requests address at a low specific

[PATCH v12 5/5] drm/amdgpu: add drm buddy support to amdgpu

2022-02-13 Thread Arunpravin
- Remove drm_mm references and replace with drm buddy functionalities - Add res cursor support for drm buddy v2(Matthew Auld): - replace spinlock with mutex as we call kmem_cache_zalloc (..., GFP_KERNEL) in drm_buddy_alloc() function - lock drm_buddy_block_trim() function as it calls

[PATCH 1/2] edid: parse DRM VESA dsc bpp target

2022-02-13 Thread Yaroslav Bolyukin
As per DisplayID v2.0 Errata E9 spec Signed-off-by: Yaroslav Bolyukin --- drivers/gpu/drm/drm_edid.c | 31 --- include/drm/drm_connector.h | 6 ++ include/drm/drm_displayid.h | 4 3 files changed, 30 insertions(+), 11 deletions(-) diff --git

[PATCH 2/2] drm/amd: use fixed dsc bits-per-pixel from edid

2022-02-13 Thread Yaroslav Bolyukin
VESA vendor header from DisplayID spec may contain fixed bit per pixel rate, it should be respected by drm driver Signed-off-by: Yaroslav Bolyukin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 ++ drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 ++-

[v1 2/2] drm/msm/disp/dpu1: Add PSR support for eDP interface in dpu driver

2022-02-13 Thread Vinod Polimera
Enable PSR on eDP interface using drm self-refresh librabry. This patch uses a trigger from self-refresh library to enter/exit into PSR, when there are no updates from framework. Signed-off-by: Vinod Polimera Signed-off-by: Kalyan Thota --- drivers/gpu/drm/bridge/panel.c | 64

fbtft gpio backlight

2022-02-13 Thread qianfan
Hi: fbtft_register_backlight assume backlight is off, get polarity from current state of pin. but the led gpio is requested by GPIOD_OUT_LOW flag, which means the gpio state when fbtft_register_backlight is always low. Is it a bug? Thanks

[PATCH v2 2/2] platform: make platform_get_irq_byname_optional() optional

2022-02-13 Thread Sergey Shtylyov
Currently platform_get_irq_byname_optional() returns an error code even if IRQ resource simply has not been found. It prevents the callers from being error code agnostic in their error handling: ret = platform_get_irq_byname_optional(...); if (ret < 0 && ret != -ENXIO)

[v1 1/2] drm/msm/dp: Add basic PSR support for eDP

2022-02-13 Thread Vinod Polimera
Add support for basic panel self refresh (PSR) feature for eDP. Add a new interface to set PSR state in the sink from DPU. Program the eDP controller to issue PSR enter and exit SDP to the sink. Signed-off-by: Sankeerth Billakanti --- drivers/gpu/drm/msm/dp/dp_catalog.c | 81

[PATCH] drivers: fbtft: Add property 'keep-bootlogo'

2022-02-13 Thread qianfanguijin
From: qianfan Zhao Keep the logo draw by bootloader Signed-off-by: qianfan Zhao --- drivers/staging/fbtft/fbtft-core.c | 6 -- drivers/staging/fbtft/fbtft.h | 4 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c

[PATCH] drivers: fbtft: Refactor backlight logic

2022-02-13 Thread qianfanguijin
From: qianfan Zhao Control led gpios by using GPIO_ACTIVE flags, don't detect the polarity by reading the gpio value when probe. Signed-off-by: qianfan Zhao --- drivers/staging/fbtft/fbtft-core.c | 54 +- drivers/staging/fbtft/fbtft.h | 1 - 2 files changed,

[PATCH v7 2/4] drm/bridge: anx7625: Convert to use devm_kzalloc

2022-02-13 Thread Hsin-Yi Wang
Use devm_kzalloc instead of kzalloc and drop kfree(). Let the memory handled by driver detach. Signed-off-by: Hsin-Yi Wang Reviewed-by: Xin Ji --- v2->v3: remove kfree() in anx7625_i2c_remove(). --- drivers/gpu/drm/bridge/analogix/anx7625.c | 10 +++--- 1 file changed, 3 insertions(+), 7

[PATCH v7 3/4] drm/bridge: anx7625: Support reading edid through aux channel

2022-02-13 Thread Hsin-Yi Wang
Support reading edid through aux channel if panel is connected to aux bus. Extend anx7625_aux_dpcd_trans() to implement aux transfer function: 1. panel is populated in devm_of_dp_aux_populate_ep_devices(), so move anx7625_parse_dt() after. 2. Use pm runtime autosuspend since aux transfer

[PATCH v7 4/4] dt-bindings: drm/bridge: anx7625: Add aux-bus node

2022-02-13 Thread Hsin-Yi Wang
List panel under aux-bus node if it's connected to anx7625's aux bus. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring --- .../display/bridge/analogix,anx7625.yaml| 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH v7 4/7] MIPS: Loongson: introduce dts for lemote A1901 3a4000 motherboard

2022-02-13 Thread Sui Jingfeng
From: suijingfeng This board has only one VGA output which is connected to DVO1 of the display controller. More details about this motherboard can be read from [1]. +--++---+ | DDR4 || +---+|

[PATCH v7 5/7] MIPS: Loongson: ls2k1000: add the display controller device node

2022-02-13 Thread Sui Jingfeng
From: suijingfeng The display controller is a pci device, its PCI vendor id is 0x0014 its PCI device id is 0x7a06. Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 11 +++ 1 file changed, 11

[PATCH v7 1/7] drm/lsdc: add drm driver for loongson display controller

2022-02-13 Thread Sui Jingfeng
From: suijingfeng There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge chip, the DC is a PCI device in those chips. It has two display pipes but with only one hardware cursor. Each way has a DVO interface which provide RGB888 signals, vertical & horizontal

[PATCH v7 0/7] drm/lsdc: add drm driver for loongson display controller

2022-02-13 Thread Sui Jingfeng
There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge chip, the DC is a PCI device in those chips. It has two display pipes but with only one hardware cursor. Each way has a DVO interface which provide RGB888 signals, vertical & horizontal synchronisations, data enable and

[PATCH v7 2/7] MIPS: Loongson: ls7a-pch.dtsi: add has_dedicated_vram property

2022-02-13 Thread Sui Jingfeng
From: suijingfeng The LS7A1000 bridge chip is equipped with a dedicated video memory which is typically 64MB or more. This patch add has_dedicated_vram property in the display controller device node to reflict this. Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn>

[PATCH v7 3/7] MIPS: Loongson: introduce dts for ls3A4000 evaluation board

2022-02-13 Thread Sui Jingfeng
From: suijingfeng This board has a VGA output and a DVI output, the VGA is connected to the DVO0 of the display controller and the DVI is connected to DVO1 of the display controller. +--++---+ | DDR4 || +---+

[PATCH v7 7/7] MAINTAINERS: add maintainers for DRM LSDC driver

2022-02-13 Thread Sui Jingfeng
From: suijingfeng Signed-off-by: suijingfeng Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea3e6c914384..766cccdf7f73 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6453,6 +6453,15

[PATCH v7 6/7] MIPS: Loongson: Add dts for ls2k1000 pai evaluation board

2022-02-13 Thread Sui Jingfeng
From: suijingfeng ___ |---| || | CRTC0 --> | DVO0 > | 1024x600 DPI Panel | | _ _ ---|

[PATCH v7 1/4] drm/bridge: anx7625: send DPCD command to downstream

2022-02-13 Thread Hsin-Yi Wang
From: Xin Ji Send DPCD command to downstream before anx7625 power down, let downstream monitor enter into standby mode. Signed-off-by: Xin Ji Signed-off-by: Hsin-Yi Wang Reviewed-by: Hsin-Yi Wang --- v3->v4: Use common DP_AUX_NATIVE_READ/WRITE Previously in:

[PATCH] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Tablet 2 830

2022-02-13 Thread Hans de Goede
The Lenovo Yoga Tablet 2 830F / 830L use a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-13 Thread Arunpravin
- Make drm_buddy_alloc a single function to handle range allocation and non-range allocation demands - Implemented a new function alloc_range() which allocates the requested power-of-two block comply with range limitations - Moved order computation and memory alignment logic from i915

[PATCH v12 3/5] drm: implement a method to free unused pages

2022-02-13 Thread Arunpravin
On contiguous allocation, we round up the size to the *next* power of 2, implement a function to free the unused pages after the newly allocate block. v2(Matthew Auld): - replace function name 'drm_buddy_free_unused_pages' with drm_buddy_block_trim - replace input argument name

Re: [PATCH v2 3/9] PCI: drop `is_thunderbolt` attribute

2022-02-13 Thread Lukas Wunner
On Fri, Feb 11, 2022 at 12:23:51PM +0200, Mika Westerberg wrote: > On Thu, Feb 10, 2022 at 04:43:23PM -0600, Mario Limonciello wrote: > > @@ -2955,7 +2955,7 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge) > > return true; > > > > /* Even the oldest 2010

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-13 Thread Lukas Wunner
On Fri, Feb 11, 2022 at 01:32:41PM -0600, Mario Limonciello wrote: > `pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt > controller to indicate that D3 is possible. As this is used solely > for older Apple systems, move it into a quirk that enumerates across > all Intel TBT

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-13 Thread Lukas Wunner
On Sun, Feb 13, 2022 at 10:19:20AM +0100, Lukas Wunner wrote: > Apple had been using its own scheme to put Thunderbolt controllers > into D3cold when nothing is plugged in, about a decade before Microsoft > defined the ACPI property. I meant to say "half a decade", sorry.

Re: [PATCH v3 04/12] PCI: Drop the `is_thunderbolt` attribute from PCI core

2022-02-13 Thread Lukas Wunner
On Fri, Feb 11, 2022 at 01:32:42PM -0600, Mario Limonciello wrote: > The `is_thunderbolt` attribute is currently a dumping ground for a > variety of things. It's not as arbitrary as it may seem. Quite a bit of thought went into the current design. > Instead use the driver core removable

Re: [PATCH v2 00/12] iio: buffer-dma: write() and new DMABUF based API

2022-02-13 Thread Jonathan Cameron
On Mon, 7 Feb 2022 12:59:21 + Paul Cercueil wrote: > Hi Jonathan, > > This is the V2 of my patchset that introduces a new userspace interface > based on DMABUF objects to complement the fileio API, and adds write() > support to the existing fileio API. Hi Paul, It's been a little while.

Re: [PATCH] drm/i915: fix build issue when using clang

2022-02-13 Thread Nathan Chancellor
On Sat, Feb 12, 2022 at 10:51:06PM -0800, Tong Zhang wrote: > drm/i915 target adds some extra cflags, especially it does re-apply -Wall. > In clang this will override -Wno-format-security and cause the build to > fail when CONFIG_DRM_I915_WERROR=y. While with GCC this does not happen. > We reapply

Re: [PATCH v2 01/12] iio: buffer-dma: Get rid of outgoing queue

2022-02-13 Thread Paul Cercueil
Hi Jonathan, Le dim., févr. 13 2022 at 18:57:40 +, Jonathan Cameron a écrit : On Mon, 7 Feb 2022 12:59:22 + Paul Cercueil wrote: The buffer-dma code was using two queues, incoming and outgoing, to manage the state of the blocks in use. While this totally works, it adds some

Re: [PATCH v7 7/7] MAINTAINERS: add maintainers for DRM LSDC driver

2022-02-13 Thread Joe Perches
On Sun, 2022-02-13 at 22:16 +0800, Sui Jingfeng wrote: > From: suijingfeng [] > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -6453,6 +6453,15 @@ T: git git://anongit.freedesktop.org/drm/drm-misc > F: drivers/gpu/drm/lima/ > F: include/uapi/drm/lima_drm.h > > +DRM DRIVERS FOR

Re: [PATCH v2 01/12] iio: buffer-dma: Get rid of outgoing queue

2022-02-13 Thread Jonathan Cameron
On Mon, 7 Feb 2022 12:59:22 + Paul Cercueil wrote: > The buffer-dma code was using two queues, incoming and outgoing, to > manage the state of the blocks in use. > > While this totally works, it adds some complexity to the code, > especially since the code only manages 2 blocks. It is much

Re: [PATCH v3 04/12] PCI: Drop the `is_thunderbolt` attribute from PCI core

2022-02-13 Thread Limonciello, Mario
On 2/13/2022 02:20, Lukas Wunner wrote: On Fri, Feb 11, 2022 at 01:32:42PM -0600, Mario Limonciello wrote: The `is_thunderbolt` attribute is currently a dumping ground for a variety of things. It's not as arbitrary as it may seem. Quite a bit of thought went into the current design.

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-13 Thread Alistair Popple
John Hubbard writes: > On 2/11/22 18:51, Alistair Popple wrote: […] >>> See below… >>> + } + + pages[i] = migrate_device_page(head, gup_flags); >> migrate_device_page() will return a new page that has been correctly pinned >> with gup_flags by

Re: [PATCH] drm/vc4: crtc: Fix runtime_pm reference counting

2022-02-13 Thread Stefan Wahren
Hi Maxime, i applied your patch on top of Linux 5.17-rc4 and it fixes the tones of warnings after boot (see below). So you can have my Tested-by: Stefan Wahren [    8.341814] [ cut here ] [    8.341820] WARNING: CPU: 1 PID: 7 at drivers/gpu/drm/vc4/vc4_hdmi_regs.h:417

Re: [PATCH v6 01/10] mm: add zone device coherent type memory support

2022-02-13 Thread Alistair Popple
Felix Kuehling writes: > Am 2022-02-11 um 11:15 schrieb David Hildenbrand: >> On 01.02.22 16:48, Alex Sierra wrote: >>> Device memory that is cache coherent from device and CPU point of view. >>> This is used on platforms that have an advanced system bus (like CAPI >>> or CXL). Any page of a

Re: [PATCH v2 3/9] PCI: drop `is_thunderbolt` attribute

2022-02-13 Thread Mika Westerberg
Hi, On Sun, Feb 13, 2022 at 09:39:28AM +0100, Lukas Wunner wrote: > On Fri, Feb 11, 2022 at 12:23:51PM +0200, Mika Westerberg wrote: > > On Thu, Feb 10, 2022 at 04:43:23PM -0600, Mario Limonciello wrote: > > > @@ -2955,7 +2955,7 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge) > > >

RE: [PATCH V2 00/13] use time_is_xxx() instead of jiffies judgment

2022-02-13 Thread 王擎
  >>On Thu, Feb 10, 2022 at 06:30:23PM -0800, Qing Wang wrote: >> From: Wang Qing >> >> It is better to use time_is_xxx() directly instead of jiffies judgment >> for understanding. > >Hi Wang, > >"judgement" doesn't really make sense as a description to an English >speaker.  The following a

[PATCH] drm/vc4: Use of_device_get_match_data()

2022-02-13 Thread cgel . zte
From: "Minghao Chi (CGEL ZTE)" Use of_device_get_match_data() to simplify the code. Reported-by: Zeal Robot Signed-off-by: Minghao Chi (CGEL ZTE) --- drivers/gpu/drm/vc4/vc4_dsi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_dsi.c

[PATCH] drm/aspeed: Use of_device_get_match_data()

2022-02-13 Thread cgel . zte
From: "Minghao Chi (CGEL ZTE)" Use of_device_get_match_data() to simplify the code. Reported-by: Zeal Robot Signed-off-by: Minghao Chi (CGEL ZTE) --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

linux-next: manual merge of the drm-intel-gt tree with the drm-intel tree

2022-02-13 Thread Stephen Rothwell
Hi all, The ongoing merge conflicts between the drm-intel tree and the drm-intel-gt tree are just a mess, so I am removing the drm-intel-gt tree from linux-next until you all can come up with a better way of doing conflicting development. -- Cheers, Stephen Rothwell pgpUb8sYXu0kT.pgp

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-13 Thread Mika Westerberg
Hi Lukas, On Sun, Feb 13, 2022 at 10:19:20AM +0100, Lukas Wunner wrote: > On Fri, Feb 11, 2022 at 01:32:41PM -0600, Mario Limonciello wrote: > > `pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt > > controller to indicate that D3 is possible. As this is used solely > > for

Re: [PATCH v7 7/7] MAINTAINERS: add maintainers for DRM LSDC driver

2022-02-13 Thread Sui Jingfeng
On 2022/2/14 07:12, Joe Perches wrote: On Sun, 2022-02-13 at 22:16 +0800, Sui Jingfeng wrote: From: suijingfeng [] diff --git a/MAINTAINERS b/MAINTAINERS [] @@ -6453,6 +6453,15 @@ T: git git://anongit.freedesktop.org/drm/drm-misc F:drivers/gpu/drm/lima/ F:

Re: [PATCH v7 0/7] drm/lsdc: add drm driver for loongson display controller

2022-02-13 Thread Jiaxun Yang
在 2022/2/13 14:16, Sui Jingfeng 写道: There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge chip, the DC is a PCI device in those chips. It has two display pipes but with only one hardware cursor. Each way has a DVO interface which provide RGB888 signals, vertical &

Re: [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-13 Thread Christian König
Am 13.02.22 um 09:52 schrieb Arunpravin: - Make drm_buddy_alloc a single function to handle range allocation and non-range allocation demands - Implemented a new function alloc_range() which allocates the requested power-of-two block comply with range limitations - Moved order

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-13 Thread Mika Westerberg
Hi, On Fri, Feb 11, 2022 at 04:06:20PM -0600, Limonciello, Mario wrote: > On 2/11/2022 15:35, Bjorn Helgaas wrote: > > On Fri, Feb 11, 2022 at 01:32:41PM -0600, Mario Limonciello wrote: > > > `pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt > > > controller to indicate that

Re: [PATCH v7 7/7] MAINTAINERS: add maintainers for DRM LSDC driver

2022-02-13 Thread Sui Jingfeng
On 2022/2/14 07:12, Joe Perches wrote: On Sun, 2022-02-13 at 22:16 +0800, Sui Jingfeng wrote: From: suijingfeng [] diff --git a/MAINTAINERS b/MAINTAINERS [] @@ -6453,6 +6453,15 @@ T: git git://anongit.freedesktop.org/drm/drm-misc F:drivers/gpu/drm/lima/ F:

Re: [PATCH 0/3] drm: omapdrm: Fix excessive GEM buffers DMM/CMA usage

2022-02-13 Thread Ivaylo Dimitrov
gentle ping On 19.01.22 г. 12:23 ч., Ivaylo Dimitrov wrote: This patch series fixes excessive DMM or CMA usage of GEM buffers leading to various runtime allocation failures. The series enables daily usage of devices without exausting limited resources like CMA or DMM space if GPU rendering is

Re: [PATCH v3 04/12] PCI: Drop the `is_thunderbolt` attribute from PCI core

2022-02-13 Thread Mika Westerberg
Hi Mario, On Sun, Feb 13, 2022 at 11:26:56AM -0600, Limonciello, Mario wrote: > On 2/13/2022 02:20, Lukas Wunner wrote: > > On Fri, Feb 11, 2022 at 01:32:42PM -0600, Mario Limonciello wrote: > > > The `is_thunderbolt` attribute is currently a dumping ground for a > > > variety of things. > > > >

Re: [PATCH v3 05/12] PCI: Detect root port of internal USB4 devices by `usb4-host-interface`

2022-02-13 Thread Mika Westerberg
Hi Bjorn, On Fri, Feb 11, 2022 at 03:45:46PM -0600, Bjorn Helgaas wrote: > On Fri, Feb 11, 2022 at 01:32:43PM -0600, Mario Limonciello wrote: > > The root port used for PCIe tunneling should be marked as removable to > > ensure that the entire chain is marked removable. > > > > This can be done