Re: [PATCH 2/6] media: camss: ispif: Correctly reset based on the VFE ID

2020-10-20 Thread Robert Foss
I found a build issue in this commit. On Tue, 20 Oct 2020 at 10:59, Robert Foss wrote: > > Nice catch! This patch looks good to me. > > Signed-off-by: Robert Foss > > On Sun, 18 Oct 2020 at 14:54, wrote: > > > > From: AngeloGioacchino Del Regno > > > > Resetting the ISPIF VFE0 context is

RE: [PATCH v3] drm/bridge: add it6505 driver

2020-10-20 Thread allen.chen
Hi sam This bridge will be used with mtk_dpi.c(https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/mediatek/mtk_dpi.c). Thanks for your comments. -Original Message- From: Sam Ravnborg [mailto:s...@ravnborg.org] Sent: Saturday, October 17, 2020 3:27 PM To: Allen Chen (陳柏宇)

[PATCH v22 04/18] mm/damon: Track dynamic monitoring target regions update

2020-10-20 Thread SeongJae Park
From: SeongJae Park The monitoring target address range can be dynamically changed. For example, virtual memory could be dynamically mapped and unmapped. Physical memory could be hot-plugged. As the changes could be quite frequent in some cases, DAMON checks the dynamic memory mapping changes

Re: [PATCH 1/2] fpga: dfl: add driver_override support

2020-10-20 Thread Xu Yilun
On Tue, Oct 20, 2020 at 09:32:59AM +0200, Greg KH wrote: > On Tue, Oct 20, 2020 at 03:11:58PM +0800, Xu Yilun wrote: > > I think it is normal case that a driver is successfully registered but > > doesn't match any device because it provides no id_table. > > How is that "normal"? What would ever

[PATCH resend] vgacon: fix a UAF in do_update_region()

2020-10-20 Thread Yang Yingliang
I got a UAF report in do_update_region() when I doing fuzz test. [ 51.161905] BUG: KASAN: use-after-free in do_update_region+0x579/0x600 [ 51.161918] Read of size 2 at addr 88800010 by task test/295 [ 51.161957] CPU: 2 PID: 295 Comm: test Not tainted 5.7.0+ #975 [ 51.161969]

Re: Segfault in pahole 1.18 when building kernel 5.9.1 for arm64

2020-10-20 Thread Jiri Slaby
Hi, On 19. 10. 20, 1:18, Érico Rolim wrote: I'm trying to build kernel 5.9.1 for arm64, and my dotconfig has `CONFIG_DEBUG_INFO_BTF=y`, which requires pahole for building. However, pahole version 1.18 segfaults during the build, as can be seen below: PAHOLE: Error: Found symbol of zero size

Re: [PATCH v3 0/4] clk: qcom : add sm8250 LPASS GFM drivers

2020-10-20 Thread Srinivas Kandagatla
On 19/10/2020 23:42, Stephen Boyd wrote: Quoting Srinivas Kandagatla (2020-10-16 07:12:37) This patchset adds support for GFM Muxes found in LPASS (Low Power Audio SubSystem) IP in Audio Clock Controller and Always ON clock controller. Clocks derived from these muxes are consumed by LPASS

[PATCH v22 02/18] mm/damon: Implement region based sampling

2020-10-20 Thread SeongJae Park
From: SeongJae Park DAMON separates its monitoring target address space independent high level logics from the target space dependent low level primitives for flexible support of various address spaces. This commit implements DAMON's target address space independent high level logics for basic

[PATCH v22 01/18] mm: Introduce Data Access MONitor (DAMON)

2020-10-20 Thread SeongJae Park
From: SeongJae Park DAMON is a data access monitoring framework for the Linux kernel. The core mechanisms of DAMON make it - accurate (the monitoring output is useful enough for DRAM level performance-centric memory management; It might be inappropriate for CPU Cache levels, though), -

[PATCH] power: suspend: Add suspend timeout handler

2020-10-20 Thread josephjang
On Tue, Oct 20, 2020 at 08:15:38AM +, josephj...@google.com wrote: > > On Tue, Oct 20, 2020 at 02:22:26PM +0800, Joseph Jang wrote: > > > Add sleep timer and timeout handler to prevent device stuck during > > suspend/ > > > resume process. The timeout handler will dump disk sleep task at

Reply

2020-10-20 Thread OSMAN
Hello, I hope this email meets you in good health, My names are Osman Jalloh and I am from Sierra Leone, I have some kilos of gold which I inherited from my late parents and I will like to ship it out to overseas for investment, I need a partner who can receive the gold and make arrangement for

[PATCH v22 03/18] mm/damon: Adaptively adjust regions

2020-10-20 Thread SeongJae Park
From: SeongJae Park Even somehow the initial monitoring target regions are well constructed to fulfill the assumption (pages in same region have similar access frequencies), the data access pattern can be dynamically changed. This will result in low monitoring quality. To keep the assumption

[PATCH v22 00/18] Introduce Data Access MONitor (DAMON)

