Re: [PATCH 2/2] selftests/mm: Fix a build failure on powerpc

2025-04-28 Thread Donet Tom
soft-dirty   CC   protection_keys   CC   va_high_addr_switch   CC   virtual_address_range   CC   write_to_hugetlbfs Reviewed-by:Donet Tom Tested-by: Donet Tom /* 4-byte instructions * 16384 = 64K page */ -#define __page_o_noops() asm(".rept 16384 ; nop; .endr") +#define __page_o

Re: [PATCH] selftest/mm: Make hugetlb_reparenting_test tolerant to async reparenting

2025-04-07 Thread Donet Tom
: 52428800 Populating. Not writing to memory. Using method=0 Shared mapping. RESERVE mapping. Allocating using HUGETLBFS. Assert memory charged correctly for child only use. actual = 10 MB expected = 0 MB cleanup Feel free to add Tested-by Donet Tom Signed-off-by: Li Wang Cc: Waiman Long Cc

Re: [PATCH] sev-snp: parse MP tables for VMware hypervisor

2025-03-10 Thread Tom Lendacky
>> #include >> #include >> #include >> +#include >> +#include >> >> #undef pr_fmt >> #define pr_fmt(fmt) "vmware: " fmt >> @@ -429,6 +432,10 @@ static void __init vmware_platform_setup(void) >> pr_warn("Failed t

[PATCH] selftests/mm: Added new test cases to the migration test

2024-12-19 Thread Donet Tom
# Signed-off-by: Donet Tom --- tools/testing/selftests/mm/migration.c | 99 ++ 1 file changed, 99 insertions(+) diff --git a/tools/testing/selftests/mm/migration.c b/tools/testing/selftests/mm/migration.c index 64bcbb7151cf..1e3a595fbf01 100644 --- a/tools/testing/selftests

Re: [PATCH] selftest: hugetlb_dio: Fix test naming

2024-11-28 Thread Donet Tom
On 11/28/24 18:14, Mark Brown wrote: On Thu, Nov 28, 2024 at 10:46:56AM +0530, Donet Tom wrote: On 11/27/24 21:44, Mark Brown wrote: + ksft_test_result(free_hpage_a == free_hpage_b, +"free huge pages from %u-%u\n", start_off, end_off); This test a

Re: [PATCH] selftest: hugetlb_dio: Fix test naming

2024-11-27 Thread Donet Tom
On 11/27/24 21:44, Mark Brown wrote: The string logged when a test passes or fails is used by the selftest framework to identify which test is being reported. The hugetlb_dio test not only uses the same strings for every test that is run but it also uses different strings for test passes and fa

Re: [PATCH] selftests: hugetlb_dio: Fixup Check for initial conditions to skip in the start

2024-11-09 Thread Donet Tom
On 11/10/24 12:19, Donet Tom wrote: This test verifies that a hugepage, used as a user buffer for DIO operations, is correctly freed upon unmapping. To test this, we read the count of free hugepages before and after the mmap, DIO, and munmap operations, then check if the free hugepage count is

Re: [PATCH] selftests: hugetlb_dio: Fixup Check for initial conditions to skip in the start

2024-11-09 Thread Donet Tom
On 11/10/24 12:19, Donet Tom wrote: This test verifies that a hugepage, used as a user buffer for DIO operations, is correctly freed upon unmapping. To test this, we read the count of free hugepages before and after the mmap, DIO, and munmap operations, then check if the free hugepage count is

[PATCH] selftests: hugetlb_dio: Fixup Check for initial conditions to skip in the start

2024-11-09 Thread Donet Tom
"selftests: hugetlb_dio: check for initial conditions to skip in the start") Signed-off-by: Donet Tom --- tools/testing/selftests/mm/hugetlb_dio.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/mm/hugetlb_dio.c b/tools/testing/selftests/mm/hugetlb_dio.

Re: [PATCH] selftests: hugetlb_dio: Check for initial conditions to skip in the start

2024-11-08 Thread Donet Tom
On 11/8/24 16:05, Donet Tom wrote: On 11/1/24 19:45, Muhammad Usama Anjum wrote: The test should be skipped if initial conditions aren't fulfilled in the start instead of failing and outputting non-compliant TAP logs. This kind of failure pollutes the results. The initial condition

Re: [PATCH] selftests: hugetlb_dio: Check for initial conditions to skip in the start

2024-11-08 Thread Donet Tom
On 11/1/24 19:45, Muhammad Usama Anjum wrote: The test should be skipped if initial conditions aren't fulfilled in the start instead of failing and outputting non-compliant TAP logs. This kind of failure pollutes the results. The initial conditions are: - The test should only execute if /tmp fi

Re: [PATCH] selftests/mm: Fixed incorrect buffer->mirror size in hmm2 double_map test

2024-09-27 Thread Donet Tom
On 9/27/24 12:48, Muhammad Usama Anjum wrote: On 9/27/24 10:07 AM, Donet Tom wrote: The hmm2 double_map test was failing due to an incorrect buffer->mirror size. The buffer->mirror size was 6, while buffer->ptr size was 6 * PAGE_SIZE. The test failed because the kernel's copy_to

[PATCH] selftests/mm: Fixed incorrect buffer->mirror size in hmm2 double_map test

2024-09-26 Thread Donet Tom
#OK hmm2.hmm2_device_private.double_map ok 53 hmm2.hmm2_device_private.double_map Signed-off-by: Donet Tom --- tools/testing/selftests/mm/hmm-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/hmm-tests.c b/tools/testing/selftests/mm/hmm-tests.c index d2c

Re: [PATCH 0/3] tracing: Fix some selftest issues

2024-05-29 Thread Tom Zanussi
>  * To test, select CONFIG_SYNTH_EVENT_GEN_TEST and build the module. >  * Then: >  * >  * # insmod kernel/trace/synth_event_gen_test.ko >  * # cat /sys/kernel/tracing/trace >  * >  * You should see several events in the trace buffer - >  * "create_synth_test",

