Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-06-03 Thread Viresh Kumar
On 03-06-20, 19:17, Sudeep Holla wrote: > I just realised that we have the timing info in the traces and you will > observe the sensor readings take something in order of 100us to 500-600us > or even more based on which sensor is being read. While we have 100us > timeout for cpufreq opp set.

Re: Capabilities are list when creating a user namespace

2020-06-03 Thread Idan Yadgar
Hello, sorry for duplicating the previous email, forgot to send it to the mailing lists as well. Did you miss my email? Idan Yadgar. On Fri, May 29, 2020 at 5:48 PM Idan Yadgar wrote: > > Hello, did you miss my mail? > > בתאריך יום א׳, 24 במאי 2020, 15:32, מאת Idan Yadgar ‏: >> >> Hello, >> >>

Re: [mainline][Oops][bisected 2ba3e6 ] 5.7.0 boot fails with kernel panic on powerpc

2020-06-03 Thread Abdul Haleem
On Wed, 2020-06-03 at 15:32 +0200, Joerg Roedel wrote: > On Wed, Jun 03, 2020 at 04:20:57PM +0530, Abdul Haleem wrote: > > @Joerg, Could you please have a look? > > Can you please try the attached patch? Thanks Joerg, The given patch fixes the boot problem. Please add Reported-by in fix commit.

[PATCH -tip v2 1/2] kasan: Bump required compiler version

2020-06-03 Thread Marco Elver
Adds config variable CC_HAS_WORKING_NOSANITIZE_ADDRESS, which will be true if we have a compiler that does not fail builds due to no_sanitize_address functions. This does not yet mean they work as intended, but for automated build-tests, this is the minimum requirement. For example, we require

[PATCH -tip v2 2/2] compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

2020-06-03 Thread Marco Elver
Adds the portable definitions for __no_sanitize_address, and __no_sanitize_undefined, and subsequently changes noinstr to use the attributes to disable instrumentation via KASAN or UBSAN. Link: https://lore.kernel.org/lkml/d2474c05a6c93...@google.com/ Reported-by:

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-03 Thread Michel Lespinasse
On Wed, Jun 3, 2020 at 9:35 PM youling 257 wrote: > I have build error about kernel/sys.c, > > kernel/sys.c: In function ‘prctl_set_vma’: > kernel/sys.c:2392:18: error: > ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean > ‘mmap_base’? > 2392 | down_write(>mmap_sem); >|

Re: [PATCH] thunderbolt: Improve USB4 config symbol help text

2020-06-03 Thread Mika Westerberg
Hi, On Tue, Jun 02, 2020 at 02:28:15PM +0200, Geert Uytterhoeven wrote: > Fix the spelling of "specification", and add a missing "the" article. > > Fixes: 690ac0d20d4022bb ("thunderbolt: Update Kconfig entries to USB4") Maybe Fixes tag here is too strong. It is simply fixing a typo :) I will

[PATCH 1/1] of: reserved_mem: Fix typo in the too-many-regions message

2020-06-03 Thread Danny Lin
Minor fix for a missing preposition in the error message that appears when there are too many reserved memory regions for the allocated array to store. Signed-off-by: Danny Lin --- drivers/of/of_reserved_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[v2 PATCH] ASoC: max98390: Fix potential crash during param fw loading

2020-06-03 Thread Steve Lee
malformed firmware file can cause out-of-bound access and crash during dsm_param bin loading. - add MIN/MAX param size to avoid out-of-bound access. - read start addr and size of param and check bound. - add condition that fw->size > param_size + _PAYLOAD_OFFSET to confirm enough data.

Re: dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-03 Thread Markus Elfring
>>> Calling pm_runtime_get_sync increments the counter even in case of >>> failure, causing incorrect ref count. Call pm_runtime_put if >>> pm_runtime_get_sync fails. >> >> Is it appropriate to copy a sentence from the change description >> into the patch subject? >> >> How do you think about a

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-03 Thread Sargun Dhillon
On Wed, Jun 03, 2020 at 07:22:57PM -0700, Kees Cook wrote: > On Thu, Jun 04, 2020 at 03:24:52AM +0200, Christian Brauner wrote: > > On Tue, Jun 02, 2020 at 06:10:41PM -0700, Sargun Dhillon wrote: > > > Previously there were two chunks of code where the logic to receive file > > > descriptors was

Re: [PATCH] drm/sun4i: hdmi ddc clk: Fix size of m divider

2020-06-03 Thread Chen-Yu Tsai
On Wed, Apr 22, 2020 at 5:23 PM Maxime Ripard wrote: > > Hi, > > On Wed, Apr 15, 2020 at 07:52:28PM +0200, Jernej Škrabec wrote: > > Dne sreda, 15. april 2020 ob 12:42:14 CEST je Maxime Ripard napisal(a): > > > On Mon, Apr 13, 2020 at 06:09:08PM +0200, Jernej Škrabec wrote: > > > > Dne

