Re: [RFC][Patch v8 6/7] KVM: Enables the kernel to isolate and report free pages

2019-02-07 Thread Alexander Duyck
On Tue, Feb 5, 2019 at 3:21 PM Michael S. Tsirkin wrote: > > On Tue, Feb 05, 2019 at 04:54:03PM -0500, Nitesh Narayan Lal wrote: > > > > On 2/5/19 3:45 PM, Michael S. Tsirkin wrote: > > > On Mon, Feb 04, 2019 at 03:18:53PM -0500, Nitesh Narayan Lal wrote: > > >> This patch enables the kernel to sc

My Dear Friend, I have a business proposal in the tune of ($6.5 Million United States Dollar only)

2019-02-07 Thread Mrs. Mimi Nicolas
-- Auditing / Accounting Director Bank of Africa (BOA) My Dear Friend, I have a business proposal in the tune of ($6.5 Million United States Dollar only) My name is Mrs.Mimi Nicolas, I am the Telex Manager of (BOA) bank of Africa in Ouagadougou Burkina Faso. i want the bank to transfer th

[PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-02-07 Thread Yizhuo
In function sun8i_dwmac_set_syscon(), local variable "val" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the if statement, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 7 ++-

Re: [PATCH net] sctp: make sctp_setsockopt_events() less strict about the option length

2019-02-07 Thread 'Marcelo Ricardo Leitner'
On Thu, Feb 07, 2019 at 05:33:07PM +, David Laight wrote: > From: Marcelo Ricardo Leitner > > Sent: 06 February 2019 21:07 > > > > On Wed, Feb 06, 2019 at 12:48:38PM -0800, Julien Gomes wrote: > > > > > > > > > On 2/6/19 12:37 PM, Marcelo Ricardo Leitner wrote: > > > > On Wed, Feb 06, 2019 at

Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-02-07 Thread Yizhuo Zhai
Make sense, I will send the new patch. Thanks for the opinion. On Thu, Feb 7, 2019 at 1:25 AM Maxime Ripard wrote: > > On Wed, Feb 06, 2019 at 09:53:16PM -0800, Yizhuo Zhai wrote: > > > > > > On Wed, Feb 6, 2019 at 9:52 PM Yizhuo Zhai wrote: > > > > > > Thanks, but why initialization matters her

Re: [PATCH 16/17] Plug in new special vfree flag

2019-02-07 Thread Steven Rostedt
On Thu, 7 Feb 2019 17:33:37 + "Edgecombe, Rick P" wrote: > > > --- > > > arch/x86/kernel/ftrace.c | 6 +-- > > > > For the ftrace code. > > > > Acked-by: Steven Rostedt (VMware) > > > > -- Steve > > > Thanks! I just noticed that the subject is incorrect; It is missing the "s

[PATCH v2 0/4] [powerpc] perf vendor events: Add JSON metrics for POWER8

2019-02-07 Thread Paul Clarke
The patches define metrics and metric groups for computation by "perf" for POWER8 processors. Paul Clarke (4): [powerpc] perf vendor events: Add JSON metrics for POWER8 1/4 [powerpc] perf vendor events: Add JSON metrics for POWER8 2/4 [powerpc] perf vendor events: Add JSON metrics for POWER8

[PATCH v2 1/4] [powerpc] perf vendor events: Add JSON metrics for POWER8

2019-02-07 Thread Paul Clarke
POWER8 metrics not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - cpi_breakdown - estimated_dcache_miss_cpi Signed-off-by: Paul A. Clarke --- .

[PATCH net-next] net: fixed-phy: Add fixed_phy_register_with_gpiod() API

2019-02-07 Thread Moritz Fischer
Add fixed_phy_register_with_gpiod() API. It lets users create a fixed_phy instance that uses a GPIO descriptor which was obtained externally e.g. through platform data. This enables platform devices (non-DT based) to use GPIOs for link status. Signed-off-by: Moritz Fischer --- Changes from RFC:

Re: [PATCH v2 net-next] net: phy: fixed_phy: Fix fixed_phy not checking GPIO

2019-02-07 Thread David Miller
From: Moritz Fischer Date: Wed, 6 Feb 2019 21:45:29 -0800 > Fix fixed_phy not checking GPIO if no link_update callback > is registered. > > In the original version all users registered a link_update > callback so the issue was masked. > > Fixes: a5597008dbc2 ("phy: fixed_phy: Add gpio to deter

[PATCH v2 4/4] [powerpc] perf vendor events: Add JSON metrics for POWER8

2019-02-07 Thread Paul Clarke
POWER8 metrics not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - translation - general and other metrics not in a metric group. Signed-off-by:

[PATCH v2 2/4] [powerpc] perf vendor events: Add JSON metrics for POWER8

2019-02-07 Thread Paul Clarke
POWER8 metrics not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - dl1_reloads_percent_per_inst - dl1_reloads_percent_per_ref - instruction_misses_

[PATCH v2 3/4] [powerpc] perf vendor events: Add JSON metrics for POWER8

2019-02-07 Thread Paul Clarke
POWER8 metrics not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - branch_prediction - latency - bus_stats - instruction_mix - instruction_stats_pe

Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-02-07 Thread David Miller
From: Yizhuo Zhai Date: Wed, 6 Feb 2019 21:52:15 -0800 > Thanks, but why initialization matters here? Is performance the main > concern? Code that is unnecessary is hard to audit. People will ask "why" is it initialized? In what situations is the initialized value of "0" ever used? You are wa

Re: [RFC][Patch v8 4/7] KVM: Disabling page poisoning to prevent corruption

2019-02-07 Thread Nitesh Narayan Lal
On 2/7/19 12:23 PM, Alexander Duyck wrote: > On Mon, Feb 4, 2019 at 2:11 PM Nitesh Narayan Lal wrote: >> This patch disables page poisoning if guest page hinting is enabled. >> It is required to avoid possible guest memory corruption errors. >> Page Poisoning is a feature in which the page is fil

Re: [GIT PULL] x86/mm changes for v4.21

2019-02-07 Thread Peter Zijlstra
On Thu, Feb 07, 2019 at 09:36:00AM -0800, Luck, Tony wrote: > On Thu, Feb 07, 2019 at 03:01:31PM +0100, Peter Zijlstra wrote: > > On Thu, Feb 07, 2019 at 11:50:52AM +, Linus Torvalds wrote: > > > If you re-generate the canonical address in __cpa_addr(), now we'll > > > actually have the real vi

Re: [PATCH net-next] net: fixed-phy: Add fixed_phy_register_with_gpiod() API

2019-02-07 Thread Florian Fainelli
On 2/7/19 9:52 AM, Moritz Fischer wrote: > Add fixed_phy_register_with_gpiod() API. It lets users create a > fixed_phy instance that uses a GPIO descriptor which was obtained > externally e.g. through platform data. > This enables platform devices (non-DT based) to use GPIOs for link > status. > >

Re: [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE

2019-02-07 Thread David Miller
From: Eli Cohen Date: Thu, 7 Feb 2019 09:45:49 +0200 > diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c > index 902957beceb3..d54cb608dbaf 100644 > --- a/net/sched/act_simple.c > +++ b/net/sched/act_simple.c > @@ -19,8 +19,6 @@ > #include > #include > > -#define TCA_ACT_SIMP 22

RE: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Sowjanya Komatineni
> > It became apparent to me that there is a problem here. The size of > > dma_buf is 4096 bytes and maximum message length is 4096 too, we have > > pushed 12 bytes packet_header to the buffer >and now there are 4084 > > bytes left for the message in the buffer. Hence transfer o

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-07 Thread Andy Shevchenko
On Thu, Feb 7, 2019 at 7:14 PM Enrico Weigelt, metux IT consult wrote: > > GPIO platform driver for the AMD G-series PCH (eg. on GX-412TC) > > This driver doesn't registers itself automatically, as it needs to > be provided with platform specific configuration, provided by some > board driver setu

Re: [PATCH v4] media: vimc: Add vimc-streamer for stream control

2019-02-07 Thread Hans Verkuil
Hi Lucas, On 1/22/19 2:05 AM, Lucas A. M. Magalhaes wrote: > Add a linear pipeline logic for the stream control. It's created by > walking backwards on the entity graph. When the stream starts it will > simply loop through the pipeline calling the respective process_frame > function of each entity

Re: [GIT PULL] x86/mm changes for v4.21

2019-02-07 Thread Andy Lutomirski
> On Feb 7, 2019, at 9:57 AM, Peter Zijlstra wrote: > >> On Thu, Feb 07, 2019 at 09:36:00AM -0800, Luck, Tony wrote: >>> On Thu, Feb 07, 2019 at 03:01:31PM +0100, Peter Zijlstra wrote: On Thu, Feb 07, 2019 at 11:50:52AM +, Linus Torvalds wrote: If you re-generate the canonical ad

[PATCH] kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974)

2019-02-07 Thread Paolo Bonzini
From: Jann Horn kvm_ioctl_create_device() does the following: 1. creates a device that holds a reference to the VM object (with a borrowed reference, the VM's refcount has not been bumped yet) 2. initializes the device 3. transfers the reference to the device to the caller's file descriptor t

[PATCH] KVM: x86: work around leak of uninitialized stack contents (CVE-2019-7222)

2019-02-07 Thread Paolo Bonzini
Bugzilla: 1671930 Emulation of certain instructions (VMXON, VMCLEAR, VMPTRLD, VMWRITE with memory operand, INVEPT, INVVPID) can incorrectly inject a page fault when passed an operand that points to an MMIO address. The page fault will use uninitialized kernel stack memory as the CR2 and error cod

[PATCH] KVM: nVMX: unconditionally cancel preemption timer in free_nested (CVE-2019-7221)

2019-02-07 Thread Paolo Bonzini
From: Peter Shier Bugzilla: 1671904 There are multiple code paths where an hrtimer may have been started to emulate an L1 VMX preemption timer that can result in a call to free_nested without an intervening L2 exit where the hrtimer is normally cancelled. Unconditionally cancel in free_nested to

[GIT PULL] KVM fixes for Linux 5.0-rc6

2019-02-07 Thread Paolo Bonzini
Linus, The following changes since commit 8834f5600cf3c8db365e18a3d5cac2c2780c81e5: Linux 5.0-rc5 (2019-02-03 13:48:04 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to ecec76885bcfe3294685dc363fd127

Re: [PATCH V3 2/3] HYPERV/IOMMU: Add Hyper-V stub IOMMU driver

2019-02-07 Thread Alex Williamson
On Thu, 7 Feb 2019 23:33:48 +0800 lantianyu1...@gmail.com wrote: > From: Lan Tianyu > > On the bare metal, enabling X2APIC mode requires interrupt remapping > function which helps to deliver irq to cpu with 32-bit APIC ID. > Hyper-V doesn't provide interrupt remapping function so far and Hyper-

Re: [PATCH] mtd: rawnand: denali_dt: remove single anonymous clock support

2019-02-07 Thread Dinh Nguyen
On 2/5/19 7:18 AM, Miquel Raynal wrote: > Hi Dinh, > > Boris Brezillon wrote on Thu, 31 Jan 2019 > 18:26:44 +0100: > >> Hi Dinh, >> >> On Thu, 31 Jan 2019 11:24:16 -0600 >> Dinh Nguyen wrote: >> >>> On 1/28/19 4:20 AM, Miquel Raynal wrote: Hi Dinh, Masahiro Yamada wrote on

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-07 Thread Christopher Lameter
On Thu, 7 Feb 2019, Ira Weiny wrote: > On Thu, Feb 07, 2019 at 04:55:37PM +, Christopher Lameter wrote: > > One approach that may be a clean way to solve this: > > > > 1. Long term GUP usage requires the virtual mapping to the pages be fixed > >for the duration of the GUP Map. There never

Re: [PATCH V2 2/2] hwmon: pwm-fan: Add optional regulator support

2019-02-07 Thread Guenter Roeck
On Thu, Feb 07, 2019 at 05:38:00PM +0100, Stefan Wahren wrote: > This adds optional regulator support to the pwm-fan driver. This is > necessary for pwm fans which are powered by a switchable supply. > > Signed-off-by: Stefan Wahren > --- > drivers/hwmon/pwm-fan.c | 39 ++

Re: [PATCH 4.4 00/34] 4.4.174-stable review

2019-02-07 Thread kernelci.org bot
stable-rc/linux-4.4.y boot: 31 boots: 0 failed, 31 passed (v4.4.173-35-g968fa3bc9339) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.173-35-g968fa3bc9339/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.4.y/kernel/v4.4.173-3

Re: [PATCH 16/17] Plug in new special vfree flag

2019-02-07 Thread Edgecombe, Rick P
On Thu, 2019-02-07 at 12:49 -0500, Steven Rostedt wrote: > On Thu, 7 Feb 2019 17:33:37 + > "Edgecombe, Rick P" wrote: > > > > > > --- > > > > arch/x86/kernel/ftrace.c | 6 +-- > > > > > > For the ftrace code. > > > > > > Acked-by: Steven Rostedt (VMware) > > > > > > -- Steve > >

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-07 Thread Luiz Capitulino
On Mon, 04 Feb 2019 10:15:52 -0800 Alexander Duyck wrote: > From: Alexander Duyck > > Add guest support for providing free memory hints to the KVM hypervisor for > freed pages huge TLB size or larger. I am restricting the size to > huge TLB order and larger because the hypercalls are too expens

Re: [PATCH 1/2] selftests: firmware: remove use of non-standard diff -Z option

2019-02-07 Thread Luis Chamberlain
On Wed, Dec 5, 2018 at 2:43 PM Dan Rue wrote: > > On Thu, Nov 29, 2018 at 06:37:32PM -0800, Luis Chamberlain wrote: > > On Mon, Nov 26, 2018 at 09:12:15PM -0600, Dan Rue wrote: > > > diff -Z is used to trim the trailing whitespace when comparing the > > > loaded firmware file with the source firmw

Re: [PATCH net-next v2 01/10] net: phy: Update PHY linkmodes after config_init

2019-02-07 Thread Heiner Kallweit
On 07.02.2019 14:55, Maxime Chevallier wrote: > Hello Andrew, > > On Thu, 7 Feb 2019 14:48:07 +0100 > Andrew Lunn wrote: > >> On Thu, Feb 07, 2019 at 10:49:30AM +0100, Maxime Chevallier wrote: >>> We want to be able to update a PHY's supported list in the config_init >>> callback, so move the Pa

Re: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Dmitry Osipenko
07.02.2019 21:02, Sowjanya Komatineni пишет: > >>> It became apparent to me that there is a problem here. The size of >>> dma_buf is 4096 bytes and maximum message length is 4096 too, we have >>> pushed 12 bytes packet_header to the buffer >and now there are 4084 >>> bytes left

Re: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Dmitry Osipenko
06.02.2019 22:16, Sowjanya Komatineni пишет: > + if (i2c_dev->msg_read && i2c_dev->msg_err == I2C_ERR_NONE) { > + dma_sync_single_for_cpu(i2c_dev->dev, > + i2c_dev->dma_phys, > +

Re: [RFC][Patch v8 4/7] KVM: Disabling page poisoning to prevent corruption

2019-02-07 Thread Alexander Duyck
On Thu, Feb 7, 2019 at 9:56 AM Nitesh Narayan Lal wrote: > > > On 2/7/19 12:23 PM, Alexander Duyck wrote: > > On Mon, Feb 4, 2019 at 2:11 PM Nitesh Narayan Lal wrote: > >> This patch disables page poisoning if guest page hinting is enabled. > >> It is required to avoid possible guest memory corru

Re: [PATCH 2/2] x86: pcengines apuv2 gpio/leds/keys platform driver

2019-02-07 Thread Andy Shevchenko
On Thu, Feb 7, 2019 at 7:14 PM Enrico Weigelt, metux IT consult wrote: Thanks for the patch, my comments below. > Driver for PCengines APUv2 board that supports GPIOs via AMD PCH > and attached LEDs and keys. You should put here why ACPI can't be used for providing a necessary information. For

From: Petrochemical Company Projects

2019-02-07 Thread Dr John Brown Umoru
To:The Managing Director/Ceo, Dear Sir, I am obliged to inform you that we have abandoned over invoiced contract payment ready to transfer abroad. This fund originated from the Nigeria National Petroleum Corporation project executed by a foreign firm at the Port Harcourt Refinery and Petroche

Re: [PATCH V14 2/5] i2c: tegra: add bus clear Master Support

2019-02-07 Thread Dmitry Osipenko
06.02.2019 22:16, Sowjanya Komatineni пишет: > + reg = i2c_readl(i2c_dev, I2C_BUS_CLEAR_STATUS); > + if (!(reg & I2C_BC_STATUS)) { > + dev_err(i2c_dev->dev, > + "Un-recovered arbitration lost\n"); Minor nit: let's keep message

Re: linux-next: manual merge of the scsi-mkp tree with Linus' tree

2019-02-07 Thread James Smart
On 2/6/2019 8:44 PM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/lpfc/lpfc_nvme.c between commit: 7961cba6f7d8 ("scsi: lpfc: nvme: avoid hang / use-after-free when destroying localport") from Linus' tree and commit:

Re: linux-next: manual merge of the net-next tree with the net tree

2019-02-07 Thread Pablo Neira Ayuso
Hi Stephen, On Thu, Feb 07, 2019 at 11:54:24AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > > between commit: > > 1651925d403e ("net/mlx5e: Use the inner headers to determ

Re: [GIT PULL] x86/mm changes for v4.21

2019-02-07 Thread Luck, Tony
On Thu, Feb 07, 2019 at 06:57:20PM +0100, Peter Zijlstra wrote: > Something like so then? AFAICT CLFLUSH will also #GP if feed it crap. Correct. CFLUSH will also #GP on a non-canonical address. > - __flush_tlb_one_kernel(__cpa_addr(cpa, i)); > + __flush_tlb_one_kernel(fix_

[PATCH v1 1/2] PCI: ATS: Add function to check PRG response PASID bit status.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Add a new function to return the status of PRG response PASID required bit in PRI status register. This function will be used by drivers like IOMMU, if it is required to enforce the PASID required for page-group responses. Cc: Ashok Raj Cc: Jacob Pan Cc: Keith

[PATCH v1 2/2] iommu/vt-d: Enable PASID only if device expects PASID in PRG response.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan In Intel IOMMU, if the Page Request Queue (PRQ) is full, it will automatically respond to the device with a success message as a keep alive. And when sending the success message, IOMMU will include PASID in the response message when the page request has a PASID in

[PATCH v1 0/2] Add PGR response PASID requirement check in Intel IOMMU.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Intel IOMMU responds automatically when receiving page-requests from a PCIe endpoint and the page-request queue is full and it cannot accept any more page-requests. When it auto-responds to page-requests with a success to the endpoint, it automatically responds wi

[PATCH v1 0/2] Add page alignment check in Intel IOMMU.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page Request Descriptor"), Intel IOMMU page request descriptor only uses bits[63:12] of the page address. Hence its required to enforce that the device will only send page request with page-aligned

[PATCH v1 2/2] iommu/vt-d: Enable ATS only if the device uses page aligned address.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page Request Descriptor"), Intel IOMMU page request descriptor only uses bits[63:12] of the page address. Hence Intel IOMMU driver would only permit devices that advertise they would only send page

[PATCH v1 1/2] PCI: ATS: Add function to check ATS page aligned request status.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Add a new function to return the status of ATS page aligned request bit in ATS capability register. This function will be used by drivers like IOMMU, if it is required to enforce page-aligned requests in ATS. Cc: Ashok Raj Cc: Jacob Pan Cc: Keith Busch Suggest

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-07 Thread Alexander Duyck
On Thu, 2019-02-07 at 13:21 -0500, Luiz Capitulino wrote: > On Mon, 04 Feb 2019 10:15:52 -0800 > Alexander Duyck wrote: > > > From: Alexander Duyck > > > > Add guest support for providing free memory hints to the KVM hypervisor for > > freed pages huge TLB size or larger. I am restricting the s

Re: [PATCH v2 8/9] PCI: dwc: Remove Keystone specific dw_pcie_host_ops

2019-02-07 Thread Trent Piepho
On Thu, 2019-02-07 at 16:39 +0530, Kishon Vijay Abraham I wrote: > Now that Keystone started using it's own msi_irq_chip, remove > Keystone specific callback function defined in dw_pcie_host_ops. > > @@ -209,9 +195,6 @@ static void dw_pci_bottom_ack(struct irq_data *d) > > dw_pcie_wr_own_c

[PATCH v1 1/1] iommu/vt-d: Enable PRI only if the device enables PASID.

2019-02-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Intel IOMMU Page Request Services (PRS) only works with devices which supports/uses PASID. So enable PRI only if the device also enables PASID support. For more details, Please check the implementation of PRQ handler(prq_event_thread()) in intel-svm driver. Cc: J

Re: [GIT PULL] x86/mm changes for v4.21

2019-02-07 Thread Luck, Tony
On Thu, Feb 07, 2019 at 10:07:28AM -0800, Andy Lutomirski wrote: > Joining this thread late... > > This is all IMO rather crazy. How about we fiddle with CR0 to turn off > the cache, then fiddle with page tables, then turn caching on? Or, heck, > see if there’s some chicken bit we can set to imp

[PATCH 2/2] driver core: Document limitation related to DL_FLAG_RPM_ACTIVE

2019-02-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If device_link_add() is called twice in a row to create a stateless device link for the same consumer-supplier pair without an attempt to delete the link between these calls, and the second caller passes DL_FLAG_RPM_ACTIVE to it in flags, calling either device_link_del() o

[PATCH 1/2] PM-runtime: Take suppliers into account in __pm_runtime_set_status()

2019-02-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the target device has any suppliers, as reflected by device links to them, __pm_runtime_set_status() does not take them into account, which is not consistent with the other parts of the PM-runtime framework and may lead to programming mistakes. Modify __pm_runtime_set_

[PATCH 0/2] driver core: Two more updates related to device links

2019-02-07 Thread Rafael J. Wysocki
Hi Greg at al, These two patches are on top of the recent device links updates series already in linux-next (https://lore.kernel.org/lkml/1952449.tvsm6cj...@aspire.rjw.lan/). The first one changes __pm_runtime_set_status() to look at device links and activate or deactivate the suppliers of the ta

Re: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Dmitry Osipenko
06.02.2019 22:16, Sowjanya Komatineni пишет: > @@ -920,6 +1238,7 @@ static const struct tegra_i2c_hw_feature tegra20_i2c_hw > = { > .has_mst_fifo = false, > .quirks = &tegra_i2c_quirks, > .supports_bus_clear = false, > + .has_apb_dma = true, > }; > > static const struct t

Re: [PATCH] huegtlbfs: fix page leak during migration of file pages

2019-02-07 Thread Mike Kravetz
On 1/30/19 1:14 PM, Mike Kravetz wrote: > Files can be created and mapped in an explicitly mounted hugetlbfs > filesystem. If pages in such files are migrated, the filesystem > usage will not be decremented for the associated pages. This can > result in mmap or page allocation failures as it appe

[PATCH] driver: platform: Add support for GpioInt() ACPI to platform_get_irq()

2019-02-07 Thread egranata
From: Enrico Granata ACPI 5 added support for GpioInt resources as a way to provide information about interrupts mediated via a GPIO controller. Several device buses (e.g. SPI, I2C) have support for retrieving an IRQ specified via this type of resource, and providing it directly to the driver as

Re: [PATCH v2] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-07 Thread Tony Krowiak
On 2/7/19 5:24 AM, Sebastian Ott wrote: On Wed, 6 Feb 2019, Tony Krowiak wrote: diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c +void ap_bus_cfg_chg(void) +{ + AP_DBF(DBF_INFO, "%s config change, forcing bus rescan\n", __func__); + + ap_bus_force_rescan(); +}

Re: [PATCH v11 00/16] Remove nested TPM operations

2019-02-07 Thread Alexander Steffen
On 06.02.2019 13:06, Jarkko Sakkinen wrote: On Wed, Feb 06, 2019 at 12:47:07AM +0200, Jarkko Sakkinen wrote: Make the changes necessary to detach TPM space code and TPM activation code out of the tpm_transmit() flow because of both of these can cause nested tpm_transmit() calls. The nesteds call

Re: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Dmitry Osipenko
06.02.2019 22:16, Sowjanya Komatineni пишет: > /** > @@ -191,6 +207,7 @@ struct tegra_i2c_hw_feature { > * @fast_clk: clock reference for fast clock of I2C controller > * @rst: reset control for the I2C controller > * @base: ioremapped registers cookie > + * @base_phys: Physical base address

RE: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Sowjanya Komatineni
> > static const struct tegra_i2c_hw_feature tegra210_i2c_hw = { @@ > > -980,6 +1302,7 @@ static const struct tegra_i2c_hw_feature tegra210_i2c_hw > > = { > > .has_mst_fifo = false, > > .quirks = &tegra_i2c_quirks, > > .supports_bus_clear = true, > > + .has_apb_dma = true, > > }

Re: [PATCH 4.4 00/34] 4.4.174-stable review

2019-02-07 Thread Guenter Roeck
On Thu, Feb 07, 2019 at 04:46:53PM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 07, 2019 at 06:41:01AM -0800, Guenter Roeck wrote: > > On 2/7/19 6:20 AM, Guenter Roeck wrote: > > > On 2/7/19 3:41 AM, Greg Kroah-Hartman wrote: > > > > This is the start of the stable review cycle for the 4.4.174 re

Re: [PATCH] driver: platform: Add support for GpioInt() ACPI to platform_get_irq()

2019-02-07 Thread Rafael J. Wysocki
On Thu, Feb 7, 2019 at 7:50 PM wrote: > > From: Enrico Granata > > ACPI 5 added support for GpioInt resources as a way to provide > information about interrupts mediated via a GPIO controller. > > Several device buses (e.g. SPI, I2C) have support for retrieving > an IRQ specified via this type of

[PATCH] driver: platform: Add support for GpioInt() ACPI to platform_get_irq()

2019-02-07 Thread egranata
From: Enrico Granata ACPI 5 added support for GpioInt resources as a way to provide information about interrupts mediated via a GPIO controller. Several device buses (e.g. SPI, I2C) have support for retrieving an IRQ specified via this type of resource, and providing it directly to the driver as

Re: [PATCH 2/2] MIPS/c-r4k: do no use mmap_sem for gup_fast()

2019-02-07 Thread Paul Burton
Hi Davidlohr, On Wed, Feb 06, 2019 at 09:37:40PM -0800, Davidlohr Bueso wrote: > It is well known that because the mm can internally > call the regular gup_unlocked if the lockless approach > fails and take the sem there, the caller must not hold > the mmap_sem already. > > Fixes: e523f289fe4d (M

Re: [RFC][Patch v8 6/7] KVM: Enables the kernel to isolate and report free pages

2019-02-07 Thread Michael S. Tsirkin
On Thu, Feb 07, 2019 at 09:43:44AM -0800, Alexander Duyck wrote: > On Tue, Feb 5, 2019 at 3:21 PM Michael S. Tsirkin wrote: > > > > On Tue, Feb 05, 2019 at 04:54:03PM -0500, Nitesh Narayan Lal wrote: > > > > > > On 2/5/19 3:45 PM, Michael S. Tsirkin wrote: > > > > On Mon, Feb 04, 2019 at 03:18:53P

Re: [PATCH] driver: platform: Add support for GpioInt() ACPI to platform_get_irq()

2019-02-07 Thread Rafael J. Wysocki
+Mika Westerberg +Andy Shevchenko +Hans de Goede On Thu, Feb 7, 2019 at 7:59 PM wrote: > > From: Enrico Granata > > ACPI 5 added support for GpioInt resources as a way to provide > information about interrupts mediated via a GPIO controller. > > Several device buses (e.g. SPI, I2C) have support

Re: [PATCH V14 3/5] i2c: tegra: Add DMA support

2019-02-07 Thread Dmitry Osipenko
07.02.2019 21:56, Sowjanya Komatineni пишет: > >>> static const struct tegra_i2c_hw_feature tegra210_i2c_hw = { @@ >>> -980,6 +1302,7 @@ static const struct tegra_i2c_hw_feature tegra210_i2c_hw >>> = { >>> .has_mst_fifo = false, >>> .quirks = &tegra_i2c_quirks, >>> .supports_bus_cl

Re: [PATCH v2 2/9] driver core: Avoid careless re-use of existing device links

2019-02-07 Thread Lukas Wunner
Sorry, late to the party. On Fri, Feb 01, 2019 at 01:46:54AM +0100, Rafael J. Wysocki wrote: > After commit ead18c23c263 ("driver core: Introduce device links > reference counting"), if there is a link between the given supplier > and the given consumer already, device_link_add() will refcount it

[PATCH 0/3] firmware_loader: few selftest fixes

2019-02-07 Thread Luis R. Rodriguez
From: Luis Chamberlain Greg, I've found that Dan's patches really broke firmware testing. I've identified a proper fix for the issue he found, its the last patch. This series reverts his two patches which break testing, and fixes the issue he was running into. I leave it to him as exercise to ad

[PATCH 3/3] selftests: firmware: fix verify_reqs() return value

2019-02-07 Thread Luis R. Rodriguez
From: Luis Chamberlain commit a6a9be9270c87 ("selftests: firmware: return Kselftest Skip code for skipped tests") by Shuah modified failures to return the special error code of $ksft_skip (4). We have a corner case issue where we *do* want to verify_reqs(). Cc: # >= 4.18 Fixes: a6a9be9270c87 ("

[PATCH 2/3] Revert "selftests: firmware: remove use of non-standard diff -Z option"

2019-02-07 Thread Luis R. Rodriguez
From: Luis Chamberlain This reverts commit f70b472e937bb659a7b7a14e64f07308e230888c. This breaks testing on Debian, and this patch was NACKed anyway. The proper way to address this is a quirk for busybox as that is where the issue is present. Signed-off-by: Luis Chamberlain --- tools/testing/

[PATCH 1/3] Revert "selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config"

2019-02-07 Thread Luis R. Rodriguez
From: Luis Chamberlain This reverts commit 7492902e8d22b568463897fa967c0886764cf034. The commit tried to address an issue discovered by Dan where he got a message saying: 'usermode helper disabled so ignoring test'. Dans's commit is forcing CONFIG_FW_LOADER_USER_HELPER_FALLBACK but just having

[PATCH-tip 00/22] locking/rwsem: Rework rwsem-xadd & enable new rwsem features

2019-02-07 Thread Waiman Long
This patchset revamps the current rwsem-xadd implementation to make it saner and easier to work with. This patchset removes all the architecture specific assembly code and uses generic C code for all architectures. This eases maintenance and enables us to enhance the code more easily. This patchse

[PATCH-tip 03/22] locking/rwsem: Relocate rwsem_down_read_failed()

2019-02-07 Thread Waiman Long
The rwsem_down_read_failed*() functions were relocted from above the optimistic spinning section to below that section. This enables the reader functions to use optimisitic spinning in future patches. There is no code change. Signed-off-by: Waiman Long --- kernel/locking/rwsem-xadd.c | 172 +

[PATCH-tip 02/22] locking/lock_events: Make lock_events available for all archs & other locks

2019-02-07 Thread Waiman Long
The QUEUED_LOCK_STAT option to report queued spinlocks event counts was previously allowed only on x86 architecture. To make the locking event counting code more useful, it is now renamed to a more generic LOCK_EVENT_COUNTS config option. This new option will be available to all the architectures t

[PATCH-tip 01/22] locking/qspinlock_stat: Introduce a generic lockevent counting APIs

2019-02-07 Thread Waiman Long
The percpu event counts used by qspinlock code can be useful for other locking code as well. So a new set of lockevent_* counting APIs is introduced with the lock event names extracted out into the new lock_events_list.h header file for easier addition in the future. The existing qstat_inc() calls

[PATCH-tip 06/22] locking/rwsem: Rename kernel/locking/rwsem.h

2019-02-07 Thread Waiman Long
The content of kernel/locking/rwsem.h is now specific to rwsem-xadd only. Rename it to rwsem-xadd.h to indicate that it is specific to rwsem-xadd and include it only when CONFIG_RWSEM_XCHGADD_ALGORITHM is set. Signed-off-by: Waiman Long --- kernel/locking/percpu-rwsem.c | 4 +- kernel/locking/

[PATCH-tip 04/22] locking/rwsem: Remove arch specific rwsem files

2019-02-07 Thread Waiman Long
As the generic rwsem-xadd code is using the appropriate acquire and release versions of the atomic operations, the arch specific rwsem.h files will not be that much faster than the generic code. So we can remove those arch specific rwsem.h and stop building asm/rwsem.h to reduce maintenance effort.

[PATCH-tip 09/22] locking/rwsem: Enhance DEBUG_RWSEMS_WARN_ON() macro

2019-02-07 Thread Waiman Long
Currently, the DEBUG_RWSEMS_WARN_ON() macro just dumps a stack trace when the rwsem isn't in the right state. It does not show the actual states of the rwsem. This may not be that helpful in the debugging process. Enhance the DEBUG_RWSEMS_WARN_ON() macro to also show the current content of the rws

[PATCH-tip 08/22] locking/rwsem: Add debug check for __down_read*()

2019-02-07 Thread Waiman Long
When rwsem_down_read_failed*() return, the read lock is acquired indirectly by others. So debug checks are added in __down_read() and __down_read_killable() to make sure the rwsem is really reader-owned. The other debug check calls in kernel/locking/rwsem.c except the one in up_read_non_owner() ar

[PATCH-tip 07/22] locking/rwsem: Move rwsem internal function declarations to rwsem-xadd.h

2019-02-07 Thread Waiman Long
We don't need to expose rwsem internal functions which are not supposed to be called directly from other kernel code. Signed-off-by: Waiman Long --- include/linux/rwsem.h | 7 --- kernel/locking/rwsem-xadd.h | 7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/in

[PATCH-tip 10/22] locking/rwsem: Enable lock event counting

2019-02-07 Thread Waiman Long
Add lock event counting calls so that we can track the number of lock events happening in the rwsem code. With CONFIG_LOCK_EVENT_COUNTS on and booting a 1-socket 22-core 44-thread x86-64 system, the non-zero rwsem counts after system bootup were as follows: rwsem_opt_fail=113 rwsem_opt_wlock=

[PATCH-tip 05/22] locking/rwsem: Move owner setting code from rwsem.c to rwsem.h

2019-02-07 Thread Waiman Long
The setting of owner field is specific to rwsem-xadd code, it is not needed for rwsem-spinlock. This patch moves all the owner setting code closer to the rwsem-xadd fast paths directly within rwsem.h file. For __down_read() and __down_read_killable(), it is assumed that rwsem will be marked as rea

[PATCH-tip 17/22] locking/rwsem: Recheck owner if it is not on cpu

2019-02-07 Thread Waiman Long
After merging the owner value directly into the count field, it was found that the number of failed optimistic spinning operations increased significantly during the boot up process. The cause of this increased failures was tracked down to the condition that a lock holder might have just released

[PATCH-tip 14/22] locking/rwsem: Add more rwsem owner access helpers

2019-02-07 Thread Waiman Long
Before combining owner and count, we are adding two new helpers for accessing the owner value in the rwsem. 1) struct task_struct *rwsem_get_owner(struct rw_semaphore *sem) 2) bool is_rwsem_reader_owned(struct rw_semaphore *sem) Signed-off-by: Waiman Long --- kernel/locking/rwsem-xadd.c | 11

[PATCH-tip 12/22] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-02-07 Thread Waiman Long
Because of writer lock stealing, it is possible that a constant stream of incoming writers will cause a waiting writer or reader to wait indefinitely leading to lock starvation. The mutex code has a lock handoff mechanism to prevent lock starvation. This patch implements a similar lock handoff mec

[PATCH-tip 11/22] locking/rwsem: Implement a new locking scheme

2019-02-07 Thread Waiman Long
The current way of using various reader, writer and waiting biases in the rwsem code are confusing and hard to understand. I have to reread the rwsem count guide in the rwsem-xadd.c file from time to time to remind myself how this whole thing works. It also makes the rwsem code harder to be optimiz

[PATCH-tip 13/22] locking/rwsem: Remove rwsem_wake() wakeup optimization

2019-02-07 Thread Waiman Long
With the commit 59aabfc7e959 ("locking/rwsem: Reduce spinlock contention in wakeup after up_read()/up_write()"), the rwsem_wake() forgoes doing a wakeup if the wait_lock cannot be directly acquired and an optimistic spinning locker is present. This can help performance by avoiding spinning on the

[PATCH-tip 15/22] locking/rwsem: Merge owner into count on x86-64

2019-02-07 Thread Waiman Long
With separate count and owner, there are timing windows where the two values are inconsistent. That can cause problem when trying to figure out the exact state of the rwsem. For instance, a RT task will stop optimistic spinning if the lock is acquired by a writer but the owner field isn't set yet.

[PATCH-tip 21/22] locking/rwsem: Wake up all readers in wait queue

2019-02-07 Thread Waiman Long
When the front of the wait queue is a reader, other readers immediately following the first reader will also be woken up at the same time. However, if there is a writer in between. Those readers behind the writer will not be woken up. Because of optimistic spinning, the lock acquisition order is n

[PATCH-tip 20/22] locking/rwsem: Enable count-based spinning on reader

2019-02-07 Thread Waiman Long
When the rwsem is owned by reader, writers stop optimistic spinning simply because there is no easy way to figure out if all the readers are actively running or not. However, there are scenarios where the readers are unlikely to sleep and optimistic spinning can help performance. This patch provid

[PATCH-tip 19/22] locking/rwsem: Enable readers spinning on writer

2019-02-07 Thread Waiman Long
This patch enables readers to optimistically spin on a rwsem when it is owned by a writer instead of going to sleep directly. The rwsem_can_spin_on_owner() function is extracted out of rwsem_optimistic_spin() and is called directly by __rwsem_down_read_failed_common() and __rwsem_down_write_failed

[PATCH-tip 16/22] locking/rwsem: Remove redundant computation of writer lock word

2019-02-07 Thread Waiman Long
On 64-bit architectures, each rwsem writer will have its unique lock word for acquiring the lock. Right now, the writer code recomputes the lock word every time it tries to acquire the lock. This is a waste of time. The lock word is now cached and reused when it is needed. On 32-bit architectures,

[PATCH-tip 22/22] locking/rwsem: Ensure an RT task will not spin on reader

2019-02-07 Thread Waiman Long
An RT task can do optimistic spinning only if the lock holder is actually running. If the state of the lock holder isn't known, there is a possibility that high priority of the RT task may block forward progress of the lock holder if they happen to reside on the same CPU. This will lead to deadlock

[PATCH-tip 18/22] locking/rwsem: Make rwsem_spin_on_owner() return a tri-state value

2019-02-07 Thread Waiman Long
This patch modifies rwsem_spin_on_owner() to return a tri-state value to better reflect the state of lock holder which enables us to make a better decision of what to do next. Signed-off-by: Waiman Long --- kernel/locking/rwsem-xadd.c | 25 +++-- kernel/locking/rwsem-xadd.h |

Re: [PATCH v3 1/1] arm64: dts: sdm845: wireup the thermal trip points to cpufreq

2019-02-07 Thread Matthias Kaehlcke
On Thu, Feb 07, 2019 at 10:09:29AM +0530, Amit Kucheria wrote: > On Thu, Feb 7, 2019 at 7:27 AM Matthias Kaehlcke wrote: > > > > On Wed, Feb 06, 2019 at 11:34:41AM -0800, Matthias Kaehlcke wrote: > > > On Wed, Feb 06, 2019 at 04:05:41PM +0530, Amit Kucheria wrote: > > > > On Sat, Jan 26, 2019 at 3

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