Re: [PATCH 4/7] misc: Add driver for DAB IP found on Renesas R-Car devices

2021-03-02 Thread Laurent Pinchart
Hi Fabrizio, On Tue, Mar 02, 2021 at 12:20:17PM +, Fabrizio Castro wrote: > On 02 March 2021 11:17, Ezequiel Garcia wrote: > > On Mon, 1 Mar 2021 at 14:36, Fabrizio Castro wrote: > > > On 26 February 2021 10:38, Arnd Bergmann wrote: > > > > On Thu, Feb 25, 2021 at 11:51 PM Fabrizio Castro wrot

Re: [PATCH] i2c: mediatek: Get device clock-stretch time via dts

2021-03-02 Thread Qii Wang
Hi, On Tue, 2021-03-02 at 19:30 +0800, Ikjoon Jang wrote: > Hi Qii, > > > > @@ -1171,6 +1173,8 @@ static int mtk_i2c_parse_dt(struct device_node *np, > > struct mtk_i2c *i2c) > > if (i2c->clk_src_div == 0) > > return -EINVAL; > > > > + of_property_read_u32(np, "clock-

Re: [PATCH 1/1] Revert "iommu/iova: Retry from last rb tree node if iova search fails"

2021-03-02 Thread John Garry
On 01/03/2021 15:48, John Garry wrote: While max32_alloc_size indirectly tracks the largest*contiguous* available space, one of the ideas from which it grew was to simply keep count of the total number of free PFNs. If you're really spending significant time determining that the tree is full,

[PATCH AUTOSEL 5.11 45/52] riscv: Get rid of MAX_EARLY_MAPPING_SIZE

2021-03-02 Thread Sasha Levin
From: Alexandre Ghiti [ Upstream commit 0f02de4481da684aad6589aed0ea47bd1ab391c9 ] At early boot stage, we have a whole PGDIR to map the kernel, so there is no need to restrict the early mapping size to 128MB. Removing this define also allows us to simplify some compile time logic. This fixes l

[PATCH AUTOSEL 5.11 48/52] sysctl.c: fix underflow value setting risk in vm_table

2021-03-02 Thread Sasha Levin
From: Lin Feng [ Upstream commit 3b3376f222e3ab58367d9dd405cafd09d5e37b7c ] Apart from subsystem specific .proc_handler handler, all ctl_tables with extra1 and extra2 members set should use proc_dointvec_minmax instead of proc_dointvec, or the limit set in extra* never work and potentially echo

[PATCH AUTOSEL 5.10 04/47] scsi: ufs: WB is only available on LUN #0 to #7

2021-03-02 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit a2fca52ee640a04112ed9d9a137c940ea6ad288e ] Kernel stack violation when getting unit_descriptor/wb_buf_alloc_units from rpmb LUN. The reason is that the unit descriptor length is different per LU. The length of Normal LU is 45 while the one of rpmb LU is 35.

[PATCH AUTOSEL 5.11 43/52] PCI/ERR: Retain status from error notification

2021-03-02 Thread Sasha Levin
From: Keith Busch [ Upstream commit 387c72cdd7fb6bef650fb078d0f6ae9682abf631 ] Overwriting the frozen detected status with the result of the link reset loses the NEED_RESET result that drivers are depending on for error handling to report the .slot_reset() callback. Retain this status so that su

Re: [PATCH next v3 13/15] printk: remove logbuf_lock

2021-03-02 Thread Petr Mladek
On Thu 2021-02-25 21:24:36, John Ogness wrote: > Since the ringbuffer is lockless, there is no need for it to be > protected by @logbuf_lock. Remove @logbuf_lock. > > @console_seq, @exclusive_console_stop_seq, @console_dropped are > protected by @console_lock. > > Signed-off-by: John Ogness Rev

Re: [PATCH] phy: ralink: phy-mt7621-pci: fix XTAL bitmask

2021-03-02 Thread Vinod Koul
On 02-03-21, 11:54, Sergio Paracuellos wrote: > When this was rewriten to get mainlined and start to > use 'linux/bitfield.h' headers, XTAL_MASK was wrong. > It must mask three bits but only two were used. Hence > properly fix it to make things work. Applied, thanks -- ~Vinod

[PATCH AUTOSEL 5.11 42/52] i40e: Fix memory leak in i40e_probe

2021-03-02 Thread Sasha Levin
From: Keita Suzuki [ Upstream commit 58cab46c622d6324e47bd1c533693c94498e4172 ] Struct i40e_veb is allocated in function i40e_setup_pf_switch, and stored to an array field veb inside struct i40e_pf. However when i40e_setup_misc_vector fails, this memory leaks. Fix this by calling exit and teard

[PATCH AUTOSEL 5.10 07/47] iommu/vt-d: Clear PRQ overflow only when PRQ is empty

2021-03-02 Thread Sasha Levin
From: Lu Baolu [ Upstream commit 28a77185f1cd0650b664f546141433a7a615 ] It is incorrect to always clear PRO when it's set w/o first checking whether the overflow condition has been cleared. Current code assumes that if an overflow condition occurs it must have been cleared by earlier loop. H

