linux-next: Fixes tag needs some work in the sound-asoc tree

2020-07-29 Thread Stephen Rothwell
Hi all, In commit e5448d7ec656 ("ASoC: tlv320adcx140: Fix various style errors and warnings") Fixes tag Fixes: 689c7655b50 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread Fenghua Yu
Hi, Sean, On Wed, Jul 29, 2020 at 01:39:05PM -0700, Sean Christopherson wrote: > On Wed, Jul 29, 2020 at 08:35:57PM +, Fenghua Yu wrote: > > If sld=fatal and bld=ratelimit (both sld and bld are enabled in hw), > > a split lock always generates #AC and kills the app and bld will never have > >

[tip:sched/fifo] BUILD REGRESSION 4fd5750af02ab7bba7c58a073060cc1da8a69173

2020-07-29 Thread kernel test robot
/Warning ids grouped by kconfigs: recent_errors |-- alpha-allmodconfig | `-- drivers-pinctrl-core.c:error:Cannot-parse-struct-or-union |-- alpha-allyesconfig | `-- drivers-pinctrl-core.c:error:Cannot-parse-struct-or-union |-- alpha-randconfig-r002-20200729 | `-- drivers-pinctrl

[no subject]

2020-07-29 Thread Celine Marchand
Urgent attention please Dearest, how are you? I am sorry for intruding your mailbox, but I need to talk to you. I got your email address in my dream and i wonder if it is correct because i emailed you earlier without any response. You should know that my contact to you is by the special grace

Modem on Droid 4 (mdm6600) in recent mainline

2020-07-29 Thread Pavel Machek
Hi! There's something very wrong with /dev/ttyUSB4 in recent kernels: unsolicited incoming data from the modem are getting lost; I believe it means also SMS notifications, but it is very easy to reproduce with incoming call notifications. They just don't come. But if you keep pasting "AT" into m

linux-next: Fixes tag needs some work in the block tree

2020-07-29 Thread Stephen Rothwell
Hi all, In commit 64d452b3560b ("nvme-loop: set ctrl state connecting after init") Fixes tag Fixes: aa63fa6776a7 ("nvme-fabrics: allow to queue requests for live queues") has these problem(s): - Target SHA1 does not exist I can't easily find what commit is meant :-( -- Cheers, Stephe

Re: [PATCH 1/1] scsi: virtio-scsi: handle correctly case when all LUNs were unplugged

2020-07-29 Thread Paolo Bonzini
On 29/07/20 21:48, Maxim Levitsky wrote: > Commit 5ff843721467 ("scsi: virtio_scsi: unplug LUNs when events missed"), > almost fixed the case of mass unpluging of LUNs, but it missed a > corner case in which all the LUNs are unplugged at the same time. > > In this case INQUIRY ends with DID_BAD_TA

Re: linux-next: Fixes tag needs some work in the block tree

2020-07-29 Thread Stephen Rothwell
Hi all, [Just adding cc's] On Thu, 30 Jul 2020 08:08:49 +1000 Stephen Rothwell wrote: > > In commit > > 64d452b3560b ("nvme-loop: set ctrl state connecting after init") > > Fixes tag > > Fixes: aa63fa6776a7 ("nvme-fabrics: allow to queue requests for live > queues") > > has these probl

[PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-29 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows and makes it explicitly clear that we are dealing with a flexible array member. Signed-off-by: Gustavo A

Re: kernel BUG at include/linux/swapops.h:LINE!

2020-07-29 Thread Matthew Wilcox
On Wed, Jul 29, 2020 at 08:54:32PM +0100, Matthew Wilcox wrote: > On Wed, Jul 29, 2020 at 10:21:51PM +0300, Kirill A. Shutemov wrote: > > On Mon, Jul 27, 2020 at 01:03:10PM +0100, Matthew Wilcox wrote: > > > > It would be interesting to know if the migration entires ever got > > > > removed > > >

Re: [PATCH v3 09/11] KVM: SVM: Remove set_exception_intercept and clr_exception_intercept

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:38 PM Babu Moger wrote: > > Remove set_exception_intercept and clr_exception_intercept. > Replace with generic set_intercept and clr_intercept for these calls. > > Signed-off-by: Babu Moger Reviewed-by: Jim Mattson

[PATCH][next] ALSA: hda_codec: Use flex_array_size() helper in memcpy()

2020-07-29 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows and makes it explicitly clear that we are dealing with a flexible array member. Signed-off-by: Gustavo A

RE: [PATCH v3 06/11] KVM: SVM: Add new intercept vector in vmcb_control_area

2020-07-29 Thread Babu Moger
> -Original Message- > From: Jim Mattson > Sent: Wednesday, July 29, 2020 4:24 PM > To: Moger, Babu > Cc: Paolo Bonzini ; Vitaly Kuznetsov > ; Wanpeng Li ; Sean > Christopherson ; kvm list > ; Joerg Roedel ; the arch/x86 > maintainers ; LKML ; Ingo > Molnar ; Borislav Petkov ; H . Pete

Re: [PATCH v3 6/6] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-29 Thread Brian Norris
Hi Guenter, On Sun, Jul 26, 2020 at 03:01:01PM -0700, Guenter Roeck wrote: > v3: Use -ENOPROTOOPT for EC_RES_INVALID_VERSION > Implement function to convert error codes > v2: No change > > drivers/platform/chrome/cros_ec_proto.c | 52 - > 1 file changed, 42 insertions

Re: kernel BUG at mm/internal.h:LINE! (2)

2020-07-29 Thread Kirill A. Shutemov
On Wed, Jul 29, 2020 at 01:04:21PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:68845a55 Merge branch 'akpm' into master (patches from And.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17c86c5490 > kernel

Re: [PATCH-next v5 0/7] x86/boot: Remove run-time relocations from compressed kernel

2020-07-29 Thread Arvind Sankar
On Wed, Jul 29, 2020 at 03:04:43PM -0700, Kees Cook wrote: > On Fri, Jul 17, 2020 at 04:17:54PM -0400, Arvind Sankar wrote: > > Same as v5 previously posted, but rebased onto next-20200717. > > > > v5: > > https://lore.kernel.org/lkml/20200715004133.1430068-1-nived...@alum.mit.edu/ > > BTW, some

drivers/staging/media/atomisp/pci/atomisp_cmd.c:2805:31: warning: variable 'stream_config' set but not used

2020-07-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6ba1b005ffc388c2aeaddae20da29e4810dea298 commit: 5b552b198c2557295becd471bff53bb520fefee5 media: atomisp: re-enable warnings again date: 7 weeks ago config: i386-randconfig-r016-20200729 (attached as

Re: [PATCH v3 10/11] KVM: X86: Move handling of INVPCID types to x86

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:38 PM Babu Moger wrote: > > INVPCID instruction handling is mostly same across both VMX and > SVM. So, move the code to common x86.c. > > Signed-off-by: Babu Moger Reviewed-by: Jim Mattson

Re: [tip:locking/core 9/30] arch/mips/include/asm/smp.h:28:19: error: static declaration of 'raw_smp_processor_id' follows non-static declaration

2020-07-29 Thread peterz
On Thu, Jul 30, 2020 at 02:05:18AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking/core > head: b5e6a027bd327daa679ca55182a920659e2cbb90 > commit: 859247d39fb008ea812e8f0c398a58a20c12899e [9/30] seqlock: lockdep > assert non-preemp

Re: [PATCH v3 0/6] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-29 Thread Brian Norris
On Sun, Jul 26, 2020 at 03:00:55PM -0700, Guenter Roeck wrote: > The EC reports a variety of error codes. Most of those, with the exception > of EC_RES_INVALID_VERSION, are converted to -EPROTO. As result, the actual > error code gets lost. In cros_ec_cmd_xfer_status(), convert all EC errors > to L

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-29 Thread Segher Boessenkool
On Wed, Jul 29, 2020 at 03:44:56PM -0400, Vladis Dronov wrote: > > > Certain warnings are emitted for powerpc code when building with a gcc-10 > > > toolset: > > > > > > WARNING: modpost: vmlinux.o(.text.unlikely+0x377c): Section mismatch > > > in > > > reference from the function remove_

Re: [PATCH v7 7/8] scsi: ufs: Move dumps in IRQ handler to error handler

2020-07-29 Thread Asutosh Das (asd)
On 7/29/2020 6:02 AM, Can Guo wrote: Hi Asutosh, On 2020-07-29 02:06, Asutosh Das (asd) wrote: On 7/27/2020 10:00 PM, Can Guo wrote: Sometime dumps in IRQ handler are heavy enough to cause system stability issues, move them to error handler. Signed-off-by: Can Guo ---   drivers/scsi/ufs/ufsh

[PATCH] fbmem: pull fbcon_update_vcs() out of fb_set_var()

2020-07-29 Thread Tetsuo Handa
syzbot is reporting OOB read bug in vc_do_resize() [1] caused by memcpy() based on outdated old_{rows,row_size} values, for resize_screen() can recurse into vc_do_resize() which changes vc->vc_{cols,rows} that outdates old_{rows,row_size} values which were saved before calling resize_screen(). Dan

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-07-29 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > MediaTek bus fabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violation is logged and sent to the processor for > further analysis or countermeasures. > >

[PATCH][next] mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy()

2020-07-29 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows, while at the same time makes it explicitly clear that we are dealing witha flexible array member. Also,

Re: [PATCH] PCI: Move pci_info() after pci_fixup_device() in pci_setup_device()

2020-07-29 Thread Bjorn Helgaas
On Mon, Jul 27, 2020 at 03:06:55PM +0800, Tiezhu Yang wrote: > In the current code, we can not see the PCI info after fixup which is > correct to reflect the reality, it is better to move pci_info() after > pci_fixup_device() in pci_setup_device(). > > Signed-off-by: Tiezhu Yang Applied to pci/e

Re: [maemo-leste] Modem on Droid 4 (mdm6600) in recent mainline

2020-07-29 Thread Pavel Machek
Hi! > There's something very wrong with /dev/ttyUSB4 in recent kernels: > unsolicited incoming data from the modem are getting lost; I believe > it means also SMS notifications, but it is very easy to reproduce with > incoming call notifications. > > They just don't come. > > But if you keep pas

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Ian Rogers
On Wed, Jul 29, 2020 at 1:11 PM Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_min_heap, > from `lib/test_min_heap.c` to KUnit tests. > > Please apply this commit first (linux-kselftest/kunit-fixes): > 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config

Re: [PATCH V4 2/3] mfd: Intel Platform Monitoring Technology support

2020-07-29 Thread Mark D Rustad
at 12:58 AM, Lee Jones wrote: If you do: do { int pos; pos = pci_find_next_ext_capability(pdev, pos, PCI_EXT_CAP_ID_DVSEC); if (!pos) break; Then you can invoke pci_find_next_ext_capability() once, no? Part of

Re: [PATCH v3 11/11] KVM:SVM: Enable INVPCID feature on AMD

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:39 PM Babu Moger wrote: > > The following intercept bit has been added to support VMEXIT > for INVPCID instruction: > CodeNameCause > A2h VMEXIT_INVPCID INVPCID instruction > > The following bit has been added to the VMCB layout control area > to cont

Re: [PATCH v3 02/11] KVM: SVM: Change intercept_cr to generic intercepts

2020-07-29 Thread Paolo Bonzini
On 29/07/20 18:08, Babu Moger wrote: >>> >>> if (g->int_ctl & V_INTR_MASKING_MASK) { >>> /* We only want the cr8 intercept bits of L1 */ >>> - c->intercept_cr &= ~(1U << INTERCEPT_CR8_READ); >>> - c->intercept_cr &= ~(1U << INTERCEPT_CR8_WRITE); >

linux-next: build failure after merge of the origin tree

2020-07-29 Thread Stephen Rothwell
Hi all, After merging the origin tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/asm-generic/percpu.h:7, from arch/x86/include/asm/percpu.h:556, from arch/x86/include/asm/preempt.h:6, from incl

Re: [PATCH v3 01/11] KVM: SVM: Introduce __set_intercept, __clr_intercept and __is_intercept

2020-07-29 Thread Paolo Bonzini
On 29/07/20 01:37, Babu Moger wrote: > This is in preparation for the future intercept vector additions. > > Add new functions __set_intercept, __clr_intercept and __is_intercept > using kernel APIs __set_bit, __clear_bit and test_bit espectively. > > Signed-off-by: Babu Moger > --- > arch/x86/

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Hi Ian, On Wed, Jul 29, 2020 at 7:57 PM 'Ian Rogers' via KUnit Development wrote: > > On Wed, Jul 29, 2020 at 1:11 PM Vitor Massaru Iha wrote: > > > > This adds the conversion of the runtime tests of test_min_heap, > > from `lib/test_min_heap.c` to KUnit tests. > > > > Please apply this commit f

Re: [PATCH v3 03/11] KVM: SVM: Change intercept_dr to generic intercepts

2020-07-29 Thread Paolo Bonzini
On 29/07/20 01:59, Jim Mattson wrote: >> case SVM_EXIT_READ_DR0 ... SVM_EXIT_WRITE_DR7: { >> - u32 bit = 1U << (exit_code - SVM_EXIT_READ_DR0); >> - if (svm->nested.ctl.intercept_dr & bit) >> + if (__is_intercept(&svm->nested.ctl.intercepts, exit_co

[PATCH] Revert "Bluetooth: btusb: Disable runtime suspend on Realtek devices"

2020-07-29 Thread Abhishek Pandit-Subedi
This reverts commit 7ecacafc240638148567742cca41aa7144b4fe1e. Testing this change on a board with RTL8822CE, I found that enabling autosuspend has no effect on the stability of the system. The board continued working after autosuspend, suspend and reboot. The original commit makes it impossible t

arch/powerpc/sysdev/fsl_rcpm.c:32:9: sparse: sparse: incorrect type in argument 1 (different base types)

2020-07-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d3590ebf6f91350192737dd1d1b219c05277f067 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: powerpc-randconfig-s031-20200729

[PATCH v2] PCI/P2PDMA: Allow P2PDMA on all AMD CPUs newer than the Zen family

2020-07-29 Thread Logan Gunthorpe
In order to avoid needing to add every new AMD CPU host bridge to the list every cycle, allow P2PDMA if the CPUs vendor is AMD and family is greater than 0x17 (Zen). This should cut down a bunch of the churn adding to the list of allowed host bridges. Signed-off-by: Logan Gunthorpe Cc: Bjorn Hel

My Dear in the lord

2020-07-29 Thread Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited t

Re: [PATCH v3 6/6] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-29 Thread Guenter Roeck
On 7/29/20 3:21 PM, Brian Norris wrote: > Hi Guenter, > > On Sun, Jul 26, 2020 at 03:01:01PM -0700, Guenter Roeck wrote: >> v3: Use -ENOPROTOOPT for EC_RES_INVALID_VERSION >> Implement function to convert error codes >> v2: No change >> >> drivers/platform/chrome/cros_ec_proto.c | 52

Re: [RFC PATCH 3/5] mm: introduce VM_EXEC_KEEP

2020-07-29 Thread Anthony Yznaga
On 7/29/20 6:52 AM, Kirill A. Shutemov wrote: > On Mon, Jul 27, 2020 at 10:11:25AM -0700, Anthony Yznaga wrote: >> A vma with the VM_EXEC_KEEP flag is preserved across exec. For anonymous >> vmas only. For safety, overlap with fixed address VMAs created in the new >> mm during exec (e.g. the s

Re: [PATCH v2 2/5] perf record: Prevent override of attr->sample_period for libpfm4 events

2020-07-29 Thread Ian Rogers
On Tue, Jul 28, 2020 at 9:10 AM Jiri Olsa wrote: > > On Tue, Jul 28, 2020 at 05:59:46PM +0200, Jiri Olsa wrote: > > On Tue, Jul 28, 2020 at 01:57:31AM -0700, Ian Rogers wrote: > > > From: Stephane Eranian > > > > > > Before: > > > $ perf record -c 1 --pfm-events=cycles:period=7 > > > > >

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Dmitry Osipenko
28.07.2020 18:59, Sowjanya Komatineni пишет: ... >>> +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); >>> +    if (ret < 0) >>> +    dev_err(csi_chan->csi->dev, >>> +    "MIPI calibration failed: %d\n", ret); >> Doesn't v4l2_subdev_call(OFF) need to be invoked h

Re: Kernel panic - not syncing: IO-APIC + timer doesn't work!

2020-07-29 Thread Scott Branden
Hi Tom, On 2020-07-29 11:29 a.m., Tom Lendacky wrote: > On 7/29/20 4:50 AM, Thomas Gleixner wrote: >> Scott, >> >> Scott Branden writes: >>> On 2020-07-28 1:22 a.m., Thomas Gleixner wrote: Scott Branden writes: > Bios now updated to latest.  Same kernel panic issue.  Log below. > >>

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread Sean Christopherson
On Wed, Jul 29, 2020 at 10:07:14PM +, Fenghua Yu wrote: > Hi, Sean, > > On Wed, Jul 29, 2020 at 01:39:05PM -0700, Sean Christopherson wrote: > > On Wed, Jul 29, 2020 at 08:35:57PM +, Fenghua Yu wrote: > > > If sld=fatal and bld=ratelimit (both sld and bld are enabled in hw), > > > a split

[PATCH][next] staging: wfx: Use flex_array_size() helper in memcpy()

2020-07-29 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows, while at the same time makes it explicitly clear that we are dealing with a flexible array member. Sign

Re: [PATCH v3 6/6] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-29 Thread Brian Norris
On Wed, Jul 29, 2020 at 4:22 PM Guenter Roeck wrote: > On 7/29/20 3:21 PM, Brian Norris wrote: > > On Sun, Jul 26, 2020 at 03:01:01PM -0700, Guenter Roeck wrote: > >> --- a/drivers/platform/chrome/cros_ec_proto.c > >> +++ b/drivers/platform/chrome/cros_ec_proto.c > > ^^ Maybe we want to double ch

Re: 回复: [PATCH] mm/slab.c: add node spinlock protect in __cache_free_alien

2020-07-29 Thread David Rientjes
On Wed, 29 Jul 2020, Zhang, Qiang wrote: > > From: Zhang Qiang > > > > We should add node spinlock protect "n->alien" which may be > > assigned to NULL in cpuup_canceled func. cause address access > > exception. > > > > >Hi, do you have an example NULL pointer dereference where you have hit > >t

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

2020-07-29 Thread Stephen Rothwell
Hi all, On Mon, 13 Jul 2020 12:04:19 +1000 Stephen Rothwell wrote: > > On Wed, 8 Jul 2020 14:00:34 +1000 Stephen Rothwell > wrote: > > > > After merging the security tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > fs/anon_inodes.c: In function 'anon_inod

RE: [PATCH v3 2/4] iommu: Add iommu_aux_at(de)tach_group()

2020-07-29 Thread Tian, Kevin
> From: Alex Williamson > Sent: Thursday, July 30, 2020 4:04 AM > > On Thu, 16 Jul 2020 09:07:46 +0800 > Lu Baolu wrote: > > > Hi Jacob, > > > > On 7/16/20 12:01 AM, Jacob Pan wrote: > > > On Wed, 15 Jul 2020 08:47:36 +0800 > > > Lu Baolu wrote: > > > > > >> Hi Jacob, > > >> > > >> On 7/15/20

[RFT PATCH v4 7/9] efi: Rename arm-init to efi-init common for all arch

2020-07-29 Thread Atish Patra
arm-init is responsible for setting up efi runtime and doesn't actually do any ARM specific stuff. RISC-V can use the same source code as it is. Rename it to efi-init so that RISC-V can use it. Signed-off-by: Atish Patra --- drivers/firmware/efi/Makefile | 2 +- drivers/firmwa

[RFT PATCH v4 8/9] RISC-V: Add EFI runtime services

2020-07-29 Thread Atish Patra
This patch adds EFI runtime service support for RISC-V. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 2 + arch/riscv/include/asm/efi.h| 20 arch/riscv/include/asm/mmu.h| 2 + arch/riscv/include/asm/pgtable.h| 4 + arch/riscv

[RFT PATCH v4 5/9] RISC-V: Add PE/COFF header for EFI stub

2020-07-29 Thread Atish Patra
Linux kernel Image can appear as an EFI application With appropriate PE/COFF header fields in the beginning of the Image header. An EFI application loader can directly load a Linux kernel Image and an EFI stub residing in kernel can boot Linux kernel directly. Add the necessary PE/COFF header. Si

[RFT PATCH v4 6/9] RISC-V: Add EFI stub support.

2020-07-29 Thread Atish Patra
Add a RISC-V architecture specific stub code that actually copies the actual kernel image to a valid address and jump to it after boot services are terminated. Enable UEFI related kernel configs as well for RISC-V. Signed-off-by: Atish Patra Link: https://lore.kernel.org/r/2020042106.9663-4-a

[RFT PATCH v4 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-29 Thread Atish Patra
From: Anup Patel Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space left for other kernel features such as early ioremap which requires fixmap as well. The fixmap size can be increased by another 2

[RFT PATCH v4 9/9] RISC-V: Add page table dump support for uefi

2020-07-29 Thread Atish Patra
Extend the current page table dump support in RISC-V to include efi pages as well. Here is the output of efi runtime page table mappings. ---[ UEFI runtime start ]--- 0x20002000-0x20003000 0xbe732000 4K PTE D A . . . W R V 0x20018000-0x20019000 0xbe

[RFT PATCH v4 2/9] RISC-V: Add early ioremap support

2020-07-29 Thread Atish Patra
UEFI uses early IO or memory mappings for runtime services before normal ioremap() is usable. Add the necessary fixmap bindings and pmd mappings for generic ioremap support to work. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/Kbuild | 1 + arc

[RFT PATCH v4 0/9] Add UEFI support for RISC-V

2020-07-29 Thread Atish Patra
This series adds UEFI support for RISC-V. Linux kernel: 5.8-rc7 + 1 exception vector setup patch (queued for for-next) U-Boot: v2020.07 OpenSBI: master This series depends on early setup of exeception vector patch http://lists.infradead.org/pipermail/linux-riscv/2020-July/001207.html Patch 1-3

[RFT PATCH v4 4/9] include: pe.h: Add RISC-V related PE definition

2020-07-29 Thread Atish Patra
Define RISC-V related machine types. Signed-off-by: Atish Patra Reviewed-by: Palmer Dabbelt Link: https://lore.kernel.org/r/20200415195422.19866-3-atish.pa...@wdc.com Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pe.h

[RFT PATCH v4 3/9] RISC-V: Implement late mapping page table allocation functions

2020-07-29 Thread Atish Patra
Currently, page table setup is done during setup_va_final where fixmap can be used to create the temporary mappings. The physical frame is allocated from memblock_alloc_* functions. However, this won't work if page table mapping needs to be created for a different mm context (i.e. efi mm) at a late

Re: [PATCH] mm: slab: Avoid the use of one-element array and use struct_size() helper

2020-07-29 Thread David Rientjes
On Wed, 29 Jul 2020, Qianli Zhao wrote: > From: Qianli Zhao > > There is a regular need in the kernel to provide a way to declare having a > dynamically sized set of trailing elements in a structure. Kernel code should > always use “flexible array members”[1] for these cases. The older style of

[PATCH] mmc: sdhci_am654: Add workaround for card detect debounce timer

2020-07-29 Thread Faiz Abbas
There is a one time delay because of a card detect debounce timer in the controller IP. This timer runs as soon as power is applied to the module regardless of whether a card is present or not and any writes to SDHCI_POWER_ON will return 0 before it expires. This timeout has been measured to be abo

Re: [PATCH] PCI: Disallow ASPM on ASMedia ASM1083/1085 PCIe-PCI bridge

2020-07-29 Thread Bjorn Helgaas
On Tue, Jul 21, 2020 at 08:18:03PM -0600, Robert Hancock wrote: > Recently ASPM handling was changed to no longer disable ASPM on all > PCIe to PCI bridges. Unfortunately these ASMedia PCIe to PCI bridge > devices don't seem to function properly with ASPM enabled, as they > cause the parent PCIe ro

Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-07-29 Thread Dmitry Osipenko
29.07.2020 20:55, Sowjanya Komatineni пишет: > > On 7/29/20 10:08 AM, Dmitry Osipenko wrote: >> 28.07.2020 19:04, Sowjanya Komatineni пишет: >> ... > +void tegra_mipi_cancel_calibration(struct tegra_mipi_device *device) > +{ Doesn't MIPI_CAL need to be reset here? >>> No need to reset

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

2020-07-29 Thread Linus Torvalds
On Wed, Jul 29, 2020 at 4:08 PM Stephen Rothwell wrote: > > include/linux/random.h:123:24: error: variable 'net_rand_state' with > 'latent_entropy' attribute must not be local > 123 | DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; Hmm. Ok, this shows a limitation of my al

[PATCH] power: supply: add "Wireless" to power_supply_type and power_supply_type_text

2020-07-29 Thread Jeehong Kim
In android platform(BatteryMonitor.cpp), SysfsStringEnumMap supplyTypeMap[] is declred for communication with kernel(sysfs) and there is "Wireless". But, no type for "Wireless" in kernel. So, we suggest to add "Wireless" to power_supply_type and power_supply_type_text. I hope this will not only syn

Re: (resend) [PATCH [linux-4.14.y]] dm cache: submit writethrough writes in parallel to origin and cache

2020-07-29 Thread John Donnelly
On 7/29/20 9:16 AM, Mike Snitzer wrote: On Wed, Jul 29 2020 at 7:55am -0400, Greg KH wrote: On Wed, Jul 29, 2020 at 01:51:19PM +0200, Greg KH wrote: On Mon, Jul 27, 2020 at 11:00:14AM -0400, Mike Snitzer wrote: This mail needs to be saent to sta...@vger.kernel.org (now cc'd). Greg et al

Re: [PATCH -next] tools build: Check return value of fwrite_unlocked in jvmti_agent.c

2020-07-29 Thread Ian Rogers
On Fri, Jul 24, 2020 at 3:07 AM Wang ShaoBo wrote: > > Function jvmti_write_code called by compiled_method_load_cb may return > error in using fwrite_unlocked, this failure should be captured and > warned. > > Signed-off-by: Wang ShaoBo > --- > tools/perf/jvmti/jvmti_agent.c | 23 +++

Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 4:42 PM, Dmitry Osipenko wrote: 29.07.2020 20:55, Sowjanya Komatineni пишет: On 7/29/20 10:08 AM, Dmitry Osipenko wrote: 28.07.2020 19:04, Sowjanya Komatineni пишет: ... +void tegra_mipi_cancel_calibration(struct tegra_mipi_device *device) +{ Doesn't MIPI_CAL need to be reset her

RE: [PATCH v3 3/4] iommu: Add iommu_aux_get_domain_for_dev()

2020-07-29 Thread Tian, Kevin
> From: Alex Williamson > Sent: Thursday, July 30, 2020 4:25 AM > > On Tue, 14 Jul 2020 13:57:02 +0800 > Lu Baolu wrote: > > > The device driver needs an API to get its aux-domain. A typical usage > > scenario is: > > > > unsigned long pasid; > > struct iommu_domain *domain; > >

RE: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Hi, Randy > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > 32-bit value by 31 bits > > On 7/29/20 7:48 AM, Anson Huang wrote: > > Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead > > of (1 << X) to fix below build warning reported by kernel tes

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 4:25 PM, Dmitry Osipenko wrote: 28.07.2020 18:59, Sowjanya Komatineni пишет: ... +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); +    if (ret < 0) +    dev_err(csi_chan->csi->dev, +    "MIPI calibration failed: %d\n", ret); Doesn't v4l2_subdev_

Re: [PATCH bpf-next v2] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Tiezhu Yang
On 07/30/2020 05:06 AM, Song Liu wrote: On Wed, Jul 29, 2020 at 6:17 AM Tiezhu Yang wrote: There exists an error "404 Not Found" when I click the html link of "Documentation/networking/filter.rst" in the BPF documentation [1], fix it. Additionally, use the new links about "BPF and XDP Referenc

Re: [PATCH v3 0/6] PCI: Minor kerneldoc warning fixes

2020-07-29 Thread Bjorn Helgaas
On Wed, Jul 29, 2020 at 10:12:18PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Changes since v2: > 1. Fix almost all warnings, except: >drivers/pci/controller/pci-hyperv.c:2534: warning: Function parameter or > member 'version' not described in 'hv_pci_protocol_negotiation' >drivers/pci/c

[PATCH v2 0/3] Allow user space to restrict and augment MSR emulation

2020-07-29 Thread Alexander Graf
While tying to add support for the MSR_CORE_THREAD_COUNT MSR in KVM, I realized that we were still in a world where user space has no control over what happens with MSR emulation in KVM. That is bad for multiple reasons. In my case, I wanted to emulate the MSR in user space, because it's a CPU spe

[PATCH v2 3/3] KVM: selftests: Add test for user space MSR handling

2020-07-29 Thread Alexander Graf
Now that we have the ability to handle MSRs from user space and also to select which ones we do want to prevent in-kernel KVM code from handling, let's add a selftest to show case and verify the API. Signed-off-by: Alexander Graf --- tools/testing/selftests/kvm/Makefile | 1 + .../sel

[PATCH v2 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-07-29 Thread Alexander Graf
It's not desireable to have all MSRs always handled by KVM kernel space. Some MSRs would be useful to handle in user space to either emulate behavior (like uCode updates) or differentiate whether they are valid based on the CPU model. To allow user space to specify which MSRs it wants to see handl

[PATCH v2 1/3] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
MSRs are weird. Some of them are normal control registers, such as EFER. Some however are registers that really are model specific, not very interesting to virtualization workloads, and not performance critical. Others again are really just windows into package configuration. Out of these MSRs, on

[PATCH V8 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 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(+) dif

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

2020-07-29 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 optio

[PATCH V8 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 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 Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconf

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

2020-07-29 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 Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8 ++-- driver

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

2020-07-29 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 Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/imx/Makefile |

[PATCH V8 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 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 (!(__raw_readl

[PATCH V8 5/6] clk: imx8m: Support module build

2020-07-29 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 Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16 drivers/c

Re: [PATCH 22/23] fs: default to generic_file_splice_read for files having ->read_iter

2020-07-29 Thread Al Viro
On Tue, Jul 07, 2020 at 07:48:00PM +0200, Christoph Hellwig wrote: > If a file implements the ->read_iter method, the iter based splice read > works and is always preferred over the ->read based one. Use it by > default in do_splice_to and remove all the direct assignment of > generic_file_splice_

Urgent Reply

2020-07-29 Thread MUSSA ALI
Dear friend, I know this means of communication may not be morally right to you as a person but I also have had a great thought about it and I have come to this conclusion which I am about to share with you. INTRODUCTION: I am a banker and in one way or the other was hoping you will cooperate

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

2020-07-29 Thread Linus Torvalds
On Wed, Jul 29, 2020 at 4:43 PM Linus Torvalds wrote: > > Ok, this shows a limitation of my allmodconfig testing (and all my > normal builds) - no plugins. So that problem wasn't as obvious as it > should have been. Ok, that was easy to install and get the coverage, and now I see the error. Exce

Re: [PATCH v2 4/5] prctl: Hook L1D flushing in via prctl

2020-07-29 Thread Singh, Balbir
On 29/7/20 11:14 pm, Tom Lendacky wrote: > > > On 7/28/20 7:11 PM, Balbir Singh wrote: >> Use the existing PR_GET/SET_SPECULATION_CTRL API to expose the L1D >> flush capability. For L1D flushing PR_SPEC_FORCE_DISABLE and >> PR_SPEC_DISABLE_NOEXEC are not supported. >> >> There is also no seccomp

[PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-07-29 Thread Jacob Pan
User APIs such as iommu_sva_unbind_gpasid() may also be used by the kernel. Since we introduced user pointer to the UAPI functions, in-kernel callers cannot share the same APIs. In-kernel callers are also trusted, there is no need to validate the data. This patch renames all UAPI functions with io

[PATCH v7 3/7] iommu/uapi: Introduce enum type for PASID data format

2020-07-29 Thread Jacob Pan
There can be multiple vendor-specific PASID data formats used in UAPI structures. This patch adds enum type with a last entry which makes range checking much easier. Suggested-by: Alex Williamson Signed-off-by: Jacob Pan --- include/uapi/linux/iommu.h | 8 ++-- 1 file changed, 6 insertions(

[PATCH v7 1/7] docs: IOMMU user API

2020-07-29 Thread Jacob Pan
IOMMU UAPI is newly introduced to support communications between guest virtual IOMMU and host IOMMU. There has been lots of discussions on how it should work with VFIO UAPI and userspace in general. This document is intended to clarify the UAPI design and usage. The mechanics of how future extensi

[PATCH v7 2/7] iommu/uapi: Add argsz for user filled data

2020-07-29 Thread Jacob Pan
As IOMMU UAPI gets extended, user data size may increase. To support backward compatibiliy, this patch introduces a size field to each UAPI data structures. It is *always* the responsibility for the user to fill in the correct size. Padding fields are adjusted to ensure 8 byte alignment. Specific

[PATCH v7 4/7] iommu/uapi: Use named union for user data

2020-07-29 Thread Jacob Pan
IOMMU UAPI data size is filled by the user space which must be validated by the kernel. To ensure backward compatibility, user data can only be extended by either re-purpose padding bytes or extend the variable sized union at the end. No size change is allowed before the union. Therefore, the minim

[PATCH v7 6/7] iommu/uapi: Handle data and argsz filled by users

2020-07-29 Thread Jacob Pan
IOMMU user APIs are responsible for processing user data. This patch changes the interface such that user pointers can be passed into IOMMU code directly. Separate kernel APIs without user pointers are introduced for in-kernel users of the UAPI functionality. IOMMU UAPI data has a user filled args

[PATCH v7 0/7] IOMMU user API enhancement

2020-07-29 Thread Jacob Pan
IOMMU user API header was introduced to support nested DMA translation and related fault handling. The current UAPI data structures consist of three areas that cover the interactions between host kernel and guest: - fault handling - cache invalidation - bind guest page tables, i.e. guest PASID

[PATCH v7 7/7] iommu/vt-d: Check UAPI data processed by IOMMU core

2020-07-29 Thread Jacob Pan
IOMMU generic layer already does sanity checks UAPI data for version match and argsz range under generic information. Remove the redundant version check from VT-d driver and check for vendor specific data size. Signed-off-by: Jacob Pan --- drivers/iommu/intel/iommu.c | 3 +-- drivers/iommu/intel

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 4:59 PM, Sowjanya Komatineni wrote: On 7/29/20 4:25 PM, Dmitry Osipenko wrote: 28.07.2020 18:59, Sowjanya Komatineni пишет: ... +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); +    if (ret < 0) +    dev_err(csi_chan->csi->dev, +    "MIPI calib

[PATCH] RISC-V: Fix build warning for smpboot.c

2020-07-29 Thread Atish Patra
The following warnings are reported by kbuild with W=1. >> arch/riscv/kernel/smpboot.c:109:5: warning: no previous prototype for 'start_secondary_cpu' [-Wmissing-prototypes] 109 | int start_secondary_cpu(int cpu, struct task_struct *tidle) | ^~~ arch/riscv/kern

Re: [PATCH] mm: slab: Avoid the use of one-element array and use struct_size() helper

2020-07-29 Thread Gustavo A. R. Silva
Hi, If you are going to copy/paste this, please at least CC the people that is originally working on these changes, in this case _me_. One needs to be very careful when doing these transformations. This code doesn't even exist in linux-next. If you want to land your first kernel patch, I encourag

<    3   4   5   6   7   8   9   10   11   12   >