Re: [v5] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged

2020-10-02 Thread Michal Hocko
On Wed 30-09-20 15:03:11, Mike Kravetz wrote: > On 9/30/20 1:47 PM, Vijay Balakrishna wrote: > > On 9/30/2020 11:20 AM, Mike Kravetz wrote: > >> On 9/29/20 9:49 AM, Vijay Balakrishna wrote: > >> > >> Sorry for jumping in so late. Should we use this as an opportunity to > >> also fix up the message

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-10-02 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 06:58:53AM -0700, Joe Perches wrote: > On Wed, 2020-09-30 at 13:57 +0200, Greg Kroah-Hartman wrote: > > Kees, and Rafael, I don't know if you saw this proposal from Joe for > > sysfs files, questions below: > > https://lore.kernel.org/linux-pm/5d606519698ce4c8f1203a2b35797d

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Michael Kerrisk (man-pages)
On Fri, 2 Oct 2020 at 12:49, Jonathan Wakely wrote: > > On Fri, 2 Oct 2020 at 09:28, Alejandro Colomar via Gcc > wrote: > > However, it might be good that someone starts a page called > > 'type_qualifiers(7)' or something like that. > > Who is this for? Who is trying to learn C from man pages? S

Re: [PATCH v2] net: usb: rtl8150: prevent set_ethernet_addr from setting uninit address

2020-10-02 Thread Anant Thazhemadam
On 02/10/20 7:45 am, David Miller wrote: > From: Anant Thazhemadam > Date: Thu, 1 Oct 2020 13:02:20 +0530 > >> When get_registers() fails (which happens when usb_control_msg() fails) >> in set_ethernet_addr(), the uninitialized value of node_id gets copied >> as the address. >> >> Checking for

Re: linux tooling mailing list

2020-10-02 Thread Nick Clifton
Hi Guys, >> linux-toolcha...@vger.kernel.org > Created. I have been able to subscribe to this list, so it looks like thunderbirds are go... Cheers Nick

