Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Thomas Zimmermann
Hi Am 01.07.23 um 23:44 schrieb Javier Martinez Canillas: Currently the CONFIG_FB option has to be enabled even if no legacy fbdev drivers are needed (e.g: only to have support for framebuffer consoles). The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB and so it can only

Re: [PATCH] drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable()

2023-07-02 Thread Tuo Li
Hello, Thanks for your reply! The report is publicly available at https://sites.google.com/view/basscheck/home. And this patch is from the 8th report on this website. Thanks, Tuo Li On Sat, Jul 1, 2023 at 4:01 PM Krzysztof Kozlowski < krzysztof.kozlow...@linaro.org> wrote: > On 30/06/2023 04:19

Re: [PATCH v4 07/19] drm/msm/dpu: drop zero features from dpu_mdp_cfg data

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Drop useless zero assignments to the dpu_mdp_cfg::features field. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 06/19] drm/msm/dpu: expand .clk_ctrls definitions

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Use more standard initialisation for .clk_ctrls definitions. Define a single .clk_ctrls field and use array init inside. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 05/19] drm/msm/dpu: drop enum dpu_mdp and MDP_TOP value

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Since there is always just a single MDP_TOP instance, drop the enum dpu_mdp and corresponding index value. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: There is always a single MDP TOP block. Drop the mdp_count field and stop declaring dpu_mdp_cfg instances as arrays. Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- The change drops mdp_count and stops using the array which is fi

Re: [PATCH v4 03/19] drm/msm/dpu: simplify peer LM handling

2023-07-02 Thread Abhinav Kumar
On 7/2/2023 6:36 PM, Dmitry Baryshkov wrote: On Mon, 3 Jul 2023 at 04:34, Abhinav Kumar wrote: On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: For each LM there is at max 1 peer LM which can be driven by the same CTL, so there no need to have a mask instead of just an ID of the peer LM.

Re: [PATCH v4 03/19] drm/msm/dpu: simplify peer LM handling

2023-07-02 Thread Dmitry Baryshkov
On Mon, 3 Jul 2023 at 04:34, Abhinav Kumar wrote: > > > > On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: > > For each LM there is at max 1 peer LM which can be driven by the same > > CTL, so there no need to have a mask instead of just an ID of the peer > > LM. > > > > The change is ok but the word

Re: [PATCH v4 03/19] drm/msm/dpu: simplify peer LM handling

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: For each LM there is at max 1 peer LM which can be driven by the same CTL, so there no need to have a mask instead of just an ID of the peer LM. The change is ok but the wording seems incorrect. Are you implying that only LM0 and LM1 can be use

Re: [PATCH v4 02/19] drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: In several catalog entries we did not use existing MSM_DP_CONTROLLER_n constants. Fill them in. Also use freshly defined MSM_DSI_CONTROLLER_n for DSI interfaces. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshk

[PATCH 11/13] drm/msm: only register 'kms' debug file if KMS is used

2023-07-02 Thread Dmitry Baryshkov
There is little point in having the empty debugfs file which always returns -ENODEV. Change this file to be created only if KMS is actually used. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_debugfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 08/13] drm/msm: remove shutdown callback from msm_platform_driver

2023-07-02 Thread Dmitry Baryshkov
The msm_drv_shutdown only makes sense for the KMS-enabled devices, while msm_platform_driver is only used in the headless case. Remove the shutdown callback from the driver structure. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_drv.c | 1 - 1 file changed, 1 deletion(-) diff --g

[PATCH 12/13] drm/msm: make fb debugfs file available only in KMS case

2023-07-02 Thread Dmitry Baryshkov
Don't register the 'fb' debugfs file, if there is no KMS (and so no framebuffers). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_debugfs.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b/drivers/gpu/drm/msm/msm_debugf

[PATCH 13/13] drm/msm: carve out KMS code from msm_drv.c

2023-07-02 Thread Dmitry Baryshkov
The msm_drv.c contains generic code intermixed with KMS handling code. Move all KMS-related code to a separate msm_kms.c file, cleaning up init code while doing this move. This also prevents msm driver from registering modesetting / atomic interfaces in the headless case. Signed-off-by: Dmitry Bar

[PATCH 07/13] drm/msm: rename msm_pm_prepare/complete to note the KMS nature

2023-07-02 Thread Dmitry Baryshkov
Rename the msm_pm_prepare() and msm_pm_complete() to msm_kms_pm_prepare() and msm_kms_pm_complete() consequently. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++-- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 4 ++-- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 4

[PATCH 10/13] drm/msm: switch to drmm_mode_config_init()

2023-07-02 Thread Dmitry Baryshkov
Switch to drmm_mode_config_init() instead of drm_mode_config_init(). Drop drm_mode_config_cleanup() calls. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_drv.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu

[PATCH 09/13] drm/msm: rename msm_drv_shutdown() to msm_kms_shutdown()

2023-07-02 Thread Dmitry Baryshkov
The msm_drv_shutdown function should only be used in the KMS case. Rename it accordingly. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 2 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +- drivers/gpu/drm/msm/msm

[PATCH 06/13] drm/msm: drop pm ops from the headless msm driver

2023-07-02 Thread Dmitry Baryshkov
The msm_pm_prepare()/msm_pm_complete() only make sense for the KMS-enabled devices, they have priv->kms guards inside. Drop global msm_pm_ops, which were used only by the headless msm device. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_drv.c | 6 -- 1 file changed, 6 deletion

[PATCH 03/13] drm/msm/dp: move pdev from struct dp_display_private to struct msm_dp

2023-07-02 Thread Dmitry Baryshkov
The dp_drm needs accessing the DP's platform device. Move pdev to the public structure. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 25 - drivers/gpu/drm/msm/dp/dp_display.h | 1 + 2 files changed, 13 insertions(+), 13 deletions(-) diff --g

[PATCH 05/13] drm/msm: remove msm_drm_private::bridges field

2023-07-02 Thread Dmitry Baryshkov
As all output devices have switched to devm_drm_bridge_add(), we can drop the bridges array from struct msm_drm_private. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_drv.c | 4 drivers/gpu/drm/msm/msm_drv.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/drivers/gpu/dr

[PATCH 02/13] drm/msm/hdmi: switch to devm_drm_bridge_add()

2023-07-02 Thread Dmitry Baryshkov
Make MSM HDMI driver use devm_drm_bridge_add() instead of plain drm_bridge_add(). As the driver doesn't require any additional cleanup, stop adding created bridge to the priv->bridges array. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi.c| 22 +-- driv

[PATCH 04/13] drm/msm/dp: switch to devm_drm_bridge_add()

2023-07-02 Thread Dmitry Baryshkov
Make MSM DP driver use devm_drm_bridge_add() instead of plain drm_bridge_add(). As the driver doesn't require any additional cleanup, stop adding created bridge to the priv->bridges array. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 9 ++--- drivers/gpu/drm/msm

[PATCH 01/13] drm/msm/dsi: switch to devm_drm_bridge_add()

2023-07-02 Thread Dmitry Baryshkov
Make MSM DSI driver use devm_drm_bridge_add() instead of plain drm_bridge_add(). As the driver doesn't require any additional cleanup, stop adding created bridge to the priv->bridges array. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi.c | 28 +

[PATCH 00/13] drm/msm: move KMS code from msm_drv.c

