From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDCD6ECE599 for ; Thu, 17 Oct 2019 02:13:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7327B2082C for ; Thu, 17 Oct 2019 02:13:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7327B2082C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46tt4n24dwzDr3Y for ; Thu, 17 Oct 2019 13:13:45 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=permerror (SPF Permanent Error: Unknown mechanism found: ip:192.40.192.88/32) smtp.mailfrom=kernel.crashing.org (client-ip=63.228.1.57; helo=gate.crashing.org; envelope-from=benh@kernel.crashing.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46tt2n50zMzDqhT for ; Thu, 17 Oct 2019 13:12:01 +1100 (AEDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x9H2BZ2C002864; Wed, 16 Oct 2019 21:11:36 -0500 Message-ID: <7c14378a1fae17bf106040b5f38e3956a745c2c1.camel@kernel.crashing.org> Subject: Re: Linux PowerPC, PPC4xx From: Benjamin Herrenschmidt To: Carlo Pisani , paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, alistair@popple.id.au, mporter@kernel.crashing.org, sfr@canb.auug.org.au, michael@ellerman.id.au, david@gibson.dropbear.id.au, agust@denx.de, scottwood@freescale.com, patchwork.ozlabs@gmail.com Date: Thu, 17 Oct 2019 13:11:35 +1100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, 2019-10-16 at 15:19 +0200, Carlo Pisani wrote: > hi > I am a student, I represent a group of friends running a couple of > opensource projects(1), and we are lost with this(2) problem. > > I wrote here(2) a couple of years ago, we are still working with > kernel > 4.11.0 and there is broken support for initializing the PCI. > > The PCI initialization of the PPC405GP seems wrong and every > kernel >= 2.6.26 is not able to correctly address the PDC20265 > > an interesting note is: > kernel 2.6.26 can be compiled with arch=ppc and arch=powerpc > > when compiled with arch=ppc the promise PDC20265 chip is correctly > managed; while when compiled with arch=powerpc the PDC20265 is not > correctly managed > > any idea? advice? help? suggestion? > a good place to discuss it? On powermac we have a quirk to force these controllers into native mode. You can try that. Look for pmac_pci_fixup_pciata(). You could copy that to powerpc/pci_32.c along with DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, pmac_pci_fixup_pciata); (maybe rename pmac to ppc) and remove the line that checks for machine_is(powermac) Cheers, Ben.