Re: [PATCH V2] treewide: Add missing semicolons to __assign_str uses

2021-06-12 Thread Steven Rostedt
On Sat, 12 Jun 2021 08:42:27 -0700 Joe Perches wrote: > The __assign_str macro has an unusual ending semicolon but the vast > majority of uses of the macro already have semicolon termination. > > $ git grep -P '\b__assign_str\b' | wc -l > 551 > $ git grep -P '\b__assign_str\b.*;' | wc -l > 480 >

[Bug 213391] AMDGPU retries page fault with some specific processes amdgpu and sometimes followed [gfxhub0] retry page fault until *ERROR* ring gfx timeout, but soft recovered

2021-06-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213391 --- Comment #11 from Lahfa Samy (s...@lahfa.xyz) --- Hi Dimitris, what is your current kernel version under Fedora, or the output of this command "uname --kernel-release" in a terminal, I cannot try the patch given however I haven't run into the i

[PATCH V2] treewide: Add missing semicolons to __assign_str uses

2021-06-12 Thread Joe Perches
The __assign_str macro has an unusual ending semicolon but the vast majority of uses of the macro already have semicolon termination. $ git grep -P '\b__assign_str\b' | wc -l 551 $ git grep -P '\b__assign_str\b.*;' | wc -l 480 Add semicolons to the __assign_str() uses without semicolon terminatio

vc4_bo_create: Failed to allocate from CMA

2021-06-12 Thread Stefan Wahren
Hi, while testing the mainline kernel (arm64, defconfig) on Raspberry Pi 3 B Plus with Raspberry Pi OS - 64 bit, sometimes X doesn't start into desktop properly (unexpected and unusable login screen instead of auto login or mouse pointer is show shorty and than switch back to black screen in a loo

[PATCH 2/2] drm: Protect drm_master pointers in drm_lease.c

2021-06-12 Thread Desmond Cheong Zhi Xi
This patch ensures that the device's master mutex is acquired before accessing pointers to struct drm_master that are subsequently dereferenced. Without the mutex, the struct drm_master may be freed concurrently by another process calling drm_setmaster_ioctl(). This could then lead to use-after-fre

[PATCH 1/2] drm: Add a locked version of drm_is_current_master

2021-06-12 Thread Desmond Cheong Zhi Xi
While checking the master status of the DRM file in drm_is_current_master(), the device's master mutex should be held. Without the mutex, the pointer fpriv->master may be freed concurrently by another process calling drm_setmaster_ioctl(). This could lead to use-after-free errors when the pointer i

[PATCH 0/2] drm: Address potential UAF bugs with drm_master ptrs

2021-06-12 Thread Desmond Cheong Zhi Xi
This patch series addresses potential use-after-free errors when dereferencing pointers to struct drm_master. These were identified after one such bug was caught by Syzbot in drm_getunique(): https://syzkaller.appspot.com/bug?id=148d2f1dfac64af52ffd27b661981a540724f803 The series is broken up in

[v6 2/5] drm/panel-simple: Support DP AUX backlight

2021-06-12 Thread Rajeev Nandan
If there is no backlight specified in the device tree and the panel has access to the DP AUX channel then create a DP AUX backlight if supported by the panel. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson --- (no changes since v5) This patch depends on the previous patch (2/5) of

[v6 5/5] drm/panel-simple: Add Samsung ATNA33XC20

2021-06-12 Thread Rajeev Nandan
Add Samsung 13.3" FHD eDP AMOLED panel. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson --- (no changes since v5) Changes in v4: - New Changes in v5: - Remove "uses_dpcd_backlight" property, not required now. (Douglas) drivers/gpu/drm/panel/panel-simple.c | 33 +++

[v6 1/5] drm/panel: add basic DP AUX backlight support

2021-06-12 Thread Rajeev Nandan
Some panels support backlight control over DP AUX channel using VESA's standard backlight control interface. Using new DRM eDP backlight helpers, add support to create and register a backlight for those panels in drm_panel to simplify the panel drivers. The panel driver with access to "struct drm_

[v6 4/5] dt-bindings: display: simple: Add Samsung ATNA33XC20

2021-06-12 Thread Rajeev Nandan
Add Samsung 13.3" FHD eDP AMOLED panel. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson Acked-by: Rob Herring --- (no changes since v4) Changes in v4: - New Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc

[v6 3/5] drm/panel-simple: Support for delays between GPIO & regulator

2021-06-12 Thread Rajeev Nandan
Some panels datasheets may specify a delay between the enable GPIO and the regulator. Support this in panel-simple. Signed-off-by: Rajeev Nandan Reviewed-by: Douglas Anderson --- Changes in v4: - New Changes in v5: - Update description (Douglas) - Warn if "power_to_enable" or "disable_to_power

[v6 0/5] drm: Support basic DPCD backlight in panel-simple and add a new panel ATNA33XC20

2021-06-12 Thread Rajeev Nandan
This series adds the support for the eDP panel that needs the backlight controlling over the DP AUX channel using DPCD registers of the panel as per the VESA's standard. This series also adds support for the Samsung eDP AMOLED panel that needs DP AUX to control the backlight, and introduces new de

Re: [PATCH] fix for checkpatch.pl

2021-06-12 Thread Greg KH
On Sat, Jun 12, 2021 at 05:15:05PM +0530, arjuncr wrote: > Signed-off-by: arjuncr > --- > drivers/staging/fbtft/fbtft-bus.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/fbtft/fbtft-bus.c > b/drivers/staging/fbtft/fbtft-bus.c > index 63c65dd67..cdb

Re: vc4: hdmi: audio: ASoC: error at snd_soc_dai_startup on fef00700.hdmi

2021-06-12 Thread Stefan Wahren
Hi Maxime, Am 04.06.21 um 11:02 schrieb Maxime Ripard: > Hi Stefan, > > I would assume it's due to this: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/vc4/vc4_hdmi.c#n1083 > > It pre-dates my time working on the vc4 driver so I'm not really sure > what t

Re: [PATCH v2] drm/msm/dpu: Avoid ABBA deadlock between IRQ modules

2021-06-12 Thread Dmitry Baryshkov
On 11/06/2021 20:00, Bjorn Andersson wrote: Handling of the interrupt callback lists is done in dpu_core_irq.c, under the "cb_lock" spinlock. When these operations results in the need for enableing or disabling the IRQ in the hardware the code jumps to dpu_hw_interrupts.c, which protects its oper

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/ttm: Adjust gem flags and caching settings after a move

2021-06-12 Thread Thomas Hellström
On Fri, 2021-06-11 at 17:29 +0100, Matthew Auld wrote: > On Fri, 11 Jun 2021 at 15:55, Thomas Hellström > wrote: > > > > After a TTM move we need to update the i915 gem flags and caching > > settings to reflect the new placement. > > Also introduce gpu_binds_iomem() and cpu_maps_iomem() to clean