[PATCH v8 09/14] drm: bridge: samsung-dsim: Add atomic_get_input_bus_fmts

2022-11-10 Thread Jagan Teki
Finding the right input bus format throughout the pipeline is hard so add atomic_get_input_bus_fmts callback and initialize with the proper input format from list of supported output formats. This format can be used in pipeline for negotiating bus format between the DSI-end of this bridge and the

[PATCH v8 10/14] drm: bridge: samsung-dsim: Add input_bus_flags

2022-11-10 Thread Jagan Teki
LCDIF-DSIM glue logic inverts the HS/VS/DE signals and expecting the i.MX8M Mini/Nano DSI host to add additional Data Enable signal active low (DE_LOW). This makes the valid data transfer on each horizontal line. So, add additional bus flags DE_LOW setting via input_bus_flags for i.MX8M Mini/Nano

[PATCH v8 12/14] drm: bridge: samsung-dsim: Add i.MX8M Mini/Nano support

2022-11-10 Thread Jagan Teki
Samsung MIPI DSIM master can also be found in i.MX8M Mini/Nano SoC. Add compatible and associated driver_data for it. v8: * fix and update the comment v7, v6: * none v3: * enable DSIM_QUIRK_FIXUP_SYNC_POL quirk v5: * [mszyprow] rebased and adjusted to the new driver initialization * drop quirk

[PATCH v8 11/14] dt-bindings: display: exynos: dsim: Add NXP i.MX8M Mini/Nano support

2022-11-10 Thread Jagan Teki
Samsung MIPI DSIM bridge can also be found in i.MX8M Mini/Nano SoC. Add dt-bingings for it. v8: * add comment to include i.MX8M Nano. v7, v6, v5, v4: * none v3: * collect Rob Acked-by v2: * updated comments v1: * new patch Acked-by: Rob Herring Signed-off-by: Jagan Teki --- Documentation/

[PATCH v8 14/14] drm: bridge: samsung-dsim: Add i.MX8M Plus support

2022-11-10 Thread Jagan Teki
From: Marek Vasut Add extras to support i.MX8M Plus. The main change is the removal of HS/VS/DE signal inversion in the LCDIFv3-DSIM glue logic, otherwise the implementation of this IP in i.MX8M Plus is very much compatible with the i.MX8M Mini/Nano one. Signed-off-by: Marek Vasut Signed-off-by

[PATCH v8 13/14] dt-bindings: display: exynos: dsim: Add NXP i.MX8M Plus support

2022-11-10 Thread Jagan Teki
Samsung MIPI DSIM bridge can also be found in i.MX8M Plus SoC. Add dt-bingings for it. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/display/exynos/exynos_dsim.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/exynos/exynos_dsim.

[PATCH v2] drm/mediatek: make eDP panel as the first connected connector

2022-11-10 Thread Gil Dekel
[Why] Some userspaces assume that the first connected connector is the "main" display, which supposed to display, for example, the login screen. For laptops, this should be the internal connector. [How] This patch calls drm_helper_move_panel_connectors_to_head() right before crtc creation to ensur

Re: [PATCH 04/10] vfio: Move storage of allow_unsafe_interrupts to vfio_main.c

2022-11-10 Thread Jason Gunthorpe
On Wed, Nov 09, 2022 at 11:28:22AM -0700, Alex Williamson wrote: > > > > I'd be much more comfortable with this as a system wide iommufd flag > > > > if we also tied it to do some demonstration of privilege - eg a > > > > requirement to open iommufd with CAP_SYS_RAWIO for instance. > > > > > > W

Re: [PATCH v4] drm/sysfs: Link DRM connectors to corresponding Type-C connectors

2022-11-10 Thread Won Chung
Hi Daniel, Thank you very much for a review. On Wed, Nov 9, 2022 at 3:54 AM Daniel Vetter wrote: > > On Tue, Nov 08, 2022 at 06:50:04PM +, Won Chung wrote: > > Create a symlink pointing to USB Type-C connector for DRM connectors > > when they are created. The link will be created only if the

Re: [PATCH 3/5] drm/amdgpu: stop resubmittting jobs in amdgpu_pci_resume

2022-11-10 Thread Alex Deucher
On Wed, Nov 9, 2022 at 4:50 AM Christian König wrote: > > As far as I can see this is not really recoverable since a PCI reset > clears VRAM. Might be more clear to say the state of VRAM is unreliable due to a PCI event like an AER event or a link reset or DPC event. The reset itself may not cle

Re: [PATCH 1/5] drm/amd/amdgpu revert "implement tdr advanced mode"

2022-11-10 Thread Alex Deucher
Some comments on patch 3. With that addressed, the series is: Reviewed-by: Alex Deucher On Wed, Nov 9, 2022 at 4:50 AM Christian König wrote: > > This reverts commit e6c6338f393b74ac0b303d567bb918b44ae7ad75. > > This feature basically re-submits one job after another to > figure out which one w

