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

2020-07-09 Thread Michael S. Tsirkin
On Fri, Jul 10, 2020 at 07:39:26AM +0200, Eugenio Perez Martin wrote: > > > How about playing with the batch size? Make it a mod parameter instead > > > of the hard coded 64, and measure for all values 1 to 64 ... > > > > > > Right, according to the test result, 64 seems to be too aggressive in >

[v2 PATCH] usb: xhci-mtk: fix the failure of bandwidth allocation

2020-07-09 Thread Chunfeng Yun
The wMaxPacketSize field of endpoint descriptor may be zero as default value in alternate interface, and they are not actually selected when start stream, so skip them when try to allocate bandwidth. Cc: stable Fixes: 0cbd4b34cda9("xhci: mediatek: support MTK xHCI host controller")

Re: [PATCH] usb: xhci-mtk: fix the failure of bandwidth allocation

2020-07-09 Thread Chunfeng Yun
On Fri, 2020-07-10 at 11:14 +0800, Nicolas Boichat wrote: > On Fri, Jul 10, 2020 at 10:30 AM Chunfeng Yun > wrote: > > > > The wMaxPacketSize field of endpoint descriptor may be zero > > as default value in alternate interface, and they are not > > actually selected when start stream, so skip

fbconsole needs more parameter validations.

2020-07-09 Thread Tetsuo Handa
Hello. While trying to debug https://syzkaller.appspot.com/bug?extid=017265e8553724e514e8 , I noticed that a crash can happen without opening /dev/ttyXX . For example, while a driver which syzbot is reporting accepts screen with var.xres = var.yres = 0 (and a crash is not visible until trying

Re: [PATCH 1/5] lib: Add a generic version of devmem_is_allowed()

2020-07-09 Thread Nick Kossifidis
Στις 2020-07-10 08:38, Christoph Hellwig έγραψε: On Thu, Jul 09, 2020 at 11:49:21PM +0300, Mike Rapoport wrote: > +#ifndef CONFIG_GENERIC_DEVMEM_IS_ALLOWED > +extern int devmem_is_allowed(unsigned long pfn); > +#endif Nit: no need for the extern here. > +config GENERIC_LIB_DEVMEM_IS_ALLOWED

[PATCH] vt: Reject zero-sized screen buffer size.

2020-07-09 Thread Tetsuo Handa
syzbot is reporting general protection fault in do_con_write() [1] caused by vc->vc_screenbuf == ZERO_SIZE_PTR caused by vc->vc_screenbuf_size == 0 caused by vc->vc_cols == vc->vc_rows == vc->vc_size_row == 0 being passed to ioctl(FBIOPUT_VSCREENINFO) request on /dev/fb0 , for gotoxy(vc, 0, 0)

Re: [PATCH 1/5] lib: Add a generic version of devmem_is_allowed()

2020-07-09 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 08:48:17AM +0300, Nick Kossifidis wrote: > 2020-07-10 08:38, Christoph Hellwig : > > On Thu, Jul 09, 2020 at 11:49:21PM +0300, Mike Rapoport wrote: > > > > +#ifndef CONFIG_GENERIC_DEVMEM_IS_ALLOWED > > > > +extern int devmem_is_allowed(unsigned long

Re: [PATCH] ARM: dts: prima: Align L2 cache-controller nodename with dtschema

2020-07-09 Thread Barry Song
Krzysztof Kozlowski 于2020年6月26日周五 下午8:06写道: > > Fix dtschema validator warnings like: > l2-cache-controller@8004: $nodename:0: > 'l2-cache-controller@8004' does not match > '^(cache-controller|cpu)(@[0-9a-f,]+)*$' > > Signed-off-by: Krzysztof Kozlowski Acked-by: Barry Song

RE: [PATCH v3 4/4] iommu/vt-d: Add page response ops support

2020-07-09 Thread Tian, Kevin
> From: Lu Baolu > Sent: Friday, July 10, 2020 1:37 PM > > Hi Kevin, > > On 2020/7/10 10:42, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Thursday, July 9, 2020 3:06 PM > >> > >> After page requests are handled, software must respond to the device > >> which raised the page request with

Beginning 5.8rc1 kernel USB headsets (ASUS ROG Delta and HyperX Cloud Orbit S) play sound as if in slow-motion.

2020-07-09 Thread Mikhail Gavrilov
Beginning 5.8rc1 (git 69119673bd50) kernel USB headsets (ASUS ROG Delta and HyperX Cloud Orbit S) play sound as if in slow-motion. And in 5.8rc4 (git dcde237b9b0e) this still not fixed yet. The bisecting is problematic because rc1 also has another issue https://lkml.org/lkml/2020/6/22/21 which

[rcu:dev.2020.07.09a] BUILD SUCCESS f40a25f3eefe71e02df81089e3331eb271ff55be

2020-07-09 Thread kernel test robot
defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200709 i386 randconfig-a001-20200709 i386

[rcu:dev.2020.07.08a] BUILD SUCCESS cb2d297b305225704e58759373684f365ae103d4

