Re: [RFC PATCH 1/2] Explicitly include linux/major.h where it is needed

2020-06-16 Thread Greg KH
On Wed, Jun 17, 2020 at 09:27:47AM +1000, Stephen Rothwell wrote: > This is in preparation for removing the include of major.h where it is > not needed. > > These files were found using > > grep -E -L '[<"](uapi/)?linux/major\.h' $(git grep -l -w -f /tmp/xx) > > where /tmp/xx contains all

Re: [PATCH] vfio/pci: Clear error and request eventfd ctx after releasing

2020-06-16 Thread Cornelia Huck
On Tue, 16 Jun 2020 15:26:36 -0600 Alex Williamson wrote: > The next use of the device will generate an underflow from the > stale reference. > > Cc: Qian Cai > Fixes: 1518ac272e78 ("vfio/pci: fix memory leaks of eventfd ctx") > Reported-by: Daniel Wagner > Signed-off-by: Alex Williamson >

Re: [PATCH] Fixed styling issues by adding blank line after definitions.

2020-06-16 Thread Greg Kroah-Hartman
On Tue, Jun 16, 2020 at 09:26:55PM +0100, dan love wrote: > Signed-off-by: dan love > --- > drivers/staging/comedi/comedi_fops.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/staging/comedi/comedi_fops.c > b/drivers/staging/comedi/comedi_fops.c > index

Re: [PATCH v4 01/17] media: dt-binding: mtk-vcodec: Separating mtk-vcodec encode node.

2020-06-16 Thread Tiffany Lin
On Wed, 2020-06-10 at 15:38 +0800, Tiffany Lin wrote: > On Wed, 2020-06-10 at 15:46 +0900, Alexandre Courbot wrote: > > On Wed, Jun 10, 2020 at 6:21 AM Rob Herring wrote: > > > > > > On Sat, May 30, 2020 at 04:10:02PM +0800, Yong Wu wrote: > > > > From: Maoguang Meng > > > > > > > > Update

[PATCH v3] usb: gadget: u_serial: improve performance for large data

2020-06-16 Thread Macpaul Lin
Nowadays some embedded systems use VCOM to transfer large log and data. Take LTE MODEM as an example, during the long debugging stage, large log and data were transfer through VCOM when doing field try or in operator's lab. Here we suggest slightly increase the transfer buffer in u_serial.c for

Re: [PATCH v3 3/5] thermal: add support for the MCU controlled FAN on Khadas boards

2020-06-16 Thread Amit Kucheria
On Mon, Jun 8, 2020 at 2:47 PM Neil Armstrong wrote: > > The new Khadas VIM2 and VIM3 boards controls the cooling fan via the > on-board microcontroller. > > This implements the FAN control as thermal devices and as cell of the Khadas > MCU MFD driver. > > Signed-off-by: Neil Armstrong

Re: [PATCH v3 5/5] arm64: dts: meson-khadas-vim3: add Khadas MCU nodes

2020-06-16 Thread Amit Kucheria
On Mon, Jun 8, 2020 at 2:47 PM Neil Armstrong wrote: > > Add the Khadas MCU node with active FAN thermal nodes for all the > Khadas VIM3 variants. > > Signed-off-by: Neil Armstrong Reviewed-by: Amit Kucheria > --- > .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 23 +++ > 1

Re: [PATCH] usb: dwc3: qcom: Make sure core device is fully initialized before it is used

2020-06-16 Thread Bjorn Andersson
On Tue 16 Jun 13:37 PDT 2020, Matthias Kaehlcke wrote: > dwc3_qcom_of_register_core() uses of_platform_populate() to add > the dwc3 core device. The driver core will try to probe the device, > however this might fail (e.g. due to deferred probing) and > of_platform_populate() would still return 0

Re: mm lock issue while booting Linux on 5.8-rc1 for RISC-V

2020-06-16 Thread Stafford Horne
On Tue, Jun 16, 2020 at 01:47:24PM -0700, Michel Lespinasse wrote: > This makes me wonder actually - maybe there is a latent bug that got > exposed after my change added the rwsem_is_locked assertion to the > lockdep_assert_held one. If that is the case, it may be helpful to > bisect when that

Re: [PATCH v2] usb: gadget: u_serial: improve performance for large data

2020-06-16 Thread Macpaul Lin
On Wed, 2020-06-17 at 07:14 +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 17, 2020 at 10:46:47AM +0800, Macpaul Lin wrote: > > Nowadays some embedded systems use VCOM to transfer large log and data. > > Take LTE MODEM as an example, during the long debugging stage, large > > log and data were

Re: [PATCH 2/2] riscv: Support CONFIG_STRICT_DEVMEM

2020-06-16 Thread Nick Kossifidis
Στις 2020-06-17 04:56, Zong Li έγραψε: On Tue, Jun 16, 2020 at 8:27 PM Nick Kossifidis wrote: Στις 2020-06-16 10:45, Zong Li έγραψε: > Implement the 'devmem_is_allowed()' interface for RISC-V, like some of > other architectures have done. It will be called from > range_is_allowed() > when