Re: [PATCH] drm/amdgpu: Fix memory leak in amdgpu_cs_pass1

2022-11-10 Thread Alex Deucher
On Thu, Nov 10, 2022 at 1:08 PM Luben Tuikov wrote: > > Thanks for fixing this. > > Please add a Cc tag to stable, and repost. No need for stable. This patch just went upstream in 6.1, so I can include it in my 6.1 fixes pull next week. Applied. Thanks! Alex > > Reviewed-by: Luben Tuikov >

[PATCH v1 0/6] Move dma_buf_mmap_internal() to dynamic locking specification

2022-11-10 Thread Dmitry Osipenko
Hello, Recently, dma-buf got a common locking convention for importers and exporters. All the dma-buf functions were moved to the new locking convention, apart from the dma_buf_mmap_internal() that was missed out by accident. This series moves dma_buf_mmap_internal() to the dynamic locking specifi

[PATCH v1 3/6] udmabuf: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Dmitry Osipenko
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be held. Add locking sanity check to the dma-buf mmaping callback to ensure that the locking assumption won't regress in the future. Suggested-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/udmabuf.c | 3

[PATCH v1 2/6] drm: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Dmitry Osipenko
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be held. Add locking sanity checks to the dma-buf mmaping callbacks of DRM drivers to ensure that the locking assumptions won't regress in future. Suggested-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/

[PATCH v1 6/6] fastrpc: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Dmitry Osipenko
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be held. Add locking sanity check to the dma-buf mmaping callback to ensure that the locking assumption won't regress in the future. Suggested-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/misc/fastrpc.c | 3 +++

[PATCH v1 4/6] dma-buf/heaps: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Dmitry Osipenko
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be held. Add locking sanity checks to the dma-buf mmaping callbacks to ensure that the locking assumptions won't regress in the future. Suggested-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/heaps/cma_h

[PATCH v1 5/6] media: videobuf2: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Dmitry Osipenko
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be held. Add locking sanity checks to the dma-buf mmaping callbacks to ensure that the locking assumptions won't regress in the future. Suggested-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/media/common/videob

[PATCH v1 1/6] dma-buf: Move dma_buf_mmap_internal() to dynamic locking specification

2022-11-10 Thread Dmitry Osipenko
All dma-buf functions has been moved to dynamic locking specification The dma_buf_mmap_internal() was missed out by accident. Take reservation lock around file mapping operation to adhere the common locking convention. Reported-by: Daniel Vetter Signed-off-by: Dmitry Osipenko --- drivers/dma-bu

Re: [PATCH v3 0/7] vfio-ccw parent rework

2022-11-10 Thread Alex Williamson
On Fri, 4 Nov 2022 15:20:00 +0100 Eric Farman wrote: > Hi Alex, > > Here's the (last?) update to the vfio-ccw lifecycle changes that I've sent > recently, and were previously discussed at various points [1][2]. > > Patches 1-5 rework the behavior of the vfio-ccw driver's private struct. > In s

Re: [PATCH v3 6/8] drm/msm/dpu: add support for MDP_TOP blackhole

2022-11-10 Thread Dmitry Baryshkov
On 04/11/2022 16:58, Konrad Dybcio wrote: On 04/11/2022 14:03, Dmitry Baryshkov wrote: On sm8450 a register block was removed from MDP TOP. Accessing it during snapshotting results in NoC errors / immediate reboot. Skip accessing these registers during snapshot. Must have been fun to debug..

Re: [PATCH v3 6/8] drm/msm/dpu: add support for MDP_TOP blackhole

2022-11-10 Thread Konrad Dybcio
On 10/11/2022 21:19, Dmitry Baryshkov wrote: On 04/11/2022 16:58, Konrad Dybcio wrote: On 04/11/2022 14:03, Dmitry Baryshkov wrote: On sm8450 a register block was removed from MDP TOP. Accessing it during snapshotting results in NoC errors / immediate reboot. Skip accessing these registers

Re: [PATCH v3 7/8] drm/msm/dpu: add support for SM8450

2022-11-10 Thread Dmitry Baryshkov
On 04/11/2022 17:12, Konrad Dybcio wrote: On 04/11/2022 14:03, Dmitry Baryshkov wrote: Add definitions for the display hardware used on Qualcomm SM8450 platform. Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Konrad Dybcio Konrad   .../

Re: [PATCH v3 7/8] drm/msm/dpu: add support for SM8450

2022-11-10 Thread Konrad Dybcio
On 10/11/2022 21:28, Dmitry Baryshkov wrote: On 04/11/2022 17:12, Konrad Dybcio wrote: On 04/11/2022 14:03, Dmitry Baryshkov wrote: Add definitions for the display hardware used on Qualcomm SM8450 platform. Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --

Re: [PATCH v2] drm/mediatek: make eDP panel as the first connected connector

2022-11-10 Thread Sean Paul
On Thu, Nov 10, 2022 at 1:49 PM Gil Dekel wrote: > > [Why] > Some userspaces assume that the first connected connector is the "main" > display, which supposed to display, for example, the login screen. > For laptops, this should be the internal connector. > > [How] > This patch calls drm_helper_mo

Re: [PATCH v6 05/20] drm/i915/vm_bind: Implement bind and unbind of object

2022-11-10 Thread Zanoni, Paulo R
On Thu, 2022-11-10 at 08:32 -0800, Niranjana Vishwanathapura wrote: > On Wed, Nov 09, 2022 at 05:28:59PM -0800, Zanoni, Paulo R wrote: > > On Mon, 2022-11-07 at 00:51 -0800, Niranjana Vishwanathapura wrote: > > > Add uapi and implement support for bind and unbind of an > > > object at the specified

[linux-next:master] BUILD REGRESSION 382d2f9e739bc6f151c718b38537ae522ff848cd

2022-11-10 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 382d2f9e739bc6f151c718b38537ae522ff848cd Add linux-next specific files for 20221110 Error/Warning reports: https://lore.kernel.org/linux-mm/202210261404.b6ulzg7h-...@intel.com https

Re: [Intel-gfx] [PATCH v6 00/20] drm/i915/vm_bind: Add VM_BIND functionality

2022-11-10 Thread Zanoni, Paulo R
On Thu, 2022-11-10 at 15:05 +, Matthew Auld wrote: > On 10/11/2022 14:47, Tvrtko Ursulin wrote: > > > > On 10/11/2022 05:49, Niranjana Vishwanathapura wrote: > > > On Wed, Nov 09, 2022 at 04:16:25PM -0800, Zanoni, Paulo R wrote: > > > > On Mon, 2022-11-07 at 00:51 -0800, Niranjana Vishwanathap

Re: nbio_v7_4: Add pointer check

2022-11-10 Thread Limonciello, Mario
On 11/10/2022 06:28, Denis Arefev wrote: Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null This line is too long, you should be wrapping lines at 75 characters. Could you run your patch through checkpatch? Found by Linux Verificati

Re: [PATCH v9 05/12] dt-bindings: display/msm: move common MDSS properties to mdss-common.yaml

2022-11-10 Thread Dmitry Baryshkov
On 08/11/2022 14:05, Krzysztof Kozlowski wrote: On 24/10/2022 18:42, Dmitry Baryshkov wrote: Move properties common to all MDSS DT nodes to the mdss-common.yaml. This extends qcom,msm8998-mdss schema to allow interconnect nodes, which will be added later, once msm8998 gains interconnect support

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

2022-11-10 Thread Drew Davenport
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 resume this time is compared to the current ktime_get time to determine if the driver should wait for the panel to power down completely before re-enab

Re: [PATCH v3 4/8] drm/msm/dsi: add support for DSI-PHY on SM8350 and SM8450

2022-11-10 Thread Dmitry Baryshkov
On 04/11/2022 16:54, Konrad Dybcio wrote: On 04/11/2022 14:03, Dmitry Baryshkov wrote: SM8350 and SM8450 use 5nm DSI PHYs, which share register definitions with 7nm DSI PHYs. Rather than duplicating the driver, handle 5nm variants inside the common 5+7nm driver. Co-developed-by: Robert Foss T

Re: [PATCH 6/6] drm/i915: Bpp/timeslot calculation fixes for DP MST DSC

2022-11-10 Thread Navare, Manasi
On Thu, Nov 03, 2022 at 03:23:00PM +0200, Stanislav Lisovskiy wrote: > Fix intel_dp_dsc_compute_config, previously timeslots parameter > was used in fact not as a timeslots, but more like a ratio > timeslots/64, which of course didn't have any effect for SST DSC, > but causes now issues for MST DSC

Re: [PATCH printk v3 33/40] printk, xen: fbfront: create/use safe function for forcing preferred

2022-11-10 Thread John Ogness
On 2022-11-10, Petr Mladek wrote: + /* Only the new head can have CON_CONSDEV set. */ + WRITE_ONCE(cur_pref_con->flags, cur_pref_con->flags & ~CON_CONSDEV); >>> >>> As mentioned in the reply for 7th patch, I would prefer to hide this >>> WRITE_ONCE into a wrapper, e.g. console_set_flag

Re: [PATCH v8 06/24] drm/modes: Add a function to generate analog display modes

2022-11-10 Thread Maíra Canal
Hi Maxime, On 11/10/22 08:07, Maxime Ripard wrote: > Multiple drivers (meson, vc4, sun4i) define analog TV 525-lines and > 625-lines modes in their drivers. > > Since those modes are fairly standard, and that we'll need to use them > in more places in the future, it makes sense to move their defi

