Re: [PATCH V8 5/8] spi: spi-geni-qcom: Combine the clock setting code

2020-06-23 Thread Mark Brown
On Tue, Jun 23, 2020 at 04:08:54PM +0530, Akash Asthana wrote: > From: Douglas Anderson > > There is code for adjusting the clock both in setup_fifo_params() > (called from prepare_message()) and in setup_fifo_xfer() (called from > transfer_one()). The code is the same. Abstract it out to a sha

Re: [PATCH V8 6/8] spi: spi-geni-qcom: Add interconnect support

2020-06-23 Thread Mark Brown
On Tue, Jun 23, 2020 at 04:08:55PM +0530, Akash Asthana wrote: > Get the interconnect paths for SPI based Serial Engine device > and vote according to the current bus speed of the driver. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH V8 7/8] spi: spi-qcom-qspi: Add interconnect support

2020-06-23 Thread Mark Brown
On Tue, Jun 23, 2020 at 04:08:56PM +0530, Akash Asthana wrote: > Get the interconnect paths for QSPI device and vote according to the > current bus speed of the driver. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH 3/7] kgdb: Add request_nmi() to the io ops table for kgdboc

2020-06-23 Thread Daniel Thompson
On Tue, Jun 23, 2020 at 02:07:47PM +0530, Sumit Garg wrote: > On Mon, 22 Jun 2020 at 21:33, Daniel Thompson > wrote: > > > + irq_set_status_flags(irq, IRQ_NOAUTOEN); > > > + res = request_nmi(irq, fn, IRQF_PERCPU, "kgdboc", dev_id); > > > > Why do we need IRQF_PERCPU here. A UART interrupt

Re: ARM: imx6: add missing put_device() call in imx6q_suspend_init()

2020-06-23 Thread Shawn Guo
On Tue, Jun 23, 2020 at 09:48:52AM +0200, Markus Elfring wrote: > Do you find a previous update suggestion useful? > > ARM: imx6: Add missing put_device() call in imx6q_suspend_init() > https://lore.kernel.org/linux-arm-kernel/5acd7308-f6e1-4b1e-c744-bb2e5fdca...@web.de/ >

[PATCH] sound: usb: quirks: add quirk for Samsung USBC Headset (AKG)

2020-06-23 Thread Macpaul Lin
We've found Samsung USBC Headset (AKG) (VID: 0x04e8, PID: 0xa051) need a tiny delay after each class compliant request. Otherwise the device might not be able to be recognized each times. Signed-off-by: Chihhao Chen Signed-off-by: Macpaul Lin Cc: sta...@vger.kernel.org --- sound/usb/quirks.c |

Re: [PATCH V2 0/3] arm64: dts: imx8qxp: dtb aliases fix/update

2020-06-23 Thread Shawn Guo
On Tue, Jun 23, 2020 at 02:49:51PM +0800, peng@nxp.com wrote: > From: Peng Fan > > V2: > Fix order in patch 2/3, no other changes > > Minor patchset to fix and update alias for i.MX8QXP > > Peng Fan (3): > arm64: dts: imx8qxp: add alias for lsio MU > arm64: dts: imx8qxp: add i2c aliase

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Peter Zijlstra
On Tue, Apr 28, 2020 at 09:55:12AM +0200, Joerg Roedel wrote: > On Mon, Apr 27, 2020 at 10:37:41AM -0700, Andy Lutomirski wrote: > > I have a somewhat serious question: should we use IST for #VC at all? > > As I understand it, Rome and Naples make it mandatory for hypervisors > > to intercept #DB,

[PATCH resend] virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial

2020-06-23 Thread Alexander Lobakin
rproc_serial_id_table lacks an exposure to module devicetable, so when remoteproc firmware requests VIRTIO_ID_RPROC_SERIAL, no uevent is generated and no module autoloading occurs. Add missing MODULE_DEVICE_TABLE() annotation and move the existing one for VIRTIO_ID_CONSOLE right to the table itself

[PATCH] scsi: sd: add runtime pm to open / release

2020-06-23 Thread Martin Kepplinger
This add a very conservative but simple implementation for runtime PM to the sd scsi driver: Resume when opened (mounted) and suspend when released (unmounted). Improvements that allow suspending while a device is "open" can be added later, but now we save power when no filesystem is mounted and r

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Joerg Roedel
Hi Peter, On Tue, Jun 23, 2020 at 12:45:59PM +0200, Peter Zijlstra wrote: > On Tue, Jun 23, 2020 at 11:45:19AM +0200, Joerg Roedel wrote: > > Or maybe you have a better idea how to implement this, so I'd like to > > hear your opinion first before I spend too many days implementing > > something. >

Re: [PATCH][next] mm/zswap: fix a couple of memory leaks and rework kzalloc failure check

