Re: (EXT) [PATCH 5/6] dt-bindings: drm/bridge: ti-sn65dsi83: Add reset controller documentation

2022-05-31 Thread Alexander Stein
Hi Marco, Am Montag, 30. Mai 2022, 17:05:48 CEST schrieb Marco Felsch: > The bridge device can now also be enabled/disabled by an external reset > controller. So the device now supports either enable/disable by simple > GPIO or by an Reset-Controller. > > Signed-off-by: Marco Felsch > --- > ...

[syzbot] WARNING in dma_map_sgtable (2)

2022-05-31 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7e062cda7d90 Merge tag 'net-next-5.19' of git://git.kernel.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=172151d3f0 kernel config: https://syzkaller.appspot.com/x/.config?x=e9d71d3c07c36588 das

[PATCH 2/7] dt-bindings: display: mediatek: dpi: add binding for MT8365

2022-05-31 Thread Fabien Parent
DPI for MT8365 is compatible with MT8192 but requires an additional clock. Modify the documentation to requires this clock only on MT8365 SoCs. Signed-off-by: Fabien Parent --- .../display/mediatek/mediatek,dpi.yaml| 44 --- 1 file changed, 37 insertions(+), 7 deletions(-

[PATCH 4/7] soc: mediatek: mutex: add MT8365 support

2022-05-31 Thread Fabien Parent
Add mutex support for MT8365 SoC. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-mutex.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c index 981d56967e7a..b8d5c4a62542 100644 --

[PATCH 5/7] soc: mediatek: mt8365-mmsys: add DPI/HDMI display path

2022-05-31 Thread Fabien Parent
Right now only the DSI path connections are described in the mt8365 mmsys driver. The external path will be DPI/HDMI. This commit adds the connections for DPI/HDMI. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mt8365-mmsys.h | 22 ++ 1 file changed, 22 insertions(+)

[PATCH 7/7] drm/mediatek: add MT8365 SoC support

2022-05-31 Thread Fabien Parent
Add DRM support for MT8365 SoC. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 27 ++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 6abe6bcacbdc..0a30ec75b1e

[PATCH] drm/mediatek: fix crtc index computation

2022-05-31 Thread Fabien Parent
The code always assume that the main path is enabled, which is not always the case. When the main path is not enabled, the CRTC index of the ext path is incorrect which makes the secondary path not usable. Fix the CRTC index calculation. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/

[PATCH 1/7] dt-bindings: display: mediatek: dpi: add power-domains property

2022-05-31 Thread Fabien Parent
DPI is part of the display / multimedia block in MediaTek SoCs, and always have a power-domain (at least in the upstream device-trees). Add the power-domains property to the binding documentation. Signed-off-by: Fabien Parent --- .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 6 ++

[PATCH 3/7] dt-bindings: display: mediatek: add bindings for MT8365 SoC

2022-05-31 Thread Fabien Parent
Add MT8365 binding documentation for all the display components that are compatible with the compatible string from other SoCs. Signed-off-by: Fabien Parent --- .../bindings/display/mediatek/mediatek,aal.yaml | 1 + .../display/mediatek/mediatek,ccorr.yaml| 1 + .../display/mediatek/me

[PATCH 6/7] drm/mediatek: dpi: add support for dpi clock

2022-05-31 Thread Fabien Parent
MT8365 requires an additional clock for DPI. Add support for that additional clock. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/med

Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

2022-05-31 Thread Arnd Bergmann
On Tue, May 31, 2022 at 8:26 AM Julia Lawall wrote: > > On 30 May 2022, at 15:27, Arnd Bergmann wrote: > > On Mon, May 30, 2022 at 4:08 PM Jani Nikula wrote: > >>> On Mon, 30 May 2022, Arnd Bergmann wrote: > >>> struct my_driver_priv { > >>> struct device dev; > >>> u8 causes_misal

Re: (EXT) [PATCH 5/6] dt-bindings: drm/bridge: ti-sn65dsi83: Add reset controller documentation

2022-05-31 Thread Marco Felsch
Hi Alexander, On 22-05-31, Alexander Stein wrote: > Hi Marco, > > Am Montag, 30. Mai 2022, 17:05:48 CEST schrieb Marco Felsch: > > The bridge device can now also be enabled/disabled by an external reset > > controller. So the device now supports either enable/disable by simple > > GPIO or by an R

Re: (EXT) [PATCH v0 09/10] arm64: dts: imx8mp: add HDMI display pipeline

2022-05-31 Thread Alexander Stein
Hi Lucas, Am Mittwoch, 6. April 2022, 18:01:22 CEST schrieb Lucas Stach: > This adds the DT nodes for all the peripherals that make up the > HDMI display pipeline. > > Signed-off-by: Lucas Stach > --- > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 80 +++ > 1 file changed, 80

Re: [RFC PATCH 00/16] drm/rockchip: Rockchip EBC ("E-Book Controller") display driver

2022-05-31 Thread Maxime Ripard
Hi Daniel, Thanks for your feedback On Wed, May 25, 2022 at 07:18:07PM +0200, Daniel Vetter wrote: > > > VBLANK Events and Asynchronous Commits > > > == > > > When should the VBLANK event complete? When the pixels have been blitted > > > to the kernel's shadow

Re: [PATCH v3 1/3] dt-bindings: vendor-prefixes: Add prefix for EBBG

2022-05-31 Thread Linus Walleij
On Mon, May 30, 2022 at 6:08 PM Joel Selvaraj wrote: > Add a prefix for EBBG. They manufacture displays which are used in some > Xiaomi phones, but I could not find much details about the company. > > Signed-off-by: Joel Selvaraj > Acked-by: Krzysztof Kozlowski Acked-by: Linus Walleij Yours,

Re: [PATCH v3 3/3] drm/panel: introduce ebbg,ft8719 panel

2022-05-31 Thread Linus Walleij
Hi Joel, On Mon, May 30, 2022 at 6:08 PM Joel Selvaraj wrote: > +#define dsi_dcs_write_seq(dsi, cmd, seq...) do { > \ Please name it mipi_dsi_dcs_write_seq() and... > + static const u8 d[] = { cmd, seq }; > \ > +

Re: [PATCH 14/14] drm/vc4: Warn if some v3d code is run on BCM2711

2022-05-31 Thread Maxime Ripard
Hi Melissa, On Mon, May 09, 2022 at 03:52:04PM -0100, Melissa Wen wrote: > > @@ -915,10 +954,14 @@ int vc4_set_tiling_ioctl(struct drm_device *dev, void > > *data, > > int vc4_get_tiling_ioctl(struct drm_device *dev, void *data, > > struct drm_file *file_priv) > > { > > +

[PATCH] drm/edid: ignore the CEA modes not defined in CEA-861-D

2022-05-31 Thread William Tseng
This is a workaround for HDMI 1.4 sink which has a CEA mode with higher vic than what is defined in CEA-861-D. As an example, a HDMI 1.4 sink has the video format 2560x1080p to be displayed and the video format is indicated by both SVD (with vic 90 and pictuure aspect ratio 64:27) and DTD. When c

Re: [RFC] drm/kms: control display brightness through drm_connector properties

2022-05-31 Thread Hans de Goede
Hi, On 5/18/22 16:23, Jani Nikula wrote: > On Wed, 18 May 2022, Hans de Goede wrote: >> So how about: display_brightness or panel_brightness ? > > This is a prime opportunity to look at all the existing properties, and > come up with a new combination of capitalization, spacing, hyphens, > under

Re: [PATCH] drm/edid: ignore the CEA modes not defined in CEA-861-D

2022-05-31 Thread Jani Nikula
On Tue, 31 May 2022, William Tseng wrote: > This is a workaround for HDMI 1.4 sink which has a CEA mode with higher vic > than what is defined in CEA-861-D. > > As an example, a HDMI 1.4 sink has the video format 2560x1080p to be > displayed and the video format is indicated by both SVD (with vic

Re: [PATCH v10 0/4] Separate panel orientation property creating and value setting

2022-05-31 Thread Hans de Goede
Hi, On 5/30/22 13:34, Hsin-Yi Wang wrote: > On Mon, May 30, 2022 at 4:53 PM Hans de Goede wrote: >> >> Hi, >> >> On 5/30/22 10:19, Hsin-Yi Wang wrote: >>> Some drivers, eg. mtk_drm and msm_drm, rely on the panel to set the >>> orientation. Panel calls drm_connector_set_panel_orientation() to crea

Re: [PATCH] drm/edid: ignore the CEA modes not defined in CEA-861-D

2022-05-31 Thread Jani Nikula
On Tue, 31 May 2022, Jani Nikula wrote: > On Tue, 31 May 2022, William Tseng wrote: >> This is a workaround for HDMI 1.4 sink which has a CEA mode with higher vic >> than what is defined in CEA-861-D. >> >> As an example, a HDMI 1.4 sink has the video format 2560x1080p to be >> displayed and the

[PATCH v2 1/5] drm/ast: Support multiple outputs

2022-05-31 Thread Thomas Zimmermann
Systems with AST graphics can have multiple output; typically VGA plus some other port. Record detected output chips in a bitmask and initialize each output on its own. Assume a VGA output by default and use SIL164 and DP501 if available. For ASTDP assume that it can run in parallel with VGA. Tes

[PATCH v2 0/5] drm/ast: Connector cleanups and polling

2022-05-31 Thread Thomas Zimmermann
Various cleanups to ast's conenctor code. Simplifies the code, adds support for using VGA and ASTDP connectors at the same time, and initializes polling of the connector status. Patch 1 was first posted at [1], so this patchset starts at version 2. The implementation of detect_ctx in patch 3 has b

[PATCH v2 2/5] drm/ast: Fix updating the connector's EDID property

2022-05-31 Thread Thomas Zimmermann
Read the display modes from the connectors DDC helper, which also updates the connector's EDID property. The code for the connector's .get_modes helper is now shared between VGA and SIL164. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 57 ++---

[PATCH v2 5/5] drm/ast: Remove struct ast_{vga,sil164}_connector

2022-05-31 Thread Thomas Zimmermann
Both, struct ast_vga_connector and struct ast_sil164_connector, are now wrappers around struct drm_connector. Remove them. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 24 ++-- drivers/gpu/drm/ast/ast_mode.c | 18 ++ 2 files changed, 8

[PATCH v2 3/5] drm/ast: Support output polling

2022-05-31 Thread Thomas Zimmermann
Enable output polling for all connectors. VGA always uses EDID for this. As there's currently no interrupt handling for the ast devices, we have to use that trick for the various DP and DVI ports as well. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 14

[PATCH v2 4/5] drm/ast: Fail probing if DCC channel could not be initialized

2022-05-31 Thread Thomas Zimmermann
Expect the hardware to provide a DDC channel. Fail probing if its initialization fails. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 2 -- drivers/gpu/drm/ast/ast_i2c.c | 7 --- drivers/gpu/drm/ast/ast_mode.c | 38 -- 3 files change

Re: [PATCH v2 0/5] drm/ast: Connector cleanups and polling

2022-05-31 Thread Thomas Zimmermann
Am 31.05.22 um 13:14 schrieb Thomas Zimmermann: Various cleanups to ast's conenctor code. Simplifies the code, adds support for using VGA and ASTDP connectors at the same time, and initializes polling of the connector status. Patch 1 was first posted at [1], so this patchset starts at version

RE: [PATCH v3 0/2] Add RZ/G2L DSI driver

2022-05-31 Thread Biju Das
Hi All, Gentle ping. Are you ok with this patch series? Please let me know. Cheers, Biju > Subject: [PATCH v3 0/2] Add RZ/G2L DSI driver > > This patch series aims to support the MIPI DSI encoder found in the RZ/G2L > SoC. It currently supports DSI mode only. > > This unit supports MIPI Allia

Re: [PATCH 2/7] dt-bindings: display: mediatek: dpi: add binding for MT8365

2022-05-31 Thread Krzysztof Kozlowski
On 30/05/2022 22:14, Fabien Parent wrote: > DPI for MT8365 is compatible with MT8192 but requires an additional > clock. Modify the documentation to requires this clock only on MT8365 SoCs. > > Signed-off-by: Fabien Parent > --- > .../display/mediatek/mediatek,dpi.yaml| 44 ++

[PATCH] drm/msm: less magic numbers in msm_mdss_enable

2022-05-31 Thread Dmitry Baryshkov
Replace magic register writes in msm_mdss_enable() with version that contains less magic and more variable names that can be traced back to the dpu_hw_catalog or the downstream dtsi files. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 79 ++

Re: [PATCH] drm/prime: Ensure mmap offset is initialized

2022-05-31 Thread Daniel Vetter
On Mon, 30 May 2022 at 17:41, Rob Clark wrote: > > On Mon, May 30, 2022 at 7:49 AM Daniel Vetter wrote: > > > > On Mon, 30 May 2022 at 15:54, Rob Clark wrote: > > > > > > On Mon, May 30, 2022 at 12:26 AM Thomas Zimmermann > > > wrote: > > > > > > > > Hi > > > > > > > > Am 29.05.22 um 18:29 sch

Re: [PATCH 03/14] regulator: mt6370: Add mt6370 DisplayBias and VibLDO support

2022-05-31 Thread Mark Brown
On Tue, May 31, 2022 at 06:27:58PM +0800, ChiaEn Wu wrote: > From: ChiYuan Huang > > Add mt6370 DisplayBias and VibLDO support. Other than one small thing this looks nice and clean: > + enable_gpio = fwnode_gpiod_get_index(of_fwnode_handle(np), "enable", 0, > +

Re: [PATCH 1/7] dt-bindings: display: mediatek: dpi: add power-domains property

2022-05-31 Thread Rob Herring
On Mon, 30 May 2022 22:14:30 +0200, Fabien Parent wrote: > DPI is part of the display / multimedia block in MediaTek SoCs, and > always have a power-domain (at least in the upstream device-trees). > Add the power-domains property to the binding documentation. > > Signed-off-by: Fabien Parent > --

Re: [RFC V3 0/2] Attach and Set vrr_enabled property

2022-05-31 Thread Daniel Vetter
On Tue, May 17, 2022 at 12:56:34PM +0530, Bhanuprakash Modem wrote: > This series will add a support to set the vrr_enabled property for > crtc based on the platform support and the request from userspace. > And userspace can also query to get the status of "vrr_enabled". > > Test-with: 2022042207

[PATCH] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-05-31 Thread Douglas Anderson
In commit a670ff578f1f ("drm/msm/dpu: always use mdp device to scale bandwidth") we fully moved interconnect stuff to the DPU driver. This had no change for sc7180 but _did_ have an impact for other SoCs. It made them match the sc7180 scheme. Unfortunately, the sc7180 scheme seems like it was a bi

[PATCH 1/2] drm/meson: encoder_cvbs: Fix refcount leak in meson_encoder_cvbs_init

2022-05-31 Thread Miaoqian Lin
of_graph_get_remote_node() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: 318ba02cd8a8 ("drm/meson: encoder_cvbs: switch to bridge with ATTACH_NO_CONNECTOR") Signed-off-by: Miaoqian

[PATCH 2/2] drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init

2022-05-31 Thread Miaoqian Lin
of_graph_get_remote_node() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: e67f6037ae1b ("drm/meson: split out encoder from meson_dw_hdmi") Signed-off-by: Miaoqian Lin --- drivers/g

Re: [PATCH] drm/prime: Ensure mmap offset is initialized

2022-05-31 Thread Rob Clark
On Tue, May 31, 2022 at 5:32 AM Daniel Vetter wrote: > > On Mon, 30 May 2022 at 17:41, Rob Clark wrote: > > > > On Mon, May 30, 2022 at 7:49 AM Daniel Vetter wrote: > > > > > > On Mon, 30 May 2022 at 15:54, Rob Clark wrote: > > > > > > > > On Mon, May 30, 2022 at 12:26 AM Thomas Zimmermann > >

Re: [PATCH] drm/ssd130x: Only define a SPI device ID table when built as a module

2022-05-31 Thread Nathan Chancellor
On Mon, May 30, 2022 at 04:02:46PM +0200, Javier Martinez Canillas wrote: > The kernel test robot reports a compile warning due the ssd130x_spi_table > variable being defined but not used. This happen when ssd130x-spi driver > is built-in instead of being built as a module, i.e: > > CC driv

Re: [PATCH 3/6] drm/sun4i: sun8i-hdmi-phy: Used device-managed clocks/resets

2022-05-31 Thread Maxime Ripard
Hi Samuel, Sorry for the (very) late answer On Tue, Apr 12, 2022 at 06:34:40PM -0500, Samuel Holland wrote: > On 4/12/22 8:23 AM, Maxime Ripard wrote: > > Hi, > > > > On Mon, Apr 11, 2022 at 11:35:08PM -0500, Samuel Holland wrote: > >> Now that the HDMI PHY is using a platform driver, it can use

[PATCH v4 01/13] mm: add zone device coherent type memory support

2022-05-31 Thread Alex Sierra
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 process can be migrated to such memory. However, no one should be allowed to pin such memory so that it can always be evicted. Signed

[PATCH v4 03/13] mm: add device coherent vma selection for memory migration

2022-05-31 Thread Alex Sierra
This case is used to migrate pages from device memory, back to system memory. Device coherent type memory is cache coherent from device and CPU point of view. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig --- include/linux/m

[PATCH v4 02/13] mm: handling Non-LRU pages returned by vm_normal_pages

2022-05-31 Thread Alex Sierra
With DEVICE_COHERENT, we'll soon have vm_normal_pages() return device-managed anonymous pages that are not LRU pages. Although they behave like normal pages for purposes of mapping in CPU page, and for COW. They do not support LRU lists, NUMA migration or THP. We also introduced a FOLL_LRU flag th

[PATCH v4 04/13] mm: remove the vma check in migrate_vma_setup()

2022-05-31 Thread Alex Sierra
From: Alistair Popple migrate_vma_setup() checks that a valid vma is passed so that the page tables can be walked to find the pfns associated with a given address range. However in some cases the pfns are already known, such as when migrating device coherent pages during pin_user_pages() meaning

[PATCH v4 00/13] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-05-31 Thread Alex Sierra
This is our MEMORY_DEVICE_COHERENT patch series rebased and updated for current 5.18.0 Changes since the last version: - Fixed problems with migration during long-term pinning in get_user_pages - Open coded vm_normal_lru_pages as suggested in previous code review - Update hmm_gup_test with more ge

[PATCH v4 06/13] drm/amdkfd: add SPM support for SVM

2022-05-31 Thread Alex Sierra
When CPU is connected throug XGMI, it has coherent access to VRAM resource. In this case that resource is taken from a table in the device gmc aperture base. This resource is used along with the device type, which could be DEVICE_PRIVATE or DEVICE_COHERENT to create the device page map region. Also

[PATCH v4 05/13] mm/gup: migrate device coherent pages when pinning instead of failing

2022-05-31 Thread Alex Sierra
From: Alistair Popple Currently any attempts to pin a device coherent page will fail. This is because device coherent pages need to be managed by a device driver, and pinning them would prevent a driver from migrating them off the device. However this is no reason to fail pinning of these pages.

[PATCH v4 07/13] lib: test_hmm add ioctl to get zone device type

2022-05-31 Thread Alex Sierra
new ioctl cmd added to query zone device type. This will be used once the test_hmm adds zone device coherent type. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig --- lib/test_hmm.c | 23 +-- lib/test_

[PATCH v4 12/13] tools: add hmm gup tests for device coherent type

2022-05-31 Thread Alex Sierra
The intention is to test hmm device coherent type under different get user pages paths. Also, test gup with FOLL_LONGTERM flag set in device coherent pages. These pages should get migrated back to system memory. Signed-off-by: Alex Sierra Reviewed-by: Alistair Popple --- tools/testing/selftests

[PATCH v4 11/13] tools: update test_hmm script to support SP config

2022-05-31 Thread Alex Sierra
Add two more parameters to set spm_addr_dev0 & spm_addr_dev1 addresses. These two parameters configure the start SP addresses for each device in test_hmm driver. Consequently, this configures zone device type as coherent. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair

[PATCH v4 10/13] tools: update hmm-test to support device coherent type

2022-05-31 Thread Alex Sierra
Test cases such as migrate_fault and migrate_multiple, were modified to explicit migrate from device to sys memory without the need of page faults, when using device coherent type. Snapshot test case updated to read memory device type first and based on that, get the proper returned results migrat

[PATCH v4 08/13] lib: test_hmm add module param for zone device type

2022-05-31 Thread Alex Sierra
In order to configure device coherent in test_hmm, two module parameters should be passed, which correspond to the SP start address of each device (2) spm_addr_dev0 & spm_addr_dev1. If no parameters are passed, private device type is configured. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling

[PATCH v4 13/13] tools: add selftests to hmm for COW in device memory

2022-05-31 Thread Alex Sierra
The objective is to test device migration mechanism in pages marked as COW, for private and coherent device type. In case of writing to COW private page(s), a page fault will migrate pages back to system memory first. Then, these pages will be duplicated. In case of COW device coherent type, pages

[PATCH v4 09/13] lib: add support for device coherent type in test_hmm

2022-05-31 Thread Alex Sierra
Device Coherent type uses device memory that is coherently accesible by the CPU. This could be shown as SP (special purpose) memory range at the BIOS-e820 memory enumeration. If no SP memory is supported in system, this could be faked by setting CONFIG_EFI_FAKE_MEMMAP. Currently, test_hmm only sup

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2022-05-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 --- Comment #45 from Alex Deucher (alexdeuc...@gmail.com) --- The "Failed to initialize parser -125!" error message is a generic symptom of a GPU hang and reset. The actual cause of the GPU hang is very likely different for everyone. The issue i

Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

2022-05-31 Thread Linus Torvalds
On Tue, May 31, 2022 at 1:04 AM Arnd Bergmann wrote: > > As an experiment: what kind of results would we get when looking > for packed structures and unions that contain any of these: Yeah, any atomics or locks should always be aligned, and won't even work (or might be *very* slow) on multiple ar

Re: [PATCH] drm/edid: ignore the CEA modes not defined in CEA-861-D

2022-05-31 Thread Ville Syrjälä
On Tue, May 31, 2022 at 06:34:21PM +0800, William Tseng wrote: > This is a workaround for HDMI 1.4 sink which has a CEA mode with higher vic > than what is defined in CEA-861-D. > > As an example, a HDMI 1.4 sink has the video format 2560x1080p to be > displayed and the video format is indicated b

Re: [RFC V3 1/2] drm/vrr: Attach vrr_enabled property to the drm crtc

2022-05-31 Thread Navare, Manasi
On Tue, May 17, 2022 at 12:56:35PM +0530, Bhanuprakash Modem wrote: > Modern display hardware is capable of supporting variable refresh rates. > This patch introduces helpers to attach and set "vrr_enabled" property > on the crtc to allow userspace to query VRR enabled status on that crtc. > > Ato

Re: [RFC V3 2/2] drm/i915/vrr: Set drm crtc vrr_enabled property

2022-05-31 Thread Navare, Manasi
On Tue, May 17, 2022 at 12:56:36PM +0530, Bhanuprakash Modem wrote: > This function sets the vrr_enabled property for crtc based > on the platform support and the request from userspace. > > V2: Check for platform support before updating the prop. > V3: Don't attach vrr_enabled prop, as it is alre

Re: [PATCH v4 07/13] lib: test_hmm add ioctl to get zone device type

2022-05-31 Thread Andrew Morton
On Tue, 31 May 2022 10:56:23 -0500 Alex Sierra wrote: > new ioctl cmd added to query zone device type. This will be > used once the test_hmm adds zone device coherent type. > > @@ -1026,6 +1027,15 @@ static int dmirror_snapshot(struct dmirror *dmirror, > return ret; > } > > +static int

Re: How should "max bpc" KMS property work?

2022-05-31 Thread Ville Syrjälä
On Wed, May 25, 2022 at 01:36:47PM +0300, Pekka Paalanen wrote: > On Wed, 25 May 2022 09:23:51 + > Simon Ser wrote: > > > On Wednesday, May 25th, 2022 at 10:35, Michel Dänzer > > wrote: > > > > > > Mind that "max bpc" is always in auto. It's only an upper limit, with > > > > the assumption

Re: [PATCH] drm/msm/dpu: Fix pointer dereferenced before checking

2022-05-31 Thread Abhinav Kumar
On 5/29/2022 7:19 PM, Haowen Bai wrote: The phys_enc->wb_idx is dereferencing before null checking, so move it after checking. Signed-off-by: Haowen Bai Fixes: d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") Reviewed-by: Abhinav Kumar --- drivers/gpu/d

Re: [PATCH v3] dma-buf: Add a capabilities directory

2022-05-31 Thread Jason Ekstrand
On Mon, 2022-05-30 at 10:26 +0200, Greg KH wrote: > On Mon, May 30, 2022 at 08:15:04AM +, Simon Ser wrote: > > On Monday, May 30th, 2022 at 09:20, Greg KH > > wrote: > > > > > > > +static struct attribute *dma_buf_caps_attrs[] = { > > > > > +   &dma_buf_sync_file_import_export_attr.attr,

[RESEND 05/14] dt-bindings: backlight: Add Mediatek MT6370 backlight binding

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add mt6370 backlight binding documentation. Signed-off-by: ChiYuan Huang --- .../backlight/mediatek,mt6370-backlight.yaml | 110 ++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/mediatek,mt6370-backl

[RESEND 00/14] Add Mediatek MT6370 PMIC support

2022-05-31 Thread ChiaEn Wu
From: ChiaEn Wu Sorry, for the patch dependency, we resend this patch series and we're sorry for any inconvenience that we may have caused. This patch series add Mediatek MT6370 PMIC support. The MT6370 is a highly-integrated smart power management IC, which includes a single cell Li-Ion/Li-Polym

[RESEND 08/14] usb: typec: tcpci_mt6370: Add Mediatek MT6370 tcpci driver

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add chip level mt6370 tcpci driver. Signed-off-by: ChiYuan Huang --- drivers/usb/typec/tcpm/Kconfig| 8 + drivers/usb/typec/tcpm/Makefile | 1 + drivers/usb/typec/tcpm/tcpci_mt6370.c | 212 ++ 3 files changed, 221 insertions(+) cre

[RESEND 04/14] dt-bindings: leds: Add Mediatek MT6370 flashlight binding

2022-05-31 Thread ChiaEn Wu
From: Alice Chen Add Mediatek MT6370 flashlight binding documentation Signed-off-by: Alice Chen --- .../leds/mediatek,mt6370-flashlight.yaml | 48 +++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/mediatek,mt6370-flashlight.ya

[RESEND 11/14] power: supply: mt6370: Add Mediatek MT6370 charger driver

2022-05-31 Thread ChiaEn Wu
From: ChiaEn Wu Add Mediatek MT6370 charger driver Signed-off-by: ChiaEn Wu --- drivers/power/supply/Kconfig | 11 + drivers/power/supply/Makefile |1 + drivers/power/supply/mt6370-charger.c | 1132 + 3 files changed, 1144 insertions(+) create mo

[RESEND 13/14] leds: flashlight: mt6370: Add Mediatek MT6370 flashlight support

2022-05-31 Thread ChiaEn Wu
From: Alice Chen Add Mediatek MT6370 flashlight support Signed-off-by: Alice Chen --- drivers/leds/flash/Kconfig | 9 + drivers/leds/flash/Makefile| 1 + drivers/leds/flash/leds-mt6370-flash.c | 665 + 3 files changed, 675 insertions(+) crea

[RESEND 09/14] regulator: mt6370: Add mt6370 DisplayBias and VibLDO support

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add mt6370 DisplayBias and VibLDO support. Signed-off-by: ChiYuan Huang --- drivers/regulator/Kconfig| 8 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6370-regulator.c | 389 +++ 3 files changed, 398 insertions(+)

[RESEND 14/14] video: backlight: mt6370: Add Mediatek MT6370 support

2022-05-31 Thread ChiaEn Wu
From: ChiaEn Wu Add Mediatek MT6370 Backlight support. Signed-off-by: ChiaEn Wu --- drivers/video/backlight/Kconfig| 8 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/mt6370-backlight.c | 338 + 3 files changed, 347 insertions(+)

[RESEND 12/14] leds: mt6370: Add Mediatek MT6370 Indicator support

2022-05-31 Thread ChiaEn Wu
From: Alice Chen Add Mediatek MT6370 Indicator support Signed-off-by: Alice Chen --- drivers/leds/Kconfig | 11 + drivers/leds/Makefile | 1 + drivers/leds/leds-mt6370.c | 994 + 3 files changed, 1006 insertions(+) create mode 100644 drivers/l

[RESEND 10/14] iio: adc: mt6370: Add Mediatek MT6370 support

2022-05-31 Thread ChiaEn Wu
From: ChiaEn Wu Add Mediatek MT6370 ADC support. Signed-off-by: ChiaEn Wu --- drivers/iio/adc/Kconfig | 9 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mt6370-adc.c | 257 +++ 3 files changed, 267 insertions(+) create mode 100644 drivers/iio/

[RESEND 02/14] dt-bindings: power: supply: Add Mediatek MT6370 Charger binding

2022-05-31 Thread ChiaEn Wu
From: ChiaEn Wu Add Mediatek MT6370 Charger binding documentation. Signed-off-by: ChiaEn Wu --- .../power/supply/mediatek,mt6370-charger.yaml | 60 +++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.y

[RESEND 01/14] dt-bindings: usb: Add Mediatek MT6370 TCPC binding

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add Mediatek MT6370 TCPC binding documentation. Signed-off-by: ChiYuan Huang --- .../bindings/usb/mediatek,mt6370-tcpc.yaml| 35 +++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mediatek,mt6370-tcpc.yaml di

[RESEND 03/14] dt-bindings: leds: mt6370: Add Mediatek mt6370 indicator

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add Mediatek mt6370 indicator documentation. Signed-off-by: ChiYuan Huang --- .../leds/mediatek,mt6370-indicator.yaml | 57 +++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml

[RESEND 07/14] mfd: mt6370: Add Mediatek MT6370 support

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add Mediatek MT6370 MFD support. Signed-off-by: ChiYuan Huang --- drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/mt6370.c | 273 +++ 3 files changed, 287 insertions(+) create mode 100644 drivers/mfd/mt6370.

[RESEND 06/14] dt-bindings: mfd: Add Mediatek MT6370 binding

2022-05-31 Thread ChiaEn Wu
From: ChiYuan Huang Add Mediatek MT6370 binding documentation. Signed-off-by: ChiYuan Huang --- .../bindings/mfd/mediatek,mt6370.yaml | 282 ++ .../dt-bindings/iio/adc/mediatek,mt6370_adc.h | 18 ++ include/dt-bindings/mfd/mediatek,mt6370.h | 83 ++ 3 files ch

Re: [PATCH] drm/msm/dpu: Remove unused code

2022-05-31 Thread Abhinav Kumar
On 5/24/2022 1:14 AM, Jiapeng Chong wrote: Eliminate the follow clang warning: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:544:33: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Fixes: 3177589c6e93("drm/msm/dpu

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2022-05-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 --- Comment #46 from Luke A. Guest (lagu...@archeia.com) --- Can confirm, for my case, emerge -av @mesa (where @mesa is libdrm, mes and mesa-tools from git HEAD) fixes it. -- You may reply to this email to add a comment. You are receiving this

Re: [PATCH v3] dma-buf: Add a capabilities directory

2022-05-31 Thread Greg KH
On Tue, May 31, 2022 at 07:53:50AM -0500, Jason Ekstrand wrote: > On Mon, 2022-05-30 at 10:26 +0200, Greg KH wrote: > > On Mon, May 30, 2022 at 08:15:04AM +, Simon Ser wrote: > > > On Monday, May 30th, 2022 at 09:20, Greg KH > > > wrote: > > > > > > > > > +static struct attribute *dma_buf_cap

Re: [RFC PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-05-31 Thread José Expósito
Hi Daniel, Thanks for looking into the patch and for your comments. On Mon, May 30, 2022 at 03:57:56PM -0700, Daniel Latypov wrote: > A few initial notes: > a) normally, `select`ing other kconfigs is discouraged. It's not > explicitly called out in > https://www.kernel.org/doc/html/latest/dev-too

Re: [PATCH] drm/nouveau/fifo/gv100-: set gv100_fifo_runlist storage-class to static

2022-05-31 Thread Lyude Paul
Reviewed-by: Lyude Paul Will push to the appropriate branch in a moment On Sat, 2022-05-28 at 10:18 -0400, Tom Rix wrote: > sparse reports > drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c:56:1: warning: symbol > 'gv100_fifo_runlist' was not declared. Should it be static? > > gv100_fifo_runlis

Re: [PATCH v4 07/13] lib: test_hmm add ioctl to get zone device type

2022-05-31 Thread Sierra Guiza, Alejandro (Alex)
On 5/31/2022 12:31 PM, Andrew Morton wrote: On Tue, 31 May 2022 10:56:23 -0500 Alex Sierra wrote: new ioctl cmd added to query zone device type. This will be used once the test_hmm adds zone device coherent type. @@ -1026,6 +1027,15 @@ static int dmirror_snapshot(struct dmirror *dmirror,

[Bug 213145] AMDGPU resets, timesout and crashes after "*ERROR* Waiting for fences timed out!"

2022-05-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213145 --- Comment #18 from Eric Wheeler (bugzilla-ker...@z.ewheeler.org) --- Nix, did you try Linux 5.18? It worked for me... -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the

Re: [PATCH 1/2] drm/meson: encoder_cvbs: Fix refcount leak in meson_encoder_cvbs_init

2022-05-31 Thread Martin Blumenstingl
On Tue, May 31, 2022 at 4:49 PM Miaoqian Lin wrote: > > of_graph_get_remote_node() returns remote device nodepointer with > refcount incremented, we should use of_node_put() on it when done. > Add missing of_node_put() to avoid refcount leak. > > Fixes: 318ba02cd8a8 ("drm/meson: encoder_cvbs: swit

[PATCH v5 00/13] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-05-31 Thread Alex Sierra
This is our MEMORY_DEVICE_COHERENT patch series rebased and updated for current 5.18.0 Changes since the last version: - Fixed problems with migration during long-term pinning in get_user_pages - Open coded vm_normal_lru_pages as suggested in previous code review - Update hmm_gup_test with more ge

[PATCH v5 01/13] mm: add zone device coherent type memory support

2022-05-31 Thread Alex Sierra
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 process can be migrated to such memory. However, no one should be allowed to pin such memory so that it can always be evicted. Signed

[PATCH v5 02/13] mm: handling Non-LRU pages returned by vm_normal_pages

2022-05-31 Thread Alex Sierra
With DEVICE_COHERENT, we'll soon have vm_normal_pages() return device-managed anonymous pages that are not LRU pages. Although they behave like normal pages for purposes of mapping in CPU page, and for COW. They do not support LRU lists, NUMA migration or THP. We also introduced a FOLL_LRU flag th

[PATCH v5 04/13] mm: remove the vma check in migrate_vma_setup()

2022-05-31 Thread Alex Sierra
From: Alistair Popple migrate_vma_setup() checks that a valid vma is passed so that the page tables can be walked to find the pfns associated with a given address range. However in some cases the pfns are already known, such as when migrating device coherent pages during pin_user_pages() meaning

[PATCH v5 05/13] mm/gup: migrate device coherent pages when pinning instead of failing

2022-05-31 Thread Alex Sierra
From: Alistair Popple Currently any attempts to pin a device coherent page will fail. This is because device coherent pages need to be managed by a device driver, and pinning them would prevent a driver from migrating them off the device. However this is no reason to fail pinning of these pages.

[PATCH v5 03/13] mm: add device coherent vma selection for memory migration

2022-05-31 Thread Alex Sierra
This case is used to migrate pages from device memory, back to system memory. Device coherent type memory is cache coherent from device and CPU point of view. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig --- include/linux/m

[PATCH v5 06/13] drm/amdkfd: add SPM support for SVM

2022-05-31 Thread Alex Sierra
When CPU is connected throug XGMI, it has coherent access to VRAM resource. In this case that resource is taken from a table in the device gmc aperture base. This resource is used along with the device type, which could be DEVICE_PRIVATE or DEVICE_COHERENT to create the device page map region. Also

[PATCH v5 08/13] lib: test_hmm add module param for zone device type

2022-05-31 Thread Alex Sierra
In order to configure device coherent in test_hmm, two module parameters should be passed, which correspond to the SP start address of each device (2) spm_addr_dev0 & spm_addr_dev1. If no parameters are passed, private device type is configured. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling

[PATCH v5 07/13] lib: test_hmm add ioctl to get zone device type

2022-05-31 Thread Alex Sierra
new ioctl cmd added to query zone device type. This will be used once the test_hmm adds zone device coherent type. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig --- lib/test_hmm.c | 11 +-- lib/test_hmm_uapi.h |

[PATCH v5 13/13] tools: add selftests to hmm for COW in device memory

2022-05-31 Thread Alex Sierra
The objective is to test device migration mechanism in pages marked as COW, for private and coherent device type. In case of writing to COW private page(s), a page fault will migrate pages back to system memory first. Then, these pages will be duplicated. In case of COW device coherent type, pages

[PATCH v5 10/13] tools: update hmm-test to support device coherent type

2022-05-31 Thread Alex Sierra
Test cases such as migrate_fault and migrate_multiple, were modified to explicit migrate from device to sys memory without the need of page faults, when using device coherent type. Snapshot test case updated to read memory device type first and based on that, get the proper returned results migrat

[PATCH v5 09/13] lib: add support for device coherent type in test_hmm

2022-05-31 Thread Alex Sierra
Device Coherent type uses device memory that is coherently accesible by the CPU. This could be shown as SP (special purpose) memory range at the BIOS-e820 memory enumeration. If no SP memory is supported in system, this could be faked by setting CONFIG_EFI_FAKE_MEMMAP. Currently, test_hmm only sup

  1   2   >