[tip: core/rcu] drm/i915: Cleanup PREEMPT_COUNT leftovers

2020-10-09 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 5d35c1c982ffaaccd1ec974e96e7a5244bbadaa1 Gitweb: https://git.kernel.org/tip/5d35c1c982ffaaccd1ec974e96e7a5244bbadaa1 Author:Thomas Gleixner AuthorDate:Mon, 14 Sep 2020 19:35:03 +02:00

[tip: core/rcu] preempt: Remove PREEMPT_COUNT from Kconfig

2020-10-09 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the core/rcu branch of tip: Commit-ID: b705984b529003265404866b9c9edf6d24d46aa1 Gitweb: https://git.kernel.org/tip/b705984b529003265404866b9c9edf6d24d46aa1 Author:Thomas Gleixner AuthorDate:Mon, 14 Sep 2020 19:40:22 +02:00

[tip: core/rcu] uaccess: Cleanup PREEMPT_COUNT leftovers

2020-10-09 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 53eed709fcb488787aca3f94796d82775c8e9669 Gitweb: https://git.kernel.org/tip/53eed709fcb488787aca3f94796d82775c8e9669 Author:Thomas Gleixner AuthorDate:Mon, 14 Sep 2020 19:29:06 +02:00

[tip: core/rcu] kvfree_rcu(): Fix ifnullfree.cocci warnings

2020-10-09 Thread tip-bot2 for kernel test robot
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 849b9c5446ccb0c98c7b11c69f169d22777ab31b Gitweb: https://git.kernel.org/tip/849b9c5446ccb0c98c7b11c69f169d22777ab31b Author:kernel test robot AuthorDate:Sun, 27 Sep 2020 15:00:29 +02:00

[PATCH] ARM: dts: Add empty "chosen" node to WM8xxx device trees

2020-10-09 Thread Brigham Campbell
The following patch is a bug fix for an issue introduced by commit abe60a3a7afb4058278864aa18c5faf62094c11a which removed the deprecated device tree skeletons. For the devices corresponding to these device trees, an updated version of U-Boot is not available. Therefore, we must append DTBs to the

Re: [PATCH v2 06/17] media: videobuf2: Move frame_vector into media subsystem

2020-10-09 Thread Daniel Vetter
On Fri, Oct 09, 2020 at 12:14:17PM +0200, Mauro Carvalho Chehab wrote: > Em Fri, 9 Oct 2020 09:59:23 +0200 > Daniel Vetter escreveu: > > > It's the only user. This also garbage collects the CONFIG_FRAME_VECTOR > > symbol from all over the tree (well just one place, somehow omap media > > driver

Re: [PATCH 1/2] arm64: dts: qcom: sc7180: Add gpu cooling support

2020-10-09 Thread Matthias Kaehlcke
On Fri, Oct 09, 2020 at 08:05:10AM -0700, Doug Anderson wrote: > Hi, > > On Thu, Oct 8, 2020 at 10:10 AM Akhil P Oommen wrote: > > > > Add cooling-cells property and the cooling maps for the gpu tzones > > to support GPU cooling. > > > > Signed-off-by: Akhil P Oommen > > --- > >

Re: [GIT PULL tip/core/rcu+preempt] Fix RT raw/non-raw lock ordering

2020-10-09 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello! > > This pull request contains Thomas Gleixner's "Make preempt count > unconditional" series [1], but with the addition of a kvfree_rcu() bug-fix > commit making use of this PREEMPT_COUNT addition. This series reduces > the size of the kernel by almost 100

Re: [PATCH] mm: make device private reference counts zero based

2020-10-09 Thread Ira Weiny
On Thu, Oct 08, 2020 at 10:25:44AM -0700, Ralph Campbell wrote: > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >

Re: Question regarding ext4_journalled_aops: lack of migrate_page

2020-10-09 Thread Chris Goldsworthy
tOn 2020-10-08 23:42, Chris Goldsworthy wrote: Hi there, ext4_aops and ext4_da_aops both have a migratepage callback, whereas ext4_journalled_aops lacks such a callback. Why is this so? I’m asking this due to the following: when a page containing EXT4 journal buffer heads ends up being

Re: [PATCH v1 09/10] bus: mhi: core: Move to an error state on mission mode failure

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:34PM -0700, Bhaumik Bhatt wrote: > If the host receives a mission mode event and by the time it can get > to processing it, the register accesses fail implying a connectivity > error, MHI should move to an error state. This helps avoid longer wait > times from a

