Re: [PATCH] drm: send vblank event with the attached sequence rather than current

2021-12-02 Thread Ville Syrjälä
On Thu, Dec 02, 2021 at 10:11:55AM -0500, Mark Yacoub wrote: > From: Mark Yacoub > > [Why] > drm_handle_vblank_events loops over vblank_event_list to send any event > that is current or has passed. > More than 1 event could be pending with past sequence time that need to > be send. This can be a

Re: [PATCH bpf v2] treewide: add missing includes masked by cgroup -> bpf dependency

2021-12-02 Thread Greg KH
On Thu, Dec 02, 2021 at 12:34:00PM -0800, Jakub Kicinski wrote: > cgroup.h (therefore swap.h, therefore half of the universe) > includes bpf.h which in turn includes module.h and slab.h. > Since we're about to get rid of that dependency we need > to clean things up. > > v2: drop the cpu.h include

[v3 3/3] drm/i915/rpl-s: Enable guc submission by default

2021-12-02 Thread Anusha Srivatsa
Though, RPL-S is defined as subplatform of ADL-S, unlike ADL-S, it has GuC submission by default. v2: Remove extra parenthesis (Jani) v3: s/IS_RAPTORLAKE/IS_ADLS_RPLS (Jani) Cc: dri-devel@lists.freedesktop.org Cc: Joonas Lahtinen Cc: Tvrtko Ursulin Cc: Jani Nikula Signed-off-by: Anusha Srivats

[v3 2/3] drm/i915/rpl-s: Add PCH Support for Raptor Lake S

2021-12-02 Thread Anusha Srivatsa
Add the PCH ID for RPL-S. v2: Self contained commit message (Jani) Cc: dri-devel@lists.freedesktop.org Cc: Joonas Lahtinen Cc: Tvrtko Ursulin Cc: Jani Nikula Signed-off-by: Anusha Srivatsa Reviewed-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_pch.c | 1 + drivers/gpu/drm/i915/in

[v3 1/3] drm/i915/rpl-s: Add PCI IDS for Raptor Lake S

2021-12-02 Thread Anusha Srivatsa
Raptor Lake S(RPL-S) is a version 12 Display, Media and Render. For all i915 purposes it is the same as Alder Lake S (ADL-S). Introduce RPL-S as a subplatform of ADL-S. This patch adds PCI ids for RPL-S. v2: Update PCI IDs. - Add more description to commit message (Jani) v3: s/IS_RAPTORLAKE/IS_A

[v3 0/3] Introduce Raptor Lake S

2021-12-02 Thread Anusha Srivatsa
Raptor Lake S(RPL-S) is a version 12 Display, Media and Render. For all i915 purposes it is the same as Alder Lake S (ADL-S). The series introduces it as a subplatform of ADL-S. The one difference is the GuC submission which is default on RPL-S but was not the case with ADL-S. All patches are rev

RE: [PATCH] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-12-02 Thread Kuo-Hsiang Chou
Hi Thomas, Hi Tomas, Good day! May I get the review status, or is there anything I can do to improve it? Thanks! Best Regards, Kuo-Hsiang Chou -Original Message- From: Kuo-Hsiang Chou Sent: Monday, November 22, 2021 6:36 PM To: tzimmerm...@suse.de; dri-devel@lists.freedesktop.

Re: [RFC PATCH v4 0/2] RDMA/rxe: Add dma-buf support

2021-12-02 Thread Shunsuke Mie
Hi maintainers, Could you please review this patch series? Regards, Shunsuke Mie 2021年11月22日(月) 20:08 Shunsuke Mie : > > This patch series add a dma-buf support for rxe driver. > > A dma-buf based memory registering has beed introduced to use the memory > region that lack of associated page stru

[PATCH -next] drm: remove node from list before freeing the node

2021-12-02 Thread Yang Li
fix the following smatch warning: drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:1675 dpu_plane_init() warn: '&pdpu->mplane_list' not removed from list Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dr