[PATCH 4.14 000/176] 4.14.223-rc3 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.223 release. There are 176 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 Thu, 04 Mar 2021 12:22:05 +. Anything r

[PATCH 5.4 000/339] 5.4.102-rc3 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.102 release. There are 339 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 Thu, 04 Mar 2021 12:22:13 +. Anything re

[PATCH 4.19 000/247] 4.19.178-rc3 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.178 release. There are 247 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 Thu, 04 Mar 2021 12:22:09 +. Anything r

[PATCH 4.9 000/135] 4.9.259-rc2 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.259 release. There are 135 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 Thu, 04 Mar 2021 12:22:00 +. Anything re

[PATCH AUTOSEL 5.10 06/47] udf: fix silent AED tagLocation corruption

2021-03-02 Thread Sasha Levin
From: "Steven J. Magnani" [ Upstream commit 63c9e47a1642fc817654a1bc18a6ec4bbcc0f056 ] When extending a file, udf_do_extend_file() may enter following empty indirect extent. At the end of udf_do_extend_file() we revert prev_epos to point to the last written extent. However if we end up not addin

[PATCH AUTOSEL 5.10 03/47] scsi: ufs: Add a quirk to permit overriding UniPro defaults

2021-03-02 Thread Sasha Levin
From: Kiwoong Kim [ Upstream commit b1d0d2eb89d4e3a25b212a9d836587503537067e ] The UniPro specification states that attribute IDs of the following parameters are vendor-specific so some SoCs could have no regions at the defined addresses: - DME_LocalFC0ProtectionTimeOutVal - DME_LocalTC0Repla

[PATCH AUTOSEL 5.10 05/47] scsi: ufs: Introduce a quirk to allow only page-aligned sg entries

2021-03-02 Thread Sasha Levin
From: Kiwoong Kim [ Upstream commit 2b2bfc8aa519f696087475ed8e8c61850c673272 ] Some SoCs require a single scatterlist entry for smaller than page size, i.e. 4KB. When dispatching commands with more than one scatterlist entry under 4KB in size the following behavior is observed: A command to rea

[PATCH AUTOSEL 5.11 41/52] PCI: Fix pci_register_io_range() memory leak

2021-03-02 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit f6bda644fa3a7070621c3bf12cd657f69a42f170 ] Kmemleak reports: unreferenced object 0xc328de40 (size 64): comm "kworker/1:1", pid 21, jiffies 4294938212 (age 1484.670s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 e0 d8 fc eb 00 00 0

[PATCH AUTOSEL 5.11 46/52] s390/smp: __smp_rescan_cpus() - move cpumask away from stack

2021-03-02 Thread Sasha Levin
From: Heiko Carstens [ Upstream commit 62c8dca9e194326802b43c60763f856d782b225c ] Avoid a potentially large stack frame and overflow by making "cpumask_t avail" a static variable. There is no concurrent access due to the existing locking. Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gor

[PATCH AUTOSEL 5.11 49/52] scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling

2021-03-02 Thread Sasha Levin
From: Mike Christie [ Upstream commit d28d48c699779973ab9a3bd0e5acfa112bd4fdef ] If iscsi_prep_scsi_cmd_pdu() fails we try to add it back to the cmdqueue, but we leave it partially setup. We don't have functions that can undo the pdu and init task setup. We only have cleanup_task which can clean

[PATCH AUTOSEL 5.11 52/52] scsi: target: core: Prevent underflow for service actions

2021-03-02 Thread Sasha Levin
From: Aleksandr Miloserdov [ Upstream commit 14d24e2cc77411301e906a8cf41884739de192de ] TCM buffer length doesn't necessarily equal 8 + ADDITIONAL LENGTH which might be considered an underflow in case of Data-In size being greater than 8 + ADDITIONAL LENGTH. So truncate buffer length to prevent

[PATCH AUTOSEL 5.11 51/52] scsi: target: core: Add cmd length set before cmd complete

2021-03-02 Thread Sasha Levin
From: Aleksandr Miloserdov [ Upstream commit 1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad ] TCM doesn't properly handle underflow case for service actions. One way to prevent it is to always complete command with target_complete_cmd_with_length(), however it requires access to data_sg, which is not

Re: [PATCH v3 5/8] mm: Device exclusive memory access

2021-03-02 Thread Jason Gunthorpe
On Tue, Mar 02, 2021 at 07:57:58PM +1100, Alistair Popple wrote: > The intent was a driver could use HMM or some other mechanism to keep PTEs > synchronised if required. However I just looked at patch 8 in the series > again > and it appears I got this wrong when converting from the old migrati

[PATCH AUTOSEL 5.11 40/52] kbuild: clamp SUBLEVEL to 255

2021-03-02 Thread Sasha Levin
[ Upstream commit 9b82f13e7ef316cdc0a8858f1349f4defce3f9e0 ] Right now if SUBLEVEL becomes larger than 255 it will overflow into the territory of PATCHLEVEL, causing havoc in userspace that tests for specific kernel version. While userspace code tests for MAJOR and PATCHLEVEL, it doesn't test SUB

[PATCH AUTOSEL 5.4 02/33] i2c: rcar: optimize cacheline to minimize HW race condition

2021-03-02 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit 25c2e0fb5fefb8d7847214cf114d94c7aad8e9ce ] 'flags' and 'io' are needed first, so they should be at the beginning of the private struct. Signed-off-by: Wolfram Sang Reviewed-by: Niklas Söderlund Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin ---

