Re: [RFC PATCH 30/39] KVM: guest_memfd: Handle folio preparation for guest_memfd mmap

2024-09-16 Thread Elliot Berman
On Tue, Sep 10, 2024 at 11:44:01PM +, Ackerley Tng wrote: > Since guest_memfd now supports mmap(), folios have to be prepared > before they are faulted into userspace. > > When memory attributes are switched between shared and private, the > up-to-date flags will be cleared. > > Use the folio

Re: [RFC PATCH 15/39] KVM: guest_memfd: hugetlb: allocate and truncate from hugetlb

2024-09-13 Thread Elliot Berman
On Tue, Sep 10, 2024 at 11:43:46PM +, Ackerley Tng wrote: > If HugeTLB is requested at guest_memfd creation time, HugeTLB pages > will be used to back guest_memfd. > > Signed-off-by: Ackerley Tng > --- > virt/kvm/guest_memfd.c | 252 ++--- > 1 file changed

[PATCH v2] Kbuild: Update config_data.gz only if KCONFIG_CONFIG materially changed

2021-04-05 Thread Elliot Berman
defconfig tiny.config vmlinux With this patch, vmlinux is not re-built as a result of config_data.gz change. Changes in v2: - Use md5 checksum to compare .config instead of gzip'ing again Signed-off-by: Elliot Berman --- kernel/.gitignore | 1 + kernel/Makefile | 4 +++- k

Re: [PATCH] Kbuild: Update config_data.gz only if KCONFIG_CONFIG materially changed

2021-04-04 Thread Elliot Berman
On 4/2/2021 10:11 PM, Masahiro Yamada wrote: On Fri, Apr 2, 2021 at 7:45 AM Elliot Berman wrote: If you update the timestamp of KCONFIG_CONFIG without actually changing anything, config_data.gz is re-generated and causes vmlinux to re-link. When Link Time Optimization is enabled, unnecessary

Re: [PATCH v2] firmware: qcom_scm: Only compile legacy calls on ARM

2021-04-01 Thread Elliot Berman
the legacy code around on arm64 kernels, i.e. presumably that commit wasn't trying to support these legacy APIs on arm64 kernels. Cc: Elliot Berman Cc: Brian Masney Cc: Stephan Gerhold Cc: Jeffrey Hugo Cc: Douglas Anderson Signed-off-by: Stephen Boyd --- It might be a good idea to wrap

[PATCH] Kbuild: Update config_data.gz only if KCONFIG_CONFIG materially changed

2021-04-01 Thread Elliot Berman
x86 default defconfig to set CONFIG_IKCONFIG=y and run: make -j50 defconfig tiny.config vmlinux make -j50 defconfig tiny.config vmlinux With this patch, vmlinux is not re-built as a result of config_data.gz change. Signed-off-by: Elliot Berman --- kernel/Makefile | 2 +- scripts

Re: [PATCH 6/6] firmware: qcom_scm: Only compile legacy calls on ARM

2021-03-23 Thread Elliot Berman
On 3/22/2021 8:36 PM, Stephen Boyd wrote: Quoting Bjorn Andersson (2021-03-07 09:42:45) On Sat 06 Mar 00:18 CST 2021, Stephen Boyd wrote: Quoting Elliot Berman (2021-03-05 10:18:09) On 3/3/2021 10:14 PM, Stephen Boyd wrote: Quoting Elliot Berman (2021-03-03 19:35:08) > +desc.arg

Re: [PATCH 6/6] firmware: qcom_scm: Only compile legacy calls on ARM

2021-03-05 Thread Elliot Berman
On 3/3/2021 10:14 PM, Stephen Boyd wrote: Quoting Elliot Berman (2021-03-03 19:35:08) On 2/23/2021 1:45 PM, Stephen Boyd wrote: These scm calls are never used outside of legacy ARMv7 based platforms. That's because PSCI, mandated on arm64, implements them for modern SoCs via the PSCI

Re: [PATCH 6/6] firmware: qcom_scm: Only compile legacy calls on ARM

2021-03-03 Thread Elliot Berman
On 2/23/2021 1:45 PM, Stephen Boyd wrote: These scm calls are never used outside of legacy ARMv7 based platforms. That's because PSCI, mandated on arm64, implements them for modern SoCs via the PSCI spec. Let's move them to the legacy file and only compile the legacy file into the kernel when C

[RFC 1/2] Kbuild: Make composite object searching more generic

2021-01-22 Thread Elliot Berman
Reduce repeated logic around expanding composite objects in preparation for later commit to support nested composite objects. Signed-off-by: Elliot Berman --- scripts/Makefile.lib | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.lib b/scripts

[RFC 2/2] Kbuild: Support nested composite objects

2021-01-22 Thread Elliot Berman
:= bar-a.o bar-b.o obj-m += foo.o Add such support by recursively searching for composite objects and listing them in $(multi-used-*) and $(real-obj-*). Signed-off-by: Elliot Berman --- scripts/Makefile.lib | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts

[RFC 0/2] Kbuild: Support nested composite objects

2021-01-22 Thread Elliot Berman
-*) and $(real-obj-*). Elliot Berman (2): Kbuild: Make composite object searching more generic Kbuild: Support nested composite objects scripts/Makefile.lib | 20 1 file changed, 16 insertions(+), 4 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code

Re: [PATCH] smp: Add bootcpus parameter to boot subset of CPUs

2020-10-29 Thread Elliot Berman
On 10/28/2020 8:15 AM, Sudeep Holla wrote: Hi Thomas and Peter, Based on my understanding with maxcpus option provides, maximum no of CPUs are brough up during the device boot up. There is a different case, in which we want to restrict which CPUs to be brough up. On a system with 8 cpus, if we s

Re: [PATCH] smp: Add bootcpus parameter to boot subset of CPUs

2020-10-27 Thread Elliot Berman
On 10/26/2020 10:12 AM, Peter Zijlstra wrote: On Mon, Oct 26, 2020 at 10:08:47AM -0700, psoda...@codeaurora.org wrote: On 2020-10-23 14:59, Thomas Gleixner wrote: On Thu, Oct 22 2020 at 15:04, Elliot Berman wrote: In a heterogeneous multiprocessor system, specifying the 'maxcpus'

[PATCH] smp: Add bootcpus parameter to boot subset of CPUs

2020-10-22 Thread Elliot Berman
to control which CPUs should be brought online during kernel boot. When both maxcpus and bootcpus is set, the more restrictive of the two are booted. Signed-off-by: Elliot Berman --- Documentation/admin-guide/kernel-parameters.txt | 8 +++ include/linux/cpu.h

Re: [RESEND PATCH v1 2/4] dt-bindings: power: reset: Add alternate reboot mode format

2020-08-26 Thread Elliot Berman
On 8/25/2020 5:25 PM, Rob Herring wrote: On Tue, Aug 18, 2020 at 11:54:14AM -0700, Elliot Berman wrote: Current reboot-mode device tree schema does not support reboot commands with spaces in them [1]. Add an optional new node "reboot-mode-names" and "reboot-mode-magic" w

[RESEND PATCH v1 0/4] Support spaces in reboot mode framework

2020-08-18 Thread Elliot Berman
1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/md/dm-verity-target.c?h=v5.5#n255 Elliot Berman (4): dt-bindings: power: reset: Convert reboot-mode to YAML dt-bindings: power: reset: Add alternate reboot mode format power: reset: Add support for reboot mode

[RESEND PATCH v1 4/4] arm64: dts: qcom: pm8150: Add reboot magic

2020-08-18 Thread Elliot Berman
Add reboot command magic values for pm8150 pon device. Signed-off-by: Elliot Berman --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 1b64069..afd6231 100644 --- a

[RESEND PATCH v1 3/4] power: reset: Add support for reboot mode alternate properties

2020-08-18 Thread Elliot Berman
Reboot mode driver does not currently support reboot commands with spaces in them [1]. Add an optional new node "reboot-mode-names" and "reboot-mode-magic" which add an array of strings and u32s, respectively which would permit any string in this framework. Signed-o

[RESEND PATCH v1 1/4] dt-bindings: power: reset: Convert reboot-mode to YAML

2020-08-18 Thread Elliot Berman
Convert reboot-mode bindings to YAML. Signed-off-by: Elliot Berman --- .../bindings/power/reset/reboot-mode.txt | 25 .../bindings/power/reset/reboot-mode.yaml | 47 ++ 2 files changed, 47 insertions(+), 25 deletions(-) delete mode 100644

[RESEND PATCH v1 2/4] dt-bindings: power: reset: Add alternate reboot mode format

2020-08-18 Thread Elliot Berman
tps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/md/dm-verity-target.c?h=v5.5#n255 Signed-off-by: Elliot Berman --- .../devicetree/bindings/power/reset/reboot-mode.yaml| 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/

Re: [PATCH v2 1/2] firmware: qcom_scm: Add memory protect virtual address ranges

2020-08-18 Thread Elliot Berman
Reviewed-by: Elliot Berman On 8/17/2020 1:27 AM, Stanimir Varbanov wrote: This adds a new SCM memprotect command to set virtual address ranges. Signed-off-by: Stanimir Varbanov --- drivers/firmware/qcom_scm.c | 24 drivers/firmware/qcom_scm.h | 1 + include

[PATCH] kbuild: Add dtc flag test

2020-08-05 Thread Elliot Berman
Host dtc may not support the same flags as kernel's copy of dtc. Test if dtc supports each flag when the dtc comes from host. Signed-off-by: Elliot Berman --- scripts/Makefile.lib | 34 ++ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/sc

Re: [PATCH 1/2] firmware: qcom_scm: Add memory protect virtual address ranges

2020-07-29 Thread Elliot Berman
++ On 7/24/2020 8:04 AM, Stanimir Varbanov wrote: > Hi, > > Gentle ping for review. > > On 7/9/20 2:58 PM, Stanimir Varbanov wrote: >> This adds a new SCM memprotect command to set virtual address ranges. >> >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/firmware/qcom_scm.c | 24 +++

Re: [PATCH] firmware: qcom_scm: Fix legacy convention SCM accessors

2020-07-13 Thread Elliot Berman
For the Qualcomm TrustZone firmwares which I am familiar with: Reviewed-by: Elliot Berman On 7/4/2020 10:23 AM, Jonathan McDowell wrote: > The move to a combined driver for the QCOM SCM hardware changed the > io_writel and io_readl helpers to use non-atomic calls, despite the > commi

Re: [PATCH] Revert "dynamic_debug: Remove unnecessary __used"

2020-05-11 Thread Elliot Berman
On 5/11/2020 11:54 AM, Joe Perches wrote> Change-Id: probably isn't necessary. Thanks for the catch > > Is there a separate mechanism possible to avoid bloating the > otherwise unused content? This struct is being used in lib/dynamic_debug.c but compiler doesn't know about this usage when optim

[PATCH] Revert "dynamic_debug: Remove unnecessary __used"

2020-05-11 Thread Elliot Berman
70808) clang version 10.0.1"] using arm64 default defconfig + DYNAMIC_DEBUG enabled. Change-Id: I28e9b86088eee5d5ed2384fbcea2ac2e7337a559 Signed-off-by: Elliot Berman --- include/linux/dynamic_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/dynamic