Re: [PATCH] misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions

2025-06-20 Thread Andrew Donnellan
t Chauhan Thanks for the cleanup! Acked-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v14 00/11] Support page table check on PowerPC

2025-06-10 Thread Andrew Donnellan
On Tue, 2025-06-10 at 09:33 +0200, Christophe Leroy wrote: > This series requires a rebase after commit 91e40668e70a > ("mm/page_table_check: Batch-check pmds/puds just like ptes") Will respin! > -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v2 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-22 Thread Andrew Donnellan
ep > Signed-off-by: Srish Srinivasan > Reviewed-by: Mimi Zohar > Reviewed-by: Stefan Berger > Reviewed-by: Nayna Jain Thanks for the fixes, minor comment about the docs below. Reviewed-by: Andrew Donnellan > --- >  Documentation/ABI/testing/sysfs-secvar    | 

Re: [PATCH v2 08/14] powerpc: Handle KCOV __init vs inline mismatches

2025-05-22 Thread Andrew Donnellan
GCC's inline optimizations get resolved. > For > s390 this requires forcing a couple functions to be inline with I assume you mean powerpc here, though I'm sure my employer is happy that you're at least confusing us with IBM's other architecture :) -- Andrew DonnellanOzLabs,

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-12 Thread Andrew Donnellan
explicitly in a comment that we default to static mode in the event of any weird errors. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-12 Thread Andrew Donnellan
ect, thus triggering the password verification. In which case, we do need to catch -EPERM. Thanks for correcting me! -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v14 00/11] Support page table check on PowerPC

2025-05-11 Thread Andrew Donnellan
On Fri, 2025-04-11 at 15:43 +1000, Andrew Donnellan wrote: > Support page table check on all PowerPC platforms. This works by > serialising assignments, reassignments and clears of page table > entries at each level in order to ensure that anonymous mappings > have at most one writa

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-06 Thread Andrew Donnellan
ION to always be world-readable, I think? In which case it shouldn't return H_AUTHORITY / -EPERM, ever, and if it does that's an error which should be handled as an error. Or am I misinterpreting the spec here? -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-06 Thread Andrew Donnellan
dynamic would be bit confusing? I mean being static is clear, but > what they relate v1 to? Or did you mean to have "ibm,plpks-sb-static" > and "ibm,plpks-sb-dynamic"  for the two modes? > I don't feel strongly about this, as long as it's well documented. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 2/3] powerpc/secvar: Expose secvars relevant to the key management mode

2025-05-05 Thread Andrew Donnellan
by: Souradeep > Signed-off-by: Srish Srinivasan > Reviewed-by: Mimi Zohar > Reviewed-by: Stefan Berger I'm assuming it's been determined that there's no value in letting userspace see db/dbx/etc in a read-only way in static mode? With one comment below: Reviewe

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-05 Thread Andrew Donnellan
y us, takes the form "ibm,plpks- > sb-v".Set > +// the secvar format property to either "ibm,plpks-sb-v1" or > "ibm,plpks-sb-v0", > +// based on the key management mode, and return the length of the > secvar format > +// property. > +static ssize_t plpks_secvar_format(char *buf, size_t bufsize) > +{ > + u8 mode; > + > + mode = plpks_get_sb_keymgmt_mode(); > + return snprintf(buf, bufsize, "ibm,plpks-sb-v%hhu", mode); It might be better to use something like "ibm,plpks-sb-static" in place of "ibm,plpks-sb-v0" to make it instantly clear that static mode doesn't use the same version numbering scheme as dynamic mode. >  } >   >  static int plpks_max_size(u64 *max_size) -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 3/3] integrity/platform_certs: Allow loading of keys in static key management mode

2025-05-05 Thread Andrew Donnellan
agement mode is dynamic. > > Allow loading of the trustedcadb and moduledb keys even in the static > key management mode, where the secvar format string takes the form > "ibm,plpks-sb-v0". > > Signed-off-by: Srish Srinivasan > Reviewed-by: Mimi Zohar > Reviewed-

Re: [PATCH v13 04/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_clear()

2025-04-10 Thread Andrew Donnellan
On Thu, 2025-03-13 at 16:10 -0700, Andrew Morton wrote: > On Wed, 12 Feb 2025 03:13:57 +1100 Andrew Donnellan > wrote: > > > This reverts commit 931c38e16499 ("mm/page_table_check: remove > > unused > > parameter in [__]page_table_check_pud_clear").

[PATCH v14 06/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pte_clear()

2025-04-10 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase and fix additional occurrence] Signed-off-by: Andrew Donnellan --- v13: fix an additional occurrence --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgta

[PATCH v14 07/11] mm: Provide address parameter to p{te,md,ud}_user_accessible_page()

2025-04-10 Thread Andrew Donnellan
provide support for page table check on powerpc. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on arm64 changes] Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 6 +++--- arch/riscv/include/asm/pgtable.h | 6 +++--- arch/x86/include/asm/pgtable.h

[PATCH v14 08/11] powerpc: mm: Add pud_pfn() stub

2025-04-10 Thread Andrew Donnellan
, include this stub as a BUILD_BUG(). Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/powerpc/include/asm/pgtable.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h

[PATCH v14 02/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd_set()

2025-04-10 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on riscv and mm/page_table_check.c changes, remove riscv commit message comment] Signed-off-by: Andrew Donnellan --- v13: remove inaccurate comment on riscv in the commit message

[PATCH v14 09/11] powerpc: mm: Implement *_user_accessible_page() for ptes

2025-04-10 Thread Andrew Donnellan
) pte_user() is no longer required to be present on all platforms as it may be equivalent to or implied by pte_read(). Hence implementations of pte_user_accessible_page() are specialised. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase and fix commit message] Signed-off-

[PATCH v14 04/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_clear()

2025-04-10 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/x86/include/asm/pgtable.h | 2 +- include/linux/page_table_check.h | 11 +++ include/linux/pgtable.h | 2 +- mm/page_tab

[PATCH v14 03/11] mm/page_table_check: Provide addr parameter to page_table_check_pte_set()

2025-04-10 Thread Andrew Donnellan
form the addr parameter. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase] Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgtable.h | 2 +- include/linux/page_table_check.h | 12 +++- include/linux/pgtable.h

[PATCH v14 10/11] powerpc: mm: Use set_pte_at_unchecked() for internal usages

2025-04-10 Thread Andrew Donnellan
McLure [ajd: don't change to unchecked for early boot/kernel mappings] Signed-off-by: Andrew Donnellan --- v13: don't use the unchecked version for early-boot kernel mappings (Pasha) --- arch/powerpc/include/asm/pgtable.h | 2 ++ arch/powerpc/mm/book3s64/pgtable.c | 6 ++

[PATCH v14 11/11] powerpc: mm: Support page table check

2025-04-10 Thread Andrew Donnellan
d-by: Christophe Leroy Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase] Signed-off-by: Andrew Donnellan --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++- arch/powerpc/include/asm/book3s/64/pgtable.h | 45

[PATCH v14 00/11] Support page table check on PowerPC

2025-04-10 Thread Andrew Donnellan
Support page table check on all PowerPC platforms. This works by serialising assignments, reassignments and clears of page table entries at each level in order to ensure that anonymous mappings have at most one writable consumer, and likewise that file-backed mappings are not simultaneously also an

[PATCH v14 01/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_set()

2025-04-10 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on riscv changes, remove riscv commit message comment] Signed-off-by: Andrew Donnellan --- v13: remove inaccurate comment on riscv in the commit message v14: fix an x86 usage I mis

[PATCH v14 05/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd_clear()

2025-04-10 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgtable.h | 2 +- arch/x86/include/asm/pgtable.h | 2 +- include/linux/page_table_ch

Re: [PATCH v2 5/6] powerpc: powernv: ocxl: use lock guard for mutex

2025-03-18 Thread Andrew Donnellan
12093537.614161...@infradead.org/T/#u > > Signed-off-by: Shrikanth Hegde Acked-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 5/6] powerpc: powenv: oxcl: use lock guard for mutex

2025-03-18 Thread Andrew Donnellan
de churn here, I would prefer > not > use it. I think this is fine. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 5/6] powerpc: powenv: oxcl: use lock guard for mutex

2025-03-14 Thread Andrew Donnellan
12093537.614161...@infradead.org/T/#u > > Signed-off-by: Shrikanth Hegde The subject line of this patch misspells powernv and ocxl. Otherwise this looks like a nice cleanup. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v13 00/11] Support page table check on PowerPC

