From: Michael Neuling <mikey@neuling.org>
To: "Matthew R. Ochs" <mrochs@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org,
James.Bottomley@HansenPartnership.com, nab@linux-iscsi.org,
brking@linux.vnet.ibm.com, hch@infradead.org,
imunsie@au1.ibm.com, "Manoj N. Kumar" <manoj@linux.vnet.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: [PATCH v4] cxlflash: Base support for IBM CXL Flash Adapter
Date: Mon, 08 Jun 2015 20:05:34 +1000 [thread overview]
Message-ID: <1433757934.12237.6.camel@neuling.org> (raw)
In-Reply-To: <1433540782-15276-1-git-send-email-mrochs@linux.vnet.ibm.com>
On Fri, 2015-06-05 at 16:46 -0500, Matthew R. Ochs wrote:
> SCSI device driver to support filesystem access on the IBM CXL Flash adapter.
Few minor nits below but other than that it looks good to me. The CXL parts
are good and the rest of the driver is looking decent. FWIW:
Reviewed-by: Michael Neuling <mikey@neuling.org>
The core cxl changes needed for this are in mpe's powerpc next branch queued up
for 4.2. They are in linux next-20150605. To compile this you'll need to pull
in mpe's powerpc tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git next
> diff --git a/drivers/scsi/cxlflash/Kconfig b/drivers/scsi/cxlflash/Kconfig
> new file mode 100644
> index 0000000..e98c3f6
> --- /dev/null
> +++ b/drivers/scsi/cxlflash/Kconfig
> @@ -0,0 +1,11 @@
> +#
> +# IBM CXL-attached Flash Accelerator SCSI Driver
> +#
> +
> +config CXLFLASH
> + tristate "Support for IBM CAPI Flash"
> + depends on CXL
This should be depends on SCSI too?
> +struct afu {
< snip>
> + u64 interface_version;
This doesn't seem to be used anywhere except for in init_afu where it's
only used local to that function.
> + struct cxlflash_cfg *parent; /* Pointer back to parent cxlflash_cfg */
> +
> +};
> +
> +static inline u64 lun_to_lunid(u64 lun)
> +{
> + u64 lun_id;
> +
> + int_to_scsilun(lun, (struct scsi_lun *)&lun_id);
> + return swab64(lun_id);
> +}
This is only used in main.c. Why is it not just in there?
> +/**
> + * cxlflash_probe() - PCI entry point to add host
> + * @pdev: PCI device associated with the host.
> + * @dev_id: PCI device id associated with device.
> + *
> + * Return: 0 on success / non-zero on failure
> + */
> +static int cxlflash_probe(struct pci_dev *pdev,
> + const struct pci_device_id *dev_id)
> +{
<snip>
> + phys_dev = cxl_get_phys_dev(pdev);
> + if (!dev_is_pci(phys_dev)) {
> + pr_err("%s: not a pci dev\n", __func__);
> + rc = ENODEV;
-ENODEV;
next prev parent reply other threads:[~2015-06-08 10:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 21:46 [PATCH v4] cxlflash: Base support for IBM CXL Flash Adapter Matthew R. Ochs
2015-06-08 10:05 ` Michael Neuling [this message]
2015-06-08 19:11 ` Matthew R. Ochs
2015-06-08 17:54 ` Brian King
2015-06-08 19:47 ` Manoj Kumar
2015-06-08 21:41 ` Manoj Kumar
2015-06-08 21:45 ` Brian King
2015-06-09 1:22 ` Stephen Bates
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433757934.12237.6.camel@neuling.org \
--to=mikey@neuling.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=brking@linux.vnet.ibm.com \
--cc=hch@infradead.org \
--cc=imunsie@au1.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=manoj@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=mrochs@linux.vnet.ibm.com \
--cc=nab@linux-iscsi.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).