[v3, PATCH] drm/mediatek: add dma buffer control for drm plane disable

2023-03-19 Thread Yongqiang Niu
Fixes: 41016fe1028e4 (drm: Rename plane->state variables in atomic update and disable) dma buffer release before overlay disable, that will cause m4u translation fault warning. add dma buffer control flow in mediatek driver: get dma buffer when drm plane disable put dma buffer when overlay

[PATCH] drm/shmem-helper: Remove duplicate include

2023-03-19 Thread Jiapeng Chong
./drivers/gpu/drm/drm_gem_shmem_helper.c: linux/module.h is included more than once. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4567 Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/drm_gem_shmem_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH v2 07/11] video/aperture: Disable and unregister sysfb devices via aperture helpers

2023-03-19 Thread Samuel Čavoj
Hi, diff --git a/drivers/video/aperture.c b/drivers/video/aperture.c index f42a0d8bc211..101e13c2cf41 100644 --- a/drivers/video/aperture.c +++ b/drivers/video/aperture.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -286,7 +287,20 @@ int

[PATCH AUTOSEL 5.15 01/17] drm/cirrus: NULL-check pipe->plane.state->fb in cirrus_pipe_update()

2023-03-19 Thread Sasha Levin
From: Alexandr Sapozhnikov [ Upstream commit 7245e629dcaaf308f1868aeffa218e9849c77893 ] After having been compared to NULL value at cirrus.c:455, pointer 'pipe->plane.state->fb' is passed as 1st parameter in call to function 'cirrus_fb_blit_rect' at cirrus.c:461, where it is dereferenced at

[PATCH AUTOSEL 6.1 29/29] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-19 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 1717cc5f2962a4652c76ed3858b499ccae6c277c ] The same strapping initialization issue that happened on NBIO 7.5.1 appears to be happening on NBIO 7.3.0. Apply the same fix to 7.3.0 as well. Note: This workaround relies upon the integrated GPU being

[PATCH AUTOSEL 6.1 28/29] drm/amdgpu: Fix call trace warning and hang when removing amdgpu device

2023-03-19 Thread Sasha Levin
From: lyndonli [ Upstream commit 93bb18d2a873d2fa9625c8ea927723660a868b95 ] On GPUs with RAS enabled, below call trace and hang are observed when shutting down device. v2: use DRM device unplugged flag instead of shutdown flag as the check to prevent memory wipe in shutdown stage. [

[PATCH AUTOSEL 6.1 26/29] drm/amd/display: Update clock table to include highest clock setting

2023-03-19 Thread Sasha Levin
From: Swapnil Patel [ Upstream commit 2d99a7ec25cf456cd3680eb314d6454138e5aa64 ] [Why] Currently, the clk manager matches SocVoltage with voltage from fused settings (dfPstate clock table). And then corresponding clocks are selected. However in certain situations, this leads to clk manager not

[PATCH AUTOSEL 6.1 01/29] drm/cirrus: NULL-check pipe->plane.state->fb in cirrus_pipe_update()

2023-03-19 Thread Sasha Levin
From: Alexandr Sapozhnikov [ Upstream commit 7245e629dcaaf308f1868aeffa218e9849c77893 ] After having been compared to NULL value at cirrus.c:455, pointer 'pipe->plane.state->fb' is passed as 1st parameter in call to function 'cirrus_fb_blit_rect' at cirrus.c:461, where it is dereferenced at

[PATCH AUTOSEL 6.2 30/30] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-19 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 1717cc5f2962a4652c76ed3858b499ccae6c277c ] The same strapping initialization issue that happened on NBIO 7.5.1 appears to be happening on NBIO 7.3.0. Apply the same fix to 7.3.0 as well. Note: This workaround relies upon the integrated GPU being

[PATCH AUTOSEL 6.2 29/30] drm/amdgpu: Fix call trace warning and hang when removing amdgpu device

