Re: Virtual machines from .vdi images

2017-12-18 Thread Chris Rothrock
I was fairly sure that was the reason myself.  I will continue on my end at
this point to see if I can get the AMD AHCI controller to work by
instrumenting the current AHCI driver.  If I can get this to work I will
certainly provide my updates to the Genode team to help expand in this
regard.

On Mon, Dec 18, 2017 at 8:38 AM, Christian Helmuth <
christian.helm...@genode-labs.com> wrote:

> Hello Chris,
>
> On Thu, Dec 14, 2017 at 10:45:37AM -0500, Chris Rothrock wrote:
> > Here is the output from these two commands.
> [...]
> > *-storage
> >  description: RAID bus controller
> >  product: SATA Controller [RAID mode] [8086:2822]
> >  vendor: Intel Corporation [8086]
> >  physical id: 17
> >  bus info: pci@:00:17.0
> >  version: 31
> >  width: 32 bits
> >  clock: 66MHz
> >  capabilities: storage msi pm bus_master cap_list
> >  configuration: driver=ahci latency=0
> >  resources: irq:123 memory:d1048000-d1049fff
> memory:d104e000-d104e0ff ioport:3080(size=8) ioport:3088(size=4)
> ioport:3060(size=32) memory:d104c000-d104c7ff
> [...]
> >  *-scsi:0
> >   physical id: 2
> >   logical name: scsi0
> >   capabilities: emulated
> > *-disk
> >  description: ATA Disk
> >  product: WDC WD5000AZLX-6
> >  vendor: Western Digital
> >  physical id: 0.0.0
> >  bus info: scsi@0:0.0.0
> >  logical name: /dev/sda
> >  version: 1A01
> >  serial: [REMOVED]
> >  size: 465GiB (500GB)
> >  capabilities: gpt-1.00 partitioned partitioned:gpt
> >  configuration: ansiversion=5 
> > guid=eaaf6998-3866-45df-b02d-8820514d2968
> logicalsectorsize=512 sectorsize=4096
> [...]
> > 00:17.0 RAID bus controller [0104]: Intel Corporation SATA Controller
> [RAID
> > mode] [8086:2822] (rev 31)
> > Subsystem: Hewlett-Packard Company SATA Controller [RAID mode]
> [103c:802e]
> > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> > Stepping- SERR+ FastB2B- DisINTx+
> > Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-  > SERR-  > Latency: 0
> > Interrupt: pin A routed to IRQ 123
> > Region 0: Memory at d1048000 (32-bit, non-prefetchable) [size=8K]
> > Region 1: Memory at d104e000 (32-bit, non-prefetchable) [size=256]
> > Region 2: I/O ports at 3080 [size=8]
> > Region 3: I/O ports at 3088 [size=4]
> > Region 4: I/O ports at 3060 [size=32]
> > Region 5: Memory at d104c000 (32-bit, non-prefetchable) [size=2K]
> > Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Address: fee00238  Data: 
> > Capabilities: [70] Power Management version 3
> > Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-
> )
> > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
> > Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=0004
> > Kernel driver in use: ahci
> > Kernel modules: ahci
>
> I had a thorough look at the information above and unfortunately this
> storage configuration is not supported by Genode currently. The
> reasons are:
>
> 1) The storage controller does not appear as AHCI device but as SATA
>RAID mode controller. Therefore, our platform_drv does not provide
>access to the I/O resources to the AHCI driver.
>
> 2) If ahci_drv had access to the device it would not use it as we did
>not implement any special handling of RAID mode controllers. It may
>be possible to extend the driver by means to drive the device via
>BAR4 (I/O ports 3060+32) but I have no experience with this
>operation.
>
> Regards
> --
> Christian Helmuth
> Genode Labs
>
> https://www.genode-labs.com/ · https://genode.org/
> https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> genode-main mailing list
> genode-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>



-- 


Thank You,

Chris Rothrock
Senior System Administrator
(315) 308-1637
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: Virtual machines from .vdi images

2017-12-18 Thread Christian Helmuth
Hello Chris,

