[v2] mtd: rawnand: Change calculating of position page containing BBM

2019-09-23 Thread Piotr Sroka
Change calculating of position page containing BBM If none of BBM flags are set then function nand_bbm_get_next_page reports EINVAL. It causes that BBM is not read at all during scanning factory bad blocks. The result is that the BBT table is build without checking factory BBM at all. For

Re: [PATCH v7 00/12] implement KASLR for powerpc/fsl_booke/32

2019-09-23 Thread Jason Yan
Hi Scott, Can you test v7 to see if it works to load a kernel at a non-zero address? Thanks, On 2019/9/20 17:45, Jason Yan wrote: This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals.

Re: Ben sent 132 patches and Sasa sent 203 patches..woohooo!

2019-09-23 Thread Willy Tarreau
On Tue, Sep 24, 2019 at 11:00:06AM +0530, Bhaskar Chowdhury wrote: > Is this kind of heaving patching done before?? I can't recollect. Yes it's being done, and quite frankly Bhaskar, this e-mail as well as all your other automated ones ("thanks a bunch") after each and every release do not bring

Re: [PATCH 1/2] pwm: Add different PWM output types support

2019-09-23 Thread Guru Das Srinagesh
On Mon, Sep 16, 2019 at 04:01:46PM +0200, Thierry Reding wrote: > On Fri, Sep 13, 2019 at 03:57:43PM -0700, Guru Das Srinagesh wrote: > > From: Fenglin Wu > > > > Normally, PWM channel has fixed output until software request to change > > its settings. There are some PWM devices which their

[RESEND v7 1/2] media: venus: Add codec data table

2019-09-23 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule ---

[RESEND v7 2/2] media: venus: Update clock scaling

2019-09-23 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb and bitrate. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 157

[RESEND v7 0/2]media: venus: Update clock scaling

2019-09-23 Thread Aniket Masule
In this patch series, clock scaling and core selection methods are updated. Current clock scaling is same for vpu4 and previous versions. Introducing load calculations using vpp cycles, which indicates the cycles required by video hardware to process each macroblock. Also adding vsp cycles, cycles

Ben sent 132 patches and Sasa sent 203 patches..woohooo!

2019-09-23 Thread Bhaskar Chowdhury
Is this kind of heaving patching done before?? I can't recollect. Thanks, Bhaskar signature.asc Description: PGP signature

Re: [PATCH V7 0/2] mailbox: arm: introduce smc triggered mailbox

2019-09-23 Thread André Przywara
On 23/09/2019 07:36, Peng Fan wrote: Hi Peng, thanks for the update! > From: Peng Fan > > V7: > Typo fix > #mbox-cells changed to 0 > Add a new header file arm-smccc-mbox.h > Use ARM_SMCCC_IS_64 > > Andre, > The function_id is still kept in arm_smccc_mbox_cmd, because arm,func-id >

Re: [PATCH] ARM: don't export unused return_address()

2019-09-23 Thread Masahiro Yamada
On Sat, Sep 7, 2019 at 12:47 AM Arnd Bergmann wrote: > > Without the frame pointer enabled, return_address() is an inline > function and does not need to be exported, as shown by this warning: > > WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL > > Move the EXPORT_SYMBOL_GPL()

Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 7:03 PM Paolo Bonzini wrote: > > On 23/09/19 15:09, Anup Patel wrote: > >>> +#ifndef CONFIG_RISCV_ISA_C > >>> + "li %[tilen], 4\n" > >>> +#else > >>> + "li %[tilen], 2\n" > >>> +#endif > >> > >> Can you use an assembler directive to

Re: general protection fault in xsk_map_update_elem

2019-09-23 Thread Björn Töpel
On 2019-09-24 00:50, Daniel Borkmann wrote: On Mon, Sep 23, 2019 at 08:49:11AM -0700, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:b41dae06 Merge tag 'xfs-5.4-merge-7' of git://git.kernel.o.. git tree: net-next console output:

Re: [PATCH] base: soc: Export soc_device_to_device API

2019-09-23 Thread Greg KH
On Mon, Sep 23, 2019 at 02:35:33PM -0700, mnala...@codeaurora.org wrote: > On 2019-09-19 23:10, Greg KH wrote: > > On Thu, Sep 19, 2019 at 08:36:51PM -0700, Bjorn Andersson wrote: > > > On Thu 19 Sep 15:45 PDT 2019, Greg KH wrote: > > > > > > > On Thu, Sep 19, 2019 at 03:40:17PM -0700, Bjorn

[PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Alexander Kapshuk
gawk 5.0.1 generates the regexp warnings shown below: GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape sequence `\:' is not a known regexp operator awk: ../arch/x86/tools/gen-insn-attr-x86.awk:350:

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-23 Thread Anshuman Khandual
On 09/23/2019 04:24 PM, David Hildenbrand wrote: > On 23.09.19 12:52, Michal Hocko wrote: >> On Mon 16-09-19 11:17:37, Anshuman Khandual wrote: >>> In add_memory_resource() the memory range to be hot added first gets into >>> the memblock via memblock_add() before arch_add_memory() is called on

[rcu:dev.2019.09.23a 50/77] kernel//rcu/update.c:871:3: note: in expansion of macro 'kfree_rcu'

2019-09-23 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.09.23a head: 97de53b94582c208ee239178b208b8e8b9472585 commit: 89538f9f8dda5e7738d71f179f9321740b680734 [50/77] rcu: Add crude self-test for early boot kfree_rcu() config: sparc64-allmodconfig

RE: [PATCH] usb: hub add filter for device with specific VID

2019-09-23 Thread Ran Wang
Hi Alan, On Monday, September 23, 2019 23:01, Alan Stern wrote: > > On Mon, 23 Sep 2019, Ran Wang wrote: > > > USB 2.0 Embedded Host PET Automated Test (CH6) 6.7.23 A-UUT > > "Unsupported Device" Message require to stop enumerating device with > > VID=0x1a0a PID=0x0201 and pop message to

Re: [GIT PULL] SafeSetID LSM changes for 5.4

2019-09-23 Thread Micah Morton
On Mon, Sep 23, 2019 at 5:45 PM Linus Torvalds wrote: > > On Mon, Sep 23, 2019 at 4:35 PM James Morris > wrote: > > > > My understanding is that SafeSetID is shipping in ChromeOS -- this was > > part of the rationale for merging it. > > Well, if even the developer didn't test it for two months,

RE: [PATCH v2] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape

2019-09-23 Thread Yinbo Zhu
Hi, Change in v2: move the otg property from dtsi to dts. Regards, Yinbo Zhu. -Original Message- From: Yinbo Zhu Sent: 2019年9月24日 11:29 To: Shawn Guo ; Leo Li ; Rob Herring ; Mark Rutland Cc: Yinbo Zhu ; Xiaobo Xie ; Jiafei Pan ; Ran Wang ;

Re: [PATCH 1/1] PCI: iproc: Invalidate PAXB address mapping before programming it

2019-09-23 Thread Abhishek Shah
Hi Bjorn/Lorenzo, Can you please help review this patch? Regards, Abhishek On Fri, Sep 6, 2019 at 7:41 PM Abhishek Shah wrote: > > Hi Andrew, > > > On Fri, Sep 6, 2019 at 3:31 PM Andrew Murray wrote: > > > > On Fri, Sep 06, 2019 at 02:55:19PM +0530, Abhishek Shah wrote: > > > Hi Andrew, > >

[PATCH v2] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape

2019-09-23 Thread Yinbo Zhu
layerscape otg function should be supported HNP SRP and ADP protocol accroing to rm doc, but dwc3 code not realize it and use id pin to detect who is host or device(0 is host 1 is device) this patch is to enable OTG mode on ls1028ardb ls1088ardb and ls1046ardb in dts Signed-off-by: Yinbo Zhu ---

[PATCH v2] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Yuantian Tang
Thermal Monitor Unit v2 is introduced on new Layscape SoC. Compared to v1, TMUv2 has a little different register layout and digital output is fairly linear. Signed-off-by: Yuantian Tang --- v2: - refine the code: remove redundant variable, rename variable etc.

RE: [PATCH] usb: hub add filter for device with specific VID

2019-09-23 Thread Ran Wang
Hi Greg, On Monday, September 23, 2019 19:07, Greg Kroah-Hartman wrote: > > On Mon, Sep 23, 2019 at 06:51:02PM +0800, Ran Wang wrote: > > USB 2.0 Embedded Host PET Automated Test (CH6) 6.7.23 A-UUT > > "Unsupported Device" Message require to stop enumerating device with > > VID=0x1a0a PID=0x0201

Re: [PATCH V8 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread kbuild test robot
Hi Peng, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3 next-20190920] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the

Re: [PATCH v4 05/10] mm: Return faster for non-fatal signals in user mode faults

2019-09-23 Thread Peter Xu
On Mon, Sep 23, 2019 at 07:54:47PM -0700, Matthew Wilcox wrote: > On Tue, Sep 24, 2019 at 10:47:21AM +0800, Peter Xu wrote: > > On Mon, Sep 23, 2019 at 11:03:49AM -0700, Linus Torvalds wrote: > > > On Sun, Sep 22, 2019 at 9:26 PM Peter Xu wrote: > > > > > > > > This patch is a preparation of

RE: [PATCH v5 2/3] dmaengine: imx-sdma: fix dma freezes

2019-09-23 Thread Robin Gong
On 2019-9-23 21:58 Philipp Puschmann wrote: > For some years and since many kernel versions there are reports that the RX > UART SDMA channel stops working at some point. The workaround was to > disable DMA for RX. This commit fixes the problem itself. Cyclic DMA transfers > are used by uart and

RE: [EXT] Re: [PATCH v5] arm64: dts: ls1028a: Add esdhc node in dts

2019-09-23 Thread Yinbo Zhu
Hi Shawn Guo, I see that you had merged my patch, but I don't see that in url = git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git master branch. Please help check. Regards, Yinbo Zhu -Original Message- From: Shawn Guo Sent: 2019年8月19日 21:11 To: Yinbo Zhu Cc: Leo Li ;

Re: [PATCH V8 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-23 Thread Florian Fainelli
On 9/23/2019 6:14 PM, Peng Fan wrote: > From: Peng Fan > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > actions in software layers running in the EL2 or EL3 exception levels. > The term "ARM" here relates to the SMC instruction as part of the ARM > instruction

[PATCH] remoteproc: debug: Remove unneeded NULL check

2019-09-23 Thread Ding Xiang
debugfs_remove_recursive will do NULL check, so remove the redundant null check Signed-off-by: Ding Xiang --- drivers/remoteproc/remoteproc_debugfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index

Re: [PATCH -next] scsi: hisi_sas: Make three functions static

2019-09-23 Thread Martin K. Petersen
YueHaibing, > Fix sparse warnings: > > drivers/scsi/hisi_sas/hisi_sas_main.c:3686:6: > warning: symbol 'hisi_sas_debugfs_release' was not declared. Should it be > static? > drivers/scsi/hisi_sas/hisi_sas_main.c:3708:5: > warning: symbol 'hisi_sas_debugfs_alloc' was not declared. Should it be

[v3,2/3] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2019-09-23 Thread Biwen Li
The patch fix a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li --- Change in v3: - update property name fsl,rcpm-scfg -> fsl,ippdexpcr-alt-addr Change in v2: - None arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file

[v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-23 Thread Biwen Li
The 'fsl,ippdexpcr-alt-addr' property is used to handle an errata A-008646 on LS1021A Signed-off-by: Biwen Li --- Change in v3: - rename property name fsl,rcpm-scfg -> fsl,ippdexpcr-alt-addr Change in v2: - update desc of the property 'fsl,rcpm-scfg'

[v3,1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2019-09-23 Thread Biwen Li
Description: - Reading configuration register RCPM_IPPDEXPCR1 always return zero Workaround: - Save register RCPM_IPPDEXPCR1's value to register SCFG_SPARECR8.(uboot's psci also need reading value from the register SCFG_SPARECR8 to set

Re: [PATCH 14/17] KVM: monolithic: x86: inline more exit handlers in vmx.c

2019-09-23 Thread Andrea Arcangeli
On Mon, Sep 23, 2019 at 09:55:27PM -0400, Andrea Arcangeli wrote: > This commit I reverted adds literally 3 inlines called by 3 functions, > in a very fast path, how many bytes of .text difference did you expect > by dropping some call/ret from a very fast path when you asked me to > test it? I

RE: [PATCH V8 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread Peng Fan
Hi Florian > Subject: Re: [PATCH V8 2/2] mailbox: introduce ARM SMC based mailbox > > Hi Peng, > > On 9/23/2019 6:14 PM, Peng Fan wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data via an ARM smc (secure monitor call) instruction. The

Re: [PATCH v4 05/10] mm: Return faster for non-fatal signals in user mode faults

2019-09-23 Thread Matthew Wilcox
On Tue, Sep 24, 2019 at 10:47:21AM +0800, Peter Xu wrote: > On Mon, Sep 23, 2019 at 11:03:49AM -0700, Linus Torvalds wrote: > > On Sun, Sep 22, 2019 at 9:26 PM Peter Xu wrote: > > > > > > This patch is a preparation of removing that special path by allowing > > > the page fault to return even

Re: [Patch v4] storvsc: setup 1:1 mapping between hardware queue and CPU queue

2019-09-23 Thread Martin K. Petersen
Long, > storvsc doesn't use a dedicated hardware queue for a given CPU > queue. When issuing I/O, it selects returning CPU (hardware queue) > dynamically based on vmbus channel usage across all channels. Applied to 5.4/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v5 5/6] platform/x86: huawei-wmi: Add fn-lock support

2019-09-23 Thread Ayman Bagabas
Huawei Matebook laptops uses Fn key and toggle to access F1-F12 keys. Along with that, there is this feature called fn-lock that inverts the behavior of this Fn key and the F1-F12 row. Signed-off-by: Ayman Bagabas --- drivers/platform/x86/huawei-wmi.c | 85 +++ 1

[PATCH] pinctrl: cherryview: restore Strago DMI workaround for all versions

2019-09-23 Thread Dmitry Torokhov
This is essentially a revert of: e3f72b749da2 pinctrl: cherryview: fix Strago DMI workaround 86c5dd6860a6 pinctrl: cherryview: limit Strago DMI workarounds to version 1.0 because even with 1.1 versions of BIOS there are some pins that are configured as interrupts but not claimed by any driver,

[PATCH v5 6/6] platform/x86: huawei-wmi: Add debugfs support

2019-09-23 Thread Ayman Bagabas
Add a debugfs interface that can be used to call the WMI management interface function if available. Signed-off-by: Ayman Bagabas --- drivers/platform/x86/huawei-wmi.c | 97 +++ 1 file changed, 97 insertions(+) diff --git a/drivers/platform/x86/huawei-wmi.c

[PATCH v5 4/6] platform/x86: huawei-wmi: Add battery charging thresholds

2019-09-23 Thread Ayman Bagabas
Control battery charge thresholds through the battery API and driver's attributes. Setting battery charging thresholds can introduce a race condition with MACH-WX9 where two or more threads are trying to read/write values from/to EC memory. Signed-off-by: Ayman Bagabas ---

[PATCH v5 1/6] platform/x86: huawei-wmi: Move to platform driver

2019-09-23 Thread Ayman Bagabas
Move from WMI driver to platform driver. This move is necessary since the driver is no longer a hotkeys driver only. Platform driver makes it easier for users to access sysfs attributes under (i.e. /sys/devices/platform/huawei-wmi) compared to wmi driver. Use WMI device UID, AMW0 has a UID of

[PATCH v5 0/6] platform/x86: Huawei WMI laptop extras driver

2019-09-23 Thread Ayman Bagabas
Changes in v5: * Fix a possible buffer overflow error. Changes in v4: * Use int and bint for module params. Changes in v3: * Kconfig changes * Fix NULL cast to int warning. * Add ACPI_BATTERY as a dependency. Changes in v2: * Use battery charge control API. This patch series introduce changes

[PATCH v5 2/6] platform/x86: huawei-wmi: Add quirks and module parameters

2019-09-23 Thread Ayman Bagabas
Introduce quirks and module parameters. 3 quirks are added: 1. Fixes reporting brightness keys twice since it's already handled by acpi-video. 2. Some models need a short delay when setting battery thresholds to prevent a race condition when two processes read/write. (will be used later) 3.

[PATCH v5 3/6] platform/x86: huawei-wmi: Implement huawei wmi management

2019-09-23 Thread Ayman Bagabas
Huawei Matebook laptops come with a WMI management interface that can control various aspects of the device. This interface is also found on the old Matebook X released in 2017. Use that to control the mic mute LED. Signed-off-by: Ayman Bagabas --- drivers/platform/x86/huawei-wmi.c | 217

Re: [PATCH V8 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread Florian Fainelli
Hi Peng, On 9/23/2019 6:14 PM, Peng Fan wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it > returns

Re: [PATCH v4 05/10] mm: Return faster for non-fatal signals in user mode faults

2019-09-23 Thread Peter Xu
On Mon, Sep 23, 2019 at 11:03:49AM -0700, Linus Torvalds wrote: > On Sun, Sep 22, 2019 at 9:26 PM Peter Xu wrote: > > > > This patch is a preparation of removing that special path by allowing > > the page fault to return even faster if we were interrupted by a > > non-fatal signal during a

Re: [GIT PULL] Backlight for v5.4

2019-09-23 Thread pr-tracker-bot
The pull request you sent on Tue, 24 Sep 2019 00:05:54 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git > tags/backlight-next-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d0b3cfee333eb7eecb6ce72f06f5a02d249b9bdf Thank you! --

Re: [GIT PULL] MFD for v5.4

2019-09-23 Thread pr-tracker-bot
The pull request you sent on Tue, 24 Sep 2019 00:08:48 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git mfd-next-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4c07e2ddab5b6b57dbcb09aedbda1f484d5940cc Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] PCI changes for v5.4

2019-09-23 Thread pr-tracker-bot
The pull request you sent on Mon, 23 Sep 2019 17:58:22 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git > tags/pci-v5.4-changes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/299d14d4c31aff3b37a03894e012edf8421676ee Thank you! --

[RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-09-23 Thread Jinke Fan
When using following operations: date -s "21190910 19:20:00" hwclock -w to change date from 2019 to 2119 for test, it will fail on Hygon Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 platform. MC146818 driver use function mc146818_set_time() to set register

Re: [PATCH] scsi: qedf: Remove always false 'tmp_prio < 0' statement

2019-09-23 Thread Martin K. Petersen
Austin, > Since tmp_prio is declared as u8, the following statement is always false. >tmp_prio < 0 > > So remove 'always false' statement. Applied to 5.4/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v4 09/11] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-09-23 Thread Xiaowei Bao
Add PCIe EP mode support for ls1088a and ls2088a, there are some difference between LS1 and LS2 platform, so refactor the code of the EP driver. Signed-off-by: Xiaowei Bao --- v2: - This is a new patch for supporting the ls1088a and ls2088a platform. v3: - Adjust the some struct assignment

[PATCH v4 10/11] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2019-09-23 Thread Xiaowei Bao
Add PCIe EP node for ls1088a to support EP mode. Signed-off-by: Xiaowei Bao --- v2: - Remove the pf-offset proparty. v3: - No change. v4: - No change. arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 31 ++ 1 file changed, 31 insertions(+) diff --git

[PATCH v4 02/11] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-09-23 Thread Xiaowei Bao
Add the doorbell mode of MSI-X in DWC EP driver. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray --- v2: - Remove the macro of no used. v3: - No change. v4: - Modify the commit message. drivers/pci/controller/dwc/pcie-designware-ep.c | 14 ++

[PATCH v4 01/11] PCI: designware-ep: Add multiple PFs support for DWC

2019-09-23 Thread Xiaowei Bao
Add multiple PFs support for DWC, due to different PF have different config space, we use func_conf_select callback function to access the different PF's config space, the different chip company need to implement this callback function when use the DWC IP core and intend to support multiple PFs

[PATCH v4 03/11] PCI: designware-ep: Move the function of getting MSI capability forward

2019-09-23 Thread Xiaowei Bao
Move the function of getting MSI capability to the front of init function, because the init function of the EP platform driver will use the return value by the function of getting MSI capability. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray --- v2: - No change. v3: - No change. v4:

[PATCH v4 04/11] PCI: designware-ep: Modify MSI and MSIX CAP way of finding

2019-09-23 Thread Xiaowei Bao
Each PF of EP device should have it's own MSI or MSIX capabitily struct, so create a dw_pcie_ep_func struct and remove the msi_cap and msix_cap to this struct from dw_pcie_ep, and manage the PFs with a list. Signed-off-by: Xiaowei Bao --- v3: - This is a new patch, to fix the issue of MSI and

[PATCH v4 00/11] Add the multiple PF support for DWC and Layerscape

2019-09-23 Thread Xiaowei Bao
Add the PCIe EP multiple PF support for DWC and Layerscape, add the doorbell MSIX function for DWC, use list to manage the PF of one PCIe controller, and refactor the Layerscape EP driver due to some platforms difference. Xiaowei Bao (11): PCI: designware-ep: Add multiple PFs support for DWC

[PATCH v4 11/11] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2019-09-23 Thread Xiaowei Bao
Add LS1088a in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in LS1088a. Signed-off-by: Xiaowei Bao --- v2: - No change. v3: - No change. v4: - Use a maco to define the LS1088a device ID. drivers/misc/pci_endpoint_test.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v4 07/11] PCI: layerscape: Modify the way of getting capability with different PEX

2019-09-23 Thread Xiaowei Bao
The different PCIe controller in one board may be have different capability of MSI or MSIX, so change the way of getting the MSI capability, make it more flexible. Signed-off-by: Xiaowei Bao --- v2: - Remove the repeated assignment code. v3: - Use ep_func msi_cap and msix_cap to decide the

[PATCH v4 08/11] PCI: layerscape: Modify the MSIX to the doorbell mode

2019-09-23 Thread Xiaowei Bao
dw_pcie_ep_raise_msix_irq was never called in the exisitng driver before, because the ls1046a platform don't support the MSIX feature and msix_capable was always set to false. Now that add the ls1088a platform with MSIX support, but the existing dw_pcie_ep_raise_msix_irq doesn't work, so use the

[PATCH v4 06/11] PCI: layerscape: Fix some format issue of the code

2019-09-23 Thread Xiaowei Bao
Fix some format issue of the code in EP driver. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray --- v2: - No change. v3: - No change. v4: - No change. drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v4 05/11] dt-bindings: pci: layerscape-pci: Add compatible strings for ls1088a and ls2088a

2019-09-23 Thread Xiaowei Bao
Add compatible strings for ls1088a and ls2088a. Signed-off-by: Xiaowei Bao --- v2: - No change. v3: - Use one valid combination of compatible strings. v4: - Add the comma between the two compatible. Documentation/devicetree/bindings/pci/layerscape-pci.txt | 2 ++ 1 file changed, 2

[rcu:dev.2019.09.23a 61/77] htmldocs: kernel/rcu/tree.c:2706: warning: Function parameter or member 'krcp' not described in 'kfree_rcu_cpu_work'

2019-09-23 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.09.23a head: 97de53b94582c208ee239178b208b8e8b9472585 commit: 3cc794ad18bfc6e46d58411b53f2784388d5bb85 [61/77] rcu: Add multiple in-flight batches of kfree_rcu() work reproduce: make htmldocs If

Re: [PATCH v3 18/26] scsi: pm80xx: Use PCI_STD_NUM_BARS

2019-09-23 Thread Martin K. Petersen
Denis, > Replace the magic constant (6) with define PCI_STD_NUM_BARS > representing the number of PCI BARs. Applied to 5.4/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[rcu:dev.2019.09.23a 65/77] kernel//rcu/tree.c:2770:3: error: implicit declaration of function 'kfree'; did you mean 'kvfree'?

2019-09-23 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.09.23a head: 97de53b94582c208ee239178b208b8e8b9472585 commit: 06b68648e6084488b79de47a2cfa307a1b9668b9 [65/77] rcu: Remove kfree_rcu() special casing and lazy-callback handling config:

RE: [PATCH v8 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-09-23 Thread Justin He (Arm Technology China)
> -Original Message- > From: Catalin Marinas > Sent: 2019年9月24日 0:18 > To: Justin He (Arm Technology China) > Cc: Will Deacon ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org;

Re: WARNING: locking bug in selinux_netlbl_socket_connect

2019-09-23 Thread Paul Moore
On Sat, Sep 21, 2019 at 11:50 AM syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:f97c81dc Merge tag 'armsoc-late' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=127b709d60 > kernel config:

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Andy Tang
Hi Anson, Points are taken. Will send out the next version. Thanks, Andy > -Original Message- > From: Anson Huang > Sent: 2019年9月24日 10:11 > To: Andy Tang ; Zhang Rui ; > edubez...@gmail.com > Cc: daniel.lezc...@linaro.org; Leo Li ; > linux...@vger.kernel.org;

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Anson Huang
Hi, Andy > Subject: RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 > support > > Hi Anson, > > Thanks for your review. Please see my reply inline. > > > -Original Message- > > From: Anson Huang > > Sent: 2019年9月24日 9:17 > > To: Zhang Rui ; Andy Tang ; > >

[WTF?] aafs_create_symlink() weirdness

2019-09-23 Thread Al Viro
static struct dentry *aafs_create_symlink(const char *name, struct dentry *parent, const char *target, void *private, const

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Andy Tang
Hi Anson, Thanks for your review. Please see my reply inline. > -Original Message- > From: Anson Huang > Sent: 2019年9月24日 9:17 > To: Zhang Rui ; Andy Tang ; > edubez...@gmail.com > Cc: daniel.lezc...@linaro.org; Leo Li ; > linux...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject:

[no subject]

2019-09-23 Thread Mr/Mrs Frances. Patrick
-- One million two hundred thousand euros (1,200,000 €) has been donated to you by Frances and Patrick Connolly, we are from County Armagh in Northern Ireland, We won the EuroMillions lottery jackpot of 115 million euros. Email us for more details: frances.connoll...@gmail.com

Re: [PATCH 14/17] KVM: monolithic: x86: inline more exit handlers in vmx.c

2019-09-23 Thread Andrea Arcangeli
On Tue, Sep 24, 2019 at 03:25:34AM +0200, Paolo Bonzini wrote: > On 24/09/19 03:00, Andrea Arcangeli wrote: > > Before and after this specific commit there is a difference with gcc 8.3. > > > > full patchset applied > > > > 753699 879719616 851286 cfd56 build/arch/x86/kvm/kvm-intel.ko

RE: [PATCH v8 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-09-23 Thread Justin He (Arm Technology China)
Hi Catalin > -Original Message- > From: Catalin Marinas > Sent: 2019年9月24日 0:07 > To: Justin He (Arm Technology China) > Cc: Will Deacon ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org;

RE: [PATCH v4 2/3] dmaengine: imx-sdma: fix dma freezes

2019-09-23 Thread Robin Gong
On 2019-9-19 22:30 Philipp Puschmann wrote > For some years and since many kernel versions there are reports that the RX > UART SDMA channel stops working at some point. The workaround was to > disable DMA for RX. This commit tries to fix the problem itself. > > Due to its license i wasn't

Re: [PATCH v3 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-23 Thread Alastair D'Silva
On Mon, 2019-09-23 at 14:25 +0200, Michal Hocko wrote: > On Tue 17-09-19 11:07:47, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > > are allocated from firmware. These address ranges may be higher > > than what older

Re: printk() + memory offline deadlock (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-23 Thread Sergey Senozhatsky
On (09/23/19 14:58), Petr Mladek wrote: > > If I understand it correctly then this is the re-appearing problem. > The only systematic solution with the current approach is to > take port->lock in printk_safe/printk_deferred context. It probably is. We have a number of reverse paths. TTY invokes

Re: [PATCH 14/17] KVM: monolithic: x86: inline more exit handlers in vmx.c

2019-09-23 Thread Paolo Bonzini
On 24/09/19 03:00, Andrea Arcangeli wrote: > Before and after this specific commit there is a difference with gcc 8.3. > > full patchset applied > > 753699 879719616 851286 cfd56 build/arch/x86/kvm/kvm-intel.ko > > git revert > > 753739 879719616 851326 cfd7e

Re: [GIT PULL] Smack patches for v5.4

2019-09-23 Thread pr-tracker-bot
The pull request you sent on Mon, 23 Sep 2019 10:24:21 -0700: > https://github.com/cschaufler/smack-next.git smack-for-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e94f8ccde4710f9a3e51dd3bc6134c96e33f29b3 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH 13/17] KVM: monolithic: x86: drop the kvm_pmu_ops structure

2019-09-23 Thread Paolo Bonzini
On 24/09/19 02:51, Andrea Arcangeli wrote: > This was covered in the commit header of patch 2: Oops, sorry. > Lot more patches are needed to get rid of kvm_x86_ops entirely because > there are lots of places checking the actual value of the method > before making the indirect call. I tried to

Re: [PATCH] smack: include linux/watch_queue.h

2019-09-23 Thread Arnd Bergmann
On Mon, Sep 23, 2019 at 2:50 PM Casey Schaufler wrote: > > On 9/9/2019 1:46 PM, Arnd Bergmann wrote: > > In some randconfig builds, the lack of an explicit #include > > in smack_lsm.c causes a build failure: > > What tree/branch are you working with? I don't see this. It was in the latest

Re: [PATCH 1/1] powerpc: kvm: Reduce calls to get current->mm by storing the value locally

2019-09-23 Thread Leonardo Bras
I have done a very simple comparison with gdb disassemble: By applying this patch, there was a reduction in the function size from 882 to 878 instructions. (It's a resend, due to not having all the correct lists on my previous mail) On Mon, 2019-09-23 at 18:30 -0300, Leonardo Bras wrote: >

RE: [PATCH] rtlwifi: rtl8723ae: Remove unused 'rtstatus' variable

2019-09-23 Thread Pkshih
> -Original Message- > From: Austin Kim [mailto:austindh@gmail.com] > Sent: Monday, September 23, 2019 9:35 PM > To: Pkshih; kv...@codeaurora.org; da...@davemloft.net > Cc: linux-wirel...@vger.kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH]

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Anson Huang
Hi, Andy > On Mon, 2019-09-23 at 09:24 +, Andy Tang wrote: > > Hi Rui, Edubezval, > > > > Would you please review this patch? > > > CC Anson Huang. > I'd prefer all the qoriq thermal patches go through his review first. > > thanks, > rui > > > BR, > > Andy > > > > > -Original

RE: [Patch v4] storvsc: setup 1:1 mapping between hardware queue and CPU queue

2019-09-23 Thread Long Li
>Subject: RE: [Patch v4] storvsc: setup 1:1 mapping between hardware queue >and CPU queue > >>Subject: Re: [Patch v4] storvsc: setup 1:1 mapping between hardware >>queue and CPU queue >> >>On Fri, Sep 06, 2019 at 10:24:20AM -0700, lon...@linuxonhyperv.com wrote: >>>From: Long Li >>> >>>storvsc

[PATCH V8 0/2] mailbox: arm: introduce smc triggered mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan V8: Add missed arm-smccc-mbox.h V7: Typo fix #mbox-cells changed to 0 Add a new header file arm-smccc-mbox.h Use ARM_SMCCC_IS_64 Andre, The function_id is still kept in arm_smccc_mbox_cmd, because arm,func-id property is optional, so clients could pass function_id to mbox

[PATCH V8 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan The ARM SMC/HVC mailbox binding describes a firmware interface to trigger actions in software layers running in the EL2 or EL3 exception levels. The term "ARM" here relates to the SMC instruction as part of the ARM instruction set, not as a standard endorsed by ARM Ltd.

[PATCH V8 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan This mailbox driver implements a mailbox which signals transmitted data via an ARM smc (secure monitor call) instruction. The mailbox receiver is implemented in firmware and can synchronously return data when it returns execution to the non-secure world again. An asynchronous

Re: [PATCH] writeback: fix use-after-free in finish_writeback_work()

2019-09-23 Thread Jens Axboe
On 9/23/19 7:06 PM, Tejun Heo wrote: > finish_writeback_work() reads @done->waitq after decrementing > @done->cnt. However, once @done->cnt reaches zero, @done may be freed > (from stack) at any moment and @done->waitq can contain something > unrelated by the time finish_writeback_work() tries to

Re: [PATCH] printk: Fix unnecessary returning broken pipe error from devkmsg_read

2019-09-23 Thread Sergey Senozhatsky
On (09/23/19 18:45), He Zhe wrote: > I think it is NOT necessary to inform user-space, when it just wants to read > from the beginning of the buffer, that the buffer has changed since the time > point when it issues the action of reading. The point here is not to notify user space that the logbuf

[PATCH] writeback: fix use-after-free in finish_writeback_work()

2019-09-23 Thread Tejun Heo
finish_writeback_work() reads @done->waitq after decrementing @done->cnt. However, once @done->cnt reaches zero, @done may be freed (from stack) at any moment and @done->waitq can contain something unrelated by the time finish_writeback_work() tries to read it. This led to the following crash.

[GIT PULL] Hyper-V commits for 5.4

2019-09-23 Thread Sasha Levin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git

Re: [PATCH 14/17] KVM: monolithic: x86: inline more exit handlers in vmx.c

2019-09-23 Thread Andrea Arcangeli
On Mon, Sep 23, 2019 at 12:19:12PM +0200, Paolo Bonzini wrote: > On 20/09/19 23:25, Andrea Arcangeli wrote: > > They can be called directly more efficiently, so we can as well mark > > some of them inline in case gcc doesn't decide to inline them. > > What is the output of size(1) before and

Re: allow larger than require DMA masks

2019-09-23 Thread James Bottomley
On Mon, 2019-09-23 at 23:14 +0200, Sven Schnelle wrote: > Hi, > > On Fri, Feb 15, 2019 at 03:45:54PM +0100, Christoph Hellwig wrote: > > Hi all, > > > > this series finishes off converting our dma mask model to split > > between device capabilities (dev->dma_mask and dev- > > >coherent_dma_mask)

RE: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-23 Thread Long Li
>Thanks for the clarification. > >The problem with what Ming is proposing in my mind (and its an existing >problem that exists today), is that nvme is taking precedence over anything >else until it absolutely cannot hog the cpu in hardirq. > >In the thread Ming referenced a case where today if the

Re: [PATCH 13/17] KVM: monolithic: x86: drop the kvm_pmu_ops structure

2019-09-23 Thread Andrea Arcangeli
On Mon, Sep 23, 2019 at 12:21:43PM +0200, Paolo Bonzini wrote: > On 20/09/19 23:25, Andrea Arcangeli wrote: > > Cleanup after this was finally left fully unused. > > > > Signed-off-by: Andrea Arcangeli > > --- > > arch/x86/include/asm/kvm_host.h | 3 --- > > arch/x86/kvm/pmu.h |

Re: [PATCH 15/17] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-09-23 Thread Sean Christopherson
On Tue, Sep 24, 2019 at 02:15:39AM +0200, Paolo Bonzini wrote: > On 23/09/19 22:23, Sean Christopherson wrote: > > > > +int nested_vmx_handle_vmx_instruction(struct kvm_vcpu *vcpu) > > +{ > > + switch (to_vmx(vcpu)->exit_reason) { > > + case EXIT_REASON_VMCLEAR: > > + return

Re: [GIT PULL] SafeSetID LSM changes for 5.4

2019-09-23 Thread Linus Torvalds
On Mon, Sep 23, 2019 at 4:35 PM James Morris wrote: > > My understanding is that SafeSetID is shipping in ChromeOS -- this was > part of the rationale for merging it. Well, if even the developer didn't test it for two months, I don't think "it's in upstream" makes any sense or difference.

  1   2   3   4   5   6   7   8   >