2023-03-19 Thread Sasha Levin
From: lyndonli [ Upstream commit 93bb18d2a873d2fa9625c8ea927723660a868b95 ] On GPUs with RAS enabled, below call trace and hang are observed when shutting down device. v2: use DRM device unplugged flag instead of shutdown flag as the check to prevent memory wipe in shutdown stage. [

[PATCH AUTOSEL 6.2 27/30] drm/amd/display: Update clock table to include highest clock setting

2023-03-19 Thread Sasha Levin
From: Swapnil Patel [ Upstream commit 2d99a7ec25cf456cd3680eb314d6454138e5aa64 ] [Why] Currently, the clk manager matches SocVoltage with voltage from fused settings (dfPstate clock table). And then corresponding clocks are selected. However in certain situations, this leads to clk manager not

[PATCH AUTOSEL 6.2 01/30] drm/cirrus: NULL-check pipe->plane.state->fb in cirrus_pipe_update()

2023-03-19 Thread Sasha Levin
From: Alexandr Sapozhnikov [ Upstream commit 7245e629dcaaf308f1868aeffa218e9849c77893 ] After having been compared to NULL value at cirrus.c:455, pointer 'pipe->plane.state->fb' is passed as 1st parameter in call to function 'cirrus_fb_blit_rect' at cirrus.c:461, where it is dereferenced at

Re: [RFC PATCH 2/2] drm/i915/display: Implement fb_mmap callback function

2023-03-19 Thread Andi Shyti
Hi Nirmoy, On Thu, Mar 16, 2023 at 06:22:20PM +0100, Nirmoy Das wrote: > If stolen memory allocation fails for fbdev, the driver will > fallback to system memory. Calculation of smem_start is wrong > for such framebuffer objs if the platform comes with no gmadr or > no aperture. Solve this by

Re: [RFC PATCH 1/2] drm/i915: Add a function to mmap framebuffer obj

2023-03-19 Thread Andi Shyti
Hi Nirmoy, On Thu, Mar 16, 2023 at 06:22:19PM +0100, Nirmoy Das wrote: > Implement i915_gem_fb_mmap() to enable fb_ops.fb_mmap() > callback for i915's framebuffer objects. > > v2: add a comment why i915_gem_object_get() needed(Andi). > > Cc: Matthew Auld > Cc: Andi Shyti > Cc: Ville Syrjälä

Re: [PATCH] drm/i915/gem: Flush lmem contents after construction

2023-03-19 Thread Andi Shyti
Hi Nirmoy, On Thu, Mar 16, 2023 at 05:59:18PM +0100, Nirmoy Das wrote: > From: Chris Wilson > > i915_gem_object_create_lmem_from_data() lacks the flush of the data > written to lmem to ensure the object is marked as dirty and the writes > flushed to the backing store. Once created, we can

Re: [Intel-gfx] [PATCH v4 08/10] drm/i915: Correct type of wakeref variable

2023-03-19 Thread Andi Shyti
Hi Andrzej, On Mon, Mar 06, 2023 at 05:32:04PM +0100, Andrzej Hajda wrote: > Wakeref has dedicated type. Assumption it will be int > compatible forever is incorrect. > > Signed-off-by: Andrzej Hajda easy... Reviewed-by: Andi Shyti Andi

Re: [Intel-gfx] [PATCH v4 06/10] drm/i915: Separate wakeref tracking

2023-03-19 Thread Andi Shyti
Hi Andrzej, On Mon, Mar 06, 2023 at 05:32:02PM +0100, Andrzej Hajda wrote: > From: Chris Wilson > > Extract the callstack tracking of intel_runtime_pm.c into its own > utility so that that we can reuse it for other online debugging of > scoped wakerefs. > > Signed-off-by: Chris Wilson >

Re: [Intel-gfx] [PATCH v4 04/10] lib/ref_tracker: remove warnings in case of allocation failure

2023-03-19 Thread Andi Shyti
Hi Andrzej, On Mon, Mar 06, 2023 at 05:32:00PM +0100, Andrzej Hajda wrote: > Library can handle allocation failures. To avoid allocation warnings > __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been > replaced with GFP_NOWAIT in case of stack allocation on tracker free > call. >

Re: [Intel-gfx] [PATCH v4 03/10] lib/ref_tracker: add printing to memory buffer

2023-03-19 Thread Andi Shyti
Hi Andrzej, This looks also good, just few questions. On Mon, Mar 06, 2023 at 05:31:59PM +0100, Andrzej Hajda wrote: > In case one wants to show stats via debugfs. shall I say it? I'll say it... you can do better with the log here. It's not a typo fix :) > Signed-off-by: Andrzej Hajda [...]

Re: [Intel-gfx] [PATCH v4 02/10] lib/ref_tracker: __ref_tracker_dir_print improve printing

2023-03-19 Thread Andi Shyti
Hi Andrzej, looks good, few comments below, On Mon, Mar 06, 2023 at 05:31:58PM +0100, Andrzej Hajda wrote: > To improve readability of ref_tracker printing following changes > have been performed: > - reports are printed per stack_handle - log is more compact, > - added display name for