Re: [RFC] Status of orinoco_usb

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 12:35:17PM +0200, Sebastian Andrzej Siewior wrote: > I was trying to get rid of the in in_softirq() in ezusb_req_ctx_wait() > within the orinoco usb driver, > drivers/net/wireless/intersil/orinoco/orinoco_usb.c. A small snippet: > > | static void ezusb_req_ctx_wait(struct e

Re: [PATCH v3] PCI: hv: Fix hibernation in case interrupts are not re-created

2020-10-02 Thread Lorenzo Pieralisi
On Fri, Oct 02, 2020 at 01:51:58AM -0700, Dexuan Cui wrote: > pci_restore_msi_state() directly writes the MSI/MSI-X related registers > via MMIO. On a physical machine, this works perfectly; for a Linux VM > running on a hypervisor, which typically enables IOMMU interrupt remapping, > the hyperviso

Re: [PATCH 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

2020-10-02 Thread Jason Gunthorpe
On Fri, Oct 02, 2020 at 02:17:49AM -0700, Michel Lespinasse wrote: > Also FYI I was going to play with these patches a bit to help answer > these questions on my own, but wasn't able to easily apply them as > they came lightly mangled (whitespace issues) when I saved them. Me too It seems OK, you

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Grygorii Strashko
On 02/10/2020 02:19, Laurent Pinchart wrote: Hi Saravana, Thank you for the patch. On Thu, Oct 01, 2020 at 03:59:51PM -0700, Saravana Kannan wrote: When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when adding all top level devices") optimized the fwnode parsing when all top lev

Re: [PATCH] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-02 Thread Jason Gunthorpe
On Wed, Sep 30, 2020 at 04:49:50PM -0400, Peter Xu wrote: > Both of the mm pointers are not needed after commit 7a4830c380f3 ("mm/fork: > Pass new vma pointer into copy_page_range()"). > > Reported-by: Kirill A. Shutemov > Signed-off-by: Peter Xu > --- > include/linux/mm.h | 3 +-- > kernel/fo

[PATCH v2] net: hso: do not call unregister if not registered

2020-10-02 Thread Greg KH
From: Tuba Yavuz On an error path inside the hso_create_net_device function of the hso driver, hso_free_net_device gets called. This causes a use-after-free and a double-free if register_netdev has not been called yet as hso_free_net_device calls unregister_netdev regardless. I think the driver s

[PATCH v2 0/3] Clarify abstract scale usage for power values in Energy Model, EAS and IPA

2020-10-02 Thread Lukasz Luba
Hi all, The Energy Model supports power values expressed in an abstract scale. This has an impact on Intelligent Power Allocation (IPA) and should be documented properly. There is also a need to update the DT binding for the 'sustainable-power' and allow it to have abstract scale as well. Changes

[PATCH v2 1/3] docs: Clarify abstract scale usage for power values in Energy Model

2020-10-02 Thread Lukasz Luba
The Energy Model (EM) can store power values in milli-Watts or in abstract scale. This might cause issues in the subsystems which use the EM for estimating the device power, such as: - mixing of different scales in a subsystem which uses multiple (cooling) devices (e.g. thermal Intelligent Power

[PATCH v2 2/3] PM / EM: update the comments related to power scale

2020-10-02 Thread Lukasz Luba
The Energy Model supports power values expressed in milli-Watts or in an 'abstract scale'. Update the related comments is the code to reflect that state. Signed-off-by: Lukasz Luba --- include/linux/energy_model.h | 11 +-- kernel/power/energy_model.c | 2 +- 2 files changed, 6 inserti

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Michael Kerrisk (man-pages)
Hi Alex, On 10/2/20 10:48 AM, Alejandro Colomar wrote: > Hi Michael, > > On 2020-10-02 10:24, Alejandro Colomar wrote: >> On 2020-10-01 19:32, Paul Eggert wrote: >> > For 'void *' you should also mention that one cannot use arithmetic on >> > void * pointers, so they're special in that way too.

[PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-02 Thread Lukasz Luba
Update the documentation for the binding 'sustainable-power' and allow to provide values in an abstract scale. It is required when the cooling devices use an abstract scale for their power values. Signed-off-by: Lukasz Luba --- .../devicetree/bindings/thermal/thermal-zones.yaml | 13 +--

Re: [GIT PULL]: Generic PHY updates for v5.10

2020-10-02 Thread Greg KH
On Fri, Oct 02, 2020 at 03:24:12PM +0530, Vinod Koul wrote: > Hello Greg, > > Please pull to receive updates for Generic phy susbsystem. Bunch of new > drivers and device support and a new core API this time. > > The following changes since commit ad7a7acaedcf45071c822b6c983f9c1e084041c9: > >

Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-10-02 Thread Lorenzo Pieralisi
On Fri, Sep 18, 2020 at 11:08:29AM +0800, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) Appli

Re: [PATCH 2/2] ASoC: tas2764: Add the driver for the TAS2764

2020-10-02 Thread Dan Murphy
Mark Thanks for the review On 10/1/20 11:25 AM, Mark Brown wrote: On Wed, Sep 30, 2020 at 11:38:09AM -0500, Dan Murphy wrote: This all looks good - a few very minor things below but nothing substantial: + default: + dev_err(tas2764->dev, "Not supported evevt\n"); +

Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-10-02 Thread Lorenzo Pieralisi
On Fri, Sep 18, 2020 at 11:08:29AM +0800, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) Appli

Re: [PATCH] media: rcar-vin: rcar-dma: Fix setting VNIS_REG for RAW8 formats

2020-10-02 Thread Niklas Söderlund
Hi Lad, Thanks for catching and fixing this. On 2020-10-02 11:26:52 +0100, Lad Prabhakar wrote: > pixelformat in vin priv structure holds V4L2_PIX_FMT_* and not > MEDIA_BUS_FMT_* so make sure we check against V4L2_PIX_FMT_* formats > while setting the VNIS_REG. > > Fixes: 8c3e0f67df6c9 ("media:

Re: [PATCH -next] crypto: cpt - simplify the return expression of cav_register_algs

2020-10-02 Thread Herbert Xu
On Mon, Sep 21, 2020 at 04:24:28PM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > drivers/crypto/cavium/cpt/cptvf_algs.c | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: htt

Re: [PATCH] crypto: ccp - fix error handling

2020-10-02 Thread Herbert Xu
On Mon, Sep 21, 2020 at 01:34:35PM +0200, Pavel Machek wrote: > Fix resource leak in error handling. > > Signed-off-by: Pavel Machek (CIP) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH -next] crypto: marvell/octeontx - simplify the return expression of create_sysfs_eng_grps_info()

2020-10-02 Thread Herbert Xu
On Mon, Sep 21, 2020 at 09:10:07PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) Patch applied. Thanks. -- Email: Herbert X

Re: [RFC] Status of orinoco_usb

2020-10-02 Thread Sebastian Andrzej Siewior
On 2020-10-02 13:37:25 [+0200], Greg Kroah-Hartman wrote: > > Is it possible to end up here in softirq context or is this a relic? > > I think it's a relic of where USB host controllers completed their urbs > in hard-irq mode. The BH/tasklet change is a pretty recent change. But the BH thingy fo

Re: [PATCH -next] crypto: mediatek - simplify the return expression of mtk_dfe_dse_reset()

2020-10-02 Thread Herbert Xu
On Mon, Sep 21, 2020 at 09:10:09PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/crypto/mediatek/mtk-platform.c | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Pag

Re: [PATCH -next] PCI: cadence: simplify the return expression of cdns_pcie_host_init_address_translation()

2020-10-02 Thread Lorenzo Pieralisi
On Mon, Sep 21, 2020 at 09:10:53PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/cadence/pcie-cadence-host.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) Applied to pci/cadence, thanks. Lorenzo

