Re: [PATCH v2 2/5] dt-bindings: Amlogic: add the documentation for the SECBUS2 registers

2021-01-11 Thread Rob Herring
On Sat, 02 Jan 2021 21:59:01 +0100, Martin Blumenstingl wrote: > The Meson8/Meson8b/Meson8m2 SoCs have a register bank called SECBUS2 which > contains registers for various IP blocks such as pin-controller bits for > the BSD_EN and TEST_N GPIOs as well as some AO ARC core control bits. > The regist

Re: [PATCH v2 1/5] dt-bindings: sram: Add compatible strings for the Meson AO ARC SRAM

2021-01-11 Thread Rob Herring
On Sat, 02 Jan 2021 21:59:00 +0100, Martin Blumenstingl wrote: > Amlogic Meson8, Meson8b and Meson8m2 SoCs embed an ARC EM4 core > typically used for managing system suspend. A section of the SoCs SRAM > is mapped as memory for this ARC core. Add new compatible strings for > the SRAM section for th

Re: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway EBU bindings

2021-01-11 Thread Rob Herring
On Fri, 01 Jan 2021 22:37:59 +0100, Aleksander Jan Bajkowski wrote: > Document the Lantiq Xway SoC series External Bus Unit (EBU) bindings. > > Signed-off-by: Aleksander Jan Bajkowski > --- > .../bindings/mips/lantiq/lantiq,ebu.yaml | 32 +++ > 1 file changed, 32 insertions(

Re: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings

2021-01-11 Thread Rob Herring
On Fri, 01 Jan 2021 19:01:18 +0100, Aleksander Jan Bajkowski wrote: > Document the Lantiq Xway SoC series Clock Generation Unit (CGU) bindings. > > Signed-off-by: Aleksander Jan Bajkowski > --- > .../bindings/mips/lantiq/lantiq,cgu.yaml | 32 +++ > 1 file changed, 32 inserti

Re: [PATCH v2 1/3] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-11 Thread Luck, Tony
On Mon, Jan 11, 2021 at 02:11:56PM -0800, Andy Lutomirski wrote: > > > On Jan 11, 2021, at 1:45 PM, Tony Luck wrote: > > > > Recovery action when get_user() triggers a machine check uses the fixup > > path to make get_user() return -EFAULT. Also queue_task_work() sets up > > so that kill_me_ma

Re: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway PMU bindings

2021-01-11 Thread Rob Herring
On Thu, 31 Dec 2020 17:31:53 +0100, Aleksander Jan Bajkowski wrote: > Document the Lantiq Xway SoC series Power Management Unit (PMU) bindings. > > Signed-off-by: Aleksander Jan Bajkowski > --- > .../bindings/mips/lantiq/lantiq,pmu.yaml | 32 +++ > 1 file changed, 32 inserti

Re: [PATCH v2] powerpc/vdso: fix clock_gettime_fallback for vdso32

2021-01-11 Thread kernel test robot
Hi Christophe, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.11-rc3 next-20210111] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [PATCH v4 08/15] dt-bindings: media: Add A31 MIPI CSI-2 bindings documentation

2021-01-11 Thread Rob Herring
On Thu, 31 Dec 2020 15:29:41 +0100, Paul Kocialkowski wrote: > This introduces YAML bindings documentation for the A31 MIPI CSI-2 > controller. > > Signed-off-by: Paul Kocialkowski > --- > .../media/allwinner,sun6i-a31-mipi-csi2.yaml | 149 ++ > 1 file changed, 149 insertions(+)

Re: [PATCH v5 1/2] dt-bindings: PCI: sprd: Document Unisoc PCIe RC host controller

2021-01-11 Thread Rob Herring
On Thu, 31 Dec 2020 18:18:24 +0800, Hongtao Wu wrote: > From: Hongtao Wu > > This series adds PCIe bindings for Unisoc SoCs. > This controller is based on DesignWare PCIe IP. > > Signed-off-by: Hongtao Wu > --- > .../devicetree/bindings/pci/sprd-pcie.yaml | 93 > ++

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-11 Thread Linus Torvalds
On Mon, Jan 11, 2021 at 11:19 AM Linus Torvalds wrote: > > On Sun, Jan 10, 2021 at 11:27 PM John Hubbard wrote: > > IMHO, a lot of the bits in page _refcount are still being wasted (even > > after GUP_PIN_COUNTING_BIAS overloading), because it's unlikely that > > there are many callers of gup/pup

Re: [PATCH v3] x86/entry: emit a symbol for register restoring thunk

2021-01-11 Thread Fāng-ruì Sòng
On Mon, Jan 11, 2021 at 2:09 PM Josh Poimboeuf wrote: > > On Mon, Jan 11, 2021 at 12:58:14PM -0800, Fangrui Song wrote: > > On 2021-01-11, Nick Desaulniers wrote: > > > Arnd found a randconfig that produces the warning: > > > > > > arch/x86/entry/thunk_64.o: warning: objtool: missing symbol for in

Re: Old platforms: bring out your dead

2021-01-11 Thread Alexandre Belloni
Hello, On 11/01/2021 11:23:40-0500, Sylvain Lemieux wrote: > According to NXP > (https://www.nxp.com/products/product-information/product-longevity:PRDCT_LONGEVITY_HM), > the LPC32xx is still an active product (although it was listed for 10 > years in 2009). > > We still have active products in t

Re: [PATCH V2 1/2] scripts: dtc: Add fdtoverlay.c and fdtdump.c to DTC_SOURCE

2021-01-11 Thread Frank Rowand
Hi Viresh, On 1/6/21 11:15 PM, Viresh Kumar wrote: > We will start building overlays for platforms soon in the kernel and > would need these tools going forward. Lets start fetching them. > > Note that a copy of fdtdump.c was already copied back in the year 2012, > but was never updated or built

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2021-01-11 Thread Rob Herring
On Thu, Dec 31, 2020 at 10:21:12AM +0800, Xin Ji wrote: > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > swing setting for adjusting DP tx PHY swing > > Signed-off-by: Xin Ji > --- > .../bindings/display/bridge/analogix,anx7625.yaml | 25 > -- > 1 fi

Re: [PATCH v3] x86/entry: emit a symbol for register restoring thunk

2021-01-11 Thread Josh Poimboeuf
On Mon, Jan 11, 2021 at 12:38:06PM -0800, Nick Desaulniers wrote: > Arnd found a randconfig that produces the warning: > > arch/x86/entry/thunk_64.o: warning: objtool: missing symbol for insn at > offset 0x3e > > when building with LLVM_IAS=1 (use Clang's integrated assembler). Josh > notes: > >

Re: [PATCH] xen/privcmd: allow fetching resource sizes

2021-01-11 Thread boris . ostrovsky
On 1/11/21 10:29 AM, Roger Pau Monne wrote: > > + xdata.domid = kdata.dom; > + xdata.type = kdata.type; > + xdata.id = kdata.id; > + > + if (!kdata.addr && !kdata.num) { I think we should not allow only one of them to be zero. If it's only kdata.num then we will end up with p

Re: [PATCH v2 1/3] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-11 Thread Andy Lutomirski
> On Jan 11, 2021, at 1:45 PM, Tony Luck wrote: > > Recovery action when get_user() triggers a machine check uses the fixup > path to make get_user() return -EFAULT. Also queue_task_work() sets up > so that kill_me_maybe() will be called on return to user mode to send a > SIGBUS to the curren

Re: [PATCH v3] x86/entry: emit a symbol for register restoring thunk

2021-01-11 Thread Josh Poimboeuf
On Mon, Jan 11, 2021 at 12:58:14PM -0800, Fangrui Song wrote: > On 2021-01-11, Nick Desaulniers wrote: > > Arnd found a randconfig that produces the warning: > > > > arch/x86/entry/thunk_64.o: warning: objtool: missing symbol for insn at > > offset 0x3e > > > > when building with LLVM_IAS=1 (use

[PATCH] USB: serial: mos7720: improve handling of a kmalloc failure in read_mos_reg()

2021-01-11 Thread trix
From: Tom Rix clang static analysis reports this problem mos7720.c:352:2: warning: Undefined or garbage value returned to caller return d; ^~~~ In the parport_mos7715_read_data()'s call to read_mos_reg(), 'd' is only set after the alloc block. buf = kmalloc(1, GFP_K

Re: net: macb: can macb use __napi_schedule_irqoff() instead of __napi_schedule()

2021-01-11 Thread Paul Thomas
On Mon, Jan 11, 2021 at 4:35 PM Heiner Kallweit wrote: > > On 11.01.2021 20:45, Paul Thomas wrote: > > Hello, recently I was doing a lot of tracing/profiling to understand > > an issue we were having. Anyway, during this I ran across > > __napi_schedule_irqoff() where the comment in dev.c says "Va

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-11 Thread Frank Rowand
On 1/11/21 9:46 AM, Rob Herring wrote: > On Fri, Jan 8, 2021 at 2:41 AM Viresh Kumar wrote: >> >> Now that fdtoverlay is part of the kernel build, start using it to test >> the unitest overlays we have by applying them statically. > > Nice idea. > >> The file overlay_base.dtb have symbols of its

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-11 Thread Frank Rowand
On 1/8/21 2:41 AM, Viresh Kumar wrote: > Now that fdtoverlay is part of the kernel build, start using it to test > the unitest overlays we have by applying them statically. > > The file overlay_base.dtb have symbols of its own and we need to apply > overlay.dtb to overlay_base.dtb alone first to m

Re: [PATCH] venus: pm_helpers: Control core power domain manually

2021-01-11 Thread Fritz Koenig
On Fri, Jan 8, 2021 at 11:23 PM Stanimir Varbanov wrote: > > Presently we use device_link to control core power domain. But this > leads to issues because the genpd doesn't guarantee synchronous on/off > for supplier devices. Switch to manually control by pmruntime calls. > > Signed-off-by: Stanim

Re: [PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-11 Thread Guenter Roeck
On Mon, Jan 11, 2021 at 05:15:35PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.7 release. > There are 144 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH v3 3/4] dt-bindings: Add Cisco prefix to vendor list

2021-01-11 Thread Rob Herring
On Wed, 30 Dec 2020 22:22:04 +0100, Bert Vermeulen wrote: > Signed-off-by: Bert Vermeulen > Signed-off-by: Sander Vanheule > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Rob Herring

Re: [PATCH 02/17] rtc: pl031: use RTC_FEATURE_ALARM

2021-01-11 Thread Linus Walleij
On Mon, Jan 11, 2021 at 12:18 AM Alexandre Belloni wrote: > Clear RTC_FEATURE_ALARM instead of setting set_alarm, read_alarm and > alarm_irq_enable to NULL. > > Signed-off-by: Alexandre Belloni Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v3 1/4] Add support for Realtek RTL838x/RTL839x switch SoCs

2021-01-11 Thread Rob Herring
On Wed, Dec 30, 2020 at 10:22:02PM +0100, Bert Vermeulen wrote: > The RTL838x/839x family of SoCs are Realtek switches with an embedded > MIPS core. > > * RTL838x - 500MHz 4kce single core - 1Gbit ports and L2 features > * RTL839x - 700MHz 34Kc single core - 1Gbit ports and L2 features > > These

Re: [PATCH bpf-next 1/4] bpf: enable task local storage for tracing programs

2021-01-11 Thread Martin KaFai Lau
On Mon, Jan 11, 2021 at 10:35:43PM +0100, KP Singh wrote: > On Mon, Jan 11, 2021 at 7:57 PM Martin KaFai Lau wrote: > > > > On Fri, Jan 08, 2021 at 03:19:47PM -0800, Song Liu wrote: > > > > [ ... ] > > > > > diff --git a/kernel/bpf/bpf_local_storage.c > > > b/kernel/bpf/bpf_local_storage.c > > >

Re: [v3 PATCH 09/11] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2021-01-11 Thread Kirill Tkhai
On 11.01.2021 21:40, Yang Shi wrote: > On Wed, Jan 6, 2021 at 3:16 AM Kirill Tkhai wrote: >> >> On 06.01.2021 01:58, Yang Shi wrote: >>> Now nr_deferred is available on per memcg level for memcg aware shrinkers, >>> so don't need >>> allocate shrinker->nr_deferred for such shrinkers anymore. >>>

[PATCH v0 net-next 1/1] Allow user to set metric on default route learned via Router Advertisement.

2021-01-11 Thread Praveen Chaudhary
For IPv4, default route is learned via DHCPv4 and user is allowed to change metric using config etc/network/interfaces. But for IPv6, default route can be learned via RA, for which, currently a fixed metric value 1024 is used. Ideally, user should be able to configure metric on default route for I

[PATCH v0 net-next 0/1] Allow user to set metric on default route learned via Router Advertisement.

2021-01-11 Thread Praveen Chaudhary
Allow user to set metric on default route learned via Router Advertisement. Note: RFC 4191 does not say anything for metric for IPv6 default route. Fix: For IPv4, default route is learned via DHCPv4 and user is allowed to change metric using config in etc/network/interfaces. But for IPv6, default

Re: Linux 5.11-rc3

2021-01-11 Thread Guenter Roeck
On Sun, Jan 10, 2021 at 02:48:47PM -0800, Linus Torvalds wrote: [ ... ] > So please go out and test, and report any issues you find, Build results: total: 153 pass: 151 fail: 2 Failed builds: arm64:allmodconfig ia64:defconfig Qemu test results: total: 430 pass: 428

Re: [PATCH 5.4 00/92] 5.4.89-rc1 review

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

Re: [PATCH 4.19 00/77] 4.19.167-rc1 review

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

Re: [PATCH 4.14 00/57] 4.14.215-rc1 review

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

Re: [PATCH 4.9 00/45] 4.9.251-rc1 review

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

Re: [PATCH v7 09/18] virt: acrn: Introduce I/O request management

2021-01-11 Thread Davidlohr Bueso
On Wed, 06 Jan 2021, shuo.a@intel.com wrote: The processing flow of I/O requests are listed as following: a) The I/O handler of the hypervisor will fill an I/O request with PENDING state when a trapped I/O access happens in a User VM. b) The hypervisor makes an upcall, which is a notificat

Re: [PATCH 4.4 00/38] 4.4.251-rc1 review

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

Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

2021-01-11 Thread Paul E. McKenney
On Mon, Jan 11, 2021 at 10:09:07AM -0800, Paul E. McKenney wrote: > On Mon, Jan 11, 2021 at 06:16:39PM +0100, Peter Zijlstra wrote: > > > > While thinking more about this, I'm thinking a big part of the problem > > is that we're not dinstinguishing between geniuine per-cpu kthreads and > > kthread

Re: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12

2021-01-11 Thread Mikhail Gavrilov
Hi Christian, On Tue, 12 Jan 2021 at 01:45, Christian König wrote: > > Hi Mike, > > Unfortunately not, that's DC stuff. Easiest is to assign this as a bug > tracker to our DC team. Ok > At least some progress. Any objections that I add your e-mail address as > tested-by tag? Yes, feel free add m

Re: Old platforms: bring out your dead

2021-01-11 Thread Arnd Bergmann
On Mon, Jan 11, 2021 at 6:29 PM Måns Rullgård wrote: > Marc Gonzalez writes: > > > > Waiting for his take on the matter. > > > > I can point out some device-specific drivers that would become > > useless if tango support were dropped. > > I have tango3 and tango4 boards. Can't say I'm using them

Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-11 Thread Mathieu Poirier
On Tue, Dec 29, 2020 at 11:30:18AM +0800, peng@nxp.com wrote: > From: Peng Fan > > vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. > They are handled by remoteproc common code, no need to map in imx > rproc driver. > > Signed-off-by: Peng Fan > --- > drivers/remoteproc/i

Re: [PATCH 4/5] vfio/iommu_type1: Carefully use unmap_unpin_all during dirty tracking

2021-01-11 Thread Alex Williamson
On Thu, 7 Jan 2021 17:29:00 +0800 Keqian Zhu wrote: > If we detach group during dirty page tracking, we shouldn't remove > vfio_dma, because dirty log will lose. > > But we don't prevent unmap_unpin_all in vfio_iommu_release, because > under normal procedure, dirty tracking has been stopped. Th

Re: [PATCH v6 2/8] regulator: dt-bindings: Document max8997-pmic nodes

2021-01-11 Thread Rob Herring
On Wed, Dec 30, 2020 at 08:52:07PM +, Timon Baetz wrote: > Add maxim,max8997-battery and maxim,max8997-muic optional nodes. > > Signed-off-by: Timon Baetz > Acked-by: Krzysztof Kozlowski > --- > v6: No change. > v5: No change. > v4: Make extcon and charger-supply optional. > v3: Reorder patc

Re: [PATCH] arm64: dts: qcom: Clean up sc7180-trogdor voltage rails

2021-01-11 Thread Doug Anderson
Hi Bjorn, On Mon, Dec 7, 2020 at 2:33 PM Douglas Anderson wrote: > > For a bunch of rails we really don't do anything with them in Linux. > These are things like modem voltage rails that the modem manages these > itself and core rails (like IO rails) that are setup to just > automagically do the

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-11 Thread Saravana Kannan
of such a case. > >> > >> [1] - > >> https://lore.kernel.org/lkml/CAGETcx9PiX==mlxb9po8myyk6u2vhpvwtmsa5nkd-ywh5xh...@mail.gmail.com/ > >> Signed-off-by: Saravana Kannan > > > > This patch landed recently in linux next-20210111 as commit > > e5

Re: Old platforms: bring out your dead

2021-01-11 Thread Arnd Bergmann
On Mon, Jan 11, 2021 at 10:15 PM Mattias Wallin wrote: > >On Mon, Jan 11, 2021 at 12:10 PM Viresh Kumar > >wrote: > >> On 08-01-21, 23:55, Arnd Bergmann wrote: > >> > * spear -- added in 2010, no notable changes since 2015 > >> > >> I started an email chain with the ST folks to see if there are

Re: [PATCH v2] drm/amdkfd: Fix out-of-bounds read in kdf_create_vcrat_image_cpu()

2021-01-11 Thread Felix Kuehling
Am 2021-01-11 um 4:05 p.m. schrieb Jeremy Cline: > KASAN reported a slab-out-of-bounds read of size 1 in > kdf_create_vcrat_image_cpu(). > > This occurs when, for example, when on an x86_64 with a single NUMA node > because kfd_fill_iolink_info_for_cpu() is a no-op, but afterwards the > sub_type_hd

[PATCH v2 1/3] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-11 Thread Tony Luck
Recovery action when get_user() triggers a machine check uses the fixup path to make get_user() return -EFAULT. Also queue_task_work() sets up so that kill_me_maybe() will be called on return to user mode to send a SIGBUS to the current process. But there are places in the kernel where the code a

[PATCH v2 3/3] futex, x86/mce: Avoid double machine checks

2021-01-11 Thread Tony Luck
futex_wait_setup() first tries to read the user value with page faults disabled (because it holds a lock, and so cannot sleep). If that read fails it drops the lock and tries again. But there are now two reasons why the user space read can fail. Either: 1) legacy case of a page fault, in which cas