Re: [PATCH] fs: move kernel_read_file* to its own include file

2020-06-16 Thread Greg Kroah-Hartman
On Tue, Jun 16, 2020 at 08:31:52PM -0700, Scott Branden wrote: > Move kernel_read_file* to it own kernel_read_file.h include file. That says what you did, but not _why_ you are doing it :(

[PATCH v6 0/6] workingset protection/detection on the anonymous LRU list

2020-06-16 Thread js1304
see, all the cases show improvement. Especially, test case with zipf distribution 1.3 show more improvements. It means that if there is a hot/cold tendency in anon pages, this patchset works better. Patchset is based on next-20200616 + the patchset [1]. The patchset [1] is included into the An

[PATCH v6 2/6] mm/vmscan: protect the workingset on anonymous LRU

2020-06-16 Thread js1304
From: Joonsoo Kim In current implementation, newly created or swap-in anonymous page is started on active list. Growing active list results in rebalancing active/inactive list so old pages on active list are demoted to inactive list. Hence, the page on active list isn't protected at all.

[PATCH v6 6/6] mm/vmscan: restore active/inactive ratio for anonymous LRU

2020-06-16 Thread js1304
From: Joonsoo Kim Now, workingset detection is implemented for anonymous LRU. We don't have to worry about the misfound for workingset due to the ratio of active/inactive. Let's restore the ratio. Acked-by: Johannes Weiner Signed-off-by: Joonsoo Kim --- mm/vmscan.c | 2 +- 1 file changed, 1

[PATCH v6 3/6] mm/workingset: extend the workingset detection for anon LRU

2020-06-16 Thread js1304
From: Joonsoo Kim In the following patch, workingset detection will be applied to anonymous LRU. To prepare it, this patch adds some code to distinguish/handle the both LRUs. v6: do not introduce a new nonresident_age for anon LRU since we need to use *unified* nonresident_age to implement

[PATCH v6 1/6] mm/vmscan: make active/inactive ratio as 1:1 for anon lru

2020-06-16 Thread js1304
From: Joonsoo Kim Current implementation of LRU management for anonymous page has some problems. Most important one is that it doesn't protect the workingset, that is, pages on the active LRU list. Although, this problem will be fixed in the following patchset, the preparation is required and

[PATCH v6 4/6] mm/swapcache: support to handle the exceptional entries in swapcache

2020-06-16 Thread js1304
From: Joonsoo Kim Swapcache doesn't handle the exceptional entries since there is no case using it. In the following patch, workingset detection for anonymous page will be implemented and it stores the shadow entries as exceptional entries into the swapcache. So, we need to handle the

[PATCH v6 5/6] mm/swap: implement workingset detection for anonymous LRU

2020-06-16 Thread js1304
From: Joonsoo Kim This patch implements workingset detection for anonymous LRU. All the infrastructure is implemented by the previous patches so this patch just activates the workingset detection by installing/retrieving the shadow entry. Signed-off-by: Joonsoo Kim --- include/linux/swap.h |

Re: [PATCH v3] IB/sa: Resolving use-after-free in ib_nl_send_msg

2020-06-16 Thread Leon Romanovsky
On Tue, Jun 16, 2020 at 10:56:53AM -0700, Divya Indi wrote: > Hi Leon, > > Please find my comments inline - > > On 6/13/20 11:41 PM, Leon Romanovsky wrote: > > On Tue, Jun 09, 2020 at 07:45:21AM -0700, Divya Indi wrote: > >> Hi Leon, > >> > >> Thanks for taking the time to review. > >> > >> Please

Re: [PATCH v2] usb: gadget: u_serial: improve performance for large data

2020-06-16 Thread Greg Kroah-Hartman
On Wed, Jun 17, 2020 at 10:46:47AM +0800, Macpaul Lin wrote: > Nowadays some embedded systems use VCOM to transfer large log and data. > Take LTE MODEM as an example, during the long debugging stage, large > log and data were transfer through VCOM when doing field try or in > operator's lab. Here

Re: [PATCH for v5.8 2/3] mm/swap: fix for "mm: workingset: age nonresident information alongside anonymous pages"

2020-06-16 Thread Joonsoo Kim
2020년 6월 17일 (수) 오전 3:36, Andrew Morton 님이 작성: > > On Tue, 16 Jun 2020 15:16:43 +0900 js1...@gmail.com wrote: > > > Subject: [PATCH for v5.8 2/3] mm/swap: fix for "mm: workingset: age > > nonresident information alongside anonymous pages" > > I'm having trouble locating such a patch. > > >

[PATCH] soc: imx-scu: Support module build

2020-06-16 Thread Anson Huang
Change the configuration type to tristate, add module description, author and license to support module build. Signed-off-by: Anson Huang --- drivers/soc/imx/Kconfig | 2 +- drivers/soc/imx/soc-imx-scu.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH v2 1/2] ASoC: bindings: fsl-asoc-card: Add compatible string for MQS