Re: [PATCH v2] net: usb: rtl8150: prevent set_ethernet_addr from setting uninit address

2020-10-02 Thread Greg KH
On Fri, Oct 02, 2020 at 05:04:13PM +0530, Anant Thazhemadam wrote: > > On 02/10/20 7:45 am, David Miller wrote: > > From: Anant Thazhemadam > > Date: Thu, 1 Oct 2020 13:02:20 +0530 > > > >> When get_registers() fails (which happens when usb_control_msg() fails) > >> in set_ethernet_addr(), the u

Re: [PATCH v3 00/10] crypto: caam - xts(aes) updates

2020-10-02 Thread Herbert Xu
On Tue, Sep 22, 2020 at 07:03:18PM +0300, Andrei Botila wrote: > From: Andrei Botila > > This patch series fixes some problems in CAAM's implementation of xts(aes): > - CAAM until Era 9 can't process XTS with 16B IV > - CAAM can only process in hardware XTS key lengths of 16B and 32B > - These

Re: [PATCH RESEND 0/4] crypto: hisilicon/zip - misc clean up

2020-10-02 Thread Herbert Xu
On Fri, Sep 25, 2020 at 10:06:13PM +0800, Yang Shen wrote: > This patchset fix some bug: > patch 1:clear the debug registers when remove driver > patch 2:intercept invalid input when using decompress > patch 3:replace the return value '-EBUSY' with '-EAGAIN' when > device is busy > patch 4:init

Re: [PATCH v1] hw_random: npcm: modify readl to readb

2020-10-02 Thread Herbert Xu
On Thu, Sep 24, 2020 at 12:23:05AM +0300, Tomer Maimon wrote: > Modify the read size to the correct HW random > registers size, 8bit. > The incorrect read size caused and faulty > HW random value. > > Signed-off-by: Tomer Maimon > --- > drivers/char/hw_random/npcm-rng.c | 14 +++--- > 1

Re: [PATCH v2] crypto: sa2ul: Fix DMA mapping API usage

2020-10-02 Thread Herbert Xu
On Wed, Sep 23, 2020 at 01:11:44PM +0300, Peter Ujfalusi wrote: > Make sure that we call the dma_unmap_sg on the correct scatterlist on > completion with the correct sg_nents. > > Use sg_table to managed the DMA mapping and at the same time add the needed > dma_sync calls for the sg_table. > > Si

Re: [PATCH 04/18] hwrng: stm32 - use semicolons rather than commas to separate statements

2020-10-02 Thread Herbert Xu
On Sun, Sep 27, 2020 at 09:12:14PM +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > // > @@ expression e1,e2; @@ > e1 > -, > +; > e2 > ... when any > // > > Signed-o

Re: [PATCH 07/18] hwrng: mxc-rnga - use semicolons rather than commas to separate statements

2020-10-02 Thread Herbert Xu
On Sun, Sep 27, 2020 at 09:12:17PM +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > // > @@ expression e1,e2; @@ > e1 > -, > +; > e2 > ... when any > // > > Signed-o

Re: [PATCH 06/18] hwrng: iproc-rng200 - use semicolons rather than commas to separate statements

2020-10-02 Thread Herbert Xu
On Sun, Sep 27, 2020 at 09:12:16PM +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > // > @@ expression e1,e2; @@ > e1 > -, > +; > e2 > ... when any > // > > Signed-o

Re: [PATCH 1/4] of/fdt: Update zone_dma_bits when running in bcm2711

2020-10-02 Thread Catalin Marinas
On Thu, Oct 01, 2020 at 07:31:19PM +0200, Nicolas Saenz Julienne wrote: > On Thu, 2020-10-01 at 18:23 +0100, Catalin Marinas wrote: > > On Thu, Oct 01, 2020 at 06:15:01PM +0100, Catalin Marinas wrote: > > > On Thu, Oct 01, 2020 at 06:17:37PM +0200, Nicolas Saenz Julienne wrote: > > > > diff --git a

Re: [PATCH 13/18] crypto: use semicolons rather than commas to separate statements

2020-10-02 Thread Herbert Xu
On Sun, Sep 27, 2020 at 09:12:23PM +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > // > @@ expression e1,e2; @@ > e1 > -, > +; > e2 > ... when any > // > > Signed-o

Re: [PATCH 17/18] crypto: atmel-tdes - use semicolons rather than commas to separate statements

2020-10-02 Thread Herbert Xu
On Sun, Sep 27, 2020 at 09:12:27PM +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > // > @@ expression e1,e2; @@ > e1 > -, > +; > e2 > ... when any > // > > Signed-o

[PATCH v2 3/6] kselftest/arm64: Check forked child mte memory accessibility