2020-07-09 Thread kernel test robot
allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200709 i386 randconfig-a001-20200709 i386 randconfig-a006

Re: [linux-sunxi] [PATCH 01/16] ASoC: sun4i-i2s: Add support for H6 I2S

2020-07-09 Thread Samuel Holland
On 7/4/20 6:38 AM, Clément Péron wrote: > From: Jernej Skrabec > > H6 I2S is very similar to that in H3, except it supports up to 16 > channels. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > sound/soc/sunxi/sun4i-i2s.c | 227

Re: [linux-sunxi] [PATCH 02/16] ASoC: sun4i-i2s: Adjust LRCLK width

2020-07-09 Thread Samuel Holland
On 7/4/20 6:38 AM, Clément Péron wrote: > From: Marcus Cooper > > Some codecs such as i2s based HDMI audio and the Pine64 DAC require > a different amount of bit clocks per frame than what is calculated > by the sample width. Use the values obtained by the tdm slot bindings > to adjust the LRCLK

Re: [linux-sunxi] [PATCH 05/16] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-07-09 Thread Samuel Holland
On 7/4/20 6:38 AM, Clément Péron wrote: > From: Marcus Cooper > > Extend the functionality of the driver to include support of 20 and > 24 bits per sample. > > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > sound/soc/sunxi/sun4i-i2s.c | 11 +-- > 1 file changed,

Re: [linux-sunxi] [PATCH 04/16] ASoC: sun4i-i2s: Set sign extend sample

2020-07-09 Thread Samuel Holland
On 7/4/20 6:38 AM, Clément Péron wrote: > From: Marcus Cooper > > On the newer SoCs such as the H3 and A64 this is set by default > to transfer a 0 after each sample in each slot. However the A10 > and A20 SoCs that this driver was developed on had a default > setting where it padded the audio

[PATCH 2/2] Input: elan_i2c - High resolution report for new pattern 2.

2020-07-09 Thread Jingle Wu
Due to the higer resolution touchpads would be produced, The mainly modifications were as below: 1. the former resolution bits were not enough. Extend the resolution bits from 12 to 16 bits. 2. Increase the report ID 0x60 for higher resoltion of touchpads. 3. Move the position of mk value in the

[PATCH 1/2] Input: elan_i2c - Add ic type 0x11 0x13 0x14.

2020-07-09 Thread Jingle Wu
Modify the iap method for all IC. Get the correct value of ic_type for old and new pattern of firmware. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c.h | 6 +- drivers/input/mouse/elan_i2c_core.c | 52 - drivers/input/mouse/elan_i2c_i2c.c | 109

RE: [PATCH v3 06/14] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-09 Thread Liu, Yi L
Hi Alex, > From: Alex Williamson > Sent: Thursday, July 9, 2020 10:28 PM > > On Thu, 9 Jul 2020 07:16:31 + > "Liu, Yi L" wrote: > > > Hi Alex, > > > > After more thinking, looks like adding a r-b tree is still not enough to > > solve the potential problem for free a range of PASID in one

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

2020-07-09 Thread Eugenio Perez Martin
On Fri, Jul 10, 2020 at 5:56 AM Jason Wang wrote: > > > On 2020/7/10 上午1:37, Michael S. Tsirkin wrote: > > On Thu, Jul 09, 2020 at 06:46:13PM +0200, Eugenio Perez Martin wrote: > >> On Wed, Jul 1, 2020 at 4:10 PM Jason Wang wrote: > >>> > >>> On 2020/7/1 下午9:04, Eugenio Perez Martin wrote: >

Re: [PATCH 1/5] lib: Add a generic version of devmem_is_allowed()

2020-07-09 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 11:49:21PM +0300, Mike Rapoport wrote: > > +#ifndef CONFIG_GENERIC_DEVMEM_IS_ALLOWED > > +extern int devmem_is_allowed(unsigned long pfn); > > +#endif Nit: no need for the extern here. > > +config GENERIC_LIB_DEVMEM_IS_ALLOWED > > + bool > > + select

Re: Linux kernel in-tree Rust support

2020-07-09 Thread Josh Triplett
On Thu, Jul 09, 2020 at 11:41:47AM -0700, Nick Desaulniers wrote: > Hello folks, > I'm working on putting together an LLVM "Micro Conference" for the > upcoming Linux Plumbers Conf > (https://www.linuxplumbersconf.org/event/7/page/47-attend). It's not > solidified yet, but I would really like to

Re: [PATCH v3 4/4] iommu/vt-d: Add page response ops support

2020-07-09 Thread Lu Baolu
Hi Kevin, On 2020/7/10 10:42, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, July 9, 2020 3:06 PM After page requests are handled, software must respond to the device which raised the page request with the result. This is done through the iommu ops.page_response if the request was reported

[RESEND: PATCH v5 1/4] regulator: Allow regulators to verify enabled during enable()

2020-07-09 Thread Sumit Semwal
Some regulators might need to verify that they have indeed been enabled after the enable() call is made and enable_time delay has passed. This is implemented by repeatedly checking is_enabled() upto poll_enabled_time, waiting for the already calculated enable delay in each iteration.

[RESEND PATCH v5 3/4] arm64: dts: qcom: pmi8998: Add nodes for LAB and IBB regulators

2020-07-09 Thread Sumit Semwal
From: Nisha Kumari This patch adds devicetree nodes for LAB and IBB regulators. Signed-off-by: Nisha Kumari Signed-off-by: Sumit Semwal [sumits: Updated for better compatible strings and names] --- v5: sumits: removed interrupt-names, since there is only one interrupt per node

[RESEND PATCH v5 2/4] dt-bindings: regulator: Add labibb regulator

2020-07-09 Thread Sumit Semwal
From: Nisha Kumari Adding the devicetree binding for labibb regulator. Signed-off-by: Nisha Kumari Signed-off-by: Sumit Semwal [sumits: cleanup as per review comments and update to yaml] --- v5: Addressed review comments - removed interrupt-names, changed to dual license, added

Re: a question of split_huge_page

2020-07-09 Thread Mika Penttilä
On 10.7.2020 7.51, Alex Shi wrote: > > 在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: >> On Thu, Jul 09, 2020 at 04:50:02PM +0100, Matthew Wilcox wrote: >>> On Thu, Jul 09, 2020 at 11:11:11PM +0800, Alex Shi wrote: Hi Kirill & Matthew, In the func call chain, from split_huge_page()

[PATCH] spi: spi-cadence: add support for chip select high

2020-07-09 Thread Shreyas Joshi
spi cadence driver should support spi-cs-high in mode bits so that the peripherals that needs the chip select to be high active can use it. Add the SPI-CS-HIGH flag in the supported mode bits. Signed-off-by: Shreyas Joshi --- drivers/spi/spi-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1

[RESEND: PATCH v5 0/4] Qualcomm labibb regulator driver

2020-07-09 Thread Sumit Semwal
This series adds a driver for LAB/IBB regulators found on some Qualcomm SoCs. These regulators provide positive and/or negative boost power supplies for LCD/LED display panels connected to the SoC. This series adds the support for pmi8998 PMIC found in SDM845 family of SoCs. Changes from v4: -

[RESEND PATCH v5 4/4] regulator: qcom: Add labibb driver

2020-07-09 Thread Sumit Semwal
From: Nisha Kumari Qualcomm platforms have LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) regulators, labibb for short, which are used as power supply for LCD Mode displays. This patch adds labibb regulator driver for pmi8998 PMIC, found on SDM845 platforms. Signed-off-by: Nisha Kumari

[PATCH v2 2/3] powerpc/powernv/idle: save-restore DAWR0,DAWRX0 for P10

2020-07-09 Thread Pratik Rajesh Sampat
Additional registers DAWR0, DAWRX0 may be lost on Power 10 for stop levels < 4. Therefore save the values of these SPRs before entering a "stop" state and restore their values on wakeup. Signed-off-by: Pratik Rajesh Sampat --- arch/powerpc/platforms/powernv/idle.c | 10 ++ 1 file

[PATCH v2 1/3] powerpc/powernv/idle: Exclude mfspr on HID1,4,5 on P9 and above

2020-07-09 Thread Pratik Rajesh Sampat
POWER9 onwards the support for the registers HID1, HID4, HID5 has been receded. Although mfspr on the above registers worked in Power9, In Power10 simulator is unrecognized. Moving their assignment under the check for machines lower than Power9 Signed-off-by: Pratik Rajesh Sampat Reviewed-by:

[PATCH v2 3/3] powerpc/powernv/idle: Rename pnv_first_spr_loss_level variable

2020-07-09 Thread Pratik Rajesh Sampat
Replace the variable name from using "pnv_first_spr_loss_level" to "pnv_first_fullstate_loss_level". As pnv_first_spr_loss_level is supposed to be the earliest state that has OPAL_PM_LOSE_FULL_CONTEXT set, however as shallow states too loose SPR values, render an incorrect terminology.

Re: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000

2020-07-09 Thread Xu Yilun
On Thu, Jul 09, 2020 at 06:00:40AM -0700, Tom Rix wrote: > > On 7/9/20 3:14 AM, Wu, Hao wrote: > >> On Thu, Jul 09, 2020 at 05:10:49PM +0800, Wu, Hao wrote: > Subject: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000 > > Add PCIe Device ID for Intel FPGA PAC N3000. >

Re: [PATCH 0/5] iommu/arm-smmu: Support maintaining bootloader mappings

2020-07-09 Thread John Stultz
On Wed, Jul 8, 2020 at 10:02 PM Bjorn Andersson wrote: > > Based on previous attempts and discussions this is the latest attempt at > inheriting stream mappings set up by the bootloader, for e.g. boot splash or > efifb. > > The first patch is an implementation of Robin's suggestion that we should

Re: [PATCH v3 3/4] iommu/vt-d: Report page request faults for guest SVA

2020-07-09 Thread Lu Baolu
Hi Kevin, On 2020/7/10 10:24, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, July 9, 2020 3:06 PM A pasid might be bound to a page table from a VM guest via the iommu ops.sva_bind_gpasid. In this case, when a DMA page fault is detected on the physical IOMMU, we need to inject the page