2020-06-16 Thread Shengjiu Wang
Add compatible string "fsl,imx-audio-mqs" for MQS, and move "audio-routing" property to be optional for MQS doesn't need such property. Signed-off-by: Shengjiu Wang --- changes in v2 - Move "audio-routing" to optional. .../devicetree/bindings/sound/fsl-asoc-card.txt | 12 +++- 1

[PATCH v2 2/2] ASoC: fsl-asoc-card: Add MQS support

2020-06-16 Thread Shengjiu Wang
The MQS codec isn't an i2c device, so use of_find_device_by_node to get platform device pointer. Because MQS only support playback, then add a new audio map. And there maybe "model" property or no "audio-routing" property in devicetree, so add some enhancement for these two property.

[PATCH v2 1/2] ALSA: hda/realtek: Add COEF controlled micmute LED support

2020-06-16 Thread Kai-Heng Feng
Currently, HDA codec LED class can only used by by GPIO controlled LED. However, there are some new systems that control LED via COEF instead of GPIO. In order to support those systems, create a new helper that can be facilitated by both COEF controlled and GPIO controlled LED, and use generic

[PATCH v2 2/2] ALSA: hda/realtek: Add mute LED and micmute LED support for HP systems

2020-06-16 Thread Kai-Heng Feng
There are two more HP systems control mute LED from HDA codec and need to expose micmute led class so SoF can control micmute LED. Add quirks to support them. Signed-off-by: Kai-Heng Feng --- v2: - Wording. sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v7 1/2] media: rcar-csi2: Correct the selection of hsfreqrange

2020-06-16 Thread Suresh Udipi
hsfreqrange should be chosen based on the calculated mbps which is closer to the default bit rate and within the range as per table[1]. But current calculation always selects first value which is greater than or equal to the calculated mbps which may lead to chosing a wrong range in some cases.

[PATCH v7 2/2] media: rcar-csi2: Add warning for PHY speed less than minimum

2020-06-16 Thread Suresh Udipi
Add a warning message when the selected PHY speed is less than supported minimum PHY speed given in the hsfreq table[1]. For raspberry pi camera capture on Kingfisher board with resolution 640x480, the calculated PHY speed is 48 mbps which is less than the minimum PHY speed 80 Mbps from the

linux-next: Signed-off-by missing for commit in the tpmdd tree

2020-06-16 Thread Stephen Rothwell
Hi all, Commit b4988ccd41f4 ("tpm: Make read{16, 32}() and write32() in tpm_tis_phy_ops optional") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpmqOEOX4dt7.pgp Description: OpenPGP digital signature

Re: [PATCH v6 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-06-16 Thread Viresh Kumar
On 16-06-20, 15:11, Matthias Kaehlcke wrote: > Hi Sibi, > > after doing the review I noticed that Viresh replied on the cover letter > that he picked the series up for v5.9, so I'm not sure if it makes sense > to send a v7. Its okay, you can send a new version and I will apply that instead. --

Re: [RFC PATCH v2 04/18] i2c: tegra: Fix the error path in tegra_i2c_runtime_resume

2020-06-16 Thread Dmitry Osipenko
17.06.2020 04:41, Sowjanya Komatineni пишет: > tegra_i2c_runtime_resume does not disable prior enabled clocks > properly. > > This patch fixes it. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/i2c/busses/i2c-tegra.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) >

[PATCH v2 1/2] ASoC: bindings: fsl_spdif: Add new compatible string for imx6sx

2020-06-16 Thread Shengjiu Wang
Add new compatible string "fsl,imx6sx-spdif" in the binding document. And add compatible string "fsl,vf610-spdif" which was missed before. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,spdif.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH v2 2/2] ASoC: fsl_spdif: Add support for imx6sx platform

2020-06-16 Thread Shengjiu Wang
The one difference on imx6sx platform is that the root clock is shared with ASRC module, so we add a new flags "shared_root_clock" which means the root clock is independent, then we will not do the clk_set_rate and clk_round_rate to avoid impact ASRC module usage. As add a new flags, we include

Re: [PATCH stable 4.9 00/21] Unbreak 32-bit DVB applications on 64-bit kernels

2020-06-16 Thread Florian Fainelli
On 6/11/2020 9:45 PM, Florian Fainelli wrote: > > > On 6/5/2020 9:24 AM, Florian Fainelli wrote: >> Hi all, >> >> This long patch series was motivated by backporting Jaedon's changes >> which add a proper ioctl compatibility layer for 32-bit applications >> running on 64-bit kernels. We have

linux-next: Tree for Jun 17

2020-06-16 Thread Stephen Rothwell
Hi all, Changes since 20200616: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The drm-intel-fixes tree lost its build failure. The vfs tree lost its build failures. The amdgpu tree gained a build failure so I used the version from nex

Re: [PATCH 2/2] Revert "checkpatch: kconfig: prefer 'help' over '---help---'"