Re: [Intel-gfx] [PATCH v4 01/10] lib/ref_tracker: add unlocked leak print helper

2023-03-19 Thread Andi Shyti
Hi Andrzej, [...] > diff --git a/lib/ref_tracker.c b/lib/ref_tracker.c > index dc7b14aa3431e2..5e9f90bbf771b0 100644 > --- a/lib/ref_tracker.c > +++ b/lib/ref_tracker.c > @@ -14,6 +14,38 @@ struct ref_tracker { > depot_stack_handle_tfree_stack_handle; > }; > > +void

Re: [PATCH 00/51] video: fbdev: Convert to platform remove callback returning void

2023-03-19 Thread Helge Deller
On 3/19/23 22:08, Uwe Kleine-König wrote: Hello, [Dropped Bartlomiej Zolnierkiewicz and Michal Januszewski from Cc, their email addresses bounced] On Sun, Mar 19, 2023 at 07:04:54PM +0100, Helge Deller wrote: Hello Uwe, On 3/19/23 00:53, Uwe Kleine-König wrote: this series adapts the

Re: [PATCH 00/51] video: fbdev: Convert to platform remove callback returning void

2023-03-19 Thread Uwe Kleine-König
Hello, [Dropped Bartlomiej Zolnierkiewicz and Michal Januszewski from Cc, their email addresses bounced] On Sun, Mar 19, 2023 at 07:04:54PM +0100, Helge Deller wrote: > Hello Uwe, > > On 3/19/23 00:53, Uwe Kleine-König wrote: > > this series adapts the platform drivers below drivers/video/fbdev

Re: [PATCH 12/15] auxdisplay: ht16k33: Introduce backlight_get_brightness()

2023-03-19 Thread Sam Ravnborg
On Sun, Mar 19, 2023 at 02:44:08PM +0100, Stephen Kitt wrote: > Hi, > > On Mon, 09 Jan 2023 11:12:02 +0100, Robin van der Gracht > wrote: > > On 2023-01-08 10:29, Sam Ravnborg wrote: > > > On Sat, Jan 07, 2023 at 10:02:38PM +0100, Miguel Ojeda wrote: > > >> On Sat, Jan 7, 2023 at 7:26 PM Sam

Re: [PATCH 00/51] video: fbdev: Convert to platform remove callback returning void

2023-03-19 Thread Helge Deller
Hello Uwe, On 3/19/23 00:53, Uwe Kleine-König wrote: this series adapts the platform drivers below drivers/video/fbdev to use the .remove_new() callback. Compared to the traditional .remove() callback .remove_new() returns no value. This is a good thing because the driver core doesn't (and

Re: [PATCH 01/19] drm/bridge: cdns-mhdp8546: Improve error reporting in remove callback

2023-03-19 Thread Laurent Pinchart
Hi Uwe, On Sun, Mar 19, 2023 at 02:59:21PM +0100, Uwe Kleine-König wrote: > On Sun, Mar 19, 2023 at 03:13:01PM +0200, Laurent Pinchart wrote: > > On Sat, Mar 18, 2023 at 08:07:46PM +0100, Uwe Kleine-König wrote: > > > Replace the generic error message issued by the driver core when the > > >

Re: [PATCH] video: ARM CLCD: Use of_address_to_resource()

2023-03-19 Thread Helge Deller
On 3/19/23 17:32, Rob Herring wrote: Replace of_get_address() and of_translate_address() with single call to of_address_to_resource(). With this, use ioremap() instead of of_iomap() which would parse "reg" a second time. Signed-off-by: Rob Herring applied. Thanks! Helge ---

[PATCH] drm/bridge: nwl-dsi: fix packet read ISR handling

2023-03-19 Thread Kevin Groeneveld
In some cases the NWL_DSI_RX_PKT_PAYLOAD_DATA_RCVD interrupt flag is not set along with NWL_DSI_RX_PKT_HDR_RCVD when the initial interrupt fires. Since the NWL_DSI_RX_PKT_PAYLOAD_DATA_RCVD_MASK was not set then the ISR does not fire again when NWL_DSI_RX_PKT_PAYLOAD_DATA_RCVD is finally set and

[PATCH] drm/bridge: nwl-dsi: implement MIPI_DSI_MODE_NO_EOT_PACKET

2023-03-19 Thread Kevin Groeneveld
Previously EOT packets were only being enabled when MIPI_DSI_CLOCK_NON_CONTINUOUS was set in the dsi_mode_flags. However this really should be based on MIPI_DSI_MODE_NO_EOT_PACKET instead. Some displays require EOT packets and a continuous clock which was an impossible combination to achieve with

