[PATCH v14 06/20] mm/thp: clean up lru_add_page_tail

2020-07-02 Thread Alex Shi
Since the first parameter is only used by head page, it's better to make it explicit. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.c | 12 ++-- 1 file chang

[PATCH v14 03/20] mm/compaction: correct the comments of compact_defer_shift

2020-07-02 Thread Alex Shi
There is no compact_defer_limit. It should be compact_defer_shift in use. and add compact_order_failed explanation. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- include/linux/mmzone.h | 1 + mm/compaction.c| 2 +- 2 files changed,

[PATCH v14 07/20] mm/thp: narrow lru locking

2020-07-02 Thread Alex Shi
lru_lock and page cache xa_lock have no reason with current sequence, put them together isn't necessary. let's narrow the lru locking, but left the local_irq_disable to block interrupt re-entry and statistic update. Hugh Dickins point: split_huge_page_to_list() was already silly,to be using the _i

Re: [PATCH v2 2/2] block: add max_active_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/03 3:20, Niklas Cassel wrote: > Add a new max_active zones definition in the sysfs documentation. > This definition will be common for all devices utilizing the zoned block > device support in the kernel. > > Export max_active_zones according to this new definition for NVMe Zoned > Name

Re: [PATCH v2 1/2] block: add max_open_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/03 3:20, Niklas Cassel wrote: > Add a new max_open_zones definition in the sysfs documentation. > This definition will be common for all devices utilizing the zoned block > device support in the kernel. > > Export max open zones according to this new definition for NVMe Zoned > Namespac

[PATCH net-next] net: bcmgenet: Allow changing carrier from user-space

2020-07-02 Thread Florian Fainelli
The GENET driver interfaces with internal MoCA interface as well as external MoCA chips like the BCM6802/6803 through a fixed link interface. It is desirable for the mocad user-space daemon to be able to control the carrier state based upon out of band messages that it receives from the MoCA chip.

[tip:WIP.core/headers] BUILD SUCCESS 1167da790ee80bbd845f50a5a32a5b0c47491b35

2020-07-02 Thread kernel test robot
randconfig-a015-20200701 i386 randconfig-a014-20200701 i386 randconfig-a016-20200701 i386 randconfig-a012-20200701 i386 randconfig-a013-20200701 i386 randconfig-a011-20200702 i386 randconfig-a014-202

Re: [PATCH 1/2] block: add max_open_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/02 21:37, Niklas Cassel wrote: > On Tue, Jun 30, 2020 at 01:49:41AM +, Damien Le Moal wrote: >> On 2020/06/16 19:28, Niklas Cassel wrote: >>> diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c >>> index c08f6281b614..af156529f3b6 100644 >>> --- a/drivers/nvme/host/zns.c >

[PATCH -next] locktorture: make function torture_percpu_rwsem_init() static

2020-07-02 Thread Wei Yongjun
The sparse tool complains as follows: kernel/locking/locktorture.c:569:6: warning: symbol 'torture_percpu_rwsem_init' was not declared. Should it be static? And this function is not used outside of locktorture.c, so this commit marks it static. Signed-off-by: Wei Yongjun --- kernel/locking/lo