Re: [PATCH] tracing: Ensure visibility when inserting an element into tracing_map

2024-01-22 Thread Tom Zanussi
p *map, void *key, > bool lookup_only) > } >   > memcpy(elt->key, key, map->key_size); > -   entry->val = elt; > +   /* > +    * Ensure the initialization is visible and > +    * publish the elt. > +    */ > +   smp_wmb(); > +   WRITE_ONCE(entry->val, elt); > atomic64_inc(&map->hits); >   > return entry->val; > > base-commit: 9d1694dc91ce7b80bc96d6d8eaf1a1eca668d847 Makes sense, thanks for fixing this! Acked-by: Tom Zanussi Tom

Re: Building signed debs

2023-12-11 Thread Tom Cook
On Sat, Dec 9, 2023 at 6:18 PM Masahiro Yamada wrote: > On Fri, Dec 8, 2023 at 8:14 PM Tom Cook wrote: > > > > I'm trying to build a signed .deb kernel package of > > https://github.com/torvalds/linux/tree/v6.6. I've copied > > certs/default_x509.genkey to c

[PATCH] libnvdimm/security: change __nvdimm_security_overwrite_query from global to static

2022-04-21 Thread Tom Rix
Smatch reports this issue security.c:416:6: warning: symbol '__nvdimm_security_overwrite_query' was not declared. Should it be static? __nvdimm_security_overwrite_query is only used in security.c so change its storage-class specifier to static Signed-off-by: Tom Rix --- driv

Re: [PATCH] fpga: dfl: pci: gracefully handle misconfigured port entries

2021-04-20 Thread Tom Rix
if (offset >= len) { + dev_warn(&pcidev->dev, "bad port offset %u >= %pa\n", +offset, &len); why %pa,&len for instead of %u,len ? Tom + continue; + } + len

Re: [PATCH v2 1/1] dmaengine: idxd: Add IDXD performance monitor support

2021-04-20 Thread Zanussi, Tom
Hi Vinod, On 4/20/2021 6:11 AM, Vinod Koul wrote: On 03-04-21, 11:45, Tom Zanussi wrote: +config INTEL_IDXD_PERFMON + bool "Intel Data Accelerators performance monitor support" + depends on INTEL_IDXD + default y default y..? Will change to n. /* IDX

[ANNOUNCE] 5.4.109-rt56

2021-04-17 Thread Tom Zanussi
4.109-rt55 by applying the incremental patch: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/incr/patch-5.4.109-rt55-rt56.patch.xz Enjoy! Tom Changes from v5.4.109-rt55: --- Sebastian Andrzej Siewior (1): mm: slub: Don't resize the location tracking cache on PREEMPT_RT T

Re: [PATCH v2 0/8] ccp: KVM: SVM: Use stack for SEV command buffers

2021-04-15 Thread Tom Lendacky
On 4/15/21 11:09 AM, Paolo Bonzini wrote: > On 07/04/21 20:00, Tom Lendacky wrote: >> For the series: >> >> Acked-by: Tom Lendacky > > Shall I take this as a request (or permission, whatever :)) to merge it > through the KVM tree? Adding Herbert. Here&

Re: Proposal of improvement for DMA - direct passing of hugepages to the SG list

2021-04-14 Thread Tom Rix
3.html https://github.com/Xilinx/dma_ip_drivers Maybe its kernel or dpdk driver has what you need. Tom

Re: [PATCH v9 1/1] mfd: intel-m10-bmc: support for MAX10 BMC Secure Updates

2021-04-14 Thread Tom Rix
_LEGACY_INVALID 0x +/* Secure update doorbell register, in system register region */ +#define M10BMC_DOORBELL0x400 To be consistent with the existing register #defines, The bit values for the register should follow the register and have a M10BMC_ prefix To

Re: [PATCH V4 XRT Alveo 09/20] fpga: xrt: management physical function driver (root)

2021-04-14 Thread Tom Rix
On 4/9/21 11:50 AM, Max Zhen wrote: Hi Tom, On 3/31/21 6:03 AM, Tom Rix wrote: On 3/23/21 10:29 PM, Lizhi Hou wrote: The PCIE device driver which attaches to management function on Alveo devices. It instantiates one or more group drivers which, in turn, instantiate platform drivers. The

Re: [PATCH v2 2/2] hwmon: intel-m10-bmc-hwmon: add sensor support of Intel D5005 card

2021-04-14 Thread Tom Rix
Acked-by: Lee Jones lgtm Reviewed-by: Tom Rix --- v2: change variable name from m10bmc_bmc_subdevs to m10bmc_d5005_subdevs added Acked-by: Lee Jones --- drivers/hwmon/intel-m10-bmc-hwmon.c | 122 drivers/mfd/intel-m10-bmc.c | 10 +++ 2

Re: [PATCH v2 1/2] spi: Add DFL bus driver for Altera SPI Master

