Re: [PATCH] regulator: core: avoid regulator_resolve_supply() race condition

2021-01-11 Thread Mark Brown
On Thu, 7 Jan 2021 17:16:02 -0800, David Collins wrote: > The final step in regulator_register() is to call > regulator_resolve_supply() for each registered regulator > (including the one in the process of being registered). The > regulator_resolve_supply() function first checks if rdev->supply >

Re: [PATCH] ASoC: soc-pcm: return correct -ERRNO in failure path

2021-01-11 Thread Mark Brown
On Sat, 9 Jan 2021 09:15:01 +0530, Souptick Joarder wrote: > Kernel test robot throws below error -> > > sound/soc/soc-pcm.c:2523 dpcm_run_update_startup() error: uninitialized > symbol 'ret'. > > Initializing ret = 0 and returning correct -ERRNO in failure path. Applied to

Re: [PATCH v3 0/4] ASoC: rt5645: Enable internal mic and headset on ECS EF20

2021-01-11 Thread Mark Brown
On Mon, 11 Jan 2021 13:41:37 +0800, Chris Chiu wrote: > These patches are trying to fix the jack detection and internal > microphone problems on ECS EF20 series laptops which are empowered > by Intel Atom x5-Z8350 CPU (CherryTrail) with Realtek rt5645 audio > codec. Applied to

Re: [PATCH] ASoC: wm_adsp: Fix uninitialized variable warnings

2021-01-11 Thread Mark Brown
On Mon, 11 Jan 2021 13:38:25 +, Richard Fitzgerald wrote: > wm_adsp_read_data_word() used if (ret) to check for an error from > wm_adsp_read_raw_data_block(). While this is perfectly valid, > wm_adsp_read_raw_data_block() itself uses if (ret < 0) and three > calls to wm_adsp_read_data_word()

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

2021-01-11 Thread Pavel Machek
Hi! > 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 know. CIP testing did not find any problems here:

Re: Old platforms: bring out your dead

2021-01-11 Thread Sylvain Lemieux
Hi Arnd, 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 the field with this MCU and we are still shipping products

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

2021-01-11 Thread Pavel Machek
Hi! > 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. > > Responses should be made by Wed, 13 Jan 2021 13:00:19

Re: [PATCH/v2] ARM: ixp4xx: Fix typos in Kconfig

2021-01-11 Thread Randy Dunlap
On 1/11/21 6:41 AM, Masanari Iida wrote: > This patch fixes some spelling typos in Kconfig. > > Signed-off-by: Masanari Iida Acked-by: Randy Dunlap Thanks. > --- > arch/arm/mach-ixp4xx/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-11 Thread Mike Leach
Hi Leo, On Sat, 9 Jan 2021 at 07:44, Leo Yan wrote: > > From: Suzuki K Poulose > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. > Thus we should trace the VMID with VMIDOPT set to trace >

Re: [PATCH] thermal/core: Make cooling device state change private