On Thu, Dec 14, 2017 at 10:45:37AM -0500, Chris Rothrock wrote:
> Here is the output from these two commands.
[...]
> *-storage
>  description: RAID bus controller
>  product: SATA Controller [RAID mode] [8086:2822]
>  vendor: Intel Corporation [8086]
>  physical id: 17
>  bus info: pci@:00:17.0
>  version: 31
>  width: 32 bits
>  clock: 66MHz
>  capabilities: storage msi pm bus_master cap_list
>  configuration: driver=ahci latency=0
>  resources: irq:123 memory:d1048000-d1049fff 
> memory:d104e000-d104e0ff ioport:3080(size=8) ioport:3088(size=4) 
> ioport:3060(size=32) memory:d104c000-d104c7ff
[...]
>  *-scsi:0
>   physical id: 2
>   logical name: scsi0
>   capabilities: emulated
> *-disk
>  description: ATA Disk
>  product: WDC WD5000AZLX-6
>  vendor: Western Digital
>  physical id: 0.0.0
>  bus info: scsi@0:0.0.0
>  logical name: /dev/sda
>  version: 1A01
>  serial: [REMOVED]
>  size: 465GiB (500GB)
>  capabilities: gpt-1.00 partitioned partitioned:gpt
>  configuration: ansiversion=5 
> guid=eaaf6998-3866-45df-b02d-8820514d2968 logicalsectorsize=512 
> sectorsize=4096
[...]
> 00:17.0 RAID bus controller [0104]: Intel Corporation SATA Controller [RAID
> mode] [8086:2822] (rev 31)
> Subsystem: Hewlett-Packard Company SATA Controller [RAID mode] [103c:802e]
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR+ FastB2B- DisINTx+
> Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-  SERR-  Latency: 0
> Interrupt: pin A routed to IRQ 123
> Region 0: Memory at d1048000 (32-bit, non-prefetchable) [size=8K]
> Region 1: Memory at d104e000 (32-bit, non-prefetchable) [size=256]
> Region 2: I/O ports at 3080 [size=8]
> Region 3: I/O ports at 3088 [size=4]
> Region 4: I/O ports at 3060 [size=32]
> Region 5: Memory at d104c000 (32-bit, non-prefetchable) [size=2K]
> Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> Address: fee00238  Data: 
> Capabilities: [70] Power Management version 3
> Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
> Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=0004
> Kernel driver in use: ahci
> Kernel modules: ahci

I had a thorough look at the information above and unfortunately this
storage configuration is not supported by Genode currently. The
reasons are:

1) The storage controller does not appear as AHCI device but as SATA
   RAID mode controller. Therefore, our platform_drv does not provide
   access to the I/O resources to the AHCI driver.

2) If ahci_drv had access to the device it would not use it as we did
   not implement any special handling of RAID mode controllers. It may
   be possible to extend the driver by means to drive the device via
   BAR4 (I/O ports 3060+32) but I have no experience with this
   operation.

Regards
-- 
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: wifi: assignment of PCI device failed

2017-12-18 Thread Alexander Boettcher
Hi Johannes,

On 07.12.2017 10:11, Johannes Kliemann wrote:
> Yet this doesn't explain the second error that iwl is timing out waiting
> for the hardware.

as discussed off-line, I could reproduce it on one of our machines. May
you please give the commits of [0] a spin, which solves the issue for
the one machine from us.

Thanks,

Alex.

[0] https://github.com/genodelabs/genode/issues/2620

> 
> Regards,
> Johannes
> 
> Am 05.12.2017 um 17:06 schrieb Johannes Kliemann:
>> Hi Alex,
>>
>> thanks to your hint with Issue #2207 I was able to get the value of res
>> which is 9. What I find interesting is the fact that it now seems to be
>> able to assign the PCI device as you can see in [1].
>>
>>> [platform_drv] wifi_drv -> : assignment of PCI device 4:0.0 succeeded
>>
>> Yet everything else seems to behave as before. The timeout errors still
>> appear and there doesn't seem to be any actual connection attempt.
>>
>> I have built this from [2] which currently incorporates log_core_kernel,
>> NOVA VGA support and benders fix free memory calculation (if this
>> information is useful to you).
>>
>> Regards,
>> Johannes
>>
>> [1]: https://imgur.com/a/osaVJ
>> [2]:
>> https://github.com/jklmnn/genode/tree/8a64415f52df2dee30e8fcd279e16d1b18eb2fb9
>>
>> Am 04.12.2017 um 22:14 schrieb Alexander Boettcher:
>>> Hello,
>>>
>>> On 04.12.2017 10:04, Johannes Kliemann wrote:
 Hi all,

 I tried to use the Wifi driver for Intel wifi chips.
 When running the driver I get the following messages:

> [platform_drv] Error: wifi_drv -> : assignment of PCI device 4:0.0
 failed phys=0xf840 virt=0x10
 and

> [wifi_drv] [iwl_trans_pcie_grap_nic_access] *WARN* Timeout waiting for
 hardware access (CSR_GP_CNTRL 0x)

 The corresponding run file [1] is explicitly written without any default
 routes. I can only provide a photo of the log output [2] (at least the
 visible part) as I don't have any other debug method yet on this hardware.

 I thought that this was a missing route but I couldn't find a related
 message and assigning default routes didn't fix it.
 The error seems to appear in
 repos/base-nova/src/core/pd_session_support.cc:assign_pci returning
 false but I couldn't find out why this happens.
 Does anyone have an idea?
>>>
>>> What is or maybe are the value(s) for the variable 'res' in
>>> repos/base-nova/src/core/pd_session_support.cc:assign_pci ?
>>>
>>
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> genode-main mailing list
>> genode-main@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/genode-main
>>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> genode-main mailing list
> genode-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
> 

-- 
Alexander Boettcher
Genode Labs

http://www.genode-labs.com - http://www.genode.org

Genode Labs GmbH - Amtsgericht Dresden - HRB 28424 - Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main