From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 860966AC0; Mon, 13 May 2024 15:18:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715613537; cv=none; b=iBbd1cK2fAiEauOJs4W6XIh/5G9oCDkMYFBTEDjyV4oEtg5QY2b8/YdCQAi7+A7jQAR8HQ1gklEKSZGkO8Y1PTiOUSil3mPCxQH6n8bvjfRjYR/Ike0hZsuMFOT/2+WNZmJb3amB5rjCRBpGyl//uvqCr5Fx86+11CaOU4Us2qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715613537; c=relaxed/simple; bh=56FIH33ASa4B4yIKs3CG1FH5+Gkw0BL/r+GY/ouYjDk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ojxj6VeITkFM/3RORqacAxy1gWlXKYsRqJA/9lhr7m/KEe84xdYGZ03JBOzsytiloC9T7zpsZl46vHAlhcMRZxMa1ozrUHvJsiOaGNWdlnRCymj0skddhDeaiuPoU9PIPmOq5IhRdKxcAe0DsOZEzQCgTUgez6p8ZusakSjUdbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IVnUG81K; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IVnUG81K" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715613535; x=1747149535; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=56FIH33ASa4B4yIKs3CG1FH5+Gkw0BL/r+GY/ouYjDk=; b=IVnUG81KLUC7DtWpCpOotjznVso+wTkTZnW0ezFeqazB8GASzKZp20Ng mg+z78AbgkrlnRRb3cbHZEpIVQnF8znIQ5msbXWPzxJ+lmMFs3nAcXaz2 QFXZf0uieEsjSt9zAPPNkg1aiPzgT7CbJXzCeKrVEPqv9mQucOYrGvgWr G5z2LlttYB12OqgqL/8RBdydJHAT57fX1ZzHEHbQSWiExJeVAP8BBnN11 55nSCFpxcpy2WQSA8WJq+n0+r6U8XRUsOHU/OQa8yWywIZNLorxsNN67B xOSgQIUbZ4e1/KHr0Ut8VBX46VhTX1C+S2B5txc3bvyPl6B9wDXUA47ME Q==; X-CSE-ConnectionGUID: uxUAtbjmSReYH/gqNHOK+Q== X-CSE-MsgGUID: MPGAxjijQjOI7oK5QA+Twg== X-IronPort-AV: E=McAfee;i="6600,9927,11072"; a="15373290" X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="15373290" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2024 08:17:43 -0700 X-CSE-ConnectionGUID: ogWHM4urS4awQp3N7pB5BQ== X-CSE-MsgGUID: 7+g/1Bs0SwKy35Wa2zFAWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="35240082" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 13 May 2024 08:17:41 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s6XQn-000APT-36; Mon, 13 May 2024 15:17:37 +0000 Date: Mon, 13 May 2024 23:16:44 +0800 From: kernel test robot To: Dave Airlie , dri-devel@lists.freedesktop.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, nouveau@lists.freedesktop.org, dakr@redhat.com Subject: Re: [PATCH] nouveau/firmware: using dma non-coherent interfaces for fw loading. Message-ID: <202405132205.FVKltMCq-lkp@intel.com> References: <20240513064350.1050994-1-airlied@gmail.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240513064350.1050994-1-airlied@gmail.com> Hi Dave, kernel test robot noticed the following build errors: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on drm-tip/drm-tip linus/master v6.9 next-20240513] [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/Dave-Airlie/nouveau-firmware-using-dma-non-coherent-interfaces-for-fw-loading/20240513-144435 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20240513064350.1050994-1-airlied%40gmail.com patch subject: [PATCH] nouveau/firmware: using dma non-coherent interfaces for fw loading. config: arm-defconfig (https://download.01.org/0day-ci/archive/20240513/202405132205.FVKltMCq-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240513/202405132205.FVKltMCq-lkp@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202405132205.FVKltMCq-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/nouveau/nvkm/core/firmware.c:242:12: error: incompatible pointer types passing 'u64 *' (aka 'unsigned long long *') to parameter of type 'dma_addr_t *' (aka 'unsigned int *') [-Werror,-Wincompatible-pointer-types] len, &fw->phys, ^~~~~~~~~ include/linux/dma-mapping.h:321:15: note: passing argument to parameter 'dma_handle' here dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) ^ 1 error generated. vim +242 drivers/gpu/drm/nouveau/nvkm/core/firmware.c 224 225 int 226 nvkm_firmware_ctor(const struct nvkm_firmware_func *func, const char *name, 227 struct nvkm_device *device, const void *src, int len, struct nvkm_firmware *fw) 228 { 229 fw->func = func; 230 fw->name = name; 231 fw->device = device; 232 fw->len = len; 233 234 switch (fw->func->type) { 235 case NVKM_FIRMWARE_IMG_RAM: 236 fw->img = kmemdup(src, fw->len, GFP_KERNEL); 237 break; 238 case NVKM_FIRMWARE_IMG_DMA: { 239 len = ALIGN(fw->len, PAGE_SIZE); 240 241 fw->img = dma_alloc_noncoherent(fw->device->dev, > 242 len, &fw->phys, -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki