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: [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

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: (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

[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

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

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

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

[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

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

[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

[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

[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 +

[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:

[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

[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

[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 +-

[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 +

[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.

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

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

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 >

[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.

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

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

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: [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

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: [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

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

[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

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] 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

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

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(>nested.ctl.intercepts, exit_code))

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 > --- >

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

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);

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

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

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:

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

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

[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.

[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().

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. >

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 ---  

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

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

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

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

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

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,

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

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 >

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 .

[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

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

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 > > >

[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

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

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

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,

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

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

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

2020-07-29 Thread Kees Cook
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 bits of feedback on process: - please don't re-use version numbers,

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

Re: [PATCH] perf bench: Add benchmark of find_next_bit

2020-07-29 Thread Ian Rogers
On Wed, Jul 29, 2020 at 1:44 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Jul 29, 2020 at 04:59:18PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Jul 28, 2020 at 08:51:52AM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Fri, Jul 24, 2020 at 12:19:59AM -0700, Ian Rogers escreveu: >

Re: [PATCH net-next] hinic: add generating mailbox random index support

2020-07-29 Thread Jakub Kicinski
On Wed, 29 Jul 2020 08:59:19 +0800 Luo bin wrote: > add support to generate mailbox random id for VF to ensure that > the mailbox message from VF is valid and PF should check whether > the cmd from VF is supported before passing it to hw. This is hard to review. I don't see how the addition of

[PATCH v2] perf bench: Add benchmark of find_next_bit

2020-07-29 Thread Ian Rogers
for_each_set_bit, or similar functions like for_each_cpu, may be hot within the kernel. If many bits were set then one could imagine on Intel a "bt" instruction with every bit may be faster than the function call and word length find_next_bit logic. Add a benchmark to measure this. This benchmark

Re: [PATCH -next] drm/amd/powerplay: Remove unneeded cast from memory allocation

2020-07-29 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 29, 2020 at 9:11 AM Li Heng wrote: > > Remove casting the values returned by memory allocation function. > > Coccinelle emits WARNING: > > ./drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c:893:37-46: > WARNING: casting value returned by memory

Re: [PATCH v6 5/6] iommu/uapi: Handle data and argsz filled by users

2020-07-29 Thread Jacob Pan
On Tue, 28 Jul 2020 13:19:44 -0600 Alex Williamson wrote: > On Thu, 23 Jul 2020 10:25:39 -0700 > Jacob Pan wrote: > > > 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

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

2020-07-29 Thread Vitor Massaru Iha
Hi Peter, On Wed, Jul 29, 2020 at 5:39 PM wrote: > > On Wed, Jul 29, 2020 at 05:11:46PM -0300, 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-next: Fixes tag needs some work in the powerpc tree

2020-07-29 Thread Stephen Rothwell
Hi all, In commit 443359aebce0 ("powerpc/perf: Fix MMCRA_BHRB_DISABLE define for binutils < 2.28") Fixes tag Fixes: 9908c826d5ed ("Add Power10 PMU feature to DT CPU features") has these problem(s): - Subject does not match target commit subject Just use git log -1

Re: [Linux-kernel-mentees] [PATCH] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

2020-07-29 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 29, 2020 at 4:11 AM Christian König wrote: > > Am 28.07.20 um 21:29 schrieb Peilin Ye: > > Compiler leaves a 4-byte hole near the end of `dev_info`, causing > > amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace > > when `size` is

[PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-29 Thread Sami Tolvanen
Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement sequences") breaks LLVM's integrated assembler, because due to its one-pass design, it cannot compute instruction sequence lengths before the layout for the subsection has been finalized. This change fixes the build by

Re: [PATCH] drm/vkms: add missing drm_crtc_vblank_put to the get/put pair on flush

2020-07-29 Thread Daniel Vetter
On Wed, Jul 29, 2020 at 9:09 PM Melissa Wen wrote: > > Melissa Wen > > On Sat, Jul 25, 2020 at 3:12 PM Daniel Vetter wrote: > > > > On Sat, Jul 25, 2020 at 7:45 PM Melissa Wen wrote: > > > > > > On 07/25, Daniel Vetter wrote: > > > > On Sat, Jul 25, 2020 at 5:12 AM Sidong Yang wrote: > > > > >

Re: [PATCH 1/1] netfilter: nat: add range checks for access to nf_nat_l[34]protos[]

2020-07-29 Thread Pablo Neira Ayuso
Hi Will, On Mon, Jul 27, 2020 at 05:57:20PM +, Will McVicker wrote: > The indexes to the nf_nat_l[34]protos arrays come from userspace. So we > need to make sure that before indexing the arrays, we verify the index > is within the array bounds in order to prevent an OOB memory access. > Here

Re: [git pull] drm fixes for 5.8-rc8

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 14:44:16 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-29 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c2f3850df7f95537e79c561f7be49df2e4ad8060 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] include: Replace HTTP links with HTTPS ones

2020-07-29 Thread Andrew Morton
On Wed, 29 Jul 2020 14:21:12 -0700 Kees Cook wrote: > On Sun, Jul 26, 2020 at 01:01:17PM +0200, Alexander A. Klimov wrote: > > Rationale: > > Reduces attack surface on kernel devs opening the links for MITM > > as HTTPS traffic is much harder to manipulate. > > > > Signed-off-by: Alexander A.

Re: [GIT PULL] Audit fixes for v5.8 (#1)

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 10:54:14 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git > tags/audit-pr-20200729 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d3590ebf6f91350192737dd1d1b219c05277f067 Thank you! -- Dee

Re: [GIT PULL] 9p update for 5.8

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 08:33:06 +0200: > https://github.com/martinetd/linux tags/9p-for-5.8-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/21391520cbb597823050ac1bc343a0df3222ac90 Thank you! -- Deet-doot-dot, I am a bot.

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

2020-07-29 Thread Andrew Morton
On Wed, 29 Jul 2020 13:04:21 -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 v2 1/5] perf record: Set PERF_RECORD_PERIOD if attr->freq is set.

2020-07-29 Thread Ian Rogers
On Wed, Jul 29, 2020 at 11:52 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, Jul 28, 2020 at 01:57:30AM -0700, Ian Rogers escreveu: > > From: David Sharp > > > > evsel__config() would only set PERF_RECORD_PERIOD if it set attr->freq > > There is no such thing as 'PERF_RECORD_PERIOD', its

[PATCH 3/3] MAINTAINERS: bcm-vk: add maintainer for Broadcom VK Driver

2020-07-29 Thread Scott Branden
Add maintainer entry for new Broadcom VK Driver Signed-off-by: Scott Branden --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0569cf304ca..10e4e286baeb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3658,6 +3658,13 @@ L:

[PATCH 2/3] misc: bcm-vk: add Broadcom VK driver

2020-07-29 Thread Scott Branden
Add Broadcom VK driver offload engine. This driver interfaces to the VK PCIe offload engine to perform should offload functions as video transcoding on multiple streams in parallel. VK device is booted from files loaded using request_firmware_into_buf mechanism. After booted card status is

[PATCH 0/3] Add Broadcom VK driver

2020-07-29 Thread Scott Branden
This patch series drops previous patches in [1] that were incorporated by Kees Cook into patch series "Introduce partial kernel_read_file() support" [2]. Remaining patches are contained in this series to add Broadcom VK driver. (which depends on request_firmware_into_buf API addition in other

[PATCH 1/3] bcm-vk: add bcm_vk UAPI

2020-07-29 Thread Scott Branden
Add user space api for bcm-vk driver. Signed-off-by: Scott Branden --- include/uapi/linux/misc/bcm_vk.h | 99 1 file changed, 99 insertions(+) create mode 100644 include/uapi/linux/misc/bcm_vk.h diff --git a/include/uapi/linux/misc/bcm_vk.h

Re: [PATCH] MAINTAINERS: edac: socfpga: transfer SoCFPGA EDAC maintainership

2020-07-29 Thread Thor Thayer
On 7/29/20 12:45 PM, Dinh Nguyen wrote: Thor Thayer is leaving Intel and will no longer be able to maintain the EDAC for SoCFPGA, thus transfer maintainership to Dinh Nguyen. Signed-off-by: Dinh Nguyen --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] ext4: check superblock mapped prior to get write access

2020-07-29 Thread Jan Kara
Hello! On Tue 28-07-20 10:33:53, Xianting Tian wrote: > One crash issue happened when directly down the network interface, > which nbd device is connected to. The kernel version is kernel > 4.14.0-115. > According to the debug log and call trace, the buffer of ext4 > superblock already unmapped

[PATCH 4/9] drm/nouveau/kms/fbcon: Fix pm_runtime calls in nouveau_fbcon_output_poll_changed()

2020-07-29 Thread Lyude Paul
Noticed two problems here: * We're not dropping our runtime PM refs after getting an error * We're not backing off when pm_runtime_get() indicates that there's already a resume in progress (-EINPROGRESS) (after which any delayed fbcon events will get handled anyway) So, let's fix those.

[PATCH 3/9] drm/nouveau/kms/fbcon: Correct pm_runtime calls in nouveau_fbcon_release()

2020-07-29 Thread Lyude Paul
We want to update the last busy timer for our device and use pm_runtime_put_autosuspend() here instead so that our GPU can autosuspend when we're done. Signed-off-by: Lyude Paul Fixes: f231976c2e89 ("drm/nouveau/fbcon: take runpm reference when userspace has an open fd") Cc: Ben Skeggs Cc:

[PATCH 6/9] drm/nouveau/kms: Use pm_runtime_put_autosuspend() in hpd_work

2020-07-29 Thread Lyude Paul
Again, we don't have any need to suspend the device synchronously here, and doing so could in theory lead to a deadlock (although it's unlikely since we've called pm_runtime_mark_last_busy() before-hand). Signed-off-by: Lyude Paul --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file

[PATCH 9/9] drm/nouveau/kms: Handle -EINPROGRESS in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
This isn't an error, this just means there's multiple asynchronous resume requests going at the same time. Treat it like a success. Signed-off-by: Lyude Paul Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Karol Herbst

[PATCH 8/9] drm/nouveau/kms: Fix runtime PM leak in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
Signed-off-by: Lyude Paul Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Ben Skeggs Cc: dri-de...@lists.freedesktop.org Cc: nouv...@lists.freedesktop.org Cc: # v4.19+ --- drivers/gpu/drm/nouveau/nouveau_display.c | 2

[PATCH 7/9] drm/nouveau/kms: Invert conditionals in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
No functional changes here, just a drive-by cleanup. Signed-off-by: Lyude Paul [cc'd to stable since the next fix needs this patch to apply] Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Ben Skeggs Cc:

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