All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] CXL, ACPI, APEI, EINJ: Update EINJ for CXL 1.1 error types
@ 2023-09-07 19:19 Ben Cheatham
  2023-09-07 19:19 ` [PATCH v4 1/3] CXL, PCIE: Add cxl_rcrb_addr file to dport_dev Ben Cheatham
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ben Cheatham @ 2023-09-07 19:19 UTC (permalink / raw)
  To: rafael, dan.j.williams, linux-cxl, linux-acpi
  Cc: bhelgaas, benjamin.cheatham, yazen.ghannam

v4 Changes:
	- Fix kernel test robot build errors
	- Add imply rules for CONFIG_CXL_ACPI and CONFIG_CXL_BUS in
	  EINJ Kconfig to build the CXL support correctly by default
	- Change description of building CXL error type support
	  in EINJ documentation for brevity

v3 Changes:
	- Add sysfs files for finding valid CXL 1.1 downstream port
	  MMIO addresses, along with validation of said addresses
	- Update EINJ documentation to include relevant information
	  for injecting CXL error types
	- Dropped Yazen's from tag

This patch is a follow up to the discussion at [1], and builds on Tony's
CXL error patch at [2].

The new CXL error types will use the Memory Address field in the
SET_ERROR_TYPE_WITH_ADDRESS structure in order to target a CXL 1.1
compliant memory-mapped downstream port. The value of the memory address
will be in the port's MMIO range, and it will not represent physical
(normal or persistent) memory.

In v2 [3], the user supplied the MMIO address for the downstream port, but
per Dan Williams' suggestion [3], the addresses are predetermined and
the user only picks the error type to inject and the downstream port to
inject into. In order to inject an error, the user write the error type
to the error_type file under the einj debugfs directory, then writes any
integer into one of the files under the cxl directory.

[1]:
Link: https://lore.kernel.org/linux-acpi/20221206205234.606073-1-Benjamin.Cheatham@amd.com/
[2]:
Link: https://lore.kernel.org/linux-cxl/CAJZ5v0hNQUfWViqxbJ5B4JCGJUuHpWWSpqpCFWPNpGuagoFbsQ@mail.gmail.com/T/#t
[3]:
Link: https://lore.kernel.org/linux-cxl/20230403151849.43408-1-Benjamin.Cheatham@amd.com/

Ben Cheatham (3):
  CXL, PCIE: Add cxl_rcrb_addr file to dport_dev
  ACPI, APEI, EINJ: Add CXL 1.1 EINJ error type support
  ACPI, APEI, EINJ: Update EINJ documentation

 Documentation/ABI/testing/sysfs-bus-cxl       |  8 +++
 .../firmware-guide/acpi/apei/einj.rst         | 25 +++++++--
 drivers/acpi/apei/Kconfig                     |  2 +
 drivers/acpi/apei/einj.c                      | 24 ++++++++-
 drivers/cxl/acpi.c                            |  2 +
 drivers/cxl/core/port.c                       | 52 +++++++++++++++++++
 drivers/cxl/cxl.h                             |  3 ++
 include/linux/cxl.h                           | 18 +++++++
 8 files changed, 129 insertions(+), 5 deletions(-)
 create mode 100644 include/linux/cxl.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [PATCH v4 2/3] ACPI, APEI, EINJ: Add CXL 1.1 EINJ error type support
@ 2023-09-22 19:39 kernel test robot
  0 siblings, 0 replies; 11+ messages in thread
From: kernel test robot @ 2023-09-22 19:39 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20230907191956.674833-3-Benjamin.Cheatham@amd.com>
References: <20230907191956.674833-3-Benjamin.Cheatham@amd.com>
TO: Ben Cheatham <Benjamin.Cheatham@amd.com>
TO: rafael@kernel.org
TO: dan.j.williams@intel.com
TO: linux-cxl@vger.kernel.org
TO: linux-acpi@vger.kernel.org
CC: bhelgaas@google.com
CC: benjamin.cheatham@amd.com
CC: yazen.ghannam@amd.com

Hi Ben,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on linus/master v6.6-rc2 next-20230921]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ben-Cheatham/CXL-PCIE-Add-cxl_rcrb_addr-file-to-dport_dev/20230908-032235
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20230907191956.674833-3-Benjamin.Cheatham%40amd.com
patch subject: [PATCH v4 2/3] ACPI, APEI, EINJ: Add CXL 1.1 EINJ error type support
:::::: branch date: 2 weeks ago
:::::: commit date: 2 weeks ago
config: i386-randconfig-141-20230922 (https://download.01.org/0day-ci/archive/20230923/202309230339.w5H29jEj-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230923/202309230339.w5H29jEj-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202309230339.w5H29jEj-lkp@intel.com/

smatch warnings:
drivers/acpi/apei/einj.c:526 is_valid_cxl_addr() warn: ignoring unreachable code.

vim +526 drivers/acpi/apei/einj.c

e40213450b5315 Huang Ying   2010-05-18  516  
b6c82d6a99fc77 Ben Cheatham 2023-09-07  517  static int is_valid_cxl_addr(u64 addr)
b6c82d6a99fc77 Ben Cheatham 2023-09-07  518  {
b6c82d6a99fc77 Ben Cheatham 2023-09-07  519  	struct cxl_dport *dport;
b6c82d6a99fc77 Ben Cheatham 2023-09-07  520  
b6c82d6a99fc77 Ben Cheatham 2023-09-07  521  	if (IS_REACHABLE(CONFIG_CXL_ACPI))
b6c82d6a99fc77 Ben Cheatham 2023-09-07  522  		dport = cxl_find_rch_dport_by_rcrb((resource_size_t) addr);
b6c82d6a99fc77 Ben Cheatham 2023-09-07  523  	else
b6c82d6a99fc77 Ben Cheatham 2023-09-07  524  		return 0;
b6c82d6a99fc77 Ben Cheatham 2023-09-07  525  
b6c82d6a99fc77 Ben Cheatham 2023-09-07 @526  	if (!IS_ERR_OR_NULL(dport))
b6c82d6a99fc77 Ben Cheatham 2023-09-07  527  		return 1;
b6c82d6a99fc77 Ben Cheatham 2023-09-07  528  
b6c82d6a99fc77 Ben Cheatham 2023-09-07  529  	pr_info("Could not find dport with rcrb 0x%llx\n", addr);
b6c82d6a99fc77 Ben Cheatham 2023-09-07  530  	return 0;
b6c82d6a99fc77 Ben Cheatham 2023-09-07  531  }
b6c82d6a99fc77 Ben Cheatham 2023-09-07  532  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-09-22 19:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-07 19:19 [PATCH v4 0/3] CXL, ACPI, APEI, EINJ: Update EINJ for CXL 1.1 error types Ben Cheatham
2023-09-07 19:19 ` [PATCH v4 1/3] CXL, PCIE: Add cxl_rcrb_addr file to dport_dev Ben Cheatham
2023-09-12 14:11   ` Jonathan Cameron
2023-09-12 14:49     ` Ben Cheatham
2023-09-12 16:33       ` Jonathan Cameron
2023-09-07 19:19 ` [PATCH v4 2/3] ACPI, APEI, EINJ: Add CXL 1.1 EINJ error type support Ben Cheatham
2023-09-12 14:00   ` Jonathan Cameron
2023-09-12 14:49     ` Ben Cheatham
2023-09-07 19:19 ` [PATCH v4 3/3] ACPI, APEI, EINJ: Update EINJ documentation Ben Cheatham
2023-09-12 13:51   ` Jonathan Cameron
  -- strict thread matches above, loose matches on Subject: below --
2023-09-22 19:39 [PATCH v4 2/3] ACPI, APEI, EINJ: Add CXL 1.1 EINJ error type support kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.