WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] AHCI question

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] AHCI question
From: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxx>
Date: Mon, 22 Nov 2010 12:07:58 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 22 Nov 2010 09:08:45 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=u1EqLQpJc7f3LtIRdQhXVuW6/SRd3uyOt2CgnMogigA=; b=J4obGRJF9mj8IKB586EiiIB+zYhwYlFQQrd+rxoVp1iDT38urbB/Pom+ZzPltedWq3 jDUjOVb6Qr3LuNc14eMi7Dv0didiS8uI8SJ/iXXgM3v5rQqAVMbfYrrlSo3OhCh3jUEe 2LoSXe7iic4cwcet+GYAITfg30eQhtbCk2vNE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jo92ZznDZ1HmOtAIiv98wnLuBqUf336GOX1MTxpSSmNVi9qcL+flm2FoY3+nxVPTfb VaQ6pmvXKXZjfTXQ2vhUcq8y8XBJc9MXJP8LkNvPqWoUp9YRO1kLvx8F+J2Cbg8HE35U CTXQs0WzOfS5ljoNJgxG2AMkxcJlD8IiCjKaY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101122164252.GC21254@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimn7exryKuuSEsiMXkkWb6CC8bBABa9ztQrRO7=@xxxxxxxxxxxxxx> <20101122164252.GC21254@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
It is a bare minimal driver in Xen (under development) which is
invoked upon a system crash to persist crash dump data to disk by
issuing commands through the pre-programmed HBA registers.  Unlike a
full fledged AHCI driver, we do not initialize the very many memory
regions used to communicate between the device and the system software
as in our case the dom0 would have already done all that.  We simply
map those memory regions that dom0 has already setup and issue
commands to copy data to disk.  And that issuing of command part is
not succeeding as I would expect.

Kamala

On Mon, Nov 22, 2010 at 11:42 AM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
> On Mon, Nov 22, 2010 at 09:51:26AM -0500, Kamala Narasimhan wrote:
>> I am writing a polled mode Xen AHCI driver to collect some minimal
>
> What is a 'Xen AHCI' driver?
>
>> information after a system crash.  As dom0 would have initialized and
>> used the HBA before we enter the crashing code path, I am not doing
>> any kind of device initialization within the Xen AHCI driver.  I am
>> also not setting up interrupts etc. as the driver is used in polled
>> mode.  I simply map the abar and other memory regions associated with
>> the device that dom0 has already setup and write to it/read from it as
>> needed.
>>
>> After a crash, within the Xen AHCI driver I am able to get to the pci
>> space for the device, get valid HBA registers, mapping etc. works but
>> the HBA does not respond back after I issue a command for execution.
>> In specific, after I set the port x command issue register (pxci) for
>> the free slot, that slot is not getting cleared as it should after a
>> command execution.
>>
>> As an experiment to see if anything at all works with respect to
>> setting/resetting port registers, I simply decided to stop/start the
>> HBA command engine by setting the ST bit in the command register
>> (PxCMD) to 0 and then checking if CR, FR bit etc. in PxCMD are reset
>> by HBA after a ST reset but they remain set.
>>
>> I am hoping someone with AHCI experience might be able to shed some
>> light as to why the HBA is not responding as it should.  Thanks.
>>
>> Kamala
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>