2020-10-20 Thread SeongJae Park
From: SeongJae Park Changes from Previous Version (v21) === This version contains below minor changes. - Fix build warnings and errors (kernel test robot) - Fix a memory leak (kmemleak) - Respect KUNIT_ALL_TESTS - Rebase on v5.9 - Update the evaluation results

Re: [PATCH 3/5] x86/boot/compressed/64: Check SEV encryption in 64-bit boot-path

2020-10-20 Thread Joerg Roedel
On Mon, Oct 19, 2020 at 05:31:06PM -0400, Arvind Sankar wrote: > Is it possible to take advantage of this to make the check independent > of the original page tables? i.e. switch to the new pagetables, then > write into .data or .bss the opcodes for a function that does > movabs $imm64,

Re: [PATCH v6 3/6] drivers: hwmon: Add the iEi WT61P803 PUZZLE HWMON driver

2020-10-20 Thread Andy Shevchenko
On Tue, Oct 20, 2020 at 1:19 AM Luka Kovacic wrote: > > Add the iEi WT61P803 PUZZLE HWMON driver, that handles the fan speed > control via PWM, reading fan speed and reading on-board temperature > sensors. > > The driver registers a HWMON device and a simple thermal cooling device to > enable

Re: [PATCH 2/6] media: camss: ispif: Correctly reset based on the VFE ID

2020-10-20 Thread Robert Foss
Nice catch! This patch looks good to me. Signed-off-by: Robert Foss On Sun, 18 Oct 2020 at 14:54, wrote: > > From: AngeloGioacchino Del Regno > > Resetting the ISPIF VFE0 context is wrong if we are using the VFE1 > for dual-camera or simply because a secondary camera is connected > to it: in

Re: [PATCH] venus: venc: add handling for VIDIOC_ENCODER_CMD

2020-10-20 Thread Alexandre Courbot
Hi Dikshita, On Mon, Oct 19, 2020 at 11:29 PM Dikshita Agarwal wrote: > > Add handling for below commands in encoder: > 1. V4L2_ENC_CMD_STOP > 2. V4L2_ENC_CMD_START I suspect this can be implemented more easily (and more safely) using the m2m encoder helpers introduced recently. Please see this

Re: [PATCH v3 2/8] staging: qlge: Initialize devlink health dump framework

2020-10-20 Thread Shung-Hsi Yu
Hi, This patch trigger the following KASAN error inside qlge_init_device(). [...] general protection fault, probably for non-canonical address 0xdc4b: [#1] SMP DEBUG_PAGEALLOC KASAN PTI [...] KASAN: null-ptr-deref in range [0x0258-0x025f] [...] CPU: 0

Re: [perf metricgroup] fcc9c5243c: perf-sanity-tests.Parse_and_process_metrics.fail

2020-10-20 Thread kajoljain
On 10/19/20 9:50 PM, Ian Rogers wrote: > On Mon, Oct 19, 2020 at 2:51 AM John Garry wrote: >> >> On 19/10/2020 00:30, Ian Rogers wrote: >>> On Sun, Oct 18, 2020 at 1:51 AM kernel test robot >>> wrote: Greeting, FYI, we noticed the following commit (built with gcc-9):

Re: [PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-20 Thread Shung-Hsi Yu
On Tue, Oct 20, 2020 at 04:36:09PM +0800, Shung-Hsi Yu wrote: > This patch trigger the following KASAN error inside qlge_init_device(). Sorry, I meant to reply to the v3 series, please ignore this email.

Re: [kbuild-all] Re: drivers/pinctrl/renesas/pinctrl-rzn1.c:183:52: sparse: sparse: dubious: x | !y

2020-10-20 Thread Rong Chen
: 270315b8235e3d10c2e360cff56c2f9e0915a252 commit: 077365a941166f3a7f5894017f9d26d17cdec00e pinctrl: Rename sh-pfc to renesas date: 5 weeks ago config: x86_64-randconfig-s032-20201020 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-dirty

Re: [PATCH 1/6] media: camss: csiphy-3ph: Add support for SDM630/660

2020-10-20 Thread Robert Foss
Hi Angelo, On Sun, 18 Oct 2020 at 14:52, wrote: > > From: AngeloGioacchino Del Regno > > The CSIPHY on SDM630/660 needs a slightly longer T_HS_CLK_MISS > configuration on lanes CFG4. > > Signed-off-by: AngeloGioacchino Del Regno > --- > drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c

Re: [PATCH v5 4/5] arm64: kgdb: Round up cpus using IPI as NMI

2020-10-20 Thread Sumit Garg
On Mon, 19 Oct 2020 at 17:45, Marc Zyngier wrote: > > On 2020-10-14 12:12, Sumit Garg wrote: > > arm64 platforms with GICv3 or later supports pseudo NMIs which can be > > leveraged to round up CPUs which are stuck in hard lockup state with > > interrupts disabled that wouldn't be possible with a

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-20 Thread Christian Eggers
On Tuesday, 20 October 2020, 02:10:40 CEST, Vladimir Oltean wrote: > I looked a little bit at the KSZ9563 datasheet and I'm more confused > than I was before opening it. > > -[cut here]- > The device supports V2 (2008) of the IEEE 1588 PTP

Re: [RFC PATCH net-next 8/9] net: dsa: microchip: ksz9477: add Pulse Per Second (PPS) support

2020-10-20 Thread Christian Eggers
On Monday, 19 October 2020, 19:46:17 CEST, Vladimir Oltean wrote: > On Mon, Oct 19, 2020 at 07:24:34PM +0200, Christian Eggers wrote: > > static int ksz9477_ptp_enable(struct ptp_clock_info *ptp, struct > > ptp_clock_request *req, int on) { > > > > - return -ENOTTY; > > + struct ksz_device

Re: [Ocfs2-devel] [RFC] treewide: cleanup unreachable breaks

2020-10-20 Thread John Haxby
> On 19 Oct 2020, at 20:42, Nick Desaulniers wrote: > > We probably should add all 3 to W=2 builds (wrapped in cc-option). > I've filed https://github.com/ClangBuiltLinux/linux/issues/1180 to > follow up on. It looks as though the URL mangling has been fixed. If anyone sees that specific

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-20 Thread Greg KH
On Tue, Oct 20, 2020 at 08:15:38AM +, josephj...@google.com wrote: > > On Tue, Oct 20, 2020 at 02:22:26PM +0800, Joseph Jang wrote: > > > Add sleep timer and timeout handler to prevent device stuck during > > suspend/ > > > resume process. The timeout handler will dump disk sleep task at first

[PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-20 Thread Chanho Park
By doing scan as asynchronous way, scsi device scannning can be out of order execution. It is no problem if there is a ufs host but the scsi device name of each host can be changed according to the scan sequences. Ideal Case) host0 scan first host0 will be started from /dev/sda -> /dev/sdb

[PATCH] x86/mm/kmmio: correctly handle kzalloc return

2020-10-20 Thread Mugilraj Dhavachelvan
Replacing return value -1 to error code Signed-off-by: Mugilraj Dhavachelvan --- arch/x86/mm/kmmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/kmmio.c b/arch/x86/mm/kmmio.c index be020a7bc414..15430520c232 100644 --- a/arch/x86/mm/kmmio.c +++

Re: [PATCH] irqchip/sifive-plic: Fix broken irq_set_affinity() callback

2020-10-20 Thread Anup Patel
On Tue, Oct 20, 2020 at 1:45 PM Greentime Hu wrote: > > It will always enable the interrupt after calling plic_set_affinity() > however it should set to it previous setting. Staying disabled or enabled. > > This patch can also fix this pwm hang issue in Unleashed board. > > [ 919.015783] rcu:

Re: [PATCH 1/2] perf jevents: Tidy error handling

2020-10-20 Thread John Garry
On 20/10/2020 09:14, kajoljain wrote: On 10/20/20 11:13 AM, Namhyung Kim wrote: Hello, On Tue, Oct 20, 2020 at 12:42 AM John Garry wrote: There is much duplication in the error handling for directory traversing for processing JSONs. Factor out the common code to tidy a bit.

Re: [PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-20 Thread Shung-Hsi Yu
Hi, This patch trigger the following KASAN error inside qlge_init_device(). [...] general protection fault, probably for non-canonical address 0xdc4b: [#1] SMP DEBUG_PAGEALLOC KASAN PTI [...] KASAN: null-ptr-deref in range [0x0258-0x025f] [...] CPU: 0

[PATCH] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-20 Thread Michael Wu
i2c_dw_read_clear_intrbits_slave() was called per each interrupt handle. It caused some interrupt bits which haven't been handled yet were cleared, the corresponding handlers would do nothing due to interrupt bits been discarded. For example, $ i2cset -f -y 2 0x42 0x00 0x41; dmesg -c

Re: [PATCH v2] pciehp: Add check for DL_ACTIVE bit in pciehp_check_link_status()

2020-10-20 Thread Ethan Zhao
On Tue, Oct 20, 2020 at 2:33 PM Sanjay R Mehta wrote: > > From: Sanjay R Mehta > > if DL_ACTIVE bit is set it means that there is no need to check > PCI_EXP_LNKSTA_LT bit, as DL_ACTIVE would have set only if the link > is already trained. Hence adding a check which takes care of this > scenario.

[PATCH] ext4: remove the null check of bio_vec page

2020-10-20 Thread Xianting Tian
bv_page can't be NULL in a valid bio_vec, so we can remove the NULL check, as we did in other places when calling bio_for_each_segment_all() to go through all bio_vec of a bio. Signed-off-by: Xianting Tian --- fs/ext4/page-io.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH v4 08/15] Documentation: of: Convert graph bindings to json-schema

2020-10-20 Thread Philipp Zabel
Hi Sameer, Rob, On Mon, 2020-10-19 at 16:56 -0500, Rob Herring wrote: > On Fri, Oct 16, 2020 at 08:12:55PM +0530, Sameer Pujar wrote: > > Convert device tree bindings of graph to YAML format. > > Thanks for doing this. Seconded. > > Signed-off-by: Sameer Pujar > > Cc: Philipp Zabel > > --- >

drivers/staging/media/atomisp//pci/ia_css_firmware.h:52:29: warning: declaration of 'struct device' will not be visible outside of this function

2020-10-20 Thread kernel test robot
-20201020 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ea693a162786d933863ab079648d4261ac0ead47) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-20 Thread John Hubbard
On 10/19/20 11:18 PM, Kirill A. Shutemov wrote: New helpers copy_from_guest()/copy_to_guest() to be used if KVM memory protection feature is enabled. Signed-off-by: Kirill A. Shutemov --- include/linux/kvm_host.h | 4 ++ virt/kvm/kvm_main.c | 90

Re: [PATCH 0/3] drm/msm: kthread_worker conversion

2020-10-20 Thread Daniel Vetter
On Mon, Oct 19, 2020 at 02:10:50PM -0700, Rob Clark wrote: > From: Rob Clark > > In particular, converting the async atomic commit (for cursor updates, > etc) to SCHED_FIFO kthread_worker helps with some cases where we > wouldn't manage to flush the updates within the 1ms-before-vblank >

[PATCH] net: xfrm: fix a race condition during allocing spi

2020-10-20 Thread Zhuoliang Zhang
From: zhuoliang zhang we found that the following race condition exists in xfrm_alloc_userspi flow: user threadstate_hash_work thread xfrm_alloc_userspi() __find_acq_core() /*alloc new xfrm_state:x*/

Re: [PATCH v1 0/8] perf c2c: Sort cacheline with LLC load

2020-10-20 Thread Leo Yan
On Tue, Oct 20, 2020 at 05:13:01PM +0900, Namhyung Kim wrote: > Hello, > > On Thu, Oct 15, 2020 at 11:51 PM Leo Yan wrote: > > > > If the memory event doesn't contain HITM tag (like Arm SPE), it cannot > > rely on HITM display to report cache false sharing. Alternatively, we > > can use the LLC

Re: [PATCH v7 00/18] Implement NTB Controller using multiple PCI EP

2020-10-20 Thread Kishon Vijay Abraham I
Hi, On 05/10/20 11:27 am, Kishon Vijay Abraham I wrote: > Hi Jon Mason, Allen Hubbe, Dave Jiang, > > On 30/09/20 9:05 pm, Kishon Vijay Abraham I wrote: >> This series is about implementing SW defined Non-Transparent Bridge (NTB) >> using multiple endpoint (EP) instances. This series has been

Re: [PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-20 Thread Leo Yan
On Tue, Oct 20, 2020 at 09:19:45AM +0200, Peter Zijlstra wrote: > On Tue, Oct 20, 2020 at 10:49:25AM +0800, Leo Yan wrote: > > I can see there have another potentail customer to use page-size is > > Arm SPE, but Arm SPE is hardware trace based sample but not interrupt > > based sample. For this

Re: [PATCH 1/2] perf jevents: Tidy error handling

2020-10-20 Thread kajoljain
On 10/20/20 11:13 AM, Namhyung Kim wrote: > Hello, > > On Tue, Oct 20, 2020 at 12:42 AM John Garry wrote: >> >> There is much duplication in the error handling for directory traversing >> for processing JSONs. >> >> Factor out the common code to tidy a bit. >> >> Signed-off-by: John Garry >>

[PATCH] irqchip/sifive-plic: Fix broken irq_set_affinity() callback

2020-10-20 Thread Greentime Hu
It will always enable the interrupt after calling plic_set_affinity() however it should set to it previous setting. Staying disabled or enabled. This patch can also fix this pwm hang issue in Unleashed board. [ 919.015783] rcu: INFO: rcu_sched detected stalls on CPUs/tasks: [ 919.020922] rcu:

[PATCH] power: suspend: Add suspend timeout handler

2020-10-20 Thread josephjang
On Tue, Oct 20, 2020 at 02:22:26PM +0800, Joseph Jang wrote: > Add sleep timer and timeout handler to prevent device stuck during suspend/ > resume process. The timeout handler will dump disk sleep task at first > round timeout and trigger kernel panic at second round timeout. > The default

Re: [PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-20 Thread Ulf Hansson
On Tue, 20 Oct 2020 at 08:52, 冯锐 wrote: > > Hi All, > > A month has passed, do I need to modify these patches? Unfortunately I didn't get the time to review them before the merge window opened, but I am looking at them now. Allow me a day or two to complete the review. Kind regards Ufffe > >

Re: [PATCH v1 7/8] perf c2c: Add option '-d llc' for sorting with LLC load

2020-10-20 Thread Leo Yan
On Tue, Oct 20, 2020 at 09:26:03AM +0200, Jiri Olsa wrote: > On Thu, Oct 15, 2020 at 03:50:40PM +0100, Leo Yan wrote: > > Except the existed three display options 'tot', 'rmt', 'lcl', this patch > > adds option 'llc' so that can sort on LLC load metrics. The new > > introduced option can work as

Re: [PATCH v1 0/8] perf c2c: Sort cacheline with LLC load

2020-10-20 Thread Namhyung Kim
Hello, On Thu, Oct 15, 2020 at 11:51 PM Leo Yan wrote: > > If the memory event doesn't contain HITM tag (like Arm SPE), it cannot > rely on HITM display to report cache false sharing. Alternatively, we > can use the LLC access and multi-threads info to locate the potential > false sharing's

Re: [PATCH v2] drm/of: Consider the state in which the ep is disabled

2020-10-20 Thread Daniel Vetter
On Mon, Oct 19, 2020 at 11:43:53AM +0800, Kever Yang wrote: > Hi Daniel, > > On 2020/10/15 下午11:23, Daniel Vetter wrote: > > On Wed, Oct 14, 2020 at 09:48:43AM +0800, Kever Yang wrote: > > > Hi Maintainers, > > > > > >     Does this patch ready to merge? > > Would maybe be good to get some acks

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

2020-10-20 Thread Gene Chen
From: Gene Chen Add MT6360 ADC driver including Charger Current, Voltage, and Temperature. Signed-off-by: Gene Chen --- drivers/iio/adc/Kconfig | 11 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mt6360-adc.c | 372 +++ 3 files changed,

[PATCH v7 2/3] Documentation: ABI: testing: mt6360: Add ADC sysfs guideline

2020-10-20 Thread Gene Chen
From: Gene Chen Add ABI documentation for mt6360 ADC sysfs interfaces. Signed-off-by: Gene Chen --- Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 diff

[PATCH v7 0/3] iio: adc: mt6360: Add ADC driver for MT6360

2020-10-20 Thread Gene Chen
In-Reply-To: This patch series add MT6360 ADC support contains driver, testing document and binding document Gene Chen (2) dt-bindings: iio: adc: add bindings doc for MT6360 ADC Documentation: ABI: testing: mt6360: Add ADC sysfs guideline iio: adc: mt6360: Add ADC driver for MT6360

Re: [PATCH v1 7/8] perf c2c: Add option '-d llc' for sorting with LLC load

2020-10-20 Thread Leo Yan
Hi Jiri, On Tue, Oct 20, 2020 at 09:25:53AM +0200, Jiri Olsa wrote: > On Thu, Oct 15, 2020 at 03:50:40PM +0100, Leo Yan wrote: > > SNIP > > > @@ -1533,6 +1539,7 @@ static struct c2c_header percent_hitm_header[] = { > > [DISPLAY_LCL] = HEADER_BOTH("Lcl", "Hitm"), > > [DISPLAY_RMT] =

Re: [PATCH] lib: add basic KUnit test for lib/math

2020-10-20 Thread Andy Shevchenko
On Mon, Oct 19, 2020 at 03:45:56PM -0700, Daniel Latypov wrote: > Add basic test coverage for files that don't require any config options: > * gcd.c > * lcm.c > * int_sqrt.c > * reciprocal_div.c > (Ignored int_pow.c since it's a simple textbook algorithm.) > > These tests aren't particularly

[PATCH v7 1/3] dt-bindings: iio: adc: add bindings doc for MT6360 ADC

2020-10-20 Thread Gene Chen
From: Gene Chen This change adds the binding doc for the MT6360 ADC. Signed-off-by: Gene Chen --- .../bindings/iio/adc/mediatek,mt6360-adc.yaml | 34 ++ 1 file changed, 34 insertions(+) create mode 100644

Re: [RFCv2 05/16] x86/kvm: Make VirtIO use DMA API in KVM guest

2020-10-20 Thread Christoph Hellwig
NAK. Any virtio implementation that needs special DMA OPS treatment needs to set the VIRTIO_F_ACCESS_PLATFORM bit. The only reason the Xen hack existst is because it slipped in a long time ago and we can't fix that any more.

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 19/10/20 9:43 pm, Lorenzo Pieralisi wrote: > On Mon, Oct 12, 2020 at 04:41:11AM +, Z.q. Hou wrote: > > [...] > > Yeah, I don't see any registers in the DRA7x PCIe wrapper for > disabling error forwarding. It's a DWC port logic register AFAICT, but perhaps

RIP: 0010:g84_gr_tlb_flush+0x2eb/0x300 [nouveau]

2020-10-20 Thread Mathieu Malaterre
Hi there, Could someone please comment on the following hard-lock (*). Staring at the code, I see `nvkm_rd32` calls are enclosed in a timeout detection, except one. drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c#L171 ... nvkm_msec(device, 2000, if (!(nvkm_rd32(device, 0x100c80) & 0x0001))

Re: [PATCH v2 00/20] Introduce the TDP MMU

2020-10-20 Thread Paolo Bonzini
On 19/10/20 20:15, Ben Gardon wrote: > When getting the dirty log, we > follow the following steps: > 1. Atomically get and clear an unsigned long of the dirty bitmap > 2. For each GFN in the range of pages covered by the unsigned long mask: > 3. Clear the dirty or writable bit on the SPTE >

[tip:x86/seves] BUILD SUCCESS b17a45b6e53f6613118b2e5cfc4a992cc50deb2c

2020-10-20 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/seves branch HEAD: b17a45b6e53f6613118b2e5cfc4a992cc50deb2c x86/boot/64: Explicitly map boot_params and command line elapsed time: 721m configs tested: 114 configs skipped: 59 The following configs have been built

Re: [PATCH 1/4] power: avs: qcom-cpr: Move the driver to the qcom specific drivers

2020-10-20 Thread Niklas Cassel
On Tue, Oct 06, 2020 at 06:05:13PM +0200, Ulf Hansson wrote: > The avs drivers are all SoC specific drivers that doesn't share any code. > Instead they are located in a directory, mostly to keep similar > functionality together. From a maintenance point of view, it makes better > sense to collect

Re: [PATCH] PCI: export pci_find_host_bridge() to fix MFD build error

2020-10-20 Thread Christoph Hellwig
On Sun, Oct 18, 2020 at 11:14:53PM -0700, Randy Dunlap wrote: > Fix a build error in drivers/mfd/ioc.o by exporting > pci_find_host_bridge(). > > ERROR: modpost: "pci_find_host_bridge" [drivers/mfd/ioc3.ko] undefined! I think the mfd code should be fixed to not depend on such an internal symbol

RE: lib/crypto/chacha.c:65:1: warning: the frame size of 1604 bytes is larger than 1024 bytes

2020-10-20 Thread David Laight
From: Joe Perches > Sent: 19 October 2020 16:47 > On Mon, 2020-10-19 at 03:13 +0800, kernel test robot wrote: > > Hi Ard, > > > > First bad commit (maybe != root cause): > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head:

Re: [PATCH 1/2] cifs: convert to add_to_page_cache()

2020-10-20 Thread Christoph Hellwig
> + rc = add_to_page_cache(page, mapping, > +page->index, gfp); This trivially fits onto a single line.

Re: [PATCH v3 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-10-20 Thread Peter Zijlstra
FYI Tao, I shared this with Valentin on IRC yesterday evening (we're both in Europe): https://paste.debian.net/1167885/ I'll be going over it again this morning with a (hopefully) fresh(er) mind.

[PATCH V3 08/10] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-20 Thread Joakim Zhang
This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will add quirk for scu SoCs. For non-scu SoCs, setup stop mode with GPR register. For scu SoCs, setup stop mode with SCU firmware. Signed-off-by: Joakim Zhang ---

[PATCH V3 05/10] can: flexcan: add ECC initialization for VF610

2020-10-20 Thread Joakim Zhang
For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to disable non-correctable errors interrupt and freeze mode, had better use FLEXCAN_QUIRK_SUPPORT_ECC quirk to initialize all memory. Fixes: cdce844865bea ("can: flexcan: add vf610 support for FlexCAN") Signed-off-by: Joakim

[PATCH V3 02/10] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-20 Thread Joakim Zhang
Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" to get this property. Fixes: 9d733992772d ("dt-bindings: can: flexcan: add PE clock source property to device tree") Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 +-

[PATCH V3 10/10] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-20 Thread Joakim Zhang
The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). SCU driver manages the IPC interface between host CPU and

[PATCH V3 01/10] firmware: imx: always export SCU symbols

2020-10-20 Thread Joakim Zhang
From: Liu Ying Always export SCU symbols for both SCU SoCs and non-SCU SoCs to avoid build error. Signed-off-by: Liu Ying Signed-off-by: Peng Fan Signed-off-by: Joakim Zhang --- include/linux/firmware/imx/ipc.h | 15 +++ include/linux/firmware/imx/svc/misc.h | 23

[PATCH V3 04/10] can: flexcan: add ECC initialization for LX2160A

2020-10-20 Thread Joakim Zhang
After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LX2160A indeed supports ECC feature, so correct the feature table. For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to disable non-correctable errors interrupt and freeze mode, had better use

[PATCH V3 03/10] can: flexcan: remove FLEXCAN_QUIRK_DISABLE_MECR quirk for LS1021A

2020-10-20 Thread Joakim Zhang
After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LS1021A doesn't support ECC feature, so remove FLEXCAN_QUIRK_DISABLE_MECR quirk. Fixes: 99b7668c04b27 ("can: flexcan: adding platform specific details for LS1021A") Cc: Pankaj Bansal Signed-off-by: Joakim Zhang ---

[PATCH V3 00/10] can: flexcan: add stop mode support for i.MX8QM

2020-10-20 Thread Joakim Zhang
The first patch from Liu Ying aims to export SCU symbols for SoCs w/wo SCU, so that no need to check CONFIG_IMX_SCU in the specific driver. The following patches are flexcan fixes and add stop mode support for i.MX8QM. ChangeLogs: V2->V3: * define IMX_SC_R_CAN(x) in rsrc.h *

[PATCH V3 07/10] dt-bindings: can: flexcan: add fsl,scu-index property to indicate a resource

2020-10-20 Thread Joakim Zhang
For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource in SCU firmware. Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH V3 09/10] dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN

2020-10-20 Thread Joakim Zhang
Add IMX_SC_R_CAN(x) macro for CAN. Suggested-by: Marc Kleine-Budde Signed-off-by: Joakim Zhang --- include/dt-bindings/firmware/imx/rsrc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/firmware/imx/rsrc.h b/include/dt-bindings/firmware/imx/rsrc.h index

[PATCH V3 06/10] can: flexcan: disable wakeup in flexcan_remove()

2020-10-20 Thread Joakim Zhang
Disable wakeup in flexcan_remove(). Fixes: de3578c198c6 ("can: flexcan: add self wakeup support") Fixes: 915f9666421c ("can: flexcan: add support for DT property 'wakeup-source'") Signed-off-by: Joakim Zhang --- drivers/net/can/flexcan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

KMSAN: uninit-value in radix_tree_lookup

2020-10-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e67f4ba8 kmsan_hooks: do not enter/exit runtime on ioremap git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=16f3ce9450 kernel config:

Re: [PATCH] cachefiles: Drop superfluous readpages aops NULL check

2020-10-20 Thread Christoph Hellwig
Hmm, what prevents us from killing of the last ->readpages instance? Leaving half-finished API conversions in the tree usually doesn't end well..

[PATCH] arm64: meson: ship only the necessary clock controllers

2020-10-20 Thread Jerome Brunet
There now the menu entries for the amlogic clock controllers. Do not select these when ARM64 is enabled so it possible to ship only the required. Signed-off-by: Jerome Brunet --- arch/arm64/Kconfig.platforms | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/Kconfig.platforms

Re: drivers/pinctrl/renesas/pinctrl-rzn1.c:183:52: sparse: sparse: dubious: x | !y

2020-10-20 Thread Geert Uytterhoeven
15a252 > commit: 077365a941166f3a7f5894017f9d26d17cdec00e pinctrl: Rename sh-pfc to > renesas > date: 5 weeks ago > config: x86_64-randconfig-s032-20201020 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > reproduce: > # apt-get install sparse > # sparse ver

Re: [PATCH v1] i2c: tegra: Fix i2c_writesl() to use writel() instead of writesl()

2020-10-20 Thread Thierry Reding
On Mon, Oct 19, 2020 at 09:03:54PM -0700, Sowjanya Komatineni wrote: > VI I2C don't have DMA support and uses PIO mode all the time. > > Current driver uses writesl() to fill TX FIFO based on available > empty slots and with this seeing strange silent hang during any I2C > register access after

Re: [RFCv2 00/16] KVM protected memory extension

2020-10-20 Thread Vitaly Kuznetsov
"Kirill A. Shutemov" writes: > == Background / Problem == > > There are a number of hardware features (MKTME, SEV) which protect guest > memory from some unauthorized host access. The patchset proposes a purely > software feature that mitigates some of the same host-side read-only > attacks. > >

Re: [PATCH 3/3] powerpc: Fix pre-update addressing in inline assembly

2020-10-20 Thread Christophe Leroy
Le 19/10/2020 à 22:24, Segher Boessenkool a écrit : On Mon, Oct 19, 2020 at 12:12:48PM +, Christophe Leroy wrote: In several places, inline assembly uses the "%Un" modifier to enable the use of instruction with pre-update addressing, Calling this "pre-update" is misleading: the

[PATCH] of: Fix reserved-memory overlap detection

2020-10-20 Thread Vincent Whitchurch
The reserved-memory overlap detection code fails to detect overlaps if either of the regions starts at address 0x0. For some reason the code explicitly checks for and ignores such regions, but this check looks invalid. Remove the check and fix this detection. For example, no overlap is

drivers/pinctrl/renesas/pinctrl-rzn1.c:183:52: sparse: sparse: dubious: x | !y

2020-10-20 Thread kernel test robot
: x86_64-randconfig-s032-20201020 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id

Re: [PATCH] cpufreq: ti-cpufreq: fix memory leak in ti_cpufreq_probe()

2020-10-20 Thread Viresh Kumar
On 19-10-20, 21:12, Defang Bo wrote: > Similar to commit<05829d9431df>("cpufreq: ti-cpufreq: kfree opp_data when > failure"), opp_data needs to be freed when failure, including fail_put_node. This is allocated using devm_kzalloc() and so we don't need to free it explicitly. > Signed-off-by:

Re: [PATCH] usb: cdc-acm: fix cooldown mechanism

2020-10-20 Thread Oliver Neukum
Am Montag, den 19.10.2020, 19:07 +0200 schrieb Jerome Brunet: > Commit a4e7279cd1d1 ("cdc-acm: introduce a cool down") is causing > regression if there is some USB error, such as -EPROTO. > > This has been reported on some samples of the Odroid-N2 using the Combee II > Zibgee USB dongle. > > >

Re

2020-10-20 Thread Mr. J. Ward
Greetings. Good day, and I hope you are safe from this pandemic troubling the world. I work with an online lotto company as the lotto machine coordinator and the lotto supervisor. I have discovered a way to fix the winning number with the lotto machine to make any person win the lotto jackpot

RE: [PATCH 4/5] crypto: lib/sha256 - Unroll SHA256 loop 8 times intead of 64

2020-10-20 Thread David Laight
From: Arvind Sankar> Sent: 19 October 2020 16:30 > To: Herbert Xu ; David S. Miller > ; linux- > cry...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH 4/5] crypto: lib/sha256 - Unroll SHA256 loop 8 times intead > of 64 > > This reduces code size substantially (on x86_64

[PATCH v2 2/3] powerpc: Fix incorrect stw{, ux, u, x} instructions in __set_pte_at

2020-10-20 Thread Christophe Leroy
From: Mathieu Desnoyers The placeholder for instruction selection should use the second argument's operand, which is %1, not %0. This could generate incorrect assembly code if the memory addressing of operand %0 is a different form from that of operand %1. Fixes: 9bf2b5cdc5fe ("powerpc: Fixes

[PATCH v2 3/3] powerpc: Fix update form addressing in inline assembly

2020-10-20 Thread Christophe Leroy
In several places, inline assembly uses the "%Un" modifier to enable the use of instruction with update form addressing, but the associated "<>" constraint is missing. As mentioned in previous patch, this fails with gcc 4.9, so "<>" can't be used directly. Use UPD_CONSTR macro everywhere %Un

[PATCH v2 1/3] powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9

2020-10-20 Thread Christophe Leroy
GCC 4.9 sometimes fails to build with "m<>" constraint in inline assembly. CC lib/iov_iter.o In file included from ./arch/powerpc/include/asm/cmpxchg.h:6:0, from ./arch/powerpc/include/asm/atomic.h:11, from ./include/linux/atomic.h:7, from

Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it

2020-10-20 Thread Geert Uytterhoeven
On Mon, Oct 19, 2020 at 10:38 PM Geert Uytterhoeven wrote: > On Mon, Oct 19, 2020 at 5:47 PM Matthieu Baerts > wrote: > > On 19/10/2020 13:32, Geert Uytterhoeven wrote: > > > MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the > > > user may not want to enable. Fix this by

[PATCH] mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it

2020-10-20 Thread Geert Uytterhoeven
MPTCP_IPV6 selects IPV6, thus enabling an optional feature the user may not want to enable. Fix this by making MPTCP_IPV6 depend on IPV6, like is done for all other IPv6 features. Fixes: f870fa0b5768842c ("mptcp: Add MPTCP socket stubs") Signed-off-by: Geert Uytterhoeven --- net/mptcp/Kconfig

Re: [PATCH] tty: remove unneeded break

2020-10-20 Thread Uwe Kleine-König
On Mon, Oct 19, 2020 at 10:59:15AM -0700, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix > --- > drivers/tty/serial/imx.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/drivers/tty/serial/imx.c

[PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it

2020-10-20 Thread Geert Uytterhoeven
EXT4_KUNIT_TESTS selects EXT4_FS, thus enabling an optional feature the user may not want to enable. Fix this by making the test depend on EXT4_FS instead. Fixes: 1cbeab1b242d16fd ("ext4: add kunit test for decoding extended timestamps") Signed-off-by: Geert Uytterhoeven --- See also "[PATCH]

Re: [PATCH 4/2] sched/cpupri: Add CPUPRI_HIGHER

2020-10-20 Thread Peter Zijlstra
On Mon, Oct 19, 2020 at 04:15:01PM +0200, Dietmar Eggemann wrote: > On 14/10/2020 21:54, Peter Zijlstra wrote: > > > > Add CPUPRI_HIGHER above the RT99 priority to denote the CPU is in use > > by higher priority tasks (specifically deadline). > > sugov:X already triggers this now on our

[PATCH] net: ethernet: mtk-star-emac: select REGMAP_MMIO

2020-10-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The driver depends on mmio regmap API but doesn't select the appropriate Kconfig option. This fixes it. Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") Cc: Signed-off-by: Bartosz Golaszewski --- drivers/net/ethernet/mediatek/Kconfig | 1 + 1 file

Re: [PATCH] power: suspend: Add sleep timer and timeout handler

2020-10-20 Thread Greg Kroah-Hartman
On Tue, Oct 20, 2020 at 02:22:26PM +0800, Joseph Jang wrote: > Add sleep timer and timeout handler to prevent device stuck during suspend/ > resume process. The timeout handler will dump disk sleep task at first > round timeout and trigger kernel panic at second round timeout. > The default timer

<    5   6   7   8   9   10   11   12   >