Re: [PATCH v1 08/10] bus: mhi: core: Move to an error state on any firmware load failure

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:33PM -0700, Bhaumik Bhatt wrote: > Move MHI to a firmware download error state for a failure to find > the firmware files or to load SBL or EBL image using BHI/BHIe. This > helps detect an error state sooner and shortens the wait for a > synchronous power up timeout.

Re: [PATCH v3 2/2] mailbox: Add Broadcom STB mailbox driver

2020-10-09 Thread Sudeep Holla
On Sat, Sep 19, 2020 at 03:22:30PM -0400, Jim Quinlan wrote: > only implements the agent-to-platform channel; In that case any reason why you can't reuse the existing smc transport for SCMI. It was added recently in case you haven't checked the latest kernel version(v5.8 or above). Check out for

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2020 at 06:23:52PM +0200, Peter Zijlstra wrote: > On Fri, Oct 09, 2020 at 06:58:37AM -0700, Paul E. McKenney wrote: > > On Fri, Oct 09, 2020 at 09:41:24AM -0400, Qian Cai wrote: > > > On Fri, 2020-10-09 at 07:58 +, tip-bot2 for Peter Zijlstra wrote: > > > > The following commit

Re: [PATCH] net: intel: ice: Use uintptr_t for casting data

2020-10-09 Thread Nguyen, Anthony L
On Fri, 2020-10-09 at 14:18 +0800, Pujin Shi wrote: > Fix up a compiler error on 64bit architectures where pointers. > > In file included from > drivers/net/ethernet/intel/ice/ice_flex_pipe.c:6:0: > drivers/net/ethernet/intel/ice/ice_flex_pipe.c: In function > 'ice_free_flow_profs': >

Re: [PATCH v1 07/10] bus: mhi: core: Move to SYS_ERROR regardless of RDDM capability

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:32PM -0700, Bhaumik Bhatt wrote: > In some cases, the entry of device to RDDM execution environment > can occur after a significant amount of time has elapsed after the > SYS_ERROR state change event has arrived. This can result in scenarios > where users of the MHI

Re: [PATCH v5 00/29] Add support for Clang LTO

2020-10-09 Thread Sedat Dilek
On Fri, Oct 9, 2020 at 6:13 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > This patch series adds support for building x86_64 and arm64 kernels > with Clang's Link Time Optimization (LTO). > > In addition to performance, the primary motivation for LTO is > to allow Clang's Control-Flow

Re: [PATCH 1/5] firmware: arm_scmi: always initialize protocols

2020-10-09 Thread Cristian Marussi
Hi Etienne, On Fri, Oct 09, 2020 at 02:31:55PM +0200, Etienne Carriere wrote: > On Thu, 8 Oct 2020 at 21:17, Sudeep Holla wrote: > > > > On Thu, Oct 08, 2020 at 04:37:18PM +0200, Etienne Carriere wrote: > > > Remove the IDR replacement that prevent initializing an SCMI protocol > > > when it has

Greetings to you,

2020-10-09 Thread Christian Artwell
Attention; I am a CHRISTIAN ARTWELL working with BANQUE POPULAIRE S.A TOGO as their SECRETARIAT GENERAL FOREIGN REMITTANCE DEPT, an account officer to late Engineer George, May I inform you that an amount of $9.6 million also (150 kg of Gold) with our bank will be moved on your name as the

Re: [PATCH 6/6] drm/prime: document that use the page array is deprecated v2

2020-10-09 Thread Daniel Vetter
On Fri, Oct 9, 2020 at 6:24 PM Daniel Vetter wrote: > > On Fri, Oct 09, 2020 at 05:03:42PM +0200, Christian König wrote: > > We have reoccurring requests on this so better document that > > this approach doesn't work and dma_buf_mmap() needs to be used instead. > > > > v2: split it into two

