From owner-svn-src-stable@freebsd.org Sun Mar 12 06:20:00 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 420A5CF9D93; Sun, 12 Mar 2017 06:20:00 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0E9C41456; Sun, 12 Mar 2017 06:19:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2C6Jx26088060; Sun, 12 Mar 2017 06:19:59 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2C6JwUG088058; Sun, 12 Mar 2017 06:19:58 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201703120619.v2C6JwUG088058@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Sun, 12 Mar 2017 06:19:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315139 - stable/11/sys/dev/aic7xxx X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2017 06:20:00 -0000 Author: mav Date: Sun Mar 12 06:19:58 2017 New Revision: 315139 URL: https://svnweb.freebsd.org/changeset/base/315139 Log: MFC r314308: Fix LUN enabling on wildcard target, as done by CTL. Modified: stable/11/sys/dev/aic7xxx/aic79xx.c stable/11/sys/dev/aic7xxx/aic7xxx.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/aic7xxx/aic79xx.c ============================================================================== --- stable/11/sys/dev/aic7xxx/aic79xx.c Sun Mar 12 06:18:41 2017 (r315138) +++ stable/11/sys/dev/aic7xxx/aic79xx.c Sun Mar 12 06:19:58 2017 (r315139) @@ -9918,7 +9918,8 @@ ahd_handle_en_lun(struct ahd_softc *ahd, u_int our_id; our_id = ahd->our_id; - if (ccb->ccb_h.target_id != our_id) { + if (ccb->ccb_h.target_id != our_id + && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { if ((ahd->features & AHD_MULTI_TID) != 0 && (ahd->flags & AHD_INITIATORROLE) != 0) { /* Modified: stable/11/sys/dev/aic7xxx/aic7xxx.c ============================================================================== --- stable/11/sys/dev/aic7xxx/aic7xxx.c Sun Mar 12 06:18:41 2017 (r315138) +++ stable/11/sys/dev/aic7xxx/aic7xxx.c Sun Mar 12 06:19:58 2017 (r315139) @@ -7347,7 +7347,8 @@ ahc_handle_en_lun(struct ahc_softc *ahc, else our_id = ahc->our_id_b; - if (ccb->ccb_h.target_id != our_id) { + if (ccb->ccb_h.target_id != our_id + && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { /* * our_id represents our initiator ID, or * the ID of the first target to have an