From patchwork Thu Oct 3 11:18:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76A05CF857A for ; Thu, 3 Oct 2024 11:19:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C23D110E7FB; Thu, 3 Oct 2024 11:19:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FW5Xfm6f"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A81910E7FB for ; Thu, 3 Oct 2024 11:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954339; x=1759490339; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MFSQkDU7n3AoDPGiSS39/NcFfP2oNvOgc4qn76rWwBc=; b=FW5Xfm6faZ9/rTwm6zWrJDcYsPdYOeSzu8bX/7lS9WdgC59euQZiNaY5 RJs789PGlwg+2FV9XMMAiOcmHJpmXV+WokqqnJI0Fw8t4aTSY9zHY0Mhj dm7G027u6K5Ay3tZUPgDLgW7nL+cdijO3SHOITvgA43O3zwn8sWE5hpOQ qpPFXPkTFfaqt6epF3hlO8YKdlVV35rM9SO7YdtCmqr0vApLvchABX1Lv RFNEJHnmrgDPAKffETjfpf3rFz+hdZPa3mVRsCEGk8S440aICFsN2meQQ 7yEwk0XHK96LchMcSwAsbhVMqyUnNLBStl09VcJ/E0Hz84kjFoCDVXU1f A==; X-CSE-ConnectionGUID: 9na5Uv5zTFatZO/nMwtcjA== X-CSE-MsgGUID: vcvev/PTR4u6WoldxcYTUQ== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012954" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012954" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:18:59 -0700 X-CSE-ConnectionGUID: jtKyp9ZcSnyVFyQOh97zJQ== X-CSE-MsgGUID: 15C7rz0fQD+zYqzCtez8fQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423694" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:18:57 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:18:56 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Tomi Valkeinen , Jyri Sarha Subject: [PATCH v2 01/10] drm/tilcdc: Allow build without __iowmb() Date: Thu, 3 Oct 2024 14:18:42 +0300 Message-ID: <20241003111851.10453-2-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä __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) Cc: Tomi Valkeinen Acked-by: Jyri Sarha Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_regs.h b/drivers/gpu/drm/tilcdc/tilcdc_regs.h index f90e2dc3457c..332b24327386 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_regs.h +++ b/drivers/gpu/drm/tilcdc/tilcdc_regs.h @@ -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 From patchwork Thu Oct 3 11:18:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820882 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88825CF857A for ; Thu, 3 Oct 2024 11:19:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 110B610E801; Thu, 3 Oct 2024 11:19:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="f1DyWJym"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E1F210E801 for ; Thu, 3 Oct 2024 11:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954342; x=1759490342; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Kw5OI0ciSn4W0AHcRzS/pZbCg5OLjoBgX/KaQgOyXtU=; b=f1DyWJymp0bdlOY+X12DlDRYbOtuR6e6/MT69XsB4tusZHhe5NiPBORl E0tgnLHsAtOGuTrBTlNdhom/ytC1IVR/WgDHaLhoGryfeLZxp2R3NI1Q9 R5FTkWqr+MLVV0xZq036oy+1OR0FNi5QGkmSCSDeQKtKaVzoLhX2YqYET euXuaaCJB5wPne4XVjx0MHH6q9z9um/rTnDh5akPpupdGLz+x3obmGkLH foFI2452xl5gOV8rY6039b7UwTjg1TNNR7O6Um4LeAetUzukl1yWHwlCH to+G5wrONLbv2WHMzZ3Dg6dCn8YlBveSkAkq0tpNPM3on4NR6kUmBfO1I g==; X-CSE-ConnectionGUID: M7BrdotmRHCNyCw5Iou4Zg== X-CSE-MsgGUID: iOQODO3yScSt6cxQDSa5pA== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012962" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012962" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:02 -0700 X-CSE-ConnectionGUID: yK9cZ4jKTB+hjJmUdadIHQ== X-CSE-MsgGUID: CNfBEUVPTFKdXxruSjVwsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423705" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:00 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:18:59 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Jyri Sarha , Tomi Valkeinen Subject: [PATCH v2 02/10] drm/tilcdc: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:43 +0300 Message-ID: <20241003111851.10453-3-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow tilcdc to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Acked-by: Jyri Sarha Reviewed-by: Tomi Valkeinen Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/tilcdc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/Kconfig b/drivers/gpu/drm/tilcdc/Kconfig index 24f9a245ba59..c430914b1db7 100644 --- a/drivers/gpu/drm/tilcdc/Kconfig +++ b/drivers/gpu/drm/tilcdc/Kconfig @@ -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 From patchwork Thu Oct 3 11:18:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1E7CCF857C for ; Thu, 3 Oct 2024 11:19:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CC9010E802; Thu, 3 Oct 2024 11:19:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="n0GFqGxp"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 83DDD10E802 for ; Thu, 3 Oct 2024 11:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954345; x=1759490345; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D8PW7P5fIG+disVu/YM1q9FamLijmhwWTpmppbmEMsU=; b=n0GFqGxpv3hNfPsZxHAvgFjua1/AomyjjVmKNb/+14w7UVP0cZwHwMhM zLMekqC9Aog5KV+WhoElelcP0N5+8AjGUU+c6mMD3m4/Vah55H2rYtu+Q qciO/o+MLrjmvYhI7S5gMlC9Po0gUpScn+bQ4taDtw7QPny3bwATmkOJ9 y9aFlZhFEiU1OSOr7/FJ0iP7ppLdDmCUtxhQY6Rs1oXgcyTLg6fsx4T9X Q1VMiCgaz0SJr84vTPtt8W7ZUEwK1Xkyn69i/KBiQlJwg/ZARRLDW8vqi ZtSCt0IE7G9xO/3cDIV+NgdfoVh3cZwtwu40zrSS1WtsfeAr0LjgZwUuK A==; X-CSE-ConnectionGUID: aXJvBtHGTBaQUyazJhJMiQ== X-CSE-MsgGUID: jMBZlOtSQkCNWyHwDJPEoA== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012964" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012964" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:05 -0700 X-CSE-ConnectionGUID: OScSDHFRTuqUCHm5e+snmw== X-CSE-MsgGUID: SphFhNE6QV2Va6l040sM4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423720" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:03 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:02 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Russell King Subject: [PATCH v2 03/10] drm/armada: Fix printk arguments Date: Thu, 3 Oct 2024 14:18:44 +0300 Message-ID: <20241003111851.10453-4-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä ../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} Cc: Russell King Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/armada/armada_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c index 26d10065d534..e9575ef5aaef 100644 --- a/drivers/gpu/drm/armada/armada_gem.c +++ b/drivers/gpu/drm/armada/armada_gem.c @@ -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; } From patchwork Thu Oct 3 11:18:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99F51CF857A for ; Thu, 3 Oct 2024 11:19:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2185110E804; Thu, 3 Oct 2024 11:19:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="O/Nb/AVn"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 757B710E804 for ; Thu, 3 Oct 2024 11:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954349; x=1759490349; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=j+kjsygloMNATuoZYTboOJSDjNugvl8FuIQrrxOMlnA=; b=O/Nb/AVn9FW9oVnsWGaSIahLeRUL1Mo+rw7Bzoc0gs/CoB8KoFsntDeD 3rOqshC3VMaeuy7RUDywThLHf7oZ07LHBGaaMys0gcMkmJMMZfnBBqCMo BzQfARoIKQwbhgqOelZAREyUkeA8cKjncgzXZ1iosa8bf/OoXTjtito02 vVuq4LxSijaeLtUXVpDdOZJ6JGQYbogrst3XDCvzan8QlYOKLwDdm2Yk+ 8DR546GRdNVeOiaXkCXqTnKlpokskSgcMoCBAVvWnsZQBQhd78ixVSEQ0 d6nyrwp1QpMg7JjYxtrOfDMV9pEj2YO7vqZSsHyCgjjDGCHnbQSYkgwNM Q==; X-CSE-ConnectionGUID: zGKTm4aSRR+1znYN/cW/Ag== X-CSE-MsgGUID: Pm3+2rRlSMuYuSAk5DnV6Q== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012972" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012972" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:08 -0700 X-CSE-ConnectionGUID: Skd+JHMfSlefj+blLX6glg== X-CSE-MsgGUID: z5X5lKxxRrC3adfkepA9xA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423744" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:06 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:05 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Russell King Subject: [PATCH v2 04/10] drm/armada: Fix armada_debugfs_crtc_reg_write() return type Date: Thu, 3 Oct 2024 14:18:45 +0300 Message-ID: <20241003111851.10453-5-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Change the armada_debugfs_crtc_reg_write() return type to the correct ssize_t. This makes the code actually build on certain architectures. Cc: Russell King Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c index a763349dd89f..96aebd56272f 100644 --- a/drivers/gpu/drm/armada/armada_debugfs.c +++ b/drivers/gpu/drm/armada/armada_debugfs.c @@ -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; From patchwork Thu Oct 3 11:18:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820885 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 967D6CF857A for ; Thu, 3 Oct 2024 11:19:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1EC5910E806; Thu, 3 Oct 2024 11:19:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ToM+yNx+"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6156810E805 for ; Thu, 3 Oct 2024 11:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954351; x=1759490351; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sDN1B3+8eCTn8UdE1PuRscDjA8/jdTqpcVEkaYnt/GI=; b=ToM+yNx+4HcJiWgP2mhDx+qCO+ZENBlJEZkSdcsjUt2uZg2wgcC5udAY QCFYFPJIt/OofumYcQDaW9oxakxuCROpJnP4rI0x++9NvMrwO2XdOl+Pn 2hqH424qr1ckjt0xUsMpESZrACHZm8Z9Ijx9WFE7EF+pqmZ2uRqpVnwik 0ZR9f7MjimVLUJzw20/ddeC10NPY3n+7jn9WI0gJ+lJFJk7OEGgUvj3l7 XW/LwYaBD2vxPvENULZTwLark7YuXuz+zrBxnm7Vfv5X+13+xrw4MKqVn h8AqEL+BF4QO22YtUiuu0RDhmr0BEihNwzS9JiHPhlx/j1kGd7lbF3MdJ w==; X-CSE-ConnectionGUID: D3d2K+BEQqGOkypChrXMHA== X-CSE-MsgGUID: tpDkmQTdSzSfdch/gWo2ow== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012975" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012975" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:11 -0700 X-CSE-ConnectionGUID: 2jn9CGDnTdGlhtIMzUp8vQ== X-CSE-MsgGUID: SfE4Dv0dQ0GDB/UJYiVWGQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423759" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:09 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:08 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Russell King Subject: [PATCH v2 05/10] drm/armada: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:46 +0300 Message-ID: <20241003111851.10453-6-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow armada to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Cc: Russell King Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/armada/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/Kconfig b/drivers/gpu/drm/armada/Kconfig index b22c891a670b..1376337548da 100644 --- a/drivers/gpu/drm/armada/Kconfig +++ b/drivers/gpu/drm/armada/Kconfig @@ -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 From patchwork Thu Oct 3 11:18:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820886 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7482CF857D for ; Thu, 3 Oct 2024 11:19:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4958010E807; Thu, 3 Oct 2024 11:19:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ItmiA0r6"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7CE0010E807 for ; Thu, 3 Oct 2024 11:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954354; x=1759490354; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=f71NPFG/zGrZfNemG//LfafSmN0hY0k7o5M+KaLTHfU=; b=ItmiA0r6zm/tGts4UWtN0LTP4KCLeDrFFtewuUAxUVV70Ii9E9nIQlxC hvDhPKfFjeB6yD1f80JmGtwyUDwtEMRlWR8dh99AG0QYgK7SeRQV9swyr 4xXcEdX0ZiBXQtDBmePhdML9PRJ4k0XaW+o5hjUmXcN3xSbqtEmMFl5na MJw7x5W5kmES3o9o5OC0dCrFQhkM1wboZFZRRzrX6/kYsD/L1GhhxBSe3 eacecRttvjaBhhRW+F98OAbxJYjS3oVDg6XiwPmOZIhpmmQ6ACoHJ1DDg fpwbDQjVBqe8IB23U0Thy7X2V3685ckTT+kr1jplTsWN1zbq02dq08KZE g==; X-CSE-ConnectionGUID: iS2PpD8NQluX8x/Xay/4Tw== X-CSE-MsgGUID: Kybm9TPwRh28f86nl1yGMQ== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012980" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012980" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:14 -0700 X-CSE-ConnectionGUID: Q4IpU6++SGCZclxUduFizA== X-CSE-MsgGUID: HZ+XwzHdRwKjBWm2HahGCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423773" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:12 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:11 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Laurentiu Palcu , Lucas Stach Subject: [PATCH v2 06/10] drm/imx/dcss: Fix 64bit divisions Date: Thu, 3 Oct 2024 14:18:47 +0300 Message-ID: <20241003111851.10453-7-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Use the appropriate 64bit division helpers to make the code build on 32bit architectures. Cc: Laurentiu Palcu Cc: Lucas Stach Signed-off-by: Ville Syrjälä Reviewed-by: Laurentiu Palcu --- drivers/gpu/drm/imx/dcss/dcss-scaler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-scaler.c b/drivers/gpu/drm/imx/dcss/dcss-scaler.c index 825728c356ff..32c3f46b21da 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-scaler.c +++ b/drivers/gpu/drm/imx/dcss/dcss-scaler.c @@ -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; } } From patchwork Thu Oct 3 11:18:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 119F2CF857A for ; Thu, 3 Oct 2024 11:19:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D30110E808; Thu, 3 Oct 2024 11:19:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="I23fG1AQ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id A153F10E809 for ; Thu, 3 Oct 2024 11:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954357; x=1759490357; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ht6BOdo/uExQPz87ZD97otAb+P2YHbbKEyj+c2e+QSE=; b=I23fG1AQcIbuswnGwcRQ8EXoLlXLscrlZ3VGJv1epSyd8X8sgCwXmtt4 7AM+oQ3KAx/NMCrkT3XSweiC7QfiiVZllWxDDkBmS6mJMSphGrzrZMmkI GktHHQr7Q1YBONId1/AOzcGiIGEa5jx6UofuUMGT9Dw+sLR7KgUMwwJ6v IyW1EfzB/k0sajh/ScbTLVQaDwFsbORlYMfZmMFDS4zbchilNWfcw0Ka4 eRW9oeIkXm2BL9oioumgj530z6s9yb79PPZ3DW0Ysl3J7sS8psB+s+uLL XnsDVpGb34T89ZkpPoxod0uDlIoNDxjqovu6Ya/Shj2HuxmHxnhWXQyqS g==; X-CSE-ConnectionGUID: 5bufaP17R+CuR7PJKesOwQ== X-CSE-MsgGUID: cupcGRmfQ0aKaECeXrnJdg== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012987" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012987" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:17 -0700 X-CSE-ConnectionGUID: 5TI6i9/JRaqAfvW1KHPUEw== X-CSE-MsgGUID: GvcE8CGcSYiUC5QAfH6g/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423787" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:15 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:14 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Laurentiu Palcu , Lucas Stach Subject: [PATCH v2 07/10] drm/imx/dcss: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:48 +0300 Message-ID: <20241003111851.10453-8-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow imx/dcss to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Cc: Laurentiu Palcu Cc: Lucas Stach Signed-off-by: Ville Syrjälä Reviewed-by: Laurentiu Palcu --- drivers/gpu/drm/imx/dcss/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/dcss/Kconfig b/drivers/gpu/drm/imx/dcss/Kconfig index 9d58f41bd00c..e014ed3ae66c 100644 --- a/drivers/gpu/drm/imx/dcss/Kconfig +++ b/drivers/gpu/drm/imx/dcss/Kconfig @@ -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. From patchwork Thu Oct 3 11:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA32FCF857C for ; Thu, 3 Oct 2024 11:19:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60A3B10E809; Thu, 3 Oct 2024 11:19:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Ah5L6ALJ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id B978210E805 for ; Thu, 3 Oct 2024 11:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954360; x=1759490360; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ySq/9uQn/5WzOM2QEq408qaJeClR5Me22xI2e6vEv3s=; b=Ah5L6ALJ9jHEK67Vgqi4hNHLx10LNCcfSTvUNYPXlt3NiK3/tZSNG1B6 3wdXDywEPg3fs2iaJhIc/sLVTDAu1AMpxHDjUE0XngGtsIAaJ2zPlctpB CLyd0dAaAC61cHiF7UcxOYtb9hMFZqSQvhPAeUzhpjaHc/DluY7WKVek/ S93eJwCFKlk95zG3CzlOnA8fDYoH5j66u0JvBhAbFM9veTC+isDV0RB8k HtbJAmYFk4IzrIs00g9RzWhDqIbBnsgCaZ7mHooLJQc0ODluJVZVDOy8e 6DMcnnUVuKrHeG6oodssu2L3tdNc0fuI0Mh6S/aPsuv0lEUl79FKbvo03 Q==; X-CSE-ConnectionGUID: 4rqK7XCJTLSDfM0BTLa+dg== X-CSE-MsgGUID: PeoQMj9vRt20Ry+WlvLt2A== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27012995" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27012995" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:20 -0700 X-CSE-ConnectionGUID: /hs9JLRITBSyYdPnl4zv8A== X-CSE-MsgGUID: 6kCFg3u3R9aJNkFUxNX8HQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423805" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:18 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:17 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Stefan Agner , Alison Wang Subject: [PATCH v2 08/10] drm/fsl-dcu: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:49 +0300 Message-ID: <20241003111851.10453-9-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow fsl-dcu to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Cc: Stefan Agner Cc: Alison Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/fsl-dcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/Kconfig b/drivers/gpu/drm/fsl-dcu/Kconfig index 588ce2420af2..4226e54f94c6 100644 --- a/drivers/gpu/drm/fsl-dcu/Kconfig +++ b/drivers/gpu/drm/fsl-dcu/Kconfig @@ -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 From patchwork Thu Oct 3 11:18:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93E08CF857C for ; Thu, 3 Oct 2024 11:19:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A65910E80A; Thu, 3 Oct 2024 11:19:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="KRiOZAtX"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 33D4110E80A for ; Thu, 3 Oct 2024 11:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954364; x=1759490364; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w4FuzTyDGreS0szixpBegUWK/7yzbqINFYrMt9HjXBE=; b=KRiOZAtXQ3jw5/MP4jgV3ZV4agXwPG2tsfFSZidLobZrko4jQhH/20iy 0D1MYm42iz2AwnV5+Rz+fSaLkc0By18VOWvrIR4PdpnMajThO/5yizxFN gUZch5Lf6dKT5QDe4lta05Ildd0jRXXooEL1UeiGTuImB6sWyMZ7no3wy jyzaD7LPv/vWboSNbrBNLN+DO+Ze31Q1BsgSRDzEtonPnLiIGH6ndzpsD d0DR1Ms8QlGsvZsOQ/8QwGtb0DUsWIYEX3s8V2qQMLtDH1ARy1OZyIaOx PR+8wWeiJLEfx4Bz0GZR88oFIz3uNsqSnXEJAbpT6FNjuzZl6ry2BSaoE g==; X-CSE-ConnectionGUID: VlQzq9sYTBepL1nKYT4HAw== X-CSE-MsgGUID: Ambt8xXSR52b0j7VaRlNVw== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27013023" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27013023" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:23 -0700 X-CSE-ConnectionGUID: n+jyGRUXQiylc0o9f28Znw== X-CSE-MsgGUID: pL+u723oSLui50F3+/MfPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423820" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:21 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:20 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Chun-Kuang Hu , Philipp Zabel , linux-mediatek@lists.infradead.org Subject: [PATCH v2 09/10] drm/mediatek: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:50 +0300 Message-ID: <20241003111851.10453-10-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow mediatek to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: linux-mediatek@lists.infradead.org Signed-off-by: Ville Syrjälä Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 3d2436272ff2..2e0e7c4079b6 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -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 From patchwork Thu Oct 3 11:18:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13820890 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56932CF857C for ; Thu, 3 Oct 2024 11:19:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CA37110E80B; Thu, 3 Oct 2024 11:19:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZtYBDfoD"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C95D10E80B for ; Thu, 3 Oct 2024 11:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727954367; x=1759490367; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1WWBSxzILxSYsGawLcrm3HdTa6GEE9/bUz51NQZ0heg=; b=ZtYBDfoDgwjVov8YKTQxE4IbVs9/ga2zDwXVeMSbgtZoz1ofDUK77bNo 8o2V2olP3c2p1AM1U1NzhPLNHca1Ib9xXycCfSu83P32jL8Jr8St7BgB9 tc4OY4aUwrpQEy9S7f/IZaVp12jbC+KBz1cnItQLP440jfLX4jXXehjpG KSeeqb8gu03fa6D2aS0uYWh+kSRxq5zlrQip1B1l3P6C6Eqtb8ANIREMD ZqN9E9CQvSguEV9L3p97DEVd7hJuxFYJbl8/Rvj1g77qC/wqs6dkDpGoc geOFUVqf8Fgg4vIBZMN3PAb1LkLQaXXN9LjtrBs/9O8ljKCQVcvcd1sij g==; X-CSE-ConnectionGUID: 32F7dp29Rra9brASFvPXcQ== X-CSE-MsgGUID: Gx6jeqdPTWGliBG05NIt/w== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="27013031" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="27013031" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 04:19:27 -0700 X-CSE-ConnectionGUID: sqs5aFW3S6yEfoNZtQFAWA== X-CSE-MsgGUID: CqCmrdf6RCmqVgsfFpIjBw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="74423838" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 03 Oct 2024 04:19:25 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 03 Oct 2024 14:19:24 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Neil Armstrong , linux-amlogic@lists.infradead.org Subject: [PATCH v2 10/10] drm/meson: Allow build with COMPILE_TEST=y Date: Thu, 3 Oct 2024 14:18:51 +0300 Message-ID: <20241003111851.10453-11-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003111851.10453-1-ville.syrjala@linux.intel.com> References: <20241003111851.10453-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Allow meson to be built with COMPILE_TEST=y for greater coverage. Builds fine on x86/x86_64 at least. Cc: Neil Armstrong Cc: linux-amlogic@lists.infradead.org Signed-off-by: Ville Syrjälä Reviewed-by: Neil Armstrong --- drivers/gpu/drm/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/Kconfig b/drivers/gpu/drm/meson/Kconfig index b410e0d8015a..417f79829cf8 100644 --- a/drivers/gpu/drm/meson/Kconfig +++ b/drivers/gpu/drm/meson/Kconfig @@ -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