Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1338928pxf; Fri, 19 Mar 2021 05:11:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBfykNObKnMYhJ0iqQTXyTwXLYN/f6uaM5ZmQ4nPep8lm+Qgy/Xq4zPsQeFXkh163jddBx X-Received: by 2002:a17:906:d554:: with SMTP id cr20mr3996796ejc.61.1616155908018; Fri, 19 Mar 2021 05:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616155908; cv=none; d=google.com; s=arc-20160816; b=bq7wHuVNYma1gzANn68Th9bUkUgB7YB1IKussPlhPkYKsTUI8Q55QsrufRvXUzj/P8 OSqYySYLhZvx2R+pmCc8BB/LN1WSURC6q36DoIwk+BZsOHjs9Fy8uRWBFz/Zif9irf1a Jqe7Z2Q5Auo0eZ1O3rtqslh1PNITLEVhKsBXwdmyUaXYjoBLmMKI2Q1iZj0S+6tpJQNe rCMBhtSmU+AX1BFhFdO02o3Bu63HiMQL1jTOu9Rz4fIEJ/hyEdxzgcs3Htbr5FOwC9mJ 5+Ae9wILv5ytFh9YpbEebkmR14CkfAp5LUE4KXy430mpBoJGBNZOKddwo4zIaqJuwRk1 k/nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=Al37MJydlMGr2njK3Rs+gQkH+JD+kyrZAzQzhVtO1Qs=; b=vl1dxnYQeWz7j9WQmMJ7KLlyNYDhDFExbBhtamM84/rQoCmGv6MX9L/IAwHEQz2ohh ywQNxiVPjz8TNjhFehsv8MbNKIlHRuUyW3r0pc2HpPpD5CKuLM5iUxOXYTl7qu2AuXpU L3Oj9OmoK/IkSSkYjnVVqctryMYwusi9pYMSwHCizZt2NxrUDGYdEU4ei/L+g10aefLT jhT+KPwybPgMQw7eWMAoPuw4RP3ZMYxwNoNRf1p0bvVDk1Kz5U7wJZInpBz562gHjlhB yZqNoSElzSXp/BKAPMot6alUo5Kud0G16urmwL2vZ1ezkKZPpNOc7FGqTFvbfeGI7a1I UTpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qu5IcDDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si3642795edr.388.2021.03.19.05.11.21; Fri, 19 Mar 2021 05:11:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qu5IcDDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbhCSMHm (ORCPT + 99 others); Fri, 19 Mar 2021 08:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbhCSMHI (ORCPT ); Fri, 19 Mar 2021 08:07:08 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD85C06174A for ; Fri, 19 Mar 2021 05:07:08 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id b16so10469856eds.7 for ; Fri, 19 Mar 2021 05:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Al37MJydlMGr2njK3Rs+gQkH+JD+kyrZAzQzhVtO1Qs=; b=qu5IcDDMydI23eQb0gvJmq3079Irl0drkFY3bmkiMUqc2g3dSrp9sAHJ30Tb2e3/4v i68SK7bXAc5HXU6fmTeQuMuLd3Y4xa6Erzoj08GrHsQL1dZtv0wsVKhprCgk1hDI2JJL LUBjT8O6lQR6DWcVX4x7f7YUJdnv3aRUTEp7GjbrecHekEUfIZ0vjqawt0xcpm3+IcaK 9g27q6Z9h9tmjJFIKMqiQ+Z4mT/9Udc67Fjfe+qwyk4tG/BkmHLRqdnrFblgD3t7AfK1 nIDJvwghOeIYBTlqwTHOVjtYeCNoo1HZX3t6aLoGox69whXBxWxH9GDZGcSoPjvanVBc 7cEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Al37MJydlMGr2njK3Rs+gQkH+JD+kyrZAzQzhVtO1Qs=; b=uNR3aao2hGP90ipOVgmHeG7UokQRP4368w84h6f+noolHNXw+DXK3OQG8Ryzd6/Vwn otzaQ/LUacP/FMbkM3IKB/TB+KooVCmxFFXKnryQsFC/p9hQ8twJmPa83u0/XB9Akjkb Ss/VP25tVHJsdyO4ofBg6foZSYsVKxeCJv58WeicHjXBLQ+sHHv9BRS1SqjajdtPUzWM a3tXk5gD8nV7LdfK7myOorZqt6/8YREso4b/dVCoUOSQ+SCyL6FZutIxJuYRu9hg7YdI KSDGQoRlo9CI2iYTsEiTSwsMvMDNkx/itAhEaSAp/AKOIcrXEyDFu8LRHTuQ30qwGP0g ug4w== X-Gm-Message-State: AOAM532gL5yh1yHmec6ArqEnHQ3C3J35kvrlWN4a/38jEzwYBxQhH1d6 81A099hUTzyXzC5rRciumEUZJTBKC5c= X-Received: by 2002:a05:6402:51d4:: with SMTP id r20mr9073960edd.112.1616155627194; Fri, 19 Mar 2021 05:07:07 -0700 (PDT) Received: from ?IPv6:2a02:908:1252:fb60:2273:f2cc:fdad:3191? ([2a02:908:1252:fb60:2273:f2cc:fdad:3191]) by smtp.gmail.com with ESMTPSA id g21sm3557515ejd.6.2021.03.19.05.07.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Mar 2021 05:07:06 -0700 (PDT) Subject: Re: [PATCH 1/3] drm/ttm: move swapout logic around v2 To: dri-devel@lists.freedesktop.org, lkml References: <20210318124719.13656-1-christian.koenig@amd.com> <202103190217.QRu8z9Vb-lkp@intel.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <44e0374c-05b6-88d2-5687-79efde9ce0df@gmail.com> Date: Fri, 19 Mar 2021 13:07:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <202103190217.QRu8z9Vb-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org General question for the audience: Is there any way to silence the build bot here? This is a well known false positive. Regards, Christian. Am 18.03.21 um 19:13 schrieb kernel test robot: > Hi "Christian, > > I love your patch! Yet something to improve: > > [auto build test ERROR on drm-tip/drm-tip] > [also build test ERROR on next-20210318] > [cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next linus/master v5.12-rc3] > [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] > > url: https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-ttm-move-swapout-logic-around-v2/20210318-204848 > base: git://anongit.freedesktop.org/drm/drm-tip drm-tip > config: x86_64-randconfig-a005-20210318 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6db3ab2903f42712f44000afb5aa467efbd25f35) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://github.com/0day-ci/linux/commit/a454d56ea061b53d24a62a700743e4508dd6c9b1 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Christian-K-nig/drm-ttm-move-swapout-logic-around-v2/20210318-204848 > git checkout a454d56ea061b53d24a62a700743e4508dd6c9b1 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > >>> drivers/gpu/drm/ttm/ttm_device.c:109:5: error: conflicting types for 'ttm_global_swapout' > int ttm_global_swapout(struct ttm_operation_ctx *ctx, gfp_t gfp_flags) > ^ > include/drm/ttm/ttm_device.h:300:6: note: previous declaration is here > long ttm_global_swapout(struct ttm_operation_ctx *ctx, gfp_t gfp_flags); > ^ > 1 error generated. > > > vim +/ttm_global_swapout +109 drivers/gpu/drm/ttm/ttm_device.c > > 104 > 105 /** > 106 * A buffer object shrink method that tries to swap out the first > 107 * buffer object on the global::swap_lru list. > 108 */ > > 109 int ttm_global_swapout(struct ttm_operation_ctx *ctx, gfp_t gfp_flags) > 110 { > 111 struct ttm_global *glob = &ttm_glob; > 112 struct ttm_buffer_object *bo; > 113 unsigned i; > 114 int ret; > 115 > 116 spin_lock(&glob->lru_lock); > 117 for (i = 0; i < TTM_MAX_BO_PRIORITY; ++i) { > 118 list_for_each_entry(bo, &glob->swap_lru[i], swap) { > 119 uint32_t num_pages = bo->ttm->num_pages; > 120 > 121 ret = ttm_bo_swapout(bo, ctx, gfp_flags); > 122 /* ttm_bo_swapout has dropped the lru_lock */ > 123 if (!ret) > 124 return num_pages; > 125 if (ret != -EBUSY) > 126 return ret; > 127 } > 128 } > 129 spin_unlock(&glob->lru_lock); > 130 return 0; > 131 } > 132 EXPORT_SYMBOL(ttm_global_swapout); > 133 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org