2023-07-02 Thread Dmitry Baryshkov
Currently both msm_drm_init() and msm_drm_uninit() functions are trying to handle both normal and headless Adreno cases. This results in a suboptimal code, since headless case still gets modesetting and atomic interfaces enabled. Two mentioned functions are a spaghetti of `if (priv->kms)' condition

[PATCH v3 3/4] drm/msm/mdp4: move resource allocation to the _probe function

2023-07-02 Thread Dmitry Baryshkov
To let the probe function bail early if any of the resources is unavailable, move resource allocattion from kms_init directly to the probe callback. While we are at it, replace irq_of_parse_and_map() with platform_get_irq(). Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers

[PATCH v3 4/4] drm/msm/mdp5: move resource allocation to the _probe function

2023-07-02 Thread Dmitry Baryshkov
To let the probe function bail early if any of the resources is unavailable, move resource allocattion from kms_init directly to the probe callback. Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 100 ++- 1 file chan

[PATCH v3 0/4] drm/msm: move resource allocation to the _probe function

2023-07-02 Thread Dmitry Baryshkov
This patchset was left untouched for almost a year. Let's reiterate it in attempt to solve the long-standing issue. As discussed several times on IRC, move display subdriver resource allocation from kms_init to probe time to let it bail early. Changes since v2: - Move even more resource allocatio

[PATCH v3 1/4] drm/msm: allow passing struct msm_kms to msm_drv_probe()

2023-07-02 Thread Dmitry Baryshkov
In preparation of moving resource allocation to the probe time, allow MSM KMS drivers to pass struct msm_kms pointer via msm_drv_probe(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 2 +- drivers/gpu/drm/msm/disp

[PATCH v3 2/4] drm/msm/dpu: move resource allocation to the _probe function

2023-07-02 Thread Dmitry Baryshkov
To let the probe function bail early if any of the resources is unavailable, move resource allocattion from kms_init directly to the probe callback. While we are at it, replace irq_of_parse_and_map() with platform_get_irq(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_k

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-02 Thread André Almeida
Hi Guilherme, Em 02/07/2023 13:44, Guilherme G. Piccoli escreveu: This reverts commit 06c3a652a787efc960af7c8816036d25c4227c6c. After this commit, the Steam Deck cannot boot with graphics anymore; the following message is observed on dmesg: "[drm] ERROR [CRTC:67:crtc-0] flip_done timed out" N

Re: [PATCH v4] drm/vkms: Add support to 1D gamma LUT

2023-07-02 Thread Maira Canal
On 6/27/23 05:12, Pekka Paalanen wrote: On Mon, 26 Jun 2023 14:35:25 -0300 Maira Canal wrote: Hi Pekka, On 6/26/23 05:17, Pekka Paalanen wrote: On Sat, 24 Jun 2023 18:48:08 -0300 Maira Canal wrote: Hi Arthur, Thanks for working on this feature for the VKMS! On 6/21/23 16:41, Arthur G

[PATCH v3 3/3] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled

2023-07-02 Thread Javier Martinez Canillas
Now that fbdev core has been split in FB_CORE and FB, make the DRM symbol to select the FB_CORE option if the DRM fbdev emulation layer is enabled. This allows to disable the CONFIG_FB option if is not needed, which will avoid the need to explicitly disable each of the legacy fbdev drivers. Signe

[PATCH v3 2/3] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Javier Martinez Canillas
Currently the CONFIG_FB option has to be enabled even if no legacy fbdev drivers are needed (e.g: only to have support for framebuffer consoles). The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB and so it can only be enabled if that dependency is enabled as well. That means

[PATCH v3 1/3] drm: Improve Kconfig symbol prompt and help texts

2023-07-02 Thread Javier Martinez Canillas
The current text were not changed since the original Linux-2.6.12-rc2 git import. Let's improve it and make that more aligned with the DRM/KMS docs. Suggested-by: Geert Uytterhoeven Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/Kconfig | 22 +---

[PATCH v3 0/3] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-02 Thread Javier Martinez Canillas
This patch series splits the fbdev core support in two different Kconfig symbols: FB and FB_CORE. The motivation for this is to allow CONFIG_FB to be disabled, while still having the the core fbdev support needed for the CONFIG_DRM_FBDEV_EMULATION to be enabled. The motivation is automatically disa

[PATCH v2 6/6] drm/ast: Register as a vga client to vgaarb by calling vga_client_register()

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng Becasuse the VGA Display Controller in the ASpeed BMC chip is also a PCIe device, the Software Programming guide of AST2400 say that it is Fully IBM VGA compliant, thus, it should also particiate in the arbitration. Cc: Thomas Zimmermann Cc: Jocelyn Falempe Cc: David Airlie

[PATCH v2 4/6] drm/radeon: Implement the is_boot_device callback function

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng [why] The vga_is_firmware_default() defined in drivers/pci/vgaarb.c is arch-dependent, it's a dummy on non-x86 architectures currently. This made VGAARB lost an important condition for the arbitration. It could still be wrong even if we remove the #ifdef and #endif guards. bec

[PATCH v2 5/6] drm/i915: Implement the is_boot_device callback function

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng This patch add a function to identify if a device is the default boot selected by the firmware, it require the GPU has firmware framebuffer driver support (such as efifb). If a specific hardware doesn't have firmware framebuffer support, then the introduced function will just r

[PATCH v2 3/6] drm/amdgpu: Implement the is_boot_device callback function

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng [why] The vga_is_firmware_default() defined in drivers/pci/vgaarb.c is arch-dependent, it's a dummy on non-x86 architectures currently. This made VGAARB lost an important condition for the arbitration. It could still be wrong even if we remove the #ifdef and #endif guards. bec

[PATCH v2 2/6] PCI/VGA: Improve the default VGA device selection

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng Currently, the default VGA device selection is not perfect. Potential problems are: 1) This function is a no-op on non-x86 architectures. 2) It does not take the PCI Bar may get relocated into consideration. 3) It is not effective for the PCI device without a dedicated VRAM Ba

[PATCH v2 1/6] video/aperture: Add a helper to detect if an aperture contains firmware FB

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng This patch adds the aperture_contain_firmware_fb() function to do the determination. Unfortunately due to the fact that apertures list will be freed dynamically, the location and size information of the firmware fb will be lost after dedicated drivers call aperture_remove_confl

[PATCH v2 0/6] PCI/VGA: Improve the default VGA device selection

2023-07-02 Thread Sui Jingfeng
From: Sui Jingfeng Currently, the default VGA device selection is not perfect. Potential problems are: 1) This function is a no-op on non-x86 architectures. 2) It does not take the PCI Bar may get relocated into consideration. 3) It is not effective for the PCI device without a dedicated VRAM Ba

[PATCH] dt-bindings: cleanup DTS example whitespaces

2023-07-02 Thread Krzysztof Kozlowski
The DTS code coding style expects spaces around '=' sign. Signed-off-by: Krzysztof Kozlowski --- Rob, Maybe this could go via your tree? Rebased on your for-next: v6.4-rc2-45-gf0ac35049606 --- .../bindings/arm/arm,coresight-cti.yaml| 18 +- .../bindings/arm/keystone/ti

[PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-02 Thread Guilherme G. Piccoli
This reverts commit 06c3a652a787efc960af7c8816036d25c4227c6c. After this commit, the Steam Deck cannot boot with graphics anymore; the following message is observed on dmesg: "[drm] ERROR [CRTC:67:crtc-0] flip_done timed out" No other error is observed, it just stays like that. After bisecting a

Re: [PATCH v2] drm/msm/adreno: Assign revn to A635

2023-07-02 Thread Rob Clark
On Sun, Jul 2, 2023 at 7:34 AM Dmitry Baryshkov wrote: > > On 02/07/2023 17:31, Rob Clark wrote: > > On Sat, Jul 1, 2023 at 5:24 PM Dmitry Baryshkov > > wrote: > >> > >> On Sat, 1 Jul 2023 at 18:50, Rob Clark wrote: > >>> > >>> On Fri, Jun 30, 2023 at 4:12 PM Konrad Dybcio > >>> wrote: >

Re: [PATCH v2] drm/msm/adreno: Assign revn to A635

2023-07-02 Thread Dmitry Baryshkov
On 02/07/2023 17:31, Rob Clark wrote: On Sat, Jul 1, 2023 at 5:24 PM Dmitry Baryshkov wrote: On Sat, 1 Jul 2023 at 18:50, Rob Clark wrote: On Fri, Jun 30, 2023 at 4:12 PM Konrad Dybcio wrote: Recently, a WARN_ON() was introduced to ensure that revn is filled before adreno_is_aXYZ is call

Re: [PATCH v2] drm/msm/adreno: Assign revn to A635

2023-07-02 Thread Rob Clark
On Sat, Jul 1, 2023 at 5:24 PM Dmitry Baryshkov wrote: > > On Sat, 1 Jul 2023 at 18:50, Rob Clark wrote: > > > > On Fri, Jun 30, 2023 at 4:12 PM Konrad Dybcio > > wrote: > > > > > > Recently, a WARN_ON() was introduced to ensure that revn is filled before > > > adreno_is_aXYZ is called. This ho

Re: [PATCH] staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER

2023-07-02 Thread Raphaël Gallais-Pou
Hi, Le 02/07/2023 à 14:02, Greg Kroah-Hartman a écrit : On Sun, Jul 02, 2023 at 10:03:24AM +0200, Raphael Gallais-Pou wrote: Using FBTFT_REGISTER_DRIVER resolves to a NULL struct spi_device_id. This ultimately causes the module to an early exit at probe time. So this doesn't work at all today

Re: [PATCH] staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER

2023-07-02 Thread Greg Kroah-Hartman
On Sun, Jul 02, 2023 at 10:03:24AM +0200, Raphael Gallais-Pou wrote: > Using FBTFT_REGISTER_DRIVER resolves to a NULL struct spi_device_id. This > ultimately causes the module to an early exit at probe time. So this doesn't work at all today? Has it ever worked? What commit does thi fix? > In a

Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: > Hi Arnd, > [...] >> >> That would leave CONFIG_FB_DEVICE as the only user visible option >> for DRM-only configs, which is slightly odd for the menuconfig, >> so I still wonder if that could be done differently. >> >> Is there actually a point in configurations for

Re: [PATCH v2 2/2] drm: Make fbdev emulation select FB_CORE instead of depends on FB

2023-07-02 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: > Hi Arnd, > > On Sun, Jul 2, 2023 at 12:07 AM Arnd Bergmann wrote: >> On Sat, Jul 1, 2023, at 23:44, Javier Martinez Canillas wrote: >> > Now that the fbdev core has been split in FB_CORE and FB, make DRM fbdev >> > emulation layer to just select the former. >> > >> >

[PATCH] staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER

2023-07-02 Thread Raphael Gallais-Pou
Using FBTFT_REGISTER_DRIVER resolves to a NULL struct spi_device_id. This ultimately causes the module to an early exit at probe time. In addition the MODULE_ALIASes can be dropped. Signed-off-by: Raphael Gallais-Pou --- drivers/staging/fbtft/fb_ili9341.c | 7 +-- 1 file changed, 1 insertion

Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Geert Uytterhoeven
Hi Arnd, On Sun, Jul 2, 2023 at 12:25 AM Arnd Bergmann wrote: > On Sat, Jul 1, 2023, at 23:44, Javier Martinez Canillas wrote: > > Currently the CONFIG_FB option has to be enabled even if no legacy fbdev > > drivers are needed (e.g: only to have support for framebuffer consoles). > > > > The DRM

Re: [PATCH v2 2/2] drm: Make fbdev emulation select FB_CORE instead of depends on FB

2023-07-02 Thread Geert Uytterhoeven
Hi Arnd, On Sun, Jul 2, 2023 at 12:07 AM Arnd Bergmann wrote: > On Sat, Jul 1, 2023, at 23:44, Javier Martinez Canillas wrote: > > Now that the fbdev core has been split in FB_CORE and FB, make DRM fbdev > > emulation layer to just select the former. > > > > This allows to disable the CONFIG_FB o

Re: [PATCH v2 15/24] habanalabs: use vmalloc_array and vcalloc

2023-07-02 Thread Oded Gabbay
On Tue, Jun 27, 2023 at 5:44 PM Julia Lawall wrote: > > Use vmalloc_array and vcalloc to protect against > multiplication overflows. > > The changes were done using the following Coccinelle > semantic patch: > > // > @initialize:ocaml@ > @@ > > let rename alloc = > match alloc with > "vmall