2020-06-23 Thread Colin Ian King
On 22/06/2020 20:55, Song Bao Hua (Barry Song) wrote: > > >> -Original Message- >> From: Dan Carpenter [mailto:dan.carpen...@oracle.com] >> Sent: Tuesday, June 23, 2020 6:28 AM >> To: Colin King >> Cc: Seth Jennings ; Dan Streetman >> ; Vitaly Wool ; Andrew >> Morton ; Song Bao Hua (Barr

drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c:63:25: sparse: sparse: incorrect type in assignment (different address spaces)

2020-06-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dd0d718152e4c65b173070d48ea9dfc06894c3e5 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 5 days ago config: powerpc-randconfig-s031-20200623

Re: [PATCH] kvm: lapic: fix broken vcpu hotplug

2020-06-23 Thread Igor Mammedov
On Mon, 22 Jun 2020 18:47:57 +0200 Paolo Bonzini wrote: > On 22/06/20 18:08, Igor Mammedov wrote: > > Guest fails to online hotplugged CPU with error > > smpboot: do_boot_cpu failed(-1) to wakeup CPU#4 > > > > It's caused by the fact that kvm_apic_set_state(), which used to call > > recalculat

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Peter Zijlstra
On Tue, Jun 23, 2020 at 01:11:07PM +0200, Joerg Roedel wrote: > Hi Peter, > > On Tue, Jun 23, 2020 at 12:45:59PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 23, 2020 at 11:45:19AM +0200, Joerg Roedel wrote: > > > Or maybe you have a better idea how to implement this, so I'd like to > > > hear you

[PATCH rdma-next v1 0/2] Convert XRC to use xarray

2020-06-23 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v1: Changed ib_dealloc_xrcd_user() do not iterate over tgt list, because it is expected to be empty. v0: https://lore.kernel.org/lkml/20200621104110.53509-1-l...@kernel.org Two small patches to simplify and improve XRC logic. Thanks Maor Gottlieb (2): RDMA: Cl

Re: [PATCH v2 18/29] nvmem: Add Realtek DHC eFuse driver

2020-06-23 Thread Andreas Färber
Hi Srini, Am 23.06.20 um 11:32 schrieb Srinivas Kandagatla: On 23/06/2020 03:50, Andreas Färber wrote: Implement enough of a read-only nvmem driver to easily read efuse cells. Cc: Cheng-Yu Lee Signed-off-by: Andreas Färber --- This patch itself looks okay to me, I will apply this once DT p

kernel//sched/fair.c:8429:20: note: in expansion of macro 'max_t'

2020-06-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dd0d718152e4c65b173070d48ea9dfc06894c3e5 commit: 0b0695f2b34a4afa3f6e9aa1ff0e5336d8dad912 sched/fair: Rework load_balance() date: 8 months ago config: x86_64-randconfig-r011-20200623 (attached as .config

Re: [PATCH v6 1/4] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage

2020-06-23 Thread Robin Murphy
On 2020-06-23 11:29, Thierry Reding wrote: [...] diff --git a/drivers/iommu/arm-smmu-impl.c b/drivers/iommu/arm-smmu-impl.c index c75b9d957b702..52c84c30f83e4 100644 --- a/drivers/iommu/arm-smmu-impl.c +++ b/drivers/iommu/arm-smmu-impl.c @@ -160,6 +160,9 @@ struct arm_smmu_device *arm_smmu_impl_i

[PATCH -next] afs: Fix the memory leak in afs_mkdir

2020-06-23 Thread Chen Tao
Fix the memory leak in afs_mkdir not freeing scb in error path. Fixes: a58823ac45896 ("afs: Fix application of status and callback to be under same lock") Signed-off-by: Chen Tao --- fs/afs/dir.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/afs/dir.c b

Greetings From Mrs. Sarah Koffi

2020-06-23 Thread Sarah Koffi
Greetings From Mrs. Sarah Koffi I'm contacting you based on your good profiles I read and for a good reasons, I am in search of a property to buy in your country as I intended to come over to your country for investment, Though I have not meet with you before but I believe that one has to risk con

Re: linux-next build error (9)

2020-06-23 Thread Marco Elver
On Tue, Jun 23, 2020 at 08:17PM +1000, Stephen Rothwell wrote: > Hi Peter, > > On Tue, 23 Jun 2020 11:32:30 +0200 Peter Zijlstra > wrote: > > > > I suppose the next quest is finding a s390 compiler version that works > > and then bumping the version test in the aforementioned commit. > > Not a

Re: [PATCH v3] acpi: Extend TPM2 ACPI table with missing log fields

2020-06-23 Thread Stefan Berger
On 6/22/20 8:56 PM, Jarkko Sakkinen wrote: On Fri, Jun 19, 2020 at 11:14:20AM -0400, Stefan Berger wrote: On 4/2/20 3:21 PM, Jarkko Sakkinen wrote: On Wed, Apr 01, 2020 at 11:05:36AM +0200, Rafael J. Wysocki wrote: On Wed, Apr 1, 2020 at 10:37 AM Jarkko Sakkinen wrote: On Tue, Mar 31, 2020 a

Re: [PATCH v6 3/4] iommu/arm-smmu: Add global/context fault implementation hooks

2020-06-23 Thread Robin Murphy
On 2020-06-23 09:36, Thierry Reding wrote: [...] diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 243bc4cb2705b..d720e1e191176 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -673,6 +673,7 @@ static int arm_smmu_init_domain_context(struct iommu_domain

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Joerg Roedel
On Tue, Jun 23, 2020 at 01:07:06PM +0200, Peter Zijlstra wrote: > On Tue, Apr 28, 2020 at 09:55:12AM +0200, Joerg Roedel wrote: > So what happens if this #VC triggers on the first access to the #VC > stack, because the malicious host has craftily mucked with only the #VC > IST stack page? > > Or

Re: [PATCH v2] Kernel selftests: TPM2: upgrade TPM2 tests from Python 2 to Python 3

2020-06-23 Thread Pengfei Xu
Hi Jarkk, Thanks for your comments! My feedback is as below. BR. On 2020-06-23 at 00:47:39 +0300, Jarkko Sakkinen wrote: > On Tue, Jun 23, 2020 at 12:46:18AM +0300, Jarkko Sakkinen wrote: > > On Thu, Jun 18, 2020 at 04:15:02PM +0800, Pengfei Xu wrote: > > > Python 2 is no longer supported b

Re: [PATCH] dt-bindings: bus: uniphier-system-bus: fix warning in example

2020-06-23 Thread Masahiro Yamada
On Tue, Jun 23, 2020 at 3:29 PM Masahiro Yamada wrote: > > Since commit e69f5dc623f9 ("dt-bindings: serial: Convert 8250 to > json-schema"), the schema for "ns16550a" is checked. > > 'make dt_binding_check' emits the following warning: > > uart@5,0020: $nodename:0: 'uart@5,0020' does not

[RESEND PATCH v2 1/2] PM / domains: Introduce multi PM domains helpers

2020-06-23 Thread Daniel Baluta
From: Daniel Baluta This patch introduces helpers support for multi PM domains. API consists of: 1) dev_multi_pm_attach - powers up all PM domains associated with a given device. Because we can attach one PM domain per device, we create virtual devices (children of initial device) and associate

[RESEND PATCH v2 0/2] Introduce multi PM domains helpers

2020-06-23 Thread Daniel Baluta
From: Daniel Baluta i.MX8QXP/i.MX8QM has IPs that need multiple power domains to be up in order to work. In order to help drivers, we introduce multi PM domains helpers that are able to activate/deactivate multi PM domains. First patch introduces the helpers and second patch demonstrates how a d

[RESEND PATCH v2 2/2] ASoC: SOF: Use multi PM domains helpers

2020-06-23 Thread Daniel Baluta
From: Daniel Baluta Use dev_multi_pm_attach / dev_multi_pm_detach instead of the hardcoded version. Signed-off-by: Daniel Baluta --- sound/soc/sof/imx/imx8.c | 60 ++-- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/sound/soc/sof/imx/imx8.c b

[PATCH v2] dt-bindings: bus: uniphier-system-bus: fix warning in example

2020-06-23 Thread Masahiro Yamada
Since commit e69f5dc623f9 ("dt-bindings: serial: Convert 8250 to json-schema"), the schema for "ns16550a" is checked. 'make dt_binding_check' emits the following warning: uart@5,0020: $nodename:0: 'uart@5,0020' does not match '^serial(@[0-9a-f,]+)*$' Rename the node to follow the patt

Re: [PATCH v2] dmabuf: use spinlock to access dmabuf->name

2020-06-23 Thread Charan Teja Kalla
Thanks Mike for the inputs. On 6/22/2020 5:10 PM, Ruhl, Michael J wrote: >> -Original Message- >> From: charante=codeaurora@mg.codeaurora.org >> On Behalf Of Charan Teja >> Kalla >> Sent: Monday, June 22, 2020 5:26 AM >> To: Ruhl, Michael J ; Sumit Semwal >> ; david.lai...@aculab.com;

Re: [PATCH v2 1/2] ASoC: fsl_mqs: Don't check clock is NULL before calling clk API

2020-06-23 Thread Shengjiu Wang
On Tue, Jun 23, 2020 at 4:55 PM Markus Elfring wrote: > > > clk_prepare_enable and clk_disable_unprepare check the input > > clock parameter in the beginning of the function, > > These functions call further functions which perform null pointer checks. > > > >

Re: [PATCH] kvm: lapic: fix broken vcpu hotplug

2020-06-23 Thread Paolo Bonzini
On 23/06/20 13:13, Igor Mammedov wrote: >>> + apic->vcpu->kvm->arch.apic_map_dirty = true; >>> kvm_lapic_set_base(vcpu, vcpu->arch.apic_base); >>> /* set SPIV separately to get count of SW disabled APICs right */ >>> apic_set_spiv(apic, *((u32 *)(s->regs + APIC_SPIV))); >>> >> Queu

Re: [mm, slab/slub] 7b39adbb1b: WARNING:at_mm/slab.h:#kmem_cache_free

2020-06-23 Thread Vlastimil Babka
On 6/23/20 11:02 AM, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-6): > > commit: 7b39adbb1b1d3e73df9066a8d1e93a83c18d7730 ("mm, slab/slub: improve > error reporting and overhead of cache_from_obj()") > https://git.kernel.org/cgit/linux/kernel/git

Re: [PATCH 1/6] arm64: dts: qcom: sm8250-mtp: Drop PM8150 ldo11

2020-06-23 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:42PM -0700, Bjorn Andersson wrote: > PM8150 ldo11 on the MTP is wired to VDD_SSC_CX and controlled in levels, > rather than as a regulator. As such it's available from the rpmhpd as > the SM8250_LCX power domain. > > Fixes: ec13d5c23a33 ("arm64: dts: qcom: sm8250-mtp:

Re: [PATCH] dma-remap: Align the size in dma_common_*_remap()

2020-06-23 Thread Christoph Hellwig
On Mon, Jun 22, 2020 at 10:23:20PM +0200, Eric Auger wrote: > Running a guest with a virtio-iommu protecting virtio devices > is broken since commit 515e5b6d90d4 ("dma-mapping: use vmap insted > of reimplementing it"). Before the conversion, the size was > page aligned in __get_vm_area_node(). Doin

[PATCH v2] dt-bindings: ASoC: Convert UniPhier AIO audio system to json-schema

2020-06-23 Thread Masahiro Yamada
Convert the UniPhier AIO audio system binding to DT schema format. Signed-off-by: Masahiro Yamada --- Changes in v2: - Add schema for subnode 'port' .../sound/socionext,uniphier-aio.yaml | 81 +++ .../bindings/sound/uniphier,aio.txt | 45 --- 2 files

Re: [RESEND PATCH] mm: fix migrate_vma_setup() src_owner and normal pages

2020-06-23 Thread Christoph Hellwig
On Mon, Jun 22, 2020 at 03:20:08PM -0700, Ralph Campbell wrote: > The caller of migrate_vma_setup() does not know what type of page is > stored in the CPU's page tables. Pages within the specified range are > free to be swapped out, migrated, or freed until after migrate_vma_setup() > returns. The

[PATCH v2] dt-bindings: ASoC: Convert UniPhier EVEA codec to json-schema

2020-06-23 Thread Masahiro Yamada
Convert the UniPhier EVEA sound codec binding to DT schema format. Signed-off-by: Masahiro Yamada --- Changes in v2: - Add schema for subnode 'port' .../sound/socionext,uniphier-evea.yaml| 70 +++ .../bindings/sound/uniphier,evea.txt | 26 --- 2 files cha

Re: linux-next: manual merge of the pidfd tree with the powerpc-fixes tree

2020-06-23 Thread Michael Ellerman
Christian Brauner writes: > On Fri, Jun 19, 2020 at 09:17:30PM +1000, Michael Ellerman wrote: >> Stephen Rothwell writes: >> > Hi all, >> > >> > Today's linux-next merge of the pidfd tree got a conflict in: >> > >> > arch/powerpc/kernel/syscalls/syscall.tbl >> > >> > between commit: >> > >> >

Re: [Patch v2 3/3] net: Restrict receive packets queuing to housekeeping CPUs

2020-06-23 Thread Nitesh Narayan Lal
On 6/23/20 5:23 AM, Peter Zijlstra wrote: > On Mon, Jun 22, 2020 at 07:45:10PM -0400, Nitesh Narayan Lal wrote: >> @@ -756,6 +757,13 @@ static ssize_t store_rps_map(struct netdev_rx_queue >> *queue, >> return err; >> } >> >> +hk_flags = HK_FLAG_DOMAIN | HK_FLAG_WQ; >> +

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Joerg Roedel
On Tue, Jun 23, 2020 at 01:14:43PM +0200, Peter Zijlstra wrote: > On Tue, Jun 23, 2020 at 01:11:07PM +0200, Joerg Roedel wrote: > > The v3 patchset implements an unconditional shift of the #VC IST entry > > in the NMI handler, before it can trigger a #VC exception. > > Going by that other thread

Re: [PATCH V3] soc: imx8m: Correct i.MX8MP UID fuse offset

2020-06-23 Thread Shawn Guo
On Wed, Jun 10, 2020 at 06:03:02PM +0800, Anson Huang wrote: > Correct i.MX8MP UID fuse offset according to fuse map: > > UID_LOW: 0x420 > UID_HIGH: 0x430 > > Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver") > Fixes: 18f662a73862 ("soc: imx: Add i.MX8MP SoC driver su

Inó X - Sorted information for the derivative works of Adams Tablet.

2020-06-23 Thread Ywe Cærlyn
Inó X OS "Only the creators will for computing space". Sorted information for the derivative works of Adams Tablet. Should be the best OS ever made. And best economy also. Even the pointer is "do not eat of the tree", and a sign from the Dispilio Tablet! Serene Greetings, Ywe Cærlyn. https:

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-06-23 Thread Greg Kroah-Hartman
On Tue, Jun 23, 2020 at 02:33:48AM -0700, Rick Lindsley wrote: > On 6/22/20 11:02 PM, Greg Kroah-Hartman wrote: > > > First off, this is not my platform, and not my problem, so it's funny > > you ask me :) > > Wlll, not your platform perhaps but MAINTAINERS does list you > first and Tejun sec

[PATCH 3/4] ARM: dts: uniphier: rename support card serial node to fix schema warning

2020-06-23 Thread Masahiro Yamada
Since commit e69f5dc623f9 ("dt-bindings: serial: Convert 8250 to json-schema"), the schema for "ns16550a" is checked. 'make ARCH=arm dtbs_check' emits the following warning: uart@b: $nodename:0: 'uart@b' does not match '^serial(@[0-9a-f,]+)*$' Rename the node to follow the pattern defi

[RFC PATCH v2] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-23 Thread Souptick Joarder
In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2] could be referred for more information. This is case 5 as per document [1]. As discussed, pages need to be marked as dirty before unpinned it. Previously, if lock_pages()

Re: [PATCH v2 2/9] LICENSES: add GFDL licenses

2020-06-23 Thread Kate Stewart
Hi Mauro, On Tue, Jun 23, 2020 at 4:53 AM Mauro Carvalho Chehab wrote: > > Those are used on some documentation texts. > > Signed-off-by: Mauro Carvalho Chehab > --- > LICENSES/deprecated/GFDL-1.1+ | 366 ++ > LICENSES/deprecated/GFDL-1.2 | 408 +

[PATCH 2/4] arm64: dts: uniphier: add interrupts to support card serial

2020-06-23 Thread Masahiro Yamada
Since commit e69f5dc623f9 ("dt-bindings: serial: Convert 8250 to json-schema"), the schema for "ns16550a" is checked. Since then, 'make ARCH=arm64 dtbs_check' is so noisy because the required property 'interrupts' is missing. Signed-off-by: Masahiro Yamada --- arch/arm64/boot/dts/socionext/uni

[PATCH 1/4] ARM: dts: uniphier: add interrupts to support card serial

2020-06-23 Thread Masahiro Yamada
Since commit e69f5dc623f9 ("dt-bindings: serial: Convert 8250 to json-schema"), the schema for "ns16550a" is checked. Since then, 'make ARCH=arm dtbs_check' is so noisy because the required property 'interrupts' is missing. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ld4-ref.

