[PATCH] selftests/sgx: improve error detection and messages

2021-03-18 Thread Dave Hansen
From: Dave Hansen The SGX device file (/dev/sgx_enclave) is unusual in that it requires execute permissions. It has to be both "chmod +x" *and* be on a filesystem without 'noexec'. In the future, udev and systemd should get updates to set up systems automatically. But, for now, nobody's syst

Re: [PATCH v2 net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Michael Walle
Am 2021-03-18 20:44, schrieb Michael Walle: Here is what Vladimir says about it: at803x_aneg_done() keeps the aneg reporting as "not done" even when the copper-side link was reported as up, but the in-band autoneg has not finished. That was the _intended_ behavior when that code was int

Re: [PATCH v2] leds: apu: extend support for PC Engines APU1 with newer firmware

2021-03-18 Thread Enrico Weigelt, metux IT consult
On 06.03.21 17:51, Alexander Dahl wrote: Hi, If you give me a hint, which tree or patchset should be tested, and some hints what should be tested, I can try. haven't written anything for apu1 yet (as I dont have one), but I wrote the drivers for apu2/3/4. My idea (which I never actually star

Re: [PATCH] swiotlb: Add swiotlb=off to disable SWIOTLB

2021-03-18 Thread Robin Murphy
On 2021-03-18 19:43, Florian Fainelli wrote: On 3/18/2021 12:34 PM, Robin Murphy wrote: On 2021-03-18 19:22, Florian Fainelli wrote: On 3/18/2021 12:18 PM, Florian Fainelli wrote: It may be useful to disable the SWIOTLB completely for testing or when a platform is known not to have any DRA

Re: [PATCH v2 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-18 Thread Gabriel Krisman Bertazi
Shreeya, > utf8data.h_shipped has a large database table which is an auto-generated > decodification trie for the unicode normalization functions. > It is not necessary to carry this large table in the kernel hence make > Thanks for the v2. This is looking much better! I have a few comments

sched: allow resubmits to queue_balance_callback()

2021-03-18 Thread Barret Rhoden
Prior to this commit, if you submitted the same callback_head twice, it would be enqueued twice, but only if it was the last callback on the list. The first time it was submitted, rq->balance_callback was NULL, so head->next is NULL. That defeated the check in queue_balance_callback(). This comm

Re: [PATCH v5 10/14] clk: imx: Add generic blk-ctl driver

2021-03-18 Thread Tim Harvey
On Thu, Feb 25, 2021 at 12:28 AM Jacky Bai wrote: > > > > > -Original Message- > > From: Frieder Schrempf [mailto:frieder.schre...@kontron.de] > > Sent: Thursday, February 25, 2021 4:23 PM > > To: Abel Vesa ; Dong Aisheng > > Cc: Aisheng Dong ; Rob Herring ; > > Peng Fan ; Jacky Bai ; Ans

[PATCH v3 0/6] phy: qcom-qmp: provide DP phy support for sm8250

2021-03-18 Thread Dmitry Baryshkov
Changes since v2: - Drop unused qmp_v4_usb3_rx_tbl Changes since v1: - Provide dt bindings - Split register renaming from sm8250-dp-phy patch - Add respective changes to sm8250 device tree The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-

[PATCH v3 1/6] dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SM8250

2021-03-18 Thread Dmitry Baryshkov
Add compatible for SM8250 in QMP USB3 DP PHY bindings. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 - Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/

[PATCH v3 3/6] phy: qcom-qmp: rename common registers

2021-03-18 Thread Dmitry Baryshkov
A plenty of DP PHY registers are common between V3 and V4. To simplify V4 code, rename all common registers. Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 50 ++--- drivers/phy/qualcomm/phy-qcom-qmp.h | 37 ++--- 2 files changed

[PATCH v3 2/6] phy: qcom-qmp: move DP functions to callbacks

2021-03-18 Thread Dmitry Baryshkov
In preparation to adding support for V4 DP PHY move DP functions to callbacks at struct qmp_phy_cfg. Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 438 +++- 1 file changed, 231 insertions(+), 207 deletions(-) diff --git a/drivers/phy/qualcomm/

[PATCH v3 4/6] phy: qcom-qmp: add support for sm8250-usb3-dp phy

2021-03-18 Thread Dmitry Baryshkov
Add support for QMP V4 Combo USB3+DP PHY (for SM8250 platform). Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 388 ++-- drivers/phy/qualcomm/phy-qcom-qmp.h | 40 ++- 2 files changed, 406 insertions(+), 22 deletions(-) diff --git a/drivers/phy

[PATCH v3 5/6] arm64: dts: qcom: sm8250: switch usb1 qmp phy to USB3+DP mode

2021-03-18 Thread Dmitry Baryshkov
USB1 QMP PHY is not just a USB3 PHY, but USB3+DP PHY. Change device tree nodes accordingly. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH v3 6/6] arm64: dts: qcom: use dp_phy to provide clocks to dispcc

2021-03-18 Thread Dmitry Baryshkov
Plug dp_phy-provided clocks to display clock controller. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 0f79e68

Re: [PATCH 3/3] powerpc/qspinlock: Use generic smp_cond_load_relaxed

2021-03-18 Thread Davidlohr Bueso
On Tue, 16 Mar 2021, Nicholas Piggin wrote: One request, could you add a comment in place that references smp_cond_load_relaxed() so this commit can be found again if someone looks at it? Something like this /* * smp_cond_load_relaxed was found to have performance problems if * implemented with

[PATCH v2] virt_wifi: Return micros for BSS TSF values

2021-03-18 Thread A. Cody Schuffelen
cfg80211_inform_bss expects to receive a TSF value, but is given the time since boot in nanoseconds. TSF values are expected to be at microsecond scale rather than nanosecond scale. Signed-off-by: A. Cody Schuffelen --- drivers/net/wireless/virt_wifi.c | 5 +++-- 1 file changed, 3 insertions(+),

[PATCH V2] Fix a typo

2021-03-18 Thread Bhaskar Chowdhury
s/serisouly/seriously/ ...and the sentence construction. Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Mentioned changes incorporated...sentence construction. drivers/net/ethernet/sun/sungem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethern

[PATCH] rtl8188eu: Removed Unnecessary ftrace-like logging

2021-03-18 Thread Paul McQuade
prefer using ftrace Signed-off-by: Paul McQuade --- drivers/staging/rtl8188eu/core/rtw_ap.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c index 182bb944c9b3..008b60e72758 100644 --- a/drivers/staging/rt

Re: [PATCH v2 net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Heiner Kallweit
On 18.03.2021 20:44, Michael Walle wrote: > Here is what Vladimir says about it: > > at803x_aneg_done() keeps the aneg reporting as "not done" even when > the copper-side link was reported as up, but the in-band autoneg has > not finished. > > That was the _intended_ behavior when that co

[PATCH] KVM: x86/mmu: Rename the special lm_root to pml4_root

2021-03-18 Thread Sean Christopherson
Rename the lm_root pointer, which is used when shadowing 32-bit L1 NPT with 64-bit L0 NPT, to pml4_root. KVM uses dedicated logic to configure the levels that do not exist in L1's page tables, and to bypass them when walking the shadow page tables. That dedicated logic assumes 4-level paging and

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-18 Thread Jens Axboe
On 3/18/21 9:16 AM, Colin King wrote: > From: Colin Ian King > > The 3rd argument to alloc_workqueue should be the max_active count, > however currently it is the lo->lo_number that is intended for the > loop%d number. Fix this by adding in the missing max_active count. Dan, please fold this (or

[PATCH v4] x86/Hyper-V: Support for free page reporting

2021-03-18 Thread Sunil Muthuswamy
Linux has support for free page reporting now (36e66c554b5c) for virtualized environment. On Hyper-V when virtually backed VMs are configured, Hyper-V will advertise cold memory discard capability, when supported. This patch adds the support to hook into the free page reporting infrastructure and l

[GIT PULL] Btrfs fixes for 5.12-rc4

2021-03-18 Thread David Sterba
From: David Sterba Hi, there are still regressions being found and fixed in the zoned mode and subpage code, the rest are fixes for bugs reported by users. Please pull, thanks. Regressions: - subpage block support: - readahead works on the proper block size - fix last page zeroing - zoned

[PATCH V2] mm: Few spelling fixes

2021-03-18 Thread Bhaskar Chowdhury
Few spelling fixes throughout the file. Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Mentioned suggestion incorporated. include/linux/pgtable.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 5e772

Re: [PATCH v13 0/5] Simplify PCIe native ownership

2021-03-18 Thread Kuppuswamy, Sathyanarayanan
Hi Bjorn, On 1/22/21 5:11 PM, Kuppuswamy Sathyanarayanan wrote: Currently, PCIe capabilities ownership status is detected by verifying the status of pcie_ports_native, and _OSC negotiated results (cached in struct pci_host_bridge->native_* members). But this logic can be simplified, and we can

Re: [PATCH V3 1/5] dt-bindings: net: renesas,etheravb: Add additional clocks

2021-03-18 Thread Sergei Shtylyov
Hi! On 2/24/21 2:51 PM, Adam Ford wrote: > The AVB driver assumes there is an external crystal, but it could > be clocked by other means. In order to enable a programmable > clock, it needs to be added to the clocks list and enabled in the > driver. Since there currently only one clock, there i

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-18 Thread Colin Ian King
On 18/03/2021 20:12, Jens Axboe wrote: > On 3/18/21 9:16 AM, Colin King wrote: >> From: Colin Ian King >> >> The 3rd argument to alloc_workqueue should be the max_active count, >> however currently it is the lo->lo_number that is intended for the >> loop%d number. Fix this by adding in the missing

Re: [PATCH] drm/amdgpu: Fix a typo

2021-03-18 Thread Bhaskar Chowdhury
On 14:12 Thu 18 Mar 2021, Alex Deucher wrote: On Thu, Mar 18, 2021 at 2:08 PM Randy Dunlap wrote: On 3/18/21 4:33 AM, Bhaskar Chowdhury wrote: > > s/traing/training/ > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [RFC PATCH v2 1/8] arm64: Implement stack trace termination record

2021-03-18 Thread Madhavan T. Venkataraman
On 3/18/21 10:09 AM, Mark Brown wrote: > On Mon, Mar 15, 2021 at 11:57:53AM -0500, madve...@linux.microsoft.com wrote: > >> In summary, task pt_regs->stackframe is where a successful stack trace ends. > >> .if \el == 0 >> - mov x29, xzr >> + stp xzr, xzr, [sp, #S_ST

[PATCH V2] drm/amdgpu: Fix a typo

2021-03-18 Thread Bhaskar Chowdhury
s/traing/training/ ...Plus the entire sentence construction for better readability. Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Alex and Randy's suggestions incorporated. drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

[PATCH] X86: __set_clr_pte_enc() miscalculates physical address

2021-03-18 Thread Isaku Yamahata
__set_clr_pte_enc() miscalculates physical address to operate. pfn is in unit of PG_LEVEL_4K, not PGL_LEVEL_{2M, 1G}. Shift size to get physical address should be PAGE_SHIFT, not page_level_shift(). Fixes: dfaaec9033b8 ("x86: Add support for changing memory encryption attribute in early boot") Re

Re: [RFC PATCH v2 3/8] arm64: Terminate the stack trace at TASK_FRAME and EL0_FRAME

2021-03-18 Thread Madhavan T. Venkataraman
On 3/18/21 1:26 PM, Mark Brown wrote: > On Mon, Mar 15, 2021 at 11:57:55AM -0500, madve...@linux.microsoft.com wrote: > >> +/* Terminal record, nothing to unwind */ >> +if (fp == (unsigned long) regs->stackframe) { >> +if (regs->frame_type == TASK_FRAME || >> +

[PATCH v7 00/17] uvcvideo: Fix v4l2-compliance errors

2021-03-18 Thread Ricardo Ribalda
v4l2-compliance -m /dev/media0 -a -f Total for uvcvideo device /dev/media0: 8, Succeeded: 6, Failed: 2, Warnings: 0 Total for uvcvideo device /dev/video0: 54, Succeeded: 50, Failed: 4, Warnings: 2 Total for uvcvideo device /dev/video1: 46, Succeeded: 46, Failed: 0, Warnings: 0 Grand Total for uvcvi

[PATCH v7 04/17] media: uvcvideo: Set capability in s_param

2021-03-18 Thread Ricardo Ribalda
Fixes v4l2-compliance: Format ioctls (Input 0): warn: v4l2-test-formats.cpp(1339): S_PARM is supported but doesn't report V4L2_CAP_TIMEPERFRAME fail: v4l2-test-formats.cpp(1241): node->has_frmintervals && !cap->capability Reviewed-by: Laurent Pinchart Reviewed-b

[PATCH v7 01/17] media: v4l2-ioctl: Fix check_ext_ctrls

2021-03-18 Thread Ricardo Ribalda
Drivers that do not use the ctrl-framework use this function instead. Fix the following issues: - Do not check for multiple classes when getting the DEF_VAL. - Return -EINVAL for request_api calls - Default value cannot be changed, return EINVAL as soon as possible. - Return the right error_idx [

[PATCH v7 02/17] media: pvrusb2: Do not check for V4L2_CTRL_WHICH_DEF_VAL

2021-03-18 Thread Ricardo Ribalda
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Cc: Mike Isely Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/dri

[PATCH v7 06/17] media: uvcvideo: refactor __uvc_ctrl_add_mapping

2021-03-18 Thread Ricardo Ribalda
Pass the chain instead of the device. We want to keep the reference to the chain that controls belong to. We need to delay the initialization of the controls after the chains have been initialized. This is a cleanup needed for the next patches. Reviewed-by: Laurent Pinchart Reviewed-by: Hans Ve

[PATCH v7 03/17] media: uvcvideo: Do not check for V4L2_CTRL_WHICH_DEF_VAL

2021-03-18 Thread Ricardo Ribalda
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Reviewed-by: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c ind

[PATCH v7 05/17] media: uvcvideo: Return -EIO for control errors

2021-03-18 Thread Ricardo Ribalda
The device is doing something unspected with the control. Either because the protocol is not properly implemented or there has been a HW error. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(448): s_ctrl returned an error (22) test VIDIOC_G/S

[PATCH v7 07/17] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-18 Thread Ricardo Ribalda
Create all the class controls for the device defined controls. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(216): missing control class for class 0098 fail: v4l2-test-controls.cpp(216): missing control tclass for class 009a

[PATCH v7 12/17] media: uvcvideo: Check controls flags before accessing them

2021-03-18 Thread Ricardo Ribalda
We can figure out if reading/writing a set of controls can fail without accessing them by checking their flags. This way we can honor the API closer: If an error is found when validating the list of controls passed with VIDIOC_G_EXT_CTRLS, then error_idx shall be set to ctrls->count to indicate t

[PATCH v7 10/17] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE

2021-03-18 Thread Ricardo Ribalda
Hans has discovered that in his test device, for the H264 format bytesused goes up to about 570, for YUYV it will actually go up to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. We should also, according to V4L2_META_FMT_UVC docs, drop headers when the buffer is full. Credit-to: Han

[PATCH v7 09/17] media: uvcvideo: Set unique vdev name based in type

2021-03-18 Thread Ricardo Ribalda
All the entities must have a unique name. We can have a descriptive and unique name by appending the function and the entity->id. This is even resilent to multi chain devices. Fixes v4l2-compliance: Media Controller ioctls: fail: v4l2-test-media.cpp(205): v2_entity_names_set.find(

[PATCH v7 11/17] media: uvcvideo: Use control names from framework

2021-03-18 Thread Ricardo Ribalda
The framework already contains a map of IDs to names, lets use it when possible. Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil Suggested-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 57 drivers/media/usb/uvc/uvc_v4l2.c | 8 - drivers/

[PATCH v7 14/17] media: docs: Document the behaviour of uvcdriver

2021-03-18 Thread Ricardo Ribalda
The uvc driver relies on the camera firmware to keep the control states and therefore is not capable of changing an inactive control. Allow returning -EACESS in those cases. Signed-off-by: Ricardo Ribalda --- Documentation/userspace-api/media/v4l/vidioc-g-ctrl.rst | 5 + Documentation/

[PATCH v7 15/17] media: uvcvideo: Refactor __uvc_ctrl_commit

2021-03-18 Thread Ricardo Ribalda
Take a v4l2_ext_controls instead of an array of controls, this way we can access the error_idx in future changes. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 5 ++--- drivers/media/usb/uvc/uvc_v4l2.c | 8 ++-- drivers/media/usb/uvc/uvcvideo.h | 10 -- 3 fi

[PATCH v7 13/17] media: uvcvideo: Return -EACCES to inactive controls

2021-03-18 Thread Ricardo Ribalda
If a control is inactive return -EACCES to let the userspace know that the value will not be applied automatically when the control is active again. Reviewed-by: Hans Verkuil Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 68 +++

[PATCH v7 17/17] uvc: use vb2 ioctl and fop helpers

2021-03-18 Thread Ricardo Ribalda
From: Hans Verkuil When uvc was written the vb2 ioctl and file operation helpers didn't exist. This patch switches uvc over to those helpers, which removes a lot of boilerplate code and simplifies VIDIOC_G/S_PRIORITY handling and allows us to drop the 'privileges' scheme, since that's now handl

[PATCH v7 16/17] media: uvcvideo: Set error_idx during ctrl_commit errors

2021-03-18 Thread Ricardo Ribalda
If we have an error setting a control, return the affected control in the error_idx field. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 37 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/

[PATCH v7 08/17] media: uvcvideo: Use dev->name for querycap()

2021-03-18 Thread Ricardo Ribalda
Use the device name for the card name instead of vdev->name. Signed-off-by: Hans Verkuil Suggested-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_metadata.c | 2 +- drivers/media/usb/uvc/uvc_v4l2.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)

Re: [RFC PATCH] devres: better type safety with devm_*_action()

2021-03-18 Thread Rasmus Villemoes
On 10/03/2021 00.59, Rasmus Villemoes wrote: [quoting in full for context to the new CCs] > With a little MacroMagic(tm), we can allow users to pass a pointer to > a function that actually takes the type of the data argument, instead > of forcing the function to have prototype void (*)(void *). O

[PATCH V3] ethernet: sun: Fix a typo

2021-03-18 Thread Bhaskar Chowdhury
s/serisouly/seriously/ ...plus the sentence construction for better readability. Signed-off-by: Bhaskar Chowdhury --- Changes from V2: Missed the subject line labeling ..so added drivers/net/ethernet/sun/sungem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

Re: [PATCH 1/1] leds: lgm: Improve Kconfig help

2021-03-18 Thread Pavel Machek
Hi! > > > help > > > - Parallel to serial conversion, which is also called SSO > > > controller, > > > - can drive external shift register for LED outputs. > > > - This enables LED support for Serial Shift Output controller(SSO). > > > + This option enables support for LEDs connected to GPI

Re: seccomp: Delay filter activation

2021-03-18 Thread Sargun Dhillon
On Thu, Mar 18, 2021 at 03:54:54PM +0100, Christian Brauner wrote: > Sorry, I just found that mail. > > On Mon, Mar 01, 2021 at 03:44:06PM -0800, Kees Cook wrote: > > On Mon, Mar 01, 2021 at 02:21:56PM +0100, Christian Brauner wrote: > > > On Mon, Mar 01, 2021 at 12:09:09PM +0100, Christian Braune

Re: [PATCH v2] usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-

2021-03-18 Thread Badhri Jagan Sridharan
On Thu, Mar 18, 2021 at 8:26 AM Adam Thomson wrote: > > On 17 March 2021 18:13, Badhri Jagan Sridharan wrote: > > > tcpm-source-psy- does not invoke power_supply_changed API when > > one of the published power supply properties is changed. > > power_supply_changed needs to be called to notify > >

Re: [sched] 663017c554: WARNING:at_kernel/sched/core.c:#scheduler_tick

2021-03-18 Thread Josh Don
The warning is WAI (holding spinlock for 100ms). However, since this is expected for locktorture, it makes sense to not have the warning enabled while the test is running. I can add that to the patch.

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-18 Thread Jens Axboe
On 3/18/21 2:24 PM, Colin Ian King wrote: > On 18/03/2021 20:12, Jens Axboe wrote: >> On 3/18/21 9:16 AM, Colin King wrote: >>> From: Colin Ian King >>> >>> The 3rd argument to alloc_workqueue should be the max_active count, >>> however currently it is the lo->lo_number that is intended for the >>

Re: [PATCH net-next v1 2/3] net: phy: mscc: improved serdes calibration applied to VSC8584

2021-03-18 Thread Andrew Lunn
On Thu, Mar 18, 2021 at 01:38:50PM +0100, Bjarni Jonasson wrote: > -static int vsc8584_config_init(struct phy_device *phydev) > +static int vsc8584_config_host_serdes(struct phy_device *phydev) > { > - struct vsc8531_private *vsc8531 = phydev->priv; > - int ret, i; > + int ret; >

[PATCH v2] powerpc/qspinlock: Use generic smp_cond_load_relaxed

2021-03-18 Thread Davidlohr Bueso
49a7d46a06c3 (powerpc: Implement smp_cond_load_relaxed()) added busy-waiting pausing with a preferred SMT priority pattern, lowering the priority (reducing decode cycles) during the whole loop slowpath. However, data shows that while this pattern works well with simple spinlocks, queued spinlocks

Re: [EXT] Re: [V2 net-next] net: mvpp2: Add reserved port private flag configuration

2021-03-18 Thread Andrew Lunn
> 2. CM3 code has very small footprint requirement, we cannot > implement the complete Serdes and PHY infrastructure that kernel > provides as part of CM3 application. Therefore I would like to > continue relying on kernel configuration for that. How can that work? How does Linux know when CM3 has

[PATCH] powercap/drivers/dtpm : Fix power limit initialization

2021-03-18 Thread Daniel Lezcano
When a DTPM node is registered its power limit must be initialized to the power max. Signed-off-by: Daniel Lezcano --- drivers/powercap/dtpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index a4784ac2f79b..2f028776cfa8

Re: [PATCH v2 1/2] optee: fix tee out of memory failure seen during kexec reboot

2021-03-18 Thread Tyler Hicks
On 2021-02-25 14:36:09, Allen Pais wrote: > From: Allen Pais > > The following out of memory errors are seen on kexec reboot > from the optee core. > > [0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed > [0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 > > tee_s

Re: [v5] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-03-18 Thread Bjorn Helgaas
On Tue, Mar 16, 2021 at 10:08:47PM +0800, Chiqijun wrote: > When multiple VFs do FLR at the same time, the firmware is > processed serially, resulting in some VF FLRs being delayed more > than 100ms, when the virtual machine restarts and the device > driver is loaded, the firmware is doing the corr

Re: [PATCH v2 2/2] firmware: tee_bnxt: implement shutdown method to handle kexec reboots

2021-03-18 Thread Tyler Hicks
On 2021-02-25 14:36:10, Allen Pais wrote: > From: Allen Pais > > On kexec reboot the firmware driver fails to deallocate > shm memory leading to a memory leak. Implement .shutdown() > method to handle kexec reboots and to release shm buffers > correctly. > > Signed-off-by: Allen Pais Reviewed

Re: [PATCH v3 1/2] audit: document /proc/PID/loginuid

2021-03-18 Thread Paul Moore
On Thu, Mar 18, 2021 at 3:19 PM Richard Guy Briggs wrote: > > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > was added 2005-02-01 by commit 1e2d1492e178 ("[PATCH] audit: handle > loginuid through proc") > > Signed-off-by: Richard Guy Briggs > --- > Documentation/ABI

Re: [PATCH v3 2/2] audit: document /proc/PID/sessionid

2021-03-18 Thread Paul Moore
On Thu, Mar 18, 2021 at 3:19 PM Richard Guy Briggs wrote: > > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > was added 2008-03-13 in commit 1e0bd7550ea9 ("[PATCH] export sessionid > alongside the loginuid in procfs") > > Signed-off-by: Richard Guy Briggs > --- > Doc

Re: [GIT PULL] Btrfs fixes for 5.12-rc4

2021-03-18 Thread pr-tracker-bot
The pull request you sent on Thu, 18 Mar 2021 21:14:11 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.12-rc3-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/81aa0968b7ea6dbabcdcda37dc8434dca6e1565b Thank you! -- Deet-doot-dot, I am a

[RFC] clk: add boot clock support

2021-03-18 Thread Sebastian Reichel
On Congatec's QMX6 system on module one of the i.MX6 fixed clocks is provided by an I2C RTC. Specifying this properly results in a circular dependency, since the I2C RTC (and thus its clock) cannot be initialized without the i.MX6 clock controller being initialized. With current code the following

Re: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread Eric Biggers
On Thu, Mar 18, 2021 at 07:03:04PM +0530, Shreeya Patel wrote: > Following warning was reported by Kernel Test Robot. > > In function 'utf8_parse_version', > inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: > >> fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals > dest

[tip:x86/sgx 2/2] arch/x86/kernel/cpu/sgx/main.c:496:7: warning: variable 'nid' is used uninitialized whenever 'if' condition is false

2021-03-18 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/sgx head: 5b8719504e3adf47646273781591ad439b3c3c7a commit: 5b8719504e3adf47646273781591ad439b3c3c7a [2/2] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page() config: x86_64-randconfig-r004-20210318 (attached

Re: [PATCH v2 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-18 Thread Eric Biggers
On Thu, Mar 18, 2021 at 07:03:05PM +0530, Shreeya Patel wrote: > +struct unicode_ops { > + struct module *owner; > + int (*validate)(const struct unicode_map *um, const struct qstr *str); > + int (*strncmp)(const struct unicode_map *um, const struct qstr *s1, > +cons

Re: [PATCH 4/4] kbuild: include Makefile.compiler only when compiler is required

2021-03-18 Thread Nathan Chancellor
On Sun, Feb 28, 2021 at 03:10:28PM +0900, Masahiro Yamada wrote: > Since commit f2f02ebd8f38 ("kbuild: improve cc-option to clean up all > temporary files"), running 'make kernelversion' in a read-only source > tree emits a bunch of warnings: > > mkdir: cannot create directory '.tmp_12345': Perm

Re: [PATCH v10 7/8] drivers: thermal: tsens: Add support for ipq8064-tsens

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: Add support for tsens present in ipq806x SoCs based on generic msm8960 tsens driver. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath Warm Regards Thara --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --g

Re: [PATCH v2 0/3] perf-stat: share hardware PMCs with BPF

2021-03-18 Thread Jiri Olsa
On Thu, Mar 18, 2021 at 03:52:51AM +, Song Liu wrote: > > > > On Mar 17, 2021, at 6:11 AM, Arnaldo Carvalho de Melo > > wrote: > > > > Em Wed, Mar 17, 2021 at 02:29:28PM +0900, Namhyung Kim escreveu: > >> Hi Song, > >> > >> On Wed, Mar 17, 2021 at 6:18 AM Song Liu wrote: > >>> > >>> per

Re: [PATCH v10 1/8] drivers: thermal: tsens: Add VER_0 tsens version

2021-03-18 Thread Thara Gopinath
Hi Ansuel! Apologies for delay in the review.. This particular patch throws checkpatch check warnings. Please run checkpatch.pl --strict and fix them. Rest of the comments below On 2/17/21 2:40 PM, Ansuel Smith wrote: VER_0 is used to describe device based on tsens version before v0.1. These d

Re: [PATCH v10 4/8] drivers: thermal: tsens: Use init_common for msm8960

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: Use init_common and drop custom init for msm8960. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath Warm Regards Thara --- > drivers/thermal/qcom/tsens-8960.c | 52 +-- 1 file changed, 1 insertion(+), 51 delet

Re: [PATCH v10 2/8] drivers: thermal: tsens: Don't hardcode sensor slope

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith Reviewed-b

Re: [PATCH v2 1/3] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-18 Thread Jiri Olsa
On Tue, Mar 16, 2021 at 02:18:35PM -0700, Song Liu wrote: > perf uses performance monitoring counters (PMCs) to monitor system > performance. The PMCs are limited hardware resources. For example, > Intel CPUs have 3x fixed PMCs and 4x programmable PMCs per cpu. > > Modern data center systems use t

Re: [PATCH v10 3/8] drivers: thermal: tsens: Convert msm8960 to reg_field

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: Convert msm9860 driver to reg_field to use the init_common function. Hi! Now that you have done this, you should clean up the unused bitmasks/offsets etc in tsens-8960.c file as well as a separate patch. I only see the need to maintain SLP_CLK_ENA_8

Re: [PATCH v10 5/8] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: It's present a hardware bug in tsens VER_0 where if sensors upper to id 6 are enabled selectively, underfined results are expected. Fix this by enabling all the remaining sensor in one step. It took me a while to understand this. It is most likely me!

Re: [PATCH RESEND V12 2/8] fuse: 32-bit user space ioctl compat for fuse device

2021-03-18 Thread Arnd Bergmann
On Thu, Mar 18, 2021 at 5:13 PM Alessio Balsini wrote: > On Tue, Mar 16, 2021 at 07:53:06PM +0100, Arnd Bergmann wrote: > > On Mon, Jan 25, 2021 at 4:48 PM Alessio Balsini wrote: > > > > > Thanks for spotting this possible criticality. > > I noticed that 32-bit users pace was unable to use the >

Re: [PATCH v10 6/8] drivers: thermal: tsens: Use get_temp_common for msm8960

2021-03-18 Thread Thara Gopinath
On 2/17/21 2:40 PM, Ansuel Smith wrote: Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. You are also changing get_temp to use get_temp_common instead of get_temp_8960 in this patch. Please add

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-18 Thread Ricardo Ribalda
Hi Sergey On Thu, Mar 18, 2021 at 5:47 AM Sergey Senozhatsky wrote: > > On (21/03/17 08:58), Ricardo Ribalda Delgado wrote: > [..] > > > > > > GET_CUR? > > yep > > > > > > > > > https://www.kernel.org/doc/html/v4.13/media/uapi/v4l/vidioc-g-selection.html?highlight=vidioc_s_selection > > > > On su

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-18 Thread Ricardo Ribalda
On Thu, Mar 18, 2021 at 10:19 PM Ricardo Ribalda wrote: > > Hi Sergey > > On Thu, Mar 18, 2021 at 5:47 AM Sergey Senozhatsky > wrote: > > > > On (21/03/17 08:58), Ricardo Ribalda Delgado wrote: > > [..] > > > > > > > > GET_CUR? > > > yep > > > > > > > > > > > > https://www.kernel.org/doc/html/v4.

[PATCH 0/2] Add hardware monitoring support for TI TPS53676

2021-03-18 Thread Erik Rosen
Add hardware monitoring support for TI TPS53676 Dual-channel D-CAP+, dual-channel (N + M <= 7 phases) step-down, multiphase controller with AVSBus. The support is added to the existing pmbus/tps53679 driver. This patch has been tested with a Flex BMR474 converter. Erik Rosen (2): Add trivial d

[PATCH 1/2] dt-bindings: Add trivial device entry for TPS53676

2021-03-18 Thread Erik Rosen
Add trivial device entry for TPS53676 Signed-off-by: Erik Rosen --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index

[PATCH 2/2] hwmon: (pmbus/tps53679) Add support for TPS53676

2021-03-18 Thread Erik Rosen
Add support for TI TPS53676 controller to the tps53679 pmbus driver The driver uses the USER_DATA_03 register to figure out how many phases are enabled and to which channel they are assigned, and sets the number of pages and phases accordingly. Signed-off-by: Erik Rosen --- Documentation/hwmon/

Re: [PATCH 4/6] um: split up CONFIG_GCOV

2021-03-18 Thread Brendan Higgins
On Fri, Mar 12, 2021 at 1:56 AM Johannes Berg wrote: > > From: Johannes Berg > > It's not always desirable to collect coverage data for the > entire kernel, so split off CONFIG_GCOV_BASE. This option > only enables linking with coverage options, and compiles a > single file (reboot.c) with them a

[RFC][PATCH] sched: Optimize cpufreq_update_util

2021-03-18 Thread Peter Zijlstra
Hi, The below replaces cpufreq_update_util()'s indirect call with a static_call(). The patch is quite gross, and we definitely need static_call_update_cpuslocked(). cpufreq folks, is there a better way to do that optimize pass? That is, we need to know when all CPUs have the *same* function set

linux-next: manual merge of the net tree with Linus' tree

2021-03-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net tree got a conflict in: drivers/net/can/usb/peak_usb/pcan_usb_fd.c between commit: 6417f03132a6 ("module: remove never implemented MODULE_SUPPORTED_DEVICE") from Linus' tree and commit: 59ec7b89ed3e ("can: peak_usb: add forgotten supported dev

Re: [PATCH] net: marvell: Remove reference to CONFIG_MV64X60

2021-03-18 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 18 Mar 2021 17:25:08 + (UTC) you wrote: > Commit 92c8c16f3457 ("powerpc/embedded6xx: Remove C2K board support") > removed last selector of CONFIG_MV64X60. > > As it is not a user selectable config item, all referenc

Re: [net PATCH v2 0/8] octeontx2: miscellaneous fixes

2021-03-18 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (refs/heads/master): On Thu, 18 Mar 2021 19:45:41 +0530 you wrote: > This series of patches fixes various issues related to NPC MCAM entry > management, debugfs, devlink, CGX LMAC mapping, RSS config etc > > Change-log: > v2: > Fixed below review

Re: [PATCH net-next 0/2] stmmac: add VLAN priority based RX steering

2021-03-18 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Fri, 19 Mar 2021 01:22:02 +0800 you wrote: > Hi, > > The current tc flower implementation in stmmac supports both L3 and L4 > filter offloading. This patch adds the support of VLAN priority based > RX frame steering in

Re: [PATCH] swiotlb: Add swiotlb=off to disable SWIOTLB

2021-03-18 Thread Florian Fainelli
On 3/18/2021 12:53 PM, Robin Murphy wrote: > On 2021-03-18 19:43, Florian Fainelli wrote: >> >> >> On 3/18/2021 12:34 PM, Robin Murphy wrote: >>> On 2021-03-18 19:22, Florian Fainelli wrote: On 3/18/2021 12:18 PM, Florian Fainelli wrote: > It may be useful to disable the SWIOT

Re: [PATCH 4/6] um: split up CONFIG_GCOV

2021-03-18 Thread Johannes Berg
Hi Brendan, > Hey, thanks for doing this! I was looking into this a few weeks ago > and root caused part of the issue in GCC and in the kernel, but I did > not have a fix put together. > > Anyway, most of the patches make sense to me, but I am not able to > apply this patch on torvalds/master. Do

Re: [PATCH v2 09/17] lib/list_sort: fix function type mismatches

2021-03-18 Thread Sami Tolvanen
On Thu, Mar 18, 2021 at 11:31 AM Nick Desaulniers wrote: > > On Thu, Mar 18, 2021 at 10:11 AM Sami Tolvanen > wrote: > > > > Casting the comparison function to a different type trips indirect > > call Control-Flow Integrity (CFI) checking. Remove the additional > > consts from cmp_func, and the

[PATCH v1 1/1] x86/tdx: Add tdcall() and tdvmcall() helper functions

2021-03-18 Thread Kuppuswamy Sathyanarayanan
Implement common helper functions to communicate with the TDX Module and VMM (using TDCALL instruction). tdvmcall() function can be used to request services from VMM. tdcall() function can be used to communicate with the TDX Module. Using common helper functions makes the code more readable and

Re: [PATCH net-next v3 2/4] net: ipa: use upper_32_bits()

2021-03-18 Thread Florian Fainelli
On 3/18/2021 11:59 AM, Alex Elder wrote: > Use upper_32_bits() to extract the high-order 32 bits of a DMA > address. This avoids doing a 32-position shift on a DMA address > if it happens not to be 64 bits wide. Use lower_32_bits() to > extract the low-order 32 bits (because that's what it's f

Re: [PATCH v2 05/17] workqueue: use WARN_ON_FUNCTION_MISMATCH

2021-03-18 Thread Sami Tolvanen
On Thu, Mar 18, 2021 at 11:50 AM Nick Desaulniers wrote: > > On Thu, Mar 18, 2021 at 10:11 AM Sami Tolvanen > wrote: > > > > With CONFIG_CFI_CLANG, a callback function passed to > > __queue_delayed_work from a module points to a jump table entry > > defined in the module instead of the one used

Re: [PATCH v3 net-next] net: dsa: b53: mmap: Add device tree support

2021-03-18 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 17 Mar 2021 10:23:17 +0100 you wrote: > Add device tree support to b53_mmap.c while keeping platform devices support. > > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/net/dsa/b53/b53_mmap.c | 55

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