2025-03-12 Thread Andrew Donnellan
On Wed, 2025-02-12 at 03:13 +1100, Andrew Donnellan wrote: > Support page table check on all PowerPC platforms. This works by > serialising assignments, reassignments and clears of page table > entries at each level in order to ensure that anonymous mappings > have at most one writa

Re: [PATCH] Documentation: ocxl.rst: Update consortium site

2025-03-11 Thread Andrew Donnellan
think I'd update this to say: The specification was developed by the OpenCAPI Consortium, and is now available from the `Compute Express Link Consortium <https://computeexpresslink.org/resource/opencapi-specification-archive/>_. Thanks, Andrew -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

[PATCH v3 0/1] Remove cxl driver

2025-02-18 Thread Andrew Donnellan
tate=* v1->v2: rebase and update docs v2->v3: rebase on docs changes Andrew Donnellan (1): cxl: Remove driver .../ABI/{obsolete => removed}/sysfs-class-cxl | 55 +- Documentation/arch/powerpc/cxl.rst| 470 Documentation/arch/powerpc/index.rst |

[PATCH] cxl: Fix cross-reference in documentation and add deprecation warning

2025-02-18 Thread Andrew Donnellan
as merged. Fix the cross-reference, and also add a deprecation warning. Fixes: 5731d41af924 ("cxl: Deprecate driver") Reported-by: Bagas Sanjaya Signed-off-by: Andrew Donnellan --- Maddy: can we take this by powerpc-fixes? --- Documentation/arch/powerpc/cxl.rst | 3 ++- 1 file c

Re: linux-next: build warning after merge of the powerpc tree

2025-02-18 Thread Andrew Donnellan
gt;   5731d41af924 ("cxl: Deprecate driver") > > The reference is from Documentation/arch/powerpc/cxl.rst > > I don't know why this has appeared just now. I think this warning is added by ff7ff6eb4f809 ("docs: media: Allow creating cross-references for RC ABI&

Re: [PATCH 0/9] Extend automarkup support for ABI symbols

2025-02-12 Thread Andrew Donnellan
s moved to obsolete/ by 5731d41af924b which was merged in rc1, and will be moved again to removed/ by [0]. Andrew [0] https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20250203072801.365551-3-...@linux.ibm.com/ -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

[PATCH v13 11/11] powerpc: mm: Support page table check

2025-02-11 Thread Andrew Donnellan
d-by: Christophe Leroy Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase] Signed-off-by: Andrew Donnellan --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++- arch/powerpc/include/asm/book3s/64/pgtable.h | 45

[PATCH v13 10/11] powerpc: mm: Use set_pte_at_unchecked() for internal usages

2025-02-11 Thread Andrew Donnellan
McLure [ajd: don't change to unchecked for early boot/kernel mappings] Signed-off-by: Andrew Donnellan --- v13: don't use the unchecked version for early-boot kernel mappings (Pasha) --- arch/powerpc/include/asm/pgtable.h | 2 ++ arch/powerpc/mm/book3s64/pgtable.c | 6 ++

[PATCH v13 09/11] powerpc: mm: Implement *_user_accessible_page() for ptes

2025-02-11 Thread Andrew Donnellan
) pte_user() is no longer required to be present on all platforms as it may be equivalent to or implied by pte_read(). Hence implementations of pte_user_accessible_page() are specialised. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase and fix commit message] Signed-off-

[PATCH v13 08/11] powerpc: mm: Add pud_pfn() stub

2025-02-11 Thread Andrew Donnellan
, include this stub as a BUILD_BUG(). Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/powerpc/include/asm/pgtable.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h

[PATCH v13 07/11] mm: Provide address parameter to p{te,md,ud}_user_accessible_page()

2025-02-11 Thread Andrew Donnellan
provide support for page table check on powerpc. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on arm64 changes] Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 6 +++--- arch/riscv/include/asm/pgtable.h | 6 +++--- arch/x86/include/asm/pgtable.h

[PATCH v13 06/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pte_clear()

2025-02-11 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase and fix additional occurrence] Signed-off-by: Andrew Donnellan --- v13: fix an additional occurrence --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgta

[PATCH v13 05/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd_clear()

2025-02-11 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgtable.h | 2 +- arch/x86/include/asm/pgtable.h | 2 +- include/linux/page_table_ch

[PATCH v13 04/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_clear()

2025-02-11 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin Signed-off-by: Andrew Donnellan --- arch/x86/include/asm/pgtable.h | 2 +- include/linux/page_table_check.h | 11 +++ include/linux/pgtable.h | 2 +- mm/page_tab

[PATCH v13 02/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd_set()

2025-02-11 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on riscv and mm/page_table_check.c changes, remove riscv commit message comment] Signed-off-by: Andrew Donnellan --- v13: remove inaccurate comment on riscv in the commit message

[PATCH v13 03/11] mm/page_table_check: Provide addr parameter to page_table_check_pte_set()

2025-02-11 Thread Andrew Donnellan
form the addr parameter. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase] Signed-off-by: Andrew Donnellan --- arch/arm64/include/asm/pgtable.h | 2 +- arch/riscv/include/asm/pgtable.h | 2 +- include/linux/page_table_check.h | 12 +++- include/linux/pgtable.h

[PATCH v13 01/11] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_set()

2025-02-11 Thread Andrew Donnellan
e pte, but instead in the address of the access. Signed-off-by: Rohan McLure Reviewed-by: Pasha Tatashin [ajd: rebase on riscv changes, remove riscv commit message comment] Signed-off-by: Andrew Donnellan --- v13: remove inaccurate comment on riscv in the commit message --- arch/arm64/include/asm

[PATCH v13 00/11] Support page table check on PowerPC

2025-02-11 Thread Andrew Donnellan
Support page table check on all PowerPC platforms. This works by serialising assignments, reassignments and clears of page table entries at each level in order to ensure that anonymous mappings have at most one writable consumer, and likewise that file-backed mappings are not simultaneously also an

[PATCH v2 0/2] Remove cxl and cxlflash drivers

2025-02-02 Thread Andrew Donnellan
driver, nor does it affect Compute Express Link (the other cxl, an amusing but unfortunate naming collision). v1: https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=436014&state=* v1->v2: rebase and update docs Andrew Donnellan (2): cxlflash: Remove driver cxl: Remove

Re: [PATCH 2/9] cxl: Constify 'struct bin_attribute'

2024-12-17 Thread Andrew Donnellan
ßschuh Acked-by: Andrew Donnellan noting that we're hoping to remove this driver shortly. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 1/9] ocxl: Constify 'struct bin_attribute'

2024-12-17 Thread Andrew Donnellan
ßschuh Acked-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 0/2] Remove cxl and cxlflash drivers

2024-12-16 Thread Andrew Donnellan
On Tue, 2024-12-17 at 14:26 +1100, Michael Ellerman wrote: > It would be good to explain that this only removes support for the > original CAPI interface - not the Power9 "OpenCAPI", which is still > supported by drivers/misc/ocxl. Agreed, will mention if/when I respin this -

[PATCH 0/2] Remove cxl and cxlflash drivers

2024-12-09 Thread Andrew Donnellan
patchwork.ozlabs.org/project/linuxppc-dev/list/?series=436003&state=* Andrew Donnellan (2): cxlflash: Remove driver cxl: Remove driver .../ABI/{obsolete => removed}/sysfs-class-cxl | 55 +- Documentation/arch/powerpc/cxl.rst| 469 -- Documentation/arch/powerp

[PATCH 2/2] scsi/cxlflash: Deprecate driver

2024-12-09 Thread Andrew Donnellan
change Kconfig to label the driver as deprecated and not build the driver by default. Signed-off-by: Andrew Donnellan --- drivers/scsi/cxlflash/Kconfig | 6 -- drivers/scsi/cxlflash/main.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/cxlflash/Kconfig b

[PATCH 0/2] Deprecate cxl and cxlflash drivers