2021-01-11 Thread kernel test robot
Hi Daniel, I love your patch! Yet something to improve: [auto build test ERROR on hwmon/hwmon-next] [also build test ERROR on linus/master v5.11-rc3 next-20210111] [cannot apply to thermal/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[]

2021-01-11 Thread Alex Deucher
On Mon, Jan 11, 2021 at 6:46 AM Colin King wrote: > > From: Colin Ian King > > A recent change added a new BOOTUP_DEFAULT power profile mode > to the PP_SMC_POWER_PROFILE enum but omitted updating the > corresponding profile_name array. Fix this by adding in the > missing BOOTUP_DEFAULT to

Re: [PATCH v12] ARM: uncompress: Validate start of physical memory against passed DTB

2021-01-11 Thread Geert Uytterhoeven
Hi Linus, CC Rob, Grant, Michael, Heinrich, DT On Sat, Jan 9, 2021 at 12:57 AM Linus Walleij wrote: > On Mon, Jan 4, 2021 at 2:01 PM Geert Uytterhoeven > wrote: > > Currently, the start address of physical memory is obtained by masking > > the program counter with a fixed mask of 0xf800.

Re: [PATCH v2 1/2] thermal: int340x: Fix unexpected shutdown at critical temperature

2021-01-11 Thread Kai-Heng Feng
On Tue, Dec 22, 2020 at 1:23 AM Kai-Heng Feng wrote: > > We are seeing thermal shutdown on Intel based mobile workstations, the > shutdown happens during the first trip handle in > thermal_zone_device_register(): > kernel: thermal thermal_zone15: critical temperature reached (101 C), > shutting

Re: [PATCH] nvme: hwmon: fix crash on device teardown

2021-01-11 Thread Daniel Wagner
On Mon, Jan 11, 2021 at 05:00:18PM +0100, Hannes Reinecke wrote: > Yeah, using the controller node for devm allocations is quite dodgy. > Does this one help? > > diff --git a/drivers/nvme/host/hwmon.c b/drivers/nvme/host/hwmon.c > index 6fdd07fb3001..7260af028cf7 100644 > ---

Re: [PATCH] drm/panel: panel-simple: add bus-format and connector-type to Innolux n116bge

2021-01-11 Thread Doug Anderson
Hi, On Sat, Jan 9, 2021 at 5:10 AM Heiko Stuebner wrote: > > From: Heiko Stuebner > > The Innolux n116bge panel has an eDP connector and 3*6 bits bus format. > > Signed-off-by: Heiko Stuebner > --- > drivers/gpu/drm/panel/panel-simple.c | 2 ++ > 1 file changed, 2 insertions(+) This looks

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

2021-01-11 Thread Michal Hocko
On Mon 11-01-21 12:05:49, Jason Gunthorpe wrote: > On Sun, Jan 10, 2021 at 11:26:57PM -0800, John Hubbard wrote: > > > So: > > > > FOLL_PIN: would use DMA_PIN_COUNTING_BIAS to increment page refcount. > > These are long term pins for dma. > > > > FOLL_GET: would use GUP_PIN_COUNTING_BIAS to

[rcu:rcu/next] BUILD SUCCESS WITH WARNING 122db0d42ba5aba3ec1aff777e6e4f6bbe52dd57

2021-01-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: 122db0d42ba5aba3ec1aff777e6e4f6bbe52dd57 torturescript: Don't rerun failed rcutorture builds Warning ids grouped by kconfigs: gcc_recent_errors `-- x86_64-randconfig-c003-20210111

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

2021-01-11 Thread Greg KH
On Mon, Jan 11, 2021 at 07:43:35AM -0800, Marc Orr wrote: > This patch updates dma_direct_unmap_sg() to mark each scatter/gather > entry invalid, after it's unmapped. This fixes two issues: > > 1. It makes the unmapping code able to tolerate a double unmap. > 2. It prevents the NVMe driver from

[PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-11 Thread Greg Kroah-Hartman
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. Responses should be made by Wed, 13 Jan 2021 16:14:43 +. Anything

Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

2021-01-11 Thread Rob Herring
+David Gibson On Mon, Jan 11, 2021 at 9:40 AM Masahiro Yamada wrote: > > On Mon, Jan 11, 2021 at 8:17 PM Viresh Kumar wrote: > > > > On 07-01-21, 14:28, Masahiro Yamada wrote: > > > Viresh's patch is not enough. > > > > > > We will need to change .gitignore > > > and scripts/Makefile.dtbinst as

Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-11 Thread Thierry Reding
On Mon, Jan 11, 2021 at 03:57:37PM +0100, Rafael J. Wysocki wrote: > On Mon, Jan 11, 2021 at 2:43 PM Thierry Reding wrote: > > > > On Sun, Jan 10, 2021 at 08:44:13PM -0800, Hugh Dickins wrote: > > > Hi Rafael, > > > > > > Synaptics RMI4 SMBus touchpad on ThinkPad X1 Carbon (5th generation) > > >

Re: [Freedreno] [PATCH] drm/msm: Only enable A6xx LLCC code on A6xx

2021-01-11 Thread Jordan Crouse
On Mon, Jan 11, 2021 at 09:54:12AM +0530, Sai Prakash Ranjan wrote: > Hi Rob, > > On 2021-01-08 22:16, Rob Clark wrote: > >On Fri, Jan 8, 2021 at 6:05 AM Sai Prakash Ranjan > > wrote: > >> > >>On 2021-01-08 19:09, Konrad Dybcio wrote: > Konrad, can you please test this below change without

KASAN: use-after-free Read in usb_anchor_resume_wakeups (2)

2021-01-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:841081d8 usb: usbip: Use DEFINE_SPINLOCK() for spinlock git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=12f42a3f50 kernel config:

Re: [PATCH 5.10 000/145] 5.10.7-rc1 review

2021-01-11 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 07:15:17AM -0800, Guenter Roeck wrote: > On 1/11/21 5:00 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.7 release. > > There are 145 patches in this series, all will be posted as a response > > to this one. If anyone has any

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

2021-01-11 Thread Mikko Perttunen
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 we are in an IRQ. This matches the behavior prior to the patch

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Tom Rix
On 1/11/21 7:53 AM, Greg Kroah-Hartman wrote: > On Mon, Jan 11, 2021 at 07:11:59AM -0800, Tom Rix wrote: >> On 1/11/21 3:21 AM, Lukas Bulwahn wrote: >>> Commit fa41d10589be ("fpga: dfl-pci: locate DFLs by PCIe vendor specific >>> capability") provides documentation to the FPGA Device Feature

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

2021-01-11 Thread Robin Murphy
On 2021-01-11 15:43, Marc Orr wrote: This patch updates dma_direct_unmap_sg() to mark each scatter/gather entry invalid, after it's unmapped. This fixes two issues: s/fixes/bodges around (badly)/ 1. It makes the unmapping code able to tolerate a double unmap. 2. It prevents the NVMe driver

Re: dmaengine : xilinx_dma two issues

2021-01-11 Thread Michal Simek
On 11. 01. 21 16:33, Lars-Peter Clausen wrote: > On 1/11/21 10:32 AM, Michal Simek wrote: >> Hi Lars, >> >> On 10. 01. 21 16:43, Lars-Peter Clausen wrote: >>> On 1/10/21 4:16 PM, Paul Thomas wrote: On Fri, Jan 8, 2021 at 1:36 PM Radhey Shyam Pandey wrote: >> -Original

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-11 Thread Greg KH
On Mon, Jan 11, 2021 at 07:55:24AM -0800, Tom Rix wrote: > > On 1/11/21 6:54 AM, Greg KH wrote: > > On Mon, Jan 11, 2021 at 06:40:24AM -0800, Tom Rix wrote: > >> On 1/10/21 10:57 PM, Greg KH wrote: > >>> On Sun, Jan 10, 2021 at 11:43:54AM -0800, Tom Rix wrote: > On 1/10/21 9:05 AM, Moritz

Re: [PATCH -next] drm/amd/display: tweak the kerneldoc for active_vblank_irq_count

2021-01-11 Thread Alex Deucher
k_irq_count > 379: warning: Function parameter or member 'active_vblank_irq_count' not > described in 'amdgpu_display_manager' > > Tweak the kerneldoc for active_vblank_irq_count. > > Signed-off-by: Lukas Bulwahn > --- > applies on amdgpu's -next and next-20210111 >

Re: [PATCH v2 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-11 Thread Barnabás Pőcze
Hi 2021. január 11., hétfő 14:42 keltezéssel, Perry Yuan írta: > [...] > > > +#define PRIVACY_PLATFORM_NAME"dell-privacy-acpi" > > > +#define DELL_PRIVACY_GUID"6932965F-1671-4CEB-B988-D3AB0A901919" > > > + > > > +struct privacy_acpi_priv { > > > + struct device *dev; > > > + struct

Re: [PATCH] nvme: hwmon: fix crash on device teardown

2021-01-11 Thread Christoph Hellwig
We could just stop using devm and do explicit resource management. Btw, for the next patch please cc the author of the nvme-hwmon code.

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

2021-01-11 Thread Jason Gunthorpe
On Sun, Jan 10, 2021 at 11:26:57PM -0800, John Hubbard wrote: > So: > > FOLL_PIN: would use DMA_PIN_COUNTING_BIAS to increment page refcount. > These are long term pins for dma. > > FOLL_GET: would use GUP_PIN_COUNTING_BIAS to increment page refcount. > These are not long term pins. Do we have

Re: [PATCH 7/7] arm64: dts: qcom: sdm845: enable dma for spi

2021-01-11 Thread Konrad Dybcio
Hi, looks like sdm845-cheza also uses the spi0 bus, which as far as I understand is going to break with the GPI DMA disabled. Perhaps it should also be enabled over there? Actually, is there a point in disabling DMA for BLSPs/QUPs in the SoC DTSI? I don't think any platform/vendor firmware

Re: [PATCH] Signed-off-by: giladreti

2021-01-11 Thread Gilad Reti
On Mon, Jan 11, 2021, 17:55 Daniel Borkmann wrote: > > Hello Gilad, > > On 1/11/21 4:31 PM, giladreti wrote: > > Added support for pointer to mem register spilling, to allow the verifier > > to track pointer to valid memory addresses. Such pointers are returned > > for example by a successful

Re: [PATCH 07/13] KVM: SVM: Append "_enabled" to module-scoped SEV/SEV-ES control variables

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: Rename sev and sev_es to sev_enabled and sev_es_enabled respectively to better align with other KVM terminology, and to avoid pseudo-shadowing when the variables are moved to sev.c in a future patch ('sev' is often used for local struct kvm_sev_info

Re: [PATCH 06/13] x86/sev: Rename global "sev_enabled" flag to "sev_guest"

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: Use "guest" instead of "enabled" for the global "running as an SEV guest" flag to avoid confusion over whether "sev_enabled" refers to the guest or the host. This will also allow KVM to usurp "sev_enabled" for its own purposes. No functional change

Re: [PATCH v5 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-11 Thread Maulik Shah
Hi Doug, Thanks for the patch. Looks good to me and tested. Reviewed-by: Maulik Shah Tested-by: Maulik Shah Thanks, Maulik On 1/8/2021 11:05 PM, Douglas Anderson wrote: In Linux, if a driver does disable_irq() and later does enable_irq() on its interrupt, I believe it's expecting these

Re: [PATCH] nvme: hwmon: fix crash on device teardown

2021-01-11 Thread Hannes Reinecke
On 1/5/21 10:45 AM, Daniel Wagner wrote: On Mon, Jan 04, 2021 at 06:06:10PM -0300, Enzo Matsumiya wrote: @Daniel maybe try tweaking your tests to use a smaller controller loss timeout (-l option)? I do this on my tests because the default value kicks in about 30min after hot-removal -- i.e. you

Re: [PATCH v5 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-11 Thread Maulik Shah
Hi Doug, Reviewed-by: Maulik Shah Tested-by: Maulik Shah Thanks, Maulik On 1/8/2021 11:05 PM, Douglas Anderson wrote: In commit 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") we tried to Ack interrupts during unmask. However, that patch forgot to check "intr_ack_high"

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

2021-01-11 Thread Mikko Perttunen
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. Signed-off-by: Muhammed Fazal Cc: sta...@vger.kernel.org # v4.19+ Signed-off-by: Mikko Perttunen --- v2: - Remove unnecessary check for if

Re: [RFC][PATCH 1/5] sched/fair: Fix select_idle_cpu()s cost accounting

2021-01-11 Thread Mel Gorman
On Mon, Jan 11, 2021 at 03:36:57PM +0100, Vincent Guittot wrote: > > > > > > > > > I think > > > that we should decay it periodically to reflect there is less and less > > > idle time (in fact no more) on this busy CPU that never goes to idle. > > > If a cpu was idle for a long period but then a

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

2021-01-11 Thread Yonghong Song
On 1/11/21 2:17 AM, KP Singh wrote: On Mon, Jan 11, 2021 at 7:27 AM Yonghong Song wrote: On 1/8/21 3:19 PM, Song Liu wrote: To access per-task data, BPF program typically creates a hash table with pid as the key. This is not ideal because: 1. The use need to estimate requires size of

Re: [PATCH v5 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-11 Thread Maulik Shah
Hi Doug, Reviewed-by: Maulik Shah Tested-by: Maulik Shah Thanks, Maulik On 1/8/2021 11:05 PM, Douglas Anderson wrote: When the Qualcomm pinctrl driver wants to Ack an interrupt, it does a read-modify-write on the interrupt status register. On some SoCs it makes sure that the status bit is

Re: [PATCH v5 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-11 Thread Maulik Shah
Hi Doug, Reviewed-by: Maulik Shah Tested-by: Maulik Shah Thanks, Maulik On 1/8/2021 11:05 PM, Douglas Anderson wrote: There's currently a comment in the code saying function 0 is GPIO. Instead of hardcoding it, let's add a member where an SoC can specify it. No known SoCs use a number

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-11 Thread Tom Rix
On 1/11/21 6:54 AM, Greg KH wrote: > On Mon, Jan 11, 2021 at 06:40:24AM -0800, Tom Rix wrote: >> On 1/10/21 10:57 PM, Greg KH wrote: >>> On Sun, Jan 10, 2021 at 11:43:54AM -0800, Tom Rix wrote: On 1/10/21 9:05 AM, Moritz Fischer wrote: > Tom, > > On Sun, Jan 10, 2021 at

Re: [PATCH] Signed-off-by: giladreti

2021-01-11 Thread Daniel Borkmann
Hello Gilad, On 1/11/21 4:31 PM, giladreti wrote: Added support for pointer to mem register spilling, to allow the verifier to track pointer to valid memory addresses. Such pointers are returned for example by a successful call of the bpf_ringbuf_reserve helper. This patch was suggested as a

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Moritz Fischer
ends without a blank line; unexpected unindent. > > Rectify ReST formatting in ./Documentation/fpga/dfl.rst. > > Signed-off-by: Lukas Bulwahn Acked-by: Moritz Fischer > --- > applies cleanly on next-20210111 > > Moritz, Matthew, please ack. > > Greg, please pick

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 12:21:13PM +0100, Lukas Bulwahn wrote: > Commit fa41d10589be ("fpga: dfl-pci: locate DFLs by PCIe vendor specific > capability") provides documentation to the FPGA Device Feature List (DFL) > Framework Overview, but introduced new documentation warnings: > >

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

2021-01-11 Thread Jason Gunthorpe
On Sat, Jan 09, 2021 at 09:51:14PM -0500, Andrea Arcangeli wrote: > Are we spending 32bit in mm_struct atomic_t just to call atomic_set(1) > on it? Why isn't it a MMF_HAS_PINNED that already can be set > atomically under mmap_read_lock too? There's bit left free there, we > didn't run out yet to

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

2021-01-11 Thread Mikko Perttunen
On 1/11/21 5:14 PM, Dmitry Osipenko wrote: 11.01.2021 16:55, Mikko Perttunen пишет: 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. Since

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 07:11:59AM -0800, Tom Rix wrote: > > On 1/11/21 3:21 AM, Lukas Bulwahn wrote: > > Commit fa41d10589be ("fpga: dfl-pci: locate DFLs by PCIe vendor specific > > capability") provides documentation to the FPGA Device Feature List (DFL) > > Framework Overview, but introduced

[PATCH v1 2/2] mmc: sdhci-of-arasan: Change code style of mapping the syscon field

2021-01-11 Thread Muhammad Husaini Zulkifli
Change code style of mapping the syscon in sdhci_arasan_update_support64b() for readability and consistency. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Andy Shevchenko Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-of-arasan.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] Signed-off-by: giladreti

2021-01-11 Thread Marek Behún
The Signed-off-by line should be last in the commit message, not first. First line (which becomes e-mail subject) should describe what the commit does (in a short one liner) and where it does it. So for your patch it could be something like bpf: support pointer to mem register spilling in

[PATCH v1 1/2] mmc: sdhci-of-arasan: Fixed kernel-doc format warning

2021-01-11 Thread Muhammad Husaini Zulkifli
Commit 36c6aadaae86 ("mmc: sdhci-of-arasan: Add support for Intel Keem Bay") introduces syscon map sdhci_arasan_update_support64b(). Unfortunately, kernel-doc format script tool has not been run before and causing warning on the documentation style. Below is the output when running the kernel-doc

[PATCH v1 0/2] mmc: sdhci-of-arasan: Fixed kernel-doc format warning

2021-01-11 Thread Muhammad Husaini Zulkifli
Hi, This patch series are to fix the kernel-doc format warning when using kernel-doc script tool and to change code style of mapping the syscon field for readability and consistency. Kindly help to review this patch set. Thanks. Muhammad Husaini Zulkifli (2): mmc: sdhci-of-arasan: Fixed

[PATCH 4/5] sched/fair: Remove select_idle_smt()

2021-01-11 Thread Mel Gorman
From: Peter Zijlstra (Intel) In order to make the next patch more readable, and to quantify the actual effectiveness of this pass, start by removing it. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 30 -- 1 file

[PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-11 Thread Mel Gorman
From: Peter Zijlstra (Intel) Instead of calculating how many (logical) CPUs to scan, compute how many cores to scan. This changes behaviour for anything !SMT2. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Mel Gorman --- kernel/sched/core.c | 19 ++-

[PATCH 5/5] sched/fair: Merge select_idle_core/cpu()

2021-01-11 Thread Mel Gorman
Both select_idle_core() and select_idle_cpu() do a loop over the same cpumask. Observe that by clearing the already visited CPUs, we can fold the iteration and iterate a core at a time. All we need to do is remember any non-idle CPU we encountered while scanning for an idle core. This way we'll

[PATCH 0/5] Scan for an idle sibling in a single pass

2021-01-11 Thread Mel Gorman
This series of 5 patches reposts three patches from Peter entitled "select_idle_sibling() wreckage". It only scans the runqueues in a single pass when searching for an idle sibling. Two patches from Peter were dropped. The first patch altered how scan depth was calculated. Scan depth deletion is

[PATCH 2/5] sched/fair: Move avg_scan_cost calculations under SIS_PROP

2021-01-11 Thread Mel Gorman
As noted by Vincent Guittot, avg_scan_costs are calculated for SIS_PROP even if SIS_PROP is disabled. Move the time calculations under a SIS_PROP check and while we are at it, exclude the cost of initialising the CPU mask from the average scan cost. Signed-off-by: Mel Gorman ---

[PATCH 1/5] sched/fair: Remove SIS_AVG_CPU

2021-01-11 Thread Mel Gorman
SIS_AVG_CPU was introduced as a means of avoiding a search when the average search cost indicated that the search would likely fail. It was a blunt instrument and disabled by commit 4c77b18cf8b7 ("sched/fair: Make select_idle_cpu() more aggressive") and later replaced with a proportional search

[PATCH -next 1/2] platform/surface: aggregator_cdev: Fix access of uninitialized variables

2021-01-11 Thread Maximilian Luz
When copy_struct_from_user() in ssam_cdev_request() fails, we directly jump to the 'out' label. In this case, however 'spec' and 'rsp' are not initialized, but we still access fields of those variables. Fix this by initializing them at the time of their declaration. Reported-by: Colin Ian King

[PATCH -next 2/2] platform/surface: aggregator_cdev: Add comments regarding unchecked allocation size

2021-01-11 Thread Maximilian Luz
CI static analysis complains about the allocation size in payload and response buffers being unchecked. In general, these allocations should be safe as the user-input is u16 and thus limited to U16_MAX, which is only slightly larger than the theoretical maximum imposed by the underlying SSH

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

2021-01-11 Thread Mikko Perttunen
On 1/11/21 5:04 PM, Ben Dooks wrote: On 11/01/2021 14:27, 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. Signed-off-by: Muhammed Fazal Cc: sta...@vger.kernel.org

[PATCH -next 0/2] platform/surface: aggregator_cdev: Fixes for CI analysis

2021-01-11 Thread Maximilian Luz
Hi, here are some patches addressing two issues in the Surface Aggregator user-space interface reported by Colin Ian King via static analysis. Maximilian Luz (2): platform/surface: aggregator_cdev: Fix access of uninitialized variables platform/surface: aggregator_cdev: Add comments

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

2021-01-11 Thread Rob Herring
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 own and we need to apply > overlay.dtb to

Re: [PATCH net-next 0/2] dsa: add MT7530 GPIO support

2021-01-11 Thread Marek Behún
Qingfang, what modes does the LED support? Does it support blinking on rx/tx? What about link status? I'd like to know because I am still working on patches which add ethernet PHY/switch LEDs, with transparent offloading of netdev trigger. Marek On Mon, 11 Jan 2021 13:44:26 +0800 DENG Qingfang

Re: [PATCH] VMCI: Enforce queuepair max size for IOCTL_VMCI_QUEUEPAIR_ALLOC

2021-01-11 Thread kernel test robot
Hi Jorgen, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on char-misc/char-misc-testing linus/master v5.11-rc3 next-20210111] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH 2/2] perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info

2021-01-11 Thread Steve Wahl
On Mon, Jan 11, 2021 at 02:00:33PM +0100, Peter Zijlstra wrote: > On Fri, Jan 08, 2021 at 09:35:49AM -0600, Steve Wahl wrote: > > > > + /* > > +* The nodeid and idmap registers only contain enough > > +* information to handle 8 nodes. On systems with more > > +

[PATCH v6 4/4] cpufreq: blacklist Arm Vexpress platforms in cpufreq-dt-platdev

2021-01-11 Thread Nicola Mazzucato
From: Sudeep Holla Add "arm,vexpress" to cpufreq-dt-platdev blacklist since the actual scaling is handled by the firmware cpufreq drivers(scpi, scmi and vexpress-spc). Signed-off-by: Sudeep Holla --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v6 2/4] scmi-cpufreq: Move CPU initialisation to probe

2021-01-11 Thread Nicola Mazzucato
Some of the cpu related initialisation can be done at probe stage. This patch moves those initialisations from the ->init callback to the probe stage. This is done in preparation for adding support to retrieve additional information from DT (CPUs sharing v/f lines). Signed-off-by: Nicola

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

2021-01-11 Thread Marc Orr
This patch updates dma_direct_unmap_sg() to mark each scatter/gather entry invalid, after it's unmapped. This fixes two issues: 1. It makes the unmapping code able to tolerate a double unmap. 2. It prevents the NVMe driver from erroneously treating an unmapped DMA address as mapped. The bug that

[PATCH v6 3/4] scmi-cpufreq: Get opp_shared_cpus from opp-v2 for EM

2021-01-11 Thread Nicola Mazzucato
By design, SCMI performance domains define the granularity of performance controls, they do not describe any underlying hardware dependencies (although they may match in many cases). It is therefore possible to have some platforms where hardware may have the ability to control CPU performance at

[PATCH v6 1/4] scmi-cpufreq: Remove deferred probe

2021-01-11 Thread Nicola Mazzucato
The current implementation still carries a case for a deferred probe, but in practise this should not happen anymore. Since the energy model expects to pass the number of OPPs, let us just move the call dev_pm_opp_get_opp_count closer to EM registration instead. Signed-off-by: Nicola Mazzucato

Re: [PATCH V7 01/13] dt-bindings: soc: Add dvfsrc driver bindings

2021-01-11 Thread Rob Herring
On Sun, Jan 10, 2021 at 8:52 PM Henry Chen wrote: > > Hi Rob, > > On Fri, 2021-01-08 at 20:30 -0700, Rob Herring wrote: > > On Fri, 08 Jan 2021 15:48:03 +0800, Henry Chen wrote: > > > Document the binding for enabling dvfsrc on MediaTek SoC. > > > > > > Signed-off-by: Henry Chen > > > --- > > >

[PATCH v6 0/4] CPUFreq: Add support for opp-sharing cpus

2021-01-11 Thread Nicola Mazzucato
deferred probe, not occurring * Move common stuff for CPUs from _init stage to _probe This V6 is rebased on next-20210111 [v5] * Rework documentation of opp-shared within OPP node * Register EM only for the first CPU within cpumask in driver * Add check for nr_opp in driver before registering

Re: [PATCH 2/3 v2] sched/fair: don't set LBF_ALL_PINNED unnecessarily

2021-01-11 Thread Mel Gorman
On Thu, Jan 07, 2021 at 11:33:24AM +0100, Vincent Guittot wrote: > Setting LBF_ALL_PINNED during active load balance is only valid when there > is only 1 running task on the rq otherwise this ends up increasing the > balance interval whereas other tasks could migrate after the next interval > once

Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

2021-01-11 Thread Masahiro Yamada
On Mon, Jan 11, 2021 at 8:17 PM Viresh Kumar wrote: > > On 07-01-21, 14:28, Masahiro Yamada wrote: > > Viresh's patch is not enough. > > > > We will need to change .gitignore > > and scripts/Makefile.dtbinst as well. > > > > In my understanding, the build rule is completely the same > > between

Re: [PATCH 3/7] soc: qcom: geni: Add support for gpi dma

2021-01-11 Thread Bjorn Andersson
On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > GPI DMA is one of the DMA modes supported on geni, this adds support to > enable that mode > > Signed-off-by: Vinod Koul > --- > drivers/soc/qcom/qcom-geni-se.c | 39 - > include/linux/qcom-geni-se.h| 4

Re: [PATCH] amdgpu: Avoid sleeping during FPU critical sections

2021-01-11 Thread Jeremy Cline
Hi, On Mon, Jan 11, 2021 at 09:53:56AM +0100, Christian König wrote: > Am 08.01.21 um 22:58 schrieb Jeremy Cline: > > dcn20_resource_construct() includes a number of kzalloc(GFP_KERNEL) > > calls which can sleep, but kernel_fpu_begin() disables preemption and > > sleeping in this context is

[PATCHv2] lockdep: report broken irq restoration

2021-01-11 Thread Mark Rutland
We generally expect local_irq_save() and local_irq_restore() to be paired and sanely nested, and so local_irq_restore() expects to be called with irqs disabled. Thus, within local_irq_restore() we only trace irq flag changes when unmasking irqs. This means that a sequence such as: |

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Tom Lendacky
On 1/11/21 4:42 AM, Vitaly Kuznetsov wrote: Sean Christopherson writes: Unconditionally invoke sev_hardware_setup() when configuring SVM and handle clearing the module params/variable 'sev' and 'sev_es' in sev_hardware_setup(). This allows making said variables static within sev.c and

Re: [PATCH 2/7] soc: qcom: geni: move struct geni_wrapper to header

2021-01-11 Thread Bjorn Andersson
On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > I2C geni driver needs to access struct geni_wrapper, so move it to > header. > Please tell me more! Glanced through the other patches and the only user I can find it in patch 5 where you use this to get the struct device * of the wrapper. At

Re: dmaengine : xilinx_dma two issues

2021-01-11 Thread Lars-Peter Clausen
On 1/11/21 10:32 AM, Michal Simek wrote: Hi Lars, On 10. 01. 21 16:43, Lars-Peter Clausen wrote: On 1/10/21 4:16 PM, Paul Thomas wrote: On Fri, Jan 8, 2021 at 1:36 PM Radhey Shyam Pandey wrote: -Original Message- From: Paul Thomas Sent: Friday, January 8, 2021 9:27 PM To: Radhey

Re: [PATCH v3 2/2] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant

2021-01-11 Thread Marek Behún
On Mon, 11 Jan 2021 12:39:09 +0100 Pali Rohár wrote: > SFP GPON module Ubiquiti U-Fiber Instant has in its EEPROM stored nonsense > information. It claims that support all transceiver types including 10G > Ethernet which is not truth. So clear all claimed modes and set only one > mode which

[PATCH] Signed-off-by: giladreti

2021-01-11 Thread giladreti
Added support for pointer to mem register spilling, to allow the verifier to track pointer to valid memory addresses. Such pointers are returned for example by a successful call of the bpf_ringbuf_reserve helper. This patch was suggested as a solution by Yonghong Song. --- kernel/bpf/verifier.c

Re: [PATCH 1/7] soc: qcom: geni: move GENI_IF_DISABLE_RO to common header

2021-01-11 Thread Bjorn Andersson
On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > GENI_IF_DISABLE_RO is used by geni spi driver as well to check the > status if GENI, so move this to common header qcom-geni-se.h > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Vinod Koul > --- >

Re: [PATCH 3/3] scsi: sd: add support for expect_media_change_suspend flag

2021-01-11 Thread Martin Kepplinger
On 11.01.21 16:20, Martin Kepplinger wrote: Make the sd driver act appropriately when the user has set expect_media_change_suspend for a device. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git

[PATCH] xen/privcmd: allow fetching resource sizes

2021-01-11 Thread Roger Pau Monne
Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and addr = 0 in order to fetch the size of a specific resource. Add a shortcut to the default map resource path, since fetching the size requires no address to be passed in, and thus no VMA to setup. Fixes: 3ad0876554caf

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: > Unconditionally invoke sev_hardware_setup() when configuring SVM and > handle clearing the module params/variable 'sev' and 'sev_es' in > sev_hardware_setup(). This allows making said variables static within > sev.c and reduces the odds of a

Re: [PATCH] clocksource: davinci: move pr_fmt() before the includes

2021-01-11 Thread David Lechner
On 1/11/21 8:08 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We no longer need to undef pr_fmt if we define our own before including any headers. Signed-off-by: Bartosz Golaszewski --- Acked-by: David Lechner

KMSAN: uninit-value in __nla_validate_parse (2)

2021-01-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:73d62e81 kmsan: random: prevent boot-time reports in _mix_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=153a38f750 kernel config:

Re: [PATCH v3 1/2] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips

2021-01-11 Thread Marek Behún
Hi Pali, I have rewritten the commit message a little: The workaround for VSOL V2801F brand based GPON SFP modules added in commit 0d035bed2a4a ("net: sfp: VSOL V2801F / CarlitoxxPro CPGOS03-0490 v2.0 workaround") works only for IDs added explicitly to the list. Since there are rebranded modules

[PATCH] KVM: update depracated jump label API

2021-01-11 Thread Cun Li
The use of 'struct static_key' and 'static_key_false' is deprecated. Use the new API. Signed-off-by: Cun Li --- arch/x86/kvm/lapic.h | 6 +++--- arch/x86/kvm/mmu/mmu_audit.c | 4 ++-- arch/x86/kvm/x86.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v1 1/3] x86/cpufeatures: Add low performance CRC32C instruction CPU feature

2021-01-11 Thread hpa
On January 6, 2021 10:37:50 PM PST, Borislav Petkov wrote: >On Thu, Jan 07, 2021 at 02:19:06PM +0800, Tony W Wang-oc wrote: >> SSE4.2 on Zhaoxin CPUs are compatible with Intel. The presence of >> CRC32C instruction is enumerated by CPUID.01H:ECX.SSE4_2[bit 20] = 1. >> Some Zhaoxin CPUs declare

[PATCH 2/3] scsi: add expect_media_change_suspend sysfs device setting

2021-01-11 Thread Martin Kepplinger
Add a user-facing flag that sets expecting_media_change on runtime resume. That works around devices that send MEDIA_CHANGED when it actually is just resumed from suspend and the media can be expected not to have changed. Signed-off-by: Martin Kepplinger --- drivers/scsi/scsi_sysfs.c | 38

[PATCH 3/3] scsi: sd: add support for expect_media_change_suspend flag

2021-01-11 Thread Martin Kepplinger
Make the sd driver act appropriately when the user has set expect_media_change_suspend for a device. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index

[PATCH 1/3] scsi: add expecting_media_change flag to error path

2021-01-11 Thread Martin Kepplinger
SD Cardreaders (especially) sometimes lose the state during suspend and deliver a "media changed" unit attention when really only a (runtime) suspend/resume cycle has been done. For such devices, I/O fails when runtime PM is enabled, see below. Add a flag for drivers to use when this is

[PATCH 0/3] scsi: add runtime PM workaround for SD cardreaders

2021-01-11 Thread Martin Kepplinger
hi, In short: there are SD cardreaders that send MEDIA_CHANGED on runtime resume. We cannot use runtime PM with these devices as I/O basically always fails. I'd like to discuss a way to fix this or at least allow users to work around this problem: For the full background, the discussion started

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