[PATCH v3 10/19] Documentation/barriers: Remove references to [smp_]read_barrier_depends()

2020-07-10 Thread Will Deacon
The [smp_]read_barrier_depends() barrier macros no longer exist as part of the Linux memory model, so remove all references to them from the Documentation/ directory. Although this is fairly mechanical on the whole, we drop the "CACHE COHERENCY" section entirely from 'memory-barriers.txt' as it do

[PATCH v3 18/19] arm64: alternatives: Remove READ_ONCE() usage during patch operation

2020-07-10 Thread Will Deacon
In preparation for patching the internals of READ_ONCE() itself, replace its usage on the alternatives patching patch with a volatile variable instead. Signed-off-by: Will Deacon --- arch/arm64/kernel/alternative.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/a

[PATCH v3 17/19] arm64: cpufeatures: Add capability for LDAPR instruction

2020-07-10 Thread Will Deacon
Armv8.3 introduced the LDAPR instruction, which provides weaker memory ordering semantics than LDARi (RCpc vs RCsc). Generally, we provide an RCsc implementation when implementing the Linux memory model, but LDAPR can be used as a useful alternative to dependency ordering, particularly when the com

[PATCH v3 11/19] Documentation/barriers/kokr: Remove references to [smp_]read_barrier_depends()

2020-07-10 Thread Will Deacon
From: SeongJae Park This commit translates commit ("Documentation/barriers: Remove references to [smp_]read_barrier_depends()") into Korean. Signed-off-by: SeongJae Park Reviewed-by: Yunjae Lee Signed-off-by: Will Deacon --- .../translations/ko_KR/memory-barriers.txt| 146 +--

[PATCH v3 12/19] tools/memory-model: Remove smp_read_barrier_depends() from informal doc

2020-07-10 Thread Will Deacon
smp_read_barrier_depends() has gone the way of mmiowb() and so many esoteric memory barriers before it. Drop the two mentions of this deceased barrier from the LKMM informal explanation document. Acked-by: Alan Stern Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- .../Documentation/e

[PATCH v3 19/19] arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y

2020-07-10 Thread Will Deacon
When building with LTO, there is an increased risk of the compiler converting an address dependency headed by a READ_ONCE() invocation into a control dependency and consequently allowing for harmful reordering by the CPU. Ensure that such transformations are harmless by overriding the generic READ

[PATCH v3 15/19] arm64: Reduce the number of header files pulled into vmlinux.lds.S

2020-07-10 Thread Will Deacon
Although vmlinux.lds.S smells like an assembly file and is compiled with __ASSEMBLY__ defined, it's actually just fed to the preprocessor to create our linker script. This means that any assembly macros defined by headers that it includes will result in a helpful link error: | aarch64-linux-gnu-ld

[PATCH v3 16/19] arm64: alternatives: Split up alternative.h

2020-07-10 Thread Will Deacon
asm/alternative.h contains both the macros needed to use alternatives, as well the type definitions and function prototypes for applying them. Split the header in two, so that alternatives can be used from core header files such as linux/compiler.h without the risk of circular includes Signed-off

[PATCH v3 13/19] include/linux: Remove smp_read_barrier_depends() from comments

2020-07-10 Thread Will Deacon
smp_read_barrier_depends() doesn't exist any more, so reword the two comments that mention it to refer to "dependency ordering" instead. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- include/linux/percpu-refcount.h | 2 +- include/linux/ptr_ring.h| 2 +- 2 files changed, 2 i

Re: [PATCH v3] KVM: x86: move MSR_IA32_PERF_CAPABILITIES emulation to common x86 code

2020-07-10 Thread Paolo Bonzini
On 10/07/20 17:25, Vitaly Kuznetsov wrote: > state_test/smm_test selftests are failing on AMD with: > "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" > > MSR_IA32_PERF_CAPABILITIES is an emulated MSR on Intel but it is not > known to AMD code, we can move the emulation to commo

[PATCH v3 05/19] asm/rwonce: Remove smp_read_barrier_depends() invocation

2020-07-10 Thread Will Deacon
Alpha overrides __READ_ONCE() directly, so there's no need to use smp_read_barrier_depends() in the core code. This also means that __READ_ONCE() can be relied upon to provide dependency ordering. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- include/asm-generic/rwonce.h | 19 --

[PATCH v3 07/19] vhost: Remove redundant use of read_barrier_depends() barrier

2020-07-10 Thread Will Deacon
Since commit 76ebbe78f739 ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()"), there is no need to use smp_read_barrier_depends() outside of the Alpha architecture code. Unfortunately, there is precisely _one_ user in the vhost code, and there isn't an obvious READ_ONCE()

