[PATCH v4 3/3] Change serdes lane parameter from u8 type to int.

2020-10-25 Thread Pavana Sharma
Returning 0 is no more an error case with MV88E6393 family which has serdes lane numbers 0, 9 or 10. So with this change .serdes_get_lane will return lane number or error (-ENODEV). Signed-off-by: Pavana Sharma --- drivers/net/dsa/mv88e6xxx/chip.c | 28 +--

[PATCH v4 2/3] Add phy interface for 5GBASER mode

2020-10-25 Thread Pavana Sharma
Signed-off-by: Pavana Sharma --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 3a09d2bf69ea..9de7c57cfd38 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -107,6 +107,7 @@ typedef enum {

Re: [PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing

2020-10-25 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 11:22:26 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 18:32:48 +0200 > Mauro Carvalho Chehab wrote: > > > The include/linux/genalloc.h file defined this typedef: > > > > typedef unsigned long (*genpool_algo_t)(unsigned long *map,unsigned > > long

[PATCH] vt_ioctl: fix GIO_UNIMAP regression

2020-10-25 Thread Jiri Slaby
In commit 5ba127878722, we shuffled with the check of 'perm'. But my brain somehow inverted the condition in 'do_unimap_ioctl' (I thought it is ||, not &&), so GIO_UNIMAP stopped working completely. Move the 'perm' checks back to do_unimap_ioctl and do them right again. In fact, this reverts this

[PATCH v4 1/3] Add support for mv88e6393x family of Marvell.

2020-10-25 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana

[PATCH v4 0/3] Add support for mv88e6393x family of Marvell.

2020-10-25 Thread Pavana Sharma
Hi, Thanks for the review. Following is the updated patchset. The 6393X family has MV88E6191X, MV88E6193X and MV88E6393X products listed in Gigabit Ethernet and Gigabit 10G+ Ethernet categories. There are no 6393 devices (without X) but there is 6191 device (without X)from a different family.

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Joel Fernandes
On Mon, Oct 26, 2020 at 01:50:58AM +0100, Frederic Weisbecker wrote: > On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > > bool rcu_segcblist_accelerate(struct rcu_segcblist *rsclp, unsigned long > > seq) > > { > > - int i; > > + int i, j; > > > >

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Joel Fernandes
On Mon, Oct 26, 2020 at 01:32:12AM +0100, Frederic Weisbecker wrote: > On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > > @@ -307,6 +317,7 @@ void rcu_segcblist_extract_done_cbs(struct > > rcu_segcblist *rsclp, > > > > if (!rcu_segcblist_ready_cbs(rsclp)) > >

Re: [PATCH] clk: exynos7: Mark aclk_fsys1_200 as critical

2020-10-25 Thread Chanwoo Choi
Hi Paweł Chmiel, On 10/25/20 12:43 AM, Paweł Chmiel wrote: > This clock must be always enabled to allow access to any registers in > fsys1 CMU. Until proper solution based on runtime PM is applied > (similar to what was done for Exynos5433), mark that clock as critical > so it won't be disabled.

Re: [RESEND v4 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-10-25 Thread Chenyi Qiang
On 10/21/2020 6:01 AM, Sean Christopherson wrote: On Mon, Oct 12, 2020 at 11:35:41AM +0800, Chenyi Qiang wrote: From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits

Re: [RESEND v4 2/2] KVM: VMX: Enable bus lock VM exit

2020-10-25 Thread Chenyi Qiang
On 10/21/2020 6:19 AM, Sean Christopherson wrote: On Mon, Oct 12, 2020 at 11:35:42AM +0800, Chenyi Qiang wrote: @@ -6138,6 +6149,26 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) return 0; } +static int vmx_handle_exit(struct kvm_vcpu *vcpu,

[PATCH 2/2] PCI: layerscape: Add EP mode support for LX2160A rev2

2020-10-25 Thread Zhiqiang Hou
From: Hou Zhiqiang The LX2160A rev2 uses the same PCIe IP as LS2088A, but LX2160A rev2 PCIe controller is integrated with different stride between PFs' register address. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pci-layerscape-ep.c | 7 +++ 1 file changed, 7 insertions(+)

[PATCH 1/2] dt-bindings: pci: layerscape-pci: Add compatible strings for LX2160A rev2

2020-10-25 Thread Zhiqiang Hou
From: Hou Zhiqiang Add PCIe Endpoint mode compatible string "fsl,lx2160ar2-pcie-ep" Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt

RE: WARNING in dma_map_page_attrs

2020-10-25 Thread Parav Pandit
Hi Christoph, > From: Jakub Kicinski > Sent: Saturday, October 24, 2020 11:45 PM > > CC: rdma, looks like rdma from the stack trace > > On Fri, 23 Oct 2020 20:07:17 -0700 syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit:3cb12d27 Merge tag

RE: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Avri Altman
> On 2020-10-22 14:37, Avri Altman wrote: > >> Since WB feature has been added, WB related sysfs entries can be > >> accessed > >> even when an UFS device does not support WB feature. In that case, the > >> descriptors which are not supported by the UFS device may be wrongly > >> reported when

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-25 Thread John Hubbard
On 10/25/20 9:21 PM, Matthew Wilcox wrote: On Thu, Oct 22, 2020 at 12:58:14PM -0700, John Hubbard wrote: On 10/22/20 4:49 AM, Matthew Wilcox wrote: On Tue, Oct 20, 2020 at 01:25:59AM -0700, John Hubbard wrote: Should copy_to_guest() use pin_user_pages_unlocked() instead of gup_unlocked? We

[PATCHv9] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2020-10-25 Thread Zhiqiang Hou
From: Xiaowei Bao Add PCIe EP node for ls1088a to support EP mode. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang Reviewed-by: Andrew Murray --- V9: - Rebase the patch since V8 patch was not accepted due to conflict. - Correct the number of outbound windows. - Add lables for EP

amdgpu crashes on OOM

2020-10-25 Thread Alex Xu (Hello71)
Hi, I frequently encounter OOM on my system, mostly due to my own fault. Recently, I noticed that not only does a swap storm happen and OOM killer gets invoked, but the graphics output freezes permanently. Checking the kernel messages, I see: kworker/u24:4: page allocation failure: order:5,

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-25 Thread Matthew Wilcox
On Thu, Oct 22, 2020 at 12:58:14PM -0700, John Hubbard wrote: > On 10/22/20 4:49 AM, Matthew Wilcox wrote: > > On Tue, Oct 20, 2020 at 01:25:59AM -0700, John Hubbard wrote: > > > Should copy_to_guest() use pin_user_pages_unlocked() instead of > > > gup_unlocked? > > > We wrote a "Case 5" in

[PATCH v3 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl

2020-10-25 Thread Daeho Jeong
From: Daeho Jeong Added a new F2FS_IOC_SET_COMPRESS_OPTION ioctl to change file compression option of a file. struct f2fs_comp_option { u8 algorithm; => compression algorithm => 0:lzo, 1:lz4, 2:zstd, 3:lzorle u8 log_cluster_size; => log scale cluster

[PATCH v3 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl

2020-10-25 Thread Daeho Jeong
From: Daeho Jeong Added a new F2FS_IOC_GET_COMPRESS_OPTION ioctl to get file compression option of a file. struct f2fs_comp_option { u8 algorithm; => compression algorithm => 0:lzo, 1:lz4, 2:zstd, 3:lzorle u8 log_cluster_size; => log scale cluster size

[PATCH v3 08/12] mm: Remove nr_entries parameter from pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers want to fetch the full size of the pvec. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagevec.h | 2 +- mm/swap.c | 4 ++-- mm/truncate.c | 5 ++--- 3 files changed, 5 insertions(+), 6

[PATCH v3 03/12] mm/filemap: Add helper for finding pages

2020-10-25 Thread Matthew Wilcox (Oracle)
There is a lot of common code in find_get_entries(), find_get_pages_range() and find_get_pages_range_tag(). Factor out xas_find_get_entry() which simplifies all three functions. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- mm/filemap.c | 98

[PATCH v3 02/12] mm/shmem: Use pagevec_lookup in shmem_unlock_mapping

2020-10-25 Thread Matthew Wilcox (Oracle)
The comment shows that the reason for using find_get_entries() is now stale; find_get_pages() will not return 0 if it hits a consecutive run of swap entries, and I don't believe it has since 2011. pagevec_lookup() is a simpler function to use than find_get_pages(), so use it instead.

[PATCH v3 07/12] mm: Add an 'end' parameter to pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
Simplifies the callers and uses the existing functionality in find_get_entries(). We can also drop the final argument of truncate_exceptional_pvec_entries() and simplify the logic in that function. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski ---

[PATCH v3 09/12] mm: Pass pvec directly to find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers of find_get_entries() use a pvec, so pass it directly instead of manipulating it in the caller. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagemap.h | 3 +-- mm/filemap.c| 21 +

[PATCH v3 05/12] mm: Add and use find_lock_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
We have three functions (shmem_undo_range(), truncate_inode_pages_range() and invalidate_mapping_pages()) which want exactly this function, so add it to filemap.c. Before this patch, shmem_undo_range() would split any compound page which overlaps either end of the range being punched in both the

[PATCH v3 06/12] mm: Add an 'end' parameter to find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
This simplifies the callers and leads to a more efficient implementation since the XArray has this functionality already. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagemap.h | 4 ++-- mm/filemap.c| 9 +

[PATCH v3 10/12] mm: Remove pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
pagevec_lookup_entries() is now just a wrapper around find_get_entries() so remove it and convert all its callers. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagevec.h | 3 --- mm/swap.c | 36

[PATCH v3 00/12] Overhaul multi-page lookups for THP

2020-10-25 Thread Matthew Wilcox (Oracle)
This THP prep patchset changes several page cache iteration APIs to only return head pages. - It's only possible to tag head pages in the page cache, so only return head pages, not all their subpages. - Factor a lot of common code out of the various batch lookup routines - Add

[PATCH v3 01/12] mm: Make pagecache tagged lookups return only head pages

2020-10-25 Thread Matthew Wilcox (Oracle)
Pagecache tags are used for dirty page writeback. Since dirtiness is tracked on a per-THP basis, we only want to return the head page rather than each subpage of a tagged page. All the filesystems which use huge pages today are in-memory, so there are no tagged huge pages today. Signed-off-by:

[PATCH v3 11/12] mm/truncate,shmem: Handle truncates that split THPs

2020-10-25 Thread Matthew Wilcox (Oracle)
Handle THP splitting in the parts of the truncation functions which already handle partial pages. Factor all that code out into a new function called truncate_inode_partial_page(). We lose the easy 'bail out' path if a truncate or hole punch is entirely within a single page. We can add some

[PATCH v3 12/12] mm/filemap: Return only head pages from find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers now expect head (and base) pages, and can handle multiple head pages in a single batch, so make find_get_entries() behave that way. Also take the opportunity to make it use the pagevec infrastructure instead of open-coding how pvecs behave. This has the side-effect of being able to

[PATCH v3 04/12] mm/filemap: Add mapping_seek_hole_data

2020-10-25 Thread Matthew Wilcox (Oracle)
Rewrite shmem_seek_hole_data() and move it to filemap.c. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: William Kucharski --- include/linux/pagemap.h | 2 ++ mm/filemap.c| 76 + mm/shmem.c | 72

Re: [PATCH v2 5/6] pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant

2020-10-25 Thread Jingoo Han
On 10/25/20, 10:49 PM, Jaehoon Chung wrote: > > Dear Jingoo, Hi Jaehoon, > On 10/24/20 12:12 PM, Jingoo Han wrote: > > On 10/23/20, 3:58 AM, Marek Szyprowski wrote: > >> > >> From: Jaehoon Chung > >> > >> Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: > >> dts:

[PATCH v2] PCI: check also dynamic IDs for duplicate in new_id_store()

2020-10-25 Thread Zhenzhong Duan
When a device ID data is writen to /sys/bus/pci/drivers/.../new_id, only static ID table is checked for duplicate and multiple dynamic ID entries of same kind are allowed to exist in a dynamic linked list. Fix it by calling pci_match_device() which checks both dynamic and static IDs. After fix,

RE: [RFC PATCH 3/6] fpga: dfl: add an API to get the base device for dfl device

2020-10-25 Thread Wu, Hao
> Subject: [RFC PATCH 3/6] fpga: dfl: add an API to get the base device for dfl > device > > This patch adds an API for dfl devices to find which physical device > owns the DFL. > > This patch makes preparation for supporting DFL Ether Group private > feature driver. It uses this information to

RE: [RFC PATCH 2/6] fpga: dfl: export network configuration info for DFL based FPGA

2020-10-25 Thread Wu, Hao
> Subject: [RFC PATCH 2/6] fpga: dfl: export network configuration info for DFL > based FPGA > > This patch makes preparation for supporting DFL Ether Group private > feature driver, which reads bitstream_id.vendor_net_cfg field to > determin the interconnection of network components on FPGA

Re: [PATCH v3 1/5] scsi: ufs: atomic update for clkgating_enable

2020-10-25 Thread Can Guo
On 2020-10-24 23:06, Jaegeuk Kim wrote: From: Jaegeuk Kim When giving a stress test which enables/disables clkgating, we hit device timeout sometimes. This patch avoids subtle racy condition to address it. If we use __ufshcd_release(), I've seen that gate_work can be called in parallel

Re: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Can Guo
Hi Avri, On 2020-10-22 14:37, Avri Altman wrote: Since WB feature has been added, WB related sysfs entries can be accessed even when an UFS device does not support WB feature. In that case, the descriptors which are not supported by the UFS device may be wrongly reported when they are accessed

[PATCH v2] ARM: dts: sun8i: add FriendlyArm ZeroPi support

2020-10-25 Thread Yu-Tung Chang
The ZeroPi is another fun board developed by FriendlyELEC for makers, hobbyists and fans. ZeroPi key features - Allwinner H3, Quad-core Cortex-A7@1.2GHz - 256MB/512MB DDR3 RAM - microsd slot - 10/100/1000Mbps Ethernet - Debug Serial Port - DC 5V/2A power-supply Signed-off-by: Yu-Tung Chang ---

Re: [PATCH net] net: hns3: clean up a return in hclge_tm_bp_setup()

2020-10-25 Thread Yunsheng Lin
On 2020/10/23 19:22, Dan Carpenter wrote: > Smatch complains that "ret" might be uninitialized if we don't enter > the loop. We do always enter the loop so it's a false positive, but > it's cleaner to just return a literal zero and that silences the > warning as well. Thanks for the clean up.

Re: [PATCH v2 5/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2020-10-25 Thread Andrew Jeffery
Hi Wang Chia-Wei, On Mon, 5 Oct 2020, at 18:58, Chia-Wei, Wang wrote: > The LPC controller has no concept of the BMC and the Host partitions. > This patch fixes the documentation by removing the description on LPC > partitions. The register offsets illustrated in the DTS node examples > are also

Re: [PATCH v2 5/5] scsi: ufs: fix clkgating on/off correctly

2020-10-25 Thread Can Guo
On 2020-10-23 08:53, Jaegeuk Kim wrote: On 10/21, Can Guo wrote: On 2020-10-21 12:52, jaeg...@kernel.org wrote: > On 10/21, Can Guo wrote: > > On 2020-10-21 03:52, Jaegeuk Kim wrote: > > > The below call stack prevents clk_gating at every IO completion. > > > We can remove the condition,

Re: [PATCH v6 0/2] PM / devfreq: Add governor feature and attribute flag

2020-10-25 Thread Chanwoo Choi
On 10/26/20 11:50 AM, Chanwoo Choi wrote: > Each devfreq governor can have the different sysfs attributes and features. > In order to provide the only available sysfs attribute to user-space, > add governor attribute flag with DEVFREQ_GOV_ATTR_[attribute name] defintion. > > Also, each governor

Re: [PATCH v2] PM / devfreq: Remove redundant governor_name from struct devfreq

2020-10-25 Thread Chanwoo Choi
On 10/23/20 7:32 PM, Chanwoo Choi wrote: > The devfreq structure instance contains the governor_name and a governor > instance. When need to show the governor name, better to use the name > of devfreq_governor structure. So, governor_name variable in struct devfreq > is a redundant and unneeded

Re: [PATCH v6 48/52] PM / devfreq: tegra20: Relax Kconfig dependency

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > The Tegra EMC driver now could be compiled as a loadable kernel module. > Currently devfreq driver depends on the EMC/MC drivers in Kconfig, and > thus, devfreq is forced to be a kernel module if EMC is compiled as a > module. This build dependency

RE: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used ring

2020-10-25 Thread Sherry Sun
Hi Greg & Christoph, > Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used > ring > > On Thu, Oct 22, 2020 at 01:06:36PM +0800, Sherry Sun wrote: > > We don't need to allocate and reassign the used ring here and remove > > the used_address_updated flag.Since RC has

Re: [PATCH v6 47/52] PM / devfreq: tegra20: Silence deferred probe error

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > Tegra EMC driver was turned into a regular kernel driver, meaning that it > could be compiled as a loadable kernel module now. Hence EMC clock isn't > guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER. > Let's silence the deferred

Re: [PATCH] mm: swap: Use memset to fill the swap_map with SWAP_HAS_CACHE

2020-10-25 Thread linmiaohe
Andrew Morton wrote: > On Mon, 21 Sep 2020 08:22:24 -0400 Miaohe Lin wrote: > >> We could use helper memset to fill the swap_map with SWAP_HAS_CACHE >> instead of a direct loop here to simplify the code. Also we can remove >> the local variable i and map this way. >> *slot =

Re: [PATCH v6 50/52] PM / devfreq: tegra30: Silence deferred probe error

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > Tegra EMC driver was turned into a regular kernel driver, meaning that it > could be compiled as a loadable kernel module now. Hence EMC clock isn't > guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER. > Let's silence the deferred

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-25 Thread Billy Tsai
On 2020/10/26, 10:21 AM, Andrew Jeffery wrote: On Mon, 26 Oct 2020, at 12:33, Billy Tsai wrote: > > On 2020/10/26, 9:27 AM, Andrew Jeffery wrote: > > On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > > > At ast2600a1 we change feature of master

Re: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Can Guo
On 2020-10-23 14:35, Daejun Park wrote: Hi, Can Guo Since WB feature has been added, WB related sysfs entries can be accessed even when an UFS device does not support WB feature. In that case, the descriptors which are not supported by the UFS device may be wrongly reported when they are

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-25 Thread Zong Li
On Sat, Oct 24, 2020 at 3:29 AM Colin Ian King wrote: > > On 21/10/2020 08:38, Zong Li wrote: > > Like the commit cb9d7fd51d9f ("watchdog: Mark watchdog touch functions > > as notrace"), some architectures assume that the stopped CPUs don't make > > function calls to traceable functions when they

RE: [PATCH V3 1/4] misc: vop: change the way of allocating vring and device page

2020-10-25 Thread Sherry Sun
Hi Christoph, > > > static int mic_dp_init(struct mic_device *mdev) { > > - mdev->dp = kzalloc(MIC_DP_SIZE, GFP_KERNEL); > > + mdev->dp = dma_alloc_coherent(>pdev->dev, MIC_DP_SIZE, > > + >dp_dma_addr, GFP_KERNEL); > > if (!mdev->dp) > >

Re: [PATCH 1/2] PCI: export pci_match_device()

2020-10-25 Thread Zhenzhong Duan
On Thu, Oct 22, 2020 at 11:21 PM Christoph Hellwig wrote: > > On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > > a driver might want to check for. > > > > Export pci_match_device() as a replacement which

Re: [PATCH v2 5/6] pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant

2020-10-25 Thread Jaehoon Chung
Dear Jingoo, On 10/24/20 12:12 PM, Jingoo Han wrote: > On 10/23/20, 3:58 AM, Marek Szyprowski wrote: >> >> From: Jaehoon Chung >> >> Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: >> dts: exynos: Remove Exynos5440"). Rework this driver to support DWC PCIe >> variant

Re: [PATCH] mm/swap_state: Skip meaningless swap cache readahead when ra_info.win == 0

2020-10-25 Thread linmiaohe
Andrew Morton wrote: > On Fri, 9 Oct 2020 09:30:59 -0400 Miaohe Lin wrote: > >> swap_ra_info() may leave ra_info untouched in non_swap_entry() case as >> page table lock is not held. In this case, we have ra_info.nr_pte == 0 >> and it is meaningless to continue with swap cache readahead. Skip

Re: [PATCH v2 0/5] Remove LPC register partitioning

2020-10-25 Thread Andrew Jeffery
On Tue, 20 Oct 2020, at 16:33, ChiaWei Wang wrote: > Hi All, > > Do you have any comment on the v2 changes? > Thanks. > Hmm, seems I'm missing patches 3/5 and 4/5 from my inbox. Weird. Anyway, sorry for the delay, I'm looking at them now. Andrew

[PATCH v6 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-25 Thread Chanwoo Choi
DEVFREQ supports the default governors like performance, simple_ondemand and also allows the devfreq driver to add their own governor like tegra30-devfreq.c according to their requirement. In result, some sysfs attributes are useful or not useful. Prior to that the user can access all sysfs

[PATCH v6 1/2] PM / devfreq: Add governor feature flag

2020-10-25 Thread Chanwoo Choi
The devfreq governor is able to have the specific flag as follows in order to implement the specific feature. For example, devfreq allows user to change the governors on runtime via sysfs interface. But, if devfreq device uses 'passive' governor, don't allow user to change the governor. For this

[PATCH v6 0/2] PM / devfreq: Add governor feature and attribute flag

2020-10-25 Thread Chanwoo Choi
Each devfreq governor can have the different sysfs attributes and features. In order to provide the only available sysfs attribute to user-space, add governor attribute flag with DEVFREQ_GOV_ATTR_[attribute name] defintion. Also, each governor is able to have the specific flag in order to support

RE: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-25 Thread Wu, Hao
> Subject: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class > driver > > Create the FPGA Security Manager class driver. The security > manager provides interfaces to manage secure updates for the > FPGA and BMC images that are stored in FLASH. The driver can > also be used to

Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2020-10-25 Thread Leizhen (ThunderTown)
On 2020/10/23 15:17, Arnd Bergmann wrote: > On Sun, Oct 18, 2020 at 4:10 AM Leizhen (ThunderTown) > wrote: >> On 2020/10/17 3:27, Florian Fainelli wrote: >>> On 10/16/20 11:23 AM, Arnd Bergmann wrote: On Fri, Oct 16, 2020 at 6:48 PM Florian Fainelli wrote: > On 10/16/20 4:01

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-25 Thread Andrew Jeffery
On Mon, 26 Oct 2020, at 12:33, Billy Tsai wrote: > > On 2020/10/26, 9:27 AM, Andrew Jeffery wrote: > > On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > > > At ast2600a1 we change feature of master sgpio to 2 sets. > > > So this patch is used to add the pinctrl setting of

Re: [PATCH] iommu/amd: Increase interrupt remapping table limit to 512 entries

2020-10-25 Thread Suravee Suthikulpanit
Hi Joerg, Do you have any concerns regarding this patch? Thanks, Suravee On 10/15/20 9:50 AM, Suravee Suthikulpanit wrote: Certain device drivers allocate IO queues on a per-cpu basis. On AMD EPYC platform, which can support up-to 256 cpu threads, this can exceed the current MAX_IRQ_PER_TABLE

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-25 Thread Billy Tsai
On 2020/10/26, 9:27 AM, Andrew Jeffery wrote: On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > > At ast2600a1 we change feature of master sgpio to 2 sets. > > So this patch is used to add the pinctrl setting of the new sgpio. > > > > Signed-off-by: Billy Tsai > >

ERROR: ".rcu_barrier" undefined!

2020-10-25 Thread kernel test robot
Hi Ursula, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 986b9eacb25910865b50e5f298aa8e2df7642f1b commit: 4ead9c96d528e1b9937382321910a2bf35fc1a86 net/smc: use rcu_barrier() on module unload date: 11 months

[Resend][PATCH] drivers/thermal: remove unnecessary structure members allocated_tzp

2020-10-25 Thread Bernard
Struct power_allocator_params element allocated_tzp is only used in unbind to kfree the kzalloc space. Maybe we don’t have to need this member to mark, also, kfree will handle NULL point, there is no risk. This change is to make the code run a bit fast. Signed-off-by: Bernard Zhao ---

[Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-25 Thread Bernard
Function thermal_zone_device_register, in the for circle, if the first if branch set the count bit in tz->trips_disabled, there is no need to set in the other if branch again. This change is to make the code run a bit fast and readable. Signed-off-by: Bernard Zhao ---

Re: [PATCH v5 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-25 Thread Chanwoo Choi
On 10/26/20 1:31 AM, Dmitry Osipenko wrote: > 23.10.2020 13:26, Chanwoo Choi пишет: >> @@ -1401,8 +1423,13 @@ static ssize_t governor_store(struct device *dev, >> struct device_attribute *attr, >> "%s: reverting to Governor %s failed (%d)\n", >>

Re: [PATCH v5 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-25 Thread Chanwoo Choi
On 10/26/20 1:30 AM, Dmitry Osipenko wrote: > 23.10.2020 13:26, Chanwoo Choi пишет: >> @@ -909,6 +915,8 @@ struct devfreq *devfreq_add_device(struct device *dev, >> goto err_init; >> } >> >> +create_sysfs_files(devfreq, governor); >> + >> devfreq->governor = governor;

Re: [PATCH v19 18/20] mm/lru: replace pgdat lru_lock with lruvec lock

2020-10-25 Thread Alex Shi
在 2020/10/26 上午5:51, Hugh Dickins 写道: > [PATCH] mm/lru: minimize workingset_age_nonresident() interference > > 1. move_pages_to_lru() batch workingset_age_nonresident() (from Yu Zhao) > 2. workingset_age_nonresident() after unlock of lru_lock (from Yu Zhao) > 3. lru_note_cost_unlock_irq() to

RE: [PATCH 2/2] i2c: imx: remove id_table entry

2020-10-25 Thread Peng Fan
> Subject: Re: [PATCH 2/2] i2c: imx: remove id_table entry > > On Sat, Oct 24, 2020 at 07:47:13AM +, Peng Fan wrote: > > > Subject: Re: [PATCH 2/2] i2c: imx: remove id_table entry > > > > > > On Fri, Oct 23, 2020 at 04:18:23PM +0800, peng@nxp.com wrote: > > > > From: Peng Fan > > > > > >

Re: [PATCH v3 03/20] perf arm-spe: Refactor payload size calculation

2020-10-25 Thread Leo Yan
Hi Andre, On Fri, Oct 23, 2020 at 06:08:53PM +0100, André Przywara wrote: > On 22/10/2020 15:57, Leo Yan wrote: > > Hi Leo, > > > This patch defines macro to extract "sz" field from header, and renames > > the function payloadlen() to arm_spe_payload_len(). > > > > Signed-off-by: Leo Yan > >

KASAN: use-after-free Write in tty_init_dev

2020-10-25 Thread Kyungtae Kim
We report a bug (in linux-5.8.13) found by FuzzUSB (a modified version of syzkaller). The bug happens when the freed object tty->port is accessed in tty_init_dev (line 1358). It seems tty->port is freed during the locking (i.e., tty_ldisc_lock) ahead (line 1355).

[PATCH] ibmvfc: add new fields for version 2 of several MADs

2020-10-25 Thread Tyrel Datwyler
Introduce a targetWWPN field to several MADs. Its possible that a scsi ID of a target can change due to some fabric changes. The WWPN of the scsi target provides a better way to identify the target. Also, add flags for receiving MAD versioning information and advertising client support for

[PATCH v2] net/core/dev.c : Use skb_is_gso

2020-10-25 Thread Yi Li
Trivial fix to use func skb_is_gso in place of test for skb_shinfo(skb)->gso_size. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 9499a414d67e..55f66e108059 100644 --- a/net/core/dev.c +++

Re: [PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node

2020-10-25 Thread Andrew Jeffery
On Mon, 12 Oct 2020, at 15:05, Joel Stanley wrote: > On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > > > This patch is used to add sgpiom and sgpios nodes and add compatiable > > string for sgpiom. > > You also need to add sgpios documentation to the bindings docs. > > Whenever you add

Re: [PATCH] i2c: mediatek: remove redundant null check

2020-10-25 Thread Qii Wang
Thanks, it looks good for me, it would be better to remove all useless members On Wed, 2020-09-30 at 08:42 +, Xu Wang wrote: > Because clk_disable_unprepare already checked NULL clock parameter, > so the additional checks are unnecessary, just remove it > > Signed-off-by: Xu Wang > --- >

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-25 Thread Andrew Jeffery
On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > At ast2600a1 we change feature of master sgpio to 2 sets. > So this patch is used to add the pinctrl setting of the new sgpio. > > Signed-off-by: Billy Tsai > --- > arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi | 5 >

Re: [PATCH 0/4] arch, mm: improve robustness of direct map manipulation

2020-10-25 Thread Edgecombe, Rick P
On Sun, 2020-10-25 at 12:15 +0200, Mike Rapoport wrote: > Indeed, for architectures that define CONFIG_ARCH_HAS_SET_DIRECT_MAP > it is > possible that __kernel_map_pages() would fail, but since this > function is > void, the failure will go unnoticed. Could you elaborate on how this could happen?

[GIT PULL] Crypto Fixes for 5.10

2020-10-25 Thread Herbert Xu
Hi Linus: This push fixes a regression in x86/poly1305. The following changes since commit 3093e7c16e12d729c325adb3c53dde7308cefbd8: X.509: Fix modular build of public_key_sm2 (2020-10-08 16:39:14 +1100) are available in the Git repository at:

Apply Now

2020-10-25 Thread Jennifer Collee
Good Morning! Did you receive my previous email? Were you able to apply for a fast and affordable business, project or corporate loans on our website? We look forward to have you as our prospective applicant. With regards, Ms. Jennifer Collee -- This email has been checked for viruses by

Re: PROBLEM: Reiser4 hard lockup

2020-10-25 Thread David Niklas
I'll reply to both of you in this email. On Sun, 25 Oct 2020 02:04:22 -0700 (PDT) Metztli Information Technology wrote: > Niltze, David- > > A few observations are in order below: > > On Sat, Oct 24, 2020 at 1:39 PM David Niklas > wrote: > > > > Hello, > > > reiser4progs 1.1.x Software

Re: [PATCH v8 -tip 24/26] sched: Move core-scheduler interfacing code to a new file

2020-10-25 Thread Li, Aubrey
On 2020/10/20 9:43, Joel Fernandes (Google) wrote: > core.c is already huge. The core-tagging interface code is largely > independent of it. Move it to its own file to make both files easier to > maintain. > > Tested-by: Julien Desfossez > Signed-off-by: Joel Fernandes (Google) > --- >

Re: [PATCH 1/3] Arm: dts: aspeed-g6: Fix the register range of gpio

2020-10-25 Thread Andrew Jeffery
On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > This patch is used to fix the memory range of gpio0 > > Signed-off-by: Billy Tsai Reviewed-by: Andrew Jeffery

linux-next: Tree for Oct 26

2020-10-25 Thread Stephen Rothwell
Hi all, Changes since 20201023: The risc-v tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 606 723 files changed, 289121 insertions(+), 4327 deletions(-) I have created

Re: [PATCH 4.19 053/125] media: gpio-ir-tx: improve precision of transmitted signal due to scheduling

2020-10-25 Thread Norman Rasmussen
Hi Sean, On Wed, 2 Sep 2020, Sean Young wrote: Hi Pavel, On Wed, Sep 02, 2020 at 12:25:21PM +0200, Pavel Machek wrote: Hi! [ Upstream commit ea8912b788f8144e7d32ee61e5ccba45424bef83 ] usleep_range() may take longer than the max argument due to scheduling, especially under load. This is

Re: [PATCH 4/4] arch, mm: make kernel_page_present() always available

2020-10-25 Thread Edgecombe, Rick P
On Sun, 2020-10-25 at 12:15 +0200, Mike Rapoport wrote: > index 7f248fc45317..16f878c26667 100644 > --- a/arch/x86/mm/pat/set_memory.c > +++ b/arch/x86/mm/pat/set_memory.c > @@ -2228,7 +2228,6 @@ void __kernel_map_pages(struct page *page, int > numpages, int enable) > } > #endif /*

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Frederic Weisbecker
On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > bool rcu_segcblist_accelerate(struct rcu_segcblist *rsclp, unsigned long seq) > { > - int i; > + int i, j; > > WARN_ON_ONCE(!rcu_segcblist_is_enabled(rsclp)); > if (rcu_segcblist_restempty(rsclp,

drivers/vdpa/mlx5/core/mr.c:244: undefined reference to `vhost_iotlb_itree_first'

2020-10-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3650b228f83adda7e5ee532e2b90429c03f7b9ec commit: 94abbccdf2916cb03f9626f2d36c6e9971490c12 vdpa/mlx5: Add shared memory registration code date: 3 months ago config: riscv-randconfig-r035-20201026 (attached

Re: [PATCH v5 00/17] HSM driver for ACRN hypervisor

2020-10-25 Thread Shuo A Liu
Hi Dave, On Wed 21.Oct'20 at 8:19:10 -0700, Dave Hansen wrote: How widely is ACRN used? It is some little Intel toy hypervisor, or is it already seeing broad use in the world? This, for instance, seems to have a backport: https://github.com/teslamotors/linux/tree/intel-4.14 So far

Re: [PATCH 2/4] PM: hibernate: improve robustness of mapping pages in the direct map

2020-10-25 Thread Edgecombe, Rick P
On Sun, 2020-10-25 at 12:15 +0200, Mike Rapoport wrote: > From: Mike Rapoport > > When DEBUG_PAGEALLOC or ARCH_HAS_SET_DIRECT_MAP is enabled a page may > be > not present in the direct map and has to be explicitly mapped before > it > could be copied. > > On arm64 it is possible that a page

Re: For review: seccomp_user_notif(2) manual page

2020-10-25 Thread Kees Cook
On Thu, Oct 01, 2020 at 03:52:02AM +0200, Jann Horn wrote: > On Thu, Oct 1, 2020 at 1:25 AM Tycho Andersen wrote: > > On Thu, Oct 01, 2020 at 01:11:33AM +0200, Jann Horn wrote: > > > On Thu, Oct 1, 2020 at 1:03 AM Tycho Andersen wrote: > > > > On Wed, Sep 30, 2020 at 10:34:51PM +0200, Michael

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Frederic Weisbecker
On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > @@ -307,6 +317,7 @@ void rcu_segcblist_extract_done_cbs(struct rcu_segcblist > *rsclp, > > if (!rcu_segcblist_ready_cbs(rsclp)) > return; /* Nothing to do. */ > + rclp->len =

include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_171' declared with attribute error: BUILD_BUG_ON failed: !__builtin_constant_p(size)

2020-10-25 Thread kernel test robot
Hi Christoph, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3650b228f83adda7e5ee532e2b90429c03f7b9ec commit: 11129e8ed4d91a062c5062d80f476adc7fbedbac riscv: use memcpy based uaccess for nommu again date: 3

Re: For review: seccomp_user_notif(2) manual page

2020-10-25 Thread Kees Cook
On Thu, Oct 15, 2020 at 01:24:03PM +0200, Michael Kerrisk (man-pages) wrote: > On 10/1/20 1:39 AM, Kees Cook wrote: > > I'll comment more later, but I've run out of time today and I didn't see > > anyone mention this detail yet in the existing threads... :) > > Later never came :-). But, I hope

Re: [PATCH] mm: swap: Use memset to fill the swap_map with SWAP_HAS_CACHE

2020-10-25 Thread Andrew Morton
On Mon, 21 Sep 2020 08:22:24 -0400 Miaohe Lin wrote: > We could use helper memset to fill the swap_map with SWAP_HAS_CACHE instead > of a direct loop here to simplify the code. Also we can remove the local > variable i and map this way. > > ... > > --- a/mm/swapfile.c > +++ b/mm/swapfile.c > @@

Re: [PATCH] mm/swap_state: Skip meaningless swap cache readahead when ra_info.win == 0

2020-10-25 Thread Andrew Morton
On Fri, 9 Oct 2020 09:30:59 -0400 Miaohe Lin wrote: > swap_ra_info() may leave ra_info untouched in non_swap_entry() case as page > table lock is not held. In this case, we have ra_info.nr_pte == 0 and it is > meaningless to continue with swap cache readahead. Skip such ops by init > ra_info.win

  1   2   3   4   >