[PATCH v3 1/2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-03-02 Thread Ban Tao
From: Ban Tao The Allwinner R818, A133, R329, V536 and V833 has a new PWM controller IP compared to the older Allwinner SoCs. Signed-off-by: Ban Tao --- v1->v2: 1.delete unnecessary code. 2.using a named define for some constants. 3.Add comment in sun50i_pwm_config function. 4.using dev_err_pr

[PATCH AUTOSEL 5.11 47/52] drivers/base/memory: don't store phys_device in memory blocks

2021-03-02 Thread Sasha Levin
From: David Hildenbrand [ Upstream commit e9a2e48e8704c9d20a625c6f2357147d03ea7b97 ] No need to store the value for each and every memory block, as we can easily query the value at runtime. Reshuffle the members to optimize the memory layout. Also, let's clarify what the interface once was use

[PATCH AUTOSEL 5.4 12/33] powerpc/perf: Record counter overflow always if SAMPLE_IP is unset

2021-03-02 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit d137845c973147a22622cc76c7b0bc16f6206323 ] While sampling for marked events, currently we record the sample only if the SIAR valid bit of Sampled Instruction Event Register (SIER) is set. SIAR_VALID bit is used for fetching the instruction address from Sampl

[PATCH AUTOSEL 5.4 11/33] powerpc: improve handling of unrecoverable system reset

2021-03-02 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 11cb0a25f71818ca7ab4856548ecfd83c169aa4d ] If an unrecoverable system reset hits in process context, the system does not have to panic. Similar to machine check, call nmi_exit() before die(). Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman

[PATCH 5.10 000/658] 5.10.20-rc3 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.20 release. There are 658 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 Thu, 04 Mar 2021 12:32:41 +. Anything re

[PATCH 5.4 000/338] 5.4.102-rc4 review

2021-03-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.102 release. There are 338 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 Thu, 04 Mar 2021 12:31:21 +. Anything re

[PATCH] This patch fixes the check-patch errors

2021-03-02 Thread Vikas Kumar Sharma
ERROR: Macros with complex values should be enclosed in parentheses. Signed-off-by: Vikas Kumar Sharma --- drivers/staging/ks7010/ks_hostif.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks701

Re: [RFC 09/13] iommu/arm-smmu: Make use of dev_64bit_mmio_supported()

2021-03-02 Thread Nicolas Saenz Julienne
Hi Arnd, thanks for the reviews! On Tue, 2021-03-02 at 10:32 +0100, Arnd Bergmann wrote: > On Fri, Feb 26, 2021 at 3:03 PM Nicolas Saenz Julienne > wrote: > > > if (smmu->impl && unlikely(smmu->impl->write_reg)) > > smmu->impl->write_reg(smmu, page, offset, val); > > -

[PATCH AUTOSEL 5.4 15/33] iommu/amd: Fix performance counter initialization

2021-03-02 Thread Sasha Levin
From: Suravee Suthikulpanit [ Upstream commit 6778ff5b21bd8e78c8bd547fd66437cf2657fd9b ] Certain AMD platforms enable power gating feature for IOMMU PMC, which prevents the IOMMU driver from updating the counter while trying to validate the PMC functionality in the init_iommu_perf_ctr(). This re

Re: [PATCH 3/3] [v4] lib/vsprintf: no_hash_pointers prints all addresses as unhashed

2021-03-02 Thread Marco Elver
On Tue, 2 Mar 2021 at 12:51, Geert Uytterhoeven wrote: > Hi Timur, > > On Sun, Feb 14, 2021 at 5:17 PM Timur Tabi wrote: > > If the no_hash_pointers command line parameter is set, then > > printk("%p") will print pointers as unhashed, which is useful for > > debugging purposes. This change appli

[PATCH AUTOSEL 5.4 08/33] powerpc/pci: Add ppc_md.discover_phbs()

2021-03-02 Thread Sasha Levin
From: Oliver O'Halloran [ Upstream commit 5537fcb319d016ce387f818dd774179bc03217f5 ] On many powerpc platforms the discovery and initalisation of pci_controllers (PHBs) happens inside of setup_arch(). This is very early in boot (pre-initcalls) and means that we're initialising the PHB long befor