2024-12-09 Thread Andrew Donnellan
have any significant benefit. This series will be followed up with patches to remove the drivers and associated arch code, which I hope will be merged in the following cycle. [0] https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20240409031027.41587-2-...@linux.ibm.com/ Andrew Donnellan (

[PATCH 1/2] cxl: Deprecate driver

2024-12-09 Thread Andrew Donnellan
e its MAINTAINERS status to obsolete, update the sysfs ABI documentation accordingly, add a warning message on device probe, change the Kconfig options to label it as deprecated, and don't build it by default. Signed-off-by: Andrew Donnellan --- Documentation/ABI/{testing => obsolete}/sysfs-

Re: [PATCH v2 06/10] sysfs: treewide: constify attribute callback of bin_attribute::mmap()

2024-11-03 Thread Andrew Donnellan
t the tree at once. > > Signed-off-by: Thomas Weißschuh Acked-by: Andrew Donnellan # ocxl -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH -next] cxl: Remove unused cxl_pci_to_cfg_record()

2024-08-29 Thread Andrew Donnellan
xl.h > @@ -23,10 +23,6 @@ >  /* Get the AFU associated with a pci_dev */ >  struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev); >   > -/* Get the AFU conf record number associated with a pci_dev */ > -unsigned int cxl_pci_to_cfg_record(struct pci_dev *dev); > - > - >  /* >   * Context lifetime overview: >   * -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 1/2] cxl: Drop printing of DT properties

2024-08-27 Thread Andrew Donnellan
t; any module/driver can use it. > > Signed-off-by: Rob Herring (Arm) I'm okay with this, I think this level of dmesg verbosity was more useful in the early days of implementing guest support than it is now, and I'm hoping to rip the cxl driver out completely at some point

Re: [PATCH 2/2] cxl: Use of_property_ accessor functions

2024-08-13 Thread Andrew Donnellan
e in a future patch? Acked-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v12 00/11] Support page table check PowerPC

2024-07-29 Thread Andrew Donnellan
assume you probably received, Rohan has sadly moved on to other things. I'll send a rebased version of this when I get the chance. Andrew -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v1 1/9] selftests/powerpc/dexcr: Add -no-pie to hashchk tests

2024-05-07 Thread Andrew Donnellan
urselves and be using the same addresses in the child. > > While -fno-pie is already added, -no-pie is also required. > > Fixes: ca64da7574f8 ("selftests/powerpc/dexcr: Add hashst/hashchk > test") > Signed-off-by: Benjamin Gray This matches the gcc documentation

Re: [PATCH 2/2] MAINTAINERS: Make cxl obsolete

2024-05-03 Thread Andrew Donnellan
On Fri, 2024-05-03 at 13:15 +1000, Andrew Donnellan wrote: > This doesn't seem quite right to me, I don't think we can just > redefine > CONFIG_CXL as a bool, but I'll do something like this. Probably won't > bother for CXLFLASH since they'll see it for CX

Re: [PATCH 2/2] MAINTAINERS: Make cxl obsolete

2024-05-02 Thread Andrew Donnellan
>   help > +   The cxl driver is no longer actively maintained and we > intend to > +   remove it in a future kernel release. > + >     Select this option to enable driver support for IBM > Coherent >     Accelerators (CXL).  CXL is otherwise known as Coherent > Accelerator >     Processor Interface (CAPI).  CAPI allows accelerators in > FPGAs to be -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v4] powerpc/pseries: make max polling consistent for longer H_CALLs

2024-04-22 Thread Andrew Donnellan
ep() everywhere to > insert delay. > > Reported-by: Nageswara R Sastry > Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform > KeyStore") > Signed-off-by: Nayna Jain > Tested-by: Nageswara R Sastry Reviewed-by: Andrew Donnellan > --- > v

[PATCH 2/2] MAINTAINERS: Make cxl obsolete

2024-04-08 Thread Andrew Donnellan
The cxl driver is no longer actively maintained and we intend to remove it in a future kernel release. Change its status to obsolete, and update the sysfs ABI documentation accordingly. Signed-off-by: Andrew Donnellan --- Documentation/ABI/{testing => obsolete}/sysfs-class-cxl

[PATCH 1/2] MAINTAINERS: Make cxlflash obsolete

2024-04-08 Thread Andrew Donnellan
list. Signed-off-by: Andrew Donnellan --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index aea47e04c3a5..34f605498873 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5780,10 +5780,9 @@ F: include/uapi/misc/cxl.h CXLFLASH

Re: [PATCH v3 2/2] powerpc/pseries: increase timeout value for plpks_signed_update_var() H_CALL

2024-04-01 Thread Andrew Donnellan
1000; > + > + fsleep(delay_us); > + timeout += delay_us; >   } >   rc = pseries_status_to_err(rc); >   } while (rc == -EBUSY && timeout < PLPKS_MAX_TIMEOUT); -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v1] powerpc: Error on assembly warnings

2024-04-01 Thread Andrew Donnellan
Seems like a good idea to me! Reviewed-by: Andrew Donnellan Tested-by: Andrew Donnellan > --- >  arch/powerpc/Kbuild | 3 ++- >  1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/Kbuild b/arch/powerpc/Kbuild > index 22cd0d55a892..da862e9558bc 100644 >

Re: [PATCH v2] powerpc/pseries: fix max polling time in plpks_confirm_object_flushed() function

2024-03-14 Thread Andrew Donnellan
MAX_TIMEOUT, and assumes it to be in milliseconds rather than microseconds. -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 02/11] cxl: Convert to platform remove callback returning void

2024-02-21 Thread Andrew Donnellan
ly after all > drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the > remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Acked-by: Andrew Donnellan > --- &

Re: [PATCH v2] cxl: Fix null pointer dereference in cxl_get_fd

2024-01-14 Thread Andrew Donnellan
On Fri, 2024-01-12 at 13:49 +0800, Kunwu Chan wrote: > +err: > + if (rc < 0) > + return ERR_PTR(rc); >   return NULL; I don't think there's a way for this NULL to ever get returned? Apart from that it looks good: Reviewed-by: Andrew Donnell

Re: [PATCH] powerpc/powernv: Add a null pointer check to scom_debug_init_one

2023-12-17 Thread Andrew Donnellan
m_debug_init_one(). This doesn't really work for returning specific error codes, so I'd just return -1 here (or change the way the return codes are handled on the caller side). > + } > + >   ent->path.size = strlen((char *)ent->path.data); >   >   dir = debugfs_create_dir(ent->name, root); -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-23 Thread Andrew Donnellan
n > keeping that additional argument. > > Signed-off-by: Christian Brauner Acked-by: Andrew Donnellan # ocxl -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH] misc: ocxl: main: Remove unnecessary ‘0’ values from rc

2023-11-19 Thread Andrew Donnellan
it, so for consistency: Acked-by: Andrew Donnellan > --- >  drivers/misc/ocxl/main.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c > index ef73cf35dda2b..658974143c3cc 100644 > --- a/drivers

Re: [PATCH] misc: ocxl: link: Remove unnecessary (void*) conversions

2023-11-19 Thread Andrew Donnellan
On Mon, 2023-11-13 at 09:45 +0800, Li zeming wrote: > The link pointer does not need to cast the type. > > Signed-off-by: Li zeming Acked-by: Andrew Donnellan > --- >  drivers/misc/ocxl/link.c | 14 +++--- >  1 file changed, 7 insertions(+), 7 deletions(-) > &

Re: [PATCH] misc: ocxl: afu_irq: Remove unnecessary (void*) conversions

2023-11-19 Thread Andrew Donnellan
On Mon, 2023-11-13 at 09:22 +0800, Li zeming wrote: > The irq pointer does not need to cast the type. > > Signed-off-by: Li zeming Acked-by: Andrew Donnellan > --- >  drivers/misc/ocxl/afu_irq.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH] misc: ocxl: context: Remove unnecessary (void*) conversions

2023-11-19 Thread Andrew Donnellan
On Mon, 2023-11-13 at 09:15 +0800, Li zeming wrote: > The ctx pointer does not need to cast the type. > > Signed-off-by: Li zeming Acked-by: Andrew Donnellan > --- >  drivers/misc/ocxl/context.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH v2 5/5] powerpc/rtas: Remove 'extern' from function declarations in rtas.h

2023-11-19 Thread Andrew Donnellan
re difficult to read > over time because of the inconsistency. Remove them, fixing up > checkpatch issues with unnamed parameters (rtas_call) and bracket > alignment (early_init_dt_scan_rtas) that get raised as a result of > touching the code. > > Signed-off-by: Nathan Lynch '

Re: [PATCH v2 4/5] powerpc/rtas: Remove trailing space

2023-11-19 Thread Andrew Donnellan
On Tue, 2023-11-14 at 11:22 -0600, Nathan Lynch via B4 Relay wrote: > From: Nathan Lynch > > Use scripts/cleanfile to remove instances of trailing space in the > core RTAS code and header. > > Signed-off-by: Nathan Lynch Thanks for the cleanup, LGTM. Reviewed-by

Re: [PATCH v2 3/5] powerpc/rtas: Move post_mobility_fixup() declaration to pseries

2023-11-19 Thread Andrew Donnellan
d-off-by: Nathan Lynch This looks correct to me (the other user is in mobility.c which already has the header file included). Reviewed-by: Andrew Donnellan > --- >  arch/powerpc/include/asm/rtas.h  | 1 - >  arch/powerpc/platforms/pseries/pseries.h | 1 + >  arch/powerpc/pla

Re: [PATCH v2 2/5] powerpc/rtas: Remove unused rtas_service_present()

2023-11-19 Thread Andrew Donnellan
> Signed-off-by: Nathan Lynch grep confirms this. Reviewed-by: Andrew Donnellan > --- >  arch/powerpc/include/asm/rtas.h | 1 - >  arch/powerpc/kernel/rtas.c  | 5 - >  2 files changed, 6 deletions(-) > > diff --git a/arch/powerpc/include/asm/rtas.h > b/arch

Re: [PATCH v2 1/5] powerpc/rtas: Drop declaration of undefined call_rtas() function

2023-11-19 Thread Andrew Donnellan
upport from arch/ppc"). > > Signed-off-by: Nathan Lynch grep confirms this. Reviewed-by: Andrew Donnellan > --- >  arch/powerpc/include/asm/rtas.h | 2 -- >  1 file changed, 2 deletions(-) > > diff --git a/arch/powerpc/include/asm/rtas.h > b/arch/powerpc/include/asm

Re: [PATCH] cxl: Drop unused detach_spa()

2023-08-22 Thread Andrew Donnellan
llocate and release the SPA with the AFU"), but has never been > called > in its current form. Drop it. > > Signed-off-by: Michael Ellerman Indeed it looks unused. Acked-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH] ocxl: Use pci_dev_id() to simplify the code

2023-08-14 Thread Andrew Donnellan
On Fri, 2023-08-11 at 18:20 +0800, Zheng Zengkai wrote: > PCI core API pci_dev_id() can be used to get the BDF number for a pci > device. We don't need to compose it mannually. Use pci_dev_id() to > simplify the code a little bit. > > Signed-off-by: Zheng Zengkai Acked-

Re: [PATCH 2/2] ocxl: use pci_find_next_dvsec_capability() to simplify the code

2023-08-06 Thread Andrew Donnellan
On Mon, 2023-08-07 at 11:18 +0800, Xiongfeng Wang wrote: > PCI core add pci_find_next_dvsec_capability() to query the next > DVSEC. > We can use that core API to simplify the code. Also remove the unused > macros. > > Signed-off-by: Xiongfeng Wang Reviewed-by: Andrew Donne

Re: [PATCH 1/2] PCI: Add pci_find_next_dvsec_capability to find next designated VSEC

2023-08-06 Thread Andrew Donnellan
u16 pci_find_next_ext_capability(struct pci_dev > *dev, u16 pos, int cap); >  struct pci_bus *pci_find_next_bus(const struct pci_bus *from); >  u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int > cap); >  u16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 > dvsec); > +u16 pci_find_next_dvsec_capability(struct pci_dev *dev, u16 start, > u16 vendor, > +  u16 dvsec); >   >  u64 pci_get_dsn(struct pci_dev *dev); >   -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [RFC PATCH] cxl: Use pci_find_vsec_capability() to simplify the code

2023-08-06 Thread Andrew Donnellan
ngfeng Wang LGTM The cxl driver doesn't currently bind to any devices that don't have an IBM vendor ID, and it's very unlikely to in future. If that ever changes, this will of course need to be updated accordingly. Reviewed-by: Andrew Donnellan > --- >  drivers/misc/cxl

[PATCH] Revert "powerpc/64s: Remove support for ELFv1 little endian userspace"

2023-07-19 Thread Andrew Donnellan
lled). [0] https://github.com/kilobyte/arch-test Signed-off-by: Andrew Donnellan Cc: Nicholas Piggin Cc: Naveen N Rao Cc: Christophe Leroy Cc: Adam Borowski --- arch/powerpc/include/asm/elf.h | 6 -- arch/powerpc/include/asm/thread_info.h | 6 +- 2 files changed, 1 insert

Re: [PATCH] misc: Explicitly include correct DT includes

2023-07-17 Thread Andrew Donnellan
sers need to > explicitly include the correct includes. > > Signed-off-by: Rob Herring Acked-by: Andrew Donnellan # cxl -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v3 02/12] powerpc/ptrace: Add missing include

2023-05-22 Thread Andrew Donnellan
hat tries to inspect ptrace-decl.h by itself. > > Signed-off-by: Benjamin Gray > Reviewed-by: Russell Currey Reviewed-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH v3 01/12] powerpc/book3s: Add missing include

2023-05-22 Thread Andrew Donnellan
else /* !__ASSEMBLY__ */ >   >  #include > +#include >   >  DECLARE_STATIC_KEY_FALSE(uaccess_flush_key); >   -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 4/4] powerpc/pseries: update SED for PLPKS api changes

