[PATCH 5.10 020/717] ARM: dts: aspeed-g6: Fix the GPIO memory size

2020-12-28 Thread Greg Kroah-Hartman
From: Billy Tsai [ Upstream commit 886f82ce9f1f4559c139fdb2d79d158999ca38cd ] The GPIO controller is a GPIO controller followed by some SGPIO controllers, which are a different type of device with their own binding and drivers. Make the gpio node cover the only conventional GPIO controller. Fi

Re: [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3

2020-09-25 Thread Neil Armstrong
On 25/09/2020 09:37, Martin Blumenstingl wrote: > Hi Artem, > > On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin wrote: >> >> no need force setup memory size! >> VIM3 boards have 2Gb and 4Gb variants >> memory size will be automatically defined >> >> mai

Re: [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3

2020-09-25 Thread Martin Blumenstingl
Hi Artem, On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin wrote: > > no need force setup memory size! > VIM3 boards have 2Gb and 4Gb variants > memory size will be automatically defined > > mainline uboot works properly in any case > but old vendor uboot works not properly for

[PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3

2020-09-24 Thread Artem Lapkin
no need force setup memory size! VIM3 boards have 2Gb and 4Gb variants memory size will be automatically defined mainline uboot works properly in any case but old vendor uboot works not properly for 4Gb variants Signed-off-by: Artem Lapkin --- arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-10 Thread Johannes Weiner
On Wed, Sep 09, 2020 at 09:55:20AM -0700, Roman Gushchin wrote: > On Wed, Sep 09, 2020 at 10:55:34AM -0400, Johannes Weiner wrote: > > On Thu, Sep 03, 2020 at 04:00:55PM -0700, Roman Gushchin wrote: > > > In the memcg case count_shadow_nodes() sums the number of pages in lru > > > lists and the amo

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-09 Thread Roman Gushchin
On Wed, Sep 09, 2020 at 10:55:34AM -0400, Johannes Weiner wrote: > On Thu, Sep 03, 2020 at 04:00:55PM -0700, Roman Gushchin wrote: > > In the memcg case count_shadow_nodes() sums the number of pages in lru > > lists and the amount of slab memory (reclaimable and non-reclaimable) > > as a baseline f

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-09 Thread Johannes Weiner
On Thu, Sep 03, 2020 at 04:00:55PM -0700, Roman Gushchin wrote: > In the memcg case count_shadow_nodes() sums the number of pages in lru > lists and the amount of slab memory (reclaimable and non-reclaimable) > as a baseline for the allowed number of shadow entries. > > It seems to be a good analo

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-03 Thread Roman Gushchin
On Thu, Sep 03, 2020 at 09:10:59PM -0700, Andrew Morton wrote: > On Thu, 3 Sep 2020 16:00:55 -0700 Roman Gushchin wrote: > > > In the memcg case count_shadow_nodes() sums the number of pages in lru > > lists and the amount of slab memory (reclaimable and non-reclaimable) > > as a baseline for the

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-03 Thread Andrew Morton
On Thu, 3 Sep 2020 16:00:55 -0700 Roman Gushchin wrote: > In the memcg case count_shadow_nodes() sums the number of pages in lru > lists and the amount of slab memory (reclaimable and non-reclaimable) > as a baseline for the allowed number of shadow entries. > > It seems to be a good analogy for

[PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-03 Thread Roman Gushchin
In the memcg case count_shadow_nodes() sums the number of pages in lru lists and the amount of slab memory (reclaimable and non-reclaimable) as a baseline for the allowed number of shadow entries. It seems to be a good analogy for the !memcg case, where node_present_pages() is used. However, it's

[PATCH] arm64: dts: agilex: increase shared memory size to 32Mb

2020-08-04 Thread richard . gong
From: Richard Gong Increase the shared memory size from 16Mb to 32Mb so that we can properly handle the image authorization for 12+ Mb RBF/JIC files. Signed-off-by: Richard Gong --- arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 0/2] Make memory size reporting in kexec_file_load() accurate

2020-04-30 Thread Will Deacon
On Thu, 30 Apr 2020 18:31:40 +0200, =?UTF-8?q?=C5=81ukasz=20Stelmach?= wrote: > Calling kexec_add_buffer() page-alligns the value of kbuf.memsz, so it > is not same as the requested value. Hence both bufsz and memsz should > after kexec_add_buffer() is called should be be reported separately. > >

[PATCH v2 0/2] Make memory size reporting in kexec_file_load() accurate

2020-04-30 Thread Łukasz Stelmach
Calling kexec_add_buffer() page-alligns the value of kbuf.memsz, so it is not same as the requested value. Hence both bufsz and memsz should after kexec_add_buffer() is called should be be reported separately. Łukasz Stelmach (2): arm64: kexec_file: print appropriate variable x86: kexec_file:

[PATCH v3 4/8] EDAC/amd64: Find Chip Select memory size using Address Mask

2019-08-21 Thread Ghannam, Yazen
From: Yazen Ghannam Chip Select memory size reporting on AMD Family 17h was recently fixed in order to account for interleaving. However, the current method is not robust. The Chip Select Address Mask can be used to find the memory size. There are a couple of cases. 1) For single-rank and dual

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-14 Thread Andrew Morton
>Please send along a paragraph which explains this, for the changelog. > >Does this patch fix some user-visible problem? If so, should be code > >be backported into -stable kernels? > It should go to linux-next, no one has been using it till this patch > with 32 bits as w/o th

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-14 Thread Ivan Khoronzhuk
;s example of potential next commit message: Subject: mm: mmap: increase sockets maximum memory size pgoff for 32bits The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING and XDP_UMEM_PGOFF_COMPLETION_RING offsets. These offsets are established already and are part of the confi

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-13 Thread Ivan Khoronzhuk
On Tue, Aug 13, 2019 at 10:02:54AM +0200, Magnus Karlsson wrote: On Mon, Aug 12, 2019 at 2:45 PM Ivan Khoronzhuk wrote: The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are established already and are par

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-13 Thread Magnus Karlsson
On Mon, Aug 12, 2019 at 2:45 PM Ivan Khoronzhuk wrote: > > The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING > and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are > established already and are part of configuration interface. > > But for 32-bit systems, whi

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-12 Thread Andrew Morton
On Mon, 12 Aug 2019 15:43:26 +0300 Ivan Khoronzhuk wrote: > The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING > and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are > established already and are part of configuration interface. > > But for 32-bit systems,

Re: [PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-12 Thread Daniel Borkmann
On 8/12/19 2:43 PM, Ivan Khoronzhuk wrote: The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are established already and are part of configuration interface. But for 32-bit systems, while AF_XDP socket confi

[PATCH v2 bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-12 Thread Ivan Khoronzhuk
The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are established already and are part of configuration interface. But for 32-bit systems, while AF_XDP socket configuration, the values are to large to pass max

[PATCH bpf-next] mm: mmap: increase sockets maximum memory size pgoff for 32bits

2019-08-12 Thread Ivan Khoronzhuk
The AF_XDP sockets umem mapping interface uses XDP_UMEM_PGOFF_FILL_RING and XDP_UMEM_PGOFF_COMPLETION_RING offsets. The offsets seems like are established already and are part of configuration interface. But for 32-bit systems, while AF_XDP socket configuration, the values are to large to pass max

[tip:perf/urgent] perf tools: Fix perf.data documentation units for memory size

2019-07-29 Thread tip-bot for Vince Weaver
: Fix perf.data documentation units for memory size The perf.data-file-format documentation incorrectly says the HEADER_TOTAL_MEM results are in bytes. The results are in kilobytes (perf reads the value from /proc/meminfo) Signed-off-by: Vince Weaver Cc: Alexander Shishkin Cc: Jiri Olsa Cc

Re: [patch] perf.data documentation has wrong units for memory size

2019-07-27 Thread Jiri Olsa
On Thu, Jul 25, 2019 at 11:57:43AM -0400, Vince Weaver wrote: > > The perf.data-file-format documentation incorrectly says the > HEADER_TOTAL_MEM results are in bytes. The results are in kilobytes > (perf reads the value from /proc/meminfo) > > Signed-off-by: Vince Weaver Acked-by: Jiri Olsa

[patch] perf.data documentation has wrong units for memory size

2019-07-25 Thread Vince Weaver
The perf.data-file-format documentation incorrectly says the HEADER_TOTAL_MEM results are in bytes. The results are in kilobytes (perf reads the value from /proc/meminfo) Signed-off-by: Vince Weaver diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/p

[PATCH v2 4/7] EDAC/amd64: Find Chip Select memory size using Address Mask

2019-07-09 Thread Ghannam, Yazen
From: Yazen Ghannam Chip Select memory size reporting on AMD Family 17h was recently fixed in order to account for interleaving. However, the current method is not robust. The Chip Select Address Mask can be used to find the memory size. There are a few cases. 1) For single-rank, use the

[PATCH 5/8] EDAC/amd64: Find Chip Select memory size using Address Mask

2019-05-31 Thread Ghannam, Yazen
From: Yazen Ghannam Chip Select memory size reporting on AMD Family 17h was recently fixed in order to account for interleaving. However, the current method is not robust. The Chip Select Address Mask can be used to find the memory size. There are a few cases. 1) For single-rank, use the

Re: [PATCH bpf-next 5/5] bpf: move memory size checks to bpf_map_charge_init()

2019-05-30 Thread Roman Gushchin
On Thu, May 30, 2019 at 11:56:55AM -0700, Song Liu wrote: > On Wed, May 29, 2019 at 6:05 PM Roman Gushchin wrote: > > > > Most bpf map types doing similar checks and bytes to pages > > conversion during memory allocation and charging. > > > > Let's unify these checks by moving them into bpf_map_ch

Re: [PATCH bpf-next 5/5] bpf: move memory size checks to bpf_map_charge_init()

2019-05-30 Thread Song Liu
On Wed, May 29, 2019 at 6:05 PM Roman Gushchin wrote: > > Most bpf map types doing similar checks and bytes to pages > conversion during memory allocation and charging. > > Let's unify these checks by moving them into bpf_map_charge_init(). > > Signed-off-by: Roman Gushchin Nice, I was thinking

[PATCH bpf-next 5/5] bpf: move memory size checks to bpf_map_charge_init()

2019-05-29 Thread Roman Gushchin
Most bpf map types doing similar checks and bytes to pages conversion during memory allocation and charging. Let's unify these checks by moving them into bpf_map_charge_init(). Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 2 +- kernel/bpf/arraymap.c | 8 +---

[tip:locking/core] locking/lockdep: Fix reported required memory size (2/2)

2019-02-27 Thread tip-bot for Bart Van Assche
reported required memory size (2/2) Lock chains are only tracked with CONFIG_PROVE_LOCKING=y. Do not report the memory required for the lock chain array if CONFIG_PROVE_LOCKING=n. See also commit: ca58abcb4a6d ("lockdep: sanitise CONFIG_PROVE_LOCKING") Include the size of the ch

[tip:locking/core] locking/lockdep: Fix reported required memory size (1/2)

2019-02-27 Thread tip-bot for Bart Van Assche
reported required memory size (1/2) Change the sizeof(array element time) * (array size) expressions into sizeof(array). This fixes the size computations of the classhash_table[] and chainhash_table[] arrays. The reason is that commit: a63f38cc4ccf ("locking/lockdep: Convert hash tabl

[PATCH v7 02/23] locking/lockdep: Fix reported required memory size (1/2)

2019-02-14 Thread Bart Van Assche
Change the sizeof(array element time) * (array size) expressions into sizeof(array). This fixes the size computations of the classhash_table[] and chainhash_table[] arrays. Commit a63f38cc4ccf ("locking/lockdep: Convert hash tables to hlists") namely changed the type of the elements of that array f

[PATCH v7 03/23] locking/lockdep: Fix reported required memory size (2/2)

2019-02-14 Thread Bart Van Assche
Lock chains are only tracked with CONFIG_PROVE_LOCKING=y. Do not report the memory required for the lock chain array if CONFIG_PROVE_LOCKING=n. See also commit ca58abcb4a6d ("lockdep: sanitise CONFIG_PROVE_LOCKING"). Include the size of the chain_hlocks[] array. Cc: Peter Zijlstra Cc: Waiman Lon

Re: [PATCH v3 1/2] x86: respect memory size limiting via mem= parameter

2019-02-14 Thread William Kucharski
> On Feb 14, 2019, at 3:42 AM, Juergen Gross wrote: > > When limiting memory size via kernel parameter "mem=" this should be > respected even in case of memory made accessible via a PCI card. > > Today this kind of memory won't be made usable in initial memo

[PATCH v3 1/2] x86: respect memory size limiting via mem= parameter

2019-02-14 Thread Juergen Gross
When limiting memory size via kernel parameter "mem=" this should be respected even in case of memory made accessible via a PCI card. Today this kind of memory won't be made usable in initial memory setup as the memory won't be visible in E820 map, but it might be added whe

[PATCH v3 0/2] x86: respect memory size limits

2019-02-14 Thread Juergen Gross
On a customer system running Xen a boot problem was observed due to the kernel not respecting the memory size limit imposed by the Xen hypervisor. During analysis I found the same problem should be able to occur on bare metal in case the memory would be limited via the "mem=" boot param

Re: [Xen-devel] [PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-02-11 Thread Juergen Gross
On 11/02/2019 13:23, Ingo Molnar wrote: > > * Juergen Gross wrote: > >>> If PCI devices had physical mmio memory areas above this range, we'd >>> still expect them to work - the option was really only meant to limit >>> RAM. >> >> No, in this case it seems to be real RAM added via PCI. The RAM

Re: [Xen-devel] [PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-02-11 Thread Ingo Molnar
* Juergen Gross wrote: > > If PCI devices had physical mmio memory areas above this range, we'd > > still expect them to work - the option was really only meant to limit > > RAM. > > No, in this case it seems to be real RAM added via PCI. The RAM is > initially present in the E820 map, but

Re: [Xen-devel] [PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-02-11 Thread Juergen Gross
On 11/02/2019 13:06, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> When limiting memory size via kernel parameter "mem=" this should be >> respected even in case of memory made accessible via a PCI card. >> >> Today this kind of memory won't

Re: [PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-02-11 Thread Ingo Molnar
* Juergen Gross wrote: > When limiting memory size via kernel parameter "mem=" this should be > respected even in case of memory made accessible via a PCI card. > > Today this kind of memory won't be made usable in initial memory > setup as the memory won&#x

[PATCH v2 0/2] x86: respect memory size limits

2019-01-30 Thread Juergen Gross
On a customer system running Xen a boot problem was observed due to the kernel not respecting the memory size limit imposed by the Xen hypervisor. During analysis I found the same problem should be able to occur on bare metal in case the memory would be limited via the "mem=" boot param

[PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-01-30 Thread Juergen Gross
When limiting memory size via kernel parameter "mem=" this should be respected even in case of memory made accessible via a PCI card. Today this kind of memory won't be made usable in initial memory setup as the memory won't be visible in E820 map, but it might be added whe

Re: [PATCH 1/2] x86: respect memory size limiting via mem= parameter

2019-01-23 Thread Juergen Gross
On 23/01/2019 15:35, William Kucharski wrote: > > >> On Jan 22, 2019, at 1:06 AM, Juergen Gross wrote: >> >> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c >> index b9a667d36c55..7fc2a87110a3 100644 >> --- a/mm/memory_hotplug.c >> +++ b/mm/memory_hotplug.c >> @@ -96,10 +96,16 @@ void mem

Re: [PATCH 1/2] x86: respect memory size limiting via mem= parameter

2019-01-23 Thread William Kucharski
> On Jan 22, 2019, at 1:06 AM, Juergen Gross wrote: > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index b9a667d36c55..7fc2a87110a3 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -96,10 +96,16 @@ void mem_hotplug_done(void) > cpus_read_unlock(); > } >

[PATCH 1/2] x86: respect memory size limiting via mem= parameter

2019-01-22 Thread Juergen Gross
When limiting memory size via kernel parameter "mem=" this should be respected even in case of memory made accessible via a PCI card. Today this kind of memory won't be made usable in initial memory setup as the memory won't be visible in E820 map, but it might be added whe

[PATCH 0/2] x86: respect memory size limits

2019-01-22 Thread Juergen Gross
On a customer system running Xen a boot problem was observed due to the kernel not respecting the memory size limit imposed by the Xen hypervisor. During analysis I found the same problem should be able to occur on bare metal in case the memory would be limited via the "mem=" boot param

[PATCH v6 01/16] locking/lockdep: Fix reported required memory size

2019-01-09 Thread Bart Van Assche
Change the sizeof(array element time) * (array size) expressions into sizeof(array). This fixes the size computations of the classhash_table[] and chainhash_table[] arrays. Commit a63f38cc4ccf ("locking/lockdep: Convert hash tables to hlists") namely changed the type of the elements of that array f

[PATCH v5 01/15] locking/lockdep: Fix required memory size reported if CONFIG_PROVE_LOCKING=n

2018-12-17 Thread Bart Van Assche
Lock chains are only tracked with CONFIG_PROVE_LOCKING=y. Do not report the memory required for the lock chain array if CONFIG_PROVE_LOCKING=n. Fixes: ca58abcb4a6d ("lockdep: sanitise CONFIG_PROVE_LOCKING") # v2.6.23 Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van A

[PATCH v4 01/15] locking/lockdep: Fix required memory size reported if CONFIG_PROVE_LOCKING=n

2018-12-11 Thread Bart Van Assche
Lock chains are only tracked with CONFIG_PROVE_LOCKING=y. Do not report the memory required for the lock chain array if CONFIG_PROVE_LOCKING=n. Fixes: ca58abcb4a6d ("lockdep: sanitise CONFIG_PROVE_LOCKING") # v2.6.23 Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van A

[PATCH v2 1/9] ARM: dts: imx7d-pico: Do not harcode the memory size

2018-12-06 Thread Otavio Salvador
From: Fabio Estevam Currently the memory size described in dts is 2GB, which is incorrect. There are 512MB and 1GB versions of imx7d-pico boards, so remove the hardcoded memory size and let the bootloader pass the correct value to the kernel. Signed-off-by: Fabio Estevam Signed-off-by: Otavio

[PATCH 1/9] ARM: dts: imx7d-pico: Do not harcode the memory size

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam Currently the memory size described in dts is 2GB, which is incorrect. There are 512MB and 1GB versions of imx7d-pico boards, so remove the hardcoded memory size and let the bootloader pass the correct value to the kernel. Signed-off-by: Fabio Estevam Signed-off-by: Otavio

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-11-19 Thread Ramon Fried
On Mon, Nov 19, 2018 at 5:50 PM Robin Murphy wrote: > > On 19/11/2018 14:18, Ramon Fried wrote: > > On Tue, Oct 9, 2018 at 8:02 AM Benjamin Herrenschmidt > > wrote: > >> > >> On Wed, 2018-10-03 at 16:10 -0700, Alexander Duyck wrote: > -* Because 32-bit DMA masks are so common we expe

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-11-19 Thread Robin Murphy
On 19/11/2018 14:18, Ramon Fried wrote: On Tue, Oct 9, 2018 at 8:02 AM Benjamin Herrenschmidt wrote: On Wed, 2018-10-03 at 16:10 -0700, Alexander Duyck wrote: -* Because 32-bit DMA masks are so common we expect every architecture -* to be able to satisfy them - either by not s

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-11-19 Thread Ramon Fried
On Tue, Oct 9, 2018 at 8:02 AM Benjamin Herrenschmidt wrote: > > On Wed, 2018-10-03 at 16:10 -0700, Alexander Duyck wrote: > > > -* Because 32-bit DMA masks are so common we expect every > > > architecture > > > -* to be able to satisfy them - either by not supporting more > > >

[PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-09-27 Thread Christoph Hellwig
This way an architecture with less than 4G of RAM can support dma_mask smaller than 32-bit without a ZONE_DMA. Apparently that is a common case on powerpc. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- kernel/dma/direct.c | 28 1 file changed, 16 i

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-09-27 Thread Robin Murphy
[ oops, I should have looked at the replies first, now I see Ben already had the same thing to say about #3... ] On 27/09/18 14:49, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 11:50:14AM +1000, Benjamin Herrenschmidt wrote: -* to be able to satisfy them - either by not supporting

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 11:50:14AM +1000, Benjamin Herrenschmidt wrote: > > -* to be able to satisfy them - either by not supporting more physical > > -* memory, or by providing a ZONE_DMA32. If neither is the case, the > > -* architecture needs to use an IOMMU instead of the direct ma

[PATCH 4.4 46/60] irqchip/gicv3-its: Avoid cache flush beyond ITS_BASERn memory size

2018-09-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shanker Donthineni commit 2eca0d6ceea1f108b2d3ac81fb34698c4fd41006 upstream. Function its_alloc_tables() maintains two local variables, "order" and and "alloc_size", to h

Re: [PATCH] arm: dts: zynq: Fix memory size on the Zybo Z7 board

2018-07-18 Thread Michal Simek
On 27.6.2018 01:20, Luis Araneda wrote: > According to the reference manual, the board has two Micron > MT41K256M16HA-125 DDR3L memory ICs, which have 512 MiB each > > Tested on a ZYBO-Z7-20 board > > Signed-off-by: Luis Araneda > --- > arch/arm/boot/dts/zynq-zybo-z7.dts | 2 +- > 1 file change

[PATCH] arm: dts: zynq: Fix memory size on the Zybo Z7 board

2018-06-26 Thread Luis Araneda
According to the reference manual, the board has two Micron MT41K256M16HA-125 DDR3L memory ICs, which have 512 MiB each Tested on a ZYBO-Z7-20 board Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-zybo-z7.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/bo

[PATCH 04/11] scsi: hisi_sas: fix PI memory size

2018-05-02 Thread John Garry
From: Xiang Chen There are 28 bytes of protection information record of SSP for v3 hw, 16 bytes for v2 hw, and probably 24 for v1 hw (forgotten now). So use a value big enough in hisi_sas_command_table_ssp.prot to cover all cases. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drive

[PATCH 2/2] kdump: round up the total memory size to 128M for crashkernel reservation

2018-04-27 Thread dyoung
The total memory size we get in kernel is usually slightly less than 2G with a 2G memory module machine. The main reason is bios/firmware reserve some area it will not export all memory as usable to Linux. 2G memory X86 kvm guest test result of the total_mem value: UEFI boot with ovmf: 0x7ef1

[PATCH v2 04/12] arm: dts: mt7623: fix available memory size on bananapi-r2

2018-04-11 Thread sean.wang
From: Sean Wang There is 2GB DDR3 available on bananapi-r2 board as [1] specified. [1] http://www.banana-pi.org/r2.html Signed-off-by: Sean Wang Cc: Rob Herring --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot

Re: [PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2

2018-03-05 Thread Sean Wang
On Mon, 2018-03-05 at 08:16 -0600, Rob Herring wrote: > On Fri, Mar 2, 2018 at 5:27 PM, Sean Wang wrote: > > On Fri, 2018-03-02 at 09:42 -0600, Rob Herring wrote: > >> On Fri, Feb 23, 2018 at 06:16:36PM +0800, sean.w...@mediatek.com wrote: > >> > From: Sean Wang > >> > > >> > There is 2GB DDR3 av

Re: [PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2

2018-03-05 Thread Rob Herring
On Fri, Mar 2, 2018 at 5:27 PM, Sean Wang wrote: > On Fri, 2018-03-02 at 09:42 -0600, Rob Herring wrote: >> On Fri, Feb 23, 2018 at 06:16:36PM +0800, sean.w...@mediatek.com wrote: >> > From: Sean Wang >> > >> > There is 2GB DDR3 available on bananapi-r2 board as [1] specified. >> > >> > [1] http:

Re: [PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2

2018-03-02 Thread Sean Wang
On Fri, 2018-03-02 at 09:42 -0600, Rob Herring wrote: > On Fri, Feb 23, 2018 at 06:16:36PM +0800, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > There is 2GB DDR3 available on bananapi-r2 board as [1] specified. > > > > [1] http://www.banana-pi.org/r2.html > > > > Signed-off-by: Sean

Re: [PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2

2018-03-02 Thread Rob Herring
On Fri, Feb 23, 2018 at 06:16:36PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > There is 2GB DDR3 available on bananapi-r2 board as [1] specified. > > [1] http://www.banana-pi.org/r2.html > > Signed-off-by: Sean Wang > --- > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 5

[PATCH tip/core/rcu 08/12] torture: Specify qemu memory size with --memory argument

2018-02-26 Thread Paul E. McKenney
The 512 megabyte memory size has served quite well, but more memory is required when using large trace buffers on large systems. This commit therefore adds a --memory argument to the kvm.sh script, which allows the memory size to be specified on the command line, for example, "--memor

[PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2

2018-02-23 Thread sean.wang
From: Sean Wang There is 2GB DDR3 available on bananapi-r2 board as [1] specified. [1] http://www.banana-pi.org/r2.html Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2

Re: [PATCH v3 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-02-04 Thread Shawn Guo
On Wed, Jan 24, 2018 at 11:22:12AM -0200, Marco Franchi wrote: > In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass > 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory > size. > > Signed-off-by: Marco Franchi Applied all, thanks.

Re: [PATCH v3 2/3] ARM: dts: imx: Remove empty memory size nodes

2018-02-02 Thread Fabio Estevam
On Wed, Jan 24, 2018 at 11:22 AM, Marco Franchi wrote: > Remove the empty reg property from the SoC dtsi files in order to avoid > duplicate memory nodes when the correct size is passed in board dts files. > > Signed-off-by: Marco Franchi Reviewed-by: Fabio Estevam

Re: [PATCH v3 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-02-02 Thread Fabio Estevam
On Wed, Jan 24, 2018 at 11:22 AM, Marco Franchi wrote: > In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass > 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory > size. > > Signed-off-by: Marco Franchi Reviewed-by: Fabio Estevam

[PATCH v3 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-01-24 Thread Marco Franchi
In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory size. Signed-off-by: Marco Franchi --- Change since v2: -change 'memory@0 {' to 'memory {

[PATCH v3 2/3] ARM: dts: imx: Remove empty memory size nodes

2018-01-24 Thread Marco Franchi
Remove the empty reg property from the SoC dtsi files in order to avoid duplicate memory nodes when the correct size is passed in board dts files. Signed-off-by: Marco Franchi --- Change since v2: -none arch/arm/boot/dts/imx1.dtsi| 2 +- arch/arm/boot/dts/imx23.dtsi | 2 +- arch/arm/boot/d

Re: [PATCH v2 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-01-24 Thread Fabio Estevam
Hi Marco, On Wed, Jan 24, 2018 at 10:21 AM, Marco Franchi wrote: > In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass > 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory > size. > > Signed-off-by: Marco Fr

Re: [PATCH v2 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-01-24 Thread Fabio Estevam
Oi Marco, On Wed, Jan 24, 2018 at 10:21 AM, Marco Franchi wrote: > In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass > 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory > size. > > Signed-off-by: Marco Fr

[PATCH v2 2/3] ARM: dts: imx: Remove empty memory size nodes

2018-01-24 Thread Marco Franchi
Remove the empty reg property from the SoC dtsi files in order to avoid duplicate memory nodes when the correct size is passed in board dts files. Signed-off-by: Marco Franchi --- Change since v1: -none arch/arm/boot/dts/imx1.dtsi| 2 +- arch/arm/boot/dts/imx23.dtsi | 2 +- arch/arm/boot/d

[PATCH v2 1/3] ARM: dts: imx: Pass empty memory size on board dts

2018-01-24 Thread Marco Franchi
In preparation for removing 'reg = <0 0>;' from the dtsi SoC files, pass 'reg = <0 0 >;' to the dts/dtsi board files that do not pass the memory size. Signed-off-by: Marco Franchi --- Change since v1: -none arch/arm/boot/dts/imx51-zii-rdu1.dts | 5 +++

Re: [PATCH 1/2] mm: Fix memory size alignment in devm_memremap_pages_release()

2018-01-19 Thread Dan Williams
On Wed, Jan 17, 2018 at 4:06 PM, Jan H. Schönherr wrote: > The functions devm_memremap_pages() and devm_memremap_pages_release() use > different ways to calculate the section-aligned amount of memory. The > latter function may use an incorrect size if the memory region is small > but straddles a s

[PATCH 1/2] mm: Fix memory size alignment in devm_memremap_pages_release()

2018-01-17 Thread Jan H . Schönherr
The functions devm_memremap_pages() and devm_memremap_pages_release() use different ways to calculate the section-aligned amount of memory. The latter function may use an incorrect size if the memory region is small but straddles a section border. Use the same code for both. Fixes: 5f29a77cd957 (

[PATCH v2] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-11-03 Thread Vince Kim
There are several places to perform subtraction to calculate buffer size such as: si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs; ... p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL); Actually, data types of above variables during subtraction are size_t,

Re: [PATCH] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-11-03 Thread Dmitry Torokhov
On Thu, Nov 02, 2017 at 08:49:35PM -0700, Vince Kim wrote: > Hello Dmitry, > > I attached patch with signed-off-by. *sigh* did you try compile that? + if (si->si_ofs.test_ofs <= si->si_ofs.cydata_ofs) + dev_err(cd->dev, "%s: invalid offset test_ofs:%zd, cydata_ofs:%zd \n",

[PATCH 3/3 update] kdump: round up the total memory size to 128M for crashkernel reservation

2017-11-02 Thread Dave Young
The total memory size we get in kernel is usually slightly less than 2G with a 2G memory module machine. The main reason is bios/firmware reserve some area it will not export all memory as usable to Linux. 2G memory X86 kvm guest test result of the total_mem value: UEFI boot with ovmf: 0x7ef1

Re: [PATCH] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-11-02 Thread Dmitry Torokhov
Hi Vince, On Wed, Nov 01, 2017 at 09:13:58PM -0700, Vince Kim wrote: > It looks patch send to the maintainer rejected. > I can take the patch, but I need your signed-off-by please. > Can anyone take a look? > > > > *==* > > *Delivery has failed to these recipient

Re: [PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-11-01 Thread Baoquan He
On 10/24/17 at 02:09pm, Dave Young wrote: > Hi Baoquan, > > On 10/24/17 at 01:57pm, Baoquan He wrote: > > Hi Dave, > > > > On 10/24/17 at 01:31pm, Dave Young wrote: > > > The total memory size we get in kernel is usually slightly less than 2G > > &g

[PATCH] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-10-31 Thread Vince Kim
There are several places to perform subtraction to calculate buffer size such as: si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs; ... p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL); Actually, data types of above variables during subtraction are size_t,

Re: [PATCH 1/2] mm: extract common code for calculating total memory size

2017-10-31 Thread Yang Shi
On 10/27/17 9:51 AM, Yang Shi wrote: On 10/27/17 3:00 AM, Christopher Lameter wrote: On Thu, 26 Oct 2017, Yang Shi wrote: diff --git a/include/linux/mm.h b/include/linux/mm.h index 935c4d4..e21b81e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2050,6 +2050,31 @@ extern int _

Re: [PATCH 1/2] mm: extract common code for calculating total memory size

2017-10-27 Thread Yang Shi
On 10/27/17 3:00 AM, Christopher Lameter wrote: On Thu, 26 Oct 2017, Yang Shi wrote: diff --git a/include/linux/mm.h b/include/linux/mm.h index 935c4d4..e21b81e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2050,6 +2050,31 @@ extern int __meminit __early_pfn_to_nid(unsigned lon

Re: [PATCH 1/2] mm: extract common code for calculating total memory size

2017-10-27 Thread Christopher Lameter
On Thu, 26 Oct 2017, Yang Shi wrote: > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 935c4d4..e21b81e 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2050,6 +2050,31 @@ extern int __meminit __early_pfn_to_nid(unsigned long > pfn, > static inline void zero_resv_u

[PATCH 1/2] mm: extract common code for calculating total memory size

2017-10-25 Thread Yang Shi
Total memory size is needed by unreclaimable slub oom to check if significant memory is used by a single slab. But, the caculation work is done in show_mem(), so extracting the common code in order to share with others. Signed-off-by: Yang Shi --- include/linux/mm.h | 25

[PATCH 05/19] scsi: hisi_sas: fix SATA breakpoint memory size

2017-10-24 Thread John Garry
From: Xiang Chen Currently the size of memory we allocate for SATA breakpoint buffer is incorrect. The breakpoint memory size should be as follows: 32 (NCQ tags) * 128 * 2048 (max #devs) = 8MB Currently we only allocate 0.5MB, but get away with it as we never have SATA device index >

Re: [PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread Dave Young
Hi Baoquan, On 10/24/17 at 01:57pm, Baoquan He wrote: > Hi Dave, > > On 10/24/17 at 01:31pm, Dave Young wrote: > > The total memory size we get in kernel is usually slightly less than 2G > > with a > > 2G memory module machine. The main reason is bios/firmware reserv

Re: [PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread Baoquan He
Hi Dave, On 10/24/17 at 01:31pm, Dave Young wrote: > The total memory size we get in kernel is usually slightly less than 2G with a > 2G memory module machine. The main reason is bios/firmware reserve some area > it will not export all memory as usable to Linux. > > 2G memory X86

[PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread dyoung
The total memory size we get in kernel is usually slightly less than 2G with a 2G memory module machine. The main reason is bios/firmware reserve some area it will not export all memory as usable to Linux. 2G memory X86 kvm guest test result of the total_mem value: UEFI boot with ovmf: 0x7ef1

[PATCH 3.10 241/268] catc: Use heap buffer for memory size test

2017-06-19 Thread Willy Tarreau
f (!catc->is_f5u011) { + u32 *buf; + int i; + dev_dbg(dev, "Checking memory size\n"); - i = 0x12345678; - catc_write_mem(catc, 0x7a80, &i, 4); - i = 0x87654321; -

Re: [PATCH] EDAC: mv64x60 calculate memory size correctly

2017-06-07 Thread Borislav Petkov
On Tue, Jun 06, 2017 at 09:19:04PM +, Chris Packham wrote: > "mvebu" is the current trend for this family of orion/kirkwood/armada > SoCs. I can take mv64x60_edac.c and gut it to use as a base. s/gut it/copy stuff for your own use in your *separate* driver/ Let's leave mv64x60_edac.c alone.

[PATCH v2 1/3] EDAC: mv64x60: calculate memory size correctly

2017-06-06 Thread Chris Packham
The #address-cells and #size-cells properties need to be accounted for when dealing with the "memory" device tree node. Use of_address_to_resource() and resource_size() to retrieve the size of the memory node which will automatically take the #cells into account. Signed-off-by: Chris Packham ---

Re: [PATCH] EDAC: mv64x60 calculate memory size correctly

2017-06-06 Thread Chris Packham
On 07/06/17 04:55, Borislav Petkov wrote: > On Tue, Jun 06, 2017 at 03:07:04AM +, Chris Packham wrote: >> I'll wait for feedback before sending a v2. > > You can't be expecting me to review PPC code reliably. :-) Yeah sorry I should have included linuxppc-dev. Will do on v2. I don't think th

Re: [PATCH] EDAC: mv64x60 calculate memory size correctly

2017-06-06 Thread Borislav Petkov
On Tue, Jun 06, 2017 at 03:07:04AM +, Chris Packham wrote: > I'll wait for feedback before sending a v2. You can't be expecting me to review PPC code reliably. :-) AFAIR from the recent discussion, Michael said that the aim is to remove CONFIG_MV64X60 and since this driver depends on it, that

  1   2   3   4   >