Re: [PATCH v4] drm/msm/dp: do not initialize phy until plugin interrupt received

2021-12-02 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-11-09 13:38:13) > From: Kuogee Hsieh > > Current DP drivers have regulators, clocks, irq and phy are grouped > together within a function and executed not in a symmetric manner. > This increase difficulty of code maintenance and limited code scalability. > This patch div

Re: [PATCH v11, 10/19] media: mtk-vcodec: Add msg queue feature for lat and core architecture

2021-12-02 Thread yunfei.d...@mediatek.com
Hi AngeloGioacchino, Thanks for your suggestion. On Wed, 2021-12-01 at 13:09 +0100, AngeloGioacchino Del Regno wrote: > Il 29/11/21 04:41, Yunfei Dong ha scritto: > > For lat and core architecture, lat thread will send message to core > > thread when lat decode done. Core hardware will use the mes

Re: [PATCH v4 00/34] component: Make into an aggregate bus

2021-12-02 Thread Linus Walleij
On Thu, Dec 2, 2021 at 11:27 PM Stephen Boyd wrote: > drm/mcde: Migrate to aggregate driver This also works fine after the patch series. Tested-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v4 28/34] power: supply: ab8500: Migrate to aggregate driver

2021-12-02 Thread Linus Walleij
On Thu, Dec 2, 2021 at 11:27 PM Stephen Boyd wrote: > Use an aggregate driver instead of component ops so that we can get > proper driver probe ordering of the aggregate device with respect to all > the component devices that make up the aggregate device. > > Acked-by: Sebastian Reichel > Cc: >

Re: [PATCH v11, 04/19] media: mtk-vcodec: export decoder pm functions

2021-12-02 Thread yunfei.d...@mediatek.com
Hi Benjamin, Thanks for your suggestion. On Tue, 2021-11-30 at 14:34 +0100, Benjamin Gaignard wrote: > Le 29/11/2021 à 04:41, Yunfei Dong a écrit : > > Register each hardware as platform device, need to call pm > > functions > > to open/close power and clock from module mtk-vcodec-dec, export > >

RE: [PATCH] drm/ttm: fix ttm_bo_swapout