Re: [PATCH v8 12/24] drm/connector: Add a function to lookup a TV mode by its name

2022-11-10 Thread Maíra Canal
Hi Maxime, On 11/10/22 08:07, Maxime Ripard wrote: > As part of the command line parsing rework coming in the next patches, > we'll need to lookup drm_connector_tv_mode values by their name, already > defined in drm_tv_mode_enum_list. > > In order to avoid any code duplication, let's do a functio

Re: [PATCH v8 16/24] drm/modes: Introduce more named modes

2022-11-10 Thread Maíra Canal
Hi Maxime, On 11/10/22 08:07, Maxime Ripard wrote: > Now that we can easily extend the named modes list, let's add a few more > analog TV modes that were used in the wild, and some unit tests to make > sure it works as intended. > > Tested-by: Mateusz Kwiatkowski > Signed-off-by: Maxime Ripard

Re: [PATCH 2/2] drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker()

2022-11-10 Thread Lyude Paul
Reviewed-by: Lyude Paul On Tue, 2022-11-01 at 15:07 +0800, Shang XiaoJing wrote: > drm_vblank_init() call drmm_add_action_or_reset() with > drm_vblank_init_release() as action. If __drmm_add_action() failed, will > directly call drm_vblank_init_release() with the vblank whose worker is > NULL. As

Re: [PATCH 1/2] drm/drv: Fix potential memory leak in drm_dev_init()

2022-11-10 Thread Lyude Paul
Reviewed-by: Lyude Paul Will go ahead and push these two upstream, thanks! On Tue, 2022-11-01 at 15:07 +0800, Shang XiaoJing wrote: > drm_dev_init() will add drm_dev_init_release() as a callback. When > drmm_add_action() failed, the release function won't be added. As the > result, the ref cnt a

Re: [PATCH v8 17/24] drm/probe-helper: Provide a TV get_modes helper

2022-11-10 Thread Maíra Canal
Hi Maxime, On 11/10/22 08:07, Maxime Ripard wrote: > From: Noralf Trønnes > > Most of the TV connectors will need a similar get_modes implementation > that will, depending on the drivers' capabilities, register the 480i and > 576i modes. > > That implementation will also need to set the preferr

RE: [PATCH v2 07/11] vfio-iommufd: Support iommufd for physical VFIO devices

2022-11-10 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, November 11, 2022 1:21 AM > > On Thu, Nov 10, 2022 at 03:11:16AM +, Tian, Kevin wrote: > > > From: Jason Gunthorpe > > > Sent: Tuesday, November 8, 2022 8:53 AM > > > > > > + > > > +int vfio_iommufd_bind(struct vfio_device *vdev, struct iommufd_ctx > *

[PATCH] drm/i915/guc: add the GSC CS to the GuC capture list

2022-11-10 Thread Daniele Ceraolo Spurio
For the GSC engine we only want to capture the instance regs. Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn --- drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c b/drivers/gpu/d

Re: [PATCH v8 01/14] drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags

2022-11-10 Thread Nicolas Boichat
On Fri, Nov 11, 2022 at 2:40 AM Jagan Teki wrote: > > HFP/HBP/HSA/EOT_PACKET modes in Exynos DSI host specifies > 0 = Enable and 1 = Disable. Oh I see, that's confusing... IMHO you might want to change the register macro name... (but if that's what the datasheet uses, it might not be ideal either

[PATCH] mm/migrate_device: Return number of migrating pages in args->cpages

2022-11-10 Thread Alistair Popple
migrate_vma->cpages originally contained a count of the number of pages migrating including non-present pages which can be poluated directly on the target. Commit 241f68859656 ("mm/migrate_device.c: refactor migrate_vma and migrate_deivce_coherent_page()") inadvertantly changed this to contain jus

[PATCH] drm/i915/huc: fix leak of debug object in huc load fence on driver unload

2022-11-10 Thread Daniele Ceraolo Spurio
The fence is always initialized in huc_init_early, but the cleanup in huc_fini is only being run if HuC is enabled. This causes a leaking of the debug object when HuC is disabled/not supported, which can in turn trigger a warning if we try to register a new debug offset at the same address on drive

[PATCH -next] drm/nouveau/gr/gf100-: Remove unneeded semicolon

2022-11-10 Thread Yang Li
./drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:423:31-32: Unneeded semicolon Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3013 Fixes: 78a43c7e3b2f ("drm/nouveau/gr/gf100-: make global attrib_cb actually global") Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/nouv

[PATCH -next] drm/nouveau/fifo: Remove duplicated include in chan.c

2022-11-10 Thread Yang Li
./drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c: chid.h is included more than once. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3014 Fixes: 67059b9fb899 ("drm/nouveau/fifo: add chan start()/stop()") Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/nouveau/nvkm/eng

[git pull] drm fixes for 6.1-rc5

2022-11-10 Thread Dave Airlie
Hi Linus, Weekly pull request for graphics, mostly amdgpu and i915, with a couple of fixes for vc4 and panfrost, panel quirks and a kconfig change for rcar-du. Nothing seems to be too strange at this stage. drm-fixes-2022-11-11: drm fixes for 6.1-rc5 amdgpu: - Fix s/r in amdgpu_vram_mgr_new - SM

[PATCH AUTOSEL 6.0 07/30] drm/rockchip: vop2: fix null pointer in plane_atomic_disable

2022-11-10 Thread Sasha Levin
From: Michael Tretter [ Upstream commit 471bf2406c043491b1a8288e5f04bc278f7d7ca1 ] If the vop2_plane_atomic_disable function is called with NULL as a state, accessing the old_pstate runs into a null pointer exception. However, the drm_atomic_helper_disable_planes_on_crtc function calls the atomi

[PATCH AUTOSEL 6.0 08/30] drm/rockchip: vop2: disable planes when disabling the crtc

2022-11-10 Thread Sasha Levin
From: Michael Tretter [ Upstream commit 447fb14bf07905b880c9ed1ea92c53d6dd0649d7 ] The vop2 driver needs to explicitly disable the planes if the crtc is disabled. Unless the planes are explicitly disabled, the address of the last framebuffer is kept in the registers of the VOP2. When re-enabling

[PATCH AUTOSEL 6.0 14/30] i2c: tegra: Allocate DMA memory for DMA engine

2022-11-10 Thread Sasha Levin
From: Thierry Reding [ Upstream commit cdbf26251d3b35c4ccaea0c3a6de4318f727d3d2 ] When the I2C controllers are running in DMA mode, it is the DMA engine that performs the memory accesses rather than the I2C controller. Pass the DMA engine's struct device pointer to the DMA API to make sure the c

[PATCH AUTOSEL 6.0 16/30] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 6.0 18/30] drm/amd/display: Ignore Cable ID Feature