2021-04-14 Thread Tom Rix
return PTR_ERR(aspi->base); + } + + aspi->regmap = devm_regmap_init(dev, NULL, aspi, &indirect_regbus_cfg); + if (IS_ERR(aspi->regmap)) + return PTR_ERR(aspi->regmap); + + aspi->altr_spi = create_cntrl(dev, aspi->base, &m10_bmc_

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-14 Thread Tom Talpey
On 4/12/2021 6:48 PM, Jason Gunthorpe wrote: On Mon, Apr 12, 2021 at 04:20:47PM -0400, Tom Talpey wrote: So the issue is only in testing all the providers and platforms, to be sure this new behavior isn't tickling anything that went unnoticed all along, because no RDMA provider ever issu

Re: [PATCH] fpga: xilinx-pr-decoupler: remove useless function

2021-04-13 Thread Tom Rix
of removing this function. It should have been used in xlnx_pr_decoupler_enable_show() instead of the bare readl(). So use it in this function, and for consistency rename to xlnx_pr_decoupler_read() that is 'decouple' -> 'decoupler' Tom static int xlnx_pr_decouple

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-12 Thread Tom Talpey
On 4/12/2021 2:32 PM, Haakon Bugge wrote: On 10 Apr 2021, at 15:30, David Laight wrote: From: Tom Talpey Sent: 09 April 2021 18:49 On 4/9/2021 12:27 PM, Haakon Bugge wrote: On 9 Apr 2021, at 17:32, Tom Talpey wrote: On 4/9/2021 10:45 AM, Chuck Lever III wrote: On Apr 9, 2021, at 10

Re: [PATCH] MIPS: generic: Update node names to avoid unit addresses

2021-04-09 Thread Tom Rini
-boot/u-boot/-/commit/3f04db891a353f4b127ed57279279f851c6b4917 > Suggested-by: Simon Glass > Signed-off-by: Nathan Chancellor Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-09 Thread Tom Talpey
On 4/9/2021 12:27 PM, Haakon Bugge wrote: On 9 Apr 2021, at 17:32, Tom Talpey wrote: On 4/9/2021 10:45 AM, Chuck Lever III wrote: On Apr 9, 2021, at 10:26 AM, Tom Talpey wrote: On 4/6/2021 7:49 AM, Jason Gunthorpe wrote: On Mon, Apr 05, 2021 at 11:42:31PM +, Chuck Lever III wrote

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-09 Thread Tom Talpey
On 4/9/2021 12:40 PM, Jason Gunthorpe wrote: On Fri, Apr 09, 2021 at 10:26:21AM -0400, Tom Talpey wrote: My belief is that the biggest risk is from situations where completions are batched, and therefore polling is used to detect them without interrupts (which explicitly). We don't do

Re: [PATCH v3] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-09 Thread Tom Lendacky
On 4/9/21 9:38 AM, Tom Lendacky wrote: > From: Tom Lendacky > > Access to the GHCB is mainly in the VMGEXIT path and it is known that the > GHCB will be mapped. But there are two paths where it is possible the GHCB > might not be mapped. > > The sev_vcpu_deliver_sipi_

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-09 Thread Tom Talpey
On 4/9/2021 10:45 AM, Chuck Lever III wrote: On Apr 9, 2021, at 10:26 AM, Tom Talpey wrote: On 4/6/2021 7:49 AM, Jason Gunthorpe wrote: On Mon, Apr 05, 2021 at 11:42:31PM +, Chuck Lever III wrote: We need to get a better idea what correctness testing has been done, and whether

Re: [PATCH v2] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-09 Thread Tom Lendacky
On 4/8/21 2:48 PM, Sean Christopherson wrote: > On Thu, Apr 08, 2021, Tom Lendacky wrote: >> >> >> On 4/8/21 12:37 PM, Sean Christopherson wrote: >>> On Thu, Apr 08, 2021, Tom Lendacky wrote: >>>> On 4/8/21 12:10 PM, Sean Christopherson wrote: >

[PATCH v3] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-09 Thread Tom Lendacky
From: Tom Lendacky Access to the GHCB is mainly in the VMGEXIT path and it is known that the GHCB will be mapped. But there are two paths where it is possible the GHCB might not be mapped. The sev_vcpu_deliver_sipi_vector() routine will update the GHCB to inform the caller of the AP Reset Hold

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-09 Thread Tom Talpey
e should test on the platforms they have. Yes, and "test" be taken seriously with focus on ULP data integrity. Speedups will mean nothing if the data is ever damaged. Tom.

Re: [PATCH v2] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Tom Lendacky
On 4/8/21 12:37 PM, Sean Christopherson wrote: > On Thu, Apr 08, 2021, Tom Lendacky wrote: >> On 4/8/21 12:10 PM, Sean Christopherson wrote: >>> On Thu, Apr 08, 2021, Tom Lendacky wrote: >>>> diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c >>

Re: [PATCH v2] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Tom Lendacky
On 4/8/21 12:10 PM, Sean Christopherson wrote: > On Thu, Apr 08, 2021, Tom Lendacky wrote: >> From: Tom Lendacky >> >> Access to the GHCB is mainly in the VMGEXIT path and it is known that the >> GHCB will be mapped. But there are two paths where it is possible the

Re: [PATCH 1/1] x86/kvm/svm: Implement support for PSFD

2021-04-08 Thread Tom Lendacky
F(VIRT_SSBD) | > - F(AMD_SSB_NO) | F(AMD_STIBP) | F(AMD_STIBP_ALWAYS_ON) > + F(AMD_SSB_NO) | F(AMD_STIBP) | F(AMD_STIBP_ALWAYS_ON) | > F(AMD_PSFD) Please note that this patch has a pre-req against the PSFD support that defines this feature: https://lore.kernel.org/lkml/20210406155004.230790-2-rsari...@amd.com/#t Thanks, Tom > ); > > /* >

[PATCH v2] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Tom Lendacky
From: Tom Lendacky Access to the GHCB is mainly in the VMGEXIT path and it is known that the GHCB will be mapped. But there are two paths where it is possible the GHCB might not be mapped. The sev_vcpu_deliver_sipi_vector() routine will update the GHCB to inform the caller of the AP Reset Hold

Re: [PATCH] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Tom Lendacky
On 4/8/21 11:14 AM, Paolo Bonzini wrote: > On 08/04/21 18:04, Tom Lendacky wrote: >>>>> +   if (!err || !sev_es_guest(vcpu->kvm) || >>>>> !WARN_ON_ONCE(svm->ghcb)) >>>> This should be WARN_ON_ONCE(!svm->ghcb), otherwise you'll g

Re: [PATCH] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Tom Lendacky
On 4/7/21 4:07 PM, Sean Christopherson wrote: > On Wed, Apr 07, 2021, Tom Lendacky wrote: >> On 4/7/21 3:08 PM, Sean Christopherson wrote: >>> On Wed, Apr 07, 2021, Tom Lendacky wrote: >>>> From: Tom Lendacky >>>> >>>> The sev_vcpu_delive

Re: [RFC Part1 PATCH 06/13] x86/compressed: rescinds and validate the memory used for the GHCB

2021-04-08 Thread Tom Lendacky
On 4/7/21 2:45 PM, Borislav Petkov wrote: > On Wed, Apr 07, 2021 at 01:25:55PM +0200, Borislav Petkov wrote: >> On Tue, Apr 06, 2021 at 02:42:43PM -0500, Tom Lendacky wrote: >>> The GHCB spec only defines the "0" reason code set. We could provide Linux >>> it

Re: [PATCH] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-07 Thread Tom Lendacky
On 4/7/21 3:08 PM, Sean Christopherson wrote: > On Wed, Apr 07, 2021, Tom Lendacky wrote: >> From: Tom Lendacky >> >> The sev_vcpu_deliver_sipi_vector() routine will update the GHCB to inform >> the caller of the AP Reset Hold NAE event that a SIPI has been delivere

[PATCH] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-07 Thread Tom Lendacky
From: Tom Lendacky The sev_vcpu_deliver_sipi_vector() routine will update the GHCB to inform the caller of the AP Reset Hold NAE event that a SIPI has been delivered. However, if a SIPI is performed without a corresponding AP Reset Hold, then the GHCB may not be mapped, which will result in a

Re: [PATCH v2 0/8] ccp: KVM: SVM: Use stack for SEV command buffers

2021-04-07 Thread Tom Lendacky
orary > patch (definitely feel free to drop the patch if it's not worth > backporting). [Christophe] > - s/intput/input/. [Tom] > - Add a patch to free "sev" if init fails. This is not strictly > necessary (I think; I suck horribly when it comes to the

Re: [RFC Part1 PATCH 07/13] x86/compressed: register GHCB memory when SNP is active

2021-04-07 Thread Tom Lendacky
quired for SEV-SNP guests. The final version of the spec documents that and should be published within the next few days. Thanks, Tom > > >> >>> because the hypervisor may prefer that a guest use a consistent and/or >>> specific GPA for the GHCB associated with a

Re: [RFC Part1 PATCH 06/13] x86/compressed: rescinds and validate the memory used for the GHCB

2021-04-07 Thread Tom Lendacky
. > While exiting from the decompression the sev_es_shutdown_ghcb() is > called to deinit the GHCB. > > sev_es_shutdown_ghcb() > >   set_page_encrypted() > >     sev_snp_set_page_private() > > Now that sev_snp_set_private() is called after the GHCB is established. I believe the

Re: [PATCH V4 XRT Alveo 20/20] fpga: xrt: Kconfig and Makefile updates for XRT drivers

2021-04-06 Thread Tom Rix
configuration +# + +config FPGA_XRT_XMGMT + tristate "Xilinx Alveo Management Driver" + depends on FPGA_XRT_LIB + select FPGA_XRT_METADATA If the XRT driver depends on these other two configs and it does not make sense to build these two seperately, could you remove th

Re: [PATCH V4 XRT Alveo 19/20] fpga: xrt: partition isolation platform driver

2021-04-06 Thread Tom Rix
res || !strncmp(res->name, gate->ep_name, strlen(res->name) + 1)) { + xleaf_put_leaf(pdev, leaf); + return; + } + + /* higher level axigate instance created, make sure the gate is opened. */ ok only minor ws issue, otherwise good to go Reviewed-by:

Re: [PATCH V4 XRT Alveo 18/20] fpga: xrt: DDR calibration platform driver

2021-04-06 Thread Tom Rix
} + + if (status & BIT(0)) + break; + msleep(XRT_CALIB_READ_INTERVAL); ok Reviewed-by: Tom Rix + times--; + } + + if (!times) { + xrt_err(calib->pdev, + "MIG calibration ti

Re: [PATCH V4 XRT Alveo 17/20] fpga: xrt: clock frequency counter platform driver

2021-04-06 Thread Tom Rix
goto failed; + } + + CLKFREQ_INFO(clkfreq, "successfully initialized clkfreq subdev"); + + return 0; + +failed: + return ret; +} + +static struct xrt_subdev_endpoints xrt_clkfreq_endpoints[] = { + { + .xse_names = (struct xrt_subdev_ep_names[]) {

Re: [PATCH V4 XRT Alveo 16/20] fpga: xrt: clock platform driver

2021-04-06 Thread Tom Rix
me, NULL, XRT_MD_PROP_CLK_FREQ, + (const void **)&freq, NULL); + if (err) { + xrt_info(clock->pdev, "no default freq"); + return 0; + } + + err = set_freq(clock, be16_to_cpu(*freq)); + + return err; +} + +s

Re: [RFC Part1 PATCH 06/13] x86/compressed: rescinds and validate the memory used for the GHCB

2021-04-06 Thread Tom Lendacky
ecial like >> >> GHCB_SEV_ES_REASON_PSC_FAILURE >> >> or so, so that users know what has happened? > > > Current GHCB does not have special code for this. But I think Linux > guest can define a special code which can be used to indicate the > termination reason

Re: [RFCv1 7/7] KVM: unmap guest memory using poisoned pages

2021-04-06 Thread Tom Lendacky
the situation *TODAY*, even ignoring TDX. > > BTW, I'm pretty sure I know the answer to the "why would you expose this > to userspace" question: it's what QEMU/KVM did alreadhy for > non-encrypted memory, so this was the quickest way to get SEV working. > > So, I don't like the #MC either. But, this series is a step in the > right direction for TDX *AND* SEV. So, yes, this is a step in the right direction. Thanks, Tom >

Re: [PATCH V4 XRT Alveo 15/20] fpga: xrt: devctl platform driver

2021-04-06 Thread Tom Rix
p_bulk_read(devctl->regmap[rw_arg->xdr_id], rw_arg->xdr_offset, + rw_arg->xdr_buf, + rw_arg->xdr_len / devctl_regmap_config.reg_stride); + break; + } ok, *_WRITE removed. Thanks for

