All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Ke Wei <kewei.mv@gmail.com>
Cc: linux-scsi@vger.kernel.org, kewei@marvell.com,
	qswang@marvell.com, jfeng@marvell.com, qzhao@marvell.com
Subject: Re: [PATCH] Marvell 6440 SAS/SATA driver
Date: Wed, 23 Jan 2008 06:41:09 -0500	[thread overview]
Message-ID: <479727D5.8060901@garzik.org> (raw)
In-Reply-To: <6b2481670801230254i46e65652vb9139e2c136e4ce4@mail.gmail.com>

Ke Wei wrote:
> Attachment is a patch file for 6440 driver. I will have to spend more
> time on setting my mail client. Yesterday I used mutt tool. But Look
> like the problem still exists.
> I fixed all issues which you mentioned , but

The changes look good, thanks!

In terms of engineering process, I should have been more clear:  when 
revising your submission, you should make the revisions and then 
regenerate your original patch.

To use a silly example, if you needed to fix a 1-character typo in a 
1,000-line patch, you would need to make your revision, re-generate the 
1,000-line patch, and email that new patch.

So, to move forward, please create one single patch with the latest 
mvsas, diff'd against the 'mvsas' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6

I will "ack" that patch (indicate my approval), and unless other 
objections surface, James will merge your patch into the 'mvsas' branch. 
  That will get the driver on the road to be included in 2.6.25.


>>> @@ -666,11 +970,53 @@ static int mvs_nvram_read(struct mvs_info *mvi, unsigned
>>> int addr,
>>>  err_out:
>>>        dev_printk(KERN_ERR, &mvi->pdev->dev, "%s", msg);
>>>        return rc;
>>> +#else
>>> +       memcpy(buf, "\x50\x05\x04\x30\x11\xab\x00\x00", 8);
>>> +       return 0;
>>> +#endif
>>
>> what happens if two adapters are used, with the same SAS address?  That
>> causes problems...
>>
>>
> Our bios can write SAS Address per port when system boot , so I think
> we don't need read or configure address.

It is standard Linux policy to reduce or eliminate BIOS dependencies as 
much as possible.

This is because there are several common scenarios where BIOS may not 
run, or otherwise not be available:

* suspend/resume
* controller hotplug
* non-x86 PCI platforms such as POWER

Thus, we need the driver to obtain these addresses -- hopefully reading 
them from a BIOS data table somewhere, if NVRAM is not available.

This is a highly common scenario -- obtaining unique identifying 
information in the absence of BIOS.



Similarly, we cannot rely on BIOS to perform any global reset or errata 
workaround duties for us.  That must be coded into the driver also.


> And I reserved hexdump funciton if you don't care. Only debugging.

It is not an important matter, but it would be nice to clean that up 
eventually.

Also, FWIW, we have a standard method of debug output:

	struct pci_dev *pdev;

	dev_dbg(&pdev->dev, KERN_INFO,
		"this is debug message number %d", 2);

which will only be compiled into the driver when DEBUG is defined.


>>> +static int mvs_abort_task(struct sas_task *task)
>>> +{
>>> +       /*FIXME*/
>>> +       MVS_PRINTK("mvs abort task\n");
>>> +       return TMF_RESP_FUNC_COMPLETE;
>>> +}
>> should make an attempt to do something sane here
>>
> if entering this abort function , I think I must fix the unknown
> issues instead of here.  But I also will implement next.

Ok, thanks.

	Jeff




  reply	other threads:[~2008-01-23 11:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080122151857.GA8680@ubuntu.domain>
2008-01-22 15:24 ` [PATCH] Marvell 6440 SAS/SATA driver Ke Wei
2008-01-23  3:58   ` Jeff Garzik
2008-01-23 10:54     ` Ke Wei
2008-01-23 11:41       ` Jeff Garzik [this message]
2008-01-25 16:43         ` Ke Wei
2008-01-25 17:24           ` Grant Grundler
2008-01-25 17:38             ` James Bottomley
2008-01-25 22:12             ` Jeff Garzik
2008-01-25 17:38           ` Grant Grundler
2008-01-25 22:39           ` James Bottomley
2008-01-27 15:10             ` Ke Wei
2008-01-27 15:27             ` Ke Wei
2008-01-27 18:13               ` James Bottomley
2008-02-05 13:19                 ` Ke Wei
2008-02-05 21:00                   ` Luben Tuikov
2008-02-07  0:33                   ` Jeff Garzik
2008-01-25 23:00           ` James Bottomley
2008-01-25 23:05             ` Jeff Garzik
2008-01-25 21:27       ` James Bottomley
2008-01-23 19:23     ` Grant Grundler
     [not found] <FE3F06125A99254E8D92161AA4569C6F02310B1A@sc-exch02.marvell.com>
2008-02-22 16:26 ` Jeff Garzik
2008-02-22 16:38   ` James Bottomley

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=479727D5.8060901@garzik.org \
    --to=jeff@garzik.org \
    --cc=jfeng@marvell.com \
    --cc=kewei.mv@gmail.com \
    --cc=kewei@marvell.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=qswang@marvell.com \
    --cc=qzhao@marvell.com \
    /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 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.