2020-06-16 Thread Joe Perches
On Wed, 2020-06-17 at 12:02 +0900, Masahiro Yamada wrote: > This reverts commit 84af7a6194e493fae312a2b7fa5a3b51f76d9282. Also: https://lore.kernel.org/patchwork/patch/1255848/ --- scripts/checkkconfigsymbols.py | 2 +- scripts/checkpatch.pl | 6 +- scripts/kconfig/lexer.l|

Re: [PATCH] Fix unwind_frame for clang-built kernels

2020-06-16 Thread Sedat Dilek
On Wed, Jun 17, 2020 at 12:36 AM 'Nathan Huckleberry' via Clang Built Linux wrote: > > Since clang does not push pc and sp in function prologues, the current > implementation of unwind_frame does not work. By using the previous > frame's lr/fp instead of saved pc/sp we get valid unwinds on

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-16 Thread Finn Thain
On Tue, 16 Jun 2020, Martin K. Petersen wrote: > > I haven't used this driver for a long time, but I still own PowerMacs > > with firewire, and I know I'm not the only one. > I need to correct what I wrote above. I recall that years ago, when I needed to share storage from my Linux box to my

Re: common KUnit Kconfig and file naming (was: Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions)

2020-06-16 Thread David Gow
On Tue, Jun 16, 2020 at 5:40 PM Alan Maguire wrote: > > On Tue, 16 Jun 2020, David Gow wrote: > > > CONFIG_PM_QOS_KUNIT_TESTOn Mon, Jun 15, 2020 at 1:48 AM Kees Cook > > wrote: > > > > > > On Sat, Jun 13, 2020 at 02:51:17PM +0800, David Gow wrote: > > > > Yeah, _KUNIT_TEST was what we've sort-of

Re: [PATCH] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update()

2020-06-16 Thread Mike Rapoport
On Wed, Jun 17, 2020 at 09:21:42AM +1000, Michael Ellerman wrote: > Andrew Morton writes: > > On Mon, 15 Jun 2020 12:22:29 +0300 Mike Rapoport wrote: > > > >> From: Mike Rapoport > >> > >> The pte_update() implementation for PPC_8xx unfolds page table from the PGD > >> level to access a PMD

Re: [PATCH v2] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-16 Thread Anshuman Khandual
On 06/17/2020 03:49 AM, Barry Song wrote: > hugetlb_cma_reserve() is called at the wrong place. numa_init has not been > done yet. so all reserved memory will be located at node0. > > Fixes: cf11e85fc08c ("mm: hugetlb: optionally allocate gigantic hugepages > using cma") > Cc: Matthias

Re: RFC - kernel selftest result documentation (KTAP)

2020-06-16 Thread David Gow
On Wed, Jun 17, 2020 at 11:36 AM Kees Cook wrote: > > On Wed, Jun 17, 2020 at 02:30:45AM +, Bird, Tim wrote: > > Agreed. You only need machine-parsable data if you expect the CI > > system to do something more with the data than just present it. > > What that would be, that would be common

Re: (2) [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-16 Thread Baoquan He
On 06/17/20 at 12:46am, Jaewon Kim wrote: ... > > > >>> i.e) > > > >>> In following situation, watermark check fails (9MB - 8MB < 4MB) > > > >>> though there are > > > >>> enough free (9MB - 4MB > 4MB). If this is really matter, we need to > > > >>> count highatomic > > > >>> free accurately. > >

Re: [PATCH] ANDROID: sound: usb: Add vendor's hooking interface

2020-06-16 Thread Takashi Sakamoto
Hi, On Wed, Jun 17, 2020 at 11:18:24AM +0900, JaeHun Jung wrote: > In mobile, a co-processor is used when using USB audio > to improve power consumption. > hooking is required for sync-up when operating > the co-processor. So register call-back function. > The main operation of the call-back

[PATCH 2/4] Bluetooth: Replace wakeable list with flag

2020-06-16 Thread Abhishek Pandit-Subedi
Since the classic device list now supports flags, convert the wakeable list into a flag on the existing device list. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Alain Michaud --- include/net/bluetooth/hci_core.h | 11 ++- net/bluetooth/hci_core.c | 1 -

[PATCH 1/4] Bluetooth: Add bdaddr_list_with_flags for classic whitelist

2020-06-16 Thread Abhishek Pandit-Subedi
In order to more easily add device flags to classic devices, create a new type of bdaddr_list that supports setting flags. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Alain Michaud --- include/net/bluetooth/hci_core.h | 18 -- net/bluetooth/hci_core.c | 58

[PATCH 4/4] Bluetooth: Add get/set device flags mgmt op

2020-06-16 Thread Abhishek Pandit-Subedi
Add the get device flags and set device flags mgmt ops and the device flags changed event. Their behavior is described in detail in mgmt-api.txt in bluez. Sample btmon trace when a HID device is added (trimmed to 75 chars): @ MGMT Command: Unknown (0x0050) plen 11{0x0001} [hci0]

[PATCH 0/4] Bluetooth: Implement get/set device flags and device flags changed