2023-05-14 Thread Andrew Donnellan
len), *keylen); > - > +   len = min_t(u16, be32_to_cpu(data.key_len), var.datalen); > memcpy(key, data.key, len); > -   kfree(var.data); > - > key[len] = '\0'; > *keylen = len; >   > diff --git a/block/Kconfig b/block/Kconfig >

Re: [RFC PATCH 1/6] powerpc/64s: Fix assembly to support larger values of THREAD_SIZE

2023-04-26 Thread Andrew Donnellan
On Fri, 2022-11-04 at 17:51 +, Christophe Leroy wrote: > > > Le 04/11/2022 à 18:27, Andrew Donnellan a écrit : > > When CONFIG_VMAP_STACK is enabled, we set THREAD_SIZE to be at > > least the > > size of a page. > > > > There's a few bi

Re: [PATCH] powerpc/rtas: Replace one-element arrays with flexible arrays

2023-04-20 Thread Andrew Donnellan
er the object files in arch/powerpc: - there's no difference at all caused by changing rtas_ext_event_log_v6.vendor_log, which kind of surprises me given the above. - changing rtas_error_log.buffer does seem to change some code generation in arch/powerpc/platforms/pseries/ras.o, I can't quite see why. Andrew -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 06/32] powerpc/configs/64s: Add secure boot options to defconfig