★ smdbobbin --“2018世界复合材料展览及会议”将于“3月”在“法国巴黎”举行 (地右P1-L-Me)

2020-06-03 Thread linux-kernel-owner
尊敬的 smdbobbin@126.comhttp 企业领导/公司负责人/业界专家,您好:       新材料为21世纪三大共性关键技术之一,已成为全球经济迅速增长的源动力和提升核心竞争力的战略焦点。材料作为制造业的基础,特别是新材料研究和产业发展的水平与规模,已经成为衡量一个国家科技进步和综合实力的重要标志。在新材料发展与应用中,复合材料占有相当重要的地位,特别广泛的应用在汽车、交通、风能、航空、航天、兵器、船舶、国防、机械、电子、化工、建筑、农业、渔业、纺织、运动器材等领域,一直是世界各国优先发展和竞争激烈的重要行业。      “JEC世界复合材料展览及会议”(JEC world

RE: [EXT] Re: [PATCH v6 2/2] arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo

2020-06-03 Thread Kamlakant Patel
Hi Bhupesh, > -Original Message- > From: Bhupesh Sharma > Sent: Thursday, June 4, 2020 2:05 AM > To: Kamlakant Patel > Cc: linux-arm-ker...@lists.infradead.org; x...@kernel.org; Mark Rutland > ; Kazuhito Hagio ; Steve > Capper ; Catalin Marinas > ; Ard Biesheuvel ; >

[PATCH] soc: amlogic: meson-gx-socinfo: Fix S905X3 ID

2020-06-03 Thread Christian Hewitt
The current value is taken from Amlogic's 4.9 bsp kernel which appears to use the wrong ID. For comparison, here's before/after: [0.152237] soc soc0: Amlogic Meson SM1 (Unknown) Revision 2b:c (10:2) Detected [0.152463] soc soc0: Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2) Detected

Re: [PATCH] net/mlx5: DR, Fix freeing in dr_create_rc_qp()

2020-06-03 Thread Saeed Mahameed
On Mon, 2020-06-01 at 19:45 +0300, Denis Efremov wrote: > Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and > should be freed with kvfree(). > > Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue > RDMA operations") > Cc: sta...@vger.kernel.org > Signed-off-by:

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Viresh Kumar
On 04-06-20, 09:32, Xiongfeng Wang wrote: > On 2020/6/3 21:39, Rafael J. Wysocki wrote: > > The frequency value obtained by kicking the CPU out of idle > > artificially is bogus, though. You may as well return a random number > > instead. > > Yes, it may return a randowm number as well. > > >

Re: [PATCH V2] dt-bindings: clock: Convert imx7ulp clock to json-schema

2020-06-03 Thread Stephen Boyd
Quoting Anson Huang (2020-06-03 18:33:07) > Convert the i.MX7ULP clock binding to DT schema format using json-schema, > the original binding doc is actually for two clock modules(SCG and PCC), > so split it to two binding docs, and the MPLL(mipi PLL) is NOT supposed > to be in clock module, so

Re: [PATCH] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-03 Thread Andy Lutomirski
On Wed, Jun 3, 2020 at 5:12 PM Ricardo Neri wrote: > > On Tue, Jun 02, 2020 at 11:42:12AM -0700, Brendan Shanks wrote: > > Add emulation/spoofing of SLDT and STR for both 32- and 64-bit > > processes. > > > > Wine users have found a small number of Windows apps using SLDT that > > were crashing

Re: [PATCH 06/10] clk: st: Remove uninitialized_var() usage

2020-06-03 Thread Stephen Boyd
Quoting Kees Cook (2020-06-03 16:31:59) > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings (e.g. > "unused variable"). If the compiler thinks it is uninitialized, either > simply initialize the variable or

Re: [PATCH v6 03/14] videobuf2: handle V4L2 buffer cache flags

2020-06-03 Thread Sergey Senozhatsky
On (20/06/02 14:24), Hans Verkuil wrote: [..] > For vim2m (but looks the same for vivid/vimc/vicodec): > > Streaming ioctls: > test read/write: OK (Not Supported) > test blocking wait: OK > Video Capture: Captured 8 buffers > test MMAP (no poll): OK > Video

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-03 Thread youling 257
I have build error about kernel/sys.c, kernel/sys.c: In function ‘prctl_set_vma’: kernel/sys.c:2392:18: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 2392 | down_write(>mmap_sem); | ^~~~ |

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Jun 2020 10:05:59 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.8-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a98f670e41a99f53acb1fb33cee9c6abbb2e6f23 Thank you! --