2021-12-02 Thread Pan, Xinhui
[AMD Official Use Only] Looks good to me. Thanks -Original Message- From: Christian König Sent: Thursday, December 2, 2021 6:38 PM To: Pan, Xinhui ; dri-devel@lists.freedesktop.org Subject: [PATCH] drm/ttm: fix ttm_bo_swapout Commit 7120a447c7fe ("drm/ttm: Double check mem_type of BO w

RE: [PATCH] drm/ast: Atomic CR/SR reg R/W

2021-12-02 Thread Kuo-Hsiang Chou
-Original Message- From: Kuo-Hsiang Chou Sent: Thursday, September 30, 2021 3:19 PM To: Thomas Zimmermann ; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org Subject: RE: [PATCH] drm/ast: Atomic CR/SR reg R/W Hi -Original Message- From: Thomas Zimmermann [mailto:tz

linux-next: build failure after merge of the amdgpu tree

2021-12-02 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c: In function 'amdgpu_vkms_sw_fini': drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:521:34: error: 'struct amdgpu_vkms_output' has no member named 'vblank_hrt

Re: [PATCH 4/4] drm/i915/guc: Don't go bang in GuC log if no GuC

2021-12-02 Thread Lucas De Marchi
On Thu, Dec 02, 2021 at 04:06:23PM -0800, john.c.harri...@intel.com wrote: From: John Harrison If the GuC has failed to load for any reason and then the user pokes the debugfs GuC log interface, a BUG and/or null pointer deref can occur. Don't let that happen. Signed-off-by: John Harrison

[PATCH 1/4] drm/i915/uc: Allow platforms to have GuC but not HuC

2021-12-02 Thread John . C . Harrison
From: John Harrison It is possible for platforms to require GuC but not HuC firmware. Also, the firmware versions for GuC and HuC advance independently. So split the macros up to allow the lists to be maintained separately. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_uc_f

[PATCH 2/4] drm/i915/guc: Request RP0 before loading firmware

2021-12-02 Thread John . C . Harrison
From: Vinay Belgaumkar By default, GT (and GuC) run at RPn. Requesting for RP0 before firmware load can speed up DMA and HuC auth as well. In addition to writing to 0xA008, we also need to enable swreq in 0xA024 so that Punit will pay heed to our request. Signed-off-by: Vinay Belgaumkar --- dr

[PATCH 3/4] drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM

2021-12-02 Thread John . C . Harrison
From: John Harrison Lots of testing is done with the DEBUG_GEM config option enabled but not the DEBUG_GUC option. That means we only get teeny-tiny GuC logs which are not hugely useful. Enabling full DEBUG_GUC also spews lots of other detailed output that is not generally desired. However, bigge

[PATCH 0/4] Assorted fixes/tweaks to GuC support

2021-12-02 Thread John . C . Harrison
From: John Harrison Fix a potential null pointer dereference, improve debug crash reports, improve code separation, improve GuC/HuC load performance. Signed-off-by: John Harrison John Harrison (3): drm/i915/uc: Allow platforms to have GuC but not HuC drm/i915/guc: Increase GuC log size f

[PATCH 4/4] drm/i915/guc: Don't go bang in GuC log if no GuC

2021-12-02 Thread John . C . Harrison
From: John Harrison If the GuC has failed to load for any reason and then the user pokes the debugfs GuC log interface, a BUG and/or null pointer deref can occur. Don't let that happen. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c | 4 ++-- 1 file changed

Re: [PATCH v4 2/2] drm/mediatek: add devlink to cmdq dev

2021-12-02 Thread Chun-Kuang Hu
Hi, Jason: jason-jh.lin 於 2021年12月2日 週四 下午2:41寫道: > > Add devlink to cmdq to make sure the order of suspend and resume > is correct. > Reviewed-by: Chun-Kuang Hu > Signed-off-by: jason-jh.lin > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 43 ++--- > 1 file changed, 31

Re: [PATCH v4 1/2] drm/mediatek: add wait_for_event for crtc disable by cmdq

2021-12-02 Thread Chun-Kuang Hu
Hi, Jason: jason-jh.lin 於 2021年12月2日 週四 下午2:41寫道: > > mtk_drm_crtc_atomic_disable will send an async cmd to cmdq driver, > so it may not finish when cmdq_suspend is called sometimes. > > Add wait_for_event after sending async disable plane cmd to make > sure the lastest cmd is done before cmdq_su

Re: [git pull] drm fixes for 5.16-rc4

2021-12-02 Thread pr-tracker-bot
The pull request you sent on Fri, 3 Dec 2021 07:27:03 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-12-03-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5f58da2befa58edf3a70b91ed87ed9bf77f1e70e Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [Intel-gfx] [PATCH v3 5/5] drm/i915/dg2: extend Wa_1409120013 to DG2

2021-12-02 Thread Clint Taylor
Reviewed-by: Clint Taylor -Clint On 11/16/21 9:48 AM, Matt Roper wrote: From: Matt Atwood Extend existing workaround 1409120013 to DG2. Cc: José Roberto de Souza Signed-off-by: Matt Atwood Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/intel_pm.c | 4 ++-- 1 file changed, 2 insert

Re: [Intel-gfx] [PATCH v3 4/5] drm/i915/dg2: Add Wa_16013000631

2021-12-02 Thread Clint Taylor
Reviewed-by: Clint Taylor -Clint On 11/16/21 9:48 AM, Matt Roper wrote: From: Ramalingam C Invalidate IC cache through pipe control command as part of the ctx restore flow through indirect ctx pointer. v2: - Move pipe control from xcs indirect context to the rcs indirect context. We

Re: [Intel-gfx] [PATCH v3 3/5] drm/i915/dg2: Add Wa_16011777198

2021-12-02 Thread Clint Taylor
Correct, Reviewed-by: Clint Taylor -Clint On 11/16/21 9:48 AM, Matt Roper wrote: Coarse power gating for render should not be enabled on some DG2 steppings. Bspec: 52698 Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_rc6.c | 15 +++ 1 file changed, 11 insertion

Re: [Intel-gfx] [PATCH v3 2/5] drm/i915/dg2: Add Wa_14010547955

2021-12-02 Thread Clint Taylor
Looks correct. Reviewed-by: Clint Taylor -Clint On 11/16/21 9:48 AM, Matt Roper wrote: This workaround is documented a bit strangely in the bspec; it's listed as an A0 workaround, but the description clarifies that the workaround is implicitly handled by the hardware and what the driver real

[PATCH v4 29/34] fbdev: omap2: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Cc: Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana

[PATCH v4 30/34] sound: hdac: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Kai Vehmanen Cc: Daniel Vetter Cc: "Rafael J. Wysocki"

[PATCH v4 27/34] mei: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Tomas Winkler Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Daniel Vetter Cc: "Rafael J. Wyso

[PATCH v4 31/34] ASoC: codecs: wcd938x: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Acked-by: Mark Brown Cc: Jaroslav Kysela Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark

[PATCH v4 25/34] drm/vc4: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Emma Anholt Cc: Maxime Ripard Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: R

[PATCH v4 34/34] component: Remove component_master_ops and friends

2021-12-02 Thread Stephen Boyd
The struct is unused now so drop it along with the functions that use it. Cc: Daniel Vetter Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- drivers/base/component.c | 148 +---

[PATCH v4 26/34] iommu/mtk: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Yong Wu Cc: Joerg Roedel Cc: Will Deacon Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob

[PATCH v4 28/34] power: supply: ab8500: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Acked-by: Sebastian Reichel Cc: Cc: Daniel Vetter Cc: Linus Walleij Cc: "Rafael J. Wysocki" Cc:

[PATCH v4 33/34] component: Get rid of drm_of_component_probe()

2021-12-02 Thread Stephen Boyd
There aren't any users anymore so drop it. Cc: Laurent Pinchart Cc: Daniel Vetter Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- drivers/gpu/drm/drm_of.c | 85 +--- inclu

[PATCH v4 21/34] drm/rockchip: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Sandy Huang Cc: "Heiko Stübner" Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc:

[PATCH v4 32/34] mei: pxp: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Vitaly Lubart Cc: Tomas Winkler Cc: Daniele Ceraolo Spurio Cc: Rodrigo Vivi Cc: Daniel Vette

[PATCH v4 24/34] drm/tilcdc: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Tested-by: Jyri Sarha Cc: Tomi Valkeinen Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark

[PATCH v4 23/34] drm/sun4i: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Maxime Ripard Cc: Chen-Yu Tsai Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc:

[PATCH v4 16/34] drm/ingenic: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. TODO: Move the helpers to PM in aggregate driver hooks. Acked-by: Paul Cercueil Cc: Daniel Vetter

[PATCH v4 12/34] drm/etnaviv: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Lucas Stach Cc: Russell King Cc: Christian Gmeiner Cc: Daniel Vetter Cc: "Rafael J. Wysocki"

[PATCH v4 11/34] drm/armada: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Russell King Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Saravana Kannan Si

[PATCH v4 22/34] drm/sti: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Si

[PATCH v4 20/34] drm/omap: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Tomi Valkeinen Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc:

[PATCH v4 19/34] drm/meson: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Neil Armstrong Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc:

[PATCH v4 15/34] drm/imx: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Philipp Zabel Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc:

[PATCH v4 18/34] drm/mediatek: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc:

[PATCH v4 17/34] drm/mcde: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Si

[PATCH v4 13/34] drm/kirin: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Xinliang Liu Cc: Tian Tao Cc: John Stultz Cc: Xinwei Kong Cc: Chen Feng Cc: Daniel Vetter

[PATCH v4 14/34] drm/exynos: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: Daniel Vetter Cc: "Rafa

[PATCH v4 10/34] drm/malidp: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. TODO: This can be updated to move the drm helper logic into the aggregate driver shutdown op. Cc: L

[PATCH v4 09/34] drm/arm/hdlcd: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: Liviu Dudau Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Sa

[PATCH v4 08/34] drm/komeda: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
Use an aggregate driver instead of component ops so that we can get proper driver probe ordering of the aggregate device with respect to all the component devices that make up the aggregate device. Cc: James Qian Wang (Arm Technology China) Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clar

[PATCH v4 07/34] drm/msm: Migrate to aggregate driver

2021-12-02 Thread Stephen Boyd
The device lists are poorly ordered when the component device code is used. This is because component_master_add_with_match() returns 0 regardless of component devices calling component_add() first. It can really only fail if an allocation fails, in which case everything is going bad and we're out

[PATCH v4 06/34] drm/of: Add a drm_of_aggregate_probe() API

2021-12-02 Thread Stephen Boyd
Similar to drm_of_component_probe() but using the new API that registers a driver instead of an ops struct. This allows us to migrate the users of drm_of_component_probe() to the new way of doing things. Cc: Laurent Pinchart Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell K

[PATCH v4 05/34] component: Add {bind, unbind}_component() ops that take aggregate device

2021-12-02 Thread Stephen Boyd
We'd like to get more device model features in the component framework so let's pass the struct aggregate_device pointer instead of the parent device pointer to the component binding functions. This will allow drivers to inspect and control things related to the aggregate device in case they need i

[PATCH v4 04/34] component: Move struct aggregate_device out to header file

2021-12-02 Thread Stephen Boyd
This allows aggregate driver writers to use the device passed to their probe/remove/shutdown functions properly instead of treating it as an opaque pointer. Cc: Daniel Vetter Cc: Greg Kroah-Hartman Cc: Laurent Pinchart Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kanna

[PATCH v4 03/34] component: Introduce the aggregate bus_type

2021-12-02 Thread Stephen Boyd
The component driver only provides 'bind' and 'unbind' callbacks to tell the host driver that it is time to assemble the aggregate driver now that all the components have probed. The component driver model doesn't attempt to resolve runtime PM or suspend/resume ordering, and explicitly mentions thi

[PATCH v4 02/34] component: Remove most references to 'master'

2021-12-02 Thread Stephen Boyd
Remove most references to 'master' in the code now that we've decided to migrate all the users of the ops structure to the aggregate driver. Cc: Daniel Vetter Cc: Greg Kroah-Hartman Cc: Laurent Pinchart Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Signed-off-by

[PATCH v4 01/34] component: Introduce struct aggregate_device

2021-12-02 Thread Stephen Boyd
Replace 'struct master' with 'struct aggregate_device' and then rename 'master' to 'adev' everywhere in the code. While we're here, put a struct device inside the aggregate device so that we can register it with a bus_type in the next patch. The diff is large but that's because this is mostly a re

[PATCH v4 00/34] component: Make into an aggregate bus

2021-12-02 Thread Stephen Boyd
This series is from discussion we had on reordering the device lists for drm shutdown paths[1]. I've introduced an 'aggregate' bus that we put the aggregate device onto and then we probe the aggregate device once all the components are probed and call component_add(). The probe/remove hooks are whe

[git pull] drm fixes for 5.16-rc4

2021-12-02 Thread Dave Airlie
Hi Linus, Bit of an uptick in patch count this week, though it's all relatively small overall. I suspect msm has been queuing up a few fixes to skew it here. Otherwise amdgpu has a scattered bunch of small fixes, and then some vc4, i915. virtio-gpu changes an rc1 introduced uAPI mistake, and makes

[PATCH bpf v2] treewide: add missing includes masked by cgroup -> bpf dependency

2021-12-02 Thread Jakub Kicinski
cgroup.h (therefore swap.h, therefore half of the universe) includes bpf.h which in turn includes module.h and slab.h. Since we're about to get rid of that dependency we need to clean things up. v2: drop the cpu.h include from cacheinfo.h, it's not necessary and it makes riscv sensitive to orderin

Re: [Intel-gfx] [PATCH] drm/i915: replace X86_FEATURE_PAT with pat_enabled()

2021-12-02 Thread Souza, Jose
On Wed, 2021-12-01 at 16:30 -0800, Lucas De Marchi wrote: > PAT can be disabled on boot with "nopat" in the command line. Replace > one x86-ism with another, which is slightly more correct to prepare for > supporting other architectures. Reviewed-by: José Roberto de Souza > > Cc: Matt Roper >

[PULL] drm-intel-fixes

2021-12-02 Thread Rodrigo Vivi
Hi Dave and Daniel, Here goes drm-intel-fixes-2021-12-02: - Fixing a regression where the backlight brightness control stopped working. - Fix the Intel HDR backlight support detection. - Reverting a w/a to fix a gpu Hang in TGL. The w/a itself was also for a hang, but in a much rarer scenario.

[pull] amdgpu, amdkfd, radeon drm-next-5.17

2021-12-02 Thread Alex Deucher
Hi Dave, Daniel, New stuff for 5.17. The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf: Linux 5.16-rc1 (2021-11-14 13:56:52 -0800) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-next-5.17-2021-12-02 for you to

[PATCH v11 5/8] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers

2021-12-02 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Here we add jz4780 device tree setup. Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- a

[PATCH v11 1/8] drm/ingenic: prepare ingenic drm for later addition of JZ4780

2021-12-02 Thread H. Nikolaus Schaller
This changes the way the regmap is allocated to prepare for the later addition of the JZ4780 which has more registers and bits than the others. Therefore we make the regmap as big as the reg property in the device tree tells. Suggested-by: Paul Cercueil Signed-off-by: H. Nikolaus Schaller ---

[PATCH v11 3/8] dt-bindings: display: Add ingenic, jz4780-dw-hdmi DT Schema

2021-12-02 Thread H. Nikolaus Schaller
From: Sam Ravnborg Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. Based on .txt binding from Zubair Lutfullah Kakakhel We also add generic ddc-i2c-bus to synopsys,dw-hdmi.yaml Signed-off-by: Sam Ravnborg Signed-off-by: H. Nikolaus Schaller Cc: Rob Herring Cc: devicet...@vger

[PATCH v11 7/8] MIPS: defconfig: CI20: configure for DRM_DW_HDMI_JZ4780

2021-12-02 Thread H. Nikolaus Schaller
Enable CONFIG options as modules. Signed-off-by: Ezequiel Garcia Signed-off-by: H. Nikolaus Schaller --- arch/mips/configs/ci20_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig index ab7ebb0668340..cc69b21585

[PATCH v11 8/8] [RFC] MIPS: DTS: Ingenic: adjust register size to available registers

2021-12-02 Thread H. Nikolaus Schaller
After getting the regmap size from the device tree we should reduce the ranges to the really available registers. This allows to read only existing registers from the debug fs and makes the regmap check out-of-bounds access. For the jz4780 we have done this already. Suggested-for: Paul Cercueil

[PATCH v11 6/8] MIPS: DTS: CI20: Add DT nodes for HDMI setup

2021-12-02 Thread H. Nikolaus Schaller
From: Paul Boddie We need to hook up * HDMI connector * HDMI power regulator * JZ4780_CLK_HDMI @ 27 MHz * DDC pinmux * HDMI and LCDC endpoint connections Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 72 -

[PATCH v11 4/8] drm/ingenic: Add dw-hdmi driver for jz4780

2021-12-02 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Here we add Kconfig DRM_INGENIC_DW_HDMI, Makefile and driver code. Signed-off-by: Paul Boddie Signed-off-by:

[PATCH v11 2/8] drm/ingenic: Add support for JZ4780 and HDMI output

2021-12-02 Thread H. Nikolaus Schaller
From: Paul Boddie Add support for the LCD controller present on JZ4780 SoCs. This SoC uses 8-byte descriptors which extend the current 4-byte descriptors used for other Ingenic SoCs. Tested on MIPS Creator CI20 board. Signed-off-by: Paul Boddie Signed-off-by: Ezequiel Garcia Signed-off-by: H.

[PATCH v11 0/8] MIPS: JZ4780 and CI20 HDMI

2021-12-02 Thread H. Nikolaus Schaller
PATCH V11 2021-12-02 19:39:52: - patch 4/8: change devm_regulator_get_optional to devm_regulator_get and remove NULL check (requested by broo...@kernel.org) - patch 3/8: make hdmi-5v-supply required (requested by broo...@kernel.org) PATCH V10 2021-11-30 22:26:41: - patch 3/8: fix $id

[PATCH 8/8] drm/i915/migrate: turn on acceleration for DG2

2021-12-02 Thread Matthew Auld
Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/intel_migrate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_migrate.c b/drivers/gpu/drm/i915/gt/intel_migrate.c index a804c57b61df..0da27ec808dc 100644 --- a/dri

[PATCH 6/8] drm/i915/selftests: handle object rounding

2021-12-02 Thread Matthew Auld
Ensure we account for any object rounding due to min_page_size restrictions. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/selftest_migrate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gt/selftest_migrate.c b/driver

[PATCH 7/8] drm/i915/migrate: add acceleration support for DG2

2021-12-02 Thread Matthew Auld
This is all kinds of awkward since we now have to contend with using 64K GTT pages when mapping anything in LMEM(including the page-tables themselves). Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/intel_migrate.c | 186 +++-

[PATCH 5/8] drm/i915/migrate: fix length calculation

2021-12-02 Thread Matthew Auld
No need to insert PTEs for the PTE window itself, also foreach expects a length not an end offset, which could be gigantic here with a second engine. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +- 1 file changed, 1 insertio

[PATCH 4/8] drm/i915/migrate: fix offset calculation

2021-12-02 Thread Matthew Auld
Ensure we add the engine base only after we calculate the qword offset into the PTE window. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/

[PATCH 3/8] drm/i915/gtt: add gtt mappable plumbing

2021-12-02 Thread Matthew Auld
With object clearing/copying we need to be able to modify the PTEs on the fly via some batch buffer, which means we need to be able to map the paging structures(or at the very least the PT, but being able to also map the PD might also be useful at some point) into the GTT. And since the paging stru

[PATCH 2/8] drm/i915/gtt: add xehpsdv_ppgtt_insert_entry

2021-12-02 Thread Matthew Auld
If this is LMEM then we get a 32 entry PT, with each PTE pointing to some 64K block of memory, otherwise it's just the usual 512 entry PT. This very much assumes the caller knows what they are doing. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/

[PATCH 1/8] drm/i915/migrate: don't check the scratch page

2021-12-02 Thread Matthew Auld
The scratch page might not be allocated in LMEM(like on DG2), so instead of using that as the deciding factor for where the paging structures live, let's just query the pt before mapping it. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C --- drivers/gpu/drm/i915/gt/intel_mig

Re: [PATCH v5] drm/radeon/radeon_kms: Fix a NULL pointer dereference in radeon_driver_open_kms()

2021-12-02 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Dec 1, 2021 at 10:16 AM Christian König wrote: > > Am 01.12.21 um 16:13 schrieb Zhou Qingyang: > > In radeon_driver_open_kms(), radeon_vm_bo_add() is assigned to > > vm->ib_bo_va and passes and used in radeon_vm_bo_set_addr(). In > > radeon_vm_bo_set_addr(), there

Re: [PATCH v2] drm/amdgpu: Fix a NULL pointer dereference in amdgpu_connector_lcd_native_mode()

2021-12-02 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Dec 2, 2021 at 11:17 AM Zhou Qingyang wrote: > > In amdgpu_connector_lcd_native_mode(), the return value of > drm_mode_duplicate() is assigned to mode, and there is a dereference > of it in amdgpu_connector_lcd_native_mode(), which will lead to a NULL > pointer der

[PATCH v3 19/20] ARM: tegra: acer-a500: Enable S/PDIF and HDMI audio

2021-12-02 Thread Dmitry Osipenko
Enable S/PDIF controller to enable HDMI audio support on Acer A500. Use nvidia,fixed-parent-rate property that prevents audio rate conflict between S/PDIF and I2S. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 8 1 file changed, 8 insertions(+) di

[PATCH v3 16/20] ARM: tegra_defconfig: Enable S/PDIF driver

2021-12-02 Thread Dmitry Osipenko
Enable Tegra20 S/PDIF driver. It's a part of HDMI audio subsystem on Tegra. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 736a0d25900b..f8b40cfdfb3e

[PATCH v3 18/20] ARM: tegra: Add HDMI audio graph to Tegra20 device-tree

2021-12-02 Thread Dmitry Osipenko
Add HDMI audio graph to Tegra20 device-tree to enable HDMI audio on Tegra20 devices. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/teg

[PATCH v3 17/20] ARM: tegra: Add S/PDIF node to Tegra20 device-tree

2021-12-02 Thread Dmitry Osipenko
Add S/PDIF node to Tegra20 device-tree. It's needed for enabling HDMI audio support. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 63c

[PATCH v3 20/20] ARM: tegra: paz00: Enable S/PDIF and HDMI audio

2021-12-02 Thread Dmitry Osipenko
Enable S/PDIF controller to enable HDMI audio support on Toshiba AC100. Use nvidia,fixed-parent-rate property that prevents audio rate conflict between S/PDIF and I2S. Tested-by: Agneli Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-paz00.dts | 8 1 file changed, 8 insert

[PATCH v3 12/20] ASoC: tegra20: spdif: Filter out unsupported rates

2021-12-02 Thread Dmitry Osipenko
SPDIF and other SoC components share audio PLL on Tegra, thus only one component may set the desired base clock rate. This creates problem for HDMI audio because it uses SPDIF and audio may not work if SPDIF's clock doesn't exactly match standard audio rate since some receivers may reject audio in

[PATCH v3 11/20] ASoC: tegra20: spdif: Support system suspend

2021-12-02 Thread Dmitry Osipenko
Support system suspend by enforcing runtime PM suspend/resume. Now there is no doubt that h/w is indeed stopped during suspend and that h/w state will be properly restored after resume. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH v3 14/20] drm/tegra: hdmi: Unwind tegra_hdmi_init() errors

2021-12-02 Thread Dmitry Osipenko
Add missing error unwinding to tegra_hdmi_init(), for consistency. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/hdmi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 3242baddc5e7..

[PATCH v3 15/20] drm/tegra: hdmi: Register audio CODEC on Tegra20

2021-12-02 Thread Dmitry Osipenko
Tegra20 SoC supports only S/PDIF source for HDMI audio. Register ASoC HDMI S/PDIF CODEC for Tegra20, it will be linked with the S/PDIF CPU DAI. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/Kconfig | 3 + drivers/gpu/drm/tegra/hdmi.c | 153 +++--- 2 file

[PATCH v3 13/20] ASoC: tegra20: i2s: Filter out unsupported rates

2021-12-02 Thread Dmitry Osipenko
Support new nvidia,fixed-parent-rate device-tree property which instructs I2S that board wants parent clock rate to stay at a fixed rate. This allows to play audio over S/PDIF and I2S simultaneously. The root of the problem is that audio components on Tegra share the same audio PLL, and thus, only

[PATCH v3 09/20] ASoC: tegra20: spdif: Use more resource-managed helpers

2021-12-02 Thread Dmitry Osipenko
Use resource-managed helpers to make code cleaner. Driver's remove callback isn't needed anymore since driver is completely resource-managed now. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 33 + sound/soc/tegra/tegra_pcm.c | 6 ++

  1   2   >