[PATCH v3 08/19] alpha: Replace smp_read_barrier_depends() usage with smp_[r]mb()

2020-07-10 Thread Will Deacon
In preparation for removing smp_read_barrier_depends() altogether, move the Alpha code over to using smp_rmb() and smp_mb() directly. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- arch/alpha/include/asm/atomic.h | 16 arch/alpha/include/asm/pgtable.h | 10 +

[PATCH v3 14/19] checkpatch: Remove checks relating to [smp_]read_barrier_depends()

2020-07-10 Thread Will Deacon
The [smp_]read_barrier_depends() macros no longer exist, so we don't need to deal with them in the checkpatch script. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- scripts/checkpatch.pl | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/checkpatch.pl

Re: [GIT PULL] MMC fixes for v5.8-rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 09:52:34 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.8-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d45f47a46854b304ebda238b6121f95370b195ec Thank you! -- Deet-doot-dot, I am a b

Re: [GIT PULL] pin control fixes for the v5.8 series

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 17:40:37 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > tags/pinctrl-v5.8-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/25aadbd2a8ad05ed0477cb94c7659075f540d158 Thank you! -- Deet-d

Re: [GIT PULL] arm64 fixes for -rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 15:39:08 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f4c8824cbcc64524905f83388eb1139747829756 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] GPIO fixes for the v5.8 series

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 17:32:11 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git > tags/gpio-v5.8-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3f8834327ae7d8bfc34793cfce72663af35133d0 Thank you! -- Deet-doot-do

Re: [GIT PULL] Fix gfs2 readahead deadlocks

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 17:23:24 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git > tags/gfs2-v5.8-rc4.fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d02b0478c1acb00e9d9ee40810627eba5745d94b Thank you! -- Deet-d

Re: [GIT PULL] dma-mapping fixes for 5.8

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 17:45:06 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.8-5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1bfde037425d91d1d615d30ec362f5f5c1ca0dd2 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Second batch of KVM changes for Linux 5.8-rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 09:06:59 -0400: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cb24c61b53c3f47d4ba596fe37076202f7189676 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [GIT PULL] clean up kernel read/write helpers

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 18:00:58 +0200: > git://git.infradead.org/users/hch/misc.git tags/cleanup-kernel_read_write has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b1b11d0063aab28aaf65f63cff56470bc01dc290 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] more s390 updates for 5.8-rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 15:47:40 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.8-5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e8749d068855c2b075b3de1985e6af836a02b257 Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op()