Re: [PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Dave Young
On 07/03/20 at 12:46pm, Dave Young wrote: > Hi, > > Thanks for the update, but still some nitpicks :( > > I'm sorry I did not catch them previously, but maybe it is not worth to > repost the whole series if no other changes needed. Feel free to add my acks for the common kdump part: Acked-by:

Re: [PATCH v2] crypto: ccp - Update CCP driver maintainer information

2020-07-02 Thread Herbert Xu
On Fri, Jun 26, 2020 at 02:09:39PM -0500, Tom Lendacky wrote: > From: Tom Lendacky > > Add John Allen as a new CCP driver maintainer. Additionally, break out > the driver SEV support and create a new maintainer entry, with Brijesh > Singh and Tom Lendacky as maintainers. > > Cc: John Allen > Cc

Re: [PATCH] crypto, x86: aesni: add compatibility with IAS

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 04:24:33PM -0700, Jian Cai wrote: > Clang's integrated assembler complains "invalid reassignment of > non-absolute variable 'var_ddq_add'" while assembling > arch/x86/crypto/aes_ctrby8_avx-x86_64.S. It was because var_ddq_add was > reassigned with non-absolute values several

Re: [PATCH] crypto: sun8i-ce - Fix runtime PM imbalance in sun8i_ce_cipher_init

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 10:40:08AM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a corresponding decrement is > needed on the error handling path to keep the counter balanced. > > Fix this by adding the missed

Re: [PATCH 0/3] qce crypto fixes for tcrypto failures

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 11:45:03AM +0530, Sivaprakash Murugesan wrote: > while running tcrypto test cases on qce crypto engine few failures are > noticed, this is mainly because of the updates on tcrypto driver and > not testing qce reqgularly with mainline tcrypto driver. > > This series tries to

Re: [PATCH] crypto: ccp - Fix use of merged scatterlists

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 03:24:02PM -0500, John Allen wrote: > Running the crypto manager self tests with > CONFIG_CRYPTO_MANAGER_EXTRA_TESTS may result in several types of errors > when using the ccp-crypto driver: > > alg: skcipher: cbc-des3-ccp encryption failed on test vector 0; > expected_err

Re: [PATCH v2 1/2] mm/memblock: expose only miminal interface to add/walk physmem

2020-07-02 Thread Andrew Morton
On Thu, 2 Jul 2020 09:23:10 +0200 David Hildenbrand wrote: > >>> --- > >>> arch/s390/kernel/crash_dump.c | 6 ++-- > >>> include/linux/memblock.h | 28 ++--- > >>> mm/memblock.c | 57 ++- > >>> 3 files changed, 55 insertions(+), 3

Re: [PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Dave Young
Hi, Thanks for the update, but still some nitpicks :( I'm sorry I did not catch them previously, but maybe it is not worth to repost the whole series if no other changes needed. On 07/03/20 at 11:58am, Chen Zhou wrote: > Now we support crashkernel=X,[low] on arm64, update the Documentation. > We

[PATCH v6 08/10] iommu/mediatek: Extend protect pa alignment value

2020-07-02 Thread Chao Hao
Starting with mt6779, iommu needs to extend to 256 bytes from 128 bytes which can send the max number of data for memory protection pa alignment. So we can use a separate patch to modify it. Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger --- drivers/iommu/mtk_iommu.c | 2 +- 1 file chang

[PATCH v6 04/10] iommu/mediatek: Setting MISC_CTRL register

2020-07-02 Thread Chao Hao
Add F_MMU_IN_ORDER_WR_EN_MASK and F_MMU_STANDARD_AXI_MODE_EN_MASK definitions in MISC_CTRL register. F_MMU_STANDARD_AXI_MODE_EN_MASK: If we set F_MMU_STANDARD_AXI_MODE_EN_MASK (bit[3][19] = 0, not follow standard AXI protocol), the iommu will priorize sending of urgent read command over a normal re

[PATCH v6 05/10] iommu/mediatek: Move inv_sel_reg into the plat_data

2020-07-02 Thread Chao Hao
For mt6779, MMU_INV_SEL register's offset is changed from 0x38 to 0x2c, so we can put inv_sel_reg in the plat_data to use it. In addition, we renamed it to REG_MMU_INV_SEL_GEN1 and use it before mt6779. Cc: Yong Wu Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger --- drivers/iommu/mtk_iom

[PATCH v6 06/10] iommu/mediatek: Add sub_comm id in translation fault

2020-07-02 Thread Chao Hao
The max larb number that a iommu HW support is 8(larb0~larb7 in the below diagram). If the larb's number is over 8, we use a sub_common for merging several larbs into one larb. At this case, we will extend larb_id: bit[11:9] means common-id; bit[8:7] means subcommon-id; From these two variables, we

[PATCH v6 10/10] iommu/mediatek: Add mt6779 basic support

2020-07-02 Thread Chao Hao
1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. 2. Add mt6779_data to support mm_iommu HW init. Cc: Yong Wu Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger --- drivers/iommu/mtk_iommu.c | 9 + drivers/iommu/mt

[PATCH v6 00/10] MT6779 IOMMU SUPPORT

2020-07-02 Thread Chao Hao
This patchset adds mt6779 iommu support. mt6779 has two iommus, they are MM_IOMMU(M4U) and APU_IOMMU which used ARM Short-Descriptor translation format. The mt6779's MM_IOMMU-SMI and APU_IOMMU HW diagram is as below, it is only a brief diagram: EMI |

[PATCH v6 02/10] iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL

2020-07-02 Thread Chao Hao
For iommu offset=0x48 register, only the previous mt8173/mt8183 use the name STANDARD_AXI_MODE, all the latest SoC extend the register more feature by different bits, for example: axi_mode, in_order_en, coherent_en and so on. So rename REG_MMU_MISC_CTRL may be more proper. This patch only rename t

[PATCH v6 03/10] iommu/mediatek: Use a u32 flags to describe different HW features

2020-07-02 Thread Chao Hao
Given the fact that we are adding more and more plat_data bool values, it would make sense to use a u32 flags register and add the appropriate macro definitions to set and check for a flag present. No functional change. Cc: Yong Wu Suggested-by: Matthias Brugger Signed-off-by: Chao Hao Reviewed

[PATCH v6 01/10] dt-bindings: mediatek: Add bindings for MT6779

2020-07-02 Thread Chao Hao
This patch adds description for MT6779 IOMMU. MT6779 has two iommus, they are mm_iommu and apu_iommu which both use ARM Short-Descriptor translation format. In addition, mm_iommu and apu_iommu are two independent HW instance , we need to set them separately. The MT6779 IOMMU hardware diagram is

[PATCH v6 09/10] iommu/mediatek: Modify MMU_CTRL register setting

2020-07-02 Thread Chao Hao
The MMU_CTRL register of MT8173 is different from other SoCs. The in_order_wr_en is bit[9] which is zero by default. Other SoCs have the vitcim_tlb_en feature mapped to bit[12]. This bit is set to one by default. We need to preserve the bit when setting F_MMU_TF_PROT_TO_PROGRAM_ADDR as otherwise th

[PATCH v6 07/10] iommu/mediatek: Add REG_MMU_WR_LEN_CTRL register definition

2020-07-02 Thread Chao Hao
Some platforms(ex: mt6779) need to improve performance by setting REG_MMU_WR_LEN_CTRL register. And we can use WR_THROT_EN macro to control whether we need to set the register. If the register uses default value, iommu will send command to EMI without restriction, when the number of commands become

RE: [PATCH v2 1/3] crypto: permit users to specify numa node of acomp hardware

2020-07-02 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Herbert Xu [mailto:herb...@gondor.apana.org.au] > Sent: Friday, July 3, 2020 4:11 PM > To: Song Bao Hua (Barry Song) > Cc: da...@davemloft.net; Wangzhou (B) ; > Jonathan Cameron ; > a...@linux-foundation.org; linux-cry...@vger.kernel.org; > linux...@kvack.or

linux-next: manual merge of the kspp tree with the drm-misc tree

2020-07-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kspp tree got a conflict in: drivers/gpu/drm/drm_edid.c between commit: 948de84233d3 ("drm : Insert blank lines after declarations.") from the drm-misc tree and commit: 80b89ab785a4 ("treewide: Remove uninitialized_var() usage") from the kspp tre

Re: [PATCH v6 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-07-02 Thread kernel test robot
Hi Vinay, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in

Re: [PATCH] drm/msm/dpu: fix wrong return value in dpu_encoder_init()

2020-07-02 Thread Tianjia Zhang
On 2020/7/2 22:04, Markus Elfring wrote: A positive value ENOMEM is returned here. I thinr this is a typo error. It is necessary to return a negative error value. I imagine that a small adjustment could be nice for this change description. How do you think about to follow progress for the i

[PATCH v2] f2fs: add symbolic link to kobject in sysfs

2020-07-02 Thread Daeho Jeong
From: Daeho Jeong Added a symbolic link to directory of sysfs. It will create a symbolic link such as "mount_0" and "mount_1" to each f2fs mount in the order of mounting filesystem. But once one mount point was umounted, that sequential number @x in "mount_@x" could be reused by later newly mount

[PATCH] MIPS: Do not use smp_processor_id() in preemptible code

2020-07-02 Thread Xingxing Su
Use preempt_disable() to fix the following bug under CONFIG_DEBUG_PREEMPT. [ 21.915305] BUG: using smp_processor_id() in preemptible [] code: qemu-system-mip/1056 [ 21.923996] caller is do_ri+0x1d4/0x690 [ 21.927921] CPU: 0 PID: 1056 Comm: qemu-system-mip Not tainted 5.8.0-rc2 #3 [

Re: [PATCH v2 1/3] crypto: permit users to specify numa node of acomp hardware

2020-07-02 Thread Herbert Xu
On Tue, Jun 23, 2020 at 04:16:08PM +1200, Barry Song wrote: > > -void *crypto_create_tfm(struct crypto_alg *alg, > - const struct crypto_type *frontend) > +void *crypto_create_tfm_node(struct crypto_alg *alg, > + const struct crypto_type *frontend, > +

Re: [PATCH V2] scsi: powertec: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-07-02 Thread Martin K. Petersen
On Fri, 26 Jun 2020 05:59:48 +0200, Christophe JAILLET wrote: > The dev_id used in 'request_irq()' and 'free_irq()' should match. > So use 'info' in both cases. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: powertec: Fix different dev_id between request_irq() and free_irq() https://git.ke

Re: [PATCH 2/2] perf tools: Fix record failure when mixed with ARM SPE event

2020-07-02 Thread liwei (GF)
Hi Mathieu, On 2020/7/3 7:03, Mathieu Poirier wrote: > Hi Li, > > On Tue, Jun 23, 2020 at 08:31:41PM +0800, Wei Li wrote: >> When recording with cache-misses and arm_spe_x event, i found that >> it will just fail without showing any error info if i put cache-misses >> after arm_spe_x event. >> >>

[PATCH 2/2] KVM: VMX: Use KVM_POSSIBLE_CR*_GUEST_BITS to initialize guest/host masks

2020-07-02 Thread Sean Christopherson
Use the "common" KVM_POSSIBLE_CR*_GUEST_BITS defines to initialize the CR0/CR4 guest host masks instead of duplicating most of the CR4 mask and open coding the CR0 mask. SVM doesn't utilize the masks, i.e. the masks are effectively VMX specific even if they're not named as such. This avoids dupli

[PATCH 0/2] KVM: VMX: CR0/CR4 guest/host masks cleanup

2020-07-02 Thread Sean Christopherson
Fix a bug where CR4.TSD isn't correctly marked as being possibly owned by the guest in the common x86 macro, then clean up the mess that made the bug possible by throwing away VMX's mix of duplicate code and open coded tweaks. The lack of a define for the guest-owned CR0 bit has bugged me for a lo

Re: [PATCH V2] scsi: eesox: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-07-02 Thread Martin K. Petersen
On Fri, 26 Jun 2020 06:05:53 +0200, Christophe JAILLET wrote: > The dev_id used in 'request_irq()' and 'free_irq()' should match. > So use 'info' in both cases. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: eesox: Fix different dev_id between request_irq() and free_irq() https://git.kerne

[PATCH 1/2] KVM: x86: Mark CR4.TSD as being possibly owned by the guest

2020-07-02 Thread Sean Christopherson
Mark CR4.TSD as being possibly owned by the guest as that is indeed the case on VMX. Without TSD being tagged as possibly owned by the guest, a targeted read of CR4 to get TSD could observe a stale value. This bug is benign in the current code base as the sole consumer of TSD is the emulator (for

[PATCH 1/2] hwmon: shtc1: add support for device tree bindings

2020-07-02 Thread Chris Ruehl
Add support for DTS bindings to the shtc driver, use CONFIG_OF to compile in the code if needed. Signed-off-by: Chris Ruehl --- drivers/hwmon/shtc1.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/hwmon/shtc1.c b/drivers/hwmon/shtc1.c index a0078ccede

[PATCH] shtc1: add support for device tree bindings

2020-07-02 Thread Chris Ruehl
Add support for DTS bindings to the shtc driver The patches add the compatible table and of_property_read* to the shtc1.c. Newly created Yaml document has been released to the Documentation/devicetree/hwmon/sensirion,shtc1.yaml Signed-off-by: Chris Ruehl --- Version 1

[PATCH 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-07-02 Thread Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. Signed-off-by: Chris Ruehl --- .../bindings/hwmon/sensirion,shtc1.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml diff --

Re: objtool clac/stac handling change..

2020-07-02 Thread Michael Ellerman
Linus Torvalds writes: > On Thu, Jul 2, 2020 at 8:13 AM Christophe Leroy > wrote: >> >> Isn't it something easy to do in bad_page_fault() ? > > Can't the user access functions take any other faults on ppc? Yes they definitely can. I think I can enumerate all the possibilities on 64-bit, but I d

[PATCH v10 3/5] arm64: kdump: add memory for devices by DT property linux,usable-memory-range

2020-07-02 Thread Chen Zhou
If we want to reserve crashkernel above 4G, we could use parameters "crashkernel=X crashkernel=Y,low", in this case, specified size low memory is reserved for crash dump kernel devices and never mapped by the first kernel. This memory range is advertised to crash dump kernel via DT property under /

[PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-02 Thread Chen Zhou
commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32") broken the arm64 kdump. If the memory reserved for crash dump kernel falled in ZONE_DMA32, the devices in crash dump kernel need to use ZONE_DMA will alloc fail. This patch addressed the above issue based on "reserving crashkernel abo

[PATCH v10 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-07-02 Thread Chen Zhou
Crashkernel=X tries to reserve memory for the crash dump kernel under 4G. If crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G. Suggested by James, just introduced crashkernel=X,low to arm64. As m

[PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. We could use parameters "crashkernel=X crashkernel=Y,low" to reserve memory above 4G. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- Documentation/admin-guide/kdump/kdump.rst | 14

[PATCH v10 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-07-02 Thread Chen Zhou
In preparation for supporting reserve_crashkernel_low in arm64 as x86_64 does, move reserve_crashkernel_low() into kernel/crash_core.c. BTW, move x86_64 CRASH_ALIGN to 2M suggested by Dave. CONFIG_PHYSICAL_ALIGN can be selected from 2M to 16M, move to the same as arm64. Note, in arm64, we reserve

[PATCH v10 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-07-02 Thread Chen Zhou
This patch series enable reserving crashkernel above 4G in arm64. There are following issues in arm64 kdump: 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail when there is no enough low memory. 2. Currently, crashkernel=Y@X can be used to reserve crashkernel above 4G, in th

RE: [PATCH v3 02/14] iommu: Report domain nesting info

2020-07-02 Thread Liu, Yi L
> From: Alex Williamson > Sent: Friday, July 3, 2020 1:55 AM > > On Wed, 24 Jun 2020 01:55:15 -0700 > Liu Yi L wrote: > > > IOMMUs that support nesting translation needs report the capability > > info to userspace, e.g. the format of first level/stage paging structures. > > > > This patch repor

RE: [PATCH v3 01/14] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-02 Thread Liu, Yi L
> From: Alex Williamson > Sent: Friday, July 3, 2020 5:21 AM > To: Liu, Yi L > > On Wed, 24 Jun 2020 01:55:14 -0700 > Liu Yi L wrote: > > > This patch refactors the vfio_iommu_type1_ioctl() to use switch > > instead of if-else, and each cmd got a helper function. > > > > Cc: Kevin Tian > > CC

[PATCH V5 (RESEND) 4/4] arm64/cpufeature: Replace all open bits shift encodings with macros

2020-07-02 Thread Anshuman Khandual
There are many open bits shift encodings for various CPU ID registers that are scattered across cpufeature. This replaces them with register specific sensible macro definitions. This should not have any functional change. Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Mark Rutland Cc

[PATCH V5 (RESEND) 3/4] arm64/cpufeature: Add remaining feature bits in ID_AA64MMFR2 register

2020-07-02 Thread Anshuman Khandual
Enable EVT, BBM, TTL, IDS, ST, NV and CCIDX features bits in ID_AA64MMFR2 register as per ARM DDI 0487F.a specification. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Suzuki K Poulose Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Suggested-by: Will Deacon

[PATCH V5 (RESEND) 2/4] arm64/cpufeature: Add remaining feature bits in ID_AA64MMFR1 register

2020-07-02 Thread Anshuman Khandual
Enable ETS, TWED, XNX and SPECSEI features bits in ID_AA64MMFR1 register as per ARM DDI 0487F.a specification. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Suzuki K Poulose Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Suggested-by: Will Deacon Reviewed

[PATCH V5 (RESEND) 1/4] arm64/cpufeature: Add remaining feature bits in ID_AA64MMFR0 register

2020-07-02 Thread Anshuman Khandual
Enable EVC, FGT, EXS features bits in ID_AA64MMFR0 register as per ARM DDI 0487F.a specification. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Suzuki K Poulose Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Suggested-by: Will Deacon Reviewed-by: Suzuki K

[PATCH V5 (RESEND) 0/4] arm64/cpufeature: Introduce ID_PFR2, ID_DFR1, ID_MMFR5 and other changes

2020-07-02 Thread Anshuman Khandual
These are remaining patches from V4 series which had some pending reviews from Suzuki (https://patchwork.kernel.org/cover/11557333/). Also dropped [PATCH 15/17] as that will need some more investigation and rework. This series applies on 5.8-rc3. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rut

RE: [PATCH v2] exfat: optimize exfat_zeroed_cluster()

2020-07-02 Thread Namjae Jeon
> > Replace part of exfat_zeroed_cluster() with exfat_update_bhs(). > > And remove exfat_sync_bhs(). > > > > Signed-off-by: Tetsuhiro Kohada > > Reviewed-by: Sungjong Seo > > Looks good. Thanks. Pushed it into exfat #dev. Thanks!

RE: [PATCH v3 10/14] vfio/type1: Allow invalidating first-level/stage IOMMU cache

2020-07-02 Thread Liu, Yi L
> From: Williamson < alex.william...@redhat.com > > Sent: Friday, July 3, 2020 5:20 AM > > On Wed, 24 Jun 2020 01:55:23 -0700 > Liu Yi L wrote: > > > This patch provides an interface allowing the userspace to invalidate > > IOMMU cache for first-level page table. It is required when the first >

Re: [RFC] many-files Documentation patch

2020-07-02 Thread Randy Dunlap
On 7/2/20 3:12 PM, Jonathan Corbet wrote: > On Thu, 2 Jul 2020 15:05:01 -0700 > Randy Dunlap wrote: > >> This patch series eliminates/corrects many doubled words, such as >> "the the", "of of", "with with", and "and and". >> It mostly drops the doubled word, but sometimes it modifies one or two >

Re: [PATCH 09/16] initrd: remove the BLKFLSBUF call in handle_initrd

2020-07-02 Thread H. Peter Anvin
On 2020-06-15 05:53, Christoph Hellwig wrote: > BLKFLSBUF used to be overloaded for the ramdisk driver to free the whole > ramdisk, which was completely different behavior compared to all other > drivers. But this magic overload got removed in commit ff26956875c2 > ("brd: remove support for BLKFLS

drivers/net/ethernet/alteon/acenic.c:1010:17: warning: result of comparison of constant 256 with expression of type 'unsigned char' is always true

2020-07-02 Thread kernel test robot
Hi Nathan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7cc2a8ea104820dd9e702202621e8fd4d9f6c8cf commit: afe956c577b2d5a3d9834e4424587c1ebcf90c4c kbuild: Enable -Wtautological-compare date: 3 months ago config:

Re: objtool clac/stac handling change..

2020-07-02 Thread Linus Torvalds
On Thu, Jul 2, 2020 at 6:33 PM Al Viro wrote: > > What about load_unaligned_zeropad()? What about it? It doesn't care. It's for kernel addresses, clearing AC on exception does nothing. There's no user_access_begin/end anywhere around that thing that I can see. Linus

[PATCH] ASoC: cros_ec_codec: Log results when EC commands fail

2020-07-02 Thread Yu-Hsuan Hsu
Log results of failed EC commands to identify a problem more easily. Signed-off-by: Yu-Hsuan Hsu --- sound/soc/codecs/cros_ec_codec.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c index 8d45c628e988

[PATCH net-next v2 3/7] devlink: Create generic devlink health reporter search function

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Add a generic __devlink_health_reporter_find_by_name() that can be used with arbitrary devlink health reporter list. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- net/core/devlink.c | 18 ++ 1 file changed, 1

[PATCH net-next v2 4/7] devlink: Implement devlink health reporters on per-port basis

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Add devlink-health reporter support on per-port basis. The main difference existing devlink-health is that port reporters are stored in per-devlink_port lists. Upon creation of such health reporter the reference to a port it belongs to is stored in reporter struct. Fill

[PATCH net-next v2 5/7] devlink: Add devlink health port reporters API

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk In order to use new devlink port health reporters infrastructure, add corresponding constructor and destructor functions. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- include/net/devlink.h | 9 + net/core/devlink.c

[PATCH net-next v2 2/7] devlink: Rework devlink health reporter destructor

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Devlink keeps its own reference to every reporter in a list and inits refcount to 1 upon reporter's creation. Existing destructor waits to free the memory indefinitely using msleep() until all references except devlink's own are put. Rework this mechanism by moving memor

[PATCH net-next v2 7/7] net/mlx5e: Move devlink-health rx and tx reporters to devlink port

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Utilize new devlink-health port reporters API to move rx and tx reporters from device to port. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 9 +++-- drivers/ne

[PATCH net-next v2 6/7] net/mlx5e: Move devlink port register and unregister calls

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Register devlink ports upon NIC init. TX and RX health reporters handle errors which may occur early on at driver initialization. And because these reporters are to be moved to port context, they require devlink ports to be already registered. Signed-off-by: Vladyslav Ta

[PATCH net-next v2 1/7] devlink: Refactor devlink health reporter constructor

2020-07-02 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Prepare a common routine in devlink_health_reporter_create() for usage in similar functions for devlink port health reporters. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- net/core/devlink.c | 45 +++

[PATCH net-next v2 0/7] Add devlink-health support for devlink ports

2020-07-02 Thread Moshe Shemesh
Implement support for devlink health reporters on per-port basis. First part in the series prepares common functions parts for health reporter implementation. Second introduces required API to devlink-health and mlx5e ones demonstrate its usage and effectively implement the feature for mlx5 driver.

Re: [PATCH 7/9] media: rkvdec: h264: Use bytesperline and buffer height to calculate stride

2020-07-02 Thread Ezequiel Garcia
Hi Jonas, On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > Use bytesperline and buffer height to calculate the strides configured. > > This does not really change anything other than ensuring the bytesperline > that is signaled to userspace matches was is configured in HW. > Are you se

[Patch v2] mm/sparse: only sub-section aligned range would be populated

2020-07-02 Thread Wei Yang
There are two code path which invoke __populate_section_memmap() * sparse_init_nid() * sparse_add_section() For both case, we are sure the memory range is sub-section aligned. * we pass PAGES_PER_SECTION to sparse_init_nid() * we check range by check_pfn_span() before calling sparse_

Re: [RFC] hung_task:add detecting task in D state milliseconds timeout

2020-07-02 Thread yang che
my understanding, KernelShark can't trigger panic, hung_task can trigger. According to my use, sometimes need to trigger panic to grab ramdump to analyze lock and memory problems. So I want to increase this millisecond support. Matthew Wilcox 于2020年7月3日周五 上午1:43写道: > > On Thu, Jul 02, 2020 at

Re: [PATCH v3] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread Anthony Steinhauser
Yes, this probably requires an explanation why the change is necessary or useful. Without that it is difficult to give some meaningful feedback.

Re: objtool clac/stac handling change..

2020-07-02 Thread Michael Ellerman
Christophe Leroy writes: > Le 02/07/2020 à 15:34, Michael Ellerman a écrit : >> Linus Torvalds writes: >>> On Wed, Jul 1, 2020 at 12:59 PM Al Viro wrote: On Wed, Jul 01, 2020 at 12:04:36PM -0700, Linus Torvalds wrote: > > That's actually for the access granting. Shutting the access

Re: [PATCH 8/9] media: rkvdec: Add validate_fmt ops for pixelformat validation

2020-07-02 Thread Ezequiel Garcia
Hi Jonas, Thanks for working on this. On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > Add an optional validate_fmt operation that is used to validate the > pixelformat of CAPTURE buffers. > > This is used in next patch to ensure correct pixelformat is used for 10-bit > and 4:2:2 conten

Re: [PATCH v33 11/21] x86/sgx: Linux Enclave Driver

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jun 26, 2020 at 11:14:19AM +0200, Borislav Petkov wrote: > On Thu, Jun 18, 2020 at 01:08:33AM +0300, Jarkko Sakkinen wrote: > > diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst > > b/Documentation/userspace-api/ioctl/ioctl-number.rst > > index 59472cd6a11d..35f713e3a267 1006

Re: [PATCH v1 2/2] smsc9420: use generic power management

2020-07-02 Thread Vaibhav Gupta
On Fri, 3 Jul 2020 at 01:38, kernel test robot wrote: > > Hi Vaibhav, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v5.8-rc3 next-20200702] > [If your patch is applied to the wrong gi

Re: [PATCH v5] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim

2020-07-02 Thread Waiman Long
On 7/2/20 9:07 PM, Dave Chinner wrote: On Wed, Jul 01, 2020 at 08:59:23PM -0400, Waiman Long wrote: Suggested-by: Dave Chinner Signed-off-by: Waiman Long --- fs/xfs/xfs_super.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_s

[PATCH -next] ASoC: ti: j721e-evm: Fix missing unlock on error in j721e_audio_hw_params()

2020-07-02 Thread Wei Yongjun
Add the missing unlock before return from function j721e_audio_hw_params() in the error handling case. Fixes: 6748d0559059 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- sound/soc/ti/j721e-evm.c | 2 +- 1 file changed,

[PATCH v2 2/2] smsc9420: use generic power management

2020-07-02 Thread Vaibhav Gupta
Drivers should not use legacy power management as they have to manage power states and related operations, for the device, themselves. This driver was handling them with the help of PCI helper functions. With generic PM, all essentials will be handled by the PCI core. Driver needs to do only devic

[PATCH v2 1/2] epic100: use generic power management

2020-07-02 Thread Vaibhav Gupta
Drivers should not use legacy power management as they have to manage power states and related operations, for the device, themselves. With generic PM, all essentials will be handled by the PCI core. Driver needs to do only device-specific operations. Compile-tested only. Signed-off-by: Vaibhav

[PATCH v2 0/2] smsc: use generic power management

2020-07-02 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to remove legacy power management callbacks from smsc ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling

[PATCH] kthread: Don't cancel a work that is being cancelled

2020-07-02 Thread qiang.zhang
From: Zhang Qiang When canceling a work, if it is found that the work is in the cancelling state, we should directly exit the cancelled operation. Signed-off-by: Zhang Qiang --- kernel/kthread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kthread.c b/kernel/kthread.c index bf

Re: [PATCH 2/9] media: rkvdec: h264: Fix reference frame_num wrap for second field

2020-07-02 Thread Ezequiel Garcia
+Boris On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > When decoding the second field in a complementary field pair the second > field is sharing the same frame_num with the first field. > > Currently the frame_num for the first field is wrapped when it matches the > field being decoded

Re: [PATCH 4/9] media: rkvdec: h264: Fix bit depth wrap in pps packet

2020-07-02 Thread Ezequiel Garcia
On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > The luma and chroma bit depth fields in the pps packet is 3 bits wide. > 8 is wrongly added to the bit depth value written to these 3-bit fields. > Because only the 3 LSB is written the hardware is configured correctly. > > Correct this by

Re: [PATCH v33 12/21] x86/sgx: Allow a limited use of ATTRIBUTE.PROVISIONKEY for attestation

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jul 03, 2020 at 05:32:28AM +0300, Jarkko Sakkinen wrote: > On Mon, Jun 29, 2020 at 06:02:42PM +0200, Borislav Petkov wrote: > > On Thu, Jun 18, 2020 at 01:08:34AM +0300, Jarkko Sakkinen wrote: > > > Provisioning Certification Enclave (PCE), the root of trust for other > > > enclaves, genera

Re: [PATCH 2/9] media: rkvdec: h264: Fix reference frame_num wrap for second field

2020-07-02 Thread Ezequiel Garcia
On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > When decoding the second field in a complementary field pair the second > field is sharing the same frame_num with the first field. > > Currently the frame_num for the first field is wrapped when it matches the > field being decoded, this c

Re: [PATCH 1/9] media: rkvdec: h264: Support profile and level controls

2020-07-02 Thread Ezequiel Garcia
On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > The Rockchip Video Decoder used in RK3399 supports H.264 profiles from > Baseline to High 4:2:2 up to Level 5.1, except for the Extended profile. > > Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE and the > V4L2_CID_MPEG_VIDEO_H264_LEVEL contr

[PATCH] KVM: x86/mmu: Add capability to zap only sptes for the affected memslot

2020-07-02 Thread Sean Christopherson
Introduce a new capability, KVM_CAP_MEMSLOT_ZAP_CONTROL, to allow userspace to control the memslot zapping behavior on a per-VM basis. x86's default behavior is to zap all SPTEs, including the root shadow page, across all memslots. While effective, the nuke and pave approach isn't exactly performa

[PATCH 5/5] nvme-pci: Use standard block status macro

2020-07-02 Thread Baolin Wang
Use standard block status macro. Signed-off-by: Baolin Wang --- drivers/nvme/host/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 235ba34..616163a 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/

[PATCH 3/5] nvme-pci: Remove redundant segment validation

2020-07-02 Thread Baolin Wang
We've validated the segment counts before calling nvme_map_data(), so there is no need to validate again in nvme_pci_use_sgls() only called from nvme_map_data(). Signed-off-by: Baolin Wang --- drivers/nvme/host/pci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/nvme/host/pci.c b

[PATCH 1/5] nvme-pci: Fix some comments issues

2020-07-02 Thread Baolin Wang
Fix comments' typo and remove whitespaces before tabs to cleanup checkpatch errors. Signed-off-by: Baolin Wang --- drivers/nvme/host/pci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index c283e8d..a3d0c86 100644 -

[PATCH 2/5] nvme-pci: Add a blank line after declarations

2020-07-02 Thread Baolin Wang
Add a blank line after declarations to make code more readable. Signed-off-by: Baolin Wang --- drivers/nvme/host/pci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index a3d0c86..d0e9bbf 100644 --- a/drivers/nvme/host/pci.c +++ b/drive

[PATCH 0/5] Some cleanups for NVMe-pci driver

2020-07-02 Thread Baolin Wang
Hi, These are some cleanups for NVMe-pci driver, and no functional changes, please help to review. Thanks. Baolin Wang (5): nvme-pci: Fix some comments issues nvme-pci: Add a blank line after declarations nvme-pci: Remove redundant segment validation nvme-pci: Use the consistent return ty

[PATCH 4/5] nvme-pci: Use the consistent return type of nvme_pci_iod_alloc_size()

2020-07-02 Thread Baolin Wang
The nvme_pci_iod_alloc_size() should return 'size_t' type to keep consistent. Signed-off-by: Baolin Wang --- drivers/nvme/host/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 63bfb8b..235ba34 100644 --- a/drivers/n

Re: [PATCH 3/9] media: rkvdec: h264: Fix pic width and height in mbs

2020-07-02 Thread Ezequiel Garcia
On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > The width and height in mbs is currently configured based on OUTPUT buffer > resolution, this works for frame pictures but can cause issues for field > pictures or when frmsize step_width is changed to support 10-bit decoding. > > When fram

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