drm: Increase COMPILE_TEST=y coverage
Subsystems (11)
v2 cover drm: Increase COMPILE_TEST=y coverage
From: Ville Syrjälä <[email protected]>
Repost of the stragglers from
https://patchwork.freedesktop.org/series/132164/
Ville Syrjälä (10):
drm/tilcdc: Allow build without __iowmb() drm/tilcdc: Allow build with COMPILE_TEST=y drm/armada: Fix printk arguments
drm/armada: Fix armada_debugfs_crtc_reg_write() return type drm/armada: Allow build with COMPILE_TEST=y drm/imx/dcss: Fix 64bit divisions
drm/imx/dcss: Allow build with COMPILE_TEST=y drm/fsl-dcu: Allow build with COMPILE_TEST=y drm/mediatek: Allow build with COMPILE_TEST=y drm/meson: Allow build with COMPILE_TEST=y
drivers/gpu/drm/armada/Kconfig | 2 +- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- drivers/gpu/drm/armada/armada_gem.c | 2 +- drivers/gpu/drm/fsl-dcu/Kconfig | 2 +- drivers/gpu/drm/imx/dcss/Kconfig | 2 +- drivers/gpu/drm/imx/dcss/dcss-scaler.c | 4 ++-- drivers/gpu/drm/mediatek/Kconfig | 4 ++-- drivers/gpu/drm/meson/Kconfig | 2 +- drivers/gpu/drm/tilcdc/Kconfig | 2 +- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 3 +++ 10 files changed, 14 insertions(+), 11 deletions(-)
Signature · 1 line
2.45.2
PATCH v2 1/10 drm/tilcdc: Allow build without __iowmb()
From: Ville Syrjälä <[email protected]>
__iowmb() isn't available on most architectures. Make its use optional so that the driver can be built on other architectures with COMPILE_TEST=y.
v2: Add a comment stating this is for COMPILE_TEST (Tomi)
--- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/tilcdc/tilcdc_regs.h +3 -0
@@ -125,7 +125,10 @@ static inline void tilcdc_write64(struct drm_device *dev, u32 reg, u64 data)#if defined(iowrite64) && !defined(iowrite64_is_nonatomic)iowrite64 (data, addr);#else +/* allow compilation without __iowmb() for COMPILE_TEST */ +#ifdef __iowmb__iowmb (); +#endif /* This compiles to strd (=64-bit write) on ARM7 */ *(volatile u64 __force *)addr =__cpu_to_le64 (data);#endif
Signature · 1 line
2.45.2
PATCH v2 2/10 drm/tilcdc: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow tilcdc to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/tilcdc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/Kconfig +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_TILCDC tristate "DRM Support for TI LCDC Display Controller" - depends on DRM && OF && ARM + depends on DRM && OF && (ARM || COMPILE_TEST) select DRM_CLIENT_SELECTION select DRM_KMS_HELPER select DRM_GEM_DMA_HELPER
Signature · 1 line
2.45.2
kernel test robot
build botRe: [PATCH v2 02/10] drm/tilcdc: Allow build with COMPILE_TEST=y
kernel test robot noticed the following build warnings:
Hi Ville,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20241003]
[cannot apply to shawnguo/for-next linus/master rmk-arm/drm-armada-devel rmk-arm/drm-armada-fixes v6.12-rc1 v6.11 v6.11-rc7 v6.12-rc1] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-tilcdc-Allow-build-without-__iowmb/20241003-192043 base: next-20241003 patch link: https://lore.kernel.org/r/20241003111851.10453-3-ville.syrjala%40linux.intel.com patch subject: [PATCH v2 02/10] drm/tilcdc: Allow build with COMPILE_TEST=y config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241004/[email protected]/config) compiler: alpha-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241004/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:24:
drivers/gpu/drm/tilcdc/tilcdc_regs.h: In function 'tilcdc_write64':
>> drivers/gpu/drm/tilcdc/tilcdc_regs.h:126:25: warning: passing argument 2 of 'iowrite64' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
126 | iowrite64(data, addr);
| ^~~~
In file included from arch/alpha/include/asm/io.h:15,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:8:
include/asm-generic/iomap.h:56:28: note: expected 'void *' but argument is of type 'volatile void *'
56 | extern void iowrite64(u64, void __iomem *);
| ^~~~~~~~~~~~~~vim +126 drivers/gpu/drm/tilcdc/tilcdc_regs.h
16ea975eac671f Rob Clark 2013-01-08 119
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 120 static inline void tilcdc_write64(struct drm_device *dev, u32 reg, u64 data)
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 121 {
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 122 struct tilcdc_drm_private *priv = dev->dev_private;
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 123 volatile void __iomem *addr = priv->mmio + reg;
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 124
4e5ca2d930aa87 Logan Gunthorpe 2017-12-05 125 #if defined(iowrite64) && !defined(iowrite64_is_nonatomic)
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 @126 iowrite64(data, addr);
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 127 #else
d5b0aa96231c76 Ville Syrjälä 2024-10-03 128 /* allow compilation without __iowmb() for COMPILE_TEST */
d5b0aa96231c76 Ville Syrjälä 2024-10-03 129 #ifdef __iowmb
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 130 __iowmb();
d5b0aa96231c76 Ville Syrjälä 2024-10-03 131 #endif
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 132 /* This compiles to strd (=64-bit write) on ARM7 */
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 133 *(volatile u64 __force *)addr = __cpu_to_le64(data);
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 134 #endif
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 135 }
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 136 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
PATCH v2 3/10 drm/armada: Fix printk arguments
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
../drivers/gpu/drm/armada/armada_gem.c: In function ‘armada_gem_pwrite_ioctl’:../drivers/gpu/drm/armada/armada_gem.c:367:27: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
367 | DRM_ERROR("invalid size: object size %u\n", dobj->obj.size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
| |
| size_t {aka long unsigned int}--- drivers/gpu/drm/armada/armada_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/armada/armada_gem.c +1 -1
@@ -364,7 +364,7 @@ int armada_gem_pwrite_ioctl(struct drm_device *dev, void *data,if (args->offset > dobj->obj.size || args->size > dobj->obj.size - args->offset) { -DRM_ERROR ("invalid size: object size %u\n" , dobj->obj.size); +DRM_ERROR ("invalid size: object size %zu\n" , dobj->obj.size); ret = -EINVAL ; goto unref; }
Signature · 1 line
2.45.2
PATCH v2 4/10 drm/armada: Fix armada_debugfs_crtc_reg_write() return type
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Change the armada_debugfs_crtc_reg_write() return type to the correct ssize_t. This makes the code actually build on certain architectures.
--- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/armada/armada_debugfs.c +1 -1
@@ -49,7 +49,7 @@ static int armada_debugfs_crtc_reg_open(struct inode *inode, struct file *file) inode->i_private); } -static int armada_debugfs_crtc_reg_write (struct file *file, +static ssize_t armada_debugfs_crtc_reg_write (struct file *file,const char __user *ptr,size_t len,loff_t *off) {struct armada_crtc *dcrtc;
Signature · 1 line
2.45.2
PATCH v2 5/10 drm/armada: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow armada to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/armada/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/armada/Kconfig +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_ARMADA tristate "DRM support for Marvell Armada SoCs" - depends on DRM && HAVE_CLK && ARM && MMU + depends on DRM && HAVE_CLK && MMU && (ARM || COMPILE_TEST) select DRM_CLIENT_SELECTION select DRM_KMS_HELPER select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION
Signature · 1 line
2.45.2
kernel test robot
build botRe: [PATCH v2 05/10] drm/armada: Allow build with COMPILE_TEST=y
kernel test robot noticed the following build warnings:
Hi Ville,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20241003]
[cannot apply to shawnguo/for-next linus/master rmk-arm/drm-armada-devel rmk-arm/drm-armada-fixes v6.12-rc1 v6.11 v6.11-rc7 v6.12-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-tilcdc-Allow-build-without-__iowmb/20241003-192043 base: next-20241003 patch link: https://lore.kernel.org/r/20241003111851.10453-6-ville.syrjala%40linux.intel.com patch subject: [PATCH v2 05/10] drm/armada: Allow build with COMPILE_TEST=y config: csky-randconfig-r121-20241006 (https://download.01.org/0day-ci/archive/20241007/[email protected]/config) compiler: csky-linux-gcc (GCC) 14.1.0 reproduce: (https://download.01.org/0day-ci/archive/20241007/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/armada/armada_gem.c:63:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *addr @@
drivers/gpu/drm/armada/armada_gem.c:63:37: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/armada/armada_gem.c:63:37: sparse: got void *addr
drivers/gpu/drm/armada/armada_gem.c:185:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/armada/armada_gem.c:185:28: sparse: expected void *addr
drivers/gpu/drm/armada/armada_gem.c:185:28: sparse: got void [noderef] __iomem *
vim +63 drivers/gpu/drm/armada/armada_gem.c
96f60e37dc6609 Russell King 2012-08-15 40
96f60e37dc6609 Russell King 2012-08-15 41 void armada_gem_free_object(struct drm_gem_object *obj)
96f60e37dc6609 Russell King 2012-08-15 42 {
96f60e37dc6609 Russell King 2012-08-15 43 struct armada_gem_object *dobj = drm_to_armada_gem(obj);
dad75a5208ec88 Simona Vetter 2020-09-04 44 struct armada_private *priv = drm_to_armada_dev(obj->dev);
96f60e37dc6609 Russell King 2012-08-15 45
96f60e37dc6609 Russell King 2012-08-15 46 DRM_DEBUG_DRIVER("release obj %p\n", dobj);
96f60e37dc6609 Russell King 2012-08-15 47
96f60e37dc6609 Russell King 2012-08-15 48 drm_gem_free_mmap_offset(&dobj->obj);
96f60e37dc6609 Russell King 2012-08-15 49
0b8ebeacf5ef43 Simona Vetter 2015-11-24 50 might_lock(&priv->linear_lock);
0b8ebeacf5ef43 Simona Vetter 2015-11-24 51
96f60e37dc6609 Russell King 2012-08-15 52 if (dobj->page) {
96f60e37dc6609 Russell King 2012-08-15 53 /* page backed memory */
96f60e37dc6609 Russell King 2012-08-15 54 unsigned int order = get_order(dobj->obj.size);
96f60e37dc6609 Russell King 2012-08-15 55 __free_pages(dobj->page, order);
96f60e37dc6609 Russell King 2012-08-15 56 } else if (dobj->linear) {
96f60e37dc6609 Russell King 2012-08-15 57 /* linear backed memory */
0b8ebeacf5ef43 Simona Vetter 2015-11-24 58 mutex_lock(&priv->linear_lock);
96f60e37dc6609 Russell King 2012-08-15 59 drm_mm_remove_node(dobj->linear);
0b8ebeacf5ef43 Simona Vetter 2015-11-24 60 mutex_unlock(&priv->linear_lock);
96f60e37dc6609 Russell King 2012-08-15 61 kfree(dobj->linear);
96f60e37dc6609 Russell King 2012-08-15 62 if (dobj->addr)
96f60e37dc6609 Russell King 2012-08-15 @63 iounmap(dobj->addr);
96f60e37dc6609 Russell King 2012-08-15 64 }
96f60e37dc6609 Russell King 2012-08-15 65
96f60e37dc6609 Russell King 2012-08-15 66 if (dobj->obj.import_attach) {
96f60e37dc6609 Russell King 2012-08-15 67 /* We only ever display imported data */
0481c8c47f5e85 Russell King 2015-06-15 68 if (dobj->sgt)
e4ea542846d0ef Dmitry Osipenko 2022-10-17 69 dma_buf_unmap_attachment_unlocked(dobj->obj.import_attach,
0481c8c47f5e85 Russell King 2015-06-15 70 dobj->sgt, DMA_TO_DEVICE);
96f60e37dc6609 Russell King 2012-08-15 71 drm_prime_gem_destroy(&dobj->obj, NULL);
96f60e37dc6609 Russell King 2012-08-15 72 }
96f60e37dc6609 Russell King 2012-08-15 73
96f60e37dc6609 Russell King 2012-08-15 74 drm_gem_object_release(&dobj->obj);
96f60e37dc6609 Russell King 2012-08-15 75
96f60e37dc6609 Russell King 2012-08-15 76 kfree(dobj);
96f60e37dc6609 Russell King 2012-08-15 77 }
96f60e37dc6609 Russell King 2012-08-15 78 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
PATCH v2 6/10 drm/imx/dcss: Fix 64bit divisions
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Use the appropriate 64bit division helpers to make the code build on 32bit architectures.
--- drivers/gpu/drm/imx/dcss/dcss-scaler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/imx/dcss/dcss-scaler.c +2 -2
@@ -136,7 +136,7 @@ static int div_q(int A, int B)else temp -=B /2 ; - result = (int )(temp /B ); + result =div_s64 (temp,B );return result; }
@@ -239,7 +239,7 @@ static void dcss_scaler_gaussian_filter(int fc_q, bool use_5_taps, ll_temp = coef[phase][i]; ll_temp <<=PSC_COEFF_PRECISION ; ll_temp += sum >>1 ; - ll_temp /= sum; + ll_temp =div_s64 (ll_temp, sum); coef[phase][i] = (int )ll_temp; } }
Signature · 1 line
2.45.2
Re: [PATCH v2 06/10] drm/imx/dcss: Fix 64bit divisions
Hi,
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Use the appropriate 64bit division helpers to make the code build on 32bit architectures.
Cc Laurentiu Palcu <[email protected]>Cc Lucas Stach <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Thanks,
Laurentiu
Quoted 29 lines
--- drivers/gpu/drm/imx/dcss/dcss-scaler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/imx/dcss/dcss-scaler.c +2
-2@@ -136,7 +136,7 @@ static int div_q(int A, int B)else temp -=B /2 ; - result = (int )(temp /B ); + result =div_s64 (temp,B );return result; }@@ -239,7 +239,7 @@ static void dcss_scaler_gaussian_filter(int fc_q, bool use_5_taps, ll_temp = coef[phase][i]; ll_temp <<=PSC_COEFF_PRECISION ; ll_temp += sum >>1 ; - ll_temp /= sum; + ll_temp =div_s64 (ll_temp, sum); coef[phase][i] = (int )ll_temp; } }Signature · 1 line
2.45.2
PATCH v2 7/10 drm/imx/dcss: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow imx/dcss to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/imx/dcss/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/imx/dcss/Kconfig +1 -1
@@ -7,7 +7,7 @@ config DRM_IMX_DCSS select DRM_BRIDGE_CONNECTOR select DRM_GEM_DMA_HELPER select VIDEOMODE_HELPERS - depends on DRM && ARCH_MXC && ARM64 + depends on DRM && ((ARCH_MXC && ARM64) || COMPILE_TEST) help Choose this if you have a NXP i.MX8MQ based system and want to use the Display Controller Subsystem. This option enables DCSS support.
Signature · 1 line
2.45.2
Re: [PATCH v2 07/10] drm/imx/dcss: Allow build with COMPILE_TEST=y
Hi,
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow imx/dcss to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
Cc Laurentiu Palcu <[email protected]>Cc Lucas Stach <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>a
Thanks,
Laurentiu
Quoted 20 lines
--- drivers/gpu/drm/imx/dcss/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/imx/dcss/Kconfig +1
-1@@ -7,7 +7,7 @@ config DRM_IMX_DCSS select DRM_BRIDGE_CONNECTOR select DRM_GEM_DMA_HELPER select VIDEOMODE_HELPERS - depends on DRM && ARCH_MXC && ARM64 + depends on DRM && ((ARCH_MXC && ARM64) || COMPILE_TEST) help Choose this if you have a NXP i.MX8MQ based system and want to use the Display Controller Subsystem. This option enables DCSS support.Signature · 1 line
2.45.2
PATCH v2 8/10 drm/fsl-dcu: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow fsl-dcu to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/fsl-dcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/fsl-dcu/Kconfig +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_FSL_DCU tristate "DRM Support for Freescale DCU" - depends on DRM && OF && ARM && COMMON_CLK + depends on DRM && OF && (ARM || COMPILE_TEST) && COMMON_CLK select BACKLIGHT_CLASS_DEVICE select DRM_CLIENT_SELECTION select DRM_GEM_DMA_HELPER
Signature · 1 line
2.45.2
PATCH v2 9/10 drm/mediatek: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow mediatek to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/mediatek/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/mediatek/Kconfig +2 -2
@@ -2,9 +2,9 @@ config DRM_MEDIATEK tristate "DRM Support for Mediatek SoCs" depends on DRM - depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) + depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST depends on COMMON_CLK - depends on HAVE_ARM_SMCCC + depends on HAVE_ARM_SMCCC || COMPILE_TEST depends on OF depends on MTK_MMSYS select DRM_CLIENT_SELECTION
Signature · 1 line
2.45.2
Re: [PATCH v2 09/10] drm/mediatek: Allow build with COMPILE_TEST=y
Hi, Ville:
Quoted 6 lines · Ville Syrjala
External email : Please do not click links or open attachments until you have verified the sender or the content.
From: Ville Syrjälä <[email protected]>Allow mediatek to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
I don't know why need this greater coverage?
This driver always execute on ARM.
Regards,
CK
Quoted 28 lines
Cc Chun-Kuang Hu <[email protected]>Cc Philipp Zabel <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/mediatek/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/mediatek/Kconfig +2
-2@@ -2,9 +2,9 @@ config DRM_MEDIATEK tristate "DRM Support for Mediatek SoCs" depends on DRM -depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) +depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST depends on COMMON_CLK -depends on HAVE_ARM_SMCCC +depends on HAVE_ARM_SMCCC || COMPILE_TEST depends on OF depends on MTK_MMSYS select DRM_CLIENT_SELECTIONSignature · 1 line
2.45.2
Re: [PATCH v2 09/10] drm/mediatek: Allow build with COMPILE_TEST=y
Quoted 11 lines · CK Hu (胡俊光)
Hi, Ville:
Quoted 6 lines · Ville Syrjala
External email : Please do not click links or open attachments until you have verified the sender or the content.
From: Ville Syrjälä <[email protected]>Allow mediatek to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
I don't know why need this greater coverage?
It allows people to make subsystem wide changes without having to cross compile on every single architecture to see if the code still builds.
Quoted 1 line
This driver always execute on ARM.
COMPILE_TEST (as the name suggests) is only about compile testing the code.
Signature · 2 lines
Ville Syrjälä Intel
CK Hu (胡俊光)
Reviewed-byRe: [PATCH v2 09/10] drm/mediatek: Allow build with COMPILE_TEST=y
Hi, Ville:
Quoted 15 lines · Ville Syrjälä
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 11 lines · CK Hu (胡俊光)
Hi, Ville:
Quoted 6 lines · Ville Syrjala
External email : Please do not click links or open attachments until you have verified the sender or the content.
From: Ville Syrjälä <[email protected]>Allow mediatek to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
I don't know why need this greater coverage?
Quoted 8 lines
It allows people to make subsystem wide changes without having to cross compile on every single architecture to see if the code still builds.
Quoted 1 line
This driver always execute on ARM.
COMPILE_TEST(as the name suggests) is only about compile testing the code.
Quoted 5 lines
Signature · 3 lines
-- Ville Syrjälä Intel
PATCH v2 10/10 drm/meson: Allow build with COMPILE_TEST=y
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow meson to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
--- drivers/gpu/drm/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/meson/Kconfig +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_MESON tristate "DRM Support for Amlogic Meson Display Controller" - depends on DRM && OF && (ARM || ARM64) + depends on DRM && OF && (ARM || ARM64 || COMPILE_TEST) depends on ARCH_MESON || COMPILE_TEST select DRM_CLIENT_SELECTION select DRM_KMS_HELPER
Signature · 1 line
2.45.2
Re: [PATCH v2 10/10] drm/meson: Allow build with COMPILE_TEST=y
Quoted 17 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow meson to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least.
Cc Neil Armstrong <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/meson/Kconfig +0
-0
drivers/gpu/drm/meson/Kconfig line 7
Quoted 8 lines
drivers/gpu/drm/meson/Kconfig +1
-1@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_MESON tristate "DRM Support for Amlogic Meson Display Controller" - depends on DRM && OF && (ARM || ARM64) + depends on DRM && OF && (ARM || ARM64 || COMPILE_TEST) depends on ARCH_MESON || COMPILE_TEST select DRM_CLIENT_SELECTION select DRM_KMS_HELPER