Re: [Intel-gfx] [PATCH v10 09/15] drm/syncobj: Add deadline support for syncobj waits

2023-03-19 Thread Faith Ekstrand
On Wed, Mar 8, 2023 at 9:54 AM Rob Clark wrote: > From: Rob Clark > > Add a new flag to let userspace provide a deadline as a hint for syncobj > and timeline waits. This gives a hint to the driver signaling the > backing fences about how soon userspace needs it to compete work, so it > can

Re: [PATCH v4 0/8] Support ROHM BU27034 ALS sensor

2023-03-19 Thread Jonathan Cameron
On Fri, 17 Mar 2023 16:40:16 +0200 Matti Vaittinen wrote: > Support ROHM BU27034 ALS sensor Hi Matti, For ease of when this is ready to apply, better to just keep key mailing lists and individuals cc'd on all patches. Mind you cc list is random enough I'm guessing it wasn't deliberate (like

[PATCH] video: ARM CLCD: Use of_address_to_resource()

2023-03-19 Thread Rob Herring
Replace of_get_address() and of_translate_address() with single call to of_address_to_resource(). With this, use ioremap() instead of of_iomap() which would parse "reg" a second time. Signed-off-by: Rob Herring --- drivers/video/fbdev/amba-clcd.c | 24 +--- 1 file changed,

[PATCH v2 1/2] drm/virtio: Refactor job submission code path

2023-03-19 Thread Dmitry Osipenko
Move virtio_gpu_execbuffer_ioctl() into separate virtgpu_submit.c file and refactor the code along the way to ease addition of new features to the ioctl. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/virtio/Makefile | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.h| 4 +

[PATCH v2 2/2] drm/virtio: Support sync objects

2023-03-19 Thread Dmitry Osipenko
Add sync object DRM UAPI support to VirtIO-GPU driver. It's required for enabling a full-featured Vulkan fencing by Venus and native context VirtIO-GPU Mesa drivers. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/virtio/virtgpu_drv.c| 3 +- drivers/gpu/drm/virtio/virtgpu_submit.c |

[PATCH v2 0/2] Add sync object UAPI support to VirtIO-GPU driver

2023-03-19 Thread Dmitry Osipenko
We have multiple Vulkan context types that are awaiting for the addition of the sync object DRM UAPI support to the VirtIO-GPU kernel driver: 1. Venus context 2. Native contexts (virtio-freedreno, virtio-intel, virtio-amdgpu) Mesa core supports DRM sync object UAPI, providing Vulkan drivers

[PATCH 1/1] drm/sun4i: tcon: Fix setting PLL rate when using DSI

2023-03-19 Thread Frank Oltmanns
Set the required PLL rate by adjusting the dotclock rate when calling clk_set_rate() when using DSI. According to the Allwinners A64's BSP code, a TCON divider of 4 has to be used and the PLL rate needs to be set to the following frequency when using DSI: PLL rate = DCLK * bpp / lanes After

[PATCH 0/1] Fixing the DSI dot clock on Allwinner

2023-03-19 Thread Frank Oltmanns
According to the Allwinner A64's BSP code, the PLL rate needs to be set to the following frequency when using DSI: PLL rate = DCLK * bpp / lanes Source: [1] The relevant lines for DSI (ommisions and comments mine): dclk_rate = lcdp->panel_info.lcd_dclk_freq * 100; lcd_rate = dclk_rate *

Re: [PATCH 02/37] drm/xlnx/zynqmp_disp: Use correct kerneldoc formatting in zynqmp_disp

2023-03-19 Thread Laurent Pinchart
Hi Lee, Thank you for the patch. On Fri, Mar 17, 2023 at 08:16:43AM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/xlnx/zynqmp_disp.c:151: warning: Function parameter or > member 'blend' not described in 'zynqmp_disp' >

[PATCH] drm/gma500: remove unused gma_pipe_event function

2023-03-19 Thread Tom Rix
clang with W=1 reports drivers/gpu/drm/gma500/psb_irq.c:35:19: error: unused function 'gma_pipe_event' [-Werror,-Wunused-function] static inline u32 gma_pipe_event(int pipe) ^ This function is not used, so remove it. Signed-off-by: Tom Rix ---

Re: [PATCH 12/15] auxdisplay: ht16k33: Introduce backlight_get_brightness()