[PATCH v7 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-09 Thread Nicolin Chen
In tegra_smmu_(de)attach_dev() functions, we poll DTB for each client's iommus property to get swgroup ID in order to prepare "as" and enable smmu. Actually tegra_smmu_configure() prepared an fwspec for each client, and added to the fwspec all swgroup IDs of client DT node in DTB. So this patch

[PATCH v7 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-09 Thread Nicolin Chen
The bus_set_iommu() in tegra_smmu_probe() enumerates all clients to call in tegra_smmu_probe_device() where each client searches its DT node for smmu pointer and swgroup ID, so as to configure an fwspec. But this requires a valid smmu pointer even before mc and smmu drivers are probed. So in

[PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-09 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v6->v7 * Renamed goto labels, suggested by Thierry. v5->v6 * Added Dmitry's Reviewed-by and Tested-by. v4->v5 * Added Dmitry's Reviewed-by

[PATCH v7 0/3] iommu/tegra-smmu: Add PCI support

2020-10-09 Thread Nicolin Chen
This series is to add PCI support in tegra-smmu driver. Changelog (Detail in each patch) v6->v7 * Added comments for put_device in PATCH-2 * Renamed goto labels in PATCH-3 * Kept Dmitry's Reviewed-by and Tested-by as no function change v5->v6 * Dropped a NULL check, per Dmitry's comments *

[PATCH] mm/hugetable.c: align some prints

2020-10-09 Thread Hui Su
in old code, it shows like: Node 0 ShmemHugePages:0 kB Node 0 ShmemPmdMapped:0 kB Node 0 FileHugePages:0 kB Node 0 FilePmdMapped:0 kB Node 0 HugePages_Total: 0 Node 0 HugePages_Free: 0 Node 0 HugePages_Surp: 0 which is not align. So we align it.

Re: [PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-09 Thread Anant Thazhemadam
On 09/10/20 9:46 pm, Anant Thazhemadam wrote: > While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if > wMaxPacketSize = 0 for the endpoints found. > > Some devices have isochronous endpoints that have wMaxPacketSize = 0 > (as required by the USB-2 spec). > However, since this

Re: [PATCH 6/6] drm/prime: document that use the page array is deprecated v2

2020-10-09 Thread Daniel Vetter
On Fri, Oct 09, 2020 at 05:03:42PM +0200, Christian König wrote: > We have reoccurring requests on this so better document that > this approach doesn't work and dma_buf_mmap() needs to be used instead. > > v2: split it into two functions > > Signed-off-by: Christian König Patches 3-5:

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2020 at 06:58:37AM -0700, Paul E. McKenney wrote: > On Fri, Oct 09, 2020 at 09:41:24AM -0400, Qian Cai wrote: > > On Fri, 2020-10-09 at 07:58 +, tip-bot2 for Peter Zijlstra wrote: > > > The following commit has been merged into the locking/core branch of tip: > > > > > >

Re: [PATCH 1/4] of/fdt: Update zone_dma_bits when running in bcm2711

2020-10-09 Thread Ard Biesheuvel
On Fri, 9 Oct 2020 at 17:24, Lorenzo Pieralisi wrote: > > On Fri, Oct 09, 2020 at 11:13:59AM +0200, Ard Biesheuvel wrote: > > On Fri, 9 Oct 2020 at 10:36, Nicolas Saenz Julienne > > wrote: > > > > > > On Fri, 2020-10-09 at 09:37 +0200, Ard Biesheuvel wrote: > > > > On Fri, 9 Oct 2020 at 09:11,

[PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-09 Thread Anant Thazhemadam
While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if wMaxPacketSize = 0 for the endpoints found. Some devices have isochronous endpoints that have wMaxPacketSize = 0 (as required by the USB-2 spec). However, since this doesn't apply here, wMaxPacketSize = 0 can be considered to

Re: [PATCH v1 06/10] bus: mhi: core: Improve shutdown handling after link down detection

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:31PM -0700, Bhaumik Bhatt wrote: > If MHI were to attempt a device shutdown following an assumption MHI host? And is this really an assumption or it is definite that the link is inaccessible. Please clarify! > that the device is inaccessible, the host currently

Re: sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout() warn: signedness bug returning '(-22)'

2020-10-09 Thread Luc Van Oostenryck
On Fri, Oct 09, 2020 at 03:00:43PM +0300, kernel test robot wrote: > Hi Luc, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: c85fb28b6f999db9928b841f63f1beeb3074eeca > commit:

[PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-09 Thread Anant Thazhemadam
While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if wMaxPacketSize = 0 for the endpoints found. Some devices have isochronous endpoints that have wMaxPacketSize = 0 (as required by the USB-2 spec). However, since this doesn't apply here, wMaxPacketSize = 0 can be considered to

Re: [PATCH v3 7/9] KVM: VMX: Add guest physical address check in EPT violation and misconfig

2020-10-09 Thread Jim Mattson
On Fri, Jul 10, 2020 at 8:48 AM Mohammed Gamal wrote: > > Check guest physical address against it's maximum physical memory. If > the guest's physical address exceeds the maximum (i.e. has reserved bits > set), inject a guest page fault with PFERR_RSVD_MASK set. > > This has to be done both in

[PATCH v5 23/29] KVM: arm64: disable LTO for the nVHE directory

2020-10-09 Thread Sami Tolvanen
We use objcopy to manipulate ELF binaries for the nVHE code, which fails with LTO as the compiler produces LLVM bitcode instead. Disable LTO for this code to allow objcopy to be used. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/kvm/hyp/nvhe/Makefile | 4 ++-- 1 file

[PATCH v5 29/29] x86, build: allow LTO_CLANG and THINLTO to be selected

2020-10-09 Thread Sami Tolvanen
Pass code model and stack alignment to the linker as these are not stored in LLVM bitcode, and allow both CONFIG_LTO_CLANG and CONFIG_THINLTO to be selected. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/x86/Kconfig | 2 ++ arch/x86/Makefile | 5 + 2 files changed, 7

[PATCH v5 09/29] kbuild: lto: fix module versioning

2020-10-09 Thread Sami Tolvanen
With CONFIG_MODVERSIONS, version information is linked into each compilation unit that exports symbols. With LTO, we cannot use this method as all C code is compiled into LLVM bitcode instead. This change collects symbol versions into .symversions files and merges them in link-vmlinux.sh where

[PATCH v5 25/29] arm64: allow LTO_CLANG and THINLTO to be selected

2020-10-09 Thread Sami Tolvanen
Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index ad522b021f35..7016d193864f 100644 --- a/arch/arm64/Kconfig +++

[PATCH v5 26/29] x86/asm: annotate indirect jumps

2020-10-09 Thread Sami Tolvanen
Running objtool --vmlinux --duplicate on vmlinux.o produces a few warnings about indirect jumps with retpoline: vmlinux.o: warning: objtool: wakeup_long64()+0x61: indirect jump found in RETPOLINE build ... This change adds ANNOTATE_RETPOLINE_SAFE annotations to the jumps in assembly code

[PATCH v5 22/29] arm64: vdso: disable LTO

2020-10-09 Thread Sami Tolvanen
Disable LTO for the vDSO by filtering out CC_FLAGS_LTO, as there's no point in using link-time optimization for the small about of C code. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/kernel/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v5 18/29] modpost: lto: strip .lto from module names

2020-10-09 Thread Sami Tolvanen
With LTO, everything is compiled into LLVM bitcode, so we have to link each module into native code before modpost. Kbuild uses the .lto.o suffix for these files, which also ends up in module information. This change strips the unnecessary .lto suffix from the module name. Suggested-by: Bill

[PATCH v5 04/29] tracing: move function tracer options to Kconfig

2020-10-09 Thread Sami Tolvanen
Move function tracer options to Kconfig to make it easier to add new methods for generating __mcount_loc, and to make the options available also when building kernel modules. Note that FTRACE_MCOUNT_USE_* options are updated on rebuild and therefore, work even if the .config was generated in a

[PATCH v5 10/29] objtool: Split noinstr validation from --vmlinux

2020-10-09 Thread Sami Tolvanen
This change adds a --noinstr flag to objtool to allow us to specify that we're processing vmlinux.o without also enabling noinstr validation. This is needed to avoid false positives with LTO when we run objtool on vmlinux.o without CONFIG_DEBUG_ENTRY. Signed-off-by: Sami Tolvanen ---

[PATCH v5 08/29] kbuild: add support for Clang LTO

2020-10-09 Thread Sami Tolvanen
This change adds build system support for Clang's Link Time Optimization (LTO). With -flto, instead of ELF object files, Clang produces LLVM bitcode, which is compiled into native code at link time, allowing the final binary to be optimized globally. For more details, see:

[PATCH v5 24/29] arm64: disable recordmcount with DYNAMIC_FTRACE_WITH_REGS

2020-10-09 Thread Sami Tolvanen
DYNAMIC_FTRACE_WITH_REGS uses -fpatchable-function-entry, which makes running recordmcount unnecessary as there are no mcount calls in object files, and __mcount_loc doesn't need to be generated. While there's normally no harm in running recordmcount even when it's not strictly needed, this won't

[PATCH v5 17/29] PCI: Fix PREL32 relocations for LTO

2020-10-09 Thread Sami Tolvanen
With Clang's Link Time Optimization (LTO), the compiler can rename static functions to avoid global naming collisions. As PCI fixup functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub to DECLARE_PCI_FIXUP_SECTION to fix the issue

[PATCH v5 13/29] kbuild: lto: merge module sections

2020-10-09 Thread Sami Tolvanen
LLD always splits sections with LTO, which increases module sizes. This change adds linker script rules to merge the split sections in the final module. Suggested-by: Nick Desaulniers Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/module.lds.S | 28

[PATCH] checkpatch: Check for .byte-spelled insn opcodes documentation on x86

2020-10-09 Thread Borislav Petkov
From: Borislav Petkov Instruction opcode bytes spelled using the gas directive .byte should carry a comment above them stating which binutils version has added support for the instruction mnemonic so that they can be replaced with the mnemonic when that binutils version is equal or less than the

[PATCH v5 28/29] x86, cpu: disable LTO for cpu.c

2020-10-09 Thread Sami Tolvanen
Clang incorrectly inlines functions with differing stack protector attributes, which breaks __restore_processor_state() that relies on stack protector being disabled. This change disables LTO for cpu.c to work aroung the bug. Link: https://bugs.llvm.org/show_bug.cgi?id=47479 Suggested-by: Nick

[PATCH v5 14/29] kbuild: lto: remove duplicate dependencies from .mod files

2020-10-09 Thread Sami Tolvanen
With LTO, llvm-nm prints out symbols for each archive member separately, which results in a lot of duplicate dependencies in the .mod file when CONFIG_TRIM_UNUSED_SYMS is enabled. When a module consists of several compilation units, the output can exceed the default xargs command size limit and

[PATCH v5 19/29] scripts/mod: disable LTO for empty.c

2020-10-09 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+)

[PATCH v5 20/29] efi/libstub: disable LTO

2020-10-09 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- drivers/firmware/efi/libstub/Makefile | 2 ++ 1

[PATCH v5 16/29] init: lto: fix PREL32 relocations

2020-10-09 Thread Sami Tolvanen
With LTO, the compiler can rename static functions to avoid global naming collisions. As initcall functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub with a stable name for each initcall to fix the issue when PREL32 relocations

[PATCH v5 15/29] init: lto: ensure initcall ordering

2020-10-09 Thread Sami Tolvanen
With LTO, the compiler doesn't necessarily obey the link order for initcalls, and initcall variables need globally unique names to avoid collisions at link time. This change exports __KBUILD_MODNAME and adds the initcall_id() macro, which uses it together with __COUNTER__ and __LINE__ to help

[PATCH v5 27/29] x86, vdso: disable LTO only for vDSO

2020-10-09 Thread Sami Tolvanen
Disable LTO for the vDSO. Note that while we could use Clang's LTO for the 64-bit vDSO, it won't add noticeable benefit for the small amount of C code. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/x86/entry/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v5 21/29] drivers/misc/lkdtm: disable LTO for rodata.o

2020-10-09 Thread Sami Tolvanen
Disable LTO for rodata.o to allow objcopy to be used to manipulate sections. Signed-off-by: Sami Tolvanen Acked-by: Kees Cook --- drivers/misc/lkdtm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/lkdtm/Makefile b/drivers/misc/lkdtm/Makefile index

[PATCH v5 00/29] Add support for Clang LTO

2020-10-09 Thread Sami Tolvanen
This patch series adds support for building x86_64 and arm64 kernels with Clang's Link Time Optimization (LTO). In addition to performance, the primary motivation for LTO is to allow Clang's Control-Flow Integrity (CFI) to be used in the kernel. Google has shipped millions of Pixel devices

[PATCH v5 05/29] tracing: add support for objtool mcount

2020-10-09 Thread Sami Tolvanen
This change adds build support for using objtool to generate __mcount_loc sections. Signed-off-by: Sami Tolvanen --- Makefile | 12 ++-- kernel/trace/Kconfig | 13 + 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

[PATCH v5 03/29] objtool: Don't autodetect vmlinux.o

2020-10-09 Thread Sami Tolvanen
With LTO, we run objtool on vmlinux.o, but don't want noinstr validation. This change requires --vmlinux to be passed to objtool explicitly. Suggested-by: Peter Zijlstra Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/link-vmlinux.sh | 2 +- tools/objtool/builtin-check.c

[PATCH v5 07/29] treewide: remove DISABLE_LTO

2020-10-09 Thread Sami Tolvanen
This change removes all instances of DISABLE_LTO from Makefiles, as they are currently unused, and the preferred method of disabling LTO is to filter out the flags instead. Suggested-by: Kees Cook Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/kernel/vdso/Makefile | 1 -

[PATCH v5 06/29] x86, build: use objtool mcount

2020-10-09 Thread Sami Tolvanen
Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcount_loc sections for dynamic ftrace with Clang and gcc <5 (later versions of gcc use -mrecord-mcount). Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/x86/Kconfig | 1 + 1 file changed, 1

[PATCH v5 02/29] objtool: Add a pass for generating __mcount_loc

2020-10-09 Thread Sami Tolvanen
From: Peter Zijlstra Add the --mcount option for generating __mcount_loc sections needed for dynamic ftrace. Using this pass requires the kernel to be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined in Makefile. Link:

[PATCH v5 11/29] kbuild: lto: postpone objtool

2020-10-09 Thread Sami Tolvanen
With LTO, LLVM bitcode won't be compiled into native code until modpost_link, or modfinal for modules. This change postpones calls to objtool until after these steps, and moves objtool_args to Makefile.lib, so the arguments can be reused in Makefile.modfinal. As we didn't have objects to process

[PATCH v5 12/29] kbuild: lto: limit inlining

2020-10-09 Thread Sami Tolvanen
This change limits function inlining across translation unit boundaries in order to reduce the binary size with LTO. The -import-instr-limit flag defines a size limit, as the number of LLVM IR instructions, for importing functions from other TUs, defaulting to 100. Based on testing with arm64

[PATCH v5 01/29] kbuild: preprocess module linker script

2020-10-09 Thread Sami Tolvanen
From: Masahiro Yamada There was a request to preprocess the module linker script like we do for the vmlinux one. (https://lkml.org/lkml/2020/8/21/512) The difference between vmlinux.lds and module.lds is that the latter is needed for external module builds, thus must be cleaned up by 'make

Re: [PATCH 0/6] KVM: x86: KVM_SET_SREGS.CR4 bug fixes and cleanup

2020-10-09 Thread Sean Christopherson
On Fri, Oct 09, 2020 at 06:48:21PM +0300, stsp wrote: > 09.10.2020 18:30, Sean Christopherson пишет: > >On Fri, Oct 09, 2020 at 05:11:51PM +0300, stsp wrote: > >>09.10.2020 07:04, Sean Christopherson пишет: > Hmm. But at least it was lying > similarly on AMD and Intel CPUs. :) > So I

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2020 at 11:30:38AM -0400, Qian Cai wrote: > On Fri, 2020-10-09 at 06:58 -0700, Paul E. McKenney wrote: > > On Fri, Oct 09, 2020 at 09:41:24AM -0400, Qian Cai wrote: > > > On Fri, 2020-10-09 at 07:58 +, tip-bot2 for Peter Zijlstra wrote: > > > > The following commit has been

Re: [PATCH v1 1/2] ASoC: qcom: dt-bindings: Modify sc7180 machine bindings

2020-10-09 Thread Ajye Huang
On Fri, Oct 9, 2020 at 9:52 PM Mark Brown wrote: > > On Mon, Sep 28, 2020 at 02:37:43PM +0800, Ajye Huang wrote: > > Add compatible "qcom,sc7180-sndcard-rt5682-m98357-2mic" > > for 2mic case. > > This doesn't apply against current code, please check and resend. Hi, Mark Thank you for your

Re: [Regression] "tpm: Require that all digests are present in TCG_PCR_EVENT2 structures" causes null pointer dereference

2020-10-09 Thread Jarkko Sakkinen
On Thu, Oct 08, 2020 at 05:09:06PM +0800, Kai-Heng Feng wrote: > > I do not have yet any reasonable answer to this and my v5.10 PR is > > running late. Does everyone agree that I should revert the patch? > > Given that there are multiple users confirmed reverting the commit > helps, can you

Re: [PATCH] net: stmmac: Don't call _irqoff() with hardirqs enabled

2020-10-09 Thread Heiner Kallweit
On 09.10.2020 17:58, Jakub Kicinski wrote: > On Fri, 9 Oct 2020 16:54:06 +0200 Heiner Kallweit wrote: >> I'm thinking about a __napi_schedule version that disables hard irq's >> conditionally, based on variable force_irqthreads, exported by the irq >> subsystem. This would allow to behave

Re: [PATCH] usb: typec: tcpm: Fix if vbus before cc, hard_reset_count not reset issue

2020-10-09 Thread ChiYuan Huang
Jun Li 於 2020年10月9日 週五 下午2:12寫道: > > > > > -Original Message- > > From: ChiYuan Huang > > Sent: Wednesday, October 7, 2020 6:13 PM > > To: Jun Li > > Cc: Guenter Roeck ; Greg KH > > ; Heikki Krogerus > > ; Linux USB List > > ; lkml ; > > cy_huang ; Jun Li > > Subject: Re: [PATCH] usb:

Re: [PATCH v1 04/10] bus: mhi: core: Use the IRQF_ONESHOT flag for the BHI interrupt line

2020-10-09 Thread Jeffrey Hugo
On 10/9/2020 9:57 AM, Manivannan Sadhasivam wrote: On Fri, Sep 18, 2020 at 07:02:29PM -0700, Bhaumik Bhatt wrote: Remove the IRQF_SHARED flag as it is not needed for the BHI interrupt and replace it with IRQF_ONESHOT so that host can be sure that the next BHI hard interrupt is triggered only

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Thomas Gleixner
On Fri, Oct 09 2020 at 11:52, Jason Gunthorpe wrote: > On Fri, Oct 09, 2020 at 04:44:27PM +0200, Thomas Gleixner wrote: >> > This is really not that different from what I was describing for queue >> > contexts - the queue context needs to be assigned to the irq # before >> > it can be used in the

Re: [PATCH v1 05/10] bus: mhi: core: Disable IRQs when powering down

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:30PM -0700, Bhaumik Bhatt wrote: > While powering down, the device may or may not acknowledge the MHI > RESET issued by host for graceful shutdown scenario which can lead > to a rogue device sending an interrupt after the clean-up has been > done. This can result in a

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-09 Thread Nicolin Chen
On Fri, Oct 09, 2020 at 02:25:56PM +0200, Thierry Reding wrote: > On Thu, Oct 08, 2020 at 02:12:10PM -0700, Nicolin Chen wrote: > > On Thu, Oct 08, 2020 at 11:53:43AM +0200, Thierry Reding wrote: > > > On Mon, Oct 05, 2020 at 06:05:46PM -0700, Nicolin Chen wrote: > > > > On Mon, Oct 05, 2020 at

Re: [PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-09 Thread Nicolin Chen
On Fri, Oct 09, 2020 at 02:21:10PM +0200, Thierry Reding wrote: > On Wed, Oct 07, 2020 at 05:37:45PM -0700, Nicolin Chen wrote: > > According to Tegra X1 TRM, there are missing swgroups in the > > tegra210_swgroups list. So this patch adds them in bindings. > > > > Note that the TEGRA_SWGROUP_GPU

Re: [PATCH 3/5] firmware: arm_scmi: add config dependency for smc transport

2020-10-09 Thread Sudeep Holla
On Fri, Oct 09, 2020 at 02:33:41PM +0200, Etienne Carriere wrote: > On Thu, 8 Oct 2020 at 23:08, Sudeep Holla wrote: > > > > On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote: > > > Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that > > > is not exclusively dependent

[ANNOUNCE] Git v2.29.0-rc1

2020-10-09 Thread Junio C Hamano
A release candidate Git v2.29.0-rc1 is now available for testing at the usual places. It is comprised of 605 non-merge commits since v2.28.0, contributed by 77 people, 22 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following

Re: [PATCH] net: stmmac: Don't call _irqoff() with hardirqs enabled

2020-10-09 Thread Jakub Kicinski
On Fri, 9 Oct 2020 16:54:06 +0200 Heiner Kallweit wrote: > I'm thinking about a __napi_schedule version that disables hard irq's > conditionally, based on variable force_irqthreads, exported by the irq > subsystem. This would allow to behave correctly with threadirqs set, > whilst not loosing the

Re: [PATCH v1 04/10] bus: mhi: core: Use the IRQF_ONESHOT flag for the BHI interrupt line

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:29PM -0700, Bhaumik Bhatt wrote: > Remove the IRQF_SHARED flag as it is not needed for the BHI interrupt > and replace it with IRQF_ONESHOT so that host can be sure that the > next BHI hard interrupt is triggered only when the threaded interrupt > handler has

[PATCH v3 08/11] drivers/base/test/test_async_driver_probe: convert to use counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 09/11] drivers/char/ipmi: convert stats to use counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 03/11] drivers/base: convert deferred_trigger_count and probe_count to counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 02/11] selftests:lib:test_counters: add new test for counters

2020-10-09 Thread Shuah Khan
Add a new selftest for testing counter_atomic* Counters API. This test load test_counters test modules and unloads. The test module runs tests and prints results in dmesg. There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting and not for managing

[PATCH v3 11/11] drivers/edac: convert pci counters to counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 10/11] drivers/misc/vmw_vmci: convert num guest devices counter to counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-09 Thread Shuah Khan
Introduce Simple atomic counters. There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting and not for managing object lifetime. In some cases, atomic_t might not even be needed. The purpose of these counters is to clearly differentiate atomic_t

[PATCH v3 05/11] drivers/acpi: convert seqno counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 04/11] drivers/base/devcoredump: convert devcd_count to counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 07/11] drivers/android/binder: convert stats, transaction_log to counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 06/11] drivers/acpi/apei: convert seqno counter_atomic32

