[PATCH v3] iio: adc: exynos: do not rely on 'users' counter in ISR

2020-10-06 Thread dmitry . torokhov
The order in which 'users' counter is decremented vs calling drivers' close() method is implementation specific, and we should not rely on it. Let's introduce driver private flag and use it to signal ISR to exit when device is being closed. This has a side-effect of fixing issue of accessing inut-

Re: [PATCH v4 2/2] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-10-06 Thread Guenter Roeck
On Sun, Oct 04, 2020 at 03:14:45AM +, Chu Lin wrote: > Problem: > We use voltage dividers so that the voltage presented at the voltage > sense pins is confusing. We might need to convert these readings to more > meaningful readings given the voltage divider. > > Solution: > Read the voltage di

Re: [PATCH v4 1/2] dt-bindings: hwmon: max20730: adding device tree doc for max20730

2020-10-06 Thread Guenter Roeck
On Sun, Oct 04, 2020 at 03:14:44AM +, Chu Lin wrote: > max20730 Integrated, Step-Down Switching Regulator with PMBus > > Signed-off-by: Chu Lin > Reviewed-by: Rob Herring Applied to hwmon-next. Thanks, Guenter > --- > ChangeLog v1 -> v2 > hwmon: pmbus: max20730: > - Don't do anything

Re: [PATCH v4 31/32] auxdisplay: lcd2s DT binding doc

2020-10-06 Thread Rob Herring
On Mon, 05 Oct 2020 15:01:27 +0200, poesc...@lemonage.de wrote: > From: Lars Poeschel > > Add a binding doc for the modtronix lcd2s auxdisplay driver. It also > adds modtronix to the list of known vendor-prefixes. > > Reviewed-by: Willy Tarreau > Signed-off-by: Lars Poeschel > --- > Changes in

Re: [PATCH 2/2] drm: dt-bindings: adi: axi-hdmi-tx: Add DT bindings for axi-hdmi-tx

2020-10-06 Thread Rob Herring
On Mon, Oct 05, 2020 at 05:12:09PM +0300, Bogdan Togorean wrote: > Add YAML device tree bindings for Analog Devices Inc. AXI HDMI TX > IP core DRM driver. > > Signed-off-by: Bogdan Togorean > --- > .../bindings/gpu/adi,axi-hdmi-tx.yaml | 70 +++ Not a GPU? Goes in .../bin

Re: [PATCH 2/9] mm, page_alloc: calculate pageset high and batch once per zone

2020-10-06 Thread Vlastimil Babka
On 10/5/20 2:52 PM, Michal Hocko wrote: On Tue 22-09-20 16:37:05, Vlastimil Babka wrote: We currently call pageset_set_high_and_batch() for each possible cpu, which repeats the same calculations of high and batch values. Instead call the function just once per zone, and make it apply the calcul

Re: linux-next: build warnings after merge of the akpm-current tree

2020-10-06 Thread Stephen Rothwell
Hi all, On Tue, 6 Oct 2020 16:01:38 -0400 Peter Xu wrote: > > On Tue, Oct 06, 2020 at 11:05:16PM +1100, Stephen Rothwell wrote: > > > > After merging the akpm-current tree, today's linux-next build (sparc > > defconfig) produced this warning: > > > > mm/memory.c: In function 'copy_present_page'

[PATCH 1/2] drm/nouveau/device: return error for unknown chipsets

2020-10-06 Thread Karol Herbst
Previously the code relied on device->pri to be NULL and to fail probing later. We really should just return an error inside nvkm_device_ctor for unsupported GPUs. Fixes: 24d5ff40a732 ("drm/nouveau/device: rework mmio mapping code to get rid of second map") Signed-off-by: Karol Herbst Cc: dann

[PATCH 2/2] drm/nouveau/mem: guard against NULL pointer access in mem_del

2020-10-06 Thread Karol Herbst
other drivers seems to do something similar Signed-off-by: Karol Herbst Cc: dri-devel Cc: Dave Airlie Cc: sta...@vger.kernel.org --- drivers/gpu/drm/nouveau/nouveau_mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouv

Re: [PATCH 3/9] mm, page_alloc: remove setup_pageset()

2020-10-06 Thread Vlastimil Babka
On 10/5/20 2:59 PM, Michal Hocko wrote: On Tue 22-09-20 16:37:06, Vlastimil Babka wrote: We initialize boot-time pagesets with setup_pageset(), which sets high and batch values that effectively disable pcplists. We can remove this wrapper if we just set these values for all pagesets in pageset_

Re: [PATCH] usbip: vhci_hcd: fix calling usb_hcd_giveback_urb() with irqs enabled

2020-10-06 Thread Andrey Konovalov
On Tue, Oct 6, 2020 at 11:51 PM Shuah Khan wrote: > > Fix the following warning from kcov regarding usb_hcd_giveback_urb() > call being made without disabling interrupts. Hi Shuah, This won't fix the kcov warning, as it still requires its own fix, which I'll send separately. But this will fix th