2020-10-02 Thread Amit Daniel Kachhap
This test covers the mte memory behaviour of the forked process with different mapping properties and flags. It checks that all bytes of forked child memory are accessible with the same tag as that of the parent and memory accessed outside the tag range causes fault to occur. Cc: Shuah Khan Cc: C

[PATCH v2 0/6] kselftest: arm64/mte: Tests for user-space MTE

2020-10-02 Thread Amit Daniel Kachhap
These patch series adds below kselftests to test the user-space support for the ARMv8.5 Memory Tagging Extension present in arm64 tree [1]. This patch series is based on Linux v5.9-rc3. 1) This test-case verifies that the memory allocated by kernel mmap interface can support tagged memory access.

[PATCH v2 2/6] kselftest/arm64: Verify mte tag inclusion via prctl

2020-10-02 Thread Amit Daniel Kachhap
This testcase verifies that the tag generated with "irg" instruction contains only included tags. This is done via prtcl call. This test covers 4 scenarios, * At least one included tag. * More than one included tags. * All included. * None included. Cc: Shuah Khan Cc: Catalin Marinas Cc: Will D

[PATCH v2 1/6] kselftest/arm64: Add utilities and a test to validate mte memory

2020-10-02 Thread Amit Daniel Kachhap
This test checks that the memory tag is present after mte allocation and the memory is accessible with those tags. This testcase verifies all sync, async and none mte error reporting mode. The allocated mte buffers are verified for Allocated range (no error expected while accessing buffer), Underfl

[PATCH v2 6/6] kselftest/arm64: Check mte tagged user address in kernel

2020-10-02 Thread Amit Daniel Kachhap
Add a testcase to check that user address with valid/invalid mte tag works in kernel mode. This test verifies that the kernel API's __arch_copy_from_user/__arch_copy_to_user works by considering if the user pointer has valid/invalid allocation tags. In MTE sync mode, file memory read/write and oth

[PATCH v2 4/6] kselftest/arm64: Verify all different mmap MTE options

2020-10-02 Thread Amit Daniel Kachhap
This testcase checks the different unsupported/supported options for mmap if used with PROT_MTE memory protection flag. These checks are, * Either pstate.tco enable or prctl PR_MTE_TCF_NONE option should not cause any tag mismatch faults. * Different combinations of anonymous/file memory mmap, m

[PATCH v2 5/6] kselftest/arm64: Verify KSM page merge for MTE pages

2020-10-02 Thread Amit Daniel Kachhap
Add a testcase to check that KSM should not merge pages containing same data with same/different MTE tag values. This testcase has one positive tests and passes if page merging happens according to the above rule. It also saves and restores any modified ksm sysfs entries. Cc: Shuah Khan Cc: Cata

[PATCH] mm/util.c: Add error logs for commitment overflow

2020-10-02 Thread Pintu Kumar
The headless embedded devices often come with very limited amount of RAM such as: 256MB or even lesser. These types of system often rely on command line interface which can execute system commands in the background using the fork/exec combination. There could be even many child tasks invoked intern

Re: [PATCH -next] PCI: loongson: simplify the return expression of loongson_pci_probe()

2020-10-02 Thread Lorenzo Pieralisi
On Mon, Sep 21, 2020 at 09:10:54PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/pci-loongson.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) Applied to pci/loongson, thanks. Lorenzo > diff --git a

Re: [PATCH v4 0/7] Convert the intel iommu driver to the dma-iommu api

2020-10-02 Thread Lu Baolu
Hi Joerg, On 2020/10/1 20:17, Joerg Roedel wrote: Hi Baolu, On Tue, Sep 29, 2020 at 08:11:35AM +0800, Lu Baolu wrote: I have no preference. It depends on which patch goes first. Let the maintainers help here. No preference on my side, except that it is too late for this now to make it into v

Issue of metrics for multiple uncore PMUs (was Re: [RFC PATCH v2 23/23] perf metricgroup: remove duped metric group events)

2020-10-02 Thread John Garry
On 07/05/2020 15:08, Ian Rogers wrote: Hi Ian, I was wondering if you ever tested commit 2440689d62e9 ("perf metricgroup: Remove duped metric group events") for when we have a metric which aliases multiple instances of the same uncore PMU in the system? I have been rebasing some of my arm64

Re: [PATCH] drivers:tty:pty: Fix a race causing data loss on close

2020-10-02 Thread Greg Kroah-Hartman
On Thu, Oct 01, 2020 at 09:16:30PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > If you write to a pty master an immediately close the pty master, the > receiver might get a chunk of data dropped, but then receive some later > data. That's obviously something rather unexpected for a us

Re: linux tooling mailing list

