[PATCH v6 00/19] mtd: spi-nor: add xSPI Octal DTR support

2020-05-20 Thread Pratyush Yadav
Hi, This series adds support for octal DTR flashes in the spi-nor framework, and then adds hooks for the Cypress Semper and Mircom Xcella flashes to allow running them in octal DTR mode. This series assumes that the flash is handed to the kernel in Legacy SPI mode. Tested on TI J721e EVM with

[PATCH v6 03/19] spi: spi-mtk-nor: reject DTR ops

2020-05-20 Thread Pratyush Yadav
Double Transfer Rate (DTR) ops are added in spi-mem. But this controller doesn't support DTR transactions. Since we don't use the default supports_op(), which rejects all DTR ops, do that explicitly in our supports_op(). Signed-off-by: Pratyush Yadav --- drivers/spi/spi-mtk-nor.c | 4 1

[PATCH v6 08/19] mtd: spi-nor: sfdp: get command opcode extension type from BFPT

2020-05-20 Thread Pratyush Yadav
Some devices in DTR mode expect an extra command byte called the extension. The extension can either be same as the opcode, bitwise inverse of the opcode, or another additional byte forming a 16-byte opcode. Get the extension type from the BFPT. For now, only flashes with "repeat" and "inverse"

[PATCH v6 02/19] spi: atmel-quadspi: reject DTR ops

2020-05-20 Thread Pratyush Yadav
Double Transfer Rate (DTR) ops are added in spi-mem. But this controller doesn't support DTR transactions. Since we don't use the default supports_op(), which rejects all DTR ops, do that explicitly in our supports_op(). Signed-off-by: Pratyush Yadav --- drivers/spi/atmel-quadspi.c | 4 1

[PATCH v6 09/19] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-05-20 Thread Pratyush Yadav
This table is indication that the flash is xSPI compliant and hence supports octal DTR mode. Extract information like the fast read opcode, dummy cycles, the number of dummy cycles needed for a Read Status Register command, and the number of address bytes needed for a Read Status Register command.

[PATCH v6 01/19] spi: spi-mem: allow specifying whether an op is DTR or not

2020-05-20 Thread Pratyush Yadav
Each phase is given a separate 'dtr' field so mixed protocols like 4S-4D-4D can be supported. Signed-off-by: Pratyush Yadav --- drivers/spi/spi-mem.c | 3 +++ include/linux/spi/spi-mem.h | 8 2 files changed, 11 insertions(+) diff --git a/drivers/spi/spi-mem.c

[PATCH v6 05/19] mtd: spi-nor: add support for DTR protocol

2020-05-20 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH v6 10/19] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-05-20 Thread Pratyush Yadav
The xSPI Profile 1.0 table specifies how many dummy cycles and address bytes are needed for the Read Status Register command in octal DTR mode. Use that information to send the correct Read SR command. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 25 +++--

[PATCH v6 07/19] mtd: spi-nor: sfdp: prepare BFPT parsing for JESD216 rev D

2020-05-20 Thread Pratyush Yadav
JESD216 rev D makes BFPT 20 DWORDs. Update the BFPT size define to reflect that. The check for rev A or later compared the BFPT header length with the maximum BFPT length, BFPT_DWORD_MAX. Since BFPT_DWORD_MAX was 16, and so was the BFPT length for both rev A and B, this check worked fine. But

[PATCH v6 11/19] mtd: spi-nor: core: do 2 byte reads for SR and FSR in DTR mode

2020-05-20 Thread Pratyush Yadav
Some controllers, like the cadence qspi controller, have trouble reading only 1 byte in DTR mode. So, do 2 byte reads for SR and FSR commands in DTR mode, and then discard the second byte. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 15 +-- 1 file changed, 13

[PATCH v6 13/19] mtd: spi-nor: sfdp: do not make invalid quad enable fatal

2020-05-20 Thread Pratyush Yadav
The Micron MT35XU512ABA flash does not support the quad enable bit. But instead of programming the Quad Enable Require field to 000b ("Device does not have a QE bit"), it is programmed to 111b ("Reserved"). While this is technically incorrect, it is not reason enough to abort BFPT parsing.

[PATCH v6 14/19] mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT

2020-05-20 Thread Pratyush Yadav
A Soft Reset sequence will return the flash to Power-on-Reset (POR) state. It consists of two commands: Soft Reset Enable and Soft Reset. Find out if the sequence is supported from BFPT DWORD 16. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.h | 1 + drivers/mtd/spi-nor/sfdp.c | 4

[PATCH v6 12/19] mtd: spi-nor: core: enable octal DTR mode when possible

2020-05-20 Thread Pratyush Yadav
Allow flashes to specify a hook to enable octal DTR mode. Use this hook whenever possible to get optimal transfer speeds. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 35 +++ drivers/mtd/spi-nor/core.h | 2 ++ 2 files changed, 37 insertions(+)

[PATCH v6 16/19] mtd: spi-nor: core: disable Octal DTR mode on suspend.

2020-05-20 Thread Pratyush Yadav
On resume, the init procedure will be run that will re-enable it. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 68559386f6f8..63ab588299f4 100644

[PATCH v6 15/19] mtd: spi-nor: core: perform a Soft Reset on shutdown

2020-05-20 Thread Pratyush Yadav
Perform a Soft Reset on shutdown on flashes that support it so that the flash can be reset to its initial state and any configurations made by spi-nor (given that they're only done in volatile registers) will be reset. This will hand back the flash in pristine state for any further operations on

Re: [rcu] 2f08469563: BUG:kernel_reboot-without-warning_in_boot_stage

2020-05-20 Thread Nick Desaulniers
On Tue, May 19, 2020 at 11:32 AM Marco Elver wrote: > > This fixes the problem: > https://lkml.kernel.org/r/20200519182459.87166-1-el...@google.com > > I suppose there are several things that happened that caused the above > bisected changes to trigger this. Hard to say how exactly the above >

[PATCH v6 17/19] mtd: spi-nor: core: expose spi_nor_default_setup() in core.h

2020-05-20 Thread Pratyush Yadav
Flashes might want to add a custom setup hook to configure the flash in the proper mode for operation. But after that, they would still want to run the default setup hook because it selects the read, program, and erase operations. Since there is little point in repeating all that code, expose the

[PATCH v6 19/19] mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode

2020-05-20 Thread Pratyush Yadav
Since this flash doesn't have a Profile 1.0 table, the Octal DTR capabilities are enabled in the post SFDP fixup, along with the 8D-8D-8D fast read settings. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency of 200Mhz. The flash supports the soft

[PATCH v6 18/19] mtd: spi-nor: spansion: add support for Cypress Semper flash

2020-05-20 Thread Pratyush Yadav
The Cypress Semper flash is an xSPI compliant octal DTR flash. Add support for using it in octal DTR mode. The flash by default boots in a hybrid sector mode. But the sector map table on the part I had was programmed incorrectly and the SMPT values on the flash don't match the public datasheet.

[PATCH] Bluetooth: hci_qca: Fix uninitialized access to hdev

2020-05-20 Thread Abhishek Pandit-Subedi
hdev is always allocated and not only when power control is required. Reported-by: Dan Carpenter Signed-off-by: Abhishek Pandit-Subedi --- drivers/bluetooth/hci_qca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_qca.c

Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally

2020-05-20 Thread Vitaly Kuznetsov
Maxim Levitsky writes: > This msr is only available when the host supports WAITPKG feature. > > This breaks a nested guest, if the L1 hypervisor is set to ignore > unknown msrs, because the only other safety check that the > kernel does is that it attempts to read the msr and > rejects it if it

[PATCH v5 1/4] dt-bindings: iio: magnetometer: ak8975: convert format to yaml, add maintainer

2020-05-20 Thread Jonathan Albrieux
Converts documentation from txt format to yaml. Signed-off-by: Jonathan Albrieux --- .../bindings/iio/magnetometer/ak8975.txt | 30 .../bindings/iio/magnetometer/ak8975.yaml | 71 +++ 2 files changed, 71 insertions(+), 30 deletions(-) delete mode 100644

[PATCH v5 0/4] iio: magnetometer: ak8975: Add gpio reset support

2020-05-20 Thread Jonathan Albrieux
v5: - add maintainer v4: - fix some typo - use gpio's dt-bindings for more clarity in documentation - set compatible properties without vendor prefix as deprecated https://lore.kernel.org/linux-iio/20200520073125.30808-1-jonathan.albri...@gmail.com/ v3: - fix patch messages style - align

[PATCH v5 2/4] dt-bindings: iio: magnetometer: ak8975: add gpio reset support

2020-05-20 Thread Jonathan Albrieux
Add reset-gpio support. Without reset's deassertion during ak8975_power_on(), driver's probe fails on ak8975_who_i_am() while checking for device identity for AK09911 chip. AK09911 has an active low reset gpio to handle register's reset. AK09911 datasheet says that, if not used, reset pin should

[PATCH v5 4/4] iio: magnetometer: ak8975: Add gpio reset support

2020-05-20 Thread Jonathan Albrieux
According to AK09911 datasheet, if reset gpio is provided then deassert reset on ak8975_power_on() and assert reset on ak8975_power_off(). Without reset's deassertion during ak8975_power_on(), driver's probe fails on ak8975_who_i_am() while checking for device identity for AK09911 chip. AK09911

[PATCH v5 3/4] iio: magnetometer: ak8975: Fix typo, uniform measurement unit style

2020-05-20 Thread Jonathan Albrieux
Minor comment style edits. Signed-off-by: Jonathan Albrieux Reviewed-by: Andy Shevchenko --- drivers/iio/magnetometer/ak8975.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c index

[PATCH v2] x86/mm: Change so poison pages are either unmapped or marked uncacheable

2020-05-20 Thread Luck, Tony
An interesting thing happened when a guest Linux instance took a machine check. The VMM unmapped the bad page from guest physical space and passed the machine check to the guest. Linux took all the normal actions to offline the page from the process that was using it. But then guest Linux crashed

Re: [PATCH v1 2/6] arm/smmu: Add auxiliary domain support for arm-smmuv2

2020-05-20 Thread Rob Clark
On Wed, May 20, 2020 at 8:13 AM Jordan Crouse wrote: > > On Wed, May 20, 2020 at 01:57:01PM +0100, Will Deacon wrote: > > On Mon, May 18, 2020 at 08:50:27AM -0700, Rob Clark wrote: > > > On Mon, May 18, 2020 at 8:18 AM Will Deacon wrote: > > > > On Wed, Mar 18, 2020 at 04:43:07PM -0700, Rob

Re: [PATCH] KVM: x86: allow KVM_STATE_NESTED_MTF_PENDING in kvm_state flags

2020-05-20 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > The migration functionality was left incomplete in commit 5ef8acbdd687 > ("KVM: nVMX: Emulate MTF when performing instruction emulation", 2020-02-23), > fix it. > > Fixes: 5ef8acbdd687 ("KVM: nVMX: Emulate MTF when performing instruction > emulation") > Cc:

Re: [PATCH] mm, page_alloc: skip ->waternark_boost for atomic order-0 allocations

2020-05-20 Thread Charan Teja Kalla
Thank you Andrew for the comments.. On 5/20/2020 7:10 AM, Andrew Morton wrote: > On Tue, 19 May 2020 15:28:04 +0530 Charan Teja Reddy > wrote: > >> When boosting is enabled, it is observed that rate of atomic order-0 >> allocation failures are high due to the fact that free levels in the >>

Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-20 Thread Bjorn Helgaas
On Wed, May 20, 2020 at 11:59:08AM +0200, Thierry Reding wrote: > On Wed, May 20, 2020 at 04:52:23PM +0800, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > > it returns an error code. Thus a pairing decrement is needed on > > s/even it/even when it/ >

[PATCH] staging: rtl8192e: Using comparison to true is error prone

2020-05-20 Thread John Oldman
fix below issue reported by checkpatch.pl: CHECK: Using comparison to true is error prone CHECK: Using comparison to false is error prone Signed-off-by: John Oldman --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: XHCI vs PCM2903B/PCM2904 part 2

2020-05-20 Thread Alan Stern
On Wed, May 20, 2020 at 07:26:57AM -0400, Rik van Riel wrote: > After a few more weeks of digging, I have come to the tentative > conclusion that either the XHCI driver, or the USB sound driver, > or both, fail to handle USB errors correctly. > > I have some questions at the bottom, after a

Re: [PATCH 3/3] objtool: Enable compilation of objtool for all architectures

2020-05-20 Thread Matt Helsley
On Wed, May 20, 2020 at 09:16:04AM -0500, Josh Poimboeuf wrote: > On Tue, May 19, 2020 at 02:46:37PM -0700, Matt Helsley wrote: > > On Tue, May 19, 2020 at 04:18:29PM -0500, Josh Poimboeuf wrote: > > > On Tue, May 19, 2020 at 01:55:33PM -0700, Matt Helsley wrote: > > > > +const char __attribute__

Re: kernel BUG at fs/inode.c:531!

2020-05-20 Thread Randy Dunlap
[adding Cc:s] Kernel is 5.7.0-rc6.20200519. On 5/20/20 5:57 AM, nirinA raseliarison wrote: > hello , > > i repeatedly hit this bug since gcc-10.1.0: > > May 20 05:06:25 supernova kernel: [16312.604136] [ cut > here ] > May 20 05:06:25 supernova kernel: [16312.604139]

Re: [PATCH 3/3] objtool: Enable compilation of objtool for all architectures

2020-05-20 Thread Matt Helsley
On Wed, May 20, 2020 at 09:31:46AM +0100, Julien Thierry wrote: > > > On 5/19/20 9:55 PM, Matt Helsley wrote: > > objtool currently only compiles for x86 architectures. This is > > fine as it presently does not support tooling for other > > architectures. However, we would like to be able to

Re: [PATCH v1] Revert "software node: Simplify software_node_release() function"

2020-05-20 Thread Andy Shevchenko
On Wed, May 20, 2020 at 05:02:27PM +0200, Petr Mladek wrote: > On Thu 2020-02-27 16:00:01, Brendan Higgins wrote: > I have found similar report from a test robot, see > https://lore.kernel.org/lkml/20200303002816.GW6548@shao2-debian/ > > > I was staring into it for a while and do not understand

Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-20 Thread Bjorn Helgaas
On Wed, May 20, 2020 at 04:40:12PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Also This driver forgets to call

Re: [PATCH net-next v2 3/4] dt-bindings: net: Add RGMII internal delay for DP83869

2020-05-20 Thread Andrew Lunn
> I am interested in knowing where that is documented.  I want to RTM I > grepped for a few different words but came up empty Hi Dan It probably is not well documented, but one example would be Documentation/devicetree/bindings/net/ethernet-controller.yaml says: # RX and TX delays are

Re: [PATCH] w1_therm: Free the correct variable

2020-05-20 Thread Akira shimahara
Hi, Le mercredi 20 mai 2020 à 15:00 +0300, Dan Carpenter a écrit : > The problem is that we change "p_args" to point to the middle of the > string so when we free it at the end of the function it's not freeing > the same pointer that we originally allocated. > > Fixes: e2c94d6f5720 ("w1_therm:

Re: [PATCH] hwrng: ks-sa - fix runtime pm imbalance on error

2020-05-20 Thread st...@rowland.harvard.edu
On Wed, May 20, 2020 at 03:42:17PM +, Sverdlin, Alexander (Nokia - DE/Ulm) wrote: > Hello Dinghao, > > On Wed, 2020-05-20 at 21:29 +0800, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > > the call returns an error code. Thus a pairing decrement is

Re: [PATCH v3 1/7] bus: mhi: core: Abort suspends due to outgoing pending packets

2020-05-20 Thread Jeffrey Hugo
On 5/18/2020 2:03 PM, Bhaumik Bhatt wrote: Add the missing check to abort suspends if a client has pending outgoing packets to send to the device. This allows better utilization of the MHI bus wherein clients on the host are not left waiting for longer suspend or resume cycles to finish for data

[PATCH v1 3/3] irqdomain: Allow software node to be correct one for IRQ domain

2020-05-20 Thread Andy Shevchenko
In some cases we might need to have an IRQ domain created out of software node. One of such cases is DesignWare GPIO driver when it's instantiated from half-baked ACPI table (alas, we can't fix it for devices which are few years on market) and thus using software nodes to quirk this up. But the

[PATCH v1 1/3] irqdomain: Make __irq_domain_add() less OF-dependent

2020-05-20 Thread Andy Shevchenko
__irq_domain_add() in some places relies on the fact that fwnode can be only type of OF. This prevents refactoring of the code to support other types of fwnode. Make it less OF-dependent by switching to use fwnode directly where it makes sense. Signed-off-by: Andy Shevchenko ---

[PATCH v1 2/3] irqdomain: Get rid of special treatment for ACPI in __irq_domain_add()

2020-05-20 Thread Andy Shevchenko
After change __irq_domain_add() to cooperate better with fwnodes we don't need to have special treatment for ACPI case. Get rid of the special treatment for ACPI. Signed-off-by: Andy Shevchenko --- kernel/irq/irqdomain.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-)

Re: [RFC PATCH] tick/sched: update full_nohz status after SCHED dep is cleared

2020-05-20 Thread Juri Lelli
On 20/05/20 18:24, Frederic Weisbecker wrote: > Hi Juri, > > On Wed, May 20, 2020 at 04:04:02PM +0200, Juri Lelli wrote: > > After tasks enter or leave a runqueue (wakeup/block) SCHED full_nohz > > dependency is checked (via sched_update_tick_dependency()). In case tick > > can be stopped on a

Re: [PATCH 1/3] selftests: kvm: add a SVM version of state-test

2020-05-20 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > Signed-off-by: Paolo Bonzini > --- > .../testing/selftests/kvm/x86_64/state_test.c | 65 --- > 1 file changed, 55 insertions(+), 10 deletions(-) > > diff --git a/tools/testing/selftests/kvm/x86_64/state_test.c >

Re: [PATCHv3 2/5] Input: EXC3000: switch to i2c's probe_new API

2020-05-20 Thread Enric Balletbo i Serra
Hi Sebastian, On 20/5/20 17:39, Sebastian Reichel wrote: > Switch to the "new" I2C probe API. > > Signed-off-by: Sebastian Reichel Reviewed-by: Enric Balletbo i Serra > --- > drivers/input/touchscreen/exc3000.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH 5/7] perf metricgroup: Remove duped metric group events

2020-05-20 Thread Ian Rogers
On Wed, May 20, 2020 at 6:49 AM Jiri Olsa wrote: > > On Wed, May 20, 2020 at 12:28:12AM -0700, Ian Rogers wrote: > > SNIP > > > > > @@ -157,7 +183,7 @@ static int metricgroup__setup_events(struct list_head > > *groups, > > int i = 0; > > int ret = 0; > > struct egroup *eg; > >

[PATCH] KVM: PPC: Book3S HV: relax check on H_SVM_INIT_ABORT

2020-05-20 Thread Laurent Dufour
The commit 8c47b6ff29e3 ("KVM: PPC: Book3S HV: Check caller of H_SVM_* Hcalls") added checks of secure bit of SRR1 to filter out the Hcall reserved to the Ultravisor. However, the Hcall H_SVM_INIT_ABORT is made by the Ultravisor passing the context of the VM calling UV_ESM. This allows the

Re: [patch V6 12/37] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-20 Thread Andy Lutomirski
On Wed, May 20, 2020 at 8:36 AM Andy Lutomirski wrote: > > On Tue, May 19, 2020 at 7:23 PM Paul E. McKenney wrote: > > > > On Tue, May 19, 2020 at 05:26:58PM -0700, Andy Lutomirski wrote: > > > On Tue, May 19, 2020 at 2:20 PM Thomas Gleixner > > > wrote: First, the patch as you submitted it

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-20 Thread Johannes Weiner
On Wed, May 20, 2020 at 06:07:56PM +0200, Michal Hocko wrote: > On Wed 20-05-20 15:37:12, Chris Down wrote: > > In Facebook production, we've seen cases where cgroups have been put > > into allocator throttling even when they appear to have a lot of slack > > file caches which should be trivially

[PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Richard Guy Briggs
Some table unregister actions seem to be initiated by the kernel to garbage collect unused tables that are not initiated by any userspace actions. It was found to be necessary to add the subject credentials to cover this case to reveal the source of these actions. A sample record: The uid,

Re: [PATCHv3 4/5] Input: EXC3000: Add support to query model and fw_version

2020-05-20 Thread Enric Balletbo i Serra
Hi Sebastian, On 20/5/20 17:39, Sebastian Reichel wrote: > Expose model and fw_version via sysfs. Also query the model > in probe to make sure, that the I2C communication with the > device works before successfully probing the driver. > > This is a bit complicated, since EETI devices do not have

Re: [PATCH v3 2/7] bus: mhi: core: Introduce independent voting mechanism

2020-05-20 Thread Jeffrey Hugo
On 5/18/2020 2:03 PM, Bhaumik Bhatt wrote: Allow independent votes from clients such that they can choose to vote for either the device or the bus or both. This helps in cases where the device supports autonomous low power mode wherein it can move to M2 state without the need to notify the host.

Re: [PATCHv3 5/5] Input: EXC3000: Add reset gpio support

2020-05-20 Thread Enric Balletbo i Serra
Hi Sebastian, On 20/5/20 17:39, Sebastian Reichel wrote: > Add basic support for an optional reset gpio. > > Signed-off-by: Sebastian Reichel Thanks to address the comments I did in second version. so, Reviewed-by: Enric Balletbo i Serra > --- > .../input/touchscreen/eeti,exc3000.yaml

Re: [PATCH net-next] ipv6/route: inherit max_sizes from current netns

2020-05-20 Thread David Ahern
On 5/20/20 8:58 AM, Christian Brauner wrote: > During NorthSec (cf. [1]) a very large number of unprivileged > containers and nested containers are run during the competition to > provide a safe environment for the various teams during the event. Every > year a range of feature requests or bug

Re: [PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Richard Guy Briggs
On 2020-05-20 12:51, Richard Guy Briggs wrote: > Some table unregister actions seem to be initiated by the kernel to > garbage collect unused tables that are not initiated by any userspace > actions. It was found to be necessary to add the subject credentials to > cover this case to reveal the

Re: [PATCH v3 2/2] scsi: ufs-qcom: enter and exit hibern8 during clock scaling

2020-05-20 Thread Asutosh Das (asd)
Hi Pedro, On 11/11/2019 7:54 AM, Pedro Sousa wrote: Hi Asutosh, Please check comments. Sorry for missing out on this and thanks for your review. -Original Message- From: Asutosh Das Sent: Wednesday, October 23, 2019 5:49 PM To: c...@codeaurora.org; rna...@codeaurora.org;

Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally

2020-05-20 Thread Maxim Levitsky
On Wed, 2020-05-20 at 18:33 +0200, Vitaly Kuznetsov wrote: > Maxim Levitsky writes: > > > This msr is only available when the host supports WAITPKG feature. > > > > This breaks a nested guest, if the L1 hypervisor is set to ignore > > unknown msrs, because the only other safety check that the >

Re: [PATCH] mm, memcg: unify reclaim retry limits with page allocator

2020-05-20 Thread Michal Hocko
On Wed 20-05-20 17:31:42, Chris Down wrote: > Reclaim retries have been set to 5 since the beginning of time in > 66e1707bc346 ("Memory controller: add per cgroup LRU and reclaim"). > However, we now have a generally agreed-upon standard for page reclaim: > MAX_RECLAIM_RETRIES (currently 16),

Re: [PATCH 1/3] selftests: kvm: add a SVM version of state-test

2020-05-20 Thread Paolo Bonzini
On 20/05/20 18:50, Vitaly Kuznetsov wrote: > Reviewed-by: Vitaly Kuznetsov > This was sent by mistake, but thanks for the review anyway! Paolo

Re: [PATCH] Input: omap-keypad - fix runtime pm imbalance on error

2020-05-20 Thread Dmitry Torokhov
Hi Dinghao, On Wed, May 20, 2020 at 6:35 AM Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. This is a very surprising

Re: [RFC PATCH] tick/sched: update full_nohz status after SCHED dep is cleared

2020-05-20 Thread Frederic Weisbecker
On Wed, May 20, 2020 at 06:49:25PM +0200, Juri Lelli wrote: > On 20/05/20 18:24, Frederic Weisbecker wrote: > > Hummm, so I enabled 'timer:*', anything else you think I should be > looking at? Are you sure you also enabled timer_expire_entry? Because: > > ... > ksoftirqd/13-117 [013]

Re: [RESEND PATCH v7 2/5] seq_buf: Export seq_buf_printf() to external modules

2020-05-20 Thread Christoph Hellwig
s/seq_buf: Export seq_buf_printf() to external modules/ seq_buf: export seq_buf_printf/

Linux 4.4.224

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.4.224 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 4.14.181

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.14.181 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-20 Thread Mike Rapoport
On Mon, May 18, 2020 at 09:37:15AM +0100, Will Deacon wrote: > On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: > > On Sat, May 16, 2020 at 05:00:50PM -0700, Guenter Roeck wrote: > > > On Mon, May 11, 2020 at 09:41:36PM +0100, Will Deacon wrote: > > > > Now that the page table

Re: Linux 4.14.181

2020-05-20 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 525565f44b17..12bf05880d2d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 180 +SUBLEVEL = 181 EXTRAVERSION = NAME = Petit Gorille @@ -656,20 +656,14 @@ KBUILD_CFLAGS

Re: Linux 4.4.224

2020-05-20 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 6b88acb0b9b1..f381af71fa32 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 223 +SUBLEVEL = 224 EXTRAVERSION = NAME = Blurry Fish Butt @@ -631,7 +631,6 @@ ARCH_CFLAGS := include arch/$(SRCARCH)/Makefile

Linux 4.9.224

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.9.224 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.19.124

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.19.124 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web

Re: Linux 4.9.224

2020-05-20 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 2a923301987e..3e58c142f92f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 223 +SUBLEVEL = 224 EXTRAVERSION = NAME = Roaring Lionus @@ -658,20 +658,14 @@ KBUILD_CFLAGS += $(call cc-option,-fdata-sections,)

Re: Linux 4.19.124

2020-05-20 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 68fa15edd662..292c92c8369d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 123 +SUBLEVEL = 124 EXTRAVERSION = NAME = "People's Front" @@ -657,20 +657,14 @@ KBUILD_CFLAGS

Linux 5.4.42

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.42 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-20 Thread Michal Hocko
On Wed 20-05-20 12:51:31, Johannes Weiner wrote: > On Wed, May 20, 2020 at 06:07:56PM +0200, Michal Hocko wrote: > > On Wed 20-05-20 15:37:12, Chris Down wrote: > > > In Facebook production, we've seen cases where cgroups have been put > > > into allocator throttling even when they appear to have

Re: [PATCH v1 1/1] PCI/ERR: Handle fatal error recovery for non-hotplug capable devices

2020-05-20 Thread Kuppuswamy, Sathyanarayanan
On 5/20/20 1:28 AM, Yicong Yang wrote: On 2020/5/7 11:32, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan If there are non-hotplug capable devices connected to a given port, then during the fatal error recovery(triggered by DPC or AER), after calling

Linux 5.6.14

2020-05-20 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.6.14 kernel. All users of the 5.6 kernel series must upgrade. The updated 5.6.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.6.y and can be browsed at the normal kernel.org git web browser:

[PATCH liburing v2 3/5] Add helpers to set and get eventfd notification status

2020-05-20 Thread Stefano Garzarella
This patch adds the new IORING_CQ_EVENTFD_DISABLED flag. It can be used to disable/enable notifications from the kernel when a request is completed and queued to the CQ ring. We also add two helpers function to check if the notifications are enabled and to toggle them. If the kernel doesn't

[PATCH liburing v2 4/5] man/io_uring_register.2: add IORING_CQ_EVENTFD_DISABLED description

2020-05-20 Thread Stefano Garzarella
Signed-off-by: Stefano Garzarella --- man/io_uring_register.2 | 8 1 file changed, 8 insertions(+) diff --git a/man/io_uring_register.2 b/man/io_uring_register.2 index e64f688..5022c03 100644 --- a/man/io_uring_register.2 +++ b/man/io_uring_register.2 @@ -168,6 +168,14 @@ must contain

[PATCH liburing v2 5/5] Add test/eventfd-disable.c test case

2020-05-20 Thread Stefano Garzarella
This new test checks if the mechanism to enable/disable notifications through eventfd when a request is completed works correctly. Signed-off-by: Stefano Garzarella --- v1 -> v2: - renamed io_uring_cq_eventfd_toggle() --- .gitignore | 1 + test/Makefile | 6 +-

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

2020-05-20 Thread Catalin Marinas
On Mon, May 18, 2020 at 08:21:02PM +0800, Zhenyu Ye wrote: > On 2020/5/14 23:28, Catalin Marinas wrote: > > On Tue, Apr 14, 2020 at 07:28:35PM +0800, Zhenyu Ye wrote: > >> + } > >> + scale++; > >> + range_size >>= TLB_RANGE_MASK_SHIFT; > >> + } > > > > So, you start

[PATCH liburing v2 1/5] Add CQ ring 'flags' field

2020-05-20 Thread Stefano Garzarella
io_uring provides the new CQ ring 'flags' field if 'cq_off.flags' is not zero. In this case we set the 'cq->kflags' pointer, otherwise it will be NULL. Signed-off-by: Stefano Garzarella --- src/include/liburing.h | 1 + src/include/liburing/io_uring.h | 4 +++- src/setup.c

Re: [PATCH v4] ACPI/IORT: Fix PMCG node single ID mapping handling.

2020-05-20 Thread Tuan Phan
> On May 20, 2020, at 5:58 AM, Lorenzo Pieralisi > wrote: > > On Fri, May 15, 2020 at 12:24:46PM -0700, Tuan Phan wrote: >> An IORT PMCG node can have no ID mapping if its overflow interrupt is >> wire based therefore the code that parses the PMCG node can not assume >> the node will always

[PATCH liburing v2 0/5] liburing: add helpers to enable/disable eventfd notifications

2020-05-20 Thread Stefano Garzarella
This series is based on top of a new IORING_CQ_EVENTFD_DISABLED flag available in the CQ ring flags. I added io_uring_cq_eventfd_enabled() to get the status of eventfd notifications, and io_uring_cq_eventfd_toggle() to disable/enabled eventfd notifications. I updated man pages and I added a

[PATCH liburing v2 2/5] man/io_uring_setup.2: add 'flags' field in the struct io_cqring_offsets

2020-05-20 Thread Stefano Garzarella
Signed-off-by: Stefano Garzarella --- man/io_uring_setup.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/io_uring_setup.2 b/man/io_uring_setup.2 index d48bb32..c929cb7 100644 --- a/man/io_uring_setup.2 +++ b/man/io_uring_setup.2 @@ -325,7 +325,8 @@ struct

Re: [PATCH v5 1/4] rcu/kasan: record and print call_rcu() call stack

2020-05-20 Thread Andrey Konovalov
On Wed, May 20, 2020 at 2:34 PM Walter Wu wrote: > > This feature will record the last two call_rcu() call stacks and > prints up to 2 call_rcu() call stacks in KASAN report. > > When call_rcu() is called, we store the call_rcu() call stack into > slub alloc meta-data, so that the KASAN report

Re: clock_gettime64 vdso bug on 32-bit arm, rpi-4

2020-05-20 Thread Rich Felker
On Wed, May 20, 2020 at 12:08:10PM -0400, Rich Felker wrote: > On Wed, May 20, 2020 at 04:41:29PM +0100, Szabolcs Nagy wrote: > > The 05/19/2020 22:31, Arnd Bergmann wrote: > > > On Tue, May 19, 2020 at 10:24 PM Adhemerval Zanella > > > wrote: > > > > On 19/05/2020 16:54, Arnd Bergmann wrote: > >

[PATCH] lan743x: Added fixed link support

2020-05-20 Thread Roelof Berg
Microchip lan7431 is frequently connected to a phy. However, it can also be directly connected to a MII remote peer without any phy in between. For supporting such a phyless hardware setup in Linux we added the capability to the driver to understand the fixed-link and the phy-connection-type

Hello Dear

2020-05-20 Thread Lisa Tofan
Hello Dear, This is Miss Lisa Tofan, How are you today hope all is well with you, please I will need your urgent attention regarding this important discussion kindly contact me back here my Email: lisatofan...@gmail.com: for more details, Thanks, Miss Lisa Tofan

[PATCH] media: cedrus: Add support for additional output formats

2020-05-20 Thread Jernej Skrabec
If VPU supports untiled output, it actually supports several different YUV 4:2:0 layouts, namely NV12, NV21, YUV420 and YVU420. Add support for all of them. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 18 +-

[PATCH v5] ACPI/IORT: Fix PMCG node single ID mapping handling

2020-05-20 Thread Tuan Phan
An IORT PMCG node can have no ID mapping if its overflow interrupt is wire based therefore the code that parses the PMCG node can not assume the node will always have a single mapping present at index 0. Fix iort_get_id_mapping_index() by checking for an overflow interrupt and mapping count.

Re: [patch V6 36/37] x86/entry: Move paranoid irq tracing out of ASM code

2020-05-20 Thread Andy Lutomirski
On Wed, May 20, 2020 at 8:17 AM Thomas Gleixner wrote: > > Andy Lutomirski writes: > > > On Fri, May 15, 2020 at 5:11 PM Thomas Gleixner wrote: > > > > I think something's missing here. With this patch applied, don't we > > get to exc_debug_kernel() -> handle_debug() without doing > >

Re: [PATCH] Bluetooth: hci_qca: Fix uninitialized access to hdev

2020-05-20 Thread Marcel Holtmann
Hi Abhishek, > hdev is always allocated and not only when power control is required. > > Reported-by: Dan Carpenter > Signed-off-by: Abhishek Pandit-Subedi > --- > > drivers/bluetooth/hci_qca.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) patch has been applied to bluetooth-next

Re: [PATCH] dt-bindings: input: touchscreen: edt-ft5x06: change reg property

2020-05-20 Thread Dmitry Torokhov
Hi Johan, On Wed, May 20, 2020 at 09:33:27AM +0200, Johan Jonker wrote: > A test with the command below gives this error: > > arch/arm/boot/dts/rk3188-bqedison2qc.dt.yaml: > touchscreen@3e: reg:0:0: 56 was expected > > The touchscreen chip on 'rk3188-bqedison2qc' and other BQ models > was

Re: [PATCH liburing v2 0/5] liburing: add helpers to enable/disable eventfd notifications

2020-05-20 Thread Jens Axboe
On 5/20/20 11:07 AM, Stefano Garzarella wrote: > This series is based on top of a new IORING_CQ_EVENTFD_DISABLED > flag available in the CQ ring flags. > > I added io_uring_cq_eventfd_enabled() to get the status of eventfd > notifications, and io_uring_cq_eventfd_toggle() to disable/enabled >

Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally

2020-05-20 Thread Vitaly Kuznetsov
Maxim Levitsky writes: > On Wed, 2020-05-20 at 18:33 +0200, Vitaly Kuznetsov wrote: >> Maxim Levitsky writes: >> >> > This msr is only available when the host supports WAITPKG feature. >> > >> > This breaks a nested guest, if the L1 hypervisor is set to ignore >> > unknown msrs, because the

Re: [PATCH] input: i8042: Remove special PowerPC handling

2020-05-20 Thread Dmitry Torokhov
Hi Michael, On Wed, May 20, 2020 at 04:07:00PM +1000, Michael Ellerman wrote: > [ + Dmitry & linux-input ] > > Nathan Chancellor writes: > > This causes a build error with CONFIG_WALNUT because kb_cs and kb_data > > were removed in commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and > >

Re: [RESEND PATCH v7 3/5] powerpc/papr_scm: Fetch nvdimm health information from PHYP

2020-05-20 Thread Vaibhav Jain
Thanks for reviewing this this patch Ira. My responses below: Ira Weiny writes: > On Wed, May 20, 2020 at 12:30:56AM +0530, Vaibhav Jain wrote: >> Implement support for fetching nvdimm health information via >> H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair >> of 64-bit

Re: [PATCH 0/2] MAINTAINER entries for few ROHM power devices

2020-05-20 Thread Mark Brown
On Wed, 20 May 2020 09:10:22 +0300, Matti Vaittinen wrote: > Add maintainer entries to a few ROHM devices and Linear Ranges > > Linear Ranges helpers were refactored out of regulator core to lib so > that other drivers could utilize them too. (I guess power/supply drivers > and possibly clk

<    5   6   7   8   9   10   11   12   13   14   >