Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp56906pxb; Sun, 15 Aug 2021 23:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAFC+0MvY6AESStQbN3L0ucryfByn7LF6WpPPsE+7d92NiIDlUqODu7GTKsL5GB4dMkD4u X-Received: by 2002:a05:6e02:e51:: with SMTP id l17mr9877502ilk.73.1629094259482; Sun, 15 Aug 2021 23:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629094259; cv=none; d=google.com; s=arc-20160816; b=sQudIMsp7B83FqY5/gBqMNIr+/jO1aSC8Ed/WQoy3WhMfh589OdxkIrdAFxcqieXbd lQt9CO4wkRzsBiZXt7VwKYvHrqp+SrbReqLqcstCz0Z62QFFTuL3onxobteDntcRkUlU p3Q+FtacOQi7423nou+aUairgAtaSn8BTb+rORzaJQHkVZqtZe08eqk5VCMyAorC+giQ OHXIrOEvmnGB0/NzYYP8hsjIygPSdKU8l/P0/grXTJIOOfx1jg7jcLNeCvn96UDZ68c6 Apesq0idXinCHzc5qNQE0/auATHpv7zvZXyshQb9dASubRJs4SBaRQPH06+yjgWJX/17 /TPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=yBXepx96Uzt7lmwTGPkBmOhdZypR4sb8w0ofMcCIZs4=; b=PuZVQWU45zcu4RRwPdUgczNWIKjna1552MUpQhiPZ8c3kL1Y532USMfK5JsOrNWPeM LsOYoyspicqCCyMmpTD2x8nFLa00vPz6AAOjII/XGnxLRPW5hEuIa3SVaEubLWhYDQlz AUZE/3Ln1rnpVMcgSvd+xmnka/NT7vqDSge9i7f8QM3zLOJCrPCxpmtE/dJj/Wponnje 66lp/bGfBvePGP1PtpDY7qTWao8UAXEHAPIEFJDE2oFtr3UaKLHE8GGFj1WmTo+SDB1l cMfVwnsZQ349PrRYsWyd35wxZ2lb+QcqUC3vYnYJfrPW1bJaV91tNON8dzunh4Aj3+Kg zuyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NL6JRthm; 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 z30si9592695iow.5.2021.08.15.23.10.48; Sun, 15 Aug 2021 23:10:59 -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=NL6JRthm; 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 S233171AbhHPGK3 (ORCPT + 99 others); Mon, 16 Aug 2021 02:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbhHPGK2 (ORCPT ); Mon, 16 Aug 2021 02:10:28 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D21C061764 for ; Sun, 15 Aug 2021 23:09:57 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id om1-20020a17090b3a8100b0017941c44ce4so12348356pjb.3 for ; Sun, 15 Aug 2021 23:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yBXepx96Uzt7lmwTGPkBmOhdZypR4sb8w0ofMcCIZs4=; b=NL6JRthm9rulAUGXNXWVph105DI2ohRuebCxj7D8+a6nS/Kdk3H8xW6R1/CiKzI9Pb eOu806k5Ui9b9izKOqp93EIb5v1wpJs8uf45xBvkvtj+JjIlKatkoSMycD2dn3coGMQM MdLsSMpFWyMi1JUPgu4ARnn+XgUiJ9zQ9Jyy+rUBbKsHnnh2Zk8+S9qonmojC2czLHXW LQ0KeciC6/X0jwj1a7b40GLO92sDxw0ZcJgrNTVhsPs1FTSmo5Nyv7u/2aTB9JMzM1Ne D9dFm+mgbLsde47q0cB4xYFqKBDJ9RVGjuMB1V4ERDR5T+NGK2HOvOsh8V5jYPcTkLWi nKlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yBXepx96Uzt7lmwTGPkBmOhdZypR4sb8w0ofMcCIZs4=; b=WUy5x4ql/+Q1/HtJyhp8C6lydCrgOKkP62mGHeCQrOnBAsc9/rPoQxDH4qff73TDeB p4UZMntkIRyLDqTQxH4r5YMt8BPnNbKn0KRGhK84B7afSvJ3xxpAJ1GFDYJKlObMXDub sguHWM1sgA4idxQm5BlWFcS9mOZkbO2yVchahhYxJQl4Fg/gIg81JWoZF54725Hq6xTa Ij5rMzF3bIpuJr2IqC2PGB0Fb9EhW4w4PQf5JFlsAz1VX1PFn8AHKsNiCXYlzQWCr6sk l2wXmSzsKhyuxFMVMA5jtunA5PrHdwW0489PEWNqIbHCNXLLl2IhmHVAOyGmS29wtVrg mQvQ== X-Gm-Message-State: AOAM531131UjrOP7QfgE5eJBljE0D5CMDWNRa9Vr/VQAqYgzwlTs5e4F 3Ze9tRnSWQDS759pTIUH4X4= X-Received: by 2002:a65:6553:: with SMTP id a19mr14691694pgw.8.1629094197266; Sun, 15 Aug 2021 23:09:57 -0700 (PDT) Received: from [192.168.1.237] ([118.200.190.93]) by smtp.gmail.com with ESMTPSA id l12sm9628104pff.182.2021.08.15.23.09.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Aug 2021 23:09:56 -0700 (PDT) Subject: Re: [PATCH v2] drm: avoid races with modesetting rights To: kernel test robot , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch Cc: kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, skhan@linuxfoundation.org References: <20210815153740.195330-1-desmondcheongzx@gmail.com> <202108160234.Q9HPB7zT-lkp@intel.com> From: Desmond Cheong Zhi Xi Message-ID: Date: Mon, 16 Aug 2021 14:09:51 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <202108160234.Q9HPB7zT-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/8/21 2:47 am, kernel test robot wrote: > Hi Desmond, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on next-20210813] > [also build test WARNING on v5.14-rc5] > [cannot apply to linus/master v5.14-rc5 v5.14-rc4 v5.14-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/Desmond-Cheong-Zhi-Xi/drm-avoid-races-with-modesetting-rights/20210815-234145 > base: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153 > config: arc-randconfig-r031-20210815 (attached as .config) > compiler: arceb-elf-gcc (GCC) 11.2.0 > 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 > # https://github.com/0day-ci/linux/commit/cf6d8354b7d7953cd866fad004cbb189adfa074f > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Desmond-Cheong-Zhi-Xi/drm-avoid-races-with-modesetting-rights/20210815-234145 > git checkout cf6d8354b7d7953cd866fad004cbb189adfa074f > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > >>> drivers/gpu/drm/drm_auth.c:483:6: warning: no previous prototype for 'master_flush' [-Wmissing-prototypes] > 483 | void master_flush(struct callback_head *cb) > | ^~~~~~~~~~~~ > My bad, this should have been declared with static. I'll add it in, thanks. > > vim +/master_flush +483 drivers/gpu/drm/drm_auth.c > > 479 > 480 /* After flushing, all readers that might have seen old master/lease > 481 * permissions are guaranteed to have completed. > 482 */ > > 483 void master_flush(struct callback_head *cb) > 484 { > 485 struct drm_device *dev = container_of(cb, struct drm_device, > 486 master_flush_work); > 487 > 488 down_write(&dev->master_rwsem); > 489 up_write(&dev->master_rwsem); > 490 } > 491 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >