RE: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-03-24 Thread Joakim Zhang
> -Original Message- > From: Jon Hunter > Sent: 2021年3月24日 18:51 > To: Joakim Zhang > Cc: net...@vger.kernel.org; Linux Kernel Mailing List > ; linux-tegra ; > Jakub Kicinski > Subject: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac > resume back > > Hi Joakim, > > Sta

RE: [PATCH v3] phy: zynqmp: Handle the clock enable/disable properly

2021-03-24 Thread Manish Narani
Hi Laurent, Thank you so much for the review. > -Original Message- > From: Laurent Pinchart > Sent: Wednesday, March 24, 2021 8:38 AM > To: Manish Narani > Cc: kis...@ti.com; vk...@kernel.org; Michal Simek ; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; git > >

[PATCH 4/7] arm64: dts: rockchip: move mmc aliases to board dts on rk3308

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, the newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 6 ++ arch/

[PATCH 6/7] arm64: dts: rockchip: move mmc aliases to board dts on rk3368

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, the newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi | 4

[PATCH 3/7] arm64: dts: rockchip: move mmc aliases to board dts on px30

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, the newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. For the Engicam-boards this means a split as the core boards contains the emmc while the commit baseboard handles sdmmc and sdio.

[PATCH 7/7] arm64: dts: rockchip: move mmc aliases to board dts on rk3399

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, the newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts| 4 +

[PATCH 5/7] arm64: dts: rockchip: move mmc aliases to board dts on rk3328

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, the newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts| 6 ++ a

[PATCH 1/7] ARM: dts: rockchip: move rk322x mmcx aliases to board dts files

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, mmc-aliases are supposed to be board-specific, so move the newly added general aliases to the board-level on rk322x-based boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3228-evb.dts | 4 arch/

[PATCH 2/7] ARM: dts: rockchip: move rv1108 mmcx aliases to board dts files

2021-03-24 Thread Heiko Stuebner
From: Heiko Stuebner As suggested by Arnd Bergmann, mmc-aliases are supposed to be board-specific, so move the newly added general aliases to the board-level on rv1108-based boards. Suggested-by: Arnd Bergmann Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rv1108-elgin-r1.dts | 4 a

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 12:15:47PM +0100, Vitaly Wool wrote: > On Wed, Mar 24, 2021, 11:16 AM wrote: > > > From: Guo Ren > > > > This patch introduces a ticket lock implementation for riscv, along the > > same lines as the implementation for arch/arm & arch/csky. > > > > Could you please provid

[PATCH v2 0/2] xen/x86: alternative fix for XSA-369

2021-03-24 Thread Roger Pau Monne
Hello, This is a proposal for an alternative fix for XSA-369 that instead of special casing XEN_UNPOPULATED_ALLOC to size the p2m relies on making XEN_BALLOON_MEMORY_HOTPLUG_LIMIT depend on the generic MEMORY_HOTPLUG option rather than XEN_BALLOON_MEMORY_HOTPLUG. I think this is safer, as we don'

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-24 Thread Jason Gunthorpe
On Wed, Mar 24, 2021 at 10:56:43AM +0100, Daniel Vetter wrote: > On Tue, Mar 23, 2021 at 06:06:53PM +0100, Thomas Hellström (Intel) wrote: > > > > On 3/23/21 5:37 PM, Jason Gunthorpe wrote: > > > On Tue, Mar 23, 2021 at 05:34:51PM +0100, Thomas Hellström (Intel) wrote: > > > > > > > > > @@ -210,6

Re: [PATCH] KVM: x86/vPMU: Forbid writing to MSR_F15H_PERF MSRs when guest doesn't have X86_FEATURE_PERFCTR_CORE

2021-03-24 Thread Haiwei Li
On Tue, Mar 23, 2021 at 4:48 PM Vitaly Kuznetsov wrote: > > MSR_F15H_PERF_CTL0-5, MSR_F15H_PERF_CTR0-5 MSRs are only available when > X86_FEATURE_PERFCTR_CORE CPUID bit was exposed to the guest. KVM, however, > allows these MSRs unconditionally because kvm_pmu_is_valid_msr() -> > amd_msr_idx_to_pm

Re: [PATCH v4] phy: zynqmp: Handle the clock enable/disable properly

2021-03-24 Thread Michal Simek
On 3/24/21 1:18 PM, Manish Narani wrote: > The current driver is not handling the clock enable/disable operations > properly. The clocks need to be handled correctly by enabling or > disabling at appropriate places. This patch adds code to handle the > same. > > Signed-off-by: Manish Narani >

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread David Hildenbrand
On 24.03.21 13:10, Michal Hocko wrote: On Wed 24-03-21 13:03:29, Michal Hocko wrote: On Wed 24-03-21 11:12:59, Oscar Salvador wrote: [...] an additional remark - online_pages()->move_pfn_range_to_zone(): Accounts for node/zone's spanned pages - online_pages()->zone->present_pages += nr_page

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Guo Ren
On Wed, Mar 24, 2021 at 7:16 PM Vitaly Wool wrote: > > > > On Wed, Mar 24, 2021, 11:16 AM wrote: >> >> From: Guo Ren >> >> This patch introduces a ticket lock implementation for riscv, along the >> same lines as the implementation for arch/arm & arch/csky. > > > Could you please provide a ration

