Skip to content

Commit f46f0e9

Browse files
committed
Merge remote-tracking branch 'drm-intel/topic/core-for-CI' into drm-tip
2 parents bfbc92c + 7699f1e commit f46f0e9

File tree

17 files changed

+92
-43
lines changed

17 files changed

+92
-43
lines changed

drivers/ata/libata-core.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ static bool ata_identify_page_supported(struct ata_device *dev, u8 page)
22072207
* for drives which implement this ATA level or above.
22082208
*/
22092209
if (ata_id_major_version(dev->id) >= 10)
2210-
ata_dev_warn(dev,
2210+
ata_dev_notice(dev,
22112211
"ATA Identify Device Log not supported\n");
22122212
dev->quirks |= ATA_QUIRK_NO_ID_DEV_LOG;
22132213
return false;
@@ -2278,7 +2278,7 @@ static void ata_dev_config_ncq_send_recv(struct ata_device *dev)
22782278
unsigned int err_mask;
22792279

22802280
if (!ata_log_supported(dev, ATA_LOG_NCQ_SEND_RECV)) {
2281-
ata_dev_warn(dev, "NCQ Send/Recv Log not supported\n");
2281+
ata_dev_notice(dev, "NCQ Send/Recv Log not supported\n");
22822282
return;
22832283
}
22842284
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV,
@@ -2302,8 +2302,8 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
23022302
unsigned int err_mask;
23032303

23042304
if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
2305-
ata_dev_warn(dev,
2306-
"NCQ Non-Data Log not supported\n");
2305+
ata_dev_notice(dev,
2306+
"NCQ Non-Data Log not supported\n");
23072307
return;
23082308
}
23092309
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
@@ -2994,14 +2994,14 @@ int ata_dev_configure(struct ata_device *dev)
29942994
if (ata_id_is_cfa(id)) {
29952995
/* CPRM may make this media unusable */
29962996
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
2997-
ata_dev_warn(dev,
2997+
ata_dev_notice(dev,
29982998
"supports DRM functions and may not be fully accessible\n");
29992999
snprintf(revbuf, 7, "CFA");
30003000
} else {
30013001
snprintf(revbuf, 7, "ATA-%d", ata_id_major_version(id));
30023002
/* Warn the user if the device has TPM extensions */
30033003
if (ata_id_has_tpm(id))
3004-
ata_dev_warn(dev,
3004+
ata_dev_notice(dev,
30053005
"supports DRM functions and may not be fully accessible\n");
30063006
}
30073007

@@ -3158,8 +3158,8 @@ int ata_dev_configure(struct ata_device *dev)
31583158
}
31593159

31603160
if ((dev->quirks & ATA_QUIRK_FIRMWARE_WARN) && print_info) {
3161-
ata_dev_warn(dev, "WARNING: device requires firmware update to be fully functional\n");
3162-
ata_dev_warn(dev, " contact the vendor or visit http://ata.wiki.kernel.org\n");
3161+
ata_dev_notice(dev, "WARNING: device requires firmware update to be fully functional\n");
3162+
ata_dev_notice(dev, " contact the vendor or visit http://ata.wiki.kernel.org\n");
31633163
}
31643164

31653165
return 0;

drivers/net/phy/phy.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ static void phy_process_error(struct phy_device *phydev)
13431343
static void phy_error_precise(struct phy_device *phydev,
13441344
const void *func, int err)
13451345
{
1346-
WARN(1, "%pS: returned: %d\n", func, err);
1346+
pr_notice_once("%pS: returned: %d\n", func, err);
13471347
phy_process_error(phydev);
13481348
}
13491349

@@ -1357,7 +1357,7 @@ static void phy_error_precise(struct phy_device *phydev,
13571357
*/
13581358
void phy_error(struct phy_device *phydev)
13591359
{
1360-
WARN_ON(1);
1360+
pr_notice_once("%s\n", __func__);
13611361
phy_process_error(phydev);
13621362
}
13631363
EXPORT_SYMBOL(phy_error);
@@ -1637,11 +1637,8 @@ void phy_stop(struct phy_device *phydev)
16371637
enum phy_state old_state;
16381638

16391639
if (!phy_is_started(phydev) && phydev->state != PHY_DOWN &&
1640-
phydev->state != PHY_ERROR) {
1641-
WARN(1, "called from state %s\n",
1642-
phy_state_to_str(phydev->state));
1640+
phydev->state != PHY_ERROR)
16431641
return;
1644-
}
16451642

16461643
mutex_lock(&phydev->lock);
16471644
old_state = phydev->state;

drivers/pci/msi/msi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,10 @@ int __pci_enable_msi_range(struct pci_dev *dev, int minvec, int maxvec,
426426
if (maxvec < minvec)
427427
return -ERANGE;
428428

429-
if (WARN_ON_ONCE(dev->msi_enabled))
429+
if (dev->msi_enabled) {
430+
pci_info(dev, "can't enable MSI, already enabled\n");
430431
return -EINVAL;
432+
}
431433

432434
/* Test for the availability of MSI support */
433435
if (!pci_msi_domain_supports(dev, 0, ALLOW_LEGACY))

drivers/thermal/intel/therm_throt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ static void __maybe_unused throttle_active_work(struct work_struct *work)
345345
avg /= ARRAY_SIZE(state->temp_samples);
346346

347347
if (state->average > avg) {
348-
pr_warn("CPU%d: %s temperature is above threshold, cpu clock is throttled (total events = %lu)\n",
349-
this_cpu,
350-
state->level == CORE_LEVEL ? "Core" : "Package",
351-
state->count);
348+
pr_notice("CPU%d: %s temperature is above threshold, cpu clock is throttled (total events = %lu)\n",
349+
this_cpu,
350+
state->level == CORE_LEVEL ? "Core" : "Package",
351+
state->count);
352352
state->rate_control_active = true;
353353
}
354354

drivers/thunderbolt/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ menuconfig USB4
1818

1919
if USB4
2020

21+
config USB4_PCIE_TUNNELING
22+
bool "Allow PCI Express tunneling over USB4 fabric"
23+
depends on PCI
24+
default y
25+
help
26+
USB4 and Thunderbolt devices typically include PCIe switch
27+
with a number of PCIe endpoints such as USB host controllers,
28+
GPUs and network adapters. These are made available to the
29+
host system through PCIe tunneling. These can use DMA and
30+
therefore have access to the host memory which is typically
31+
guarded by an IOMMU. This option allows disabling PCIe
32+
tunneling completely.
33+
34+
For devices to be usable it is recommended to say Y here.
35+
36+
Note this only works with systems that use Software Based
37+
Connection Manager (this is most USB4 hosts).
38+
2139
config USB4_DEBUGFS_WRITE
2240
bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
2341
help

drivers/thunderbolt/tb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3372,7 +3372,7 @@ struct tb *tb_probe(struct tb_nhi *nhi)
33723372
if (!tb)
33733373
return NULL;
33743374

3375-
if (tb_acpi_may_tunnel_pcie())
3375+
if (tb_may_tunnel_pcie())
33763376
tb->security_level = TB_SECURITY_USER;
33773377
else
33783378
tb->security_level = TB_SECURITY_NOPCIE;

drivers/thunderbolt/tb.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,15 @@ static inline int tb_acpi_power_on_retimers(struct tb_port *port) { return 0; }
15311531
static inline int tb_acpi_power_off_retimers(struct tb_port *port) { return 0; }
15321532
#endif
15331533

1534+
static inline bool tb_may_tunnel_pcie(void)
1535+
{
1536+
#ifdef CONFIG_USB4_PCIE_TUNNELING
1537+
return tb_acpi_may_tunnel_pcie();
1538+
#else
1539+
return false;
1540+
#endif
1541+
}
1542+
15341543
#ifdef CONFIG_DEBUG_FS
15351544
void tb_debugfs_init(void);
15361545
void tb_debugfs_exit(void);

drivers/thunderbolt/tunnel.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static unsigned int tb_available_credits(const struct tb_port *port,
132132
size_t ndp;
133133

134134
usb3 = tb_acpi_may_tunnel_usb3() ? sw->max_usb3_credits : 0;
135-
pcie = tb_acpi_may_tunnel_pcie() ? sw->max_pcie_credits : 0;
135+
pcie = tb_may_tunnel_pcie() ? sw->max_pcie_credits : 0;
136136

137137
if (tb_acpi_is_xdomain_allowed()) {
138138
spare = min_not_zero(sw->max_dma_credits, dma_credits);
@@ -559,7 +559,7 @@ bool tb_tunnel_reserved_pci(struct tb_port *port, int *reserved_up,
559559
if (WARN_ON_ONCE(!port->remote))
560560
return false;
561561

562-
if (!tb_acpi_may_tunnel_pcie())
562+
if (!tb_may_tunnel_pcie())
563563
return false;
564564

565565
if (tb_port_get_link_generation(port) < 4)
@@ -1728,7 +1728,7 @@ static unsigned int tb_dma_available_credits(const struct tb_port *port)
17281728
int credits;
17291729

17301730
credits = tb_available_credits(port, NULL);
1731-
if (tb_acpi_may_tunnel_pcie())
1731+
if (tb_may_tunnel_pcie())
17321732
credits -= sw->max_pcie_credits;
17331733
credits -= port->dma_credits;
17341734

@@ -2040,7 +2040,7 @@ static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
20402040
int *consumed_up, int *consumed_down)
20412041
{
20422042
struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw);
2043-
int pcie_weight = tb_acpi_may_tunnel_pcie() ? TB_PCI_WEIGHT : 0;
2043+
int pcie_weight = tb_may_tunnel_pcie() ? TB_PCI_WEIGHT : 0;
20442044

20452045
/*
20462046
* PCIe tunneling, if enabled, affects the USB3 bandwidth so

drivers/thunderbolt/usb4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int usb4_switch_setup(struct tb_switch *sw)
279279
* Only enable PCIe tunneling if the parent router supports it
280280
* and it is not disabled.
281281
*/
282-
if (tb_acpi_may_tunnel_pcie() &&
282+
if (tb_may_tunnel_pcie() &&
283283
tb_switch_find_port(parent, TB_TYPE_PCIE_DOWN)) {
284284
val |= ROUTER_CS_5_PTO;
285285
/*

include/linux/lockdep_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ struct held_lock {
252252
unsigned int check:1; /* see lock_acquire() comment */
253253
unsigned int hardirqs_off:1;
254254
unsigned int sync:1;
255-
unsigned int references:11; /* 32 bits */
256-
unsigned int pin_count;
255+
unsigned int pin_count:11; /* 32 bits */
256+
unsigned int references;
257257
};
258258

259259
#else /* !CONFIG_LOCKDEP */

0 commit comments

Comments
 (0)