Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed

2021-02-03 Thread Timur Tabi
On 2/3/21 2:47 PM, Steven Rostedt wrote: static void __init plain(void) { int err; + if (debug_never_hash_pointers) + return; So, I have a stupid question. What's the best way for test_printf.c to read the command line parameter? Should I just do this in

Re: [PATCH v5] x86/sgx: Fix use-after-free in sgx_mmu_notifier_release()

2021-02-03 Thread Jarkko Sakkinen
On Wed, Feb 03, 2021 at 07:46:48AM -0800, Dave Hansen wrote: > On 1/30/21 11:20 AM, Jarkko Sakkinen wrote: > ... > > Example scenario would such that all removals "side-channel" through > > the notifier callback. Then mmu_notifier_unregister() gets called > > exactly zero times. No MMU notifier

Re: [PATCH v18 24/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2021-02-03 Thread Yu, Yu-cheng
On 1/29/2021 10:56 AM, Yu, Yu-cheng wrote: On 1/29/2021 9:07 AM, Dave Hansen wrote: On 1/27/21 1:25 PM, Yu-cheng Yu wrote: arch_prctl(ARCH_X86_CET_STATUS, u64 *args) Get CET feature status. The parameter 'args' is a pointer to a user buffer.  The kernel returns the following

Re: [PATCH 1/3] printk: use CONFIG_CONSOLE_LOGLEVEL_* directly

2021-02-03 Thread Masahiro Yamada
On Thu, Feb 4, 2021 at 12:23 AM Petr Mladek wrote: > > On Tue 2021-02-02 09:44:22, John Ogness wrote: > > On 2021-02-02, Masahiro Yamada wrote: > > > CONSOLE_LOGLEVEL_DEFAULT is nothing more than a shorthand of > > > CONFIG_CONSOLE_LOGLEVEL_DEFAULT. > > > > > > When you change

Re: [PATCH 2/3] iommu/io-pgtable-arm: Add IOMMU_LLC page protection flag

2021-02-03 Thread Will Deacon
On Tue, Feb 02, 2021 at 11:56:27AM +0530, Sai Prakash Ranjan wrote: > On 2021-02-01 23:50, Jordan Crouse wrote: > > On Mon, Feb 01, 2021 at 08:20:44AM -0800, Rob Clark wrote: > > > On Mon, Feb 1, 2021 at 3:16 AM Will Deacon wrote: > > > > On Fri, Jan 29, 2021 at 03:12:59PM +0530, Sai Prakash

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-03 Thread Sean Christopherson
On Wed, Feb 03, 2021, Yang Weijiang wrote: > Add handling for Control Protection (#CP) exceptions, vector 21, used > and introduced by Intel's Control-Flow Enforcement Technology (CET). > relevant CET violation case. See Intel's SDM for details. > > Signed-off-by: Yang Weijiang > --- >

Re: [PATCH v2 1/3] tpm: fix reference counting for struct tpm_chip

2021-02-03 Thread Jarkko Sakkinen
On Wed, Feb 03, 2021 at 03:06:30PM +0100, Lino Sanfilippo wrote: > Hi, > > > On 03.02.21 02:09, Jarkko Sakkinen wrote: > > On Tue, Feb 02, 2021 at 11:09:01PM +0100, Lino Sanfilippo wrote: > >> From: Lino Sanfilippo > >> > >> The following sequence of operations > >> > >> 1. open device

Re: [PATCH v1 0/2] ASoC: tegra: Add RT5631 machine driver

2021-02-03 Thread Dmitry Osipenko
02.02.2021 16:23, Jon Hunter пишет: > > On 31/01/2021 18:40, Ion Agorria wrote: >> From: Ion Agorria >> >> Adds support for Tegra SoC devices with RT5631 sound codec. >> Playback to speakers, headphones and internal mic recording works. >> >> This driver is used for ASUS Transformer TF201,

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-03 Thread Suren Baghdasaryan
On Wed, Feb 3, 2021 at 1:25 PM Daniel Vetter wrote: > > On Wed, Feb 3, 2021 at 9:29 PM Daniel Vetter wrote: > > > > On Wed, Feb 3, 2021 at 9:20 PM Suren Baghdasaryan wrote: > > > > > > On Wed, Feb 3, 2021 at 12:52 AM Daniel Vetter > > > wrote: > > > > > > > > On Wed, Feb 3, 2021 at 2:57 AM

Re: [PATCH] fcntl: make F_GETOWN(EX) return 0 on dead owner task

2021-02-03 Thread Pavel Tikhomirov
On 2/3/21 10:32 PM, Cyrill Gorcunov wrote: On Wed, Feb 03, 2021 at 03:41:56PM +0300, Pavel Tikhomirov wrote: Currently there is no way to differentiate the file with alive owner from the file with dead owner but pid of the owner reused. That's why CRIU can't actually know if it needs to restore

Re: [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU

2021-02-03 Thread Will Deacon
On Wed, 3 Feb 2021 13:53:46 +0800, Seiya Wang wrote: > Add support for ARM Cortex-A78 PMU since it will be used in > new Mediatek SoC. > > Based on v5.11-rc6 > > Change in v2: > Remove change-id in commit message > > [...] Applied to will (for-next/perf), thanks! [1/2] arm64: perf: add

RE: [PATCH v2] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-03 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Meelis Roos [mailto:mr...@linux.ee] > Sent: Thursday, February 4, 2021 12:58 AM > To: Song Bao Hua (Barry Song) ; > valentin.schnei...@arm.com; vincent.guit...@linaro.org; mgor...@suse.de; > mi...@kernel.org; pet...@infradead.org; dietmar.eggem...@arm.com; >

Re: [RFC v2 4/5] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-03 Thread Lyude Paul
On Wed, 2021-02-03 at 15:58 -0500, Rodrigo Vivi wrote: > On Mon, Jan 25, 2021 at 07:10:30PM -0500, Lyude Paul wrote: > > Since we're about to implement eDP backlight support in nouveau using the > > standard protocol from VESA, we might as well just take the code that's > > already written for

Re: [PATCH 5/9] perf tools: Support PERF_SAMPLE_WEIGHT_STRUCT

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 04:19:34PM -0500, Liang, Kan escreveu: > > > On 2/3/2021 3:31 PM, Arnaldo Carvalho de Melo wrote: > > > --- a/tools/perf/util/perf_event_attr_fprintf.c > > > +++ b/tools/perf/util/perf_event_attr_fprintf.c > > > @@ -35,7 +35,7 @@ static void __p_sample_type(char *buf,

Re: [PATCH 2/9] perf tools: Support the auxiliary event

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 04:20:38PM -0500, Liang, Kan escreveu: > > > On 2/3/2021 3:02 PM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Feb 02, 2021 at 12:09:06PM -0800,kan.li...@linux.intel.com > > escreveu: > > > From: Kan Liang > > > diff --git a/tools/perf/util/evsel.c

Re: [PATCH 5.4 103/142] Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"

2021-02-03 Thread Andres Freund
Hi, On 2021-02-03 14:03:09 +0100, Greg Kroah-Hartman wrote: > > On v5.4.43-101-gbba91cdba612 this fails with > > fio: io_u error on file /mnt/t2/test.0.0: Input/output error: write > > offset=0, buflen=4096 > > fio: pid=734, err=5/file:io_u.c:1834, func=io_u error, error=Input/output > > error

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-03 Thread Daniel Vetter
On Wed, Feb 3, 2021 at 9:29 PM Daniel Vetter wrote: > > On Wed, Feb 3, 2021 at 9:20 PM Suren Baghdasaryan wrote: > > > > On Wed, Feb 3, 2021 at 12:52 AM Daniel Vetter > > wrote: > > > > > > On Wed, Feb 3, 2021 at 2:57 AM Matthew Wilcox wrote: > > > > > > > > On Tue, Feb 02, 2021 at 04:31:33PM

Re: [PATCH 09/24] perf daemon: Add signalfd support

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:41AM +0100, Jiri Olsa escreveu: > Using signalfd fd for tracking SIGCHLD signals as > notification for perf session termination. > > This way we don't need to actively check for child > status, but we are notified if there's change. > > Suggested-by: Alexei Budankov

Re: [PATCH 03/14] cxl/mem: Find device capabilities

2021-02-03 Thread Dan Williams
On Wed, Feb 3, 2021 at 9:23 AM Ben Widawsky wrote: > > On 21-02-03 17:15:34, Christoph Hellwig wrote: > > On Tue, Feb 02, 2021 at 10:24:18AM -0800, Ben Widawsky wrote: > > > > > + /* Cap 4000h - CXL_CAP_CAP_ID_MEMDEV */ > > > > > + struct { > > > > > + void __iomem

Re: [PATCH V3] clk: imx: Fix reparenting of UARTs not associated with sdout

2021-02-03 Thread Adam Ford
On Thu, Jan 21, 2021 at 4:24 AM Abel Vesa wrote: > > On 21-01-21 10:56:17, Sascha Hauer wrote: > > On Wed, Jan 20, 2021 at 06:14:21PM +0200, Abel Vesa wrote: > > > On 21-01-20 16:50:01, Sascha Hauer wrote: > > > > On Wed, Jan 20, 2021 at 05:28:13PM +0200, Abel Vesa wrote: > > > > > On 21-01-20

Re: [PATCH 2/9] perf tools: Support the auxiliary event

2021-02-03 Thread Liang, Kan
On 2/3/2021 3:02 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Feb 02, 2021 at 12:09:06PM -0800,kan.li...@linux.intel.com escreveu: From: Kan Liang diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index c26ea822..c48f6de 100644 --- a/tools/perf/util/evsel.c +++

Re: [PATCH 5/9] perf tools: Support PERF_SAMPLE_WEIGHT_STRUCT

2021-02-03 Thread Liang, Kan
On 2/3/2021 3:31 PM, Arnaldo Carvalho de Melo wrote: --- a/tools/perf/util/perf_event_attr_fprintf.c +++ b/tools/perf/util/perf_event_attr_fprintf.c @@ -35,7 +35,7 @@ static void __p_sample_type(char *buf, size_t size, u64 value) bit_name(BRANCH_STACK), bit_name(REGS_USER),

Re: [PATCH 18/24] perf daemon: Add man page for perf-daemon

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:50AM +0100, Jiri Olsa escreveu: > Adding man page for perf-daemon usage. I see you decided to add it at the end, but for consistency, please consider adding the bare minimum when adding tools/perf/builtin-daemon.c, then go on adding the options and examples as the

Re: [PATCH 08/24] perf daemon: Add background support

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:40AM +0100, Jiri Olsa escreveu: > Adding support to put daemon process in the background. > > It's now enabled by default and -f option is added to > keep daemon process on the console for debugging. > > Signed-off-by: Jiri Olsa > --- > tools/perf/builtin-daemon.c

Re: [PATCH 4/4] hugetlb: Do early cow when page pinned on src mm

2021-02-03 Thread Linus Torvalds
On Wed, Feb 3, 2021 at 1:08 PM Peter Xu wrote: > > This is the last missing piece of the COW-during-fork effort when there're > pinned pages found. One can reference 70e806e4e645 ("mm: Do early cow for > pinned pages during fork() for ptes", 2020-09-27) for more information, since > we do

Re: [PATCH 07/24] perf daemon: Add config file change check

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:39AM +0100, Jiri Olsa escreveu: > Adding support to detect daemon's config file changes > and re-read the configuration when that happens. > > Using inotify file descriptor pluged into the main > fdarray object for polling. > > Example: > > # cat ~/.perfconfig >

Re: [PATCH v6 06/21] arm64: Move VHE-specific SPE setup to mutate_to_vhe()

2021-02-03 Thread Will Deacon
Hi Marc, On Mon, Feb 01, 2021 at 11:56:22AM +, Marc Zyngier wrote: > There isn't much that a VHE kernel needs on top of whatever has > been done for nVHE, so let's move the little we need to the > VHE stub (the SPE setup), and drop the init_el2_state macro. > > No expected functional change.

Re: [PATCH 1/3] dt-bindings: Fix undocumented compatible strings in examples

2021-02-03 Thread Rob Herring
On Tue, Feb 02, 2021 at 04:33:56PM -0800, Stephen Boyd wrote: > Quoting Rob Herring (2021-02-02 12:55:42) > > > > diff --git > > a/Documentation/devicetree/bindings/clock/allwinner,sun9i-a80-usb-clocks.yaml > > > > b/Documentation/devicetree/bindings/clock/allwinner,sun9i-a80-usb-clocks.yaml >

Re: [PATCH v3 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-03 Thread kernel test robot
Hi Gustavo, I love your patch! Perhaps something to improve: [auto build test WARNING on vkoul-dmaengine/next] [also build test WARNING on pci/next linux/master linus/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH 06/24] perf daemon: Add config file support

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:38AM +0100, Jiri Olsa escreveu: > Adding support to configure daemon with config file. > > Each client or server invocation of perf daemon needs to know the > base directory, where all sessions data is stored. > > The base is defined with: > > daemon.base >

[PATCH 0/4] mm/hugetlb: Early cow on fork, and a few cleanups

2021-02-03 Thread Peter Xu
As reported by Gal [1], we still miss the code clip to handle early cow for hugetlb case, which is true. Again, it still feels odd to fork() after using a few huge pages, especially if they're privately mapped to me.. However I do agree with Gal and Jason in that we should still have that since

[PATCH 4/4] hugetlb: Do early cow when page pinned on src mm

2021-02-03 Thread Peter Xu
This is the last missing piece of the COW-during-fork effort when there're pinned pages found. One can reference 70e806e4e645 ("mm: Do early cow for pinned pages during fork() for ptes", 2020-09-27) for more information, since we do similar things here rather than pte this time, but just for

[PATCH 3/4] mm: Introduce page_needs_cow_for_dma() for deciding whether cow

2021-02-03 Thread Peter Xu
We've got quite a few places (pte, pmd, pud) that explicitly checked against whether we should break the cow right now during fork(). It's easier to provide a helper, especially before we work the same thing on hugetlbfs. Since we'll reference is_cow_mapping() in mm.h, move it there too.

[PATCH 2/4] hugetlg: Break earlier in add_reservation_in_range() when we can

2021-02-03 Thread Peter Xu
All the regions maintained in hugetlb reserved map is inclusive on "from" but exclusive on "to". We can break earlier even if rg->from==t because it already means no possible intersection. This does not need a Fixes in all cases because when it happens (rg->from==t) we'll not break out of the

[PATCH 1/4] hugetlb: Dedup the code to add a new file_region

2021-02-03 Thread Peter Xu
Introduce hugetlb_resv_map_add() helper to add a new file_region rather than duplication the similar code twice in add_reservation_in_range(). Signed-off-by: Peter Xu --- mm/hugetlb.c | 51 +++ 1 file changed, 27 insertions(+), 24 deletions(-)

Re: (subset) [PATCH 0/3] charger-supply for max8997_charger

2021-02-03 Thread Mark Brown
On Sat, 30 Jan 2021 17:28:49 +, Timon Baetz wrote: > Based on the discussion from [0] add an optional DT property to retrieve > the regulator used for charging control in the max8997_charger driver. > > [0] https://lore.kernel.org/lkml/20210118124505.gg4...@sirena.org.uk/ > > > Timon Baetz

Re: [PATCH 2/2] dt-bindings: usb: generic-ohci: Add missing compatible strings

2021-02-03 Thread Rob Herring
On Wed, Feb 03, 2021 at 10:07:47AM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 02, 2021 at 11:54:39AM -0600, Rob Herring wrote: > > The generic OHCI binding needs to document all the specific compatible > > strings so we can track undocumented compatible strings. Add all the > > compatible

Re: [PATCH] ASoC: Intel: catpt: remove unneeded semicolon

2021-02-03 Thread Mark Brown
On Mon, 1 Feb 2021 16:01:21 +0800, Yang Li wrote: > Eliminate the following coccicheck warning: > ./sound/soc/intel/catpt/pcm.c:355:2-3: Unneeded semicolon Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: Intel: catpt: remove unneeded

Re: Linux 5.11-rc6 compile error

2021-02-03 Thread Randy Dunlap
On 2/3/21 11:58 AM, Shuah Khan wrote: > I am seeing the following compile error on Linux 5.11-rc6. > No issues on 5.11.0-rc5 with the same config. > > ld: arch/x86/built-in.a: member arch/x86/kernel/pci-swiotlb.o in archive is > not an object > make: *** [Makefile:1170: vmlinux] Error 1 > >

Re: [PATCH 05/24] perf daemon: Add client socket support

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:37AM +0100, Jiri Olsa escreveu: > Adding support for client socket side that will be used > to send commands to daemon server socket. > > This patch adds only the core support, all commands using > this functionality are coming in following patches. > >

Re: [PATCH 04/24] perf daemon: Add server socket support

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:36AM +0100, Jiri Olsa escreveu: > Add support to create server socket that listens for client > commands and process them. > > This patch adds only the core support, all commands using > this functionality are coming in following patches. > > Signed-off-by: Jiri

[PATCH] misc: bcm-vk: only support ttyVK if CONFIG_TTY is set

2021-02-03 Thread Scott Branden
Correct compile issue if CONFIG_TTY is not set by only adding ttyVK devices if CONFIG_BCM_VK_TTY is set. Reported-by: Randy Dunlap Signed-off-by: Scott Branden --- Changes since v3: - Kconfig cleanups below as per Greg's comments - changed if BCM_VK to depends on BCM_VK - removed default y in

[PATCH 11/12] platform-msi: Add platform check for subdevice irq domain

2021-02-03 Thread Megha Dey
From: Lu Baolu The pci_subdevice_msi_create_irq_domain() should fail if the underlying platform is not able to support IMS (Interrupt Message Storage). Otherwise, the isolation of interrupt is not guaranteed. For x86, IMS is only supported on bare metal for now. We could enable it in the

[PATCH 06/12] platform-msi: Add device MSI infrastructure

2021-02-03 Thread Megha Dey
From: Thomas Gleixner Add device specific MSI domain infrastructure for devices which have their own resource management and interrupt chip. These devices are not related to PCI and contrary to platform MSI they do not share a common resource and interrupt chip. They provide their own domain

[PATCH 07/12] irqdomain/msi: Provide msi_alloc/free_store() callbacks

2021-02-03 Thread Megha Dey
From: Thomas Gleixner For devices which don't have a standard storage for MSI messages like the upcoming IMS (Interrupt Message Store) it's required to allocate storage space before allocating interrupts and after freeing them. This could be achieved with the existing callbacks, but that would

[PATCH 05/12] genirq/msi: Provide and use msi_domain_set_default_info_flags()

2021-02-03 Thread Megha Dey
From: Thomas Gleixner MSI interrupts have some common flags which should be set not only for PCI/MSI interrupts. Move the PCI/MSI flag setting into a common function so it can be reused. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/pci/msi.c | 7 +--

[PATCH 08/12] genirq: Set auxiliary data for an interrupt

2021-02-03 Thread Megha Dey
Introduce a new function pointer in the irq_chip structure(irq_set_auxdata) which is responsible for updating data which is stored in a shared register or data storage. For example, the idxd driver uses the auxiliary data API to enable/set and disable PASID field that is in the IMS entry

[PATCH 04/12] genirq/proc: Take buslock on affinity write

2021-02-03 Thread Megha Dey
From: Thomas Gleixner Until now interrupt chips which support setting affinity are not locking the associated bus lock for two reasons: - All chips which support affinity setting do not use buslock because they just can operated directly on the hardware. - All chips which use buslock do

[PATCH 10/12] iommu: Add capability IOMMU_CAP_VIOMMU_HINT

2021-02-03 Thread Megha Dey
From: Lu Baolu Some IOMMU specification defines some kind of hint mechanism, through which BIOS can imply that OS runs in a virtualized environment. For example, the caching mode defined in VT-d spec and NpCache capability defined in the AMD IOMMU specification. This hint could also be used

[PATCH 12/12] irqchip: Add IMS (Interrupt Message Store) driver

2021-02-03 Thread Megha Dey
From: Thomas Gleixner Generic IMS(Interrupt Message Store) irq chips and irq domain implementations for IMS based devices which store the interrupt messages in an array in device memory. Allocation and freeing of interrupts happens via the generic msi_domain_alloc/free_irqs() interface. No

Re: [PATCH v2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-02-03 Thread Uwe Kleine-König
Hello Thierry, hello Ban, On Wed, Feb 03, 2021 at 05:33:16PM +0100, Thierry Reding wrote: > On Wed, Feb 03, 2021 at 04:12:00PM +0100, Uwe Kleine-König wrote: > > On Wed, Feb 03, 2021 at 08:53:17PM +0800, Ban Tao wrote: > [...] > > > +#define PWM_GET_CLK_OFFSET(chan) (0x20 + ((chan >> 1) * 0x4)) >

Re: [RFC v2 4/5] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-03 Thread Rodrigo Vivi
On Mon, Jan 25, 2021 at 07:10:30PM -0500, Lyude Paul wrote: > Since we're about to implement eDP backlight support in nouveau using the > standard protocol from VESA, we might as well just take the code that's > already written for this and move it into a set of shared DRM helpers. > > Note that

[PATCH 09/12] iommu/vt-d: Add DEV-MSI support

2021-02-03 Thread Megha Dey
Add required support in the interrupt remapping driver for devices which generate dev-msi interrupts and use the intel remapping domain as the parent domain. Set the source-id of all dev-msi interrupt requests to the parent PCI device associated with it. Reviewed-by: Tony Luck Signed-off-by:

[PATCH 02/12] x86/msi: Rename and rework pci_msi_prepare() to cover non-PCI MSI

2021-02-03 Thread Megha Dey
From: Thomas Gleixner Rename it to x86_msi_prepare() and handle the allocation type setup depending on the device type. Add a new arch_msi_prepare define which will be utilized by the upcoming device MSI support. Define it to NULL if not provided by an architecture in the generic MSI header.

[PATCH 01/12] x86/irq: Add DEV_MSI allocation type

2021-02-03 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support a new allocation type is required. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- arch/x86/include/asm/hw_irq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/hw_irq.h

[PATCH 03/12] platform-msi: Provide default irq_chip:: Ack

2021-02-03 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support it's required to have a default irq_chip::ack implementation (irq_chip_ack_parent) so the drivers do not need to care. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/base/platform-msi.c | 2 ++ 1 file changed, 2

[PATCH 00/12] Introduce dev-msi and interrupt message store

2021-02-03 Thread Megha Dey
Provide support for device specific MSI implementations for devices which have their own resource management and interrupt chip. These devices are not related to PCI and contrary to platform MSI they do not share a common resource and interrupt chip. They provide their own domain specific resource

Re: [PATCH 02/24] perf daemon: Add config option

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:34AM +0100, Jiri Olsa escreveu: > Adding config option and base functionality that takes the option > argument (if specified) and other system config locations and > produces 'acting' config file path. > > The actual config file processing is coming in following

Re: [PATCH 03/24] perf daemon: Add base option

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 12:48:35AM +0100, Jiri Olsa escreveu: > Adding base option allowing user to specify base directory. > It will have precedence over config file base definition > coming in following patches. > > Signed-off-by: Jiri Olsa > --- > tools/perf/builtin-daemon.c | 11 +++

Re: [PATCH v4 01/11] crypto: qce: sha: Restore/save ahash state with custom struct in export/import

2021-02-03 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thara-Gopinath/Regression-fixes-clean-ups-in-the-Qualcomm-crypto-engine-driver/20210203-224305 base: https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH v4 0/5] perf stat: Introduce iostat mode to provide I/O performance metrics

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 04:58:25PM +0300, Alexander Antonov escreveu: > The previous version can be found at: > v3: > https://lkml.kernel.org/r/20210126080619.30275-1-alexander.anto...@linux.intel.com/ > Changes in this revision are: > v3 -> v4: > - Addressed comment from Namhyung Kim: >1.

Re: [PATCH 5.4 00/61] 5.4.95-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:37:38PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.95 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.19 26/37] iwlwifi: pcie: use jiffies for memory read spin time limit

2021-02-03 Thread Pavel Machek
Hi! > From: Johannes Berg > > [ Upstream commit 6701317476bbfb1f341aa935ddf75eb73af784f9 ] > > There's no reason to use ktime_get() since we don't need any better > precision than jiffies, and since we no longer disable interrupts > around this code (when grabbing NIC access), jiffies will

Re: [PATCH 5.10 000/142] 5.10.13-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:36:03PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.13 release. > There are 142 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v2 1/7] dt-bindings: usb: convert rockchip,dwc3.txt to yaml

2021-02-03 Thread Johan Jonker
Hi Rob, Heiko, Version 2 without node wrapper. Is that OK for backwards compatibility? New SoC rk3568 and rk3566 in the manufacturer tree also seem to use dwc3 usb, so now only a rk3399 node restyle in mainline with conversion to yaml. On 2/3/21 5:52 PM, Johan Jonker wrote: > In the past

Re: [PATCH 6/9] perf report: Support instruction latency

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2021 at 12:09:10PM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang > > The instruction latency information can be recorded on some platforms, > e.g., the Intel Sapphire Rapids server. With both memory latency > (weight) and the new instruction latency information,

[PATCH 3/3] vfio/type1: batch page pinning

2021-02-03 Thread Daniel Jordan
Pinning one 4K page at a time is inefficient, so do it in batches of 512 instead. This is just an optimization with no functional change intended, and in particular the driver still calls iommu_map() with the largest physically contiguous range possible. Add two fields in vfio_batch to remember

[PATCH 2/3] vfio/type1: prepare for batched pinning with struct vfio_batch

2021-02-03 Thread Daniel Jordan
Get ready to pin more pages at once with struct vfio_batch, which represents a batch of pinned pages. The struct has a fallback page pointer to avoid two unlikely scenarios: pointlessly allocating a page if disable_hugepages is enabled or failing the whole pinning operation if the kernel can't

Re: [PATCH 2/2] perf parse-events: Break out tracepoint and printing.

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 10:38:41AM -0800, Ian Rogers escreveu: > On Wed, Feb 3, 2021 at 8:21 AM Arnaldo Carvalho de Melo > wrote: > > > Em Tue, Feb 02, 2021 at 09:26:59PM -0800, Ian Rogers escreveu: > > > Move print_*_events functions out of parse-events.c into a new > > > print-events.c. Move

Re: [PATCH] bpf: Check for integer overflow when using roundup_pow_of_two()

2021-02-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Wed, 27 Jan 2021 06:36:53 + you wrote: > On 32-bit architecture, roundup_pow_of_two() can return 0 when the argument > has upper most bit set due to resulting 1UL << 32. Add a check for this > case. > > Fixes: d5a3b1f

[PATCH 1/3] vfio/type1: change success value of vaddr_get_pfn()

2021-02-03 Thread Daniel Jordan
vaddr_get_pfn() simply returns 0 on success. Have it report the number of pfns successfully gotten instead, whether from page pinning or follow_fault_pfn(), which will be used later when batching pinning. Change the last check in vfio_pin_pages_remote() for consistency with the other two.

Re: [PATCH 0/2] Allow reading process DMA buf stats from fdinfo

2021-02-03 Thread Kalesh Singh
On Thu, Jan 28, 2021 at 1:24 PM Kalesh Singh wrote: > > Android captures per-process system memory state when certain low memory > events (e.g a foreground app kill) occur, to identify potential memory > hoggers. In order to measure how much memory a process actually consumes, > it is necessary

[PATCH 0/3] vfio/type1: batch page pinning

2021-02-03 Thread Daniel Jordan
Hi, The VFIO type1 driver is calling pin_user_pages_remote() once per 4k page, so let's do it once per 512 4k pages to bring VFIO in line with other drivers such as IB and vDPA. qemu guests with at least 2G memory start about 8% faster on a Xeon server, with more detailed results in the last

Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed

2021-02-03 Thread Steven Rostedt
On Wed, 3 Feb 2021 12:35:07 -0800 Kees Cook wrote: > > With a big notice that all pointers of unhashed, I don't think we need to > > print it failed when we expect it to fail. > > > > If anything, skip the test and state: > > > > test_printf: hash test skipped because

Re: [PATCH 7/9] perf test: Support PERF_SAMPLE_WEIGHT_STRUCT

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2021 at 12:09:11PM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang > > Support the new sample type for sample-parsing test case. ditto wrt code page size > Signed-off-by: Kan Liang > --- > tools/perf/tests/sample-parsing.c | 14 +++--- > 1 file changed,

Re: [PATCH v2] hwmon: (pmbus) convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 04:49:03PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/hwmon/pmbus/inspur-ipsps.c:73:8-16: WARNING: use scnprintf or > sprintf. > > ./drivers/hwmon/pmbus/inspur-ipsps.c:114:9-17: WARNING: use scnprintf or > sprintf. > >

RE: [PATCH net-next v1 2/6] lan743x: support rx multi-buffer packets

2021-02-03 Thread Bryan.Whitehead
> On Wed, Feb 3, 2021 at 3:14 PM wrote: > > > > We can test on x86 PC. We will just need about a week after you release > your next version. > > > > That's great. If you have any suggestions on how I can improve testing on my > end, feel free to reach out. If you are able, in addition to basic

Re: [PATCH 4.19 00/37] 4.19.173-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:38:43PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.173 release. > There are 37 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.14 00/30] 4.14.219-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:38:41PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.219 release. > There are 30 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.9 00/32] 4.9.255-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:38:23PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.255 release. > There are 32 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.4 00/28] 4.4.255-rc1 review

2021-02-03 Thread Guenter Roeck
On Tue, Feb 02, 2021 at 02:38:20PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.255 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed

2021-02-03 Thread Kees Cook
On Wed, Feb 03, 2021 at 03:25:13PM -0500, Steven Rostedt wrote: > On Wed, 3 Feb 2021 12:02:05 -0800 > Kees Cook wrote: > > > On Wed, Feb 03, 2021 at 12:58:41PM -0600, Timur Tabi wrote: > > > On 2/3/21 7:31 AM, Petr Mladek wrote: > > > > Also please make sure that lib/test_printf.c will work

Re: [PATCH] vdpa/mlx5: Restore the hardware used index after change map

2021-02-03 Thread Si-Wei Liu
On Tue, Feb 2, 2021 at 10:48 PM Eli Cohen wrote: > > On Tue, Feb 02, 2021 at 09:14:02AM -0800, Si-Wei Liu wrote: > > On Tue, Feb 2, 2021 at 6:34 AM Eli Cohen wrote: > > > > > > When a change of memory map occurs, the hardware resources are destroyed > > > and then re-created again with the new

Re: [PATCH 5/9] perf tools: Support PERF_SAMPLE_WEIGHT_STRUCT

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2021 at 12:09:09PM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang > > The new sample type, PERF_SAMPLE_WEIGHT_STRUCT, is an alternative of the > PERF_SAMPLE_WEIGHT sample type. Users can apply either the > PERF_SAMPLE_WEIGHT sample type or the

Re: [PATCH 13/14] cxl/mem: Add limited Get Log command (0401h)

2021-02-03 Thread Dan Williams
On Wed, Feb 3, 2021 at 10:16 AM Konrad Rzeszutek Wilk wrote: > > On Wed, Feb 03, 2021 at 09:16:10AM -0800, Ben Widawsky wrote: > > On 21-02-02 15:57:03, Dan Williams wrote: > > > On Tue, Feb 2, 2021 at 3:51 PM Ben Widawsky > > > wrote: > > > > > > > > On 21-02-01 13:28:48, Konrad Rzeszutek Wilk

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-03 Thread Daniel Vetter
On Wed, Feb 3, 2021 at 9:20 PM Suren Baghdasaryan wrote: > > On Wed, Feb 3, 2021 at 12:52 AM Daniel Vetter wrote: > > > > On Wed, Feb 3, 2021 at 2:57 AM Matthew Wilcox wrote: > > > > > > On Tue, Feb 02, 2021 at 04:31:33PM -0800, Suren Baghdasaryan wrote: > > > > Replace BUG_ON(vma->vm_flags &

Re: [PATCH] x86: efi: avoid BUILD_BUG_ON() for non-constant p4d_index

2021-02-03 Thread Ard Biesheuvel
On Wed, 3 Feb 2021 at 19:51, Nathan Chancellor wrote: > > On Wed, Jan 20, 2021 at 10:33:43AM +0100, Ard Biesheuvel wrote: > > On Mon, 18 Jan 2021 at 22:42, Arvind Sankar wrote: > > > > > > On Mon, Jan 18, 2021 at 09:24:09PM +0100, Borislav Petkov wrote: > > > > > > > As a matter of fact, it

Re: [PATCH 09/11] x86/fault: Rename no_context() to kernelmode_fixup_or_oops()

2021-02-03 Thread Borislav Petkov
On Wed, Feb 03, 2021 at 12:14:24PM -0800, Andy Lutomirski wrote: > Hmm. I'm not convinced this is really much better. Maybe it is. Let > me think about it. I feel like it's somehow too close to the previous > tangle where too many functions did too many different things. I know what you mean.

Re: [PATCH net-next v1 2/6] lan743x: support rx multi-buffer packets

2021-02-03 Thread Sven Van Asbroeck
On Wed, Feb 3, 2021 at 3:14 PM wrote: > > We can test on x86 PC. We will just need about a week after you release your > next version. > That's great. If you have any suggestions on how I can improve testing on my end, feel free to reach out.

Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed

2021-02-03 Thread Steven Rostedt
On Wed, 3 Feb 2021 12:02:05 -0800 Kees Cook wrote: > On Wed, Feb 03, 2021 at 12:58:41PM -0600, Timur Tabi wrote: > > On 2/3/21 7:31 AM, Petr Mladek wrote: > > > Also please make sure that lib/test_printf.c will work with > > > the new option. > > > > As you suspected, it doesn't work: > >

Re: [PATCH 4/9] perf c2c: Support data block and addr block

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2021 at 12:09:08PM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang Hey Joe, heads up on these new fields. The whole thread is at: https://lore.kernel.org/lkml/1612296553-21962-1-git-send-email-kan.li...@linux.intel.com/ The kernel cset introducing the support:

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-03 Thread Suren Baghdasaryan
On Wed, Feb 3, 2021 at 12:52 AM Daniel Vetter wrote: > > On Wed, Feb 3, 2021 at 2:57 AM Matthew Wilcox wrote: > > > > On Tue, Feb 02, 2021 at 04:31:33PM -0800, Suren Baghdasaryan wrote: > > > Replace BUG_ON(vma->vm_flags & VM_PFNMAP) in vm_insert_page with > > > WARN_ON_ONCE and returning an

RE: [PATCH net-next v1 2/6] lan743x: support rx multi-buffer packets

2021-02-03 Thread Bryan.Whitehead
Hi Sven, We can test on x86 PC. We will just need about a week after you release your next version. Thanks, Bryan > -Original Message- > From: Sven Van Asbroeck > Sent: Wednesday, February 3, 2021 1:53 PM > To: Bryan Whitehead - C21958 > Cc: UNGLinuxDriver ; David Miller > ; Jakub

Re: [PATCH 09/11] x86/fault: Rename no_context() to kernelmode_fixup_or_oops()

2021-02-03 Thread Andy Lutomirski
On Wed, Feb 3, 2021 at 12:07 PM Borislav Petkov wrote: > > On Wed, Feb 03, 2021 at 11:53:03AM -0800, Andy Lutomirski wrote: > > I feel like that would be more obfuscated — then the function would > > return without fixing anything for usermode faults, return after > > fixing it for kernel mode

Re: [PATCH] drivers: net: ehternet: i825xx: Fix couple of spellings in the file ether1.c

2021-02-03 Thread Jakub Kicinski
On Wed, 3 Feb 2021 09:54:22 -0800 Randy Dunlap wrote: > On 2/3/21 7:15 AM, Bhaskar Chowdhury wrote: > > > > s/initialsation/initialisation/ > > s/specifiing/specifying/ > > > > Signed-off-by: Bhaskar Chowdhury > > Hi, > > $Subject has a typo/spello. This happens more than you'd think with

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-02-03 Thread Hridya Valsaraju
On Wed, Feb 3, 2021 at 2:25 AM Daniel Vetter wrote: > > On Mon, Feb 01, 2021 at 01:02:30PM -0800, Hridya Valsaraju wrote: > > On Mon, Feb 1, 2021 at 10:37 AM Daniel Vetter wrote: > > > > > > On Thu, Jan 28, 2021 at 1:03 PM Sumit Semwal > > > wrote: > > > > > > > > On Thu, 28 Jan 2021 at 17:23,

Re: [PATCH 2/2] KVM: Scalable memslots implementation

2021-02-03 Thread Maciej S. Szmigiero
On 03.02.2021 15:21, Vitaly Kuznetsov wrote: "Maciej S. Szmigiero" writes: On 03.02.2021 00:43, Sean Christopherson wrote: On Tue, Feb 02, 2021, Maciej S. Szmigiero wrote: On 02.02.2021 02:33, Sean Christopherson wrote: ... I guess you mean to still turn id_to_index into a hash table,

Re: [GIT PULL] UML fixes for 5.11-rc7

2021-02-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Feb 2021 20:52:54 +0100 (CET): > git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git > tags/for-linus-5.11-rc7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/61556703b610a104de324e4f061dc6cf7b218b46 Thank you! --

Re: [PATCH 1/2] KVM: x86/mmu: Make HVA handler retpoline-friendly

2021-02-03 Thread Maciej S. Szmigiero
On 03.02.2021 15:43, Paolo Bonzini wrote: On 01/02/21 16:19, Maciej S. Szmigiero wrote: On 01.02.2021 09:21, Paolo Bonzini wrote: On 01/02/21 09:13, Maciej S. Szmigiero wrote:   static int kvm_handle_hva_range(struct kvm *kvm,   unsigned long start,   unsigned

Re: [PATCH 2/2] KVM: Scalable memslots implementation

2021-02-03 Thread Maciej S. Szmigiero
On 03.02.2021 14:41, Paolo Bonzini wrote: On 02/02/21 23:42, Maciej S. Szmigiero wrote: I'm not opposed to using more sophisticated storage for the gfn lookups, but only if there's a good reason for doing so.  IMO, the rbtree isn't simpler, just different. And it also has worse cache

<    1   2   3   4   5   6   7   8   9   10   >