Re: [PATCH V4 XRT Alveo 14/20] fpga: xrt: ICAP platform driver

2021-04-06 Thread Tom Rix
failed: + mutex_unlock(&icap->icap_lock); + + return err; +} + +/* + * Discover the FPGA IDCODE using special sequence of canned commands + */ +static int icap_probe_chip(struct icap *icap) +{ + int err; + u32 val = 0; ok, thanks for demagic-ing this function. Lo

RE: [PATCH v4 5/7] PCI: cadence: Add support to configure virtual functions

2021-04-06 Thread Tom Joseph
aham I > --- > .../pci/controller/cadence/pcie-cadence-ep.c | 207 -- > drivers/pci/controller/cadence/pcie-cadence.h | 7 + > 2 files changed, 197 insertions(+), 17 deletions(-) > Acked-by: Tom Joseph

[ANNOUNCE] 5.4.109-rt55

2021-04-05 Thread Tom Zanussi
https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/patch-5.4.109-rt55.patch.xz Enjoy! Tom

Re: [PATCH rdma-next 02/10] RDMA/core: Enable Relaxed Ordering in __ib_alloc_pd()

2021-04-05 Thread Tom Talpey
if (acc & ~IB_ACCESS_LOCAL_WRITE) { dev_warn(&dev->pdev->dev, "unsupported dma mr access flags %#x\n", acc); Why does the pvrdma driver require relaxed ordering to be off? Tom.

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-05 Thread Tom Talpey
gest making this the default behavior without extensive testing. Tom.

Re: [PATCH 2/5] crypto: ccp: Reject SEV commands with mismatching command buffer

2021-04-05 Thread Tom Lendacky
On 4/5/21 11:33 AM, Sean Christopherson wrote: > On Mon, Apr 05, 2021, Tom Lendacky wrote: >> On 4/2/21 6:36 PM, Sean Christopherson wrote: >>> diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c >>> index 6556d220713b..4c513318f16a 100644 >&

Re: [PATCH 2/5] crypto: ccp: Reject SEV commands with mismatching command buffer

2021-04-05 Thread Tom Lendacky
on-zero length and are not known to the kernel. This is not an > explicit goal, but arguably the side effect is a good thing from the > kernel's perspective. > > Cc: Brijesh Singh > Cc: Borislav Petkov > Cc: Tom Lendacky > Signed-off-by: Sean Christopherson >

[PATCH v2 0/1] dmaengine: idxd: IDXD pmu support

2021-04-03 Thread Tom Zanussi
From: Tom Zanussi Hi, This is v2 of the IDXD pmu support patch, which is the same as v1 but removes a few assigned-but-unused variables reported by kernel test robot . Thanks, Tom -- original v1 text -- Hi, This patchset implements initial pmu support for the Intel DSA (Data Streaming

[PATCH v2 1/1] dmaengine: idxd: Add IDXD performance monitor support

2021-04-03 Thread Tom Zanussi
ation.html [ Based on work originally by Jing Lin. ] Reviewed-by: Dave Jiang Reviewed-by: Kan Liang Signed-off-by: Tom Zanussi --- drivers/dma/Kconfig | 13 + drivers/dma/idxd/Makefile| 2 + drivers/dma/idxd/idxd.h | 45 +++ drivers/dma/idxd/init.c | 9 + drivers/dma/idx

[PATCH 1/1] dmaengine: idxd: Add IDXD performance monitor support

2021-04-02 Thread Tom Zanussi
ation.html [ Based on work originally by Jing Lin. ] Reviewed-by: Dave Jiang Reviewed-by: Kan Liang Signed-off-by: Tom Zanussi --- drivers/dma/Kconfig | 13 + drivers/dma/idxd/Makefile| 2 + drivers/dma/idxd/idxd.h | 45 +++ drivers/dma/idxd/init.c | 9 + drivers/dma/idx

[PATCH 0/1] dmaengine: idxd: IDXD pmu support

2021-04-02 Thread Tom Zanussi
t, but would be willing to try if there would be some interest in it, especially considering there will probably be future pmu support added that could benefit from it. Thanks, Tom [1]: https://software.intel.com/content/www/us/en/develop/download/intel-data-streaming-accele

Re: [PATCH RFC 0/3] Adds support to allow the bitstream configuration from pre-allocated dma-buffer

2021-04-02 Thread Tom Rix
Please add to this patch cover letter what you want to discuss. Got this new feature, not sure about ... Tom On 4/2/21 2:09 AM, Nava kishore Manne wrote: > Nava kishore Manne (3): > fpga: region: Add fpga-region property 'fpga-config-from-dmabuf' > fpga: support loading f

Re: [PATCH V4 XRT Alveo 13/20] fpga: xrt: User Clock Subsystem platform driver

2021-04-02 Thread Tom Rix
XRT_SUBDEV_CLOCK, instance); > + if (!leaf) { > + xrt_err(pdev, "does not get clock subdev"); > + return; > + } > + > + xleaf_call(leaf, XRT_CLOCK_VERIFY, NULL); > + xleaf_put_leaf(pdev, leaf); > +} ok on removing ucs_

Re: [PATCH V4 XRT Alveo 12/20] fpga: xrt: VSEC platform driver

2021-04-02 Thread Tom Rix
xrt_err(vsec->pdev, "Map failed"); > + return -EIO; > + } > + > + vsec->regmap = devm_regmap_init_mmio(&vsec->pdev->dev, base, > &vsec_regmap_config); > + if (IS_ERR(vsec->regmap)) { > + xrt_err(vsec->pdev, &quo

Re: [Linux-cifsd-devel] [PATCH] cifsd: use kfree to free memory allocated by kzalloc

2021-04-01 Thread Tom Talpey
that wrappers around core memory allocators are to be avoided. Tom.

Re: [PATCH V4 XRT Alveo 10/20] fpga: xrt: main platform driver for management function device

2021-04-01 Thread Tom Rix
get->xmmigas_section_kind, > + &get->xmmigas_section, > + > &get->xmmigas_section_size); > + } > + break; > + } > +