2020-10-02 Thread Sedat Dilek
On Thu, Oct 1, 2020 at 12:26 AM David Miller wrote: > > From: Nick Desaulniers > Date: Wed, 30 Sep 2020 12:29:38 -0700 > > > linux-toolcha...@vger.kernel.org > > Created. > I am subscribed, too. Will there be a(n)...? * archive (for example marc.info) * patchwork url - Sedat - [1] https://gi

Re: [PATCH 0/2] PCI: aardvark: Fix comphy with old ATF

2020-10-02 Thread Pali Rohár
On Wednesday 02 September 2020 16:43:42 Pali Rohár wrote: > This patch series fixes regression introduced in commit 366697018c9a > ("PCI: aardvark: Add PHY support") which caused aardvark driver > initialization failure on EspressoBin board with factory version of > Arm Trusted Firmware provided by

Re: [RFC V2] mm/vmstat: Add events for HugeTLB migration

2020-10-02 Thread Michal Hocko
On Wed 30-09-20 11:30:49, Anshuman Khandual wrote: > Add following new vmstat events which will track HugeTLB page migration. > > 1. HUGETLB_MIGRATION_SUCCESS > 2. HUGETLB_MIGRATION_FAILURE > > It follows the existing semantics to accommodate HugeTLB subpages in total > page migration statistics.

Re: [PATCH v2] net: usb: rtl8150: prevent set_ethernet_addr from setting uninit address

