Skip to content

Commit

Permalink
Remove last remnants of OPAL_PCI_SET_PHB_TCE_MEMORY and OPAL_PCI_SET_…
Browse files Browse the repository at this point in the history
…HUB_TCE_MEMORY

Since we have not supported p5ioc systems since skiboot 5.2, it's pretty
safe to just wholesale remove these OPAL calls now.

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Jun 3, 2019
1 parent 8e4bb49 commit df8dd27
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 29 deletions.
13 changes: 0 additions & 13 deletions core/pci-opal.c
Expand Up @@ -860,19 +860,6 @@ static int64_t opal_pci_set_power_state(uint64_t async_token,
}
opal_call(OPAL_PCI_SET_POWER_STATE, opal_pci_set_power_state, 3);

static int64_t opal_pci_set_phb_tce_memory(uint64_t phb_id,
uint64_t tce_mem_addr __unused,
uint64_t tce_mem_size __unused)
{
struct phb *phb = pci_get_phb(phb_id);

if (!phb)
return OPAL_PARAMETER;

return OPAL_UNSUPPORTED;
}
opal_call(OPAL_PCI_SET_PHB_TCE_MEMORY, opal_pci_set_phb_tce_memory, 3);

static int64_t opal_pci_get_phb_diag_data(uint64_t phb_id,
void *diag_buffer,
uint64_t diag_buffer_len)
Expand Down
14 changes: 0 additions & 14 deletions hw/cec.c
Expand Up @@ -52,20 +52,6 @@ void cec_reset(void)
}
}

/* This was only supported by p5ioc, which was dropped */
static int64_t opal_pci_set_hub_tce_memory(uint64_t hub_id,
uint64_t tce_mem_addr __unused,
uint64_t tce_mem_size __unused)
{
struct io_hub *hub = cec_get_hub_by_id(hub_id);

if (!hub)
return OPAL_PARAMETER;

return OPAL_UNSUPPORTED;
}
opal_call(OPAL_PCI_SET_HUB_TCE_MEMORY, opal_pci_set_hub_tce_memory, 3);

static int64_t opal_pci_get_hub_diag_data(uint64_t hub_id,
void *diag_buffer,
uint64_t diag_buffer_len)
Expand Down
4 changes: 2 additions & 2 deletions include/opal-api.h
Expand Up @@ -70,8 +70,8 @@
#define OPAL_WRITE_NVRAM 8
#define OPAL_HANDLE_INTERRUPT 9
#define OPAL_POLL_EVENTS 10
#define OPAL_PCI_SET_HUB_TCE_MEMORY 11
#define OPAL_PCI_SET_PHB_TCE_MEMORY 12
#define OPAL_PCI_SET_HUB_TCE_MEMORY 11 /* Removed, p5ioc only */
#define OPAL_PCI_SET_PHB_TCE_MEMORY 12 /* Removed, p5ioc only */
#define OPAL_PCI_CONFIG_READ_BYTE 13
#define OPAL_PCI_CONFIG_READ_HALF_WORD 14
#define OPAL_PCI_CONFIG_READ_WORD 15
Expand Down

0 comments on commit df8dd27

Please sign in to comment.