2020-07-10 Thread Nick Desaulniers
On Fri, Jul 10, 2020 at 1:53 AM Peter Zijlstra wrote: > > On Fri, Jul 10, 2020 at 12:38:23AM -0400, Brian Gerst wrote: > > On Thu, Jul 9, 2020 at 6:30 AM Peter Zijlstra wrote: > > > > > > On Sat, May 30, 2020 at 06:11:19PM -0400, Brian Gerst wrote: > > > > + if (0) {

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

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 12:40:37PM -0400, Andrea Arcangeli wrote: > Hello Hugh and Mike, > > On Mon, Jul 06, 2020 at 10:07:34PM -0700, Hugh Dickins wrote: > > Adding Andrea to Cc, he's the one who structured it that way, > > and should be consulted. > > > > I'm ambivalent myself. Many's the time

[PATCH v6 1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings.

2020-07-10 Thread Zhou Yanjie
Add the OST bindings for the X1 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil --- Notes: v1->v2: No change. v2->v3: Fix wrong parameters in "clocks". v3->v4: 1.Rename "ingenic,ost.yaml" to "ingenic

[PATCH v6 0/2] Add support for the OST in Ingenic X1000.

2020-07-10 Thread Zhou Yanjie
v5->v6: 1.Drop "oneOf" and the blank line in "ingenic,sysost.yaml". 2.Add "additionalProperties: false" in "ingenic,sysost.yaml". 周琰杰 (Zhou Yanjie) (2): dt-bindings: timer: Add Ingenic X1000 OST bindings. clocksource: Ingenic: Add support for the Ingenic X1000 OST. .../devicetree/bindings/ti

[git pull] habanalabs fixes pull request for kernel 5.8-rc4/5

2020-07-10 Thread Oded Gabbay
Hello Greg, This pull request is for the next rc (rc4 or 5) and it contains: 1. Important bug fix for the GAUDI command parsing code. 2. Change in debugfs interface that is relevant only for GAUDI and therefore can still be changed in this release. 3. Workaround for a timeout problem in GOYA

[PATCH v6 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.

2020-07-10 Thread Zhou Yanjie
X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate OST, it no longer belongs to TCU. This driver will register both a clocksource and a sched_clock to the system. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (

Re: [PATCH v4 0/9] KVM: nSVM: fixes for CR3/MMU switch upon nested guest entry/exit

2020-07-10 Thread Paolo Bonzini
On 10/07/20 16:11, Vitaly Kuznetsov wrote: > Changes since v3: > - Swapped my "KVM: nSVM: stop dereferencing vcpu->arch.mmu to get the > context in kvm_init_shadow{,_npt}_mmu()" with Paolo's "KVM: MMU: stop > dereferencing vcpu->arch.mmu to get the context for MMU init". > - keeping nested_svm_in

Re: [RFC PATCH 4/7] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-07-10 Thread Andy Lutomirski
On Thu, Jul 9, 2020 at 6:57 PM Nicholas Piggin wrote: > > And get rid of the generic sync_core_before_usermode facility. > > This helper is the wrong way around I think. The idea that membarrier > state requires a core sync before returning to user is the easy one > that does not need hiding behin

Re: [GIT PULL] io_uring fixes for 5.8-rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 10:01:20 -0600: > git://git.kernel.dk/linux-block.git tags/io_uring-5.8-2020-07-10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a581387e415bbb0085e7e67906c8f4a99746590e Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [PATCH] habanalabs: remove unused hash

2020-07-10 Thread Oded Gabbay
On Wed, Jul 8, 2020 at 12:30 AM Omer Shpigelman wrote: > > Remove an old hash that is not in use anymore. > > Signed-off-by: Omer Shpigelman > --- > drivers/misc/habanalabs/habanalabs.h | 2 -- > drivers/misc/habanalabs/mmu.c| 1 - > 2 files changed, 3 deletions(-) > > diff --git a/drive

Re: [PATCH] drm/vkms: add wait_for_vblanks in atomic_commit_tail

2020-07-10 Thread Melissa Wen
On 07/02, Daniel Vetter wrote: > On Wed, Jul 01, 2020 at 03:31:34PM +, Sidong Yang wrote: > > there is an error when igt test is run continuously. > > vkms_atomic_commit_tail() > > need to call drm_atomic_helper_wait_for_vblanks() for give up ownership of > > vblank events. without this code,

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Paolo Bonzini
On 10/07/20 18:30, Jim Mattson wrote: >> >> This can be problem when having a mixed setup of machines with 5-level page >> tables and machines with 4-level page tables, as live migration can change >> MAXPHYADDR while the guest runs, which can theoretically introduce bugs. > > Huh? Changing MAXPHYA

Re: [PATCH v3 06/19] asm/rwonce: Don't pull into 'asm-generic/rwonce.h'

2020-07-10 Thread Nick Desaulniers
On Fri, Jul 10, 2020 at 9:52 AM Will Deacon wrote: > > Now that 'smp_read_barrier_depends()' has gone the way of the Norwegian > Blue, drop the inclusion of in 'asm-generic/rwonce.h'. > > This requires fixups to some architecture vdso headers which were > previously relying on 'asm/barrier.h' com

Re: [v1] drm/msm/dpu: add support for clk and bw scaling for display

2020-07-10 Thread Rob Clark
On Thu, Jun 18, 2020 at 7:09 AM Kalyan Thota wrote: > > This change adds support to scale src clk and bandwidth as > per composition requirements. > > Interconnect registration for bw has been moved to mdp > device node from mdss to facilitate the scaling. > > Changes in v1: > - Address armv7 com

Re: [RFC PATCH] irqchip/gic: Implement irq_chip->irq_retrigger()

2020-07-10 Thread Valentin Schneider
On 10/07/20 17:29, Marc Zyngier wrote: > On Fri, 10 Jul 2020 15:56:42 +0100, > Valentin Schneider wrote: [...] >> Implement irq_chip.irq_retrigger() for both GICs. > > Although I am very grateful for the whole documentation, I'd rather > have a slightly more condensed changelog that documents

Re: [PATCH v8 0/6] Add support for DisplayPort driver on SnapDragon

2020-07-10 Thread tanmay
Thanks for reviews Rob. On 2020-07-09 13:21, Rob Herring wrote: On Tue, Jun 30, 2020 at 11:45:01AM -0700, Tanmay Shah wrote: These patches add Display-Port driver on SnapDragon/msm hardware. This series also contains device-tree bindings for msm DP driver. It also contains Makefile and Kconfig

Re: [PATCH v8 00/12] Introduce CAP_PERFMON to secure system performance monitoring and observability

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 10, 2020 at 05:30:50PM +0300, Alexey Budankov escreveu: > On 10.07.2020 16:31, Ravi Bangoria wrote: > >> Currently access to perf_events, i915_perf and other performance > >> monitoring and observability subsystems of the kernel is open only for > >> a privileged process [1] with CAP_SY

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

2020-07-10 Thread Andrea Arcangeli
On Fri, Jul 10, 2020 at 05:57:46PM +0100, Matthew Wilcox wrote: > btw, using the hpage_ prefix already caused one problem in the hugetlb > code: > > https://lore.kernel.org/linux-mm/20200629185003.97202-1-mike.krav...@oracle.com/ > > I'd suggest we rename these to THP_PMD_* and THP_PUD_* to make

Re: [Linux-kernel-mentees] [PATCH v3] net/bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt()

2020-07-10 Thread Marcel Holtmann
Hi Peilin, > Check upon `num_rsp` is insufficient. A malformed event packet with a > large `num_rsp` number makes hci_extended_inquiry_result_evt() go out > of bounds. Fix it. > > This patch fixes the following syzbot bug: > > > https://syzkaller.appspot.com/bug?id=4bf11aa05c4ca51ce0df86e500

Re: [PATCH] Bluetooth: Use fallthrough pseudo-keyword

2020-07-10 Thread Marcel Holtmann
Hi Gustavo, > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] > https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough

Re: [PATCH] Bluetooth: core: Use fallthrough pseudo-keyword

2020-07-10 Thread Marcel Holtmann
Hi Gustavo, > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] > https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough

Re: [PATCH] Bluetooth: RFCOMM: Use fallthrough pseudo-keyword

2020-07-10 Thread Marcel Holtmann
Hi Gustavo, > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by: Gustavo A. R. S

Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can

2020-07-10 Thread Steev Klimaszewski
On 7/10/20 9:47 AM, Doug Anderson wrote: > Hi, > > > But should I continue on this path, > It's probably worth getting dithering working on your sdm845 anyway in > case anyone actually does put a 6bpp panel on this SoC. > > >> or should we be finding others who >> have an N61 and see what their E

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

2020-07-10 Thread Mike Rapoport
On Fri, Jul 10, 2020 at 05:57:46PM +0100, Matthew Wilcox wrote: > On Fri, Jul 10, 2020 at 12:40:37PM -0400, Andrea Arcangeli wrote: > > Hello Hugh and Mike, > > > > On Mon, Jul 06, 2020 at 10:07:34PM -0700, Hugh Dickins wrote: > > > Adding Andrea to Cc, he's the one who structured it that way, > >

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Jim Mattson
On Fri, Jul 10, 2020 at 10:06 AM Paolo Bonzini wrote: > > On 10/07/20 18:30, Jim Mattson wrote: > >> > >> This can be problem when having a mixed setup of machines with 5-level page > >> tables and machines with 4-level page tables, as live migration can change > >> MAXPHYADDR while the guest runs

Re: [PATCH v2] genpd: Fix up terminology with parent/child

2020-07-10 Thread Joe Perches
On Wed, 2020-07-08 at 16:32 -0700, Kees Cook wrote: > The genpd infrastructure uses the terms master/slave, but such uses have > no external exposures (not even in Documentation/driver-api/pm/*) and are > not mandated by nor associated with any external specifications. Change > the language used th

Re: [PATCH v3 06/19] asm/rwonce: Don't pull into 'asm-generic/rwonce.h'

2020-07-10 Thread Will Deacon
On Fri, Jul 10, 2020 at 10:06:12AM -0700, Nick Desaulniers wrote: > On Fri, Jul 10, 2020 at 9:52 AM Will Deacon wrote: > > diff --git a/include/linux/nospec.h b/include/linux/nospec.h > > index 0c5ef54fd416..c1e79f72cd89 100644 > > --- a/include/linux/nospec.h > > +++ b/include/linux/nospec.h > >

Re: [PATCH] DRM PANEL DRIVERS: Replace HTTP links with HTTPS ones

2020-07-10 Thread Sam Ravnborg
On Thu, Jul 09, 2020 at 08:47:55PM +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. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn

RE: [PATCH v8 2/5] driver core: add deferring probe reason to devices_deferred property

2020-07-10 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Andrzej Hajda >Sent: Friday, July 10, 2020 11:30 AM >To: Greg Kroah-Hartman >Cc: Jernej Skrabec ; Rafael J. Wysocki >; Jonas Karlman ; Bartlomiej >Zolnierkiewicz ; linux-kernel@vger.kernel.org; >open list:DRM DRIVERS ; Russell King - ARM

Re: [PATCH] Bluetooth: Use fallthrough pseudo-keyword

2020-07-10 Thread Gustavo A. R. Silva
On Fri, Jul 10, 2020 at 07:10:55PM +0200, Marcel Holtmann wrote: > Hi Gustavo, > > > Replace the existing /* fall through */ comments and its variants with > > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > > fall-through markings when it is the case. > > > > [1] > > htt

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Paolo Bonzini
On 10/07/20 19:13, Jim Mattson wrote: > On Fri, Jul 10, 2020 at 10:06 AM Paolo Bonzini wrote: >> >> On 10/07/20 18:30, Jim Mattson wrote: This can be problem when having a mixed setup of machines with 5-level page tables and machines with 4-level page tables, as live migration can c

Re: [PATCH] Replace HTTP links with HTTPS ones: BLUETOOTH SUBSYSTEM

2020-07-10 Thread Marcel Holtmann
Hi Alexander, > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: >For each line: > If doesn't contain `\bxmlns\b`: >For each link, `\bhttp:/

Re: [PATCH v5] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-10 Thread Mimi Zohar
On Thu, 2020-07-09 at 13:46 -0300, Bruno Meneguele wrote: > APPRAISE_BOOTPARAM has been marked as dependent on !ARCH_POLICY in compile > time, enforcing the appraisal whenever the kernel had the arch policy option > enabled. > However it breaks systems where the option is set but the system didn't

[PATCH v2] btrfs: fix mount failure caused by race with umount

2020-07-10 Thread Boris Burkov
It is possible to cause a btrfs mount to fail by racing it with a slow umount. The crux of the sequence is generic_shutdown_super not yet calling sop->put_super before btrfs_mount_root calls btrfs_open_devices. If that occurs, btrfs_open_devices will decide the opened counter is non-zero, increment

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-07-10 Thread Stefano Stabellini
Sorry for the late reply -- a couple of conferences kept me busy. On Wed, 1 Jul 2020, Michael S. Tsirkin wrote: > On Wed, Jul 01, 2020 at 10:34:53AM -0700, Stefano Stabellini wrote: > > Would you be in favor of a more flexible check along the lines of the > > one proposed in the patch that starte

Re: [PATCH v2 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 10, 2020 at 07:27:12PM +0530, Srikar Dronamraju escreveu: > * Masami Hiramatsu [2020-07-10 22:11:33]: > > > Warn if the probe target function is GNU indirect function (GNU_IFUNC) > > because it may not what the user want to probe. > > > > The GNU indirect function ( https://sourcewar

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Sean Christopherson
On Fri, Jul 10, 2020 at 07:16:14PM +0200, Paolo Bonzini wrote: > On 10/07/20 19:13, Jim Mattson wrote: > > On Fri, Jul 10, 2020 at 10:06 AM Paolo Bonzini wrote: > >> > >> On 10/07/20 18:30, Jim Mattson wrote: > > This can be problem when having a mixed setup of machines with 5-level > >

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Jim Mattson
On Fri, Jul 10, 2020 at 10:16 AM Paolo Bonzini wrote: > > On 10/07/20 19:13, Jim Mattson wrote: > > On Fri, Jul 10, 2020 at 10:06 AM Paolo Bonzini wrote: > >> > >> On 10/07/20 18:30, Jim Mattson wrote: > > This can be problem when having a mixed setup of machines with 5-level > pa

Re: [PATCH] drm/msm/a6xx: fix crashstate capture for A650

2020-07-10 Thread Jordan Crouse
On Mon, Jun 29, 2020 at 08:10:06PM -0400, Jonathan Marek wrote: > A650 has a separate RSCC region, so dump RSCC registers separately, reading > them from the RSCC base. Without this change a GPU hang will cause a system > reset if CONFIG_DEV_COREDUMP is enabled. Reviewed-by: Jordan Crouse > Sign

Re: a question of split_huge_page

2020-07-10 Thread Yang Shi
On Fri, Jul 10, 2020 at 2:35 AM Alex Shi wrote: > > 在 2020/7/10 下午1:28, Mika Penttilä 写道: > > > > > > On 10.7.2020 7.51, Alex Shi wrote: > >> > >> 在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: > >>> On Thu, Jul 09, 2020 at 04:50:02PM +0100, Matthew Wilcox wrote: > On Thu, Jul 09, 2020 at 11:11:

Re: [PATCH v2 2/2] riscv: Enable context tracking

2020-07-10 Thread Palmer Dabbelt
On Wed, 24 Jun 2020 02:03:16 PDT (-0700), greentime...@sifive.com wrote: This patch implements and enables context tracking for riscv (which is a prerequisite for CONFIG_NO_HZ_FULL support) It adds checking for previous state in the entry that all excepttions and interrupts goes to and calls con

Re: [PATCH v2 0/2] riscv: Add context tracker suppor

2020-07-10 Thread Palmer Dabbelt
On Wed, 24 Jun 2020 02:03:14 PDT (-0700), greentime...@sifive.com wrote: This patchset adds support for irq_work via self IPI and context tracking. It is tested in qemu-system-riscv64 and SiFive HiFive Unleashed board based on v5.8-rc2. --- Changes in v2 - Fix the compiling warning Greentime H

Re: [PATCH V7 0/4] x86/resctrl: Enable user to view and select thread throttling mode

2020-07-10 Thread Fenghua Yu
Hi, Boris, Thomas and Ingo, On Mon, Jun 22, 2020 at 09:43:27AM -0700, Reinette Chatre wrote: > V6 upstream submission available from: > https://lore.kernel.org/lkml/cover.1589922949.git.reinette.cha...@intel.com > > Patches apply against v5.8-rc2 > base-commit: 48778464bb7d346b47157d21ffde2af6b2d

Re: [RFC] Kill THP deferred split queue?

2020-07-10 Thread Yang Shi
On Fri, Jul 10, 2020 at 7:18 AM Kirill A. Shutemov wrote: > > On Tue, Jul 07, 2020 at 11:00:16AM -0700, Yang Shi wrote: > > Hi folks, > > > > The THP deferred split queue is used to store PTE mapped THP (i.e. > > partial unmapped THP) then they will get split by deferred split > > shrinker when me

Re: [PATCH] drm/msm/a6xx: add build_bw_table for A640/A650

2020-07-10 Thread Jordan Crouse
On Tue, Jun 30, 2020 at 11:09:57PM -0400, Jonathan Marek wrote: > This sets up bw tables for A640/A650 similar to A618/A630, 0 DDR bandwidth > vote, and the CNOC vote. A640 has the same CNOC addresses as A630 and was > working, but this is required for A650 to work. > > Eventually the bw table sho

Re: [PATCH] Replace HTTP links with HTTPS ones: BACKLIGHT CLASS/SUBSYSTEM

2020-07-10 Thread Sam Ravnborg
Hi Alexander. On Wed, Jul 08, 2020 at 06:38:47PM +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. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: >

Re: [PATCH] mm: Close race between munmap() and expand_upwards()/downwards()

2020-07-10 Thread Yang Shi
On 7/9/20 3:53 AM, Kirill A. Shutemov wrote: VMA with VM_GROWSDOWN or VM_GROWSUP flag set can change their size under mmap_read_lock(). It can lead to race with __do_munmap(): Thread AThread B __do_munmap() detach_vmas_to_be_unmapped() mmap_write_downgrad

[PATCH 1/4] habanalabs: halt device CPU only upon certain reset

2020-07-10 Thread Oded Gabbay
Currently the driver halts the device CPU in the halt engines function, which halts all the engines of the ASIC. The problem is that if later on we stop the reset process (due to inability to clean memory mappings in time), the CPU will remain in halt mode. This creates many issues, such as thermal

[PATCH 2/4] habanalabs: Assign each CQ with its own work queue

2020-07-10 Thread Oded Gabbay
From: Ofir Bitton We identified a possible race during job completion when working with a single multi-threaded work queue. In order to overcome this race we suggest using a single threaded work queue per completion queue, hence we guarantee jobs completion in order. Signed-off-by: Ofir Bitton

[PATCH 3/4] habanalabs: verify queue can contain all cs jobs

2020-07-10 Thread Oded Gabbay
From: Ofir Bitton In order for the user to be aware of wrong inputs, we must return error in case the amount of jobs per cs exceeds the corresponding queue size. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/habanalabs.h | 4

[PATCH 4/4] habanalabs: check for DMA errors when clearing memory

2020-07-10 Thread Oded Gabbay
From: Moti Haimovski In GAUDI we use QMAN0 DMA for clearing the MMU memory region at initialization. if this operation fails it places the DMA in an error state and then when trying to initialize QMAN0 we fail and erroneously assume its the QMAN that failed. This commit adds a check and clear of

Re: [PATCH 1/2] serial: qcom_geni_serial: Make kgdb work even if UART isn't console

2020-07-10 Thread Evan Green
On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson wrote: > > The geni serial driver had the rather sketchy hack in it where it > would adjust the number of bytes per RX FIFO word from 4 down to 1 if > it detected that CONFIG_CONSOLE_POLL was enabled (for kgdb) and this > was a console port (defined

[PATCH] USB OVER IP DRIVER: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: mmotm 2020-07-09-21-00 uploaded (drivers/net/ethernet/mellanox/mlx5/core/en_main.c)

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

Re: [PATCH v3 9/9] KVM: x86: SVM: VMX: Make GUEST_MAXPHYADDR < HOST_MAXPHYADDR support configurable

2020-07-10 Thread Paolo Bonzini
On 10/07/20 17:48, Mohammed Gamal wrote: > The reason behind including this patch is unexpected behaviour we see > with NPT vmexit handling in AMD processor. > > With previous patch ("KVM: SVM: Add guest physical address check in > NPF/PF interception") we see the followning error multiple times i

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Paolo Bonzini
On 10/07/20 19:26, Jim Mattson wrote: >> Intel only has MAXPHYADDR > 46 on LA57 machines (because in general OSes >> like to have a physical 1:1 map into the kernel part of the virtual >> address space, so having a higher MAXPHYADDR would be of limited use >> with 48-bit linear addresses). > We all

Re: [PATCH v3 3/9] KVM: x86: mmu: Add guest physical address check in translate_gpa()

2020-07-10 Thread Paolo Bonzini
On 10/07/20 17:48, Mohammed Gamal wrote: > In case of running a guest with 4-level page tables on a 5-level page > table host, it might happen that a guest might have a physical address > with reserved bits set, but the host won't see that and trap it. > > Hence, we need to check page faults' phys

Re: [PATCH v4 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings

2020-07-10 Thread Stefano Stabellini
Sorry for the late reply, a couple of conferences kept me busy. On Mon, 29 Jun 2020, Bjorn Andersson wrote: > > However, given the fragmentation of the remoteproc bindings across > > multiple vendors (they are all different), I think it is a good idea for > > Linux, for System Device Tree, and in

[PATCH v2] doc:kmsg: explictly state the return value in case of SEEK_CUR

2020-07-10 Thread Bruno Meneguele
The commit 625d3449788f ("Revert "kernel/printk: add kmsg SEEK_CUR handling"") reverted a change done to the return value in case a SEEK_CUR operation was performed for kmsg buffer based on the fact that different userspace apps were handling the new return value (-ESPIPE) in different ways, breaki

Re: [PATCH 2/2] serial: qcom_geni_serial: Always use 4 bytes per TX FIFO word

2020-07-10 Thread Evan Green
On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson wrote: > > The geni serial driver had a rule that we'd only use 1 byte per FIFO > word for the TX FIFO if we were being used for the serial console. > This is ugly and a bit of a pain. It's not too hard to fix, so fix > it. > > Signed-off-by: Dougl

Re: WARNING: at mm/mremap.c:211 move_page_tables in i386

2020-07-10 Thread Naresh Kamboju
On Fri, 10 Jul 2020 at 10:55, Linus Torvalds wrote: > > On Thu, Jul 9, 2020 at 9:29 PM Naresh Kamboju > wrote: > > > > Your patch applied and re-tested. > > warning triggered 10 times. > > > > old: bfe0-c000 new: bfa0 (val: 7d530067) > > Hmm.. It's not even the overlapping case, it's

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Paolo Bonzini
On 10/07/20 17:48, Mohammed Gamal wrote: > When EPT is enabled, KVM does not really look at guest physical > address size. Address bits above maximum physical memory size are reserved. > Because KVM does not look at these guest physical addresses, it currently > effectively supports guest physical

Re: [PATCH] Replace HTTP links with HTTPS ones: DRM DRIVERS FOR BRIDGE CHIPS

2020-07-10 Thread Sam Ravnborg
On Wed, Jul 08, 2020 at 02:16:04PM +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. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn

Re: [PATCH v2] btrfs: fix mount failure caused by race with umount

2020-07-10 Thread Josef Bacik
On 7/10/20 1:23 PM, Boris Burkov wrote: It is possible to cause a btrfs mount to fail by racing it with a slow umount. The crux of the sequence is generic_shutdown_super not yet calling sop->put_super before btrfs_mount_root calls btrfs_open_devices. If that occurs, btrfs_open_devices will decide

Re: [PATCH RFC 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-07-10 Thread Jens Axboe
On 7/10/20 8:19 AM, Stefano Garzarella wrote: > The new io_uring_register(2) IOURING_REGISTER_RESTRICTIONS opcode > permanently installs a feature whitelist on an io_ring_ctx. > The io_ring_ctx can then be passed to untrusted code with the > knowledge that only operations present in the whitelist c

Re: [PATCH 0/4] drm: core: Convert logging to drm_* functions.

2020-07-10 Thread Sam Ravnborg
Hi Suraj. On Tue, Jul 07, 2020 at 10:04:14PM +0530, Suraj Upadhyay wrote: > > This patchset converts logging to drm_* functions in drm core. > > The following functions have been converted to their respective > DRM alternatives : > dev_info() --> drm_info() > dev_err() --> drm_err() >

[GIT PULL] Please pull RDMA subsystem changes

2020-07-10 Thread Jason Gunthorpe
Hi Linus, Second rc pull request Fairly normal here, things are actually somewhat quiet when look at the next release. Thanks, Jason The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at:

Re: [PATCH 1/4] drm: mipi-dsi: Convert logging to drm_* functions.

2020-07-10 Thread Sam Ravnborg
On Tue, Jul 07, 2020 at 09:58:48PM +0530, Suraj Upadhyay wrote: > Convert logging errors from dev_err() to drm_err(). > > Signed-off-by: Suraj Upadhyay Thanks. Applied to drm-misc-next as there was no more logging conversion to do in this file. Sam > --- > drivers/gpu/drm/drm_mipi_dsi

Re: [PATCH 4/4] drm: fb-helper: Convert logging to drm_* functions.

2020-07-10 Thread Sam Ravnborg
On Tue, Jul 07, 2020 at 10:07:21PM +0530, Suraj Upadhyay wrote: > Change logging information from dev_info() to drm_info(). > > Signed-off-by: Suraj Upadhyay Thanks. Applied to drm-misc-next. Also, because there was no more logging functions that needed an update. Sam > --- > drivers

Re: linux-next: Tree for Jul 10 (drivers/net/phy/mdio-thunder & mdio-mvusb)

2020-07-10 Thread Randy Dunlap
On 7/10/20 1:33 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200709: > on x86_64: ld: drivers/net/phy/mdio-thunder.o: in function `thunder_mdiobus_pci_probe': mdio-thunder.c:(.text+0x218): undefined reference to `devm_mdiobus_alloc_size' on i386: ERROR: modpost: "devm_mdiobus_a

Re: [PATCH v5] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-10 Thread Bruno Meneguele
On Fri, Jul 10, 2020 at 01:23:24PM -0400, Mimi Zohar wrote: > On Thu, 2020-07-09 at 13:46 -0300, Bruno Meneguele wrote: > > APPRAISE_BOOTPARAM has been marked as dependent on !ARCH_POLICY in compile > > time, enforcing the appraisal whenever the kernel had the arch policy option > > enabled. > > >

Re: [Freedreno] [PATCH 2/2] drm/msm/adreno: un-open-code some packets

2020-07-10 Thread Jordan Crouse
On Tue, Jul 07, 2020 at 01:35:00PM -0700, Rob Clark wrote: > From: Rob Clark Might need a commit log here, but otherwise makes sense. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 5 +++-- > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 11 +

[PATCH] seccomp.2: Improve x32 and nr truncation notes

2020-07-10 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- man2/seccomp.2 | 44 +--- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/man2/seccomp.2 b/man2/seccomp.2 index a1b1a28db9bf..e491825600e8 100644 --- a/man2/seccomp.2 +++ b/man2/seccomp.2 @@ -342,16 +342,38

[PATCH] hwmon: (drivetemp) Avoid SCT usage on Toshiba DT01ACA family drives

2020-07-10 Thread Maciej S. Szmigiero
It has been observed that Toshiba DT01ACA family drives have WRITE FPDMA QUEUED command timeouts and sometimes just freeze until power-cycled under heavy write loads when their temperature is getting polled in SCT mode. The SMART mode seems to be fine, though. Let's make sure we don't use SCT mode

Re: [PATCH] SCSI RDMA PROTOCOL (SRP) TARGET: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 16:22 schrieb Bart Van Assche: On 2020-07-09 12:48, Alexander A. Klimov wrote: diff --git a/drivers/infiniband/ulp/srpt/Kconfig b/drivers/infiniband/ulp/srpt/Kconfig index 4b5d9b792cfa..f63b34d9ae32 100644 --- a/drivers/infiniband/ulp/srpt/Kconfig +++ b/drivers/infiniband/ulp/

Re: [PATCH] Replace HTTP links with HTTPS ones: BACKLIGHT CLASS/SUBSYSTEM

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 19:35 schrieb Sam Ravnborg: Hi Alexander. Hi, On Wed, Jul 08, 2020 at 06:38:47PM +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. Deterministic algorithm: For each f

Re: [PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-10 Thread Agarwal, Anchal
Gentle ping on this series. -- Anchal Hello, This series fixes PM hibernation for hvm guests running on xen hypervisor. The running guest could now be hibernated and resumed successfully at a later time. The fixes for PM hibernation are added to block and network device driv

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