2023-03-19 Thread Stephen Kitt
Hi, On Mon, 09 Jan 2023 11:12:02 +0100, Robin van der Gracht wrote: > On 2023-01-08 10:29, Sam Ravnborg wrote: > > On Sat, Jan 07, 2023 at 10:02:38PM +0100, Miguel Ojeda wrote: > >> On Sat, Jan 7, 2023 at 7:26 PM Sam Ravnborg via B4 Submission Endpoint > >> wrote: > >> > > >> > Introduce

Re: [PATCH 04/37] drm/xlnx/zynqmp_dp: Fix function name zynqmp_dp_link_train() -> zynqmp_dp_train()

2023-03-19 Thread Laurent Pinchart
Hi Lee, Thank you for the patch. On Fri, Mar 17, 2023 at 08:16:45AM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/xlnx/zynqmp_dp.c:793: warning: expecting prototype for > zynqmp_dp_link_train(). Prototype was for zynqmp_dp_train() instead > >

[PATCH] Revert "drm/i915/hwmon: Enable PL1 power limit"

2023-03-19 Thread Ashutosh Dixit
This reverts commit ee892ea83d99610fa33bea612de058e0955eec3a. 0349c41b0596 ("drm/i915/hwmon: Enable PL1 power limit") was reverted in 05d5562e401e ("Revert "drm/i915/hwmon: Enable PL1 power limit"") but has appeared again as ee892ea83d99 ("drm/i915/hwmon: Enable PL1 power limit"). Revert it

Re: [PATCH 01/19] drm/bridge: cdns-mhdp8546: Improve error reporting in remove callback

2023-03-19 Thread Uwe Kleine-König
On Sun, Mar 19, 2023 at 03:13:01PM +0200, Laurent Pinchart wrote: > Hi Uwe, > > Thank you for the patch. > > On Sat, Mar 18, 2023 at 08:07:46PM +0100, Uwe Kleine-König wrote: > > Replace the generic error message issued by the driver core when the remove > > callback returns non-zero ("remove

Re: [PATCH 00/19] drm/bridge: Convert to platform remove callback returning void

2023-03-19 Thread Laurent Pinchart
Hi Uwe, Thank you for the patches. On Sat, Mar 18, 2023 at 08:07:45PM +0100, Uwe Kleine-König wrote: > Hello, > > this series adapts the platform drivers below drivers/gpu/drm/bridge to use > the > .remove_new() callback. Compared to the traditional .remove() callback > .remove_new() returns

Re: [PATCH 01/19] drm/bridge: cdns-mhdp8546: Improve error reporting in remove callback

2023-03-19 Thread Laurent Pinchart
Hi Uwe, Thank you for the patch. On Sat, Mar 18, 2023 at 08:07:46PM +0100, Uwe Kleine-König wrote: > Replace the generic error message issued by the driver core when the remove > callback returns non-zero ("remove callback returned a non-zero value. This > will be ignored.") by a message that

[PATCH V2] drm/bridge: adv7533: Fix adv7533_mode_valid for adv7533 and adv7535

2023-03-19 Thread Adam Ford
When dynamically switching lanes was removed, the intent of the code was to check to make sure that higher speed items used 4 lanes, but it had the unintended consequence of removing the slower speeds for 4-lane users. This attempts to remedy this by doing a check to see that the max frequency

Re: [PATCH] dt-bindings: display: Drop unneeded quotes

2023-03-19 Thread Krzysztof Kozlowski
On 18/03/2023 00:36, Rob Herring wrote: > Cleanup bindings dropping unneeded quotes. Once all these are fixed, > checking for this can be enabled in yamllint. > > Signed-off-by: Rob Herring > --- Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH v6 8/9] dt-bindings: display/msm: dsi-controller-main: Add SM6115

2023-03-19 Thread Krzysztof Kozlowski
On 18/03/2023 14:42, Konrad Dybcio wrote: > Add a compatible for the DSI on SM6115. > > Acked-by: Rob Herring > Reviewed-by: Marijn Suijten > Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH v6 1/9] dt-bindings: display/msm: dsi-controller-main: Fix deprecated QCM2290 compatible

2023-03-19 Thread Krzysztof Kozlowski
On 18/03/2023 14:42, Konrad Dybcio wrote: > The point of the previous cleanup was to disallow "qcom,mdss-dsi-ctrl" > alone. This however didn't quite work out and the property became > undocumented instead of deprecated. Fix that. > > Additionally, the "qcom," prefix was missed previously. Fix

Re: [PATCH 2/2] usb: gadget: functionfs: Add DMABUF import interface

