From: kbuild test robot <lkp@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: kbuild-all@01.org, akpm@linux-foundation.org,
Michal Hocko <mhocko@suse.com>, Kees Cook <keescook@chromium.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
peterz@infradead.org, linux-mm@kvack.org, x86@kernel.org,
linux-kernel@vger.kernel.org, mgorman@suse.de
Subject: Re: [PATCH v6 4/6] mm: Shuffle initial free memory to improve memory-side-cache utilization
Date: Tue, 18 Dec 2018 14:30:15 +0800 [thread overview]
Message-ID: <201812181410.zF3l3lpN%fengguang.wu@intel.com> (raw)
In-Reply-To: <154510702402.1941238.1616430879354317384.stgit@dwillia2-desk3.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2581 bytes --]
Hi Dan,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc7 next-20181217]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Dan-Williams/mm-Randomize-free-memory/20181218-130230
config: x86_64-randconfig-x010-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
mm/memblock.c: In function 'memblock_set_sidecache':
>> mm/memblock.c:859:4: error: too many arguments to function 'page_alloc_shuffle'
page_alloc_shuffle(SHUFFLE_ENABLE);
^~~~~~~~~~~~~~~~~~
In file included from mm/memblock.c:20:0:
include/linux/shuffle.h:43:20: note: declared here
static inline void page_alloc_shuffle(void)
^~~~~~~~~~~~~~~~~~
vim +/page_alloc_shuffle +859 mm/memblock.c
825
826 #ifdef CONFIG_HAVE_MEMBLOCK_CACHE_INFO
827 /**
828 * memblock_set_sidecache - set the system memory cache info
829 * @base: base address of the region
830 * @size: size of the region
831 * @cache_size: system side cache size in bytes
832 * @direct: true if the cache has direct mapped associativity
833 *
834 * This function isolates region [@base, @base + @size), and saves the cache
835 * information.
836 *
837 * Return: 0 on success, -errno on failure.
838 */
839 int __init_memblock memblock_set_sidecache(phys_addr_t base, phys_addr_t size,
840 phys_addr_t cache_size, bool direct_mapped)
841 {
842 struct memblock_type *type = &memblock.memory;
843 int i, ret, start_rgn, end_rgn;
844
845 ret = memblock_isolate_range(type, base, size, &start_rgn, &end_rgn);
846 if (ret)
847 return ret;
848
849 for (i = start_rgn; i < end_rgn; i++) {
850 struct memblock_region *r = &type->regions[i];
851
852 r->cache_size = cache_size;
853 r->direct_mapped = direct_mapped;
854 /*
855 * Enable randomization for amortizing direct-mapped
856 * memory-side-cache conflicts.
857 */
858 if (r->size > r->cache_size && r->direct_mapped)
> 859 page_alloc_shuffle(SHUFFLE_ENABLE);
860 }
861
862 return 0;
863 }
864 #endif
865
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29217 bytes --]
next prev parent reply other threads:[~2018-12-18 6:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 4:23 [PATCH v6 0/6] mm: Randomize free memory Dan Williams
2018-12-18 4:23 ` [PATCH v6 1/6] acpi: Create subtable parsing infrastructure Dan Williams
2018-12-18 12:45 ` kbuild test robot
2018-12-18 13:39 ` kbuild test robot
2018-12-18 4:23 ` [PATCH v6 2/6] acpi: Add HMAT to generic parsing tables Dan Williams
2018-12-18 4:23 ` [PATCH v6 3/6] acpi/numa: Set the memory-side-cache size in memblocks Dan Williams
2018-12-18 8:20 ` kbuild test robot
2018-12-18 4:23 ` [PATCH v6 4/6] mm: Shuffle initial free memory to improve memory-side-cache utilization Dan Williams
2018-12-18 6:30 ` kbuild test robot [this message]
2018-12-18 4:23 ` [PATCH v6 5/6] mm: Move buddy list manipulations into helpers Dan Williams
2018-12-18 4:23 ` [PATCH v6 6/6] mm: Maintain randomization of page free lists Dan Williams
2018-12-19 20:32 ` [PATCH v6 0/6] mm: Randomize free memory Michal Hocko
2018-12-19 20:55 ` Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201812181410.zF3l3lpN%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=kbuild-all@01.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=mhocko@suse.com \
--cc=peterz@infradead.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox