append option did not work.  No sata visible see below.

On 09/17/2015 09:01 AM, Pavel Holica wrote:
2015-09-17 14:55 GMT+02:00 Robert Moskowitz <rgm@htt-consult.com>:


On 09/17/2015 08:51 AM, Pavel Holica wrote:


2015-09-17 14:33 GMT+02:00 Robert Moskowitz <rgm@htt-consult.com>:


On 09/17/2015 06:53 AM, Peter Robinson wrote:
On Wed, Sep 16, 2015 at 10:00 PM, Robert Moskowitz <rgm@htt-consult.com> wrote:
I went searching for information on sata port multiplier and found:

http://www.spinics.net/lists/arm-kernel/msg377619.html

Is this still the status of this and if so how do I set AHCI_HFLAG_NO_PMP to
true?
Well if you read the message you reference it states:

"So add a module parameter to enable pmp usage, and default this to off, so
that directly attached disks keep working normally."

So it seems if you use a multiple you need to do a different option
than without so it indicates it would need it. If you do "modinfo
ahci_sunxi" you'll see that actually the patch has landed and there is
a enable_pmp parameter. So you'll need to create something like
/etc/modprobe.d/sunxi.conf and add a line "options ahci_sunxi
enable_pmp=1" line (no I've not verified that is correct so you'll
need to check it) and reboot.

Ah, thanks!  I will try that.  I was looking at: /boot/extlinux/extlinux.conf and adding to the append line something like:

AHCI_HFLAG_NO_PMP=0


So I would have been heading in the wrong direction...

Not entirely, it should also work having ahci_sunxi.enable_pmp=1 on kernel cmdline.
Also, you may need to rebuild initramfs by running dracut -f after modifying modprobe.d files.

So either way I may need to rebuild initramfs?  I have yet to get this right.

I boot with this option.  It probably will not work; I will notice this.  Then as root I issue 'dracut -f' then reboot?

No, if you modify kernel command line, you don't need to rebuild initramfs, since module parameters are read from kernel cmdline.
But if you modify some of files in modprobe.d and impacted module is loaded in initramfs environment, you need to rebuild initramfs to include those modifications made in modprobe.d

I am attaching portions of the output to the serial console that seem to bear on the sata multipler access.  Note that under /dev, there is no /dev/sd<whatever> and only tht mSD is showing under /dev/disk/by-*

Retrieving file: /extlinux/extlinux.conf
538 bytes read in 118 ms (3.9 KiB/s)
Ignoring unknown command: ui
Ignoring malformed menu command:  autoboot
Ignoring malformed menu command:  hidden
Ignoring unknown command: totaltimeout
Fedora-Xfce-armhfp-23-20150915 Boot Options.
1:    Fedora-Xfce-armhfp-23-20150915 (4.2.0-300.fc23.armv7hl)


append: ro root=UUID=5c922e06-bb74-402c-9d65-65feee4516b5 ahci_sunxi.enable_pmp=1

[    0.000000] Kernel command line: ro root=UUID=5c922e06-bb74-402c-9d65-65feee4516b5 ahci_sunxi.enable_pmp=1

         Starting dracut cmdline hook...
[    6.487737] systemd[1]: Started Device-Mapper Multipath Device Controller.
[    6.500422] systemd[1]: Started Load Kernel Modules.

[   10.697133] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[   10.711884] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[   10.729799] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pmp pio slum part ccc
[   10.749067] scsi host0: ahci-sunxi
[   10.762209] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 30

[   20.786969] ata1: softreset failed (device not ready)
[   30.811965] ata1: softreset failed (device not ready)
         Mounting Configuration File System...
[  OK  ] Mounted Configuration File System.
[  OK  ] Found device /dev/disk/by-uuid/5c922e06-bb74-402c-9d65-65feee4516b5.
[   40.300482] audit: type=1130 audit(40.280:12): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=plymouth-start comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
[   41.331969] ata1: link is slow to respond, please be patient (ready=0)
[   65.871972] ata1: softreset failed (device not ready)
[   65.882685] ata1: limiting SATA link speed to 1.5 Gbps
[   71.111969] ata1: softreset failed (device not ready)
[   71.122544] ata1: reset failed, giving up
[  OK  ] Started dracut initqueue hook.


I am interested in seeing if I can get this to work.  I don't think it is too practical with all the power line requirements over one sata and 2 USB drives.  At least for my application.





Peter

But it seems there were more messages about this...


On 09/16/2015 03:34 PM, Robert Moskowitz wrote:
I figured out the various ports on the muitiport card and have 2 sata
drives I am testing with.

One drive works fine.  But two drives it is a bit of a guess which one
will come in as /dev/sda (the mSD card is /dev/mmcblk0).  And only one drive
is visible.  Or at least gparted is only seeing one.

 From messages back last fall? I had that this board would let me use
multiple sata drives, so there seems to be something I am missing.

Right now each item has its own power supply:  Cubietruck, Multiport card,
Drive1, and Drive2.  So it is not a power issue (or shouldn't be).