2023-03-19 Thread Paul Cercueil
Hi Christian, Le mardi 14 mars 2023 à 12:59 +0100, Christian König a écrit : > > Am 14.03.23 um 11:52 schrieb Paul Cercueil: > > > > This patch introduces three new ioctls. They all should be > > > > called > > > > on a > > > > data endpoint (ie. not ep0). They are: > > > > > > > > -

[PATCH 4/4] accel/habanalabs: remove redundant TODOs

2023-03-19 Thread Oded Gabbay
From: Ofir Bitton As mmu refactor and nic resume are not relevant anymore, remove their TODO comments. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/gaudi2/gaudi2.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 2/4] accel/habanalabs: add handling for unexpected user event

2023-03-19 Thread Oded Gabbay
From: Ofir Bitton In order for the user to be aware of unexpected events in Gaudi2 that aren't assigned to a specific engine, we are adding the handling of this dedicated interrupt. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

[PATCH 1/4] accel/habanalabs: fix a missing-braces compilation warning

2023-03-19 Thread Oded Gabbay
From: Tomer Tayar Replace initialization of "struct cpucp_packet" from "{0} to "{}" to avoid a "missing braces around initializer" compilation warning. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/firmware_if.c | 2 +- 1

[PATCH 3/4] accel/habanalabs: change razwi handle after fw fix

2023-03-19 Thread Oded Gabbay
From: Dani Liberman FW had one data route for tpc0 and tpc1 when running in secured mode and a different one when running without secured mode. After fw fixed this issue, both mode have the same data path. Signed-off-by: Dani Liberman Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

[PATCH 3/4] accel/habanalabs: fix page fault event clear

2023-03-19 Thread Oded Gabbay
From: Dani Liberman After getting page fault in gaudi2, we need to clear the valid bit instead of the address. Signed-off-by: Dani Liberman Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 4/4] accel/habanalabs: fix a maybe-uninitialized compilation warnings

2023-03-19 Thread Oded Gabbay
From: Tomer Tayar Initialize 'index' in gaudi2_handle_qman_err() and 'offset' in gaudi2_get_nic_idle_status() to avoid "maybe-uninitialized" compilation warnings. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/gaudi2/gaudi2.c | 4

[PATCH 2/4] accel/habanalabs: expose rotator mask to userspace

2023-03-19 Thread Oded Gabbay
From: Ofir Bitton All engine masks are exposed to user, make sure user gets the correct rotator enabled mask in gaudi2. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/habanalabs.h | 5 +++--

[PATCH 1/4] accel/habanalabs: regenerate gaudi2 ids_map_extended

2023-03-19 Thread Oded Gabbay
From: Ohad Sharabi Some names of events has been modified/added. Signed-off-by: Ohad Sharabi Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- .../gaudi2/gaudi2_async_ids_map_extended.h| 76 +-- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git

Re: [PATCH 39/51] video: fbdev: sh_mobile_lcdcfb: Convert to platform remove callback returning void

2023-03-19 Thread Geert Uytterhoeven
On Sun, Mar 19, 2023 at 12:54 AM Uwe Kleine-König wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this

Re: [PATCH] accel: Link to compute accelerator subsystem intro

2023-03-19 Thread Oded Gabbay
On Tue, Mar 7, 2023 at 6:04 PM Jeffrey Hugo wrote: > > On 3/6/2023 9:35 PM, Bagas Sanjaya wrote: > > Commit 2c204f3d53218d ("accel: add dedicated minor for accelerator > > devices") adds link to accelerator nodes section of DRM internals doc > > (Documentation/gpu/drm-internals.rst), but the

Re: [REGRESSION] Missing nouveau backlight control on 6.2.x kernel

2023-03-19 Thread Takashi Iwai
On Sat, 18 Mar 2023 17:49:28 +0100, Hans de Goede wrote: > > Hi Takashi, > > On 3/17/23 11:04, Takashi Iwai wrote: > > Hi, > > > > we've received a regression report on openSUSE Bugzilla about the > > missing backlight control of nouveau device: > >

Re: [PATCH v4 2/8] kunit: drm/tests: move generic helpers

2023-03-19 Thread Matti Vaittinen
Hi Maxime & All First of all - I am sorry. During the last minute rebase I accidentally dropped the header file from this series. Will fix that for v5. (Also the build bot pointed this mistake). On 3/17/23 17:09, Maxime Ripard wrote: Hi Matti, On Fri, Mar 17, 2023 at 04:42:25PM +0200,