[PATCH 4/4] ARM: dts: uniphier: change support card to simple-mfd from simple-bus

2020-06-23 Thread Masahiro Yamada
'make ARCH=arm dtbs_check' emits the following warning: support-card@1,1f0: $nodename:0: 'support-card@1,1f0' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Maybe, simple-mfd could be a better fit for this device. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Peter Zijlstra
On Tue, Jun 23, 2020 at 01:30:07PM +0200, Joerg Roedel wrote: > Note that this is an issue only with secure nested paging (SNP), which > is not enabled yet with this patch-set. When it gets enabled a stack > recursion check in the #VC handler is needed which panics the VM. That > also fixes the #VC

Re: [PATCH] arm64: dts: imx8mp: Add fallback compatible to ocotp node

2020-06-23 Thread Shawn Guo
On Thu, Jun 11, 2020 at 09:36:53AM +0800, Anson Huang wrote: > Add "fsl,imx8mm-ocotp" as fallback compatible of i.MX8MP ocotp > to support SoC serial_number read. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH v6 1/3] dt-bindings: media: stm32-dcmi: Add DCMI min frequency property

2020-06-23 Thread Benjamin GAIGNARD
On 6/10/20 2:24 PM, Benjamin Gaignard wrote: > Document st,stm32-dcmi-min-frequency property which is used to > request CPUs minimum frequency when streaming frames. Gentle for reviewers on this bindings. Thanks, Benjamin > > Signed-off-by: Benjamin Gaignard > --- > Documentation/devicetree/b

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-06-23 Thread Greg Kroah-Hartman
On Tue, Jun 23, 2020 at 04:01:52PM +0800, Ian Kent wrote: > On Tue, 2020-06-23 at 08:02 +0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 23, 2020 at 01:09:08PM +0800, Ian Kent wrote: > > > On Mon, 2020-06-22 at 20:03 +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Jun 22, 2020 at 01:48:45PM -0400,