Re: [PATCH V4 XRT Alveo 11/20] fpga: xrt: fpga-mgr and region implementation for xclbin download

2021-04-01 Thread Tom Rix
egion = fpga_region_class_find(NULL, &arg, > xmgmt_region_match); > + if (!compat_region) { > + xrt_err(pdev, "failed to get compatible region"); > + rc = -ENOENT; > + goto failed; > + } >

Re: [PATCH V4 XRT Alveo 09/20] fpga: xrt: management physical function driver (root)

2021-03-31 Thread Tom Rix
tl & > ~PCI_EXP_DEVCTL_FERE)); > + pci_read_config_byte(bus->self, PCI_BRIDGE_CONTROL, &pci_bctl); > + pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, pci_bctl | > PCI_BRIDGE_CTL_BUS_RESET); ok > + msleep(100); > + pci_write_config_byte(bus->se

Re: [PATCH V4 XRT Alveo 08/20] fpga: xrt: platform driver infrastructure

2021-03-31 Thread Tom Rix
(pdev))); > + } > + return 0; > +} > + > +void xrt_subdev_pool_trigger_event(struct xrt_subdev_pool *spool, enum > xrt_events e) > +{ > + struct platform_device *tgt = NULL; > + struct xrt_subdev *sdev = NULL; > + struct xrt_event evt; > + > +

Re: [PATCH V4 XRT Alveo 07/20] fpga: xrt: root driver infrastructure

2021-03-30 Thread Tom Rix
ruct xroot *xr) ok > +{ > + xrt_subdev_pool_init(DEV(xr->pdev), &xr->groups.pool); > + INIT_WORK(&xr->groups.bringup_work, xroot_bringup_group_work); > + atomic_set(&xr->groups.bringup_pending, 0); > + atomic_set(&xr->groups.bringup_failed, 0

Re: [PATCH V4 XRT Alveo 06/20] fpga: xrt: char dev node helper functions

2021-03-30 Thread Tom Rix
, sizeof(fname), "%s/%s/%s.%s", XRT_CDEV_DIR, > + DEV_PDATA(pdev)->xsp_root_name, file_name, inst_name); > + } > + sysdev = device_create(xrt_class, NULL, cdevp->dev, NULL, "%s", fname); > + if (IS_ERR(sysdev)) { > +

Re: [PATCH V4 XRT Alveo 05/20] fpga: xrt: group platform driver

2021-03-30 Thread Tom Rix
xrt_drv_name(did), ret); > + } > + if (!dtb) { > + /* > + * No more dtb to cut or bad things happened > for this instance, > +

Re: [PATCH V4 XRT Alveo 04/20] fpga: xrt: xrt-lib platform driver manager

2021-03-29 Thread Tom Rix
#x27;s are not supported. > +static void (*leaf_init_fini_cbs[])(bool) = { > + group_leaf_init_fini, > + vsec_leaf_init_fini, > + devctl_leaf_init_fini, > + axigate_leaf_init_fini, > + icap_leaf_init_fini, > + calib_leaf_init_fini, > + clkfreq_leaf_init_fini, > + clock_leaf_init_fini, > + ucs_leaf_init_fini, > +}; > + > +static __init int xrt_lib_init(void) > +{ > + int i; > + > + xrt_class = class_create(THIS_MODULE, XRT_IPLIB_MODULE_NAME); > + if (IS_ERR(xrt_class)) > + return PTR_ERR(xrt_class); > + > + for (i = 0; i < ARRAY_SIZE(leaf_init_fini_cbs); i++) > + leaf_init_fini_cbs[i](true); > + return 0; > +} > + > +static __exit void xrt_lib_fini(void) > +{ > + struct xrt_drv_map *map; > + int i; > + > + for (i = 0; i < ARRAY_SIZE(leaf_init_fini_cbs); i++) > + leaf_init_fini_cbs[i](false); > + > + mutex_lock(&xrt_lib_lock); > + > + while (!list_empty(&xrt_drv_maps)) { > + map = list_first_entry_or_null(&xrt_drv_maps, struct > xrt_drv_map, list); > + pr_err("Unloading module with %s still registered\n", > XRT_DRVNAME(map->drv)); > + list_del(&map->list); > + mutex_unlock(&xrt_lib_lock); > + xrt_drv_unregister_driver(map); > + kfree(map); > + mutex_lock(&xrt_lib_lock); > + } > + > + mutex_unlock(&xrt_lib_lock); > + > + class_destroy(xrt_class); > +} > + > +module_init(xrt_lib_init); > +module_exit(xrt_lib_fini); > + > +MODULE_VERSION(XRT_IPLIB_MODULE_VERSION); > +MODULE_AUTHOR("XRT Team "); > +MODULE_DESCRIPTION("Xilinx Alveo IP Lib driver"); > +MODULE_LICENSE("GPL v2"); > diff --git a/drivers/fpga/xrt/lib/lib-drv.h b/drivers/fpga/xrt/lib/lib-drv.h > new file mode 100644 > index ..a94c58149cb4 > --- /dev/null > +++ b/drivers/fpga/xrt/lib/lib-drv.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2020-2021 Xilinx, Inc. > + * > + * Authors: > + * Cheng Zhen > + */ > + > +#ifndef _LIB_DRV_H_ > +#define _LIB_DRV_H_ > + > +const char *xrt_drv_name(enum xrt_subdev_id id); bisectablity may be /is still an issue. Tom > +int xrt_drv_get_instance(enum xrt_subdev_id id); > +void xrt_drv_put_instance(enum xrt_subdev_id id, int instance); > +struct xrt_subdev_endpoints *xrt_drv_get_endpoints(enum xrt_subdev_id id); > + > +#endif /* _LIB_DRV_H_ */

Re: [PATCH 1/1] block: fix trivial typos in comments

2021-03-29 Thread Tom Saeger
On Fri, Mar 26, 2021 at 09:46:36AM -0600, Jens Axboe wrote: > On 3/26/21 9:45 AM, Tom Saeger wrote: > > On Fri, Mar 26, 2021 at 09:41:49AM -0600, Jens Axboe wrote: > >> On 3/25/21 9:04 PM, Tom Saeger wrote: > >>> > >>> s/Additonal/Additional/ > &g

Re: [PATCH V4 XRT Alveo 03/20] fpga: xrt: xclbin file helper functions

2021-03-29 Thread Tom Rix
FFs */ > + > + unsigned char key_block[256]; /* Signature for validation */ > + /* of binary */ > + uint64_t unique_id; /* axlf's uniqueId, use it to */ > + /* skip red

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-28 Thread Tom Rix
> TL;DR I'm not really a fan of using device-tree overlays for this (and > again, apologies, I should've voiced this earlier ...). > > Anyways, let's find a common API for this and Russ' work, they're trying > to achieve the same / similar thing, they should use the same API. > > I'd like to re-invetigate the possiblity to extend FPGA Manager with > 'secure update' ops that work for both these use-cases (and I susspect > hte XRT patchset will follow with a similar requirement, right after). The xrt patchset makes heavy use of device trees. What is the general guidance for device tree usage ? Tom > > - Moritz >

Re: [PATCH V4 XRT Alveo 02/20] fpga: xrt: driver metadata helper functions

2021-03-28 Thread Tom Rix
dev_err(dev, "overlay failed, ret = %d", ret); > + > + return ret; > +} > +EXPORT_SYMBOL_GPL(xrt_md_copy_endpoint); > + > +int xrt_md_get_next_endpoint(struct device *dev, const char *blob, > + const char *ep_name, const char *regmap_name, > + char **next_ep, char **next_regmap) > +{ > + int offset, ret; > + > + *next_ep = NULL; > + *next_regmap = NULL; > + if (!ep_name) { > + ret = xrt_md_get_endpoint(dev, blob, XRT_MD_NODE_ENDPOINTS, > NULL, > + &offset); > + } else { > + ret = xrt_md_get_endpoint(dev, blob, ep_name, regmap_name, > + &offset); > + } > + > + if (ret) > + return -EINVAL; > + > + offset = ep_name ? fdt_next_subnode(blob, offset) : > + fdt_first_subnode(blob, offset); tristate with function calls is harder to follow, convert this to if-else logic > + if (offset < 0) > + return -EINVAL; > + > + *next_ep = (char *)fdt_get_name(blob, offset, NULL); > + *next_regmap = (char *)fdt_stringlist_get(blob, offset, > XRT_MD_PROP_COMPATIBLE, > + 0, NULL); > + > + return 0; > +} > +EXPORT_SYMBOL_GPL(xrt_md_get_next_endpoint); > + > +int xrt_md_get_compatible_endpoint(struct device *dev, const char *blob, > +const char *regmap_name, const char > **ep_name) > +{ > + int ep_offset; > + > + ep_offset = fdt_node_offset_by_compatible(blob, -1, regmap_name); > + if (ep_offset < 0) { > + *ep_name = NULL; > + return -ENOENT; > + } > + > + *ep_name = fdt_get_name(blob, ep_offset, NULL); > + > + return 0; > +} > +EXPORT_SYMBOL_GPL(xrt_md_get_compatible_endpoint); > + > +int xrt_md_pack(struct device *dev, char *blob) > +{ > + int ret; > + > + ret = fdt_pack(blob); > + if (ret) > + dev_err(dev, "pack failed %d", ret); > + > + return ret; > +} > +EXPORT_SYMBOL_GPL(xrt_md_pack); > + > +int xrt_md_get_interface_uuids(struct device *dev, const char *blob, ok > +u32 num_uuids, uuid_t *interface_uuids) > +{ > + int offset, count = 0; > + const char *uuid_str; > + int ret; > + > + ret = xrt_md_get_endpoint(dev, blob, XRT_MD_NODE_INTERFACES, NULL, > &offset); > + if (ret) > + return -ENOENT; > + > + for (offset = fdt_first_subnode(blob, offset); > + offset >= 0; > + offset = fdt_next_subnode(blob, offset), count++) { > + uuid_str = fdt_getprop(blob, offset, XRT_MD_PROP_INTERFACE_UUID, > +NULL); > + if (!uuid_str) { > + dev_err(dev, "empty interface uuid node"); > + return -EINVAL; > + } > + > + if (!num_uuids) > + continue; > + > + if (count == num_uuids) { ok > + dev_err(dev, "too many interface uuid in blob"); > + return -EINVAL; > + } > + > + if (interface_uuids && count < num_uuids) { > + ret = xrt_md_trans_str2uuid(dev, uuid_str, > + &interface_uuids[count]); > + if (ret) > + return -EINVAL; > + } > + } > + if (!count) > + count = -ENOENT; > + > + return count; > +} > +EXPORT_SYMBOL_GPL(xrt_md_get_interface_uuids); Thanks for the changes, Tom

[PATCH v2] scripts/spelling.txt: add entries for recent discoveries

2021-03-27 Thread Tom Saeger
.git.tom.sae...@oracle.com/ Signed-off-by: Tom Saeger --- Changes in v2: * drop entry `readded||read`, "readded" is in fact "readded" * Link to v1: https://lore.kernel.org/lkml/14c54ee47bf0e9aebfe71e97cefd11b2b8f0332f.1616784384.git.tom.sae...@oracl

Re: [PATCH 1/1] scripts/spelling.txt: add entries for recent discoveries

2021-03-27 Thread Tom Saeger
On Fri, Mar 26, 2021 at 04:36:01PM -0600, Jens Axboe wrote: > On 3/26/21 1:22 PM, Tom Saeger wrote: > > @@ -1153,6 +1170,7 @@ quering||querying > > queus||queues > > randomally||randomly > > raoming||roaming > > +readded||read > > reasearcher||re

Re: [PATCH V4 XRT Alveo 01/20] Documentation: fpga: Add a document describing XRT Alveo drivers

2021-03-27 Thread Tom Rix
pio-1.0\0axi_gpio"; > + }; > + > +ep_msix_00 { > +reg = <0x00 0x00 0x00 0x2>; > +pcie_physical_function = <0x00>; > +

Re: [PATCH] scripts: stable: add script to validate backports

2021-03-26 Thread Tom Saeger
On Wed, Mar 24, 2021 at 10:55:27AM +0100, Greg Kroah-Hartman wrote: > On Tue, Mar 23, 2021 at 01:28:38PM -0700, Nick Desaulniers wrote: > > On Tue, Mar 23, 2021 at 12:05 PM Greg Kroah-Hartman > > wrote: > > > > > > The only time git gets involved is when we do a -rc release or when we > > > do a "

[PATCH 1/1] scripts/spelling.txt: add entries for recent discoveries

2021-03-26 Thread Tom Saeger
.git.tom.sae...@oracle.com/ Signed-off-by: Tom Saeger --- scripts/spelling.txt | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 2e3ba91a5072..f7a3bfd75787 100644 --- a/scripts/spelling.txt +++ b

Re: [PATCH 1/1] block: fix trivial typos in comments

2021-03-26 Thread Tom Saeger
On Fri, Mar 26, 2021 at 09:41:49AM -0600, Jens Axboe wrote: > On 3/25/21 9:04 PM, Tom Saeger wrote: > > > > s/Additonal/Additional/ > > s/assocaited/associated/ > > s/assocaited/associated/ > > s/assocating/associating/ > > s/becasue/because/ > > s/co

[PATCH 1/1] block: fix trivial typos in comments

2021-03-25 Thread Tom Saeger
/ s/Secion/Section/ s/soley/solely/ Cc: triv...@kernel.org Signed-off-by: Tom Saeger --- block/bfq-iosched.c | 4 ++-- block/blk-cgroup-rwstat.c | 2 +- block/blk-cgroup.c| 6 +++--- block/blk-core.c | 2 +- block/blk-iocost.c| 12 ++-- block/blk

[ANNOUNCE] 4.19.182-rt74

2021-03-23 Thread Tom Zanussi
https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/patch-4.19.182-rt74.patch.xz Enjoy! Tom

Re: [PATCH net-next] airo: work around stack usage warning

2021-03-23 Thread Tom Rix
(status == SUCCESS) { > - if (ai->rssi || (ai->rssi = kmalloc(512, GFP_KERNEL)) > != NULL) > - memcpy(ai->rssi, (u8*)&rssi_rid + 2, 512); /* > Skip RID length member */ Here is the temp being copi

Re: [PATCH] X86: __set_clr_pte_enc() miscalculates physical address

2021-03-22 Thread Tom Lendacky
ot;x86: Add support for changing memory encryption > attribute in early boot") > Reviewed-by: Kirill A. Shutemov > Signed-off-by: Isaku Yamahata Reviewed-by: Tom Lendacky > --- > arch/x86/mm/mem_encrypt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH] amdgpu: avoid incorrect %hu format string

2021-03-22 Thread Tom Rix
tk format specifier") This was for a different reason. imo, you do not need to include what another patch did. so you could also just remove this bit from the commit log. The change itself looks good. Reviewed-by: Tom Rix > > Fixes: 0b437e64e0af ("drm/amdgpu: remove h fr

Re: FW: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-22 Thread Tom Rix
On 3/21/21 2:05 PM, Richard Gong wrote: > > Hi Tom, > >> >> >> On 3/19/21 4:22 PM, Richard Gong wrote: >>> >>> Hi Moritz, >>> >>> Thanks for approving the 1st patch of my version 5 patchest, which >>> submitted on 02/09

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-20 Thread Tom Rix
0 FIRMWARE DRIVERS  M:    Richard Gong -L:    linux-kernel@vger.kernel.org +R:    Tom Rix +L:    linux-f...@vger.kernel.org  S:    Maintained  F:    Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu  F:    Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt I also added mysel

Re: [PATCH V2] Trivial typo fix and sentence construction for better readability

2021-03-19 Thread Tom Saeger
** > > - * blk_mq_tagset_wait_completed_request - wait until all completed req's > > - * complete funtion is run completion function That's my read of it. --Tom > > + * blk_mq_tagset_wait_completed_request - wait until all the req's > >

Re: [PATCH v3] cifs: Silently ignore unknown oplock break handle

2021-03-19 Thread Tom Talpey
LGTM feel free to add Reviewed-By: Tom Talpey On 3/19/2021 9:57 AM, Vincent Whitchurch wrote: Make SMB2 not print out an error when an oplock break is received for an unknown handle, similar to SMB1. The debug message which is printed for these unknown handles may also be misleading, so fix

Re: [PATCH V3 XRT Alveo 13/18] fpga: xrt: devctl platform driver

2021-03-17 Thread Tom Rix
On 3/16/21 4:54 PM, Lizhi Hou wrote: > > > On 03/04/2021 05:39 AM, Tom Rix wrote: >> CAUTION: This message has originated from an External Source. Please use >> proper judgment and caution when opening attachments, clicking links, or >> responding to this email. &

  1   2   3   4   5   6   7   8   9   10   >