Re: Boot panic w/7.2-STABLE on amd64: resource_list_alloc



John Baldwin wrote:
Sounds like the ATA driver is allocating the same BAR twice. Hmm, yes, it allocates the resources once for each channel it seems in the ata_ali_sata attachment. Looking in ata-chipset.c, all the other chipsets are good about allocating these resources in their chipinit routines rather than the per-channel allocate routine. Well, except ata_pci_allocate() is also busted. *sigh* I can work on a patch for HEAD if you are willing to test.

ata_pci_allocate() (now known as ata_pci_ch_attach()) is a different case. It uses allocation functions wrapped by the atapci "bus", so every channel uses it's own pair of RIDs.

Problem of ALI SATA is a bit different. As I understand, controller has two pairs of RIDs for 4 channels, so each channel should share resources with another one, just using different offset. Is there any other way to correctly handle two halves of same resource separately without teaching atapci to virtualize this as interrupts or handle it on controller level?

--
Alexander Motin
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Boot panic w/7.2-STABLE on amd64: resource_list_alloc
    ... allocates the resources once for each channel it seems in the ata_ali_sata ... channel uses it's own pair of RIDs. ...
    (freebsd-stable)
  • READ_DMA timed out on Promise FastTrak100
    ... ATA channel 0: ... <Parallel port bus> on ppc0 ... unknown: can't assign resources ...
    (freebsd-questions)
  • How GC Works
    ... one contains the memory part and other manages the ... unmanaged resources and implement finalize in the second class so that ... allocates large memory as classes implementing finalize method requires ... Sub New ...
    (microsoft.public.dotnet.framework.clr)
  • Garbage Collection
    ... one contains the memory part and other manages the ... unmanaged resources and implement finalize in the second class so that ... allocates large memory as classes implementing finalize method requires ... Sub New ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Unmanaged resources
    ... unmnaged resources needs to be manually disposed. ... Any object that allocates unamanaged resources must also free them, ... general rule is that if you use an object that implements Dispose, ... What happens in the Dll stays in the Dll (generally anyway, ...
    (microsoft.public.dotnet.framework.compactframework)