[PATCH v2 2/3] x86/mce: Add new return value to get_user() for machine check

2021-01-11 Thread Tony Luck
When an exception occurs during any of the get_user() functions fixup_exception() passes the trap number of the exception in regs->ax to the fixup code. Check for X86_TRAP_MC and return -ENXIO ("No such device or address") so that callers can take action to avoid repeating an access to an address

[PATCH v2 0/3] Fix infinite machine check loop in futex_wait_setup()

2021-01-11 Thread Tony Luck
Linux can now recover from machine checks where kernel code is doing get_user() to access application memory. But there isn't a way to distinguish whether get_user() failed because of a page fault or a machine check. Thus there is a problem if any kernel code thinks it can retry an access after do

Re: [PATCH] mmc: sdhci-iproc: Add ACPI bindings for the rpi4

2021-01-11 Thread Jeremy Linton
Hi, On 1/11/21 6:23 AM, Stefan Wahren wrote: Hi, Am 11.01.21 um 04:39 schrieb Jeremy Linton: Hi, On 1/9/21 5:07 AM, Stefan Wahren wrote: Hi Jeremy, +add Nicolas Am 08.01.21 um 22:13 schrieb Jeremy Linton: The rpi4 has a Arasan controller it carries over from the rpi3, and a newer eMMC2 co

