frank-w
(Frank W.)
July 2, 2018, 8:32am
21
i’m currently not at home, can you look if in config (./build.sh config) these options are set:
CONFIG_PCIEPORTBUS=y
CONFIG_PCIE_MEDIATEK=y
CONFIG_PHY_MTK_TPHY=y
?
the new folder is always included by makefile in drivers/pci and option for PCIe-Mediatek is not changed as far as i see
frank-w
(Frank W.)
July 2, 2018, 9:28am
23
maybe it depends on another…make
./build.sh config
and press / to search for it… you get the option and there is a depends on-line
any error on importconfig?
from Kconfig:
depends on ARCH_MEDIATEK || COMPILE_TEST <<< ARCH_MEDIATEK should be set
depends on OF <<< maybe not
depends on PCI_MSI_IRQ_DOMAIN <<<maybe not
try searching for the last 2 options and try to set…
for comparision 4.16-main (same in 4.17-main):
depends on (ARM || ARM64) && (ARCH_MEDIATEK || COMPILE_TEST)
depends on OF
depends on PCI
select PCIEPORTBUS
so i assume OF is set (imho also needed for wifi)…PCI_MSI_IRQ_DOMAIN is not needed here, so this can be missing
OF is set
but I cannot find PCI_MSI_IRQ_DOMAIN even if I grep through .config file
but it’s when I use /find in config
frank-w
(Frank W.)
July 2, 2018, 12:05pm
25
so we have the right configuration, you can try it setting before the PCIE_MEDIATEK in arch/arm/configs/*fwu_defconfig and make importconfig again
CONFIG_PCI_MSI_IRQ_DOMAIN=y
CONFIG_PCIE_MEDIATEK=y
if you find it in menuconfig (./build.sh config) you can post ne the infos (Kconfig-Path), so i can find it in source
drivers/pci/Kconfig:
config PCI_MSI
bool "Message Signaled Interrupts (MSI and MSI-X)"
depends on PCI
select GENERIC_MSI_IRQ
...
config PCI_MSI_IRQ_DOMAIN
def_bool ARC || ARM || ARM64 || X86 //what is def_bool?
depends on PCI_MSI
select GENERIC_MSI_IRQ_DOMAIN
so wen need this block in defconfig:
CONFIG_PCI_MSI=y
CONFIG_PCI_MSI_IRQ_DOMAIN=y //maybe this is set by PCI_MSI by default
CONFIG_PCIE_MEDIATEK=y
frank-w
(Frank W.)
July 2, 2018, 2:04pm
26
added PCI_MSI for PCIE_MEDIATEK in 4.18-rc and 4.18-wlan
after “./build.sh importconfig” PCIE_MEDIATEK is set to y
hope this solves your issue
can you also try without the patch above? (this is currently not in my repo)
frank-w:
git checkout 4.18-wlan
can you please explain me how to merge current 4.18-rc3 from Linus to your repo which I cloned localy 4.18-wlan?
I found I should do it like:
git checkout master
git merge origin/aRemoteBranch
or course should replace:
git checkout 4.18-wlan
but what to replace here?:
git merge origin/aRemoteBranch
frank-w
(Frank W.)
July 3, 2018, 9:22am
28
i have only included stable-tree, but this should work
git fetch torvalds/master #maybe torvalds:master
git merge v4.18-rc3 #merge the tag not the branch
my repo also contains a master-branch at rc1 so merging “master” will not lead to expected results
have you tried sata with my last changes?
msze@dvig0472:~/BPI-R2-4.14$ git fetch torvalds/master
fatal: ‘torvalds/master’ does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
same for torvalds:master
msze@dvig0472:~/BPI-R2-4.14$ git remote -v
linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (fetch)
linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (push)
origin https://github.com/frank-w/BPI-R2-4.14.git (fetch)
origin https://github.com/frank-w/BPI-R2-4.14.git (push)
SATA I will try this afternoon
msze@dvig0472:~/BPI-R2-4.14$ git fetch linux
fatal: ‘linux’ does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
frank-w
(Frank W.)
July 3, 2018, 12:00pm
32
git fetch linus
First value in git remote -v should be name of remote repo.this depends on how you’ve added the remote repo.
for comparision here my git remote-config
$ git remote -v
origin https://[email protected] /frank-w/BPI-R2-4.14.git (fetch)
origin https://[email protected] /frank-w/BPI-R2-4.14.git (push)
stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git (fetch)
stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git (push)
here i use git fetch stable
Working. I have produced RC3 kernel. Will try it at home
root@serwer:~# fdisk -l
Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000ed6cd
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 204800 729087 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk1p2 729088 15269887 14540800 7G 83 Linux
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BAE76D75-CFD0-467C-8E4E-332BC1AAD618
Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem
Both drives are mounted.
Frank, I’m you big FAN !!!
frank-w
(Frank W.)
July 3, 2018, 7:08pm
35
Have you tried without the above patch?
Yes. Only your kernel + Linux 4.18 RC3 patch
1 Like
Unfortunately, there are a lot of I/O errors. I will check another kernel tomorrow
So far so good.
With this patch is much better. None errors so far.
sorry, still errors.
This is my dmesg included
IO_errors.txt (10,1 KB)
If it’s important I’m using ATX power supply to power 2 HDD WD Red 3TB drives