2020-06-16 Thread Abhishek Pandit-Subedi
Hi linux-bluetooth, This series adds support for configuring the Remote Wakeup flag on devices by implementing Get Device Flags, Set Device Flags and Device Flags Changed. This was tested with some userspace changes to update the Remote Wakeup flag (these changes will be upstreamed as Bluez

[PATCH 3/4] Bluetooth: Replace wakeable in hci_conn_params

2020-06-16 Thread Abhishek Pandit-Subedi
Replace the wakeable boolean with flags in hci_conn_params and all users of this boolean. This will be used by the get/set device flags mgmt op. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Alain Michaud --- include/net/bluetooth/hci_core.h | 2 +- net/bluetooth/hci_request.c | 3

[PATCH v4 0/2]usb : phy: Add USB PHY support on Intel LGM SoC

2020-06-16 Thread Ramuthevar,Vadivel MuruganX
The USB PHY provides the optimized for low power dissipation while active, idle, or on standby. Requires minimal external components, a single resistor, for best operation. Supports 10/5-Gbps high-speed data transmission rates through 3-m USB 3.x cable --- v4: - Andy's review comments addressed

[PATCH v4 2/2] usb: phy: Add USB3 PHY support for Intel LGM SoC

2020-06-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for USB PHY on Intel LGM SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/usb/phy/Kconfig | 11 ++ drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy-lgm-usb.c | 275 ++ 3 files

[PATCH v4 1/2] dt-bindings: usb: Add USB PHY support for Intel LGM SoC

2020-06-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add the dt-schema to support USB PHY on Intel LGM SoC Signed-off-by: Ramuthevar Vadivel Murugan --- .../devicetree/bindings/usb/intel,lgm-usb-phy.yaml | 53 ++ 1 file changed, 53 insertions(+) create mode 100644

Re: [PATCH v3] tty: serial: don't do termios for BTIF

2020-06-16 Thread sean.wang
From: Sean Wang >> >> From: Sean Wang >> >> Bluetooth Interface (BTIF) is designed dedicatedly for MediaTek SOC >> with BT in order to be instead of the UART interface between BT module >> and Host CPU, and not exported to user space to access. >> >> As the UART design, BTIF will be an APB

about the fuse code question,maybe a bug

2020-06-16 Thread 陈安庆
Dear Miklos Hi ,I read the fuse code in linux kernel,and I have some question about the code blow: static int fuse_read_interrupt(struct fuse_iqueue *fiq, struct fuse_copy_state *cs, size_t nbytes, struct fuse_req *req)

Re: [PATCH v3] tty: serial: don't do termios for BTIF

2020-06-16 Thread sean.wang
From: Sean Wang >On Thu, Apr 23, 2020 at 02:02:08AM +0800, sean.w...@mediatek.com wrote: >> From: Sean Wang >> >> Bluetooth Interface (BTIF) is designed dedicatedly for MediaTek SOC >> with BT in order to be instead of the UART interface between BT module >> and Host CPU, and not exported to

Re: [PATCH v2] overflow.h: Add flex_array_size() helper

2020-06-16 Thread Kees Cook
On Tue, Jun 16, 2020 at 03:48:51PM -0500, Gustavo A. R. Silva wrote: > > > On 6/10/20 16:38, Kees Cook wrote: > > >> -#define struct_size(p, member, n) \ > >> - __ab_c_size(n, \ > >> +#define struct_size(p,

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-06-16 Thread Saravana Kannan
On Fri, May 29, 2020 at 5:30 AM Greg Kroah-Hartman wrote: > Looks semi-sane, but it's too close to the merge window at the moment > for me to take this. If there's no objections by the time 5.8-rc1 is > out, I'll queue it up in my tree for 5.9-rc1. Another friendly reminder :) -Saravana

Re: [PATCH 2/2] ASoC: fsl_spdif: Add support for imx6sx platform

2020-06-16 Thread Shengjiu Wang
On Wed, Jun 17, 2020 at 7:30 AM Nicolin Chen wrote: > > On Tue, Jun 16, 2020 at 02:42:41PM +0800, Shengjiu Wang wrote: > > The one difference on imx6sx platform is that the root clock > > is shared with ASRC module, so we add a new flags "ind_root_clk" > > which means the root clock is

[PATCH] KVM: VMX: Remove vcpu_vmx's defunct copy of host_pkru

2020-06-16 Thread Sean Christopherson
Remove vcpu_vmx.host_pkru, which got left behind when PKRU support was moved to common x86 code. No functional change intended. Fixes: 37486135d3a7b ("KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c") Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.h | 2 --

Re: [PATCH] hwmon: (k10temp) Add AMD family 17h model 60h probe

2020-06-16 Thread Guenter Roeck
On Wed, Jun 17, 2020 at 09:32:55AM +0800, Jacky Hu wrote: > With this patch applied, output from 4800H (idle) looks as follows: > > k10temp-pci-00c3 > Adapter: PCI adapter > Vcore: 1.55 V > Vsoc: 1.55 V > Tctl: +49.6°C > Tdie: +49.6°C > Icore: 0.00 A >

Re: [PATCH v1] arm64/module: Optimize module load time by optimizing PLT counting

2020-06-16 Thread Saravana Kannan
On Tue, Jun 16, 2020 at 2:40 PM Will Deacon wrote: > > On Fri, Jun 05, 2020 at 03:22:57PM -0700, Saravana Kannan wrote: > > When loading a module, module_frob_arch_sections() tries to figure out > > the number of PLTs that'll be needed to handle all the RELAs. While > > doing this, it tries to

[Linux] [PATCH] Kernel selftests: tpm2: upgrade tpm2 tests from python2 to python3

2020-06-16 Thread Pengfei Xu
Some Linux OS will never support python2 anymore, so upgrade tpm2 selftests to python3. Signed-off-by: Pengfei Xu --- tools/testing/selftests/tpm2/test_smoke.sh | 4 +- tools/testing/selftests/tpm2/test_space.sh | 2 +- tools/testing/selftests/tpm2/tpm2.py | 68 ++

Re: RFC - kernel selftest result documentation (KTAP)

2020-06-16 Thread Kees Cook
On Wed, Jun 17, 2020 at 02:30:45AM +, Bird, Tim wrote: > Agreed. You only need machine-parsable data if you expect the CI > system to do something more with the data than just present it. > What that would be, that would be common for all tests (or at least > many test), is unclear. Maybe

Re: [PATCH v6 00/19] The new cgroup slab memory controller

2020-06-16 Thread Roman Gushchin
On Tue, Jun 16, 2020 at 08:05:39PM -0700, Shakeel Butt wrote: > On Tue, Jun 16, 2020 at 7:41 PM Roman Gushchin wrote: > > > > On Tue, Jun 16, 2020 at 06:46:56PM -0700, Shakeel Butt wrote: > > > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > > [...] > > > > > > Have you performed

Re: [PATCH 2/2] ASoC: fsl-asoc-card: Add MQS support

2020-06-16 Thread Shengjiu Wang
On Wed, Jun 17, 2020 at 8:50 AM Nicolin Chen wrote: > > On Tue, Jun 16, 2020 at 03:30:37PM +0800, Shengjiu Wang wrote: > > The MQS codec isn't an i2c device, so add a new platform device for it. > > > > MQS only support playback, so add a new audio map. > > > > Add there maybe "model" property or

[PATCH] fs: move kernel_read_file* to its own include file

2020-06-16 Thread Scott Branden
Move kernel_read_file* to it own kernel_read_file.h include file. Suggested-by: Christoph Hellwig Signed-off-by: Scott Branden --- drivers/base/firmware_loader/main.c | 1 + fs/exec.c | 1 + include/linux/fs.h | 39 --

[PATCH 3/4] vdpa: get_iova_range() is mandatory for device specific DMA translation

2020-06-16 Thread Jason Wang
In order to let userspace work correctly, get_iova_range() is a must for the device that has its own DMA translation logic. Signed-off-by: Jason Wang --- drivers/vdpa/vdpa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/vdpa/vdpa.c b/drivers/vdpa/vdpa.c index

[PATCH 4/4] vhost: vdpa: report iova range

2020-06-16 Thread Jason Wang
This patch introduces a new ioctl for vhost-vdpa device that can report the iova range by the device. For device that depends on platform IOMMU, we fetch the iova range via DOMAIN_ATTR_GEOMETRY. For devices that has its own DMA translation unit, we fetch it directly from vDPA bus operation.

[PATCH 2/4] vdpa_sim: implement get_iova_range bus operation

2020-06-16 Thread Jason Wang
This patch implements get_iova_range method for vdpa_sim. Since vdpa_sim is a software device, simply advertise a [0ULL, ~0ULL] range. Signed-off-by: Jason Wang --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c

[PATCH 0/4] vDPA: API for reporting IOVA range

2020-06-16 Thread Jason Wang
Hi All: This series introduces API for reporing IOVA range. This is a must for userspace to work correclty: - for the process that uses vhost-vDPA directly to properly allocate IOVA - for VM(qemu), when vIOMMU is not enabled, fail early if GPA is out of range - for VM(qemu), when vIOMMU is

[PATCH 1/4] vdpa: introduce config op to get valid iova range

2020-06-16 Thread Jason Wang
This patch introduce a config op to get valid iova range from the vDPA device. Signed-off-by: Jason Wang --- include/linux/vdpa.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h index 239db794357c..b7633ed2500c 100644 ---

Re: [PATCH v6 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-06-16 Thread Roman Gushchin
On Tue, Jun 16, 2020 at 07:59:40PM -0700, Shakeel Butt wrote: > On Tue, Jun 16, 2020 at 7:50 PM Roman Gushchin wrote: > > > > On Tue, Jun 16, 2020 at 06:52:09PM -0700, Shakeel Butt wrote: > > > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > > > > > To convert memcg and lruvec slab

Re: [PATCH v6 02/19] mm: memcg: prepare for byte-sized vmstat items

2020-06-16 Thread Roman Gushchin
On Tue, Jun 16, 2020 at 07:57:54PM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > To implement per-object slab memory accounting, we need to > > convert slab vmstat counters to bytes. Actually, out of > > 4 levels of counters: global, per-node, per-memcg

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-16 Thread Jason Wang
On 2020/6/11 下午7:34, Michael S. Tsirkin wrote: static void vhost_vq_free_iovecs(struct vhost_virtqueue *vq) { kfree(vq->descs); @@ -394,6 +400,9 @@ static long vhost_dev_alloc_iovecs(struct vhost_dev *dev) for (i = 0; i < dev->nvqs; ++i) { vq = dev->vqs[i];

RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver as module

2020-06-16 Thread Anson Huang
> Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver > as > module > > > From: Anson Huang > > Sent: Tuesday, June 16, 2020 6:44 PM > > > > > Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU > > > pinctrl driver as module > > > > > > > From: Anson

Re: VM_BUG_ON_PAGE(page_to_pgoff(page) != offset) on s390

2020-06-16 Thread Qian Cai
On Mon, Jun 15, 2020 at 06:48:59PM -0700, Matthew Wilcox wrote: > On Mon, Jun 15, 2020 at 09:33:09PM -0400, Qian Cai wrote: > > Ever since a few days ago, linux-next on s390 has started to crash > > with compiling workloads or during boot below. > > > > This .config if ever matters, > > > >

[PATCH] m68k: use CLEAN_FILES to clean up files

2020-06-16 Thread Masahiro Yamada
The log of 'make ARCH=m68k clean' does not look nice. $ make ARCH=m68k clean CLEAN arch/m68k/kernel [ snip ] CLEAN usr rm -f vmlinux.gz vmlinux.bz2 CLEAN vmlinux.symvers modules.builtin modules.builtin.modinfo Use CLEAN_FILES to simplify the code, and beautify the log.

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-16 Thread Martin K. Petersen
Chris, > I don't especially want it to be gone, nor can I be sure there are no > users of what is as far as I can tell a working piece of code. I can > tell you that I never hear about it (other than the odd patch), > whereas I do get emails out of the blue for some of my other (much > smaller)

Re: [PATCH v6 04/19] mm: slub: implement SLUB version of obj_to_index()

2020-06-16 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > This commit implements SLUB version of the obj_to_index() function, > which will be required to calculate the offset of obj_cgroup in the > obj_cgroups vector to store/obtain the objcg ownership data. > > To make it faster, let's repeat the

[RFC PATCH] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-16 Thread Souptick Joarder
In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2] could be referred for more information. [1] Documentation/core-api/pin_user_pages.rst [2] "Explicit pinning of user-space pages": https://lwn.net/Articles/807108/

Re: [PATCH v6 00/19] The new cgroup slab memory controller

2020-06-16 Thread Shakeel Butt
On Tue, Jun 16, 2020 at 7:41 PM Roman Gushchin wrote: > > On Tue, Jun 16, 2020 at 06:46:56PM -0700, Shakeel Butt wrote: > > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > [...] > > > > Have you performed any [perf] testing on SLAB with this patchset? > > The accounting part is the

Re: [PATCH v6 03/19] mm: memcg: convert vmstat slab counters to bytes

2020-06-16 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > In order to prepare for per-object slab memory accounting, convert > NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE vmstat items to bytes. > > To make it obvious, rename them to NR_SLAB_RECLAIMABLE_B and > NR_SLAB_UNRECLAIMABLE_B (similar to

[PATCH 1/2] kconfig: remove '---help---' support

2020-06-16 Thread Masahiro Yamada
The conversion is done. No more user of '---help---'. Cc: Ulf Magnusson Signed-off-by: Masahiro Yamada --- scripts/checkkconfigsymbols.py | 2 +- scripts/kconfig/lexer.l| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkkconfigsymbols.py

[PATCH 2/2] Revert "checkpatch: kconfig: prefer 'help' over '---help---'"

2020-06-16 Thread Masahiro Yamada
This reverts commit 84af7a6194e493fae312a2b7fa5a3b51f76d9282. The conversion is done. Cc: Ulf Magnusson Signed-off-by: Masahiro Yamada --- scripts/checkpatch.pl | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

[PATCH v4 3/7] iommu/mediatek: Set MISC_CTRL register

2020-06-16 Thread Chao Hao
Add F_MMU_IN_ORDER_WR_EN definition in MISC_CTRL. In order to improve performance, we always disable STANDARD_AXI_MODE and IN_ORDER_WR_EN in MISC_CTRL. Change since v3: 1. Rename Disable STANDARD_AXI_MODE in MISC_CTRL to Set MISC_CTRL register 2. Add F_MMU_IN_DRDER_WR_EN definition in MISC_CTRL

[PATCH v4 4/7] iommu/mediatek: Move inv_sel_reg into the plat_data

2020-06-16 Thread Chao Hao
For mt6779, MMU_INV_SEL register's offset is changed from 0x38 to 0x2c, so we can put inv_sel_reg in the plat_data to use it. In addition, we renamed it to REG_MMU_INV_SEL_GEN1 and use it before mt6779. Change since v3: 1. Fix coding style Cc: Yong Wu Signed-off-by: Chao Hao ---

[PATCH v4 00/07] MT6779 IOMMU SUPPORT

2020-06-16 Thread Chao Hao
This patchset adds mt6779 iommu support. mt6779 has two iommus, they are MM_IOMMU(M4U) and APU_IOMMU which used ARM Short-Descriptor translation format. The mt6779's MM_IOMMU-SMI and APU_IOMMU HW diagram is as below, it is only a brief diagram: EMI

[PATCH v4 5/7] iommu/mediatek: Add sub_comm id in translation fault

2020-06-16 Thread Chao Hao
The max larb number that a iommu HW support is 8(larb0~larb7 in the below diagram). If the larb's number is over 8, we use a sub_common for merging several larbs into one larb. At this case, we will extend larb_id: bit[11:9] means common-id; bit[8:7] means subcommon-id; From these two variable, we

[PATCH v4 6/7] iommu/mediatek: Add REG_MMU_WR_LEN definition preparing for mt6779

2020-06-16 Thread Chao Hao
Some platforms(ex: mt6779) have a new register called by REG_MMU_WR_LEN to improve performance. This patch add this register definition. Signed-off-by: Chao Hao --- drivers/iommu/mtk_iommu.c | 10 ++ drivers/iommu/mtk_iommu.h | 2 ++ 2 files changed, 12 insertions(+) diff --git

[PATCH v4 7/7] iommu/mediatek: Add mt6779 basic support

2020-06-16 Thread Chao Hao
1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. 2. Change PROTECT_PA_ALIGN from 128 byte to 256 byte. 3. For REG_MMU_CTRL_REG register, we only need to change bit[2:0], others bits keep default value, ex: enable victim tlb.

[PATCH v4 2/7] iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL

2020-06-16 Thread Chao Hao
For iommu offset=0x48 register, only the previous mt8173/mt8183 use the name STANDARD_AXI_MODE, all the latest SoC extend the register more feature by different bits, for example: axi_mode, in_order_en, coherent_en and so on. So rename REG_MMU_MISC_CTRL may be more proper. This patch only rename

[PATCH v4 1/7] dt-bindings: mediatek: Add bindings for MT6779

2020-06-16 Thread Chao Hao
This patch adds description for MT6779 IOMMU. MT6779 has two iommus, they are mm_iommu and apu_iommu which both use ARM Short-Descriptor translation format. In addition, mm_iommu and apu_iommu are two independent HW instance , we need to set them separately. The MT6779 IOMMU hardware diagram is

Re: [PATCH v6 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-06-16 Thread Shakeel Butt
On Tue, Jun 16, 2020 at 7:50 PM Roman Gushchin wrote: > > On Tue, Jun 16, 2020 at 06:52:09PM -0700, Shakeel Butt wrote: > > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > > > To convert memcg and lruvec slab counters to bytes there must be > > > a way to change these counters

RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver as module

2020-06-16 Thread Aisheng Dong
> From: Anson Huang > Sent: Tuesday, June 16, 2020 6:44 PM > > > Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl > > driver as module > > > > > From: Anson Huang > > > Sent: Thursday, June 11, 2020 7:35 PM > > > > > > To support building i.MX SCU pinctrl driver as module,

Re: [PATCH v6 02/19] mm: memcg: prepare for byte-sized vmstat items

2020-06-16 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > To implement per-object slab memory accounting, we need to > convert slab vmstat counters to bytes. Actually, out of > 4 levels of counters: global, per-node, per-memcg and per-lruvec > only two last levels will require byte-sized counters.

[PATCH v2] drivers/virt/fsl_hypervisor: Correcting error handling path

2020-06-16 Thread Souptick Joarder
First, when memory allocation for sg_list_unaligned failed, there is no point of calling put_pages() as we haven't pinned any pages. Second, if get_user_pages_fast() failed we should unpinned num_pinned pages, no point of checking till num_pages. This will address both. Signed-off-by: Souptick

Re: [PATCH v6 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-06-16 Thread Roman Gushchin
On Tue, Jun 16, 2020 at 06:52:09PM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > To convert memcg and lruvec slab counters to bytes there must be > > a way to change these counters without touching node counters. > > Factor out

[PATCH v2] usb: gadget: u_serial: improve performance for large data

2020-06-16 Thread Macpaul Lin
Nowadays some embedded systems use VCOM to transfer large log and data. Take LTE MODEM as an example, during the long debugging stage, large log and data were transfer through VCOM when doing field try or in operator's lab. Here we suggest slightly increase the transfer buffer in u_serial.c for

Re: [PATCH v6 00/19] The new cgroup slab memory controller

2020-06-16 Thread Roman Gushchin
On Tue, Jun 16, 2020 at 06:46:56PM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > This is v6 of the slab cgroup controller rework. > > > > The patchset moves the accounting from the page level to the object > > level. It allows to share slab pages

  1   2   3   4   5   6   7   8   9   10   >