Re: [PATCH 03/14] mfd: ab3100-core: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/ab3

Re: [PATCH 02/14] mfd: 88pm860x-core: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/88p

Re: [PATCH] x86/apic: Handle missing global clockevent gracefully

2019-08-12 Thread Li, Aubrey
On 2019/8/9 20:54, Thomas Gleixner wrote: > Some newer machines do not advertise legacy timers. The kernel can handle > that situation if the TSC and the CPU frequency are enumerated by CPUID or > MSRs and the CPU supports TSC deadline timer. If the CPU does not support > TSC deadline timer the loc

Re: [PATCH 08/14] mfd: max77843: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 05/14] mfd: da9150-core: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/da9

Re: [PATCH 10/14] mfd: max8925-i2c: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 09/14] mfd: max8907: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 06/14] mfd: max14577: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 07/14] mfd: max77693: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 12/14] mfd: max8998: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 11/14] mfd: max8997: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/max

Re: [PATCH 14/14] mfd: twl-core: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/twl

[PATCH v2] arm64: dts: meson-g12b-khadas-vim3: add initial device-tree

2019-08-12 Thread Neil Armstrong
From: Christian Hewitt The Khadas VIM3 uses the Amlogic S922X or A311S SoC, both based on the Amlogic G12B SoC family, on a board with the same form factor as the VIM/VIM2 models. It ships in two variants; basic and pro which differ in RAM and eMMC size: - 2GB (basic) or 4GB (pro) LPDDR4 RAM - 1

Re: [PATCH 13/14] mfd: palmas: convert to i2c_new_dummy_device

2019-08-12 Thread Lee Jones
On Mon, 22 Jul 2019, Wolfram Sang wrote: > Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an > ERRPTR which we use in error handling. > > Signed-off-by: Wolfram Sang > --- > > Generated with coccinelle. Build tested by me and buildbot. Not tested on HW. > > drivers/mfd/pal

BUG: unable to handle kernel NULL pointer dereference in rxrpc_unuse_local

2019-08-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:57c722e9 net/tls: swap sk_write_space on close git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=13e6c6ee60 kernel config: https://syzkaller.appspot.com/x/.config?x=a4c9e9f08e9e8960 dashboard link: https

Re: [PATCH v4 1/3] media: stm32-dcmi: improve sensor subdev naming

2019-08-12 Thread Hugues FRUCHET
Hi Sakari, Sorry for inconvenience, I will push a V5 with that fixed. May I put your "Acked-by" also on the 2 other commits ? Or just this one ? On 8/9/19 6:01 PM, Sakari Ailus wrote: > Hi Hugues, > > Thanks for teh update. > > On Wed, Jul 31, 2019 at 02:56:21PM +0200, Hugues Fruchet wrote: >>

Re: [PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3

2019-08-12 Thread Tao Xu
On 8/6/2019 12:24 PM, Daniel Black wrote: ACPI-6.3 corresponds to when hmat revision was bumped from 1 to 2. In this version ACPI_HMAT_MEMORY_PD_VALID was deprecated and made reserved. As such in revision 2+ we shouldn't be testing this flag. This is as per ACPI-6.3, 5.2.27.3, Table 5-145 "Memo

status of drivers/misc/sgi-gru?

2019-08-12 Thread Christoph Hellwig
Hi dear ex-SGI folks, do you know if the GRU driver is still maintained and in use? Both Bharath and Jason have been posting changes to it that need review, and I've just been discussing even more extensive mmu_notifier changes with Jason that will require some very careful review. If the driver

Re: [PATCH v5 0/6] Support for Allwinner V3/S3L and Sochip S3

2019-08-12 Thread Maxime Ripard
On Sun, Jul 28, 2019 at 11:12:21AM +0800, Icenowy Zheng wrote: > This patchset tries to add support for Allwinner V3/S3L and Sochip S3. > > Allwinner V3/V3s/S3L and Sochip S3 share the same die, but with > different package. V3 is BGA w/o co-packaged DDR, V3s is QFP w/ DDR2, > S3L is BGA w/ DDR2 an

Re: [RFC PATCH] mm: drop mark_page_access from the unmap path

2019-08-12 Thread Michal Hocko
On Fri 09-08-19 14:34:24, Johannes Weiner wrote: > On Fri, Aug 09, 2019 at 02:43:24PM +0200, Michal Hocko wrote: > > On Tue 06-08-19 19:55:09, Minchan Kim wrote: > > > On Wed, Jul 31, 2019 at 09:21:01AM +0200, Michal Hocko wrote: > > > > On Wed 31-07-19 14:44:47, Minchan Kim wrote: > > [...] > > >

[PATCH -next] Bluetooth: hci_bcm: Fix -Wunused-const-variable warnings

2019-08-12 Thread YueHaibing
If CONFIG_ACPI is not set, gcc warn this: drivers/bluetooth/hci_bcm.c:831:39: warning: acpi_bcm_int_last_gpios defined but not used [-Wunused-const-variable=] drivers/bluetooth/hci_bcm.c:838:39: warning: acpi_bcm_int_first_gpios defined but not used [-Wunused-const-variable=] move them to #ifde

Re: [PATCH net-next] net: can: Fix compiling warning

2019-08-12 Thread Oliver Hartkopp
On 12/08/2019 07.48, maowenan wrote: On 2019/8/7 0:41, Oliver Hartkopp wrote: I compiled the code (the original version), but I do not get that "Should it be static?" warning: here are my steps for net/can/bcm.c, make allmodconfig ARCH=mips CROSS_COMPILE=mips-linux-gnu- make C=2 net/can/bc

Re: [PATCH] mfd: intel-lpss: Remove D3cold delay

2019-08-12 Thread Lee Jones
On Fri, 05 Jul 2019, Kai-Heng Feng wrote: > Goodix touchpad may drop its first couple input events when > i2c-designware-platdrv and intel-lpss it connects to took too long to > runtime resume from runtime suspended state. > > This issue happens becuase the touchpad has a rather small buffer to >

Re: [PATCH net-next v2 8/9] net: phy: mscc: macsec initialization

2019-08-12 Thread Antoine Tenart
Hi Andrew, On Sat, Aug 10, 2019 at 06:53:17PM +0200, Andrew Lunn wrote: > > The MACsec read and write functions are wrapped into two versions: one > > called during the init phase, and the other one later on. This is > > because the init functions in the Microsemi Ocelot PHY driver are called > >

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-12 Thread Antoine Tenart
Hi Andrew, On Sat, Aug 10, 2019 at 06:34:23PM +0200, Andrew Lunn wrote: > On Thu, Aug 08, 2019 at 04:05:57PM +0200, Antoine Tenart wrote: > > This patch introduces the MACsec hardware offloading infrastructure. > > > > The main idea here is to re-use the logic and data structures of the > > softw

Re: [PATCH] mfd: omap-usb-host: Mark expected switch fall-throughs

2019-08-12 Thread Lee Jones
On Sun, 28 Jul 2019, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warnings: > > drivers/mfd/omap-usb-host.c: In function 'usbhs_runtime_resume': > drivers/mfd/omap-usb-host.c:303:7: warning: this statement may fall thro

Re: [linux-sunxi] [PATCH v8 0/4] Add support for Orange Pi 3

2019-08-12 Thread Maxime Ripard
On Mon, Aug 12, 2019 at 03:54:03PM +0800, Chen-Yu Tsai wrote: > On Mon, Aug 12, 2019 at 3:45 PM Jernej Škrabec > wrote: > > > > Dne torek, 06. avgust 2019 ob 17:57:39 CEST je meg...@megous.com napisal(a): > > > From: Ondrej Jirman > > > > > > This series implements support for Xunlong Orange Pi

Re: [PATCH net-next v2 2/9] net: macsec: move some definitions in a dedicated header

2019-08-12 Thread Antoine Tenart
Hi Igor, On Sat, Aug 10, 2019 at 12:19:36PM +, Igor Russkikh wrote: > > +/** > > + * struct macsec_tx_sa - transmit secure association > > + * @active: > > + * @next_pn: packet number to use for the next packet > > + * @lock: protects next_pn manipulations > > + * @key: key structure > > + * @

Re: [PATCH net-next v2 4/9] net: introduce MACsec ops and add a reference in net_device

2019-08-12 Thread Antoine Tenart
Hi Jakub, On Fri, Aug 09, 2019 at 01:35:09PM -0700, Jakub Kicinski wrote: > On Thu, 8 Aug 2019 16:05:55 +0200, Antoine Tenart wrote: > > > > +#if defined(CONFIG_MACSEC) > > +struct macsec_ops { > > I think it'd be cleaner to have macsec_ops declared in macsec.h > and forward declare macsec_ops

Re: [PATCH] mmc: sdhci-cadence: use struct_size() helper

2019-08-12 Thread Adrian Hunter
On 8/08/19 7:53 PM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct sdhci_cdns_priv { >

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-12 Thread Michal Hocko
On Sat 10-08-19 13:34:06, ndrw wrote: > On 09/08/2019 11:50, Michal Hocko wrote: > > We try to protect low amount of cache. Have a look at get_scan_count > > function. But the exact amount of the cache to be protected is really > > hard to know wihtout a crystal ball or understanding of the workloa

Re: [RFC PATCH v2] mm: slub: print kernel addresses in slub debug messages

2019-08-12 Thread Miles Chen
On Fri, 2019-08-09 at 07:26 -0700, Matthew Wilcox wrote: > On Fri, Aug 09, 2019 at 10:11:58PM +0800, Miles Chen wrote: > > On Thu, 2019-08-08 at 19:46 -0700, Matthew Wilcox wrote: > > > On Fri, Aug 09, 2019 at 09:08:37AM +0800, miles.c...@mediatek.com wrote: > > > > INFO: Slab 0x(ptrval) ob

Re: [PATCH 2/6] irqchip: Add Realtek RTD129x intc driver

2019-08-12 Thread Aleix Roca Nonell
Hi Mark and everyone! Sorry for the large delay, I'm doing this in my free time, which is not that abundant. In this mail, I'm focusing only on the largest change mentioned by Mark. I will answer the rest later. On Mon, Jul 08, 2019 at 10:36:14AM +0100, Marc Zyngier wrote: > On 07/07/2019 14:22, A

[PATCH] scsi: lpfc: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-12 Thread Fuqian Huang
As spin_unlock_irq will enable interrupts. Function lpfc_findnode_rpi is called from lpfc_sli_abts_err_handler (./drivers/scsi/lpfc/lpfc_sli.c) <- lpfc_sli_async_event_handler <- lpfc_sli_process_unsol_iocb <- lpfc_sli_handle_fast_ring_event <- lpfc_sli_fp_intr_handler <- lpfc_sli_intr_han

Re: [PATCH 2/4] PCI: dwc: Return directly when num-lanes is not found

2019-08-12 Thread Andrew Murray
On Mon, Aug 12, 2019 at 04:22:22AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > The num-lanes is optional, so probably it isn't added > on some platforms. The subsequent programming is base > on the num-lanes, hence return when it is not found. > > Signed-off-by: Hou Zhiqiang > --- > driver

Re: [PATCH v1] Revert "mmc: sdhci-tegra: drop ->get_ro() implementation"

2019-08-12 Thread Adrian Hunter
On 9/08/19 1:24 AM, Dmitry Osipenko wrote: > The WRITE_PROTECT bit is always in a "protected mode" on Tegra and > WP-GPIO state need to be used instead. In a case of the GPIO absence, > write-enable should be assumed. External SD is writable once again as > a result of this patch because the offend

Re: [PATCH 3/4] ARM: dts: ls1021a: Remove num-lanes property from PCIe nodes

2019-08-12 Thread Andrew Murray
On Mon, Aug 12, 2019 at 04:22:27AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > On FSL Layerscape SoCs, the number of lanes assigned to PCIe > controller is not fixed, it is determined by the selected > SerDes protocol in the RCW (Reset Configuration Word), and > the PCIe link training is comp

Re: [PATCH 4/4] arm64: dts: fsl: Remove num-lanes property from PCIe nodes

2019-08-12 Thread Andrew Murray
On Mon, Aug 12, 2019 at 04:22:33AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > On FSL Layerscape SoCs, the number of lanes assigned to PCIe > controller is not fixed, it is determined by the selected > SerDes protocol in the RCW (Reset Configuration Word), and > the PCIe link training is comp

Re: [PATCH v3] perf diff: Report noisy for cycles diff

2019-08-12 Thread Jiri Olsa
On Sat, Aug 10, 2019 at 07:30:29AM +0800, Jin Yao wrote: SNIP > + > + init_stats(&pair->diff.stats); > + init_spark_values(pair->diff.svals, NUM_SPARKS); > + > + for (int i = 0; i < pair->block_info->num; i++) { > + u64 val; > + > +

Re: [PATCH 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-12 Thread Uwe Kleine-König
Hello Baolin, On Mon, Aug 12, 2019 at 03:29:07PM +0800, Baolin Wang wrote: > Hi Uwe, > > On Fri, 9 Aug 2019 at 22:41, Uwe Kleine-König > wrote: > > On Fri, Aug 09, 2019 at 06:06:21PM +0800, Baolin Wang wrote: > > > On Fri, 9 Aug 2019 at 17:10, Uwe Kleine-König > > > wrote: > > > > On Thu, Aug 0

Re: [PATCH v3] perf diff: Report noisy for cycles diff

2019-08-12 Thread Jiri Olsa
On Sat, Aug 10, 2019 at 07:30:29AM +0800, Jin Yao wrote: SNIP > static int process_block_per_sym(struct hist_entry *he) > @@ -684,6 +694,21 @@ static struct hist_entry *get_block_pair(struct > hist_entry *he, > return NULL; > } > > +static void init_spark_values(unsigned long *svals, i

Re: [PATCH v3] perf diff: Report noisy for cycles diff

2019-08-12 Thread Jiri Olsa
On Sat, Aug 10, 2019 at 07:30:29AM +0800, Jin Yao wrote: SNIP > + if (vals[i] != 0) > + return 0; > + return 1; > +} > + > +static int print_cycles_spark(char *bf, int size, unsigned long *svals, u64 > n) > +{ > + int len = n, printed; > + > + if (len

[PATCH v7 0/4] Make IPA use PM_EM

2019-08-12 Thread Quentin Perret
Changes in v7 * - Added patch 02/04 to fix the build error reported by the kbuild bot Changes in v6 * - Added Daniel's and Viresh's Acked-by to all patches Changes in v5: ** - Changed patch 02 to guard IPA-specific code in cpu_cooling.c with appropriate i

[PATCH v7 4/4] thermal: cpu_cooling: Migrate to using the EM framework

2019-08-12 Thread Quentin Perret
The newly introduced Energy Model framework manages power cost tables in a generic way. Moreover, it supports several types of models since the tables can come from DT or firmware (through SCMI) for example. On the other hand, the cpu_cooling subsystem manages its own power cost tables using only D

[PATCH v7 3/4] thermal: cpu_cooling: Make the power-related code depend on IPA

2019-08-12 Thread Quentin Perret
The core CPU cooling infrastructure has power-related functions that have only one client: IPA. Since there can be no user of those functions if IPA is not compiled in, make sure to guard them with checks on CONFIG_THERMAL_GOV_POWER_ALLOCATOR to not waste space unnecessarily. Acked-by: Daniel Lezc

[PATCH v7 2/4] PM / EM: Declare EM data types unconditionally

2019-08-12 Thread Quentin Perret
The structs representing capacity states and performance domains of an Energy Model are currently only defined for CONFIG_ENERGY_MODEL=y. That makes it hard for code outside PM_EM to manipulate those structures without a lot of ifdefery or stubbed accessors. So, move the declaration of the two str

[PATCH v7 1/4] arm64: defconfig: Enable CONFIG_ENERGY_MODEL

2019-08-12 Thread Quentin Perret
The recently introduced Energy Model (EM) framework manages power cost tables for the CPUs of the system. Its only user right now is the scheduler, in the context of Energy Aware Scheduling (EAS). However, the EM framework also offers a generic infrastructure that could replace subsystem-specific

Re: [PATCH 1/4] dt-bingings: PCI: Remove the num-lanes from Required properties

2019-08-12 Thread Andrew Murray
On Mon, Aug 12, 2019 at 04:22:16AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > The num-lanes is not a mandatory property, e.g. on FSL > Layerscape SoCs, the PCIe link training is completed > automatically base on the selected SerDes protocol, it > doesn't need the num-lanes to set-up the link

Re: [PATCH] hugetlbfs: fix hugetlb page migration/fault race causing SIGBUS

2019-08-12 Thread Michal Hocko
On Sun 11-08-19 19:46:14, Sasha Levin wrote: > On Fri, Aug 09, 2019 at 03:17:18PM -0700, Andrew Morton wrote: > > On Fri, 9 Aug 2019 08:46:33 +0200 Michal Hocko wrote: > > > > > > Maybe we should introduce the Fixes-no-stable: tag. That should get > > > > their attention. > > > > > > No please,

AW: Resend [PATCH] kernel/resource.c: invalidate parent when freed resource has childs

2019-08-12 Thread Schmid, Carsten
> -Ursprüngliche Nachricht- > Von: Wei Yang [mailto:richard.weiy...@gmail.com] > Gesendet: Samstag, 10. August 2019 02:45 > An: Linus Torvalds > Cc: Wei Yang ; Schmid, Carsten > ; b...@suse.de; dan.j.willi...@intel.com; > mi...@kernel.org; dave.han...@linux.intel.com; linux- > ker...@vger.

Re: About threaded interrupt handler CPU affinity

2019-08-12 Thread John Garry
On 10/08/2019 10:47, Ming Lei wrote: On Tue, Jul 23, 2019 at 1:40 AM John Garry wrote: On 22/07/2019 16:34, Thomas Gleixner wrote: John, Hi Thomas, On Mon, 22 Jul 2019, John Garry wrote: On 22/07/2019 15:41, Marc Zyngier wrote: On 22/07/2019 15:14, John Garry wrote: I have a question

Re: [PATCH v5 15/18] thermal: sun8i: allow to use custom temperature calculation function

2019-08-12 Thread Maxime Ripard
Hi, On Sat, Aug 10, 2019 at 05:28:26AM +, Yangtao Li wrote: > From: Icenowy Zheng > > The H5 temperature calculation function is strange. Firstly, it's > segmented. Secondly, the formula of two sensors are different in the > second segment. > > Allow to use a custom temperature calculation fu

[PATCH v2 1/3] genirq: enhance error recovery code in free irq

2019-08-12 Thread Ben Luo
Per Thomas Gleixner's comments: 1) free_irq/free_percpu_irq returns if called from IRQ context 2) move WARN out of the locked region and print out dev_id Signed-off-by: Ben Luo --- kernel/irq/manage.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff

[PATCH v2 2/3] genirq: introduce update_irq_devid()

2019-08-12 Thread Ben Luo
Sometimes, only the dev_id field of irqaction need to be changed. E.g. KVM VM with device passthru via VFIO may switch irq injection path between KVM irqfd and userspace eventfd. These two paths share the same irq num and handler for the same vector of a device, only with different dev_id referenci

[PATCH v2 0/3] introduce update_irq_devid and optimize VFIO irq ops

2019-08-12 Thread Ben Luo
Currently, VFIO takes a lot of free-then-request-irq actions whenever a VM (with device passthru via VFIO) sets irq affinity or mask/unmask irq. Those actions only change the cookie data of irqaction or even change nothing. The free-then-request-irq not only add more latency, but also increases the

[PATCH v2 3/3] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-12 Thread Ben Luo
When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq action (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq action is taken in current code. And, irq affinity setting in VM will also trigger a free-then-re

[PATCH] watchdog: imx_sc: Remove unnecessary error log

2019-08-12 Thread Anson . Huang
From: Anson Huang An error message is already displayed by watchdog_register_device() when failed, so no need to have error log again for failure of calling devm_watchdog_register_device(). Signed-off-by: Anson Huang --- drivers/watchdog/imx_sc_wdt.c | 5 + 1 file changed, 1 insertion(+),

Re: [PATCH] media: docs-rst: Clarify duration of LP-11 mode

2019-08-12 Thread Ian Arkver
Hi Steve, On 11/08/2019 18:36, Steve Longerbeam wrote: Add a sentence that makes it more clear when the CSI-2 transmitter must, if possible, exit LP-11 mode. That is, maintain LP-11 mode until stream on, at which point the transmitter activates the clock lane and transition to HS mode. Signed-o

Re: [PATCH v3 17/21] ARM: dts: imx6ull: improve can templates

2019-08-12 Thread Philippe Schenker
On Fri, 2019-08-09 at 15:47 +, Marcel Ziswiler wrote: > Hi Philippe > > On Wed, 2019-08-07 at 08:26 +, Philippe Schenker wrote: > > From: Max Krummenacher > > > > Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 > > and move the inactive flexcan nodes to imx6ull-colibri

Re: [PATCH v5 02/18] dt-bindings: thermal: add binding document for h6 thermal controller

2019-08-12 Thread Maxime Ripard
On Sat, Aug 10, 2019 at 05:28:13AM +, Yangtao Li wrote: > This patch adds binding document for allwinner h6 thermal controller. > > Signed-off-by: Yangtao Li > --- > .../bindings/thermal/sun8i-thermal.yaml | 79 +++ > 1 file changed, 79 insertions(+) > create mode 10064

Re: [PATCH] staging: iio: accel: adis16240: Improve readability on write_raw function

2019-08-12 Thread Jonathan Cameron
On Sun, 11 Aug 2019 13:47:04 -0300 Rodrigo Ribeiro wrote: > Em dom, 11 de ago de 2019 às 05:43, Jonathan Cameron > escreveu: > > > > On Sat, 10 Aug 2019 12:00:58 -0300 > > Rodrigo wrote: > > > > > From: Rodrigo Carvalho > > > > > > Improve readability by using GENMASK macro, changing switch

Re: [PATCH 3/3] acpi/hmat: Skip publishing target info for nodes with no online memory

2019-08-12 Thread Rafael J. Wysocki
On Mon, Aug 5, 2019 at 4:30 PM Keith Busch wrote: > > From: Dan Williams > > There are multiple scenarios where the HMAT may contain information > about proximity domains that are not currently online. Rather than fail > to report any HMAT data just elide those offline domains. > > If and when th

[PATCH] staging: iio: adc: ad7192: Remove platform data

2019-08-12 Thread Mircea Caprioru
This patch removes the reference voltage entry from the platform_data structure. This is no longer needed since the reference voltage is obtained from the device tree. With this we also remove the entire ad7192.h file. The undefined reference voltage warning is promoted to an error signaling a pro

RE: [PATCH 3/8] thunderbolt: Use 32-bit writes when writing ring producer/consumer

2019-08-12 Thread David Laight
From: 'Mika Westerberg' > Sent: 08 August 2019 10:58 > On Wed, Aug 07, 2019 at 04:41:30PM +, David Laight wrote: > > From: 'Mika Westerberg' [mailto:mika.westerb...@linux.intel.com] > > > Sent: 07 August 2019 17:36 > > > > > > On Wed, Aug 07, 2019 at 04:22:26PM +, David Laight wrote: > > >

[PATCH V2 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-12 Thread Anson . Huang
From: Anson Huang Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- No changes. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/fs

[PATCH V2 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-12 Thread Anson . Huang
From: Anson Huang Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 6859a3a..1fdb5a35 100

Re: [PATCH 1/5] can: xilinx_can: defer the probe if clock is not found

2019-08-12 Thread Marc Kleine-Budde
On 8/12/19 9:28 AM, Appana Durga Kedareswara rao wrote: > From: Venkatesh Yadav Abbarapu > > It's not always the case that clock is already available when can > driver get probed at the first time, e.g. the clock is provided by > clock wizard which may be probed after can driver. So let's defer >

[PATCH V2 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-12 Thread Anson . Huang
From: Anson Huang Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defcon

[PATCH V2 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-12 Thread Anson . Huang
From: Anson Huang The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer that is available for system use. It provides a safety feature to ensure that software is executing as planned and that the CPU is not stuck in an infinite loop or executing unintended code. If the WDOG module is

[PATCH 2/4] iio: adc: ad_sigma_delta: Export ad_sd_calibrate

2019-08-12 Thread Mircea Caprioru
This patch exports the ad_sd_calibrate function in order to be able to call it from outside ad_sigma_delta. There are cases where the option to calibrate one channel at a time is necessary (ex. system calibration for zero scale and full scale). Signed-off-by: Mircea Caprioru --- drivers/iio/adc

[PATCH 1/4] staging: iio: adc: ad7192: Add low_pass_3db_filter_frequency

2019-08-12 Thread Mircea Caprioru
By adding this option we are able to remove the sync3 field and dt binding. When setting the required cutoff frequency we also determine the ADC configuration for chop and sync filter. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 148 +++ 1 fi

[PATCH 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-08-12 Thread Mircea Caprioru
This patch add device tree binding documentation for AD7192 adc in YAML format. Signed-off-by: Mircea Caprioru --- .../bindings/iio/adc/adi,ad7192.yaml | 123 ++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7192.ya

[PATCH 3/4] staging: iio: adc: ad7192: Add system calibration support

2019-08-12 Thread Mircea Caprioru
This patch will add a system calibration attribute for each channel. Using this option the user will have the ability to calibrate each channel for zero scale and full scale. It uses the iio_chan_spec_ext_info and IIO_ENUM to implement the functionality. Signed-off-by: Mircea Caprioru --- driver

Re: [PATCH v3 4/4] ASoC: codecs: add wsa881x amplifier support

2019-08-12 Thread Srinivas Kandagatla
improve the system] url: https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/ASoC-codecs-Add-WSA881x-Smart-Speaker-amplifier-support/20190812-080612 config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 7.4.0 reproduce: wget https

Re: [PATCH] net/mlx4_en: fix a memory leak bug

2019-08-12 Thread Tariq Toukan
Hi Wenwen, Thanks for your patch. On 8/12/2019 9:36 AM, Wenwen Wang wrote: > In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through > kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS > indirection. However, if mlx4_qp_alloc() fails, the allocated > 'rss_map->ind

Re: [PATCH 0/5] can: xilinx_can: Bug fixes

2019-08-12 Thread Marc Kleine-Budde
On 8/12/19 9:28 AM, Appana Durga Kedareswara rao wrote: > This patch series fixes below issues > --> Bugs in the driver w.r.to CANFD 2.0 IP support > --> Defer the probe if clock is not found > > Appana Durga Kedareswara rao (3): > can: xilinx_can: Fix FSR register handling in the rx path > ca

Re: [PATCH 0/7] Add definition for the number of standard PCI BARs

2019-08-12 Thread Andrew Murray
On Sun, Aug 11, 2019 at 06:07:55PM +0300, Denis Efremov wrote: > Code that iterates over all standard PCI BARs typically uses > PCI_STD_RESOURCE_END, but this is error-prone because it requires > "i <= PCI_STD_RESOURCE_END" rather than something like > "i < PCI_STD_NUM_BARS". We could add such a de

Re: [PATCH] KVM: LAPIC: Periodically revaluate appropriate lapic_timer_advance_ns

2019-08-12 Thread Wanpeng Li
On Fri, 9 Aug 2019 at 18:24, Paolo Bonzini wrote: > > On 09/08/19 07:45, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Even if for realtime CPUs, cache line bounces, frequency scaling, presence > > of higher-priority RT tasks, etc can cause different response. These > > interferences should be c

Re: [PATCH v1] Revert "mmc: sdhci-tegra: drop ->get_ro() implementation"

2019-08-12 Thread Thierry Reding
On Fri, Aug 09, 2019 at 01:24:30AM +0300, Dmitry Osipenko wrote: > The WRITE_PROTECT bit is always in a "protected mode" on Tegra and > WP-GPIO state need to be used instead. In a case of the GPIO absence, > write-enable should be assumed. External SD is writable once again as > a result of this pa

RE: [PATCH 1/5] can: xilinx_can: defer the probe if clock is not found

2019-08-12 Thread Appana Durga Kedareswara Rao
Hi Marc, Thanks for the review... > On 8/12/19 9:28 AM, Appana Durga Kedareswara rao wrote: > > From: Venkatesh Yadav Abbarapu > > > > It's not always the case that clock is already available when can > > driver get probed at the first time, e.g. the clock is provided by > > clock wizard which

RE: [PATCH 0/5] can: xilinx_can: Bug fixes

2019-08-12 Thread Appana Durga Kedareswara Rao
Hi Marc, Thanks for the review. > On 8/12/19 9:28 AM, Appana Durga Kedareswara rao wrote: > > This patch series fixes below issues > > --> Bugs in the driver w.r.to CANFD 2.0 IP support Defer the probe if > > --> clock is not found > > > > Appana Durga Kedareswara rao (3): > > can: xilinx_can

Re: [PATCH 0/5] can: xilinx_can: Bug fixes

2019-08-12 Thread Marc Kleine-Budde
On 8/12/19 11:05 AM, Marc Kleine-Budde wrote: > On 8/12/19 9:28 AM, Appana Durga Kedareswara rao wrote: >> This patch series fixes below issues >> --> Bugs in the driver w.r.to CANFD 2.0 IP support >> --> Defer the probe if clock is not found >> >> Appana Durga Kedareswara rao (3): >> can: xilinx

Re: [RFC] perf_sample_id::idx

2019-08-12 Thread Adrian Hunter
On 9/08/19 7:04 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 09, 2019 at 03:20:14PM +, Hunter, Adrian escreveu: > >> It will be used for AUX area sampling. A sample will have AUX area >> data that will be queued for decoding, where there are separate queues >> for each CPU (per-cpu traci

Re: [PATCH 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-12 Thread Baolin Wang
Hi Uwe, On Mon, 12 Aug 2019 at 16:36, Uwe Kleine-König wrote: > > Hello Baolin, > > On Mon, Aug 12, 2019 at 03:29:07PM +0800, Baolin Wang wrote: > > Hi Uwe, > > > > On Fri, 9 Aug 2019 at 22:41, Uwe Kleine-König > > wrote: > > > On Fri, Aug 09, 2019 at 06:06:21PM +0800, Baolin Wang wrote: > > > >

Re: [PATCH] [semaphore] Removed redundant code from semaphore's down family of function

2019-08-12 Thread Will Deacon
On Mon, Aug 12, 2019 at 05:31:43AM +, Satendra Singh Thakur wrote: > -The semaphore code has four funcs > down, > down_interruptible, > down_killable, > down_timeout > -These four funcs have almost similar code except that > they all call lower level function __down_xyz. > -This lower level fun

Re: linux-next: build warning after merge of the slave-dma tree

2019-08-12 Thread Arnd Bergmann
On Mon, Aug 12, 2019 at 9:14 AM Stephen Rothwell wrote: > > Hi all, > > After merging the slave-dma tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > WARNING: "omap_dma_filter_fn" [vmlinux] is a static EXPORT_SYMBOL_GPL > WARNING: "edma_filter_fn" [vmlinux] is a

Re: [PATCH v3 0/4] perf: Use capabilities instead of uid and euid

2019-08-12 Thread Jiri Olsa
On Wed, Aug 07, 2019 at 10:44:13AM -0400, Igor Lubashev wrote: > Series v1: > https://lkml.kernel.org/lkml/1562112605-6235-1-git-send-email-iluba...@akamai.com > > > Kernel is using capabilities instead of uid and euid to restrict access to > kernel pointers and tracing facilities. This patch s

Re: [PATCH v3 05/21] ARM: dts: add recovery for I2C for iMX7

2019-08-12 Thread Michal Vokáč
On 07. 08. 19 10:26, Philippe Schenker wrote: From: Oleksandr Suvorov - add recovery mode for applicable i2c buses for Colibri iMX7 module. Signed-off-by: Oleksandr Suvorov Signed-off-by: Philippe Schenker --- Hi Philippe, since you are going to send v4 anyway I suggest you update the s

Re: [PATCH v3 1/2] virtio_console: free unused buffers with port delete

2019-08-12 Thread Michael S. Tsirkin
On Mon, Aug 12, 2019 at 01:36:48AM -0400, Pankaj Gupta wrote: > > > > > On Fri, Aug 09, 2019 at 12:18:46PM +0530, Pankaj Gupta wrote: > > > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > > > deferred detaching of unused buffer to virtio device unplug time. > > > This cause

Re: [PATCH v8 01/21] pinctrl: tegra: Fix write barrier placement in pmx_writel

2019-08-12 Thread Thierry Reding
On Thu, Aug 08, 2019 at 04:46:40PM -0700, Sowjanya Komatineni wrote: > pmx_writel uses writel which inserts write barrier before the > register write rather. > > This patch has fix to replace writel with writel_relaxed followed > by a write barrier to ensure write operation before the barrier > is

Re: [PATCH v8 02/21] pinctrl: tegra: Add write barrier after all pinctrl register writes

2019-08-12 Thread Thierry Reding
On Thu, Aug 08, 2019 at 04:46:41PM -0700, Sowjanya Komatineni wrote: > This patch adds write barrier after all pinctrl register writes > during resume to make sure all pinctrl changes are complete. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/pinctrl/tegra/pinctrl-tegra.c | 2 ++ > 1 f

Re: [PATCH v8 03/21] clk: tegra: divider: Save and restore divider rate

2019-08-12 Thread Thierry Reding
On Thu, Aug 08, 2019 at 04:46:42PM -0700, Sowjanya Komatineni wrote: > This patch implements context restore for clock divider. > > During system suspend, core power goes off and looses the settings > of the Tegra CAR controller registers. > > So on resume, clock dividers are restored back for no

Re: linux-next: build warning after merge of the slave-dma tree

2019-08-12 Thread Stephen Rothwell
Hi Arnd, On Mon, 12 Aug 2019 11:14:08 +0200 Arnd Bergmann wrote: > > The warning is valid, I will send a fix. Thanks. > I have never seen this message though, I guess the build system just > introduced > a check for this? I don't see where this would come from in next-20190809 > (only checking

[PATCH v9 0/7] powerpc: implement machine check safe memcpy

2019-08-12 Thread Santosh Sivaraj
During a memcpy from a pmem device, if a machine check exception is generated we end up in a panic. In case of fsdax read, this should only result in a -EIO. Avoid MCE by implementing memcpy_mcsafe. Before this patch series: ``` bash-4.4# mount -o dax /dev/pmem0 /mnt/pmem/ [ 7621.714094] Disablin

[PATCH v9 4/7] extable: Add function to search only kernel exception table

2019-08-12 Thread Santosh Sivaraj
Certain architecture specific operating modes (e.g., in powerpc machine check handler that is unable to access vmalloc memory), the search_exception_tables cannot be called because it also searches the module exception tables if entry is not found in the kernel exception table. Cc: Thomas Gleixner

[PATCH v9 2/7] powerpc/mce: Fix MCE handling for huge pages

2019-08-12 Thread Santosh Sivaraj
From: Balbir Singh The current code would fail on huge pages addresses, since the shift would be incorrect. Use the correct page shift value returned by __find_linux_pte() to get the correct physical address. The code is more generic and can handle both regular and compound pages. Fixes: ba41e1e

[PATCH v9 7/7] powerpc: add machine check safe copy_to_user

2019-08-12 Thread Santosh Sivaraj
Use memcpy_mcsafe() implementation to define copy_to_user_mcsafe() Signed-off-by: Santosh Sivaraj --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/uaccess.h | 14 ++ 2 files changed, 15 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig in

[PATCH v9 3/7] powerpc/mce: Make machine_check_ue_event() static

2019-08-12 Thread Santosh Sivaraj
From: Reza Arbab The function doesn't get used outside this file, so make it static. Signed-off-by: Reza Arbab Signed-off-by: Santosh Sivaraj Reviewed-by: Nicholas Piggin --- arch/powerpc/kernel/mce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH v9 1/7] powerpc/mce: Schedule work from irq_work

2019-08-12 Thread Santosh Sivaraj
schedule_work() cannot be called from MCE exception context as MCE can interrupt even in interrupt disabled context. fixes: 733e4a4c ("powerpc/mce: hookup memory_failure for UE errors") Suggested-by: Mahesh Salgaonkar Signed-off-by: Santosh Sivaraj Cc: sta...@vger.kernel.org # v4.15+ --- arch/p

[PATCH v9 6/7] powerpc/mce: Handle UE event for memcpy_mcsafe

2019-08-12 Thread Santosh Sivaraj
If we take a UE on one of the instructions with a fixup entry, set nip to continue execution at the fixup entry. Stop processing the event further or print it. Co-developed-by: Reza Arbab Signed-off-by: Reza Arbab Cc: Mahesh Salgaonkar Signed-off-by: Santosh Sivaraj --- arch/powerpc/include/a

<    4   5   6   7   8   9   10   11   12   >