Re: [PATCH] net: sky2: switch from 'pci_' to 'dma_' API

2020-07-12 Thread Julia Lawall
On Sun, 12 Jul 2020, Christophe JAILLET wrote: > Le 12/07/2020 à 08:32, Joe Perches a écrit : > > On Sun, 2020-07-12 at 08:29 +0200, Christophe JAILLET wrote: > > > Le 11/07/2020 à 23:20, Joe Perches a écrit : > > > > On Sat, 2020-07-11 at 22:49 +0200, Christophe JAILLET wrote: > > > > > The wra

[PATCH] Staging: comedi: driver: Remove condition with no effect

2020-07-12 Thread Saurav Girepunje
Remove below warning in das1800.c WARNING: possible condition with no effect (if == else) Signed-off-by: Saurav Girepunje --- drivers/staging/comedi/drivers/das1800.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drive

[no subject]

2020-07-12 Thread Jacob Wen
unsubscribe linux-kernel

Re: [PATCH RFC] leds: Add support for per-LED device triggers

2020-07-12 Thread Pavel Machek
On Sat 2020-07-11 23:01:11, Ondřej Jirman wrote: > Hello Pavel, > > On Sat, Jul 11, 2020 at 12:04:09PM +0200, Pavel Machek wrote: > > Hi! > > > > > Some LED controllers may come with an internal HW triggering mechanism > > > for the LED and an ability to switch between user control of the LED, >

Re: [PATCH v1] Bluetooth: Fix kernel oops triggered by hci_adv_monitors_clear()

2020-07-12 Thread Pavel Machek
On Tue 2020-07-07 17:38:46, Marcel Holtmann wrote: > Hi Miao-chen, > > > This fixes the kernel oops by removing unnecessary background scan > > update from hci_adv_monitors_clear() which shouldn't invoke any work > > queue. > > > > The following test was performed. > > - Run "rmmod btusb" and ver

[PATCH] ARM: dts: vf610-zii-spb4: Add node for switch watchdog

2020-07-12 Thread Chris Healy
Add I2C child node for switch watchdog present on SPB4 Signed-off-by: Chris Healy --- arch/arm/boot/dts/vf610-zii-spb4.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-spb4.dts b/arch/arm/boot/dts/vf610-zii-spb4.dts index a68eae88174a..9e5

Re: [PATCH 1/1] leds: fix spelling mistake

2020-07-12 Thread Pavel Machek
On Wed 2020-06-10 08:16:31, Alexander Dahl wrote: > That one made me laugh. :-) > > Reviewed-by: Alexander Dahl :-). Applied. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karli

Re: [PATCH] leds: trigger: gpio: Avoid warning on update of inverted

2020-07-12 Thread Pavel Machek
On Sat 2020-06-13 09:15:06, Jan Kiszka wrote: > From: Jan Kiszka > > If the GPIO has not been configured yet, writing to inverted will raise > a kernel warning. > > Signed-off-by: Jan Kiszka Thanks, applied. Pavel

Re: [PATCH v2] leds: core: Flush scheduled work for system suspend

2020-07-12 Thread Pavel Machek
Hi! > > EXPORT_SYMBOL_GPL(led_classdev_suspend); > > > > Acked-by: Jacek Anaszewski > > Pavel, this needs to go to stable as well, so let's add the tag: > > Fixes: 81fe8e5b73e3 ("leds: core: Add led_set_brightness_nosleep{nopm} > functions") Applied, and I added the tag (thanks). Documentat

drivers/gpu/drm/mediatek/mtk_dpi.c:721:2-9: line 721 is redundant because platform_get_irq() already prints an error (fwd)

2020-07-12 Thread Julia Lawall
-- Forwarded message -- Date: Sun, 12 Jul 2020 11:15:29 +0800 From: kernel test robot To: kbu...@lists.01.org Cc: l...@intel.com, Julia Lawall Subject: drivers/gpu/drm/mediatek/mtk_dpi.c:721:2-9: line 721 is redundant because platform_get_irq() already prints an error CC: k

Re: [PATCH v3 1/3] devres: provide devm_krealloc()

2020-07-12 Thread Bartosz Golaszewski
On Sat, Jul 11, 2020 at 5:08 PM Andy Shevchenko wrote: > > On Fri, Jul 10, 2020 at 7:17 PM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > Implement the managed variant of krealloc(). This function works with > > all memory allocated by devm_kmalloc() (or devres functions us

Re: [PATCH] docs/core-api: memory-allocation: describe reclaim behaviour

2020-07-12 Thread Mike Rapoport
Another ping :) On Fri, Jul 03, 2020 at 12:55:04AM +0300, Mike Rapoport wrote: > Gentle ping. > > On Fri, Jun 26, 2020 at 05:29:50PM +0300, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Changelog of commit dcda9b04713c ("mm, tree wide: replace __GFP_REPEAT by > > __GFP_RETRY_MAYFAIL with

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Pavel Machek
Hi! > +++ b/Documentation/ABI/testing/sysfs-class-led-trigger-tty > @@ -0,0 +1,6 @@ > +What:/sys/class/leds//ttyname > +Date:Jul 2020 > +KernelVersion: 5.8 > +Contact: linux-l...@vger.kernel.org > +Description: > + Specifies the tty device name

Re: [PATCH][next] leds: ns2: Use struct_size() in devm_kzalloc()

2020-07-12 Thread Pavel Machek
On Wed 2020-06-17 18:07:57, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. Also, remove unnecessary > function sizeof_ns2_led_priv(). > > This code was detected with the help of Coccinelle and, aud

Re: [PATCH][next] leds: gpio: Use struct_size() in devm_kzalloc()

2020-07-12 Thread Pavel Machek
On Fri 2020-06-19 17:14:03, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. Also, remove unnecessary > function sizeof_gpio_leds_priv(). > > This code was detected with the help of Coccinelle and, a

[PATCH] mm/sparse: cleanup the code surrounding memory_present()

2020-07-12 Thread Mike Rapoport
From: Mike Rapoport After removal of CONFIG_HAVE_MEMBLOCK_NODE_MAP we have two equivalent functions that call memory_present() for each region in memblock.memory: sparse_memory_present_with_active_regions() and membocks_present(). Moreover, all architectures have a call to either of these functi

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Greg Kroah-Hartman
On Sun, Jul 12, 2020 at 10:24:53AM +0200, Pavel Machek wrote: > > +++ b/drivers/leds/trigger/ledtrig-tty.c > > @@ -0,0 +1,192 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > 2.0+ is preffered. No it is not, that's up to the developer. thanks, greg k-h

KMSAN: uninit-value in path_openat

2020-07-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f0d5ec90 kmsan: apply __no_sanitize_memory to dotraplinkag.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=159636b710 kernel config: https://syzkaller.appspot.co

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Pavel Machek
On Sun 2020-07-12 10:43:52, Greg Kroah-Hartman wrote: > On Sun, Jul 12, 2020 at 10:24:53AM +0200, Pavel Machek wrote: > > > +++ b/drivers/leds/trigger/ledtrig-tty.c > > > @@ -0,0 +1,192 @@ > > > +// SPDX-License-Identifier: GPL-2.0 > > > > 2.0+ is preffered. > > No it is not, that's up to the dev

Re: [PATCH 00/22] add support for Clang LTO

2020-07-12 Thread Sedat Dilek
On Sat, Jul 11, 2020 at 6:32 PM Paul Menzel wrote: > > Dear Sami, > > > Am 24.06.20 um 22:31 schrieb Sami Tolvanen: > > This patch series adds support for building x86_64 and arm64 kernels > > with Clang's Link Time Optimization (LTO). > > > > In addition to performance, the primary motivation for

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Greg Kroah-Hartman
On Sun, Jul 12, 2020 at 10:50:59AM +0200, Pavel Machek wrote: > On Sun 2020-07-12 10:43:52, Greg Kroah-Hartman wrote: > > On Sun, Jul 12, 2020 at 10:24:53AM +0200, Pavel Machek wrote: > > > > +++ b/drivers/leds/trigger/ledtrig-tty.c > > > > @@ -0,0 +1,192 @@ > > > > +// SPDX-License-Identifier: GPL

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Pavel Machek
On Sun 2020-07-12 11:02:17, Greg Kroah-Hartman wrote: > On Sun, Jul 12, 2020 at 10:50:59AM +0200, Pavel Machek wrote: > > On Sun 2020-07-12 10:43:52, Greg Kroah-Hartman wrote: > > > On Sun, Jul 12, 2020 at 10:24:53AM +0200, Pavel Machek wrote: > > > > > +++ b/drivers/leds/trigger/ledtrig-tty.c > >

[RESEND PATCH] ARM: dts: imx6sx-sdb: Add MQS support

2020-07-12 Thread Shengjiu Wang
Add MQS support. As the pin conflict with usdhc2, then need to add a separate dts. Signed-off-by: Shengjiu Wang --- changes in RESEND - resolve the conflict with latest tree. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sx-sdb-mqs.dts | 48 arc

Re: [PATCH 0/5] Add audio support for imx6sx platform

2020-07-12 Thread S.j. Wang
Hi > > On Thu, Jun 18, 2020 at 02:03:44PM +0800, Shengjiu Wang wrote: > > Add audio support for imx6sx platform. > > Enable ASRC, ESAI, SPDIF, MQS. > > > > Shengjiu Wang (5): > > ARM: dts: imx6sx: Enable ASRC device > > ARM: dts: imx6sx-sdb: Add MQS support > > Applied the series, except thi

Re: [PATCH v2 3/5] irqchip: Allow QCOM_PDC to be loadable as a permanent module

2020-07-12 Thread Marc Zyngier
On Sat, 11 Jul 2020 00:27:45 +0100, Stephen Boyd wrote: > > Quoting John Stultz (2020-07-10 15:44:18) > > On Thu, Jul 9, 2020 at 11:02 PM Stephen Boyd wrote: > > > > > > Does it work? I haven't looked in detail but I worry that the child > > > irqdomain (i.e. pinctrl-msm) would need to delay pro

GPS fun on Droid 4 and leste

2020-07-12 Thread Pavel Machek
Hi! GPS on the droid 4 does not really work out of the box. gpsd is not in default installation, maybe it should be? What is worse, there's something broken with gpsd. Try: /usr/sbin/gpsd -N -D 5 /dev/gnss0 gpspipe -w # this seems to work, but do ^C and restart gpspipe -w ...and it hangs. xgps

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-12 Thread Greg Kroah-Hartman
On Sun, Jul 12, 2020 at 11:07:31AM +0200, Pavel Machek wrote: > On Sun 2020-07-12 11:02:17, Greg Kroah-Hartman wrote: > > On Sun, Jul 12, 2020 at 10:50:59AM +0200, Pavel Machek wrote: > > > On Sun 2020-07-12 10:43:52, Greg Kroah-Hartman wrote: > > > > On Sun, Jul 12, 2020 at 10:24:53AM +0200, Pavel

[PATCH 2/5] firmware: tegra: Use consistent return variable name

2020-07-12 Thread Jon Hunter
Most functions in the BPMP driver use 'err' as the return variable name but there are a few places that use 'ret'. Let's use 'err' to be consistent. Signed-off-by: Jon Hunter --- drivers/firmware/tegra/bpmp-debugfs.c | 36 +-- drivers/firmware/tegra/bpmp.c | 6 ++

[PATCH 3/5] firmware: tegra: Prepare for supporting in-band debugfs

2020-07-12 Thread Jon Hunter
Currently, BPMP debug information is accessible via the Linux debugfs file-system using a shared-memory scheme. More recent BPMP firmware now supports accessing the debug information by in-band messaging which does not require shared-memory. To prepare for adding in-band debugfs support for the BPM

[PATCH 1/5] firmware: tegra: add return code checks and increase debugfs size

2020-07-12 Thread Jon Hunter
From: Timo Alho Add checking of the BPMP-FW return code values for MRQ_DEBUGFS calls. Also, development versions of the firmware may have debugfs with directory structure larger than 256Kb. Hence increase the size of the memory buffer to accommodate those firmware revisions. And finally, ensure

[PATCH 5/5] firmware: tegra: Update BPMP ABI

2020-07-12 Thread Jon Hunter
Update the BPMP ABI to align with the the latest version. Signed-off-by: Jon Hunter --- include/soc/tegra/bpmp-abi.h | 748 +-- 1 file changed, 460 insertions(+), 288 deletions(-) diff --git a/include/soc/tegra/bpmp-abi.h b/include/soc/tegra/bpmp-abi.h index 4896

arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x2c): undefined reference to `wm97xx_config_gpio'

2020-07-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b commit: ff487d41036035376e47972c7c522490b839ab37 MIPS: Truncate link address into 32bit for 32bit kernel date: 9 weeks ago config: mips-randconfig-c023-20200712

[PATCH 4/5] firmware: tegra: Add support for in-band debug

2020-07-12 Thread Jon Hunter
Add support for retrieving BPMP debug information via in-band messaging as opposed to using shared-memory which older BPMP firmware used. Note that it is possible to detect at runtime whether the BPMP firmware being used supports the in-band messaging for retrieving the debug informaation. Therefor

[PATCH 0/5] firmware: tegra: Add support for in-band debug

2020-07-12 Thread Jon Hunter
This series adds support for in-band debug messaging for the BPMP and updates the BPMP ABI to align with the latest version. Jon Hunter (4): firmware: tegra: Use consistent return variable name firmware: tegra: Prepare for supporting in-band debugfs firmware: tegra: Add support for in-band d

RE: [PATCH v3] scsi: ufs: Cleanup completed request without interrupt notification

2020-07-12 Thread Avri Altman
> > Hi Avri, > > On Thu, 2020-07-09 at 08:31 +, Avri Altman wrote: > > > > > > If somehow no interrupt notification is raised for a completed request > > > and its doorbell bit is cleared by host, UFS driver needs to cleanup > > > its outstanding bit in ufshcd_abort(). > > Theoretically, th

[PATCH 1/2] cpufreq: tegra186: Fix initial frequency

2020-07-12 Thread Jon Hunter
Commit 6cc3d0e9a097 ("cpufreq: tegra186: add CPUFREQ_NEED_INITIAL_FREQ_CHECK flag") fixed CPUFREQ support for Tegra186 but as a consequence the following warnings are now seen on boot ... cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 0 KHz cpufreq: cpufreq_online: CPU0: Unlisted initi

[PATCH 2/2] cpufreq: tegra186: Simplify probe return path

2020-07-12 Thread Jon Hunter
We always put the reference to BPMP device on exit of the Tegra186 CPUFREQ driver and so there is no need to have separate exit paths for success and failure. Therefore, simplify the probe return path in the Tegra186 CPUFREQ driver by combining the success and failure paths. Signed-off-by: Jon Hun

[GIT PULL] Btrfs fixes for 5.8-rc5, part 2

2020-07-12 Thread David Sterba
Hi, please pull two refcounting fixes and one prepartory patch for upcoming splice cleanup. Thanks. - fix double put of block group with nodatacow - fix missing block group put when remounting with discard=async - explicitly set splice callback (no functional change), to ease integrating spli

[PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-12 Thread Jon Hunter
After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") was added system suspend started failing on Tegra186. The kernel log showed that the Tegra XHCI driver was crashing on entry to suspend when attemptin the save the USB context. The problem is caused because we are trying to al

[PATCH 1/2] usb: tegra: Fix allocation for the FPCI context

2020-07-12 Thread Jon Hunter
Commit 5c4e8d3781bc ("usb: host: xhci-tegra: Add support for XUSB context save/restore") is using the IPFS 'num_offsets' value when allocating memory for FPCI context instead of the FPCI 'num_offsets'. We have not observed any specific issues because of this, but could cause too much memory or too

[PATCH v4] ARM: dts: am335x-pocketbeagle: set default mux for gpio pins

2020-07-12 Thread Drew Fustini
These pins on the PocketBeagle P1 and P2 headers are connected to AM3358 balls with gpio lines, and these pins are not used for any other peripherals by default. These GPIO lines are unclaimed and could be used by userspace program through the gpiod ABI. This patch adds a "default" state in the am

Re: [PATCH] SUPERH: Replace HTTP links with HTTPS ones

2020-07-12 Thread Rob Landley
On 7/8/20 9:17 PM, Alexander A. Klimov wrote: > diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig > index 9fc2b010e938..bc91bdb0b665 100644 > --- a/arch/sh/Kconfig > +++ b/arch/sh/Kconfig > @@ -74,7 +74,7 @@ config SUPERH > The SuperH is a RISC processor targeted for use in embedded systems >

[PATCH] fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins.

2020-07-12 Thread Tetsuo Handa
I found that const int fd = open("/dev/fb0", O_ACCMODE); struct fb_var_screeninfo var = { }; ioctl(fd, FBIOGET_VSCREENINFO, &var); var.xres = var.yres = 1; ioctl(fd, FBIOPUT_VSCREENINFO, &var); causes general protection fault in bitfill_aligned(), for vc_do_resize() updates vc->vc_{cols

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

2020-07-12 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 caused by fb_set_var() from ioctl(FBIOPUT_VSCREENINFO) on /dev/fb0 , for gotoxy(vc, 0, 0)

[PATCH] sh: Replace HTTP links with HTTPS ones

2020-07-12 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH v5 14/15] vfio: Document dual stage control

2020-07-12 Thread Liu Yi L
From: Eric Auger The VFIO API was enhanced to support nested stage control: a bunch of new iotcls and usage guideline. Let's document the process to follow to set up nested mode. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel Cc:

[PATCH v5 10/15] vfio/type1: Support binding guest page tables to PASID

2020-07-12 Thread Liu Yi L
Nesting translation allows two-levels/stages page tables, with 1st level for guest translations (e.g. GVA->GPA), 2nd level for host translations (e.g. GPA->HPA). This patch adds interface for binding guest page tables to a PASID. This PASID must have been allocated to user space before the binding

[PATCH v5 00/15] vfio: expose virtual Shared Virtual Addressing to VMs

2020-07-12 Thread Liu Yi L
Shared Virtual Addressing (SVA), a.k.a, Shared Virtual Memory (SVM) on Intel platforms allows address space sharing between device DMA and applications. SVA can reduce programming complexity and enhance security. This VFIO series is intended to expose SVA usage to VMs. i.e. Sharing guest applicati

[PATCH v5 05/15] vfio: Add PASID allocation/free support

2020-07-12 Thread Liu Yi L
Shared Virtual Addressing (a.k.a Shared Virtual Memory) allows sharing multiple process virtual address spaces with the device for simplified programming model. PASID is used to tag an virtual address space in DMA requests and to identify the related translation structure in IOMMU. When a PASID-cap

[PATCH v5 08/15] iommu: Pass domain to sva_unbind_gpasid()

2020-07-12 Thread Liu Yi L
From: Yi Sun Current interface is good enough for SVA virtualization on an assigned physical PCI device, but when it comes to mediated devices, a physical device may attached with multiple aux-domains. Also, for guest unbind, the PASID to be unbind should be allocated to the VM. This check requir

[PATCH v5 04/15] vfio/type1: Report iommu nesting info to userspace

2020-07-12 Thread Liu Yi L
This patch exports iommu nesting capability info to user space through VFIO. User space is expected to check this info for supported uAPIs (e.g. PASID alloc/free, bind page table, and cache invalidation) and the vendor specific format information for first level/stage page table that will be bound

[PATCH v5 12/15] vfio/type1: Add vSVA support for IOMMU-backed mdevs

2020-07-12 Thread Liu Yi L
Recent years, mediated device pass-through framework (e.g. vfio-mdev) is used to achieve flexible device sharing across domains (e.g. VMs). Also there are hardware assisted mediated pass-through solutions from platform vendors. e.g. Intel VT-d scalable mode which supports Intel Scalable I/O Virtual

[PATCH v5 13/15] vfio/pci: Expose PCIe PASID capability to guest

2020-07-12 Thread Liu Yi L
This patch exposes PCIe PASID capability to guest for assigned devices. Existing vfio_pci driver hides it from guest by setting the capability length as 0 in pci_ext_cap_length[]. And this patch only exposes PASID capability for devices which has PCIe PASID extended struture in its configuration s

[PATCH v5 15/15] iommu/vt-d: Support reporting nesting capability info

2020-07-12 Thread Liu Yi L
Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel Cc: Lu Baolu Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan --- v2 -> v3: *) remove cap/ecap_mask in iommu_nesting_info. --- drivers/iommu/intel/iommu.c | 81 ++

[PATCH v5 01/15] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-12 Thread Liu Yi L
This patch refactors the vfio_iommu_type1_ioctl() to use switch instead of if-else, and each command got a helper function. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel Cc: Lu Baolu Reviewed-by: Eric Auger Suggested-by: Christop

[PATCH v5 11/15] vfio/type1: Allow invalidating first-level/stage IOMMU cache

2020-07-12 Thread Liu Yi L
This patch provides an interface allowing the userspace to invalidate IOMMU cache for first-level page table. It is required when the first level IOMMU page table is not managed by the host kernel in the nested translation setup. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger

[PATCH v5 07/15] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-12 Thread Liu Yi L
This patch allows user space to request PASID allocation/free, e.g. when serving the request from the guest. PASIDs that are not freed by userspace are automatically freed when the IOASID set is destroyed when process exits. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc:

[PATCH v5 03/15] iommu/smmu: Report empty domain nesting info

2020-07-12 Thread Liu Yi L
This patch is added as instead of returning a boolean for DOMAIN_ATTR_NESTING, iommu_domain_get_attr() should return an iommu_nesting_info handle. Cc: Will Deacon Cc: Robin Murphy Cc: Eric Auger Cc: Jean-Philippe Brucker Suggested-by: Jean-Philippe Brucker Signed-off-by: Liu Yi L Signed-off-

[PATCH v5 06/15] iommu/vt-d: Support setting ioasid set to domain

2020-07-12 Thread Liu Yi L
>From IOMMU p.o.v., PASIDs allocated and managed by external components (e.g. VFIO) will be passed in for gpasid_bind/unbind operation. IOMMU needs some knowledge to check the PASID ownership, hence add an interface for those components to tell the PASID owner. In latest kernel design, PASID owner

[PATCH v5 09/15] iommu/vt-d: Check ownership for PASIDs from user-space

2020-07-12 Thread Liu Yi L
When an IOMMU domain with nesting attribute is used for guest SVA, a system-wide PASID is allocated for binding with the device and the domain. For security reason, we need to check the PASID passsed from user-space. e.g. page table bind/unbind and PASID related cache invalidation. Cc: Kevin Tian

[PATCH v5 02/15] iommu: Report domain nesting info

2020-07-12 Thread Liu Yi L
IOMMUs that support nesting translation needs report the capability info to userspace, e.g. the format of first level/stage paging structures. This patch reports nesting info by DOMAIN_ATTR_NESTING. Caller can get nesting info after setting DOMAIN_ATTR_NESTING. Cc: Kevin Tian CC: Jacob Pan Cc:

Re: [PATCH 1/3] iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()

2020-07-12 Thread Jonathan Cameron
On Mon, 6 Jul 2020 16:36:09 + "Ardelean, Alexandru" wrote: > On Mon, 2020-07-06 at 14:02 +0300, Alexandru Ardelean wrote: > > [External] > > > > There are 2 exit paths where the lock isn't held, but try to unlock the > > mutex when exiting. In these places we should just return from the > >

Re: [PATCH v8 1/6] dt-bindings: iio/adc: Convert ingenic-adc docs to YAML.

2020-07-12 Thread Jonathan Cameron
On Thu, 9 Jul 2020 17:21:55 +0200 Artur Rojek wrote: > Convert the textual documentation of Device Tree bindings for the > Ingenic JZ47xx SoCs ADC controller to YAML. > > The `interrupts` property is now explicitly listed and marked as > required. While missing from the previous textual documen

Re: [PATCH] sh: Replace HTTP links with HTTPS ones

2020-07-12 Thread Rob Landley
On 7/12/20 6:11 AM, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. Trimmed just to the one site without the self-signed certficate: check. > Deterministic algorithm: > For each file: > I

Re: kvm crash on 5.7-rc1 and later

2020-07-12 Thread Woody Suwalski
Xiaoyao Li wrote: On 7/12/2020 2:21 AM, Peter Zijlstra wrote: On Fri, Jul 03, 2020 at 11:15:31AM -0400, Woody Suwalski wrote: I am observing a 100% reproducible kvm crash on kernels starting with 5.7-rc1, always with the same opcode . It happens during wake up from the host suspended state.

Re: [PATCH v8 2/6] IIO: Ingenic JZ47xx: Error check clk_enable calls.

2020-07-12 Thread Jonathan Cameron
On Thu, 9 Jul 2020 17:21:56 +0200 Artur Rojek wrote: > Introduce error checks for the clk_enable calls used in this driver. > As part of the changes, move clk_enable/clk_disable calls out of > ingenic_adc_set_config and into respective logic of its callers. > > Signed-off-by: Artur Rojek > Tes

Re: [PATCH v2 2/2] arm64: tlb: Use the TLBI RANGE feature in arm64

2020-07-12 Thread Catalin Marinas
On Sat, Jul 11, 2020 at 02:50:46PM +0800, Zhenyu Ye wrote: > On 2020/7/11 2:31, Catalin Marinas wrote: > > On Fri, Jul 10, 2020 at 05:44:20PM +0800, Zhenyu Ye wrote: > >> - if ((end - start) >= (MAX_TLBI_OPS * stride)) { > >> + if ((!cpus_have_const_cap(ARM64_HAS_TLBI_RANGE) && > >> + (end -

Re: [PATCH v8 3/6] IIO: Ingenic JZ47xx: Add xlate cb to retrieve correct channel idx

2020-07-12 Thread Jonathan Cameron
On Thu, 9 Jul 2020 17:21:57 +0200 Artur Rojek wrote: > Provide an of_xlate callback in order to retrieve the correct channel > specifier index from the IIO channels array. > > Signed-off-by: Artur Rojek > Tested-by: Paul Cercueil Applied. Thanks, Jonathan > --- > > Changes: > > v2-v8:

Re: [PATCH v8 4/6] iio/adc: ingenic: Retrieve channels list from soc data struct

2020-07-12 Thread Jonathan Cameron
On Thu, 9 Jul 2020 17:21:58 +0200 Artur Rojek wrote: > From: Paul Cercueil > > Instead of having one array of struct iio_chan_spec for all SoCs, and > have some SoCs remove the last item of the array as they can't use it, > have each SoC define its array of supported channels. > > Signed-off-

Re: [PATCH v8 4/6] iio/adc: ingenic: Retrieve channels list from soc data struct

2020-07-12 Thread Jonathan Cameron
On Sun, 12 Jul 2020 13:07:13 +0100 Jonathan Cameron wrote: > On Thu, 9 Jul 2020 17:21:58 +0200 > Artur Rojek wrote: > > > From: Paul Cercueil > > > > Instead of having one array of struct iio_chan_spec for all SoCs, and > > have some SoCs remove the last item of the array as they can't use i

SDX - breaks a vain cycle.

2020-07-12 Thread Ywe Cærlyn
An interesting observation I want to share with interested, is a problem in democratic politics where politics end up in a vain cycle due to the peoples interests but lack of knowledge. Brexit seems to be such a thing, where supposedly people want to return to a nations values, that is monarch

[PATCH] staging: r8188eu: remove unused members of struct xmit_buf

2020-07-12 Thread Ivan Safonov
Remove unused members of struct xmit_buf: alloc_sz, ff_hwaddr, dma_transfer_addr, bpending and last. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_xmit.h | 5 - drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers

Re: Linux kernel in-tree Rust support

2020-07-12 Thread Adrian Bunk
On Thu, Jul 09, 2020 at 11:41:47AM -0700, Nick Desaulniers wrote: >... > but also a larger question of "should we do > this?" or "how might we place limits on where this can be used?" >... I won't attend, but I do have a topic that should be covered: Firefox always depends on recent Rust, which f

[PATCH] decompress_bunzip2: fix sizeof type in start_bunzip

2020-07-12 Thread trix
From: Tom Rix clang static analysis flags this error lib/decompress_bunzip2.c:671:13: warning: Result of 'malloc' is converted to a pointer of type 'unsigned int', which is incompatible with sizeof operand type 'int' [unix.MallocSizeof] bd->dbuf = large_malloc(bd->dbufSize * sizeof(i

Re: [PATCH] decompress_bunzip2: fix sizeof type in start_bunzip

2020-07-12 Thread H. Peter Anvin
On 2020-07-12 05:59, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this error > > lib/decompress_bunzip2.c:671:13: warning: Result of 'malloc' is converted > to a pointer of type 'unsigned int', which is incompatible with sizeof > operand type 'int' [unix.MallocSizeo

[PATCH 2/2] kvm: mmu: page_track: Fix RCU list API usage

2020-07-12 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik Use hlist_for_each_entry_srcu() instead of hlist_for_each_entry_rcu() as it also checkes if the right lock is held. Using hlist_for_each_entry_rcu() with a condition argument will not report the cases where a SRCU protected list is traversed using rcu_read_lock(). Hence,

[PATCH 1/2] rculist : Introduce list/hlist_for_each_entry_srcu() macros

2020-07-12 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik list/hlist_for_each_entry_rcu() provides an optional cond argument to specify the lock held in the updater side. However for SRCU read side, not providing the cond argument results into false positive as whether srcu_read_lock is held or not is not checked implicitly. The

Re: splat and freeze (2 instances)

2020-07-12 Thread Ilkka Prusi
Hi, Here's a second splat with some additional tracing enabled. Again this is gathered with phonecamera from frozen machine (dmesg -w) and full logs could not be saved. Linux version 5.8.0-rc4+ (gcc (Debian 9.3.0-14) 9.3.0, GNU ld (GNU Binutils for Debian) 2.34.90.20200706) #95 SMP PREEMPT S

Re: [PATCH v8 6/6] IIO: Ingenic JZ47xx: Add touchscreen mode.

2020-07-12 Thread Jonathan Cameron
On Thu, 9 Jul 2020 17:22:00 +0200 Artur Rojek wrote: > The SADC component in JZ47xx SoCs provides support for touchscreen > operations (pen position and pen down pressure) in single-ended and > differential modes. > > The touchscreen component of SADC takes a significant time to stabilize > aft

Re: [PATCH v2] Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio

2020-07-12 Thread Jonathan Cameron
On Sat, 4 Jul 2020 16:05:01 -0700 Matt Ranostay wrote: > On Sat, Jul 4, 2020 at 12:34 PM Alexander A. Klimov > wrote: > > > > Rationale: > > Reduces attack surface on kernel devs opening the links for MITM > > as HTTPS traffic is much harder to manipulate. > > > > With regards to the drivers

Re: [PATCH v2] Replace HTTP links with HTTPS ones: drivers/iio

2020-07-12 Thread Jonathan Cameron
On Sat, 4 Jul 2020 21:27:43 +0200 "Alexander A. Klimov" wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

[PATCH 00/18] perf metric: Add support to reuse metric

2020-07-12 Thread Jiri Olsa
hi, this patchset is adding the support to reused metric in another metric. The metric needs to be referenced by 'metric:' prefix. For example, to define IPC by using CPI with change like: "BriefDescription": "Instructions Per Cycle (per Logical Processor)", - "MetricExpr": "INST

[PATCH 06/18] perf metric: Add find_metric function

2020-07-12 Thread Jiri Olsa
Decouple lookup metric logic into find_metric function, so it can be used from other places in following changes. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 89 +++ 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/tools/perf/util/m

[PATCH 01/18] perf metric: Rename expr__add_id to expr__add_val

2020-07-12 Thread Jiri Olsa
Renaming expr__add_id to expr__add_val so we can use expr__add_id to actually add just id without any value in following changes. There's no functional change. Signed-off-by: Jiri Olsa --- tools/perf/tests/expr.c | 4 ++-- tools/perf/tests/pmu-events.c | 4 ++-- tools/perf/util/expr.c

[PATCH 05/18] perf metric: Add expr__del_id function

2020-07-12 Thread Jiri Olsa
Adding expr__del_id function to remove ID from hashmap. It will save us few lines in following changes. Signed-off-by: Jiri Olsa --- tools/perf/util/expr.c | 21 + tools/perf/util/expr.h | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/e

[PATCH 02/18] perf metric: Add struct expr_id_data to keep expr value

2020-07-12 Thread Jiri Olsa
Adding struct expr_id_data to keep expr value instead of just simple double pointer, so we can store more data for ID in following changes. Signed-off-by: Jiri Olsa --- tools/perf/tests/expr.c | 3 ++- tools/perf/util/expr.c| 22 +++--- tools/perf/util/expr.h

[PATCH 03/18] perf metric: Add expr__add_id function

2020-07-12 Thread Jiri Olsa
Adding expr__add_id function to data for ID with zero value, which is used when scanning the expression for IDs. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/expr.c | 29 +++-- tools/perf/util/expr.h | 1 + tools/perf/util/expr.y | 2 +- 3 files ch

[PATCH 14/18] perf metric: Add cache_miss_cycles to metric parse test

2020-07-12 Thread Jiri Olsa
Adding test that compute metric with other metrics in it. cache_miss_cycles = metric:dcache_miss_cpi + metric:icache_miss_cycles Signed-off-by: Jiri Olsa --- tools/perf/tests/parse-metric.c | 33 + 1 file changed, 33 insertions(+) diff --git a/tools/perf/tests

[PATCH 08/18] perf metric: Rename __metricgroup__add_metric to __add_metric

2020-07-12 Thread Jiri Olsa
Renaming __metricgroup__add_metric to __add_metric to fit in the current function names. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c

[PATCH 11/18] perf metric: Add referenced metrics to hash data

2020-07-12 Thread Jiri Olsa
Adding referenced metrics to the parsing context so they can be resolved during the metric processing. Adding expr__add_ref function to store referenced metrics into parse context. Signed-off-by: Jiri Olsa --- tools/perf/util/expr.c| 35 +++ tools/perf/ut

[PATCH 10/18] perf metric: Collect referenced metrics in struct metric_expr

2020-07-12 Thread Jiri Olsa
Add referenced metrics into struct metric_expr object, so they are accessible when computing the metric. Storing just name and expression itself, so the metric can be resolved and computed. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 26 ++ tools/perf/ut

[PATCH 17/18] perf metric: Rename struct egroup to metric

2020-07-12 Thread Jiri Olsa
Renaming struct egroup to metric, because it seems to make more sense. Plus renaming all the variables that hold egroup to appropriate names. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 158 +- 1 file changed, 79 insertions(+), 79 deletions(-) di

[PATCH 13/18] perf metric: Add events for the current group

2020-07-12 Thread Jiri Olsa
There's no need to iterate the whole list of groups, when adding new events. The currently created group is the one we want to add. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/perf/u

[PATCH 15/18] perf metric: Add DCache_L2 to metric parse test

2020-07-12 Thread Jiri Olsa
Adding test that compute DCache_L2 metrics with other related metrics in it. Signed-off-by: Jiri Olsa --- tools/perf/tests/parse-metric.c | 71 + 1 file changed, 71 insertions(+) diff --git a/tools/perf/tests/parse-metric.c b/tools/perf/tests/parse-metric.c index

[PATCH 16/18] perf metric: Add recursion check when processing nested metrics

2020-07-12 Thread Jiri Olsa
Keeping the stack of nested metrics via 'struct expr_id' objecs and checking if we are in recursion via already processed metric. The stack is implemented as static array within the struct egroup with 100 entries, which should be enough nesting depth for any metric we have or plan to have at the m

[PATCH 04/18] perf metric: Change expr__get_id to return struct expr_id_data

2020-07-12 Thread Jiri Olsa
Changing expr__get_id to use and return struct expr_id_data pointer as value for the ID. This way we can access data other than value for given ID in following changes. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/expr.c | 10 +++--- tools/perf/util/expr.h | 3 ++- too

[PATCH 07/18] perf metric: Add add_metric function

2020-07-12 Thread Jiri Olsa
Decouple metric adding login into add_metric function, so it can be used from other places in following changes. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 42 ++- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/me

[PATCH 12/18] perf metric: Compute referenced metrics

2020-07-12 Thread Jiri Olsa
Adding computation (expr__parse call) of referenced metric at the point when it needs to be resolved during the 'master' metric computation. Once the inner metric is computed, the result is stored and used if there's another usage of that metric. Signed-off-by: Jiri Olsa --- tools/perf/util/exp

[PATCH 09/18] perf metric: Collect referenced metrics in struct metric_ref_node

2020-07-12 Thread Jiri Olsa
Collecting referenced metrics in struct metric_ref_node object, so we can process them later on. The change will parse nested metric names out of expression and 'resolve' them. All referenced metrics are dissolved into one context, meaning all nested metrics events and added to the parent context

[PATCH 18/18] perf metric: Rename group_list to list

2020-07-12 Thread Jiri Olsa
Following the previous change that rename egroup to metric, there's no reason to call the list 'group_list' anymore, renaming it to list. Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 45 +-- 1 file changed, 22 insertions(+), 23 deletions(-) diff -

  1   2   3   4   5   6   >