[RFC PATCH v2] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-23 Thread Souptick Joarder
In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2] could be referred for more information. This is case 5 as per document [1]. As discussed, pages need to be marked as dirty before unpinned it. Previously, if lock_pages()

Re: [PATCH 1/2] block: remove unnecessary ioc nested locking

2020-06-23 Thread Daniel Wagner
On Fri, Jun 19, 2020 at 05:23:17PM +0206, John Ogness wrote: > The legacy CFQ IO scheduler could call put_io_context() in its exit_icq() > elevator callback. This led to a lockdep warning, which was fixed in > commit d8c66c5d5924 ("block: fix lockdep warning on io_context release > put_io_context()

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Peter Zijlstra
On Tue, Jun 23, 2020 at 01:43:24PM +0200, Joerg Roedel wrote: > On Tue, Jun 23, 2020 at 01:14:43PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 23, 2020 at 01:11:07PM +0200, Joerg Roedel wrote: > > > > The v3 patchset implements an unconditional shift of the #VC IST entry > > > in the NMI handler,

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Andrew Cooper
On 23/06/2020 12:30, Joerg Roedel wrote: > On Tue, Jun 23, 2020 at 01:07:06PM +0200, Peter Zijlstra wrote: >> On Tue, Apr 28, 2020 at 09:55:12AM +0200, Joerg Roedel wrote: >> So what happens if this #VC triggers on the first access to the #VC >> stack, because the malicious host has craftily mucked

Re: [PATCH] Allow building hid.ko as an "external" module

2020-06-23 Thread kernel test robot
Hi Cristian, Thank you for the patch! Yet something to improve: [auto build test ERROR on jikos-trivial/for-next] [also build test ERROR on linux/master linus/master v5.8-rc2 next-20200623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-06-23 Thread Ian Kent
On Tue, 2020-06-23 at 02:33 -0700, Rick Lindsley wrote: > On 6/22/20 11:02 PM, Greg Kroah-Hartman wrote: > > > First off, this is not my platform, and not my problem, so it's > > funny > > you ask me :) > > Wlll, not your platform perhaps but MAINTAINERS does list you > first and Tejun second

Re: [PATCH v1] ARM: imx6plus: enable internal routing of clk_enet_ref where possible

2020-06-23 Thread Shawn Guo
Hi Fugang, Can you take a look at this patch? Thanks! Shawn On Sat, Jun 13, 2020 at 04:17:03PM -0400, Sven Van Asbroeck wrote: > On imx6, the ethernet reference clock (clk_enet_ref) can be generated > by either the imx6, or an external source (e.g. an oscillator or the > PHY). When generated by

RE: Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
Hi Jamal, > -Original Message- > From: Jamal Hadi Salim > Sent: 2020年6月23日 18:09 > To: Po Liu ; da...@davemloft.net; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; ido...@idosch.org > Cc: j...@resnulli.us; vinicius.go...@intel.com; v...@buslov.dev; Claudiu > Manoil ; Vladimir O

Re: [PATCH 3/3] nsproxy: support CLONE_NEWTIME with setns()

2020-06-23 Thread Christian Brauner
On Fri, Jun 19, 2020 at 05:35:59PM +0200, Christian Brauner wrote: > So far setns() was missing time namespace support. This was partially due > to it simply not being implemented but also because vdso_join_timens() > could still fail which made switching to multiple namespaces atomically > problem

[PATCH v2 0/7] Refactor handling flow of SET_CPUID*

2020-06-23 Thread Xiaoyao Li
This serial is the extended version of https://lkml.kernel.org/r/20200528151927.14346-1-xiaoyao...@intel.com First two patches are bug fixing, and the others aim to refactor the flow of SET_CPUID* as: 1. cpuid check: check if userspace provides legal CPUID settings; 2. cpuid update: Update some

[PATCH v2 7/7] KVM: X86: Move kvm_apic_set_version() to kvm_update_vcpu_model()

2020-06-23 Thread Xiaoyao Li
Obviously, kvm_apic_set_version() fits well in kvm_update_vcpu_model(). Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 5decc2dd5448..3428f4d84b42 100644 --- a/arch/x86/kv

[PATCH v2 6/7] KVM: X86: Move kvm_x86_ops.update_vcpu_model() into kvm_update_vcpu_model()

2020-06-23 Thread Xiaoyao Li
kvm_x86_ops.update_vcpu_model() is used to update vmx/svm vcpu settings based on updated CPUID settings. So it's supposed to be called after CPUIDs are fully updated, i.e., kvm_update_cpuid(). Move it in kvm_update_vcpu_model(). Signed-off-by: Xiaoyao Li --- --- arch/x86/kvm/cpuid.c | 5 +++--

[PATCH v2 3/7] KVM: X86: Introduce kvm_check_cpuid()

2020-06-23 Thread Xiaoyao Li
Use kvm_check_cpuid() to validate if userspace provides legal cpuid settings and call it before KVM updates CPUID. Signed-off-by: Xiaoyao Li --- Is the check of virutal address width really necessary? KVM doesn't check other bits at all. I guess the policy is that KVM allows illegal CPUID setting

[PATCH v2 5/7] KVM: X86: Rename cpuid_update() to update_vcpu_model()

2020-06-23 Thread Xiaoyao Li
The name of callback cpuid_update() is misleading that it's not about updating CPUID settings of vcpu but updating the configurations of vcpu based on the CPUIDs. So rename it to update_vcpu_model(). Signed-off-by: Xiaoyao Li --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/cpuid.c

Re: [PATCH v2 0/9] Convert the remaining text files to ReST and add SPDX for GFDL

2020-06-23 Thread Kate Stewart
On Tue, Jun 23, 2020 at 4:53 AM Mauro Carvalho Chehab wrote: > > The main goal of this series is to finish the ReST conversion. After this > series, we have just those files still in plain old format: > > - Documentation/RCU/RTFP.txt > - Documentation/atomic_bitops.txt > -

[PATCH v2 1/7] KVM: X86: Reset vcpu->arch.cpuid_nent to 0 if SET_CPUID fails

2020-06-23 Thread Xiaoyao Li
It needs to invalidate CPUID configruations if usersapce provides illegal input. Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 8a294f9747aa..1d13bad42bf9 100644 --- a/arch/x86/kvm/cpuid

[PATCH v2 2/7] KVM: X86: Go on updating other CPUID leaves when leaf 1 is absent

2020-06-23 Thread Xiaoyao Li
As handling of bits other leaf 1 added over time, kvm_update_cpuid() should not return directly if leaf 1 is absent, but should go on updateing other CPUID leaves. Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-)

Re: [PATCH 1/4] io_uring: fix hanging iopoll in case of -EAGAIN

2020-06-23 Thread Pavel Begunkov
On 23/06/2020 05:18, Jens Axboe wrote: > On 6/22/20 8:07 PM, Jens Axboe wrote: >> On 6/22/20 4:16 PM, Pavel Begunkov wrote: >>> io_do_iopoll() won't do anything with a request unless >>> req->iopoll_completed is set. So io_complete_rw_iopoll() has to set >>> it, otherwise io_do_iopoll() will poll a

[PATCH v2 4/7] KVM: X86: Split kvm_update_cpuid()

2020-06-23 Thread Xiaoyao Li
Split the part of updating vcpu model out of kvm_update_cpuid(), and put it into a new kvm_update_vcpu_model(). So it's more clear that kvm_update_cpuid() is to update guest CPUID settings, while kvm_update_vcpu_model() is to update vcpu model (settings) based on the updated CPUID settings. Signed

Re: [v2 3/4] arm64: dts: ls1012a/ls1043a/ls1046a/ls1088a/ls208xa: add ftm_alarm0 node

2020-06-23 Thread Shawn Guo
On Sun, Jun 14, 2020 at 10:32:05PM +0800, Biwen Li wrote: > From: Biwen Li > > The patch adds ftm_alarm0 DT node > - add new rcpm node > - add ftm_alarm0 node > - aliases ftm_alarm0 as rtc1 > > Signed-off-by: Biwen Li > --- > Change in v2: > - use generic name > -

Re: ARM: imx6: add missing put_device() call in imx6q_suspend_init()

2020-06-23 Thread Markus Elfring
>> Do you find a previous update suggestion useful? >> >> ARM: imx6: Add missing put_device() call in imx6q_suspend_init() >> https://lore.kernel.org/linux-arm-kernel/5acd7308-f6e1-4b1e-c744-bb2e5fdca...@web.de/ >> https://lore.kernel.org/patchwork/patch/1151158/ >> https://

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Joerg Roedel
On Tue, Jun 23, 2020 at 01:48:18PM +0200, Peter Zijlstra wrote: > On Tue, Jun 23, 2020 at 01:30:07PM +0200, Joerg Roedel wrote: > But you cannot do a recursion check in #VC, because the NMI can happen > on the first instruction of #VC, before we can increment our counter, > and then the #VC can ha

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

2020-06-23 Thread Stefan Berger
From: Stefan Berger In case a TPM2 is attached, search for a TPM2 ACPI table when trying to get the event log from ACPI. If one is found, use it to get the start and length of the log area. This allows non-UEFI systems, such as SeaBIOS, to pass an event log when using a TPM2. Signed-off-by: Stef

[PATCH v5 1/2] acpi: Extend TPM2 ACPI table with missing log fields

2020-06-23 Thread Stefan Berger
From: Stefan Berger Recent extensions of the TPM2 ACPI table added 3 more fields including 12 bytes of start method specific parameters and Log Area Minimum Length (u32) and Log Area Start Address (u64). So, we extend the existing structure with these fields to allow non-UEFI systems to access th

[PATCH] i2c: rk3x: support master_xfer_atomic

2020-06-23 Thread John Keeping
Enable i2c transactions in irq disabled contexts like poweroff where the PMIC is connected via i2c. Signed-off-by: John Keeping --- drivers/i2c/busses/i2c-rk3x.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c

[PATCH v5 0/2] tpm2: Make TPM2 logs accessible for non-UEFI firmware

2020-06-23 Thread Stefan Berger
From: Stefan Berger This series of patches extends the existing TPM2 ACPI table with additional fields found in the TPM2 TCG ACPI specification (reference is in the patch) that allow access to the log's address and its size. We then modify the code that so far only enables access to a TPM 1.2's l

[PATCH v2] dma-remap: Align the size in dma_common_*_remap()

2020-06-23 Thread Eric Auger
Running a guest with a virtio-iommu protecting virtio devices is broken since commit 515e5b6d90d4 ("dma-mapping: use vmap insted of reimplementing it"). Before the conversion, the size was page aligned in __get_vm_area_node(). Doing so fixes the regression. Fixes: 515e5b6d90d4 ("dma-mapping: use v

Re: [PATCH] [v4] dmaengine: tegra210-adma: Fix runtime PM imbalance on error

2020-06-23 Thread Geert Uytterhoeven
Hi Jon, More stirring in the cesspool ;-) On Tue, Jun 23, 2020 at 12:13 PM Jon Hunter wrote: > On 21/06/2020 06:47, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > > when it returns an error code. Thus a pairing decrement is needed on > > the error han

Re: ARM: imx6: add missing put_device() call in imx6q_suspend_init()

2020-06-23 Thread Shawn Guo
On Tue, Jun 23, 2020 at 02:00:09PM +0200, Markus Elfring wrote: > >> Do you find a previous update suggestion useful? > >> > >> ARM: imx6: Add missing put_device() call in imx6q_suspend_init() > >> https://lore.kernel.org/linux-arm-kernel/5acd7308-f6e1-4b1e-c744-bb2e5fdca...@web.de/

[PATCH v3 bpf-next 1/8] bpf: provide function to get vmlinux BTF information

2020-06-23 Thread Alan Maguire
It will be used later for BTF printk() support Signed-off-by: Alan Maguire --- include/linux/bpf.h | 2 ++ kernel/bpf/verifier.c | 18 -- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 07052d4..a2ecebd 100644 ---

[PATCH v3 bpf-next 0/8] bpf, printk: add BTF-based type printing

2020-06-23 Thread Alan Maguire
The printk family of functions support printing specific pointer types using %p format specifiers (MAC addresses, IP addresses, etc). For full details see Documentation/core-api/printk-formats.rst. This patchset proposes introducing a "print typed pointer" format specifier "%pT"; the argument ass

[PATCH v3 bpf-next 3/8] checkpatch: add new BTF pointer format specifier

2020-06-23 Thread Alan Maguire
checkpatch complains about unknown format specifiers, so add the BTF format specifier we will implement in a subsequent patch to avoid errors. Signed-off-by: Alan Maguire --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts

[PATCH v3 bpf-next 7/8] bpf: add support for %pT format specifier for bpf_trace_printk() helper

2020-06-23 Thread Alan Maguire
Allow %pT[cNx0] format specifier for BTF-based display of data associated with pointer. The unsafe data modifier 'u' - where the source data is traversed without copying it to a safe buffer via probe_kernel_read() - is not supported. Signed-off-by: Alan Maguire --- include/uapi/linux/bpf.h

[PATCH v3 bpf-next 4/8] printk: add type-printing %pT format specifier which uses BTF

2020-06-23 Thread Alan Maguire
printk supports multiple pointer object type specifiers (printing netdev features etc). Extend this support using BTF to cover arbitrary types. "%pT" specifies the typed format, and the pointer argument is a "struct btf_ptr *" where struct btf_ptr is as follows: struct btf_ptr { void *pt

[PATCH v3 bpf-next 6/8] printk: extend test_printf to test %pT BTF-based format specifier

2020-06-23 Thread Alan Maguire
Add tests to verify basic type display and to iterate through all enums, structs, unions and typedefs ensuring expected behaviour occurs. Since test_printf can be built as a module we need to export a BTF kind iterator function to allow us to iterate over all names of a particular BTF kind. These

[PATCH v3 bpf-next 8/8] bpf/selftests: add tests for %pT format specifier

2020-06-23 Thread Alan Maguire
tests verify we get 0 return value from bpf_trace_print() using %pT format specifier with various modifiers/pointer values. Signed-off-by: Alan Maguire --- .../selftests/bpf/prog_tests/trace_printk_btf.c| 45 + .../selftests/bpf/progs/netif_receive_skb.c| 47 +

[PATCH v3 bpf-next 5/8] printk: initialize vmlinux BTF outside of printk in late_initcall()

2020-06-23 Thread Alan Maguire
vmlinux BTF initialization can take time so it's best to do that outside of printk context; otherwise the first printk() using %pT will trigger BTF initialization. Signed-off-by: Alan Maguire --- lib/vsprintf.c | 12 1 file changed, 12 insertions(+) diff --git a/lib/vsprintf.c b/li

[PATCH v3 bpf-next 2/8] bpf: move to generic BTF show support, apply it to seq files/strings

2020-06-23 Thread Alan Maguire
generalize the "seq_show" seq file support in btf.c to support a generic show callback of which we support two instances; the current seq file show, and a show with snprintf() behaviour which instead writes the type data to a supplied string. Both classes of show function call btf_type_show() with

Re: [PATCH] ARM: imx6: add missing put_device() call in imx6q_suspend_init()

2020-06-23 Thread Shawn Guo
On Thu, Jun 04, 2020 at 08:54:49PM +0800, yu kuai wrote: > if of_find_device_by_node() succeed, imx6q_suspend_init() doesn't have a > corresponding put_device(). Thus add a jump target to fix the exception > handling for this function implementation. > > Signed-off-by: yu kuai Applied, thanks.

Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace)

2020-06-23 Thread Joerg Roedel
On Tue, Jun 23, 2020 at 01:50:14PM +0200, Peter Zijlstra wrote: > If SNP is the sole reason #VC needs to be IST, then I'd strongly urge > you to only make it IST if/when you try and make SNP happen, not before. It is not the only reason, when ES guests gain debug register support then #VC also nee

Re: [PATCH v2] dma-remap: Align the size in dma_common_*_remap()

2020-06-23 Thread Christoph Hellwig
On Tue, Jun 23, 2020 at 02:07:55PM +0200, Eric Auger wrote: > Running a guest with a virtio-iommu protecting virtio devices > is broken since commit 515e5b6d90d4 ("dma-mapping: use vmap insted > of reimplementing it"). Before the conversion, the size was > page aligned in __get_vm_area_node(). Doin

Re: linux-next: build failure after merge of the printk tree

2020-06-23 Thread Petr Mladek
On Tue 2020-06-23 10:26:55, Stephen Rothwell wrote: > Hi Stephen, > > On Sun, 21 Jun 2020 13:15:54 +1000 Stephen Rothwell > wrote: > > > > Hi all, > > > > After merging the printk tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > In file included from include/l

KASAN: null-ptr-deref Read in kvm_arch_check_processor_compat

2020-06-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=135e723510 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312 das

Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Jamal Hadi Salim
On 2020-06-23 7:55 a.m., Po Liu wrote: [..] My question: Is this any different from how stats are structured? I don't know I fully catch the question. Are you trying to get how many frames for each filter chain passing one index policing action? If one index police action bind to multiple tc

<    1   2   3   4   5   6   7   8   9   10   >