Re: RFC: switch to use the generic remapping dma-allocator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/21/22 15:22, Helge Deller wrote:
On 11/21/22 14:16, Christoph Hellwig wrote:
currently parisc has it's own implementation of the dma-coherent
allocator that sets up PTEs with the uncached bit.  I can't see any
reason why using vmap to do the same kind of setup shouldn't work.
This small series shows how that could work, but due to a lack of
actual parisc hardware it is compile tested only and not only needs
a careful review but also actual testing on hardware.

Very interesting!
I'll give it a spin on real hardware and will come back with the results...

kernel builds & boots with those patches.
SCSI drives are detected, but SCSI communication fails afterwards:

[   13.509173] zalon_probe: Zalon version 1, IRQ 68
[   13.564410] ncr53c720-0: rev 0xf irq 68
[   13.614207] ncr53c720-0: ID 7, Fast-10, Parity Checking, Differential
[   13.696785] scsi host0: ncr53c8xx-3.4.3g
[   17.575885] scsi 0:0:6:0: Direct-Access     SEAGATE  ST32171W         HP03 PQ: 0 ANSI: 2
[   17.673111] scsi target0:0:6: Beginning Domain Validation
[   17.742479] scsi target0:0:6: asynchronous
[   17.806301] scsi target0:0:6: wide asynchronous
[   17.871736] scsi target0:0:6: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
[   17.965723] scsi target0:0:6: Domain Validation skipping write tests
[   18.041560] scsi target0:0:6: Ending Domain Validation
[   20.448322] 53c700: Version 2.8 By James.Bottomley@xxxxxxxxxxxxxxxxxxxxx
[   20.528403] scsi1: 53c710 rev 2
[   21.567995] scsi host1: LASI SCSI 53c700
[   21.936685] scsi 1:0:1:0: CD-ROM            PHILIPS  PCA80SC          V3-0 PQ: 0 ANSI: 2
[   22.033927] scsi target1:0:1: Beginning Domain Validation
[   22.100102] scsi target1:0:1: asynchronous
[   22.161326] scsi target1:0:1: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 8)
[   22.250962] scsi target1:0:1: Domain Validation skipping write tests
[   22.326829] scsi target1:0:1: Ending Domain Validation
[   23.972351] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[   24.052265] sd 0:0:6:0: Power-on or device reset occurred
[   24.117020] sr 1:0:1:0: Power-on or device reset occurred
[   24.185309] sd 0:0:6:0: [sda] 4194685 512-byte logical blocks: (2.15 GB/2.00 GiB)
[   24.279279] sd 0:0:6:0: [sda] Write Protect is off
[   24.336921] sr 1:0:1:0: [sr0] scsi-1 drive
[   24.386003] cdrom: Uniform CD-ROM driver Revision: 3.20
[   24.451015] sd 0:0:6:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[   24.569057] sd 0:0:6:0: Attached scsi generic sg0 type 0
[   24.634080] sr 1:0:1:0: Attached scsi generic sg1 type 5
...
[   28.246342] EXT4-fs (sda5): mounting ext3 file system using the ext4 subsystem
[   28.338790] ncr53c720-0:6: ERROR (81:0) (0-0-0) (8/1b) @ (mem 43c:00000000).
[   28.343500] ncr53c720-0: regdump:
[   28.343500]  da
[   28.343500]  10
[   28.343500]  c0
[   28.343500]  1b
[   28.343500]  47
[   28.343500]  08
[   28.343500]  06
[   28.343500]  07
[   28.343500]  45
[   28.343500]  08
[   28.343500]  86
[   28.343500]  af
[   28.343500]  80
[   28.343500]  00
[   28.343500]  07
[   28.343500]  0b
[   28.343500] .

Helge




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux