[PATCH v2 3/3] mm/memory_hotplug: fix unpaired mem_hotplug_begin/done

2020-07-06 Thread Jia He
When check_memblock_offlined_cb() returns failed rc(e.g. the memblock is online at that time), mem_hotplug_begin/done is unpaired in such case. Therefore a warning: Call Trace: percpu_up_write+0x33/0x40 try_remove_memory+0x66/0x120 ? _cond_resched+0x19/0x30 remove_memory+0x2b/0x40

Re: [PATCH v3 0/6] powerpc: queued spinlocks and rwlocks

2020-07-06 Thread Nicholas Piggin
Excerpts from Waiman Long's message of July 7, 2020 4:39 am: > On 7/6/20 12:35 AM, Nicholas Piggin wrote: >> v3 is updated to use __pv_queued_spin_unlock, noticed by Waiman (thank you). >> >> Thanks, >> Nick >> >> Nicholas Piggin (6): >>powerpc/powernv: must include hvcall.h to get PAPR

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Kees Cook
On Mon, Jul 06, 2020 at 09:29:46AM -0700, Andy Lutomirski wrote: > Is most contexts where 'whitelist' or 'blacklist' might be used, a > descriptive phrase could be used instead. For example, a seccomp > filter could have a 'list of allowed syscalls' or a 'list of > disallowed syscalls', and just

Re: [PATCH] powerpc/pseries: detect secure and trusted boot state of the system.

2020-07-06 Thread Michael Ellerman
Nayna Jain writes: > The device-tree property to check secure and trusted boot state is > different for guests(pseries) compared to baremetal(powernv). > > This patch updates the existing is_ppc_secureboot_enabled() and > is_ppc_trustedboot_enabled() function to add support for pseries. > >

[PATCH] [v2] PCI: qcom: Fix runtime PM imbalance on error

2020-07-06 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove redundant brackets. ---

Re: [Proposal] drm: amd: Convert logging to drm_* functions with drm_device parameter

2020-07-06 Thread Daniel Vetter
On Mon, Jul 06, 2020 at 04:21:38PM +0530, Suraj Upadhyay wrote: > Hii Maintainers, > I recently came across this list of janatorial tasks > for starters on DRM subsystem [1]. One of the tasks is replacing > conventional dmesg macros (like dev_info(), dev_warn() and dev_err()) > with DRM

Re: mmotm 2020-07-06-18-53 uploaded (sound/soc/amd/renoir/rn-pci-acp3x.c:)

2020-07-06 Thread Randy Dunlap
On 7/6/20 6:53 PM, Andrew Morton wrote: > The mm-of-the-moment snapshot 2020-07-06-18-53 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my -mm patch

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-06 Thread Feng Tang
On Tue, Jul 07, 2020 at 12:00:09PM +0800, Huang, Ying wrote: > Feng Tang writes: > > > On Mon, Jul 06, 2020 at 06:34:34AM -0700, Andi Kleen wrote: > >> > ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); > >> > -if (ret == 0 && write) > >> > +if (ret == 0 &&

[PATCH] Driver-API: Documentation: Replace deprecated :c:func: Usage

2020-07-06 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/device-io.rst | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/driver-api/device-io.rst

Re: [PATCH v12 00/31] Speculative page faults

2020-07-06 Thread Chinwen Chang
On Mon, 2020-07-06 at 14:27 +0200, Laurent Dufour wrote: > Le 06/07/2020 à 11:25, Chinwen Chang a écrit : > > On Thu, 2019-06-20 at 16:19 +0800, Haiyan Song wrote: > >> Hi Laurent, > >> > >> I downloaded your script and run it on Intel 2s skylake platform with > >> spf-v12 patch > >> serials. >

Re: [PATCH v3 3/3] Force all cpus to exit VMX root operation on crash/panic reliably

2020-07-06 Thread Sean Christopherson
On Sun, Jul 05, 2020 at 01:53:39PM -0700, Andy Lutomirski wrote: > On Sun, Jul 5, 2020 at 1:00 PM David P. Reed wrote: > > > > On Sunday, July 5, 2020 2:26pm, "Andy Lutomirski" said: > > > As a minor caveat, doing cr4_clear_bits() in NMI context is not really > > > okay, but we're about to

RE: [PATCH v1 2/2] scsi: ufs: change ufshcd_comp_devman_upiu() to ufshcd_compose_devman_upiu()

2020-07-06 Thread Avri Altman
> > From: Bean Huo > > ufshcd_comp_devman_upiu() alwasy make me confuse that it is a request > completion calling function. Change it to ufshcd_compose_devman_upiu(). > > Signed-off-by: Bean Huo Acked-by: Avri Altman

drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bfe91da29bfad9941d5d703d45e29f0812a20724 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 weeks ago config: s390-randconfig-s032-20200707 (attached

Re: [PATCH] pinctrl: qcom: ipq8074: route gpio interrupts to APPS

2020-07-06 Thread Bjorn Andersson
On Mon 06 Jul 21:58 PDT 2020, Kathiravan T wrote: > set target proc as APPS to route the gpio interrupts to APPS > > Signed-off-by: Rajkumar Ayyasamy > Signed-off-by: Kathiravan T This says "first Rajkumar certified the patch's origin, then you picked it up and certified its origin". As such

[PATCH V6 6/6] clk: imx6sl: Fix build warning reported by kernel test robot

2020-07-06 Thread Anson Huang
Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead of (1 << X) to fix below build warning reported by kernel test robot: drivers/clk/imx/clk-imx6sl.c:149:49: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] while

[PATCH V6 3/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-06 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V5: - make i.MX6/7 platforms clock driver

[PATCH V6 2/6] clk: imx: Support building i.MX common clock driver as module

2020-07-06 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig| 8 ++-- drivers/clk/imx/Makefile

[PATCH V6 1/6] clk: composite: Export clk_hw_register_composite()

2020-07-06 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- No change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1 insertion(+)

[PATCH V6 4/6] clk: imx8m: Support module build

2020-07-06 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change. --- drivers/clk/imx/Kconfig | 16 drivers/clk/imx/clk-imx8mm.c | 4

[PATCH V6 5/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-06 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/imx/Makefile | 9 -

[PATCH V6 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-06 Thread Anson Huang
Nowdays, there are more and more requirements of building SoC specific drivers as modules, such as Android GKI (generic kernel image), this patch set supports building i.MX ARMv8 SoCs clock drivers as modules, The CLK_IMXxxx is introduced for i.MX ARMv7 platforms in order to make the build

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-07-06 Thread Sandeep Maheswaram (Temp)
On 7/1/2020 4:12 AM, Matthias Kaehlcke wrote: On Tue, Jun 16, 2020 at 01:38:49PM -0700, Matthias Kaehlcke wrote: On Tue, Jun 16, 2020 at 10:22:47AM +0530, Sandeep Maheswaram (Temp) wrote: On 6/16/2020 1:12 AM, Matthias Kaehlcke wrote: On Thu, Jun 04, 2020 at 04:16:31AM -0700, Stephen Boyd

Re: [PATCH v3 2/3] Fix undefined operation fault that can hang a cpu on crash or panic

2020-07-06 Thread Sean Christopherson
On Sat, Jul 04, 2020 at 04:38:08PM -0400, David P. Reed wrote: > Fix: Mask undefined operation fault during emergency VMXOFF that must be > attempted to force cpu exit from VMX root operation. > Explanation: When a cpu may be in VMX root operation (only possible when > CR4.VMXE is set), crash or

Re: [PATCH] phy: qcom: remove ufs qmp phy driver

2020-07-06 Thread Bjorn Andersson
On Mon 29 Jun 21:54 PDT 2020, Vinod Koul wrote: > Hi Bjorn, > > On 29-06-20, 12:24, Bjorn Andersson wrote: > > On Mon 29 Jun 07:54 PDT 2020, Vinod Koul wrote: > > > > > UFS QMP phy drivers are duplicate as we are supposed to use common QMP > > > phy driver which is working fine on various

Re: [RFC PATCH v2 1/5] mm: make HPAGE_PxD_{SHIFT,MASK,SIZE} always available

2020-07-06 Thread Hugh Dickins
On Mon, 6 Jul 2020, Mike Rapoport wrote: > From: Mike Rapoport > > The definitions of shift, mask and size for the second and the third level > of the leaf pages are available only when CONFIG_TRANSPARENT_HUGEPAGE is > set. Otherwise they evaluate to BUILD_BUG(). > > There is no explanation

[PATCH] pinctrl: qcom: ipq8074: route gpio interrupts to APPS

2020-07-06 Thread Kathiravan T
set target proc as APPS to route the gpio interrupts to APPS Signed-off-by: Rajkumar Ayyasamy Signed-off-by: Kathiravan T --- drivers/pinctrl/qcom/pinctrl-ipq8074.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-ipq8074.c

[PATCH v2] MAINTAINERS: Add Shengjiu to reviewer list of sound/soc/fsl

2020-07-06 Thread Nicolin Chen
Add Shengjiu who's actively working on the latest fsl/nxp audio drivers. Signed-off-by: Nicolin Chen Acked-by: Shengjiu Wang Reviewed-by: Fabio Estevam --- Changelog v1->v2: * Replaced Shengjiu's emaill address with his gmail one * Added Acked-by from Shengjiu and Reviewed-by from Fabio

linux-next: manual merge of the seccomp tree with the kselftest tree

2020-07-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the seccomp tree got a conflict in: tools/testing/selftests/seccomp/seccomp_bpf.c between commit: 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") from the kselftest tree and commits: aae7d264d68b ("selftests/seccomp: Check for EPOLLHUP

[PATCH v3 4/4] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-06 Thread Rajat Jain
When enabling ACS, enable translation blocking for external facing ports and untrusted devices. Signed-off-by: Rajat Jain --- v3: print warning if ACS_TB not supported on external-facing/untrusted ports. Minor code comments fixes. v2: Commit log change drivers/pci/pci.c| 7 +++

[PATCH v3 1/4] PCI: Move pci_enable_acs() and its dependencies up in pci.c

2020-07-06 Thread Rajat Jain
Move pci_enable_acs() and the functions it depends on, further up in the source code to avoid having to forward declare it when we make it static in near future (next patch). No functional changes intended. Signed-off-by: Rajat Jain --- v3: Initial version of the patch, created per Bjorn's

[PATCH v3 3/4] PCI: Treat "external-facing" devices as internal

2020-07-06 Thread Rajat Jain
The "ExternalFacingPort" devices (root ports) are internal devices that sit on the internal system fabric. Ref: https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports Currently they were treated (marked as untrusted) at par with other external devices downstream

[PATCH v3 2/4] PCI: Keep the ACS capability offset in device

2020-07-06 Thread Rajat Jain
Currently ACS capabiity is being looked up at a number of places. Read and store it once at bootup so that it can be used by all later. Signed-off-by: Rajat Jain --- v3: fix commit log, remove forward declation of static function v2: Commit log cosmetic changes drivers/pci/p2pdma.c | 2 +-

Re: [PATCH v2] pinctrl: qcom: sc7180: Make gpio28 non wakeup capable for google,lazor

2020-07-06 Thread Rajendra Nayak
[].. @@ -1151,6 +1168,10 @@ static const struct msm_pinctrl_soc_data sc7180_pinctrl = { static int sc7180_pinctrl_probe(struct platform_device *pdev) { + if (of_machine_is_compatible("google,lazor")) { + sc7180_pinctrl.wakeirq_map = sc7180_lazor_pdc_map; +

Re: [PATCH v14 07/20] mm/thp: narrow lru locking

2020-07-06 Thread Hugh Dickins
On Mon, 6 Jul 2020, Matthew Wilcox wrote: > On Mon, Jul 06, 2020 at 05:15:09PM +0800, Alex Shi wrote: > > Hi Kirill & Johannes & Matthew, Adding Kirill, who was in patch's Cc list but not mail's Cc list. I asked Alex to direct this one particularly to Kirill and Johannes and Matthew because (and

Re: [GIT PULL 1/1] bcm2835-dt-next-2020-07-06

2020-07-06 Thread Florian Fainelli
On 7/6/2020 10:11 AM, Nicolas Saenz Julienne wrote: > Hi Florian, > > The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: > > Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) > > are available in the Git repository at: > >

Re: [PATCH v34 11/24] x86/sgx: Add SGX enclave driver

2020-07-06 Thread Sean Christopherson
On Tue, Jul 07, 2020 at 05:39:04AM +0100, Matthew Wilcox wrote: > although I think you have a simpler task. > > XA_STATE(xas, ..., start_index); > > for (;;) { > struct page *page = xas_next(); > > if (!page || (~page->vm_max_prot_bits & vm_prot_bits)) >

Re: [PATCH v2 16/18] media: mtk-vcodec: venc: make S_PARM return -ENOTTY for CAPTURE queue

2020-07-06 Thread Alexandre Courbot
On Mon, Jul 6, 2020 at 9:43 PM Hans Verkuil wrote: > > On 04/07/2020 14:36, Alexandre Courbot wrote: > > On Fri, Jul 3, 2020 at 5:30 PM Hans Verkuil wrote: > >> > >> On 26/06/2020 10:04, Alexandre Courbot wrote: > >>> v4l2-compliance expects ENOTTY to be returned when a given queue does > >>>

Lieber Freund (Assalamu Alaikum),?

2020-07-06 Thread AISHA GADDAFI
-- Lieber Freund (Assalamu Alaikum), Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende Mutter und eine Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen Präsident (verstorbener Oberst

Re: [PATCH v7 7/7] Documentation: fpga: dfl: add descriptions for interrupt related interfaces.

2020-07-06 Thread Moritz Fischer
On Tue, Jun 16, 2020 at 12:08:48PM +0800, Xu Yilun wrote: > This patch adds introductions of interrupt related interfaces for FME > error reporting, port error reporting and AFU user interrupts features. > > Signed-off-by: Luwei Kang > Signed-off-by: Wu Hao > Signed-off-by: Xu Yilun >

Re: [PATCH v7 5/7] fpga: dfl: fme: add interrupt support for global error reporting

2020-07-06 Thread Moritz Fischer
On Tue, Jun 16, 2020 at 12:08:46PM +0800, Xu Yilun wrote: > Error reporting interrupt is very useful to notify users that some > errors are detected by the hardware. Once users are notified, they > could query hardware logged error states, no need to continuously > poll on these states. > > This

Re: [PATCH v7 6/7] fpga: dfl: afu: add AFU interrupt support

2020-07-06 Thread Moritz Fischer
On Tue, Jun 16, 2020 at 12:08:47PM +0800, Xu Yilun wrote: > AFU (Accelerated Function Unit) is dynamic region of the DFL based FPGA, > and always defined by users. Some DFL based FPGA cards allow users to > implement their own interrupts in AFU. In order to support this, > hardware implements a

Re: [PATCH v7 4/7] fpga: dfl: afu: add interrupt support for port error reporting

2020-07-06 Thread Moritz Fischer
On Tue, Jun 16, 2020 at 12:08:45PM +0800, Xu Yilun wrote: > Error reporting interrupt is very useful to notify users that some > errors are detected by the hardware. Once users are notified, they > could query hardware logged error states, no need to continuously > poll on these states. > > This

Re: [PATCH v34 11/24] x86/sgx: Add SGX enclave driver

2020-07-06 Thread Matthew Wilcox
On Mon, Jul 06, 2020 at 09:29:04PM -0700, Sean Christopherson wrote: > > > > + idx_start = PFN_DOWN(start); > > > > + idx_end = PFN_DOWN(end - 1); > > > > + > > > > + for (idx = idx_start; idx <= idx_end; ++idx) { > > > > + mutex_lock(>lock); > > > > +

include/linux/atomic-fallback.h:439:9: sparse: sparse: context imbalance in 'btrfs_set_lock_blocking_read' - unexpected unlock

2020-07-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bfe91da29bfad9941d5d703d45e29f0812a20724 commit: d6156218bec93965b6a43ba2686ad962ce77c854 btrfs: make locking assertion helpers static inline date: 8 months ago config: ia64-randconfig-s031-20200707

BE MY PARTNER IN THIS BUSINESS

2020-07-06 Thread Mr Suleman Bello
Dear Friend, Please i want you to read this letter very carefully and i must apologize for berging this message into your mail box without any formal introduction due to the urgency and confidential of this issue and i know that this message will come to you as a surprise, Please this is not a

[PATCH] Documentation: kunit: Remove references to --defconfig

2020-07-06 Thread David Gow
The --defconfig option in kunit_tool was removed in [1], but the getting started and kunit_tool documentation still encouraged its use. Update those documents to reflect that it's no-longer required, and is the default behaviour if no .kunitconfig is found. Also update a couple of places where

Re: [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Dan Williams
On Sat, Jul 4, 2020 at 5:41 PM Kees Cook wrote: > > On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: > > Recent events have prompted a Linux position statement on inclusive > > terminology. Given that Linux maintains a coding-style and its own > > idiomatic set of terminology here is

Re: [PATCH v34 11/24] x86/sgx: Add SGX enclave driver

2020-07-06 Thread Sean Christopherson
Man, I really need to type faster. On Tue, Jul 07, 2020 at 07:11:51AM +0300, Jarkko Sakkinen wrote: > On Tue, Jul 07, 2020 at 04:36:17AM +0100, Matthew Wilcox wrote: > > What's a leaf function? Is it like a CPU instruction? > > Yeah, the opcode is ENCLS for ring-0 (enclave management and >

Re: [PATCH 1/3] spi: spi-qcom-qspi: Use OPP API to set clk/perf state

2020-07-06 Thread Rajendra Nayak
On 7/3/2020 10:31 PM, Mark Brown wrote: On Fri, Jul 03, 2020 at 03:11:31PM +0530, Rajendra Nayak wrote: QSPI needs to vote on a performance state of a power domain depending on the clock rate. Add support for it by specifying the perf state/clock rate as an OPP table in device tree. This

[GIT PULL] soundwire: fixes for 5.8

2020-07-06 Thread Vinod Koul
Hi Greg, Please pull to receive a single fix for Intel driver The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire.git

Re: [PATCH v2 2/4] drm/msm: dsi: Use OPP API to set clk/perf state

2020-07-06 Thread Rajendra Nayak
On 7/6/2020 9:40 PM, Matthias Kaehlcke wrote: On Thu, Jul 02, 2020 at 04:39:09PM +0530, Rajendra Nayak wrote: On SDM845 and SC7180 DSI needs to express a performance state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use

[GIT PULL] PHY: fixes for 5.8

2020-07-06 Thread Vinod Koul
Hi Greg, Please pull to receive fixes for phy for 5.8. Kishon is bit busy and has asked me to send the PR for phy this time around. The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at:

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Dan Williams
On Mon, Jul 6, 2020 at 9:07 AM Mike Rapoport wrote: > > Hi Chris, > > On Mon, Jul 06, 2020 at 12:45:34PM +, Chris Mason via Ksummit-discuss > wrote: > > On 5 Jul 2020, at 0:55, Willy Tarreau wrote: > > > > > On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: > > >> +Non-inclusive

Re: [PATCH v6 2/4] driver core: add deferring probe reason to devices_deferred property

2020-07-06 Thread Dmitry Torokhov
On Thu, Jul 02, 2020 at 08:57:55AM +0200, Andrzej Hajda wrote: > > On 30.06.2020 20:00, Dmitry Torokhov wrote: > > On Tue, Jun 30, 2020 at 8:42 AM Andrzej Hajda wrote: > >> > >> On 30.06.2020 10:59, Grygorii Strashko wrote: > >>> Hi > >>> > >>> On 29/06/2020 14:28, Andrzej Hajda wrote: > Hi

Re: [PATCH v34 11/24] x86/sgx: Add SGX enclave driver

2020-07-06 Thread Jarkko Sakkinen
On Tue, Jul 07, 2020 at 04:36:17AM +0100, Matthew Wilcox wrote: > On Tue, Jul 07, 2020 at 06:01:51AM +0300, Jarkko Sakkinen wrote: > > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > > can be used by applications to set aside private regions of code and > > data. The code

Re: [PATCH v34 10/24] mm: Add vm_ops->mprotect()

2020-07-06 Thread Matthew Wilcox
On Tue, Jul 07, 2020 at 07:01:51AM +0300, Jarkko Sakkinen wrote: > On Tue, Jul 07, 2020 at 04:24:08AM +0100, Matthew Wilcox wrote: > > On Mon, Jul 06, 2020 at 08:22:54PM -0700, Sean Christopherson wrote: > > > On Tue, Jul 07, 2020 at 04:14:24AM +0100, Matthew Wilcox wrote: > > > > > +

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Stefan Berger
On 7/7/20 12:03 AM, Jarkko Sakkinen wrote: On Mon, Jul 06, 2020 at 11:08:12PM -0400, Stefan Berger wrote: On 7/6/20 10:24 PM, Jarkko Sakkinen wrote: On Mon, Jul 06, 2020 at 07:55:26PM -0400, Stefan Berger wrote: On 7/6/20 7:09 PM, Jarkko Sakkinen wrote: On Mon, Jul 06, 2020 at 02:19:53PM

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Dan Williams
On Mon, Jul 6, 2020 at 12:16 PM Mark Brown wrote: > > On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: > > > +'blacklist'. Recommended replacements for 'slave' are: 'secondary', > > +'subordinate', 'replica', 'responder', 'follower', 'proxy', or > > I'd second the suggestion of

RE: [EXT] [PATCH 4/5] net: fec: get rid of redundant code in fec_ptp_set()

2020-07-06 Thread Andy Duan
From: Sergey Organov Sent: Monday, July 6, 2020 10:26 PM > Code of the form "if(x) x = 0" replaced with "x = 0". > > Code of the form "if(x == a) x = a" removed. > > Signed-off-by: Sergey Organov > --- > drivers/net/ethernet/freescale/fec_ptp.c | 4 +--- > 1 file changed, 1 insertion(+), 3

Re: [PATCH v35 23/24] docs: x86/sgx: Document SGX micro architecture and kernel internals

2020-07-06 Thread Matthew Wilcox
On Tue, Jul 07, 2020 at 06:37:46AM +0300, Jarkko Sakkinen wrote: > +*Software Guard eXtensions (SGX)* is a set of instructions that enable ring-3 I can never remember which way up intel numbers their rings. Is that user mode or kernel mode? > +applications to set aside private regions of code

Re: [PATCH v34 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-07-06 Thread Jarkko Sakkinen
On Mon, Jul 06, 2020 at 08:29:15PM -0700, Sean Christopherson wrote: > On Tue, Jul 07, 2020 at 06:01:52AM +0300, Jarkko Sakkinen wrote: > > +long sgx_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) > > +{ > > + struct sgx_encl *encl = filep->private_data; > > + int ret,

RE: [EXT] [PATCH 2/5] net: fec: enable to use PPS feature without time stamping

2020-07-06 Thread Andy Duan
From: Sergey Organov Sent: Monday, July 6, 2020 10:26 PM > PPS feature could be useful even when hardware time stamping of network > packets is not in use, so remove offending check for this condition from > fec_ptp_enable_pps(). If hardware time stamping of network packets is not in use, PPS is

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Dan Williams
On Mon, Jul 6, 2020 at 11:30 AM Shuah Khan wrote: > > On 7/4/20 2:02 PM, Dan Williams wrote: > > Recent events have prompted a Linux position statement on inclusive > > terminology. Given that Linux maintains a coding-style and its own > > idiomatic set of terminology here is a proposal to answer

[PATCH v3] mm/hugetlb: avoid hardcoding while checking if cma is enable

2020-07-06 Thread Barry Song
hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has no memory. so NULL hugetlb_cma[0] doesn't necessarily mean cma is not enabled. gigantic pages might have been reserved on other nodes. Fixes: cf11e85fc08c ("mm: hugetlb: optionally allocate gigantic hugepages using cma")

Re: [PATCH v34 10/24] mm: Add vm_ops->mprotect()

2020-07-06 Thread Jarkko Sakkinen
On Tue, Jul 07, 2020 at 04:14:24AM +0100, Matthew Wilcox wrote: > On Tue, Jul 07, 2020 at 06:01:50AM +0300, Jarkko Sakkinen wrote: > > +++ b/mm/mprotect.c > > @@ -603,13 +603,20 @@ static int do_mprotect_pkey(unsigned long start, > > size_t len, > > goto out; > > }

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Jarkko Sakkinen
On Mon, Jul 06, 2020 at 11:08:12PM -0400, Stefan Berger wrote: > On 7/6/20 10:24 PM, Jarkko Sakkinen wrote: > > On Mon, Jul 06, 2020 at 07:55:26PM -0400, Stefan Berger wrote: > > > On 7/6/20 7:09 PM, Jarkko Sakkinen wrote: > > > > On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: > >

Re: [GIT PULL][PATCH v6 0/8] Add support for ZSTD-compressed kernel and initramfs

2020-07-06 Thread Sedat Dilek
On Tue, Jul 7, 2020 at 5:50 AM Nick Terrell wrote: > > From: Nick Terrell > > Please pull from > > g...@github.com:terrelln/linux.git tags/v6-zstd > > to get these changes. Alternatively the patchset is included. > Hi Nick, cool, I just pulled from their. Yesterday, I switched over from

Re: [PATCH v34 10/24] mm: Add vm_ops->mprotect()

2020-07-06 Thread Jarkko Sakkinen
On Tue, Jul 07, 2020 at 04:24:08AM +0100, Matthew Wilcox wrote: > On Mon, Jul 06, 2020 at 08:22:54PM -0700, Sean Christopherson wrote: > > On Tue, Jul 07, 2020 at 04:14:24AM +0100, Matthew Wilcox wrote: > > > > + if (vma->vm_ops && vma->vm_ops->mprotect) { > > > > +

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Dan Williams
On Mon, Jul 6, 2020 at 9:30 AM Andy Lutomirski wrote: > > On Sat, Jul 4, 2020 at 1:19 PM Dan Williams wrote: > > > > Recent events have prompted a Linux position statement on inclusive > > terminology. Given that Linux maintains a coding-style and its own > > idiomatic set of terminology here is

[PATCH] security/selinux: Fix spelling mistakes in the comments

2020-07-06 Thread lihao
Fix spelling mistakes in the comments quering==>querying Signed-off-by: lihao --- security/selinux/netif.c | 2 +- security/selinux/netnode.c | 2 +- security/selinux/netport.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/security/selinux/netif.c

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-06 Thread Huang, Ying
Feng Tang writes: > On Mon, Jul 06, 2020 at 06:34:34AM -0700, Andi Kleen wrote: >> >ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); >> > - if (ret == 0 && write) >> > + if (ret == 0 && write) { >> > + if (sysctl_overcommit_memory == OVERCOMMIT_NEVER) >> > +

[PATCH v35 22/24] selftests/x86: Add a selftest for SGX

2020-07-06 Thread Jarkko Sakkinen
Add a selftest for SGX. It is a trivial test where a simple enclave copies one 64-bit word of memory between two memory locations. Cc: linux-kselft...@vger.kernel.org Signed-off-by: Jarkko Sakkinen --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sgx/.gitignore

Re: [PATCH v2 1/2] hwmon: shtc1: add support for device tree bindings

2020-07-06 Thread Guenter Roeck
On Sun, Jul 05, 2020 at 11:47:25AM +0800, Chris Ruehl wrote: > Add support for DTS bindings for the sensirion shtc1,shtw1 and shtc3. > > Signed-off-by: Chris Ruehl > --- > drivers/hwmon/shtc1.c | 22 -- > 1 file changed, 20 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH RFC 1/5] f2fs: introduce inmem curseg

2020-07-06 Thread Jaegeuk Kim
On 07/07, Chao Yu wrote: > On 2020/7/7 11:21, Jaegeuk Kim wrote: > > Hi Chao, > > > > Do you have any brief design doc to present the idea? > > Hi Jaegeuk, > > You mean this whole patchset, right? > > I can add a brief design description in patch 0/5. Yeah, it's a bit hard to understand the

Re: [PATCH V4 1/3] mm/sparsemem: Enable vmem_altmap support in vmemmap_populate_basepages()

2020-07-06 Thread Anshuman Khandual
On 07/06/2020 02:33 PM, David Hildenbrand wrote: >> return 0; >> @@ -1505,7 +1505,7 @@ int __meminit vmemmap_populate(unsigned long start, >> unsigned long end, int node, >> int err; >> >> if (end - start < PAGES_PER_SECTION * sizeof(struct page)) >> -err =

[PATCH v6 8/8] .gitignore: add ZSTD-compressed files

2020-07-06 Thread Nick Terrell
From: Adam Borowski For now, that's arch/x86/boot/compressed/vmlinux.bin.zst but probably more will come, thus let's be consistent with all other compressors. Tested-by: Sedat Dilek Reviewed-by: Kees Cook Signed-off-by: Nick Terrell Signed-off-by: Adam Borowski --- .gitignore | 1 + 1 file

[PATCH v6 6/8] x86: bump ZO_z_extra_bytes margin for zstd

2020-07-06 Thread Nick Terrell
From: Nick Terrell Bump the ZO_z_extra_bytes margin for zstd. Zstd needs 3 bytes per 128 KB, and has a 22 byte fixed overhead. Zstd needs to maintain 128 KB of space at all times, since that is the maximum block size. See the comments regarding in-place decompression added in

[PATCH v6 2/8] lib: prepare xxhash for preboot environment

2020-07-06 Thread Nick Terrell
From: Nick Terrell Don't export symbols if XXH_PREBOOT is defined. This change is necessary to get xxhash to work in a preboot environment, which is needed to support zstd-compressed kernels. Reviewed-by: Kees Cook Tested-by: Sedat Dilek Signed-off-by: Nick Terrell --- lib/xxhash.c | 21

[PATCH v6 1/8] lib: prepare zstd for preboot environment

2020-07-06 Thread Nick Terrell
From: Nick Terrell * Don't export symbols if ZSTD_PREBOOT is defined. * Remove a double definition of the CHECK_F macro when the zstd library is amalgamated. * Switch ZSTD_copy8() to __builtin_memcpy(), because in the preboot environment on x86 gcc can't inline `memcpy()` otherwise. * Limit

[PATCH v6 3/8] lib: add zstd support to decompress

2020-07-06 Thread Nick Terrell
From: Nick Terrell * Add unzstd() and the zstd decompress interface. * Add zstd support to decompress_method(). The decompress_method() and unzstd() functions are used to decompress the initramfs and the initrd. The __decompress() function is used in the preboot environment to decompress a zstd

[PATCH v6 4/8] init: add support for zstd compressed kernel

2020-07-06 Thread Nick Terrell
From: Nick Terrell * Adds the zstd cmd to scripts/Makefile.lib * Adds the HAVE_KERNEL_ZSTD and KERNEL_ZSTD options Architecture specific support is still needed for decompression. Reviewed-by: Kees Cook Tested-by: Sedat Dilek Signed-off-by: Nick Terrell --- init/Kconfig | 15

[PATCH v6 7/8] x86: Add support for ZSTD compressed kernel

2020-07-06 Thread Nick Terrell
From: Nick Terrell * Add support for zstd compressed kernel * Bump the heap size for zstd. * Update the documentation. Integrates the ZSTD decompression code to the x86 pre-boot code. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64 KB), and the

[PATCH v6 5/8] usr: add support for zstd compressed initramfs

2020-07-06 Thread Nick Terrell
From: Nick Terrell * Add support for a zstd compressed initramfs. * Add compression for compressing built-in initramfs with zstd. I have tested this patch by boot testing with buildroot and QEMU. Specifically, I booted the kernel with both a zstd and gzip compressed initramfs, both built into

[GIT PULL][PATCH v6 0/8] Add support for ZSTD-compressed kernel and initramfs

2020-07-06 Thread Nick Terrell
From: Nick Terrell Please pull from g...@github.com:terrelln/linux.git tags/v6-zstd to get these changes. Alternatively the patchset is included. Hi all, This patch set adds support for a ZSTD-compressed kernel, ramdisk, and initramfs in the kernel boot process. ZSTD-compressed ramdisk and

[PATCH RESEND] lockdep: Move list.h inclusion into lockdep.h

2020-07-06 Thread Herbert Xu
On Thu, Jun 18, 2020 at 04:37:35PM +0200, Peter Zijlstra wrote: > > OK, done. tip/locking/header should contain just this patch, and that > branch also got merged into tip/locking/core. Hi Peter: Could you please apply this patch on top as there is still a header loop otherwise? Thanks!

[PATCH v35 24/24] x86/sgx: Update MAINTAINERS

2020-07-06 Thread Jarkko Sakkinen
Add the maintainer information for the SGX subsystem. Cc: Thomas Gleixner Cc: Borislav Petkov Signed-off-by: Jarkko Sakkinen --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1d4aa7f942de..9b5268aa26db 100644 --- a/MAINTAINERS +++

[PATCH v35 23/24] docs: x86/sgx: Document SGX micro architecture and kernel internals

2020-07-06 Thread Jarkko Sakkinen
Document the Intel SGX kernel architecture. The fine-grained micro architecture details can be looked up from Intel SDM Volume 3D. Cc: linux-...@vger.kernel.org Acked-by: Randy Dunlap Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson Signed-off-by: Jarkko Sakkinen ---

[PATCH v35 18/24] x86/vdso: Add support for exception fixup in vDSO functions

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson The basic concept and implementation is very similar to the kernel's exception fixup mechanism. The key differences are that the kernel handler is hardcoded and the fixup entry addresses are relative to the overall table as opposed to individual entries. Hardcoding

[PATCH v35 20/24] x86/traps: Attempt to fixup exceptions in vDSO before signaling

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson vDSO functions can now leverage an exception fixup mechanism similar to kernel exception fixup. For vDSO exception fixup, the initial user is Intel's Software Guard Extensions (SGX), which will wrap the low-level transitions to/from the enclave, i.e. EENTER and ERESUME

[PATCH v35 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson An SGX runtime must be aware of the exceptions, which happen inside an enclave. Introduce a vDSO call that wraps EENTER/ERESUME cycle and returns the CPU exception back to the caller exactly when it happens. Kernel fixups the exception information to RDI, RSI and RDX.

[PATCH v35 17/24] x86/sgx: ptrace() support for the SGX driver

2020-07-06 Thread Jarkko Sakkinen
Add VMA callbacks for ptrace() that can be used with debug enclaves. With debug enclaves data can be read and write the memory word at a time by using ENCLS(EDBGRD) and ENCLS(EDBGWR) leaf instructions. Acked-by: Jethro Beekman Signed-off-by: Jarkko Sakkinen --- arch/x86/kernel/cpu/sgx/encl.c |

[PATCH v35 16/24] x86/sgx: Add a page reclaimer

2020-07-06 Thread Jarkko Sakkinen
There is a limited amount of EPC available. Therefore, some of it must be copied to the regular memory, and only subset kept in the SGX reserved memory. While kernel cannot directly access enclave memory, SGX provides a set of ENCLS leaf functions to perform reclaiming. This commits implements a

[PATCH v35 19/24] x86/fault: Add helper function to sanitize error code

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson Add helper function to sanitize error code to prepare for vDSO exception fixup, which will expose the error code to userspace and runs before set_signal_archinfo(), i.e. suppresses the signal when fixup is successful. Acked-by: Jethro Beekman Signed-off-by: Sean

[PATCH v35 14/24] x86/sgx: Add SGX_IOC_ENCLAVE_INIT

2020-07-06 Thread Jarkko Sakkinen
Add an ioctl that performs ENCLS[EINIT], which locks down the measurement and initializes the enclave for entrance. After this, new pages can no longer be added. Acked-by: Jethro Beekman Tested-by: Jethro Beekman Tested-by: Haitao Huang Tested-by: Chunyang Hui Tested-by: Jordan Hand

[PATCH v35 15/24] x86/sgx: Allow a limited use of ATTRIBUTE.PROVISIONKEY for attestation

2020-07-06 Thread Jarkko Sakkinen
Provisioning Certification Enclave (PCE), the root of trust for other enclaves, generates a signing key from a fused key called Provisioning Certification Key. PCE can then use this key to certify an attestation key of a Quoting Enclave (QE), e.g. we get the chain of trust down to the hardware if

[PATCH v35 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES

2020-07-06 Thread Jarkko Sakkinen
Add an ioctl, which performs ENCLS[EADD] that adds new visible page to an enclave, and optionally ENCLS[EEXTEND] operations that hash the page to the enclave measurement. By visible we mean a page that can be mapped to the address range of an enclave. Acked-by: Jethro Beekman Tested-by: Jethro

[PATCH v35 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-07-06 Thread Jarkko Sakkinen
Add an ioctl that performs ENCLS[ECREATE], which creates SGX Enclave Control Structure for the enclave. SECS contains attributes about the enclave that are used by the hardware and cannot be directly accessed by software, as SECS resides in the EPC. One essential field in SECS is a field that

[PATCH v35 10/24] mm: Add vm_ops->mprotect()

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson Add vm_ops()->mprotect() for additional constraints for a VMA. Intel Software Guard eXtensions (SGX) will use this callback to add two constraints: 1. Verify that the address range does not have holes: each page address must be filled with an enclave page. 2.

[PATCH v35 11/24] x86/sgx: Add SGX enclave driver

2020-07-06 Thread Jarkko Sakkinen
Intel Software Guard eXtensions (SGX) is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the SGX hosted software entity is disallowed to access the memory inside the enclave enforced by the CPU. We call these entities

[PATCH v35 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-07-06 Thread Jarkko Sakkinen
From: Sean Christopherson Enumerate Enclave Page Cache (EPC) sections via CPUID and add the data structures necessary to track EPC pages so that they can be easily borrowed for different uses. Embed section index to the first eight bits of the EPC page descriptor. Existing client hardware

  1   2   3   4   5   6   7   8   9   10   >