[PATCH v2 0/3] Power10 basic energy management

2020-07-09 Thread Pratik Rajesh Sampat
Changelog v1 --> v2: 1. Save-restore DAWR and DAWRX unconditionally as they are lost in shallow idle states too 2. Rename pnv_first_spr_loss_level to pnv_first_fullstate_loss_level to correct naming terminology Pratik Rajesh Sampat (3): powerpc/powernv/idle: Exclude mfspr on HID1,4,5 on P9 and

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

2020-07-09 Thread Linus Torvalds
On Thu, Jul 9, 2020 at 9:29 PM Naresh Kamboju wrote: > > Your patch applied and re-tested. > warning triggered 10 times. > > old: bfe0-c000 new: bfa0 (val: 7d530067) Hmm.. It's not even the overlapping case, it's literally just "move exactly 2MB of page tables exactly one pmd down".

Re: [RESEND PATCH 1/2] fpga: dfl: pci: reduce the scope of variable 'ret'

2020-07-09 Thread Xu Yilun
On Thu, Jul 09, 2020 at 06:18:18AM -0700, Tom Rix wrote: > I think a better change is to use the ret variable, like this > > --- a/drivers/fpga/dfl-pci.c > +++ b/drivers/fpga/dfl-pci.c > @@ -312,7 +312,7 @@ static int cci_pci_sriov_configure(struct pci_dev > *pcidev, int num_vfs) >   

RE: [PATCH] exfat: fix wrong size update of stream entry by typo

2020-07-09 Thread Namjae Jeon
> The stream.size field is updated to the value of create timestamp of the file > entry. Fix this to use > correct stream entry pointer. > > Fixes: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in > __exfat_truncate()") > Signed-off-by: Hyeongseok Kim My bad, Pushed it into exfat

[PATCH] selftests/livepatch: adopt to newer sysctl error format

2020-07-09 Thread Kamalesh Babulal
With procfs v3.3.16, the sysctl command doesn't prints the set key and value on error. This change breaks livepatch selftest test-ftrace.sh, that tests the interaction of sysctl ftrace_enabled: # selftests: livepatch: test-ftrace.sh # TEST: livepatch interaction with ftrace_enabled sysctl ...

Re: [PATCH] pinctrl: qcom: Handle broken PDC dual edge case on sc7180

2020-07-09 Thread Maulik Shah
Hi Doug, On 7/9/2020 2:46 AM, Douglas Anderson wrote: As per Qualcomm, there is a PDC hardware issue (with the specific IP rev that exists on sc7180) that causes the PDC not to work properly when configured to handle dual edges. Let's work around this by emulating only ever letting our parent

Re: [PATCH 2/4] interconnect: Add get_bw() callback

2020-07-09 Thread Mike Tipton
On 7/9/2020 4:07 AM, Georgi Djakov wrote: The interconnect controller hardware may support querying the current bandwidth settings, so add a callback for providers to implement this functionality if supported. Signed-off-by: Georgi Djakov --- drivers/interconnect/core.c | 3 ++-

Re: [PATCH 1/4] interconnect: Add sync state support

2020-07-09 Thread Mike Tipton
On 7/9/2020 4:07 AM, Georgi Djakov wrote: The bootloaders often do some initial configuration of the interconnects in the system and we want to keep this configuration until all consumers have probed and expressed their bandwidth needs. This is because we don't want to change the configuration

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-07-09 Thread Sean Christopherson
On Fri, Jul 10, 2020 at 12:11:54AM +0200, Paolo Bonzini wrote: > On 09/07/20 23:50, Peter Xu wrote: > >> Sean: Objection your honor. > >> Paolo: Overruled, you're wrong. > >> Sean: Phooey. > >> > >> My point is that even though I still object to this series, Paolo has final > >> say. > > > > I

drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 weeks ago config: mips-randconfig-s031-20200710 (attached

[PATCH] Restore gcc check in mips asm/unroll.h

2020-07-09 Thread Cesar Eduardo Barros
While raising the gcc version requirement to 4.9, the compile-time check in the unroll macro was accidentally changed from being used on gcc and clang to being used on clang only. Restore the gcc check, changing it from "gcc >= 4.7" to "all gcc". Fixes: 6ec4476ac825 ("Raise gcc version

Re: a question of split_huge_page

2020-07-09 Thread Alex Shi
在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: > On Thu, Jul 09, 2020 at 04:50:02PM +0100, Matthew Wilcox wrote: >> On Thu, Jul 09, 2020 at 11:11:11PM +0800, Alex Shi wrote: >>> Hi Kirill & Matthew, >>> >>> In the func call chain, from split_huge_page() to lru_add_page_tail(), >>> Seems tail pages

Re: [PATCH v2 0/2] spi: spi-qcom-qspi: Avoid some per-transfer overhead

2020-07-09 Thread Akash Asthana
On 7/9/2020 8:21 PM, Douglas Anderson wrote: Not to be confused with the similar series I posed for the _other_ Qualcomm SPI controller (spi-geni-qcom) [1], this one avoids the overhead on the Quad SPI controller. It's based atop the current Qualcomm tree including Rajendra's ("spi:

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

2020-07-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/spi/spi.c between commit: 60a883d119ab ("spi: use kthread_create_worker() helper") from the spi tree and commit: 3070da33400c ("sched,spi: Convert to sched_set_fifo*()") from the tip tree. I fixed it up (see

Re: [PATCH v2] spi: spi-geni-qcom: Set the clock properly at runtime resume

2020-07-09 Thread Akash Asthana
On 7/9/2020 8:10 PM, Douglas Anderson wrote: In the patch ("spi: spi-geni-qcom: Avoid clock setting if not needed") we avoid a whole pile of clock code. As part of that, we should have restored the clock at runtime resume. Do that. It turns out that, at least with today's configurations,

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

2020-07-09 Thread Brian Gerst
On Thu, Jul 9, 2020 at 6:30 AM Peter Zijlstra wrote: > > On Sat, May 30, 2020 at 06:11:19PM -0400, Brian Gerst wrote: > > + if (0) {\ > > + typeof(_var) pto_tmp__; \ > > + pto_tmp__

Re: [PATCH] proc/sysctl: make protected_* world readable

2020-07-09 Thread Kees Cook
On Thu, Jul 09, 2020 at 04:51:15PM -0700, Julius Hemanth Pitti wrote: > protected_* files have 600 permissions which prevents > non-superuser from reading them. > > Container like "AWS greengrass" refuse to launch unless > protected_hardlinks and protected_symlinks are set. When > containers like

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

2020-07-09 Thread Naresh Kamboju
On Fri, 10 Jul 2020 at 00:42, Linus Torvalds wrote: > > On Wed, Jul 8, 2020 at 10:28 PM Naresh Kamboju > wrote: > > > > While running LTP mm test suite on i386 or qemu_i386 this kernel warning > > has been noticed from stable 5.4 to stable 5.7 branches and mainline > > 5.8.0-rc4 > > and linux

Re: [PATCH] KVM: x86/mmu: Add capability to zap only sptes for the affected memslot

2020-07-09 Thread Sean Christopherson
+Alex, whom I completely spaced on Cc'ing. Alex, this is related to the dreaded VFIO memslot zapping issue from last year. Start of thread: https://patchwork.kernel.org/patch/11640719/. The TL;DR of below: can you try the attached patch with your reproducer from the original bug[*]? I honestly

Re: [PATCH] pinctrl: qcom: Handle broken PDC dual edge case on sc7180

2020-07-09 Thread Rajendra Nayak
On 7/9/2020 2:46 AM, Douglas Anderson wrote: As per Qualcomm, there is a PDC hardware issue (with the specific IP rev that exists on sc7180) that causes the PDC not to work properly when configured to handle dual edges. Let's work around this by emulating only ever letting our parent see

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Daeho Jeong
To handle that case, I think we need to handle range.len(-1) differently. When range.len is -1, we need to find out every block belongs to the inode regardless of i_size and discard it. 2020년 7월 10일 (금) 오후 12:52, Jaegeuk Kim 님이 작성: > > On 07/10, Chao Yu wrote: > > On 2020/7/10 11:31, Jaegeuk Kim

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-09 Thread Ezequiel Garcia
Hello Jonas, In the context of the uAPI cleanup, I'm revisiting this patch. On Sun, 2019-09-01 at 12:45 +, Jonas Karlman wrote: > Add DPB entry flags to help indicate when a reference frame is a field picture > and how the DPB entry is referenced, top or bottom field or full frame. > >

drivers/clk/clk-hsdk-pll.c:407:24: sparse: expected void

2020-07-09 Thread kernel test robot
Hi Stephen, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable date: 9

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

2020-07-09 Thread Naresh Kamboju
On Thu, 9 Jul 2020 at 13:55, Arnd Bergmann wrote: > > On Thu, Jul 9, 2020 at 7:28 AM Naresh Kamboju > wrote: > > > > While running LTP mm test suite on i386 or qemu_i386 this kernel warning > > has been noticed from stable 5.4 to stable 5.7 branches and mainline > > 5.8.0-rc4 > > and linux

Re: [PATCH v2] spi: spi-geni-qcom: Set the clock properly at runtime resume

2020-07-09 Thread Rajendra Nayak
On 7/9/2020 8:10 PM, Douglas Anderson wrote: In the patch ("spi: spi-geni-qcom: Avoid clock setting if not needed") we avoid a whole pile of clock code. As part of that, we should have restored the clock at runtime resume. Do that. It turns out that, at least with today's configurations,

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

2020-07-09 Thread Doug Anderson
Hi, On Thu, Jul 9, 2020 at 8:43 PM Steev Klimaszewski wrote: > > > On 7/9/20 10:17 PM, Steev Klimaszewski wrote: > > > > On 7/9/20 10:12 PM, Steev Klimaszewski wrote: > >> > >> On 7/9/20 9:14 PM, Doug Anderson wrote: > >>> Hi, > >>> > >>> On Thu, Jul 9, 2020 at 6:38 PM Doug Anderson > >>>

[PATCH][v2] intel_idle: Customize IceLake server support

2020-07-09 Thread Chen Yu
On ICX platform, the CPU frequency will slowly ramp up when woken up from C-states deeper than/equals to C1E. Although this feature does save energy in many cases this might also cause unexpected result. For example, workload might get unstable performance due to the uncertainty of CPU frequency.

mmotm 2020-07-09-21-00 uploaded

2020-07-09 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-07-09-21-00 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

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

2020-07-09 Thread Jason Wang
On 2020/7/10 上午1:37, Michael S. Tsirkin wrote: On Thu, Jul 09, 2020 at 06:46:13PM +0200, Eugenio Perez Martin wrote: On Wed, Jul 1, 2020 at 4:10 PM Jason Wang wrote: On 2020/7/1 下午9:04, Eugenio Perez Martin wrote: On Wed, Jul 1, 2020 at 2:40 PM Jason Wang wrote: On 2020/7/1 下午6:43,

Re:

2020-07-09 Thread Susana Maleane
Hello, I am 64yrs and I am intermediary / direct mandate to reliable end seller refineries, who are capable of supplying the below listed products. these products are currently available D2,D6,M-100,JP54, Aviation Kerosene TS1,REBCO,AGO,LNG,LPG,SN500, Bio-Diesel. please reply if you have

[PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-09 Thread Barry Song
Rather than splitting huge_cma in online nodes, it is better to do it in nodes with memory. Without this patch, for an ARM64 server with four numa nodes and only node0 has memory. If I set hugetlb_cma=4G in bootargs, without this patch, I got the below printk: hugetlb_cma: reserve 4096 MiB, up to

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Jaegeuk Kim
On 07/10, Chao Yu wrote: > On 2020/7/10 11:31, Jaegeuk Kim wrote: > > On 07/10, Chao Yu wrote: > >> On 2020/7/10 11:02, Jaegeuk Kim wrote: > >>> On 07/10, Daeho Jeong wrote: > From: Daeho Jeong > > Changed the way of handling range.len of F2FS_IOC_SEC_TRIM_FILE. > 1. Added -1

Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data

2020-07-09 Thread Jaegeuk Kim
On 07/10, Chao Yu wrote: > On 2020/7/10 11:26, Jaegeuk Kim wrote: > > On 07/10, Chao Yu wrote: > >> On 2020/7/10 3:05, Jaegeuk Kim wrote: > >>> On 07/09, Chao Yu wrote: > On 2020/7/9 13:30, Jaegeuk Kim wrote: > > It doesn't need to bypass flushing quota data in background. > >

[PATCH] MAINTAINERS: Add entry for Broadcom BDC driver

2020-07-09 Thread Florian Fainelli
The Broadcom BDC driver did not have a MAINTAINERS entry which made it escape review from Al and myself, add an entry so the relevant mailing lists and people are copied. Signed-off-by: Florian Fainelli --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS

Re: [PATCH] Documentation/security-bugs: Explain why plain text is preferred

2020-07-09 Thread Willy Tarreau
On Thu, Jul 09, 2020 at 09:42:56PM +0100, Will Deacon wrote: > Acked-by: Will Deacon > > Hopefully "plain text" implies unencrypted as much as it does "not html". I would have liked "(i.e. not html)" to be added after "plain text", but I figured that those who do that often don't even know what

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

2020-07-09 Thread Steev Klimaszewski
On 7/9/20 10:17 PM, Steev Klimaszewski wrote: On 7/9/20 10:12 PM, Steev Klimaszewski wrote: On 7/9/20 9:14 PM, Doug Anderson wrote: Hi, On Thu, Jul 9, 2020 at 6:38 PM Doug Anderson wrote: Hi, On Thu, Jul 9, 2020 at 6:19 PM Steev Klimaszewski wrote: Hi Doug, I've been testing 5.8

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

2020-07-09 Thread Anshuman Khandual
On 07/09/2020 11:12 PM, Zi Yan wrote: > On 9 Jul 2020, at 12:39, Randy Dunlap wrote: > >> On 7/9/20 9:34 AM, Zi Yan wrote: >>> On 9 Jul 2020, at 11:34, Randy Dunlap wrote: >>> Hi, I have a few comments on this. a. I reported it very early and should have been Cc-ed.

Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data

2020-07-09 Thread Chao Yu
On 2020/7/10 11:26, Jaegeuk Kim wrote: > On 07/10, Chao Yu wrote: >> On 2020/7/10 3:05, Jaegeuk Kim wrote: >>> On 07/09, Chao Yu wrote: On 2020/7/9 13:30, Jaegeuk Kim wrote: > It doesn't need to bypass flushing quota data in background. The condition is used to flush quota data

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Chao Yu
On 2020/7/10 11:31, Jaegeuk Kim wrote: > On 07/10, Chao Yu wrote: >> On 2020/7/10 11:02, Jaegeuk Kim wrote: >>> On 07/10, Daeho Jeong wrote: From: Daeho Jeong Changed the way of handling range.len of F2FS_IOC_SEC_TRIM_FILE. 1. Added -1 value support for range.len to signify

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

2020-07-09 Thread Randy Dunlap
On 7/9/20 8:30 PM, Anshuman Khandual wrote: > > On 07/09/2020 09:04 PM, Randy Dunlap wrote: >> Hi, >> >> I have a few comments on this. >> >> a. I reported it very early and should have been Cc-ed. > > I should have Cc-ed you on this V4 patch, sorry about that. > >> >> b. A patch that applies

Re: [PATCH] sysctl: add bound to panic_timeout to prevent overflow

2020-07-09 Thread Randy Dunlap
On 7/9/20 8:22 PM, Changming Liu wrote: > Function panic() in kernel/panic.c will use panic_timeout > multiplying 1000 as a loop boundery. So this multiplication boundary. > can overflow when panic_timeout is greater than (INT_MAX/1000). > And this results in a

Re: [PATCH] cpufreq: intel_pstate: Fix static checker warning for epp variable

2020-07-09 Thread Viresh Kumar
On 09-07-20, 13:05, Srinivas Pandruvada wrote: > Fix warning for: > drivers/cpufreq/intel_pstate.c:731 store_energy_performance_preference() > error: uninitialized symbol 'epp'. > > This warning is for a case, when energy_performance_preference attribute > matches pre defined strings. In this

[PATCH] usb: gadget: bdc: use readl_poll_timeout() to simplify code

2020-07-09 Thread Chunfeng Yun
Use readl_poll_timeout() to poll register status Signed-off-by: Chunfeng Yun --- drivers/usb/gadget/udc/bdc/bdc_core.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index

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

2020-07-09 Thread Anshuman Khandual
On 07/09/2020 09:04 PM, Randy Dunlap wrote: > Hi, > > I have a few comments on this. > > a. I reported it very early and should have been Cc-ed. I should have Cc-ed you on this V4 patch, sorry about that. > > b. A patch that applies to mmotm or linux-next would have been better > than a

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Jaegeuk Kim
On 07/10, Chao Yu wrote: > On 2020/7/10 11:02, Jaegeuk Kim wrote: > > On 07/10, Daeho Jeong wrote: > >> From: Daeho Jeong > >> > >> Changed the way of handling range.len of F2FS_IOC_SEC_TRIM_FILE. > >> 1. Added -1 value support for range.len to signify the end of file. > >> 2. If the end of the

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

2020-07-09 Thread Masami Hiramatsu
On Thu, 9 Jul 2020 07:36:54 -0700 Andi Kleen wrote: > > diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c > > index 1e95a336862c..671176d39569 100644 > > --- a/tools/perf/util/probe-event.c > > +++ b/tools/perf/util/probe-event.c > > @@ -379,6 +379,11 @@ static int

Re: [PATCH v2 5/5] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module

2020-07-09 Thread John Stultz
On Thu, Jul 2, 2020 at 7:18 AM Will Deacon wrote: > On Thu, Jun 25, 2020 at 12:10:39AM +, John Stultz wrote: > > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > > index b510f67dfa49..714893535dd2 100644 > > --- a/drivers/iommu/Kconfig > > +++ b/drivers/iommu/Kconfig > > @@ -381,6

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Jaegeuk Kim
On 07/09, Eric Biggers wrote: > On Thu, Jul 09, 2020 at 08:20:35PM -0700, Jaegeuk Kim wrote: > > On 07/10, Daeho Jeong wrote: > > > 1. The valid data will be within i_size. > > > 2. All the trim operations will be done in a unit of block, even if > > > i_size is not aligned with BLKSIZE like the

Re: [PATCH] arm64: topology: Don't support AMU without cpufreq

2020-07-09 Thread Viresh Kumar
On 09-07-20, 13:46, Ionela Voinescu wrote: > I saw this case during FVP testing, although I acknowledge the 'virtual' > part of that platform [1]. But allowing this does enable AMU testing on > an AEM FVP. In kernel, we only support things that are in mainline, else we don't care about them.

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Eric Biggers
On Thu, Jul 09, 2020 at 08:20:35PM -0700, Jaegeuk Kim wrote: > On 07/10, Daeho Jeong wrote: > > 1. The valid data will be within i_size. > > 2. All the trim operations will be done in a unit of block, even if > > i_size is not aligned with BLKSIZE like the below. > > > > index =

Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data

2020-07-09 Thread Jaegeuk Kim
On 07/10, Chao Yu wrote: > On 2020/7/10 3:05, Jaegeuk Kim wrote: > > On 07/09, Chao Yu wrote: > >> On 2020/7/9 13:30, Jaegeuk Kim wrote: > >>> It doesn't need to bypass flushing quota data in background. > >> > >> The condition is used to flush quota data in batch to avoid random > >> small-sized

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-09 Thread Qian Cai
> On Jul 9, 2020, at 9:38 PM, Feng Tang wrote: > > Give it a second thought, my previous way has more indents and lines, > but it is easier to be understood that we have special handling for > 'write' case. So I would prefer using it. > > Thoughts? I don’t feel it is easier to understand.

Re: [PATCH v2 2/2] soc: mediatek: add mtk-devapc driver

2020-07-09 Thread Neal Liu
Hi Chun-Kuang, Thanks for your review. On Thu, 2020-07-09 at 21:01 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年7月9日 週四 下午5:13寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > >

[PATCH] sysctl: add bound to panic_timeout to prevent overflow

2020-07-09 Thread Changming Liu
Function panic() in kernel/panic.c will use panic_timeout multiplying 1000 as a loop boundery. So this multiplication can overflow when panic_timeout is greater than (INT_MAX/1000). And this results in a zero-delay panic, instead of a huge timeout as the user intends. Fix this by adding bound

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Chao Yu
On 2020/7/10 11:02, Jaegeuk Kim wrote: > On 07/10, Daeho Jeong wrote: >> From: Daeho Jeong >> >> Changed the way of handling range.len of F2FS_IOC_SEC_TRIM_FILE. >> 1. Added -1 value support for range.len to signify the end of file. >> 2. If the end of the range passes over the end of file, it

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Jaegeuk Kim
On 07/10, Daeho Jeong wrote: > 1. The valid data will be within i_size. > 2. All the trim operations will be done in a unit of block, even if > i_size is not aligned with BLKSIZE like the below. > > index = F2FS_BYTES_TO_BLK(range.start); > pg_end = DIV_ROUND_UP(end_addr,

Re: [f2fs-dev] [PATCH] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-09 Thread Daeho Jeong
1. The valid data will be within i_size. 2. All the trim operations will be done in a unit of block, even if i_size is not aligned with BLKSIZE like the below. index = F2FS_BYTES_TO_BLK(range.start); pg_end = DIV_ROUND_UP(end_addr, F2FS_BLKSIZE); <= BLKSIZE aligned Are you

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

2020-07-09 Thread Steev Klimaszewski
On 7/9/20 10:12 PM, Steev Klimaszewski wrote: On 7/9/20 9:14 PM, Doug Anderson wrote: Hi, On Thu, Jul 9, 2020 at 6:38 PM Doug Anderson wrote: Hi, On Thu, Jul 9, 2020 at 6:19 PM Steev Klimaszewski wrote: Hi Doug, I've been testing 5.8 and linux-next on the Lenovo Yoga C630, and with

[PATCH 1/2] mm/memory_hotplug: introduce default dummy memory_add_physaddr_to_nid()

2020-07-09 Thread Jia He
This is to introduce a general dummy helper. memory_add_physaddr_to_nid() is a fallback option to get the nid in case NUMA_NO_NID is detected. After this patch, arm64/sh/s390 can simply use the general dummy version. PowerPC/x86/ia64 will still use their specific version. This is the preparation

[PATCH 2/2] mm/memory_hotplug: fix unpaired mem_hotplug_begin/done

2020-07-09 Thread Jia He
When check_memblock_offlined_cb() returns failed rc(e.g. the memblock is online at that time), mem_hotplug_begin/done is unpaired in such case. Therefore a warning: Call Trace: percpu_up_write+0x33/0x40 try_remove_memory+0x66/0x120 ? _cond_resched+0x19/0x30 remove_memory+0x2b/0x40

[PATCH v4 0/2] Fix and enable pmem as RAM device on arm64

2020-07-09 Thread Jia He
This fixies a few issues when I tried to enable pmem as RAM device on arm64. To use memory_add_physaddr_to_nid as a fallback nid, it would be better implement a general version (__weak) in mm/memory_hotplug. After that, arm64/ sh/s390 can simply use the general version, and PowerPC/ia64/x86 will

Re: [PATCH] usb: xhci-mtk: fix the failure of bandwidth allocation

2020-07-09 Thread Nicolas Boichat
On Fri, Jul 10, 2020 at 10:30 AM Chunfeng Yun wrote: > > The wMaxPacketSize field of endpoint descriptor may be zero > as default value in alternate interface, and they are not > actually selected when start stream, so skip them when try to > allocate bandwidth. > > Cc: stable > Signed-off-by:

Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data

2020-07-09 Thread Chao Yu
On 2020/7/10 3:05, Jaegeuk Kim wrote: > On 07/09, Chao Yu wrote: >> On 2020/7/9 13:30, Jaegeuk Kim wrote: >>> It doesn't need to bypass flushing quota data in background. >> >> The condition is used to flush quota data in batch to avoid random >> small-sized udpate, did you hit any problem here? >

Re: [PATCH v4] mm/hugetlb: avoid hardcoding while checking if cma is enabled

2020-07-09 Thread Mike Kravetz
On 7/9/20 5:57 PM, Barry Song wrote: > hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has > no memory. so NULL hugetlb_cma[0] doesn't necessarily mean cma is not > enabled. gigantic pages might have been reserved on other nodes. > This patch fixes possible double reservation

  1   2   3   4   5   6   7   8   9   10   >