Message ID | 165603869943.551046.3498980330327696732.stgit@dwillia2-xfh (mailing list archive) |
---|---|
Headers | show |
Series | CXL PMEM Region Provisioning | expand |
On Thu, 23 Jun 2022 19:45:00 -0700 Dan Williams <dan.j.williams@intel.com> wrote: > tl;dr: 46 patches is way too many patches to review in one sitting. Jump > to the PATCH SUMMARY below to find a subset of interest to jump into. > > The series is also posted on the 'preview' branch [1]. Note that branch > rebases, the tip of that branch at time of posting is: > > 7e5ad5cb1580 cxl/region: Introduce cxl_pmem_region objects > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/log/?h=preview Via a W=1 build some docs are out of sync with parameter names. I'm lazy so I'll leave finding the right patch to you ;) drivers/cxl/core/region.c:1490: warning: Function parameter or member 'type' not described in 'devm_cxl_add_region' drivers/cxl/core/region.c:1719: warning: Function parameter or member 'cxlr' not described in 'devm_cxl_add_pmem_region' drivers/cxl/core/region.c:1719: warning: Excess function parameter 'host' description in 'devm_cxl_add_pmem_region' whilst here, docs for generic_nvdimm_flush() need updating to reflect generic getting added to the name in 2019... Jonathan
Jonathan Cameron wrote: > On Thu, 23 Jun 2022 19:45:00 -0700 > Dan Williams <dan.j.williams@intel.com> wrote: > > > tl;dr: 46 patches is way too many patches to review in one sitting. Jump > > to the PATCH SUMMARY below to find a subset of interest to jump into. > > > > The series is also posted on the 'preview' branch [1]. Note that branch > > rebases, the tip of that branch at time of posting is: > > > > 7e5ad5cb1580 cxl/region: Introduce cxl_pmem_region objects > > > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/log/?h=preview > > Via a W=1 build some docs are out of sync with parameter names. > I'm lazy so I'll leave finding the right patch to you ;) > drivers/cxl/core/region.c:1490: warning: Function parameter or member 'type' not described in 'devm_cxl_add_region' Added: diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index f2a0ead20ca7..f5ca4f811463 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -84,6 +84,7 @@ static struct cxl_region *cxl_region_alloc(struct cxl_root_decoder *cxlrd, int i * @cxlrd: root decoder * @id: memregion id to create * @mode: mode for the endpoint decoders of this region + * @type: select whether this is an expander or accelerator (type-2 or type-3) * * This is the second step of region initialization. Regions exist within an * address space which is mapped by a @cxlrd. ...to patch 34. > drivers/cxl/core/region.c:1719: warning: Function parameter or member 'cxlr' not described in 'devm_cxl_add_pmem_region' > drivers/cxl/core/region.c:1719: warning: Excess function parameter 'host' description in 'devm_cxl_add_pmem_region' Added: diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index 808148eef557..fa209fb649f7 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -1711,8 +1711,8 @@ static void cxlr_pmem_unregister(void *dev) } /** - * devm_cxl_add_pmem_region() - add a cxl_region to nd_region bridge - * @host: same host as @cxlmd + * devm_cxl_add_pmem_region() - add a cxl_region-to-nd_region bridge + * @cxlr: parent CXL region for this pmem region bridge device * * Return: 0 on success negative error code on failure. */ ...to patch 46. > whilst here, docs for generic_nvdimm_flush() need updating to reflect > generic getting added to the name in 2019... Sure, but not in this series.
-snipped everything These are commit message typos followed by one tidy-up request. [PATCH 00/46] CXL PMEM Region Provisioning s/usersapce/userspace s/mangage/manage [PATCH 09/46] cxl/acpi: Track CXL resources in iomem_resource s/accurracy/accuracy [PATCH 11/46] cxl/core: Define a 'struct cxl_endpoint_decoder' for tracking DPA resources s/platfom/platforma [PATCH 14/46] cxl/hdm: Enumerate allocated DPA s/provisioining/provisioning s/comrpised/comprised s/volaltile-ram/volatile-ram [PATCH 23/46] tools/testing/cxl: Add partition support s/mecahinisms/mechanisms [PATCH 25/46] cxl/port: Record dport in endpoint references s/endoint/endpoint [PATCH 30/46] cxl/hdm: Add sysfs attributes for interleave ways + granularity s/userpace/userspace s/resonsible/responsible [PATCH 35/46] cxl/region: Add a 'uuid' attribute s/is operation/its operation [PATCH 42/46] cxl/hdm: Commit decoder state to hardware s/base-addres/base-address s/intereleave/interleave How about shortening the commit messages of Patch 10 & 11? They make my git pretty one liner output ugly.
Alison Schofield wrote: > > -snipped everything > > These are commit message typos followed by one tidy-up request. > > [PATCH 00/46] CXL PMEM Region Provisioning > s/usersapce/userspace > s/mangage/manage > > [PATCH 09/46] cxl/acpi: Track CXL resources in iomem_resource > s/accurracy/accuracy > > [PATCH 11/46] cxl/core: Define a 'struct cxl_endpoint_decoder' for tracking DPA resources > s/platfom/platforma > > [PATCH 14/46] cxl/hdm: Enumerate allocated DPA > s/provisioining/provisioning > s/comrpised/comprised > s/volaltile-ram/volatile-ram > > [PATCH 23/46] tools/testing/cxl: Add partition support > s/mecahinisms/mechanisms > > [PATCH 25/46] cxl/port: Record dport in endpoint references > s/endoint/endpoint > > [PATCH 30/46] cxl/hdm: Add sysfs attributes for interleave ways + granularity > s/userpace/userspace > s/resonsible/responsible > > [PATCH 35/46] cxl/region: Add a 'uuid' attribute > s/is operation/its operation > > [PATCH 42/46] cxl/hdm: Commit decoder state to hardware > s/base-addres/base-address > s/intereleave/interleave Thanks! Wonder why my checkpatch run elided those. > How about shortening the commit messages of Patch 10 & 11? They make my > git pretty one liner output ugly. I'll think about it if the whole series ends up needing a resend, but changing subjects does confuse b4 version tracking.
On Thu, Jun 23, 2022 at 07:45:00PM -0700, Dan Williams wrote: > tl;dr: 46 patches is way too many patches to review in one sitting. Jump > to the PATCH SUMMARY below to find a subset of interest to jump into. > > The series is also posted on the 'preview' branch [1]. Note that branch > rebases, the tip of that branch at time of posting is: > > 7e5ad5cb1580 cxl/region: Introduce cxl_pmem_region objects > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/log/?h=preview > Dan, I'm seeing these smatch reports while working off of the preview branch. Perhaps 0-day has already sent these reports aligned to patches. drivers/cxl/core/port.c:1482 cxl_decoder_alloc() warn: is 'alloc' large enough for 'struct cxl_root_decoder'? 0 drivers/cxl/core/port.c:1515 cxl_decoder_alloc() error: potentially dereferencing uninitialized 'cxld'. drivers/cxl/core/hdm.c:457 cxld_set_interleave() error: uninitialized symbol 'eig'. drivers/cxl/core/hdm.c:458 cxld_set_interleave() error: uninitialized symbol 'eiw'. drivers/cxl/core/region.c:192 cxl_region_decode_commit() error: uninitialized symbol 'rc'. drivers/cxl/core/region.c:201 cxl_region_decode_commit() error: uninitialized symbol 'rc'. drivers/cxl/core/region.c:443 alloc_hpa() error: uninitialized symbol 'res'. drivers/cxl/core/region.c:964 cxl_port_setup_targets() error: uninitialized symbol 'peig'. drivers/cxl/core/region.c:964 cxl_port_setup_targets() error: uninitialized symbol 'peiw'. drivers/cxl/core/region.c:964 cxl_port_setup_targets() error: uninitialized symbol 'eiw'. drivers/cxl/core/region.c:968 cxl_port_setup_targets() error: uninitialized symbol 'peiw'. drivers/cxl/core/region.c:969 cxl_port_setup_targets() error: uninitialized symbol 'peig'. drivers/cxl/core/region.c:1557 create_pmem_region_store() warn: unsigned 'rc' is never less than zero. > --- snip >