Re: [PATCH 1/2] dt-bindings: panel-simple: add samsung,s6e3fa2 panel

2021-01-11 Thread Rob Herring
On Wed, 30 Dec 2020 17:17:10 +0200, Iskren Chernev wrote: > Add samsung,s6e3fa2 in the allowed simple-panel compat strings. > > Signed-off-by: Iskren Chernev > --- > .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Rob Herrin

Re: [PATCH V5 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2021-01-11 Thread Rob Herring
On Wed, Dec 30, 2020 at 05:26:22PM +0530, Kiran Gunda wrote: > Convert the bindings from .txt to .yaml format. > > Signed-off-by: Kiran Gunda > --- > .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -- > .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 117 > +++

Re: [PATCH v2] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-11 Thread Wolfram Sang
On Mon, Jan 11, 2021 at 05:58:16PM +0200, Mikko Perttunen wrote: > From: Muhammed Fazal > > Ignore I2C_M_DMA_SAFE flag as it does not make a difference > for bpmp-i2c, but causes -EINVAL to be returned for valid > transactions. I wonder if bailing out on an unknown flag shouldn't be revisited in

Re: [PATCH v2] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Wolfram Sang
On Mon, Jan 11, 2021 at 06:08:32PM +0200, Mikko Perttunen wrote: > Upon a communication error, the interrupt handler can call > tegra_i2c_disable_packet_mode. This causes a sleeping poll to happen > unless the current transaction was marked atomic. Fix this by > making the poll happen atomically if

Re: [PATCH V5 6/8] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-11 Thread Mathieu Poirier
On Tue, Dec 29, 2020 at 11:30:17AM +0800, peng@nxp.com wrote: > From: Peng Fan > > Add i.MX8MQ dev/sys addr map and configuration data structure > i.MX8MM share i.MX8MQ settings. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > Reviewed-by: Mathieu Poirier > --- > drivers/remotep

[PATCH 4/4] perf buildid-cache: Add support to add build ids from perf data

2021-01-11 Thread Jiri Olsa
Adding support to specify perf data file as -a option file argument. Examples below assume debuginfod daemon is running on 192.168.122.174, like: # debuginfod -F / If the file is detected to be perf data file, it is processed and all dso objects with sample hit are stored to the build id cache

[PATCH 3/4] perf: Add build id data in mmap2 event

2021-01-11 Thread Jiri Olsa
Adding support to carry build id data in mmap2 event. The build id data replaces maj/min/ino/ino_generation fields, which are also used to identify map's binary, so it's ok to replace them with build id data: union { struct { u32 maj; u32

[PATCH 2/4] bpf: Add size arg to build_id_parse function

2021-01-11 Thread Jiri Olsa
It's possible to have other build id types (other than default SHA1). Currently there's also ld support for MD5 build id. Adding size argument to build_id_parse function, that returns (if defined) size of the parsed build id, so we can recognize the build id type. Cc: Alexei Starovoitov Cc: Song

[PATCH 1/4] bpf: Move stack_map_get_build_id into lib

2021-01-11 Thread Jiri Olsa
Moving stack_map_get_build_id into lib with declaration in linux/buildid.h header: int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id); This function returns build id for given struct vm_area_struct. There is no functional change to stack_map_get_build_id function. Cc: Alex

[PATCHv6 0/4] perf: Add mmap2 build id support

2021-01-11 Thread Jiri Olsa
hi, adding the support to have buildid stored in mmap2 event, so we can bypass the final perf record hunt on build ids. This patchset allows perf to record build ID in mmap2 event, and adds perf tooling to store/download binaries to .debug cache based on these build IDs. Note that the build id re

Re: [v3 PATCH 05/11] mm: vmscan: use a new flag to indicate shrinker is registered

2021-01-11 Thread Kirill Tkhai
On 11.01.2021 21:17, Yang Shi wrote: > On Wed, Jan 6, 2021 at 2:22 AM Kirill Tkhai wrote: >> >> On 06.01.2021 01:58, Yang Shi wrote: >>> Currently registered shrinker is indicated by non-NULL >>> shrinker->nr_deferred. >>> This approach is fine with nr_deferred at the shrinker level, but the >>>

Re: [PATCH] dma: mark unmapped DMA scatter/gather invalid

2021-01-11 Thread Marc Orr
> >>> diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c > >>> index 0a4881e59aa7..3d9b17fe5771 100644 > >>> --- a/kernel/dma/direct.c > >>> +++ b/kernel/dma/direct.c > >>> @@ -374,9 +374,11 @@ void dma_direct_unmap_sg(struct device *dev, struct > >>> scatterlist *sgl, > >>>struct scat

Re: net: macb: can macb use __napi_schedule_irqoff() instead of __napi_schedule()

2021-01-11 Thread Heiner Kallweit
On 11.01.2021 20:45, Paul Thomas wrote: > Hello, recently I was doing a lot of tracing/profiling to understand > an issue we were having. Anyway, during this I ran across > __napi_schedule_irqoff() where the comment in dev.c says "Variant of > __napi_schedule() assuming hard irqs are masked". > >

Re: [PATCH bpf-next 1/4] bpf: enable task local storage for tracing programs

2021-01-11 Thread KP Singh
On Mon, Jan 11, 2021 at 7:57 PM Martin KaFai Lau wrote: > > On Fri, Jan 08, 2021 at 03:19:47PM -0800, Song Liu wrote: > > [ ... ] > > > diff --git a/kernel/bpf/bpf_local_storage.c b/kernel/bpf/bpf_local_storage.c > > index dd5aedee99e73..9bd47ad2b26f1 100644 > > --- a/kernel/bpf/bpf_local_storage.

Re: [v3 PATCH 03/11] mm: vmscan: use shrinker_rwsem to protect shrinker_maps allocation

2021-01-11 Thread Kirill Tkhai
On 11.01.2021 21:57, Yang Shi wrote: > On Mon, Jan 11, 2021 at 9:34 AM Kirill Tkhai wrote: >> >> On 11.01.2021 20:08, Yang Shi wrote: >>> On Wed, Jan 6, 2021 at 1:55 AM Kirill Tkhai wrote: On 06.01.2021 01:58, Yang Shi wrote: > Since memcg_shrinker_map_size just can be changd under

Re: [PATCH] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Bill Wendling
On Mon, Jan 11, 2021 at 1:18 PM Nick Desaulniers wrote: > > On Mon, Jan 11, 2021 at 1:04 PM Nathan Chancellor > wrote: > > > > On Mon, Jan 11, 2021 at 12:18:21AM -0800, Bill Wendling wrote: > > > From: Sami Tolvanen > > > > > > Enable the use of clang's Profile-Guided Optimization[1]. To generat

Re: [PATCH v5 1/3] media: dt-bindings: media: Document Rockchip VIP bindings

2021-01-11 Thread Rob Herring
On Tue, Dec 29, 2020 at 05:17:22PM +0100, Maxime Chevallier wrote: > Add a documentation for the Rockchip Camera Interface controller > binding. > > This controller can be found on platforms such as the PX30 or the > RK3288, the PX30 being the only platform supported so far. > > Signed-off-by: Ma

Re: [PATCH] ASoC: Intel: bytcr_rt5640: Add quirks for DeeQ X5-Z8300

2021-01-11 Thread Hans de Goede
Hi, On 1/11/21 6:05 PM, Pierre-Louis Bossart wrote: > > > On 12/15/20 10:16 PM, Chris Chiu wrote: >> DeeQ X5-Z8300 is a laptop empowered by Intel Atom Cherry Trail. Add >> quirks to select the correct input map, jack-detect options to enable >> jack sensing and internal/headset microphones. >> >

Re: [PATCH v3 3/3] kunit: tool: move kunitconfig parsing into __init__, make it optional

2021-01-11 Thread Brendan Higgins
On Thu, Jan 7, 2021 at 3:48 PM Daniel Latypov wrote: > > LinuxSourceTree will unceremoniously crash if the user doesn't call > read_kunitconfig() first in a number of functions. > > And currently every place we create an instance, the caller also calls > create_kunitconfig() and read_kunitconfig()

Re: [PATCH] bpf: Hoise pahole version checks into Kconfig

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 12:00 PM Nathan Chancellor wrote: > > On Tue, Jan 12, 2021 at 04:50:50AM +0900, Masahiro Yamada wrote: > > On Tue, Jan 12, 2021 at 4:34 AM Nathan Chancellor > > wrote: > > > > > > On Tue, Jan 12, 2021 at 04:19:01AM +0900, Masahiro Yamada wrote: > > > > On Tue, Jan 12, 2021

[PATCH] RISC-V: simplify BUILTIN_DTB processing

2021-01-11 Thread Vitaly Wool
Provide __dtb_start as a parameter to setup_vm() in case CONFIG_BUILTIN_DTB is true, so we don't have to duplicate BUILTIN_DTB specific processing in MMU-enabled and MMU-disabled versions of setup_vm(). Signed-off-by: Vitaly Wool --- arch/riscv/kernel/head.S | 4 arch/riscv/mm/init.c |

Re: [PATCH] mm: vmscan: support equal reclaim for anon and file pages

2021-01-11 Thread Yang Shi
On Mon, Jan 11, 2021 at 12:59 PM Sudarshan Rajagopalan wrote: > > When performing memory reclaim support treating anonymous and > file backed pages equally. > Swapping anonymous pages out to memory can be efficient enough > to justify treating anonymous and file backed pages equally. > > Signed-of

[GIT PULL] tracing/kprobes: Do the notrace functions check without kprobes on ftrace

2021-01-11 Thread Steven Rostedt
Masami Hiramatsu Linus, Blacklist properly on all archs The way to blacklist notrace functions for kprobes was not using the proper kconfig which caused some archs (powerpc) from blacklisting them. Please pull the latest trace-v5.11-rc2 tree, which can be found at: git://git.kernel.org/pu

Re: [PATCH v3 2/3] kunit: tool: fix minor typing issue with None status

2021-01-11 Thread Brendan Higgins
On Thu, Jan 7, 2021 at 3:48 PM Daniel Latypov wrote: > > The code to handle aggregating statuses didn't check that the status > actually got set to some non-None value. > Default the value to SUCCESS instead of adding a bunch of `is None` > checks. > > This sorta follows the precedent in commit 3f

Re: Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors

2021-01-11 Thread Jyoti Bhayana
Hi Jonathan, I know it is a bit confusing. Let me try to explain it with some examples to hopefully clarify some things here. SCMI Platform talks to the native/actual sensor, gets the raw values from the native sensor and applies the scale and then sends those values to the SCMI agent and the SCMI

Re: [PATCH] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Nick Desaulniers
On Mon, Jan 11, 2021 at 1:04 PM Nathan Chancellor wrote: > > On Mon, Jan 11, 2021 at 12:18:21AM -0800, Bill Wendling wrote: > > From: Sami Tolvanen > > > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > > profile, the kernel is instrumented with PGO counters, a represen

RE: Old platforms: bring out your dead

2021-01-11 Thread Mattias Wallin
>On Mon, Jan 11, 2021 at 12:10 PM Viresh Kumar wrote: >> On 08-01-21, 23:55, Arnd Bergmann wrote: >> > * spear -- added in 2010, no notable changes since 2015 >> >> I started an email chain with the ST folks to see if there are any >> concerns with this getting removed and it was confirmed by Mat

Re: [PATCH mm 2/2] kfence: show access type in report

2021-01-11 Thread Jörn Engel
On Mon, Jan 11, 2021 at 10:15:44AM +0100, Marco Elver wrote: > Show the access type in KFENCE reports by plumbing through read/write > information from the page fault handler. Update the documentation and > test accordingly. > > Suggested-by: Jörn Engel > Signed-off-by: Marco Elver Reviewed-by:

Re: [PATCH v3 1/3] kunit: tool: surface and address more typing issues

2021-01-11 Thread Brendan Higgins
On Thu, Jan 7, 2021 at 3:48 PM Daniel Latypov wrote: > > The authors of this tool were more familiar with a different > type-checker, https://github.com/google/pytype. > > That's open source, but mypy seems more prevalent (and runs faster). > And unlike pytype, mypy doesn't try to infer types so i

Re: drivers/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match'

2021-01-11 Thread Stafford Horne
On Mon, Jan 11, 2021 at 09:43:34AM -0700, Nathan Chancellor wrote: > On Mon, Jan 11, 2021 at 09:30:55PM +0900, Stafford Horne wrote: > > On Thu, Jan 07, 2021 at 04:04:47AM +0800, kernel test robot wrote: > > > Hi Pawel, > > > > > > FYI, the error/warning still remains. > > > > > > tree: > > >

[GIT PULL] Btrfs fixes for 5.11-rc4

2021-01-11 Thread David Sterba
Hi, more material for stable trees. Please pull, thanks. - tree-checker: check item end overflow - fix false warning during relocation regarding extent type - fix inode flushing logic, caused notable performance regression (since 5.10) - debugging fixups: - print correct offset for reloc t

Re: Expense of read_iter

2021-01-11 Thread Mikulas Patocka
On Mon, 11 Jan 2021, Matthew Wilcox wrote: > On Sun, Jan 10, 2021 at 04:19:15PM -0500, Mikulas Patocka wrote: > > I put counters into vfs_read and vfs_readv. > > > > After a fresh boot of the virtual machine, the counters show "13385 4". > > After a kernel compilation they show "4475220 8". >

Re: gdbserver + fsgsbase kaputt

2021-01-11 Thread Andy Lutomirski
> On Jan 11, 2021, at 12:00 PM, Borislav Petkov wrote: > > Or do you mean I should add "unsafe_fsgsbase" to grub cmdline and bisect > with fsgsbase enabled in all test kernels? Yes. But I can also look myself in a bit.

[PATCH v2] drm/amdkfd: Fix out-of-bounds read in kdf_create_vcrat_image_cpu()

2021-01-11 Thread Jeremy Cline
KASAN reported a slab-out-of-bounds read of size 1 in kdf_create_vcrat_image_cpu(). This occurs when, for example, when on an x86_64 with a single NUMA node because kfd_fill_iolink_info_for_cpu() is a no-op, but afterwards the sub_type_hdr->length, which is out-of-bounds, is read and multiplied by

Re: [PATCH 5/7] regulator: qcom-labibb: Implement short-circuit and over-current IRQs

2021-01-11 Thread AngeloGioacchino Del Regno
Il 11/01/21 20:23, AngeloGioacchino Del Regno ha scritto: Il 11/01/21 20:14, AngeloGioacchino Del Regno ha scritto: Il 11/01/21 14:57, Mark Brown ha scritto: On Sat, Jan 09, 2021 at 02:29:19PM +0100, AngeloGioacchino Del Regno wrote: +    /* If the regulator is not enabled, this is a fake ev

Re: [PATCH v3 3/3] i2c: smbus: switch from loops to memcpy

2021-01-11 Thread Wolfram Sang
On Tue, Nov 12, 2019 at 12:31:32PM -0800, Dmitry Torokhov wrote: > When copying memory from one buffer to another, instead of open-coding > loops with byte-by-byte copies let's use memcpy() which might be a bit > faster and makes intent more clear. > > Signed-off-by: Dmitry Torokhov > This one

[RFC PATCH 1/3] hugetlb: use page.private for hugetlb specific page flags

2021-01-11 Thread Mike Kravetz
As hugetlbfs evolved, state information about hugetlb pages was added. One 'convenient' way of doing this was to use available fields in tail pages. Over time, it has become difficult to know the meaning or contents of fields simply be looking at a small bit of code. Sometimes, the naming is just

Re: [PATCH] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Nathan Chancellor
On Mon, Jan 11, 2021 at 12:18:21AM -0800, Bill Wendling wrote: > From: Sami Tolvanen > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > profile, the kernel is instrumented with PGO counters, a representative > workload is run, and the raw profile data is collected from

Re: [PATCH net-next 1/5] skbuff: rename fields of struct napi_alloc_cache to be more intuitive

2021-01-11 Thread Alexander Lobakin
From: Jonathan Lemon Date: Mon, 11 Jan 2021 10:49:45 -0800 > On Mon, Jan 11, 2021 at 06:28:21PM +, Alexander Lobakin wrote: >> skb_cache and skb_count fields are used to store skbuff_heads queued >> for freeing to flush them by bulks, and aren't related to allocation >> path. Give them more o

Re: [PATCH v3 2/3] i2c: smbus: use get/put_unaligned_le16 when working with word data

2021-01-11 Thread Wolfram Sang
> You claim this was clearer. For me it is not. With the explicit > assignment to msgbuf0[1] and msbbuf0[2] it is immediatly obvious to me > what happens. Even though the endianness is explicitly mentioned in > put_unaligned_le16, it takes a bit longer for me to understand what it > does and whic

Re: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag

2021-01-11 Thread Hugh Dickins
On Mon, 11 Jan 2021, Will Deacon wrote: > On Fri, Jan 08, 2021 at 11:34:08AM -0800, Linus Torvalds wrote: > > On Fri, Jan 8, 2021 at 9:15 AM Will Deacon wrote: > > > > > > The big difference in this version is that I have reworked it based on > > > Kirill's patch which he posted as a follow-up to

Re: [PATCH v6 00/11] Raspberry Pi PoE HAT fan support

2021-01-11 Thread Nicolas Saenz Julienne
On Fri, 2020-12-11 at 17:47 +0100, Nicolas Saenz Julienne wrote: > The aim of this series is to add support to the fan found on RPi's PoE > HAT. Some commentary on the design can be found below. But the imporant > part to the people CC'd here not involved with PWM is that, in order to > achieve thi

Re: [PATCH v3 1/3] i2c: use void pointers for supplying data for reads and writes

2021-01-11 Thread Wolfram Sang
> I think it is fine to require from a caller that they are aware that a > byte (or byte array) must be passed to i2c functions. Given the (maybe) > two problems I pointed out above making it a bit harder to pass non-byte > data to these functions doesn't sound like a bad idea to me. > > Obviousl

[RFC PATCH 3/3] hugetlb: convert PageHugeTemporary() to HPageTempSurplus

2021-01-11 Thread Mike Kravetz
Use new hugetlb specific flag HPageTempSurplus to replace the PageHugeTemporary() interfaces. Signed-off-by: Mike Kravetz --- mm/hugetlb.c | 38 +- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 34ce82f4823c..9

[RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

2021-01-11 Thread Mike Kravetz
Use the new hugetlb page specific flag to replace the page_huge_active interfaces. By it's name, page_huge_active implied that a huge page was on the active list. However, that is not really what code checking the flag wanted to know. It really wanted to determine if the huge page could be migra

[RFC PATCH 0/3] create hugetlb flags to consolidate state

2021-01-11 Thread Mike Kravetz
While discussing a series of hugetlb fixes in [1], it became evident that the hugetlb specific page state information is stored in a somewhat haphazard manner. Code dealing with state information would be easier to read, understand and maintain if this information was stored in a consistent manner

Re: [PATCH v3 0/3] Use void pointers instead of char in I2C transfer APIs

2021-01-11 Thread Wolfram Sang
On Tue, Nov 12, 2019 at 12:31:29PM -0800, Dmitry Torokhov wrote: > While we indeed often deal with a stream of bytes when executing a > transfer, at the higher layers we usually work with more structured > data, and there is not really a reason to require casts to u8 * form the > callers. These ser

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