From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwTVz-0005qd-SQ for qemu-devel@nongnu.org; Wed, 01 Aug 2012 03:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwTVv-0001yb-St for qemu-devel@nongnu.org; Wed, 01 Aug 2012 03:38:43 -0400 Sender: Paolo Bonzini Message-ID: <5018DCEB.9060208@redhat.com> Date: Wed, 01 Aug 2012 09:38:19 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1343714097-545-1-git-send-email-sw@weilnetz.de> <5017EE1D.8060908@suse.de> <5017EEFD.5070503@redhat.com> <5017EFC6.1050705@suse.de> <5017F0A2.5030400@redhat.com> <5017F1E3.90806@suse.de> <87y5m06jx1.fsf@codemonkey.ws> <5017FD81.3040707@redhat.com> <50185960.9050700@suse.de> In-Reply-To: <50185960.9050700@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] megasas: Update function megasys_scsi_uninit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Reinecke Cc: qemu-trivial@nongnu.org, Stefan Weil , Alexander Graf , qemu-devel@nongnu.org, Anthony Liguori , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 01/08/2012 00:17, Hannes Reinecke ha scritto: > Ad 2: no, the SAS address for the devices is _not_ the WWN. > The WWN is the ID of the LUN, whereas the SAS address is the ID of the > Target. So to be correct we would need to generate unique SAS addressed > per target which needs to be different from the WWN. Oh, that's even easier then, just delete all the get_wwn stuff and use HBA address + 1 + sdev->id. Paolo > However, megasas does not need to present SAS addresses here; we can set > the interface to PCI-E (instead of SAS) and just use the LUN number. > Sadly I've yet to figure out the code for PCIE. > (Doing it correctly involves staring a binary output and figuring the > meaning of bits. Did I mention I don't have documentation for that beast?) > That's what's stalled the patch for now.