From owner-freebsd-new-bus@freebsd.org Mon May 28 10:17:12 2018 Return-Path: Delivered-To: freebsd-new-bus@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0D6AF7B047 for ; Mon, 28 May 2018 10:17:12 +0000 (UTC) (envelope-from dingorth@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFE3987D7F for ; Mon, 28 May 2018 10:17:11 +0000 (UTC) (envelope-from dingorth@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id i14-v6so19399879wre.2 for ; Mon, 28 May 2018 03:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Y5oEZoGw/T2JHEX/PMTC5OSbq697tD+LTCwzfay0WQg=; b=O0ea+fxTG4cGebzHzaLINnWu6W7E0M3bqmJKiPNXj65VbX11SXKQriO1SmdlcJHZ+y gUCFPZ86Y/Tyo4s7zgZh3oDcPeY5XDWH3cyDbY+DMRd4NaVvrzIfbYS+6AzS+8/G6TNv 8ZXsRNIvpz/dQ0iqc6jN2DdBHyEy/DW/ice7NaBhJ2b6HY8PJ8hzLq4pAXSlGe11OJXs hbj0pp6NPUK/+PZZ3pdsvNTCplEZ03e/iEUvO5iqh6Oew+p/GQMynw6PWJ5Z8lmY4/k2 6VB83cW/ccOX1f2REcyguzwW3MeFpVRQMlRyoX3HKf3bAQ6LASdU2PbeMSs7bL8ogs9g jSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Y5oEZoGw/T2JHEX/PMTC5OSbq697tD+LTCwzfay0WQg=; b=h2iNIcWtHaTib9JlM2O+JidcINBj4DdxIRh5whCLlo/yTsFsYTvrbv6jqS7JDXcmPG lKE3e5Gp/fCF07BwMxipqDBjMIWyltz5hqK7TR2HBiTLQRe/UIt3tWEgB+9Z1I4xJwNm gxxcMvBafn+V1P3yERVeYlFGFxkiMJ2dvrF+Kjle8PVtHXKfuVTIfD/NECCxlv2motAY kF44gFn7jg2zXrWQALbbfYL2fONy+j4x5oPi3SyDc+p1CwiSFsR5pLv+XwQEfWgsO+gh gNU9GcQEtg/MgVM6kXyNeevMFQi9cwap5dguWsWPTKc+3/ahfYiatYmM6yT6dPxYfWgS 76Wg== X-Gm-Message-State: ALKqPwcmwC5zEKeGGP2D7eHXfKu/cHDf8YjE8PZRHe/kQxMmuhhN4cE8 0uCFK741zsevbrtfq+emIeYCVfe17sXVvCKNKT1ppSe9 X-Google-Smtp-Source: AB8JxZqP3lWIRJh5BaTk6HqEA1saoVfOEqxoWapDJh01XTHGquynamFnp4ndDfDhtx9mON7UMIVybrqRPiV5fzqeigQ= X-Received: by 2002:adf:8df3:: with SMTP id o106-v6mr10756585wrb.251.1527502629897; Mon, 28 May 2018 03:17:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:34ca:0:0:0:0:0 with HTTP; Mon, 28 May 2018 03:16:39 -0700 (PDT) From: Jan Mazur Date: Mon, 28 May 2018 12:16:39 +0200 Message-ID: Subject: Where are bus passes with lower than default pass value called? To: freebsd-new-bus@freebsd.org Cc: Wojciech Moczulski Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-new-bus@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: FreeBSD's new-bus architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 10:17:12 -0000 Here: http://bxr.su/FreeBSD/sys/kern/subr_bus.c#901 bus_current_pass is set to BUS_PASS_ROOT. AFAIK autoconfiguration starts here: http://bxr.su/FreeBSD/sys/mips/mips/autoconf.c#95 and later it calls BUS_NEW_PASS(root_bus) which calls bus_set_pass(BUS_PASS_DEFAULT). Why is it called with maximum possible bus pass level - BUS_PASS_DEFAULT? Where are bus passes with lower pass value called? JM