Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3393088rdb; Wed, 13 Sep 2023 10:34:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8r21HFBYXCVEI4OxnAclc+7P5d/JXM6mh0koRx1t8fmNzAw89CpOEfYz2DL3L42m8u3wb X-Received: by 2002:a05:6870:35d3:b0:1bb:99fe:6ad1 with SMTP id c19-20020a05687035d300b001bb99fe6ad1mr3710140oak.6.1694626467718; Wed, 13 Sep 2023 10:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694626467; cv=none; d=google.com; s=arc-20160816; b=Fy2B3GaLDlfrqY6v7YdRvSHINkEPp7U/IqIxJQClorQr8tonBr1WFf6TLL9zQHO7z2 5if/782iyb+OHsTrXsnlUCHFXeyTYho1lrp2uiA/WqOFTwrtm9W64yTh4owdFg3WMi92 r+FHy7/HfPmVp6yLS+y53nUmsjKkslbnBuWcQoaemqTY6qdSRI43ey509uExrq9rF4lw YPoj+q5s6dX5EeVaftBuX/cmk9cFUxv1NpWFmCT/S6EaZpNV1VXOIj+sh4GWiZPAJQuE UA6J+aCokQZcafWUmZrbFxLtYbx5xZjY8ZtThWKx25fLnRsPlNnabshVcgb876St3eJX KofQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xZ1rUv5g/qQPI1agYI/yIm65VV4BKQNh+OmVlPyNu3k=; fh=UIfF9XshKSy4adbqDZ5ogmQ52/9tXTuYsGQFckprWbc=; b=tARoReqlswOafaT06OswOaz9fZjeC0bSgcD3TLN+ePDgg1pAIIcENOI+dEDQHjwjVF xShQXLWu0S8Ehs5T5MECd5SMPe1qF3WuMaD6QHn1sAbTwFWhpvZG6s4OSibq78K3hZ1r wz5b6kmBWAGNKEcG4jsaUnYTv2mmVnF6XrGjg9D3fqsBt8zWxGJclus5X0+M5pQD8DZt xGjfiBXy0coj5Wb7dIH8xfm4YIpkU1z6KPSSABMkdzJqQrXQOAbcVdJZSruFgPU1GZBA GVN6uIi0tGs2rA3GOQTRr1uWq5FiwfJMS15O96EIm0HcXiQ1rIt5kbg2/AIhHpK3OgXa wX/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=e962oToq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x68-20020a636347000000b0056569ee3ae7si10757159pgb.540.2023.09.13.10.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=e962oToq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0362A80E7091; Wed, 13 Sep 2023 06:41:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237634AbjIMNll (ORCPT + 99 others); Wed, 13 Sep 2023 09:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233304AbjIMNlk (ORCPT ); Wed, 13 Sep 2023 09:41:40 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF52C19BB for ; Wed, 13 Sep 2023 06:41:35 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5008d16cc36so11728810e87.2 for ; Wed, 13 Sep 2023 06:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1694612494; x=1695217294; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xZ1rUv5g/qQPI1agYI/yIm65VV4BKQNh+OmVlPyNu3k=; b=e962oToqcpH5a8kXi5VpIH78SfLr8H/Z0pJc8zeYkclZ2/SrEVzNoo3utcg2jGILEG uNG8w2dOzQFrUE6tdO3bB7Am0CV8jwKb5OMoxm9M6GWCTgyqbzRXDig+22ehaPaXXxUx vyE/A48Y9s148C2APDEsIK8EdvJcHEDrh3X0YbqDhfWT+umZ47yC8KuV5+ULTjRFAcX8 So7lBFwUMf8JhMA82DxcrlOV2qhATN8ePjv76HbFUeZj38E5qR97zbQgALi1P58gSJKL 1+UHFt8XFIP0S/jTGJ2C4nMz2qMdUz8xfMOhylLbTqbHh/znI5vGjR9LpFFBEKstSuHv OWYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694612494; x=1695217294; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xZ1rUv5g/qQPI1agYI/yIm65VV4BKQNh+OmVlPyNu3k=; b=aVFSNiWvskrv29f2Cl8ySphG4KtopLWBrpeOTolPykZhg+tHf8L6RY3UiDXFp6vgZM 5u9EtQEuMK5qz+NTVQv+hCnVcN4hikFGmA4UkcTNLhm+jkOYa/osBtPRKVnKbFGoZvHI Tc/keZv1vEDdv1q3+4mr6JWThq/ykBwFR1EXuHA1Z9jmocFRZj6CFh9xSiZdQGV51yle 2qUKdYitU8e3zfpBzrRLt2pFdFgx73RdJGY0H+fsF0ac4fTgp1NZGh7hHFFTzy1moGhi VD22aSqjTdsIc2h3AmCsniy2S+MPNU8yWD4R+sl5ledcdR7X4qYu1XwliQILlroB6+K8 35iw== X-Gm-Message-State: AOJu0Yxh5TJHfV5h8L7XBrVWzfObI5lHDHKpEC/jDvw6p1QEMp7TpcZA uI4jQJTHpWuFBm7rIffjKwRsrucJeiDuLF3jWhry4Q== X-Received: by 2002:a05:6512:312c:b0:4fe:7dcc:3dc1 with SMTP id p12-20020a056512312c00b004fe7dcc3dc1mr1784034lfd.44.1694612494095; Wed, 13 Sep 2023 06:41:34 -0700 (PDT) MIME-Version: 1.0 References: <20230911170340.699533-1-mge@meta.com> In-Reply-To: <20230911170340.699533-1-mge@meta.com> From: Jinpu Wang Date: Wed, 13 Sep 2023 15:41:23 +0200 Message-ID: Subject: Re: [PATCH 1/2] pm80xx: Use phy specific sas address when sending PHY_START command To: Michal Grzedzicki Cc: jinpu.wang@cloud.ionos.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:41:49 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Mon, Sep 11, 2023 at 7:03=E2=80=AFPM Michal Grzedzicki wr= ote: > > Some cards have more than one sas addresses. Using incorrect > address causes communication issues with some devices like expanders. > > Signed-off-by: Michal Grzedzicki Acked-by: Jack Wang > --- > drivers/scsi/pm8001/pm8001_hwi.c | 2 +- > drivers/scsi/pm8001/pm80xx_hwi.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm800= 1_hwi.c > index 33053db5a713..90069c7b1642 100644 > --- a/drivers/scsi/pm8001/pm8001_hwi.c > +++ b/drivers/scsi/pm8001/pm8001_hwi.c > @@ -4180,7 +4180,7 @@ pm8001_chip_phy_start_req(struct pm8001_hba_info *p= m8001_ha, u8 phy_id) > payload.sas_identify.dev_type =3D SAS_END_DEVICE; > payload.sas_identify.initiator_bits =3D SAS_PROTOCOL_ALL; > memcpy(payload.sas_identify.sas_addr, > - pm8001_ha->sas_addr, SAS_ADDR_SIZE); > + &pm8001_ha->phy[phy_id].dev_sas_addr, SAS_ADDR_SIZE); > payload.sas_identify.phy_id =3D phy_id; > > return pm8001_mpi_build_cmd(pm8001_ha, 0, opcode, &payload, > diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80x= x_hwi.c > index f6857632dc7c..1b2c40b1381c 100644 > --- a/drivers/scsi/pm8001/pm80xx_hwi.c > +++ b/drivers/scsi/pm8001/pm80xx_hwi.c > @@ -4671,7 +4671,7 @@ pm80xx_chip_phy_start_req(struct pm8001_hba_info *p= m8001_ha, u8 phy_id) > payload.sas_identify.dev_type =3D SAS_END_DEVICE; > payload.sas_identify.initiator_bits =3D SAS_PROTOCOL_ALL; > memcpy(payload.sas_identify.sas_addr, > - &pm8001_ha->sas_addr, SAS_ADDR_SIZE); > + &pm8001_ha->phy[phy_id].dev_sas_addr, SAS_ADDR_SIZE); > payload.sas_identify.phy_id =3D phy_id; > > return pm8001_mpi_build_cmd(pm8001_ha, 0, opcode, &payload, > -- > 2.34.1 >