2023-04-16 Thread Andrew Donnellan
ll, Nayna, George] I think it's conceivable that you may want to build a kernel that has no ability for userspace to read/write to the key store at all as a defence in depth measure in hardened environments, but I haven't thought about this for more than 15 seconds, so opinions welcome.

Re: [PATCH 06/32] powerpc/configs/64s: Add secure boot options to defconfig

2023-04-16 Thread Andrew Donnellan
FIG_CRYPTO_DEV_NX_ENCRYPT=m >  CONFIG_CRYPTO_DEV_VMX=y > +CONFIG_SYSTEM_TRUSTED_KEYRING=y > +CONFIG_SYSTEM_BLACKLIST_KEYRING=y >  CONFIG_PRINTK_TIME=y >  CONFIG_PRINTK_CALLER=y >  CONFIG_DEBUG_KERNEL=y -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 8/8] powerpc/rtas: consume retry statuses in sys_rtas()

2023-03-22 Thread Andrew Donnellan
nds time elapsed  ( +-  0.05% ) > +   6.54256 +- 0.00830 seconds time elapsed  ( +-  0.13% ) > > Move the existing rtas_lock-guarded critical section in sys_rtas() > into a conventional rtas_busy_delay()-based loop, returning to user > space only when a final success or f

Re: [PATCH 6/8] powerpc/rtas: lockdep annotations

