From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47931C433E6 for ; Fri, 19 Feb 2021 04:29:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A5A5964EA4 for ; Fri, 19 Feb 2021 04:29:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5A5964EA4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EE8436B0005; Thu, 18 Feb 2021 23:29:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E6FEC6B006C; Thu, 18 Feb 2021 23:29:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D386E6B006E; Thu, 18 Feb 2021 23:29:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0210.hostedemail.com [216.40.44.210]) by kanga.kvack.org (Postfix) with ESMTP id B86416B0005 for ; Thu, 18 Feb 2021 23:29:47 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 6C4773641 for ; Fri, 19 Feb 2021 04:29:47 +0000 (UTC) X-FDA: 77833739214.24.0A712AE Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by imf26.hostedemail.com (Postfix) with ESMTP id 729BD407F8F6 for ; Fri, 19 Feb 2021 04:29:43 +0000 (UTC) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 18 Feb 2021 20:29:45 -0800 Received: from nvdebian.localnet (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Feb 2021 04:29:40 +0000 From: Alistair Popple To: kernel test robot CC: , , , , , , , , , , , Subject: Re: [PATCH v2 1/4] hmm: Device exclusive memory access Date: Fri, 19 Feb 2021 15:29:38 +1100 Message-ID: <1921856.ipnSDt8Uia@nvdebian> In-Reply-To: <202102191104.8PwQ82Oi-lkp@intel.com> References: <20210219020750.16444-2-apopple@nvidia.com> <202102191104.8PwQ82Oi-lkp@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1613708985; bh=4RazHhYqMl6rmlDW/rVNtyCfznld0Neua58X8WgGEoM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type: X-Originating-IP:X-ClientProxiedBy; b=hixsgKwaFwRN/pvvcDEYFWyB9b+6JHrdLv+OCJqTzicl0H7fZI31GEePmnGCaKfQ0 lDj35EPoLqgh66iHSJzVo51l08GvJVLlmNwaKQBQQJDqBv64DHLsDUZ9Fe3kJNkZGz YZ0X/U36bbjR9RLdwmHEr4aDjnmxc8nSRolMQ7b7V1YbNtAhO5vVBNxCj1Uacyz9g4 W8Rv7xEP+oSt6CMshsG3BtULfyElkQLvEGsfJkgYi2aps4Jmxgymb3bb6gUOWZLSSZ hyH5n5qOH4LfWI2HMixvFT3fNfCOI4u5o8oNQBQXHKcZAhhpFcT0hERApSzUqEV344 YRfy3tseBPWWg== X-Stat-Signature: pobbmqitctqs78ygnt51f71djnw4qqri X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 729BD407F8F6 Received-SPF: none (nvidia.com>: No applicable sender policy available) receiver=imf26; identity=mailfrom; envelope-from=""; helo=hqnvemgate24.nvidia.com; client-ip=216.228.121.143 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1613708983-623501 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Apologies for the noise, looks like I don't have a CONFIG_DEVICE_PRIVATE=n build in my tests and missed creating definitions for the new static inline functions for that configuration. I'll wait for some feedback on the overall approach and fix this in a v3. - Alistair On Friday, 19 February 2021 3:04:07 PM AEDT kernel test robot wrote: > External email: Use caution opening links or attachments > > > Hi Alistair, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on kselftest/next] > [also build test ERROR on linus/master v5.11 next-20210218] > [cannot apply to hnaz-linux-mm/master] > [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/Alistair-Popple/Add-support-for-SVM-atomics-in-Nouveau/20210219-100858 > base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next > config: mips-randconfig-r036-20210218 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476) > 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 mips cross compiling tool for clang build > # apt-get install binutils-mips-linux-gnu > # https://github.com/0day-ci/linux/commit/ bb5444811772d30b2e3bbaa44baeb8a4b3f03cec > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Alistair-Popple/Add-support-for- SVM-atomics-in-Nouveau/20210219-100858 > git checkout bb5444811772d30b2e3bbaa44baeb8a4b3f03cec > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All error/warnings (new ones prefixed by >>): > > >> fs/proc/task_mmu.c:521:12: error: implicit declaration of function 'is_device_exclusive_entry' [-Werror,-Wimplicit-function-declaration] > else if (is_device_exclusive_entry(swpent)) > ^ > fs/proc/task_mmu.c:521:12: note: did you mean 'is_device_private_entry'? > include/linux/swapops.h:176:20: note: 'is_device_private_entry' declared here > static inline bool is_device_private_entry(swp_entry_t entry) > ^ > >> fs/proc/task_mmu.c:522:11: error: implicit declaration of function 'device_exclusive_entry_to_page' [-Werror,-Wimplicit-function-declaration] > page = device_exclusive_entry_to_page(swpent); > ^ > fs/proc/task_mmu.c:522:11: note: did you mean 'device_private_entry_to_page'? > include/linux/swapops.h:191:28: note: 'device_private_entry_to_page' declared here > static inline struct page *device_private_entry_to_page(swp_entry_t entry) > ^ > >> fs/proc/task_mmu.c:522:9: warning: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] > page = device_exclusive_entry_to_page(swpent); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > fs/proc/task_mmu.c:1395:7: error: implicit declaration of function 'is_device_exclusive_entry' [-Werror,-Wimplicit-function-declaration] > if (is_device_exclusive_entry(entry)) > ^ > fs/proc/task_mmu.c:1396:11: error: implicit declaration of function 'device_exclusive_entry_to_page' [-Werror,-Wimplicit-function-declaration] > page = device_exclusive_entry_to_page(entry); > ^ > fs/proc/task_mmu.c:1396:9: warning: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] > page = device_exclusive_entry_to_page(entry); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 2 warnings and 4 errors generated. > > > vim +/is_device_exclusive_entry +521 fs/proc/task_mmu.c > > 490 > 491 static void smaps_pte_entry(pte_t *pte, unsigned long addr, > 492 struct mm_walk *walk) > 493 { > 494 struct mem_size_stats *mss = walk->private; > 495 struct vm_area_struct *vma = walk->vma; > 496 bool locked = !!(vma->vm_flags & VM_LOCKED); > 497 struct page *page = NULL; > 498 > 499 if (pte_present(*pte)) { > 500 page = vm_normal_page(vma, addr, *pte); > 501 } else if (is_swap_pte(*pte)) { > 502 swp_entry_t swpent = pte_to_swp_entry(*pte); > 503 > 504 if (!non_swap_entry(swpent)) { > 505 int mapcount; > 506 > 507 mss->swap += PAGE_SIZE; > 508 mapcount = swp_swapcount(swpent); > 509 if (mapcount >= 2) { > 510 u64 pss_delta = (u64)PAGE_SIZE << PSS_SHIFT; > 511 > 512 do_div(pss_delta, mapcount); > 513 mss->swap_pss += pss_delta; > 514 } else { > 515 mss->swap_pss += (u64)PAGE_SIZE << PSS_SHIFT; > 516 } > 517 } else if (is_migration_entry(swpent)) > 518 page = migration_entry_to_page(swpent); > 519 else if (is_device_private_entry(swpent)) > 520 page = device_private_entry_to_page(swpent); > > 521 else if (is_device_exclusive_entry(swpent)) > > 522 page = device_exclusive_entry_to_page(swpent); > 523 } else if (unlikely(IS_ENABLED(CONFIG_SHMEM) && mss- >check_shmem_swap > 524 && pte_none(*pte))) { > 525 page = xa_load(&vma->vm_file->f_mapping->i_pages, > 526 linear_page_index(vma, addr)); > 527 if (xa_is_value(page)) > 528 mss->swap += PAGE_SIZE; > 529 return; > 530 } > 531 > 532 if (!page) > 533 return; > 534 > 535 smaps_account(mss, page, false, pte_young(*pte), pte_dirty(*pte), locked); > 536 } > 537 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org