Re: [PATCH] perf buildid-cache: Add test for PE executable

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Sat, Feb 27, 2021 at 11:17:01AM +0100, Jiri Olsa escreveu: > On Fri, Feb 26, 2021 at 08:47:36PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Feb 25, 2021 at 09:35:04PM +0100, Jiri Olsa escreveu: > > > On Wed, Feb 24, 2021 at 02:59:16PM -0500, Nicholas Fraser wrote: > > > > From 9fd0b3889f0

[PATCH AUTOSEL 5.4 03/33] udf: fix silent AED tagLocation corruption

2021-03-02 Thread Sasha Levin
From: "Steven J. Magnani" [ Upstream commit 63c9e47a1642fc817654a1bc18a6ec4bbcc0f056 ] When extending a file, udf_do_extend_file() may enter following empty indirect extent. At the end of udf_do_extend_file() we revert prev_epos to point to the last written extent. However if we end up not addin

[PATCH] drm: panel-simple: fix missing DRM_MODE_CONNECTOR_DPI for Ortustech com37h3m

2021-03-02 Thread H. Nikolaus Schaller
Without we get an "Specify missing connector_type" warning. Fixes: ddb8e853dc85 ("drm/panel: panel-simple: validate panel description") Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/panel/panel-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-sim

[PATCH AUTOSEL 5.4 14/33] powerpc/64: Fix stack trace not displaying final frame

2021-03-02 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit e3de1e291fa58a1ab0f471a4b458eff2514e4b5f ] In commit bf13718bc57a ("powerpc: show registers when unwinding interrupt frames") we changed our stack dumping logic to show the full registers whenever we find an interrupt frame on the stack. However we didn'

Re: [PATCH 5.10 000/661] 5.10.20-rc2 review

2021-03-02 Thread Greg Kroah-Hartman
On Tue, Mar 02, 2021 at 11:38:36AM +, Guillaume Tucker wrote: > On 01/03/2021 19:37, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.20 release. > > There are 661 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH] phy: ti: j721e-wiz: add missing call to of_node_put()

2021-03-02 Thread Vinod Koul
On 25-02-21, 17:17, Yang Li wrote: > In one of the error paths of the for_each_child_of_node() loop in > of_property_read_u32, add missing call to of_node_put(). > > Fix the following coccicheck warning: > ./drivers/phy/ti/phy-j721e-wiz.c:786:1-23: WARNING: Function > "for_each_child_of_node" shou