2020-10-09 Thread Shuah Khan
counter_atomic* is introduced to be used when a variable is used as a simple counter and doesn't guard object lifetimes. This clearly differentiates atomic_t usages that guard object lifetimes. counter_atomic* variables wrap around to INT_MIN when it overflows and should not be used to guard

[PATCH v3 00/11] Introduce Simple atomic counters

2020-10-09 Thread Shuah Khan
This patch series is a result of discussion at the refcount_t BOF the Linux Plumbers Conference. In this discussion, we identified a need for looking closely and investigating atomic_t usages in the kernel when it is used strictly as a counter without it controlling object lifetimes and state

Re: [PATCH v1 03/10] bus: mhi: core: Skip device wake in error or shutdown states

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:28PM -0700, Bhaumik Bhatt wrote: > MHI clients can request a device wake even if the device may be in an > error state or undergoing shutdown. To prevent unnecessary device wake > processing, check for the device state and bail out early so that the > clients are made

Re: [PATCH] drm/panfrost: increase readl_relaxed_poll_timeout values

2020-10-09 Thread Steven Price
On 08/10/2020 15:17, Christian Hewitt wrote: Amlogic SoC devices report the following errors frequently causing excessive dmesg log spam and early log rotataion, although the errors appear to be harmless as everything works fine: [7.202702] panfrost ffe4.gpu: error powering up gpu L2 [

Re: [PATCH 1/3] venus: vdec: Fix non reliable setting of LAST flag

2020-10-09 Thread Stanimir Varbanov
Hi Alex, Thanks for the comments! On 10/9/20 3:56 PM, Alexandre Courbot wrote: > On Tue, Sep 29, 2020 at 1:44 AM Stanimir Varbanov > wrote: >> >> In real use of dynamic-resolution-change it is observed that the >> LAST buffer flag (which marks the last decoded buffer with the >> resolution

Re: [PATCH v8 00/14] Add RCEC handling to PCI/AER

2020-10-09 Thread Bjorn Helgaas
On Fri, Oct 02, 2020 at 11:47:21AM -0700, Sean V Kelley wrote: > From: Sean V Kelley > > Changes since v7 [1]: > > - No functional changes. > > - Reword bridge patch. > - Noted testing below for #non-native/no RCEC case > (Jonathan Cameron) > > - Separate out pci_walk_bus() into

[PATCH v2] leds: lm3697: Rename struct into more appropriate name

2020-10-09 Thread Gabriel David
The mentioned struct, lm3697_led, was renamed to lm3697_bank since the structure is representing the control banks. This name, in my opinion, is more semantically correct. The pointers referring to it were also renamed. Signed-off-by: Gabriel David --- Yes, this is the same Gabriel David from

Re: [PATCH v1 02/10] bus: mhi: core: Move to using high priority workqueue

2020-10-09 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 07:02:27PM -0700, Bhaumik Bhatt wrote: > MHI work is currently scheduled on the global/system workqueue and can > encounter delays on a stressed system. To avoid those unforeseen > delays which can hamper bootup or shutdown times, use a dedicated high > priority workqueue

Re: [PATCH 0/6] KVM: x86: KVM_SET_SREGS.CR4 bug fixes and cleanup

2020-10-09 Thread stsp
09.10.2020 18:30, Sean Christopherson пишет: On Fri, Oct 09, 2020 at 05:11:51PM +0300, stsp wrote: 09.10.2020 07:04, Sean Christopherson пишет: Hmm. But at least it was lying similarly on AMD and Intel CPUs. :) So I was able to reproduce the problems myself. Do you mean, any AMD tests are now

Re: [PATCH v5 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-10-09 Thread Pali Rohár
On Friday 09 October 2020 15:31:10 Konstantin Komarov wrote: > From: Pali Rohár > Sent: Saturday, September 26, 2020 11:23 AM > > To: Konstantin Komarov > > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > > linux-kernel@vger.kernel.org; dste...@suse.cz; aap...@suse.com; > >

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