Re: RE: RE: [PATCH v18 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-10-06 Thread Michael Auchter
On Tue, Oct 06, 2020 at 09:46:38PM +, Ben Levinsky wrote: > > > > -Original Message- > > From: Michael Auchter > > Sent: Tuesday, October 6, 2020 2:32 PM > > To: Ben Levinsky > > Cc: Ed T. Mooring ; sunnylian...@gmail.com; > > punit1.agra...@toshiba.co.jp; Stefano Stabellini ; > > M

Re: PCI: Race condition in pci_create_sysfs_dev_files

2020-10-06 Thread Bjorn Helgaas
[+cc Krzysztof, Yinghai] On Wed, Sep 09, 2020 at 01:28:50PM +0200, Pali Rohár wrote: > Hello! I'm adding more people to loop. > > Can somebody look at these race conditions and my patch? > > On Friday 14 August 2020 10:08:24 Pali Rohár wrote: > > Hello! I would like to remind this issue which I

Re: PHY reset question

2020-10-06 Thread Marek Vasut
On 10/6/20 11:11 PM, Florian Fainelli wrote: > > > On 10/6/2020 1:24 PM, Marek Vasut wrote: >> On 10/6/20 9:36 PM, Florian Fainelli wrote: >> [...] - Use compatible ("compatible = "ethernet-phy-id0022.1560") in the devicetree,     so that reading the PHYID is not needed     -

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-06 Thread Rob Herring
On Fri, Oct 2, 2020 at 12:39 PM Doug Anderson wrote: > > Hi, > > On Fri, Oct 2, 2020 at 9:40 AM Lukasz Luba wrote: > > > > On 10/2/20 4:47 PM, Doug Anderson wrote: > > > Hi, > > > > > > On Fri, Oct 2, 2020 at 8:13 AM Lukasz Luba wrote: > > >> > > >> Hi Doug, > > >> > > >> On 10/2/20 3:31 PM, Dou

Re: [PATCH] dt-bindings: pinctrl: sunxi: Allow pinctrl with more interrupt banks

2020-10-06 Thread Rob Herring
On Mon, 05 Oct 2020 21:09:39 +0200, Clément Péron wrote: > Recently introduced Allwinner A100 pinctrl block has 7 interrupts. > > This trig a warning when running dtb_checks: > sun50i-a100-allwinner-perf1.dt.yaml: pinctrl@300b000: interrupts: [...] is > too long > From schema: .../allwinner

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-06 Thread Uladzislau Rezki
On Mon, Oct 05, 2020 at 05:41:00PM +0200, Michal Hocko wrote: > On Mon 05-10-20 17:08:01, Uladzislau Rezki wrote: > > On Fri, Oct 02, 2020 at 11:05:07AM +0200, Michal Hocko wrote: > > > On Fri 02-10-20 09:50:14, Mel Gorman wrote: > > > > On Fri, Oct 02, 2020 at 09:11:23AM +0200, Michal Hocko wrote:

Re: [PATCH v7 03/12] dt-bindings: mfd: Fix schema warnings for pwm-leds

2020-10-06 Thread Rob Herring
On Tue, Oct 06, 2020 at 08:34:23AM +0200, Alexander Dahl wrote: > Hello Jeff, > > Am Dienstag, 6. Oktober 2020, 04:17:29 CEST schrieb Jeff LaBundy: > > Hi Alexander, > > > > On Mon, Oct 05, 2020 at 10:34:42PM +0200, Alexander Dahl wrote: > > > The node names for devices using the pwm-leds driver

Re: [PATCH 5/9] mm, page_alloc: make per_cpu_pageset accessible only after init

2020-10-06 Thread Vlastimil Babka
On 10/5/20 3:24 PM, Michal Hocko wrote: On Tue 22-09-20 16:37:08, Vlastimil Babka wrote: setup_zone_pageset() replaces the boot_pageset by allocating and initializing a proper percpu one. Currently it assigns zone->pageset with the newly allocated one before initializing it. That's currently not

Re: [PATCH v7 03/12] dt-bindings: mfd: Fix schema warnings for pwm-leds

2020-10-06 Thread Rob Herring
On Mon, 05 Oct 2020 22:34:42 +0200, Alexander Dahl wrote: > The node names for devices using the pwm-leds driver follow a certain > naming scheme (now). Parent node name is not enforced, but recommended > by DT project. > > DTC Documentation/devicetree/bindings/mfd/iqs62x.example.dt.yaml >

Re: [PATCH 6/9] mm, page_alloc: cache pageset high and batch in struct zone

2020-10-06 Thread Vlastimil Babka
On 9/25/20 12:34 PM, David Hildenbrand wrote: On 22.09.20 16:37, Vlastimil Babka wrote: @@ -6300,6 +6310,8 @@ static __meminit void zone_pcp_init(struct zone *zone) * offset of a (static) per cpu variable into the per cpu area. */ zone->pageset = &boot_pageset; +

Re: [PATCH] usbip: vhci_hcd: fix calling usb_hcd_giveback_urb() with irqs enabled

2020-10-06 Thread Shuah Khan
On 10/6/20 4:16 PM, Andrey Konovalov wrote: On Tue, Oct 6, 2020 at 11:51 PM Shuah Khan wrote: Fix the following warning from kcov regarding usb_hcd_giveback_urb() call being made without disabling interrupts. Hi Shuah, This won't fix the kcov warning, as it still requires its own fix, which

Re: [PATCH 10/22] kvm: mmu: Add TDP MMU PF handler

2020-10-06 Thread Ben Gardon
On Wed, Sep 30, 2020 at 9:37 AM Sean Christopherson wrote: > > On Fri, Sep 25, 2020 at 02:22:50PM -0700, Ben Gardon wrote: > > @@ -4113,8 +4088,9 @@ static int direct_page_fault(struct kvm_vcpu *vcpu, > > gpa_t gpa, u32 error_code, > > if (page_fault_handle_page_track(vcpu, error_code, gfn)

Re: [PATCH 6/9] mm, page_alloc: cache pageset high and batch in struct zone

2020-10-06 Thread Vlastimil Babka
On 10/5/20 3:28 PM, Michal Hocko wrote: On Tue 22-09-20 16:37:09, Vlastimil Babka wrote: All per-cpu pagesets for a zone use the same high and batch values, that are duplicated there just for performance (locality) reasons. This patch adds the same variables also to struct zone as a shared copy.

Re: [PATCH 10/22] kvm: mmu: Add TDP MMU PF handler

2020-10-06 Thread Ben Gardon
On Wed, Sep 30, 2020 at 10:38 AM Paolo Bonzini wrote: > > On 30/09/20 18:37, Sean Christopherson wrote: > >> +ret = page_fault_handle_target_level(vcpu, write, map_writable, > >> + as_id, &iter, pfn, prefault); > >> + > >> +/* If emulating, flush thi

Re: [RESEND PATCH v3 1/3] dt-bindings: pinctrl: Add bindings for pinctrl-mchp-sgpio driver

2020-10-06 Thread Rob Herring
On Tue, Oct 06, 2020 at 04:25:30PM +0200, Lars Povlsen wrote: > This adds DT bindings for the Microsemi/Microchip SGPIO controller, > bindings microchip,sparx5-sgpio, mscc,ocelot-sgpio and > mscc,luton-sgpio. > > Signed-off-by: Lars Povlsen > --- > .../pinctrl/microchip,sparx5-sgpio.yaml |

[PATCH v2] usbip: vhci_hcd: fix calling usb_hcd_giveback_urb() with irqs enabled

2020-10-06 Thread Shuah Khan
kcov testing uncovered call to usb_hcd_giveback_urb() without disabling interrupts. Link: https://lore.kernel.org/linux-usb/CAAeHK+wb4k-LGTjK9F5YbJNviF_+yU+wE_=vpo9rn7kfn8v...@mail.gmail.com/ usb_hcd_giveback_urb() is called from vhci's urb_enqueue, when it determines it doesn't need to xmit the

Re: [PATCH v2 1/2] dt-bindings: tas2764: Add the TAS2764 binding doc

2020-10-06 Thread Rob Herring
On Tue, Oct 06, 2020 at 12:23:40PM -0500, Dan Murphy wrote: > Add the binding for the TAS2764 Smart Amplifier. > > Signed-off-by: Dan Murphy > --- > .../devicetree/bindings/sound/tas2764.yaml| 74 +++ > 1 file changed, 74 insertions(+) > create mode 100644 Documentation/devi

Good Day,

2020-10-06 Thread Mary
Hi, linux-kernel@vger.kernel.org, it is Maria. please do get back to me i have very important messages to tell you

Re: [PATCH V8 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-10-06 Thread David E. Box
Hi Bjorn, This patch has been acked and unchanged for weeks. Is it possible to get this pulled into next? We have SIOV and CXL related work that is using these definitions. Thanks. David On Fri, 2020-10-02 at 18:31 -0700, David E. Box wrote: > Add PCIe Designated Vendor-Specific Extended Capabil

[PATCH 0/3] Tiger Lake PMC core driver fixes

2020-10-06 Thread David E. Box
This patch set adds several critical fixes for intel_pmc_core driver. Patch 1: Uses descriptive register names for the TigerLake low power mode registers. Not critical, but was requested in review of Patch 2. Patch 2: Fixes the register mapping to the correct IPs in the power

[PATCH 3/3] platform/x86: intel_pmc_core: Fix the slp_s0 counter displayed value

2020-10-06 Thread David E. Box
From: Gayatri Kammela slp_s0 counter value displayed via debugfs interface is calculated by multiplying the granularity for crystal oscillator tick as 100us with the value read from using slp_s0 offset. But the granularity of the tick varies from platform to platform and it needs to be fixed. He

[PATCH 2/3] platform/x86: intel_pmc_core: Fix TigerLake power gating status map

2020-10-06 Thread David E. Box
From: Gayatri Kammela TigerLake's LPM power gating status register has errors in the bit-to-name mapping as well as with the marked reserved bits according to the actual implementation. Hence, update the right bit-to-name mapping and the reserved bits in accordance with actual implementation. Cc

[PATCH 1/3] platform/x86: pmc_core: Use descriptive names for LPM registers

2020-10-06 Thread David E. Box
TigerLake Lower Power Mode (LPM) registers are grouped by functionality but were given simple enumerated names in the code (lpm0, lpm1, ...). Instead, give the register blocks names that describe their usage. Suggested-by: Andy Shevchenko Signed-off-by: David E. Box --- drivers/platform/x86/int

mmotm 2020-10-06-15-50 uploaded

2020-10-06 Thread akpm
The mm-of-the-moment snapshot 2020-10-06-15-50 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: RE: [PATCH v18 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-10-06 Thread Michael Auchter
On Tue, Oct 06, 2020 at 07:15:49PM +, Ben Levinsky wrote: > > Hi Michael, > > Thanks for the review > < ... snip ... > > > > + z_rproc = rproc->priv; > > > + z_rproc->dev.release = zynqmp_r5_release; > > > > This is the only field of z_rproc->dev that's actually initialized, and > > this

[PATCH v2 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

2020-10-06 Thread Jann Horn
Until now, the mmap lock of the nascent mm was ordered inside the mmap lock of the old mm (in dup_mmap() and in UML's activate_mm()). A following patch will change the exec path to very broadly lock the nascent mm, but fine-grained locking should still work at the same time for the old mm. In part

[PATCH v2 2/2] exec: Broadly lock nascent mm until setup_arg_pages()

2020-10-06 Thread Jann Horn
While AFAIK there currently is nothing that can modify the VMA tree of a new mm until userspace has started running under the mm, we should properly lock the mm here anyway, both to keep lockdep happy when adding locking assertions and to be safe in the future in case someone e.g. decides to permit

[PATCH v2 0/2] Broad write-locking of nascent mm in execve

2020-10-06 Thread Jann Horn
v2: - fix commit message of patch 1/2 and be more verbose about where the old mmap lock is taken (Michel, Jason) - resending without mangling the diffs :/ (Michel, Jason) These two patches replace "mmap locking API: don't check locking if the mm isn't live yet"[1], which is currently in the m

[PATCH] ext4/xfs: add page refcount helper

2020-10-06 Thread Ralph Campbell
There are several places where ZONE_DEVICE struct pages assume a reference count == 1 means the page is idle and free. Instead of open coding this, add a helper function to hide this detail. Signed-off-by: Ralph Campbell Reviewed-by: Christoph Hellwig --- I'm resending this as a separate patch

git grep/sed to standardize "/* SPDX-License-Identifier: "

2020-10-06 Thread Joe Perches
Almost all source files in the kernel use a standardized SPDX header at line 1 with a comment /* initiator and terminator */: /* SPDX-License-Identifier: */ $ git grep -PHn '^/\* SPDX-License-Identifier:.*\*/\s*$' | \ wc -l 17847 $ git grep -PHn '^/\* SPDX-License-Identifier:.*\*/\s*$' | \

Re: [PATCH v2] usbip: vhci_hcd: fix calling usb_hcd_giveback_urb() with irqs enabled

2020-10-06 Thread Andrey Konovalov
On Wed, Oct 7, 2020 at 12:39 AM Shuah Khan wrote: > > kcov testing uncovered call to usb_hcd_giveback_urb() without disabling > interrupts. > > Link: > https://lore.kernel.org/linux-usb/CAAeHK+wb4k-LGTjK9F5YbJNviF_+yU+wE_=vpo9rn7kfn8v...@mail.gmail.com/ > > usb_hcd_giveback_urb() is called from v

[PATCH] bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Hao Luo
Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched the order of check_subprogs() and resolve_pseudo_ldimm() in the verifier. Now an empty prog and the prog of a single invalid ldimm expect to see the error "last insn is not an exit or jmp" instead, because the check for subprogs comes fi

Re: [PATCH] mtd: spi-nor: Fix 3-or-4 address byte mode logic

2020-10-06 Thread Joel Stanley
On Thu, 1 Oct 2020 at 22:23, Bert Vermeulen wrote: > > On 10/1/20 8:34 AM, Pratyush Yadav wrote: > > So using an address width of 4 here is not necessarily the right thing > > to do. This change would break SMPT parsing for all flashes that use > > 3-byte addressing by default because SMPT parsing

Re: [PATCH][next] net/mlx5: Fix uininitialized pointer read on pointer attr

2020-10-06 Thread Saeed Mahameed
On Tue, 2020-10-06 at 19:12 +0100, Colin King wrote: > From: Colin Ian King > > Currently the error exit path err_free kfree's attr. In the case > where > flow and parse_attr failed to be allocated this return path will free > the uninitialized pointer attr, which is not correct. In the other >

Re: [PATCH v39 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-10-06 Thread Sean Christopherson
On Tue, Oct 06, 2020 at 08:28:19PM +0300, Jarkko Sakkinen wrote: > On Tue, Oct 06, 2020 at 08:15:32AM -0700, Sean Christopherson wrote: > > On Tue, Oct 06, 2020 at 10:30:16AM +0200, Jethro Beekman wrote: > > > On 2020-10-06 04:57, Sean Christopherson wrote: > > > > On Sat, Oct 03, 2020 at 07:50:56A

Re: [PATCH] net/mlx5e: Fix freeing of unassigned pointer

2020-10-06 Thread Saeed Mahameed
On Sat, 2020-10-03 at 12:10 +0100, Alex Dewar wrote: > Commit ff7ea04ad579 ("net/mlx5e: Fix potential null pointer > dereference") > added some missing null checks but the error handling in > mlx5e_alloc_flow() was left broken: the variable attr is passed to > kfree > although it is never assigned

Re: [PATCH 2/4] soc: mediatek: mmsys: Use devm_platform_ioremap_resource()

2020-10-06 Thread Chun-Kuang Hu
Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: > > For the common platform_get_resource()+devm_platform_ioremap() combination, > there is a helper, so use it and make the code a bit more compact. Reviewed-by: Chun-Kuang Hu > > Signed-off-by: Enric Balletbo i Serra > --- > > drivers/soc/medi

[tip:ras/core] BUILD SUCCESS 5da8e4a658109e3b7e1f45ae672b7c06ac3e7158

2020-10-06 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201006 x86_64 randconfig-a002-20201006 x86_64

Re: [PATCH 3/4] soc: mediatek: mmsys: Create struct mtk_mmsys to store context data

2020-10-06 Thread Chun-Kuang Hu
Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: > > From: CK Hu > > Apart from the driver data, in order to extend the driver to support more > and more SoCs, we will need to store other configuration data. So, create > a mtk_mmsys struct to encapsulate all that information. Reviewed-by: Chun-K

Re: [PATCH] lm3697: Rename struct into more appropiate name

2020-10-06 Thread Marek Behun
On Mon, 5 Oct 2020 22:17:14 +0200 (CEST) ultracool...@tutanota.com wrote: > Subject says it all. This rename was briefly discussed in this other patch: > https://www.spinics.net/lists/linux-leds/msg16865.html (I don't know another > way to link to emails, so I'll just use this archive). > > Fee

Re: [PATCH] x86/resctrl: Correct MBM total and local values

2020-10-06 Thread Fenghua Yu
Hi, Boris, On Tue, Oct 06, 2020 at 06:00:56PM +0200, Borislav Petkov wrote: > On Tue, Oct 06, 2020 at 12:43:48AM +, Fenghua Yu wrote: > > I keep this original table here for two reasons: > > 1. It's an original table that can be tracked by any one in the future. > >If I don't list the orig

Re: [PATCH 14/22] kvm: mmu: Add access tracking for tdp_mmu

2020-10-06 Thread Ben Gardon
On Wed, Sep 30, 2020 at 10:49 AM Sean Christopherson wrote: > > On Fri, Sep 25, 2020 at 02:22:54PM -0700, Ben Gardon wrote: > > @@ -1945,12 +1944,24 @@ static void rmap_recycle(struct kvm_vcpu *vcpu, u64 > > *spte, gfn_t gfn) > > > > int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned

Re: [PATCH blktests v2 02/11] common/xfs: Create common helper to check for XFS support

2020-10-06 Thread Chaitanya Kulkarni
On 9/30/20 11:54, Logan Gunthorpe wrote: > > requires() { > _nvme_requires > - _have_program mkfs.xfs && _have_fio > + _have_xfs > + _have_fio Can you make _have_xfs return true false ? so it can be used with && ?

Re: [PATCH blktests v2 03/11] common/xfs: Create common helper to verify block device with xfs

2020-10-06 Thread Chaitanya Kulkarni
On 9/30/20 11:54, Logan Gunthorpe wrote: > Make a common helper from the code in tests nvme/012 and nvme/013 > to run an fio verify on a XFS file system backed by the > specified block device. > > While we are at it, all the output is redirected to $FULL instead of > /dev/null. > > Signed-off-by: L

Re: [PATCH blktests v2 02/11] common/xfs: Create common helper to check for XFS support

2020-10-06 Thread Logan Gunthorpe
On 2020-10-06 5:44 p.m., Chaitanya Kulkarni wrote: > On 9/30/20 11:54, Logan Gunthorpe wrote: >> >> requires() { >> _nvme_requires >> -_have_program mkfs.xfs && _have_fio >> +_have_xfs >> +_have_fio > Can you make _have_xfs return true false ? so it can be used with && ? _ha

Re: [PATCH blktests v2 04/11] nvme: Search for specific subsysnqn in _find_nvme_loop_dev

2020-10-06 Thread Chaitanya Kulkarni
On 9/30/20 11:54, Logan Gunthorpe wrote: > This ensures we find the correct nvme loop device if others exist on a > given system (which is generally not expected on test systems). > > Additionally, this will be required in the upcomming test nvme/037 which > will have controllers racing with ones b

Re: [PATCH blktests v2 03/11] common/xfs: Create common helper to verify block device with xfs

2020-10-06 Thread Logan Gunthorpe
On 2020-10-06 5:50 p.m., Chaitanya Kulkarni wrote: > On 9/30/20 11:54, Logan Gunthorpe wrote: >> Make a common helper from the code in tests nvme/012 and nvme/013 >> to run an fio verify on a XFS file system backed by the >> specified block device. >> >> While we are at it, all the output is red

Re: [PATCH 3/4] soc: mediatek: mmsys: Create struct mtk_mmsys to store context data

2020-10-06 Thread Chun-Kuang Hu
Chun-Kuang Hu 於 2020年10月7日 週三 上午7:24寫道: > > Enric Balletbo i Serra 於 2020年10月7日 週三 > 上午3:33寫道: > > > > From: CK Hu > > > > Apart from the driver data, in order to extend the driver to support more > > and more SoCs, we will need to store other configuration data. So, create > > a mtk_mmsys stru

Re: [PATCH blktests v2 05/11] nvme: Add common helpers for passthru tests

2020-10-06 Thread Chaitanya Kulkarni
On 9/30/20 12:01, Logan Gunthorpe wrote: > Add some simple helpers to setup a passthru target that passes through > to a nvme test device. > > Signed-off-by: Logan Gunthorpe > --- > tests/nvme/rc | 76 +++ > 1 file changed, 76 insertions(+) > > diff

Re: [PATCH 2/4] soc: mediatek: mmsys: Use devm_platform_ioremap_resource()

2020-10-06 Thread Chun-Kuang Hu
Chun-Kuang Hu 於 2020年10月7日 週三 上午7:21寫道: > > Enric Balletbo i Serra 於 2020年10月7日 週三 > 上午3:33寫道: > > > > For the common platform_get_resource()+devm_platform_ioremap() combination, > > there is a helper, so use it and make the code a bit more compact. > > Reviewed-by: Chun-Kuang Hu > Sorry for t

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-06 Thread Chun-Kuang Hu
Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: > > From: CK Hu > > Actually, setting the registers for routing, use multiple 'if-else' for > different > routes, but this code would be more and more complicated while we > support more and more SoCs. Change that and use a table per SoC so the >

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-10-06 Thread Sean Christopherson
On Tue, Oct 06, 2020 at 01:35:27PM -0400, Vivek Goyal wrote: > On Tue, Oct 06, 2020 at 10:17:04AM -0700, Sean Christopherson wrote: > > [..] > > > > Note, TDX doesn't allow injection exceptions, so reflecting a #PF back > > > > into the guest is not an option. > > > > > > Not even #MC? So sad :

[PATCH] drm/msm/dsi: save PLL registers across first PHY reset

2020-10-06 Thread benl-kernelpatches
From: Benjamin Li Take advantage of previously-added support for persisting PLL registers across DSI PHY disable/enable cycles (see 328e1a6 'drm/msm/dsi: Save/Restore PLL status across PHY reset') to support persisting across the very first DSI PHY enable at boot. The bootloader may have left th

Re: [PATCH blktests v2 04/11] nvme: Search for specific subsysnqn in _find_nvme_loop_dev

2020-10-06 Thread Logan Gunthorpe
On 2020-10-06 5:55 p.m., Chaitanya Kulkarni wrote: > On 9/30/20 11:54, Logan Gunthorpe wrote: >> This ensures we find the correct nvme loop device if others exist on a >> given system (which is generally not expected on test systems). >> >> Additionally, this will be required in the upcomming te

[PATCH v3 5/7] fpga: sec-mgr: expose sec-mgr update size

2020-10-06 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/remaining_size sysfs node that can be read to determine how much data remains to be transferred to the secure update engine. This file can be used to monitor progress during the "writing" phase of an update. Signed-off-by: Russ We

Re: linux-next: Tree for Oct 6 (drivers/misc/hisi_hikey_usb.c)

2020-10-06 Thread John Stultz
On Tue, Oct 6, 2020 at 12:29 PM Randy Dunlap wrote: > > On 10/6/20 5:12 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20201002: > > > > on x86_64: > CONFIG_USB_ROLE_SWITCH=m > and HISI_HIKEY_USB=y. > > ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_remove': > hisi_h

[PATCH v3 3/7] fpga: sec-mgr: expose sec-mgr update status

2020-10-06 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/status sysfs node that can be polled and read to monitor the progress of an ongoing secure update. Sysfs_notify() is used to signal transitions between different phases of the update process. Signed-off-by: Russ Weight Reviewed-b

[PATCH v3 6/7] fpga: sec-mgr: enable cancel of secure update

2020-10-06 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/cancel sysfs file that can be written to request that an update be canceled. The write may return EBUSY if the update has progressed to the point that it cannot be canceled by software or ENODEV if there is no update in progress.

[PATCH v3 4/7] fpga: sec-mgr: expose sec-mgr update errors

2020-10-06 Thread Russ Weight
Extend Intel Security Manager class driver to include an update/error sysfs node that can be read for error information when a secure update fails. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v3: - Use dev_err() for invalid error code in sec_error() v2: - Bumped documentation date an

[PATCH v3 7/7] fpga: sec-mgr: expose hardware error info

2020-10-06 Thread Russ Weight
Extend the Intel Security Manager class driver to include an optional update/hw_errinfo sysfs node that can be used to retrieve 64 bits of device specific error information following a secure update failure. The underlying driver must provide a get_hw_errinfo() callback function to enable this fea

[PATCH v3 0/7] Intel FPGA Security Manager Class Driver

2020-10-06 Thread Russ Weight
The Intel FPGA Security Manager class driver provides a common API for user-space tools to manage updates for secure Intel FPGA devices. Device drivers that instantiate the Intel Security Manager class driver will interact with a HW secure update engine in order to transfer new FPGA and BMC images

[PATCH v3 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-06 Thread Russ Weight
Create the Intel Security Manager class driver. The security manager provides interfaces to manage secure updates for the FPGA and BMC images that are stored in FLASH. The driver can also be used to update root entry hashes and to cancel code signing keys. This patch creates the class driver and p

[PATCH v3 2/7] fpga: sec-mgr: enable secure updates

2020-10-06 Thread Russ Weight
Extend the FPGA Intel Security Manager class driver to include an update/filename sysfs node that can be used to initiate a security update. The filename of a secure update file (BMC image, FPGA image, Root Entry Hash image, or Code Signing Key cancellation image) can be written to this sysfs entr

Re: [PATCH blktests v2 05/11] nvme: Add common helpers for passthru tests

2020-10-06 Thread Logan Gunthorpe
On 2020-10-06 6:02 p.m., Chaitanya Kulkarni wrote: > On 9/30/20 12:01, Logan Gunthorpe wrote: >> Add some simple helpers to setup a passthru target that passes through >> to a nvme test device. >> >> Signed-off-by: Logan Gunthorpe >> --- >> tests/nvme/rc | 76 ++

[PATCH] PM: runtime: Use pmruntime sync variant to put suppliers

2020-10-06 Thread Stanimir Varbanov
Calling pm_runtime_put_sync over a device with suppliers with device link flags PM_RUNTIME | RPM_ACTIVE it is observed that the supplier is not put (turned off) at the end, but instead put asynchronously. In some case This could lead to issues for the callers which expects that the pmruntime sync v

RE: [Intel-wired-lan] [PATCH 2/3] e1000e: Add Dell's Comet Lake systems into s0ix heuristics

2020-10-06 Thread Brown, Aaron F
> From: Intel-wired-lan On Behalf Of > Mario Limonciello > Sent: Sunday, September 27, 2020 9:40 PM > To: Kirsher, Jeffrey T ; intel-wired- > l...@lists.osuosl.org > Cc: perry.y...@dell.com; yijun.s...@dell.com; linux-kernel@vger.kernel.org; > Mario Limonciello > Subject: [Intel-wired-lan] [PATCH

Re: [PATCH v39 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-10-06 Thread Jarkko Sakkinen
On Tue, Oct 06, 2020 at 04:21:29PM -0700, Sean Christopherson wrote: > On Tue, Oct 06, 2020 at 08:28:19PM +0300, Jarkko Sakkinen wrote: > > On Tue, Oct 06, 2020 at 08:15:32AM -0700, Sean Christopherson wrote: > > > On Tue, Oct 06, 2020 at 10:30:16AM +0200, Jethro Beekman wrote: > > > > On 2020-10-0

RE: [Intel-wired-lan] [PATCH 3/3] e1000e: Add more Dell CML systems into s0ix heuristics

2020-10-06 Thread Brown, Aaron F
> From: Intel-wired-lan On Behalf Of > Mario Limonciello > Sent: Sunday, September 27, 2020 9:40 PM > To: Kirsher, Jeffrey T ; intel-wired- > l...@lists.osuosl.org > Cc: perry.y...@dell.com; yijun.s...@dell.com; linux- > ker...@vger.kernel.org; Mario Limonciello > Subject: [Intel-wired-lan] [PATC

Re: [PATCH v39 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-10-06 Thread Jarkko Sakkinen
On Wed, Oct 07, 2020 at 12:39:27AM +0300, Jarkko Sakkinen wrote: > On Mon, Oct 05, 2020 at 07:57:05PM -0700, Sean Christopherson wrote: > > On Sat, Oct 03, 2020 at 07:50:56AM +0300, Jarkko Sakkinen wrote: > > > + __u16 exception_vector; > > > + __u16 exception_error_code; > > > + __u64 exception_ad

RE: [Intel-wired-lan] [PATCH 2/3] e1000e: Add Dell's Comet Lake systems into s0ix heuristics

2020-10-06 Thread Limonciello, Mario
> > From: Intel-wired-lan On Behalf Of > > Mario Limonciello > > Sent: Sunday, September 27, 2020 9:40 PM > > To: Kirsher, Jeffrey T ; intel-wired- > > l...@lists.osuosl.org > > Cc: perry.y...@dell.com; yijun.s...@dell.com; linux-kernel@vger.kernel.org; > > Mario Limonciello > > Subject: [Intel

Donation

2020-10-06 Thread Rahmi Koc
I am donating $3,700,000 USD to you. Respond for more information amesbrya...@gmail.com

Re: OpRegion conflicts for Skylake LPSS

2020-10-06 Thread Laurent Pinchart
On Fri, Oct 02, 2020 at 03:26:55PM +0300, Laurent Pinchart wrote: > On Fri, Oct 02, 2020 at 01:35:12PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 02, 2020 at 01:10:23AM +0300, Laurent Pinchart wrote: > > > On Mon, May 02, 2016 at 01:35:01PM +0300, Mika Westerberg wrote: > > > > On Sun, May 01, 2

Re: [PATCH] bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Andrii Nakryiko
On Tue, Oct 6, 2020 at 4:45 PM Hao Luo wrote: > > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > the order of check_subprogs() and resolve_pseudo_ldimm() in > the verifier. Now an empty prog and the prog of a single > invalid ldimm expect to see the error "last insn is not an > ex

Re: SPARC version of arch_validate_prot() looks broken (UAF read)

2020-10-06 Thread Jann Horn
On Tue, Sep 29, 2020 at 7:30 PM Khalid Aziz wrote: > On 9/28/20 6:14 AM, Jann Horn wrote: > > From what I can tell from looking at the code: > > > > SPARC's arch_validate_prot() looks up the VMA and peeks at it; that's > > not permitted though. do_mprotect_pkey() calls arch_validate_prot() > > bef

[PATCH v4 0/6] Add support for the iEi WT61P803 PUZZLE MCU

2020-10-06 Thread Luka Kovacic
This patchset adds support for the iEi WT61P803 PUZZLE microcontroller, which enables some board specific features like fan and LED control, system power management and temperature sensor reading on some iEi Puzzle series boards. The first board to use this functionality is iEi Puzzle-M801 1U Rack

[PATCH v4 2/6] drivers: mfd: Add a driver for iEi WT61P803 PUZZLE MCU

2020-10-06 Thread Luka Kovacic
Add a driver for the iEi WT61P803 PUZZLE microcontroller, used in some iEi Puzzle series devices. The microcontroller controls system power, temperature sensors, fans and LEDs. This driver implements the core functionality for device communication over the system serial (serdev bus). It handles MC

[PATCH v4 1/6] dt-bindings: Add iEi vendor prefix and iEi WT61P803 PUZZLE driver bindings

2020-10-06 Thread Luka Kovacic
Add the iEi WT61P803 PUZZLE Device Tree bindings for MFD, HWMON and LED drivers. A new vendor prefix is also added accordingly for IEI Integration Corp. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- .../hwmon/iei,wt61p803-puzzle-hwmon.yaml | 41 ++ .../leds/iei,

[PATCH v4 3/6] drivers: hwmon: Add the iEi WT61P803 PUZZLE HWMON driver

2020-10-06 Thread Luka Kovacic
Add the iEi WT61P803 PUZZLE HWMON driver, that handles the fan speed control via PWM, reading fan speed and reading on-board temperature sensors. The driver registers a HWMON device and a simple thermal cooling device to enable in-kernel fan management. This driver depends on the iEi WT61P803 PUZ

[PATCH v4 5/6] Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation

2020-10-06 Thread Luka Kovacic
Add the iei-wt61p803-puzzle driver sysfs interface documentation to allow monitoring and control of the microcontroller from user space. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- .../testing/sysfs-driver-iei-wt61p803-puzzle | 55 +++ 1 file changed, 55 i

[PATCH v4 4/6] drivers: leds: Add the iEi WT61P803 PUZZLE LED driver

2020-10-06 Thread Luka Kovacic
Add support for the iEi WT61P803 PUZZLE LED driver. Currently only the front panel power LED is supported. This driver depends on the iEi WT61P803 PUZZLE MFD driver. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- drivers/leds/Kconfig| 8 ++ drivers/leds

[PATCH v4 6/6] MAINTAINERS: Add an entry for the iEi WT61P803 PUZZLE driver

2020-10-06 Thread Luka Kovacic
Add an entry for the iEi WT61P803 PUZZLE driver (MFD, HWMON, LED drivers). Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 33b27e62ce19..7b17195511ae 100644 --- a/MAI

Re: [PATCH] bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Hao Luo
On Tue, Oct 6, 2020 at 5:43 PM Andrii Nakryiko wrote: > > On Tue, Oct 6, 2020 at 4:45 PM Hao Luo wrote: > > > > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > > the order of check_subprogs() and resolve_pseudo_ldimm() in > > the verifier. Now an empty prog and the prog of a singl

Re: [PATCH V8 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-10-06 Thread Bjorn Helgaas
On Tue, Oct 06, 2020 at 03:45:54PM -0700, David E. Box wrote: > Hi Bjorn, > > This patch has been acked and unchanged for weeks. Is it possible to > get this pulled into next? We have SIOV and CXL related work that is > using these definitions. Thanks. I acked it because I expected you to merge i

Re: [PATCH] bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Andrii Nakryiko
On Tue, Oct 6, 2020 at 5:51 PM Hao Luo wrote: > > On Tue, Oct 6, 2020 at 5:43 PM Andrii Nakryiko > wrote: > > > > On Tue, Oct 6, 2020 at 4:45 PM Hao Luo wrote: > > > > > > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > > > the order of check_subprogs() and resolve_pseudo_ldimm()

Re: [PATCH blktests v2 02/11] common/xfs: Create common helper to check for XFS support

2020-10-06 Thread Chaitanya Kulkarni
On 10/6/20 16:51, Logan Gunthorpe wrote: > _have_xfs() does return true/false and can be used with && or in a > conditional. > > Per [1], my opinion is that using && in the requires() function where > the return value is ignored is confusing so I prefer not to do it in new > code. > > If we want to

Re: [PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs

2020-10-06 Thread Alan Stern
On Tue, Oct 06, 2020 at 12:25:36PM -0700, Matthias Kaehlcke wrote: > On Tue, Oct 06, 2020 at 01:15:24PM -0400, Alan Stern wrote: > > You don't need a platform device or a new driver to do this. The code > > can go in the existing hub driver. > > Maybe. IIUC currently USB drivers don't support/us

[PATCH 1/1] arm64: dts: marvell: Add a device tree for the iEi Puzzle-M801 board

2020-10-06 Thread Luka Kovacic
Add initial support for the iEi Puzzle-M801 1U Rackmount Network Appliance board. The board is based on the quad-core Marvell Armada 8040 SoC and supports up to 16 GB of DDR4 2400 MHz ECC RAM. It has a PCIe x16 slot (x2 lanes only) and an M.2 type B slot. Main system hardware: 2x USB 3.0 4x Gigab

Re: [PATCH 1/4] dt-bindings: Add missing 'unevaluatedProperties'

2020-10-06 Thread Dmitry Torokhov
On Mon, Oct 05, 2020 at 01:38:27PM -0500, Rob Herring wrote: > This doesn't yet do anything in the tools, but make it explicit so we can > check either 'unevaluatedProperties' or 'additionalProperties' is present > in schemas. > > 'unevaluatedProperties' is appropriate when including another schem

Re: [PATCH 4/4] dt-bindings: Explicitly allow additional properties in common schemas

2020-10-06 Thread Dmitry Torokhov
On Mon, Oct 05, 2020 at 01:38:30PM -0500, Rob Herring wrote: > In order to add meta-schema checks for additional/unevaluatedProperties > being present, all schema need to make this explicit. As common/shared > schema are included by other schemas, they should always allow for > additionalProperties

<    4   5   6   7   8   9   10   11   >