2020-10-02 Thread Anant Thazhemadam
On 02-10-2020 17:24, Greg KH wrote: > On Fri, Oct 02, 2020 at 05:04:13PM +0530, Anant Thazhemadam wrote: >> On 02/10/20 7:45 am, David Miller wrote: >>> From: Anant Thazhemadam >>> Date: Thu, 1 Oct 2020 13:02:20 +0530 >>> When get_registers() fails (which happens when usb_control_msg() fai

Re: [RFC] Status of orinoco_usb

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 01:53:58PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-10-02 13:37:25 [+0200], Greg Kroah-Hartman wrote: > > > Is it possible to end up here in softirq context or is this a relic? > > > > I think it's a relic of where USB host controllers completed their urbs > > in h

Re: [PATCH 5/6] scripts: kernel-doc: add support for typedef enum

2020-10-02 Thread Andrew Lunn
On Fri, Oct 02, 2020 at 07:49:49AM +0200, Mauro Carvalho Chehab wrote: > The PHY kernel-doc markup has gained support for documenting > a typedef enum. > > However, right now the parser was not prepared for it. Hi Mauro Thanks for this. I'm using Sphinx 3.2.1, since that is what my Debian box ha

Re: [PATCH] mm/util.c: Add error logs for commitment overflow

2020-10-02 Thread Matthew Wilcox
On Fri, Oct 02, 2020 at 05:27:41PM +0530, Pintu Kumar wrote: > This is the output we can see on a 256MB system and with a simple malloc > and fork program. > > [root@ ~]# cat /proc/meminfo > MemTotal: 249520 kB ==> 243MB > MemFree: 179100 kB > > PPID PID USERRSS VS

Re: [PATCH] arm64: dts: marvell: espressobin: De-duplicate eMMC definitions

2020-10-02 Thread Pali Rohár
On Sunday 27 September 2020 08:40:41 Andre Heider wrote: > On 25/09/2020 10:50, Pali Rohár wrote: > > eMMC definitions in files armada-3720-espressobin-emmc.dts and > > armada-3720-espressobin-v7-emmc.dts is same. So move it into common > > armada-3720-espressobin.dtsi file with status "disabled".

Re: [PATCH v4 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2020-10-02 Thread Krzysztof Kozlowski
On Tue, Sep 29, 2020 at 02:02:55PM +0300, Sakari Ailus wrote: > On Tue, Sep 29, 2020 at 11:46:36AM +0200, Krzysztof Kozlowski wrote: > > On Tue, Sep 29, 2020 at 12:40:46PM +0300, Sakari Ailus wrote: > > > On Tue, Sep 29, 2020 at 11:18:46AM +0200, Krzysztof Kozlowski wrote: > > > > On Tue, 29 Sep 20

[PATCH 0/2] Document 'void *'

2020-10-02 Thread Alejandro Colomar
Hi Michael, As you asked, I squashed. And added the POSIX.1-2008 note too. Thanks for that! Cheers, Alex Alejandro Colomar (2): system_data_types.7: Add 'void *' void.3: New link to system_data_types(7) man3/void.3 | 1 + man7/system_data_types.7 | 80 +++

[PATCH 2/2] void.3: New link to system_data_types(7)

2020-10-02 Thread Alejandro Colomar
Signed-off-by: Alejandro Colomar --- man3/void.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/void.3 diff --git a/man3/void.3 b/man3/void.3 new file mode 100644 index 0..db50c0f09 --- /dev/null +++ b/man3/void.3 @@ -0,0 +1 @@ +.so man7/system_data_types.7 -- 2.28.0

[PATCH 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Alejandro Colomar
Signed-off-by: Alejandro Colomar system_data_types.7: void *: Add info about generic function parameters and return value Reported-by: Paul Eggert Reported-by: David Laight Signed-off-by: Alejandro Colomar system_data_types.7: void *: Add info about pointer artihmetic Reported-by: Paul Egg

Re: [PATCH] mm/util.c: Add error logs for commitment overflow

2020-10-02 Thread Michal Hocko
On Fri 02-10-20 17:27:41, Pintu Kumar wrote: > The headless embedded devices often come with very limited amount > of RAM such as: 256MB or even lesser. > These types of system often rely on command line interface which can > execute system commands in the background using the fork/exec combination

Re: [PATCH v3 4/9] media: vimc: Separate starting stream from pipeline initialisation

2020-10-02 Thread Dafna Hirschfeld
Am 12.09.20 um 12:21 schrieb Kaaira Gupta: On Wed, Sep 02, 2020 at 10:56:46AM +0100, Kieran Bingham wrote: Hi Kaaira, Dafna, On 28/08/2020 21:37, Dafna Hirschfeld wrote: Hi, Am 21.08.20 um 23:01 schrieb Kaaira Gupta: Hi, On Fri, Aug 21, 2020 at 05:11:23PM +0200, Dafna Hirschfeld wrote:

[PATCH 05/11] zsmalloc: switch from alloc_vm_area to get_vm_area

2020-10-02 Thread Christoph Hellwig
Just manually pre-fault the PTEs using apply_to_page_range. Co-developed-by: Minchan Kim Signed-off-by: Christoph Hellwig --- mm/zsmalloc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index c36fdff9a37131..918c7b019b3d78 100644 --

[PATCH 06/11] drm/i915: use vmap in shmem_pin_map

2020-10-02 Thread Christoph Hellwig
shmem_pin_map somewhat awkwardly reimplements vmap using alloc_vm_area and manual pte setup. The only practical difference is that alloc_vm_area prefeaults the vmalloc area PTEs, which doesn't seem to be required here (and could be added to vmap using a flag if actually required). Switch to use v

[PATCH 04/11] mm: allow a NULL fn callback in apply_to_page_range

2020-10-02 Thread Christoph Hellwig
Besides calling the callback on each page, apply_to_page_range also has the effect of pre-faulting all PTEs for the range. To support callers that only need the pre-faulting, make the callback optional. Based on a patch from Minchan Kim . Signed-off-by: Christoph Hellwig --- mm/memory.c | 16 +

[PATCH 07/11] drm/i915: stop using kmap in i915_gem_object_map

2020-10-02 Thread Christoph Hellwig
kmap for !PageHighmem is just a convoluted way to say page_address, and kunmap is a no-op in that case. Signed-off-by: Christoph Hellwig Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/g

remove alloc_vm_area v4

2020-10-02 Thread Christoph Hellwig
Hi Andrew, this series removes alloc_vm_area, which was left over from the big vmalloc interface rework. It is a rather arkane interface, basicaly the equivalent of get_vm_area + actually faulting in all PTEs in the allocated area. It was originally addeds for Xen (which isn't modular to start w

[PATCH 09/11] xen/xenbus: use apply_to_page_range directly in xenbus_map_ring_pv

2020-10-02 Thread Christoph Hellwig
Replacing alloc_vm_area with get_vm_area_caller + apply_page_range allows to fill put the phys_addr values directly instead of doing another loop over all addresses. Signed-off-by: Christoph Hellwig Reviewed-by: Boris Ostrovsky --- drivers/xen/xenbus/xenbus_client.c | 30 ---

[PATCH 10/11] x86/xen: open code alloc_vm_area in arch_gnttab_valloc

2020-10-02 Thread Christoph Hellwig
Replace the last call to alloc_vm_area with an open coded version using an iterator in struct gnttab_vm_area instead of the triple indirection magic in alloc_vm_area. Signed-off-by: Christoph Hellwig Reviewed-by: Boris Ostrovsky --- arch/x86/xen/grant-table.c | 27 --- 1

[PATCH v3 4/9] spi: spi-s3c64xx: Report more information when errors occur

2020-10-02 Thread Łukasz Stelmach
Report amount of pending data when a transfer stops due to errors. Report if DMA was used to transfer data and print the status code. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 19 +++ 1 file changed, 15 insertions(+), 4 dele

[PATCH v3 6/9] spi: spi-s3c64xx: Fix doc comment for struct s3c64xx_spi_driver_data

2020-10-02 Thread Łukasz Stelmach
Remove descriptions for non-existent fields and fix indentation. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 13b5

[PATCH v3 2/9] spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250

2020-10-02 Thread Łukasz Stelmach
Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail. The vendor kernel for ARTIK5 handles CS in a simmilar way. Signed-off-by: Łukasz Stelmach Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 1 + 1 file changed, 1 insertio

[PATCH v3 0/9] Some fixes for spi-s3c64xx

2020-10-02 Thread Łukasz Stelmach
This is a series of fixes created during porting a device driver (these patches will be released soon too) for an SPI device to the current kernel. The two most important are spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_A

[PATCH v3 3/9] spi: spi-s3c64xx: Check return values

2020-10-02 Thread Łukasz Stelmach
Check return values in prepare_dma() and s3c64xx_spi_config() and propagate errors upwards. Fixes: 788437273fa8 ("spi: s3c64xx: move to generic dmaengine API") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 50

RE: [PATCH 1/1] RAS: Add CPU Correctable Error Collector to isolate an erroneous CPU core

2020-10-02 Thread Shiju Jose
Hi Boris, Hi James, >-Original Message- >From: Borislav Petkov [mailto:b...@alien8.de] >Sent: 01 October 2020 18:31 >To: James Morse >Cc: Shiju Jose ; linux-e...@vger.kernel.org; linux- >a...@vger.kernel.org; linux-kernel@vger.kernel.org; tony.l...@intel.com; >r...@rjwysocki.net; l...@ker

[PATCH v3 8/9] spi: spi-s3c64xx: Increase transfer timeout

2020-10-02 Thread Łukasz Stelmach
Increase timeout by 30 ms for some wiggle room and set the minimum value to 100 ms. This ensures a non-zero value for short transfers which may take less than 1 ms. The timeout value does not affect performance because it is used with a completion. Similar formula is used in other drivers e.g. sun

[PATCH 03/11] mm: add a vmap_pfn function

2020-10-02 Thread Christoph Hellwig
Add a proper helper to remap PFNs into kernel virtual space so that drivers don't have to abuse alloc_vm_area and open coded PTE manipulation for it. Signed-off-by: Christoph Hellwig --- include/linux/vmalloc.h | 1 + mm/Kconfig | 3 +++ mm/vmalloc.c| 45 ++

[PATCH v3 7/9] spi: spi-s3c64xx: Ensure cur_speed holds actual clock value

2020-10-02 Thread Łukasz Stelmach
Make sure the cur_speed value used in s3c64xx_enable_datapath() to configure DMA channel and in s3c64xx_wait_for_*() to calculate the transfer timeout is set to the actual value of (half) the clock speed. Don't change non-CMU case, because no frequency calculation errors have been reported. Revie

[PATCH v3 5/9] spi: spi-s3c64xx: Rename S3C64XX_SPI_SLAVE_* to S3C64XX_SPI_CS_*

2020-10-02 Thread Łukasz Stelmach
Rename S3C64XX_SPI_SLAVE_* to S3C64XX_SPI_CS_* to match documentation. Signed-off-by: Łukasz Stelmach Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drive

[PATCH 01/11] mm: update the documentation for vfree

2020-10-02 Thread Christoph Hellwig
From: "Matthew Wilcox (Oracle)" * Document that you can call vfree() on an address returned from vmap() * Remove the note about the minimum size -- the minimum size of a vmalloc allocation is one page * Add a Context: section * Fix capitalisation * Reword the prohibition on calling from N

[PATCH 08/11] drm/i915: use vmap in i915_gem_object_map

2020-10-02 Thread Christoph Hellwig
i915_gem_object_map implements fairly low-level vmap functionality in a driver. Split it into two helpers, one for remapping kernel memory which can use vmap, and one for I/O memory that uses vmap_pfn. The only practical difference is that alloc_vm_area prefeaults the vmalloc area PTEs, which doe

[PATCH 11/11] mm: remove alloc_vm_area

2020-10-02 Thread Christoph Hellwig
All users are gone now. Signed-off-by: Christoph Hellwig --- include/linux/vmalloc.h | 5 + mm/nommu.c | 7 -- mm/vmalloc.c| 48 - 3 files changed, 1 insertion(+), 59 deletions(-) diff --git a/include/linux/vmalloc.h b/i

[PATCH v3 9/9] spi: spi-s3c64xx: Turn on interrupts upon resume

2020-10-02 Thread Łukasz Stelmach
s3c64xx_spi_hwinit() disables interrupts. In s3c64xx_spi_probe() after calling s3c64xx_spi_hwinit() they are enabled with the following call. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 4 1 file changed, 4 insertions(+) diff --git a/dri

[PATCH 02/11] mm: add a VM_MAP_PUT_PAGES flag for vmap

2020-10-02 Thread Christoph Hellwig
Add a flag so that vmap takes ownership of the passed in page array. When vfree is called on such an allocation it will put one reference on each page, and free the page array itself. Signed-off-by: Christoph Hellwig --- include/linux/vmalloc.h | 1 + mm/vmalloc.c| 9 +++-- 2 fil

[PATCH 0/2] Improve the estimations in Intelligent Power Allocation

2020-10-02 Thread Lukasz Luba
Hi all, The Intelligent Power Allocation (IPA) estimates the needed coefficients for internal algorithm. It can also estimate the sustainable power value when the DT has not provided one. Fix the 'k_i' coefficient which might be to big related to the other values, when the sustainable power is in

[PATCH 2/2] thermal: power allocator: estimate sustainable power only once

2020-10-02 Thread Lukasz Luba
The sustainable power value might come from the Device Tree or can be estimated in run time. There is no need to estimate every time when the governor is called and temperature is high. Instead, store the estimated value and make it available via standard sysfs interface so it can be checked from t

[PATCH v3 1/9] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()

2020-10-02 Thread Łukasz Stelmach
Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail to complete. This solution to the problem is found in the vendor kernel for ARTIK5 boards based on Exynos3250. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/s

[PATCH 1/2] thermal: power allocator: change the 'k_i' coefficient estimation

2020-10-02 Thread Lukasz Luba
Intelligent Power Allocation (IPA) is built around the PID controller concept. The initialization code tries to setup the environment based on the information available in DT or estimate the value based on minimum power reported by each of the cooling device. The estimation will have an impact on t

[PATCH v2 10/13] iommu/amd: Refactor fetch_pte to use struct amd_io_pgtable

2020-10-02 Thread Suravee Suthikulpanit
To simplify the fetch_pte function. There is no functional change. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 2 +- drivers/iommu/amd/io_pgtable.c | 13 +++-- drivers/iommu/amd/iommu.c | 4 +++- 3 files changed, 11 insertions(+), 8 deletions(-) diff

[PATCH v2 12/13] iommu/amd: Introduce iommu_v1_map_page and iommu_v1_unmap_page

2020-10-02 Thread Suravee Suthikulpanit
These implement map and unmap for AMD IOMMU v1 pagetable, which will be used by the IO pagetable framework. Also clean up unused extern function declarations. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 13 - drivers/iommu/amd/io_pgtable.c | 25

[PATCH v2 05/13] iommu/amd: Declare functions as extern

2020-10-02 Thread Suravee Suthikulpanit
And move declaration to header file so that they can be included across multiple files. There is no functional change. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 3 +++ drivers/iommu/amd/iommu.c | 39 +-- 2 files changed, 22 inse

[PATCH v2 03/13] iommu/amd: Move pt_root to to struct amd_io_pgtable

2020-10-02 Thread Suravee Suthikulpanit
To better organize the data structure since it contains IO page table related information. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 2 +- drivers/iommu/amd/amd_iommu_types.h | 2 +- drivers/iommu/amd/iommu.c | 2 +- 3 files changed, 3 insertions(+)

[PATCH v2 08/13] iommu/amd: Remove amd_iommu_domain_get_pgtable

2020-10-02 Thread Suravee Suthikulpanit
Since the IO page table root and mode parameters have been moved into the struct amd_io_pg, the function is no longer needed. Therefore, remove it along with the struct domain_pgtable. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 4 ++-- drivers/iommu/amd/amd_i

[PATCH v2 06/13] iommu/amd: Move IO page table related functions

2020-10-02 Thread Suravee Suthikulpanit
Preparing to migrate to use IO page table framework. There is no functional change. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 18 ++ drivers/iommu/amd/io_pgtable.c | 473 drivers/iommu/amd/iommu.c | 476 +-

[PATCH v2 07/13] iommu/amd: Restructure code for freeing page table

2020-10-02 Thread Suravee Suthikulpanit
Introduce amd_iommu_free_pgtable helper function, which consolidates logic for freeing page table. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 2 +- drivers/iommu/amd/io_pgtable.c | 12 +++- drivers/iommu/amd/iommu.c | 19 ++- 3 files c

[PATCH v2 04/13] iommu/amd: Convert to using amd_io_pgtable

2020-10-02 Thread Suravee Suthikulpanit
Make use of the new struct amd_io_pgtable in preparation to remove the struct domain_pgtable. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/amd_iommu.h | 1 + drivers/iommu/amd/iommu.c | 25 ++--- 2 files changed, 11 insertions(+), 15 deletions(-) diff --gi

[PATCH v2 02/13] iommu/amd: Prepare for generic IO page table framework

2020-10-02 Thread Suravee Suthikulpanit
Add initial hook up code to implement generic IO page table framework. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/Kconfig | 1 + drivers/iommu/amd/Makefile | 2 +- drivers/iommu/amd/amd_iommu_types.h | 32 + drivers/iommu/amd/io_pgtable.c

[PATCH v2 09/13] iommu/amd: Rename variables to be consistent with struct io_pgtable_ops

2020-10-02 Thread Suravee Suthikulpanit
There is no functional change. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/io_pgtable.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/iommu/amd/io_pgtable.c b/drivers/iommu/amd/io_pgtable.c index a2acd7e85ec3..ff1294e

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