[PATCH v2 2/2] Revert "xen: fix p2m size in dom0 for disabled memory hotplug case"

2021-03-24 Thread Roger Pau Monne
This partially reverts commit 882213990d32fd224340a4533f6318dd152be4b2. There's no need to special case XEN_UNPOPULATED_ALLOC anymore in order to correctly size the p2m. The generic memory hotplug option has already been tied together with the Xen hotplug limit, so enabling memory hotplug should a

[PATCH v2 1/2] xen/x86: make XEN_BALLOON_MEMORY_HOTPLUG_LIMIT depend on MEMORY_HOTPLUG

2021-03-24 Thread Roger Pau Monne
The Xen memory hotplug limit should depend on the memory hotplug generic option, rather than the Xen balloon configuration. It's possible to have a kernel with generic memory hotplug enabled, but without Xen balloon enabled, at which point memory hotplug won't work correctly due to the size limitat

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 11:50:33AM +, Lee Jones wrote: > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > On Wed, Mar 24, 2021 at 10:47:29AM +, Lee Jones wrote: > > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > On Wed, Mar 24, 2021 at 10:29:31AM +, Lee Jones wrote: > > > > > O

Re: [PATCH v2 01/18] vfs: add miscattr ops

2021-03-24 Thread Al Viro
On Wed, Mar 24, 2021 at 09:45:02AM +0100, Miklos Szeredi wrote: > On Wed, Mar 24, 2021 at 6:03 AM Al Viro wrote: > > > > On Mon, Mar 22, 2021 at 03:48:59PM +0100, Miklos Szeredi wrote: > > > > minor nit: copy_fsxattr_{to,from}_user() might be better. > > > > > +int fsxattr_copy_to_user(const struc

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Anup Patel
On Wed, Mar 24, 2021 at 3:45 PM wrote: > > From: Guo Ren > > This patch introduces a ticket lock implementation for riscv, along the > same lines as the implementation for arch/arm & arch/csky. > > Signed-off-by: Guo Ren > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Peter Zijlstra > Cc: Palme

[PATCH RESEND] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Roger Pau Monne
When parsing the capability list make sure the offset is between the MMIO region mapped in 'regs', or else the kernel hits a page fault. This fault has been seen when running as a Xen PVH dom0, which doesn't have the MMIO regions mapped into the domain physical memory map, despite having the devic

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 08:24:34PM +0800, Guo Ren wrote: > On Wed, Mar 24, 2021 at 7:16 PM Vitaly Wool wrote: > > > > > > > > On Wed, Mar 24, 2021, 11:16 AM wrote: > >> > >> From: Guo Ren > >> > >> This patch introduces a ticket lock implementation for riscv, along the > >> same lines as the imp

Re: [PATCH] net: phy: dp83867: perform soft reset and retain established link

2021-03-24 Thread Andrew Lunn
On Tue, Mar 23, 2021 at 08:00:06PM -0500, prane...@ti.com wrote: > From: Praneeth Bajjuri > > Current logic is performing hard reset and causing the programmed > registers to be wiped out. > > as per datasheet: https://www.ti.com/lit/ds/symlink/dp83867cr.pdf > 8.6.26 Control Register (CTRL) > do

Re: [PATCH v6] mm: cma: support sysfs

2021-03-24 Thread Dmitry Osipenko
24.03.2021 04:05, Minchan Kim пишет: > +static struct kobject *cma_kobj_root; This should be a local variable. > +static struct kobj_type cma_ktype = { > + .release = cma_kobj_release, > + .sysfs_ops = &kobj_sysfs_ops, > + .default_groups = cma_groups I'd add a comma to the end, for

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-24 Thread Intel
On 3/24/21 1:24 PM, Jason Gunthorpe wrote: On Wed, Mar 24, 2021 at 10:56:43AM +0100, Daniel Vetter wrote: On Tue, Mar 23, 2021 at 06:06:53PM +0100, Thomas Hellström (Intel) wrote: On 3/23/21 5:37 PM, Jason Gunthorpe wrote: On Tue, Mar 23, 2021 at 05:34:51PM +0100, Thomas Hellström (Intel) wr

RE: [PATCH v2 04/15] PCI: xilinx: Don't allocate extra memory for the MSI capture address

2021-03-24 Thread Bharat Kumar Gogada
Thanks Marc for the patch. > Subject: [PATCH v2 04/15] PCI: xilinx: Don't allocate extra memory for the > MSI capture address > > A long cargo-culted behaviour of PCI drivers is to allocate memory to obtain > an address that is fed to the controller as the MSI capture address (i.e. the > MSI doorb

Re: [PATCH v6] mm: cma: support sysfs

2021-03-24 Thread Dmitry Osipenko
24.03.2021 08:44, Minchan Kim пишет: > On Tue, Mar 23, 2021 at 09:47:27PM -0700, John Hubbard wrote: >> On 3/23/21 8:27 PM, Minchan Kim wrote: >> ... > +static int __init cma_sysfs_init(void) > +{ > + unsigned int i; > + > + cma_kobj_root = kobject_create_and_add("cma", mm_kobj)

Re: turbostat: Fix Pkg Power on Zen

2021-03-24 Thread Salvatore Bonaccorso
Hi Len, On Mon, Mar 15, 2021 at 10:54:24PM +0100, Christian Kastner wrote: > Hi, > > On 01.02.21 10:01, Kurt Garloff wrote: > > Issue persists on Ryzen in 5.11-rc6: > > > > kvmadmin@KurtSrv2018(//):~ [0]$ sudo > > /casa/src/linux-stable/tools/power/x86/turbostat/turbostat > > [...] > > kvmadmin

Race condition in Kernel

2021-03-24 Thread Gulam Mohamed
Hi All, We are facing a stale link (of the device) issue during the iscsi-logout process if we use parted command just before the iscsi logout. Here are the details: As part of iscsi logout, the partitions and the disk will be removed. The parted command, used to list the part

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread Michal Hocko
On Wed 24-03-21 13:23:47, David Hildenbrand wrote: > On 24.03.21 13:10, Michal Hocko wrote: > > On Wed 24-03-21 13:03:29, Michal Hocko wrote: > > > On Wed 24-03-21 11:12:59, Oscar Salvador wrote: > > [...] > > > > an additional remark > > > > > > - online_pages()->move_pfn_range_to_zone(): Accoun

[PATCH] fs/fuse/virtio_fs: Fix a potential memory allocation failure

2021-03-24 Thread zhouchuangao
Allocate memory for struct fuse_conn may fail, we should not jump to out_err to kfree(fc). Signed-off-by: zhouchuangao --- fs/fuse/virtio_fs.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 4ee6f73..1f333c6 100644 --- a/

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 05:58:58PM +0530, Anup Patel wrote: > On Wed, Mar 24, 2021 at 3:45 PM wrote: > > > > From: Guo Ren > > > > This patch introduces a ticket lock implementation for riscv, along the > > same lines as the implementation for arch/arm & arch/csky. > > > > Signed-off-by: Guo Ren

Re: [PATCH v7 00/14] Tegra XHCI controller ELPG support

2021-03-24 Thread Thierry Reding
On Fri, Feb 05, 2021 at 05:22:29PM +0100, Greg KH wrote: > On Fri, Feb 05, 2021 at 05:15:21PM +0100, Thierry Reding wrote: > > On Wed, Jan 20, 2021 at 03:34:00PM +0800, JC Kuo wrote: > > > Tegra XHCI controler can be placed in ELPG (Engine Level PowerGated) > > > state for power saving when all of

Re: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-03-24 Thread Jon Hunter
On 24/03/2021 12:20, Joakim Zhang wrote: ... > Sorry for this breakage at your side. > > You mean one of your boards? Does other boards with STMMAC can work fine? We have two devices with the STMMAC and one works OK and the other fails. They are different generation of device and so there co

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-24 Thread Jason Gunthorpe
On Wed, Mar 24, 2021 at 01:35:17PM +0100, Thomas Hellström (Intel) wrote: > > On 3/24/21 1:24 PM, Jason Gunthorpe wrote: > > On Wed, Mar 24, 2021 at 10:56:43AM +0100, Daniel Vetter wrote: > > > On Tue, Mar 23, 2021 at 06:06:53PM +0100, Thomas Hellström (Intel) wrote: > > > > On 3/23/21 5:37 PM, Ja

RE: [PATCH v2 05/15] PCI: xilinx: Convert to MSI domains

2021-03-24 Thread Bharat Kumar Gogada
Hi Marc, Thanks for the patch. > Subject: [PATCH v2 05/15] PCI: xilinx: Convert to MSI domains > > In anticipation of the removal of the msi_controller structure, convert the > ancient xilinx host controller driver to MSI domains. > > We end-up with the usual two domain structure, the top one

[PATCH v3 1/2] dt-bindings: thermal: qcom-tsens: Add compatible for sm8350

2021-03-24 Thread Robert Foss
Add tsens bindings for sm8350. Signed-off-by: Robert Foss Reviewed-by: Vinod Koul --- Changes since v1: - Vinod: Remove comment Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.y

[PATCH v3 2/2] arm64: dts: qcom: sm8350: Add thermal zones and throttling support

2021-03-24 Thread Robert Foss
sm8350 has 29 thermal sensors split across two tsens controllers. Add the thermal zones to expose them and wireup the cpus to throttle their frequencies on crossing passive temperature thresholds. Signed-off-by: Robert Foss Reviewed-by: Vinod Koul --- Changes since v1: - Vinod: Remove comment

[PATCH] KVM: make: Fix out-of-source module builds

2021-03-24 Thread Siddharth Chandrasekaran
Building kvm module out-of-source with, make -C $SRC O=$BIN M=arch/x86/kvm fails to find "irq.h" as the include dir passed to cflags-y does not prefix the source dir. Fix this by prefixing $(srctree) to the include dir path. Signed-off-by: Siddharth Chandrasekaran --- arch/x86/kvm/Makefile

RE: [PATCH v6 02/10] scsi: ufshpb: Add host control mode support to rsp_upiu

2021-03-24 Thread Avri Altman
> >> @@ -1245,6 +1257,18 @@ static void > ufshpb_rsp_req_region_update(struct > >> ufshpb_lu *hpb, > >> srgn_i = > >> > >> be16_to_cpu(rsp_field->hpb_active_field[i].active_srgn); > >> > >> +rgn = hpb->rgn_tbl + rgn_i; > >> +if (hpb->is_hcm

Re: [PATCH] static_call: fix function type mismatch

2021-03-24 Thread Rasmus Villemoes
On 23/03/2021 08.47, Peter Zijlstra wrote: > On Mon, Mar 22, 2021 at 05:29:21PM -0400, Steven Rostedt wrote: >> On Mon, 22 Mar 2021 22:18:17 +0100 >> Arnd Bergmann wrote: >> >>> I think the code works correctly on all architectures we support because >>> both 'int' and 'long' are returned in a reg

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-24 Thread Takashi Iwai
On Wed, 24 Mar 2021 13:03:14 +0100, Ikjoon Jang wrote: > > On Wed, Mar 24, 2021, 7:16 PM Joakim Tjernlund > wrote: > > On Wed, 2021-03-24 at 18:51 +0800, Ikjoon Jang wrote: > > Logitech ConferenceCam Connect is a compound USB device with UVC and > > UAC. Not 100% reproducible but som

Re: [PATCH 3/3] mm: unexport follow_pfn

2021-03-24 Thread Jason Gunthorpe
On Tue, Mar 16, 2021 at 04:33:03PM +0100, Daniel Vetter wrote: > Both kvm (in bd2fae8da794 ("KVM: do not assume PTE is writable after > follow_pfn")) and vfio (in 07956b6269d3 ("vfio/type1: Use > follow_pte()")) have lost their callsites of follow_pfn(). All the > other ones have been switched over

Re: [PATCH v5 5/7] irqchip/loongson-liointc: irqchip add 2.0 version

2021-03-24 Thread Marc Zyngier
On Wed, 24 Mar 2021 09:58:13 +, Thomas Bogendoerfer wrote: > > On Mon, Mar 15, 2021 at 03:50:02PM +0800, Qing Zhang wrote: > > Add IO interrupt controller support for Loongson-2K1000, different > > from the Loongson-3A series is that Loongson-2K1000 has 64 interrupt > > sources, 0-31 correspo

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Anup Patel
On Wed, Mar 24, 2021 at 6:08 PM Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 05:58:58PM +0530, Anup Patel wrote: > > On Wed, Mar 24, 2021 at 3:45 PM wrote: > > > > > > From: Guo Ren > > > > > > This patch introduces a ticket lock implementation for riscv, along the > > > same lines as the i

Re: [PATCH v2 04/15] PCI: xilinx: Don't allocate extra memory for the MSI capture address

2021-03-24 Thread Marc Zyngier
On Wed, 24 Mar 2021 12:35:58 +, Bharat Kumar Gogada wrote: > > Thanks Marc for the patch. > > Subject: [PATCH v2 04/15] PCI: xilinx: Don't allocate extra memory for the > > MSI capture address > > > > A long cargo-culted behaviour of PCI drivers is to allocate memory to obtain > > an address

[PATCH 00/10] platform/x86: toshiba_acpi: move acpi add/remove to device-managed routines

2021-03-24 Thread Alexandru Ardelean
This changeset tries to do a conversion of the toshiba_acpi driver to use only device-managed routines. The driver registers as a singleton, so no more than one device can be registered at a time. My main intent here is to try to convert the iio_device_alloc() and iio_device_register() to their de

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > Encode information from breakpoint attributes into siginfo_t, which > helps disambiguate which breakpoint fired. > > Note, providing the event fd may be unreliable, since the event may have > been modified (via PERF_EVENT_IOC_MODIFY_AT

[PATCH 05/10] platform/x86: toshiba_acpi: register backlight with device-managed variant

2021-03-24 Thread Alexandru Ardelean
This change converts the registration of the backlight data with the devm_backlight_device_register() function. This way, the backlight_device_unregister() call is no longer required, and the order of deregistration is made to be more symmetrical with the registration order. Signed-off-by: Alexand

[PATCH 02/10] platform/x86: toshiba_acpi: use devm_add_action_or_reset() for singleton clear

2021-03-24 Thread Alexandru Ardelean
The only reason to do this is to enforce the ordering of deinitialization, when the conversion of the device-managed functions is done. The singleton object should be cleared right before it is free'd. Signed-off-by: Alexandru Ardelean --- drivers/platform/x86/toshiba_acpi.c | 15 --

[PATCH 07/10] platform/x86: toshiba_acpi: use device-managed functions for accelerometer

2021-03-24 Thread Alexandru Ardelean
This change converts the IIO registration to use devm_iio_device_alloc() and devm_iio_device_register(). With this change we can remove the manual deregistrations an freeing of the IIO data. This also makes the deregistration symmetrical with the registration. One side-effect (that is undesired),

[PATCH 10/10] platform/x86: toshiba_acpi: bind proc entries creation to parent

2021-03-24 Thread Alexandru Ardelean
This change binds the creation of the proc entries to the parent object, via the devm_add_action_or_reset() call. This way when the parent object's refcount goes to zero, the proc entries are removed in the reverse other in which they were created. This is the last bit of the toshiba_acpi_remove()

[PATCH 09/10] platform/x86: toshiba_acpi: use device-managed for sysfs removal

2021-03-24 Thread Alexandru Ardelean
This change moves the creation of the Toshiba ACPI group to be automatically removed when the parent refcount goes to zero. The main reason to do this, is to also enforce that the order of removal is mirroring the order of initialization. Signed-off-by: Alexandru Ardelean --- drivers/platform/x

[PATCH 04/10] platform/x86: toshiba_acpi: use device-managed functions for input device

2021-03-24 Thread Alexandru Ardelean
This change uses device managed functions to handle the deregistration of the keyboard resources when the refcount of the parent device goes to zero. For the input device devm_input_allocate_device() must be used, and after that it will be bound also for auto-deregistration when input_device_regis

[PATCH 06/10] platform/x86: toshiba_acpi: use devm_led_classdev_register() for LEDs

2021-03-24 Thread Alexandru Ardelean
With this change the deregistration of the LED objects is made symmetrical (and in reverse) with the registration. We also can get rid of the calls to led_classdev_unregister(), because the LED objects will be cleaned up when the reference to the parent device object goes to zero. This change also

[PATCH 01/10] platform/x86: toshiba_acpi: bind life-time of toshiba_acpi_dev to parent

2021-03-24 Thread Alexandru Ardelean
The 'toshiba_acpi_dev' object is allocated first and free'd last. We can bind it's life-time to the parent ACPI device object. This is a first step in using more device-managed allocated functions for this. The main intent is to try to convert the IIO framework to export only device-managed functi

[PATCH 08/10] platform/x86: toshiba_acpi: use device-managed for wwan_rfkill management

2021-03-24 Thread Alexandru Ardelean
This change converts the wwan_rfkill object to be free'd automatically when the parent refcount goes to zero. There are 2 cleanup operations required: rfkill_unregister() and rfkill_destroy(). Since they don't have any devm_ variants, they are hooked via devm_add_action_or_reset(). The main reason

[PATCH 03/10] platform/x86: toshiba_acpi: bind registration of miscdev object to parent

2021-03-24 Thread Alexandru Ardelean
This change moves the registration of the Toshiba ACPI miscdev to be handled by the devm_add_action_or_reset() hook. This way, the miscdev will be unregistered when the reference count of the parent device object goes to zero. This also changes the order of cleanup in toshiba_acpi_remove(), where

Re: [PATCH] rsxx: remove extraneous 'const' qualifier

2021-03-24 Thread Jens Axboe
On 3/23/21 3:57 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The returned string from rsxx_card_state_to_str is 'const', > but the other qualifier doesn't change anything here except > causing a warning with 'clang -Wextra': > > drivers/block/rsxx/core.c:393:21: warning: 'const' type quali

Re: [PATCH] drivers/block: Goodbye BLK_DEV_UMEM

2021-03-24 Thread Jens Axboe
On 3/23/21 1:07 PM, Davidlohr Bueso wrote: > This removes the driver on the premise that it has been unused for a long > time. This is a better approach compared to changing untestable code nobody > cares about in the first place. Similarly, the umem.com website now shows a > mere Godaddy parking a

Re: [PATCH RESEND] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 01:31:18PM +0100, Roger Pau Monne wrote: > When parsing the capability list make sure the offset is between the > MMIO region mapped in 'regs', or else the kernel hits a page fault. > > This fault has been seen when running as a Xen PVH dom0, which doesn't > have the MMIO r

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 01:53:48PM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > > Encode information from breakpoint attributes into siginfo_t, which > > helps disambiguate which breakpoint fired. > > > > Note, providing the event fd may be unreliab

[PATCH] mm/slub.c: Trivial typo fixes

2021-03-24 Thread Bhaskar Chowdhury
s/operatios/operation/ s/Mininum/Minimum/ s/mininum/minimum/ ..two different places. Signed-off-by: Bhaskar Chowdhury --- mm/slub.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 3021ce9bf1b3..cd3c7be33f69 100644 --- a/mm/slub.c +++

Re: [PATCH v3 2/2] perf test: Add CVS summary test

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 19, 2021 at 03:01:56PM +0800, Jin Yao escreveu: > The patch "perf stat: Align CSV output for summary mode" aligned > CVS output and added "summary" to the first column of summary > lines. > > Now we check if the "summary" string is added to the CVS output. > > If we set '--no-cvs-summ

[PATCH] perf data: export to JSON

2021-03-24 Thread Nicholas Fraser
This adds preliminary support to dump the contents of a perf.data file to human-readable JSON. The "perf data" command currently only supports exporting to Common Trace Format and it doesn't do symbol resolution among other things. Dumping to JSON means the data can be trivially parsed by anything

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Lee Jones
On Wed, 24 Mar 2021, Andy Shevchenko wrote: > On Wed, Mar 24, 2021 at 11:50:33AM +, Lee Jones wrote: > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > > On Wed, Mar 24, 2021 at 10:47:29AM +, Lee Jones wrote: > > > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > > On Wed, Mar 2

[PATCH] [v2] hinic: avoid gcc -Wrestrict warning

2021-03-24 Thread Arnd Bergmann
From: Arnd Bergmann With extra warnings enabled, gcc complains that snprintf should not take the same buffer as source and destination: drivers/net/ethernet/huawei/hinic/hinic_ethtool.c: In function 'hinic_set_settings_to_hw': drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:480:9: error: 'snp

Re: [PATCH v13 1/7] dt-bindings: soc: mediatek: add mtk svs dt-bindings

2021-03-24 Thread Nishanth Menon
On 21:56-20210323, Roger Lu wrote: > Document the binding for enabling mtk svs on MediaTek SoC. > > Signed-off-by: Roger Lu > --- > .../bindings/soc/mediatek/mtk-svs.yaml| 81 +++ > 1 file changed, 81 insertions(+) > create mode 100644 > Documentation/devicetree/binding

Re: [PATCH v3 2/2] perf test: Add CVS summary test

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 10:05:18AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Mar 19, 2021 at 03:01:56PM +0800, Jin Yao escreveu: > > The patch "perf stat: Align CSV output for summary mode" aligned > > CVS output and added "summary" to the first column of summary > > lines. > > > > Now w

Re: [PATCH v3 2/2] perf test: Add CVS summary test

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 10:12:43AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Mar 24, 2021 at 10:05:18AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Mar 19, 2021 at 03:01:56PM +0800, Jin Yao escreveu: > > > The patch "perf stat: Align CSV output for summary mode" aligned > > > CV

[PATCH net-next v2 5/6] net: ipa: move ipa_aggr_granularity_val()

2021-03-24 Thread Alex Elder
We only use ipa_aggr_granularity_val() inside "ipa_main.c", so it doesn't really need to be defined in a header file. It makes some sense to be grouped with the register definitions, but it is unlike the other inline functions now defined in "ipa_reg.h". So move it into "ipa_main.c" where it's us

[PATCH net-next v2 1/6] net: ipa: reduce IPA version assumptions

2021-03-24 Thread Alex Elder
Modify conditional tests throughout the IPA code so they do not assume that IPA v3.5.1 is the oldest version supported. Also remove assumptions that IPA v4.5 is the newest version of IPA supported. Augment versions in comments with "+", to be clearer that the comment applies to a version and subs

[PATCH net-next v2 0/6] net: ipa: versions and registers

2021-03-24 Thread Alex Elder
Version 2 of this series adds kernel-doc descriptions for all members of the ipa_version enumerated type in patch 2. The original description of the series is below. -Alex This series is sort of a mix of things, generally related to updating IPA versions a

[PATCH net-next v2 2/6] net: ipa: update version definitions

2021-03-24 Thread Alex Elder
Add IPA version definitions for all IPA v3.x and v4.x. Fix the GSI version associated with IPA version 4.1. Signed-off-by: Alex Elder --- v2: - Add kernel-doc descriptions for ipa_version members. drivers/net/ipa/ipa_version.h | 29 ++--- 1 file changed, 22 insertions(+

[PATCH net-next v2 4/6] net: ipa: limit local processing context address

2021-03-24 Thread Alex Elder
Not all of the bits of the LOCAL_PKT_PROC_CNTXT register are valid. Until IPA v4.5, there are 17 valid bits (though the bottom three must be zero). Starting with IPA v4.5, 18 bits are valid. Introduce proc_cntxt_base_addr_encoded() to encode the base address for use in the register using only the

[PATCH net-next v2 3/6] net: ipa: define the ENDP_INIT_NAT register

2021-03-24 Thread Alex Elder
Define the ENDP_INIT_NAT register for setting up the NAT configuration for an endpoint. We aren't using NAT at this time, so explicitly set the type to BYPASS for all endpoints. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_endpoint.c | 17 - drivers/net/ipa/ipa_reg.h |

[PATCH net-next v2 6/6] net: ipa: increase channels and events

2021-03-24 Thread Alex Elder
Increase the maximum number of channels and event rings supported by the driver, to allow the maximum available on the SDX55. Signed-off-by: Alex Elder --- drivers/net/ipa/gsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ipa/gsi.h b/drivers/net/ipa/gsi.h

Re: [PATCH v2 05/15] PCI: xilinx: Convert to MSI domains

2021-03-24 Thread Marc Zyngier
On Wed, 24 Mar 2021 12:42:24 +, Bharat Kumar Gogada wrote: > > Hi Marc, > > Thanks for the patch. > > > Subject: [PATCH v2 05/15] PCI: xilinx: Convert to MSI domains > > > > In anticipation of the removal of the msi_controller structure, convert the > > ancient xilinx host controller driv

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread David Hildenbrand
On 24.03.21 13:37, Michal Hocko wrote: On Wed 24-03-21 13:23:47, David Hildenbrand wrote: On 24.03.21 13:10, Michal Hocko wrote: On Wed 24-03-21 13:03:29, Michal Hocko wrote: On Wed 24-03-21 11:12:59, Oscar Salvador wrote: [...] an additional remark - online_pages()->move_pfn_range_to_zone

[PATCH] media: entity: A typo fix

2021-03-24 Thread Bhaskar Chowdhury
s/cariers/carriers/ Signed-off-by: Bhaskar Chowdhury --- include/media/media-entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index cbdfcb79d0d0..a90e2bf6baf7 100644 --- a/include/media/media-entity.h +++ b

[PATCH] [v2] Input: analog - fix invalid snprintf() call

2021-03-24 Thread Arnd Bergmann
From: Arnd Bergmann Overlapping input and output arguments to snprintf() are undefined behavior in C99: drivers/input/joystick/analog.c: In function 'analog_name': drivers/input/joystick/analog.c:428:3: error: 'snprintf' argument 4 overlaps destination object 'analog' [-Werror=restrict] 428 |

Re: [PATCH v2 12/15] PCI/MSI: Let PCI host bridges declare their reliance on MSI domains

2021-03-24 Thread Lorenzo Pieralisi
On Tue, Mar 23, 2021 at 06:09:36PM +, Marc Zyngier wrote: > Hi Robin, > > On Tue, 23 Mar 2021 11:45:02 +, > Robin Murphy wrote: > > > > On 2021-03-22 18:46, Marc Zyngier wrote: > > > The new 'no_msi' attribute solves the problem of advertising the lack > > > of MSI capability for host br

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 02:01:56PM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 01:53:48PM +0100, Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > > > Encode information from breakpoint attributes into siginfo_t, which > > > helps disambiguate which

Re: [PATCH v3 2/2] drm: bridge: Add TI SN65DSI83/84/85 DSI to LVDS bridge

2021-03-24 Thread Claudius Heine
Hi Jagan, On 2021-02-14 18:44, Jagan Teki wrote: [...] +static void sn65dsi_enable(struct drm_bridge *bridge) +{ + struct sn65dsi *sn = bridge_to_sn65dsi(bridge); + struct drm_display_mode *mode = bridge_to_mode(bridge); + int bpp = mipi_dsi_pixel_format_to_bpp(sn->dsi->format)

Re: [PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 22, 2021 at 10:15:48PM +0100, Jiri Olsa escreveu: > On Fri, Mar 19, 2021 at 03:01:55PM +0800, Jin Yao wrote: > > SNIP > > > 102107,,branch-misses,8012781751,100.00,4.15,of all branches > > > > This option can be enabled in perf config by setting the variable > > 'stat.no-cvs-summar

Re: [PATCH 1/2] perf daemon: Force waipid for all session on SIGCHLD delivery

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Sat, Mar 20, 2021 at 11:10:12PM +0100, Jiri Olsa escreveu: > If we don't process SIGCHLD before another comes, we will > see just one SIGCHLD as a result. In this case current code > will miss exit notification for a session and wait forever. > > Adding extra waitpid check for all sessions when

Re: [PATCH] ACPI: tables: x86: Reserve memory occupied by ACPI tables

2021-03-24 Thread Rafael J. Wysocki
On Wed, Mar 24, 2021 at 9:24 AM Mike Rapoport wrote: > > On Tue, Mar 23, 2021 at 08:26:52PM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The following problem has been reported by George Kennedy: > > > > Since commit 7fef431be9c9 ("mm/page_alloc: place pages to tail > > i

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread Oscar Salvador
On Wed, Mar 24, 2021 at 01:03:29PM +0100, Michal Hocko wrote: > > Assume this: > > > > - memory_block_size = 128MB > > - add_memory(256MB) : no uses altmap because size != memory_block_size > > - add_memory(128MB) : uses altmap > > 256 are two memory blocks so why couldn't we split the operation

[PATCH v2] arm64: dts: imx8mm/q: Fix pad control of SD1_DATA0

2021-03-24 Thread Oliver Stäbler
Fix address of the pad control register (IOMUXC_SW_PAD_CTL_PAD_SD1_DATA0) for SD1_DATA0_GPIO2_IO2. This seems to be a typo but it leads to an exception when pinctrl is applied due to wrong memory address access. Signed-off-by: Oliver Stäbler --- arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h |

[PATCH] ARM: xen/mm.c: A mundane typo fix

2021-03-24 Thread Bhaskar Chowdhury
s/acrros/across/ Signed-off-by: Bhaskar Chowdhury --- arch/arm/xen/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c index 467fa225c3d0..be7c942c74bf 100644 --- a/arch/arm/xen/mm.c +++ b/arch/arm/xen/mm.c @@ -105,7 +105,7 @@ bool xen_a

Re: [PATCH] [v2] hinic: avoid gcc -Wrestrict warning

2021-03-24 Thread Rasmus Villemoes
On 24/03/2021 14.07, Arnd Bergmann wrote: > From: Arnd Bergmann > > With extra warnings enabled, gcc complains that snprintf should not > take the same buffer as source and destination: > > drivers/net/ethernet/huawei/hinic/hinic_ethtool.c: In function > 'hinic_set_settings_to_hw': > drivers/ne

Re: [PATCH] perf data: export to JSON

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 09:06:50AM -0400, Nicholas Fraser escreveu: > This adds preliminary support to dump the contents of a perf.data file to > human-readable JSON. > > The "perf data" command currently only supports exporting to Common Trace > Format and it doesn't do symbol resolution among ot

Re: [PATCH v7 00/14] Tegra XHCI controller ELPG support

2021-03-24 Thread Thierry Reding
On Wed, Mar 24, 2021 at 01:39:32PM +0100, Thierry Reding wrote: > On Fri, Feb 05, 2021 at 05:22:29PM +0100, Greg KH wrote: > > On Fri, Feb 05, 2021 at 05:15:21PM +0100, Thierry Reding wrote: > > > On Wed, Jan 20, 2021 at 03:34:00PM +0800, JC Kuo wrote: > > > > Tegra XHCI controler can be placed in

Re: [PATCH v4 2/4] dt-bindings: power: rockchip: Convert to json-schema

2021-03-24 Thread Heiko Stübner
Am Mittwoch, 24. März 2021, 11:32:42 CET schrieb Enric Balletbo i Serra: > > On 24/3/21 11:25, Enric Balletbo i Serra wrote: > > Hi Elaine, > > > > On 24/3/21 11:18, elaine.zhang wrote: > >> Hi, Enric > >> > >> 在 2021/3/24 下午5:56, Enric Balletbo i Serra 写道: > >>> Hi Elaine, > >>> > >>> This is n

Re: [PATCH] mm: vmalloc: Prevent use after free in _vm_unmap_aliases

2021-03-24 Thread Uladzislau Rezki
> > On 3/18/2021 10:29 PM, Uladzislau Rezki wrote: > > On Thu, Mar 18, 2021 at 03:38:25PM +0530, vji...@codeaurora.org wrote: > >> From: Vijayanand Jitta > >> > >> A potential use after free can occur in _vm_unmap_aliases > >> where an already freed vmap_area could be accessed, Consider > >> the

Re: [PATCH] perf test: Remove perf sub test 42.4 BPF relocation checker

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 09:37:34AM +0100, Thomas Richter escreveu: > For some time now the perf test 42: BPF filter returns an error > on bpf relocation subtest, at least on x86 and s390. This is caused by > > commit d859900c4c56 ("bpf, libbpf: support global data/bss/rodata sections") > > which

Re: [PATCH] amdgpu: fix gcc -Wrestrict warning

2021-03-24 Thread Arnd Bergmann
On Tue, Mar 23, 2021 at 4:57 PM Rasmus Villemoes wrote: > On 23/03/2021 14.04, Arnd Bergmann wrote: > > if (securedisplay_cmd->status == > > TA_SECUREDISPLAY_STATUS__SUCCESS) { > > + int pos = 0; > > memset(i2c_output

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-24 Thread Intel
On 3/24/21 1:41 PM, Jason Gunthorpe wrote: On Wed, Mar 24, 2021 at 01:35:17PM +0100, Thomas Hellström (Intel) wrote: On 3/24/21 1:24 PM, Jason Gunthorpe wrote: On Wed, Mar 24, 2021 at 10:56:43AM +0100, Daniel Vetter wrote: On Tue, Mar 23, 2021 at 06:06:53PM +0100, Thomas Hellström (Intel) wr

[PATCH] amdgpu: securedisplay: simplify i2c hexdump output

2021-03-24 Thread Arnd Bergmann
From: Arnd Bergmann A previous fix I did left a rather complicated loop in amdgpu_securedisplay_debugfs_write() for what could be expressed in a simple sprintf, as Rasmus pointed out. This drops the leading 0x for each byte, but is otherwise much nicer. Suggested-by: Rasmus Villemoes Signed-of

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