Re: [PATCH 1/3] dt-bindings: spi: Document bcm2711 and bcm7211 SPI compatible

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:53PM -0700, Florian Fainelli wrote: > The BCM2711 and BCM7211 chips use the BCM2835 SPI controller, but there > are severl instances of those in the system and they all share the same ^^ Nit: "several" And apparently they do not *all* share the interrupt,

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Linus Torvalds
On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab wrote: > > - The atomisp staging driver was resurrected. It is meant to work with > 4 generations of cameras on Atom-based laptops, tablets and cell > phones. So, it seems worth investing time to cleanup this driver and > making

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: > The BCM2711 SoC features 5 SPI controllers which all share the same > interrupt line, the SPI driver needs to support interrupt sharing, > therefore use the chip specific compatible string to help with that. You're saying above

Re: [PATCH 3/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:55PM -0700, Florian Fainelli wrote: > +static const struct of_device_id bcm2835_spi_match[] = { > + { .compatible = "brcm,bcm2835-spi", .data = _spi_interrupt }, > + { .compatible = "brcm,bcm2711-spi", .data = _spi_sh_interrupt }, > + { .compatible =

[PATCH v2] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- v2: - remove "const" of maxnent to fix build error. ---

[PATCH v2] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect

2020-06-03 Thread qiang.zhang
From: Zqiang BUG: memory leak unreferenced object 0x888055046e00 (size 256): comm "kworker/2:9", pid 2570, jiffies 4294942129 (age 1095.500s) hex dump (first 32 bytes): 00 70 04 55 80 88 ff ff 18 bb 5a 81 ff ff ff ff .p.U..Z. f5 96 78 81 ff ff ff ff 37 de 8e 81 ff ff ff

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Linus Torvalds
On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab wrote: > > PS.: The diffstat is so big that I almost dropped it, as it is almost > useless for humans to read. I ended by not doing it just because perhaps > you could be using some sort of script to check diffstat. No, but I do compare the

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-03 Thread Alex Williamson
On Wed, 3 Jun 2020 22:42:28 -0400 Yan Zhao wrote: > On Wed, Jun 03, 2020 at 05:04:52PM -0600, Alex Williamson wrote: > > On Tue, 2 Jun 2020 21:40:58 -0400 > > Yan Zhao wrote: > > > > > On Tue, Jun 02, 2020 at 01:34:35PM -0600, Alex Williamson wrote: > > > > I'm not at all happy with this.

Re: [PATCH 09/10] treewide: Remove uninitialized_var() usage

2020-06-03 Thread Kees Cook
On Wed, Jun 03, 2020 at 08:33:15PM -0700, Nathan Chancellor wrote: > On Wed, Jun 03, 2020 at 04:32:02PM -0700, Kees Cook wrote: > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > > (or can in the future), and suppresses unrelated compiler warnings > > (e.g. "unused

[PATCH V2] mm/vmstat: Add events for THP migration without split

2020-06-03 Thread Anshuman Khandual
Add the following new VM events which will help in validating THP migration without split. Statistics reported through these new events will help in performance debugging. 1. THP_MIGRATION_SUCCESS 2. THP_MIGRATION_FAILURE THP_MIGRATION_FAILURE in particular represents an event when a THP could

Re: [PATCH v5 0/3] SELinux support for anonymous inodes and UFFD

2020-06-03 Thread James Morris
On Wed, 1 Apr 2020, Daniel Colascione wrote: > Daniel Colascione (3): > Add a new LSM-supporting anonymous inode interface > Teach SELinux about anonymous inodes > Wire UFFD up to SELinux > > fs/anon_inodes.c| 191 ++-- > fs/userfaultfd.c

Re: [PATCH] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
On 6/4/2020 10:43 AM, Xiaoyao Li wrote: Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 3 ++-

[PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-03 Thread Daniel Jordan
Some of our servers spend 14 out of the 21 seconds of kernel boot initializing memory block sysfs directories and then creating symlinks between them and the corresponding nodes. The slowness happens because the machines get stuck with the smallest supported memory block size on x86 (128M), which

[PATCH 0/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Florian Fainelli
Hi Mark, Lukas, This patch series is implementing the approach that was discussed in response to this previous submission: https://lore.kernel.org/linux-arm-kernel/20200528185805.28991-1-nsaenzjulie...@suse.de/ It aims to have dedicated interrupt handlers for 2835 versus 2711/7211 so as to

[PATCH 3/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Florian Fainelli
The SPI controller found in the BCM2711 and BCM7211 SoCs is instantiated 5 times, with all instances sharing the same interrupt line. We specifically match the two compatible strings here to determine whether it is necessary to request the interrupt with the IRQF_SHARED flag and to use an

[PATCH 1/3] dt-bindings: spi: Document bcm2711 and bcm7211 SPI compatible

2020-06-03 Thread Florian Fainelli
The BCM2711 and BCM7211 chips use the BCM2835 SPI controller, but there are severl instances of those in the system and they all share the same interrupt line. Document specific compatible strings such that the driver can take appropriate actions. Signed-off-by: Florian Fainelli ---

[PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-03 Thread Florian Fainelli
The BCM2711 SoC features 5 SPI controllers which all share the same interrupt line, the SPI driver needs to support interrupt sharing, therefore use the chip specific compatible string to help with that. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm2711.dtsi | 8 1 file

Re: [PATCH 08/10] checkpatch: Remove awareness of uninitialized_var() macro

2020-06-03 Thread Kees Cook
On Thu, Jun 04, 2020 at 04:53:34AM +0200, Sedat Dilek wrote: > can you push that change also to kees/linux.git#kspp/uninit/v5.7/macro ? Done! :) -- Kees Cook

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 18:16 +0200, David Hildenbrand wrote: > On 03.06.20 18:11, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This patch exports the

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Herbert Xu
On Thu, Jun 04, 2020 at 11:32:04AM +0800, Zhangfei Gao wrote: > Use strlcpy to fix the warning > warning: 'strncpy' specified bound 64 equals destination size > [-Wstringop-truncation] > > Reported-by: kernel test robot > Signed-off-by: Zhangfei Gao > --- >

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 20:06 +0300, Mike Rapoport wrote: > On Thu, Jun 04, 2020 at 12:11:32AM +0800, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-03 Thread Sargun Dhillon
On Thu, Jun 04, 2020 at 03:24:52AM +0200, Christian Brauner wrote: > On Tue, Jun 02, 2020 at 06:10:41PM -0700, Sargun Dhillon wrote: > > Previously there were two chunks of code where the logic to receive file > > descriptors was duplicated in net. The compat version of copying > > file

[PATCH v2 1/8] powerpc/watchpoint: Fix 512 byte boundary limit

2020-06-03 Thread Ravi Bangoria
Milton reported that we are aligning start and end address to wrong size SZ_512M. It should be SZ_512. Fix that. While doing this change I also found a case where ALIGN() comparison fails. Within a given aligned range, ALIGN() of two addresses does not match when start address is pointing to the

[PATCH v2 7/8] powerpc/watchpoint: Return available watchpoints dynamically

2020-06-03 Thread Ravi Bangoria
So far Book3S Powerpc supported only one watchpoint. Power10 is introducing 2nd DAWR. Enable 2nd DAWR support for Power10. Availability of 2nd DAWR will depend on CPU_FTR_DAWR1. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 4 +++-

[PATCH v2 2/8] powerpc/watchpoint: Enable watchpoint functionality on power10 guest

2020-06-03 Thread Ravi Bangoria
CPU_FTR_DAWR is by default enabled for host via CPU_FTRS_DT_CPU_BASE (controlled by CONFIG_PPC_DT_CPU_FTRS). But cpu-features device-tree node is not PAPR compatible and thus not yet used by kvm or pHyp guests. Enable watchpoint functionality on power10 guest (both kvm and powervm) by adding

[PATCH v2 4/8] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit

2020-06-03 Thread Ravi Bangoria
As per the PAPR, bit 0 of byte 64 in pa-features property indicates availability of 2nd DAWR registers. i.e. If this bit is set, 2nd DAWR is present, otherwise not. Host generally uses "cpu-features", which masks "pa-features". But "cpu-features" are still not used for guests and thus this change

[PATCH v2 6/8] powerpc/watchpoint: Guest support for 2nd DAWR hcall

2020-06-03 Thread Ravi Bangoria
2nd DAWR can be set/unset using H_SET_MODE hcall with resource value 5. Enable powervm guest support with that. This has no effect on kvm guest because kvm will return error if guest does hcall with resource value 5. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 1

[PATCH v2 3/8] powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR

2020-06-03 Thread Ravi Bangoria
Add new device-tree feature for 2nd DAWR. If this feature is present, 2nd DAWR is supported, otherwise not. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 7 +-- arch/powerpc/kernel/dt_cpu_ftrs.c | 7 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff

[PATCH v2 8/8] powerpc/watchpoint: Remove 512 byte boundary

2020-06-03 Thread Ravi Bangoria
Power10 has removed 512 bytes boundary from match criteria. i.e. The watch range can cross 512 bytes boundary. Signed-off-by: Ravi Bangoria --- arch/powerpc/kernel/hw_breakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/hw_breakpoint.c

[PATCH v2 0/8] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm

2020-06-03 Thread Ravi Bangoria
Last series[1] was to add basic infrastructure support for more than one watchpoint on Book3S powerpc. This series actually enables the 2nd DAWR for baremetal and powervm. Kvm guest is still not supported. v1:

[PATCH v2 5/8] powerpc/watchpoint: Rename current H_SET_MODE DAWR macro

2020-06-03 Thread Ravi Bangoria
Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 2 +- arch/powerpc/include/asm/plpar_wrappers.h | 2 +- arch/powerpc/kvm/book3s_hv.c

Re: [PATCH 00/10] Remove uninitialized_var() macro

2020-06-03 Thread Nathan Chancellor
On Wed, Jun 03, 2020 at 04:31:53PM -0700, Kees Cook wrote: > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings > (e.g. "unused variable"). If the compiler thinks it is uninitialized, > either simply initialize

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-03 Thread Paul E. McKenney
On Wed, Jun 03, 2020 at 07:13:20PM +0200, Peter Zijlstra wrote: > On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > > > --- a/kernel/rcu/tree.c > > > +++ b/kernel/rcu/tree.c > > > @@ -250,7 +250,7 @@ static noinstr void rcu_dynticks_eqs_ent > > >* next idle sojourn. > > >

Re: [PATCH 09/10] treewide: Remove uninitialized_var() usage

2020-06-03 Thread Nathan Chancellor
On Wed, Jun 03, 2020 at 04:32:02PM -0700, Kees Cook wrote: > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings > (e.g. "unused variable"). If the compiler thinks it is uninitialized, > either simply initialize

[PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Zhangfei Gao
Use strlcpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] Reported-by: kernel test robot Signed-off-by: Zhangfei Gao --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] function:stacktrace/mips: Fix function:stacktrace for mips

2020-06-03 Thread yuanjunqing
在 2020/6/4 上午9:17, Maciej W. Rozycki 写道: > On Fri, 29 May 2020, WANG Xuerui wrote: > >> On 2020/5/29 17:29, yuanjunqing wrote: >> diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index cff52b283e03..cd5545764e5f 100644 --- a/arch/mips/kernel/mcount.S +++

Re: linux-next: manual merge of the kvm tree with the tip tree

2020-06-03 Thread Stephen Rothwell
Hi all, On Tue, 2 Jun 2020 14:53:58 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/x86/kernel/kvm.c > > between commit: > > a707ae1a9bbb ("x86/entry: Switch page fault exception to IDTENTRY_RAW") > > from the tip tree

Re: [PATCH net-next 5/5] hinic: add support to get eeprom information

2020-06-03 Thread luobin (L)
On 2020/6/4 11:01, Jakub Kicinski wrote: > On Wed, 3 Jun 2020 14:20:15 +0800 Luo bin wrote: >> add support to get eeprom information from the plug-in module >> with ethtool -m cmd. >> >> Signed-off-by: Luo bin > > drivers/net/ethernet/huawei/hinic/hinic_port.c:1386:5: warning: variable >

Re: [PATCH v2 3/7] Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR

2020-06-03 Thread Jakub Kicinski
On Wed, 3 Jun 2020 16:01:46 -0700 Miao-chen Chou wrote: > This adds the request handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR command. > Note that the controller-based monitoring is not yet in place. This tracks > the content of the monitor without sending HCI traffic, so the request > returns

Re: linux-next: manual merge of the kvm tree with the s390 tree

2020-06-03 Thread Stephen Rothwell
Hi all, On Fri, 29 May 2020 16:46:13 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/s390/kvm/vsie.c > > between commit: > > 0b0ed657fe00 ("s390: remove critical section cleanup from entry.S") > > from the s390 tree and commit: > >

[PATCH v4] usb: host: xhci-mtk: avoid runtime suspend when removing hcd

2020-06-03 Thread Macpaul Lin
When runtime suspend was enabled, runtime suspend might happen when xhci is removing hcd. This might cause kernel panic when hcd has been freed but runtime pm suspend related handle need to reference it. Signed-off-by: Macpaul Lin Reviewed-by: Chunfeng Yun Cc: sta...@vger.kernel.org --- Changes

Re: [PATCH net-next 5/5] hinic: add support to get eeprom information

2020-06-03 Thread Jakub Kicinski
On Wed, 3 Jun 2020 14:20:15 +0800 Luo bin wrote: > add support to get eeprom information from the plug-in module > with ethtool -m cmd. > > Signed-off-by: Luo bin drivers/net/ethernet/huawei/hinic/hinic_port.c:1386:5: warning: variable port_id set but not used [-Wunused-but-set-variable] 1386

[PATCH] iio: adc: mt6360: Add ADC driver for MT6360

2020-06-03 Thread Gene Chen
From: Gene Chen Add MT6360 ADC driver include Charger Current, Voltage, and Temperature. Signed-off-by: Gene Chen base-commit: 098c4adf249c198519a4abebe482b1e6b8c50e47 --- drivers/iio/adc/Kconfig | 11 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mt6360-adc.c | 419

Re: [PATCH v3 02/13] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-06-03 Thread Florian Fainelli
On 6/3/2020 12:20 PM, Jim Quinlan wrote: > From: Jim Quinlan > > A reset controller "rescal" is shared between the AHCI driver and the PCIe > driver for the BrcmSTB 7216 chip. The code is modified to allow this > sharing and to deassert() properly. > > Signed-off-by: Jim Quinlan > >

Re: [PATCH v3 11/13] PCI: brcmstb: Accommodate MSI for older chips

2020-06-03 Thread Florian Fainelli
On 6/3/2020 12:20 PM, Jim Quinlan wrote: > From: Jim Quinlan > > Older BrcmSTB chips do not have a separate register for MSI interrupts; the > MSIs are in a register that also contains unrelated interrupts. In > addition, the interrupts lie in bits [31..24] for these legacy chips. This >

Re: linux-next: manual merge of the ipsec-next tree with Linus' tree

2020-06-03 Thread David Ahern
On 6/3/20 7:26 PM, Stephen Rothwell wrote: > > And now the net-next tree has been merged into Linus' tree without this fix > :-( > I took a look earlier and I think it is fine. Some code was moved around in ipsec-next and I think the merge is good. I'll run the test cases later this week and

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

2020-06-03 Thread Stephen Rothwell
Hi all, On Thu, 21 May 2020 16:28:54 +1000 Stephen Rothwell wrote: > > After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > arch/x86/kvm/svm/svm.c: In function 'kvm_machine_check': > arch/x86/kvm/svm/svm.c:1834:2: error: too many arguments to

Re: [PATCH 08/10] checkpatch: Remove awareness of uninitialized_var() macro

2020-06-03 Thread Sedat Dilek
Hi Kees, can you push that change also to kees/linux.git#kspp/uninit/v5.7/macro ? Thanks in advance. Regards, - Sedat - [1] https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=kspp/uninit/v5.7/macro On Thu, Jun 4, 2020 at 4:44 AM Kees Cook wrote: > > On Wed, Jun 03, 2020

Re: [PATCH v4 1/4] riscv: Move kernel mapping to vmalloc zone

2020-06-03 Thread Zong Li
On Wed, Jun 3, 2020 at 4:01 PM Alexandre Ghiti wrote: > > This is a preparatory patch for relocatable kernel. > > The kernel used to be linked at PAGE_OFFSET address and used to be loaded > physically at the beginning of the main memory. Therefore, we could use > the linear mapping for the kernel

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-03 Thread Yan Zhao
On Wed, Jun 03, 2020 at 05:04:52PM -0600, Alex Williamson wrote: > On Tue, 2 Jun 2020 21:40:58 -0400 > Yan Zhao wrote: > > > On Tue, Jun 02, 2020 at 01:34:35PM -0600, Alex Williamson wrote: > > > I'm not at all happy with this. Why do we need to hide the migration > > > sparse mmap from the

[tip:x86/entry 29/29] include/linux/cpumask.h:894:9: error: implicit declaration of function 'arch_test_bit'; did you mean

2020-06-03 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry head: 02da62886d81c6683fbd6a09aec02b2c050d5827 commit: 02da62886d81c6683fbd6a09aec02b2c050d5827 [29/29] x86/entry, cpumask: Provide non-instrumented variant of cpu_is_offline() config: arc-randconfig-r024-20200603

Re: [PATCH 08/10] checkpatch: Remove awareness of uninitialized_var() macro

2020-06-03 Thread Kees Cook
On Wed, Jun 03, 2020 at 06:47:13PM -0700, Joe Perches wrote: > On Wed, 2020-06-03 at 18:40 -0700, Kees Cook wrote: > > On Wed, Jun 03, 2020 at 05:02:29PM -0700, Joe Perches wrote: > > > On Wed, 2020-06-03 at 16:32 -0700, Kees Cook wrote: > > > > Using uninitialized_var() is dangerous as it papers

Re: [PATCH v3 0/4] Add seccomp notifier ioctl that enables adding fds

2020-06-03 Thread Kees Cook
On Wed, Jun 03, 2020 at 04:56:59PM -0700, Sargun Dhillon wrote: > On Wed, Jun 3, 2020 at 4:42 PM Kees Cook wrote: > > > > On Tue, Jun 02, 2020 at 06:10:40PM -0700, Sargun Dhillon wrote: > > > Sargun Dhillon (4): > > > fs, net: Standardize on file_receive helper to move fds across > > >

[PATCH] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 1/1] crypto: caam - fix typo

2020-06-03 Thread Heinrich Schuchardt
%s/suppying/supplying/ Signed-off-by: Heinrich Schuchardt --- drivers/crypto/caam/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig index a62f228be6da..bc35aa0ec07a 100644 --- a/drivers/crypto/caam/Kconfig +++

Re: Question: livepatch failed for new fork() task stack unreliable

2020-06-03 Thread Josh Poimboeuf
On Thu, Jun 04, 2020 at 09:24:55AM +0800, Wangshaobo (bobo) wrote: > > 在 2020/6/3 23:33, Josh Poimboeuf 写道: > > On Wed, Jun 03, 2020 at 10:06:07PM +0800, Wangshaobo (bobo) wrote: > > To be honest, I don't remember what I meant by sibling calls. They > > don't even leave anything on the stack. >

linux-next: manual merge of the tip tree with the sparc-next tree

2020-06-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got conflicts in: arch/sparc/mm/srmmu.c Commits 3408974d0533 sparc32: mm: Restructure sparc32 MMU page-table layout c95be5b549d6 sparc32: mm: Change pgtable_t type to pte_t * instead of struct page * f790d0205fd5 sparc32: mm: Fix argument

Re: [RFC PATCH -rcu lkmm] tools/memory-model/README: Expand dependency of klitmus7

2020-06-03 Thread Paul E. McKenney
On Mon, Jun 01, 2020 at 06:34:33AM +0200, Andrea Parri wrote: > On Mon, Jun 01, 2020 at 12:37:20AM +0900, Akira Yokosawa wrote: > > From 87048d7212f6cb16b0a2b85fa6d2f34c28b078c0 Mon Sep 17 00:00:00 2001 > > From: Akira Yokosawa > > Date: Sun, 31 May 2020 20:04:32 +0900 > > Subject: [PATCH RFC]

Re: kernel/trace/blktrace.c:347:12: sparse: sparse: incorrect type in assignment (different address spaces)

2020-06-03 Thread Jens Axboe
dd48ef6467a1146cf7d0fe1e05a635039 blktrace: Protect >> q->blk_trace with RCU >> date: 3 months ago >> config: arc-randconfig-s031-20200603 (attached as .config) >> compiler: arc-elf-gcc (GCC) 9.3.0 >> reproduce: >> # apt-get install sparse >>

Re: [PATCH v15 06/11] soc: mediatek: Add subsys clock control for bus protection

2020-06-03 Thread Nicolas Boichat
On Thu, May 21, 2020 at 5:06 PM Weiyi Lu wrote: > > For the bus protection operations, some subsys clocks need to be enabled > before releasing the protection, and vice versa. > But those subsys clocks could only be controlled once its corresponding > power domain is turned on first. > In this

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-03 Thread Kees Cook
On Thu, Jun 04, 2020 at 03:24:52AM +0200, Christian Brauner wrote: > On Tue, Jun 02, 2020 at 06:10:41PM -0700, Sargun Dhillon wrote: > > Previously there were two chunks of code where the logic to receive file > > descriptors was duplicated in net. The compat version of copying > > file

[PATCH v2 2/2] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Masahiro Yamada
Documentation/kbuild/makefiles.rst says: Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. This is because lib-y is inteded to be hooked to KBUILD_VMLINUX_LIBS, which is passed down to scripts/link-vmlinux.sh. Besides, lib-y is not so interesting because objects from lib-y are

[PATCH v2 1/2] efi/libstub/arm64: link stub lib.a conditionally

2020-06-03 Thread Masahiro Yamada
Since commit 799c43415442 ("kbuild: thin archives make default for all archs"), core-y is passed to the linker with --whole-archive. Hence, the whole of stub library is linked to vmlinux. Use libs-y so that lib.a is passed after --no-whole-archive for conditional linking. The unused

Re: [GIT PULL] SELinux patches for v5.8

2020-06-03 Thread James Morris
On Wed, 3 Jun 2020, Casey Schaufler wrote: > On 6/3/2020 3:12 PM, James Morris wrote: > > On Wed, 3 Jun 2020, Casey Schaufler wrote: > > > >> The use of security modules was expected to be rare. > > This is not correct. Capabilities were ported to LSM and stacked from the > > beginning, and

[PATCH V2 1/3] dt-bindings: spi: Convert mxs spi to json-schema

2020-06-03 Thread Anson Huang
Convert the MXS SPI binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "unevaluatedProperties: false". --- Documentation/devicetree/bindings/spi/mxs-spi.txt | 26 -- Documentation/devicetree/bindings/spi/mxs-spi.yaml | 57

[PATCH V2 3/3] dt-bindings: spi: Convert imx lpspi to json-schema

2020-06-03 Thread Anson Huang
Convert the i.MX LPSPI binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "unevaluatedProperties: false". --- .../devicetree/bindings/spi/spi-fsl-lpspi.txt | 29 -- .../devicetree/bindings/spi/spi-fsl-lpspi.yaml | 62

[PATCH V2 0/3] Convert mxs/imx spi/cspi/lpspi binding to json-schema

2020-06-03 Thread Anson Huang
This patch series converts mxs/imx spi/cspi/lpspi binding to json-schema. In fsl-imx-cspi.yaml, also update compatible, remove obsolete properties "fsl,spi-num-chipselects" and update the example based on latest DT file; In spi-fsl-lpspi.yaml, the original maintainer's email address

[PATCH V2 2/3] dt-bindings: spi: Convert imx cspi to json-schema

2020-06-03 Thread Anson Huang
Convert the i.MX CSPI binding to DT schema format using json-schema, update compatible, remove obsolete properties "fsl,spi-num-chipselects" and update the example based on latest DT file. Signed-off-by: Anson Huang --- Changes since V1: - add "unevaluatedProperties: false". ---

[PATCH V2 2/3] dt-bindings: i2c: Convert mxs i2c to json-schema

2020-06-03 Thread Anson Huang
Convert the MXS I2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "additionalProperties: false". --- Documentation/devicetree/bindings/i2c/i2c-mxs.txt | 25 -- Documentation/devicetree/bindings/i2c/i2c-mxs.yaml | 55

[PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-03 Thread Anson Huang
Convert the i.MX I2C binding to DT schema format using json-schema, some improvements applied, such as update example based on latest DT file, add more compatible for existing SoCs, and remove unnecessary common property "pinctrl". Signed-off-by: Anson Huang --- Changes since V1: - add

[PATCH V2 0/3] Convert i.MX/MXS I2C/LPI2C binding doc to json-schema

2020-06-03 Thread Anson Huang
Coverts i.MX/MXS I2C/LPI2C binding doc to json-schema, some examples are too old, update them based on latest DT file, also add more compatible based on supported SoCs. Compated to V1, this patch series adds "additionalProperties: false" for each binding doc. Anson Huang (3): dt-bindings:

[PATCH V2 1/3] dt-bindings: i2c: Convert imx lpi2c to json-schema

2020-06-03 Thread Anson Huang
Convert the i.MX LPI2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "additionalProperties: false". --- .../devicetree/bindings/i2c/i2c-imx-lpi2c.txt | 20 - .../devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 47

[PATCH v6 5/6] dt-bindings: power: Extend RPMh power controller binding to describe thermal warming device

2020-06-03 Thread Thara Gopinath
RPMh power controller hosts mx domain that can be used as thermal warming device. Add #cooling-cells property to the power domain provider node to indicate this. Signed-off-by: Thara Gopinath Acked-by: Rob Herring --- v3->v4: - Removed subnode to indicate that mx power domain is a

[PATCH v6 2/6] soc: qcom: rpmhpd: Introduce function to retrieve power domain performance state count

2020-06-03 Thread Thara Gopinath
Populate .get_performance_state_count in genpd ops to retrieve the count of performance states supported by a rpmh power domain. Signed-off-by: Thara Gopinath Reviewed-by: Bjorn Andersson --- drivers/soc/qcom/rpmhpd.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v6 6/6] arm64: dts: qcom: Indicate rpmhpd hosts a power domain that can be used as a warming device.

2020-06-03 Thread Thara Gopinath
RPMh hosts mx power domain that can be used to warm up the SoC. Indicate this by using #cooling-cells property. Signed-off-by: Thara Gopinath Reviewed-by: Ulf Hansson Reviewed-by: Bjorn Andersson --- v3->v4: - Removed subnode to indicate that mx power domain is a warming

[PATCH v6 4/6] soc: qcom: Extend RPMh power controller driver to register warming devices.

2020-06-03 Thread Thara Gopinath
RPMh power control hosts power domains that can be used as thermal warming devices. Register these power domains with the generic power domain warming device thermal framework. Signed-off-by: Thara Gopinath --- v3->v4: - Introduce a boolean value is_warming_dev in rpmhpd structure to

[PATCH v6 1/6] PM/Domains: Add support for retrieving genpd performance states information

2020-06-03 Thread Thara Gopinath
Add two new APIs in the genpd framework, dev_pm_genpd_get_performance_state to return the current performance state of a power domain and dev_pm_genpd_performance_state_count to return the total number of performance states supported by a power domain. Since the genpd framework does not maintain a

  1   2   3   4   5   6   7   8   9   10   >