[PATCH v13 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-02 Thread Dmitry Osipenko
Display controller (DC) performs isochronous memory transfers, and thus, has a requirement for a minimum memory bandwidth that shall be fulfilled, otherwise framebuffer data can't be fetched fast enough and this results in a DC's data-FIFO underflow that follows by a visual corruption. The Memory

[PATCH v4 4/5] soc/tegra: pmc: Print out domain name when reset fails to acquire

2021-03-02 Thread Dmitry Osipenko
Print out domain name when reset fails to acquire for debugging purposes and to make formatting of GENPD errors consistent in the driver. Tested-by: Peter Geis # Ouya T30 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- d

Re: [PATCH] perf tools: Fix documentation of verbose options

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 26, 2021 at 10:31:44AM -0800, Ian Rogers escreveu: > Option doesn't take a value, make sure the man pages agree. For example: > > $ perf evlist --verbose=1 > Error: option `verbose' takes no value Thanks, applied. - Arnaldo > Signed-off-by: Ian Rogers > --- > tools/perf/Documen

Re: [PATCH v2] perf docs: Add man pages to see also

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 22, 2021 at 10:01:12AM -0800, Ian Rogers escreveu: > On Thu, Nov 19, 2020 at 10:30 PM Ian Rogers wrote: > > > > Add all other man pages to the "see also" list except for > > perf-script-perl and perf-script-python that are linked to from > > perf-script. > > > > v2. Fix accidentally li

[gustavoars-linux:testing/xfs] BUILD SUCCESS 4f1b90d9c7525ee0cd576dc9779b76bcabe7c98c

2021-03-02 Thread kernel test robot
-a014-20210301 x86_64 randconfig-a012-20210301 x86_64 randconfig-a011-20210301 x86_64 randconfig-a006-20210302 x86_64 randconfig-a001-20210302 x86_64 randconfig-a004-20210302 x86_64 randconfig-a002-20210302 x86_64

Re: [PATCH 01/13] rcu/nocb: Fix potential missed nocb_timer rearm

2021-03-02 Thread Frederic Weisbecker
On Mon, Mar 01, 2021 at 05:48:29PM -0800, Paul E. McKenney wrote: > On Wed, Feb 24, 2021 at 11:06:06PM +0100, Frederic Weisbecker wrote: > > On Wed, Feb 24, 2021 at 10:37:09AM -0800, Paul E. McKenney wrote: > > > On Tue, Feb 23, 2021 at 01:09:59AM +0100, Frederic Weisbecker wrote: > > > > Two situa

Re: [PATCH] perf diff: Don't crash on freeing errno-session

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 02, 2021 at 01:47:55PM +0900, Namhyung Kim escreveu: > Hello, > > On Tue, Mar 2, 2021 at 11:35 AM Dmitry Safonov wrote: > > > > __cmd_diff() sets result of perf_session__new() to d->session. > > In case of failure, it's errno and perf-diff may crash with: > > failed to open perf.data:

Re: [PATCH] perf trace: Ensure read cmdlines are null terminated.

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 01, 2021 at 04:50:50PM +0900, Namhyung Kim escreveu: > Hi Ian, > > On Sat, Feb 27, 2021 at 7:14 AM Ian Rogers wrote: > > > > Issue detected by address sanitizer. > > > > Fixes: cd4ceb63438e (perf util: Save pid-cmdline mapping into tracing > > header) > > Signed-off-by: Ian Rogers >

Re: [PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-03-02 Thread Petr Mladek
On Tue 2021-03-02 11:45:27, John Ogness wrote: > On 2021-03-01, Petr Mladek wrote: > >> The kmsg_dumper can be called from any context and CPU, possibly > >> from multiple CPUs simultaneously. Since the writing of the buffer > >> can occur from a later scheduled work queue, the oops buffer must >

Re: [PATCH v3 1/3] iommu/arm-smmu: Add support for driver IOMMU fault handlers

2021-03-02 Thread Robin Murphy
On 2021-02-25 17:51, Jordan Crouse wrote: Call report_iommu_fault() to allow upper-level drivers to register their own fault handlers. Signed-off-by: Jordan Crouse --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/

Re: [PATCH v17 0/9] Free some vmemmap pages of HugeTLB page

2021-03-02 Thread Chen Huang
在 2021/2/25 21:21, Muchun Song 写道: > Hi all, > > This patch series will free some vmemmap pages(struct page structures) > associated with each hugetlbpage when preallocated to save memory. > > In order to reduce the difficulty of the first version of code review. >>From this version, we disabl

Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-02 Thread Bean Huo
On Fri, 2021-02-26 at 16:35 +0900, Daejun Park wrote: > +static void ufshpb_set_unmap_cmd(unsigned char *cdb, struct > ufshpb_region *rgn) > +{ > + cdb[0] = UFSHPB_WRITE_BUFFER; > + cdb[1] = rgn ? UFSHPB_WRITE_BUFFER_INACT_SINGLE_ID : > + UFSHPB_WRITE_BUFFER_INAC

Re: [RFC PATCH] mtd: add OTP (one-time-programmable) erase ioctl

2021-03-02 Thread Miquel Raynal
Hi Michael, Michael Walle wrote on Tue, 2 Mar 2021 12:09:27 +0100: > This may sound like a contradiction but some SPI-NOR flashes really > support erasing their OTP region until it is finally locked. Having the > possibility to erase an OTP region might come in handy during > development. > >

[Patch v2 2/4] dt-bindings: spi: spi-nxp-fspi: Add imx8dxl support

2021-03-02 Thread Kuldeep Singh
Add support for nxp,imx8dxl-fspi, do the bindings document. Signed-off-by: Kuldeep Singh --- v2: New patch. Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt b/Documentation/devicetr

[Patch v2 3/4] spi: spi-nxp-fspi: Add imx8dxl driver support

2021-03-02 Thread Kuldeep Singh
From: Han Xu Add driver support for imx8dxl which support read through IP bus only and disable AHB bus due to an IC errata. Use the pre-defined quirk FSPI_QUIRK_USE_IP_ONLY directly in device-type data to disable AHB read. Signed-off-by: Han Xu Signed-off-by: Kuldeep Singh --- v2: No update

[PATCH] ASoC: fsl_xcvr: Use devm_platform_ioremap_resource_byname() to simplify code

2021-03-02 Thread Tang Bin
In this function, devm_platform_ioremap_resource_byname() should be suitable to simplify code. Signed-off-by: Tang Bin --- sound/soc/fsl/fsl_xcvr.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 6dd0a5fcd455.

[PATCH AUTOSEL 5.4 24/33] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register

2021-03-02 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit 8f03c30cb814213e36032084a01f49a9e604a3e3 ] The PC_DBG_ECO_CNTL register on the Adreno A5xx family gets programmed to some different values on a per-model basis. At least, this is what we intend to do here; Unfortunately, though, this register i

[PATCH AUTOSEL 5.4 23/33] PCI: mediatek: Add missing of_node_put() to fix reference leak

2021-03-02 Thread Sasha Levin
From: Krzysztof Wilczyński [ Upstream commit 42814c438aac79746d310f413a27d5b0b959c5de ] The for_each_available_child_of_node helper internally makes use of the of_get_next_available_child() which performs an of_node_get() on each iteration when searching for next available child node. Should an

[Patch v2 1/4] spi: spi-nxp-fspi: Add support for IP read only

2021-03-02 Thread Kuldeep Singh
Add support for disabling AHB bus and read entire flash contents via IP bus only. Please note, this enables IP bus read using a quirk which can be enabled directly in device-type data or in existence of an errata where AHB bus may need to be disabled. Signed-off-by: Kuldeep Singh --- v2: No updat

[Patch v2 4/4] spi: spi-nxp-fspi: Implement errata workaround for LS1028A

2021-03-02 Thread Kuldeep Singh
Errata ERR050568 description says that "Flash access by FlexSPI AHB command may not work with platform frequency equal to 300 MHz" on LS1028A. By default, smaller length reads(equal to RX FIFO size) are done by IP bus and larger length reads using AHB bus. For adding errata workaround, use IP bus

Re: [RFC PATCH 1/1] x86/kprobes: Use int3 instead of debug trap for single-step

2021-03-02 Thread Masami Hiramatsu
On Tue, 2 Mar 2021 09:54:43 +0100 Peter Zijlstra wrote: > On Tue, Mar 02, 2021 at 09:41:32AM +0100, Peter Zijlstra wrote: > > > Aside of a few nits: > > something like so.. Thanks Peter, I completely agree with that change! Let me update the patch. > > --- a/arch/x86/kernel/kprobes/core.c >

Re: [PATCH 3/3] [v4] lib/vsprintf: no_hash_pointers prints all addresses as unhashed

2021-03-02 Thread Geert Uytterhoeven
Hi Marco, On Tue, Mar 2, 2021 at 1:45 PM Marco Elver wrote: > On Tue, 2 Mar 2021 at 12:51, Geert Uytterhoeven wrote: > > On Sun, Feb 14, 2021 at 5:17 PM Timur Tabi wrote: > > > If the no_hash_pointers command line parameter is set, then > > > printk("%p") will print pointers as unhashed, which

Re: [PATCH] selftests/sgx: fix EINIT failure dueto SGX_INVALID_SIGNATURE

2021-03-02 Thread Jarkko Sakkinen
Nit: "due to" Start with capital letter "Fix" On Tue, Mar 02, 2021 at 01:06:52PM +0800, Tianjia Zhang wrote: > > > On 3/1/21 5:54 PM, Jarkko Sakkinen wrote: > > On Mon, Mar 01, 2021 at 01:18:36PM +0800, Tianjia Zhang wrote: > > > q2 is not always 384-byte length. Sometimes it only has 383-byte.

Re: [PATCH 0/6] coresight: Patches for v5.12 (perf tools)

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 24, 2021 at 09:48:29AM -0700, Mathieu Poirier escreveu: > Good day Arnaldo, > > I noticed there is a couple of patchsets [1][2] that haven't made it > to your tree for the coming v5.12 cycle. Do you think that can still > be done? > > I tallied the patches here to make it easier for

[PATCH AUTOSEL 5.10 13/47] powerpc/pci: Add ppc_md.discover_phbs()

2021-03-02 Thread Sasha Levin
From: Oliver O'Halloran [ Upstream commit 5537fcb319d016ce387f818dd774179bc03217f5 ] On many powerpc platforms the discovery and initalisation of pci_controllers (PHBs) happens inside of setup_arch(). This is very early in boot (pre-initcalls) and means that we're initialising the PHB long befor

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-02 Thread Bharat Bhushan
Hi Ankur, > -Original Message- > From: Ankur Arora > Sent: Friday, February 26, 2021 6:24 AM > To: Bharat Bhushan > Cc: alex.william...@redhat.com; ankur.a.ar...@oracle.com; linux- > ker...@vger.kernel.org; Sunil Kovvuri Goutham ; > termi...@gmail.com > Subject: [EXT] Re: vfio-pci: prote

Re: [PATCH] This patch fixes the check-patch errors

2021-03-02 Thread Greg KH
On Tue, Mar 02, 2021 at 06:12:54PM +0530, Vikas Kumar Sharma wrote: > Disclaimer:This message is intended only for the designated recipient(s). > It may contain confidential or proprietary information and may be subject > to other confidentiality protections. If you are not a designated > recipi

[PATCH AUTOSEL 5.4 19/33] Input: applespi - don't wait for responses to commands indefinitely.

2021-03-02 Thread Sasha Levin
From: Ronald Tschalär [ Upstream commit 0ce1ac23149c6da939a5926c098c270c58c317a0 ] The response to a command may never arrive or it may be corrupted (and hence dropped) for some reason. While exceedingly rare, when it did happen it blocked all further commands. One way to fix this was to do a su

[PATCH v3 2/2] pwm: sun8i-v536: document device tree bindings

2021-03-02 Thread Ban Tao
From: Ban Tao This adds binding documentation for sun8i-v536 SoC PWM driver. Signed-off-by: Ban Tao --- .../bindings/pwm/pwm-sun8i-v536.txt | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sun8i-v536.txt diff --

Re: [PATCH v2 07/10] clocksource/drivers/hyper-v: Handle vDSO differences inline

2021-03-02 Thread Daniel Lezcano
On 02/03/2021 02:29, Michael Kelley wrote: > From: Daniel Lezcano Sent: Monday, March 1, 2021 > 4:22 AM >> >> On 01/03/2021 02:15, Michael Kelley wrote: >>> While the driver for the Hyper-V Reference TSC and STIMERs is architecture >>> neutral, vDSO is implemented for x86/x64, but not for ARM64.

Re: [PATCH] perf tools: Fix event's pmu name parsing

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 01, 2021 at 01:23:15PM +0100, Jiri Olsa escreveu: > Jin Yao reported parser error for software event: > > # perf stat -e software/r1a/ -a -- sleep 1 > event syntax error: 'software/r1a/' >\___ parser error > > This happens after commit 8c3b1ba0e7ea, where n

[PATCH AUTOSEL 5.4 21/33] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-02 Thread Sasha Levin
From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also 2cf5a03cb29d ("PCI/keystone: Fix

[Patch v2 0/4] NXP Flexspi driver patches

2021-03-02 Thread Kuldeep Singh
Hi Mark, This patchset involves changes in NXP Flexspi driver. Patch1 adds support for disabling AHB and enabling IP read only using a quirk which is later used by patch3 and patch4. Patch3 and Patch4 are not related to each and are rather dependent on patch1 and that's why I kept them in series.

[PATCH AUTOSEL 5.4 13/33] HID: logitech-dj: add support for the new lightspeed connection iteration

2021-03-02 Thread Sasha Levin
From: Filipe Laíns [ Upstream commit fab3a95654eea01d6b0204995be8b7492a00d001 ] This new connection type is the new iteration of the Lightspeed connection and will probably be used in some of the newer gaming devices. It is currently use in the G Pro X Superlight. This patch should be backporte

Re: [PATCH] ASoC: soc-core: Prevent warning if no DMI table is present

2021-03-02 Thread Mark Brown
On Tue, Mar 02, 2021 at 09:27:12AM +, Jon Hunter wrote: > Many systems do not provide a DMI table and on these systems a warning, > such as the following, is printed on boot ... > > WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! > > If DMI support is enabled in the kern

[PATCH v4 0/5] Tegra PMC driver fixes and improvements

2021-03-02 Thread Dmitry Osipenko
Hi, This is a continuation of [1]. I decided to factor out PMC patches into a separate series to ease reviewing and applying of the patches. This series is a prerequisite for enabling dynamic power management by Tegra drivers that are using PMC domain. [1] https://patchwork.ozlabs.org/project/lin

Re: [PATCH 0/6] coresight: Patches for v5.12 (perf tools)

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 24, 2021 at 09:48:29AM -0700, Mathieu Poirier escreveu: > Good day Arnaldo, > > I noticed there is a couple of patchsets [1][2] that haven't made it > to your tree for the coming v5.12 cycle. Do you think that can still > be done? Thanks, applied, unfortunately the window is closed

Re: [PATCH 1/2] microblaze: syscalls: switch to generic syscalltbl.sh

2021-03-02 Thread Michal Simek
On 3/1/21 3:23 PM, Masahiro Yamada wrote: > Many architectures duplicate similar shell scripts. > > This commit converts microblaze to use scripts/syscalltbl.sh. > > Signed-off-by: Masahiro Yamada > --- > > arch/microblaze/kernel/syscall_table.S| 3 +- > arch/microblaze/kernel/sysc

Re: [PATCH 5.4 000/340] 5.4.102-rc1 review

2021-03-02 Thread Greg Kroah-Hartman
On Tue, Mar 02, 2021 at 02:42:15PM +0800, Hanjun Guo wrote: > Hi Greg, > > On 2021/3/2 0:09, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.102 release. > > There are 340 patches in this series, all will be posted as a response > > to this one. If anyone ha

Re: [PATCH] ASoC: codec: Omit superfluous error message injz4760_codec_probe()

2021-03-02 Thread tangbin
Hi Paul: On 2021/3/2 20:23, Paul Cercueil wrote: Hi Tang, Le mar. 2 mars 2021 à 20:11, Tang Bin a écrit : The function devm_platform_ioremap_resource has already contained error message, so remove the redundant dev_err here. Signed-off-by: Tang Bin ---  sound/soc/codecs/jz4760.c | 1 -  1 f

[PATCH AUTOSEL 4.9 05/10] sparc32: Limit memblock allocation to low memory

2021-03-02 Thread Sasha Levin
From: Andreas Larsson [ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ] Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does not work together with e.g. phys_to_virt

Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-02 Thread Bean Huo
On Fri, 2021-02-26 at 16:35 +0900, Daejun Park wrote: > > > static void __ufshpb_evict_region(struct ufshpb_lu *hpb, > struct ufshpb_region *rgn) > { > @@ -1209,6 +1579,16 @@ static void ufshpb_lu_parameter_init(struct > ufs_hba *hba, > u32 entries_per_rgn;

[RFC PATCH v4 5/9] KVM: selftests: Add a helper to get system configured THP page size

2021-03-02 Thread Yanan Wang
If we want to have some tests about transparent hugepages, the system configured THP hugepage size should better be known by the tests, which can be used for kinds of alignment or guest memory accessing of vcpus... So it makes sense to add a helper to get the transparent hugepage size. With VM_MEM

[PATCH AUTOSEL 4.9 07/10] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-02 Thread Sasha Levin
From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also 2cf5a03cb29d ("PCI/keystone: Fix

[RFC PATCH v4 9/9] KVM: selftests: Add a test for kvm page table code

2021-03-02 Thread Yanan Wang
This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() can cover the conditions where a single vcpu or multiple vcpus access guest pages within the

[PATCH AUTOSEL 4.14 06/13] sparc32: Limit memblock allocation to low memory

2021-03-02 Thread Sasha Levin
From: Andreas Larsson [ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ] Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does not work together with e.g. phys_to_virt

[PATCH AUTOSEL 4.9 04/10] powerpc/perf: Record counter overflow always if SAMPLE_IP is unset

2021-03-02 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit d137845c973147a22622cc76c7b0bc16f6206323 ] While sampling for marked events, currently we record the sample only if the SIAR valid bit of Sampled Instruction Event Register (SIER) is set. SIAR_VALID bit is used for fetching the instruction address from Sampl

[PATCH AUTOSEL 4.14 07/13] x86, build: use objtool mcount

2021-03-02 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 6dafca97803309c3cb5148d449bfa711e41ddef2 ] Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcount_loc sections for dynamic ftrace with Clang and gcc <5 (later versions of gcc use -mrecord-mcount). Signed-off-by: Sami

[PATCH AUTOSEL 4.14 05/13] powerpc/perf: Record counter overflow always if SAMPLE_IP is unset

2021-03-02 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit d137845c973147a22622cc76c7b0bc16f6206323 ] While sampling for marked events, currently we record the sample only if the SIAR valid bit of Sampled Instruction Event Register (SIER) is set. SIAR_VALID bit is used for fetching the instruction address from Sampl

Re: [PATCH 1/2] perf daemon: Fix control fifo permissions

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 01, 2021 at 01:25:09PM +0100, Jiri Olsa escreveu: > Add proper mode for mkfifo calls to get read and > write permissions for user. We can't use O_RDWR > in here, changing to standard permission value. Thanks, applied both patches to perf/urgent. - Arnaldo > Fixes: 6a6d1804a190 ("pe

[PATCH AUTOSEL 4.14 08/13] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-02 Thread Sasha Levin
From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also 2cf5a03cb29d ("PCI/keystone: Fix

[RFC PATCH v4 6/9] KVM: selftests: Add a helper to get system default hugetlb page size

2021-03-02 Thread Yanan Wang
If HUGETLB is configured in the host kernel, then we can know the system default hugetlb page size through *cat /proc/meminfo*. Otherwise, we will not see the information of hugetlb pages in file /proc/meminfo if it's not configured. So add a helper to determine whether HUGETLB is configured and th

[RFC PATCH v4 2/9] tools headers: Add a macro to get HUGETLB page sizes for mmap

2021-03-02 Thread Yanan Wang
We know that if a system supports multiple hugetlb page sizes, the desired hugetlb page size can be specified in bits [26:31] of the flag arguments. The value in these 6 bits will be the shift of each hugetlb page size. So add a macro to get the page size shift and then calculate the corresponding

[RFC PATCH v4 0/9] KVM: selftests: some improvement and a new test for kvm page table

2021-03-02 Thread Yanan Wang
Hi, This v4 series can mainly include two parts. Based on kvm queue branch: https://git.kernel.org/pub/scm/virt/kvm/kvm.git/log/?h=queue Links of v1: https://lore.kernel.org/lkml/20210208090841.333724-1-wangyana...@huawei.com/ Links of v2: https://lore.kernel.org/lkml/20210225055940.18748-1-wang

[RFC PATCH v4 3/9] KVM: selftests: Use flag CLOCK_MONOTONIC_RAW for timing

2021-03-02 Thread Yanan Wang
In addition to function of CLOCK_MONOTONIC, flag CLOCK_MONOTONIC_RAW can also shield possiable impact of NTP, which can provide more robustness. Suggested-by: Vitaly Kuznetsov Signed-off-by: Yanan Wang Reviewed-by: Ben Gardon --- tools/testing/selftests/kvm/demand_paging_test.c | 8

[PATCH AUTOSEL 4.9 06/10] x86, build: use objtool mcount

2021-03-02 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 6dafca97803309c3cb5148d449bfa711e41ddef2 ] Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcount_loc sections for dynamic ftrace with Clang and gcc <5 (later versions of gcc use -mrecord-mcount). Signed-off-by: Sami

[RFC PATCH v4 8/9] KVM: selftests: Adapt vm_userspace_mem_region_add to new helpers

2021-03-02 Thread Yanan Wang
With VM_MEM_SRC_ANONYMOUS_THP specified in vm_userspace_mem_region_add(), we have to get the transparent hugepage size for HVA alignment. With the new helpers, we can use get_backing_src_pagesz() to check whether THP is configured and then get the exact configured hugepage size. As different archi

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