2023-03-22 Thread Andrew Donnellan
> Signed-off-by: Nathan Lynch I'm no lockdep expert and I haven't checked if every possible case that can be annotated has been annotated, but these changes make sense as far as I can tell from my limited inspection. Reviewed-by: Andrew Donnellan -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 7/8] powerpc/rtas: warn on unsafe argument to rtas_call_unlocked()

2023-03-22 Thread Andrew Donnellan
mp;rtas_args); > + > va_start(list, nret); > va_rtas_call(args, token, nargs, nret, list); > va_end(list); > -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 5/8] powerpc/rtas: rename va_rtas_call_unlocked() to va_rtas_call()

2023-03-22 Thread Andrew Donnellan
va_rtas_call(args, token, nargs, nret, list); > va_end(list); >   > /* A -1 return code indicates that the last command couldn't > -- Andrew DonnellanOzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

Re: [PATCH 3/8] powerpc/rtas: rtas_call_unlocked() kerneldoc

2023-03-22 Thread Andrew Donnellan
On Mon, 2023-03-06 at 15:33 -0600, Nathan Lynch via B4 Relay wrote: > From: Nathan Lynch > > Add documentation for rtas_call_unlocked(), including details on how > it differs from rtas_call(). > > Signed-off-by: Nathan Lynch Reviewed-by: Andrew Donnellan -- Andrew Donnel

  1   2   3   4   5   6   7   8   9   10   >