2022-11-10 Thread Sasha Levin
From: Fangzhi Zuo [ Upstream commit 14aed119942f6c2f1286022323139f7404db5d2b ] Ignore cable ID for DP2 receivers that does not support the feature. Tested-by: Mark Broadworth Reviewed-by: Roman Li Acked-by: Rodrigo Siqueira Signed-off-by: Fangzhi Zuo Signed-off-by: Alex Deucher Signed-off-

[PATCH AUTOSEL 6.0 22/30] drm/amd/display: Fix DCN32 DSC delay calculation

2022-11-10 Thread Sasha Levin
From: George Shen [ Upstream commit bad610c97c08eef3ed1fa769a8b08b94f95b451e ] [Why] DCN32 DSC delay calculation had an unintentional integer division, resulting in a mismatch against the DML spreadsheet. [How] Cast numerator to double before performing the division. Reviewed-by: Alvin Lee Ac

[PATCH AUTOSEL 6.0 21/30] drm/amd: Fail the suspend if resources can't be evicted

2022-11-10 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 8d4de331f1b24a22d18e3c6116aa25228cf54854 ] If a system does not have swap and memory is under 100% usage, amdgpu will fail to evict resources. Currently the suspend carries on proceeding to reset the GPU: ``` [drm] evicting device resources failed [drm

[PATCH AUTOSEL 6.0 20/30] drm/amdgpu: set fb_modifiers_not_supported in vkms

2022-11-10 Thread Sasha Levin
From: Yifan Zhang [ Upstream commit 89b3554782e6b65894f0551e9e0a82ad02dac94d ] This patch to fix the gdm3 start failure with virual display: /usr/libexec/gdm-x-session[1711]: (II) AMDGPU(0): Setting screen physical size to 270 x 203 /usr/libexec/gdm-x-session[1711]: (EE) AMDGPU(0): Failed to m

[PATCH AUTOSEL 6.0 19/30] drm/amd/display: Enable timing sync on DCN32

2022-11-10 Thread Sasha Levin
From: Alvin Lee [ Upstream commit c3d3f35b725bf9c93bec6d3c056f6bb7cfd27403 ] Missed enabling timing sync on DCN32 because DCN32 has a different DML param. Tested-by: Mark Broadworth Reviewed-by: Martin Leung Reviewed-by: Jun Lei Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee Signed-of

[PATCH AUTOSEL 6.0 24/30] drm/amd/display: Round up DST_after_scaler to nearest int

2022-11-10 Thread Sasha Levin
From: George Shen [ Upstream commit 8dc323133d74518e3b5b07242e2b2f088799ea6e ] [Why] The DST_after_scaler value that DML spreadsheet outputs is generally the driver value round up to the nearest int. Reviewed-by: Alvin Lee Acked-by: Alex Hung Signed-off-by: George Shen Tested-by: Mark Broadw

[PATCH AUTOSEL 6.0 23/30] drm/amd/display: Use forced DSC bpp in DML

2022-11-10 Thread Sasha Levin
From: George Shen [ Upstream commit ab007e5db5d3b8b8975c7eec69992ff38fe2a46c ] [Why] DSC config is calculated separately from DML calculations. DML should use these separately calculated DSC params. The issue is that the calculated bpp is not properly propagated into DML. [How] Correctly used f

[PATCH AUTOSEL 6.0 25/30] drm/amd/display: Investigate tool reported FCLK P-state deviations

2022-11-10 Thread Sasha Levin
From: Nevenko Stupar [ Upstream commit 7461016c5706eb8c477752bf69e5c9f5a38f502b ] [Why] Fix for some of the tool reported modes for FCLK P-state deviations and UCLK P-state deviations that are coming from DSC terms and/or Scaling terms causing MinActiveFCLKChangeLatencySupported and MaxActiveDRA

[PATCH AUTOSEL 5.15 06/11] i2c: tegra: Allocate DMA memory for DMA engine

2022-11-10 Thread Sasha Levin
From: Thierry Reding [ Upstream commit cdbf26251d3b35c4ccaea0c3a6de4318f727d3d2 ] When the I2C controllers are running in DMA mode, it is the DMA engine that performs the memory accesses rather than the I2C controller. Pass the DMA engine's struct device pointer to the DMA API to make sure the c

[PATCH AUTOSEL 5.10 4/6] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 5.15 08/11] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 5.10 2/6] i2c: tegra: Allocate DMA memory for DMA engine

2022-11-10 Thread Sasha Levin
From: Thierry Reding [ Upstream commit cdbf26251d3b35c4ccaea0c3a6de4318f727d3d2 ] When the I2C controllers are running in DMA mode, it is the DMA engine that performs the memory accesses rather than the I2C controller. Pass the DMA engine's struct device pointer to the DMA API to make sure the c

[PATCH AUTOSEL 5.4 3/5] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 4.19 2/4] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 4.14 1/2] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

[PATCH AUTOSEL 4.9 1/2] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-10 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit fc007fb815ab5395c3962c09b79a1630b0fbed9c ] The mode_valid field in drm_connector_helper_funcs is expected to be of type: enum drm_mode_status (* mode_valid) (struct drm_connector *connector, struct drm_display_mode *

Re: [PATCH v2 00/11] Connect VFIO to IOMMUFD

2022-11-10 Thread Matthew Rosato
On 11/7/22 7:52 PM, Jason Gunthorpe wrote: > This series provides an alternative container layer for VFIO implemented > using iommufd. This is optional, if CONFIG_IOMMUFD is not set then it will > not be compiled in. > > At this point iommufd can be injected by passing in a iommfd FD to > VFIO_GRO

[PATCH v2] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-10 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem.c | 19 --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 +++- include/drm/drm_gem.h | 1 + 3 files changed, 20 inserti

Re: [PATCH v1 5/6] media: videobuf2: Assert held reservation lock for dma-buf mmapping

2022-11-10 Thread Tomasz Figa
On Fri, Nov 11, 2022 at 5:15 AM Dmitry Osipenko wrote: > > When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be > held. Add locking sanity checks to the dma-buf mmaping callbacks to ensure > that the locking assumptions won't regress in the future. > > Suggested-by: Daniel Vette

Re: [PATCH v2 07/11] vfio-iommufd: Support iommufd for physical VFIO devices

2022-11-10 Thread Yi Liu
On 2022/11/8 08:52, Jason Gunthorpe wrote: This creates the iommufd_device for the physical VFIO drivers. These are all the drivers that are calling vfio_register_group_dev() and expect the type1 code to setup a real iommu_domain against their parent struct device. The design gives the driver a

Re: [PATCH v2 09/11] vfio: Move container related MODULE_ALIAS statements into container.c

2022-11-10 Thread Yi Liu
On 2022/11/8 08:52, Jason Gunthorpe wrote: The miscdev is in container.c, so should these related MODULE_ALIAS statements. This is necessary for the next patch to be able to fully disable /dev/vfio/vfio. Fixes: cdc71fe4ecbf ("vfio: Move container code into drivers/vfio/container.c") Reported-by:

Re: [PATCH v2 11/11] iommufd: Allow iommufd to supply /dev/vfio/vfio

2022-11-10 Thread Yi Liu
On 2022/11/8 08:52, Jason Gunthorpe wrote: If the VFIO container is compiled out, give a kconfig option for iommufd to provide the miscdev node with the same name and permissions as vfio uses. The compatibility node supports the same ioctls as VFIO and automatically enables the VFIO compatibl

Re: [RFC] Approaches to deal with a struct with multiple fake flexible arrays members

2022-11-10 Thread Gustavo A. R. Silva
On Wed, Nov 09, 2022 at 10:20:34PM -0500, Alex Deucher wrote: > On Wed, Nov 9, 2022 at 8:31 PM Paulo Miguel Almeida > wrote: > > > > On Wed, Nov 09, 2022 at 06:45:57PM -0600, Gustavo A. R. Silva wrote: > > > On Wed, Nov 09, 2022 at 04:45:42PM +1300, Paulo Miguel Almeida wrote: > > > > > > Adding A

Re: [RFC] Approaches to deal with a struct with multiple fake flexible arrays members

2022-11-10 Thread Paulo Miguel Almeida
On Thu, Nov 10, 2022 at 11:39:02PM -0600, Gustavo A. R. Silva wrote: > On Wed, Nov 09, 2022 at 10:20:34PM -0500, Alex Deucher wrote: > > On Wed, Nov 9, 2022 at 8:31 PM Paulo Miguel Almeida > > wrote: > > > > > > On Wed, Nov 09, 2022 at 06:45:57PM -0600, Gustavo A. R. Silva wrote: > > > > On Wed, N

Re: [PATCH v2 11/11] iommufd: Allow iommufd to supply /dev/vfio/vfio

2022-11-10 Thread Yi Liu
On 2022/11/11 12:16, Yi Liu wrote: On 2022/11/8 08:52, Jason Gunthorpe wrote: If the VFIO container is compiled out, give a kconfig option for iommufd to provide the miscdev node with the same name and permissions as vfio uses. The compatibility node supports the same ioctls as VFIO and autom

[Bug 216625] [regression] GPU lockup on Radeon R7 Kaveri

2022-11-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216625 --- Comment #5 from Pierre Ossman (pierre-bugzi...@ossman.eu) --- The lockup happens on 5.17.2 as well, so it seems the kernel is not the most likely suspect. I'll see if I can try an older mesa next. Could the issue be with the firmware? Has th

Re: [PATCH v2] drm/mediatek: make eDP panel as the first connected connector

2022-11-10 Thread Chen-Yu Tsai
On Fri, Nov 11, 2022 at 2:49 AM Gil Dekel wrote: > > [Why] > Some userspaces assume that the first connected connector is the "main" > display, which supposed to display, for example, the login screen. > For laptops, this should be the internal connector. > > [How] > This patch calls drm_helper_mo

Re: [PATCH v9 05/12] dt-bindings: display/msm: move common MDSS properties to mdss-common.yaml

2022-11-10 Thread Krzysztof Kozlowski
On 10/11/2022 22:45, Dmitry Baryshkov wrote: >> >>> + - reg >>> + - reg-names >>> + - power-domains >>> + - clocks >>> + - interrupts >>> + - interrupt-controller >>> + - iommus >>> + - ranges >> >> Keep the same order as in list of top-level properties. > > But the order is the same. Yes

RE: [EXT] Re: [PATCH v3 04/10] phy: Add HDMI configuration options

2022-11-10 Thread Sandor Yu
Thanks your comments, > -Original Message- > From: Vinod Koul > Sent: 2022年11月10日 15:39 > To: Sandor Yu > Cc: dri-devel@lists.freedesktop.org; devicet...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-ker...@vger.kernel.org; > linux-...@lists.infradead.org; andrzej.ha...@

RE: [EXT] Re: [PATCH v3 08/10] phy: cadence: Add driver for HDP-TX DisplyPort PHY

2022-11-10 Thread Sandor Yu
Thanks your comments, > -Original Message- > From: Vinod Koul > Sent: 2022年11月10日 15:41 > To: Sandor Yu > Cc: dri-devel@lists.freedesktop.org; devicet...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-ker...@vger.kernel.org; > linux-...@lists.infradead.org; andrzej.ha...@

[PULL] drm-misc-next

2022-11-10 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-next PR. It looks like Daniel put a fixup for nouveau in drm-tip that I have to remind you about :) Maxime drm-misc-next-2022-11-10-1: drm-misc-next for 6.2: UAPI Changes: Cross-subsystem Changes: Core Changes: - atomic-helper: Add begin_fb_access a

[PATCH 15/23] staging: media: tegra-video: move default format to soc-specific data

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The tegra_default_format in vi.c is specific to Tegra210 CSI. In preparation for adding Tegra20 VIP support, move the default format to a new field in the soc-specific `struct tegra_vi_soc`. Instead of an entire format struct, only store a pointer to an item in the existing f

[PATCH 09/23] staging: media: tegra-video: improve error messages

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli tegra_vi_channels_alloc() can primarily fail for two reasons: 1. "ports" node not found 2. port_num > vi->soc->vi_max_channels Case 1 prints nothing, case 2 has a dev_err(). The caller [tegra_vi_init()] has a generic dev_err() on any failure. This mean that in case 2 we pr

[PATCH 13/23] staging: media: tegra-video: Kconfig: allow TPG only on Tegra210

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli We are about to add support for the Tegra20 parallel video capture, which has no TPG. In preparation for that, limit the VIDEO_TEGRA_TPG option to Tegra210 which is the only implementation currently provided by this driver. Signed-off-by: Luca Ceresoli --- drivers/staging/m

[PATCH 02/23] dt-bindings: display: tegra: vi: add 'vip' property and example

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli --- .../display/tegra/nvidia,tegra20-vi.yaml

[PATCH 12/23] staging: media: tegra-video: remove unneeded include

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli There is only a pointer reference to struct tegra_vi in video.h, thus vi.h is not needed. Signed-off-by: Luca Ceresoli --- drivers/staging/media/tegra-video/video.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/tegra-video/video.h b/drivers/stagi

[PATCH 22/23] staging: media: tegra-video: add support for VIP (parallel video input)

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The VI peripheral of Tegra supports capturing from MIPI CSI-2 or parallel video (called VIP in the docs). MIPI CSI-2 is already implemented. Add a VIP implementation. Signed-off-by: Luca Ceresoli --- MAINTAINERS| 1 + drivers/staging/media/

Re: [Nouveau] [PATCH v7 22/23] drm/vc4: vec: Add support for more analog TV standards

2022-11-10 Thread Lukas Satin
That's great, I will test it on Ubuntu + Nouveau x86_64 and Batocera-Linux. I'm not interested in Raspberry Pi. I see you have some commit in RaspberryPi/Linux. Will this go to some Nouveau driver, so I can test it on x86_64 machine? I have some basic experience compiling Linux kernel (nvidia driv

[PATCH 06/23] staging: media: tegra-video: improve documentation of tegra_video_format fields

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Some fields are irrelevant for Tegra20/VIP. Add a note to clarify that. Signed-off-by: Luca Ceresoli --- drivers/staging/media/tegra-video/vi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/tegra-video/vi.h b/drivers/stagin

[PATCH 21/23] staging: media: tegra-video: add H/V flip controls

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Tegra20 can do horizontal and vertical image flip, but Tegra210 cannot (either the hardware, or this driver). In preparation to adding Tegra20 support, add a flag in struct tegra_vi_soc so the generic vi.c code knows whether the flip controls should be added or not. Also pro

[PATCH 11/23] staging: media: tegra-video: move private struct declaration to C file

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli --- drivers/staging/media/tegra-video/vi.c | 13 + drivers/staging/media/tegra-video/vi.h | 13 -

[PATCH 04/23] ARM: dts: tegra20-tamonten: add label to avdd_vdac regulator

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Useful to enable it from a board DTS. Signed-off-by: Luca Ceresoli --- arch/arm/boot/dts/tegra20-tamonten.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-tamonten.dtsi b/arch/arm/boot/dts/tegra20-tamonten.dtsi index 6d51a5

[PATCH 16/23] staging: media: tegra-video: move MIPI calibration calls from VI to CSI

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The CSI module does not handle all the MIPI lane calibration procedure, leaving a small part of it to the VI module. In doing this, tegra_channel_enable_stream() (vi.c) manipulates the private data of the upstream subdev casting it to struct 'tegra_csi_channel', which will be

[PATCH 18/23] staging: media: tegra-video: move syncpt init/free to a per-soc op

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli tegra_channel_host1x_syncpt_init() gets the host1x syncpts needed for the Tegra210 implementation, and tegra_channel_host1x_syncpts_free() puts them. Tegra20 needs to get and put a different syncpt. In preparation for adding Tegra20 support, move these functions to new ops in

[PATCH 03/23] ARM: dts: tegra20: add label to nvidia,tegra20-vi node

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Useful to enable it from a board DTS. Signed-off-by: Luca Ceresoli --- arch/arm/boot/dts/tegra20.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index ee757dc8c6a2..5e71dcbe8b12 100644

[PATCH 20/23] staging: media: tegra-video: add hooks for planar YUV and H/V flip

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Tegra20 supports planar YUV422 capture, which can be implemented by writing U and V base address registers in addition to the "main" base buffer address register. It also supports H and V flip, which among others requires to write the start address (i.e. the 1st offset to wri

[PATCH 10/23] staging: media: tegra-video: slightly simplify cleanup on errors

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli of_node_put(node) does nothing if node == NULL, so it can be moved to the cleanup section at the bottom. Signed-off-by: Luca Ceresoli --- drivers/staging/media/tegra-video/vi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media

[PATCH 23/23] staging: media: tegra-video: add tegra20 variant

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The staging tegra-video driver currently implements MIPI CSI-2 video capture for Tegra210. Add support for parallel video capture (VIP) on Tegra20. With the generalizations added to the VI driver in previous commits, this is only a matter of adding the tegra20.c implementation

  1   2   3   >